Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/teams-manifest

Package Overview
Dependencies
Maintainers
4
Versions
1016
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/teams-manifest - npm Package Compare versions

Comparing version 0.0.5-alpha.dbef2ba70.0 to 0.0.5-alpha.e224b20a1.0

build/devPreviewManifest.d.ts

84

build/index.d.ts
import { TeamsAppManifest } from "./manifest";
import { JSONSchemaType } from "ajv";
import { DevPreviewSchema } from "./devPreviewManifest";
export * from "./manifest";
export * as devPreview from "./devPreviewManifest";
export declare type TeamsAppManifestJSONSchema = JSONSchemaType<TeamsAppManifest>;
export declare type DevPreviewManifestJSONSchema = JSONSchemaType<DevPreviewSchema>;
export declare type Manifest = TeamsAppManifest | DevPreviewSchema;
export declare class ManifestUtil {
/**
* Loads the manifest from the given path without validating its schema.
*
* @param path - The path to the manifest file.
* @throws Will propagate any error thrown by the fs-extra#readJson.
*
* @returns The Manifest Object.
*/
static loadFromPath(path: string): Promise<TeamsAppManifest>;
/**
* Writes the manifest object to the given path.
*
* @param path - Where to write
* @param manifest - Manifest object to be saved
* @throws Will propagate any error thrown by the fs-extra#writeJson.
*
*/
static writeToPath(path: string, manifest: TeamsAppManifest): Promise<void>;
/**
* Validate manifest against json schema.
*
* @param manifest - Manifest object to be validated
* @param schema - teams-app-manifest schema
* @returns An empty array if it passes validation, or an array of error string otherwise.
*/
static validateManifestAgainstSchema(manifest: TeamsAppManifest, schema: TeamsAppManifestJSONSchema): Promise<string[]>;
/**
* Validate manifest against {@link TeamsAppManifest#$schema}.
*
* @param manifest - Manifest object to be validated
* @throws Will throw if {@link TeamsAppManifest#$schema} is undefined, not valid
* or there is any network failure when getting the schema.
*
* @returns An empty array if schema validation passes, or an array of error string otherwise.
*/
static validateManifest(manifest: TeamsAppManifest): Promise<string[]>;
/**
* Loads the manifest from the given path without validating its schema.
*
* @param path - The path to the manifest file.
* @throws Will propagate any error thrown by the fs-extra#readJson.
*
* @returns The Manifest Object.
*/
static loadFromPath<T extends Manifest = TeamsAppManifest>(path: string): Promise<T>;
/**
* Writes the manifest object to the given path.
*
* @param path - Where to write
* @param manifest - Manifest object to be saved
* @throws Will propagate any error thrown by the fs-extra#writeJson.
*
*/
static writeToPath<T extends Manifest = TeamsAppManifest>(
path: string,
manifest: T
): Promise<void>;
/**
* Validate manifest against json schema.
*
* @param manifest - Manifest object to be validated
* @param schema - teams-app-manifest schema
* @returns An empty array if it passes validation, or an array of error string otherwise.
*/
static validateManifestAgainstSchema<T extends Manifest = TeamsAppManifest>(
manifest: T,
schema: JSONSchemaType<T>
): Promise<string[]>;
/**
* Validate manifest against {@link TeamsAppManifest#$schema}.
*
* @param manifest - Manifest object to be validated
* @throws Will throw if {@link TeamsAppManifest#$schema} is undefined, not valid
* or there is any network failure when getting the schema.
*
* @returns An empty array if schema validation passes, or an array of error string otherwise.
*/
static validateManifest<T extends Manifest = TeamsAppManifest>(manifest: T): Promise<string[]>;
}
//# sourceMappingURL=index.d.ts.map
//# sourceMappingURL=index.d.ts.map

@@ -11,5 +11,17 @@ "use strict";

}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -19,3 +31,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

Object.defineProperty(exports, "__esModule", { value: true });
exports.ManifestUtil = void 0;
exports.ManifestUtil = exports.devPreview = void 0;
const fs_extra_1 = __importDefault(require("fs-extra"));

@@ -25,2 +37,3 @@ const ajv_draft_04_1 = __importDefault(require("ajv-draft-04"));

__exportStar(require("./manifest"), exports);
exports.devPreview = __importStar(require("./devPreviewManifest"));
class ManifestUtil {

@@ -27,0 +40,0 @@ /**

export interface IDeveloper {
/**
* The display name for the developer.
*/
name: string;
/**
* The Microsoft Partner Network ID that identifies the partner organization building the app. This field is not required, and should only be used if you are already part of the Microsoft Partner Network. More info at https://aka.ms/partner
*/
mpnId?: 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;
/**
* The display name for the developer.
*/
name: string;
/**
* The Microsoft Partner Network ID that identifies the partner organization building the app. This field is not required, and should only be used if you are already part of the Microsoft Partner Network. More info at https://aka.ms/partner
*/
mpnId?: 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 IName {
short: string;
/**
* The full name of the app, used if the full app name exceeds 30 characters.
*/
full?: string;
short: string;
/**
* The full name of the app, used if the full app name exceeds 30 characters.
*/
full?: string;
}
export interface IIcons {
color: string;
outline: string;
color: string;
outline: string;
}
export interface IConfigurableTab {
objectId?: string;
/**
* 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, in a 1:1 or group chat, or in an experience scoped to an individual user alone. These options are non-exclusive. Currently, configurable tabs are only supported in the teams and groupchats scopes.
*/
scopes: ("team" | "groupchat")[];
/**
* The set of contextItem scopes that a tab belong to
*/
context?: ("channelTab" | "privateChatTab" | "meetingChatTab" | "meetingDetailsTab" | "meetingSidePanel" | "meetingStage")[];
/**
* A relative file path to a tab preview image for use in SharePoint. Size 1024x768.
*/
sharePointPreviewImage?: string;
/**
* Defines how your tab will be made available in SharePoint.
*/
supportedSharePointHosts?: ("sharePointFullPage" | "sharePointWebPart")[];
objectId?: string;
/**
* 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, in a 1:1 or group chat, or in an experience scoped to an individual user alone. These options are non-exclusive. Currently, configurable tabs are only supported in the teams and groupchats scopes.
*/
scopes: ("team" | "groupchat")[];
/**
* The set of contextItem scopes that a tab belong to
*/
context?: (
| "personalTab"
| "channelTab"
| "privateChatTab"
| "meetingChatTab"
| "meetingDetailsTab"
| "meetingSidePanel"
| "meetingStage"
| "callingSidePanel"
)[];
/**
* The set of meetingSurfaceItem scopes that a tab belong to
*/
meetingSurfaces?: ("sidePanel" | "stage")[];
/**
* A relative file path to a tab preview image for use in SharePoint. Size 1024x768.
*/
sharePointPreviewImage?: string;
/**
* Defines how your tab will be made available in SharePoint.
*/
supportedSharePointHosts?: ("sharePointFullPage" | "sharePointWebPart")[];
}
export interface IStaticTab {
objectId?: string;
/**
* 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;
/**
* The url to direct a user's search queries.
*/
searchUrl?: 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: ("team" | "personal")[];
/**
* The set of contextItem scopes that a tab belong to
*/
context?: ("personalTab" | "channelTab")[];
objectId?: string;
/**
* 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;
/**
* The url to direct a user's search queries.
*/
searchUrl?: 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: ("team" | "personal")[];
/**
* The set of contextItem scopes that a tab belong to
*/
context?: ("personalTab" | "channelTab")[];
}
export interface ICommand {
title: string;
description: string;
title: string;
description: string;
}
export interface ICommandList {
scopes: ("team" | "personal" | "groupchat")[];
commands: ICommand[];
scopes: ("team" | "personal" | "groupchat")[];
commands: ICommand[];
}
export interface IBot {
/**
* 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;
/**
* A value indicating whether the bot supports uploading/downloading of files.
*/
supportsFiles?: boolean;
/**
* A value indicating whether the bot supports audio calling.
*/
supportsCalling?: boolean;
/**
* A value indicating whether the bot supports video calling.
*/
supportsVideo?: boolean;
/**
* Specifies whether the bot offers an experience in the context of a channel in a team, in a 1:1 or group chat, or in an experience scoped to an individual user alone. These options are non-exclusive.
*/
scopes: ("team" | "personal" | "groupchat")[];
/**
* The list of commands that the bot supplies, including their usage, description, and the scope for which the commands are valid. A separate command list should be used for each scope.
*/
commandLists?: ICommandList[];
/**
* 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;
/**
* A value indicating whether the bot supports uploading/downloading of files.
*/
supportsFiles?: boolean;
/**
* A value indicating whether the bot supports audio calling.
*/
supportsCalling?: boolean;
/**
* A value indicating whether the bot supports video calling.
*/
supportsVideo?: boolean;
/**
* Specifies whether the bot offers an experience in the context of a channel in a team, in a 1:1 or group chat, or in an experience scoped to an individual user alone. These options are non-exclusive.
*/
scopes: ("team" | "personal" | "groupchat")[];
/**
* The list of commands that the bot supplies, including their usage, description, and the scope for which the commands are valid. A separate command list should be used for each scope.
*/
commandLists?: ICommandList[];
}
export interface IConnector {
/**
* A unique identifier for the connector which matches its ID in the Connectors Developer Portal.
*/
connectorId: string;
/**
* The url to use for configuring the connector using the inline configuration experience.
*/
configurationUrl?: 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"[];
/**
* A unique identifier for the connector which matches its ID in the Connectors Developer Portal.
*/
connectorId: string;
/**
* The url to use for configuring the connector using the inline configuration experience.
*/
configurationUrl?: 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 IWebApplicationInfo {
/**
* AAD application id of the app. This id must be a GUID.
*/
id: string;
/**
* Resource url of app for acquiring auth token for SSO.
*/
resource?: string;
applicationPermissions?: string[];
/**
* AAD application id of the app. This id must be a GUID.
*/
id: string;
/**
* Resource url of app for acquiring auth token for SSO.
*/
resource?: string;
applicationPermissions?: string[];
}
export interface IComposeExtension {
objectId?: string;
/**
* 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: IMessagingExtensionCommand[];
/**
* A list of handlers that allow apps to be invoked when certain conditions are met
*/
messageHandlers?: IComposeExtensionMessageHandler[];
objectId?: string;
/**
* 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: IMessagingExtensionCommand[];
/**
* A list of handlers that allow apps to be invoked when certain conditions are met
*/
messageHandlers?: IComposeExtensionMessageHandler[];
}
export interface IComposeExtensionMessageHandler {
/**
* Type of the message handler
*/
type: "link";
value: {
/**
* Type of the message handler
* A list of domains that the link message handler can register for, and when they are matched the app will be invoked
*/
type: "link";
value: {
/**
* A list of domains that the link message handler can register for, and when they are matched the app will be invoked
*/
domains?: string[];
[k: string]: unknown;
};
domains?: string[];
[k: string]: unknown;
};
}
export interface IMessagingExtensionCommand {
/**
* Id of the command.
*/
id: string;
/**
* Type of the command
*/
type?: "query" | "action";
/**
* Context where the command would apply
*/
context?: ("compose" | "commandBox" | "message")[];
/**
* 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;
/**
* A boolean value that indicates if it should fetch task module dynamically
*/
fetchTask?: boolean;
parameters?: IParameter[];
taskInfo?: ITaskInfo;
/**
* Id of the command.
*/
id: string;
/**
* Type of the command
*/
type?: "query" | "action";
/**
* Context where the command would apply
*/
context?: ("compose" | "commandBox" | "message")[];
/**
* 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;
/**
* A boolean value that indicates if it should fetch task module dynamically
*/
fetchTask?: boolean;
parameters?: IParameter[];
taskInfo?: ITaskInfo;
}
export interface IParameter {
/**
* Name of the parameter.
*/
name: string;
/**
* Type of the parameter
*/
inputType?: "text" | "textarea" | "number" | "date" | "time" | "toggle" | "choiceset";
/**
* Title of the parameter.
*/
title: string;
/**
* Description of the parameter.
*/
description?: string;
/**
* Initial value for the parameter
*/
value?: string;
/**
* The choice options for the parameter
*/
choices?: {
/**
* Name of the parameter.
* Title of the choice
*/
name: string;
/**
* Type of the parameter
*/
inputType?: "text" | "textarea" | "number" | "date" | "time" | "toggle" | "choiceset";
/**
* Title of the parameter.
*/
title: string;
/**
* Description of the parameter.
* Value of the choice
*/
description?: string;
/**
* Initial value for the parameter
*/
value?: string;
/**
* The choice options for the parameter
*/
choices?: {
/**
* Title of the choice
*/
title: string;
/**
* Value of the choice
*/
value: string;
}[];
value: string;
}[];
}
export interface ITaskInfo {
/**
* Initial dialog title
*/
title?: string;
/**
* Dialog width - either a number in pixels or default layout such as 'large', 'medium', or 'small'
*/
width?: string;
/**
* Dialog height - either a number in pixels or default layout such as 'large', 'medium', or 'small'
*/
height?: string;
/**
* Initial webview URL
*/
url?: string;
/**
* Initial dialog title
*/
title?: string;
/**
* Dialog width - either a number in pixels or default layout such as 'large', 'medium', or 'small'
*/
width?: string;
/**
* Dialog height - either a number in pixels or default layout such as 'large', 'medium', or 'small'
*/
height?: string;
/**
* Initial webview URL
*/
url?: string;
}
export interface IActivityType {
type: string;
description: string;
templateText: string;
type: string;
description: string;
templateText: string;
}
export interface ILocalizationInfo {
/**
* The language tag of the strings in this top level manifest file.
*/
defaultLanguageTag: string;
additionalLanguages?: {
languageTag: string;
/**
* The language tag of the strings in this top level manifest file.
* A relative file path to a the .json file containing the translated strings.
*/
defaultLanguageTag: string;
additionalLanguages?: {
languageTag: string;
/**
* A relative file path to a the .json file containing the translated strings.
*/
file: string;
}[];
file: string;
}[];
}
export interface IAppPermission {
name: string;
type: "Application" | "Delegated";
}
export interface ITogetherModeScene {
id: string;
name: string;
file: string;
preview: string;
maxAudience: number;
seatsReservedForOrganizersOrPresenters: number;
}
export declare type AppManifest = Record<string, any>;
/**
* manifest definition according to : https://developer.microsoft.com/en-us/json-schemas/teams/v1.8/MicrosoftTeams.schema.json
* manifest definition according to : https://developer.microsoft.com/en-us/json-schemas/teams/v1.13/MicrosoftTeams.schema.json
*/
export declare class TeamsAppManifest implements AppManifest {
$schema?: string;
$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;
localizationInfo?: ILocalizationInfo;
developer: IDeveloper;
name: IName;
description: IName;
icons: IIcons;
/**
* 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 1:1 or group chats 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?: IConfigurableTab[];
/**
* 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?: IStaticTab[];
/**
* The set of bots for this app. Currently only one bot per app is supported.
*/
bots?: IBot[];
/**
* The set of Office365 connectors for this app. Currently only one connector per app is supported.
*/
connectors?: IConnector[];
/**
* Subscription offer associated with this app.
*/
subscriptionOffer?: {
/**
* The version of the schema this manifest is using.
* A unique identifier for the Commercial Marketplace Software as a Service Offer.
*/
manifestVersion: string;
offerId: string;
};
/**
* Specify the app's Graph connector configuration. If this is present then webApplicationInfo.id must also be specified.
*/
graphConnector?: {
notificationUrl: string;
};
/**
* The set of compose extensions for this app. Currently only one compose extension per app is supported.
*/
composeExtensions?: IComposeExtension[];
/**
* Specifies the permissions the app requests from users.
*/
permissions?: ("identity" | "messageTeamMembers")[];
/**
* Specify the native features on a user's device that your app may request access to.
*/
devicePermissions?: ("geolocation" | "media" | "notifications" | "midi" | "openExternal")[];
/**
* 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[];
/**
* Specify your AAD App ID and Graph information to help users seamlessly sign into your AAD app.
*/
webApplicationInfo?: IWebApplicationInfo;
/**
* A value indicating whether or not show loading indicator when app/tab is loading
*/
showLoadingIndicator?: boolean;
/**
* A value indicating whether a personal app is rendered without a tab header-bar
*/
isFullScreen?: boolean;
activities?: {
/**
* 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).
* Specify the types of activites that your app can post to a users activity feed
*/
version: string;
activityTypes?: IActivityType[];
};
/**
* A list of tenant configured properties for an app
*/
configurableProperties?: (
| "name"
| "shortDescription"
| "longDescription"
| "smallImageUrl"
| "largeImageUrl"
| "accentColor"
| "developerUrl"
| "privacyUrl"
| "termsOfUseUrl"
)[];
/**
* A value indicating whether an app is blocked by default until admin allows it
*/
defaultBlockUntilAdminAction?: boolean;
/**
* The install scope defined for this app by default. This will be the option displayed on the button when a user tries to add the app
*/
defaultInstallScope?: "personal" | "team" | "groupchat" | "meetings";
/**
* When a group install scope is selected, this will define the default capability when the user installs the app
*/
defaultGroupCapability?: {
team: "tab" | "bot" | "connector";
groupchat: "tab" | "bot" | "connector";
meetings: "tab" | "bot" | "connector";
};
/**
* Specify meeting extension definition
*/
meetingExtensionDefinition?: {
/**
* A unique identifier for this app. This id must be a GUID.
* Meeting supported scenes.
*/
id: string;
scenes?: ITogetherModeScene[];
/**
* A unique identifier for this app in reverse domain notation. E.g: com.example.myapp
* Meeting supported A/V filters.
*/
packageName?: string;
localizationInfo?: ILocalizationInfo;
developer: IDeveloper;
name: IName;
description: IName;
icons: IIcons;
/**
* 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 1:1 or group chats 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?: IConfigurableTab[];
/**
* 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?: IStaticTab[];
/**
* The set of bots for this app. Currently only one bot per app is supported.
*/
bots?: IBot[];
/**
* The set of Office365 connectors for this app. Currently only one connector per app is supported.
*/
connectors?: IConnector[];
/**
* Specify the app's Graph connector configuration. If this is present then webApplicationInfo.id must also be specified.
*/
graphConnector?: {
notificationUrl: string;
filters?: {
id: string;
name: string;
thumbnail: string;
}[];
videoAppContentUrl?: string;
};
/**
* The url to the page that provides additional app information for the admins
*/
publisherDocsUrl?: string;
/**
* Specify and consolidates authorization related information for the App.
*/
authorization?: {
permissions?: {
resourceSpecific?: IAppPermission[];
};
/**
* The set of compose extensions for this app. Currently only one compose extension per app is supported.
*/
composeExtensions?: IComposeExtension[];
/**
* Specifies the permissions the app requests from users.
*/
permissions?: ("identity" | "messageTeamMembers")[];
/**
* Specify the native features on a user's device that your app may request access to.
*/
devicePermissions?: ("geolocation" | "media" | "notifications" | "midi" | "openExternal")[];
/**
* 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[];
/**
* Specify your AAD App ID and Graph information to help users seamlessly sign into your AAD app.
*/
webApplicationInfo?: IWebApplicationInfo;
/**
* A value indicating whether or not show loading indicator when app/tab is loading
*/
showLoadingIndicator?: boolean;
/**
* A value indicating whether a personal app is rendered without a tab header-bar
*/
isFullScreen?: boolean;
activities?: {
/**
* Specify the types of activites that your app can post to a users activity feed
*/
activityTypes?: IActivityType[];
};
};
}
//# sourceMappingURL=manifest.d.ts.map
//# sourceMappingURL=manifest.d.ts.map

@@ -7,11 +7,11 @@ // Copyright (c) Microsoft Corporation.

/**
* manifest definition according to : https://developer.microsoft.com/en-us/json-schemas/teams/v1.8/MicrosoftTeams.schema.json
* manifest definition according to : https://developer.microsoft.com/en-us/json-schemas/teams/v1.13/MicrosoftTeams.schema.json
*/
class TeamsAppManifest {
constructor() {
this.$schema = "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json";
this.$schema = "https://developer.microsoft.com/en-us/json-schemas/teams/v1.13/MicrosoftTeams.schema.json";
/**
* The version of the schema this manifest is using.
*/
this.manifestVersion = "1.11";
this.manifestVersion = "1.13";
/**

@@ -18,0 +18,0 @@ * 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).

{
"name": "@microsoft/teams-manifest",
"version": "0.0.5-alpha.dbef2ba70.0",
"version": "0.0.5-alpha.e224b20a1.0",
"main": "build/index.js",

@@ -28,2 +28,3 @@ "types": "build/index.d.ts",

"eslint-plugin-prettier": "^4.0.0",
"json-schema-to-typescript": "^10.1.5",
"lint-staged": "^10.5.4",

@@ -41,3 +42,5 @@ "mocha": "^9.0.2",

"scripts": {
"prebuild": "npm run generate-manifest",
"build": "rimraf build && npx tsc -p ./",
"postbuild": "eslint \"**/*.ts\" --fix",
"test": "npm run test:unit",

@@ -47,3 +50,4 @@ "test:unit": "npx nyc mocha --no-timeouts --require ts-node/register test/**/*.test.ts",

"precommit": "lint-staged",
"lint:staged": "lint-staged"
"lint:staged": "lint-staged",
"generate-manifest": "npx json2ts -i devPreviewSchema.json -o src/devPreviewManifest.ts --ignoreMinAndMaxItems"
},

@@ -61,3 +65,3 @@ "files": [

},
"gitHead": "1fc84a64d761a29e1cd28567681fccc96b6d9b82"
"gitHead": "6a1ddbd97025d39e0e7ba86b2843ce4799d8ab0c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc