auth0-deploy-cli 7.17.3 → 7.17.4

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 (142) hide show
  1. package/.nyc_output/67e163b9-d5bd-4ae5-9b74-0b04dfeaf361.json +1 -0
  2. package/.nyc_output/processinfo/{4931ff4a-8b09-4a9b-899c-ce541c2f6b8a.json → 67e163b9-d5bd-4ae5-9b74-0b04dfeaf361.json} +1 -1
  3. package/.nyc_output/processinfo/f2a37c08-0ae4-478f-8782-0e1416b1d10e.json +1 -0
  4. package/.nyc_output/processinfo/f4c8ad6c-7554-4bd2-8c36-1202264880e7.json +1 -0
  5. package/.nyc_output/processinfo/index.json +1 -1
  6. package/CHANGELOG.md +9 -1
  7. package/coverage/lcov-report/index.html +14 -14
  8. package/coverage/lcov-report/src/args.ts.html +1 -1
  9. package/coverage/lcov-report/src/commands/export.ts.html +1 -1
  10. package/coverage/lcov-report/src/commands/import.ts.html +1 -1
  11. package/coverage/lcov-report/src/commands/index.html +1 -1
  12. package/coverage/lcov-report/src/configFactory.ts.html +1 -1
  13. package/coverage/lcov-report/src/context/defaults.ts.html +1 -1
  14. package/coverage/lcov-report/src/context/directory/handlers/actions.ts.html +1 -1
  15. package/coverage/lcov-report/src/context/directory/handlers/attackProtection.ts.html +1 -1
  16. package/coverage/lcov-report/src/context/directory/handlers/branding.ts.html +1 -1
  17. package/coverage/lcov-report/src/context/directory/handlers/clientGrants.ts.html +1 -1
  18. package/coverage/lcov-report/src/context/directory/handlers/clients.ts.html +1 -1
  19. package/coverage/lcov-report/src/context/directory/handlers/connections.ts.html +1 -1
  20. package/coverage/lcov-report/src/context/directory/handlers/customDomains.ts.html +1 -1
  21. package/coverage/lcov-report/src/context/directory/handlers/databases.ts.html +1 -1
  22. package/coverage/lcov-report/src/context/directory/handlers/emailProvider.ts.html +1 -1
  23. package/coverage/lcov-report/src/context/directory/handlers/emailTemplates.ts.html +1 -1
  24. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorProviders.ts.html +1 -1
  25. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorTemplates.ts.html +1 -1
  26. package/coverage/lcov-report/src/context/directory/handlers/guardianFactors.ts.html +1 -1
  27. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  28. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  29. package/coverage/lcov-report/src/context/directory/handlers/guardianPolicies.ts.html +1 -1
  30. package/coverage/lcov-report/src/context/directory/handlers/hooks.ts.html +1 -1
  31. package/coverage/lcov-report/src/context/directory/handlers/index.html +1 -1
  32. package/coverage/lcov-report/src/context/directory/handlers/index.ts.html +1 -1
  33. package/coverage/lcov-report/src/context/directory/handlers/logStreams.ts.html +1 -1
  34. package/coverage/lcov-report/src/context/directory/handlers/migrations.ts.html +1 -1
  35. package/coverage/lcov-report/src/context/directory/handlers/organizations.ts.html +1 -1
  36. package/coverage/lcov-report/src/context/directory/handlers/pages.ts.html +1 -1
  37. package/coverage/lcov-report/src/context/directory/handlers/prompts.ts.html +1 -1
  38. package/coverage/lcov-report/src/context/directory/handlers/resourceServers.ts.html +1 -1
  39. package/coverage/lcov-report/src/context/directory/handlers/roles.ts.html +1 -1
  40. package/coverage/lcov-report/src/context/directory/handlers/rules.ts.html +1 -1
  41. package/coverage/lcov-report/src/context/directory/handlers/rulesConfigs.ts.html +1 -1
  42. package/coverage/lcov-report/src/context/directory/handlers/tenant.ts.html +1 -1
  43. package/coverage/lcov-report/src/context/directory/handlers/themes.ts.html +1 -1
  44. package/coverage/lcov-report/src/context/directory/handlers/triggers.ts.html +1 -1
  45. package/coverage/lcov-report/src/context/directory/index.html +1 -1
  46. package/coverage/lcov-report/src/context/directory/index.ts.html +1 -1
  47. package/coverage/lcov-report/src/context/index.html +1 -1
  48. package/coverage/lcov-report/src/context/index.ts.html +1 -1
  49. package/coverage/lcov-report/src/context/yaml/handlers/actions.ts.html +1 -1
  50. package/coverage/lcov-report/src/context/yaml/handlers/attackProtection.ts.html +1 -1
  51. package/coverage/lcov-report/src/context/yaml/handlers/branding.ts.html +1 -1
  52. package/coverage/lcov-report/src/context/yaml/handlers/clientGrants.ts.html +1 -1
  53. package/coverage/lcov-report/src/context/yaml/handlers/clients.ts.html +1 -1
  54. package/coverage/lcov-report/src/context/yaml/handlers/connections.ts.html +1 -1
  55. package/coverage/lcov-report/src/context/yaml/handlers/customDomains.ts.html +1 -1
  56. package/coverage/lcov-report/src/context/yaml/handlers/databases.ts.html +1 -1
  57. package/coverage/lcov-report/src/context/yaml/handlers/emailProvider.ts.html +1 -1
  58. package/coverage/lcov-report/src/context/yaml/handlers/emailTemplates.ts.html +1 -1
  59. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorProviders.ts.html +1 -1
  60. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorTemplates.ts.html +1 -1
  61. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactors.ts.html +1 -1
  62. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  63. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  64. package/coverage/lcov-report/src/context/yaml/handlers/guardianPolicies.ts.html +1 -1
  65. package/coverage/lcov-report/src/context/yaml/handlers/hooks.ts.html +1 -1
  66. package/coverage/lcov-report/src/context/yaml/handlers/index.html +1 -1
  67. package/coverage/lcov-report/src/context/yaml/handlers/index.ts.html +1 -1
  68. package/coverage/lcov-report/src/context/yaml/handlers/logStreams.ts.html +1 -1
  69. package/coverage/lcov-report/src/context/yaml/handlers/migrations.ts.html +1 -1
  70. package/coverage/lcov-report/src/context/yaml/handlers/organizations.ts.html +1 -1
  71. package/coverage/lcov-report/src/context/yaml/handlers/pages.ts.html +1 -1
  72. package/coverage/lcov-report/src/context/yaml/handlers/prompts.ts.html +1 -1
  73. package/coverage/lcov-report/src/context/yaml/handlers/resourceServers.ts.html +1 -1
  74. package/coverage/lcov-report/src/context/yaml/handlers/roles.ts.html +1 -1
  75. package/coverage/lcov-report/src/context/yaml/handlers/rules.ts.html +1 -1
  76. package/coverage/lcov-report/src/context/yaml/handlers/rulesConfigs.ts.html +1 -1
  77. package/coverage/lcov-report/src/context/yaml/handlers/tenant.ts.html +1 -1
  78. package/coverage/lcov-report/src/context/yaml/handlers/themes.ts.html +1 -1
  79. package/coverage/lcov-report/src/context/yaml/handlers/triggers.ts.html +1 -1
  80. package/coverage/lcov-report/src/context/yaml/index.html +1 -1
  81. package/coverage/lcov-report/src/context/yaml/index.ts.html +1 -1
  82. package/coverage/lcov-report/src/index.html +1 -1
  83. package/coverage/lcov-report/src/index.ts.html +1 -1
  84. package/coverage/lcov-report/src/keywordPreservation.ts.html +1 -1
  85. package/coverage/lcov-report/src/logger.ts.html +2 -2
  86. package/coverage/lcov-report/src/readonly.ts.html +1 -1
  87. package/coverage/lcov-report/src/sessionDurationsToMinutes.ts.html +1 -1
  88. package/coverage/lcov-report/src/tools/auth0/client.ts.html +1 -1
  89. package/coverage/lcov-report/src/tools/auth0/handlers/actions.ts.html +1 -1
  90. package/coverage/lcov-report/src/tools/auth0/handlers/attackProtection.ts.html +1 -1
  91. package/coverage/lcov-report/src/tools/auth0/handlers/branding.ts.html +1 -1
  92. package/coverage/lcov-report/src/tools/auth0/handlers/clientGrants.ts.html +1 -1
  93. package/coverage/lcov-report/src/tools/auth0/handlers/clients.ts.html +1 -1
  94. package/coverage/lcov-report/src/tools/auth0/handlers/connections.ts.html +1 -1
  95. package/coverage/lcov-report/src/tools/auth0/handlers/customDomains.ts.html +1 -1
  96. package/coverage/lcov-report/src/tools/auth0/handlers/databases.ts.html +1 -1
  97. package/coverage/lcov-report/src/tools/auth0/handlers/default.ts.html +15 -15
  98. package/coverage/lcov-report/src/tools/auth0/handlers/emailProvider.ts.html +1 -1
  99. package/coverage/lcov-report/src/tools/auth0/handlers/emailTemplates.ts.html +1 -1
  100. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorProviders.ts.html +1 -1
  101. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorTemplates.ts.html +1 -1
  102. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactors.ts.html +1 -1
  103. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  104. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  105. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPolicies.ts.html +1 -1
  106. package/coverage/lcov-report/src/tools/auth0/handlers/hooks.ts.html +1 -1
  107. package/coverage/lcov-report/src/tools/auth0/handlers/index.html +13 -13
  108. package/coverage/lcov-report/src/tools/auth0/handlers/index.ts.html +1 -1
  109. package/coverage/lcov-report/src/tools/auth0/handlers/logStreams.ts.html +1 -1
  110. package/coverage/lcov-report/src/tools/auth0/handlers/migrations.ts.html +1 -1
  111. package/coverage/lcov-report/src/tools/auth0/handlers/organizations.ts.html +1 -1
  112. package/coverage/lcov-report/src/tools/auth0/handlers/pages.ts.html +1 -1
  113. package/coverage/lcov-report/src/tools/auth0/handlers/prompts.ts.html +1 -1
  114. package/coverage/lcov-report/src/tools/auth0/handlers/resourceServers.ts.html +1 -1
  115. package/coverage/lcov-report/src/tools/auth0/handlers/roles.ts.html +1 -1
  116. package/coverage/lcov-report/src/tools/auth0/handlers/rules.ts.html +1 -1
  117. package/coverage/lcov-report/src/tools/auth0/handlers/rulesConfigs.ts.html +1 -1
  118. package/coverage/lcov-report/src/tools/auth0/handlers/tenant.ts.html +137 -74
  119. package/coverage/lcov-report/src/tools/auth0/handlers/themes.ts.html +1 -1
  120. package/coverage/lcov-report/src/tools/auth0/handlers/triggers.ts.html +1 -1
  121. package/coverage/lcov-report/src/tools/auth0/index.html +1 -1
  122. package/coverage/lcov-report/src/tools/auth0/index.ts.html +1 -1
  123. package/coverage/lcov-report/src/tools/auth0/schema.ts.html +1 -1
  124. package/coverage/lcov-report/src/tools/calculateChanges.ts.html +1 -1
  125. package/coverage/lcov-report/src/tools/constants.ts.html +1 -1
  126. package/coverage/lcov-report/src/tools/deploy.ts.html +1 -1
  127. package/coverage/lcov-report/src/tools/index.html +1 -1
  128. package/coverage/lcov-report/src/tools/index.ts.html +1 -1
  129. package/coverage/lcov-report/src/tools/utils.ts.html +1 -1
  130. package/coverage/lcov-report/src/tools/validationError.ts.html +1 -1
  131. package/coverage/lcov-report/src/types.ts.html +1 -1
  132. package/coverage/lcov-report/src/utils.ts.html +1 -1
  133. package/coverage/lcov.info +108 -102
  134. package/lib/tools/auth0/handlers/tenant.d.ts +2 -4
  135. package/lib/tools/auth0/handlers/tenant.js +56 -30
  136. package/lib/tools/auth0/handlers/tenant.js.map +1 -1
  137. package/package.json +1 -1
  138. package/.nyc_output/4931ff4a-8b09-4a9b-899c-ce541c2f6b8a.json +0 -1
  139. package/.nyc_output/processinfo/760b21c1-74f0-47a2-bacb-55b1796d1d84.json +0 -1
  140. package/.nyc_output/processinfo/f8a6012a-6f3c-46cf-8693-1687738e001c.json +0 -1
  141. /package/.nyc_output/{760b21c1-74f0-47a2-bacb-55b1796d1d84.json → f2a37c08-0ae4-478f-8782-0e1416b1d10e.json} +0 -0
  142. /package/.nyc_output/{f8a6012a-6f3c-46cf-8693-1687738e001c.json → f4c8ad6c-7554-4bd2-8c36-1202264880e7.json} +0 -0
@@ -335,11 +335,11 @@ SF:src/logger.ts
335
335
  FN:10,(anonymous_0)
336
336
  FNF:1
337
337
  FNH:1
338
- FNDA:789,(anonymous_0)
338
+ FNDA:792,(anonymous_0)
339
339
  DA:1,1
340
340
  DA:3,1
341
341
  DA:5,1
342
- DA:10,789
342
+ DA:10,792
343
343
  DA:16,1
344
344
  LF:5
345
345
  LH:5
@@ -5491,7 +5491,7 @@ FNF:35
5491
5491
  FNH:27
5492
5492
  FNDA:10,order
5493
5493
  FNDA:10,decorator
5494
- FNDA:3992,(anonymous_10)
5494
+ FNDA:3993,(anonymous_10)
5495
5495
  FNDA:57,(anonymous_11)
5496
5496
  FNDA:24,(anonymous_12)
5497
5497
  FNDA:33,(anonymous_13)
@@ -5533,20 +5533,20 @@ DA:17,10
5533
5533
  DA:18,10
5534
5534
  DA:19,10
5535
5535
  DA:25,1
5536
- DA:64,3992
5537
- DA:65,3992
5538
- DA:66,3992
5539
- DA:67,3992
5540
- DA:68,3992
5541
- DA:69,3992
5542
- DA:70,3992
5543
- DA:71,3992
5544
- DA:72,3992
5545
- DA:73,3992
5546
- DA:75,3992
5547
- DA:83,3992
5548
- DA:84,3992
5549
- DA:85,3992
5536
+ DA:64,3993
5537
+ DA:65,3993
5538
+ DA:66,3993
5539
+ DA:67,3993
5540
+ DA:68,3993
5541
+ DA:69,3993
5542
+ DA:70,3993
5543
+ DA:71,3993
5544
+ DA:72,3993
5545
+ DA:73,3993
5546
+ DA:75,3993
5547
+ DA:83,3993
5548
+ DA:84,3993
5549
+ DA:85,3993
5550
5550
  DA:89,57
5551
5551
  DA:90,47
5552
5552
  DA:91,47
@@ -5630,20 +5630,20 @@ DA:303,20
5630
5630
  DA:306,0
5631
5631
  LF:104
5632
5632
  LH:89
5633
- BRDA:66,0,0,3992
5634
- BRDA:66,0,1,2477
5635
- BRDA:69,1,0,3992
5636
- BRDA:69,1,1,3165
5637
- BRDA:70,2,0,3992
5638
- BRDA:70,2,1,3851
5639
- BRDA:71,3,0,3992
5640
- BRDA:71,3,1,2724
5641
- BRDA:72,4,0,3992
5642
- BRDA:72,4,1,3857
5643
- BRDA:73,5,0,3992
5644
- BRDA:73,5,1,3723
5645
- BRDA:80,6,0,3992
5646
- BRDA:80,6,1,3578
5633
+ BRDA:66,0,0,3993
5634
+ BRDA:66,0,1,2478
5635
+ BRDA:69,1,0,3993
5636
+ BRDA:69,1,1,3166
5637
+ BRDA:70,2,0,3993
5638
+ BRDA:70,2,1,3852
5639
+ BRDA:71,3,0,3993
5640
+ BRDA:71,3,1,2725
5641
+ BRDA:72,4,0,3993
5642
+ BRDA:72,4,1,3858
5643
+ BRDA:73,5,0,3993
5644
+ BRDA:73,5,1,3724
5645
+ BRDA:80,6,0,3993
5646
+ BRDA:80,6,1,3579
5647
5647
  BRDA:89,7,0,47
5648
5648
  BRDA:89,7,1,10
5649
5649
  BRDA:123,8,0,0
@@ -7380,89 +7380,95 @@ BRH:3
7380
7380
  end_of_record
7381
7381
  TN:
7382
7382
  SF:src/tools/auth0/handlers/tenant.ts
7383
- FN:23,(anonymous_15)
7384
- FN:30,(anonymous_16)
7385
- FN:35,(anonymous_18)
7386
- FN:42,(anonymous_19)
7387
- FN:48,(anonymous_21)
7388
- FN:60,(anonymous_22)
7389
- FN:87,(anonymous_24)
7390
- FN:111,(anonymous_25)
7383
+ FN:24,(anonymous_15)
7384
+ FN:31,(anonymous_16)
7385
+ FN:36,(anonymous_18)
7386
+ FN:43,(anonymous_19)
7387
+ FN:49,(anonymous_21)
7388
+ FN:61,(anonymous_22)
7389
+ FN:122,(anonymous_24)
7390
+ FN:125,(anonymous_25)
7391
7391
  FNF:8
7392
7392
  FNH:8
7393
- FNDA:134,(anonymous_15)
7394
- FNDA:9,(anonymous_16)
7395
- FNDA:90,(anonymous_18)
7393
+ FNDA:135,(anonymous_15)
7394
+ FNDA:7,(anonymous_16)
7395
+ FNDA:70,(anonymous_18)
7396
7396
  FNDA:73,(anonymous_19)
7397
7397
  FNDA:11,(anonymous_21)
7398
- FNDA:2,(anonymous_22)
7399
- FNDA:8,(anonymous_24)
7400
- FNDA:19,(anonymous_25)
7398
+ FNDA:3,(anonymous_22)
7399
+ FNDA:5,(anonymous_24)
7400
+ FNDA:57,(anonymous_25)
7401
7401
  DA:1,1
7402
7402
  DA:3,1
7403
7403
  DA:4,1
7404
7404
  DA:5,1
7405
- DA:8,1
7406
- DA:14,1
7407
- DA:20,1
7408
- DA:24,134
7409
- DA:31,9
7410
- DA:33,9
7411
- DA:35,9
7412
- DA:36,90
7413
- DA:39,9
7414
- DA:43,73
7415
- DA:46,73
7416
- DA:48,11
7417
- DA:49,5
7418
- DA:50,1
7419
- DA:60,1
7420
- DA:61,2
7421
- DA:64,2
7422
- DA:66,2
7423
- DA:68,2
7405
+ DA:7,1
7406
+ DA:9,1
7407
+ DA:15,1
7408
+ DA:21,1
7409
+ DA:25,135
7410
+ DA:32,7
7411
+ DA:34,7
7412
+ DA:36,7
7413
+ DA:37,70
7414
+ DA:40,7
7415
+ DA:44,73
7416
+ DA:47,73
7417
+ DA:49,11
7418
+ DA:50,5
7419
+ DA:51,1
7420
+ DA:61,1
7421
+ DA:62,3
7422
+ DA:65,3
7423
+ DA:67,3
7424
+ DA:71,3
7424
7425
  DA:72,2
7425
- DA:73,1
7426
+ DA:73,2
7427
+ DA:74,1
7428
+ DA:78,3
7426
7429
  DA:79,2
7427
7430
  DA:80,2
7428
7431
  DA:81,2
7429
- DA:82,2
7430
- DA:87,1
7431
- DA:102,8
7432
- DA:110,8
7433
- DA:112,19
7434
- DA:113,19
7435
- DA:114,13
7436
- DA:119,6
7437
- DA:120,6
7438
- DA:121,3
7439
- DA:126,3
7440
- LF:39
7441
- LH:39
7442
- BRDA:36,0,0,0
7443
- BRDA:36,0,1,90
7444
- BRDA:46,1,0,68
7445
- BRDA:46,1,1,5
7446
- BRDA:49,2,0,1
7447
- BRDA:49,2,1,4
7448
- BRDA:64,3,0,0
7449
- BRDA:64,3,1,2
7450
- BRDA:66,4,0,2
7451
- BRDA:66,4,1,2
7452
- BRDA:72,5,0,1
7453
- BRDA:72,5,1,1
7454
- BRDA:79,6,0,2
7455
- BRDA:79,6,1,0
7456
- BRDA:79,7,0,2
7457
- BRDA:79,7,1,2
7458
- BRDA:88,8,0,0
7459
- BRDA:89,9,0,0
7460
- BRDA:113,10,0,13
7461
- BRDA:113,10,1,6
7462
- BRDA:120,11,0,3
7463
- BRDA:120,11,1,3
7464
- BRF:22
7465
- BRH:17
7432
+ DA:94,1
7433
+ DA:122,1
7434
+ DA:123,5
7435
+ DA:124,5
7436
+ DA:126,57
7437
+ DA:127,57
7438
+ DA:128,5
7439
+ DA:129,5
7440
+ DA:131,52
7441
+ DA:139,5
7442
+ DA:140,3
7443
+ DA:150,5
7444
+ LF:43
7445
+ LH:43
7446
+ BRDA:37,0,0,0
7447
+ BRDA:37,0,1,70
7448
+ BRDA:47,1,0,68
7449
+ BRDA:47,1,1,5
7450
+ BRDA:50,2,0,1
7451
+ BRDA:50,2,1,4
7452
+ BRDA:65,3,0,0
7453
+ BRDA:65,3,1,3
7454
+ BRDA:71,4,0,2
7455
+ BRDA:71,4,1,1
7456
+ BRDA:73,5,0,1
7457
+ BRDA:73,5,1,1
7458
+ BRDA:78,6,0,2
7459
+ BRDA:78,6,1,1
7460
+ BRDA:78,7,0,3
7461
+ BRDA:78,7,1,3
7462
+ BRDA:127,8,0,5
7463
+ BRDA:127,8,1,52
7464
+ BRDA:139,9,0,3
7465
+ BRDA:139,9,1,2
7466
+ BRDA:142,10,0,2
7467
+ BRDA:142,10,1,1
7468
+ BRDA:145,11,0,2
7469
+ BRDA:145,11,1,1
7470
+ BRF:24
7471
+ BRH:22
7466
7472
  end_of_record
7467
7473
  TN:
7468
7474
  SF:src/tools/auth0/handlers/themes.ts
@@ -16,7 +16,5 @@ export default class TenantHandler extends DefaultHandler {
16
16
  validate(assets: Assets): Promise<void>;
17
17
  processChanges(assets: Assets): Promise<void>;
18
18
  }
19
- export declare const sanitizeMigrationFlags: ({ existingFlags, proposedFlags, }: {
20
- existingFlags: Tenant['flags'];
21
- proposedFlags: Tenant['flags'];
22
- }) => Tenant['flags'];
19
+ export declare const allowedTenantFlags: string[];
20
+ export declare const removeUnallowedTenantFlags: (proposedFlags: Tenant['flags']) => Tenant['flags'];
@@ -41,11 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  return (mod && mod.__esModule) ? mod : { "default": mod };
42
42
  };
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.sanitizeMigrationFlags = exports.schema = void 0;
44
+ exports.removeUnallowedTenantFlags = exports.allowedTenantFlags = exports.schema = void 0;
45
45
  const validationError_1 = __importDefault(require("../../validationError"));
46
46
  const default_1 = __importStar(require("./default"));
47
47
  const pages_1 = require("./pages");
48
48
  const utils_1 = require("../../utils");
49
+ const logger_1 = __importDefault(require("../../../logger"));
49
50
  exports.schema = {
50
51
  type: 'object',
51
52
  };
@@ -88,13 +89,12 @@ class TenantHandler extends default_1.default {
88
89
  // Do nothing if not set
89
90
  if (!tenant)
90
91
  return;
91
- const existingTenant = this.existing || (yield this.getType());
92
92
  const updatedTenant = Object.assign({}, tenant);
93
93
  if ('flags' in updatedTenant) {
94
- updatedTenant.flags = (0, exports.sanitizeMigrationFlags)({
95
- existingFlags: existingTenant.flags,
96
- proposedFlags: tenant.flags,
97
- });
94
+ updatedTenant.flags = (0, exports.removeUnallowedTenantFlags)(tenant.flags);
95
+ if (Object.keys(updatedTenant.flags).length === 0) {
96
+ delete updatedTenant.flags;
97
+ }
98
98
  }
99
99
  if (updatedTenant && Object.keys(updatedTenant).length > 0) {
100
100
  yield this.client.tenant.updateSettings(updatedTenant);
@@ -108,30 +108,56 @@ __decorate([
108
108
  (0, default_1.order)('100')
109
109
  ], TenantHandler.prototype, "processChanges", null);
110
110
  exports.default = TenantHandler;
111
- const sanitizeMigrationFlags = ({ existingFlags = {}, proposedFlags = {}, }) => {
112
- /*
113
- Tenants can only update migration flags that are already configured.
114
- If moving configuration from one tenant to another, there may be instances
115
- where different migration flags exist and cause an error on update. This
116
- function removes any migration flags that aren't already present on the target
117
- tenant. See: https://github.com/auth0/auth0-deploy-cli/issues/374
118
- */
119
- const tenantMigrationFlags = [
120
- 'disable_clickjack_protection_headers',
121
- 'enable_mgmt_api_v1',
122
- 'trust_azure_adfs_email_verified_connection_property',
123
- 'include_email_in_reset_pwd_redirect',
124
- 'include_email_in_verify_email_redirect',
125
- ];
126
- return Object.keys(proposedFlags).reduce((acc, proposedKey) => {
127
- const isMigrationFlag = tenantMigrationFlags.includes(proposedKey);
128
- if (!isMigrationFlag)
129
- return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
130
- const keyCurrentlyExists = existingFlags[proposedKey] !== undefined;
131
- if (keyCurrentlyExists)
132
- return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
133
- return acc;
111
+ /*
112
+ Tenant flags are used to facilitate a number of functionalities, some
113
+ public, some internal. The subset of flags that are allowed to be updated
114
+ in the context of the Deploy CLI is based on wether they're publicly exposed
115
+ in the Auth0 API docs:
116
+
117
+ https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings
118
+ */
119
+ exports.allowedTenantFlags = [
120
+ 'change_pwd_flow_v1',
121
+ 'enable_client_connections',
122
+ 'enable_apis_section',
123
+ 'enable_pipeline2',
124
+ 'enable_dynamic_client_registration',
125
+ 'enable_custom_domain_in_emails',
126
+ 'allow_legacy_tokeninfo_endpoint',
127
+ 'enable_legacy_profile',
128
+ 'enable_idtoken_api2',
129
+ 'enable_public_signup_user_exists_error',
130
+ 'allow_legacy_delegation_grant_types',
131
+ 'allow_legacy_ro_grant_types',
132
+ 'enable_sso',
133
+ 'disable_clickjack_protection_headers',
134
+ 'no_disclose_enterprise_connections',
135
+ 'disable_management_api_sms_obfuscation',
136
+ 'enforce_client_authentication_on_passwordless_start',
137
+ 'trust_azure_adfs_email_verified_connection_property',
138
+ 'enable_adfs_waad_email_verification',
139
+ 'revoke_refresh_token_grant',
140
+ 'dashboard_log_streams_next',
141
+ 'dashboard_insights_view',
142
+ 'disable_fields_map_fix',
143
+ 'require_pushed_authorization_requests',
144
+ 'mfa_show_factor_list_on_enrollment',
145
+ ];
146
+ const removeUnallowedTenantFlags = (proposedFlags) => {
147
+ const removedFlags = [];
148
+ const filteredFlags = Object.keys(proposedFlags).reduce((acc, proposedKey) => {
149
+ const isAllowedFlag = exports.allowedTenantFlags.includes(proposedKey);
150
+ if (!isAllowedFlag) {
151
+ removedFlags.push(proposedKey);
152
+ return acc;
153
+ }
154
+ return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
134
155
  }, {});
156
+ if (removedFlags.length > 0) {
157
+ logger_1.default.warn(`The following tenant flag${removedFlags.length > 1 ? 's have not been' : ' has not been'} updated because deemed incompatible with the target tenant: ${removedFlags.join(', ')}
158
+ ${removedFlags.length > 1 ? 'These flags' : 'This flag'} can likely be removed from the tenant definition file. If you believe this removal is an error, please report via a Github issue.`);
159
+ }
160
+ return filteredFlags;
135
161
  };
136
- exports.sanitizeMigrationFlags = sanitizeMigrationFlags;
162
+ exports.removeUnallowedTenantFlags = removeUnallowedTenantFlags;
137
163
  //# sourceMappingURL=tenant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/tenant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAAoD;AAEpD,qDAAkD;AAClD,mCAAsD;AACtD,uCAAkD;AAGrC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;CACf,CAAC;AAIF,MAAM,aAAa,GAAG;IACpB,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAW,CAAC;IAC3B,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAW,CAAC;IAC7B,GAAG,sBAAc;CAClB,CAAC;AAEF,MAAqB,aAAc,SAAQ,iBAAc;IAGvD,YAAY,OAAuB;QACjC,KAAK,iCACA,OAAO,KACV,IAAI,EAAE,QAAQ,IACd,CAAC;IACL,CAAC;IAEK,OAAO;;YACX,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;YAEtD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC;YAEvB,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBAC5B,IAAI,MAAM,CAAC,GAAG,CAAC;oBAAE,OAAO,MAAM,CAAC,GAAG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AC7D,MAAM,aAAa,GAAG,0BAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC/D,IAAI,CAAC,aAAa,EAAE;YAClB,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC/B,OAAO,GAAG,CAAC;SACZ;QACD,uCACK,GAAG,KACN,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,IACzC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;QAC3B,gBAAG,CAAC,IAAI,CACN,4BACE,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAChD,gEAAgE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;QAErF,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAC5C,oIAAoI,CACrI,CAAC;KACH;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AA7BW,QAAA,0BAA0B,8BA6BrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-deploy-cli",
3
- "version": "7.17.3",
3
+ "version": "7.17.4",
4
4
  "description": "A command line tool for deploying updates to your Auth0 tenant",
5
5
  "main": "lib/index.js",
6
6
  "bin": {