@microsoft/teamsfx-core 2.0.8-alpha.4e708f092.0 → 2.0.8-alpha.50de7b0d4.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 (272) hide show
  1. package/build/common/constants.d.ts +4 -17
  2. package/build/common/constants.d.ts.map +1 -1
  3. package/build/common/constants.js +4 -18
  4. package/build/common/constants.js.map +1 -1
  5. package/build/common/featureFlags.d.ts +68 -5
  6. package/build/common/featureFlags.d.ts.map +1 -1
  7. package/build/common/featureFlags.js +63 -92
  8. package/build/common/featureFlags.js.map +1 -1
  9. package/build/common/m365/launchHelper.d.ts +1 -1
  10. package/build/common/m365/launchHelper.d.ts.map +1 -1
  11. package/build/common/m365/launchHelper.js +3 -6
  12. package/build/common/m365/launchHelper.js.map +1 -1
  13. package/build/common/m365/packageService.d.ts +1 -1
  14. package/build/common/m365/packageService.d.ts.map +1 -1
  15. package/build/common/m365/packageService.js +18 -39
  16. package/build/common/m365/packageService.js.map +1 -1
  17. package/build/common/projectTypeChecker.d.ts.map +1 -1
  18. package/build/common/projectTypeChecker.js +3 -0
  19. package/build/common/projectTypeChecker.js.map +1 -1
  20. package/build/common/samples.d.ts +1 -1
  21. package/build/common/samples.js +1 -1
  22. package/build/common/stringUtils.js +3 -3
  23. package/build/common/stringUtils.js.map +1 -1
  24. package/build/common/telemetry.d.ts +14 -1
  25. package/build/common/telemetry.d.ts.map +1 -1
  26. package/build/common/telemetry.js +15 -1
  27. package/build/common/telemetry.js.map +1 -1
  28. package/build/common/templates-config.json +1 -1
  29. package/build/component/configManager/actionInjector.d.ts +8 -0
  30. package/build/component/configManager/actionInjector.d.ts.map +1 -0
  31. package/build/component/configManager/actionInjector.js +102 -0
  32. package/build/component/configManager/actionInjector.js.map +1 -0
  33. package/build/component/coordinator/index.d.ts +0 -40
  34. package/build/component/coordinator/index.d.ts.map +1 -1
  35. package/build/component/coordinator/index.js +130 -179
  36. package/build/component/coordinator/index.js.map +1 -1
  37. package/build/component/driver/apiKey/create.d.ts.map +1 -1
  38. package/build/component/driver/apiKey/create.js.map +1 -1
  39. package/build/component/driver/apiKey/update.js +1 -1
  40. package/build/component/driver/apiKey/update.js.map +1 -1
  41. package/build/component/driver/apiKey/utility/utility.d.ts.map +1 -1
  42. package/build/component/driver/apiKey/utility/utility.js +2 -3
  43. package/build/component/driver/apiKey/utility/utility.js.map +1 -1
  44. package/build/component/driver/index.d.ts +2 -0
  45. package/build/component/driver/index.d.ts.map +1 -1
  46. package/build/component/driver/index.js +2 -0
  47. package/build/component/driver/index.js.map +1 -1
  48. package/build/component/driver/oauth/create.d.ts +12 -0
  49. package/build/component/driver/oauth/create.d.ts.map +1 -0
  50. package/build/component/driver/oauth/create.js +193 -0
  51. package/build/component/driver/oauth/create.js.map +1 -0
  52. package/build/component/driver/oauth/error/oauthAuthInfoInvalid.d.ts +5 -0
  53. package/build/component/driver/oauth/error/oauthAuthInfoInvalid.d.ts.map +1 -0
  54. package/build/component/driver/oauth/error/oauthAuthInfoInvalid.js +21 -0
  55. package/build/component/driver/oauth/error/oauthAuthInfoInvalid.js.map +1 -0
  56. package/build/component/driver/oauth/error/oauthDomainInvalid.d.ts +5 -0
  57. package/build/component/driver/oauth/error/oauthDomainInvalid.d.ts.map +1 -0
  58. package/build/component/driver/oauth/error/oauthDomainInvalid.js +22 -0
  59. package/build/component/driver/oauth/error/oauthDomainInvalid.js.map +1 -0
  60. package/build/component/driver/oauth/error/oauthFailedToGetDomain.d.ts +5 -0
  61. package/build/component/driver/oauth/error/oauthFailedToGetDomain.d.ts.map +1 -0
  62. package/build/component/driver/oauth/error/oauthFailedToGetDomain.js +21 -0
  63. package/build/component/driver/oauth/error/oauthFailedToGetDomain.js.map +1 -0
  64. package/build/component/driver/oauth/error/oauthNameTooLong.d.ts +5 -0
  65. package/build/component/driver/oauth/error/oauthNameTooLong.d.ts.map +1 -0
  66. package/build/component/driver/oauth/error/oauthNameTooLong.js +21 -0
  67. package/build/component/driver/oauth/error/oauthNameTooLong.js.map +1 -0
  68. package/build/component/driver/oauth/interface/createOauthArgs.d.ts +12 -0
  69. package/build/component/driver/oauth/interface/createOauthArgs.d.ts.map +1 -0
  70. package/build/component/driver/oauth/interface/createOauthArgs.js +5 -0
  71. package/build/component/driver/oauth/interface/createOauthArgs.js.map +1 -0
  72. package/build/component/driver/oauth/interface/createOauthOutputs.d.ts +7 -0
  73. package/build/component/driver/oauth/interface/createOauthOutputs.d.ts.map +1 -0
  74. package/build/component/driver/oauth/interface/createOauthOutputs.js +10 -0
  75. package/build/component/driver/oauth/interface/createOauthOutputs.js.map +1 -0
  76. package/build/component/driver/oauth/interface/updateOauthArgs.d.ts +9 -0
  77. package/build/component/driver/oauth/interface/updateOauthArgs.d.ts.map +1 -0
  78. package/build/component/driver/oauth/interface/updateOauthArgs.js +5 -0
  79. package/build/component/driver/oauth/interface/updateOauthArgs.js.map +1 -0
  80. package/build/component/driver/oauth/update.d.ts +13 -0
  81. package/build/component/driver/oauth/update.d.ts.map +1 -0
  82. package/build/component/driver/oauth/update.js +181 -0
  83. package/build/component/driver/oauth/update.js.map +1 -0
  84. package/build/component/driver/oauth/utility/constants.d.ts +13 -0
  85. package/build/component/driver/oauth/utility/constants.d.ts.map +1 -0
  86. package/build/component/driver/oauth/utility/constants.js +18 -0
  87. package/build/component/driver/oauth/utility/constants.js.map +1 -0
  88. package/build/component/driver/oauth/utility/utility.d.ts +12 -0
  89. package/build/component/driver/oauth/utility/utility.d.ts.map +1 -0
  90. package/build/component/driver/oauth/utility/utility.js +90 -0
  91. package/build/component/driver/oauth/utility/utility.js.map +1 -0
  92. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +5 -0
  93. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
  94. package/build/component/driver/teamsApp/clients/appStudioClient.js +36 -0
  95. package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
  96. package/build/component/driver/teamsApp/constants.d.ts +3 -0
  97. package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
  98. package/build/component/driver/teamsApp/constants.js +3 -0
  99. package/build/component/driver/teamsApp/constants.js.map +1 -1
  100. package/build/component/driver/teamsApp/createAppPackage.d.ts +17 -0
  101. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  102. package/build/component/driver/teamsApp/createAppPackage.js +62 -6
  103. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  104. package/build/component/driver/teamsApp/interfaces/OauthConfigurationId.d.ts +7 -0
  105. package/build/component/driver/teamsApp/interfaces/OauthConfigurationId.d.ts.map +1 -0
  106. package/build/component/driver/teamsApp/interfaces/OauthConfigurationId.js +5 -0
  107. package/build/component/driver/teamsApp/interfaces/OauthConfigurationId.js.map +1 -0
  108. package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts +44 -0
  109. package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts.map +1 -0
  110. package/build/component/driver/teamsApp/interfaces/OauthRegistration.js +21 -0
  111. package/build/component/driver/teamsApp/interfaces/OauthRegistration.js.map +1 -0
  112. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +8 -0
  113. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -0
  114. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +65 -0
  115. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -0
  116. package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
  117. package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
  118. package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
  119. package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
  120. package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
  121. package/build/component/generator/copilotPlugin/generator.js +20 -26
  122. package/build/component/generator/copilotPlugin/generator.js.map +1 -1
  123. package/build/component/generator/copilotPlugin/helper.d.ts +6 -1
  124. package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
  125. package/build/component/generator/copilotPlugin/helper.js +52 -26
  126. package/build/component/generator/copilotPlugin/helper.js.map +1 -1
  127. package/build/component/generator/generator.d.ts +3 -2
  128. package/build/component/generator/generator.d.ts.map +1 -1
  129. package/build/component/generator/generator.js +6 -4
  130. package/build/component/generator/generator.js.map +1 -1
  131. package/build/component/generator/generatorProvider.d.ts +3 -0
  132. package/build/component/generator/generatorProvider.d.ts.map +1 -0
  133. package/build/component/generator/generatorProvider.js +18 -0
  134. package/build/component/generator/generatorProvider.js.map +1 -0
  135. package/build/component/generator/officeAddin/generator.d.ts +9 -0
  136. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  137. package/build/component/generator/officeAddin/generator.js +33 -2
  138. package/build/component/generator/officeAddin/generator.js.map +1 -1
  139. package/build/component/generator/officeAddin/helperMethods.d.ts +0 -3
  140. package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
  141. package/build/component/generator/officeAddin/helperMethods.js +1 -67
  142. package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
  143. package/build/component/generator/officeXMLAddin/generator.d.ts.map +1 -1
  144. package/build/component/generator/officeXMLAddin/generator.js +5 -2
  145. package/build/component/generator/officeXMLAddin/generator.js.map +1 -1
  146. package/build/component/generator/spfx/spfxGenerator.d.ts +18 -5
  147. package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
  148. package/build/component/generator/spfx/spfxGenerator.js +123 -20
  149. package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
  150. package/build/component/generator/templates/ssrTabGenerator.d.ts +12 -0
  151. package/build/component/generator/templates/ssrTabGenerator.d.ts.map +1 -0
  152. package/build/component/generator/templates/ssrTabGenerator.js +36 -0
  153. package/build/component/generator/templates/ssrTabGenerator.js.map +1 -0
  154. package/build/component/generator/templates/templateGenerator.d.ts +12 -0
  155. package/build/component/generator/templates/templateGenerator.d.ts.map +1 -0
  156. package/build/component/generator/templates/templateGenerator.js +99 -0
  157. package/build/component/generator/templates/templateGenerator.js.map +1 -0
  158. package/build/component/generator/templates/templateInfo.d.ts +10 -0
  159. package/build/component/generator/templates/templateInfo.d.ts.map +1 -0
  160. package/build/component/generator/templates/templateInfo.js +3 -0
  161. package/build/component/generator/templates/templateInfo.js.map +1 -0
  162. package/build/component/generator/templates/templateNames.d.ts +52 -0
  163. package/build/component/generator/templates/templateNames.d.ts.map +1 -0
  164. package/build/component/generator/templates/templateNames.js +304 -0
  165. package/build/component/generator/templates/templateNames.js.map +1 -0
  166. package/build/component/generator/templates/templateReplaceMap.d.ts +5 -0
  167. package/build/component/generator/templates/templateReplaceMap.d.ts.map +1 -0
  168. package/build/component/generator/templates/templateReplaceMap.js +39 -0
  169. package/build/component/generator/templates/templateReplaceMap.js.map +1 -0
  170. package/build/component/generator/utils.d.ts +1 -0
  171. package/build/component/generator/utils.d.ts.map +1 -1
  172. package/build/component/generator/utils.js +2 -1
  173. package/build/component/generator/utils.js.map +1 -1
  174. package/build/component/middleware/actionExecutionMW.d.ts.map +1 -1
  175. package/build/component/middleware/actionExecutionMW.js +5 -4
  176. package/build/component/middleware/actionExecutionMW.js.map +1 -1
  177. package/build/component/middleware/questionMW.d.ts.map +1 -1
  178. package/build/component/middleware/questionMW.js +9 -1
  179. package/build/component/middleware/questionMW.js.map +1 -1
  180. package/build/component/utils/metadataRscPermission.d.ts +1 -0
  181. package/build/component/utils/metadataRscPermission.d.ts.map +1 -1
  182. package/build/component/utils/metadataRscPermission.js +15 -3
  183. package/build/component/utils/metadataRscPermission.js.map +1 -1
  184. package/build/component/utils.d.ts +2 -1
  185. package/build/component/utils.d.ts.map +1 -1
  186. package/build/component/utils.js +43 -1
  187. package/build/component/utils.js.map +1 -1
  188. package/build/core/FxCore.d.ts +7 -3
  189. package/build/core/FxCore.d.ts.map +1 -1
  190. package/build/core/FxCore.js +246 -80
  191. package/build/core/FxCore.js.map +1 -1
  192. package/build/error/common.d.ts +3 -0
  193. package/build/error/common.d.ts.map +1 -1
  194. package/build/error/common.js +12 -1
  195. package/build/error/common.js.map +1 -1
  196. package/build/error/index.d.ts +1 -0
  197. package/build/error/index.d.ts.map +1 -1
  198. package/build/error/index.js +1 -0
  199. package/build/error/index.js.map +1 -1
  200. package/build/index.d.ts +2 -0
  201. package/build/index.d.ts.map +1 -1
  202. package/build/index.js +5 -1
  203. package/build/index.js.map +1 -1
  204. package/build/question/constants.d.ts.map +1 -1
  205. package/build/question/constants.js +6 -1
  206. package/build/question/constants.js.map +1 -1
  207. package/build/question/create.d.ts +7 -1
  208. package/build/question/create.d.ts.map +1 -1
  209. package/build/question/create.js +101 -18
  210. package/build/question/create.js.map +1 -1
  211. package/build/question/generator.js +2 -0
  212. package/build/question/generator.js.map +1 -1
  213. package/build/question/index.d.ts +2 -0
  214. package/build/question/index.d.ts.map +1 -1
  215. package/build/question/index.js +6 -0
  216. package/build/question/index.js.map +1 -1
  217. package/build/question/inputs/AddPluginInputs.d.ts +18 -0
  218. package/build/question/inputs/AddPluginInputs.d.ts.map +1 -0
  219. package/build/question/inputs/AddPluginInputs.js +5 -0
  220. package/build/question/inputs/AddPluginInputs.js.map +1 -0
  221. package/build/question/inputs/CreateProjectInputs.d.ts +1 -1
  222. package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
  223. package/build/question/inputs/PermissionGrantInputs.d.ts +1 -1
  224. package/build/question/inputs/PermissionListInputs.d.ts +1 -1
  225. package/build/question/inputs/PreviewTeamsAppInputs.d.ts +1 -1
  226. package/build/question/inputs/SPFxAddWebpartInputs.d.ts +1 -1
  227. package/build/question/inputs/SelectTeamsManifestInputs.d.ts +1 -1
  228. package/build/question/inputs/ValidateTeamsAppInputs.d.ts +2 -2
  229. package/build/question/inputs/index.d.ts +1 -0
  230. package/build/question/inputs/index.d.ts.map +1 -1
  231. package/build/question/inputs/index.js +1 -0
  232. package/build/question/inputs/index.js.map +1 -1
  233. package/build/question/options/AddPluginOptions.d.ts +10 -0
  234. package/build/question/options/AddPluginOptions.d.ts.map +1 -0
  235. package/build/question/options/AddPluginOptions.js +39 -0
  236. package/build/question/options/AddPluginOptions.js.map +1 -0
  237. package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
  238. package/build/question/options/CreateProjectOptions.js +3 -1
  239. package/build/question/options/CreateProjectOptions.js.map +1 -1
  240. package/build/question/options/PermissionGrantOptions.js +1 -1
  241. package/build/question/options/PermissionGrantOptions.js.map +1 -1
  242. package/build/question/options/PermissionListOptions.js +1 -1
  243. package/build/question/options/PermissionListOptions.js.map +1 -1
  244. package/build/question/options/PreviewTeamsAppOptions.js +1 -1
  245. package/build/question/options/PreviewTeamsAppOptions.js.map +1 -1
  246. package/build/question/options/SPFxAddWebpartOptions.js +1 -1
  247. package/build/question/options/SPFxAddWebpartOptions.js.map +1 -1
  248. package/build/question/options/SelectTeamsManifestOptions.js +1 -1
  249. package/build/question/options/SelectTeamsManifestOptions.js.map +1 -1
  250. package/build/question/options/ValidateTeamsAppOptions.js +1 -1
  251. package/build/question/options/ValidateTeamsAppOptions.js.map +1 -1
  252. package/build/question/options/index.d.ts +1 -0
  253. package/build/question/options/index.d.ts.map +1 -1
  254. package/build/question/options/index.js +1 -0
  255. package/build/question/options/index.js.map +1 -1
  256. package/build/question/other.d.ts +9 -0
  257. package/build/question/other.d.ts.map +1 -1
  258. package/build/question/other.js +169 -8
  259. package/build/question/other.js.map +1 -1
  260. package/build/question/questionNames.d.ts +5 -1
  261. package/build/question/questionNames.d.ts.map +1 -1
  262. package/build/question/questionNames.js +4 -0
  263. package/build/question/questionNames.js.map +1 -1
  264. package/package.json +11 -9
  265. package/resource/package.nls.json +64 -42
  266. package/resource/yaml-schema/v1.5/yaml.schema.json +122 -1
  267. package/resource/yaml-schema/yaml.schema.json +122 -1
  268. package/templates/fallback/common.zip +0 -0
  269. package/templates/fallback/csharp.zip +0 -0
  270. package/templates/fallback/js.zip +0 -0
  271. package/templates/fallback/python.zip +0 -0
  272. package/templates/fallback/ts.zip +0 -0
@@ -136,7 +136,7 @@
136
136
  "plugins.appstudio.validateManifest.progressBar.message": "Validating manifest...",
137
137
  "plugins.appstudio.validateAppPackage.progressBar.message": "Validating app package...",
138
138
  "plugins.appstudio.adminPortal": "Go to admin portal",
139
- "plugins.appstudio.publishSucceedNotice.cli": "[%s] is published successfully to Admin Portal (%s). After approval, your app will be available for your organization. Learn more from %s.",
139
+ "plugins.appstudio.publishSucceedNotice.cli": "[%s] is published successfully to Admin Portal (%s). After approval, your app will be available for your organization. Get more info from %s.",
140
140
  "plugins.appstudio.updatePublihsedAppConfirm": "Do you want to submit a new update?",
141
141
  "plugins.appstudio.teamsAppCreatedNotice": "Teams app %s created successfully",
142
142
  "plugins.appstudio.teamsAppUpdatedLog": "Teams app %s updated successfully",
@@ -261,6 +261,9 @@
261
261
  "core.TabSPFxOption.detailNew": "Build UI with SharePoint Framework",
262
262
  "core.TabNonSso.label": "Basic Tab",
263
263
  "core.TabNonSso.detail": "A simple implementation of a web app that's ready to customize",
264
+ "core.copilotPlugin.api.noAuth": "None auth",
265
+ "core.copilotPlugin.api.apiKeyAuth": "API key auth(Bearer token auth)",
266
+ "core.copilotPlugin.api.oauth": "OAuth(Auth code flow)",
264
267
  "core.copilotPlugin.validate.apiSpec.summary": "Teams Toolkit has checked your OpenAPI description document:\n\nSummary:\n%s.\n%s\n%s",
265
268
  "core.copilotPlugin.validate.openAIPluginManifest.summary": "Teams Toolkit has checked your OpenAI plugin manifest:\n\nSummary:\n%s.\n%s\n%s",
266
269
  "core.copilotPlugin.validate.summary.validate.failed": "%s failed",
@@ -305,6 +308,10 @@
305
308
  "core.createProjectQuestion.projectType.customCopilot.label": "Custom Copilot",
306
309
  "core.createProjectQuestion.projectType.customCopilot.title": "App Features Using Teams AI Library",
307
310
  "core.createProjectQuestion.projectType.customCopilot.placeholder": "Select an option",
311
+ "core.createProjectQuestion.projectType.copilotHelp.label": "Don't know how to start? Use Github Copilot Chat",
312
+ "core.createProjectQuestion.projectType.copilotHelp.detail": "Chat with Github Copilot and get step-by-step instructions to develop your Teams app",
313
+ "core.createProjectQuestion.projectType.copilotGroup.title": "Use Copilot",
314
+ "core.createProjectQuestion.projectType.createGroup.title": "Create",
308
315
  "core.createProjectQuestion.title": "New Project",
309
316
  "core.createProjectQuestion.capability.botMessageExtension.label": "Start with a Bot",
310
317
  "core.createProjectQuestion.capability.botMessageExtension.detail": "Create a message extension using Bot Framework",
@@ -358,14 +365,16 @@
358
365
  "core.createProjectQuestion.OpenAIPluginDomain": "OpenAI Plugin Manifest",
359
366
  "core.createProjectQuestion.OpenAIPluginDomain.placeholder": "Enter your website domain or manifest URL",
360
367
  "core.createProjectQuestion.ApiKey": "Enter API Key in OpenAPI Description Document",
361
- "core.createProjectQuestion.ApiKeyConfirm": "Teams Toolkit will upload the API key to Teams Developer Portal. The API key will be used by Teams client to securely access your API in runtime when API-Based Message Extension is triggered. Teams Toolkit will not store your API key.",
368
+ "core.createProjectQuestion.ApiKeyConfirm": "Teams Toolkit will upload the API key to Teams Developer Portal. The API key will be used by Teams client to securely access your API in runtime. Teams Toolkit will not store your API key.",
369
+ "core.createProjectQuestion.OauthClientId": "Enter client id for OAuth registration in OpenAPI Description Document",
370
+ "core.createProjectQuestion.OauthClientSecret": "Enter client secret for OAuth registration in OpenAPI Description Document",
371
+ "core.createProjectQuestion.OauthClientSecretConfirm": "Teams Toolkit uploads the client id/secret for OAuth Registration to Teams Developer Portal. It is used by Teams client to securely access your API at runtime. Teams Toolkit doesn't store your client id/secret.",
362
372
  "core.createProjectQuestion.apiMessageExtensionAuth.title": "Authentication Type",
363
373
  "core.createProjectQuestion.apiMessageExtensionAuth.placeholder": "Select an authentication type",
364
374
  "core.createProjectQuestion.invalidApiKey.message": "Client secret is invalid. The length of secret should be >= 10 and <= 128",
365
375
  "core.createProjectQuestion.invalidUrl.message": "Enter a valid HTTP URL without authentication to access your OpenAPI description document.",
366
376
  "core.createProjectQuestion.apiSpec.operation.title": "Select Operation(s) Teams Can Interact with",
367
377
  "core.createProjectQuestion.apiSpec.copilotOperation.title": "Select Operation(s) Copilot Can Interact with",
368
- "core.createProjectQuestion.apiSpec.operation.placeholder": "GET/POST methods with at most 5 required parameter and no auth are listed",
369
378
  "core.createProjectQuestion.apiSpec.operation.apikey.placeholder": "GET/POST methods with at most 5 required parameter and API key are listed",
370
379
  "core.createProjectQuestion.apiSpec.operation.invalidMessage": "%s API(s) selected. You can select at least one and at most %s APIs.",
371
380
  "core.createProjectQuestion.apiSpec.operation.multipleAuth": "Your selected APIs have multiple authorizations %s which are not supported.",
@@ -395,11 +404,11 @@
395
404
  "core.createProjectQuestion.officeXMLAddin.excel.sso.detail": "Create an Excel add-in with Single Sign On capabilities",
396
405
  "core.createProjectQuestion.officeXMLAddin.excel.react.title": "Add-in with React Framework",
397
406
  "core.createProjectQuestion.officeXMLAddin.excel.react.detail": "Create an Excel add-in with React framework",
398
- "core.createProjectQuestion.officeXMLAddin.excel.cf.shared.title": "Excel Custom Functions Using a Shared Runtime",
407
+ "core.createProjectQuestion.officeXMLAddin.excel.cf.shared.title": "Excel Custom Functions Using Shared Runtime",
399
408
  "core.createProjectQuestion.officeXMLAddin.excel.cf.shared.detail": "Create an Excel add-in leveraging Custom Functions using a Shared Runtime",
400
- "core.createProjectQuestion.officeXMLAddin.excel.cf.js.title": "Excel Custom Functions Using a JavaScript-only Runtime",
409
+ "core.createProjectQuestion.officeXMLAddin.excel.cf.js.title": "Excel Custom Functions Using JavaScript-only Runtime",
401
410
  "core.createProjectQuestion.officeXMLAddin.excel.cf.js.detail": "Create an Excel add-in leveraging Custom Functions using a JavaScript-only Runtime",
402
- "core.createProjectQuestion.officeXMLAddin.excel.create.title": "Create an Excel Add-in",
411
+ "core.createProjectQuestion.officeXMLAddin.excel.create.title": "Create Excel Add-in",
403
412
  "core.createProjectQuestion.officeXMLAddin.powerpoint.title": "PowerPoint Add-in",
404
413
  "core.createProjectQuestion.officeXMLAddin.powerpoint.detail": "Build engaging solutions for presentations across platform",
405
414
  "core.createProjectQuestion.officeXMLAddin.powerpoint.sso.title": "Add-in with Single Sign On",
@@ -411,35 +420,35 @@
411
420
  "core.createProjectQuestion.officeXMLAddin.taskpane.detail": "Customize the Ribbon with a button and create a dashboard in the Task Pane",
412
421
  "core.createProjectQuestion.officeXMLAddin.manifestOnly.title": "Add-in Project With only Manifest File",
413
422
  "core.createProjectQuestion.officeXMLAddin.manifestOnly.detail": "Create an add-in project that includes only the manifest file",
414
- "core.aiAssistantBotOption.label": "AI Assistant Bot",
415
- "core.aiAssistantBotOption.detail": "A custom AI assistant bot in Teams using Teams AI library and OpenAI Assistants API",
423
+ "core.aiAssistantBotOption.label": "AI Agent Bot",
424
+ "core.aiAssistantBotOption.detail": "A custom AI Agent bot in Teams using Teams AI library and OpenAI Assistants API",
416
425
  "core.aiBotOption.label": "AI Chat Bot",
417
426
  "core.aiBotOption.detail": "A basic AI chat bot in Teams using Teams AI library",
418
427
  "core.spfxFolder.title": "SPFx solution folder",
419
- "core.spfxFolder.placeholder": "Select the folder that contains your SPFx solution",
428
+ "core.spfxFolder.placeholder": "Select the folder containing your SPFx solution",
420
429
  "core.QuestionSelectTargetEnvironment.title": "Select an environment",
421
430
  "core.getQuestionNewTargetEnvironmentName.title": "New environment name",
422
431
  "core.getQuestionNewTargetEnvironmentName.placeholder": "New environment name",
423
432
  "core.getQuestionNewTargetEnvironmentName.validation1": "Environment name can only contain letters, digits, _ and -.",
424
- "core.getQuestionNewTargetEnvironmentName.validation3": "Cannot create an environment '%s'",
433
+ "core.getQuestionNewTargetEnvironmentName.validation3": "Unable to create an environment '%s'",
425
434
  "core.getQuestionNewTargetEnvironmentName.validation4": "Unable to list env configs",
426
435
  "core.getQuestionNewTargetEnvironmentName.validation5": "Project environment %s already exists.",
427
436
  "core.QuestionSelectSourceEnvironment.title": "Select an environment to create copy",
428
437
  "core.QuestionSelectResourceGroup.title": "Select a resource group",
429
438
  "core.QuestionNewResourceGroupName.placeholder": "New resource group name",
430
439
  "core.QuestionNewResourceGroupName.title": "New resource group name",
431
- "core.QuestionNewResourceGroupName.validation": "The name can only contain alphanumeric characters or the symbols ._-()",
440
+ "core.QuestionNewResourceGroupName.validation": "The name can only contain alphanumeric characters or symbols ._-()",
432
441
  "core.QuestionNewResourceGroupLocation.title": "Location for the new resource group",
433
442
  "core.QuestionNewResourceGroupLocation.group.recommended": "Recommended",
434
443
  "core.QuestionNewResourceGroupLocation.group.others": "Others",
435
444
  "core.question.workspaceFolder.title": "Workspace Folder",
436
- "core.question.workspaceFolder.placeholder": "Select the folder that will contain your project root folder",
445
+ "core.question.workspaceFolder.placeholder": "Choose the folder where your project root folder will be located",
437
446
  "core.question.appName.title": "Application Name",
438
447
  "core.question.appName.placeholder": "Input an application name",
439
448
  "core.ScratchOptionYes.label": "Create a new app",
440
- "core.ScratchOptionYes.detail": "Use the Teams Toolkit to create a new Teams application.",
441
- "core.ScratchOptionNo.label": "Start from a sample",
442
- "core.ScratchOptionNo.detail": "Use an existing sample as a starting point for your new application.",
449
+ "core.ScratchOptionYes.detail": "Use the Teams Toolkit to create a new Teams app.",
450
+ "core.ScratchOptionNo.label": "Start with a sample",
451
+ "core.ScratchOptionNo.detail": "Start your new app with an existing sample.",
443
452
  "core.RuntimeOptionNodeJS.detail": "A fast JavaScript server runtime",
444
453
  "core.RuntimeOptionDotNet.detail": "Free. Cross-platform. Open Source.",
445
454
  "core.getRuntimeQuestion.title": "Teams Toolkit: select runtime for your app",
@@ -469,8 +478,8 @@
469
478
  "core.getUserEmailQuestion.validation2": "Change [UserName] to the real user name",
470
479
  "core.collaboration.error.failedToLoadDotEnvFile": "Unable to load your .env File. Reason: %s",
471
480
  "core.selectAadAppManifestQuestion.title": "Select Microsoft Entra manifest.json file",
472
- "core.selectTeamsAppManifestQuestion.title": "Select Teams manifest.json file",
473
- "core.selectTeamsAppPackageQuestion.title": "Select Teams app package file",
481
+ "core.selectTeamsAppManifestQuestion.title": "Select Teams manifest.json File",
482
+ "core.selectTeamsAppPackageQuestion.title": "Select Teams App Package File",
474
483
  "core.selectLocalTeamsAppManifestQuestion.title": "Select local Teams manifest.json file",
475
484
  "core.selectCollaborationAppTypeQuestion.title": "Select the app for which you want to manage collaborators",
476
485
  "core.selectValidateMethodQuestion.validate.selectTitle": "Select a validation method",
@@ -489,15 +498,15 @@
489
498
  "core.M365SsoLaunchPageOptionItem.detail": "A web app that uses Fluent UI React components to get a Teams look and feel",
490
499
  "core.M365SearchAppOptionItem.label": "Custom Search Results",
491
500
  "core.M365SearchAppOptionItem.detail": "Display data directly in Teams and Outlook search results from search or the chat area",
492
- "core.M365SearchAppOptionItem.copilot.detail": "Display data directly in Teams chat, Outlook email and Copilot response from search result",
501
+ "core.M365SearchAppOptionItem.copilot.detail": "Display data directly in Teams chat, Outlook email, and Copilot response from search results",
493
502
  "core.SearchAppOptionItem.detail": "Display data directly in Teams search results from search or the chat area",
494
503
  "core.M365HostQuestion.title": "Platform",
495
504
  "core.M365HostQuestion.placeholder": "Select a platform to preview the app",
496
505
  "core.options.separator.additional": "Additional features",
497
- "core.common.LifecycleComplete.prepareTeamsApp": "Successfully prepared Teams app.",
498
- "core.common.LifecycleComplete.provision": "Successfully executed %s/%s actions in provision stage.",
499
- "core.common.LifecycleComplete.deploy": "Successfully executed %s/%s actions in deploy stage.",
500
- "core.common.LifecycleComplete.publish": "Successfully executed %s/%s actions in publish stage.",
506
+ "core.common.LifecycleComplete.prepareTeamsApp": "Teams app prepared successfully.",
507
+ "core.common.LifecycleComplete.provision": "%s/%s actions in provision stage executed successfully.",
508
+ "core.common.LifecycleComplete.deploy": "%s/%s actions in deploy stage executed successfully.",
509
+ "core.common.LifecycleComplete.publish": "%s/%s actions in publish stage executed successfully.",
501
510
  "core.common.TeamsMobileDesktopClientName": "Teams desktop, mobile client id",
502
511
  "core.common.TeamsWebClientName": "Teams web client id",
503
512
  "core.common.OfficeDesktopClientName": "The Microsoft 365 app for desktop client id",
@@ -506,10 +515,11 @@
506
515
  "core.common.OutlookDesktopClientName": "Outlook desktop client id",
507
516
  "core.common.OutlookWebClientName1": "Outlook web access client id 1",
508
517
  "core.common.OutlookWebClientName2": "Outlook web access client id 2",
509
- "core.common.CancelledMessage": "Operation is cancelled.",
510
- "core.common.SwaggerNotSupported": "Swagger 2.0 is not supported. Please convert it to OpenAPI 3.0 first.",
511
- "core.common.SpecVersionNotSupported": "Unsupported OpenAPI version %s. Please use version 3.0.x.",
518
+ "core.common.CancelledMessage": "Operation is canceled.",
519
+ "core.common.SwaggerNotSupported": "Swagger 2.0 is not supported. Convert it to OpenAPI 3.0 first.",
520
+ "core.common.SpecVersionNotSupported": "OpenAPI version %s is not supported. Use version 3.0.x.",
512
521
  "core.common.NoServerInformation": "No server information is found in the OpenAPI description document.",
522
+ "core.common.CircularReferenceNotSupported": "Circular reference inside the OpenAPI description document is not supported",
513
523
  "core.common.RemoteRefNotSupported": "Remote reference is not supported: %s.",
514
524
  "core.common.MissingOperationId": "Missing operationIds: %s.",
515
525
  "core.common.NoSupportedApi": "No supported API found in the OpenAPI document.\nFor more information visit: \"https://aka.ms/build-api-based-message-extension\". \nReasons for API incompatibility are listed below:\n%s",
@@ -530,7 +540,6 @@
530
540
  "core.common.invalidReason.MethodNotAllowed": "method not allowed",
531
541
  "core.common.invalidReason.UrlPathNotExist": "url path does not exist",
532
542
  "core.common.invalidReason.NoAPIs": "No APIs were found in the OpenAPI description document.",
533
-
534
543
  "core.common.UrlProtocolNotSupported": "Server url is not correct: protocol %s is not supported, you should use https protocol instead.",
535
544
  "core.common.RelativeServerUrlNotSupported": "Server url is not correct: relative server url is not supported.",
536
545
  "core.common.ErrorFetchApiSpec": "Your OpenAPI description document should be accessible without authentication, otherwise download and start from a local copy.",
@@ -553,7 +562,8 @@
553
562
  "core.summary.actionSucceeded": "%s was executed successfully.",
554
563
  "core.summary.createdEnvFile": "Environment file was created at",
555
564
  "core.copilot.addAPI.success": "%s have(has) been successfully added to %s",
556
- "core.copilot.addAPI.InjectAPIKeyActionFailed": "Inject API key action to teamsapp.yaml file failed, please make sure that file contains teamsApp/create action in provision section.",
565
+ "core.copilot.addAPI.InjectAPIKeyActionFailed": "Inject API key action to teamsapp.yaml file unsuccessful, make sure the file contains teamsApp/create action in provision section.",
566
+ "core.copilot.addAPI.InjectOAuthActionFailed": "Inject OAuth action to teamsapp.yaml file unsuccessful, make sure the file contains teamsApp/create action in provision section.",
557
567
  "ui.select.LoadingOptionsPlaceholder": "Loading options ...",
558
568
  "ui.select.LoadingDefaultPlaceholder": "Loading default value ...",
559
569
  "error.aad.manifest.NameIsMissing": "name is missing\n",
@@ -582,7 +592,7 @@
582
592
  "plugins.bot.SomethingIsMissing": "%s is missing.",
583
593
  "plugins.bot.FailedToProvision": "Unable to provision %s.",
584
594
  "plugins.bot.FailedToUpdateConfigs": "Unable to update configs for %s",
585
- "plugins.bot.BotRegistrationNotFoundWith": "Bot registration was not found with botId %s. Click 'Get Help' button to learn more about how to check bot registrations.",
595
+ "plugins.bot.BotRegistrationNotFoundWith": "Bot registration was not found with botId %s. Click 'Get Help' button to get more info about how to check bot registrations.",
586
596
  "plugins.bot.BotResourceExists": "Bot resource already existed on %s, skip creating Bot resource.",
587
597
  "plugins.bot.FailRetrieveAzureCredentials": "Unable to retrieve Azure credentials.",
588
598
  "plugins.bot.ProvisionBotRegistration": "Provisioning bot registration.",
@@ -591,30 +601,30 @@
591
601
  "plugins.bot.AppStudioBotRegistration": "Developer Portal bot registration",
592
602
  "plugins.function.getTemplateFromLocal": "Unable to get newest template from github, trying to use the local template.",
593
603
  "error.depChecker.DefaultErrorMessage": "Install the required dependencies manually.",
594
- "depChecker.learnMoreButtonText": "Learn more",
604
+ "depChecker.learnMoreButtonText": "Get more info",
595
605
  "depChecker.needInstallNpm": "You must have NPM installed to debug your local functions.",
596
606
  "depChecker.failToValidateFuncCoreTool": "Unable to validate Azure Functions Core Tools after installation.",
597
- "depChecker.symlinkDirAlreadyExist": "The destination of the symlink (%s) already exists, please remove it and try again.",
598
- "depChecker.portableFuncNodeNotMatched": "Your Node.js (@NodeVersion) is incompatible with Teams Toolkit Azure Functions Core Tools (@FuncVersion).",
599
- "depChecker.invalidFuncVersion": "The format of version %s is invalid.",
600
- "depChecker.noSentinelFile": "Azure Functions Core Tools installation is incomplete.",
607
+ "depChecker.symlinkDirAlreadyExist": "Symlink (%s) destination already exists, remove it and try again.",
608
+ "depChecker.portableFuncNodeNotMatched": "Your Node.js (@NodeVersion) is not compatible with Teams Toolkit Azure Functions Core Tools (@FuncVersion).",
609
+ "depChecker.invalidFuncVersion": "Version %s format is invalid.",
610
+ "depChecker.noSentinelFile": "Azure Functions Core Tools installation is unsuccessful.",
601
611
  "depChecker.funcVersionNotMatch": "The version of Azure Functions Core Tools (%s) is not compatible with the specified version range (%s).",
602
- "depChecker.finishInstallBicep": "Successfully installed @NameVersion.",
603
- "depChecker.downloadDotnet": "Downloading and installing the portable version of @NameVersion, which will be installed to @InstallDir and will not affect your environment.",
612
+ "depChecker.finishInstallBicep": "@NameVersion installed successfully.",
613
+ "depChecker.downloadDotnet": "Downloading and installing the portable version of @NameVersion, which will be installed to @InstallDir and won't affect your environment.",
604
614
  "depChecker.downloadBicep": "Downloading and installing the portable version of @NameVersion, which will be installed to @InstallDir and will not affect your environment.",
605
- "depChecker.finishInstallDotnet": "Successfully installed @NameVersion.",
615
+ "depChecker.finishInstallDotnet": "@NameVersion installed successfully.",
606
616
  "depChecker.useGlobalDotnet": "Using dotnet from PATH:",
607
617
  "depChecker.dotnetInstallStderr": "dotnet-install command failed without error exit code but with non-empty standard error.",
608
618
  "depChecker.dotnetInstallErrorCode": "dotnet-install command failed.",
609
619
  "depChecker.NodeNotFound": "Cannot find Node.js. The supported node versions are specified in the package.json. Go to %s to install a supported Node.js. Restart all your Visual Studio Code instances after the installation is finished.",
610
620
  "depChecker.V3NodeNotSupported": "Node.js (%s) is not the officially supported version (%s). Your project may continue to work but we recommend to install the supported version. The supported node versions are specified in the package.json. Go to %s to install a supported Node.js.",
611
621
  "depChecker.NodeNotLts": "Node.js (%s) is not a LTS version (%s). Go to %s to install a LTS Node.js.",
612
- "depChecker.dotnetNotFound": "Cannot find @NameVersion. For the details why .NET SDK is needed, refer to @HelpLink",
613
- "depChecker.depsNotFound": "Cannot find @SupportedPackages.\n\nTeams Toolkit requires these dependencies.\n\nClick \"Install\" to install @InstallPackages.",
614
- "depChecker.linuxDepsNotFound": "Cannot find @SupportedPackages. Install @SupportedPackages manually and restart Visual Studio Code.",
615
- "depChecker.linuxDepsNotFoundHelpLinkMessage": "Cannot find @SupportedPackages.\n\nTeams Toolkit requires these dependencies.",
622
+ "depChecker.dotnetNotFound": "Unable to find @NameVersion. To know why .NET SDK is needed, refer @HelpLink",
623
+ "depChecker.depsNotFound": "Unable to find @SupportedPackages.\n\nTeams Toolkit requires these dependencies.\n\nClick \"Install\" to install @InstallPackages.",
624
+ "depChecker.linuxDepsNotFound": "Unable to find @SupportedPackages. Install @SupportedPackages manually and restart Visual Studio Code.",
625
+ "depChecker.linuxDepsNotFoundHelpLinkMessage": "Unable to find @SupportedPackages.\n\nTeams Toolkit requires these dependencies.",
616
626
  "depChecker.failToDownloadFromUrl": "Unable to download file from '@Url', HTTP status '@Status'.",
617
- "depChecker.failToValidateVxTestAppInstallOptions": "Invalid argument for video extensibility test app prerequisites checker. Please check tasks.json file.",
627
+ "depChecker.failToValidateVxTestAppInstallOptions": "Invalid argument for video extensibility test app prerequisites checker. Please review tasks.json file to ensure all arguments are correctly formatted and valid.",
618
628
  "depChecker.failToValidateVxTestApp": "Unable to validate video extensibility test app after installation.",
619
629
  "depChecker.testToolVersionNotMatch": "The version of Teams App Test Tool (%s) is not compatible with the specified version range (%s).",
620
630
  "depChecker.failedToValidateTestTool": "Unable to validate Teams App Test Tool after installation. %s",
@@ -848,5 +858,17 @@
848
858
  "driver.apiKey.error.domainInvalid": "Domain is invalid. Domain for API key should follow: 1. Max %d domain per API key. 2. Use comma to separate domains",
849
859
  "driver.apiKey.error.failedToGetDomain": "Failed to get domain from API specification. Please make sure your API specification is valid.",
850
860
  "driver.apiKey.log.successCreateApiKey": "Created API key with id %s",
851
- "driver.apiKey.log.failedExecuteDriver": "Unable to execute action %s. Error message: %s"
861
+ "driver.apiKey.log.failedExecuteDriver": "Unable to execute action %s. Error message: %s",
862
+ "driver.oauth.description.create": "Create an OAuth registration on Developer Portal for authentication in Open API spec.",
863
+ "driver.oauth.title.create": "Creating OAuth registration...",
864
+ "driver.oauth.log.skipCreateOauth": "Environment variable %s exists. Skip creating API key.",
865
+ "driver.oauth.log.oauthNotFound": "Environment variable %s exists but unable to retrieve OAuth registration from Developer Portal. Check manually if it exists.",
866
+ "driver.oauth.error.nameTooLong": "The OAuth name is too long. The maximum character length is 128.",
867
+ "driver.oauth.log.successCreateOauth": "OAuth registration created successfully with id %s!",
868
+ "driver.oauth.error.domainInvalid": "Maximum %d domains allowed per OAuth registration.",
869
+ "driver.apiKey.error.oauthAuthInfoInvalid": "Unable to parse OAuth2 authScheme from spec. Make sure your API specification is valid.",
870
+ "driver.oauth.log.skipUpdateOauth": "Skip updating OAuth registration as the same property exists.",
871
+ "driver.oauth.confirm.update": "The following parameters will be updated:\n%s\nDo you want to continue?",
872
+ "driver.oauth.log.successUpdateOauth": "OAuth registration updated successfully!",
873
+ "driver.oauth.info.update": "OAuth registration updated successfully! The following parameters have been updated:\n%s"
852
874
  }
@@ -73,7 +73,9 @@
73
73
  { "$ref": "#/definitions/script" },
74
74
  { "$ref": "#/definitions/apiKeyRegister"},
75
75
  { "$ref": "#/definitions/azureStaticWebAppGetDeploymentKey"},
76
- { "$ref": "#/definitions/apiKeyUpdate"}
76
+ { "$ref": "#/definitions/apiKeyUpdate"},
77
+ { "$ref": "#/definitions/oauthRegister"},
78
+ { "$ref": "#/definitions/oauthUpdate"}
77
79
  ]
78
80
  }
79
81
  },
@@ -1658,6 +1660,125 @@
1658
1660
  }
1659
1661
  }
1660
1662
  }
1663
+ },
1664
+ "oauthRegister": {
1665
+ "type": "object",
1666
+ "additionalProperties": false,
1667
+ "description": "Create an OAuth registration.",
1668
+ "required": ["uses", "with", "writeToEnvironmentFile"],
1669
+ "properties": {
1670
+ "uses": {
1671
+ "type": "string",
1672
+ "description": "Register OAuth registration. Refer to https://aka.ms/teamsfx-actions/oauth-register for more details.",
1673
+ "const": "oauth/register"
1674
+ },
1675
+ "with": {
1676
+ "type": "object",
1677
+ "additionalProperties": false,
1678
+ "description": "Parameters for this action",
1679
+ "required": ["name", "appId", "apiSpecPath", "flow"],
1680
+ "properties": {
1681
+ "name": {
1682
+ "type": "string",
1683
+ "description": "The name of OAuth registration."
1684
+ },
1685
+ "appId": {
1686
+ "type": "string",
1687
+ "description": "The app ID of OAuth registration."
1688
+ },
1689
+ "apiSpecPath": {
1690
+ "type": "string",
1691
+ "description": "The path of API specification file."
1692
+ },
1693
+ "applicableToApps": {
1694
+ "type": "string",
1695
+ "description": "Which app can access the OAuth registration? Values can be \"SpecificApp\" or \"AnyApp\". Default is \"AnyApp\".",
1696
+ "enum": ["SpecificApp", "AnyApp"]
1697
+ },
1698
+ "targetAudience": {
1699
+ "type": "string",
1700
+ "description": "Which tenant can access the OAuth registration? Values can be \"HomeTenant\" or \"AnyTenant\". Default is \"AnyTenant\".",
1701
+ "enum": ["HomeTenant", "AnyTenant"]
1702
+ },
1703
+ "flow": {
1704
+ "type": "string",
1705
+ "description": "The flow of OAuth registration. Values can be \"authorizationCode\" .",
1706
+ "enum": ["authorizationCode"]
1707
+ },
1708
+ "clientId": {
1709
+ "type": "string",
1710
+ "description": "The client id of OAuth registration."
1711
+ },
1712
+ "clientSecret": {
1713
+ "type": "string",
1714
+ "description": "The client secret of OAuth registration."
1715
+ },
1716
+ "refreshUrl": {
1717
+ "type": "string",
1718
+ "description": "The refresh url of OAuth registration."
1719
+ }
1720
+ }
1721
+ },
1722
+ "writeToEnvironmentFile": {
1723
+ "type": "object",
1724
+ "additionalProperties": false,
1725
+ "description": "Write environment variables to environment file",
1726
+ "required": ["configurationId"],
1727
+ "properties": {
1728
+ "configurationId": {
1729
+ "description": "Required. The configuration id of created OAuth registration.",
1730
+ "$ref": "#/definitions/envVarName"
1731
+ }
1732
+ }
1733
+ }
1734
+ }
1735
+ },
1736
+ "oauthUpdate": {
1737
+ "type": "object",
1738
+ "additionalProperties": false,
1739
+ "description": "Update an OAuth registration.",
1740
+ "required": ["uses", "with"],
1741
+ "properties": {
1742
+ "uses": {
1743
+ "type": "string",
1744
+ "description": "Updagte OAuth registration. Refer to https://aka.ms/teamsfx-actions/oauth-update for more details.",
1745
+ "const": "oauth/update"
1746
+ },
1747
+ "with": {
1748
+ "type": "object",
1749
+ "additionalProperties": false,
1750
+ "description": "Parameters for this action",
1751
+ "required": ["name", "appId", "apiSpecPath", "configurationId"],
1752
+ "properties": {
1753
+ "name": {
1754
+ "type": "string",
1755
+ "description": "The name of OAuth registration."
1756
+ },
1757
+ "appId": {
1758
+ "type": "string",
1759
+ "description": "The app ID of OAuth registration."
1760
+ },
1761
+ "apiSpecPath": {
1762
+ "type": "string",
1763
+ "description": "The path of API specification file."
1764
+ },
1765
+ "configurationId": {
1766
+ "type": "string",
1767
+ "description": "The configuration id of OAuth registration."
1768
+ },
1769
+ "applicableToApps": {
1770
+ "type": "string",
1771
+ "description": "Which app can access the OAuth registration? Values can be \"SpecificApp\" or \"AnyApp\". Default is \"AnyApp\".",
1772
+ "enum": ["SpecificApp", "AnyApp"]
1773
+ },
1774
+ "targetAudience": {
1775
+ "type": "string",
1776
+ "description": "Which tenant can access the OAuth registration? Values can be \"HomeTenant\" or \"AnyTenant\". Default is \"AnyTenant\".",
1777
+ "enum": ["HomeTenant", "AnyTenant"]
1778
+ }
1779
+ }
1780
+ }
1781
+ }
1661
1782
  }
1662
1783
  }
1663
1784
  }
@@ -73,7 +73,9 @@
73
73
  { "$ref": "#/definitions/script" },
74
74
  { "$ref": "#/definitions/apiKeyRegister"},
75
75
  { "$ref": "#/definitions/azureStaticWebAppGetDeploymentKey"},
76
- { "$ref": "#/definitions/apiKeyUpdate"}
76
+ { "$ref": "#/definitions/apiKeyUpdate"},
77
+ { "$ref": "#/definitions/oauthRegister"},
78
+ { "$ref": "#/definitions/oauthUpdate"}
77
79
  ]
78
80
  }
79
81
  },
@@ -1658,6 +1660,125 @@
1658
1660
  }
1659
1661
  }
1660
1662
  }
1663
+ },
1664
+ "oauthRegister": {
1665
+ "type": "object",
1666
+ "additionalProperties": false,
1667
+ "description": "Create an OAuth registration.",
1668
+ "required": ["uses", "with", "writeToEnvironmentFile"],
1669
+ "properties": {
1670
+ "uses": {
1671
+ "type": "string",
1672
+ "description": "Register OAuth registration. Refer to https://aka.ms/teamsfx-actions/oauth-register for more details.",
1673
+ "const": "oauth/register"
1674
+ },
1675
+ "with": {
1676
+ "type": "object",
1677
+ "additionalProperties": false,
1678
+ "description": "Parameters for this action",
1679
+ "required": ["name", "appId", "apiSpecPath", "flow"],
1680
+ "properties": {
1681
+ "name": {
1682
+ "type": "string",
1683
+ "description": "The name of OAuth registration."
1684
+ },
1685
+ "appId": {
1686
+ "type": "string",
1687
+ "description": "The app ID of OAuth registration."
1688
+ },
1689
+ "apiSpecPath": {
1690
+ "type": "string",
1691
+ "description": "The path of API specification file."
1692
+ },
1693
+ "applicableToApps": {
1694
+ "type": "string",
1695
+ "description": "Which app can access the OAuth registration? Values can be \"SpecificApp\" or \"AnyApp\". Default is \"AnyApp\".",
1696
+ "enum": ["SpecificApp", "AnyApp"]
1697
+ },
1698
+ "targetAudience": {
1699
+ "type": "string",
1700
+ "description": "Which tenant can access the OAuth registration? Values can be \"HomeTenant\" or \"AnyTenant\". Default is \"AnyTenant\".",
1701
+ "enum": ["HomeTenant", "AnyTenant"]
1702
+ },
1703
+ "flow": {
1704
+ "type": "string",
1705
+ "description": "The flow of OAuth registration. Values can be \"authorizationCode\" .",
1706
+ "enum": ["authorizationCode"]
1707
+ },
1708
+ "clientId": {
1709
+ "type": "string",
1710
+ "description": "The client id of OAuth registration."
1711
+ },
1712
+ "clientSecret": {
1713
+ "type": "string",
1714
+ "description": "The client secret of OAuth registration."
1715
+ },
1716
+ "refreshUrl": {
1717
+ "type": "string",
1718
+ "description": "The refresh url of OAuth registration."
1719
+ }
1720
+ }
1721
+ },
1722
+ "writeToEnvironmentFile": {
1723
+ "type": "object",
1724
+ "additionalProperties": false,
1725
+ "description": "Write environment variables to environment file",
1726
+ "required": ["configurationId"],
1727
+ "properties": {
1728
+ "configurationId": {
1729
+ "description": "Required. The configuration id of created OAuth registration.",
1730
+ "$ref": "#/definitions/envVarName"
1731
+ }
1732
+ }
1733
+ }
1734
+ }
1735
+ },
1736
+ "oauthUpdate": {
1737
+ "type": "object",
1738
+ "additionalProperties": false,
1739
+ "description": "Update an OAuth registration.",
1740
+ "required": ["uses", "with"],
1741
+ "properties": {
1742
+ "uses": {
1743
+ "type": "string",
1744
+ "description": "Updagte OAuth registration. Refer to https://aka.ms/teamsfx-actions/oauth-update for more details.",
1745
+ "const": "oauth/update"
1746
+ },
1747
+ "with": {
1748
+ "type": "object",
1749
+ "additionalProperties": false,
1750
+ "description": "Parameters for this action",
1751
+ "required": ["name", "appId", "apiSpecPath", "configurationId"],
1752
+ "properties": {
1753
+ "name": {
1754
+ "type": "string",
1755
+ "description": "The name of OAuth registration."
1756
+ },
1757
+ "appId": {
1758
+ "type": "string",
1759
+ "description": "The app ID of OAuth registration."
1760
+ },
1761
+ "apiSpecPath": {
1762
+ "type": "string",
1763
+ "description": "The path of API specification file."
1764
+ },
1765
+ "configurationId": {
1766
+ "type": "string",
1767
+ "description": "The configuration id of OAuth registration."
1768
+ },
1769
+ "applicableToApps": {
1770
+ "type": "string",
1771
+ "description": "Which app can access the OAuth registration? Values can be \"SpecificApp\" or \"AnyApp\". Default is \"AnyApp\".",
1772
+ "enum": ["SpecificApp", "AnyApp"]
1773
+ },
1774
+ "targetAudience": {
1775
+ "type": "string",
1776
+ "description": "Which tenant can access the OAuth registration? Values can be \"HomeTenant\" or \"AnyTenant\". Default is \"AnyTenant\".",
1777
+ "enum": ["HomeTenant", "AnyTenant"]
1778
+ }
1779
+ }
1780
+ }
1781
+ }
1661
1782
  }
1662
1783
  }
1663
1784
  }
Binary file
Binary file
Binary file
Binary file
Binary file