@atlasauth/cli 0.23.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 (527) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/package.json +3 -3
  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 -90
  25. package/dist/commands/config.js +0 -1430
  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/errors.d.ts +0 -15
  115. package/dist/errors.js +0 -25
  116. package/dist/errors.js.map +0 -1
  117. package/dist/help.d.ts +0 -8
  118. package/dist/help.js +0 -868
  119. package/dist/help.js.map +0 -1
  120. package/dist/import/csv.d.ts +0 -6
  121. package/dist/import/csv.js +0 -63
  122. package/dist/import/csv.js.map +0 -1
  123. package/dist/import/vendors.d.ts +0 -57
  124. package/dist/import/vendors.js +0 -568
  125. package/dist/import/vendors.js.map +0 -1
  126. package/dist/index.d.ts +0 -32
  127. package/dist/index.js +0 -79
  128. package/dist/index.js.map +0 -1
  129. package/dist/io.d.ts +0 -21
  130. package/dist/io.js +0 -28
  131. package/dist/io.js.map +0 -1
  132. package/dist/migrate/appwrite/plugin.d.ts +0 -2
  133. package/dist/migrate/appwrite/plugin.js +0 -103
  134. package/dist/migrate/appwrite/plugin.js.map +0 -1
  135. package/dist/migrate/auth0/plugin.d.ts +0 -2
  136. package/dist/migrate/auth0/plugin.js +0 -126
  137. package/dist/migrate/auth0/plugin.js.map +0 -1
  138. package/dist/migrate/authentik/plugin.d.ts +0 -2
  139. package/dist/migrate/authentik/plugin.js +0 -135
  140. package/dist/migrate/authentik/plugin.js.map +0 -1
  141. package/dist/migrate/azure-ad-b2c/plugin.d.ts +0 -8
  142. package/dist/migrate/azure-ad-b2c/plugin.js +0 -165
  143. package/dist/migrate/azure-ad-b2c/plugin.js.map +0 -1
  144. package/dist/migrate/better-auth/integration.d.ts +0 -59
  145. package/dist/migrate/better-auth/integration.js +0 -81
  146. package/dist/migrate/better-auth/integration.js.map +0 -1
  147. package/dist/migrate/better-auth/orchestrator.d.ts +0 -43
  148. package/dist/migrate/better-auth/orchestrator.js +0 -525
  149. package/dist/migrate/better-auth/orchestrator.js.map +0 -1
  150. package/dist/migrate/better-auth/output.d.ts +0 -20
  151. package/dist/migrate/better-auth/output.js +0 -146
  152. package/dist/migrate/better-auth/output.js.map +0 -1
  153. package/dist/migrate/better-auth/translate.d.ts +0 -77
  154. package/dist/migrate/better-auth/translate.js +0 -1989
  155. package/dist/migrate/better-auth/translate.js.map +0 -1
  156. package/dist/migrate/clerk/plugin.d.ts +0 -2
  157. package/dist/migrate/clerk/plugin.js +0 -76
  158. package/dist/migrate/clerk/plugin.js.map +0 -1
  159. package/dist/migrate/cognito/plugin.d.ts +0 -5
  160. package/dist/migrate/cognito/plugin.js +0 -170
  161. package/dist/migrate/cognito/plugin.js.map +0 -1
  162. package/dist/migrate/corbado/plugin.d.ts +0 -2
  163. package/dist/migrate/corbado/plugin.js +0 -63
  164. package/dist/migrate/corbado/plugin.js.map +0 -1
  165. package/dist/migrate/descope/plugin.d.ts +0 -2
  166. package/dist/migrate/descope/plugin.js +0 -83
  167. package/dist/migrate/descope/plugin.js.map +0 -1
  168. package/dist/migrate/entra-external-id/plugin.d.ts +0 -8
  169. package/dist/migrate/entra-external-id/plugin.js +0 -12
  170. package/dist/migrate/entra-external-id/plugin.js.map +0 -1
  171. package/dist/migrate/export/appwrite-config.d.ts +0 -28
  172. package/dist/migrate/export/appwrite-config.js +0 -170
  173. package/dist/migrate/export/appwrite-config.js.map +0 -1
  174. package/dist/migrate/export/appwrite.d.ts +0 -51
  175. package/dist/migrate/export/appwrite.js +0 -288
  176. package/dist/migrate/export/appwrite.js.map +0 -1
  177. package/dist/migrate/export/auth0-config.d.ts +0 -29
  178. package/dist/migrate/export/auth0-config.js +0 -249
  179. package/dist/migrate/export/auth0-config.js.map +0 -1
  180. package/dist/migrate/export/auth0.d.ts +0 -62
  181. package/dist/migrate/export/auth0.js +0 -575
  182. package/dist/migrate/export/auth0.js.map +0 -1
  183. package/dist/migrate/export/authentik-config.d.ts +0 -45
  184. package/dist/migrate/export/authentik-config.js +0 -357
  185. package/dist/migrate/export/authentik-config.js.map +0 -1
  186. package/dist/migrate/export/authentik.d.ts +0 -110
  187. package/dist/migrate/export/authentik.js +0 -838
  188. package/dist/migrate/export/authentik.js.map +0 -1
  189. package/dist/migrate/export/azure-config.d.ts +0 -58
  190. package/dist/migrate/export/azure-config.js +0 -344
  191. package/dist/migrate/export/azure-config.js.map +0 -1
  192. package/dist/migrate/export/azure.d.ts +0 -85
  193. package/dist/migrate/export/azure.js +0 -373
  194. package/dist/migrate/export/azure.js.map +0 -1
  195. package/dist/migrate/export/clerk-config.d.ts +0 -26
  196. package/dist/migrate/export/clerk-config.js +0 -227
  197. package/dist/migrate/export/clerk-config.js.map +0 -1
  198. package/dist/migrate/export/clerk.d.ts +0 -46
  199. package/dist/migrate/export/clerk.js +0 -486
  200. package/dist/migrate/export/clerk.js.map +0 -1
  201. package/dist/migrate/export/cognito-config.d.ts +0 -25
  202. package/dist/migrate/export/cognito-config.js +0 -273
  203. package/dist/migrate/export/cognito-config.js.map +0 -1
  204. package/dist/migrate/export/cognito.d.ts +0 -103
  205. package/dist/migrate/export/cognito.js +0 -441
  206. package/dist/migrate/export/cognito.js.map +0 -1
  207. package/dist/migrate/export/corbado-config.d.ts +0 -20
  208. package/dist/migrate/export/corbado-config.js +0 -63
  209. package/dist/migrate/export/corbado-config.js.map +0 -1
  210. package/dist/migrate/export/corbado.d.ts +0 -37
  211. package/dist/migrate/export/corbado.js +0 -132
  212. package/dist/migrate/export/corbado.js.map +0 -1
  213. package/dist/migrate/export/descope.d.ts +0 -35
  214. package/dist/migrate/export/descope.js +0 -208
  215. package/dist/migrate/export/descope.js.map +0 -1
  216. package/dist/migrate/export/fake-vendor.test-helper.d.ts +0 -27
  217. package/dist/migrate/export/fake-vendor.test-helper.js +0 -41
  218. package/dist/migrate/export/fake-vendor.test-helper.js.map +0 -1
  219. package/dist/migrate/export/firebase-config.d.ts +0 -24
  220. package/dist/migrate/export/firebase-config.js +0 -215
  221. package/dist/migrate/export/firebase-config.js.map +0 -1
  222. package/dist/migrate/export/firebase.d.ts +0 -102
  223. package/dist/migrate/export/firebase.js +0 -464
  224. package/dist/migrate/export/firebase.js.map +0 -1
  225. package/dist/migrate/export/frameworks/app-users.d.ts +0 -42
  226. package/dist/migrate/export/frameworks/app-users.js +0 -161
  227. package/dist/migrate/export/frameworks/app-users.js.map +0 -1
  228. package/dist/migrate/export/frameworks/authjs.d.ts +0 -41
  229. package/dist/migrate/export/frameworks/authjs.js +0 -146
  230. package/dist/migrate/export/frameworks/authjs.js.map +0 -1
  231. package/dist/migrate/export/frameworks/devise.d.ts +0 -39
  232. package/dist/migrate/export/frameworks/devise.js +0 -218
  233. package/dist/migrate/export/frameworks/devise.js.map +0 -1
  234. package/dist/migrate/export/frameworks/django.d.ts +0 -45
  235. package/dist/migrate/export/frameworks/django.js +0 -315
  236. package/dist/migrate/export/frameworks/django.js.map +0 -1
  237. package/dist/migrate/export/frameworks/lucia.d.ts +0 -42
  238. package/dist/migrate/export/frameworks/lucia.js +0 -263
  239. package/dist/migrate/export/frameworks/lucia.js.map +0 -1
  240. package/dist/migrate/export/frameworks/tables.d.ts +0 -90
  241. package/dist/migrate/export/frameworks/tables.js +0 -325
  242. package/dist/migrate/export/frameworks/tables.js.map +0 -1
  243. package/dist/migrate/export/frameworks/webauthn.d.ts +0 -25
  244. package/dist/migrate/export/frameworks/webauthn.js +0 -130
  245. package/dist/migrate/export/frameworks/webauthn.js.map +0 -1
  246. package/dist/migrate/export/frontegg-config.d.ts +0 -29
  247. package/dist/migrate/export/frontegg-config.js +0 -238
  248. package/dist/migrate/export/frontegg-config.js.map +0 -1
  249. package/dist/migrate/export/frontegg.d.ts +0 -67
  250. package/dist/migrate/export/frontegg.js +0 -410
  251. package/dist/migrate/export/frontegg.js.map +0 -1
  252. package/dist/migrate/export/fusionauth-config.d.ts +0 -26
  253. package/dist/migrate/export/fusionauth-config.js +0 -226
  254. package/dist/migrate/export/fusionauth-config.js.map +0 -1
  255. package/dist/migrate/export/fusionauth.d.ts +0 -99
  256. package/dist/migrate/export/fusionauth.js +0 -642
  257. package/dist/migrate/export/fusionauth.js.map +0 -1
  258. package/dist/migrate/export/hanko-config.d.ts +0 -27
  259. package/dist/migrate/export/hanko-config.js +0 -265
  260. package/dist/migrate/export/hanko-config.js.map +0 -1
  261. package/dist/migrate/export/hanko.d.ts +0 -52
  262. package/dist/migrate/export/hanko.js +0 -605
  263. package/dist/migrate/export/hanko.js.map +0 -1
  264. package/dist/migrate/export/keycloak-config.d.ts +0 -19
  265. package/dist/migrate/export/keycloak-config.js +0 -219
  266. package/dist/migrate/export/keycloak-config.js.map +0 -1
  267. package/dist/migrate/export/keycloak.d.ts +0 -155
  268. package/dist/migrate/export/keycloak.js +0 -878
  269. package/dist/migrate/export/keycloak.js.map +0 -1
  270. package/dist/migrate/export/kinde-descope-config.d.ts +0 -38
  271. package/dist/migrate/export/kinde-descope-config.js +0 -172
  272. package/dist/migrate/export/kinde-descope-config.js.map +0 -1
  273. package/dist/migrate/export/kinde.d.ts +0 -57
  274. package/dist/migrate/export/kinde.js +0 -333
  275. package/dist/migrate/export/kinde.js.map +0 -1
  276. package/dist/migrate/export/ldap.d.ts +0 -53
  277. package/dist/migrate/export/ldap.js +0 -277
  278. package/dist/migrate/export/ldap.js.map +0 -1
  279. package/dist/migrate/export/logto-config.d.ts +0 -27
  280. package/dist/migrate/export/logto-config.js +0 -264
  281. package/dist/migrate/export/logto-config.js.map +0 -1
  282. package/dist/migrate/export/logto.d.ts +0 -150
  283. package/dist/migrate/export/logto.js +0 -809
  284. package/dist/migrate/export/logto.js.map +0 -1
  285. package/dist/migrate/export/magic-config.d.ts +0 -14
  286. package/dist/migrate/export/magic-config.js +0 -28
  287. package/dist/migrate/export/magic-config.js.map +0 -1
  288. package/dist/migrate/export/magic.d.ts +0 -31
  289. package/dist/migrate/export/magic.js +0 -93
  290. package/dist/migrate/export/magic.js.map +0 -1
  291. package/dist/migrate/export/mini-yaml.d.ts +0 -19
  292. package/dist/migrate/export/mini-yaml.js +0 -581
  293. package/dist/migrate/export/mini-yaml.js.map +0 -1
  294. package/dist/migrate/export/nhost-config.d.ts +0 -26
  295. package/dist/migrate/export/nhost-config.js +0 -360
  296. package/dist/migrate/export/nhost-config.js.map +0 -1
  297. package/dist/migrate/export/nhost.d.ts +0 -64
  298. package/dist/migrate/export/nhost.js +0 -304
  299. package/dist/migrate/export/nhost.js.map +0 -1
  300. package/dist/migrate/export/okta-config.d.ts +0 -30
  301. package/dist/migrate/export/okta-config.js +0 -205
  302. package/dist/migrate/export/okta-config.js.map +0 -1
  303. package/dist/migrate/export/okta.d.ts +0 -43
  304. package/dist/migrate/export/okta.js +0 -337
  305. package/dist/migrate/export/okta.js.map +0 -1
  306. package/dist/migrate/export/onelogin.d.ts +0 -22
  307. package/dist/migrate/export/onelogin.js +0 -123
  308. package/dist/migrate/export/onelogin.js.map +0 -1
  309. package/dist/migrate/export/ory-config.d.ts +0 -58
  310. package/dist/migrate/export/ory-config.js +0 -451
  311. package/dist/migrate/export/ory-config.js.map +0 -1
  312. package/dist/migrate/export/ory.d.ts +0 -81
  313. package/dist/migrate/export/ory.js +0 -555
  314. package/dist/migrate/export/ory.js.map +0 -1
  315. package/dist/migrate/export/password-detect.d.ts +0 -29
  316. package/dist/migrate/export/password-detect.js +0 -81
  317. package/dist/migrate/export/password-detect.js.map +0 -1
  318. package/dist/migrate/export/pingone.d.ts +0 -36
  319. package/dist/migrate/export/pingone.js +0 -218
  320. package/dist/migrate/export/pingone.js.map +0 -1
  321. package/dist/migrate/export/plugin-kit.d.ts +0 -25
  322. package/dist/migrate/export/plugin-kit.js +0 -82
  323. package/dist/migrate/export/plugin-kit.js.map +0 -1
  324. package/dist/migrate/export/pocketbase-config.d.ts +0 -28
  325. package/dist/migrate/export/pocketbase-config.js +0 -180
  326. package/dist/migrate/export/pocketbase-config.js.map +0 -1
  327. package/dist/migrate/export/pocketbase.d.ts +0 -52
  328. package/dist/migrate/export/pocketbase.js +0 -243
  329. package/dist/migrate/export/pocketbase.js.map +0 -1
  330. package/dist/migrate/export/project-files.d.ts +0 -15
  331. package/dist/migrate/export/project-files.js +0 -43
  332. package/dist/migrate/export/project-files.js.map +0 -1
  333. package/dist/migrate/export/propelauth-config.d.ts +0 -18
  334. package/dist/migrate/export/propelauth-config.js +0 -58
  335. package/dist/migrate/export/propelauth-config.js.map +0 -1
  336. package/dist/migrate/export/propelauth-harness.test-helper.d.ts +0 -62
  337. package/dist/migrate/export/propelauth-harness.test-helper.js +0 -109
  338. package/dist/migrate/export/propelauth-harness.test-helper.js.map +0 -1
  339. package/dist/migrate/export/propelauth.d.ts +0 -48
  340. package/dist/migrate/export/propelauth.js +0 -255
  341. package/dist/migrate/export/propelauth.js.map +0 -1
  342. package/dist/migrate/export/record-set.d.ts +0 -44
  343. package/dist/migrate/export/record-set.js +0 -98
  344. package/dist/migrate/export/record-set.js.map +0 -1
  345. package/dist/migrate/export/source-lines.d.ts +0 -17
  346. package/dist/migrate/export/source-lines.js +0 -43
  347. package/dist/migrate/export/source-lines.js.map +0 -1
  348. package/dist/migrate/export/sso-metadata.d.ts +0 -47
  349. package/dist/migrate/export/sso-metadata.js +0 -180
  350. package/dist/migrate/export/sso-metadata.js.map +0 -1
  351. package/dist/migrate/export/stytch-config.d.ts +0 -22
  352. package/dist/migrate/export/stytch-config.js +0 -102
  353. package/dist/migrate/export/stytch-config.js.map +0 -1
  354. package/dist/migrate/export/stytch.d.ts +0 -68
  355. package/dist/migrate/export/stytch.js +0 -510
  356. package/dist/migrate/export/stytch.js.map +0 -1
  357. package/dist/migrate/export/supabase-config.d.ts +0 -48
  358. package/dist/migrate/export/supabase-config.js +0 -408
  359. package/dist/migrate/export/supabase-config.js.map +0 -1
  360. package/dist/migrate/export/supabase.d.ts +0 -86
  361. package/dist/migrate/export/supabase.js +0 -524
  362. package/dist/migrate/export/supabase.js.map +0 -1
  363. package/dist/migrate/export/supertokens-config.d.ts +0 -20
  364. package/dist/migrate/export/supertokens-config.js +0 -150
  365. package/dist/migrate/export/supertokens-config.js.map +0 -1
  366. package/dist/migrate/export/supertokens.d.ts +0 -125
  367. package/dist/migrate/export/supertokens.js +0 -464
  368. package/dist/migrate/export/supertokens.js.map +0 -1
  369. package/dist/migrate/export/table.d.ts +0 -35
  370. package/dist/migrate/export/table.js +0 -248
  371. package/dist/migrate/export/table.js.map +0 -1
  372. package/dist/migrate/export/translate-kit.d.ts +0 -46
  373. package/dist/migrate/export/translate-kit.js +0 -148
  374. package/dist/migrate/export/translate-kit.js.map +0 -1
  375. package/dist/migrate/export/userfront-config.d.ts +0 -15
  376. package/dist/migrate/export/userfront-config.js +0 -49
  377. package/dist/migrate/export/userfront-config.js.map +0 -1
  378. package/dist/migrate/export/userfront.d.ts +0 -38
  379. package/dist/migrate/export/userfront.js +0 -189
  380. package/dist/migrate/export/userfront.js.map +0 -1
  381. package/dist/migrate/export/vendor-http.d.ts +0 -46
  382. package/dist/migrate/export/vendor-http.js +0 -138
  383. package/dist/migrate/export/vendor-http.js.map +0 -1
  384. package/dist/migrate/export/workos-config.d.ts +0 -23
  385. package/dist/migrate/export/workos-config.js +0 -125
  386. package/dist/migrate/export/workos-config.js.map +0 -1
  387. package/dist/migrate/export/workos.d.ts +0 -46
  388. package/dist/migrate/export/workos.js +0 -272
  389. package/dist/migrate/export/workos.js.map +0 -1
  390. package/dist/migrate/export/zip.d.ts +0 -8
  391. package/dist/migrate/export/zip.js +0 -66
  392. package/dist/migrate/export/zip.js.map +0 -1
  393. package/dist/migrate/export/zitadel-config.d.ts +0 -37
  394. package/dist/migrate/export/zitadel-config.js +0 -279
  395. package/dist/migrate/export/zitadel-config.js.map +0 -1
  396. package/dist/migrate/export/zitadel.d.ts +0 -82
  397. package/dist/migrate/export/zitadel.js +0 -447
  398. package/dist/migrate/export/zitadel.js.map +0 -1
  399. package/dist/migrate/firebase/plugin.d.ts +0 -2
  400. package/dist/migrate/firebase/plugin.js +0 -152
  401. package/dist/migrate/firebase/plugin.js.map +0 -1
  402. package/dist/migrate/framework/builtins.d.ts +0 -2
  403. package/dist/migrate/framework/builtins.js +0 -52
  404. package/dist/migrate/framework/builtins.js.map +0 -1
  405. package/dist/migrate/framework/commands.d.ts +0 -20
  406. package/dist/migrate/framework/commands.js +0 -58
  407. package/dist/migrate/framework/commands.js.map +0 -1
  408. package/dist/migrate/framework/custom.d.ts +0 -12
  409. package/dist/migrate/framework/custom.js +0 -96
  410. package/dist/migrate/framework/custom.js.map +0 -1
  411. package/dist/migrate/framework/orchestrator.d.ts +0 -113
  412. package/dist/migrate/framework/orchestrator.js +0 -532
  413. package/dist/migrate/framework/orchestrator.js.map +0 -1
  414. package/dist/migrate/framework/plugin.d.ts +0 -167
  415. package/dist/migrate/framework/plugin.js +0 -3
  416. package/dist/migrate/framework/plugin.js.map +0 -1
  417. package/dist/migrate/framework/registry.d.ts +0 -11
  418. package/dist/migrate/framework/registry.js +0 -44
  419. package/dist/migrate/framework/registry.js.map +0 -1
  420. package/dist/migrate/framework/report.d.ts +0 -17
  421. package/dist/migrate/framework/report.js +0 -103
  422. package/dist/migrate/framework/report.js.map +0 -1
  423. package/dist/migrate/frameworks/plugins.d.ts +0 -29
  424. package/dist/migrate/frameworks/plugins.js +0 -402
  425. package/dist/migrate/frameworks/plugins.js.map +0 -1
  426. package/dist/migrate/frameworks/report.d.ts +0 -92
  427. package/dist/migrate/frameworks/report.js +0 -207
  428. package/dist/migrate/frameworks/report.js.map +0 -1
  429. package/dist/migrate/frameworks/translate-js.d.ts +0 -5
  430. package/dist/migrate/frameworks/translate-js.js +0 -503
  431. package/dist/migrate/frameworks/translate-js.js.map +0 -1
  432. package/dist/migrate/frameworks/translate-rails-django.d.ts +0 -3
  433. package/dist/migrate/frameworks/translate-rails-django.js +0 -1391
  434. package/dist/migrate/frameworks/translate-rails-django.js.map +0 -1
  435. package/dist/migrate/frontegg/plugin.d.ts +0 -2
  436. package/dist/migrate/frontegg/plugin.js +0 -78
  437. package/dist/migrate/frontegg/plugin.js.map +0 -1
  438. package/dist/migrate/fusionauth/plugin.d.ts +0 -2
  439. package/dist/migrate/fusionauth/plugin.js +0 -109
  440. package/dist/migrate/fusionauth/plugin.js.map +0 -1
  441. package/dist/migrate/hanko/plugin.d.ts +0 -2
  442. package/dist/migrate/hanko/plugin.js +0 -100
  443. package/dist/migrate/hanko/plugin.js.map +0 -1
  444. package/dist/migrate/keycloak/plugin.d.ts +0 -2
  445. package/dist/migrate/keycloak/plugin.js +0 -148
  446. package/dist/migrate/keycloak/plugin.js.map +0 -1
  447. package/dist/migrate/kinde/plugin.d.ts +0 -2
  448. package/dist/migrate/kinde/plugin.js +0 -105
  449. package/dist/migrate/kinde/plugin.js.map +0 -1
  450. package/dist/migrate/ldap/plugin.d.ts +0 -2
  451. package/dist/migrate/ldap/plugin.js +0 -73
  452. package/dist/migrate/ldap/plugin.js.map +0 -1
  453. package/dist/migrate/logto/plugin.d.ts +0 -2
  454. package/dist/migrate/logto/plugin.js +0 -131
  455. package/dist/migrate/logto/plugin.js.map +0 -1
  456. package/dist/migrate/magic/plugin.d.ts +0 -2
  457. package/dist/migrate/magic/plugin.js +0 -56
  458. package/dist/migrate/magic/plugin.js.map +0 -1
  459. package/dist/migrate/nhost/plugin.d.ts +0 -2
  460. package/dist/migrate/nhost/plugin.js +0 -115
  461. package/dist/migrate/nhost/plugin.js.map +0 -1
  462. package/dist/migrate/oidc/plugin.d.ts +0 -2
  463. package/dist/migrate/oidc/plugin.js +0 -73
  464. package/dist/migrate/oidc/plugin.js.map +0 -1
  465. package/dist/migrate/okta/plugin.d.ts +0 -2
  466. package/dist/migrate/okta/plugin.js +0 -105
  467. package/dist/migrate/okta/plugin.js.map +0 -1
  468. package/dist/migrate/onelogin/plugin.d.ts +0 -2
  469. package/dist/migrate/onelogin/plugin.js +0 -61
  470. package/dist/migrate/onelogin/plugin.js.map +0 -1
  471. package/dist/migrate/ory/plugin.d.ts +0 -2
  472. package/dist/migrate/ory/plugin.js +0 -186
  473. package/dist/migrate/ory/plugin.js.map +0 -1
  474. package/dist/migrate/ping-identity/plugin.d.ts +0 -2
  475. package/dist/migrate/ping-identity/plugin.js +0 -100
  476. package/dist/migrate/ping-identity/plugin.js.map +0 -1
  477. package/dist/migrate/pocketbase/plugin.d.ts +0 -2
  478. package/dist/migrate/pocketbase/plugin.js +0 -99
  479. package/dist/migrate/pocketbase/plugin.js.map +0 -1
  480. package/dist/migrate/propelauth/plugin.d.ts +0 -2
  481. package/dist/migrate/propelauth/plugin.js +0 -65
  482. package/dist/migrate/propelauth/plugin.js.map +0 -1
  483. package/dist/migrate/saml/plugin.d.ts +0 -2
  484. package/dist/migrate/saml/plugin.js +0 -79
  485. package/dist/migrate/saml/plugin.js.map +0 -1
  486. package/dist/migrate/stytch/plugin.d.ts +0 -2
  487. package/dist/migrate/stytch/plugin.js +0 -97
  488. package/dist/migrate/stytch/plugin.js.map +0 -1
  489. package/dist/migrate/supabase/plugin.d.ts +0 -2
  490. package/dist/migrate/supabase/plugin.js +0 -149
  491. package/dist/migrate/supabase/plugin.js.map +0 -1
  492. package/dist/migrate/supertokens/plugin.d.ts +0 -2
  493. package/dist/migrate/supertokens/plugin.js +0 -114
  494. package/dist/migrate/supertokens/plugin.js.map +0 -1
  495. package/dist/migrate/user-table/plugin.d.ts +0 -2
  496. package/dist/migrate/user-table/plugin.js +0 -62
  497. package/dist/migrate/user-table/plugin.js.map +0 -1
  498. package/dist/migrate/userfront/plugin.d.ts +0 -2
  499. package/dist/migrate/userfront/plugin.js +0 -60
  500. package/dist/migrate/userfront/plugin.js.map +0 -1
  501. package/dist/migrate/workos/plugin.d.ts +0 -2
  502. package/dist/migrate/workos/plugin.js +0 -81
  503. package/dist/migrate/workos/plugin.js.map +0 -1
  504. package/dist/migrate/zitadel/plugin.d.ts +0 -2
  505. package/dist/migrate/zitadel/plugin.js +0 -114
  506. package/dist/migrate/zitadel/plugin.js.map +0 -1
  507. package/dist/output.d.ts +0 -41
  508. package/dist/output.js +0 -72
  509. package/dist/output.js.map +0 -1
  510. package/dist/project.d.ts +0 -64
  511. package/dist/project.js +0 -86
  512. package/dist/project.js.map +0 -1
  513. package/dist/prompt.d.ts +0 -15
  514. package/dist/prompt.js +0 -46
  515. package/dist/prompt.js.map +0 -1
  516. package/dist/run.d.ts +0 -12
  517. package/dist/run.js +0 -157
  518. package/dist/run.js.map +0 -1
  519. package/dist/secrets.d.ts +0 -41
  520. package/dist/secrets.js +0 -142
  521. package/dist/secrets.js.map +0 -1
  522. package/dist/serialize.d.ts +0 -30
  523. package/dist/serialize.js +0 -131
  524. package/dist/serialize.js.map +0 -1
  525. package/dist/version.d.ts +0 -7
  526. package/dist/version.js +0 -21
  527. package/dist/version.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/migrate/firebase/plugin.ts"],"names":[],"mappings":";;;AAAA,iDAAgH;AAChH,+DAAyF;AACzF,yCAAwC;AAExC,qDAA6E;AAE7E;;;;;;;;GAQG;AAEH,MAAM,OAAO,GAAmB,EAAE,IAAI,EAAE,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,yEAAyE,IAAI,IAAI,CAAC,CAAC;YAC/H,OAAO,UAAU,CAAC;QACpB,CAAC;QACD,IAAI,CAAC,CAAC,EAAE,CAAC;YACP,MAAM,IAAI,GAA2B,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;YAC5D,MAAM,OAAO,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACtC,IAAI,OAAO;gBAAE,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;YAC9C,MAAM,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YACzC,IAAI,MAAM;gBAAE,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;YAC7C,OAAO,IAAI,CAAC;QACd,CAAC;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,UAAU;QAClB,MAAM,CAAC,CAAC,EAAE,CAAC;YACT,MAAM,MAAM,GAA2B,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;YAC9D,MAAM,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACpC,IAAI,MAAM,IAAI,MAAM,KAAK,KAAK;gBAAE,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC;YAC1D,gGAAgG;YAChG,MAAM,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACrC,IAAI,MAAM;gBAAE,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;YACpC,OAAO,MAAM,CAAC;QAChB,CAAC;KACF;IACD,OAAO,EAAE,UAAU;CACpB,CAAC"}
@@ -1,2 +0,0 @@
1
- /** Register the built-in plugins (idempotent: an already registered vendor is left as it is). */
2
- export declare function registerBuiltInPlugins(): void;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerBuiltInPlugins = registerBuiltInPlugins;
4
- const plugin_1 = require("../ldap/plugin");
5
- const plugin_2 = require("../oidc/plugin");
6
- const plugin_3 = require("../onelogin/plugin");
7
- const plugin_4 = require("../ping-identity/plugin");
8
- const plugin_5 = require("../saml/plugin");
9
- const plugin_6 = require("../user-table/plugin");
10
- const plugin_7 = require("../auth0/plugin");
11
- const plugin_8 = require("../clerk/plugin");
12
- const plugin_9 = require("../descope/plugin");
13
- const plugin_10 = require("../kinde/plugin");
14
- const plugin_11 = require("../okta/plugin");
15
- const plugins_1 = require("../frameworks/plugins");
16
- const plugin_12 = require("../appwrite/plugin");
17
- const plugin_13 = require("../azure-ad-b2c/plugin");
18
- const plugin_14 = require("../cognito/plugin");
19
- const plugin_15 = require("../entra-external-id/plugin");
20
- const plugin_16 = require("../firebase/plugin");
21
- const plugin_17 = require("../nhost/plugin");
22
- const plugin_18 = require("../pocketbase/plugin");
23
- const plugin_19 = require("../supabase/plugin");
24
- const plugin_20 = require("../authentik/plugin");
25
- const plugin_21 = require("../fusionauth/plugin");
26
- const plugin_22 = require("../hanko/plugin");
27
- const plugin_23 = require("../keycloak/plugin");
28
- const plugin_24 = require("../logto/plugin");
29
- const plugin_25 = require("../ory/plugin");
30
- const plugin_26 = require("../supertokens/plugin");
31
- const plugin_27 = require("../zitadel/plugin");
32
- const plugin_28 = require("../corbado/plugin");
33
- const plugin_29 = require("../frontegg/plugin");
34
- const plugin_30 = require("../magic/plugin");
35
- const plugin_31 = require("../propelauth/plugin");
36
- const plugin_32 = require("../stytch/plugin");
37
- const plugin_33 = require("../userfront/plugin");
38
- const plugin_34 = require("../workos/plugin");
39
- const custom_1 = require("./custom");
40
- const registry_1 = require("./registry");
41
- /**
42
- * The plugins `atlas migrate <vendor>` ships with. A vendor track adds one
43
- * line here (its plugin module lives under src/migrate/<vendor>/).
44
- */
45
- const BUILT_IN_PLUGINS = [custom_1.customPlugin, plugin_8.clerkPlugin, plugin_7.auth0Plugin, plugin_11.oktaPlugin, plugin_10.kindePlugin, plugin_9.descopePlugin, ...plugins_1.FRAMEWORK_PLUGINS, plugin_16.firebasePlugin, plugin_19.supabasePlugin, plugin_14.cognitoPlugin, plugin_13.azureAdB2cPlugin, plugin_15.entraExternalIdPlugin, plugin_12.appwritePlugin, plugin_18.pocketbasePlugin, plugin_17.nhostPlugin, plugin_23.keycloakPlugin, plugin_25.oryPlugin, plugin_27.zitadelPlugin, plugin_24.logtoPlugin, plugin_26.supertokensPlugin, plugin_20.authentikPlugin, plugin_21.fusionauthPlugin, plugin_22.hankoPlugin, plugin_34.workosPlugin, plugin_32.stytchPlugin, plugin_29.fronteggPlugin, plugin_31.propelauthPlugin, plugin_30.magicPlugin, plugin_33.userfrontPlugin, plugin_28.corbadoPlugin, plugin_4.pingIdentityPlugin, plugin_3.oneLoginPlugin, plugin_5.samlPlugin, plugin_2.oidcPlugin, plugin_1.ldapPlugin, plugin_6.userTablePlugin];
46
- /** Register the built-in plugins (idempotent: an already registered vendor is left as it is). */
47
- function registerBuiltInPlugins() {
48
- for (const plugin of BUILT_IN_PLUGINS)
49
- if (!(0, registry_1.hasMigrationPlugin)(plugin.vendor))
50
- (0, registry_1.registerMigrationPlugin)(plugin);
51
- }
52
- //# sourceMappingURL=builtins.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtins.js","sourceRoot":"","sources":["../../../src/migrate/framework/builtins.ts"],"names":[],"mappings":";;AA6CA,wDAEC;AA/CD,2CAA4C;AAC5C,2CAA4C;AAC5C,+CAAoD;AACpD,oDAA6D;AAC7D,2CAA4C;AAC5C,iDAAuD;AACvD,4CAA8C;AAC9C,4CAA8C;AAC9C,8CAAkD;AAClD,6CAA8C;AAC9C,4CAA4C;AAC5C,mDAA0D;AAC1D,gDAAoD;AACpD,oDAA0D;AAC1D,+CAAkD;AAClD,yDAAoE;AACpE,gDAAoD;AACpD,6CAA8C;AAC9C,kDAAwD;AACxD,gDAAoD;AACpD,iDAAsD;AACtD,kDAAwD;AACxD,6CAA8C;AAC9C,gDAAoD;AACpD,6CAA8C;AAC9C,2CAA0C;AAC1C,mDAA0D;AAC1D,+CAAkD;AAClD,+CAAkD;AAClD,gDAAoD;AACpD,6CAA8C;AAC9C,kDAAwD;AACxD,8CAAgD;AAChD,iDAAsD;AACtD,8CAAgD;AAChD,qCAAwC;AACxC,yCAAyE;AAEzE;;;GAGG;AACH,MAAM,gBAAgB,GAAG,CAAC,qBAAY,EAAE,oBAAW,EAAE,oBAAW,EAAE,oBAAU,EAAE,qBAAW,EAAE,sBAAa,EAAE,GAAG,2BAAiB,EAAE,wBAAc,EAAE,wBAAc,EAAE,uBAAa,EAAE,0BAAgB,EAAE,+BAAqB,EAAE,wBAAc,EAAE,0BAAgB,EAAE,qBAAW,EAAE,wBAAc,EAAE,mBAAS,EAAE,uBAAa,EAAE,qBAAW,EAAE,2BAAiB,EAAE,yBAAe,EAAE,0BAAgB,EAAE,qBAAW,EAAE,sBAAY,EAAE,sBAAY,EAAE,wBAAc,EAAE,0BAAgB,EAAE,qBAAW,EAAE,yBAAe,EAAE,uBAAa,EAAE,2BAAkB,EAAE,uBAAc,EAAE,mBAAU,EAAE,mBAAU,EAAE,mBAAU,EAAE,wBAAe,CAAC,CAAC;AAErkB,iGAAiG;AACjG,SAAgB,sBAAsB;IACpC,KAAK,MAAM,MAAM,IAAI,gBAAgB;QAAE,IAAI,CAAC,IAAA,6BAAkB,EAAC,MAAM,CAAC,MAAM,CAAC;YAAE,IAAA,kCAAuB,EAAC,MAAM,CAAC,CAAC;AACjH,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { ParsedArgs } from '../../args';
2
- import type { RunContext } from '../../context';
3
- /**
4
- * `atlas migrate <vendor> [step] [path]` and `atlas migrate export <vendor> [path]`
5
- * for every vendor with a plugin. With no step the whole program runs (see
6
- * orchestrator.ts); a step runs on its own, reading and updating the same
7
- * state file, so `export` today and `import` tomorrow work.
8
- */
9
- /** Steps a user can run on their own. */
10
- export declare const SINGLE_STEPS: readonly ["config", "export", "import", "bridge", "lazy", "verify"];
11
- export declare function knownVendors(): string[];
12
- /** True when `vendor` names a registered plugin. */
13
- export declare function hasPlugin(vendor: string | undefined): boolean;
14
- /**
15
- * Dispatch `atlas migrate <vendor> …`. `positionals` are the words after
16
- * `migrate` (`[vendor, step?, path?]`); a word that is not a step is the path.
17
- */
18
- export declare function migrateWithPlugin(ctx: RunContext, args: ParsedArgs, vendor: string, rest: string[]): Promise<number>;
19
- /** `atlas migrate export <vendor> [path]` — an alias of `atlas migrate <vendor> export [path]`. */
20
- export declare function migrateExportAlias(ctx: RunContext, args: ParsedArgs, rest: string[]): Promise<number>;
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SINGLE_STEPS = void 0;
4
- exports.knownVendors = knownVendors;
5
- exports.hasPlugin = hasPlugin;
6
- exports.migrateWithPlugin = migrateWithPlugin;
7
- exports.migrateExportAlias = migrateExportAlias;
8
- const errors_1 = require("../../errors");
9
- const builtins_1 = require("./builtins");
10
- const orchestrator_1 = require("./orchestrator");
11
- const registry_1 = require("./registry");
12
- /**
13
- * `atlas migrate <vendor> [step] [path]` and `atlas migrate export <vendor> [path]`
14
- * for every vendor with a plugin. With no step the whole program runs (see
15
- * orchestrator.ts); a step runs on its own, reading and updating the same
16
- * state file, so `export` today and `import` tomorrow work.
17
- */
18
- /** Steps a user can run on their own. */
19
- exports.SINGLE_STEPS = ['config', 'export', 'import', 'bridge', 'lazy', 'verify'];
20
- function knownVendors() {
21
- (0, builtins_1.registerBuiltInPlugins)();
22
- return (0, registry_1.migrationPlugins)().map((p) => p.vendor);
23
- }
24
- /** True when `vendor` names a registered plugin. */
25
- function hasPlugin(vendor) {
26
- (0, builtins_1.registerBuiltInPlugins)();
27
- return !!vendor && !!(0, registry_1.migrationPlugin)(vendor);
28
- }
29
- /**
30
- * Dispatch `atlas migrate <vendor> …`. `positionals` are the words after
31
- * `migrate` (`[vendor, step?, path?]`); a word that is not a step is the path.
32
- */
33
- async function migrateWithPlugin(ctx, args, vendor, rest) {
34
- (0, builtins_1.registerBuiltInPlugins)();
35
- const plugin = (0, registry_1.migrationPlugin)(vendor);
36
- if (!plugin)
37
- throw new errors_1.CliError(`No migration plugin for '${vendor}'. Vendors: ${knownVendors().join(', ')}, better-auth.`);
38
- const [first, second] = rest;
39
- const step = first && exports.SINGLE_STEPS.includes(first) ? first : undefined;
40
- const path = step ? second : first;
41
- if (step === 'config' && !plugin.config)
42
- throw new errors_1.CliError(`${plugin.label} has no configuration translator yet.`);
43
- if ((step === 'export' || step === 'import') && !plugin.export)
44
- throw new errors_1.CliError(`${plugin.label} has no exporter yet.`);
45
- if (step === 'bridge' && !plugin.bridge)
46
- throw new errors_1.CliError(`${plugin.label} has no session bridge preset.`);
47
- if (step === 'lazy' && !plugin.lazy)
48
- throw new errors_1.CliError(`${plugin.label} has no lazy-migration preset.`);
49
- return (0, orchestrator_1.migrateVendor)(ctx, args, plugin, path, step);
50
- }
51
- /** `atlas migrate export <vendor> [path]` — an alias of `atlas migrate <vendor> export [path]`. */
52
- async function migrateExportAlias(ctx, args, rest) {
53
- const [vendor, path] = rest;
54
- if (!vendor)
55
- throw new errors_1.CliError(`migrate export needs a vendor: ${knownVendors().join(', ')}.`);
56
- return migrateWithPlugin(ctx, args, vendor, path ? ['export', path] : ['export']);
57
- }
58
- //# sourceMappingURL=commands.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/migrate/framework/commands.ts"],"names":[],"mappings":";;;AAiBA,oCAGC;AAGD,8BAGC;AAMD,8CAYC;AAGD,gDAIC;AAjDD,yCAAwC;AACxC,yCAAoD;AACpD,iDAAkE;AAClE,yCAA+D;AAE/D;;;;;GAKG;AAEH,yCAAyC;AAC5B,QAAA,YAAY,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAEhG,SAAgB,YAAY;IAC1B,IAAA,iCAAsB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,IAAI,IAAI,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,MAAM;QAAE,MAAM,IAAI,iBAAQ,CAAC,GAAG,MAAM,CAAC,KAAK,gCAAgC,CAAC,CAAC;IAC7G,IAAI,IAAI,KAAK,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI;QAAE,MAAM,IAAI,iBAAQ,CAAC,GAAG,MAAM,CAAC,KAAK,gCAAgC,CAAC,CAAC;IACzG,OAAO,IAAA,4BAAa,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,mGAAmG;AAC5F,KAAK,UAAU,kBAAkB,CAAC,GAAe,EAAE,IAAgB,EAAE,IAAc;IACxF,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,iBAAQ,CAAC,kCAAkC,YAAY,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChG,OAAO,iBAAiB,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpF,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type CanonicalModel } from '@atlasauth/migrate';
2
- import type { MigrationPlugin } from './plugin';
3
- export interface CanonicalFileRecord {
4
- model: CanonicalModel;
5
- data: Record<string, unknown>;
6
- }
7
- /** Parse NDJSON or a JSON array of `{ model, data }`. Unknown models are returned in `unknown`. */
8
- export declare function parseCanonicalRecords(text: string): {
9
- records: CanonicalFileRecord[];
10
- unknown: Record<string, number>;
11
- };
12
- export declare const customPlugin: MigrationPlugin;
@@ -1,96 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.customPlugin = void 0;
4
- exports.parseCanonicalRecords = parseCanonicalRecords;
5
- const node_path_1 = require("node:path");
6
- const migrate_1 = require("@atlasauth/migrate");
7
- const args_1 = require("../../args");
8
- const errors_1 = require("../../errors");
9
- /**
10
- * `atlas migrate custom export --file <records>` — your own user store through
11
- * the same pipeline as every vendor. The file holds canonical records (the
12
- * `@atlasauth/migrate` schema v1), as NDJSON (one `{ "model": …, "data": … }`
13
- * per line) or a JSON array of them; `{ "type": "record", … }` entries from a
14
- * decrypted bundle are accepted too. Records are written in canonical model
15
- * order whatever order the file has them in; an invalid record is left out and
16
- * reported, never fatal.
17
- *
18
- * The file is read on this machine; only the sealed bundle goes to Atlas.
19
- */
20
- /** Records between two export checkpoints. */
21
- const CHECKPOINT_EVERY = 1000;
22
- /** Parse NDJSON or a JSON array of `{ model, data }`. Unknown models are returned in `unknown`. */
23
- function parseCanonicalRecords(text) {
24
- const trimmed = text.trim();
25
- let raw;
26
- if (!trimmed)
27
- raw = [];
28
- else if (trimmed.startsWith('[')) {
29
- try {
30
- raw = JSON.parse(trimmed);
31
- }
32
- catch {
33
- throw new errors_1.CliError('The records file is not valid JSON.');
34
- }
35
- if (!Array.isArray(raw))
36
- throw new errors_1.CliError('The records file must be a JSON array or NDJSON.');
37
- }
38
- else {
39
- raw = trimmed.split('\n').filter((l) => l.trim()).map((line, i) => {
40
- try {
41
- return JSON.parse(line);
42
- }
43
- catch {
44
- throw new errors_1.CliError(`Line ${i + 1} of the records file is not valid JSON.`);
45
- }
46
- });
47
- }
48
- const records = [];
49
- const unknown = {};
50
- for (const entry of raw) {
51
- if (!entry || typeof entry !== 'object')
52
- continue;
53
- const e = entry;
54
- if (e.type !== undefined && e.type !== 'record')
55
- continue; // manifest / end lines of a decrypted bundle
56
- const model = String(e.model ?? '');
57
- if (!(0, migrate_1.isCanonicalModel)(model) || !e.data || typeof e.data !== 'object') {
58
- unknown[model || '(none)'] = (unknown[model || '(none)'] ?? 0) + 1;
59
- continue;
60
- }
61
- records.push({ model, data: e.data });
62
- }
63
- const rank = (m) => migrate_1.CANONICAL_MODEL_ORDER.indexOf(m);
64
- // Stable: records of one model keep the file's order.
65
- records.sort((a, b) => rank(a.model) - rank(b.model));
66
- return { records, unknown };
67
- }
68
- exports.customPlugin = {
69
- vendor: 'custom',
70
- source: 'custom',
71
- label: 'Your own user database',
72
- help: 'Import a homegrown user store: write its users, identities, organizations and so on as canonical migration records (NDJSON or a JSON array of { model, data }), then run atlas migrate custom export --file <records> and atlas migrate custom import.',
73
- export: {
74
- reads: 'a local file of canonical migration records (--file)',
75
- credentials: [],
76
- async run(p, writer, resume) {
77
- const file = (0, args_1.str)(p.args.values, 'file') ?? p.credential({ flag: 'file', env: 'ATLAS_MIGRATE_FILE', label: 'the records file (--file)', required: true });
78
- const { records, unknown } = parseCanonicalRecords(p.ctx.readFile((0, node_path_1.resolve)(file)));
79
- for (const [model, n] of Object.entries(unknown))
80
- writer.omit(model, 'not a canonical model (or no data)', n);
81
- const start = typeof resume.cursor === 'number' ? resume.cursor : 0;
82
- if (start)
83
- p.say(` resuming at record ${start + 1} of ${records.length}`);
84
- for (let i = start; i < records.length; i++) {
85
- const r = records[i];
86
- const issues = await writer.add(r.model, r.data);
87
- if (issues.length)
88
- p.say(` left out ${r.model} #${i + 1}: ${issues[0].message}`);
89
- if ((i + 1) % CHECKPOINT_EVERY === 0)
90
- resume.checkpoint(i + 1);
91
- }
92
- p.say(` read ${records.length} record(s) from ${file}`);
93
- },
94
- },
95
- };
96
- //# sourceMappingURL=custom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom.js","sourceRoot":"","sources":["../../../src/migrate/framework/custom.ts"],"names":[],"mappings":";;;AA2BA,sDAqCC;AAhED,yCAAoC;AACpC,gDAA4H;AAC5H,qCAAiC;AACjC,yCAAwC;AAGxC;;;;;;;;;;GAUG;AAEH,8CAA8C;AAC9C,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAO9B,mGAAmG;AACnG,SAAgB,qBAAqB,CAAC,IAAY;IAChD,MAAM,OAAO,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AC,GAAG,CAAC,UAAU,OAAO,CAAC,MAAM,mBAAmB,IAAI,EAAE,CAAC,CAAC;QAC3D,CAAC;KACF;CACF,CAAC"}
@@ -1,113 +0,0 @@
1
- import { type MigrationSource } from '@atlasauth/migrate';
2
- import { type ParsedArgs } from '../../args';
3
- import type { ConfigHttp } from '../../config-http';
4
- import type { RunContext } from '../../context';
5
- import type { Format, Json } from '../../serialize';
6
- import type { MigrationPlugin, PluginContext, TranslationResult } from './plugin';
7
- /**
8
- * `atlas migrate <vendor> [path]` — the program for any vendor with a
9
- * {@link MigrationPlugin}, as one resumable run:
10
- *
11
- * preflight → config → export → import → bridge → lazy → code → verify
12
- *
13
- * Each finished step is checkpointed in atlas-migrate/<vendor>/state.json, so
14
- * `--resume` carries on where a run stopped (a confirmation declined, a vendor
15
- * credential missing, an export interrupted). `--dry-run` walks every step
16
- * without touching the instance, the vendor or the code; `--yes` answers every
17
- * confirmation. A single step runs on its own with `atlas migrate <vendor> <step>`.
18
- *
19
- * EXPORT RESUME. A sealed bundle cannot be appended to, so an export is written
20
- * as one or more SEGMENTS (bundle.1.atlas, bundle.2.atlas, …), each a complete
21
- * bundle. The exporter calls `checkpoint(cursor)` as it goes; when it stops on
22
- * an error the current segment is sealed with what it holds and the last
23
- * checkpoint is kept, so the next run starts a new segment from there. Records
24
- * written after the checkpoint appear in both segments, which is harmless:
25
- * every import is an idempotent upsert. A hard crash leaves an unsealed
26
- * segment that is simply rewritten. The import step imports the segments in
27
- * order (each one's references resolve through the ones applied before it).
28
- */
29
- export declare const VENDOR_STEPS: readonly ["preflight", "config", "export", "import", "bridge", "lazy", "code", "verify"];
30
- export type VendorStepId = (typeof VENDOR_STEPS)[number];
31
- type StepStatus = 'done' | 'skipped' | 'planned' | 'action_needed' | 'awaiting_confirmation' | 'blocked';
32
- interface StepRecord {
33
- status: StepStatus;
34
- at?: number;
35
- detail?: Record<string, unknown>;
36
- message?: string;
37
- }
38
- export interface VendorMigrationState {
39
- version: 1;
40
- vendor: string;
41
- source: MigrationSource;
42
- project: string;
43
- instance_id: string | null;
44
- environment: string | null;
45
- started_at: number;
46
- steps: Partial<Record<VendorStepId, StepRecord>>;
47
- export: {
48
- /** Sealed segment files, in order (relative to the state directory). */
49
- segments: string[];
50
- /** The exporter's last checkpoint, handed back on resume. */
51
- cursor: Json | null;
52
- /** The exporter ran to the end. */
53
- complete: boolean;
54
- counts: Record<string, number>;
55
- };
56
- import: {
57
- /** Segments fully imported. */
58
- done: string[];
59
- /** The segment being imported and its import id. */
60
- current: {
61
- segment: string;
62
- id: string;
63
- } | null;
64
- ids: string[];
65
- };
66
- }
67
- interface StepResult {
68
- status: StepStatus;
69
- detail?: Record<string, unknown>;
70
- message?: string;
71
- stop?: boolean;
72
- exitCode?: number;
73
- }
74
- export declare class VendorMigration {
75
- readonly ctx: RunContext;
76
- readonly args: ParsedArgs;
77
- readonly plugin: MigrationPlugin;
78
- readonly project: string;
79
- readonly dir: string;
80
- readonly statePath: string;
81
- readonly configDir: string;
82
- readonly format: Format;
83
- readonly yes: boolean;
84
- readonly dryRun: boolean;
85
- readonly json: boolean;
86
- readonly skip: Set<string>;
87
- readonly sets: Record<string, string>;
88
- state: VendorMigrationState;
89
- private http?;
90
- private translation?;
91
- constructor(ctx: RunContext, args: ParsedArgs, plugin: MigrationPlugin, projectArg: string | undefined);
92
- say(line: string): void;
93
- api(): ConfigHttp;
94
- confirm(question: string): Promise<boolean>;
95
- sleep(ms: number): Promise<void>;
96
- /** What a plugin step gets. */
97
- pluginContext(): PluginContext;
98
- /** The translation from this run, or the one a previous run wrote. */
99
- getTranslation(): TranslationResult | undefined;
100
- setTranslation(t: TranslationResult): void;
101
- loadState(opts: {
102
- single: boolean;
103
- }): void;
104
- saveState(): void;
105
- record(step: VendorStepId, result: StepResult): void;
106
- /** Run every step (or just `only`). Returns the exit code. */
107
- run(only?: VendorStepId): Promise<number>;
108
- }
109
- /** `--set a=b --set c=d,e=f` → { a: 'b', c: 'd', e: 'f' }. A value may contain `=`. */
110
- export declare function parseSets(raw: string[]): Record<string, string>;
111
- export declare const VENDOR_HANDLERS: Record<VendorStepId, (m: VendorMigration) => Promise<StepResult>>;
112
- export declare function migrateVendor(ctx: RunContext, args: ParsedArgs, plugin: MigrationPlugin, projectArg: string | undefined, only?: VendorStepId): Promise<number>;
113
- export {};