export interface TeamsManifestV1D2 { $schema?: string; /** * The version of the schema this manifest is using. */ manifestVersion: string; /** * The version of the app. Changes to your manifest should cause a version change. This * version string must follow the semver standard (http://semver.org). */ version: string; /** * A unique identifier for this app. This id must be a GUID. */ id: string; /** * A unique identifier for this app in reverse domain notation. E.g: com.example.myapp */ packageName: string; developer: Developer; name: Name; description: Description; icons: Icons; /** * A color to use in conjunction with the icon. The value must be a valid HTML color code * starting with '#', for example `#4464ee`. */ accentColor: string; /** * These are tabs users can optionally add to their channels and require extra configuration * before they are added. Configurable tabs are not supported in the personal scope. * Currently only one configurable tab per app is supported. */ configurableTabs?: ConfigurableTab[]; /** * A set of tabs that may be 'pinned' by default, without the user adding them manually. * Static tabs declared in personal scope are always pinned to the app's personal * experience. Static tabs do not currently support the 'teams' scope. */ staticTabs?: StaticTab[]; /** * The set of bots for this app. Currently only one bot per app is supported. */ bots?: Bot[]; /** * The set of Office365 connectors for this app. Currently only one connector per app is * supported. */ connectors?: Connector[]; /** * The set of compose extensions for this app. Currently only one compose extension per app * is supported. */ composeExtensions?: ComposeExtension[]; /** * Specifies the permissions the app requests from users. */ permissions?: Permission[]; /** * A list of valid domains from which the tabs expect to load any content. Domain listings * can include wildcards, for example `*.example.com`. If your tab configuration or content * UI needs to navigate to any other domain besides the one use for tab configuration, that * domain must be specified here. */ validDomains?: string[]; } export interface Bot { /** * The Microsoft App ID specified for the bot in the Bot Framework portal * (https://dev.botframework.com/bots) */ botId: string; /** * This value describes whether or not the bot utilizes a user hint to add the bot to a * specific channel. */ needsChannelSelector?: boolean; /** * A value indicating whether or not the bot is a one-way notification only bot, as opposed * to a conversational bot. */ isNotificationOnly?: boolean; /** * Specifies whether the bot offers an experience in the context of a channel in a team, or * an experience scoped to an individual user alone. These options are non-exclusive. */ scopes: CommandListScope[]; /** * The list of commands that the bot supplies, including their usage, description, and the * scope for which the commands are valid. A seperate command list should be used for each * scope. */ commandLists?: CommandList[]; } export interface CommandList { /** * Specifies the scopes for which the command list is valid */ scopes: CommandListScope[]; commands: CommandListCommand[]; } export interface CommandListCommand { /** * The bot command name */ title: string; /** * A simple text description or an example of the command syntax and its arguments. */ description: string; } export type CommandListScope = "team" | "personal"; export interface ComposeExtension { /** * The Microsoft App ID specified for the bot powering the compose extension in the Bot * Framework portal (https://dev.botframework.com/bots) */ botId: string; /** * A value indicating whether the configuration of a compose extension can be updated by the * user. */ canUpdateConfiguration?: boolean; commands: ComposeExtensionCommand[]; } export interface ComposeExtensionCommand { /** * Id of the command. */ id: string; /** * Title of the command. */ title: string; /** * Description of the command. */ description?: string; /** * A boolean value that indicates if the command should be run once initially with no * parameter. */ initialRun?: boolean; parameters: Parameter[]; } export interface Parameter { /** * Name of the parameter. */ name: string; /** * Title of the parameter. */ title: string; /** * Description of the parameter. */ description?: string; } export interface ConfigurableTab { /** * The url to use when configuring the tab. */ configurationUrl: string; /** * A value indicating whether an instance of the tab's configuration can be updated by the * user after creation. */ canUpdateConfiguration?: boolean; /** * Specifies whether the tab offers an experience in the context of a channel in a team, or * an experience scoped to an individual user alone. These options are non-exclusive. * Currently, configurable tabs are only supported in the teams scope. */ scopes: "team"[]; } export interface Connector { /** * A unique identifier for the connector which matches its ID in the Connectors Developer * Portal. */ connectorId: string; /** * Specifies whether the connector offers an experience in the context of a channel in a * team, or an experience scoped to an individual user alone. Currently, only the team scope * is supported. */ scopes: "team"[]; } export interface Description { /** * A short description of the app used when space is limited. Maximum length is 80 * characters. */ short: string; /** * The full description of the app. Maximum length is 4000 characters. */ full: string; } export interface Developer { /** * The display name for the developer. */ name: string; /** * The url to the page that provides support information for the app. */ websiteUrl: string; /** * The url to the page that provides privacy information for the app. */ privacyUrl: string; /** * The url to the page that provides the terms of use for the app. */ termsOfUseUrl: string; } export interface Icons { /** * A relative file path to a transparent PNG outline icon. The border color needs to be * white. Size 20x20. */ outline: string; /** * A relative file path to a full color PNG icon. Size 96x96. */ color: string; } export interface Name { /** * A short display name for the app. */ short: string; /** * The full name of the app, used if the full app name exceeds 30 characters. */ full?: string; } export type Permission = "identity" | "messageTeamMembers"; export interface StaticTab { /** * A unique identifier for the entity which the tab displays. */ entityId: string; /** * The display name of the tab. */ name: string; /** * The url which points to the entity UI to be displayed in the Teams canvas. */ contentUrl: string; /** * The url to point at if a user opts to view in a browser. */ websiteUrl?: string; /** * Specifies whether the tab offers an experience in the context of a channel in a team, or * an experience scoped to an individual user alone. These options are non-exclusive. * Currently static tabs are only supported in the 'personal' scope. */ scopes: CommandListScope[]; } export declare class Convert { static toTeamsManifestV1D2(json: string): TeamsManifestV1D2; static teamsManifestV1D2ToJson(value: TeamsManifestV1D2): string; }