@atlasauth/cli 0.24.0 → 0.25.0

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 (530) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +4 -4
  3. package/dist/args.d.ts +0 -601
  4. package/dist/args.js +0 -289
  5. package/dist/args.js.map +0 -1
  6. package/dist/cli.d.ts +0 -2
  7. package/dist/cli.js +0 -19
  8. package/dist/cli.js.map +0 -1
  9. package/dist/commands/actions-gallery.d.ts +0 -8
  10. package/dist/commands/actions-gallery.js +0 -197
  11. package/dist/commands/actions-gallery.js.map +0 -1
  12. package/dist/commands/actions.d.ts +0 -13
  13. package/dist/commands/actions.js +0 -135
  14. package/dist/commands/actions.js.map +0 -1
  15. package/dist/commands/admin.d.ts +0 -49
  16. package/dist/commands/admin.js +0 -353
  17. package/dist/commands/admin.js.map +0 -1
  18. package/dist/commands/api-keys.d.ts +0 -4
  19. package/dist/commands/api-keys.js +0 -96
  20. package/dist/commands/api-keys.js.map +0 -1
  21. package/dist/commands/auth.d.ts +0 -25
  22. package/dist/commands/auth.js +0 -102
  23. package/dist/commands/auth.js.map +0 -1
  24. package/dist/commands/config.d.ts +0 -104
  25. package/dist/commands/config.js +0 -1506
  26. package/dist/commands/config.js.map +0 -1
  27. package/dist/commands/csp.d.ts +0 -32
  28. package/dist/commands/csp.js +0 -180
  29. package/dist/commands/csp.js.map +0 -1
  30. package/dist/commands/dev.d.ts +0 -8
  31. package/dist/commands/dev.js +0 -84
  32. package/dist/commands/dev.js.map +0 -1
  33. package/dist/commands/fga.d.ts +0 -10
  34. package/dist/commands/fga.js +0 -146
  35. package/dist/commands/fga.js.map +0 -1
  36. package/dist/commands/golive.d.ts +0 -40
  37. package/dist/commands/golive.js +0 -285
  38. package/dist/commands/golive.js.map +0 -1
  39. package/dist/commands/id-accounts.d.ts +0 -13
  40. package/dist/commands/id-accounts.js +0 -195
  41. package/dist/commands/id-accounts.js.map +0 -1
  42. package/dist/commands/import-better-auth.d.ts +0 -3
  43. package/dist/commands/import-better-auth.js +0 -164
  44. package/dist/commands/import-better-auth.js.map +0 -1
  45. package/dist/commands/import.d.ts +0 -3
  46. package/dist/commands/import.js +0 -123
  47. package/dist/commands/import.js.map +0 -1
  48. package/dist/commands/info.d.ts +0 -75
  49. package/dist/commands/info.js +0 -362
  50. package/dist/commands/info.js.map +0 -1
  51. package/dist/commands/init.d.ts +0 -3
  52. package/dist/commands/init.js +0 -438
  53. package/dist/commands/init.js.map +0 -1
  54. package/dist/commands/integrations.d.ts +0 -8
  55. package/dist/commands/integrations.js +0 -112
  56. package/dist/commands/integrations.js.map +0 -1
  57. package/dist/commands/listen.d.ts +0 -17
  58. package/dist/commands/listen.js +0 -223
  59. package/dist/commands/listen.js.map +0 -1
  60. package/dist/commands/mcp.d.ts +0 -38
  61. package/dist/commands/mcp.js +0 -111
  62. package/dist/commands/mcp.js.map +0 -1
  63. package/dist/commands/migrate.d.ts +0 -16
  64. package/dist/commands/migrate.js +0 -114
  65. package/dist/commands/migrate.js.map +0 -1
  66. package/dist/commands/move-origin.d.ts +0 -11
  67. package/dist/commands/move-origin.js +0 -95
  68. package/dist/commands/move-origin.js.map +0 -1
  69. package/dist/commands/operator.d.ts +0 -18
  70. package/dist/commands/operator.js +0 -238
  71. package/dist/commands/operator.js.map +0 -1
  72. package/dist/commands/orgs.d.ts +0 -4
  73. package/dist/commands/orgs.js +0 -72
  74. package/dist/commands/orgs.js.map +0 -1
  75. package/dist/commands/pages.d.ts +0 -14
  76. package/dist/commands/pages.js +0 -113
  77. package/dist/commands/pages.js.map +0 -1
  78. package/dist/commands/partner-platforms.d.ts +0 -10
  79. package/dist/commands/partner-platforms.js +0 -157
  80. package/dist/commands/partner-platforms.js.map +0 -1
  81. package/dist/commands/project-commands.d.ts +0 -38
  82. package/dist/commands/project-commands.js +0 -361
  83. package/dist/commands/project-commands.js.map +0 -1
  84. package/dist/commands/referrals.d.ts +0 -69
  85. package/dist/commands/referrals.js +0 -1056
  86. package/dist/commands/referrals.js.map +0 -1
  87. package/dist/commands/resources.d.ts +0 -44
  88. package/dist/commands/resources.js +0 -234
  89. package/dist/commands/resources.js.map +0 -1
  90. package/dist/commands/sessions.d.ts +0 -4
  91. package/dist/commands/sessions.js +0 -28
  92. package/dist/commands/sessions.js.map +0 -1
  93. package/dist/commands/shared.d.ts +0 -38
  94. package/dist/commands/shared.js +0 -69
  95. package/dist/commands/shared.js.map +0 -1
  96. package/dist/commands/status.d.ts +0 -3
  97. package/dist/commands/status.js +0 -77
  98. package/dist/commands/status.js.map +0 -1
  99. package/dist/commands/users.d.ts +0 -4
  100. package/dist/commands/users.js +0 -100
  101. package/dist/commands/users.js.map +0 -1
  102. package/dist/commands/webhooks.d.ts +0 -34
  103. package/dist/commands/webhooks.js +0 -301
  104. package/dist/commands/webhooks.js.map +0 -1
  105. package/dist/config-http.d.ts +0 -29
  106. package/dist/config-http.js +0 -64
  107. package/dist/config-http.js.map +0 -1
  108. package/dist/config.d.ts +0 -64
  109. package/dist/config.js +0 -69
  110. package/dist/config.js.map +0 -1
  111. package/dist/context.d.ts +0 -72
  112. package/dist/context.js +0 -27
  113. package/dist/context.js.map +0 -1
  114. package/dist/define-config.d.ts +0 -9
  115. package/dist/define-config.js +0 -8
  116. package/dist/define-config.js.map +0 -1
  117. package/dist/errors.d.ts +0 -15
  118. package/dist/errors.js +0 -25
  119. package/dist/errors.js.map +0 -1
  120. package/dist/help.d.ts +0 -8
  121. package/dist/help.js +0 -868
  122. package/dist/help.js.map +0 -1
  123. package/dist/import/csv.d.ts +0 -6
  124. package/dist/import/csv.js +0 -63
  125. package/dist/import/csv.js.map +0 -1
  126. package/dist/import/vendors.d.ts +0 -57
  127. package/dist/import/vendors.js +0 -568
  128. package/dist/import/vendors.js.map +0 -1
  129. package/dist/index.d.ts +0 -33
  130. package/dist/index.js +0 -81
  131. package/dist/index.js.map +0 -1
  132. package/dist/io.d.ts +0 -21
  133. package/dist/io.js +0 -28
  134. package/dist/io.js.map +0 -1
  135. package/dist/migrate/appwrite/plugin.d.ts +0 -2
  136. package/dist/migrate/appwrite/plugin.js +0 -103
  137. package/dist/migrate/appwrite/plugin.js.map +0 -1
  138. package/dist/migrate/auth0/plugin.d.ts +0 -2
  139. package/dist/migrate/auth0/plugin.js +0 -126
  140. package/dist/migrate/auth0/plugin.js.map +0 -1
  141. package/dist/migrate/authentik/plugin.d.ts +0 -2
  142. package/dist/migrate/authentik/plugin.js +0 -135
  143. package/dist/migrate/authentik/plugin.js.map +0 -1
  144. package/dist/migrate/azure-ad-b2c/plugin.d.ts +0 -8
  145. package/dist/migrate/azure-ad-b2c/plugin.js +0 -165
  146. package/dist/migrate/azure-ad-b2c/plugin.js.map +0 -1
  147. package/dist/migrate/better-auth/integration.d.ts +0 -59
  148. package/dist/migrate/better-auth/integration.js +0 -81
  149. package/dist/migrate/better-auth/integration.js.map +0 -1
  150. package/dist/migrate/better-auth/orchestrator.d.ts +0 -43
  151. package/dist/migrate/better-auth/orchestrator.js +0 -525
  152. package/dist/migrate/better-auth/orchestrator.js.map +0 -1
  153. package/dist/migrate/better-auth/output.d.ts +0 -20
  154. package/dist/migrate/better-auth/output.js +0 -146
  155. package/dist/migrate/better-auth/output.js.map +0 -1
  156. package/dist/migrate/better-auth/translate.d.ts +0 -77
  157. package/dist/migrate/better-auth/translate.js +0 -1989
  158. package/dist/migrate/better-auth/translate.js.map +0 -1
  159. package/dist/migrate/clerk/plugin.d.ts +0 -2
  160. package/dist/migrate/clerk/plugin.js +0 -76
  161. package/dist/migrate/clerk/plugin.js.map +0 -1
  162. package/dist/migrate/cognito/plugin.d.ts +0 -5
  163. package/dist/migrate/cognito/plugin.js +0 -170
  164. package/dist/migrate/cognito/plugin.js.map +0 -1
  165. package/dist/migrate/corbado/plugin.d.ts +0 -2
  166. package/dist/migrate/corbado/plugin.js +0 -63
  167. package/dist/migrate/corbado/plugin.js.map +0 -1
  168. package/dist/migrate/descope/plugin.d.ts +0 -2
  169. package/dist/migrate/descope/plugin.js +0 -83
  170. package/dist/migrate/descope/plugin.js.map +0 -1
  171. package/dist/migrate/entra-external-id/plugin.d.ts +0 -8
  172. package/dist/migrate/entra-external-id/plugin.js +0 -12
  173. package/dist/migrate/entra-external-id/plugin.js.map +0 -1
  174. package/dist/migrate/export/appwrite-config.d.ts +0 -28
  175. package/dist/migrate/export/appwrite-config.js +0 -170
  176. package/dist/migrate/export/appwrite-config.js.map +0 -1
  177. package/dist/migrate/export/appwrite.d.ts +0 -51
  178. package/dist/migrate/export/appwrite.js +0 -288
  179. package/dist/migrate/export/appwrite.js.map +0 -1
  180. package/dist/migrate/export/auth0-config.d.ts +0 -29
  181. package/dist/migrate/export/auth0-config.js +0 -249
  182. package/dist/migrate/export/auth0-config.js.map +0 -1
  183. package/dist/migrate/export/auth0.d.ts +0 -62
  184. package/dist/migrate/export/auth0.js +0 -575
  185. package/dist/migrate/export/auth0.js.map +0 -1
  186. package/dist/migrate/export/authentik-config.d.ts +0 -45
  187. package/dist/migrate/export/authentik-config.js +0 -357
  188. package/dist/migrate/export/authentik-config.js.map +0 -1
  189. package/dist/migrate/export/authentik.d.ts +0 -110
  190. package/dist/migrate/export/authentik.js +0 -838
  191. package/dist/migrate/export/authentik.js.map +0 -1
  192. package/dist/migrate/export/azure-config.d.ts +0 -58
  193. package/dist/migrate/export/azure-config.js +0 -344
  194. package/dist/migrate/export/azure-config.js.map +0 -1
  195. package/dist/migrate/export/azure.d.ts +0 -85
  196. package/dist/migrate/export/azure.js +0 -373
  197. package/dist/migrate/export/azure.js.map +0 -1
  198. package/dist/migrate/export/clerk-config.d.ts +0 -26
  199. package/dist/migrate/export/clerk-config.js +0 -227
  200. package/dist/migrate/export/clerk-config.js.map +0 -1
  201. package/dist/migrate/export/clerk.d.ts +0 -46
  202. package/dist/migrate/export/clerk.js +0 -486
  203. package/dist/migrate/export/clerk.js.map +0 -1
  204. package/dist/migrate/export/cognito-config.d.ts +0 -25
  205. package/dist/migrate/export/cognito-config.js +0 -273
  206. package/dist/migrate/export/cognito-config.js.map +0 -1
  207. package/dist/migrate/export/cognito.d.ts +0 -103
  208. package/dist/migrate/export/cognito.js +0 -441
  209. package/dist/migrate/export/cognito.js.map +0 -1
  210. package/dist/migrate/export/corbado-config.d.ts +0 -20
  211. package/dist/migrate/export/corbado-config.js +0 -63
  212. package/dist/migrate/export/corbado-config.js.map +0 -1
  213. package/dist/migrate/export/corbado.d.ts +0 -37
  214. package/dist/migrate/export/corbado.js +0 -132
  215. package/dist/migrate/export/corbado.js.map +0 -1
  216. package/dist/migrate/export/descope.d.ts +0 -35
  217. package/dist/migrate/export/descope.js +0 -208
  218. package/dist/migrate/export/descope.js.map +0 -1
  219. package/dist/migrate/export/fake-vendor.test-helper.d.ts +0 -27
  220. package/dist/migrate/export/fake-vendor.test-helper.js +0 -41
  221. package/dist/migrate/export/fake-vendor.test-helper.js.map +0 -1
  222. package/dist/migrate/export/firebase-config.d.ts +0 -24
  223. package/dist/migrate/export/firebase-config.js +0 -215
  224. package/dist/migrate/export/firebase-config.js.map +0 -1
  225. package/dist/migrate/export/firebase.d.ts +0 -102
  226. package/dist/migrate/export/firebase.js +0 -464
  227. package/dist/migrate/export/firebase.js.map +0 -1
  228. package/dist/migrate/export/frameworks/app-users.d.ts +0 -42
  229. package/dist/migrate/export/frameworks/app-users.js +0 -161
  230. package/dist/migrate/export/frameworks/app-users.js.map +0 -1
  231. package/dist/migrate/export/frameworks/authjs.d.ts +0 -41
  232. package/dist/migrate/export/frameworks/authjs.js +0 -146
  233. package/dist/migrate/export/frameworks/authjs.js.map +0 -1
  234. package/dist/migrate/export/frameworks/devise.d.ts +0 -39
  235. package/dist/migrate/export/frameworks/devise.js +0 -218
  236. package/dist/migrate/export/frameworks/devise.js.map +0 -1
  237. package/dist/migrate/export/frameworks/django.d.ts +0 -45
  238. package/dist/migrate/export/frameworks/django.js +0 -315
  239. package/dist/migrate/export/frameworks/django.js.map +0 -1
  240. package/dist/migrate/export/frameworks/lucia.d.ts +0 -42
  241. package/dist/migrate/export/frameworks/lucia.js +0 -263
  242. package/dist/migrate/export/frameworks/lucia.js.map +0 -1
  243. package/dist/migrate/export/frameworks/tables.d.ts +0 -90
  244. package/dist/migrate/export/frameworks/tables.js +0 -325
  245. package/dist/migrate/export/frameworks/tables.js.map +0 -1
  246. package/dist/migrate/export/frameworks/webauthn.d.ts +0 -25
  247. package/dist/migrate/export/frameworks/webauthn.js +0 -130
  248. package/dist/migrate/export/frameworks/webauthn.js.map +0 -1
  249. package/dist/migrate/export/frontegg-config.d.ts +0 -29
  250. package/dist/migrate/export/frontegg-config.js +0 -238
  251. package/dist/migrate/export/frontegg-config.js.map +0 -1
  252. package/dist/migrate/export/frontegg.d.ts +0 -67
  253. package/dist/migrate/export/frontegg.js +0 -410
  254. package/dist/migrate/export/frontegg.js.map +0 -1
  255. package/dist/migrate/export/fusionauth-config.d.ts +0 -26
  256. package/dist/migrate/export/fusionauth-config.js +0 -226
  257. package/dist/migrate/export/fusionauth-config.js.map +0 -1
  258. package/dist/migrate/export/fusionauth.d.ts +0 -99
  259. package/dist/migrate/export/fusionauth.js +0 -642
  260. package/dist/migrate/export/fusionauth.js.map +0 -1
  261. package/dist/migrate/export/hanko-config.d.ts +0 -27
  262. package/dist/migrate/export/hanko-config.js +0 -265
  263. package/dist/migrate/export/hanko-config.js.map +0 -1
  264. package/dist/migrate/export/hanko.d.ts +0 -52
  265. package/dist/migrate/export/hanko.js +0 -605
  266. package/dist/migrate/export/hanko.js.map +0 -1
  267. package/dist/migrate/export/keycloak-config.d.ts +0 -19
  268. package/dist/migrate/export/keycloak-config.js +0 -219
  269. package/dist/migrate/export/keycloak-config.js.map +0 -1
  270. package/dist/migrate/export/keycloak.d.ts +0 -155
  271. package/dist/migrate/export/keycloak.js +0 -878
  272. package/dist/migrate/export/keycloak.js.map +0 -1
  273. package/dist/migrate/export/kinde-descope-config.d.ts +0 -38
  274. package/dist/migrate/export/kinde-descope-config.js +0 -172
  275. package/dist/migrate/export/kinde-descope-config.js.map +0 -1
  276. package/dist/migrate/export/kinde.d.ts +0 -57
  277. package/dist/migrate/export/kinde.js +0 -333
  278. package/dist/migrate/export/kinde.js.map +0 -1
  279. package/dist/migrate/export/ldap.d.ts +0 -53
  280. package/dist/migrate/export/ldap.js +0 -277
  281. package/dist/migrate/export/ldap.js.map +0 -1
  282. package/dist/migrate/export/logto-config.d.ts +0 -27
  283. package/dist/migrate/export/logto-config.js +0 -264
  284. package/dist/migrate/export/logto-config.js.map +0 -1
  285. package/dist/migrate/export/logto.d.ts +0 -150
  286. package/dist/migrate/export/logto.js +0 -809
  287. package/dist/migrate/export/logto.js.map +0 -1
  288. package/dist/migrate/export/magic-config.d.ts +0 -14
  289. package/dist/migrate/export/magic-config.js +0 -28
  290. package/dist/migrate/export/magic-config.js.map +0 -1
  291. package/dist/migrate/export/magic.d.ts +0 -31
  292. package/dist/migrate/export/magic.js +0 -93
  293. package/dist/migrate/export/magic.js.map +0 -1
  294. package/dist/migrate/export/mini-yaml.d.ts +0 -19
  295. package/dist/migrate/export/mini-yaml.js +0 -581
  296. package/dist/migrate/export/mini-yaml.js.map +0 -1
  297. package/dist/migrate/export/nhost-config.d.ts +0 -26
  298. package/dist/migrate/export/nhost-config.js +0 -360
  299. package/dist/migrate/export/nhost-config.js.map +0 -1
  300. package/dist/migrate/export/nhost.d.ts +0 -64
  301. package/dist/migrate/export/nhost.js +0 -304
  302. package/dist/migrate/export/nhost.js.map +0 -1
  303. package/dist/migrate/export/okta-config.d.ts +0 -30
  304. package/dist/migrate/export/okta-config.js +0 -205
  305. package/dist/migrate/export/okta-config.js.map +0 -1
  306. package/dist/migrate/export/okta.d.ts +0 -43
  307. package/dist/migrate/export/okta.js +0 -337
  308. package/dist/migrate/export/okta.js.map +0 -1
  309. package/dist/migrate/export/onelogin.d.ts +0 -22
  310. package/dist/migrate/export/onelogin.js +0 -123
  311. package/dist/migrate/export/onelogin.js.map +0 -1
  312. package/dist/migrate/export/ory-config.d.ts +0 -58
  313. package/dist/migrate/export/ory-config.js +0 -451
  314. package/dist/migrate/export/ory-config.js.map +0 -1
  315. package/dist/migrate/export/ory.d.ts +0 -81
  316. package/dist/migrate/export/ory.js +0 -555
  317. package/dist/migrate/export/ory.js.map +0 -1
  318. package/dist/migrate/export/password-detect.d.ts +0 -29
  319. package/dist/migrate/export/password-detect.js +0 -81
  320. package/dist/migrate/export/password-detect.js.map +0 -1
  321. package/dist/migrate/export/pingone.d.ts +0 -36
  322. package/dist/migrate/export/pingone.js +0 -218
  323. package/dist/migrate/export/pingone.js.map +0 -1
  324. package/dist/migrate/export/plugin-kit.d.ts +0 -25
  325. package/dist/migrate/export/plugin-kit.js +0 -82
  326. package/dist/migrate/export/plugin-kit.js.map +0 -1
  327. package/dist/migrate/export/pocketbase-config.d.ts +0 -28
  328. package/dist/migrate/export/pocketbase-config.js +0 -180
  329. package/dist/migrate/export/pocketbase-config.js.map +0 -1
  330. package/dist/migrate/export/pocketbase.d.ts +0 -52
  331. package/dist/migrate/export/pocketbase.js +0 -243
  332. package/dist/migrate/export/pocketbase.js.map +0 -1
  333. package/dist/migrate/export/project-files.d.ts +0 -15
  334. package/dist/migrate/export/project-files.js +0 -43
  335. package/dist/migrate/export/project-files.js.map +0 -1
  336. package/dist/migrate/export/propelauth-config.d.ts +0 -18
  337. package/dist/migrate/export/propelauth-config.js +0 -58
  338. package/dist/migrate/export/propelauth-config.js.map +0 -1
  339. package/dist/migrate/export/propelauth-harness.test-helper.d.ts +0 -62
  340. package/dist/migrate/export/propelauth-harness.test-helper.js +0 -109
  341. package/dist/migrate/export/propelauth-harness.test-helper.js.map +0 -1
  342. package/dist/migrate/export/propelauth.d.ts +0 -48
  343. package/dist/migrate/export/propelauth.js +0 -255
  344. package/dist/migrate/export/propelauth.js.map +0 -1
  345. package/dist/migrate/export/record-set.d.ts +0 -44
  346. package/dist/migrate/export/record-set.js +0 -98
  347. package/dist/migrate/export/record-set.js.map +0 -1
  348. package/dist/migrate/export/source-lines.d.ts +0 -17
  349. package/dist/migrate/export/source-lines.js +0 -43
  350. package/dist/migrate/export/source-lines.js.map +0 -1
  351. package/dist/migrate/export/sso-metadata.d.ts +0 -47
  352. package/dist/migrate/export/sso-metadata.js +0 -180
  353. package/dist/migrate/export/sso-metadata.js.map +0 -1
  354. package/dist/migrate/export/stytch-config.d.ts +0 -22
  355. package/dist/migrate/export/stytch-config.js +0 -102
  356. package/dist/migrate/export/stytch-config.js.map +0 -1
  357. package/dist/migrate/export/stytch.d.ts +0 -68
  358. package/dist/migrate/export/stytch.js +0 -510
  359. package/dist/migrate/export/stytch.js.map +0 -1
  360. package/dist/migrate/export/supabase-config.d.ts +0 -48
  361. package/dist/migrate/export/supabase-config.js +0 -408
  362. package/dist/migrate/export/supabase-config.js.map +0 -1
  363. package/dist/migrate/export/supabase.d.ts +0 -86
  364. package/dist/migrate/export/supabase.js +0 -524
  365. package/dist/migrate/export/supabase.js.map +0 -1
  366. package/dist/migrate/export/supertokens-config.d.ts +0 -20
  367. package/dist/migrate/export/supertokens-config.js +0 -150
  368. package/dist/migrate/export/supertokens-config.js.map +0 -1
  369. package/dist/migrate/export/supertokens.d.ts +0 -125
  370. package/dist/migrate/export/supertokens.js +0 -464
  371. package/dist/migrate/export/supertokens.js.map +0 -1
  372. package/dist/migrate/export/table.d.ts +0 -35
  373. package/dist/migrate/export/table.js +0 -248
  374. package/dist/migrate/export/table.js.map +0 -1
  375. package/dist/migrate/export/translate-kit.d.ts +0 -46
  376. package/dist/migrate/export/translate-kit.js +0 -148
  377. package/dist/migrate/export/translate-kit.js.map +0 -1
  378. package/dist/migrate/export/userfront-config.d.ts +0 -15
  379. package/dist/migrate/export/userfront-config.js +0 -49
  380. package/dist/migrate/export/userfront-config.js.map +0 -1
  381. package/dist/migrate/export/userfront.d.ts +0 -38
  382. package/dist/migrate/export/userfront.js +0 -189
  383. package/dist/migrate/export/userfront.js.map +0 -1
  384. package/dist/migrate/export/vendor-http.d.ts +0 -46
  385. package/dist/migrate/export/vendor-http.js +0 -138
  386. package/dist/migrate/export/vendor-http.js.map +0 -1
  387. package/dist/migrate/export/workos-config.d.ts +0 -23
  388. package/dist/migrate/export/workos-config.js +0 -125
  389. package/dist/migrate/export/workos-config.js.map +0 -1
  390. package/dist/migrate/export/workos.d.ts +0 -46
  391. package/dist/migrate/export/workos.js +0 -272
  392. package/dist/migrate/export/workos.js.map +0 -1
  393. package/dist/migrate/export/zip.d.ts +0 -8
  394. package/dist/migrate/export/zip.js +0 -66
  395. package/dist/migrate/export/zip.js.map +0 -1
  396. package/dist/migrate/export/zitadel-config.d.ts +0 -37
  397. package/dist/migrate/export/zitadel-config.js +0 -279
  398. package/dist/migrate/export/zitadel-config.js.map +0 -1
  399. package/dist/migrate/export/zitadel.d.ts +0 -82
  400. package/dist/migrate/export/zitadel.js +0 -447
  401. package/dist/migrate/export/zitadel.js.map +0 -1
  402. package/dist/migrate/firebase/plugin.d.ts +0 -2
  403. package/dist/migrate/firebase/plugin.js +0 -152
  404. package/dist/migrate/firebase/plugin.js.map +0 -1
  405. package/dist/migrate/framework/builtins.d.ts +0 -2
  406. package/dist/migrate/framework/builtins.js +0 -52
  407. package/dist/migrate/framework/builtins.js.map +0 -1
  408. package/dist/migrate/framework/commands.d.ts +0 -20
  409. package/dist/migrate/framework/commands.js +0 -58
  410. package/dist/migrate/framework/commands.js.map +0 -1
  411. package/dist/migrate/framework/custom.d.ts +0 -12
  412. package/dist/migrate/framework/custom.js +0 -96
  413. package/dist/migrate/framework/custom.js.map +0 -1
  414. package/dist/migrate/framework/orchestrator.d.ts +0 -113
  415. package/dist/migrate/framework/orchestrator.js +0 -532
  416. package/dist/migrate/framework/orchestrator.js.map +0 -1
  417. package/dist/migrate/framework/plugin.d.ts +0 -167
  418. package/dist/migrate/framework/plugin.js +0 -3
  419. package/dist/migrate/framework/plugin.js.map +0 -1
  420. package/dist/migrate/framework/registry.d.ts +0 -11
  421. package/dist/migrate/framework/registry.js +0 -44
  422. package/dist/migrate/framework/registry.js.map +0 -1
  423. package/dist/migrate/framework/report.d.ts +0 -17
  424. package/dist/migrate/framework/report.js +0 -103
  425. package/dist/migrate/framework/report.js.map +0 -1
  426. package/dist/migrate/frameworks/plugins.d.ts +0 -29
  427. package/dist/migrate/frameworks/plugins.js +0 -402
  428. package/dist/migrate/frameworks/plugins.js.map +0 -1
  429. package/dist/migrate/frameworks/report.d.ts +0 -92
  430. package/dist/migrate/frameworks/report.js +0 -207
  431. package/dist/migrate/frameworks/report.js.map +0 -1
  432. package/dist/migrate/frameworks/translate-js.d.ts +0 -5
  433. package/dist/migrate/frameworks/translate-js.js +0 -503
  434. package/dist/migrate/frameworks/translate-js.js.map +0 -1
  435. package/dist/migrate/frameworks/translate-rails-django.d.ts +0 -3
  436. package/dist/migrate/frameworks/translate-rails-django.js +0 -1391
  437. package/dist/migrate/frameworks/translate-rails-django.js.map +0 -1
  438. package/dist/migrate/frontegg/plugin.d.ts +0 -2
  439. package/dist/migrate/frontegg/plugin.js +0 -78
  440. package/dist/migrate/frontegg/plugin.js.map +0 -1
  441. package/dist/migrate/fusionauth/plugin.d.ts +0 -2
  442. package/dist/migrate/fusionauth/plugin.js +0 -109
  443. package/dist/migrate/fusionauth/plugin.js.map +0 -1
  444. package/dist/migrate/hanko/plugin.d.ts +0 -2
  445. package/dist/migrate/hanko/plugin.js +0 -100
  446. package/dist/migrate/hanko/plugin.js.map +0 -1
  447. package/dist/migrate/keycloak/plugin.d.ts +0 -2
  448. package/dist/migrate/keycloak/plugin.js +0 -148
  449. package/dist/migrate/keycloak/plugin.js.map +0 -1
  450. package/dist/migrate/kinde/plugin.d.ts +0 -2
  451. package/dist/migrate/kinde/plugin.js +0 -105
  452. package/dist/migrate/kinde/plugin.js.map +0 -1
  453. package/dist/migrate/ldap/plugin.d.ts +0 -2
  454. package/dist/migrate/ldap/plugin.js +0 -73
  455. package/dist/migrate/ldap/plugin.js.map +0 -1
  456. package/dist/migrate/logto/plugin.d.ts +0 -2
  457. package/dist/migrate/logto/plugin.js +0 -131
  458. package/dist/migrate/logto/plugin.js.map +0 -1
  459. package/dist/migrate/magic/plugin.d.ts +0 -2
  460. package/dist/migrate/magic/plugin.js +0 -56
  461. package/dist/migrate/magic/plugin.js.map +0 -1
  462. package/dist/migrate/nhost/plugin.d.ts +0 -2
  463. package/dist/migrate/nhost/plugin.js +0 -115
  464. package/dist/migrate/nhost/plugin.js.map +0 -1
  465. package/dist/migrate/oidc/plugin.d.ts +0 -2
  466. package/dist/migrate/oidc/plugin.js +0 -73
  467. package/dist/migrate/oidc/plugin.js.map +0 -1
  468. package/dist/migrate/okta/plugin.d.ts +0 -2
  469. package/dist/migrate/okta/plugin.js +0 -105
  470. package/dist/migrate/okta/plugin.js.map +0 -1
  471. package/dist/migrate/onelogin/plugin.d.ts +0 -2
  472. package/dist/migrate/onelogin/plugin.js +0 -61
  473. package/dist/migrate/onelogin/plugin.js.map +0 -1
  474. package/dist/migrate/ory/plugin.d.ts +0 -2
  475. package/dist/migrate/ory/plugin.js +0 -186
  476. package/dist/migrate/ory/plugin.js.map +0 -1
  477. package/dist/migrate/ping-identity/plugin.d.ts +0 -2
  478. package/dist/migrate/ping-identity/plugin.js +0 -100
  479. package/dist/migrate/ping-identity/plugin.js.map +0 -1
  480. package/dist/migrate/pocketbase/plugin.d.ts +0 -2
  481. package/dist/migrate/pocketbase/plugin.js +0 -99
  482. package/dist/migrate/pocketbase/plugin.js.map +0 -1
  483. package/dist/migrate/propelauth/plugin.d.ts +0 -2
  484. package/dist/migrate/propelauth/plugin.js +0 -65
  485. package/dist/migrate/propelauth/plugin.js.map +0 -1
  486. package/dist/migrate/saml/plugin.d.ts +0 -2
  487. package/dist/migrate/saml/plugin.js +0 -79
  488. package/dist/migrate/saml/plugin.js.map +0 -1
  489. package/dist/migrate/stytch/plugin.d.ts +0 -2
  490. package/dist/migrate/stytch/plugin.js +0 -97
  491. package/dist/migrate/stytch/plugin.js.map +0 -1
  492. package/dist/migrate/supabase/plugin.d.ts +0 -2
  493. package/dist/migrate/supabase/plugin.js +0 -149
  494. package/dist/migrate/supabase/plugin.js.map +0 -1
  495. package/dist/migrate/supertokens/plugin.d.ts +0 -2
  496. package/dist/migrate/supertokens/plugin.js +0 -114
  497. package/dist/migrate/supertokens/plugin.js.map +0 -1
  498. package/dist/migrate/user-table/plugin.d.ts +0 -2
  499. package/dist/migrate/user-table/plugin.js +0 -62
  500. package/dist/migrate/user-table/plugin.js.map +0 -1
  501. package/dist/migrate/userfront/plugin.d.ts +0 -2
  502. package/dist/migrate/userfront/plugin.js +0 -60
  503. package/dist/migrate/userfront/plugin.js.map +0 -1
  504. package/dist/migrate/workos/plugin.d.ts +0 -2
  505. package/dist/migrate/workos/plugin.js +0 -81
  506. package/dist/migrate/workos/plugin.js.map +0 -1
  507. package/dist/migrate/zitadel/plugin.d.ts +0 -2
  508. package/dist/migrate/zitadel/plugin.js +0 -114
  509. package/dist/migrate/zitadel/plugin.js.map +0 -1
  510. package/dist/output.d.ts +0 -41
  511. package/dist/output.js +0 -72
  512. package/dist/output.js.map +0 -1
  513. package/dist/project.d.ts +0 -64
  514. package/dist/project.js +0 -86
  515. package/dist/project.js.map +0 -1
  516. package/dist/prompt.d.ts +0 -15
  517. package/dist/prompt.js +0 -46
  518. package/dist/prompt.js.map +0 -1
  519. package/dist/run.d.ts +0 -12
  520. package/dist/run.js +0 -157
  521. package/dist/run.js.map +0 -1
  522. package/dist/secrets.d.ts +0 -41
  523. package/dist/secrets.js +0 -142
  524. package/dist/secrets.js.map +0 -1
  525. package/dist/serialize.d.ts +0 -30
  526. package/dist/serialize.js +0 -131
  527. package/dist/serialize.js.map +0 -1
  528. package/dist/version.d.ts +0 -7
  529. package/dist/version.js +0 -21
  530. package/dist/version.js.map +0 -1
@@ -1,150 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchSupertokensConfig = fetchSupertokensConfig;
4
- exports.translateSupertokensConfig = translateSupertokensConfig;
5
- const supertokens_1 = require("./supertokens");
6
- const record_set_1 = require("./record-set");
7
- const translate_kit_1 = require("./translate-kit");
8
- const vendor_http_1 = require("./vendor-http");
9
- async function fetchSupertokensConfig(http, origin, appId) {
10
- let tenants = [];
11
- try {
12
- tenants = await (0, supertokens_1.listTenants)(http, appId);
13
- }
14
- catch (err) {
15
- if (!(err instanceof vendor_http_1.VendorApiError) || ![401, 403, 404, 501].includes(err.status))
16
- throw err;
17
- }
18
- // A core without the multitenancy listing still has the public tenant's single-tenant view.
19
- if (!tenants.length) {
20
- try {
21
- const { body } = await http.get(`${(0, supertokens_1.corePrefix)(appId, 'public')}/recipe/multitenancy/tenant?tenantId=public`);
22
- if ((0, record_set_1.isObj)(body))
23
- tenants = [body];
24
- }
25
- catch (err) {
26
- if (!(err instanceof vendor_http_1.VendorApiError) || ![401, 403, 404, 501].includes(err.status))
27
- throw err;
28
- }
29
- }
30
- return { origin, appId, tenants };
31
- }
32
- const enabled = (v) => (0, record_set_1.isObj)(v) && v.enabled === true;
33
- const num = (v) => (typeof v === 'number' && Number.isFinite(v) ? v : undefined);
34
- /** Core defaults when the tenant's config does not override them. */
35
- const DEFAULT_REFRESH_MINUTES = 144_000;
36
- function translateSupertokensConfig(snap) {
37
- const b = new translate_kit_1.ConfigBuilder();
38
- const pub = snap.tenants.find((t) => (0, record_set_1.str)(t.tenantId) === 'public') ?? snap.tenants[0];
39
- if (!pub) {
40
- b.add('manual', 'core', 'tenant list', 'The core did not return its tenants (check the API key): nothing to translate. Your recipes live in supertokens.init in your backend; list them by hand.');
41
- }
42
- else {
43
- const first = (0, record_set_1.strs)(pub.firstFactors);
44
- const hasFirst = (...f) => f.some((x) => first.includes(x));
45
- // firstFactors is absent on older cores: fall back to the recipes' enabled flags.
46
- const legacy = first.length === 0;
47
- // ── recipes and first factors ──
48
- if (enabled(pub.emailPassword) && (legacy || hasFirst('emailpassword'))) {
49
- b.set('strategies.password', true);
50
- b.add('differs', 'recipes emailpassword', 'emailPassword.enabled', 'Password sign-in. The core API never returns password hashes: export from the core database (bcrypt and Argon2 verify as they are) or use the supertokens lazy-migration preset.', 'auth_config.strategies.password');
51
- }
52
- if (enabled(pub.passwordless)) {
53
- if (legacy || hasFirst('otp-email')) {
54
- b.set('strategies.emailCode', true);
55
- b.add('mapped', 'recipes passwordless', 'firstFactors otp-email', 'Email one-time codes.', 'auth_config.strategies.emailCode');
56
- }
57
- if (legacy || hasFirst('link-email')) {
58
- b.set('strategies.emailLink', true);
59
- b.add('mapped', 'recipes passwordless', 'firstFactors link-email', 'Email magic links.', 'auth_config.strategies.emailLink');
60
- }
61
- if (legacy || hasFirst('otp-phone')) {
62
- b.set('strategies.phoneCode', true);
63
- b.add('mapped', 'recipes passwordless', 'firstFactors otp-phone', 'SMS codes (bring your own SMS provider).', 'auth_config.strategies.phoneCode');
64
- }
65
- if (hasFirst('link-phone'))
66
- b.add('differs', 'recipes passwordless', 'firstFactors link-phone', 'SMS magic links have no Atlas counterpart: use SMS codes.', 'auth_config.strategies.phoneCode');
67
- }
68
- // ── third-party providers ──
69
- const providers = (0, record_set_1.isObj)(pub.thirdParty) ? (0, record_set_1.objs)(pub.thirdParty.providers) : [];
70
- if (enabled(pub.thirdParty) || providers.length) {
71
- for (const p of providers) {
72
- const id = (0, record_set_1.str)(p.thirdPartyId) ?? '';
73
- const name = (0, record_set_1.str)(p.name) ?? id;
74
- const clients = (0, record_set_1.objs)(p.clients);
75
- const client = clients[0];
76
- const key = (0, translate_kit_1.socialKey)(id);
77
- if (!key) {
78
- b.add('manual', 'recipes thirdparty', `${name} (${id})`, 'No built-in Atlas provider: add it as a custom OAuth provider (or an SSO connection for SAML via Boxy).', 'custom_oauth_providers');
79
- continue;
80
- }
81
- b.socialProvider({ atlasKey: key, vendorName: name, area: 'recipes thirdparty', setting: `${name} (${id})`, clientId: (0, record_set_1.str)(client?.clientId), scopes: (0, record_set_1.strs)(client?.scope) });
82
- if (clients.length > 1)
83
- b.add('differs', 'recipes thirdparty', `${name} clients`, `${clients.length} OAuth clients (web, mobile…): Atlas keeps one per provider; add the others as native-app credentials.`, `oauth_providers ${key}`);
84
- }
85
- }
86
- // ── multi-factor ──
87
- const second = (0, record_set_1.strs)(pub.requiredSecondaryFactors);
88
- if (second.includes('totp')) {
89
- b.set('mfa.factors.totp', true);
90
- b.add('mapped', 'recipes multifactorauth', 'requiredSecondaryFactors totp', 'Authenticator apps; verified TOTP devices move with a database export.', 'auth_config.mfa.factors.totp');
91
- }
92
- for (const f of second.filter((x) => x !== 'totp')) {
93
- const channel = f === 'otp-email' ? 'emailCode' : null;
94
- if (channel) {
95
- b.set('mfa.factors.emailCode', true);
96
- b.add('mapped', 'recipes multifactorauth', `requiredSecondaryFactors ${f}`, 'Email code as a second factor.', 'auth_config.mfa.factors.emailCode');
97
- }
98
- else {
99
- b.add('differs', 'recipes multifactorauth', `requiredSecondaryFactors ${f}`, 'Atlas recommends authenticator apps or passkeys as the second factor; enable the factors you want in auth_config.mfa.', 'auth_config.mfa');
100
- }
101
- }
102
- if (second.length) {
103
- b.set('mfaPolicy', 'required');
104
- b.add('differs', 'recipes multifactorauth', 'requiredSecondaryFactors', 'A second factor on every sign-in. If your backend decides per user (the MFA recipe\'s getMFARequirementsForAuth override), set the policy to optional and use step-up for the sensitive routes.', 'auth_config.mfaPolicy');
105
- }
106
- else if ((0, record_set_1.strs)(pub.firstFactors).length) {
107
- b.add('manual', 'recipes multifactorauth', 'getMFARequirementsForAuth override', 'MFA requirements set in code (supertokens.init) are not visible to the core: port them to the Atlas MFA policy or step-up rules.', 'auth_config.mfaPolicy');
108
- }
109
- // ── core configuration ──
110
- const core = (0, record_set_1.isObj)(pub.coreConfig) ? pub.coreConfig : {};
111
- const refresh = num(core.refresh_token_validity) ?? DEFAULT_REFRESH_MINUTES;
112
- b.set('session.absoluteMs', (0, translate_kit_1.clampSessionMs)(refresh * 60_000));
113
- b.add('mapped', 'core config', 'refresh_token_validity', `${refresh} minutes (the session lives as long as its refresh token); Atlas caps a session at 90 days.`, 'auth_config.session.absoluteMs');
114
- const access = num(core.access_token_validity);
115
- if (access !== undefined)
116
- b.add('differs', 'core config', 'access_token_validity', `SuperTokens access tokens lived ${access}s. Atlas session tokens are short-lived and refreshed by its SDKs (auth_config.session.jwtTtlSeconds).`, 'auth_config.session.jwtTtlSeconds');
117
- const codeLife = num(core.passwordless_code_lifetime);
118
- if (codeLife !== undefined) {
119
- const minutes = Math.max(1, Math.round(codeLife / 60_000));
120
- b.set('verification.emailCode.ttlMinutes', minutes);
121
- b.add('mapped', 'core config', 'passwordless_code_lifetime', `Codes live ${minutes} minute(s).`, 'auth_config.verification.emailCode.ttlMinutes');
122
- }
123
- const attempts = num(core.passwordless_max_code_input_attempts);
124
- if (attempts !== undefined) {
125
- b.set('verification.emailCode.maxAttempts', attempts);
126
- b.add('mapped', 'core config', 'passwordless_max_code_input_attempts', `${attempts} attempts per code.`, 'auth_config.verification.emailCode.maxAttempts');
127
- }
128
- for (const k of ['password_reset_token_lifetime', 'email_verification_token_lifetime']) {
129
- if (num(core[k]) !== undefined)
130
- b.add('differs', 'core config', k, 'Atlas link and code lifetimes are instance settings; review auth_config.verification.', 'auth_config.verification');
131
- }
132
- if (core.totp_max_attempts !== undefined || core.totp_rate_limit_cooldown_sec !== undefined) {
133
- b.add('differs', 'core config', 'totp_max_attempts / totp_rate_limit_cooldown_sec', 'Atlas throttles failed second-factor attempts per account and IP.', 'auth_config.rateLimit');
134
- }
135
- // ── other tenants ──
136
- const others = snap.tenants.filter((t) => t !== pub);
137
- for (const t of others) {
138
- b.add('differs', `tenants ${(0, record_set_1.str)(t.tenantId) ?? '?'}`, 'tenant', 'A tenant becomes an organization with the data export; its own enabled recipes and providers are not translated: configure per-organization SSO connections for them.', 'organizations');
139
- }
140
- }
141
- // ── what the core never sees ──
142
- b.add('manual', 'backend config', 'supertokens.init override functions', 'Recipe overrides (custom sign-up rules, claims, email and SMS delivery) live in your backend: port sign-up rules to Atlas actions, claims to a JWT template, and delivery to your own email / SMS provider.', 'actions');
143
- b.add('manual', 'backend config', 'EmailVerification mode (REQUIRED / OPTIONAL)', 'The mode is set in supertokens.init, not in the core: set auth_config.requireEmailVerification to match it.', 'auth_config.requireEmailVerification');
144
- b.add('manual', 'backend config', 'appInfo (apiDomain, websiteDomain, cookieDomain)', 'Add your website origin to the instance allowed origins; set the cross-subdomain cookie setting if you used cookieDomain.', 'instance.allowed_origins');
145
- // The bridge needs the app's API domain (apiDomain), not the core's address: the plugin asks for it.
146
- return b.result(`SuperTokens core ${snap.origin} (app ${snap.appId})`, {
147
- lazy: { preset: 'supertokens', config: { base_url: snap.origin } },
148
- });
149
- }
150
- //# sourceMappingURL=supertokens-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"supertokens-config.js","sourceRoot":"","sources":["../../../src/migrate/export/supertokens-config.ts"],"names":[],"mappings":";;AAsBA,wDAiBC;AAQD,gEAgHC;AA9JD,+CAAwD;AACxD,6CAAgE;AAChE,mDAA2E;AAC3E,+CAAgE;AAkBzD,KAAK,UAAU,sBAAsB,CAAC,IAAgB,EAAE,MAAc,EAAE,KAAa;IAC1F,IAAI,OAAO,GAAU,EAAE,CAAC;IACxB,IAAI,CAAC;QACH,OAAO,GAAG,MAAM,IAAA,yBAAW,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC3C,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,CAAC,GAAG,YAAY,4BAAc,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;YAAE,MAAM,GAAG,CAAC;IAChG,CAAC;IACD,4FAA4F;IAC5F,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QACpB,IAAI,CAAC;YACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,GAAG,CAAM,GAAG,IAAA,wBAAU,EAAC,KAAK,EAAE,QAAQ,CAA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EAAE,uBAAuB,CAAC,CAAC;QACpL,CAAC;QACD,sBAAsB;QACtB,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;QACrD,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;YACvB,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,IAAA,gBAAG,EAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,uKAAuK,EAAE,eAAe,CAAC,CAAC;QAC5P,CAAC;IACH,CAAC;IAED,iCAAiC;IACjC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,gBAAgB,EAAE,qCAAqC,EAAE,6MAA6M,EAAE,SAAS,CAAC,CAAC;IACnS,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,gBAAgB,EAAE,8CAA8C,EAAE,6GAA6G,EAAE,sCAAsC,CAAC,CAAC;IACzO,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,gBAAgB,EAAE,kDAAkD,EAAE,2HAA2H,EAAE,0BAA0B,CAAC,CAAC;IAE/O,qGAAqG;IACrG,OAAO,CAAC,CAAC,MAAM,CAAC,oBAAoB,IAAI,CAAC,MAAM,SAAS,IAAI,CAAC,KAAK,GAAG,EAAE;QACrE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE;KACnE,CAAC,CAAC;AACL,CAAC"}
@@ -1,125 +0,0 @@
1
- import type { PasswordHash, Timestamp } from '@atlasauth/migrate';
2
- import { type Tables } from './frameworks/tables';
3
- import { RecordSet, type Obj } from './record-set';
4
- import { VendorHttp } from './vendor-http';
5
- /**
6
- * `atlas migrate export supertokens` — a SuperTokens core (self-hosted, or the
7
- * managed service) onto the canonical bundle models. Two ways in:
8
- *
9
- * - a DATABASE DUMP of the core (one file per table, made with
10
- * `psql \copy … csv header`, see the guide): everything the core keeps —
11
- * password hashes (bcrypt, Argon2), TOTP device secrets, email verification
12
- * state, user metadata, roles, tenants, user id mappings;
13
- * - the core's HTTP API with its API key (`GET /users`, `/recipe/user/…`,
14
- * `/recipe/roles`, `/recipe/multitenancy/tenant/list`): users, linked
15
- * login methods, verified flags, metadata, roles and tenants. The API never
16
- * returns password hashes or TOTP secrets: those users move by lazy
17
- * migration / enrol again.
18
- *
19
- * What maps where:
20
- * - users: one Atlas user per SuperTokens PRIMARY user (account linking
21
- * folds emailpassword, thirdparty and passwordless login methods into one);
22
- * the id is the id the app sees (`userid_mapping` external id when set), the
23
- * `sub` of every access token;
24
- * - emails (verified from `emailverification_verified_emails`; passwordless
25
- * addresses and phone numbers are verified by the sign-in itself);
26
- * - passwords: bcrypt and Argon2 PHC strings as they are; anything else is
27
- * counted and left for lazy migration;
28
- * - third-party links as identities (`thirdparty_users`);
29
- * - roles (app roles with their permissions; roles a user holds on the
30
- * public tenant) and tenants (every non-public tenant becomes an
31
- * organization, its users members, roles held there their organization role);
32
- * - verified TOTP devices as authenticator-app factors;
33
- * - user metadata as private metadata (names carried over when present).
34
- */
35
- export interface SupertokensExportOptions {
36
- /** A dump of the core database (one table per file). */
37
- tables?: Tables;
38
- /** The core's address (`https://st-dev-abc.aws.supertokens.io`, `http://core:3567`). */
39
- connectionUri?: string;
40
- /** The core's API key (`api-key` header). */
41
- apiKey?: string;
42
- /** The SuperTokens app id (multi-app cores); `public` by default. */
43
- appId?: string;
44
- /** The `table_names_prefix` the core runs with, when it has one. */
45
- tablePrefix?: string;
46
- fetchImpl?: typeof fetch;
47
- sleep?: (ms: number) => Promise<void>;
48
- onProgress?: (message: string) => void;
49
- }
50
- /** One way of signing in as seen by the core (a recipe user). */
51
- export interface LoginMethod {
52
- recipeUserId: string;
53
- recipeId: string;
54
- email?: string;
55
- phone?: string;
56
- thirdParty?: {
57
- id: string;
58
- userId: string;
59
- };
60
- passwordHash?: string;
61
- verified: boolean;
62
- timeJoined?: Timestamp;
63
- tenantIds: string[];
64
- }
65
- /** A primary user and the login methods linked to it. */
66
- export interface StUser {
67
- /** The primary user id (before any `userid_mapping`). */
68
- id: string;
69
- loginMethods: LoginMethod[];
70
- timeJoined?: Timestamp;
71
- }
72
- export interface TotpDevice {
73
- name?: string;
74
- secret?: string;
75
- period?: number;
76
- verified: boolean;
77
- }
78
- export interface SupertokensSnapshot {
79
- source: 'database' | 'api';
80
- users: StUser[];
81
- /** User id → metadata object. */
82
- metadata: Map<string, Obj>;
83
- /** Role → permissions. */
84
- roles: Map<string, string[]>;
85
- userRoles: Array<{
86
- userId: string;
87
- tenantId: string;
88
- role: string;
89
- }>;
90
- /** Tenant ids other than `public`. */
91
- tenants: string[];
92
- /** User id → TOTP devices (a database dump; the API carries no secrets). */
93
- totp: Map<string, TotpDevice[]>;
94
- /** User id → last active time (epoch ms). */
95
- lastActive: Map<string, number>;
96
- /** SuperTokens user id → the external id the app uses. */
97
- idMappings: Map<string, string>;
98
- warnings: string[];
99
- }
100
- export declare function exportSupertokens(opts: SupertokensExportOptions): Promise<RecordSet>;
101
- /** `st-dev-x.aws.supertokens.io` → `https://st-dev-x.aws.supertokens.io`; an http address is kept (a core inside your network). */
102
- export declare function normalizeCoreUri(raw: string): string;
103
- export declare function snapshotFromTables(tables: Tables, appId: string, prefix?: string): SupertokensSnapshot;
104
- /** A core client: the API key header, the app and tenant path prefixes. */
105
- export declare function supertokensHttp(o: {
106
- connectionUri: string;
107
- apiKey?: string;
108
- fetchImpl?: typeof fetch;
109
- sleep?: (ms: number) => Promise<void>;
110
- }): VendorHttp;
111
- /** `/appid-<app>/<tenant>` path prefix of an app and tenant on the core (public → none). */
112
- export declare function corePrefix(appId: string, tenantId: string): string;
113
- /** The tenants of an app, from the multitenancy recipe (older cores answer on the v1 path). */
114
- export declare function listTenants(http: VendorHttp, appId: string): Promise<Obj[]>;
115
- export declare function fetchSupertokensSnapshot(o: SupertokensExportOptions & {
116
- connectionUri: string;
117
- appId: string;
118
- onProgress: (m: string) => void;
119
- }): Promise<SupertokensSnapshot>;
120
- /** A SuperTokens `password_hash` → the bundle's password; null for a shape Atlas cannot verify. */
121
- export declare function mapSupertokensPassword(hash: unknown): PasswordHash | null;
122
- export declare function buildSupertokensRecordSet(snap: SupertokensSnapshot, o: {
123
- origin: string;
124
- appId: string;
125
- }): RecordSet;