auth0-deploy-cli 7.3.6 → 7.5.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 (113) hide show
  1. package/.circleci/config.yml +15 -0
  2. package/.github/CODEOWNERS +1 -0
  3. package/.husky/pre-commit +6 -0
  4. package/.husky/pre-push +4 -0
  5. package/.nyc_output/60b76a45-577b-4171-9982-a8e836ab7fd6.json +1 -0
  6. package/.nyc_output/processinfo/60b76a45-577b-4171-9982-a8e836ab7fd6.json +1 -0
  7. package/.nyc_output/processinfo/index.json +1 -1
  8. package/CHANGELOG.md +35 -2
  9. package/lib/args.js +89 -81
  10. package/lib/commands/export.js +51 -77
  11. package/lib/commands/import.js +45 -69
  12. package/lib/commands/index.js +11 -20
  13. package/lib/configFactory.js +19 -27
  14. package/lib/context/defaults.js +18 -41
  15. package/lib/context/directory/handlers/actions.js +77 -107
  16. package/lib/context/directory/handlers/attackProtection.js +59 -0
  17. package/lib/context/directory/handlers/clientGrants.js +45 -54
  18. package/lib/context/directory/handlers/clients.js +60 -79
  19. package/lib/context/directory/handlers/connections.js +65 -89
  20. package/lib/context/directory/handlers/databases.js +91 -123
  21. package/lib/context/directory/handlers/emailProvider.js +46 -57
  22. package/lib/context/directory/handlers/emailTemplates.js +67 -80
  23. package/lib/context/directory/handlers/guardianFactorProviders.js +41 -49
  24. package/lib/context/directory/handlers/guardianFactorTemplates.js +41 -49
  25. package/lib/context/directory/handlers/guardianFactors.js +41 -49
  26. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +40 -50
  27. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +40 -50
  28. package/lib/context/directory/handlers/guardianPolicies.js +40 -50
  29. package/lib/context/directory/handlers/hooks.js +55 -70
  30. package/lib/context/directory/handlers/index.js +53 -123
  31. package/lib/context/directory/handlers/migrations.js +36 -41
  32. package/lib/context/directory/handlers/organizations.js +54 -69
  33. package/lib/context/directory/handlers/pages.js +72 -86
  34. package/lib/context/directory/handlers/resourceServers.js +41 -49
  35. package/lib/context/directory/handlers/roles.js +49 -62
  36. package/lib/context/directory/handlers/rules.js +52 -68
  37. package/lib/context/directory/handlers/rulesConfigs.js +33 -32
  38. package/lib/context/directory/handlers/tenant.js +52 -47
  39. package/lib/context/directory/handlers/triggers.js +39 -54
  40. package/lib/context/directory/index.js +113 -101
  41. package/lib/context/index.js +96 -105
  42. package/lib/context/yaml/handlers/actions.js +71 -88
  43. package/lib/context/yaml/handlers/attackProtection.js +29 -0
  44. package/lib/context/yaml/handlers/clientGrants.js +36 -29
  45. package/lib/context/yaml/handlers/clients.js +61 -76
  46. package/lib/context/yaml/handlers/connections.js +76 -103
  47. package/lib/context/yaml/handlers/databases.js +64 -79
  48. package/lib/context/yaml/handlers/emailProvider.js +33 -30
  49. package/lib/context/yaml/handlers/emailTemplates.js +45 -54
  50. package/lib/context/yaml/handlers/guardianFactorProviders.js +27 -18
  51. package/lib/context/yaml/handlers/guardianFactorTemplates.js +27 -18
  52. package/lib/context/yaml/handlers/guardianFactors.js +27 -18
  53. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +27 -20
  54. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +27 -20
  55. package/lib/context/yaml/handlers/guardianPolicies.js +27 -20
  56. package/lib/context/yaml/handlers/hooks.js +57 -67
  57. package/lib/context/yaml/handlers/index.js +53 -123
  58. package/lib/context/yaml/handlers/migrations.js +23 -24
  59. package/lib/context/yaml/handlers/organizations.js +40 -38
  60. package/lib/context/yaml/handlers/pages.js +49 -58
  61. package/lib/context/yaml/handlers/resourceServers.js +27 -18
  62. package/lib/context/yaml/handlers/roles.js +34 -24
  63. package/lib/context/yaml/handlers/rules.js +48 -58
  64. package/lib/context/yaml/handlers/rulesConfigs.js +27 -18
  65. package/lib/context/yaml/handlers/tenant.js +44 -30
  66. package/lib/context/yaml/handlers/triggers.js +32 -23
  67. package/lib/context/yaml/index.js +127 -142
  68. package/lib/index.js +73 -79
  69. package/lib/logger.js +18 -22
  70. package/lib/readonly.js +74 -66
  71. package/lib/tools/ValidationError.js +8 -13
  72. package/lib/tools/auth0/client.js +143 -133
  73. package/lib/tools/auth0/handlers/actions.js +231 -241
  74. package/lib/tools/auth0/handlers/attackProtection.js +86 -0
  75. package/lib/tools/auth0/handlers/branding.js +47 -46
  76. package/lib/tools/auth0/handlers/clientGrants.js +118 -116
  77. package/lib/tools/auth0/handlers/clients.js +72 -90
  78. package/lib/tools/auth0/handlers/connections.js +150 -118
  79. package/lib/tools/auth0/handlers/databases.js +127 -124
  80. package/lib/tools/auth0/handlers/default.js +186 -189
  81. package/lib/tools/auth0/handlers/emailProvider.js +67 -78
  82. package/lib/tools/auth0/handlers/emailTemplates.js +116 -92
  83. package/lib/tools/auth0/handlers/guardianFactorProviders.js +66 -81
  84. package/lib/tools/auth0/handlers/guardianFactorTemplates.js +60 -71
  85. package/lib/tools/auth0/handlers/guardianFactors.js +56 -63
  86. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +80 -79
  87. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +77 -76
  88. package/lib/tools/auth0/handlers/guardianPolicies.js +59 -62
  89. package/lib/tools/auth0/handlers/hooks.js +201 -227
  90. package/lib/tools/auth0/handlers/index.js +53 -111
  91. package/lib/tools/auth0/handlers/migrations.js +99 -79
  92. package/lib/tools/auth0/handlers/organizations.js +225 -247
  93. package/lib/tools/auth0/handlers/pages.js +116 -154
  94. package/lib/tools/auth0/handlers/prompts.js +47 -46
  95. package/lib/tools/auth0/handlers/resourceServers.js +88 -112
  96. package/lib/tools/auth0/handlers/roles.js +203 -220
  97. package/lib/tools/auth0/handlers/rules.js +168 -189
  98. package/lib/tools/auth0/handlers/rulesConfigs.js +54 -63
  99. package/lib/tools/auth0/handlers/tenant.js +88 -64
  100. package/lib/tools/auth0/handlers/triggers.js +126 -126
  101. package/lib/tools/auth0/index.js +92 -85
  102. package/lib/tools/auth0/schema.js +39 -31
  103. package/lib/tools/constants.js +111 -21
  104. package/lib/tools/deploy.js +35 -32
  105. package/lib/tools/index.js +19 -32
  106. package/lib/tools/logger.js +11 -12
  107. package/lib/tools/utils.js +258 -254
  108. package/lib/utils.js +167 -190
  109. package/package.json +6 -3
  110. package/tsconfig.json +96 -0
  111. package/typescript-migration-progress.sh +22 -0
  112. package/.nyc_output/8cf4dd0c-1f3a-4ac1-899c-8e453a64221e.json +0 -1
  113. package/.nyc_output/processinfo/8cf4dd0c-1f3a-4ac1-899c-8e453a64221e.json +0 -1
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":227,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/.bin/mocha","--recursive","--require","@babel/register","test"],"execArgv":[],"cwd":"/home/circleci/repo","time":1646815466467,"ppid":216,"coverageFilename":"/home/circleci/repo/.nyc_output/60b76a45-577b-4171-9982-a8e836ab7fd6.json","externalId":"","uuid":"60b76a45-577b-4171-9982-a8e836ab7fd6","files":["/home/circleci/repo/src/context/index.js","/home/circleci/repo/src/context/yaml/index.js","/home/circleci/repo/src/tools/index.js","/home/circleci/repo/src/tools/constants.js","/home/circleci/repo/src/tools/deploy.js","/home/circleci/repo/src/tools/auth0/index.js","/home/circleci/repo/src/tools/auth0/client.js","/home/circleci/repo/src/tools/utils.js","/home/circleci/repo/src/tools/logger.js","/home/circleci/repo/src/tools/auth0/schema.js","/home/circleci/repo/src/tools/auth0/handlers/index.js","/home/circleci/repo/src/tools/auth0/handlers/rules.js","/home/circleci/repo/src/tools/ValidationError.js","/home/circleci/repo/src/tools/auth0/handlers/default.js","/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js","/home/circleci/repo/src/tools/auth0/handlers/hooks.js","/home/circleci/repo/src/tools/auth0/handlers/pages.js","/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js","/home/circleci/repo/src/tools/auth0/handlers/databases.js","/home/circleci/repo/src/tools/auth0/handlers/connections.js","/home/circleci/repo/src/tools/auth0/handlers/clients.js","/home/circleci/repo/src/tools/auth0/handlers/tenant.js","/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js","/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js","/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/tools/auth0/handlers/roles.js","/home/circleci/repo/src/tools/auth0/handlers/branding.js","/home/circleci/repo/src/tools/auth0/handlers/prompts.js","/home/circleci/repo/src/tools/auth0/handlers/migrations.js","/home/circleci/repo/src/tools/auth0/handlers/actions.js","/home/circleci/repo/src/tools/auth0/handlers/triggers.js","/home/circleci/repo/src/tools/auth0/handlers/organizations.js","/home/circleci/repo/src/tools/auth0/handlers/attackProtection.js","/home/circleci/repo/src/logger.js","/home/circleci/repo/src/utils.js","/home/circleci/repo/src/context/yaml/handlers/index.js","/home/circleci/repo/src/context/yaml/handlers/pages.js","/home/circleci/repo/src/context/yaml/handlers/rules.js","/home/circleci/repo/src/context/yaml/handlers/hooks.js","/home/circleci/repo/src/context/yaml/handlers/clients.js","/home/circleci/repo/src/context/yaml/handlers/tenant.js","/home/circleci/repo/src/context/yaml/handlers/emailProvider.js","/home/circleci/repo/src/context/defaults.js","/home/circleci/repo/src/context/yaml/handlers/connections.js","/home/circleci/repo/src/context/yaml/handlers/databases.js","/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js","/home/circleci/repo/src/context/yaml/handlers/clientGrants.js","/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js","/home/circleci/repo/src/context/yaml/handlers/resourceServers.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js","/home/circleci/repo/src/context/yaml/handlers/roles.js","/home/circleci/repo/src/context/yaml/handlers/organizations.js","/home/circleci/repo/src/context/yaml/handlers/migrations.js","/home/circleci/repo/src/context/yaml/handlers/actions.js","/home/circleci/repo/src/context/yaml/handlers/triggers.js","/home/circleci/repo/src/context/yaml/handlers/attackProtection.js","/home/circleci/repo/src/readonly.js","/home/circleci/repo/src/context/directory/index.js","/home/circleci/repo/src/context/directory/handlers/index.js","/home/circleci/repo/src/context/directory/handlers/pages.js","/home/circleci/repo/src/context/directory/handlers/rules.js","/home/circleci/repo/src/context/directory/handlers/hooks.js","/home/circleci/repo/src/context/directory/handlers/clients.js","/home/circleci/repo/src/context/directory/handlers/tenant.js","/home/circleci/repo/src/context/directory/handlers/emailProvider.js","/home/circleci/repo/src/context/directory/handlers/connections.js","/home/circleci/repo/src/context/directory/handlers/databases.js","/home/circleci/repo/src/context/directory/handlers/emailTemplates.js","/home/circleci/repo/src/context/directory/handlers/clientGrants.js","/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js","/home/circleci/repo/src/context/directory/handlers/resourceServers.js","/home/circleci/repo/src/context/directory/handlers/guardianFactors.js","/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js","/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js","/home/circleci/repo/src/context/directory/handlers/roles.js","/home/circleci/repo/src/context/directory/handlers/migrations.js","/home/circleci/repo/src/context/directory/handlers/actions.js","/home/circleci/repo/src/context/directory/handlers/organizations.js","/home/circleci/repo/src/context/directory/handlers/triggers.js","/home/circleci/repo/src/context/directory/handlers/attackProtection.js","/home/circleci/repo/src/index.js","/home/circleci/repo/src/args.js","/home/circleci/repo/src/commands/index.js","/home/circleci/repo/src/commands/import.js","/home/circleci/repo/src/configFactory.js","/home/circleci/repo/src/commands/export.js"]}
@@ -1 +1 @@
1
- {"processes":{"8cf4dd0c-1f3a-4ac1-899c-8e453a64221e":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/src/context/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/constants.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/deploy.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/client.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/utils.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/logger.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/schema.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/rules.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/ValidationError.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/default.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/hooks.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/pages.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/databases.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/connections.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/clients.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/tenant.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/roles.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/branding.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/prompts.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/migrations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/actions.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/triggers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/tools/auth0/handlers/organizations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/logger.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/utils.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/pages.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/rules.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/hooks.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/clients.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/tenant.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/emailProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/defaults.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/connections.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/databases.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/clientGrants.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/resourceServers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/roles.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/organizations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/migrations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/actions.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/yaml/handlers/triggers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/readonly.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/pages.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/rules.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/hooks.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/clients.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/tenant.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/emailProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/connections.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/databases.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/emailTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/clientGrants.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/resourceServers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianFactors.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/roles.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/migrations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/actions.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/organizations.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/context/directory/handlers/triggers.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/args.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/commands/index.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/commands/import.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/configFactory.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"],"/home/circleci/repo/src/commands/export.js":["8cf4dd0c-1f3a-4ac1-899c-8e453a64221e"]},"externalIds":{}}
1
+ {"processes":{"60b76a45-577b-4171-9982-a8e836ab7fd6":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/src/context/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/constants.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/deploy.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/client.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/utils.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/logger.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/schema.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/rules.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/ValidationError.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/default.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/hooks.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/pages.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/databases.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/connections.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/clients.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/tenant.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/roles.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/branding.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/prompts.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/migrations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/actions.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/triggers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/organizations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/attackProtection.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/logger.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/utils.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/pages.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/rules.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/hooks.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/clients.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/tenant.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/emailProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/defaults.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/connections.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/databases.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/clientGrants.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/resourceServers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/roles.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/organizations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/migrations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/actions.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/triggers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/attackProtection.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/readonly.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/pages.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/rules.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/hooks.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/clients.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/tenant.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/emailProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/connections.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/databases.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/emailTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/clientGrants.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/resourceServers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianFactors.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/roles.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/migrations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/actions.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/organizations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/triggers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/attackProtection.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/args.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/commands/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/commands/import.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/configFactory.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/commands/export.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"]},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.5.0] - 2022-03-08
11
+ ### Added
12
+ - Support for attack protection configuration management [#428]
13
+
14
+ ### Fixed
15
+ - Excluded connection properties from getting deleted upon update [#430]
16
+ - Organizations in YAML format are skipped when not defined [#388]
17
+
18
+ ## [7.4.0] - 2022-02-24
19
+ ### Added
20
+ - Allowing @@ array variable replacement to work when wrapped in quotes [#421]
21
+
22
+ ### Fixed
23
+ - Eliminated benign `client_metadata` warnings on import [#416]
24
+ - Fixing request abstraction from losing function scope, enabling Auth0 Node SDK updates [#412]
25
+
26
+ ### Security
27
+ - Updating Auth0 Node SDK to 2.40.0 which fixes minor dependency vulnerability
28
+
29
+ ## [7.3.7] - 2022-02-03
30
+ ### Fixed
31
+ - Expose errors that may be silently missed in Actions [#408]
32
+
10
33
  ## [7.3.6] - 2022-02-02
11
34
  ### Fixed
12
35
  - Fix errors caused by incompatibilities introduced by new versions of Auth0 SDK [#406]
@@ -411,12 +434,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
411
434
  [#364]: https://github.com/auth0/auth0-deploy-cli/issues/364
412
435
  [#367]: https://github.com/auth0/auth0-deploy-cli/issues/367
413
436
  [#379]: https://github.com/auth0/auth0-deploy-cli/issues/379
437
+ [#388]: https://github.com/auth0/auth0-deploy-cli/issues/388
414
438
  [#400]: https://github.com/auth0/auth0-deploy-cli/issues/400
415
439
  [#401]: https://github.com/auth0/auth0-deploy-cli/issues/401
416
440
  [#403]: https://github.com/auth0/auth0-deploy-cli/issues/403
417
441
  [#406]: https://github.com/auth0/auth0-deploy-cli/issues/406
418
-
419
- [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.6...HEAD
442
+ [#408]: https://github.com/auth0/auth0-deploy-cli/issues/408
443
+ [#412]: https://github.com/auth0/auth0-deploy-cli/issues/412
444
+ [#416]: https://github.com/auth0/auth0-deploy-cli/issues/416
445
+ [#421]: https://github.com/auth0/auth0-deploy-cli/issues/421
446
+ [#428]: https://github.com/auth0/auth0-deploy-cli/issues/428
447
+ [#430]: https://github.com/auth0/auth0-deploy-cli/issues/430
448
+
449
+ [Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.5.0...HEAD
450
+ [7.5.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.4.0...v7.5.0
451
+ [7.4.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.7...v7.4.0
452
+ [7.3.7]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.6...v7.3.7
420
453
  [7.3.6]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.5...v7.3.6
421
454
  [7.3.5]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.4...v7.3.5
422
455
  [7.3.4]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.3...v7.3.4
package/lib/args.js CHANGED
@@ -1,86 +1,94 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getParams = undefined;
7
-
8
- var _yargs = require("yargs");
9
-
10
- var _yargs2 = _interopRequireDefault(_yargs);
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getParams = void 0;
7
+ const yargs_1 = __importDefault(require("yargs"));
14
8
  function getParams() {
15
- const args = _yargs2.default.demandCommand(1, 'A command is required').usage('Auth0 Deploy CLI').option('debug', {
16
- alias: 'd',
17
- describe: 'Dump extra debug information.',
18
- type: 'boolean',
19
- default: false
20
- }).option('proxy_url', {
21
- alias: 'p',
22
- describe: 'A url for proxying requests, only set this if you are behind a proxy.',
23
- type: 'string'
24
- }).command(['import', 'deploy'], 'Deploy Configuration', {
25
- input_file: {
26
- alias: 'i',
27
- describe: 'The updates to deploy. Either a JSON file, or directory that contains the correct file layout. See README and online for more info.',
28
- type: 'string',
29
- demandOption: true
30
- },
31
- config_file: {
32
- alias: 'c',
33
- describe: 'The JSON configuration file.',
34
- type: 'string'
35
- },
36
- env: {
37
- alias: 'e',
38
- describe: 'Override the mappings in config with process.env environment variables.',
39
- type: 'string',
40
- boolean: true,
41
- default: true
42
- },
43
- secret: {
44
- alias: 'x',
45
- describe: 'The client secret, this allows you to encrypt the secret in your build configuration instead of storing it in a config file',
46
- type: 'string'
47
- }
48
- }).command(['export', 'dump'], 'Export Auth0 Tenant Configuration', {
49
- output_folder: {
50
- alias: 'o',
51
- describe: 'The output directory.',
52
- type: 'string',
53
- demandOption: true
54
- },
55
- format: {
56
- alias: 'f',
57
- describe: 'The output format.',
58
- type: 'string',
59
- choices: ['yaml', 'directory'],
60
- demandOption: true
61
- },
62
- config_file: {
63
- alias: 'c',
64
- describe: 'The JSON configuration file.',
65
- type: 'string'
66
- },
67
- secret: {
68
- alias: 'x',
69
- describe: 'The client secret, this allows you to encrypt the secret in your build configuration instead of storing it in a config file',
70
- type: 'string'
71
- },
72
- export_ids: {
73
- alias: 'e',
74
- describe: 'Export identifier field for each object type.',
75
- type: 'boolean',
76
- default: false
77
- }
78
- }).example('$0 export -c config.json -f yaml -o path/to/export', 'Dump Auth0 config to folder in YAML format').example('$0 export -c config.json -f directory -o path/to/export', 'Dump Auth0 config to folder in directory format').example('$0 import -c config.json -i tenant.yaml', 'Deploy Auth0 via YAML').example('$0 import -c config.json -i path/to/files', 'Deploy Auth0 via Path').example('$0 dump -c config.json -f yaml -o path/to/export', 'Dump Auth0 config to folder in YAML format').example('$0 dump -c config.json -f directory -o path/to/export', 'Dump Auth0 config to folder in directory format').example('$0 deploy -c config.json -i tenant.yaml', 'Deploy Auth0 via YAML').example('$0 deploy -c config.json -i path/to/files', 'Deploy Auth0 via Path').epilogue('See README (https://github.com/auth0/auth0-deploy-cli) for more in-depth information on configuration and setup.').wrap(null);
79
-
80
- return args.argv;
9
+ const args = yargs_1.default
10
+ .demandCommand(1, 'A command is required')
11
+ .usage('Auth0 Deploy CLI')
12
+ .option('debug', {
13
+ alias: 'd',
14
+ describe: 'Dump extra debug information.',
15
+ type: 'boolean',
16
+ default: false
17
+ })
18
+ .option('proxy_url', {
19
+ alias: 'p',
20
+ describe: 'A url for proxying requests, only set this if you are behind a proxy.',
21
+ type: 'string'
22
+ })
23
+ .command(['import', 'deploy'], 'Deploy Configuration', {
24
+ input_file: {
25
+ alias: 'i',
26
+ describe: 'The updates to deploy. Either a JSON file, or directory that contains the correct file layout. See README and online for more info.',
27
+ type: 'string',
28
+ demandOption: true
29
+ },
30
+ config_file: {
31
+ alias: 'c',
32
+ describe: 'The JSON configuration file.',
33
+ type: 'string'
34
+ },
35
+ env: {
36
+ alias: 'e',
37
+ describe: 'Override the mappings in config with process.env environment variables.',
38
+ type: 'string',
39
+ boolean: true,
40
+ default: true
41
+ },
42
+ secret: {
43
+ alias: 'x',
44
+ describe: 'The client secret, this allows you to encrypt the secret in your build configuration instead of storing it in a config file',
45
+ type: 'string'
46
+ }
47
+ })
48
+ .command(['export', 'dump'], 'Export Auth0 Tenant Configuration', {
49
+ output_folder: {
50
+ alias: 'o',
51
+ describe: 'The output directory.',
52
+ type: 'string',
53
+ demandOption: true
54
+ },
55
+ format: {
56
+ alias: 'f',
57
+ describe: 'The output format.',
58
+ type: 'string',
59
+ choices: ['yaml', 'directory'],
60
+ demandOption: true
61
+ },
62
+ config_file: {
63
+ alias: 'c',
64
+ describe: 'The JSON configuration file.',
65
+ type: 'string'
66
+ },
67
+ secret: {
68
+ alias: 'x',
69
+ describe: 'The client secret, this allows you to encrypt the secret in your build configuration instead of storing it in a config file',
70
+ type: 'string'
71
+ },
72
+ export_ids: {
73
+ alias: 'e',
74
+ describe: 'Export identifier field for each object type.',
75
+ type: 'boolean',
76
+ default: false
77
+ }
78
+ })
79
+ .example('$0 export -c config.json -f yaml -o path/to/export', 'Dump Auth0 config to folder in YAML format')
80
+ .example('$0 export -c config.json -f directory -o path/to/export', 'Dump Auth0 config to folder in directory format')
81
+ .example('$0 import -c config.json -i tenant.yaml', 'Deploy Auth0 via YAML')
82
+ .example('$0 import -c config.json -i path/to/files', 'Deploy Auth0 via Path')
83
+ .example('$0 dump -c config.json -f yaml -o path/to/export', 'Dump Auth0 config to folder in YAML format')
84
+ .example('$0 dump -c config.json -f directory -o path/to/export', 'Dump Auth0 config to folder in directory format')
85
+ .example('$0 deploy -c config.json -i tenant.yaml', 'Deploy Auth0 via YAML')
86
+ .example('$0 deploy -c config.json -i path/to/files', 'Deploy Auth0 via Path')
87
+ .epilogue('See README (https://github.com/auth0/auth0-deploy-cli) for more in-depth information on configuration and setup.')
88
+ .wrap(null);
89
+ return args.argv;
81
90
  }
82
-
91
+ exports.getParams = getParams;
83
92
  exports.default = {
84
- getParams
93
+ getParams
85
94
  };
86
- exports.getParams = getParams;
@@ -1,79 +1,53 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
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
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const path_1 = __importDefault(require("path"));
16
+ const nconf_1 = __importDefault(require("nconf"));
17
+ const mkdirp_1 = __importDefault(require("mkdirp"));
18
+ const logger_1 = __importDefault(require("../logger"));
19
+ const utils_1 = require("../utils");
20
+ const context_1 = __importDefault(require("../context"));
21
+ function deploy(params) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const { output_folder: outputFolder, base_path: basePath, config_file: configFile, config: configObj, export_ids: exportIds, secret } = params;
24
+ nconf_1.default.env().use('memory');
25
+ if (configFile) {
26
+ nconf_1.default.file(configFile);
27
+ }
28
+ const overrides = Object.assign({ AUTH0_INPUT_FILE: outputFolder, AUTH0_BASE_PATH: basePath, AUTH0_CONFIG_FILE: configFile }, configObj || {});
29
+ // Prepare configuration by initializing nconf, then passing that as the provider to the config object
30
+ // Allow passed in secret to override the configured one
31
+ if (secret) {
32
+ overrides.AUTH0_CLIENT_SECRET = secret;
33
+ }
34
+ // Allow passed in export_ids to override the configured one
35
+ if (exportIds) {
36
+ overrides.AUTH0_EXPORT_IDENTIFIERS = exportIds;
37
+ }
38
+ // Check output folder
39
+ if (!(0, utils_1.isDirectory)(outputFolder)) {
40
+ logger_1.default.info(`Creating ${outputFolder}`);
41
+ mkdirp_1.default.sync(outputFolder);
42
+ }
43
+ if (params.format === 'yaml') {
44
+ overrides.AUTH0_INPUT_FILE = path_1.default.join(outputFolder, 'tenant.yaml');
45
+ }
46
+ nconf_1.default.overrides(overrides);
47
+ // Setup context and load
48
+ const context = yield (0, context_1.default)(nconf_1.default.get());
49
+ yield context.dump();
50
+ logger_1.default.info('Export Successful');
51
+ });
52
+ }
6
53
  exports.default = deploy;
7
-
8
- var _path = require("path");
9
-
10
- var _path2 = _interopRequireDefault(_path);
11
-
12
- var _nconf = require("nconf");
13
-
14
- var _nconf2 = _interopRequireDefault(_nconf);
15
-
16
- var _mkdirp = require("mkdirp");
17
-
18
- var _mkdirp2 = _interopRequireDefault(_mkdirp);
19
-
20
- var _logger = require("../logger");
21
-
22
- var _logger2 = _interopRequireDefault(_logger);
23
-
24
- var _utils = require("../utils");
25
-
26
- var _context = require("../context");
27
-
28
- var _context2 = _interopRequireDefault(_context);
29
-
30
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
-
32
- async function deploy(params) {
33
- const {
34
- output_folder: outputFolder,
35
- base_path: basePath,
36
- config_file: configFile,
37
- config: configObj,
38
- export_ids: exportIds,
39
- secret
40
- } = params;
41
-
42
- _nconf2.default.env().use('memory');
43
-
44
- if (configFile) {
45
- _nconf2.default.file(configFile);
46
- }
47
-
48
- const overrides = {
49
- AUTH0_INPUT_FILE: outputFolder,
50
- AUTH0_BASE_PATH: basePath,
51
- AUTH0_CONFIG_FILE: configFile,
52
- ...(configObj || {})
53
- };
54
-
55
- if (secret) {
56
- overrides.AUTH0_CLIENT_SECRET = secret;
57
- }
58
-
59
- if (exportIds) {
60
- overrides.AUTH0_EXPORT_IDENTIFIERS = exportIds;
61
- }
62
-
63
- if (!(0, _utils.isDirectory)(outputFolder)) {
64
- _logger2.default.info(`Creating ${outputFolder}`);
65
-
66
- _mkdirp2.default.sync(outputFolder);
67
- }
68
-
69
- if (params.format === 'yaml') {
70
- overrides.AUTH0_INPUT_FILE = _path2.default.join(outputFolder, 'tenant.yaml');
71
- }
72
-
73
- _nconf2.default.overrides(overrides);
74
-
75
- const context = await (0, _context2.default)(_nconf2.default.get());
76
- await context.dump();
77
-
78
- _logger2.default.info('Export Successful');
79
- }
@@ -1,71 +1,47 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
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
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const nconf_1 = __importDefault(require("nconf"));
16
+ const configFactory_1 = __importDefault(require("../configFactory"));
17
+ const tools_1 = require("../tools");
18
+ const logger_1 = __importDefault(require("../logger"));
19
+ const context_1 = __importDefault(require("../context"));
20
+ function deploy(params) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const { input_file: inputFile, base_path: basePath, config_file: configFile, config: configObj, env, secret } = params;
23
+ nconf_1.default.env().use('memory');
24
+ if (configFile) {
25
+ nconf_1.default.file(configFile);
26
+ }
27
+ const overrides = Object.assign({ AUTH0_INPUT_FILE: inputFile, AUTH0_BASE_PATH: basePath, AUTH0_CONFIG_FILE: configFile, AUTH0_KEYWORD_REPLACE_MAPPINGS: {} }, configObj || {});
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 (secret) {
31
+ overrides.AUTH0_CLIENT_SECRET = secret;
32
+ }
33
+ if (env) {
34
+ const mappings = nconf_1.default.get('AUTH0_KEYWORD_REPLACE_MAPPINGS') || {};
35
+ nconf_1.default.set('AUTH0_KEYWORD_REPLACE_MAPPINGS', Object.assign(mappings, process.env));
36
+ }
37
+ nconf_1.default.overrides(overrides);
38
+ // Setup context and load
39
+ const context = yield (0, context_1.default)(nconf_1.default.get());
40
+ yield context.load();
41
+ const config = (0, configFactory_1.default)();
42
+ config.setProvider((key) => nconf_1.default.get(key));
43
+ yield (0, tools_1.deploy)(context.assets, context.mgmtClient, config);
44
+ logger_1.default.info('Import Successful');
45
+ });
46
+ }
6
47
  exports.default = deploy;
7
-
8
- var _nconf = require("nconf");
9
-
10
- var _nconf2 = _interopRequireDefault(_nconf);
11
-
12
- var _configFactory = require("../configFactory");
13
-
14
- var _configFactory2 = _interopRequireDefault(_configFactory);
15
-
16
- var _tools = require("../tools");
17
-
18
- var _logger = require("../logger");
19
-
20
- var _logger2 = _interopRequireDefault(_logger);
21
-
22
- var _context = require("../context");
23
-
24
- var _context2 = _interopRequireDefault(_context);
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
- async function deploy(params) {
29
- const {
30
- input_file: inputFile,
31
- base_path: basePath,
32
- config_file: configFile,
33
- config: configObj,
34
- env,
35
- secret
36
- } = params;
37
-
38
- _nconf2.default.env().use('memory');
39
-
40
- if (configFile) {
41
- _nconf2.default.file(configFile);
42
- }
43
-
44
- const overrides = {
45
- AUTH0_INPUT_FILE: inputFile,
46
- AUTH0_BASE_PATH: basePath,
47
- AUTH0_CONFIG_FILE: configFile,
48
- AUTH0_KEYWORD_REPLACE_MAPPINGS: {},
49
- ...(configObj || {})
50
- };
51
-
52
- if (secret) {
53
- overrides.AUTH0_CLIENT_SECRET = secret;
54
- }
55
-
56
- if (env) {
57
- const mappings = _nconf2.default.get('AUTH0_KEYWORD_REPLACE_MAPPINGS') || {};
58
-
59
- _nconf2.default.set('AUTH0_KEYWORD_REPLACE_MAPPINGS', Object.assign(mappings, process.env));
60
- }
61
-
62
- _nconf2.default.overrides(overrides);
63
-
64
- const context = await (0, _context2.default)(_nconf2.default.get());
65
- await context.load();
66
- const config = (0, _configFactory2.default)();
67
- config.setProvider(key => _nconf2.default.get(key));
68
- await (0, _tools.deploy)(context.assets, context.mgmtClient, config);
69
-
70
- _logger2.default.info('Import Successful');
71
- }
@@ -1,22 +1,13 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _import = require("./import");
8
-
9
- var _import2 = _interopRequireDefault(_import);
10
-
11
- var _export = require("./export");
12
-
13
- var _export2 = _interopRequireDefault(_export);
14
-
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
-
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const import_1 = __importDefault(require("./import"));
7
+ const export_1 = __importDefault(require("./export"));
17
8
  exports.default = {
18
- import: _import2.default,
19
- export: _export2.default,
20
- deploy: _import2.default,
21
- dump: _export2.default
22
- };
9
+ import: import_1.default,
10
+ export: export_1.default,
11
+ deploy: import_1.default,
12
+ dump: export_1.default
13
+ };