@microsoft/teamsfx-core 3.0.14-alpha.be8df62efa.0 → 3.0.14-alpha.cac6a2bf69.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/client/aadAppClient.d.ts.map +1 -1
- package/build/client/aadAppClient.js +6 -6
- package/build/client/aadAppClient.js.map +1 -1
- package/build/client/teamsDevPortalClient.d.ts +2 -2
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.js +66 -66
- package/build/client/teamsDevPortalClient.js.map +1 -1
- package/build/client/teamsGraphClient.d.ts +1 -9
- package/build/client/teamsGraphClient.d.ts.map +1 -1
- package/build/client/teamsGraphClient.js +11 -18
- package/build/client/teamsGraphClient.js.map +1 -1
- package/build/common/daSpecParser.d.ts +1 -1
- package/build/common/daSpecParser.d.ts.map +1 -1
- package/build/common/daSpecParser.js +39 -21
- package/build/common/daSpecParser.js.map +1 -1
- package/build/common/featureFlags.d.ts +27 -0
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +41 -0
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/fetchHelper.d.ts.map +1 -1
- package/build/common/fetchHelper.js +41 -3
- package/build/common/fetchHelper.js.map +1 -1
- package/build/common/kiotaClient.d.ts +3 -3
- package/build/common/kiotaClient.d.ts.map +1 -1
- package/build/common/kiotaClient.js +10 -10
- package/build/common/kiotaClient.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts +0 -2
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +1 -56
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/teamsGraphApiNames.d.ts +10 -0
- package/build/common/teamsGraphApiNames.d.ts.map +1 -0
- package/build/common/teamsGraphApiNames.js +16 -0
- package/build/common/teamsGraphApiNames.js.map +1 -0
- package/build/common/telemetry.d.ts +4 -15
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +7 -20
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +9 -2
- package/build/common/tools.d.ts +1 -1
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +6 -6
- package/build/common/tools.js.map +1 -1
- package/build/common/wrappedAxiosClient.d.ts +2 -2
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +18 -19
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/configManager/actionInjector.d.ts +16 -1
- package/build/component/configManager/actionInjector.d.ts.map +1 -1
- package/build/component/configManager/actionInjector.js +106 -1
- package/build/component/configManager/actionInjector.js.map +1 -1
- package/build/component/coordinator/index.js +2 -2
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.js +6 -7
- package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/component/deps-checker/internal/nodeChecker.js +1 -1
- package/build/component/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/component/deps-checker/internal/testToolChecker.js +13 -13
- package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +5 -5
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.d.ts +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js +7 -4
- package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
- package/build/component/driver/add/addWebPart.js +3 -3
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js +5 -4
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts +3 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js +12 -9
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +3 -0
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +38 -3
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/devTool/httpClient.d.ts +4 -0
- package/build/component/driver/devTool/httpClient.d.ts.map +1 -1
- package/build/component/driver/devTool/httpClient.js +6 -3
- package/build/component/driver/devTool/httpClient.js.map +1 -1
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +3 -2
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/oauth/update.d.ts.map +1 -1
- package/build/component/driver/oauth/update.js +1 -1
- package/build/component/driver/oauth/update.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +3 -2
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/share/utils.d.ts.map +1 -1
- package/build/component/driver/share/utils.js +9 -7
- package/build/component/driver/share/utils.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +3 -3
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +3 -3
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/create.d.ts.map +1 -1
- package/build/component/driver/teamsApp/create.js +3 -3
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +2 -0
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +94 -5
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts +6 -0
- package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +3 -3
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/syncManifest.d.ts +3 -3
- package/build/component/driver/teamsApp/syncManifest.d.ts.map +1 -1
- package/build/component/driver/teamsApp/syncManifest.js +8 -8
- package/build/component/driver/teamsApp/syncManifest.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts +4 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +6 -3
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +2 -0
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +113 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts +4 -0
- package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/McpCertVerification.js +12 -5
- package/build/component/driver/teamsApp/utils/McpCertVerification.js.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +11 -1
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -1
- package/build/component/driver/typeSpec/compile.d.ts.map +1 -1
- package/build/component/driver/typeSpec/compile.js +9 -9
- package/build/component/driver/typeSpec/compile.js.map +1 -1
- package/build/component/generator/declarativeAgent/generator.d.ts +7 -0
- package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/generator.js +14 -8
- package/build/component/generator/declarativeAgent/generator.js.map +1 -1
- package/build/component/generator/declarativeAgent/helper.d.ts +24 -0
- package/build/component/generator/declarativeAgent/helper.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/helper.js +254 -33
- package/build/component/generator/declarativeAgent/helper.js.map +1 -1
- package/build/component/generator/defaultGenerator.d.ts.map +1 -1
- package/build/component/generator/defaultGenerator.js +17 -1
- package/build/component/generator/defaultGenerator.js.map +1 -1
- package/build/component/generator/error.d.ts +3 -0
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +7 -1
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +9 -0
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +16 -8
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts +4 -0
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +6 -36
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts +4 -0
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +6 -3
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts +8 -0
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.js +9 -4
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.js.map +1 -1
- package/build/component/generator/openPlugin/authorParser.d.ts +8 -0
- package/build/component/generator/openPlugin/authorParser.d.ts.map +1 -0
- package/build/component/generator/openPlugin/authorParser.js +49 -0
- package/build/component/generator/openPlugin/authorParser.js.map +1 -0
- package/build/component/generator/openPlugin/deterministicId.d.ts +6 -0
- package/build/component/generator/openPlugin/deterministicId.d.ts.map +1 -0
- package/build/component/generator/openPlugin/deterministicId.js +31 -0
- package/build/component/generator/openPlugin/deterministicId.js.map +1 -0
- package/build/component/generator/openPlugin/exporter.d.ts +18 -0
- package/build/component/generator/openPlugin/exporter.d.ts.map +1 -0
- package/build/component/generator/openPlugin/exporter.js +233 -0
- package/build/component/generator/openPlugin/exporter.js.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts +8 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.js +62 -0
- package/build/component/generator/openPlugin/iconStrategy.js.map +1 -0
- package/build/component/generator/openPlugin/importer.d.ts +25 -0
- package/build/component/generator/openPlugin/importer.d.ts.map +1 -0
- package/build/component/generator/openPlugin/importer.js +140 -0
- package/build/component/generator/openPlugin/importer.js.map +1 -0
- package/build/component/generator/openPlugin/mapper.d.ts +6 -0
- package/build/component/generator/openPlugin/mapper.d.ts.map +1 -0
- package/build/component/generator/openPlugin/mapper.js +141 -0
- package/build/component/generator/openPlugin/mapper.js.map +1 -0
- package/build/component/generator/openPlugin/parser.d.ts +3 -0
- package/build/component/generator/openPlugin/parser.d.ts.map +1 -0
- package/build/component/generator/openPlugin/parser.js +153 -0
- package/build/component/generator/openPlugin/parser.js.map +1 -0
- package/build/component/generator/openPlugin/placeholderPng.d.ts +6 -0
- package/build/component/generator/openPlugin/placeholderPng.d.ts.map +1 -0
- package/build/component/generator/openPlugin/placeholderPng.js +71 -0
- package/build/component/generator/openPlugin/placeholderPng.js.map +1 -0
- package/build/component/generator/openPlugin/textUtils.d.ts +12 -0
- package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -0
- package/build/component/generator/openPlugin/textUtils.js +43 -0
- package/build/component/generator/openPlugin/textUtils.js.map +1 -0
- package/build/component/generator/openPlugin/types.d.ts +128 -0
- package/build/component/generator/openPlugin/types.d.ts.map +1 -0
- package/build/component/generator/openPlugin/types.js.map +1 -0
- package/build/component/generator/other/tdpGenerator.d.ts.map +1 -1
- package/build/component/generator/other/tdpGenerator.js +0 -2
- package/build/component/generator/other/tdpGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +1 -1
- package/build/component/generator/spfx/utils/constants.js +1 -1
- package/build/component/generator/templateHelper.d.ts +17 -2
- package/build/component/generator/templateHelper.d.ts.map +1 -1
- package/build/component/generator/templateHelper.js +36 -3
- package/build/component/generator/templateHelper.js.map +1 -1
- package/build/component/generator/templates/metadata/index.d.ts.map +1 -1
- package/build/component/generator/templates/metadata/index.js +12 -5
- package/build/component/generator/templates/metadata/index.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +4 -3
- package/build/component/generator/templates/templateNames.d.ts.map +1 -1
- package/build/component/generator/templates/templateNames.js +5 -2
- package/build/component/generator/templates/templateNames.js.map +1 -1
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +14 -8
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/generator/v4MetadataSource.d.ts +16 -0
- package/build/component/generator/v4MetadataSource.d.ts.map +1 -0
- package/build/component/generator/v4MetadataSource.js +35 -0
- package/build/component/generator/v4MetadataSource.js.map +1 -0
- package/build/component/generator/v4TemplateBridge.d.ts +52 -0
- package/build/component/generator/v4TemplateBridge.d.ts.map +1 -0
- package/build/component/generator/v4TemplateBridge.js +208 -0
- package/build/component/generator/v4TemplateBridge.js.map +1 -0
- package/build/component/local/localCertificateManager.d.ts +16 -1
- package/build/component/local/localCertificateManager.d.ts.map +1 -1
- package/build/component/local/localCertificateManager.js +47 -31
- package/build/component/local/localCertificateManager.js.map +1 -1
- package/build/component/m365/packageService.d.ts +1 -0
- package/build/component/m365/packageService.d.ts.map +1 -1
- package/build/component/m365/packageService.js +23 -6
- package/build/component/m365/packageService.js.map +1 -1
- package/build/component/middleware/envMW.d.ts.map +1 -1
- package/build/component/middleware/envMW.js +5 -0
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +4 -0
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +8 -4
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/charsetUtils.js +3 -3
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/fileOperation.d.ts +9 -0
- package/build/component/utils/fileOperation.d.ts.map +1 -1
- package/build/component/utils/fileOperation.js +27 -16
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.d.ts +106 -0
- package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -0
- package/build/component/utils/mcpAuthScaffolder.js +158 -0
- package/build/component/utils/mcpAuthScaffolder.js.map +1 -0
- package/build/component/utils/mcpToolFetcher.d.ts +12 -1
- package/build/component/utils/mcpToolFetcher.d.ts.map +1 -1
- package/build/component/utils/mcpToolFetcher.js +29 -4
- package/build/component/utils/mcpToolFetcher.js.map +1 -1
- package/build/component/utils/metadataGraphPermssion.d.ts +4 -0
- package/build/component/utils/metadataGraphPermssion.d.ts.map +1 -1
- package/build/component/utils/metadataGraphPermssion.js +7 -4
- package/build/component/utils/metadataGraphPermssion.js.map +1 -1
- package/build/component/utils/odrProvider.d.ts +7 -0
- package/build/component/utils/odrProvider.d.ts.map +1 -1
- package/build/component/utils/odrProvider.js +13 -5
- package/build/component/utils/odrProvider.js.map +1 -1
- package/build/core/FxCore.d.ts +40 -8
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.d.ts +28 -1
- package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.js +307 -184
- package/build/core/FxCore.declarativeAgent.js.map +1 -1
- package/build/core/FxCore.js +457 -170
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCore.openPlugin.d.ts +23 -0
- package/build/core/FxCore.openPlugin.d.ts.map +1 -0
- package/build/core/FxCore.openPlugin.js +131 -0
- package/build/core/FxCore.openPlugin.js.map +1 -0
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/createFrontDoorAdapters.d.ts +38 -0
- package/build/core/createFrontDoorAdapters.d.ts.map +1 -0
- package/build/core/createFrontDoorAdapters.js +197 -0
- package/build/core/createFrontDoorAdapters.js.map +1 -0
- package/build/core/createProjectFrontDoor.d.ts +49 -0
- package/build/core/createProjectFrontDoor.d.ts.map +1 -0
- package/build/core/createProjectFrontDoor.js +303 -0
- package/build/core/createProjectFrontDoor.js.map +1 -0
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +7 -10
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +9 -0
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/fileLocker.js +6 -6
- package/build/core/middleware/fileLocker.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.d.ts +1 -34
- package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +6 -245
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/core/modifyProjectFrontDoor.d.ts +27 -0
- package/build/core/modifyProjectFrontDoor.d.ts.map +1 -0
- package/build/core/modifyProjectFrontDoor.js +149 -0
- package/build/core/modifyProjectFrontDoor.js.map +1 -0
- package/build/core/v4ArtifactSnapshot.d.ts +5 -0
- package/build/core/v4ArtifactSnapshot.d.ts.map +1 -0
- package/build/core/v4ArtifactSnapshot.js +23 -0
- package/build/core/v4ArtifactSnapshot.js.map +1 -0
- package/build/error/teamsApp.d.ts +3 -0
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +15 -1
- package/build/error/teamsApp.js.map +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +5 -1
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +8 -0
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +20 -14
- package/build/question/create.js.map +1 -1
- package/build/question/index.d.ts +1 -1
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +4 -4
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/AddKnowledgeInputs.d.ts.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
- package/build/question/inputs/AddSkillInputs.d.ts +10 -0
- package/build/question/inputs/AddSkillInputs.d.ts.map +1 -0
- package/build/question/inputs/AddSkillInputs.js +5 -0
- package/build/question/inputs/AddSkillInputs.js.map +1 -0
- package/build/question/inputs/CreateProjectInputs.d.ts +7 -1
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/ExportOpenPluginInputs.d.ts +10 -0
- package/build/question/inputs/ExportOpenPluginInputs.d.ts.map +1 -0
- package/build/question/inputs/ExportOpenPluginInputs.js +5 -0
- package/build/question/inputs/ExportOpenPluginInputs.js.map +1 -0
- package/build/question/inputs/ImportOpenPluginInputs.d.ts +28 -0
- package/build/question/inputs/ImportOpenPluginInputs.d.ts.map +1 -0
- package/build/question/inputs/ImportOpenPluginInputs.js +5 -0
- package/build/question/inputs/ImportOpenPluginInputs.js.map +1 -0
- package/build/question/inputs/index.d.ts +4 -1
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +4 -1
- package/build/question/inputs/index.js.map +1 -1
- package/build/question/options/AddPluginOptions.js +1 -1
- package/build/question/options/AddPluginOptions.js.map +1 -1
- package/build/question/options/AddSkillOptions.d.ts +4 -0
- package/build/question/options/AddSkillOptions.d.ts.map +1 -0
- package/build/question/options/AddSkillOptions.js +47 -0
- package/build/question/options/AddSkillOptions.js.map +1 -0
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +17 -2
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/ExportOpenPluginOptions.d.ts +4 -0
- package/build/question/options/ExportOpenPluginOptions.d.ts.map +1 -0
- package/build/question/options/ExportOpenPluginOptions.js +29 -0
- package/build/question/options/ExportOpenPluginOptions.js.map +1 -0
- package/build/question/options/ImportOpenPluginOptions.d.ts +4 -0
- package/build/question/options/ImportOpenPluginOptions.d.ts.map +1 -0
- package/build/question/options/ImportOpenPluginOptions.js +54 -0
- package/build/question/options/ImportOpenPluginOptions.js.map +1 -0
- package/build/question/options/index.d.ts +3 -0
- package/build/question/options/index.d.ts.map +1 -1
- package/build/question/options/index.js +3 -0
- package/build/question/options/index.js.map +1 -1
- package/build/question/other.d.ts +1 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +152 -51
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +10 -1
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +9 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/question/scaffold/constructNode.d.ts.map +1 -1
- package/build/question/scaffold/constructNode.js +5 -2
- package/build/question/scaffold/constructNode.js.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts +1 -5
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.js +12 -28
- package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
- package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts +2 -0
- package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/ProjectTypeOptions.js +9 -0
- package/build/question/scaffold/vsc/ProjectTypeOptions.js.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.js +0 -3
- package/build/question/scaffold/vsc/daProjectTypeNode.js.map +1 -1
- package/build/question/scaffold/vsc/rootNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/rootNode.js +17 -4
- package/build/question/scaffold/vsc/rootNode.js.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +33 -0
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +160 -37
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
- package/build/question/share.js +3 -2
- package/build/question/share.js.map +1 -1
- package/build/v4/buildTarget/parseSelector.d.ts +32 -0
- package/build/v4/buildTarget/parseSelector.d.ts.map +1 -0
- package/build/v4/buildTarget/parseSelector.js +201 -0
- package/build/v4/buildTarget/parseSelector.js.map +1 -0
- package/build/v4/buildTarget/resolveBuildTarget.d.ts +68 -0
- package/build/v4/buildTarget/resolveBuildTarget.d.ts.map +1 -0
- package/build/v4/buildTarget/resolveBuildTarget.js +243 -0
- package/build/v4/buildTarget/resolveBuildTarget.js.map +1 -0
- package/build/v4/collectInputs/collectInputs.d.ts +106 -0
- package/build/v4/collectInputs/collectInputs.d.ts.map +1 -0
- package/build/v4/collectInputs/collectInputs.js +294 -0
- package/build/v4/collectInputs/collectInputs.js.map +1 -0
- package/build/v4/distribution/bundledFloor.d.ts +11 -0
- package/build/v4/distribution/bundledFloor.d.ts.map +1 -0
- package/build/v4/distribution/bundledFloor.js +114 -0
- package/build/v4/distribution/bundledFloor.js.map +1 -0
- package/build/v4/distribution/createQuestions.d.ts +6 -0
- package/build/v4/distribution/createQuestions.d.ts.map +1 -0
- package/build/v4/distribution/createQuestions.js +88 -0
- package/build/v4/distribution/createQuestions.js.map +1 -0
- package/build/v4/distribution/createSelector.d.ts +15 -0
- package/build/v4/distribution/createSelector.d.ts.map +1 -0
- package/build/v4/distribution/createSelector.js +115 -0
- package/build/v4/distribution/createSelector.js.map +1 -0
- package/build/v4/distribution/declarativePackage.d.ts +14 -0
- package/build/v4/distribution/declarativePackage.d.ts.map +1 -0
- package/build/v4/distribution/declarativePackage.js +193 -0
- package/build/v4/distribution/declarativePackage.js.map +1 -0
- package/build/v4/distribution/packageDir.d.ts +15 -0
- package/build/v4/distribution/packageDir.d.ts.map +1 -0
- package/build/v4/distribution/packageDir.js +101 -0
- package/build/v4/distribution/packageDir.js.map +1 -0
- package/build/v4/distribution/templateArtifacts.d.ts +61 -0
- package/build/v4/distribution/templateArtifacts.d.ts.map +1 -0
- package/build/v4/distribution/templateArtifacts.js +459 -0
- package/build/v4/distribution/templateArtifacts.js.map +1 -0
- package/build/v4/distribution/templateConfig.d.ts +43 -0
- package/build/v4/distribution/templateConfig.d.ts.map +1 -0
- package/build/v4/distribution/templateConfig.js +70 -0
- package/build/v4/distribution/templateConfig.js.map +1 -0
- package/build/v4/distribution/templatePackage.d.ts +6 -0
- package/build/v4/distribution/templatePackage.d.ts.map +1 -0
- package/build/v4/distribution/templatePackage.js +63 -0
- package/build/v4/distribution/templatePackage.js.map +1 -0
- package/build/v4/distribution/templateSource.d.ts +66 -0
- package/build/v4/distribution/templateSource.d.ts.map +1 -0
- package/build/v4/distribution/templateSource.js +233 -0
- package/build/v4/distribution/templateSource.js.map +1 -0
- package/build/v4/distribution/templateSourcePort.d.ts +27 -0
- package/build/v4/distribution/templateSourcePort.d.ts.map +1 -0
- package/build/v4/distribution/templateSourcePort.js +175 -0
- package/build/v4/distribution/templateSourcePort.js.map +1 -0
- package/build/v4/expression/evaluateExpression.d.ts +53 -0
- package/build/v4/expression/evaluateExpression.d.ts.map +1 -0
- package/build/v4/expression/evaluateExpression.js +303 -0
- package/build/v4/expression/evaluateExpression.js.map +1 -0
- package/build/v4/index.d.ts +34 -0
- package/build/v4/index.d.ts.map +1 -0
- package/build/v4/index.js +39 -0
- package/build/v4/index.js.map +1 -0
- package/build/v4/mcp/mcpStaticTools.d.ts +17 -0
- package/build/v4/mcp/mcpStaticTools.d.ts.map +1 -0
- package/build/v4/mcp/mcpStaticTools.js +70 -0
- package/build/v4/mcp/mcpStaticTools.js.map +1 -0
- package/build/v4/model/dataModel.d.ts +27 -0
- package/build/v4/model/dataModel.d.ts.map +1 -0
- package/build/v4/model/dataModel.js +5 -0
- package/build/v4/model/dataModel.js.map +1 -0
- package/build/v4/pipeline/runScaffoldPipeline.d.ts +88 -0
- package/build/v4/pipeline/runScaffoldPipeline.d.ts.map +1 -0
- package/build/v4/pipeline/runScaffoldPipeline.js +201 -0
- package/build/v4/pipeline/runScaffoldPipeline.js.map +1 -0
- package/build/v4/providers/createOptionsProviders.d.ts +11 -0
- package/build/v4/providers/createOptionsProviders.d.ts.map +1 -0
- package/build/v4/providers/createOptionsProviders.js +269 -0
- package/build/v4/providers/createOptionsProviders.js.map +1 -0
- package/build/v4/renderContext/buildRenderContext.d.ts +24 -0
- package/build/v4/renderContext/buildRenderContext.d.ts.map +1 -0
- package/build/v4/renderContext/buildRenderContext.js +77 -0
- package/build/v4/renderContext/buildRenderContext.js.map +1 -0
- package/build/v4/runtime/inMemoryRuntime.d.ts +15 -0
- package/build/v4/runtime/inMemoryRuntime.d.ts.map +1 -0
- package/build/v4/runtime/inMemoryRuntime.js +21 -0
- package/build/v4/runtime/inMemoryRuntime.js.map +1 -0
- package/build/v4/runtime/packageParse.d.ts +13 -0
- package/build/v4/runtime/packageParse.d.ts.map +1 -0
- package/build/v4/runtime/packageParse.js +235 -0
- package/build/v4/runtime/packageParse.js.map +1 -0
- package/build/v4/runtime/realRuntime.d.ts +9 -0
- package/build/v4/runtime/realRuntime.d.ts.map +1 -0
- package/build/v4/runtime/realRuntime.js +63 -0
- package/build/v4/runtime/realRuntime.js.map +1 -0
- package/build/v4/runtime/renderMustache.d.ts +7 -0
- package/build/v4/runtime/renderMustache.d.ts.map +1 -0
- package/build/v4/runtime/renderMustache.js +45 -0
- package/build/v4/runtime/renderMustache.js.map +1 -0
- package/build/v4/runtime/runtimeRegistry.d.ts +19 -0
- package/build/v4/runtime/runtimeRegistry.d.ts.map +1 -0
- package/build/v4/runtime/runtimeRegistry.js +59 -0
- package/build/v4/runtime/runtimeRegistry.js.map +1 -0
- package/build/v4/runtime/scaffold.d.ts +31 -0
- package/build/v4/runtime/scaffold.d.ts.map +1 -0
- package/build/v4/runtime/scaffold.js +34 -0
- package/build/v4/runtime/scaffold.js.map +1 -0
- package/build/v4/runtime/scaffoldFromPackageDir.d.ts +7 -0
- package/build/v4/runtime/scaffoldFromPackageDir.d.ts.map +1 -0
- package/build/v4/runtime/scaffoldFromPackageDir.js +43 -0
- package/build/v4/runtime/scaffoldFromPackageDir.js.map +1 -0
- package/build/v4/runtime/selectLanguageContent.d.ts +7 -0
- package/build/v4/runtime/selectLanguageContent.d.ts.map +1 -0
- package/build/v4/runtime/selectLanguageContent.js +39 -0
- package/build/v4/runtime/selectLanguageContent.js.map +1 -0
- package/build/v4/runtime/steps/daAction.d.ts +6 -0
- package/build/v4/runtime/steps/daAction.d.ts.map +1 -0
- package/build/v4/runtime/steps/daAction.js +149 -0
- package/build/v4/runtime/steps/daAction.js.map +1 -0
- package/build/v4/runtime/steps/mcpAuth.d.ts +10 -0
- package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -0
- package/build/v4/runtime/steps/mcpAuth.js +119 -0
- package/build/v4/runtime/steps/mcpAuth.js.map +1 -0
- package/build/v4/runtime/steps/mcpLocal.d.ts +10 -0
- package/build/v4/runtime/steps/mcpLocal.d.ts.map +1 -0
- package/build/v4/runtime/steps/mcpLocal.js +113 -0
- package/build/v4/runtime/steps/mcpLocal.js.map +1 -0
- package/build/v4/runtime/steps/mcpStatic.d.ts +10 -0
- package/build/v4/runtime/steps/mcpStatic.d.ts.map +1 -0
- package/build/v4/runtime/steps/mcpStatic.js +200 -0
- package/build/v4/runtime/steps/mcpStatic.js.map +1 -0
- package/build/v4/runtime/steps/metaOs.d.ts +10 -0
- package/build/v4/runtime/steps/metaOs.d.ts.map +1 -0
- package/build/v4/runtime/steps/metaOs.js +434 -0
- package/build/v4/runtime/steps/metaOs.js.map +1 -0
- package/build/v4/runtime/steps/officeAddin.d.ts +4 -0
- package/build/v4/runtime/steps/officeAddin.d.ts.map +1 -0
- package/build/v4/runtime/steps/officeAddin.js +173 -0
- package/build/v4/runtime/steps/officeAddin.js.map +1 -0
- package/build/v4/runtime/steps/openApi.d.ts +6 -0
- package/build/v4/runtime/steps/openApi.d.ts.map +1 -0
- package/build/v4/runtime/steps/openApi.js +870 -0
- package/build/v4/runtime/steps/openApi.js.map +1 -0
- package/build/v4/runtime/whitelist.d.ts +14 -0
- package/build/v4/runtime/whitelist.d.ts.map +1 -0
- package/build/v4/runtime/whitelist.js +56 -0
- package/build/v4/runtime/whitelist.js.map +1 -0
- package/build/v4/surface/createFloorTail.d.ts +12 -0
- package/build/v4/surface/createFloorTail.d.ts.map +1 -0
- package/build/v4/surface/createFloorTail.js +138 -0
- package/build/v4/surface/createFloorTail.js.map +1 -0
- package/build/v4/surface/createInputs.d.ts +29 -0
- package/build/v4/surface/createInputs.d.ts.map +1 -0
- package/build/v4/surface/createInputs.js +120 -0
- package/build/v4/surface/createInputs.js.map +1 -0
- package/build/v4/surface/createSelectorWalk.d.ts +21 -0
- package/build/v4/surface/createSelectorWalk.d.ts.map +1 -0
- package/build/v4/surface/createSelectorWalk.js +140 -0
- package/build/v4/surface/createSelectorWalk.js.map +1 -0
- package/build/v4/surface/deriveCreateOptions.d.ts +5 -0
- package/build/v4/surface/deriveCreateOptions.d.ts.map +1 -0
- package/build/v4/surface/deriveCreateOptions.js +209 -0
- package/build/v4/surface/deriveCreateOptions.js.map +1 -0
- package/build/v4/surface/modifySelectorWalk.d.ts +12 -0
- package/build/v4/surface/modifySelectorWalk.d.ts.map +1 -0
- package/build/v4/surface/modifySelectorWalk.js +115 -0
- package/build/v4/surface/modifySelectorWalk.js.map +1 -0
- package/build/v4/surface/uiPromptUI.d.ts +5 -0
- package/build/v4/surface/uiPromptUI.d.ts.map +1 -0
- package/build/v4/surface/uiPromptUI.js +224 -0
- package/build/v4/surface/uiPromptUI.js.map +1 -0
- package/build/v4/validation/validateTemplatePackage.d.ts +64 -0
- package/build/v4/validation/validateTemplatePackage.d.ts.map +1 -0
- package/build/v4/validation/validateTemplatePackage.js +189 -0
- package/build/v4/validation/validateTemplatePackage.js.map +1 -0
- package/build/v4/validators/createInputValidators.d.ts +7 -0
- package/build/v4/validators/createInputValidators.d.ts.map +1 -0
- package/build/v4/validators/createInputValidators.js +71 -0
- package/build/v4/validators/createInputValidators.js.map +1 -0
- package/package.json +22 -89
- package/resource/package.nls.cs.json +66 -16
- package/resource/package.nls.de.json +67 -17
- package/resource/package.nls.es.json +66 -16
- package/resource/package.nls.fr.json +66 -16
- package/resource/package.nls.it.json +67 -17
- package/resource/package.nls.ja.json +66 -16
- package/resource/package.nls.json +57 -14
- package/resource/package.nls.ko.json +66 -16
- package/resource/package.nls.pl.json +67 -17
- package/resource/package.nls.pt-BR.json +66 -16
- package/resource/package.nls.ru.json +67 -17
- package/resource/package.nls.tr.json +68 -18
- package/resource/package.nls.zh-Hans.json +66 -16
- package/resource/package.nls.zh-Hant.json +78 -28
- package/resource/templates/package.nls.cs.json +5 -7
- package/resource/templates/package.nls.de.json +5 -7
- package/resource/templates/package.nls.es.json +5 -7
- package/resource/templates/package.nls.fr.json +5 -7
- package/resource/templates/package.nls.it.json +5 -7
- package/resource/templates/package.nls.ja.json +5 -7
- package/resource/templates/package.nls.json +5 -7
- package/resource/templates/package.nls.ko.json +5 -7
- package/resource/templates/package.nls.pl.json +5 -7
- package/resource/templates/package.nls.pt-BR.json +5 -7
- package/resource/templates/package.nls.ru.json +5 -7
- package/resource/templates/package.nls.tr.json +5 -7
- package/resource/templates/package.nls.zh-Hans.json +5 -7
- package/resource/templates/package.nls.zh-Hant.json +5 -7
- package/resource/templates/package.nls.zh-cn.json +0 -7
- package/resource/templates/package.nls.zh-tw.json +0 -7
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/metadata/allTemplates.json +16 -14
- package/templates/metadata/defaultGeneratorTemplates.json +8 -0
- package/templates/metadata.zip +0 -0
- package/templates/ui/ceaNode.json +30 -0
- package/templates/ui/tdpNode.json +7 -7
- package/templates/ui/teamsNode.json +124 -0
- package/templates/ui/wizardNode.json +33 -46
- package/templates/v4/create-selector.json +374 -0
- package/templates/v4/floor.json +3 -0
- package/templates/v4/modify-selector.json +78 -0
- package/templates/v4/templates-metadata.zip +0 -0
- package/templates/v4/templates.zip +0 -0
- package/build/core/middleware/projectMigratorV3.d.ts +0 -39
- package/build/core/middleware/projectMigratorV3.d.ts.map +0 -1
- package/build/core/middleware/projectMigratorV3.js +0 -694
- package/build/core/middleware/projectMigratorV3.js.map +0 -1
- package/build/core/middleware/projectVersionChecker.d.ts +0 -3
- package/build/core/middleware/projectVersionChecker.d.ts.map +0 -1
- package/build/core/middleware/projectVersionChecker.js +0 -60
- package/build/core/middleware/projectVersionChecker.js.map +0 -1
- package/build/core/middleware/types.d.ts +0 -9
- package/build/core/middleware/types.d.ts.map +0 -1
- package/build/core/middleware/types.js.map +0 -1
- package/build/core/middleware/utils/MigrationUtils.d.ts +0 -13
- package/build/core/middleware/utils/MigrationUtils.d.ts.map +0 -1
- package/build/core/middleware/utils/MigrationUtils.js +0 -212
- package/build/core/middleware/utils/MigrationUtils.js.map +0 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts +0 -34
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +0 -1
- package/build/core/middleware/utils/appYmlGenerator.js +0 -158
- package/build/core/middleware/utils/appYmlGenerator.js.map +0 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts +0 -65
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +0 -61
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +0 -1
- package/build/core/middleware/utils/debug/constants.d.ts +0 -20
- package/build/core/middleware/utils/debug/constants.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/constants.js +0 -28
- package/build/core/middleware/utils/debug/constants.js.map +0 -1
- package/build/core/middleware/utils/debug/debugMigrationContext.d.ts +0 -14
- package/build/core/middleware/utils/debug/debugMigrationContext.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/debugMigrationContext.js +0 -23
- package/build/core/middleware/utils/debug/debugMigrationContext.js.map +0 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts +0 -37
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +0 -291
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +0 -1
- package/build/core/middleware/utils/debug/taskMigrator.d.ts +0 -22
- package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +0 -935
- package/build/core/middleware/utils/debug/taskMigrator.js.map +0 -1
- package/build/core/middleware/utils/migrationContext.d.ts +0 -32
- package/build/core/middleware/utils/migrationContext.d.ts.map +0 -1
- package/build/core/middleware/utils/migrationContext.js +0 -104
- package/build/core/middleware/utils/migrationContext.js.map +0 -1
- /package/build/{core/middleware → component/generator/openPlugin}/types.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aadAppClient.d.ts","sourceRoot":"","sources":["../../src/client/aadAppClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"aadAppClient.d.ts","sourceRoot":"","sources":["../../src/client/aadAppClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAMxE,OAAO,EAAE,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|
|
8
8
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
9
9
|
const axios_retry_1 = tslib_1.__importDefault(require("axios-retry"));
|
|
10
10
|
const constants_1 = require("../common/constants");
|
|
11
|
-
const localizeUtils_1 = require("../common/localizeUtils");
|
|
12
11
|
const globalVars_1 = require("../common/globalVars");
|
|
12
|
+
const localizeUtils_1 = require("../common/localizeUtils");
|
|
13
13
|
const aadManifestError_1 = require("../component/driver/aad/error/aadManifestError");
|
|
14
14
|
const clientSecretNotAllowedError_1 = require("../component/driver/aad/error/clientSecretNotAllowedError");
|
|
15
15
|
const credentialInvalidLifetimeError_1 = require("../component/driver/aad/error/credentialInvalidLifetimeError");
|
|
@@ -69,7 +69,7 @@ class AadAppClient {
|
|
|
69
69
|
catch (err) {
|
|
70
70
|
if (axios_1.default.isAxiosError(err) && err.response) {
|
|
71
71
|
if (err.response.data?.error?.code === constants_2.aadErrorCode.signInAudienceNotAllowedAsPerAppPolicy) {
|
|
72
|
-
throw new signInAudienceNotAllowedError_1.SignInAudienceNotAllowedError(AadAppClient
|
|
72
|
+
throw new signInAudienceNotAllowedError_1.SignInAudienceNotAllowedError("AadAppClient", err.response.data.error?.message, isMicrosoftUser);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
throw err;
|
|
@@ -105,10 +105,10 @@ class AadAppClient {
|
|
|
105
105
|
catch (err) {
|
|
106
106
|
if (axios_1.default.isAxiosError(err) && err.response) {
|
|
107
107
|
if (err.response.data?.error?.code === constants_2.aadErrorCode.credentialInvalidLifetimeAsPerAppPolicy) {
|
|
108
|
-
throw new credentialInvalidLifetimeError_1.CredentialInvalidLifetimeError(AadAppClient
|
|
108
|
+
throw new credentialInvalidLifetimeError_1.CredentialInvalidLifetimeError("AadAppClient");
|
|
109
109
|
}
|
|
110
110
|
if (err.response.data?.error?.code === constants_2.aadErrorCode.credentialTypeNotAllowedAsPerAppPolicy) {
|
|
111
|
-
throw new clientSecretNotAllowedError_1.ClientSecretNotAllowedError(AadAppClient
|
|
111
|
+
throw new clientSecretNotAllowedError_1.ClientSecretNotAllowedError("AadAppClient", isMicrosoftUser);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
throw err;
|
|
@@ -132,10 +132,10 @@ class AadAppClient {
|
|
|
132
132
|
catch (err) {
|
|
133
133
|
if (axios_1.default.isAxiosError(err) && err.response && err.response.status === 400) {
|
|
134
134
|
if (err.response.data.error?.code === constants_2.aadErrorCode.permissionErrorCode) {
|
|
135
|
-
throw new aadManifestError_1.DeleteOrUpdatePermissionFailedError(AadAppClient
|
|
135
|
+
throw new aadManifestError_1.DeleteOrUpdatePermissionFailedError("AadAppClient");
|
|
136
136
|
}
|
|
137
137
|
if (err.response.data.error?.code === constants_2.aadErrorCode.hostNameNotOnVerifiedDomain) {
|
|
138
|
-
throw new aadManifestError_1.HostNameNotOnVerifiedDomainError(AadAppClient
|
|
138
|
+
throw new aadManifestError_1.HostNameNotOnVerifiedDomainError("AadAppClient", err.response.data.error.message);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
throw err;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aadAppClient.js","sourceRoot":"","sources":["../../src/client/aadAppClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAE9C,0DAA8E;AAC9E,sEAAqC;AACrC,mDAAmG;AACnG,2DAA6D;AAE7D,
|
|
1
|
+
{"version":3,"file":"aadAppClient.js","sourceRoot":"","sources":["../../src/client/aadAppClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAE9C,0DAA8E;AAC9E,sEAAqC;AACrC,mDAAmG;AACnG,qDAAsD;AACtD,2DAA6D;AAE7D,qFAGwD;AACxD,2GAAwG;AACxG,iHAA8G;AAC9G,+GAA4G;AAG5G,qFAAkF;AAClF,yFAAsF;AACtF,yEAAyE;AAEzE,yFAAyF;AACzF,yHAAyH;AA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AAC;IAC7F,CAAC;CACF;AAxND,oCAwNC;AAvKc;IADZ,IAAA,WAAK,EAAC,CAAC,IAAA,2BAAc,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;gDA8BvE;AAGY;IADZ,IAAA,WAAK,EAAC,CAAC,IAAA,2BAAc,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;gDAGvE;AAGY;IADZ,IAAA,WAAK,EAAC,CAAC,IAAA,2BAAc,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;wDA8CvE;AAGY;IADZ,IAAA,WAAK,EAAC,CAAC,IAAA,2BAAc,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;gDA8BvE;AAEY;IADZ,IAAA,WAAK,EAAC,CAAC,IAAA,2BAAc,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;6CAyBvE;AAEY;IADZ,IAAA,WAAK,EAAC,CAAC,IAAA,2BAAc,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;;;;4CAgBvE"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from "axios";
|
|
2
|
+
import { AADApplication } from "../component/driver/aad/interface/AADApplication";
|
|
3
|
+
import { SignInAudience } from "../component/driver/aad/interface/signInAudience";
|
|
2
4
|
import { ApiSecretRegistration, ApiSecretRegistrationUpdate } from "../component/driver/teamsApp/interfaces/ApiSecretRegistration";
|
|
3
5
|
import { AsyncAppValidationDetailsResponse } from "../component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse";
|
|
4
6
|
import { AsyncAppValidationResponse } from "../component/driver/teamsApp/interfaces/AsyncAppValidationResponse";
|
|
@@ -10,8 +12,6 @@ import { IValidationResult } from "../component/driver/teamsApp/interfaces/appde
|
|
|
10
12
|
import { AppDefinition } from "../component/driver/teamsApp/interfaces/appdefinitions/appDefinition";
|
|
11
13
|
import { AppUser } from "../component/driver/teamsApp/interfaces/appdefinitions/appUser";
|
|
12
14
|
import { IBotRegistration } from "../component/resource/botService/appStudio/interfaces/IBotRegistration";
|
|
13
|
-
import { SignInAudience } from "../component/driver/aad/interface/signInAudience";
|
|
14
|
-
import { AADApplication } from "../component/driver/aad/interface/AADApplication";
|
|
15
15
|
export declare class TeamsDevPortalClient {
|
|
16
16
|
regionEndpoint?: string;
|
|
17
17
|
setRegionEndpoint(regionEndpoint: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamsDevPortalClient.d.ts","sourceRoot":"","sources":["../../src/client/teamsDevPortalClient.ts"],"names":[],"mappings":"AAKA,OAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"teamsDevPortalClient.d.ts","sourceRoot":"","sources":["../../src/client/teamsDevPortalClient.ts"],"names":[],"mappings":"AAKA,OAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAQlF,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,2EAA2E,CAAC;AAC9H,OAAO,EAAE,0BAA0B,EAAE,MAAM,oEAAoE,CAAC;AAChH,OAAO,EAAE,iCAAiC,EAAE,MAAM,2EAA2E,CAAC;AAC9H,OAAO,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAC;AACpG,OAAO,EAAE,iBAA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,CAAC;IAUtD,qBAAqB,CACzB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,gBAAgB,EAC9B,cAAc,UAAO,GACpB,OAAO,CAAC,IAAI,CAAC;IAsBV,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAcpF,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAe7E,YAAY,CAChB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,cAAc,GAAE,cAA4C,EAC5D,0BAA0B,CAAC,EAAE,MAAM,EACnC,eAAe,UAAQ,GACtB,OAAO,CAAC,cAAc,CAAC;IAoC1B,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAclE,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,GAAG;IAQhE,aAAa,CACX,CAAC,EAAE,GAAG,EACN,OAAO,EAAE,MAAM,EACf,IAAI,SAA4D,EAChE,eAAe,SAA8D,EAC7E,cAAc,CAAC,EAAE,MAAM,EACvB,WAAW,UAAQ,EACnB,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK;CAgCT;AAED,eAAO,MAAM,oBAAoB,sBAA6B,CAAC"}
|
|
@@ -11,22 +11,22 @@ const constants_1 = require("../common/constants");
|
|
|
11
11
|
const globalVars_1 = require("../common/globalVars");
|
|
12
12
|
const localizeUtils_1 = require("../common/localizeUtils");
|
|
13
13
|
const retryHandler_1 = require("../common/retryHandler");
|
|
14
|
-
const
|
|
14
|
+
const telemetry = tslib_1.__importStar(require("../common/telemetry"));
|
|
15
15
|
const wrappedAxiosClient_1 = require("../common/wrappedAxiosClient");
|
|
16
16
|
const commonConstant_1 = require("../component/constant/commonConstant");
|
|
17
|
-
const
|
|
17
|
+
const signInAudienceNotAllowedError_1 = require("../component/driver/aad/error/signInAudienceNotAllowedError");
|
|
18
|
+
const signInAudience_1 = require("../component/driver/aad/interface/signInAudience");
|
|
19
|
+
const constants_2 = require("../component/driver/aad/utility/constants");
|
|
20
|
+
const constants_3 = require("../component/driver/teamsApp/constants");
|
|
18
21
|
const errors_1 = require("../component/driver/teamsApp/errors");
|
|
19
22
|
const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
|
|
20
23
|
const IBotRegistration_1 = require("../component/resource/botService/appStudio/interfaces/IBotRegistration");
|
|
21
24
|
const common_1 = require("../component/resource/botService/common");
|
|
22
|
-
const
|
|
25
|
+
const constants_4 = require("../component/resource/botService/constants");
|
|
23
26
|
const errors_2 = require("../component/resource/botService/errors");
|
|
24
27
|
const messages_1 = require("../component/resource/botService/messages");
|
|
25
28
|
const strings_1 = require("../component/resource/botService/strings");
|
|
26
29
|
const teamsApp_1 = require("../error/teamsApp");
|
|
27
|
-
const signInAudience_1 = require("../component/driver/aad/interface/signInAudience");
|
|
28
|
-
const constants_4 = require("../component/driver/aad/utility/constants");
|
|
29
|
-
const signInAudienceNotAllowedError_1 = require("../component/driver/aad/error/signInAudienceNotAllowedError");
|
|
30
30
|
class TeamsDevPortalClient {
|
|
31
31
|
regionEndpoint;
|
|
32
32
|
setRegionEndpoint(regionEndpoint) {
|
|
@@ -84,18 +84,18 @@ class TeamsDevPortalClient {
|
|
|
84
84
|
return app;
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
|
-
throw this.wrapException(new Error("cannot create teams app"),
|
|
87
|
+
throw this.wrapException(new Error("cannot create teams app"), constants_3.APP_STUDIO_API_NAMES.CREATE_APP);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
catch (e) {
|
|
91
91
|
if (e.response?.status === 409) {
|
|
92
|
-
throw this.wrapException(e,
|
|
92
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.TeamsAppCreateConflictError.name, errors_1.AppStudioError.TeamsAppCreateConflictError.message()[0], errors_1.AppStudioError.TeamsAppCreateConflictError.message()[1], true, constants_1.HelpLinks.SwitchTenant);
|
|
93
93
|
}
|
|
94
94
|
// Corner case: The provided app ID conflict with an existing published app
|
|
95
95
|
// See Developer Portal PR: 507264
|
|
96
96
|
if (e.response?.status == 422 &&
|
|
97
97
|
e.response?.data.includes("App already exists and published")) {
|
|
98
|
-
throw this.wrapException(e,
|
|
98
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.name, errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.message()[0], errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.message()[1], true);
|
|
99
99
|
}
|
|
100
100
|
// Corner case: App Id must be a GUID
|
|
101
101
|
if (e.response?.status === commonConstant_1.HttpStatusCode.BAD_REQUEST &&
|
|
@@ -106,10 +106,10 @@ class TeamsDevPortalClient {
|
|
|
106
106
|
}
|
|
107
107
|
else {
|
|
108
108
|
const teamsAppId = manifest.value.id;
|
|
109
|
-
throw this.wrapException(e,
|
|
109
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.InvalidTeamsAppIdError.name, errors_1.AppStudioError.InvalidTeamsAppIdError.message(teamsAppId)[0], errors_1.AppStudioError.InvalidTeamsAppIdError.message(teamsAppId)[1], true);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
throw this.wrapException(e,
|
|
112
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
async listApps(token) {
|
|
@@ -129,9 +129,9 @@ class TeamsDevPortalClient {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
catch (e) {
|
|
132
|
-
throw this.wrapException(e,
|
|
132
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.LIST_APPS);
|
|
133
133
|
}
|
|
134
|
-
throw this.wrapException(new Error("cannot get the app definitions"),
|
|
134
|
+
throw this.wrapException(new Error("cannot get the app definitions"), constants_3.APP_STUDIO_API_NAMES.LIST_APPS);
|
|
135
135
|
}
|
|
136
136
|
async deleteApp(appStudioToken, teamsAppId) {
|
|
137
137
|
if (!this.regionEndpoint)
|
|
@@ -152,9 +152,9 @@ class TeamsDevPortalClient {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
catch (e) {
|
|
155
|
-
throw this.wrapException(e,
|
|
155
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.DELETE_APP);
|
|
156
156
|
}
|
|
157
|
-
throw this.wrapException(new Error("cannot delete the app: " + teamsAppId),
|
|
157
|
+
throw this.wrapException(new Error("cannot delete the app: " + teamsAppId), constants_3.APP_STUDIO_API_NAMES.DELETE_APP);
|
|
158
158
|
}
|
|
159
159
|
async getApp(token, teamsAppId) {
|
|
160
160
|
let requester;
|
|
@@ -173,9 +173,9 @@ class TeamsDevPortalClient {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
catch (e) {
|
|
176
|
-
throw this.wrapException(e,
|
|
176
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP);
|
|
177
177
|
}
|
|
178
|
-
throw this.wrapException(new Error(`cannot get the app definition with app ID ${teamsAppId}`),
|
|
178
|
+
throw this.wrapException(new Error(`cannot get the app definition with app ID ${teamsAppId}`), constants_3.APP_STUDIO_API_NAMES.GET_APP);
|
|
179
179
|
}
|
|
180
180
|
async getBotId(token, teamsAppId) {
|
|
181
181
|
const app = await this.getApp(token, teamsAppId);
|
|
@@ -195,11 +195,11 @@ class TeamsDevPortalClient {
|
|
|
195
195
|
return response.data;
|
|
196
196
|
}
|
|
197
197
|
else {
|
|
198
|
-
throw this.wrapException(new Error((0, localizeUtils_1.getLocalizedString)("plugins.appstudio.emptyAppPackage", teamsAppId)),
|
|
198
|
+
throw this.wrapException(new Error((0, localizeUtils_1.getLocalizedString)("plugins.appstudio.emptyAppPackage", teamsAppId)), constants_3.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
catch (e) {
|
|
202
|
-
throw this.wrapException(e,
|
|
202
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
@@ -253,21 +253,21 @@ class TeamsDevPortalClient {
|
|
|
253
253
|
}
|
|
254
254
|
catch (e) {
|
|
255
255
|
if (e instanceof teamsApp_1.DeveloperPortalAPIFailedSystemError) {
|
|
256
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
256
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP, errors_1.AppStudioError.TeamsAppPublishConflictError.name, errors_1.AppStudioError.TeamsAppPublishConflictError.message(teamsAppId)[0], errors_1.AppStudioError.TeamsAppPublishConflictError.message(teamsAppId)[1]);
|
|
257
257
|
}
|
|
258
258
|
else {
|
|
259
259
|
throw e;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
263
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP);
|
|
264
264
|
}
|
|
265
265
|
else {
|
|
266
266
|
return response.data.id;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
|
-
throw this.wrapException(this.wrapResponse(new Error("empty response"), response),
|
|
270
|
+
throw this.wrapException(this.wrapResponse(new Error("empty response"), response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, "POST /api/publishing")[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, "POST /api/publishing")[1]);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
catch (e) {
|
|
@@ -275,7 +275,7 @@ class TeamsDevPortalClient {
|
|
|
275
275
|
throw e;
|
|
276
276
|
}
|
|
277
277
|
else {
|
|
278
|
-
throw this.wrapException(e,
|
|
278
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
}
|
|
@@ -299,19 +299,19 @@ class TeamsDevPortalClient {
|
|
|
299
299
|
}));
|
|
300
300
|
}
|
|
301
301
|
else {
|
|
302
|
-
throw this.wrapException(new Error("API failed"),
|
|
302
|
+
throw this.wrapException(new Error("API failed"), constants_3.APP_STUDIO_API_NAMES.GET_PUBLISHED_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, `GET /api/publishing/${teamsAppId}`)[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, `GET /api/publishing/${teamsAppId}`)[1]);
|
|
303
303
|
}
|
|
304
304
|
const requestPath = `${response?.request?.method} ${response?.request?.path}`;
|
|
305
305
|
if (response && response.data) {
|
|
306
306
|
if (response.data.error || response.data.errorMessage) {
|
|
307
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
307
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
|
|
308
308
|
}
|
|
309
309
|
else {
|
|
310
310
|
return response.data.teamsAppId;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
else {
|
|
314
|
-
throw this.wrapException(new Error("empty response"),
|
|
314
|
+
throw this.wrapException(new Error("empty response"), constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, requestPath)[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, requestPath)[1]);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
catch (error) {
|
|
@@ -319,7 +319,7 @@ class TeamsDevPortalClient {
|
|
|
319
319
|
throw error;
|
|
320
320
|
}
|
|
321
321
|
else {
|
|
322
|
-
throw this.wrapException(error,
|
|
322
|
+
throw this.wrapException(error, constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -364,17 +364,17 @@ class TeamsDevPortalClient {
|
|
|
364
364
|
userList = await this.getUserList(token, teamsAppId);
|
|
365
365
|
}
|
|
366
366
|
catch (error) {
|
|
367
|
-
return
|
|
367
|
+
return constants_3.Constants.PERMISSIONS.noPermission;
|
|
368
368
|
}
|
|
369
369
|
const findUser = userList?.find((user) => user.aadId === userObjectId);
|
|
370
370
|
if (!findUser) {
|
|
371
|
-
return
|
|
371
|
+
return constants_3.Constants.PERMISSIONS.noPermission;
|
|
372
372
|
}
|
|
373
373
|
if (findUser.isAdministrator) {
|
|
374
|
-
return
|
|
374
|
+
return constants_3.Constants.PERMISSIONS.admin;
|
|
375
375
|
}
|
|
376
376
|
else {
|
|
377
|
-
return
|
|
377
|
+
return constants_3.Constants.PERMISSIONS.operative;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
async removePermission(token, teamsAppId, userToRemove) {
|
|
@@ -396,7 +396,7 @@ class TeamsDevPortalClient {
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
catch (err) {
|
|
399
|
-
throw this.wrapException(err,
|
|
399
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.UPDATE_OWNER);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
async grantPermission(token, teamsAppId, newUser) {
|
|
@@ -412,11 +412,11 @@ class TeamsDevPortalClient {
|
|
|
412
412
|
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/appdefinitions/${teamsAppId}/owner`, app));
|
|
413
413
|
globalVars_1.TOOLS.logProvider.debug((0, localizeUtils_1.getLocalizedString)("core.common.ReceiveApiResponse", JSON.stringify(response?.data)));
|
|
414
414
|
if (!response || !response.data || !this.checkUser(response.data, newUser)) {
|
|
415
|
-
throw new Error(
|
|
415
|
+
throw new Error(constants_3.ErrorMessages.GrantPermissionFailed);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
catch (err) {
|
|
419
|
-
throw this.wrapException(err,
|
|
419
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.UPDATE_OWNER);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
@@ -434,7 +434,7 @@ class TeamsDevPortalClient {
|
|
|
434
434
|
return response?.data;
|
|
435
435
|
}
|
|
436
436
|
catch (e) {
|
|
437
|
-
throw this.wrapException(e,
|
|
437
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
checkUser(app, newUser) {
|
|
@@ -463,7 +463,7 @@ class TeamsDevPortalClient {
|
|
|
463
463
|
return response?.data;
|
|
464
464
|
}
|
|
465
465
|
catch (e) {
|
|
466
|
-
throw this.wrapException(e,
|
|
466
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.SUBMIT_APP_VALIDATION);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
/**
|
|
@@ -476,7 +476,7 @@ class TeamsDevPortalClient {
|
|
|
476
476
|
return response?.data;
|
|
477
477
|
}
|
|
478
478
|
catch (e) {
|
|
479
|
-
throw this.wrapException(e,
|
|
479
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_REQUESTS);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
@@ -493,7 +493,7 @@ class TeamsDevPortalClient {
|
|
|
493
493
|
return response?.data;
|
|
494
494
|
}
|
|
495
495
|
catch (e) {
|
|
496
|
-
throw this.wrapException(e,
|
|
496
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_RESULT);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
async getSideloadingStatus(token) {
|
|
@@ -511,24 +511,24 @@ class TeamsDevPortalClient {
|
|
|
511
511
|
result = response.data?.value?.isSideloadingAllowed;
|
|
512
512
|
}
|
|
513
513
|
if (result !== undefined) {
|
|
514
|
-
|
|
515
|
-
[
|
|
514
|
+
telemetry.sendTelemetryEvent("TeamsDevPortalClient", telemetry.TelemetryEvent.CheckSideloading, {
|
|
515
|
+
[telemetry.TelemetryProperty.IsSideloadingAllowed]: result.toString() + "",
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
else {
|
|
519
|
-
|
|
520
|
-
[
|
|
521
|
-
[
|
|
522
|
-
[
|
|
519
|
+
telemetry.sendTelemetryErrorEvent("TeamsDevPortalClient", telemetry.TelemetryEvent.CheckSideloading, new teamsfx_api_1.SystemError("M365Account", "UnknownValue", `AppStudio response code: ${response.status}, body: ${response.data}`), {
|
|
520
|
+
[telemetry.TelemetryProperty.CheckSideloadingStatusCode]: `${response.status}`,
|
|
521
|
+
[telemetry.TelemetryProperty.CheckSideloadingMethod]: "get",
|
|
522
|
+
[telemetry.TelemetryProperty.CheckSideloadingUrl]: apiName,
|
|
523
523
|
});
|
|
524
524
|
}
|
|
525
525
|
return result;
|
|
526
526
|
}
|
|
527
527
|
catch (error) {
|
|
528
|
-
|
|
529
|
-
[
|
|
530
|
-
[
|
|
531
|
-
[
|
|
528
|
+
telemetry.sendTelemetryErrorEvent("TeamsDevPortalClient", telemetry.TelemetryEvent.CheckSideloading, new teamsApp_1.CheckSideloadingPermissionFailedError(error, error.response?.headers?.[constants_3.Constants.CORRELATION_ID] ?? "", apiName, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.reason.common", error.response?.data ? `data: ${JSON.stringify(error.response.data)}` : "")), {
|
|
529
|
+
[telemetry.TelemetryProperty.CheckSideloadingStatusCode]: `${error?.response?.status}`,
|
|
530
|
+
[telemetry.TelemetryProperty.CheckSideloadingMethod]: "get",
|
|
531
|
+
[telemetry.TelemetryProperty.CheckSideloadingUrl]: apiName,
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
534
|
return undefined;
|
|
@@ -545,7 +545,7 @@ class TeamsDevPortalClient {
|
|
|
545
545
|
return response?.data;
|
|
546
546
|
}
|
|
547
547
|
catch (e) {
|
|
548
|
-
throw this.wrapException(e,
|
|
548
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_API_KEY);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
/**
|
|
@@ -560,7 +560,7 @@ class TeamsDevPortalClient {
|
|
|
560
560
|
return response?.data;
|
|
561
561
|
}
|
|
562
562
|
catch (e) {
|
|
563
|
-
throw this.wrapException(e,
|
|
563
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_API_KEY);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
async updateApiKeyRegistration(token, apiKeyRegistration, apiKeyRegistrationId) {
|
|
@@ -570,7 +570,7 @@ class TeamsDevPortalClient {
|
|
|
570
570
|
return response?.data;
|
|
571
571
|
}
|
|
572
572
|
catch (e) {
|
|
573
|
-
throw this.wrapException(e,
|
|
573
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_API_KEY);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
async getOauthRegistrationById(token, oauthRegistrationId) {
|
|
@@ -580,7 +580,7 @@ class TeamsDevPortalClient {
|
|
|
580
580
|
return response?.data;
|
|
581
581
|
}
|
|
582
582
|
catch (e) {
|
|
583
|
-
throw this.wrapException(e,
|
|
583
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_OAUTH);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
async createOauthRegistration(token, oauthRegistration) {
|
|
@@ -590,7 +590,7 @@ class TeamsDevPortalClient {
|
|
|
590
590
|
return response?.data;
|
|
591
591
|
}
|
|
592
592
|
catch (e) {
|
|
593
|
-
throw this.wrapException(e,
|
|
593
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_OAUTH);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
async updateOauthRegistration(token, oauthRegistration, oauthRegistrationId) {
|
|
@@ -600,7 +600,7 @@ class TeamsDevPortalClient {
|
|
|
600
600
|
return response?.data;
|
|
601
601
|
}
|
|
602
602
|
catch (e) {
|
|
603
|
-
throw this.wrapException(e,
|
|
603
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_OAUTH);
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
async getBotRegistration(token, botId) {
|
|
@@ -612,11 +612,11 @@ class TeamsDevPortalClient {
|
|
|
612
612
|
}
|
|
613
613
|
else {
|
|
614
614
|
// Defensive code and it should never reach here.
|
|
615
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
615
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.GET_BOT, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), "Failed to get data");
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
catch (e) {
|
|
619
|
-
this.handleBotFrameworkError(e,
|
|
619
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.GET_BOT);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
async listBots(token) {
|
|
@@ -628,11 +628,11 @@ class TeamsDevPortalClient {
|
|
|
628
628
|
}
|
|
629
629
|
else {
|
|
630
630
|
// Defensive code and it should never reach here.
|
|
631
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
631
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.LIST_BOT, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), "Failed to get data");
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
catch (e) {
|
|
635
|
-
this.handleBotFrameworkError(e,
|
|
635
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.LIST_BOT);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
async deleteBot(token, botId) {
|
|
@@ -641,7 +641,7 @@ class TeamsDevPortalClient {
|
|
|
641
641
|
await retryHandler_1.RetryHandler.Retry(() => requester.delete(`/api/botframework/${botId}`));
|
|
642
642
|
}
|
|
643
643
|
catch (e) {
|
|
644
|
-
this.handleBotFrameworkError(e,
|
|
644
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.DELETE_BOT);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
async createBotRegistration(token, registration, checkExistence = true) {
|
|
@@ -660,7 +660,7 @@ class TeamsDevPortalClient {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
catch (e) {
|
|
663
|
-
this.handleBotFrameworkError(e,
|
|
663
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.CREATE_BOT);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
async updateMessageEndpoint(token, botId, endpoint) {
|
|
@@ -683,7 +683,7 @@ class TeamsDevPortalClient {
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
catch (e) {
|
|
686
|
-
this.handleBotFrameworkError(e,
|
|
686
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_BOT);
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
async createAADApp(token, displayName, signInAudience = signInAudience_1.SignInAudience.AzureADMyOrg, serviceManagementReference, isMicrosoftUser = false) {
|
|
@@ -701,13 +701,13 @@ class TeamsDevPortalClient {
|
|
|
701
701
|
}
|
|
702
702
|
catch (err) {
|
|
703
703
|
if (axios_1.default.isAxiosError(err) && err.response) {
|
|
704
|
-
if (err.response.data?.error?.code ===
|
|
704
|
+
if (err.response.data?.error?.code === constants_2.aadErrorCode.signInAudienceNotAllowedAsPerAppPolicy) {
|
|
705
705
|
throw new signInAudienceNotAllowedError_1.SignInAudienceNotAllowedError("TeamsDevPortalClient", err.response.data.error?.message, isMicrosoftUser);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
throw this.wrapException(err,
|
|
708
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
|
|
709
709
|
}
|
|
710
|
-
throw this.wrapException(new Error(`Failed to create AAD app: ${displayName}`),
|
|
710
|
+
throw this.wrapException(new Error(`Failed to create AAD app: ${displayName}`), constants_3.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
|
|
711
711
|
}
|
|
712
712
|
handleBotFrameworkError(e, apiName) {
|
|
713
713
|
if (e.response?.status === commonConstant_1.HttpStatusCode.NOTFOUND) {
|
|
@@ -723,7 +723,7 @@ class TeamsDevPortalClient {
|
|
|
723
723
|
throw new errors_2.BotFrameworkConflictResultError();
|
|
724
724
|
}
|
|
725
725
|
else {
|
|
726
|
-
e.teamsfxUrlName =
|
|
726
|
+
e.teamsfxUrlName = constants_4.TeamsFxUrlNames[apiName];
|
|
727
727
|
throw this.wrapException(e, apiName);
|
|
728
728
|
}
|
|
729
729
|
}
|
|
@@ -735,7 +735,7 @@ class TeamsDevPortalClient {
|
|
|
735
735
|
}
|
|
736
736
|
wrapException(e, apiName, name = (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), potentialReason = (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.reason.common"), disPlayMessage, isUserError = false, helpLink) {
|
|
737
737
|
e.name = name;
|
|
738
|
-
const correlationId = e.response?.headers?.[
|
|
738
|
+
const correlationId = e.response?.headers?.[constants_3.Constants.CORRELATION_ID];
|
|
739
739
|
let extraData = `${potentialReason} ${e.response?.data ? `data: ${JSON.stringify(e.response.data)}` : ""}`;
|
|
740
740
|
// add status code in extra data if the message does not have it.
|
|
741
741
|
if (!e.message?.toLowerCase().includes("status code") && e.response?.status) {
|