/** * @author Huajie Zhang */ import { IBot, IComposeExtension, IConfigurableTab, IStaticTab } from "@microsoft/teamsfx-api"; export declare const STATIC_TABS_TPL_V3: IStaticTab[]; export declare const CONFIGURABLE_TABS_TPL_V3: IConfigurableTab[]; export declare const CONFIGURABLE_TABS_TPL_V4: IConfigurableTab[]; export declare function getConfigurableTabsTplBasedOnVersion(version: string): IConfigurableTab[]; export declare const BOTS_TPL_FOR_COMMAND_AND_RESPONSE_V3: IBot[]; export declare const BOTS_TPL_FOR_COMMAND_AND_RESPONSE_V4: IBot[]; export declare function getBotsTplForCommandAndResponseBasedOnVersion(version: string): IBot[]; export declare const BOTS_TPL_FOR_NOTIFICATION_V3: IBot[]; export declare const BOTS_TPL_FOR_NOTIFICATION_V4: IBot[]; export declare function getBotsTplForNotificationBasedOnVersion(version: string): IBot[]; export declare const BOTS_TPL_V3: IBot[]; export declare const BOTS_TPL_V4: IBot[]; export declare function getBotsTplBasedOnVersion(version: string): IBot[]; export declare const COMPOSE_EXTENSIONS_TPL_M365_V3: IComposeExtension[]; export declare const COMPOSE_EXTENSIONS_TPL_V3: IComposeExtension[]; export declare const WEB_APPLICATION_INFO_V3: { id: string; resource: string; }; export declare class Constants { static readonly MANIFEST_FILE = "manifest.json"; static readonly PLUGIN_NAME = "AppStudioPlugin"; static readonly BUILD_OR_PUBLISH_QUESTION = "build-or-publish"; static readonly INCLUDE_APP_MANIFEST = "include-app-manifest"; static readonly DEVELOPER_PORTAL_APP_PACKAGE_URL = "https://dev.teams.microsoft.com/apps/%s/app-package-editor?login_hint=%s"; static readonly PUBLISH_GUIDE = "https://aka.ms/teamsfx-publish"; static readonly TEAMS_ADMIN_PORTAL = "https://aka.ms/teamsfx-mtac"; static readonly TEAMS_MANAGE_APP_DOC = "https://aka.ms/teamsfx-mtac-doc"; static readonly TEAMS_APP_ID = "teamsAppId"; static readonly TEAMS_APP_UPDATED_AT = "teamsAppUpdatedAt"; static readonly TEAMS_APP_ID_ENV = "TEAMS_APP_ID"; static readonly PERMISSIONS: { name: string; noPermission: string; admin: string; operative: string; type: string; }; static readonly CORRELATION_ID = "x-correlation-id"; } export declare class ErrorMessages { static readonly GetConfigError: (configName: string, plugin: string) => string; static readonly GrantPermissionFailed = "Response is empty or user is not added."; static readonly TeamsAppNotFound: (teamsAppId: string) => string; } export declare class APP_STUDIO_API_NAMES { static readonly CREATE_APP = "create-app"; static readonly CREATE_AAD_APP = "create-aad-app"; static readonly GET_APP = "get-app"; static readonly LIST_APPS = "list-app"; static readonly DELETE_APP = "delete-app"; static readonly PUBLISH_APP = "publish-app"; static readonly GET_PUBLISHED_APP = "get-published-app"; static readonly UPDATE_PUBLISHED_APP = "update-published-app"; static readonly UPDATE_OWNER = "update-owner"; static readonly EXISTS_IN_TENANTS = "exists-in-tenant"; static readonly GET_APP_PACKAGE = "get-app-package"; static readonly VALIDATE_APP_PACKAGE = "validate-app-package"; static readonly CREATE_BOT = "create-bot"; static readonly GET_BOT = "get-bot"; static readonly LIST_BOT = "list-bot"; static readonly DELETE_BOT = "delete-bot"; static readonly UPDATE_BOT = "update-bot"; static readonly CREATE_API_KEY = "create-api-key"; static readonly UPDATE_API_KEY = "update-api-key"; static readonly GET_API_KEY = "get-api-key"; static readonly SUBMIT_APP_VALIDATION = "submit-app-validation"; static readonly GET_APP_VALIDATION_RESULT = "get-app-validation-result"; static readonly GET_APP_VALIDATION_REQUESTS = "get-app-validation-requests"; static readonly GET_OAUTH = "get-oauth"; static readonly CREATE_OAUTH = "create-oauth"; static readonly UPDATE_OAUTH = "update-oauth"; static readonly CHECK_SIDELOADING_STATUS = "check-sideloading-status"; } export declare class GRAPH_API_NAMES { static readonly PUBLISH_APP = "graph-publish-app"; static readonly GET_PUBLISHED_APP = "graph-get-published-app"; static readonly UPDATE_PUBLISHED_APP = "graph-update-published-app"; } /** * Config keys that are useful for generating remote app manifest */ export declare const MANIFEST_TEMPLATE_CONSOLIDATE = "manifest.template.json"; export declare const COLOR_TEMPLATE = "plugins/resource/appstudio/defaultIcon.png"; export declare const OUTLINE_TEMPLATE = "plugins/resource/appstudio/defaultOutline.png"; export declare const DEFAULT_COLOR_PNG_FILENAME = "color.png"; export declare const DEFAULT_OUTLINE_PNG_FILENAME = "outline.png"; export declare const DEFAULT_DEVELOPER: { name: string; websiteUrl: string; privacyUrl: string; termsOfUseUrl: string; }; export declare const DEFAULT_DESCRIPTION: { short: string; full: string; }; export declare const BOTS_TPL_EXISTING_APP: IBot[]; export declare const BOTS_TPL_EXISTING_APP_V2: IBot[]; export declare function getBotsTplExistingAppBasedOnVersion(version: string): IBot[]; export declare const COMPOSE_EXTENSIONS_TPL_EXISTING_APP: IComposeExtension[]; export declare const CONFIGURABLE_TABS_TPL_EXISTING_APP: IConfigurableTab[]; export declare const CONFIGURABLE_TABS_TPL_EXISTING_APP_V2: IConfigurableTab[]; export declare function getConfigurableTabsTplExistingAppBasedOnVersion(version: string): IConfigurableTab[]; export declare const STATIC_TABS_TPL_EXISTING_APP: IStaticTab[]; export declare const TEAMS_APP_SHORT_NAME_MAX_LENGTH = 30; export declare const STATIC_TABS_MAX_ITEMS = 16; export declare const CEHCK_VALIDATION_RESULTS_INTERVAL_SECONDS = 60; /** * Language codes. */ export declare const supportedLanguageCodes: string[]; export declare const GeneralValidationErrorId = "693c7aa7-4d76-40ec-8282-06410f5d1f76"; export declare const EmbeddedKnowledgeLocalDirectoryName = "EmbeddedKnowledge"; //# sourceMappingURL=constants.d.ts.map