@microsoft/m365-spec-parser 0.2.7-alpha.84d482fe0.0 → 0.2.7-alpha.860281dbb.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.
@@ -1768,11 +1768,17 @@ function inferProperties(card) {
1768
1768
 
1769
1769
  // Copyright (c) Microsoft Corporation.
1770
1770
  class ManifestUpdater {
1771
+ static useCopilotExtensionsInSchema(manifest) {
1772
+ return __awaiter(this, void 0, void 0, function* () {
1773
+ const schema = yield appManifest.AppManifestUtils.fetchSchema(manifest.$schema);
1774
+ return !!schema.properties.copilotExtensions;
1775
+ });
1776
+ }
1771
1777
  static updateManifestWithAiPlugin(manifestPath, outputSpecPath, apiPluginFilePath, spec, options, authMap, existingPluginManifestInfo) {
1772
1778
  return __awaiter(this, void 0, void 0, function* () {
1773
1779
  const manifest = yield fs__default['default'].readJSON(manifestPath);
1774
1780
  const apiPluginRelativePath = ManifestUpdater.getRelativePath(manifestPath, apiPluginFilePath);
1775
- const useCopilotExtensionsInSchema = yield appManifest.ManifestUtil.useCopilotExtensionsInSchema(manifest);
1781
+ const useCopilotExtensionsInSchema = yield this.useCopilotExtensionsInSchema(manifest);
1776
1782
  if (manifest.copilotExtensions || useCopilotExtensionsInSchema) {
1777
1783
  manifest.copilotExtensions = manifest.copilotExtensions || {};
1778
1784
  if (!options.isGptPlugin) {