@microsoft/teamsfx-core 3.0.5-alpha.9b55c8b6b.0 → 3.0.5-alpha.aa4861e8e.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/client/graphClient.d.ts +8 -4
  2. package/build/client/graphClient.d.ts.map +1 -1
  3. package/build/client/graphClient.js +35 -8
  4. package/build/client/graphClient.js.map +1 -1
  5. package/build/client/interfaces/GetGroupResponse.d.ts +6 -0
  6. package/build/client/interfaces/GetGroupResponse.d.ts.map +1 -0
  7. package/build/client/interfaces/GetGroupResponse.js +5 -0
  8. package/build/client/interfaces/GetGroupResponse.js.map +1 -0
  9. package/build/client/interfaces/GetUserResponse.d.ts +7 -0
  10. package/build/client/interfaces/GetUserResponse.d.ts.map +1 -0
  11. package/build/client/interfaces/GetUserResponse.js +5 -0
  12. package/build/client/interfaces/GetUserResponse.js.map +1 -0
  13. package/build/common/constants.d.ts +2 -0
  14. package/build/common/constants.d.ts.map +1 -1
  15. package/build/common/constants.js +3 -1
  16. package/build/common/constants.js.map +1 -1
  17. package/build/common/permissionInterface.d.ts +6 -0
  18. package/build/common/permissionInterface.d.ts.map +1 -1
  19. package/build/common/templates-config.json +1 -1
  20. package/build/component/configManager/validator.d.ts.map +1 -1
  21. package/build/component/configManager/validator.js +1 -0
  22. package/build/component/configManager/validator.js.map +1 -1
  23. package/build/component/coordinator/index.d.ts +0 -1
  24. package/build/component/coordinator/index.d.ts.map +1 -1
  25. package/build/component/coordinator/index.js +53 -57
  26. package/build/component/coordinator/index.js.map +1 -1
  27. package/build/component/deps-checker/internal/funcToolChecker.js +1 -1
  28. package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
  29. package/build/component/deps-checker/internal/testToolChecker.js +1 -1
  30. package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
  31. package/build/component/driver/index.d.ts +19 -20
  32. package/build/component/driver/index.d.ts.map +1 -1
  33. package/build/component/driver/index.js +19 -20
  34. package/build/component/driver/index.js.map +1 -1
  35. package/build/component/driver/m365/acquire.d.ts +3 -0
  36. package/build/component/driver/m365/acquire.d.ts.map +1 -1
  37. package/build/component/driver/m365/acquire.js +29 -19
  38. package/build/component/driver/m365/acquire.js.map +1 -1
  39. package/build/component/driver/share/utils.d.ts +5 -1
  40. package/build/component/driver/share/utils.d.ts.map +1 -1
  41. package/build/component/driver/share/utils.js +23 -22
  42. package/build/component/driver/share/utils.js.map +1 -1
  43. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  44. package/build/component/driver/teamsApp/createAppPackage.js +3 -5
  45. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  46. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts +1 -1
  47. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -1
  48. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +5 -2
  49. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js.map +1 -1
  50. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  51. package/build/component/driver/teamsApp/validate.js +3 -1
  52. package/build/component/driver/teamsApp/validate.js.map +1 -1
  53. package/build/component/feature/collaboration.d.ts +7 -1
  54. package/build/component/feature/collaboration.d.ts.map +1 -1
  55. package/build/component/feature/collaboration.js +84 -1
  56. package/build/component/feature/collaboration.js.map +1 -1
  57. package/build/component/generator/combinedProject/generator.d.ts.map +1 -1
  58. package/build/component/generator/combinedProject/generator.js +2 -1
  59. package/build/component/generator/combinedProject/generator.js.map +1 -1
  60. package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
  61. package/build/component/generator/declarativeAgent/generator.js +2 -1
  62. package/build/component/generator/declarativeAgent/generator.js.map +1 -1
  63. package/build/component/generator/generator.d.ts +1 -1
  64. package/build/component/generator/generator.d.ts.map +1 -1
  65. package/build/component/generator/generator.js +2 -1
  66. package/build/component/generator/generator.js.map +1 -1
  67. package/build/component/generator/openApiSpec/common.d.ts.map +1 -1
  68. package/build/component/generator/openApiSpec/common.js +2 -1
  69. package/build/component/generator/openApiSpec/common.js.map +1 -1
  70. package/build/component/generator/other/ssrTabGenerator.d.ts.map +1 -1
  71. package/build/component/generator/other/ssrTabGenerator.js +2 -1
  72. package/build/component/generator/other/ssrTabGenerator.js.map +1 -1
  73. package/build/component/generator/other/tdpGenerator.d.ts.map +1 -1
  74. package/build/component/generator/other/tdpGenerator.js +2 -1
  75. package/build/component/generator/other/tdpGenerator.js.map +1 -1
  76. package/build/component/generator/templates/templateReplaceMap.d.ts.map +1 -1
  77. package/build/component/generator/templates/templateReplaceMap.js +8 -6
  78. package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
  79. package/build/component/generator/utils.js +1 -1
  80. package/build/component/generator/utils.js.map +1 -1
  81. package/build/component/m365/interface.d.ts +6 -5
  82. package/build/component/m365/interface.d.ts.map +1 -1
  83. package/build/component/m365/interface.js +6 -5
  84. package/build/component/m365/interface.js.map +1 -1
  85. package/build/component/m365/packageService.d.ts +13 -3
  86. package/build/component/m365/packageService.d.ts.map +1 -1
  87. package/build/component/m365/packageService.js +158 -12
  88. package/build/component/m365/packageService.js.map +1 -1
  89. package/build/core/FxCore.d.ts +0 -3
  90. package/build/core/FxCore.d.ts.map +1 -1
  91. package/build/core/FxCore.js +35 -63
  92. package/build/core/FxCore.js.map +1 -1
  93. package/build/core/collaborator.d.ts +1 -0
  94. package/build/core/collaborator.d.ts.map +1 -1
  95. package/build/core/collaborator.js +55 -3
  96. package/build/core/collaborator.js.map +1 -1
  97. package/build/core/middleware/utils/debug/taskMigrator.js +1 -1
  98. package/build/core/share.d.ts +9 -0
  99. package/build/core/share.d.ts.map +1 -0
  100. package/build/core/share.js +118 -0
  101. package/build/core/share.js.map +1 -0
  102. package/build/index.d.ts +1 -0
  103. package/build/index.d.ts.map +1 -1
  104. package/build/index.js +3 -1
  105. package/build/index.js.map +1 -1
  106. package/build/question/collaborator.d.ts +6 -0
  107. package/build/question/collaborator.d.ts.map +1 -0
  108. package/build/question/collaborator.js +166 -0
  109. package/build/question/collaborator.js.map +1 -0
  110. package/build/question/constants.d.ts +1 -0
  111. package/build/question/constants.d.ts.map +1 -1
  112. package/build/question/constants.js +2 -1
  113. package/build/question/constants.js.map +1 -1
  114. package/build/question/generator.d.ts.map +1 -1
  115. package/build/question/generator.js.map +1 -1
  116. package/build/question/index.d.ts.map +1 -1
  117. package/build/question/index.js +6 -4
  118. package/build/question/index.js.map +1 -1
  119. package/build/question/inputs/ShareInputs.d.ts +6 -4
  120. package/build/question/inputs/ShareInputs.d.ts.map +1 -1
  121. package/build/question/inputs/index.d.ts +12 -12
  122. package/build/question/inputs/index.d.ts.map +1 -1
  123. package/build/question/inputs/index.js +12 -12
  124. package/build/question/inputs/index.js.map +1 -1
  125. package/build/question/options/ShareOptions.d.ts.map +1 -1
  126. package/build/question/options/ShareOptions.js +12 -5
  127. package/build/question/options/ShareOptions.js.map +1 -1
  128. package/build/question/other.d.ts +2 -8
  129. package/build/question/other.d.ts.map +1 -1
  130. package/build/question/other.js +11 -266
  131. package/build/question/other.js.map +1 -1
  132. package/build/question/questionNames.d.ts +3 -4
  133. package/build/question/questionNames.d.ts.map +1 -1
  134. package/build/question/questionNames.js +3 -4
  135. package/build/question/questionNames.js.map +1 -1
  136. package/build/question/share.d.ts +22 -0
  137. package/build/question/share.d.ts.map +1 -0
  138. package/build/question/share.js +165 -0
  139. package/build/question/share.js.map +1 -0
  140. package/build/tsconfig.tsbuildinfo +1 -1
  141. package/package.json +4 -4
  142. package/resource/package.nls.json +22 -13
  143. package/resource/yaml-schema/v1.10/yaml.schema.json +2058 -0
  144. package/resource/yaml-schema/yaml.schema.json +5 -54
  145. package/templates/fallback/common.zip +0 -0
  146. package/templates/fallback/csharp.zip +0 -0
  147. package/templates/fallback/js.zip +0 -0
  148. package/templates/fallback/python.zip +0 -0
  149. package/templates/fallback/ts.zip +0 -0
  150. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/BotAuthenticationOptions.cs +44 -0
  151. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/IIdentityClientAdapter.cs +21 -0
  152. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/ITeamsInfo.cs +24 -0
  153. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/IdentityClientAdapter.cs +30 -0
  154. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/SsoDialog.cs +12 -9
  155. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/SsoOperations.cs +2 -2
  156. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPrompt.cs +423 -0
  157. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPromptSettings.cs +41 -0
  158. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPromptTokenResponse.cs +21 -0
  159. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsInfoWrapper.cs +20 -0
  160. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsSsoBot.cs +6 -5
  161. package/build/component/driver/share/shareToOthers.d.ts +0 -17
  162. package/build/component/driver/share/shareToOthers.d.ts.map +0 -1
  163. package/build/component/driver/share/shareToOthers.js +0 -127
  164. package/build/component/driver/share/shareToOthers.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx-core",
3
- "version": "3.0.5-alpha.9b55c8b6b.0",
3
+ "version": "3.0.5-alpha.aa4861e8e.0",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "license": "MIT",
@@ -107,8 +107,8 @@
107
107
  "@microsoft/dev-tunnels-contracts": "1.1.9",
108
108
  "@microsoft/dev-tunnels-management": "1.1.9",
109
109
  "@microsoft/kiota": "1.26.1",
110
- "@microsoft/m365-spec-parser": "^0.2.9-alpha.9b55c8b6b.0",
111
- "@microsoft/teamsfx-api": "0.23.9-alpha.9b55c8b6b.0",
110
+ "@microsoft/m365-spec-parser": "^0.2.9-alpha.aa4861e8e.0",
111
+ "@microsoft/teamsfx-api": "0.23.9-alpha.aa4861e8e.0",
112
112
  "adm-zip": "^0.5.10",
113
113
  "ajv": "^8.5.0",
114
114
  "axios": "^1.8.3",
@@ -231,7 +231,7 @@
231
231
  "resource/**/*",
232
232
  "templates/**/*"
233
233
  ],
234
- "gitHead": "0a4e6988cfee8e235742a6a66f5432c130dae96b",
234
+ "gitHead": "baab9d9a60f3b40d68048b198dc7471c835a69f1",
235
235
  "publishConfig": {
236
236
  "access": "public"
237
237
  },
@@ -64,15 +64,20 @@
64
64
  "core.collaboration.AccountUsedToCheck": "Account used to check: ",
65
65
  "core.collaboration.StartingListAllTeamsAppOwners": "\nStarting to list all app owners for environment: ",
66
66
  "core.collaboration.StartingListAllAadAppOwners": "\nStarting to list all Microsoft Entra app owners for environment: ",
67
+ "core.collaboration.StartingListAllAgentOwners": "\nStarting to list all agent owners for environment: ",
67
68
  "core.collaboration.M365TeamsAppId": "App (ID: ",
68
69
  "core.collaboration.SsoAadAppId": "SSO Microsoft Entra App (ID: ",
70
+ "core.collaboration.AgentTitleId": "Agent (ID: ",
69
71
  "core.collaboration.TeamsAppOwner": "App Owner: ",
70
72
  "core.collaboration.AadAppOwner": "Microsoft Entra App Owner: ",
73
+ "core.collaboration.AgentOwner": "Agent Owner: ",
71
74
  "core.collaboration.StaringCheckPermission": "Starting to check permission for environment: ",
72
75
  "core.collaboration.CheckPermissionResourceId": "Resource ID: ",
73
76
  "core.collaboration.Undefined": "undefined",
74
77
  "core.collaboration.ResourceName": ", Resource Name: ",
75
78
  "core.collaboration.Permission": ", Permission: ",
79
+ "core.collaboration.agent.label": "Agent",
80
+ "core.collaboration.agent.description": "Microsoft 365 Agent",
76
81
  "core.developerPortal.scaffold.CannotFindManifest": "Manifest not found from the downloaded package for app %s.",
77
82
  "plugins.spfx.questions.framework.title": "Framework",
78
83
  "plugins.spfx.questions.webpartName": "Name for SharePoint Framework Web Part",
@@ -245,13 +250,13 @@
245
250
  "error.apime.noExtraAPICanBeAdded": "Unable to add API because only GET and POST methods are supported, with a maximum of 5 required parameters and no authentication. Also, methods defined in the manifest are not listed.",
246
251
  "error.copilot.noExtraAPICanBeAdded": "Unable to add API because no authentication is supported. Also, methods defined in the current OpenAPI description document are not listed.",
247
252
  "error.m365.NotExtendedToM365Error": "Unable to extend the app to Microsoft 365. Use 'teamsApp/extendToM365' action to extend the app to Microsoft 365.",
248
- "error.share.yamlConfigNotFound": "Unable to find the \"share\" config in the m365agents.yml",
253
+ "error.share.yamlConfigNotFound": "Unable to find the \"provision\" or \"deploy\" config in the m365agents.yml",
249
254
  "error.share.shareActionConfigNotFound": "Unable to find the \"%s\" action config in the m365agents.yml",
250
255
  "error.share.appPackageConfigNotFound": "Unable to find the appPackagePath config in the m365agents.yml",
251
256
  "error.share.manifestFileNotFound": "Unable to find the manifest file in the app package",
252
257
  "error.share.manifestIdNotFound": "Unable to find the manifest ID in the app package",
253
258
  "error.share.sharedConfigNotFound": "Unable to find the \"titleId\" or \"appId\" config in the m365agents.yml",
254
- "error.share.sharedIdNotFound": "Unable to get shared title id or shared app id in the .env file. Shared title id: %s, shared app id: %s. You need to share the app first.",
259
+ "error.share.sharedIdNotFound": "Unable to get title id or app id in the .env file. Shared title id: %s, shared app id: %s. You need to deploy the agent before sharing.",
255
260
  "error.share.appPackageNotFound": "Unable to find the zip package in path: %s. You need to zip the package first.",
256
261
  "core.QuestionAppName.validation.pattern": "App name needs to begin with letters, include minimum two letters or digits, and exclude certain special characters.",
257
262
  "core.QuestionAppName.validation.maxlength": "App name is longer than the 30 characters.",
@@ -522,7 +527,6 @@
522
527
  "core.addKnowledge.success.vsc": "Capability source added to the project successfully.",
523
528
  "core.addKnowledge.success": "Capability source added to the project successfully. View agent manifest in \"%s\".",
524
529
  "core.addKnowledge.success.viewAgentManifest": "View agent manifest",
525
- "core.addUserQuestion.validation": "Invalid email address",
526
530
  "core.scaffold.warning.summary": "We have detected following issues:\n%s",
527
531
  "core.addPlugin.warning.manifestVariables": "Environment variables \"%s\" found in manifest of the added plugin. Ensure the values are set in .env file or system environment variables.",
528
532
  "core.addPlugin.warning.apiSpecVariables": "Environment variables \"%s\" found in API specification of the added plugin. Ensure the values are set in .env file or system environment variables.",
@@ -545,6 +549,7 @@
545
549
  "core.getUserEmailQuestion.title": "Add owner to Teams/Microsoft Entra app for the account under the same Microsoft 365 tenant (email)",
546
550
  "core.getUserEmailQuestion.validation1": "Enter email address",
547
551
  "core.getUserEmailQuestion.validation2": "Change [UserName] to the real user name",
552
+ "core.getUserEmailQuestion.validation3": "Email address is invalid",
548
553
  "core.collaboration.error.failedToLoadDotEnvFile": "Unable to load your .env File. Reason: %s",
549
554
  "core.selectAadAppManifestQuestion.title": "Select Microsoft Entra manifest.json file",
550
555
  "core.selectTeamsAppManifestQuestion.title": "Select Teams manifest.json File",
@@ -639,8 +644,10 @@
639
644
  "core.common.ErrorFetchApiSpec": "Your OpenAPI description document should be accessible without authentication, otherwise download and start from a local copy.",
640
645
  "core.common.SendingApiRequest": "Sending API request: %s. Request body: %s",
641
646
  "core.common.ReceiveApiResponse": "Received API response: %s.",
642
- "core.common.shareToUser.success": "Successfully shared the app with users: %s.",
643
- "core.common.removeShareAccess.success": "Shared app access removed from the users: %s.",
647
+ "core.common.shareWithTenant.success": "Agent successfully shared with tenant.",
648
+ "core.common.shareWithUser.success": "Agent successfully shared with users: %s.",
649
+ "core.common.removeOwnership.success": "Shared agent ownership removed from the users: %s.",
650
+ "core.common.removeShareAccess.success": "Shared access successfully removed from users: %s.",
644
651
  "core.envFunc.unsupportedFile.errorLog": "\"%s\" is an invalid file. Supported format: %s.",
645
652
  "core.envFunc.unsupportedFile.errorMessage": "Invalid file. %s",
646
653
  "core.envFunc.unsupportedFunction.errorLog": "\"%s\" is an invalid function. Supported function: \"%s\".",
@@ -696,11 +703,17 @@
696
703
  "core.uninstallQuestion.tdpOption": "App registration",
697
704
  "core.uninstallQuestion.botOption": "Bot framework registration",
698
705
  "core.uninstallQuestion.projectPath": "Project path",
699
- "core.shareOptionQuestion.share": "Share the app",
700
- "core.shareOptionQuestion.shareToUser": "Share with user(s)",
701
- "core.shareOptionQuestion.placeholder": "Select an option",
702
- "core.shareToUser.title": "Enter user emails (separated by commas)",
703
706
  "core.share.removeAccess.operator": "Cannot remove permission of the operator. Email: %s.",
707
+ "core.shareOperationQuestion.option.removeShareAccessFromUsers": "Remove access for selected user(s)",
708
+ "core.shareOperationQuestion.option.shareWithUsers": "Share access with selected user(s)",
709
+ "core.shareOptionQuestion.placeholder": "Select how to share the agent",
710
+ "core.shareOptionQuestion.title": "Share the agent",
711
+ "core.shareOptionQuestion.unshare.emails.title": "Email addresses of users or groups for agent access removal",
712
+ "core.shareScopeQuestion.emails.title": "Email addresses of users or groups for agent sharing",
713
+ "core.shareScopeQuestion.option.shareWithTenant": "Share the agent with all tenant users",
714
+ "core.shareScopeQuestion.option.shareWithUsers": "Share the agent with selected user(s)",
715
+ "core.shareScopeQuestion.placeholder": "Select a sharing scope",
716
+ "core.shareScopeQuestion.title": "Share the agent with users",
704
717
  "core.syncManifest.projectPath": "Project path",
705
718
  "core.syncManifest.env": "Target Microsoft 365 Agents Toolkit Environment",
706
719
  "core.syncManifest.teamsAppId": "App ID (optional)",
@@ -737,7 +750,6 @@
737
750
  "error.aad.manifest.UnknownResourceAccessId": "Unknown resourceAccess id: %s, try to use permission id instead of resourceAccess id.",
738
751
  "core.addSsoFiles.emptyProjectPath": "Project path is empty",
739
752
  "core.addSsoFiles.FailedToCreateAuthFiles": "Unable to create files for add sso. Detail error: %s.",
740
- "core.getUserEmailQuestion.validation3": "Email address is invalid",
741
753
  "plugins.bot.ErrorSuggestions": "Suggestions: %s",
742
754
  "plugins.bot.InvalidValue": "%s is invalid with value: %s",
743
755
  "plugins.bot.SomethingIsMissing": "%s is not available.",
@@ -919,9 +931,6 @@
919
931
  "driver.teamsApp.summary.validateWithTestCases.result.detail": "%s Validation title: %s. Message: %s",
920
932
  "driver.teamsApp.validate.result": "Microsoft 365 Agents Toolkit has completed checking your app package against validation rules. %s.",
921
933
  "driver.teamsApp.validate.result.display": "Microsoft 365 Agents Toolkit has completed checking your app package against validation rules. %s. Check [Output panel](command:fx-extension.showOutputChannel) for details.",
922
- "driver.shareToOthers.description": "share your app to others",
923
- "driver.shareToOthers.progress.message": "Sharing your app...",
924
- "driver.shareToOthers.summary": "Shared apps successfully (%s).",
925
934
  "error.teamsApp.validate.apiFailed": "app package validation failed due to %s",
926
935
  "error.teamsApp.validate.apiFailed.display": "App pacakge validation failed. Check [Output panel](command:fx-extension.showOutputChannel) for details.",
927
936
  "error.teamsApp.validate.details": "File path: %s, title: %s",