auth0-deploy-cli 8.20.4-beta.0 → 8.21.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 (318) hide show
  1. package/.circleci/config.yml +5 -46
  2. package/.eslintignore +5 -0
  3. package/.eslintrc +69 -0
  4. package/CHANGELOG.md +15 -6
  5. package/lib/args.js +1 -0
  6. package/lib/args.js.map +1 -0
  7. package/lib/commands/export.js +49 -41
  8. package/lib/commands/export.js.map +1 -0
  9. package/lib/commands/import.js +43 -36
  10. package/lib/commands/import.js.map +1 -0
  11. package/lib/commands/index.js +1 -0
  12. package/lib/commands/index.js.map +1 -0
  13. package/lib/configFactory.js +1 -0
  14. package/lib/configFactory.js.map +1 -0
  15. package/lib/context/defaults.js +10 -38
  16. package/lib/context/defaults.js.map +1 -0
  17. package/lib/context/directory/handlers/actions.js +39 -40
  18. package/lib/context/directory/handlers/actions.js.map +1 -0
  19. package/lib/context/directory/handlers/attackProtection.js +34 -22
  20. package/lib/context/directory/handlers/attackProtection.js.map +1 -0
  21. package/lib/context/directory/handlers/branding.js +21 -12
  22. package/lib/context/directory/handlers/branding.js.map +1 -0
  23. package/lib/context/directory/handlers/clientGrants.js +62 -52
  24. package/lib/context/directory/handlers/clientGrants.js.map +1 -0
  25. package/lib/context/directory/handlers/clients.js +60 -17
  26. package/lib/context/directory/handlers/clients.js.map +1 -0
  27. package/lib/context/directory/handlers/connectionProfiles.d.ts +11 -0
  28. package/lib/context/directory/handlers/connectionProfiles.js +59 -0
  29. package/lib/context/directory/handlers/connectionProfiles.js.map +1 -0
  30. package/lib/context/directory/handlers/connections.js +41 -32
  31. package/lib/context/directory/handlers/connections.js.map +1 -0
  32. package/lib/context/directory/handlers/customDomains.js +21 -9
  33. package/lib/context/directory/handlers/customDomains.js.map +1 -0
  34. package/lib/context/directory/handlers/databases.js +35 -37
  35. package/lib/context/directory/handlers/databases.js.map +1 -0
  36. package/lib/context/directory/handlers/emailProvider.js +36 -22
  37. package/lib/context/directory/handlers/emailProvider.js.map +1 -0
  38. package/lib/context/directory/handlers/emailTemplates.js +29 -20
  39. package/lib/context/directory/handlers/emailTemplates.js.map +1 -0
  40. package/lib/context/directory/handlers/flowVaultConnections.js +49 -39
  41. package/lib/context/directory/handlers/flowVaultConnections.js.map +1 -0
  42. package/lib/context/directory/handlers/flows.js +48 -38
  43. package/lib/context/directory/handlers/flows.js.map +1 -0
  44. package/lib/context/directory/handlers/forms.js +48 -38
  45. package/lib/context/directory/handlers/forms.js.map +1 -0
  46. package/lib/context/directory/handlers/guardianFactorProviders.js +21 -9
  47. package/lib/context/directory/handlers/guardianFactorProviders.js.map +1 -0
  48. package/lib/context/directory/handlers/guardianFactorTemplates.js +21 -9
  49. package/lib/context/directory/handlers/guardianFactorTemplates.js.map +1 -0
  50. package/lib/context/directory/handlers/guardianFactors.js +21 -9
  51. package/lib/context/directory/handlers/guardianFactors.js.map +1 -0
  52. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +20 -8
  53. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  54. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +20 -8
  55. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  56. package/lib/context/directory/handlers/guardianPolicies.js +20 -8
  57. package/lib/context/directory/handlers/guardianPolicies.js.map +1 -0
  58. package/lib/context/directory/handlers/hooks.js +34 -24
  59. package/lib/context/directory/handlers/hooks.js.map +1 -0
  60. package/lib/context/directory/handlers/index.js +3 -0
  61. package/lib/context/directory/handlers/index.js.map +1 -0
  62. package/lib/context/directory/handlers/logStreams.js +24 -12
  63. package/lib/context/directory/handlers/logStreams.js.map +1 -0
  64. package/lib/context/directory/handlers/networkACLs.js +34 -22
  65. package/lib/context/directory/handlers/networkACLs.js.map +1 -0
  66. package/lib/context/directory/handlers/organizations.js +44 -39
  67. package/lib/context/directory/handlers/organizations.js.map +1 -0
  68. package/lib/context/directory/handlers/pages.js +37 -31
  69. package/lib/context/directory/handlers/pages.js.map +1 -0
  70. package/lib/context/directory/handlers/phoneProvider.js +24 -12
  71. package/lib/context/directory/handlers/phoneProvider.js.map +1 -0
  72. package/lib/context/directory/handlers/prompts.js +76 -58
  73. package/lib/context/directory/handlers/prompts.js.map +1 -0
  74. package/lib/context/directory/handlers/resourceServers.d.ts +1 -1
  75. package/lib/context/directory/handlers/resourceServers.js +30 -18
  76. package/lib/context/directory/handlers/resourceServers.js.map +1 -0
  77. package/lib/context/directory/handlers/roles.js +31 -21
  78. package/lib/context/directory/handlers/roles.js.map +1 -0
  79. package/lib/context/directory/handlers/rules.js +32 -22
  80. package/lib/context/directory/handlers/rules.js.map +1 -0
  81. package/lib/context/directory/handlers/rulesConfigs.js +15 -3
  82. package/lib/context/directory/handlers/rulesConfigs.js.map +1 -0
  83. package/lib/context/directory/handlers/selfServiceProfiles.js +40 -28
  84. package/lib/context/directory/handlers/selfServiceProfiles.js.map +1 -0
  85. package/lib/context/directory/handlers/tenant.js +34 -14
  86. package/lib/context/directory/handlers/tenant.js.map +1 -0
  87. package/lib/context/directory/handlers/themes.js +21 -9
  88. package/lib/context/directory/handlers/themes.js.map +1 -0
  89. package/lib/context/directory/handlers/triggers.d.ts +1 -1
  90. package/lib/context/directory/handlers/triggers.js +26 -16
  91. package/lib/context/directory/handlers/triggers.js.map +1 -0
  92. package/lib/context/directory/handlers/userAttributeProfiles.d.ts +1 -1
  93. package/lib/context/directory/handlers/userAttributeProfiles.js +26 -16
  94. package/lib/context/directory/handlers/userAttributeProfiles.js.map +1 -0
  95. package/lib/context/directory/index.js +80 -66
  96. package/lib/context/directory/index.js.map +1 -0
  97. package/lib/context/index.js +20 -9
  98. package/lib/context/index.js.map +1 -0
  99. package/lib/context/yaml/handlers/actions.js +41 -39
  100. package/lib/context/yaml/handlers/actions.js.map +1 -0
  101. package/lib/context/yaml/handlers/attackProtection.js +41 -27
  102. package/lib/context/yaml/handlers/attackProtection.js.map +1 -0
  103. package/lib/context/yaml/handlers/branding.js +69 -47
  104. package/lib/context/yaml/handlers/branding.js.map +1 -0
  105. package/lib/context/yaml/handlers/clientGrants.js +40 -26
  106. package/lib/context/yaml/handlers/clientGrants.js.map +1 -0
  107. package/lib/context/yaml/handlers/clients.js +85 -41
  108. package/lib/context/yaml/handlers/clients.js.map +1 -0
  109. package/lib/context/yaml/handlers/connectionProfiles.d.ts +11 -0
  110. package/lib/context/yaml/handlers/connectionProfiles.js +44 -0
  111. package/lib/context/yaml/handlers/connectionProfiles.js.map +1 -0
  112. package/lib/context/yaml/handlers/connections.js +67 -63
  113. package/lib/context/yaml/handlers/connections.js.map +1 -0
  114. package/lib/context/yaml/handlers/customDomains.js +19 -7
  115. package/lib/context/yaml/handlers/customDomains.js.map +1 -0
  116. package/lib/context/yaml/handlers/databases.js +65 -63
  117. package/lib/context/yaml/handlers/databases.js.map +1 -0
  118. package/lib/context/yaml/handlers/emailProvider.js +37 -22
  119. package/lib/context/yaml/handlers/emailProvider.js.map +1 -0
  120. package/lib/context/yaml/handlers/emailTemplates.js +39 -28
  121. package/lib/context/yaml/handlers/emailTemplates.js.map +1 -0
  122. package/lib/context/yaml/handlers/flowVaultConnections.js +50 -36
  123. package/lib/context/yaml/handlers/flowVaultConnections.js.map +1 -0
  124. package/lib/context/yaml/handlers/flows.js +66 -55
  125. package/lib/context/yaml/handlers/flows.js.map +1 -0
  126. package/lib/context/yaml/handlers/forms.js +66 -55
  127. package/lib/context/yaml/handlers/forms.js.map +1 -0
  128. package/lib/context/yaml/handlers/guardianFactorProviders.js +19 -7
  129. package/lib/context/yaml/handlers/guardianFactorProviders.js.map +1 -0
  130. package/lib/context/yaml/handlers/guardianFactorTemplates.js +19 -7
  131. package/lib/context/yaml/handlers/guardianFactorTemplates.js.map +1 -0
  132. package/lib/context/yaml/handlers/guardianFactors.js +19 -7
  133. package/lib/context/yaml/handlers/guardianFactors.js.map +1 -0
  134. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +19 -7
  135. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  136. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +19 -7
  137. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  138. package/lib/context/yaml/handlers/guardianPolicies.js +19 -7
  139. package/lib/context/yaml/handlers/guardianPolicies.js.map +1 -0
  140. package/lib/context/yaml/handlers/hooks.js +48 -34
  141. package/lib/context/yaml/handlers/hooks.js.map +1 -0
  142. package/lib/context/yaml/handlers/index.js +3 -0
  143. package/lib/context/yaml/handlers/index.js.map +1 -0
  144. package/lib/context/yaml/handlers/logStreams.js +30 -16
  145. package/lib/context/yaml/handlers/logStreams.js.map +1 -0
  146. package/lib/context/yaml/handlers/networkACLs.js +39 -25
  147. package/lib/context/yaml/handlers/networkACLs.js.map +1 -0
  148. package/lib/context/yaml/handlers/organizations.js +46 -37
  149. package/lib/context/yaml/handlers/organizations.js.map +1 -0
  150. package/lib/context/yaml/handlers/pages.js +39 -31
  151. package/lib/context/yaml/handlers/pages.js.map +1 -0
  152. package/lib/context/yaml/handlers/phoneProvider.js +31 -17
  153. package/lib/context/yaml/handlers/phoneProvider.js.map +1 -0
  154. package/lib/context/yaml/handlers/prompts.js +47 -22
  155. package/lib/context/yaml/handlers/prompts.js.map +1 -0
  156. package/lib/context/yaml/handlers/resourceServers.d.ts +1 -1
  157. package/lib/context/yaml/handlers/resourceServers.js +33 -21
  158. package/lib/context/yaml/handlers/resourceServers.js.map +1 -0
  159. package/lib/context/yaml/handlers/roles.js +33 -19
  160. package/lib/context/yaml/handlers/roles.js.map +1 -0
  161. package/lib/context/yaml/handlers/rules.js +39 -28
  162. package/lib/context/yaml/handlers/rules.js.map +1 -0
  163. package/lib/context/yaml/handlers/rulesConfigs.js +28 -14
  164. package/lib/context/yaml/handlers/rulesConfigs.js.map +1 -0
  165. package/lib/context/yaml/handlers/selfServiceProfiles.js +43 -29
  166. package/lib/context/yaml/handlers/selfServiceProfiles.js.map +1 -0
  167. package/lib/context/yaml/handlers/tenant.js +41 -19
  168. package/lib/context/yaml/handlers/tenant.js.map +1 -0
  169. package/lib/context/yaml/handlers/themes.js +19 -7
  170. package/lib/context/yaml/handlers/themes.js.map +1 -0
  171. package/lib/context/yaml/handlers/triggers.d.ts +1 -1
  172. package/lib/context/yaml/handlers/triggers.js +29 -15
  173. package/lib/context/yaml/handlers/triggers.js.map +1 -0
  174. package/lib/context/yaml/handlers/userAttributeProfiles.d.ts +1 -1
  175. package/lib/context/yaml/handlers/userAttributeProfiles.js +19 -7
  176. package/lib/context/yaml/handlers/userAttributeProfiles.js.map +1 -0
  177. package/lib/context/yaml/index.js +128 -120
  178. package/lib/context/yaml/index.js.map +1 -0
  179. package/lib/index.d.ts +96 -4
  180. package/lib/index.js +34 -24
  181. package/lib/index.js.map +1 -0
  182. package/lib/keywordPreservation.d.ts +1 -1
  183. package/lib/keywordPreservation.js +6 -10
  184. package/lib/keywordPreservation.js.map +1 -0
  185. package/lib/logger.js +1 -0
  186. package/lib/logger.js.map +1 -0
  187. package/lib/readonly.js +4 -3
  188. package/lib/readonly.js.map +1 -0
  189. package/lib/sessionDurationsToMinutes.js +1 -0
  190. package/lib/sessionDurationsToMinutes.js.map +1 -0
  191. package/lib/tools/auth0/client.js +127 -108
  192. package/lib/tools/auth0/client.js.map +1 -0
  193. package/lib/tools/auth0/handlers/actions.d.ts +26 -8
  194. package/lib/tools/auth0/handlers/actions.js +149 -138
  195. package/lib/tools/auth0/handlers/actions.js.map +1 -0
  196. package/lib/tools/auth0/handlers/attackProtection.js +92 -80
  197. package/lib/tools/auth0/handlers/attackProtection.js.map +1 -0
  198. package/lib/tools/auth0/handlers/branding.js +99 -75
  199. package/lib/tools/auth0/handlers/branding.js.map +1 -0
  200. package/lib/tools/auth0/handlers/clientGrants.d.ts +9 -2
  201. package/lib/tools/auth0/handlers/clientGrants.js +72 -65
  202. package/lib/tools/auth0/handlers/clientGrants.js.map +1 -0
  203. package/lib/tools/auth0/handlers/clients.d.ts +85 -7
  204. package/lib/tools/auth0/handlers/clients.js +187 -66
  205. package/lib/tools/auth0/handlers/clients.js.map +1 -0
  206. package/lib/tools/auth0/handlers/connectionProfiles.d.ts +182 -0
  207. package/lib/tools/auth0/handlers/connectionProfiles.js +239 -0
  208. package/lib/tools/auth0/handlers/connectionProfiles.js.map +1 -0
  209. package/lib/tools/auth0/handlers/connections.d.ts +1 -3
  210. package/lib/tools/auth0/handlers/connections.js +135 -130
  211. package/lib/tools/auth0/handlers/connections.js.map +1 -0
  212. package/lib/tools/auth0/handlers/customDomains.d.ts +1 -4
  213. package/lib/tools/auth0/handlers/customDomains.js +53 -43
  214. package/lib/tools/auth0/handlers/customDomains.js.map +1 -0
  215. package/lib/tools/auth0/handlers/databases.js +114 -94
  216. package/lib/tools/auth0/handlers/databases.js.map +1 -0
  217. package/lib/tools/auth0/handlers/default.d.ts +2 -2
  218. package/lib/tools/auth0/handlers/default.js +171 -210
  219. package/lib/tools/auth0/handlers/default.js.map +1 -0
  220. package/lib/tools/auth0/handlers/emailProvider.js +52 -41
  221. package/lib/tools/auth0/handlers/emailProvider.js.map +1 -0
  222. package/lib/tools/auth0/handlers/emailTemplates.js +71 -49
  223. package/lib/tools/auth0/handlers/emailTemplates.js.map +1 -0
  224. package/lib/tools/auth0/handlers/flowVaultConnections.d.ts +12 -5
  225. package/lib/tools/auth0/handlers/flowVaultConnections.js +143 -108
  226. package/lib/tools/auth0/handlers/flowVaultConnections.js.map +1 -0
  227. package/lib/tools/auth0/handlers/flows.d.ts +3 -2
  228. package/lib/tools/auth0/handlers/flows.js +129 -92
  229. package/lib/tools/auth0/handlers/flows.js.map +1 -0
  230. package/lib/tools/auth0/handlers/forms.d.ts +3 -3
  231. package/lib/tools/auth0/handlers/forms.js +112 -98
  232. package/lib/tools/auth0/handlers/forms.js.map +1 -0
  233. package/lib/tools/auth0/handlers/guardianFactorProviders.js +84 -61
  234. package/lib/tools/auth0/handlers/guardianFactorProviders.js.map +1 -0
  235. package/lib/tools/auth0/handlers/guardianFactorTemplates.js +68 -46
  236. package/lib/tools/auth0/handlers/guardianFactorTemplates.js.map +1 -0
  237. package/lib/tools/auth0/handlers/guardianFactors.js +45 -35
  238. package/lib/tools/auth0/handlers/guardianFactors.js.map +1 -0
  239. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +45 -29
  240. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  241. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +45 -29
  242. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  243. package/lib/tools/auth0/handlers/guardianPolicies.js +35 -20
  244. package/lib/tools/auth0/handlers/guardianPolicies.js.map +1 -0
  245. package/lib/tools/auth0/handlers/hooks.js +153 -123
  246. package/lib/tools/auth0/handlers/hooks.js.map +1 -0
  247. package/lib/tools/auth0/handlers/index.js +3 -0
  248. package/lib/tools/auth0/handlers/index.js.map +1 -0
  249. package/lib/tools/auth0/handlers/logStreams.js +47 -42
  250. package/lib/tools/auth0/handlers/logStreams.js.map +1 -0
  251. package/lib/tools/auth0/handlers/networkACLs.d.ts +4 -5
  252. package/lib/tools/auth0/handlers/networkACLs.js +133 -115
  253. package/lib/tools/auth0/handlers/networkACLs.js.map +1 -0
  254. package/lib/tools/auth0/handlers/organizations.d.ts +9 -10
  255. package/lib/tools/auth0/handlers/organizations.js +429 -360
  256. package/lib/tools/auth0/handlers/organizations.js.map +1 -0
  257. package/lib/tools/auth0/handlers/pages.js +83 -74
  258. package/lib/tools/auth0/handlers/pages.js.map +1 -0
  259. package/lib/tools/auth0/handlers/phoneProvider.d.ts +2 -2
  260. package/lib/tools/auth0/handlers/phoneProvider.js +82 -69
  261. package/lib/tools/auth0/handlers/phoneProvider.js.map +1 -0
  262. package/lib/tools/auth0/handlers/prompts.d.ts +5 -5
  263. package/lib/tools/auth0/handlers/prompts.js +235 -240
  264. package/lib/tools/auth0/handlers/prompts.js.map +1 -0
  265. package/lib/tools/auth0/handlers/resourceServers.d.ts +1 -3
  266. package/lib/tools/auth0/handlers/resourceServers.js +60 -59
  267. package/lib/tools/auth0/handlers/resourceServers.js.map +1 -0
  268. package/lib/tools/auth0/handlers/roles.js +178 -162
  269. package/lib/tools/auth0/handlers/roles.js.map +1 -0
  270. package/lib/tools/auth0/handlers/rules.js +162 -144
  271. package/lib/tools/auth0/handlers/rules.js.map +1 -0
  272. package/lib/tools/auth0/handlers/rulesConfigs.js +39 -30
  273. package/lib/tools/auth0/handlers/rulesConfigs.js.map +1 -0
  274. package/lib/tools/auth0/handlers/scimHandler.d.ts +3 -4
  275. package/lib/tools/auth0/handlers/scimHandler.js +132 -110
  276. package/lib/tools/auth0/handlers/scimHandler.js.map +1 -0
  277. package/lib/tools/auth0/handlers/selfServiceProfiles.d.ts +5 -13
  278. package/lib/tools/auth0/handlers/selfServiceProfiles.js +204 -170
  279. package/lib/tools/auth0/handlers/selfServiceProfiles.js.map +1 -0
  280. package/lib/tools/auth0/handlers/tenant.d.ts +3 -5
  281. package/lib/tools/auth0/handlers/tenant.js +52 -45
  282. package/lib/tools/auth0/handlers/tenant.js.map +1 -0
  283. package/lib/tools/auth0/handlers/themes.d.ts +12 -12
  284. package/lib/tools/auth0/handlers/themes.js +102 -86
  285. package/lib/tools/auth0/handlers/themes.js.map +1 -0
  286. package/lib/tools/auth0/handlers/triggers.js +75 -59
  287. package/lib/tools/auth0/handlers/triggers.js.map +1 -0
  288. package/lib/tools/auth0/handlers/userAttributeProfiles.d.ts +4 -4
  289. package/lib/tools/auth0/handlers/userAttributeProfiles.js +63 -56
  290. package/lib/tools/auth0/handlers/userAttributeProfiles.js.map +1 -0
  291. package/lib/tools/auth0/index.js +48 -35
  292. package/lib/tools/auth0/index.js.map +1 -0
  293. package/lib/tools/auth0/schema.js +4 -6
  294. package/lib/tools/auth0/schema.js.map +1 -0
  295. package/lib/tools/calculateChanges.js +15 -24
  296. package/lib/tools/calculateChanges.js.map +1 -0
  297. package/lib/tools/constants.d.ts +3 -2
  298. package/lib/tools/constants.js +2 -0
  299. package/lib/tools/constants.js.map +1 -0
  300. package/lib/tools/deploy.js +29 -17
  301. package/lib/tools/deploy.js.map +1 -0
  302. package/lib/tools/index.d.ts +89 -3
  303. package/lib/tools/index.js +2 -3
  304. package/lib/tools/index.js.map +1 -0
  305. package/lib/tools/utils.d.ts +1 -1
  306. package/lib/tools/utils.js +22 -12
  307. package/lib/tools/utils.js.map +1 -0
  308. package/lib/tools/validationError.js +1 -0
  309. package/lib/tools/validationError.js.map +1 -0
  310. package/lib/types.d.ts +6 -9
  311. package/lib/types.js +1 -0
  312. package/lib/types.js.map +1 -0
  313. package/lib/utils.d.ts +58 -3
  314. package/lib/utils.js +5 -8
  315. package/lib/utils.js.map +1 -0
  316. package/package.json +10 -11
  317. package/tsconfig.json +3 -4
  318. package/eslint.config.js +0 -130
@@ -6,7 +6,7 @@ orbs:
6
6
  jobs:
7
7
  e2e_test_as_node_module:
8
8
  docker:
9
- - image: cimg/node:22.12.0
9
+ - image: cimg/node:22.4.1
10
10
  working_directory: ~/repo
11
11
  steps:
12
12
  - checkout
@@ -15,7 +15,7 @@ jobs:
15
15
 
16
16
  e2e_test_as_cli:
17
17
  docker:
18
- - image: cimg/node:22.12.0
18
+ - image: cimg/node:22.4.1
19
19
  working_directory: ~/repo
20
20
  steps:
21
21
  - checkout
@@ -66,27 +66,9 @@ jobs:
66
66
  name: Publish package
67
67
  command: npm publish
68
68
 
69
- deploy_beta:
70
- parameters:
71
- v:
72
- type: string
73
- default: "lts"
74
- docker:
75
- - image: cimg/node:<< parameters.v >>
76
- working_directory: ~/repo
77
- steps:
78
- - attach_workspace:
79
- at: ~/repo
80
- - run:
81
- name: Authenticate with registry
82
- command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
83
- - run:
84
- name: Publish beta package
85
- command: npm publish --tag beta
86
-
87
69
  does_typescript_compile:
88
70
  docker:
89
- - image: cimg/node:22.12.0
71
+ - image: cimg/node:22.4.1
90
72
  working_directory: ~/repo
91
73
  steps:
92
74
  - checkout
@@ -115,7 +97,7 @@ workflows:
115
97
  v: "lts"
116
98
  - unit_test:
117
99
  name: Unit tests with Node current
118
- v: "22.12.0"
100
+ v: "22.4.1"
119
101
 
120
102
  test_and_deploy:
121
103
  jobs:
@@ -136,29 +118,6 @@ workflows:
136
118
  branches:
137
119
  ignore: /.*/
138
120
  tags:
139
- only: /^v[0-9]+\.[0-9]+\.[0-9]+$/
140
- context:
141
- - publish-npm
142
-
143
- test_and_deploy_beta:
144
- jobs:
145
- - unit_test:
146
- name: Unit tests with Node LTS (Beta)
147
- v: "lts"
148
- filters:
149
- branches:
150
- only: beta
151
- tags:
152
- only: /^v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$/
153
- - deploy_beta:
154
- name: Publish Beta to NPM
155
- v: "lts"
156
- requires:
157
- - Unit tests with Node LTS (Beta)
158
- filters:
159
- branches:
160
- ignore: /.*/
161
- tags:
162
- only: /^v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$/
121
+ only: /^v.*/
163
122
  context:
164
123
  - publish-npm
package/.eslintignore ADDED
@@ -0,0 +1,5 @@
1
+ examples/
2
+ test/e2e/testdata/**/**
3
+ local/
4
+ node_modules/
5
+ lib/
package/.eslintrc ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "parser": "@typescript-eslint/parser",
3
+ "parserOptions": {
4
+ "ecmaVersion": 2020
5
+ },
6
+ "extends": ["airbnb-base", "plugin:import/errors", "plugin:import/warnings", "prettier"],
7
+ "env": {
8
+ "es2020": true,
9
+ "node": true,
10
+ "mocha": true
11
+ },
12
+ "settings": {
13
+ "import/resolver": {
14
+ "node": {
15
+ "extensions": [".js", ".ts"]
16
+ }
17
+ }
18
+ },
19
+ "rules": {
20
+ "max-len": 0,
21
+ "react/display-name": 0,
22
+ "class-methods-use-this": 0,
23
+ "comma-dangle": 0,
24
+ "eol-last": 2,
25
+ "indent": [
26
+ 2,
27
+ 2,
28
+ {
29
+ "SwitchCase": 1
30
+ }
31
+ ],
32
+ "import/no-extraneous-dependencies": [
33
+ "error",
34
+ {
35
+ "devDependencies": true
36
+ }
37
+ ],
38
+ "import/no-dynamic-require": 0,
39
+ "prefer-arrow-callback": 0,
40
+ "object-shorthand": 0,
41
+ "prefer-template": 0,
42
+ "func-names": 0,
43
+ "new-cap": 0,
44
+ "no-await-in-loop": 0,
45
+ "no-param-reassign": 0,
46
+ "no-multiple-empty-lines": 2,
47
+ "no-plusplus": [
48
+ "error",
49
+ {
50
+ "allowForLoopAfterthoughts": true
51
+ }
52
+ ],
53
+ "no-unused-vars": 2,
54
+ "no-var": 0,
55
+ "object-curly-spacing": [2, "always"],
56
+ "quotes": [2, "single", "avoid-escape"],
57
+ "semi": [2, "always"],
58
+ "strict": 0,
59
+ "space-before-blocks": [2, "always"],
60
+ "import/extensions": [
61
+ "error",
62
+ "ignorePackages",
63
+ {
64
+ "js": "never",
65
+ "ts": "never"
66
+ }
67
+ ]
68
+ }
69
+ }
package/CHANGELOG.md CHANGED
@@ -7,11 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [8.20.4-beta.0] - 2025-12-02
10
+ ## [8.21.0] - 2025-11-21
11
11
 
12
- ### Changed
12
+ ### Added
13
+
14
+ - Add support for Connection Profiles and Express Configuration on Clients. [#1204]
15
+ - Add support for ACUL GA. [#1209]
16
+ - Add support for `session_transfer` schema in `clients`. [#1211]
17
+
18
+ ### Fixed
13
19
 
14
- - Upgrading node-auth0 from v4 to v5 [beta]. [#1207]
20
+ - Fix handle responses when paginating custom domains. [#1214]
15
21
 
16
22
  ## [8.20.3] - 2025-11-14
17
23
 
@@ -1517,9 +1523,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1517
1523
  [#1196]: https://github.com/auth0/auth0-deploy-cli/issues/1196
1518
1524
  [#1200]: https://github.com/auth0/auth0-deploy-cli/issues/1200
1519
1525
  [#1203]: https://github.com/auth0/auth0-deploy-cli/issues/1203
1520
- [#1207]: https://github.com/auth0/auth0-deploy-cli/issues/1207
1521
- [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.20.4-beta.0...HEAD
1522
- [8.20.4-beta.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.20.3...v8.20.4-beta.0
1526
+ [#1204]: https://github.com/auth0/auth0-deploy-cli/issues/1204
1527
+ [#1209]: https://github.com/auth0/auth0-deploy-cli/issues/1209
1528
+ [#1211]: https://github.com/auth0/auth0-deploy-cli/issues/1211
1529
+ [#1214]: https://github.com/auth0/auth0-deploy-cli/issues/1214
1530
+ [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.21.0...HEAD
1531
+ [8.21.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.20.3...v8.21.0
1523
1532
  [8.20.3]: https://github.com/auth0/auth0-deploy-cli/compare/v8.20.2...v8.20.3
1524
1533
  [8.20.2]: https://github.com/auth0/auth0-deploy-cli/compare/v8.20.1...v8.20.2
1525
1534
  [8.20.1]: https://github.com/auth0/auth0-deploy-cli/compare/v8.20.0...v8.20.1
package/lib/args.js CHANGED
@@ -100,3 +100,4 @@ function getParams() {
100
100
  exports.default = {
101
101
  getParams,
102
102
  };
103
+ //# sourceMappingURL=args.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":";;;;;AAiJS,8BAAS;AAjJlB,kDAA0B;AA+B1B,SAAS,SAAS;IAChB,MAAM,IAAI,GAAG,eAAK;SACf,aAAa,CAAC,CAAC,EAAE,uBAAuB,CAAC;SACzC,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,OAAO,EAAE;QACf,KAAK,EAAE,GAAG;QACV,QAAQ,EAAE,+BAA+B;QACzC,IAAI,EAAE,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AE;YACN,KAAK,EAAE,GAAG;YACV,QAAQ,EACN,6HAA6H;YAC/H,IAAI,EAAE,QAAQ;SACf;QACD,GAAG,EAAE;YACH,QAAQ,EAAE,6DAA6D;YACvE,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,IAAI;SACd;QACD,UAAU,EAAE;YACV,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,+CAA+C;YACzD,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACf;KACF,CAAC;SACD,OAAO,CACN,oDAAoD,EACpD,4CAA4C,CAC7C;SACA,OAAO,CACN,yDAAyD,EACzD,iDAAiD,CAClD;SACA,OAAO,CAAC,yCAAyC,EAAE,uBAAuB,CAAC;SAC3E,OAAO,CAAC,2CAA2C,EAAE,uBAAuB,CAAC;SAC7E,OAAO,CACN,kDAAkD,EAClD,4CAA4C,CAC7C;SACA,OAAO,CACN,uDAAuD,EACvD,iDAAiD,CAClD;SACA,OAAO,CAAC,yCAAyC,EAAE,uBAAuB,CAAC;SAC3E,OAAO,CAAC,2CAA2C,EAAE,uBAAuB,CAAC;SAC7E,QAAQ,CACP,kHAAkH,CACnH;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,yIAAyI;IACzI,OAAO,IAAI,CAAC,IAAI,CAAC;AACnB,CAAC;AAED,kBAAe;IACb,SAAS;CACV,CAAC"}
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
13
  };
@@ -10,45 +19,44 @@ const mkdirp_1 = __importDefault(require("mkdirp"));
10
19
  const logger_1 = __importDefault(require("../logger"));
11
20
  const utils_1 = require("../utils");
12
21
  const index_1 = require("../context/index");
13
- async function exportCMD(params) {
14
- const { output_folder: outputFolder, base_path: basePath, config_file: configFile, config: configObj, export_ids: exportIds, secret: clientSecret, env: shouldInheritEnv = false, experimental_ea: experimentalEA, } = params;
15
- if (shouldInheritEnv) {
16
- nconf_1.default.env().use('memory');
17
- }
18
- if (configFile) {
19
- nconf_1.default.file(configFile);
20
- }
21
- const overrides = {
22
- AUTH0_INPUT_FILE: outputFolder,
23
- AUTH0_BASE_PATH: basePath,
24
- ...(configObj || {}),
25
- };
26
- // Prepare configuration by initializing nconf, then passing that as the provider to the config object
27
- // Allow passed in secret to override the configured one
28
- if (clientSecret) {
29
- overrides.AUTH0_CLIENT_SECRET = clientSecret;
30
- }
31
- // Allow passed in export_ids to override the configured one
32
- if (exportIds) {
33
- overrides.AUTH0_EXPORT_IDENTIFIERS = exportIds;
34
- }
35
- // Overrides AUTH0_INCLUDE_EXPERIMENTAL_EA is experimental_ea passed in command line
36
- if (experimentalEA) {
37
- overrides.AUTH0_EXPERIMENTAL_EA = experimentalEA;
38
- // nconf.overrides() sometimes doesn't work, so we need to set it manually to ensure it's set
39
- nconf_1.default.set('AUTH0_EXPERIMENTAL_EA', experimentalEA);
40
- }
41
- // Check output folder
42
- if (!(0, utils_1.isDirectory)(outputFolder)) {
43
- logger_1.default.info(`Creating ${outputFolder}`);
44
- mkdirp_1.default.sync(outputFolder);
45
- }
46
- if (params.format === 'yaml') {
47
- overrides.AUTH0_INPUT_FILE = path_1.default.join(outputFolder, 'tenant.yaml');
48
- }
49
- nconf_1.default.overrides(overrides);
50
- // Setup context and load
51
- const context = await (0, index_1.setupContext)(nconf_1.default.get(), 'export');
52
- await context.dump();
53
- logger_1.default.info('Export Successful');
22
+ function exportCMD(params) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const { output_folder: outputFolder, base_path: basePath, config_file: configFile, config: configObj, export_ids: exportIds, secret: clientSecret, env: shouldInheritEnv = false, experimental_ea: experimentalEA, } = params;
25
+ if (shouldInheritEnv) {
26
+ nconf_1.default.env().use('memory');
27
+ }
28
+ if (configFile) {
29
+ nconf_1.default.file(configFile);
30
+ }
31
+ const overrides = Object.assign({ AUTH0_INPUT_FILE: outputFolder, AUTH0_BASE_PATH: basePath }, (configObj || {}));
32
+ // Prepare configuration by initializing nconf, then passing that as the provider to the config object
33
+ // Allow passed in secret to override the configured one
34
+ if (clientSecret) {
35
+ overrides.AUTH0_CLIENT_SECRET = clientSecret;
36
+ }
37
+ // Allow passed in export_ids to override the configured one
38
+ if (exportIds) {
39
+ overrides.AUTH0_EXPORT_IDENTIFIERS = exportIds;
40
+ }
41
+ // Overrides AUTH0_INCLUDE_EXPERIMENTAL_EA is experimental_ea passed in command line
42
+ if (experimentalEA) {
43
+ overrides.AUTH0_EXPERIMENTAL_EA = experimentalEA;
44
+ // nconf.overrides() sometimes doesn't work, so we need to set it manually to ensure it's set
45
+ nconf_1.default.set('AUTH0_EXPERIMENTAL_EA', experimentalEA);
46
+ }
47
+ // Check output folder
48
+ if (!(0, utils_1.isDirectory)(outputFolder)) {
49
+ logger_1.default.info(`Creating ${outputFolder}`);
50
+ mkdirp_1.default.sync(outputFolder);
51
+ }
52
+ if (params.format === 'yaml') {
53
+ overrides.AUTH0_INPUT_FILE = path_1.default.join(outputFolder, 'tenant.yaml');
54
+ }
55
+ nconf_1.default.overrides(overrides);
56
+ // Setup context and load
57
+ const context = yield (0, index_1.setupContext)(nconf_1.default.get(), 'export');
58
+ yield context.dump();
59
+ logger_1.default.info('Export Successful');
60
+ });
54
61
  }
62
+ //# sourceMappingURL=export.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/commands/export.ts"],"names":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C,YAAY,YAAY,EAAE,CAAC,CAAC;YACrC,gBAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5B,CAAC;QAED,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YAC7B,SAAS,CAAC,gBAAgB,GAAG,cAAI,CAAC,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;QACtE,CAAC;QAED,eAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAE3B,yBAAyB;QACzB,MAAM,OAAO,GAAG,MAAM,IAAA,oBAAY,EAAC,eAAK,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAC;QAC1D,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC;QAErB,gBAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAChC,CAAC;CAAA"}
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
13
  };
@@ -9,40 +18,38 @@ const configFactory_1 = require("../configFactory");
9
18
  const tools_1 = require("../tools");
10
19
  const logger_1 = __importDefault(require("../logger"));
11
20
  const context_1 = require("../context");
12
- async function importCMD(params) {
13
- const { input_file: inputFile, base_path: basePath, config_file: configFile, config: configObj, env: shouldInheritEnv = false, secret: clientSecret, experimental_ea: experimentalEA, } = params;
14
- if (shouldInheritEnv) {
15
- nconf_1.default.env().use('memory');
16
- const mappings = nconf_1.default.get('AUTH0_KEYWORD_REPLACE_MAPPINGS') || {};
17
- nconf_1.default.set('AUTH0_KEYWORD_REPLACE_MAPPINGS', Object.assign(mappings, process.env));
18
- }
19
- if (configFile) {
20
- nconf_1.default.file(configFile);
21
- }
22
- const overrides = {
23
- AUTH0_INPUT_FILE: inputFile,
24
- AUTH0_BASE_PATH: basePath,
25
- AUTH0_KEYWORD_REPLACE_MAPPINGS: {},
26
- ...(configObj || {}),
27
- };
28
- // Prepare configuration by initializing nconf, then passing that as the provider to the config object
29
- // Allow passed in secret to override the configured one
30
- if (clientSecret) {
31
- overrides.AUTH0_CLIENT_SECRET = clientSecret;
32
- }
33
- // Overrides AUTH0_INCLUDE_EXPERIMENTAL_EA is experimental_ea passed in command line
34
- if (experimentalEA) {
35
- overrides.AUTH0_EXPERIMENTAL_EA = experimentalEA;
36
- // nconf.overrides() sometimes doesn't work, so we need to set it manually to ensure it's set
37
- nconf_1.default.set('AUTH0_EXPERIMENTAL_EA', experimentalEA);
38
- }
39
- nconf_1.default.overrides(overrides);
40
- // Setup context and load
41
- const context = await (0, context_1.setupContext)(nconf_1.default.get(), 'import');
42
- await context.loadAssetsFromLocal();
43
- const config = (0, configFactory_1.configFactory)();
44
- config.setProvider((key) => nconf_1.default.get(key));
45
- //@ts-ignore because context and assets still need to be typed TODO: type assets and type context
46
- await (0, tools_1.deploy)(context.assets, context.mgmtClient, config);
47
- logger_1.default.info('Import Successful');
21
+ function importCMD(params) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const { input_file: inputFile, base_path: basePath, config_file: configFile, config: configObj, env: shouldInheritEnv = false, secret: clientSecret, experimental_ea: experimentalEA, } = params;
24
+ if (shouldInheritEnv) {
25
+ nconf_1.default.env().use('memory');
26
+ const mappings = nconf_1.default.get('AUTH0_KEYWORD_REPLACE_MAPPINGS') || {};
27
+ nconf_1.default.set('AUTH0_KEYWORD_REPLACE_MAPPINGS', Object.assign(mappings, process.env));
28
+ }
29
+ if (configFile) {
30
+ nconf_1.default.file(configFile);
31
+ }
32
+ const overrides = Object.assign({ AUTH0_INPUT_FILE: inputFile, AUTH0_BASE_PATH: basePath, AUTH0_KEYWORD_REPLACE_MAPPINGS: {} }, (configObj || {}));
33
+ // Prepare configuration by initializing nconf, then passing that as the provider to the config object
34
+ // Allow passed in secret to override the configured one
35
+ if (clientSecret) {
36
+ overrides.AUTH0_CLIENT_SECRET = clientSecret;
37
+ }
38
+ // Overrides AUTH0_INCLUDE_EXPERIMENTAL_EA is experimental_ea passed in command line
39
+ if (experimentalEA) {
40
+ overrides.AUTH0_EXPERIMENTAL_EA = experimentalEA;
41
+ // nconf.overrides() sometimes doesn't work, so we need to set it manually to ensure it's set
42
+ nconf_1.default.set('AUTH0_EXPERIMENTAL_EA', experimentalEA);
43
+ }
44
+ nconf_1.default.overrides(overrides);
45
+ // Setup context and load
46
+ const context = yield (0, context_1.setupContext)(nconf_1.default.get(), 'import');
47
+ yield context.loadAssetsFromLocal();
48
+ const config = (0, configFactory_1.configFactory)();
49
+ config.setProvider((key) => nconf_1.default.get(key));
50
+ //@ts-ignore because context and assets still need to be typed TODO: type assets and type context
51
+ yield (0, tools_1.deploy)(context.assets, context.mgmtClient, config);
52
+ logger_1.default.info('Import Successful');
53
+ });
48
54
  }
55
+ //# sourceMappingURL=import.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import.js","sourceRoot":"","sources":["../../src/commands/import.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA,4BAwDC;AA/DD,kDAA0B;AAC1B,oDAAiD;AACjD,oCAAiD;AACjD,uDAA4B;AAC5B,wCAA0C;AAG1C,SAA8B,SAAS,CAAC,MAAoB;;QAC1D,MAAM,EACJ,UAAU,EAAE,SAAS,EACrB,SAAS,EAAE,QAAQ,EACnB,WAAW,EAAE,UAAU,EACvB,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,gBAAgB,GAAG,KAAK,EAC7B,MAAM,E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GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QAE5C,iGAAiG;QACjG,MAAM,IAAA,cAAW,EAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAE9D,gBAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAChC,CAAC;CAAA"}
@@ -11,3 +11,4 @@ exports.default = {
11
11
  deploy: import_1.default,
12
12
  dump: export_1.default,
13
13
  };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;;;AAAA,sDAAiC;AACjC,sDAAiC;AAEjC,kBAAe;IACb,MAAM,EAAE,gBAAS;IACjB,MAAM,EAAE,gBAAS;IACjB,MAAM,EAAE,gBAAS;IACjB,IAAI,EAAE,gBAAS;CAChB,CAAC"}
@@ -22,3 +22,4 @@ const configFactory = () => {
22
22
  return config;
23
23
  };
24
24
  exports.configFactory = configFactory;
25
+ //# sourceMappingURL=configFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configFactory.js","sourceRoot":"","sources":["../src/configFactory.ts"],"names":[],"mappings":";;;AAIO,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,QAAQ,GAAoB,EAAE,CAAC;IACrC,IAAI,eAAe,GAA0B,IAAI,CAAC;IAElD,MAAM,MAAM,GAAG,SAAS,SAAS,CAAC,GAAiB;QACjD,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC9B,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;QACvB,CAAC;QAED,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;QAC/D,CAAC;QAED,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEF,MAAM,CAAC,WAAW,GAAG,SAAS,WAAW,CAAC,gBAAgC;QACxE,eAAe,GAAG,gBAAgB,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,CAAC,QAAQ,GAAG,SAAS,QAAQ,CAAC,GAAiB,EAAE,KAAU;QAC/D,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAzBW,QAAA,aAAa,iBAyBxB"}
@@ -9,55 +9,33 @@ const utils_1 = require("../tools/utils");
9
9
  // eslint-disable-next-line import/prefer-default-export
10
10
  function emailProviderDefaults(emailProvider) {
11
11
  // eslint-disable-line
12
- const updated = { ...emailProvider };
12
+ const updated = Object.assign({}, emailProvider);
13
13
  const apiKeyProviders = ['mailgun', 'mandrill', 'sendgrid', 'sparkpost'];
14
14
  // Add placeholder for credentials as they cannot be exported
15
15
  const { name } = updated;
16
16
  if (apiKeyProviders.includes(name)) {
17
- updated.credentials = {
18
- api_key: `##${name.toUpperCase()}_API_KEY##`,
19
- ...(updated.credentials || {}),
20
- };
17
+ updated.credentials = Object.assign({ api_key: `##${name.toUpperCase()}_API_KEY##` }, (updated.credentials || {}));
21
18
  }
22
19
  if (name === 'smtp') {
23
20
  // This is to mask smtp_user to '##SMTP_USER##'
24
21
  if (updated.credentials && 'smtp_user' in updated.credentials) {
25
22
  delete updated.credentials.smtp_user;
26
23
  }
27
- updated.credentials = {
28
- smtp_host: '##SMTP_HOSTNAME##',
29
- smtp_port: '##SMTP_PORT##',
30
- smtp_user: '##SMTP_USER##',
31
- smtp_pass: '##SMTP_PASS##',
32
- ...(updated.credentials || {}),
33
- };
24
+ updated.credentials = Object.assign({ smtp_host: '##SMTP_HOSTNAME##', smtp_port: '##SMTP_PORT##', smtp_user: '##SMTP_USER##', smtp_pass: '##SMTP_PASS##' }, (updated.credentials || {}));
34
25
  }
35
26
  if (name === 'ses') {
36
- updated.credentials = {
37
- accessKeyId: '##SES_ACCESS_KEY_ID##',
38
- secretAccessKey: '##SES_ACCESS_SECRET_KEY##',
39
- region: '##SES_AWS_REGION##',
40
- ...(updated.credentials || {}),
41
- };
27
+ updated.credentials = Object.assign({ accessKeyId: '##SES_ACCESS_KEY_ID##', secretAccessKey: '##SES_ACCESS_SECRET_KEY##', region: '##SES_AWS_REGION##' }, (updated.credentials || {}));
42
28
  }
43
29
  if (name === 'azure_cs') {
44
- updated.credentials = {
45
- connectionString: '##AZURE_CS_CONNECTION_KEY##',
46
- ...(updated.credentials || {}),
47
- };
30
+ updated.credentials = Object.assign({ connectionString: '##AZURE_CS_CONNECTION_KEY##' }, (updated.credentials || {}));
48
31
  }
49
32
  if (name === 'ms365') {
50
- updated.credentials = {
51
- tenantId: '##MS365_TENANT_ID##',
52
- clientId: '##MS365_CLIENT_ID##',
53
- clientSecret: '##MS365_CLIENT_SECRET##',
54
- ...(updated.credentials || {}),
55
- };
33
+ updated.credentials = Object.assign({ tenantId: '##MS365_TENANT_ID##', clientId: '##MS365_CLIENT_ID##', clientSecret: '##MS365_CLIENT_SECRET##' }, (updated.credentials || {}));
56
34
  }
57
35
  return updated;
58
36
  }
59
37
  function phoneProviderDefaults(phoneProvider) {
60
- const updated = { ...phoneProvider };
38
+ const updated = Object.assign({}, phoneProvider);
61
39
  const removeKeysFromOutput = [
62
40
  'id',
63
41
  'created_at',
@@ -125,20 +103,14 @@ function attackProtectionDefaults(attackProtection) {
125
103
  const providersWithSecrets = ['arkose', 'hcaptcha', 'friendly_captcha', 'recaptcha_v2'];
126
104
  providersWithSecrets.forEach((provider) => {
127
105
  if (captcha[provider]) {
128
- captcha[provider] = {
129
- ...captcha[provider],
130
- secret: `##CAPTCHA_${provider.toUpperCase()}_SECRET##`,
131
- };
106
+ captcha[provider] = Object.assign(Object.assign({}, captcha[provider]), { secret: `##CAPTCHA_${provider.toUpperCase()}_SECRET##` });
132
107
  }
133
108
  });
134
109
  if ('recaptcha_enterprise' in captcha) {
135
- captcha.recaptcha_enterprise = {
136
- ...captcha.recaptcha_enterprise,
137
- api_key: '##CAPTCHA_RECAPTCHA_ENTERPRISE_API_KEY##',
138
- project_id: '##CAPTCHA_RECAPTCHA_ENTERPRISE_PROJECT_ID##',
139
- };
110
+ captcha.recaptcha_enterprise = Object.assign(Object.assign({}, captcha.recaptcha_enterprise), { api_key: '##CAPTCHA_RECAPTCHA_ENTERPRISE_API_KEY##', project_id: '##CAPTCHA_RECAPTCHA_ENTERPRISE_PROJECT_ID##' });
140
111
  }
141
112
  attackProtection.captcha = captcha;
142
113
  }
143
114
  return attackProtection;
144
115
  }
116
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/context/defaults.ts"],"names":[],"mappings":";;AAIA,sDAwDC;AAED,sDA4BC;AAED,gDAWC;AAED,8CA0BC;AAED,4DA2BC;AA/JD,0CAAkD;AAElD,wDAAwD;AACxD,SAAgB,qBAAqB,CAAC,aAAa;IACjD,sBAAsB;IACtB,MAAM,OAAO,qBAAQ,aAAa,CAAE,CAAC;IAErC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;IAEzE,6DAA6D;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAEzB,IAAI,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACnC,OAAO,CAAC,WAAW,mBACjB,OAAO,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,YAAY,IACzC,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC,CAC/B,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,+CAA+C;QAC/C,IAAI,OAAO,CAAC,WAAW,IAAI,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YAC9D,OAAO,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC;QACvC,CAAC;QACD,OAAO,CAAC,WAAW,mB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ACnB,CAAC,CAAC,CAAC;IAEH,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,SAAgB,wBAAwB,CAAC,gBAAkC;IACzE,MAAM,EAAE,OAAO,EAAE,GAAG,gBAAgB,CAAC;IAErC,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,CAAC,CAAC;QAExF,oBAAoB,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACxC,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACtB,OAAO,CAAC,QAAQ,CAAC,mCACZ,OAAO,CAAC,QAAQ,CAAC,KACpB,MAAM,EAAE,aAAa,QAAQ,CAAC,WAAW,EAAE,WAAW,GACvD,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,sBAAsB,IAAI,OAAO,EAAE,CAAC;YACtC,OAAO,CAAC,oBAAoB,mCACvB,OAAO,CAAC,oBAAoB,KAC/B,OAAO,EAAE,0CAA0C,EACnD,UAAU,EAAE,6CAA6C,GAC1D,CAAC;QACJ,CAAC;QAED,gBAAgB,CAAC,OAAO,GAAG,OAAO,CAAC;IACrC,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
13
  };
@@ -16,12 +25,10 @@ function parse(context) {
16
25
  return { actions: null }; // Skip
17
26
  const files = (0, utils_1.getFiles)(actionsFolder, ['.json']);
18
27
  const actions = files.map((file) => {
19
- const action = {
20
- ...(0, utils_1.loadJSON)(file, {
21
- mappings: context.mappings,
22
- disableKeywordReplacement: context.disableKeywordReplacement,
23
- }),
24
- };
28
+ const action = Object.assign({}, (0, utils_1.loadJSON)(file, {
29
+ mappings: context.mappings,
30
+ disableKeywordReplacement: context.disableKeywordReplacement,
31
+ }));
25
32
  const actionFolder = path_1.default.join(tools_1.constants.ACTIONS_DIRECTORY, `${action.name}`);
26
33
  if (action.code) {
27
34
  // Convert `action.code` path to Unix-style path by replacing backslashes and multiple slashes with a single forward slash, and remove leading drive letters or './'.
@@ -62,41 +69,32 @@ function mapActionCode(filePath, action) {
62
69
  return `./${tools_1.constants.ACTIONS_DIRECTORY}/${actionName}/code.js`;
63
70
  }
64
71
  function mapToAction(filePath, action, includeIdentifiers) {
65
- return {
66
- ...(includeIdentifiers && action.id ? { id: action.id } : {}),
67
- name: action.name,
68
- code: mapActionCode(filePath, action),
69
- runtime: action.runtime,
70
- status: action.status,
71
- dependencies: action.dependencies,
72
- secrets: mapSecrets(action.secrets),
73
- supported_triggers: action.supported_triggers,
74
- deployed: action.deployed || action.all_changes_deployed,
75
- installed_integration_id: action.installed_integration_id,
76
- };
72
+ return Object.assign(Object.assign({}, (includeIdentifiers && action.id ? { id: action.id } : {})), { name: action.name, code: mapActionCode(filePath, action), runtime: action.runtime, status: action.status, dependencies: action.dependencies, secrets: mapSecrets(action.secrets), supported_triggers: action.supported_triggers, deployed: action.deployed || action.all_changes_deployed, installed_integration_id: action.installed_integration_id });
77
73
  }
78
- async function dump(context) {
79
- const { actions } = context.assets;
80
- if (!actions)
81
- return;
82
- // Marketplace actions are not currently supported for management (See ESD-23225)
83
- const filteredActions = actions.filter((action) => {
84
- if ((0, actions_1.isMarketplaceAction)(action)) {
85
- logger_1.default.warn(`Skipping export of marketplace action "${action.name}". Management of marketplace actions are not currently supported.`);
86
- return false;
87
- }
88
- return true;
89
- });
90
- // Create Actions folder
91
- const actionsFolder = path_1.default.join(context.filePath, tools_1.constants.ACTIONS_DIRECTORY);
92
- fs_extra_1.default.ensureDirSync(actionsFolder);
93
- const includeIdentifiers = Boolean(context.config.AUTH0_EXPORT_IDENTIFIERS);
94
- filteredActions.forEach((action) => {
95
- // Dump template metadata
96
- const name = (0, utils_1.sanitize)(action.name);
97
- const actionFile = path_1.default.join(actionsFolder, `${name}.json`);
98
- logger_1.default.info(`Writing ${actionFile}`);
99
- fs_extra_1.default.writeFileSync(actionFile, JSON.stringify(mapToAction(context.filePath, action, includeIdentifiers), null, 2));
74
+ function dump(context) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ const { actions } = context.assets;
77
+ if (!actions)
78
+ return;
79
+ // Marketplace actions are not currently supported for management (See ESD-23225)
80
+ const filteredActions = actions.filter((action) => {
81
+ if ((0, actions_1.isMarketplaceAction)(action)) {
82
+ logger_1.default.warn(`Skipping export of marketplace action "${action.name}". Management of marketplace actions are not currently supported.`);
83
+ return false;
84
+ }
85
+ return true;
86
+ });
87
+ // Create Actions folder
88
+ const actionsFolder = path_1.default.join(context.filePath, tools_1.constants.ACTIONS_DIRECTORY);
89
+ fs_extra_1.default.ensureDirSync(actionsFolder);
90
+ const includeIdentifiers = Boolean(context.config.AUTH0_EXPORT_IDENTIFIERS);
91
+ filteredActions.forEach((action) => {
92
+ // Dump template metadata
93
+ const name = (0, utils_1.sanitize)(action.name);
94
+ const actionFile = path_1.default.join(actionsFolder, `${name}.json`);
95
+ logger_1.default.info(`Writing ${actionFile}`);
96
+ fs_extra_1.default.writeFileSync(actionFile, JSON.stringify(mapToAction(context.filePath, action, includeIdentifiers), null, 2));
97
+ });
100
98
  });
101
99
  }
102
100
  const actionsHandler = {
@@ -104,3 +102,4 @@ const actionsHandler = {
104
102
  dump,
105
103
  };
106
104
  exports.default = actionsHandler;
105
+ //# sourceMappingURL=actions.js.map