@microsoft/teamsfx-core 3.1.0 → 3.1.2-alpha.31d08fb48a.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 +0 -6
- package/build/client/aadAppClient.d.ts.map +1 -1
- package/build/client/aadAppClient.js +8 -6
- package/build/client/aadAppClient.js.map +1 -1
- package/build/client/graphClient.d.ts +4 -4
- package/build/client/graphClient.d.ts.map +1 -1
- package/build/client/graphClient.js +91 -23
- package/build/client/graphClient.js.map +1 -1
- package/build/client/teamsDevPortalClient.d.ts +3 -7
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.js +101 -122
- package/build/client/teamsDevPortalClient.js.map +1 -1
- package/build/client/teamsGraphClient.d.ts +20 -0
- package/build/client/teamsGraphClient.d.ts.map +1 -0
- package/build/client/teamsGraphClient.js +152 -0
- package/build/client/teamsGraphClient.js.map +1 -0
- package/build/common/accountUtils.d.ts +3 -2
- package/build/common/accountUtils.d.ts.map +1 -1
- package/build/common/accountUtils.js +7 -2
- package/build/common/accountUtils.js.map +1 -1
- package/build/common/cancellation.d.ts +5 -0
- package/build/common/cancellation.d.ts.map +1 -0
- package/build/common/cancellation.js +17 -0
- package/build/common/cancellation.js.map +1 -0
- package/build/common/constants.d.ts +5 -1
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +20 -5
- package/build/common/constants.js.map +1 -1
- package/build/common/daSpecParser.d.ts +2 -1
- package/build/common/daSpecParser.d.ts.map +1 -1
- package/build/common/daSpecParser.js +214 -21
- package/build/common/daSpecParser.js.map +1 -1
- package/build/common/featureFlags.d.ts +22 -5
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +40 -9
- 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/globalVars.d.ts +1 -1
- package/build/common/globalVars.d.ts.map +1 -1
- package/build/common/globalVars.js.map +1 -1
- package/build/common/httpProxy.d.ts +21 -0
- package/build/common/httpProxy.d.ts.map +1 -0
- package/build/common/httpProxy.js +117 -0
- package/build/common/httpProxy.js.map +1 -0
- 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/mcpToolFetcher.d.ts +90 -0
- package/build/common/mcpToolFetcher.d.ts.map +1 -0
- package/build/common/mcpToolFetcher.js +424 -0
- package/build/common/mcpToolFetcher.js.map +1 -0
- package/build/common/odrProvider.d.ts +43 -0
- package/build/common/odrProvider.d.ts.map +1 -0
- package/build/common/odrProvider.js +154 -0
- package/build/common/odrProvider.js.map +1 -0
- package/build/common/openApiParserOptions.d.ts +3 -0
- package/build/common/openApiParserOptions.d.ts.map +1 -0
- package/build/common/openApiParserOptions.js +61 -0
- package/build/common/openApiParserOptions.js.map +1 -0
- package/build/common/permissionInterface.d.ts +12 -3
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +7 -1
- package/build/common/permissionInterface.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 -59
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/retryHandler.d.ts +5 -0
- package/build/common/retryHandler.d.ts.map +1 -0
- package/build/common/retryHandler.js +27 -0
- package/build/common/retryHandler.js.map +1 -0
- package/build/common/samples.d.ts +1 -1
- package/build/common/samples.js +1 -1
- package/build/common/secretmasker/dict.d.ts.map +1 -1
- package/build/common/secretmasker/dict.js +5 -2
- package/build/common/secretmasker/dict.js.map +1 -1
- package/build/common/secretmasker/feature.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 +6 -15
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +9 -20
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +10 -3
- 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/treatmentVariables.d.ts +5 -0
- package/build/common/treatmentVariables.d.ts.map +1 -0
- package/build/common/treatmentVariables.js +10 -0
- package/build/common/treatmentVariables.js.map +1 -0
- package/build/common/wrappedAxiosClient.d.ts +11 -2
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +147 -59
- 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/configManager/lifecycle.d.ts +2 -2
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +38 -9
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +2 -0
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +13 -11
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.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/apiKey/create.d.ts.map +1 -1
- package/build/component/driver/apiKey/create.js +4 -4
- package/build/component/driver/apiKey/create.js.map +1 -1
- package/build/component/driver/apiKey/update.d.ts.map +1 -1
- package/build/component/driver/apiKey/update.js +4 -4
- package/build/component/driver/apiKey/update.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/botAadApp/create.js +1 -1
- package/build/component/driver/botAadApp/create.js.map +1 -1
- package/build/component/driver/copilotAgent/interfaces/PublishArgs.d.ts +14 -0
- package/build/component/driver/copilotAgent/interfaces/PublishArgs.d.ts.map +1 -0
- package/build/component/driver/copilotAgent/interfaces/PublishArgs.js +5 -0
- package/build/component/driver/copilotAgent/interfaces/PublishArgs.js.map +1 -0
- package/build/component/driver/copilotAgent/publish.d.ts +16 -0
- package/build/component/driver/copilotAgent/publish.d.ts.map +1 -0
- package/build/component/driver/copilotAgent/publish.js +175 -0
- package/build/component/driver/copilotAgent/publish.js.map +1 -0
- package/build/component/driver/dcr/create.d.ts +10 -0
- package/build/component/driver/dcr/create.d.ts.map +1 -0
- package/build/component/driver/dcr/create.js +142 -0
- package/build/component/driver/dcr/create.js.map +1 -0
- package/build/component/driver/dcr/error/dcrNameTooLong.d.ts +5 -0
- package/build/component/driver/dcr/error/dcrNameTooLong.d.ts.map +1 -0
- package/build/component/driver/dcr/error/dcrNameTooLong.js +21 -0
- package/build/component/driver/dcr/error/dcrNameTooLong.js.map +1 -0
- package/build/component/driver/dcr/error/dcrWellKnownInvalid.d.ts +5 -0
- package/build/component/driver/dcr/error/dcrWellKnownInvalid.d.ts.map +1 -0
- package/build/component/driver/dcr/error/dcrWellKnownInvalid.js +21 -0
- package/build/component/driver/dcr/error/dcrWellKnownInvalid.js.map +1 -0
- package/build/component/driver/dcr/interface/createDcrArgs.d.ts +9 -0
- package/build/component/driver/dcr/interface/createDcrArgs.d.ts.map +1 -0
- package/build/component/driver/dcr/interface/createDcrArgs.js +5 -0
- package/build/component/driver/dcr/interface/createDcrArgs.js.map +1 -0
- package/build/component/driver/dcr/interface/createDcrOutputs.d.ts +7 -0
- package/build/component/driver/dcr/interface/createDcrOutputs.d.ts.map +1 -0
- package/build/component/driver/dcr/interface/createDcrOutputs.js +10 -0
- package/build/component/driver/dcr/interface/createDcrOutputs.js.map +1 -0
- package/build/component/driver/dcr/utility/constants.d.ts +7 -0
- package/build/component/driver/dcr/utility/constants.d.ts.map +1 -0
- package/build/component/driver/dcr/utility/constants.js +12 -0
- package/build/component/driver/dcr/utility/constants.js.map +1 -0
- 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 +39 -4
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +2 -2
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.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/index.d.ts +2 -0
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +2 -0
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
- package/build/component/driver/interface/commonArgs.d.ts +2 -1
- package/build/component/driver/interface/commonArgs.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +4 -3
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/oauth/create.d.ts.map +1 -1
- package/build/component/driver/oauth/create.js +5 -4
- package/build/component/driver/oauth/create.js.map +1 -1
- package/build/component/driver/oauth/update.d.ts.map +1 -1
- package/build/component/driver/oauth/update.js +5 -5
- package/build/component/driver/oauth/update.js.map +1 -1
- package/build/component/driver/script/baseBuildDriver.d.ts +1 -2
- package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildDriver.js +0 -2
- package/build/component/driver/script/baseBuildDriver.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/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +1 -1
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +7 -0
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +9 -3
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +11 -4
- 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 +19 -1
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +10 -0
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +383 -70
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.d.ts +10 -0
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.js +5 -0
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts +4 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.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 +0 -2
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +19 -60
- 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 +6 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +38 -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 +120 -5
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +10 -2
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts +17 -0
- package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts.map +1 -0
- package/build/component/driver/teamsApp/utils/McpCertVerification.js +72 -0
- package/build/component/driver/teamsApp/utils/McpCertVerification.js.map +1 -0
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +1 -1
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.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/utils/utils.d.ts +1 -4
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +3 -25
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +16 -5
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts +13 -0
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +58 -1
- package/build/component/driver/teamsApp/validateAppPackage.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 +23 -7
- package/build/component/driver/typeSpec/compile.js.map +1 -1
- package/build/component/driver/typeSpec/error/typeSpecCompileError.d.ts +5 -0
- package/build/component/driver/typeSpec/error/typeSpecCompileError.d.ts.map +1 -0
- package/build/component/driver/typeSpec/error/typeSpecCompileError.js +21 -0
- package/build/component/driver/typeSpec/error/typeSpecCompileError.js.map +1 -0
- package/build/component/driver/util/utils.d.ts.map +1 -1
- package/build/component/driver/util/utils.js +1 -0
- package/build/component/driver/util/utils.js.map +1 -1
- package/build/component/feature/sso.js +2 -2
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/generator/combinedProject/generator.d.ts.map +1 -1
- package/build/component/generator/combinedProject/generator.js +9 -1
- package/build/component/generator/combinedProject/generator.js.map +1 -1
- package/build/component/generator/configFiles/configGenerator.js +1 -1
- package/build/component/generator/configFiles/configGenerator.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 +23 -15
- package/build/component/generator/declarativeAgent/generator.js.map +1 -1
- package/build/component/generator/declarativeAgent/helper.d.ts +52 -0
- package/build/component/generator/declarativeAgent/helper.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/helper.js +469 -63
- 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 +12 -1
- 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 +13 -0
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +159 -35
- 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/common.js +1 -1
- package/build/component/generator/openApiSpec/common.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/openApiSpec/helper.d.ts +2 -3
- package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/helper.js +22 -60
- package/build/component/generator/openApiSpec/helper.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 +1 -0
- package/build/component/generator/other/tdpGenerator.d.ts.map +1 -1
- package/build/component/generator/other/tdpGenerator.js +24 -2
- package/build/component/generator/other/tdpGenerator.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +5 -5
- package/build/component/generator/spfx/spfxGenerator.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/spfx/utils/utils.js +1 -1
- package/build/component/generator/spfx/utils/utils.js.map +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 +15 -0
- package/build/component/generator/templates/metadata/index.d.ts.map +1 -1
- package/build/component/generator/templates/metadata/index.js +51 -5
- package/build/component/generator/templates/metadata/index.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +6 -3
- package/build/component/generator/templates/templateNames.d.ts.map +1 -1
- package/build/component/generator/templates/templateNames.js +7 -2
- package/build/component/generator/templates/templateNames.js.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.d.ts.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.js +4 -1
- package/build/component/generator/templates/templateReplaceMap.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 +55 -0
- package/build/component/generator/v4TemplateBridge.d.ts.map +1 -0
- package/build/component/generator/v4TemplateBridge.js +224 -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/constants.d.ts +2 -1
- package/build/component/m365/constants.d.ts.map +1 -1
- package/build/component/m365/constants.js +1 -0
- package/build/component/m365/constants.js.map +1 -1
- package/build/component/m365/errors.d.ts +7 -0
- package/build/component/m365/errors.d.ts.map +1 -1
- package/build/component/m365/errors.js +16 -1
- package/build/component/m365/errors.js.map +1 -1
- package/build/component/m365/launchHelper.d.ts.map +1 -1
- package/build/component/m365/launchHelper.js +7 -2
- package/build/component/m365/launchHelper.js.map +1 -1
- package/build/component/m365/packageService.d.ts +11 -5
- package/build/component/m365/packageService.d.ts.map +1 -1
- package/build/component/m365/packageService.js +132 -109
- package/build/component/m365/packageService.js.map +1 -1
- package/build/component/m365/serviceConstant.d.ts.map +1 -1
- package/build/component/m365/serviceConstant.js +24 -14
- package/build/component/m365/serviceConstant.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/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +3 -0
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +5 -2
- package/build/component/provisionUtils.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/envFunctionUtils.js +77 -22
- package/build/component/utils/envFunctionUtils.js.map +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +2 -2
- package/build/component/utils/envUtil.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 +31 -17
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.d.ts +137 -0
- package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -0
- package/build/component/utils/mcpAuthScaffolder.js +200 -0
- package/build/component/utils/mcpAuthScaffolder.js.map +1 -0
- package/build/component/utils/mcpToolFetcher.d.ts +2 -0
- package/build/component/utils/mcpToolFetcher.d.ts.map +1 -0
- package/build/component/utils/mcpToolFetcher.js +7 -0
- package/build/component/utils/mcpToolFetcher.js.map +1 -0
- 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 +1 -48
- package/build/component/utils/odrProvider.d.ts.map +1 -1
- package/build/component/utils/odrProvider.js +2 -94
- package/build/component/utils/odrProvider.js.map +1 -1
- package/build/core/FxCore.d.ts +49 -16
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.d.ts +45 -1
- package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.js +754 -56
- package/build/core/FxCore.declarativeAgent.js.map +1 -1
- package/build/core/FxCore.js +515 -325
- 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/FxCoreClient.d.ts +96 -0
- package/build/core/FxCoreClient.d.ts.map +1 -0
- package/build/core/FxCoreClient.js +159 -0
- package/build/core/FxCoreClient.js.map +1 -0
- package/build/core/collaborator.d.ts +1 -0
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +37 -0
- package/build/core/collaborator.js.map +1 -1
- package/build/core/createFrontDoorAdapters.d.ts +39 -0
- package/build/core/createFrontDoorAdapters.d.ts.map +1 -0
- package/build/core/createFrontDoorAdapters.js +244 -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 +316 -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 +148 -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/common.d.ts.map +1 -1
- package/build/error/common.js +3 -0
- package/build/error/common.js.map +1 -1
- package/build/error/teamsApp.d.ts +7 -1
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +34 -4
- package/build/error/teamsApp.js.map +1 -1
- package/build/error/teamsGraph.d.ts +5 -0
- package/build/error/teamsGraph.d.ts.map +1 -0
- package/build/error/teamsGraph.js +24 -0
- package/build/error/teamsGraph.js.map +1 -0
- package/build/index.d.ts +8 -4
- package/build/index.d.ts.map +1 -1
- package/build/index.js +21 -7
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +1 -0
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +15 -8
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +18 -0
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +121 -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 +17 -5
- 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 +19 -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.d.ts.map +1 -1
- package/build/question/options/AddPluginOptions.js +38 -6
- 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 +53 -1
- 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 +198 -17
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +14 -1
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +13 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/question/scaffold/commonNodes.d.ts.map +1 -1
- package/build/question/scaffold/commonNodes.js +14 -2
- package/build/question/scaffold/commonNodes.js.map +1 -1
- package/build/question/scaffold/constructNode.d.ts +3 -1
- package/build/question/scaffold/constructNode.d.ts.map +1 -1
- package/build/question/scaffold/constructNode.js +55 -2
- package/build/question/scaffold/constructNode.js.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts +3 -5
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.js +46 -46
- 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/createRootNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/createRootNode.js +3 -0
- package/build/question/scaffold/vsc/createRootNode.js.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.js +1 -6
- 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 +66 -0
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +408 -21
- 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/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +10 -0
- package/build/ui/visitor.js.map +1 -1
- package/build/v4/buildTarget/parseSelector.d.ts +35 -0
- package/build/v4/buildTarget/parseSelector.d.ts.map +1 -0
- package/build/v4/buildTarget/parseSelector.js +222 -0
- package/build/v4/buildTarget/parseSelector.js.map +1 -0
- package/build/v4/buildTarget/resolveBuildTarget.d.ts +82 -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 +151 -0
- package/build/v4/collectInputs/collectInputs.d.ts.map +1 -0
- package/build/v4/collectInputs/collectInputs.js +533 -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 +61 -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 +165 -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/questionFragments.d.ts +11 -0
- package/build/v4/distribution/questionFragments.d.ts.map +1 -0
- package/build/v4/distribution/questionFragments.js +130 -0
- package/build/v4/distribution/questionFragments.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/engineVersion.d.ts +7 -0
- package/build/v4/engineVersion.d.ts.map +1 -0
- package/build/v4/engineVersion.js +12 -0
- package/build/v4/engineVersion.js.map +1 -0
- package/build/v4/expression/evaluateExpression.d.ts +55 -0
- package/build/v4/expression/evaluateExpression.d.ts.map +1 -0
- package/build/v4/expression/evaluateExpression.js +338 -0
- package/build/v4/expression/evaluateExpression.js.map +1 -0
- package/build/v4/index.d.ts +41 -0
- package/build/v4/index.d.ts.map +1 -0
- package/build/v4/index.js +46 -0
- package/build/v4/index.js.map +1 -0
- package/build/v4/inspection/scaffoldCatalog.d.ts +28 -0
- package/build/v4/inspection/scaffoldCatalog.d.ts.map +1 -0
- package/build/v4/inspection/scaffoldCatalog.js +66 -0
- package/build/v4/inspection/scaffoldCatalog.js.map +1 -0
- package/build/v4/inspection/scaffoldMetadataSource.d.ts +6 -0
- package/build/v4/inspection/scaffoldMetadataSource.d.ts.map +1 -0
- package/build/v4/inspection/scaffoldMetadataSource.js +78 -0
- package/build/v4/inspection/scaffoldMetadataSource.js.map +1 -0
- package/build/v4/mcp/mcpAuthAction.d.ts +36 -0
- package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -0
- package/build/v4/mcp/mcpAuthAction.js +177 -0
- package/build/v4/mcp/mcpAuthAction.js.map +1 -0
- package/build/v4/mcp/mcpAuthScaffold.d.ts +37 -0
- package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -0
- package/build/v4/mcp/mcpAuthScaffold.js +162 -0
- package/build/v4/mcp/mcpAuthScaffold.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 +101 -0
- package/build/v4/pipeline/runScaffoldPipeline.d.ts.map +1 -0
- package/build/v4/pipeline/runScaffoldPipeline.js +212 -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 +268 -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 +75 -0
- package/build/v4/renderContext/buildRenderContext.js.map +1 -0
- package/build/v4/runtime/generalSensitivityLabel.d.ts +5 -0
- package/build/v4/runtime/generalSensitivityLabel.d.ts.map +1 -0
- package/build/v4/runtime/generalSensitivityLabel.js +36 -0
- package/build/v4/runtime/generalSensitivityLabel.js.map +1 -0
- package/build/v4/runtime/inMemoryRuntime.d.ts +21 -0
- package/build/v4/runtime/inMemoryRuntime.d.ts.map +1 -0
- package/build/v4/runtime/inMemoryRuntime.js +43 -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 +11 -0
- package/build/v4/runtime/realRuntime.d.ts.map +1 -0
- package/build/v4/runtime/realRuntime.js +64 -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 +54 -0
- package/build/v4/runtime/renderMustache.js.map +1 -0
- package/build/v4/runtime/runtimeRegistry.d.ts +28 -0
- package/build/v4/runtime/runtimeRegistry.d.ts.map +1 -0
- package/build/v4/runtime/runtimeRegistry.js +165 -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 +41 -0
- package/build/v4/runtime/steps/daAction.js.map +1 -0
- package/build/v4/runtime/steps/daSensitivity.d.ts +14 -0
- package/build/v4/runtime/steps/daSensitivity.d.ts.map +1 -0
- package/build/v4/runtime/steps/daSensitivity.js +50 -0
- package/build/v4/runtime/steps/daSensitivity.js.map +1 -0
- package/build/v4/runtime/steps/mcpAuth.d.ts +13 -0
- package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -0
- package/build/v4/runtime/steps/mcpAuth.js +90 -0
- package/build/v4/runtime/steps/mcpAuth.js.map +1 -0
- package/build/v4/runtime/steps/mcpLocal.d.ts +6 -0
- package/build/v4/runtime/steps/mcpLocal.d.ts.map +1 -0
- package/build/v4/runtime/steps/mcpLocal.js +93 -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 +182 -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 +422 -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 +168 -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 +389 -0
- package/build/v4/runtime/steps/openApi.js.map +1 -0
- package/build/v4/runtime/steps/openApiCustomApi.d.ts +5 -0
- package/build/v4/runtime/steps/openApiCustomApi.d.ts.map +1 -0
- package/build/v4/runtime/steps/openApiCustomApi.js +385 -0
- package/build/v4/runtime/steps/openApiCustomApi.js.map +1 -0
- package/build/v4/runtime/whitelist.d.ts +41 -0
- package/build/v4/runtime/whitelist.d.ts.map +1 -0
- package/build/v4/runtime/whitelist.js +211 -0
- package/build/v4/runtime/whitelist.js.map +1 -0
- package/build/v4/runtime/withTempDirectory.d.ts +10 -0
- package/build/v4/runtime/withTempDirectory.d.ts.map +1 -0
- package/build/v4/runtime/withTempDirectory.js +41 -0
- package/build/v4/runtime/withTempDirectory.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 +51 -0
- package/build/v4/surface/createInputs.d.ts.map +1 -0
- package/build/v4/surface/createInputs.js +153 -0
- package/build/v4/surface/createInputs.js.map +1 -0
- package/build/v4/surface/createSelectorWalk.d.ts +26 -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 +212 -0
- package/build/v4/surface/deriveCreateOptions.js.map +1 -0
- package/build/v4/surface/localizePrompt.d.ts +11 -0
- package/build/v4/surface/localizePrompt.d.ts.map +1 -0
- package/build/v4/surface/localizePrompt.js +32 -0
- package/build/v4/surface/localizePrompt.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 +112 -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 +220 -0
- package/build/v4/surface/uiPromptUI.js.map +1 -0
- package/build/v4/validation/capabilityCatalog.d.ts +8 -0
- package/build/v4/validation/capabilityCatalog.d.ts.map +1 -0
- package/build/v4/validation/capabilityCatalog.js +62 -0
- package/build/v4/validation/capabilityCatalog.js.map +1 -0
- package/build/v4/validation/templateArchiveValidation.d.ts +15 -0
- package/build/v4/validation/templateArchiveValidation.d.ts.map +1 -0
- package/build/v4/validation/templateArchiveValidation.js +297 -0
- package/build/v4/validation/templateArchiveValidation.js.map +1 -0
- package/build/v4/validation/validateTemplatePackage.d.ts +83 -0
- package/build/v4/validation/validateTemplatePackage.d.ts.map +1 -0
- package/build/v4/validation/validateTemplatePackage.js +313 -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 +77 -0
- package/build/v4/validators/createInputValidators.js.map +1 -0
- package/build/v4/validators/mcpCredentialValidators.d.ts +5 -0
- package/build/v4/validators/mcpCredentialValidators.d.ts.map +1 -0
- package/build/v4/validators/mcpCredentialValidators.js +13 -0
- package/build/v4/validators/mcpCredentialValidators.js.map +1 -0
- package/build/v4/validators/mcpServerUrlValidator.d.ts +9 -0
- package/build/v4/validators/mcpServerUrlValidator.d.ts.map +1 -0
- package/build/v4/validators/mcpServerUrlValidator.js +15 -0
- package/build/v4/validators/mcpServerUrlValidator.js.map +1 -0
- package/package.json +49 -100
- package/resource/package.nls.cs.json +1181 -1095
- package/resource/package.nls.de.json +1181 -1095
- package/resource/package.nls.es.json +1181 -1095
- package/resource/package.nls.fr.json +1181 -1095
- package/resource/package.nls.it.json +1181 -1095
- package/resource/package.nls.ja.json +1181 -1095
- package/resource/package.nls.json +125 -29
- package/resource/package.nls.ko.json +1181 -1095
- package/resource/package.nls.pl.json +1181 -1095
- package/resource/package.nls.pt-BR.json +1181 -1095
- package/resource/package.nls.ru.json +1181 -1095
- package/resource/package.nls.tr.json +1181 -1095
- package/resource/package.nls.zh-Hans.json +1181 -1095
- package/resource/package.nls.zh-Hant.json +1181 -1095
- package/resource/templates/package.nls.cs.json +39 -24
- package/resource/templates/package.nls.de.json +37 -22
- package/resource/templates/package.nls.es.json +35 -20
- package/resource/templates/package.nls.fr.json +45 -30
- package/resource/templates/package.nls.it.json +42 -27
- package/resource/templates/package.nls.ja.json +35 -20
- package/resource/templates/package.nls.json +27 -12
- package/resource/templates/package.nls.ko.json +33 -18
- package/resource/templates/package.nls.pl.json +38 -23
- package/resource/templates/package.nls.pt-BR.json +34 -19
- package/resource/templates/package.nls.ru.json +33 -18
- package/resource/templates/package.nls.tr.json +38 -23
- package/resource/templates/package.nls.zh-Hans.json +44 -29
- package/resource/templates/package.nls.zh-Hant.json +45 -30
- package/resource/templates/package.nls.zh-cn.json +7 -8
- package/resource/templates/package.nls.zh-tw.json +7 -8
- package/resource/yaml-schema/v1.11/yaml.schema.json +3 -0
- package/resource/yaml-schema/v1.12/yaml.schema.json +2132 -0
- package/resource/yaml-schema/v1.13/yaml.schema.json +2193 -0
- package/resource/yaml-schema/yaml.schema.json +128 -3
- package/templates/configs/playground/typescript/.vscode/tasks.json +1 -1
- package/templates/configs/remote/python/env/.env.dev +2 -1
- package/templates/configs/remote/python/m365agents.yml.tpl +1 -0
- package/templates/configs/remote/typescript/env/.env.dev +2 -1
- package/templates/configs/remote/typescript/m365agents.yml.tpl +1 -0
- 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 +32 -16
- 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 +13 -14
- package/templates/ui/teamsNode.json +124 -0
- package/templates/ui/wizardNode.json +56 -46
- package/templates/v4/create-selector.json +392 -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/templates/configs/local/typescript/.gitignore +0 -1
- package/templates/configs/playground/typescript/.gitignore +0 -4
- /package/build/{core/middleware → component/generator/openPlugin}/types.js +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.teamsDevPortalClient = exports.TeamsDevPortalClient =
|
|
5
|
+
exports.teamsDevPortalClient = exports.TeamsDevPortalClient = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const hooks_1 = require("@feathersjs/hooks");
|
|
8
8
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
@@ -10,46 +10,23 @@ const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
|
10
10
|
const constants_1 = require("../common/constants");
|
|
11
11
|
const globalVars_1 = require("../common/globalVars");
|
|
12
12
|
const localizeUtils_1 = require("../common/localizeUtils");
|
|
13
|
-
const
|
|
13
|
+
const retryHandler_1 = require("../common/retryHandler");
|
|
14
|
+
const telemetry = tslib_1.__importStar(require("../common/telemetry"));
|
|
14
15
|
const wrappedAxiosClient_1 = require("../common/wrappedAxiosClient");
|
|
15
16
|
const commonConstant_1 = require("../component/constant/commonConstant");
|
|
16
|
-
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");
|
|
17
21
|
const errors_1 = require("../component/driver/teamsApp/errors");
|
|
18
22
|
const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
|
|
19
23
|
const IBotRegistration_1 = require("../component/resource/botService/appStudio/interfaces/IBotRegistration");
|
|
20
24
|
const common_1 = require("../component/resource/botService/common");
|
|
21
|
-
const
|
|
25
|
+
const constants_4 = require("../component/resource/botService/constants");
|
|
22
26
|
const errors_2 = require("../component/resource/botService/errors");
|
|
23
27
|
const messages_1 = require("../component/resource/botService/messages");
|
|
24
28
|
const strings_1 = require("../component/resource/botService/strings");
|
|
25
29
|
const teamsApp_1 = require("../error/teamsApp");
|
|
26
|
-
const signInAudience_1 = require("../component/driver/aad/interface/signInAudience");
|
|
27
|
-
const constants_4 = require("../component/driver/aad/utility/constants");
|
|
28
|
-
const signInAudienceNotAllowedError_1 = require("../component/driver/aad/error/signInAudienceNotAllowedError");
|
|
29
|
-
class RetryHandler {
|
|
30
|
-
static RETRIES = 6;
|
|
31
|
-
static async Retry(fn) {
|
|
32
|
-
let retries = this.RETRIES;
|
|
33
|
-
let response;
|
|
34
|
-
while (retries > 0) {
|
|
35
|
-
retries = retries - 1;
|
|
36
|
-
try {
|
|
37
|
-
response = await fn();
|
|
38
|
-
return response;
|
|
39
|
-
}
|
|
40
|
-
catch (e) {
|
|
41
|
-
// Directly throw 404 error, keep trying for other status code e.g. 503 400
|
|
42
|
-
if (retries <= 0 || e.response?.status == 404 || e.response?.status == 409) {
|
|
43
|
-
throw e;
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
await new Promise((resolve) => setTimeout(resolve, 5000));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.RetryHandler = RetryHandler;
|
|
53
30
|
class TeamsDevPortalClient {
|
|
54
31
|
regionEndpoint;
|
|
55
32
|
setRegionEndpoint(regionEndpoint) {
|
|
@@ -65,7 +42,7 @@ class TeamsDevPortalClient {
|
|
|
65
42
|
});
|
|
66
43
|
requester.defaults.headers.common["Authorization"] = `Bearer ${authSvcToken}`;
|
|
67
44
|
requester.defaults.headers.common["Client-Source"] = "teamstoolkit";
|
|
68
|
-
const response = await RetryHandler.Retry(() => requester.post("/v1.0/users/region"));
|
|
45
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post("/v1.0/users/region"));
|
|
69
46
|
this.regionEndpoint = response?.data?.regionGtms?.teamsDevPortal;
|
|
70
47
|
}
|
|
71
48
|
getEndpoint() {
|
|
@@ -95,7 +72,7 @@ class TeamsDevPortalClient {
|
|
|
95
72
|
try {
|
|
96
73
|
const requester = this.createRequesterWithToken(token);
|
|
97
74
|
globalVars_1.TOOLS.logProvider.debug(`Sent API Request: ${this.getEndpoint()}/api/appdefinitions/v2/import`);
|
|
98
|
-
const response = await RetryHandler.Retry(() => requester.post(`/api/appdefinitions/v2/import`, file, {
|
|
75
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/appdefinitions/v2/import`, file, {
|
|
99
76
|
headers: { "Content-Type": "application/zip" },
|
|
100
77
|
params: {
|
|
101
78
|
overwriteIfAppAlreadyExists: overwrite,
|
|
@@ -107,18 +84,18 @@ class TeamsDevPortalClient {
|
|
|
107
84
|
return app;
|
|
108
85
|
}
|
|
109
86
|
else {
|
|
110
|
-
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);
|
|
111
88
|
}
|
|
112
89
|
}
|
|
113
90
|
catch (e) {
|
|
114
91
|
if (e.response?.status === 409) {
|
|
115
|
-
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);
|
|
116
93
|
}
|
|
117
94
|
// Corner case: The provided app ID conflict with an existing published app
|
|
118
95
|
// See Developer Portal PR: 507264
|
|
119
96
|
if (e.response?.status == 422 &&
|
|
120
97
|
e.response?.data.includes("App already exists and published")) {
|
|
121
|
-
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);
|
|
122
99
|
}
|
|
123
100
|
// Corner case: App Id must be a GUID
|
|
124
101
|
if (e.response?.status === commonConstant_1.HttpStatusCode.BAD_REQUEST &&
|
|
@@ -129,10 +106,10 @@ class TeamsDevPortalClient {
|
|
|
129
106
|
}
|
|
130
107
|
else {
|
|
131
108
|
const teamsAppId = manifest.value.id;
|
|
132
|
-
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);
|
|
133
110
|
}
|
|
134
111
|
}
|
|
135
|
-
throw this.wrapException(e,
|
|
112
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP);
|
|
136
113
|
}
|
|
137
114
|
}
|
|
138
115
|
async listApps(token) {
|
|
@@ -142,7 +119,7 @@ class TeamsDevPortalClient {
|
|
|
142
119
|
try {
|
|
143
120
|
requester = this.createRequesterWithToken(token);
|
|
144
121
|
globalVars_1.TOOLS.logProvider.debug(`Sent API Request: GET ${this.regionEndpoint}/api/appdefinitions`);
|
|
145
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/appdefinitions`));
|
|
122
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/appdefinitions`));
|
|
146
123
|
const apps = response?.data;
|
|
147
124
|
if (apps) {
|
|
148
125
|
return apps;
|
|
@@ -152,9 +129,9 @@ class TeamsDevPortalClient {
|
|
|
152
129
|
}
|
|
153
130
|
}
|
|
154
131
|
catch (e) {
|
|
155
|
-
throw this.wrapException(e,
|
|
132
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.LIST_APPS);
|
|
156
133
|
}
|
|
157
|
-
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);
|
|
158
135
|
}
|
|
159
136
|
async deleteApp(appStudioToken, teamsAppId) {
|
|
160
137
|
if (!this.regionEndpoint)
|
|
@@ -163,7 +140,7 @@ class TeamsDevPortalClient {
|
|
|
163
140
|
try {
|
|
164
141
|
requester = this.createRequesterWithToken(appStudioToken);
|
|
165
142
|
globalVars_1.TOOLS.logProvider.debug(`Sent API Request: DELETE ${this.getEndpoint()}/api/appdefinitions/${teamsAppId}`);
|
|
166
|
-
const response = await RetryHandler.Retry(() => requester.delete(`/api/appdefinitions/${teamsAppId}`));
|
|
143
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.delete(`/api/appdefinitions/${teamsAppId}`));
|
|
167
144
|
if (response && response.data) {
|
|
168
145
|
const success = response.data;
|
|
169
146
|
if (success) {
|
|
@@ -175,16 +152,16 @@ class TeamsDevPortalClient {
|
|
|
175
152
|
}
|
|
176
153
|
}
|
|
177
154
|
catch (e) {
|
|
178
|
-
throw this.wrapException(e,
|
|
155
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.DELETE_APP);
|
|
179
156
|
}
|
|
180
|
-
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);
|
|
181
158
|
}
|
|
182
159
|
async getApp(token, teamsAppId) {
|
|
183
160
|
let requester;
|
|
184
161
|
try {
|
|
185
162
|
requester = this.createRequesterWithToken(token);
|
|
186
163
|
globalVars_1.TOOLS.logProvider.debug(`Sent API Request: GET ${this.getEndpoint()}/api/appdefinitions/${teamsAppId}`);
|
|
187
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/appdefinitions/${teamsAppId}`));
|
|
164
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/appdefinitions/${teamsAppId}`));
|
|
188
165
|
if (response && response.data) {
|
|
189
166
|
const app = response.data;
|
|
190
167
|
if (app && app.teamsAppId && app.teamsAppId === teamsAppId) {
|
|
@@ -196,9 +173,9 @@ class TeamsDevPortalClient {
|
|
|
196
173
|
}
|
|
197
174
|
}
|
|
198
175
|
catch (e) {
|
|
199
|
-
throw this.wrapException(e,
|
|
176
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP);
|
|
200
177
|
}
|
|
201
|
-
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);
|
|
202
179
|
}
|
|
203
180
|
async getBotId(token, teamsAppId) {
|
|
204
181
|
const app = await this.getApp(token, teamsAppId);
|
|
@@ -212,17 +189,17 @@ class TeamsDevPortalClient {
|
|
|
212
189
|
globalVars_1.TOOLS.logProvider?.info("Downloading app package for app " + teamsAppId);
|
|
213
190
|
const requester = this.createRequesterWithToken(token);
|
|
214
191
|
try {
|
|
215
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/appdefinitions/${teamsAppId}/manifest`));
|
|
192
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/appdefinitions/${teamsAppId}/manifest`));
|
|
216
193
|
if (response && response.data) {
|
|
217
194
|
globalVars_1.TOOLS.logProvider?.info("Download app package successfully");
|
|
218
195
|
return response.data;
|
|
219
196
|
}
|
|
220
197
|
else {
|
|
221
|
-
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);
|
|
222
199
|
}
|
|
223
200
|
}
|
|
224
201
|
catch (e) {
|
|
225
|
-
throw this.wrapException(e,
|
|
202
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
|
|
226
203
|
}
|
|
227
204
|
}
|
|
228
205
|
/**
|
|
@@ -235,7 +212,7 @@ class TeamsDevPortalClient {
|
|
|
235
212
|
async checkExistsInTenant(token, teamsAppId) {
|
|
236
213
|
const requester = this.createRequesterWithToken(token);
|
|
237
214
|
try {
|
|
238
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/appdefinitions/manifest/${teamsAppId}`));
|
|
215
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/appdefinitions/manifest/${teamsAppId}`));
|
|
239
216
|
if (response && response.data) {
|
|
240
217
|
return response.data;
|
|
241
218
|
}
|
|
@@ -253,7 +230,7 @@ class TeamsDevPortalClient {
|
|
|
253
230
|
async publishTeamsApp(token, teamsAppId, file) {
|
|
254
231
|
try {
|
|
255
232
|
const requester = this.createRequesterWithToken(token);
|
|
256
|
-
const response = await RetryHandler.Retry(() => requester.post("/api/publishing", file, {
|
|
233
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post("/api/publishing", file, {
|
|
257
234
|
headers: { "Content-Type": "application/zip" },
|
|
258
235
|
}));
|
|
259
236
|
if (response && response.data) {
|
|
@@ -276,21 +253,21 @@ class TeamsDevPortalClient {
|
|
|
276
253
|
}
|
|
277
254
|
catch (e) {
|
|
278
255
|
if (e instanceof teamsApp_1.DeveloperPortalAPIFailedSystemError) {
|
|
279
|
-
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]);
|
|
280
257
|
}
|
|
281
258
|
else {
|
|
282
259
|
throw e;
|
|
283
260
|
}
|
|
284
261
|
}
|
|
285
262
|
}
|
|
286
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
263
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP);
|
|
287
264
|
}
|
|
288
265
|
else {
|
|
289
266
|
return response.data.id;
|
|
290
267
|
}
|
|
291
268
|
}
|
|
292
269
|
else {
|
|
293
|
-
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]);
|
|
294
271
|
}
|
|
295
272
|
}
|
|
296
273
|
catch (e) {
|
|
@@ -298,7 +275,7 @@ class TeamsDevPortalClient {
|
|
|
298
275
|
throw e;
|
|
299
276
|
}
|
|
300
277
|
else {
|
|
301
|
-
throw this.wrapException(e,
|
|
278
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP);
|
|
302
279
|
}
|
|
303
280
|
}
|
|
304
281
|
}
|
|
@@ -317,24 +294,24 @@ class TeamsDevPortalClient {
|
|
|
317
294
|
let response = null;
|
|
318
295
|
if (appDefinition) {
|
|
319
296
|
// update the existing app
|
|
320
|
-
response = await RetryHandler.Retry(() => requester.post(`/api/publishing/${appDefinition.teamsAppId}/appdefinitions`, file, {
|
|
297
|
+
response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/publishing/${appDefinition.teamsAppId}/appdefinitions`, file, {
|
|
321
298
|
headers: { "Content-Type": "application/zip" },
|
|
322
299
|
}));
|
|
323
300
|
}
|
|
324
301
|
else {
|
|
325
|
-
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]);
|
|
326
303
|
}
|
|
327
304
|
const requestPath = `${response?.request?.method} ${response?.request?.path}`;
|
|
328
305
|
if (response && response.data) {
|
|
329
306
|
if (response.data.error || response.data.errorMessage) {
|
|
330
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
307
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
|
|
331
308
|
}
|
|
332
309
|
else {
|
|
333
310
|
return response.data.teamsAppId;
|
|
334
311
|
}
|
|
335
312
|
}
|
|
336
313
|
else {
|
|
337
|
-
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]);
|
|
338
315
|
}
|
|
339
316
|
}
|
|
340
317
|
catch (error) {
|
|
@@ -342,7 +319,7 @@ class TeamsDevPortalClient {
|
|
|
342
319
|
throw error;
|
|
343
320
|
}
|
|
344
321
|
else {
|
|
345
|
-
throw this.wrapException(error,
|
|
322
|
+
throw this.wrapException(error, constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
|
|
346
323
|
}
|
|
347
324
|
}
|
|
348
325
|
}
|
|
@@ -355,7 +332,7 @@ class TeamsDevPortalClient {
|
|
|
355
332
|
async getStaggedApp(token, teamsAppId) {
|
|
356
333
|
const requester = this.createRequesterWithToken(token);
|
|
357
334
|
try {
|
|
358
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/publishing/${teamsAppId}`));
|
|
335
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/publishing/${teamsAppId}`));
|
|
359
336
|
if (response && response.data && response.data.value && response.data.value.length > 0) {
|
|
360
337
|
const appdefinitions = response.data.value[0].appDefinitions.map((item) => {
|
|
361
338
|
return {
|
|
@@ -387,17 +364,17 @@ class TeamsDevPortalClient {
|
|
|
387
364
|
userList = await this.getUserList(token, teamsAppId);
|
|
388
365
|
}
|
|
389
366
|
catch (error) {
|
|
390
|
-
return
|
|
367
|
+
return constants_3.Constants.PERMISSIONS.noPermission;
|
|
391
368
|
}
|
|
392
369
|
const findUser = userList?.find((user) => user.aadId === userObjectId);
|
|
393
370
|
if (!findUser) {
|
|
394
|
-
return
|
|
371
|
+
return constants_3.Constants.PERMISSIONS.noPermission;
|
|
395
372
|
}
|
|
396
373
|
if (findUser.isAdministrator) {
|
|
397
|
-
return
|
|
374
|
+
return constants_3.Constants.PERMISSIONS.admin;
|
|
398
375
|
}
|
|
399
376
|
else {
|
|
400
|
-
return
|
|
377
|
+
return constants_3.Constants.PERMISSIONS.operative;
|
|
401
378
|
}
|
|
402
379
|
}
|
|
403
380
|
async removePermission(token, teamsAppId, userToRemove) {
|
|
@@ -410,7 +387,7 @@ class TeamsDevPortalClient {
|
|
|
410
387
|
try {
|
|
411
388
|
globalVars_1.TOOLS.logProvider.debug((0, localizeUtils_1.getLocalizedString)("core.common.SendingApiRequest", `${this.getEndpoint()}/api/appdefinitions/{teamsAppId}/owner`, JSON.stringify(app)));
|
|
412
389
|
requester = this.createRequesterWithToken(token);
|
|
413
|
-
const response = await RetryHandler.Retry(() => requester.post(`/api/appdefinitions/${teamsAppId}/owner`, app));
|
|
390
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/appdefinitions/${teamsAppId}/owner`, app));
|
|
414
391
|
globalVars_1.TOOLS.logProvider.debug((0, localizeUtils_1.getLocalizedString)("core.common.ReceiveApiResponse", JSON.stringify(response?.data)));
|
|
415
392
|
if (!response ||
|
|
416
393
|
!response.data ||
|
|
@@ -419,7 +396,7 @@ class TeamsDevPortalClient {
|
|
|
419
396
|
}
|
|
420
397
|
}
|
|
421
398
|
catch (err) {
|
|
422
|
-
throw this.wrapException(err,
|
|
399
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.UPDATE_OWNER);
|
|
423
400
|
}
|
|
424
401
|
}
|
|
425
402
|
async grantPermission(token, teamsAppId, newUser) {
|
|
@@ -432,14 +409,14 @@ class TeamsDevPortalClient {
|
|
|
432
409
|
try {
|
|
433
410
|
globalVars_1.TOOLS.logProvider.debug((0, localizeUtils_1.getLocalizedString)("core.common.SendingApiRequest", `${this.getEndpoint()}/api/appdefinitions/{teamsAppId}/owner`, JSON.stringify(app)));
|
|
434
411
|
requester = this.createRequesterWithToken(token);
|
|
435
|
-
const response = await RetryHandler.Retry(() => requester.post(`/api/appdefinitions/${teamsAppId}/owner`, app));
|
|
412
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/appdefinitions/${teamsAppId}/owner`, app));
|
|
436
413
|
globalVars_1.TOOLS.logProvider.debug((0, localizeUtils_1.getLocalizedString)("core.common.ReceiveApiResponse", JSON.stringify(response?.data)));
|
|
437
414
|
if (!response || !response.data || !this.checkUser(response.data, newUser)) {
|
|
438
|
-
throw new Error(
|
|
415
|
+
throw new Error(constants_3.ErrorMessages.GrantPermissionFailed);
|
|
439
416
|
}
|
|
440
417
|
}
|
|
441
418
|
catch (err) {
|
|
442
|
-
throw this.wrapException(err,
|
|
419
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.UPDATE_OWNER);
|
|
443
420
|
}
|
|
444
421
|
}
|
|
445
422
|
/**
|
|
@@ -448,16 +425,17 @@ class TeamsDevPortalClient {
|
|
|
448
425
|
* @param token
|
|
449
426
|
* @returns
|
|
450
427
|
*/
|
|
451
|
-
async partnerCenterAppPackageValidation(token, file) {
|
|
428
|
+
async partnerCenterAppPackageValidation(token, file, signal) {
|
|
452
429
|
const requester = this.createRequesterWithToken(token);
|
|
453
430
|
try {
|
|
454
|
-
const response = await RetryHandler.Retry(() => requester.post("/api/appdefinitions/partnerCenterAppPackageValidation", file, {
|
|
431
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post("/api/appdefinitions/partnerCenterAppPackageValidation", file, {
|
|
455
432
|
headers: { "Content-Type": "application/zip" },
|
|
433
|
+
signal,
|
|
456
434
|
}));
|
|
457
435
|
return response?.data;
|
|
458
436
|
}
|
|
459
437
|
catch (e) {
|
|
460
|
-
throw this.wrapException(e,
|
|
438
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE);
|
|
461
439
|
}
|
|
462
440
|
}
|
|
463
441
|
checkUser(app, newUser) {
|
|
@@ -479,14 +457,14 @@ class TeamsDevPortalClient {
|
|
|
479
457
|
async submitAppValidationRequest(token, teamsAppId) {
|
|
480
458
|
const requester = this.createRequesterWithToken(token);
|
|
481
459
|
try {
|
|
482
|
-
const response = await RetryHandler.Retry(() => requester.post(`/api/v1.0/appvalidations/appdefinition/validate`, {
|
|
460
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/v1.0/appvalidations/appdefinition/validate`, {
|
|
483
461
|
AppEnvironmentId: null,
|
|
484
462
|
appDefinitionId: teamsAppId,
|
|
485
463
|
}));
|
|
486
464
|
return response?.data;
|
|
487
465
|
}
|
|
488
466
|
catch (e) {
|
|
489
|
-
throw this.wrapException(e,
|
|
467
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.SUBMIT_APP_VALIDATION);
|
|
490
468
|
}
|
|
491
469
|
}
|
|
492
470
|
/**
|
|
@@ -495,11 +473,11 @@ class TeamsDevPortalClient {
|
|
|
495
473
|
async getAppValidationRequestList(token, teamsAppId) {
|
|
496
474
|
const requester = this.createRequesterWithToken(token);
|
|
497
475
|
try {
|
|
498
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/v1.0/appvalidations/appdefinitions/${teamsAppId}`));
|
|
476
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/v1.0/appvalidations/appdefinitions/${teamsAppId}`));
|
|
499
477
|
return response?.data;
|
|
500
478
|
}
|
|
501
479
|
catch (e) {
|
|
502
|
-
throw this.wrapException(e,
|
|
480
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_REQUESTS);
|
|
503
481
|
}
|
|
504
482
|
}
|
|
505
483
|
/**
|
|
@@ -512,11 +490,11 @@ class TeamsDevPortalClient {
|
|
|
512
490
|
async getAppValidationById(token, appValidationId) {
|
|
513
491
|
const requester = this.createRequesterWithToken(token);
|
|
514
492
|
try {
|
|
515
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/v1.0/appvalidations/${appValidationId}`));
|
|
493
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/v1.0/appvalidations/${appValidationId}`));
|
|
516
494
|
return response?.data;
|
|
517
495
|
}
|
|
518
496
|
catch (e) {
|
|
519
|
-
throw this.wrapException(e,
|
|
497
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_RESULT);
|
|
520
498
|
}
|
|
521
499
|
}
|
|
522
500
|
async getSideloadingStatus(token) {
|
|
@@ -525,7 +503,7 @@ class TeamsDevPortalClient {
|
|
|
525
503
|
const requester = this.createRequesterWithToken(token);
|
|
526
504
|
let response = undefined;
|
|
527
505
|
try {
|
|
528
|
-
response = (await RetryHandler.Retry(() => requester.get(apiPath)));
|
|
506
|
+
response = (await retryHandler_1.RetryHandler.Retry(() => requester.get(apiPath)));
|
|
529
507
|
let result;
|
|
530
508
|
if (response.status >= 400) {
|
|
531
509
|
result = undefined;
|
|
@@ -534,24 +512,24 @@ class TeamsDevPortalClient {
|
|
|
534
512
|
result = response.data?.value?.isSideloadingAllowed;
|
|
535
513
|
}
|
|
536
514
|
if (result !== undefined) {
|
|
537
|
-
|
|
538
|
-
[
|
|
515
|
+
telemetry.sendTelemetryEvent("TeamsDevPortalClient", telemetry.TelemetryEvent.CheckSideloading, {
|
|
516
|
+
[telemetry.TelemetryProperty.IsSideloadingAllowed]: result.toString() + "",
|
|
539
517
|
});
|
|
540
518
|
}
|
|
541
519
|
else {
|
|
542
|
-
|
|
543
|
-
[
|
|
544
|
-
[
|
|
545
|
-
[
|
|
520
|
+
telemetry.sendTelemetryErrorEvent("TeamsDevPortalClient", telemetry.TelemetryEvent.CheckSideloading, new teamsfx_api_1.SystemError("M365Account", "UnknownValue", `AppStudio response code: ${response.status}, body: ${response.data}`), {
|
|
521
|
+
[telemetry.TelemetryProperty.CheckSideloadingStatusCode]: `${response.status}`,
|
|
522
|
+
[telemetry.TelemetryProperty.CheckSideloadingMethod]: "get",
|
|
523
|
+
[telemetry.TelemetryProperty.CheckSideloadingUrl]: apiName,
|
|
546
524
|
});
|
|
547
525
|
}
|
|
548
526
|
return result;
|
|
549
527
|
}
|
|
550
528
|
catch (error) {
|
|
551
|
-
|
|
552
|
-
[
|
|
553
|
-
[
|
|
554
|
-
[
|
|
529
|
+
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)}` : "")), {
|
|
530
|
+
[telemetry.TelemetryProperty.CheckSideloadingStatusCode]: `${error?.response?.status}`,
|
|
531
|
+
[telemetry.TelemetryProperty.CheckSideloadingMethod]: "get",
|
|
532
|
+
[telemetry.TelemetryProperty.CheckSideloadingUrl]: apiName,
|
|
555
533
|
});
|
|
556
534
|
}
|
|
557
535
|
return undefined;
|
|
@@ -564,11 +542,11 @@ class TeamsDevPortalClient {
|
|
|
564
542
|
async createApiKeyRegistration(token, apiKeyRegistration) {
|
|
565
543
|
const requester = this.createRequesterWithToken(token);
|
|
566
544
|
try {
|
|
567
|
-
const response = await RetryHandler.Retry(() => requester.post("/api/v1.0/apiSecretRegistrations", apiKeyRegistration));
|
|
545
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post("/api/v1.0/apiSecretRegistrations", apiKeyRegistration));
|
|
568
546
|
return response?.data;
|
|
569
547
|
}
|
|
570
548
|
catch (e) {
|
|
571
|
-
throw this.wrapException(e,
|
|
549
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_API_KEY);
|
|
572
550
|
}
|
|
573
551
|
}
|
|
574
552
|
/**
|
|
@@ -579,92 +557,92 @@ class TeamsDevPortalClient {
|
|
|
579
557
|
async getApiKeyRegistrationById(token, apiSecretRegistrationId) {
|
|
580
558
|
const requester = this.createRequesterWithToken(token);
|
|
581
559
|
try {
|
|
582
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/v1.0/apiSecretRegistrations/${apiSecretRegistrationId}`));
|
|
560
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/v1.0/apiSecretRegistrations/${apiSecretRegistrationId}`));
|
|
583
561
|
return response?.data;
|
|
584
562
|
}
|
|
585
563
|
catch (e) {
|
|
586
|
-
throw this.wrapException(e,
|
|
564
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_API_KEY);
|
|
587
565
|
}
|
|
588
566
|
}
|
|
589
567
|
async updateApiKeyRegistration(token, apiKeyRegistration, apiKeyRegistrationId) {
|
|
590
568
|
const requester = this.createRequesterWithToken(token);
|
|
591
569
|
try {
|
|
592
|
-
const response = await RetryHandler.Retry(() => requester.patch(`/api/v1.0/apiSecretRegistrations/${apiKeyRegistrationId}`, apiKeyRegistration));
|
|
570
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.patch(`/api/v1.0/apiSecretRegistrations/${apiKeyRegistrationId}`, apiKeyRegistration));
|
|
593
571
|
return response?.data;
|
|
594
572
|
}
|
|
595
573
|
catch (e) {
|
|
596
|
-
throw this.wrapException(e,
|
|
574
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_API_KEY);
|
|
597
575
|
}
|
|
598
576
|
}
|
|
599
577
|
async getOauthRegistrationById(token, oauthRegistrationId) {
|
|
600
578
|
const requester = this.createRequesterWithToken(token);
|
|
601
579
|
try {
|
|
602
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/v1.0/oAuthConfigurations/${oauthRegistrationId}`));
|
|
580
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/v1.0/oAuthConfigurations/${oauthRegistrationId}`));
|
|
603
581
|
return response?.data;
|
|
604
582
|
}
|
|
605
583
|
catch (e) {
|
|
606
|
-
throw this.wrapException(e,
|
|
584
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_OAUTH);
|
|
607
585
|
}
|
|
608
586
|
}
|
|
609
587
|
async createOauthRegistration(token, oauthRegistration) {
|
|
610
588
|
const requester = this.createRequesterWithToken(token);
|
|
611
589
|
try {
|
|
612
|
-
const response = await RetryHandler.Retry(() => requester.post("/api/v1.0/oAuthConfigurations", oauthRegistration));
|
|
590
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post("/api/v1.0/oAuthConfigurations", oauthRegistration));
|
|
613
591
|
return response?.data;
|
|
614
592
|
}
|
|
615
593
|
catch (e) {
|
|
616
|
-
throw this.wrapException(e,
|
|
594
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_OAUTH);
|
|
617
595
|
}
|
|
618
596
|
}
|
|
619
597
|
async updateOauthRegistration(token, oauthRegistration, oauthRegistrationId) {
|
|
620
598
|
const requester = this.createRequesterWithToken(token);
|
|
621
599
|
try {
|
|
622
|
-
const response = await RetryHandler.Retry(() => requester.patch(`/api/v1.0/oAuthConfigurations/${oauthRegistrationId}`, oauthRegistration));
|
|
600
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.patch(`/api/v1.0/oAuthConfigurations/${oauthRegistrationId}`, oauthRegistration));
|
|
623
601
|
return response?.data;
|
|
624
602
|
}
|
|
625
603
|
catch (e) {
|
|
626
|
-
throw this.wrapException(e,
|
|
604
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_OAUTH);
|
|
627
605
|
}
|
|
628
606
|
}
|
|
629
607
|
async getBotRegistration(token, botId) {
|
|
630
608
|
const requester = this.createRequesterWithToken(token);
|
|
631
609
|
try {
|
|
632
|
-
const response = await RetryHandler.Retry(() => requester.get(`/api/botframework/${botId}`));
|
|
610
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get(`/api/botframework/${botId}`));
|
|
633
611
|
if ((0, common_1.isHappyResponse)(response)) {
|
|
634
612
|
return response.data; // response cannot be undefined as it's checked in isHappyResponse.
|
|
635
613
|
}
|
|
636
614
|
else {
|
|
637
615
|
// Defensive code and it should never reach here.
|
|
638
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
616
|
+
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");
|
|
639
617
|
}
|
|
640
618
|
}
|
|
641
619
|
catch (e) {
|
|
642
|
-
this.handleBotFrameworkError(e,
|
|
620
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.GET_BOT);
|
|
643
621
|
}
|
|
644
622
|
}
|
|
645
623
|
async listBots(token) {
|
|
646
624
|
const requester = this.createRequesterWithToken(token);
|
|
647
625
|
try {
|
|
648
|
-
const response = await RetryHandler.Retry(() => requester.get("/api/botframework"));
|
|
626
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.get("/api/botframework"));
|
|
649
627
|
if ((0, common_1.isHappyResponse)(response)) {
|
|
650
628
|
return response.data; // response cannot be undefined as it's checked in isHappyResponse.
|
|
651
629
|
}
|
|
652
630
|
else {
|
|
653
631
|
// Defensive code and it should never reach here.
|
|
654
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
632
|
+
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");
|
|
655
633
|
}
|
|
656
634
|
}
|
|
657
635
|
catch (e) {
|
|
658
|
-
this.handleBotFrameworkError(e,
|
|
636
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.LIST_BOT);
|
|
659
637
|
}
|
|
660
638
|
}
|
|
661
639
|
async deleteBot(token, botId) {
|
|
662
640
|
const requester = this.createRequesterWithToken(token);
|
|
663
641
|
try {
|
|
664
|
-
await RetryHandler.Retry(() => requester.delete(`/api/botframework/${botId}`));
|
|
642
|
+
await retryHandler_1.RetryHandler.Retry(() => requester.delete(`/api/botframework/${botId}`));
|
|
665
643
|
}
|
|
666
644
|
catch (e) {
|
|
667
|
-
this.handleBotFrameworkError(e,
|
|
645
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.DELETE_BOT);
|
|
668
646
|
}
|
|
669
647
|
}
|
|
670
648
|
async createBotRegistration(token, registration, checkExistence = true) {
|
|
@@ -677,13 +655,13 @@ class TeamsDevPortalClient {
|
|
|
677
655
|
}
|
|
678
656
|
const requester = this.createRequesterWithToken(token);
|
|
679
657
|
try {
|
|
680
|
-
const response = await RetryHandler.Retry(() => requester.post(`/api/botframework`, registration));
|
|
658
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/botframework`, registration));
|
|
681
659
|
if (!(0, common_1.isHappyResponse)(response)) {
|
|
682
660
|
throw new errors_2.ProvisionError(strings_1.CommonStrings.APP_STUDIO_BOT_REGISTRATION);
|
|
683
661
|
}
|
|
684
662
|
}
|
|
685
663
|
catch (e) {
|
|
686
|
-
this.handleBotFrameworkError(e,
|
|
664
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.CREATE_BOT);
|
|
687
665
|
}
|
|
688
666
|
}
|
|
689
667
|
async updateMessageEndpoint(token, botId, endpoint) {
|
|
@@ -700,13 +678,13 @@ class TeamsDevPortalClient {
|
|
|
700
678
|
async updateBotRegistration(token, botReg) {
|
|
701
679
|
const requester = this.createRequesterWithToken(token);
|
|
702
680
|
try {
|
|
703
|
-
const response = await RetryHandler.Retry(() => requester.post(`/api/botframework/${botReg.botId}`, botReg));
|
|
681
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/botframework/${botReg.botId}`, botReg));
|
|
704
682
|
if (!(0, common_1.isHappyResponse)(response)) {
|
|
705
683
|
throw new errors_2.ConfigUpdatingError(strings_1.ConfigNames.MESSAGE_ENDPOINT);
|
|
706
684
|
}
|
|
707
685
|
}
|
|
708
686
|
catch (e) {
|
|
709
|
-
this.handleBotFrameworkError(e,
|
|
687
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_BOT);
|
|
710
688
|
}
|
|
711
689
|
}
|
|
712
690
|
async createAADApp(token, displayName, signInAudience = signInAudience_1.SignInAudience.AzureADMyOrg, serviceManagementReference, isMicrosoftUser = false) {
|
|
@@ -717,20 +695,20 @@ class TeamsDevPortalClient {
|
|
|
717
695
|
serviceManagementReference: serviceManagementReference,
|
|
718
696
|
}; // Create a Microsoft Entra app and optionally set service tree id
|
|
719
697
|
try {
|
|
720
|
-
const response = await RetryHandler.Retry(() => requester.post(`/api/aadapp/v2`, requestBody));
|
|
698
|
+
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/aadapp/v2`, requestBody));
|
|
721
699
|
if (response && response.data) {
|
|
722
700
|
return response.data;
|
|
723
701
|
}
|
|
724
702
|
}
|
|
725
703
|
catch (err) {
|
|
726
704
|
if (axios_1.default.isAxiosError(err) && err.response) {
|
|
727
|
-
if (err.response.data?.error?.code ===
|
|
705
|
+
if (err.response.data?.error?.code === constants_2.aadErrorCode.signInAudienceNotAllowedAsPerAppPolicy) {
|
|
728
706
|
throw new signInAudienceNotAllowedError_1.SignInAudienceNotAllowedError("TeamsDevPortalClient", err.response.data.error?.message, isMicrosoftUser);
|
|
729
707
|
}
|
|
730
708
|
}
|
|
731
|
-
throw this.wrapException(err,
|
|
709
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
|
|
732
710
|
}
|
|
733
|
-
throw this.wrapException(new Error(`Failed to create AAD app: ${displayName}`),
|
|
711
|
+
throw this.wrapException(new Error(`Failed to create AAD app: ${displayName}`), constants_3.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
|
|
734
712
|
}
|
|
735
713
|
handleBotFrameworkError(e, apiName) {
|
|
736
714
|
if (e.response?.status === commonConstant_1.HttpStatusCode.NOTFOUND) {
|
|
@@ -746,7 +724,7 @@ class TeamsDevPortalClient {
|
|
|
746
724
|
throw new errors_2.BotFrameworkConflictResultError();
|
|
747
725
|
}
|
|
748
726
|
else {
|
|
749
|
-
e.teamsfxUrlName =
|
|
727
|
+
e.teamsfxUrlName = constants_4.TeamsFxUrlNames[apiName];
|
|
750
728
|
throw this.wrapException(e, apiName);
|
|
751
729
|
}
|
|
752
730
|
}
|
|
@@ -758,7 +736,7 @@ class TeamsDevPortalClient {
|
|
|
758
736
|
}
|
|
759
737
|
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) {
|
|
760
738
|
e.name = name;
|
|
761
|
-
const correlationId = e.response?.headers?.[
|
|
739
|
+
const correlationId = e.response?.headers?.[constants_3.Constants.CORRELATION_ID];
|
|
762
740
|
let extraData = `${potentialReason} ${e.response?.data ? `data: ${JSON.stringify(e.response.data)}` : ""}`;
|
|
763
741
|
// add status code in extra data if the message does not have it.
|
|
764
742
|
if (!e.message?.toLowerCase().includes("status code") && e.response?.status) {
|
|
@@ -862,7 +840,8 @@ tslib_1.__decorate([
|
|
|
862
840
|
tslib_1.__decorate([
|
|
863
841
|
(0, hooks_1.hooks)([(0, globalVars_1.ErrorContextMW)({ source: "Teams", component: "TeamsDevPortalClient" })]),
|
|
864
842
|
tslib_1.__metadata("design:type", Function),
|
|
865
|
-
tslib_1.__metadata("design:paramtypes", [String, Buffer
|
|
843
|
+
tslib_1.__metadata("design:paramtypes", [String, Buffer,
|
|
844
|
+
AbortSignal]),
|
|
866
845
|
tslib_1.__metadata("design:returntype", Promise)
|
|
867
846
|
], TeamsDevPortalClient.prototype, "partnerCenterAppPackageValidation", null);
|
|
868
847
|
tslib_1.__decorate([
|