Files
powerpoint-toolbox/node_modules/@microsoft/m365-spec-parser/dist/src/manifestUpdater.d.ts
T
2025-03-07 19:22:02 +01:00

16 lines
1.7 KiB
TypeScript

import { OpenAPIV3 } from "openapi-types";
import { AuthInfo, ExistingPluginManifestInfo, ParseOptions, WarningResult } from "./interfaces";
import { IMessagingExtensionCommand, TeamsAppManifest, PluginManifestSchema } from "@microsoft/teams-manifest";
export declare class ManifestUpdater {
static updateManifestWithAiPlugin(manifestPath: string, outputSpecPath: string, apiPluginFilePath: string, spec: OpenAPIV3.Document, options: ParseOptions, authInfo?: AuthInfo, existingPluginManifestInfo?: ExistingPluginManifestInfo): Promise<[TeamsAppManifest, PluginManifestSchema, WarningResult[]]>;
static updateManifestDescription(manifest: TeamsAppManifest, spec: OpenAPIV3.Document): void;
static checkSchema(schema: OpenAPIV3.SchemaObject, method: string, pathUrl: string): void;
static generatePluginManifestSchema(spec: OpenAPIV3.Document, specRelativePath: string, apiPluginFilePath: string, appName: string, authInfo: AuthInfo | undefined, options: ParseOptions, existingPluginManifestInfo?: ExistingPluginManifestInfo): Promise<[PluginManifestSchema, WarningResult[]]>;
static updateManifest(manifestPath: string, outputSpecPath: string, spec: OpenAPIV3.Document, options: ParseOptions, adaptiveCardFolder?: string, authInfo?: AuthInfo): Promise<[TeamsAppManifest, WarningResult[]]>;
static generateCommands(spec: OpenAPIV3.Document, manifestPath: string, options: ParseOptions, adaptiveCardFolder?: string): Promise<[IMessagingExtensionCommand[], WarningResult[]]>;
static getRelativePath(from: string, to: string): string;
static removeEnvs(str: string): string;
static removeAllSpecialCharacters(str: string): string;
static getConfirmationBodyItem(paramName: string): string;
}