@microsoft/teamsfx-core 2.0.6-alpha.ae74bd5cd.0 → 2.0.6-alpha.b2e46f3b2.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.
- package/build/common/constants.d.ts +3 -2
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -2
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.js +3 -0
- package/build/common/deps-checker/checkerFactory.js.map +1 -1
- package/build/common/deps-checker/constant/telemetry.d.ts +1 -0
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
- package/build/common/deps-checker/constant/telemetry.js +1 -0
- package/build/common/deps-checker/constant/telemetry.js.map +1 -1
- package/build/common/deps-checker/coreDepsLoggerAdapter.d.ts +17 -0
- package/build/common/deps-checker/coreDepsLoggerAdapter.d.ts.map +1 -0
- package/build/common/deps-checker/coreDepsLoggerAdapter.js +47 -0
- package/build/common/deps-checker/coreDepsLoggerAdapter.js.map +1 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.d.ts +16 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.d.ts.map +1 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.js +53 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.js.map +1 -0
- package/build/common/deps-checker/depsChecker.d.ts +6 -1
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js +6 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +2 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +2 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/testToolChecker.d.ts +14 -3
- package/build/common/deps-checker/internal/testToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/testToolChecker.js +178 -70
- package/build/common/deps-checker/internal/testToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js +3 -45
- package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
- package/build/common/deps-checker/util/downloadHelper.d.ts +15 -0
- package/build/common/deps-checker/util/downloadHelper.d.ts.map +1 -0
- package/build/common/deps-checker/util/downloadHelper.js +59 -0
- package/build/common/deps-checker/util/downloadHelper.js.map +1 -0
- package/build/common/featureFlags.d.ts +3 -3
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +11 -12
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/local/constants.d.ts +1 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +1 -0
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts +5 -4
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +9 -2
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/packageJsonHelper.d.ts +0 -1
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +1 -29
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts +1 -0
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +85 -7
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/projectTypeChecker.d.ts +38 -0
- package/build/common/projectTypeChecker.d.ts.map +1 -0
- package/build/common/projectTypeChecker.js +217 -0
- package/build/common/projectTypeChecker.js.map +1 -0
- package/build/common/samples.d.ts +13 -7
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +83 -49
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.js +2 -4
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -1
- package/build/common/spec-parser/constants.d.ts +22 -13
- package/build/common/spec-parser/constants.d.ts.map +1 -1
- package/build/common/spec-parser/constants.js +22 -14
- package/build/common/spec-parser/constants.js.map +1 -1
- package/build/common/spec-parser/index.browser.d.ts +6 -0
- package/build/common/spec-parser/index.browser.d.ts.map +1 -0
- package/build/common/spec-parser/index.browser.js +16 -0
- package/build/common/spec-parser/index.browser.js.map +1 -0
- package/build/common/spec-parser/index.d.ts +5 -0
- package/build/common/spec-parser/index.d.ts.map +1 -0
- package/build/common/spec-parser/index.js +16 -0
- package/build/common/spec-parser/index.js.map +1 -0
- package/build/common/spec-parser/interfaces.d.ts +37 -3
- package/build/common/spec-parser/interfaces.d.ts.map +1 -1
- package/build/common/spec-parser/interfaces.js +3 -3
- package/build/common/spec-parser/interfaces.js.map +1 -1
- package/build/common/spec-parser/manifestUpdater.d.ts +4 -4
- package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -1
- package/build/common/spec-parser/manifestUpdater.js +49 -110
- package/build/common/spec-parser/manifestUpdater.js.map +1 -1
- package/build/common/spec-parser/specFilter.d.ts +1 -1
- package/build/common/spec-parser/specFilter.d.ts.map +1 -1
- package/build/common/spec-parser/specFilter.js +2 -2
- package/build/common/spec-parser/specFilter.js.map +1 -1
- package/build/common/spec-parser/specParser.browser.d.ts +46 -0
- package/build/common/spec-parser/specParser.browser.d.ts.map +1 -0
- package/build/common/spec-parser/specParser.browser.js +139 -0
- package/build/common/spec-parser/specParser.browser.js.map +1 -0
- package/build/common/spec-parser/specParser.d.ts +11 -11
- package/build/common/spec-parser/specParser.d.ts.map +1 -1
- package/build/common/spec-parser/specParser.js +100 -113
- package/build/common/spec-parser/specParser.js.map +1 -1
- package/build/common/spec-parser/utils.d.ts +18 -5
- package/build/common/spec-parser/utils.d.ts.map +1 -1
- package/build/common/spec-parser/utils.js +304 -41
- package/build/common/spec-parser/utils.js.map +1 -1
- package/build/common/telemetry.d.ts +23 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +40 -1
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +1 -1
- package/build/common/tools.js.map +1 -1
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +2 -3
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/coordinator/index.d.ts +2 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +3 -1
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +32 -0
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.js +1 -1
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/invalidFieldInManifestError.js +1 -1
- package/build/component/driver/aad/error/invalidFieldInManifestError.js.map +1 -1
- package/build/component/driver/aad/permissions/index.d.ts +3 -0
- package/build/component/driver/aad/permissions/index.d.ts.map +1 -1
- package/build/component/driver/aad/permissions/index.js +34 -1
- package/build/component/driver/aad/permissions/index.js.map +1 -1
- package/build/component/driver/aad/permissions/permissions.json +42 -42
- package/build/component/driver/aad/update.d.ts +1 -0
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +19 -17
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +9 -9
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/aad/utility/constants.js +1 -1
- package/build/component/driver/aad/utility/constants.js.map +1 -1
- package/build/component/driver/apiKey/create.d.ts +17 -0
- package/build/component/driver/apiKey/create.d.ts.map +1 -0
- package/build/component/driver/apiKey/create.js +228 -0
- package/build/component/driver/apiKey/create.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.js +22 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.js +22 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.js +21 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.js +21 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.js.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.d.ts +7 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.d.ts.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.js +5 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.js.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.d.ts +7 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.d.ts.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.js +10 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.js.map +1 -0
- package/build/component/driver/apiKey/utility/constants.d.ts +10 -0
- package/build/component/driver/apiKey/utility/constants.d.ts.map +1 -0
- package/build/component/driver/apiKey/utility/constants.js +15 -0
- package/build/component/driver/apiKey/utility/constants.js.map +1 -0
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +3 -2
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +5 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts +5 -0
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +27 -6
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts +2 -1
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +5 -2
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/index.d.ts +1 -0
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +1 -0
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +12 -7
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +52 -23
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +13 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +38 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +2 -0
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +2 -0
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +26 -6
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.d.ts +44 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.js +21 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.d.ts +15 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.js +5 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +1 -0
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +9 -9
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts +20 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -0
- package/build/component/driver/teamsApp/teamsappMgr.js +278 -0
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -0
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +7 -2
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +49 -15
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +47 -30
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +4 -2
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/helper.js +105 -20
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/error.d.ts +5 -8
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +16 -16
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generator.d.ts +5 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +26 -27
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +6 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +30 -12
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +21 -20
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +7 -0
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +1 -14
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +1 -14
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/utils.d.ts +7 -5
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +35 -16
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/middleware/questionMW.d.ts +1 -1
- package/build/component/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +4 -1
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +1 -0
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +31 -1
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/common.d.ts +3 -1
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +2 -2
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/envUtil.d.ts +1 -0
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +6 -1
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/fileOperation.d.ts +1 -1
- package/build/component/utils/fileOperation.d.ts.map +1 -1
- package/build/component/utils/fileOperation.js +34 -48
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/component/utils/metadataGraphPermssion.d.ts +16 -0
- package/build/component/utils/metadataGraphPermssion.d.ts.map +1 -0
- package/build/component/utils/metadataGraphPermssion.js +96 -0
- package/build/component/utils/metadataGraphPermssion.js.map +1 -0
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +2 -0
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/core/FxCore.d.ts +24 -1
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +189 -25
- package/build/core/FxCore.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +11 -10
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +4 -4
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +1 -1
- package/build/error/common.d.ts +9 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +34 -1
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.d.ts +6 -0
- package/build/error/deploy.d.ts.map +1 -1
- package/build/error/deploy.js +25 -1
- package/build/error/deploy.js.map +1 -1
- package/build/error/teamsApp.d.ts +4 -1
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +13 -1
- package/build/error/teamsApp.js.map +1 -1
- package/build/index.d.ts +4 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +8 -1
- package/build/index.js.map +1 -1
- package/build/question/create.d.ts +2 -1
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +78 -24
- package/build/question/create.js.map +1 -1
- package/build/question/generator.js +1 -3
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts +1 -0
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +3 -0
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/DeployAadManifestInputs.d.ts +1 -1
- package/build/question/inputs/DeployAadManifestInputs.d.ts.map +1 -1
- package/build/question/inputs/PermissionGrantInputs.d.ts +2 -2
- package/build/question/inputs/PermissionGrantInputs.d.ts.map +1 -1
- package/build/question/inputs/PermissionListInputs.d.ts +1 -1
- package/build/question/inputs/PermissionListInputs.d.ts.map +1 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +2 -0
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +2 -1
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/CreateSampleProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateSampleProjectOptions.js +5 -1
- package/build/question/options/CreateSampleProjectOptions.js.map +1 -1
- package/build/question/options/DeployAadManifestOptions.js +2 -2
- package/build/question/options/DeployAadManifestOptions.js.map +1 -1
- package/build/question/options/PermissionGrantOptions.js +2 -2
- package/build/question/options/PermissionGrantOptions.js.map +1 -1
- package/build/question/options/PermissionListOptions.js +2 -2
- package/build/question/options/PermissionListOptions.js.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.js +9 -0
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -1
- package/build/question/other.d.ts +3 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +83 -7
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +2 -0
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +2 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +11 -2
- package/build/ui/visitor.js.map +1 -1
- package/package.json +16 -23
- package/resource/package.nls.json +74 -51
- package/resource/yaml-schema/v1.3/yaml.schema.json +81 -35
- package/templates/core/v3Migration/csharp.app.local.yml +6 -6
- package/templates/core/v3Migration/csharp.app.yml +6 -6
- package/templates/core/v3Migration/js.ts.app.local.yml +11 -11
- package/templates/core/v3Migration/js.ts.app.yml +12 -12
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/Pages/BotAuthorizeEndPage.cshtml +55 -51
- package/templates/plugins/resource/aad/auth/V3/Enable SSO.txt +2 -2
- package/templates/plugins/resource/aad/auth/bot/README.md +13 -13
- package/templates/plugins/resource/aad/auth/bot/README.txt +7 -7
- package/templates/plugins/resource/aad/auth/bot/csharp/Pages/BotAuthorizeEndPage.cshtml +55 -51
- package/templates/plugins/resource/aad/auth/bot/js/public/auth-end.html +6 -2
- package/templates/plugins/resource/aad/auth/bot/ts/public/auth-end.html +5 -1
- package/templates/plugins/resource/aad/auth/tab/README.md +6 -6
- package/templates/plugins/resource/aad/auth/tab/README.txt +5 -5
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-end.html +16 -9
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-start.html +11 -7
- package/templates/plugins/resource/aad/auth/tab/js/sso/GetUserProfile.jsx +1 -1
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-end.html +16 -9
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-start.html +11 -7
- package/templates/plugins/resource/aad/auth/tab/ts/sso/GetUserProfile.tsx +1 -1
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
export declare const graphAppId = "00000003-0000-0000-c000-000000000000";
|
|
2
|
+
export declare const graphAppName = "Microsoft Graph";
|
|
1
3
|
export declare function getPermissionMap(): any;
|
|
4
|
+
export declare function getDetailedGraphPermissionMap(): any;
|
|
2
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/aad/permissions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/aad/permissions/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,yCAAyC,CAAC;AACjE,eAAO,MAAM,YAAY,oBAAoB,CAAC;AAG9C,wBAAgB,gBAAgB,IAAI,GAAG,CA8BtC;AAED,wBAAgB,6BAA6B,IAAI,GAAG,CA2BnD"}
|
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getPermissionMap = void 0;
|
|
5
|
+
exports.getDetailedGraphPermissionMap = exports.getPermissionMap = exports.graphAppName = exports.graphAppId = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const jsonPermissionList = tslib_1.__importStar(require("./permissions.json"));
|
|
8
|
+
exports.graphAppId = "00000003-0000-0000-c000-000000000000";
|
|
9
|
+
exports.graphAppName = "Microsoft Graph";
|
|
10
|
+
let loadedMap = null;
|
|
11
|
+
let loadedGraphPermissionMap = null;
|
|
8
12
|
function getPermissionMap() {
|
|
13
|
+
if (loadedMap) {
|
|
14
|
+
return loadedMap;
|
|
15
|
+
}
|
|
9
16
|
const permissionList = jsonPermissionList;
|
|
10
17
|
const map = {};
|
|
11
18
|
permissionList.value.forEach((permission) => {
|
|
@@ -27,7 +34,33 @@ function getPermissionMap() {
|
|
|
27
34
|
});
|
|
28
35
|
map[permission.displayName] = map[resourceId];
|
|
29
36
|
});
|
|
37
|
+
loadedMap = map;
|
|
30
38
|
return map;
|
|
31
39
|
}
|
|
32
40
|
exports.getPermissionMap = getPermissionMap;
|
|
41
|
+
function getDetailedGraphPermissionMap() {
|
|
42
|
+
if (loadedGraphPermissionMap) {
|
|
43
|
+
return loadedGraphPermissionMap;
|
|
44
|
+
}
|
|
45
|
+
const permissionList = jsonPermissionList;
|
|
46
|
+
const graphPermission = permissionList.value.find((permission) => permission.appId === exports.graphAppId);
|
|
47
|
+
if (!graphPermission) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
const map = {};
|
|
51
|
+
map.scopeIds = {};
|
|
52
|
+
map.scopes = {};
|
|
53
|
+
graphPermission.oauth2PermissionScopes.forEach((scope) => {
|
|
54
|
+
map.scopeIds[scope.id] = {
|
|
55
|
+
// value is the scope name
|
|
56
|
+
value: scope.value,
|
|
57
|
+
// type is either "Admin" or "User"
|
|
58
|
+
type: scope.type,
|
|
59
|
+
};
|
|
60
|
+
map.scopes[scope.value] = scope.id;
|
|
61
|
+
});
|
|
62
|
+
loadedGraphPermissionMap = map;
|
|
63
|
+
return map;
|
|
64
|
+
}
|
|
65
|
+
exports.getDetailedGraphPermissionMap = getDetailedGraphPermissionMap;
|
|
33
66
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/component/driver/aad/permissions/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,+EAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/component/driver/aad/permissions/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAG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/B,OAAO,GAAG,CAAC;AACb,CAAC;AA3BD,sEA2BC"}
|
|
@@ -1395,7 +1395,7 @@
|
|
|
1395
1395
|
"allowedMemberTypes": [
|
|
1396
1396
|
"Application"
|
|
1397
1397
|
],
|
|
1398
|
-
"description": "Allows an app to read all service usage reports without a signed-in user. Services that provide usage reports include Office 365 and
|
|
1398
|
+
"description": "Allows an app to read all service usage reports without a signed-in user. Services that provide usage reports include Office 365 and Microsoft Entra ID.",
|
|
1399
1399
|
"displayName": "Read all usage reports",
|
|
1400
1400
|
"id": "230c1aed-a721-4c5d-9cb4-a90514e508ef",
|
|
1401
1401
|
"isEnabled": true,
|
|
@@ -1824,8 +1824,8 @@
|
|
|
1824
1824
|
"allowedMemberTypes": [
|
|
1825
1825
|
"Application"
|
|
1826
1826
|
],
|
|
1827
|
-
"description": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
1828
|
-
"displayName": "Read privileged access to
|
|
1827
|
+
"description": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra built-in and custom administrative roles in your organization, without a signed-in user.",
|
|
1828
|
+
"displayName": "Read privileged access to Microsoft Entra roles",
|
|
1829
1829
|
"id": "4cdc2547-9148-4295-8d11-be0db1391d6b",
|
|
1830
1830
|
"isEnabled": true,
|
|
1831
1831
|
"origin": "Application",
|
|
@@ -1835,8 +1835,8 @@
|
|
|
1835
1835
|
"allowedMemberTypes": [
|
|
1836
1836
|
"Application"
|
|
1837
1837
|
],
|
|
1838
|
-
"description": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
1839
|
-
"displayName": "Read privileged access to
|
|
1838
|
+
"description": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra groups in your organization, without a signed-in user.",
|
|
1839
|
+
"displayName": "Read privileged access to Microsoft Entra groups",
|
|
1840
1840
|
"id": "01e37dc9-c035-40bd-b438-b2879c4870a6",
|
|
1841
1841
|
"isEnabled": true,
|
|
1842
1842
|
"origin": "Application",
|
|
@@ -1857,8 +1857,8 @@
|
|
|
1857
1857
|
"allowedMemberTypes": [
|
|
1858
1858
|
"Application"
|
|
1859
1859
|
],
|
|
1860
|
-
"description": "Allows the app to request and manage time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
1861
|
-
"displayName": "Read and write privileged access to
|
|
1860
|
+
"description": "Allows the app to request and manage time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra built-in and custom administrative roles in your organization, without a signed-in user.",
|
|
1861
|
+
"displayName": "Read and write privileged access to Microsoft Entra roles",
|
|
1862
1862
|
"id": "854d9ab1-6657-4ec8-be45-823027bcd009",
|
|
1863
1863
|
"isEnabled": true,
|
|
1864
1864
|
"origin": "Application",
|
|
@@ -1868,8 +1868,8 @@
|
|
|
1868
1868
|
"allowedMemberTypes": [
|
|
1869
1869
|
"Application"
|
|
1870
1870
|
],
|
|
1871
|
-
"description": "Allows the app to request and manage time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
1872
|
-
"displayName": "Read and write privileged access to
|
|
1871
|
+
"description": "Allows the app to request and manage time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra groups in your organization, without a signed-in user.",
|
|
1872
|
+
"displayName": "Read and write privileged access to Microsoft Entra groups",
|
|
1873
1873
|
"id": "2f6817f8-7b12-4f0f-bc18-eeaf60705a9e",
|
|
1874
1874
|
"isEnabled": true,
|
|
1875
1875
|
"origin": "Application",
|
|
@@ -2891,7 +2891,7 @@
|
|
|
2891
2891
|
"allowedMemberTypes": [
|
|
2892
2892
|
"Application"
|
|
2893
2893
|
],
|
|
2894
|
-
"description": "Allows the application to obtain basic tenant information about another target tenant within the
|
|
2894
|
+
"description": "Allows the application to obtain basic tenant information about another target tenant within the Microsoft Entra ecosystem without a signed-in user.",
|
|
2895
2895
|
"displayName": "Read cross-tenant basic information",
|
|
2896
2896
|
"id": "cac88765-0581-4025-9725-5ebc13f729ee",
|
|
2897
2897
|
"isEnabled": true,
|
|
@@ -2979,8 +2979,8 @@
|
|
|
2979
2979
|
"allowedMemberTypes": [
|
|
2980
2980
|
"Application"
|
|
2981
2981
|
],
|
|
2982
|
-
"description": "Allows the app to read and update all
|
|
2983
|
-
"displayName": "Read and update all
|
|
2982
|
+
"description": "Allows the app to read and update all Microsoft Entra recommendations, without a signed-in user. ",
|
|
2983
|
+
"displayName": "Read and update all Microsoft Entra recommendations",
|
|
2984
2984
|
"id": "0e9eea12-4f01-45f6-9b8d-3ea4c8144158",
|
|
2985
2985
|
"isEnabled": true,
|
|
2986
2986
|
"origin": "Application",
|
|
@@ -3023,8 +3023,8 @@
|
|
|
3023
3023
|
"allowedMemberTypes": [
|
|
3024
3024
|
"Application"
|
|
3025
3025
|
],
|
|
3026
|
-
"description": "Allows the app to read all
|
|
3027
|
-
"displayName": "Read all
|
|
3026
|
+
"description": "Allows the app to read all Microsoft Entra recommendations, without a signed-in user. ",
|
|
3027
|
+
"displayName": "Read all Microsoft Entra recommendations",
|
|
3028
3028
|
"id": "ae73097b-cb2a-4447-b064-5d80f6093921",
|
|
3029
3029
|
"isEnabled": true,
|
|
3030
3030
|
"origin": "Application",
|
|
@@ -4132,13 +4132,13 @@
|
|
|
4132
4132
|
"value": "AppCatalog.ReadWrite.All"
|
|
4133
4133
|
},
|
|
4134
4134
|
{
|
|
4135
|
-
"adminConsentDescription": "Allows the app to request and manage just in time elevation (including scheduled elevation) of users to
|
|
4136
|
-
"adminConsentDisplayName": "Read and write privileged access to
|
|
4135
|
+
"adminConsentDescription": "Allows the app to request and manage just in time elevation (including scheduled elevation) of users to Microsoft Entra built-in administrative roles, on behalf of signed-in users.",
|
|
4136
|
+
"adminConsentDisplayName": "Read and write privileged access to Microsoft Entra",
|
|
4137
4137
|
"id": "3c3c74f5-cdaa-4a97-b7e0-4e788bfcfb37",
|
|
4138
4138
|
"isEnabled": true,
|
|
4139
4139
|
"type": "Admin",
|
|
4140
|
-
"userConsentDescription": "Allows the app to request and manage just in time elevation (including scheduled elevation) of users to
|
|
4141
|
-
"userConsentDisplayName": "Read and write privileged access to
|
|
4140
|
+
"userConsentDescription": "Allows the app to request and manage just in time elevation (including scheduled elevation) of users to Microsoft Entra built-in administrative roles, on your behalf.",
|
|
4141
|
+
"userConsentDisplayName": "Read and write privileged access to Microsoft Entra",
|
|
4142
4142
|
"value": "PrivilegedAccess.ReadWrite.AzureAD"
|
|
4143
4143
|
},
|
|
4144
4144
|
{
|
|
@@ -4582,12 +4582,12 @@
|
|
|
4582
4582
|
"value": "Files.ReadWrite.AppFolder"
|
|
4583
4583
|
},
|
|
4584
4584
|
{
|
|
4585
|
-
"adminConsentDescription": "Allows an app to read all service usage reports on behalf of the signed-in user. Services that provide usage reports include Office 365 and
|
|
4585
|
+
"adminConsentDescription": "Allows an app to read all service usage reports on behalf of the signed-in user. Services that provide usage reports include Office 365 and Microsoft Entra ID.",
|
|
4586
4586
|
"adminConsentDisplayName": "Read all usage reports",
|
|
4587
4587
|
"id": "02e97553-ed7b-43d0-ab3c-f8bace0d040c",
|
|
4588
4588
|
"isEnabled": true,
|
|
4589
4589
|
"type": "Admin",
|
|
4590
|
-
"userConsentDescription": "Allows an app to read all service usage reports on your behalf. Services that provide usage reports include Office 365 and
|
|
4590
|
+
"userConsentDescription": "Allows an app to read all service usage reports on your behalf. Services that provide usage reports include Office 365 and Microsoft Entra ID.",
|
|
4591
4591
|
"userConsentDisplayName": "Read all usage reports",
|
|
4592
4592
|
"value": "Reports.Read.All"
|
|
4593
4593
|
},
|
|
@@ -5142,23 +5142,23 @@
|
|
|
5142
5142
|
"value": "PrivilegedAccess.ReadWrite.AzureResources"
|
|
5143
5143
|
},
|
|
5144
5144
|
{
|
|
5145
|
-
"adminConsentDescription": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
5146
|
-
"adminConsentDisplayName": "Read privileged access to
|
|
5145
|
+
"adminConsentDescription": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra built-in and custom administrative roles, on behalf of the signed-in user.",
|
|
5146
|
+
"adminConsentDisplayName": "Read privileged access to Microsoft Entra",
|
|
5147
5147
|
"id": "b3a539c9-59cb-4ad5-825a-041ddbdc2bdb",
|
|
5148
5148
|
"isEnabled": true,
|
|
5149
5149
|
"type": "Admin",
|
|
5150
|
-
"userConsentDescription": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
5151
|
-
"userConsentDisplayName": "Read privileged access to
|
|
5150
|
+
"userConsentDescription": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra built-in and custom administrative roles, on your behalf.",
|
|
5151
|
+
"userConsentDisplayName": "Read privileged access to Microsoft Entra",
|
|
5152
5152
|
"value": "PrivilegedAccess.Read.AzureAD"
|
|
5153
5153
|
},
|
|
5154
5154
|
{
|
|
5155
|
-
"adminConsentDescription": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
5156
|
-
"adminConsentDisplayName": "Read privileged access to
|
|
5155
|
+
"adminConsentDescription": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra groups, on behalf of the signed-in user.",
|
|
5156
|
+
"adminConsentDisplayName": "Read privileged access to Microsoft Entra groups",
|
|
5157
5157
|
"id": "d329c81c-20ad-4772-abf9-3f6fdb7e5988",
|
|
5158
5158
|
"isEnabled": true,
|
|
5159
5159
|
"type": "Admin",
|
|
5160
|
-
"userConsentDescription": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
5161
|
-
"userConsentDisplayName": "Read privileged access to
|
|
5160
|
+
"userConsentDescription": "Allows the app to read time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra groups, on your behalf.",
|
|
5161
|
+
"userConsentDisplayName": "Read privileged access to Microsoft Entra groups",
|
|
5162
5162
|
"value": "PrivilegedAccess.Read.AzureADGroup"
|
|
5163
5163
|
},
|
|
5164
5164
|
{
|
|
@@ -5172,13 +5172,13 @@
|
|
|
5172
5172
|
"value": "PrivilegedAccess.Read.AzureResources"
|
|
5173
5173
|
},
|
|
5174
5174
|
{
|
|
5175
|
-
"adminConsentDescription": "Allows the app to request and manage time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
5176
|
-
"adminConsentDisplayName": "Read and write privileged access to
|
|
5175
|
+
"adminConsentDescription": "Allows the app to request and manage time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra groups, on behalf of the signed-in user.",
|
|
5176
|
+
"adminConsentDisplayName": "Read and write privileged access to Microsoft Entra groups",
|
|
5177
5177
|
"id": "32531c59-1f32-461f-b8df-6f8a3b89f73b",
|
|
5178
5178
|
"isEnabled": true,
|
|
5179
5179
|
"type": "Admin",
|
|
5180
|
-
"userConsentDescription": "Allows the app to request and manage time-based assignment and just-in-time elevation (including scheduled elevation) of
|
|
5181
|
-
"userConsentDisplayName": "Read and write privileged access to
|
|
5180
|
+
"userConsentDescription": "Allows the app to request and manage time-based assignment and just-in-time elevation (including scheduled elevation) of Microsoft Entra groups, on your behalf.",
|
|
5181
|
+
"userConsentDisplayName": "Read and write privileged access to Microsoft Entra groups",
|
|
5182
5182
|
"value": "PrivilegedAccess.ReadWrite.AzureADGroup"
|
|
5183
5183
|
},
|
|
5184
5184
|
{
|
|
@@ -6322,13 +6322,13 @@
|
|
|
6322
6322
|
"value": "PrintJob.Create"
|
|
6323
6323
|
},
|
|
6324
6324
|
{
|
|
6325
|
-
"adminConsentDescription": "Allows the app to read
|
|
6326
|
-
"adminConsentDisplayName": "Read
|
|
6325
|
+
"adminConsentDescription": "Allows the app to read Microsoft Entra recommendations, on behalf of the signed-in user.",
|
|
6326
|
+
"adminConsentDisplayName": "Read Microsoft Entra recommendations",
|
|
6327
6327
|
"id": "34d3bd24-f6a6-468c-b67c-0c365c1d6410",
|
|
6328
6328
|
"isEnabled": true,
|
|
6329
6329
|
"type": "Admin",
|
|
6330
|
-
"userConsentDescription": "Allows the app to read
|
|
6331
|
-
"userConsentDisplayName": "Read
|
|
6330
|
+
"userConsentDescription": "Allows the app to read Microsoft Entra recommendations, on your behalf.",
|
|
6331
|
+
"userConsentDisplayName": "Read Microsoft Entra recommendations",
|
|
6332
6332
|
"value": "DirectoryRecommendations.Read.All"
|
|
6333
6333
|
},
|
|
6334
6334
|
{
|
|
@@ -6402,12 +6402,12 @@
|
|
|
6402
6402
|
"value": "OnlineMeetingRecording.Read.All"
|
|
6403
6403
|
},
|
|
6404
6404
|
{
|
|
6405
|
-
"adminConsentDescription": "Allows the application to obtain basic tenant information about another target tenant within the
|
|
6405
|
+
"adminConsentDescription": "Allows the application to obtain basic tenant information about another target tenant within the Microsoft Entra ecosystem on behalf of the signed-in user.",
|
|
6406
6406
|
"adminConsentDisplayName": "Read cross-tenant basic information",
|
|
6407
6407
|
"id": "81594d25-e88e-49cf-ac8c-fecbff49f994",
|
|
6408
6408
|
"isEnabled": true,
|
|
6409
6409
|
"type": "Admin",
|
|
6410
|
-
"userConsentDescription": "Allows the application to obtain basic tenant information about another target tenant within the
|
|
6410
|
+
"userConsentDescription": "Allows the application to obtain basic tenant information about another target tenant within the Microsoft Entra ecosystem on your behalf.",
|
|
6411
6411
|
"userConsentDisplayName": "Read cross-tenant basic information",
|
|
6412
6412
|
"value": "CrossTenantInformation.ReadBasic.All"
|
|
6413
6413
|
},
|
|
@@ -6462,13 +6462,13 @@
|
|
|
6462
6462
|
"value": "ReportSettings.Read.All"
|
|
6463
6463
|
},
|
|
6464
6464
|
{
|
|
6465
|
-
"adminConsentDescription": "Allows the app to read and update
|
|
6466
|
-
"adminConsentDisplayName": "Read and update
|
|
6465
|
+
"adminConsentDescription": "Allows the app to read and update Microsoft Entra recommendations, on behalf of the signed-in user. ",
|
|
6466
|
+
"adminConsentDisplayName": "Read and update Microsoft Entra recommendations",
|
|
6467
6467
|
"id": "f37235e8-90a0-4189-93e2-e55b53867ccd",
|
|
6468
6468
|
"isEnabled": true,
|
|
6469
6469
|
"type": "Admin",
|
|
6470
|
-
"userConsentDescription": "Allows the app to read and update
|
|
6471
|
-
"userConsentDisplayName": "Read and update
|
|
6470
|
+
"userConsentDescription": "Allows the app to read and update Microsoft Entra recommendations, on your behalf.",
|
|
6471
|
+
"userConsentDisplayName": "Read and update Microsoft Entra recommendations",
|
|
6472
6472
|
"value": "DirectoryRecommendations.ReadWrite.All"
|
|
6473
6473
|
},
|
|
6474
6474
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExecutionResult, StepDriver } from "../interface/stepDriver";
|
|
2
2
|
import { DriverContext } from "../interface/commonArgs";
|
|
3
3
|
import { UpdateAadAppArgs } from "./interface/updateAadAppArgs";
|
|
4
|
+
export declare const actionName = "aadApp/update";
|
|
4
5
|
export declare class UpdateAadAppDriver implements StepDriver {
|
|
5
6
|
description: string;
|
|
6
7
|
readonly progressTitle: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/component/driver/aad/update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/component/driver/aad/update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAkBhE,eAAO,MAAM,UAAU,kBAAkB,CAAC;AAG1C,qBACa,kBAAmB,YAAW,UAAU;IACnD,WAAW,SAAqD;IAChE,QAAQ,CAAC,aAAa,SAAqE;IAG9E,OAAO,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;IA4F9F,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,gBAAgB;CAKzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateAadAppDriver = void 0;
|
|
3
|
+
exports.UpdateAadAppDriver = exports.actionName = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typedi_1 = require("typedi");
|
|
6
6
|
const aadAppClient_1 = require("./utility/aadAppClient");
|
|
@@ -12,7 +12,7 @@ const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
|
12
12
|
const constants_1 = require("./utility/constants");
|
|
13
13
|
const buildAadManifest_1 = require("./utility/buildAadManifest");
|
|
14
14
|
const common_1 = require("../../../error/common");
|
|
15
|
-
|
|
15
|
+
exports.actionName = "aadApp/update"; // DO NOT MODIFY the name
|
|
16
16
|
const helpLink = "https://aka.ms/teamsfx-actions/aadapp-update";
|
|
17
17
|
// logic from src\component\resource\aadApp\aadAppManifestManager.ts
|
|
18
18
|
let UpdateAadAppDriver = class UpdateAadAppDriver {
|
|
@@ -24,26 +24,26 @@ let UpdateAadAppDriver = class UpdateAadAppDriver {
|
|
|
24
24
|
var _a, _b, _c, _d, _e, _f;
|
|
25
25
|
const summaries = [];
|
|
26
26
|
try {
|
|
27
|
-
(_a = context.logProvider) === null || _a === void 0 ? void 0 : _a.info(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.startExecuteDriver, actionName));
|
|
27
|
+
(_a = context.logProvider) === null || _a === void 0 ? void 0 : _a.info(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.startExecuteDriver, exports.actionName));
|
|
28
28
|
const state = this.loadCurrentState();
|
|
29
29
|
this.validateArgs(args);
|
|
30
30
|
const aadAppClient = new aadAppClient_1.AadAppClient(context.m365TokenProvider, context.logProvider);
|
|
31
31
|
const manifest = await buildAadManifest_1.buildAadManifest(context, args.manifestPath, args.outputFilePath, state);
|
|
32
32
|
// MS Graph API does not allow adding new OAuth permissions and pre authorize it within one request
|
|
33
|
-
// So split update
|
|
34
|
-
// 1. If there's preAuthorizedApplications, remove it temporary and update
|
|
33
|
+
// So split update Microsoft Entra app to two requests:
|
|
34
|
+
// 1. If there's preAuthorizedApplications, remove it temporary and update Microsoft Entra app to create possible new permission
|
|
35
35
|
if (manifest.preAuthorizedApplications && manifest.preAuthorizedApplications.length > 0) {
|
|
36
36
|
const preAuthorizedApplications = manifest.preAuthorizedApplications;
|
|
37
37
|
manifest.preAuthorizedApplications = [];
|
|
38
38
|
await aadAppClient.updateAadApp(manifest);
|
|
39
39
|
manifest.preAuthorizedApplications = preAuthorizedApplications;
|
|
40
40
|
}
|
|
41
|
-
// 2. Update
|
|
41
|
+
// 2. Update Microsoft Entra app again with full manifest to set preAuthorizedApplications
|
|
42
42
|
await aadAppClient.updateAadApp(manifest);
|
|
43
43
|
const summary = localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.successUpdateAadAppManifest, args.manifestPath, manifest.id);
|
|
44
44
|
(_b = context.logProvider) === null || _b === void 0 ? void 0 : _b.info(summary);
|
|
45
45
|
summaries.push(summary);
|
|
46
|
-
(_c = context.logProvider) === null || _c === void 0 ? void 0 : _c.info(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.successExecuteDriver, actionName));
|
|
46
|
+
(_c = context.logProvider) === null || _c === void 0 ? void 0 : _c.info(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.successExecuteDriver, exports.actionName));
|
|
47
47
|
return {
|
|
48
48
|
result: teamsfx_api_1.ok(new Map(Object.entries(state) // convert each property to Map item
|
|
49
49
|
.filter((item) => item[1] && item[1] !== "") // do not return Map item that is empty
|
|
@@ -53,32 +53,34 @@ let UpdateAadAppDriver = class UpdateAadAppDriver {
|
|
|
53
53
|
}
|
|
54
54
|
catch (error) {
|
|
55
55
|
if (error instanceof teamsfx_api_1.UserError || error instanceof teamsfx_api_1.SystemError) {
|
|
56
|
-
(_d = context.logProvider) === null || _d === void 0 ? void 0 : _d.error(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.failExecuteDriver, actionName, error.displayMessage));
|
|
56
|
+
(_d = context.logProvider) === null || _d === void 0 ? void 0 : _d.error(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.failExecuteDriver, exports.actionName, error.displayMessage));
|
|
57
57
|
return {
|
|
58
58
|
result: teamsfx_api_1.err(error),
|
|
59
59
|
summaries: summaries,
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
if (axios_1.default.isAxiosError(error)
|
|
62
|
+
if (axios_1.default.isAxiosError(error) &&
|
|
63
|
+
error.response // If no response, treat as unhandled error first to understand the actual problem
|
|
64
|
+
) {
|
|
63
65
|
const message = JSON.stringify(error.response.data);
|
|
64
|
-
(_e = context.logProvider) === null || _e === void 0 ? void 0 : _e.error(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.failExecuteDriver, actionName, message));
|
|
66
|
+
(_e = context.logProvider) === null || _e === void 0 ? void 0 : _e.error(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.failExecuteDriver, exports.actionName, message));
|
|
65
67
|
if (error.response.status >= 400 && error.response.status < 500) {
|
|
66
68
|
return {
|
|
67
|
-
result: teamsfx_api_1.err(new common_1.HttpClientError(error, actionName, message, helpLink)),
|
|
69
|
+
result: teamsfx_api_1.err(new common_1.HttpClientError(error, exports.actionName, message, helpLink)),
|
|
68
70
|
summaries: summaries,
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
else {
|
|
72
74
|
return {
|
|
73
|
-
result: teamsfx_api_1.err(new common_1.HttpServerError(error, actionName, message)),
|
|
75
|
+
result: teamsfx_api_1.err(new common_1.HttpServerError(error, exports.actionName, message)),
|
|
74
76
|
summaries: summaries,
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
const message = JSON.stringify(error);
|
|
79
|
-
(_f = context.logProvider) === null || _f === void 0 ? void 0 : _f.error(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.failExecuteDriver, actionName, message));
|
|
81
|
+
(_f = context.logProvider) === null || _f === void 0 ? void 0 : _f.error(localizeUtils_1.getLocalizedString(constants_1.logMessageKeys.failExecuteDriver, exports.actionName, message));
|
|
80
82
|
return {
|
|
81
|
-
result: teamsfx_api_1.err(new common_1.UnhandledError(error, actionName)),
|
|
83
|
+
result: teamsfx_api_1.err(new common_1.UnhandledError(error, exports.actionName)),
|
|
82
84
|
summaries: summaries,
|
|
83
85
|
};
|
|
84
86
|
}
|
|
@@ -94,7 +96,7 @@ let UpdateAadAppDriver = class UpdateAadAppDriver {
|
|
|
94
96
|
invalidParameters.push("outputFilePath");
|
|
95
97
|
}
|
|
96
98
|
if (invalidParameters.length > 0) {
|
|
97
|
-
throw new common_1.InvalidActionInputError(actionName, invalidParameters, helpLink);
|
|
99
|
+
throw new common_1.InvalidActionInputError(exports.actionName, invalidParameters, helpLink);
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
loadCurrentState() {
|
|
@@ -104,13 +106,13 @@ let UpdateAadAppDriver = class UpdateAadAppDriver {
|
|
|
104
106
|
}
|
|
105
107
|
};
|
|
106
108
|
tslib_1.__decorate([
|
|
107
|
-
lib_1.hooks([addStartAndEndTelemetry_1.addStartAndEndTelemetry(actionName, actionName)]),
|
|
109
|
+
lib_1.hooks([addStartAndEndTelemetry_1.addStartAndEndTelemetry(exports.actionName, exports.actionName)]),
|
|
108
110
|
tslib_1.__metadata("design:type", Function),
|
|
109
111
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
110
112
|
tslib_1.__metadata("design:returntype", Promise)
|
|
111
113
|
], UpdateAadAppDriver.prototype, "execute", null);
|
|
112
114
|
UpdateAadAppDriver = tslib_1.__decorate([
|
|
113
|
-
typedi_1.Service(actionName) // DO NOT MODIFY the service name
|
|
115
|
+
typedi_1.Service(exports.actionName) // DO NOT MODIFY the service name
|
|
114
116
|
], UpdateAadAppDriver);
|
|
115
117
|
exports.UpdateAadAppDriver = UpdateAadAppDriver;
|
|
116
118
|
//# sourceMappingURL=update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/component/driver/aad/update.ts"],"names":[],"mappings":";;;;AAKA,mCAAiC;AACjC,yDAAsD;AACtD,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/component/driver/aad/update.ts"],"names":[],"mappings":";;;;AAKA,mCAAiC;AACjC,yDAAsD;AACtD,0DAA0B;AAC1B,wDAAyE;AACzE,+CAA8C;AAC9C,mFAAgF;AAChF,iEAAmE;AACnE,mDAA6E;AAC7E,iEAA8D;AAE9D,kDAK+B;AAElB,QAAA,UAAU,GAAG,eAAe,CAAC,CAAC,yBAAyB;AACpE,MAAM,QAAQ,GAAG,8CAA8C,CAAC;AAChE,oEAAoE;AAEpE,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;IAA/B;QACE,gBAAW,GAAG,kCAAkB,CAAC,kCAAsB,CAAC,MAAM,CAAC,CAAC;QACvD,kBAAa,GAAG,kCAAkB,CAAC,6CAA6C,CAAC,CAAC;IAmH7F,CAAC;IAhHQ,KAAK,CAAC,OAAO,CAAC,IAAsB,EAAE,OAAsB;;QACjE,MAAM,SAAS,GAAa,EAAE,CAAC;QAE/B,IAAI;YACF,MAAA,OAAO,CAAC,WAAW,0CAAE,IAAI,CAAC,kCAAkB,CAAC,0BAAc,CAAC,kBAAkB,EAAE,kBAAU,CAAC,CAAC,CAAC;YAC7F,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAEtC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACxB,MAAM,YAAY,GAAG,IAAI,2BAAY,CAAC,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;YAEtF,MAAM,QAAQ,GAAG,MAAM,mCAAgB,CACrC,O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AC,IAAI,uBAAc,CAAC,KAAc,EAAE,kBAAU,CAAC,CAAC;gBAC3D,SAAS,EAAE,SAAS;aACrB,CAAC;SACH;gBAAS;SACT;IACH,CAAC;IAEO,YAAY,CAAC,IAAsB;QACzC,MAAM,iBAAiB,GAAa,EAAE,CAAC;QACvC,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YAC/D,iBAAiB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACxC;QAED,IAAI,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACnE,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAC1C;QAED,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,MAAM,IAAI,gCAAuB,CAAC,kBAAU,EAAE,iBAAiB,EAAE,QAAQ,CAAC,CAAC;SAC5E;IACH,CAAC;IAEO,gBAAgB;QACtB,OAAO;YACL,oCAAoC,EAAE,OAAO,CAAC,GAAG,CAAC,oCAAoC;SACvF,CAAC;IACJ,CAAC;CACF,CAAA;AAhHC;IADC,WAAK,CAAC,CAAC,iDAAuB,CAAC,kBAAU,EAAE,kBAAU,CAAC,CAAC,CAAC;;;;iDA2FxD;AA/FU,kBAAkB;IAD9B,gBAAO,CAAC,kBAAU,CAAC,CAAC,iCAAiC;GACzC,kBAAkB,CAqH9B;AArHY,gDAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aadAppClient.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/aad/utility/aadAppClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAmB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"aadAppClient.d.ts","sourceRoot":"","sources":["../../../../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UAAU;CAGnB"}
|
|
@@ -7,13 +7,13 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
const lib_1 = require("@feathersjs/hooks/lib");
|
|
8
8
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
9
9
|
const axios_retry_1 = tslib_1.__importDefault(require("axios-retry"));
|
|
10
|
+
const localizeUtils_1 = require("../../../../common/localizeUtils");
|
|
10
11
|
const tools_1 = require("../../../../common/tools");
|
|
11
12
|
const globalVars_1 = require("../../../../core/globalVars");
|
|
12
13
|
const aadManifestError_1 = require("../error/aadManifestError");
|
|
13
14
|
const signInAudience_1 = require("../interface/signInAudience");
|
|
14
15
|
const aadManifestHelper_1 = require("./aadManifestHelper");
|
|
15
16
|
const constants_1 = require("./constants");
|
|
16
|
-
const localizeUtils_1 = require("../../../../common/localizeUtils");
|
|
17
17
|
class AadAppClient {
|
|
18
18
|
constructor(m365TokenProvider, logProvider) {
|
|
19
19
|
this.retryNumber = 5;
|
|
@@ -43,7 +43,7 @@ class AadAppClient {
|
|
|
43
43
|
(_a = this.logProvider) === null || _a === void 0 ? void 0 : _a.info(localizeUtils_1.getLocalizedString("core.common.ReceiveApiResponse", JSON.stringify(response.data)));
|
|
44
44
|
return response;
|
|
45
45
|
});
|
|
46
|
-
// Add retry logic. Retry post request may result in creating additional resources but should be fine in
|
|
46
|
+
// Add retry logic. Retry post request may result in creating additional resources but should be fine in Microsoft Entra driver.
|
|
47
47
|
axios_retry_1.default(this.axios, {
|
|
48
48
|
retries: this.retryNumber,
|
|
49
49
|
retryDelay: axios_retry_1.default.exponentialDelay,
|
|
@@ -54,7 +54,7 @@ class AadAppClient {
|
|
|
54
54
|
const requestBody = {
|
|
55
55
|
displayName: displayName,
|
|
56
56
|
signInAudience: signInAudience,
|
|
57
|
-
}; // Create
|
|
57
|
+
}; // Create a Microsoft Entra app without setting anything
|
|
58
58
|
const response = await this.axios.post("applications", requestBody);
|
|
59
59
|
return response.data;
|
|
60
60
|
}
|
|
@@ -70,7 +70,7 @@ class AadAppClient {
|
|
|
70
70
|
retryDelay: axios_retry_1.default.exponentialDelay,
|
|
71
71
|
retryCondition: (error) => axios_retry_1.default.isNetworkError(error) ||
|
|
72
72
|
axios_retry_1.default.isRetryableError(error) ||
|
|
73
|
-
this.is404Error(error), // also retry 404 error since
|
|
73
|
+
this.is404Error(error), // also retry 404 error since Microsoft Entra need sometime to sync created Microsoft Entra app data
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
return response.data.secretText;
|
|
@@ -85,8 +85,8 @@ class AadAppClient {
|
|
|
85
85
|
retryDelay: axios_retry_1.default.exponentialDelay,
|
|
86
86
|
retryCondition: (error) => axios_retry_1.default.isNetworkError(error) ||
|
|
87
87
|
axios_retry_1.default.isRetryableError(error) ||
|
|
88
|
-
this.is404Error(error) || // also retry 404 error since
|
|
89
|
-
this.is400Error(error), // sometimes
|
|
88
|
+
this.is404Error(error) || // also retry 404 error since Microsoft Entra need sometime to sync created Microsoft Entra app data
|
|
89
|
+
this.is400Error(error), // sometimes Microsoft Entra will complain OAuth permission not found if we pre-authorize a newly created permission
|
|
90
90
|
},
|
|
91
91
|
});
|
|
92
92
|
}
|
|
@@ -108,7 +108,7 @@ class AadAppClient {
|
|
|
108
108
|
retryDelay: axios_retry_1.default.exponentialDelay,
|
|
109
109
|
retryCondition: (error) => axios_retry_1.default.isNetworkError(error) ||
|
|
110
110
|
axios_retry_1.default.isRetryableError(error) ||
|
|
111
|
-
this.is404Error(error), // also retry 404 error since
|
|
111
|
+
this.is404Error(error), // also retry 404 error since Microsoft Entra need sometime to sync created Microsoft Entra app data
|
|
112
112
|
},
|
|
113
113
|
});
|
|
114
114
|
const aadOwners = [];
|
|
@@ -134,11 +134,11 @@ class AadAppClient {
|
|
|
134
134
|
retryDelay: axios_retry_1.default.exponentialDelay,
|
|
135
135
|
retryCondition: (error) => axios_retry_1.default.isNetworkError(error) ||
|
|
136
136
|
axios_retry_1.default.isRetryableError(error) ||
|
|
137
|
-
this.is404Error(error), // also retry 404 error since
|
|
137
|
+
this.is404Error(error), // also retry 404 error since Microsoft Entra need sometime to sync created Microsoft Entra app data
|
|
138
138
|
},
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
// only use it to retry 404 errors for create client secret / update
|
|
141
|
+
// only use it to retry 404 errors for create client secret / update Microsoft Entra app requests right after Microsoft Entra app creation
|
|
142
142
|
is404Error(error) {
|
|
143
143
|
return error.code !== "ECONNABORTED" && (!error.response || error.response.status === 404);
|
|
144
144
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aadAppClient.js","sourceRoot":"","sources":["../../../../../src/component/driver/aad/utility/aadAppClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAE9C,
|
|
1
|
+
{"version":3,"file":"aadAppClient.js","sourceRoot":"","sources":["../../../../../src/component/driver/aad/utility/aadAppClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAE9C,0DAA8E;AAC9E,sEAA4D;AAC5D,oEAAsE;AAEtE,oDAAuD;AACvD,4DAA6D;AAC7D,gEAAgF;AAIhF,gEAA6D;AAC7D,2DAAwD;AACxD,2CAAsD;AAWtD,MAAa,YAAY;IAOvB,YAAY,iBAAoC,EAAE,WAAyB;QAN1D,gBAAW,GAAW,CAAC,CAAC;QAIxB,YAAO,GAAW,kCAAkC,CAAC;QAGpE,IAAI,CAAC,aAAa,GAAG,iBAAiB,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,mGAAmG;QACnG,IAAI,CAAC,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC;YACxB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;;YACnD,MAAA,IAAI,CAAC,WAAW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AG,CAAC,CAAC;IAC7F,CAAC;CACF;AApHC;IADC,WAAK,CAAC,CAAC,2BAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;gDAavE;AAED;IADC,WAAK,CAAC,CAAC,2BAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;wDAoBvE;AAGD;IADC,WAAK,CAAC,CAAC,2BAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;gDA2BvE;AAED;IADC,WAAK,CAAC,CAAC,2BAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;6CAyBvE;AAED;IADC,WAAK,CAAC,CAAC,2BAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;4CAiBvE;AAzJH,oCAmKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/component/driver/aad/utility/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAErB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,sCAAsC;IAC1D,oBAAoB,EAAE,wCAAwC;IAC9D,iBAAiB,EAAE,qCAAqC;IACxD,iBAAiB,EAAE,qCAAqC;IACxD,mBAAmB,EAAE,uCAAuC;IAC5D,gBAAgB,EAAE,oCAAoC;IACtD,yBAAyB,EAAE,6CAA6C;IACxE,2BAA2B,EAAE,+CAA+C;IAC5E,wBAAwB,EAAE,4CAA4C;IACtE,oBAAoB,EAAE,wCAAwC;IAC9D,2BAA2B,EAAE,+CAA+C;CAC7E,CAAC;AAEW,QAAA,sBAAsB,GAAG;IACpC,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,kCAAkC;CAC3C,CAAC;AAEW,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/component/driver/aad/utility/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAErB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,sCAAsC;IAC1D,oBAAoB,EAAE,wCAAwC;IAC9D,iBAAiB,EAAE,qCAAqC;IACxD,iBAAiB,EAAE,qCAAqC;IACxD,mBAAmB,EAAE,uCAAuC;IAC5D,gBAAgB,EAAE,oCAAoC;IACtD,yBAAyB,EAAE,6CAA6C;IACxE,2BAA2B,EAAE,+CAA+C;IAC5E,wBAAwB,EAAE,4CAA4C;IACtE,oBAAoB,EAAE,wCAAwC;IAC9D,2BAA2B,EAAE,+CAA+C;CAC7E,CAAC;AAEW,QAAA,sBAAsB,GAAG;IACpC,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,kCAAkC;CAC3C,CAAC;AAEW,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,eAAe;IAC7B,IAAI,EAAE,MAAM;CACb,CAAC;AAEW,QAAA,YAAY,GAAG;IAC1B,mBAAmB,EAAE,wCAAwC;CAC9D,CAAC;AAEW,QAAA,SAAS,GAAG;IACvB,yBAAyB,EAAE,SAAS;IACpC,oBAAoB,EAAE,mCAAmC;CAC1D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ExecutionResult, StepDriver } from "../interface/stepDriver";
|
|
2
|
+
import { CreateApiKeyArgs } from "./interface/createApiKeyArgs";
|
|
3
|
+
import { DriverContext } from "../interface/commonArgs";
|
|
4
|
+
export declare class CreateApiKeyDriver implements StepDriver {
|
|
5
|
+
description: string;
|
|
6
|
+
readonly progressTitle: string;
|
|
7
|
+
execute(args: CreateApiKeyArgs, context: DriverContext, outputEnvVarNames?: Map<string, string>): Promise<ExecutionResult>;
|
|
8
|
+
private loadStateFromEnv;
|
|
9
|
+
private loadClientSecret;
|
|
10
|
+
private parseSecret;
|
|
11
|
+
private validateSecret;
|
|
12
|
+
private getDomain;
|
|
13
|
+
private validateDomain;
|
|
14
|
+
private validateArgs;
|
|
15
|
+
private mapArgsToApiSecretRegistration;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/component/driver/apiKey/create.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA+BxD,qBACa,kBAAmB,YAAW,UAAU;IACnD,WAAW,SAA0D;IACrE,QAAQ,CAAC,aAAa,SAA2D;IAGpE,OAAO,CAClB,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,aAAa,EACtB,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACtC,OAAO,CAAC,eAAe,CAAC;IAgG3B,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,cAAc;YAoBR,SAAS;IAoBvB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,YAAY;YA2BN,8BAA8B;CA0C7C"}
|