@microsoft/app-manifest 1.0.0-beta.2025041708.0 → 1.0.0-beta.2025042207.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.
- package/build/declarativeCopilotManifest.d.ts +0 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D0.d.ts +30 -30
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D0.js +10 -10
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D0.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D2.d.ts +29 -29
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D2.js +10 -10
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D2.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D3.d.ts +36 -36
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D3.js +12 -12
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D3.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D4.d.ts +292 -0
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D4.js +259 -0
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D4.js.map +1 -0
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.d.ts +91 -91
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.js +25 -25
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.js.map +1 -1
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.d.ts +86 -86
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.js +24 -24
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.js.map +1 -1
- package/build/generated-types/index.d.ts +26 -24
- package/build/generated-types/index.js +20 -13
- package/build/generated-types/index.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D0.d.ts +87 -87
- package/build/generated-types/teams/TeamsManifestV1D0.js +27 -27
- package/build/generated-types/teams/TeamsManifestV1D0.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D1.d.ts +86 -86
- package/build/generated-types/teams/TeamsManifestV1D1.js +26 -26
- package/build/generated-types/teams/TeamsManifestV1D1.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D10.d.ts +185 -185
- package/build/generated-types/teams/TeamsManifestV1D10.js +58 -58
- package/build/generated-types/teams/TeamsManifestV1D10.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D11.d.ts +188 -188
- package/build/generated-types/teams/TeamsManifestV1D11.js +60 -60
- package/build/generated-types/teams/TeamsManifestV1D11.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D12.d.ts +187 -187
- package/build/generated-types/teams/TeamsManifestV1D12.js +60 -60
- package/build/generated-types/teams/TeamsManifestV1D12.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D13.d.ts +189 -189
- package/build/generated-types/teams/TeamsManifestV1D13.js +60 -60
- package/build/generated-types/teams/TeamsManifestV1D13.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D14.d.ts +192 -192
- package/build/generated-types/teams/TeamsManifestV1D14.js +61 -61
- package/build/generated-types/teams/TeamsManifestV1D14.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D15.d.ts +192 -192
- package/build/generated-types/teams/TeamsManifestV1D15.js +61 -61
- package/build/generated-types/teams/TeamsManifestV1D15.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D16.d.ts +196 -196
- package/build/generated-types/teams/TeamsManifestV1D16.js +62 -62
- package/build/generated-types/teams/TeamsManifestV1D16.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D17.d.ts +347 -347
- package/build/generated-types/teams/TeamsManifestV1D17.js +129 -129
- package/build/generated-types/teams/TeamsManifestV1D17.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D19.d.ts +356 -356
- package/build/generated-types/teams/TeamsManifestV1D19.js +132 -132
- package/build/generated-types/teams/TeamsManifestV1D19.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D2.d.ts +86 -86
- package/build/generated-types/teams/TeamsManifestV1D2.js +26 -26
- package/build/generated-types/teams/TeamsManifestV1D2.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D20.d.ts +409 -409
- package/build/generated-types/teams/TeamsManifestV1D20.js +150 -150
- package/build/generated-types/teams/TeamsManifestV1D20.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D3.d.ts +90 -90
- package/build/generated-types/teams/TeamsManifestV1D3.js +28 -28
- package/build/generated-types/teams/TeamsManifestV1D3.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D4.d.ts +99 -99
- package/build/generated-types/teams/TeamsManifestV1D4.js +32 -32
- package/build/generated-types/teams/TeamsManifestV1D4.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D5.d.ts +123 -123
- package/build/generated-types/teams/TeamsManifestV1D5.js +39 -39
- package/build/generated-types/teams/TeamsManifestV1D5.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D6.d.ts +128 -128
- package/build/generated-types/teams/TeamsManifestV1D6.js +41 -41
- package/build/generated-types/teams/TeamsManifestV1D6.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D7.d.ts +134 -134
- package/build/generated-types/teams/TeamsManifestV1D7.js +44 -44
- package/build/generated-types/teams/TeamsManifestV1D7.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D8.d.ts +151 -151
- package/build/generated-types/teams/TeamsManifestV1D8.js +48 -48
- package/build/generated-types/teams/TeamsManifestV1D8.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D9.d.ts +172 -172
- package/build/generated-types/teams/TeamsManifestV1D9.js +54 -54
- package/build/generated-types/teams/TeamsManifestV1D9.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestVDevPreview.d.ts +581 -581
- package/build/generated-types/teams/TeamsManifestVDevPreview.js +200 -200
- package/build/generated-types/teams/TeamsManifestVDevPreview.js.map +1 -1
- package/build/index.d.ts +0 -14
- package/build/index.js +0 -97
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AppManifestUtils = exports.ApiPluginManifestConverter = exports.DeclarativeAgentManifestConverter = exports.TeamsManifestConverter = exports.ApiPluginManifestV2D2Convert = exports.ApiPluginV2D1Convert = exports.DeclarativeAgentManifestV1D3Convert = exports.DeclarativeAgentManifestV1D2Convert = exports.DeclarativeAgentManifestV1D0Convert = exports.TeamsManifestVDevPreviewConvert = exports.TeamsManifestV1D9Convert = exports.TeamsManifestV1D8Convert = exports.TeamsManifestV1D7Convert = exports.TeamsManifestV1D6Convert = exports.TeamsManifestV1D5Convert = exports.TeamsManifestV1D4Convert = exports.TeamsManifestV1D3Convert = exports.TeamsManifestV1D20Convert = exports.TeamsManifestV1D2Convert = exports.TeamsManifestV1D19Convert = exports.TeamsManifestV1D17Convert = exports.TeamsManifestV1D16Convert = exports.TeamsManifestV1D15Convert = exports.TeamsManifestV1D14Convert = exports.TeamsManifestV1D13Convert = exports.TeamsManifestV1D12Convert = exports.TeamsManifestV1D11Convert = exports.TeamsManifestV1D10Convert = exports.TeamsManifestV1D1Convert = void 0;
|
|
6
|
+
exports.AppManifestUtils = exports.ApiPluginManifestConverter = exports.DeclarativeAgentManifestConverter = exports.TeamsManifestConverter = exports.ApiPluginManifestV2D2Convert = exports.ApiPluginV2D1Convert = exports.DeclarativeAgentManifestV1D4Convert = exports.DeclarativeAgentManifestV1D3Convert = exports.DeclarativeAgentManifestV1D2Convert = exports.DeclarativeAgentManifestV1D0Convert = exports.TeamsManifestVDevPreviewConvert = exports.TeamsManifestV1D9Convert = exports.TeamsManifestV1D8Convert = exports.TeamsManifestV1D7Convert = exports.TeamsManifestV1D6Convert = exports.TeamsManifestV1D5Convert = exports.TeamsManifestV1D4Convert = exports.TeamsManifestV1D3Convert = exports.TeamsManifestV1D20Convert = exports.TeamsManifestV1D2Convert = exports.TeamsManifestV1D19Convert = exports.TeamsManifestV1D17Convert = exports.TeamsManifestV1D16Convert = exports.TeamsManifestV1D15Convert = exports.TeamsManifestV1D14Convert = exports.TeamsManifestV1D13Convert = exports.TeamsManifestV1D12Convert = exports.TeamsManifestV1D11Convert = exports.TeamsManifestV1D10Convert = exports.TeamsManifestV1D1Convert = void 0;
|
|
7
7
|
const ajv_draft_04_1 = __importDefault(require("ajv-draft-04"));
|
|
8
8
|
const ajv_formats_1 = __importDefault(require("ajv-formats"));
|
|
9
9
|
const _2020_1 = __importDefault(require("ajv/dist/2020"));
|
|
@@ -13,6 +13,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
13
13
|
const DeclarativeAgentManifestV1D0_1 = require("./copilot/declarative-agent/DeclarativeAgentManifestV1D0");
|
|
14
14
|
const DeclarativeAgentManifestV1D2_1 = require("./copilot/declarative-agent/DeclarativeAgentManifestV1D2");
|
|
15
15
|
const DeclarativeAgentManifestV1D3_1 = require("./copilot/declarative-agent/DeclarativeAgentManifestV1D3");
|
|
16
|
+
const DeclarativeAgentManifestV1D4_1 = require("./copilot/declarative-agent/DeclarativeAgentManifestV1D4");
|
|
16
17
|
const ApiPluginManifestV2D1_1 = require("./copilot/plugin/ApiPluginManifestV2D1");
|
|
17
18
|
const ApiPluginManifestV2D2_1 = require("./copilot/plugin/ApiPluginManifestV2D2");
|
|
18
19
|
const TeamsManifestV1D1_1 = require("./teams/TeamsManifestV1D1");
|
|
@@ -81,6 +82,8 @@ var DeclarativeAgentManifestV1D2_2 = require("./copilot/declarative-agent/Declar
|
|
|
81
82
|
Object.defineProperty(exports, "DeclarativeAgentManifestV1D2Convert", { enumerable: true, get: function () { return DeclarativeAgentManifestV1D2_2.Convert; } });
|
|
82
83
|
var DeclarativeAgentManifestV1D3_2 = require("./copilot/declarative-agent/DeclarativeAgentManifestV1D3");
|
|
83
84
|
Object.defineProperty(exports, "DeclarativeAgentManifestV1D3Convert", { enumerable: true, get: function () { return DeclarativeAgentManifestV1D3_2.Convert; } });
|
|
85
|
+
var DeclarativeAgentManifestV1D4_2 = require("./copilot/declarative-agent/DeclarativeAgentManifestV1D4");
|
|
86
|
+
Object.defineProperty(exports, "DeclarativeAgentManifestV1D4Convert", { enumerable: true, get: function () { return DeclarativeAgentManifestV1D4_2.Convert; } });
|
|
84
87
|
var ApiPluginManifestV2D1_2 = require("./copilot/plugin/ApiPluginManifestV2D1");
|
|
85
88
|
Object.defineProperty(exports, "ApiPluginV2D1Convert", { enumerable: true, get: function () { return ApiPluginManifestV2D1_2.Convert; } });
|
|
86
89
|
var ApiPluginManifestV2D2_2 = require("./copilot/plugin/ApiPluginManifestV2D2");
|
|
@@ -168,25 +171,29 @@ const TeamsManifestConverterMap = {
|
|
|
168
171
|
],
|
|
169
172
|
};
|
|
170
173
|
const daConverterMap = {
|
|
171
|
-
"
|
|
174
|
+
"v1.0": [
|
|
172
175
|
DeclarativeAgentManifestV1D0_1.Convert.toDeclarativeAgentManifestV1D0,
|
|
173
176
|
DeclarativeAgentManifestV1D0_1.Convert.declarativeAgentManifestV1D0ToJson,
|
|
174
177
|
],
|
|
175
|
-
"
|
|
178
|
+
"v1.2": [
|
|
176
179
|
DeclarativeAgentManifestV1D2_1.Convert.toDeclarativeAgentManifestV1D2,
|
|
177
180
|
DeclarativeAgentManifestV1D2_1.Convert.declarativeAgentManifestV1D2ToJson,
|
|
178
181
|
],
|
|
179
|
-
"
|
|
182
|
+
"v1.3": [
|
|
180
183
|
DeclarativeAgentManifestV1D3_1.Convert.toDeclarativeAgentManifestV1D3,
|
|
181
184
|
DeclarativeAgentManifestV1D3_1.Convert.declarativeAgentManifestV1D3ToJson,
|
|
182
185
|
],
|
|
186
|
+
"v1.4": [
|
|
187
|
+
DeclarativeAgentManifestV1D4_1.Convert.toDeclarativeAgentManifestV1D4,
|
|
188
|
+
DeclarativeAgentManifestV1D4_1.Convert.declarativeAgentManifestV1D4ToJson,
|
|
189
|
+
],
|
|
183
190
|
};
|
|
184
191
|
const ApiPluginConverterMap = {
|
|
185
|
-
"
|
|
192
|
+
"v2.1": [
|
|
186
193
|
ApiPluginManifestV2D1_1.Convert.toAPIPluginManifestV2D1,
|
|
187
194
|
ApiPluginManifestV2D1_1.Convert.aPIPluginManifestV2D1ToJson,
|
|
188
195
|
],
|
|
189
|
-
"
|
|
196
|
+
"v2.2": [
|
|
190
197
|
ApiPluginManifestV2D2_1.Convert.toAPIPluginManifestV2D2,
|
|
191
198
|
ApiPluginManifestV2D2_1.Convert.aPIPluginManifestV2D2ToJson,
|
|
192
199
|
],
|
|
@@ -217,7 +224,7 @@ class DeclarativeAgentManifestConverter {
|
|
|
217
224
|
const version = parsed.version;
|
|
218
225
|
const converters = daConverterMap[version];
|
|
219
226
|
if (!converters) {
|
|
220
|
-
throw new Error(`Declarative agent manifest version ${version} is not supported. Supported versions are: ${Object.keys(
|
|
227
|
+
throw new Error(`Declarative agent manifest version ${version} is not supported. Supported versions are: ${Object.keys(daConverterMap).join(", ")}`);
|
|
221
228
|
}
|
|
222
229
|
return converters[0](json);
|
|
223
230
|
}
|
|
@@ -225,7 +232,7 @@ class DeclarativeAgentManifestConverter {
|
|
|
225
232
|
const version = manifest.version;
|
|
226
233
|
const converters = daConverterMap[version];
|
|
227
234
|
if (!converters) {
|
|
228
|
-
throw new Error(`Declarative agent manifest version ${version} is not supported. Supported versions are: ${Object.keys(
|
|
235
|
+
throw new Error(`Declarative agent manifest version ${version} is not supported. Supported versions are: ${Object.keys(daConverterMap).join(", ")}`);
|
|
229
236
|
}
|
|
230
237
|
return converters[1](manifest);
|
|
231
238
|
}
|
|
@@ -237,7 +244,7 @@ class ApiPluginManifestConverter {
|
|
|
237
244
|
const schema_version = parsed.schema_version;
|
|
238
245
|
const converters = ApiPluginConverterMap[schema_version];
|
|
239
246
|
if (!converters) {
|
|
240
|
-
throw new Error(`API plugin manifest version ${schema_version} is not supported. Supported versions are: ${Object.keys(
|
|
247
|
+
throw new Error(`API plugin manifest version ${schema_version} is not supported. Supported versions are: ${Object.keys(ApiPluginConverterMap).join(", ")}`);
|
|
241
248
|
}
|
|
242
249
|
return converters[0](json);
|
|
243
250
|
}
|
|
@@ -245,7 +252,7 @@ class ApiPluginManifestConverter {
|
|
|
245
252
|
const schema_version = manifest.schema_version;
|
|
246
253
|
const converters = ApiPluginConverterMap[schema_version];
|
|
247
254
|
if (!converters) {
|
|
248
|
-
throw new Error(`API plugin manifest version ${schema_version} is not supported. Supported versions are: ${Object.keys(
|
|
255
|
+
throw new Error(`API plugin manifest version ${schema_version} is not supported. Supported versions are: ${Object.keys(ApiPluginConverterMap).join(", ")}`);
|
|
249
256
|
}
|
|
250
257
|
return converters[1](manifest);
|
|
251
258
|
}
|
|
@@ -258,9 +265,9 @@ class AppManifestUtils {
|
|
|
258
265
|
* @returns manifest schema object
|
|
259
266
|
*/
|
|
260
267
|
static async fetchSchema(schemaUrl) {
|
|
261
|
-
if (schemaUrl.startsWith("https://developer.microsoft.com/json-schemas/teams")
|
|
262
|
-
|
|
263
|
-
|
|
268
|
+
if (schemaUrl.startsWith("https://developer.microsoft.com/json-schemas/teams") ||
|
|
269
|
+
schemaUrl.startsWith("https://developer.microsoft.com/json-schemas/copilot/declarative-agent") ||
|
|
270
|
+
schemaUrl.startsWith("https://developer.microsoft.com/json-schemas/copilot/plugin")) {
|
|
264
271
|
const suffix = schemaUrl.substring("https://developer.microsoft.com/".length);
|
|
265
272
|
const schemaFile = path_1.default.join(__dirname, "..", suffix);
|
|
266
273
|
if (await fs_extra_1.default.pathExists(schemaFile)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated-types/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAiC;AACjC,8DAAqC;AACrC,0DAAoC;AACpC,4DAA+B;AAC/B,wDAA0B;AAC1B,gDAAwB;AACxB,2GAGkE;AAClE,2GAGkE;AAClE,2GAGkE;AAClE,kFAGgD;AAChD,kFAGgD;AAEhD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated-types/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAiC;AACjC,8DAAqC;AACrC,0DAAoC;AACpC,4DAA+B;AAC/B,wDAA0B;AAC1B,gDAAwB;AACxB,2GAGkE;AAClE,2GAGkE;AAClE,2GAGkE;AAClE,2GAGkE;AAClE,kFAGgD;AAChD,kFAGgD;AAEhD,iEAAmG;AACnG,mEAGoC;AACpC,mEAGoC;AACpC,mEAGoC;AACpC,mEAGoC;AACpC,mEAGoC;AACpC,mEAGoC;AACpC,mEAGoC;AACpC,mEAGoC;AACpC,mEAGoC;AACpC,iEAAmG;AACnG,mEAGoC;AACpC,iEAAmG;AACnG,iEAAmG;AACnG,iEAAmG;AACnG,iEAAmG;AACnG,iEAAmG;AACnG,iEAAmG;AACnG,iEAAmG;AACnG,+EAG0C;AAE1C,+DAAmG;AAAvE,6HAAA,OAAO,OAA4B;AAC/D,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,iEAGoC;AADlC,+HAAA,OAAO,OAA6B;AAEtC,+DAAmG;AAAvE,6HAAA,OAAO,OAA4B;AAC/D,iEAGo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,QAAkC;QAElC,MAAM,UAAU,GAAG,iCAAiC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAC9E,OAAO,kBAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,CAAC,sBAAsB,CACjC,QAAgB,EAChB,QAA2B;QAE3B,MAAM,UAAU,GAAG,0BAA0B,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QACvE,OAAO,kBAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;CACF;AA/MD,4CA+MC"}
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
export interface TeamsManifestV1D0 {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* starting with '#', for example `#4464ee`.
|
|
3
|
+
* The version of the schema this manifest is using.
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
manifestVersion: string;
|
|
7
6
|
/**
|
|
8
|
-
* The
|
|
7
|
+
* The version of the app. Changes to your manifest should cause a version change. This
|
|
8
|
+
* version string must follow the semver standard (http://semver.org).
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
version: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* is supported.
|
|
12
|
+
* A unique identifier for this app. This id must be a GUID.
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* A unique identifier for this app in reverse domain notation. E.g: com.example.myapp
|
|
17
|
+
*/
|
|
18
|
+
packageName: string;
|
|
19
|
+
developer: Developer;
|
|
20
|
+
name: Name;
|
|
21
|
+
description: Description;
|
|
22
|
+
icons: Icons;
|
|
23
|
+
/**
|
|
24
|
+
* A color to use in conjunction with the icon. The value must be a valid HTML color code
|
|
25
|
+
* starting with '#', for example `#4464ee`.
|
|
26
|
+
*/
|
|
27
|
+
accentColor: string;
|
|
16
28
|
/**
|
|
17
29
|
* These are tabs users can optionally add to their channels and require extra configuration
|
|
18
30
|
* before they are added. Configurable tabs are not supported in the personal scope.
|
|
@@ -20,36 +32,29 @@ export interface TeamsManifestV1D0 {
|
|
|
20
32
|
*/
|
|
21
33
|
configurableTabs?: ConfigurableTab[];
|
|
22
34
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
35
|
+
* A set of tabs that may be 'pinned' by default, without the user adding them manually.
|
|
36
|
+
* Static tabs declared in personal scope are always pinned to the app's personal
|
|
37
|
+
* experience. Static tabs do not currently support the 'teams' scope.
|
|
25
38
|
*/
|
|
26
|
-
|
|
27
|
-
description: Description;
|
|
28
|
-
developer: Developer;
|
|
29
|
-
icons: Icons;
|
|
39
|
+
staticTabs?: StaticTab[];
|
|
30
40
|
/**
|
|
31
|
-
*
|
|
41
|
+
* The set of bots for this app. Currently only one bot per app is supported.
|
|
32
42
|
*/
|
|
33
|
-
|
|
43
|
+
bots?: Bot[];
|
|
34
44
|
/**
|
|
35
|
-
* The
|
|
45
|
+
* The set of Office365 connectors for this app. Currently only one connector per app is
|
|
46
|
+
* supported.
|
|
36
47
|
*/
|
|
37
|
-
|
|
38
|
-
name: Name;
|
|
48
|
+
connectors?: Connector[];
|
|
39
49
|
/**
|
|
40
|
-
*
|
|
50
|
+
* The set of compose extensions for this app. Currently only one compose extension per app
|
|
51
|
+
* is supported.
|
|
41
52
|
*/
|
|
42
|
-
|
|
53
|
+
composeExtensions?: ComposeExtension[];
|
|
43
54
|
/**
|
|
44
55
|
* Specifies the permissions the app requests from users.
|
|
45
56
|
*/
|
|
46
57
|
permissions?: Permission[];
|
|
47
|
-
/**
|
|
48
|
-
* A set of tabs that may be 'pinned' by default, without the user adding them manually.
|
|
49
|
-
* Static tabs declared in personal scope are always pinned to the app's personal
|
|
50
|
-
* experience. Static tabs do not currently support the 'teams' scope.
|
|
51
|
-
*/
|
|
52
|
-
staticTabs?: StaticTab[];
|
|
53
58
|
/**
|
|
54
59
|
* A list of valid domains from which the tabs expect to load any content. Domain listings
|
|
55
60
|
* can include wildcards, for example `*.example.com`. If your tab configuration or content
|
|
@@ -57,11 +62,6 @@ export interface TeamsManifestV1D0 {
|
|
|
57
62
|
* domain must be specified here.
|
|
58
63
|
*/
|
|
59
64
|
validDomains?: string[];
|
|
60
|
-
/**
|
|
61
|
-
* The version of the app. Changes to your manifest should cause a version change. This
|
|
62
|
-
* version string must follow the semver standard (http://semver.org).
|
|
63
|
-
*/
|
|
64
|
-
version: string;
|
|
65
65
|
}
|
|
66
66
|
export interface Bot {
|
|
67
67
|
/**
|
|
@@ -70,43 +70,43 @@ export interface Bot {
|
|
|
70
70
|
*/
|
|
71
71
|
botId: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* scope.
|
|
73
|
+
* This value describes whether or not the bot utilizes a user hint to add the bot to a
|
|
74
|
+
* specific channel.
|
|
76
75
|
*/
|
|
77
|
-
|
|
76
|
+
needsChannelSelector?: boolean;
|
|
78
77
|
/**
|
|
79
78
|
* A value indicating whether or not the bot is a one-way notification only bot, as opposed
|
|
80
79
|
* to a conversational bot.
|
|
81
80
|
*/
|
|
82
81
|
isNotificationOnly?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* This value describes whether or not the bot utilizes a user hint to add the bot to a
|
|
85
|
-
* specific channel.
|
|
86
|
-
*/
|
|
87
|
-
needsChannelSelector?: boolean;
|
|
88
82
|
/**
|
|
89
83
|
* Specifies whether the bot offers an experience in the context of a channel in a team, or
|
|
90
84
|
* an experience scoped to an individual user alone. These options are non-exclusive.
|
|
91
85
|
*/
|
|
92
86
|
scopes: CommandListScope[];
|
|
87
|
+
/**
|
|
88
|
+
* The list of commands that the bot supplies, including their usage, description, and the
|
|
89
|
+
* scope for which the commands are valid. A seperate command list should be used for each
|
|
90
|
+
* scope.
|
|
91
|
+
*/
|
|
92
|
+
commandLists?: CommandList[];
|
|
93
93
|
}
|
|
94
94
|
export interface CommandList {
|
|
95
|
-
commands: CommandListCommand[];
|
|
96
95
|
/**
|
|
97
96
|
* Specifies the scopes for which the command list is valid
|
|
98
97
|
*/
|
|
99
98
|
scopes: CommandListScope[];
|
|
99
|
+
commands: CommandListCommand[];
|
|
100
100
|
}
|
|
101
101
|
export interface CommandListCommand {
|
|
102
|
-
/**
|
|
103
|
-
* A simple text description or an example of the command syntax and its arguments.
|
|
104
|
-
*/
|
|
105
|
-
description: string;
|
|
106
102
|
/**
|
|
107
103
|
* The bot command name
|
|
108
104
|
*/
|
|
109
105
|
title: string;
|
|
106
|
+
/**
|
|
107
|
+
* A simple text description or an example of the command syntax and its arguments.
|
|
108
|
+
*/
|
|
109
|
+
description: string;
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
* Specifies whether the compose extension offers an experience in the context of a channel
|
|
@@ -120,34 +120,30 @@ export interface ComposeExtension {
|
|
|
120
120
|
* Framework portal (https://dev.botframework.com/bots)
|
|
121
121
|
*/
|
|
122
122
|
botId: string;
|
|
123
|
-
commands: ComposeExtensionCommand[];
|
|
124
123
|
scopes: CommandListScope[];
|
|
124
|
+
commands: ComposeExtensionCommand[];
|
|
125
125
|
}
|
|
126
126
|
export interface ComposeExtensionCommand {
|
|
127
|
-
/**
|
|
128
|
-
* Description of the command.
|
|
129
|
-
*/
|
|
130
|
-
description?: string;
|
|
131
127
|
/**
|
|
132
128
|
* Id of the command.
|
|
133
129
|
*/
|
|
134
130
|
id: string;
|
|
131
|
+
/**
|
|
132
|
+
* Title of the command.
|
|
133
|
+
*/
|
|
134
|
+
title: string;
|
|
135
|
+
/**
|
|
136
|
+
* Description of the command.
|
|
137
|
+
*/
|
|
138
|
+
description?: string;
|
|
135
139
|
/**
|
|
136
140
|
* A boolean value that indicates if the command should be run once initially with no
|
|
137
141
|
* parameter.
|
|
138
142
|
*/
|
|
139
143
|
initialRun?: boolean;
|
|
140
144
|
parameters: Parameter[];
|
|
141
|
-
/**
|
|
142
|
-
* Title of the command.
|
|
143
|
-
*/
|
|
144
|
-
title: string;
|
|
145
145
|
}
|
|
146
146
|
export interface Parameter {
|
|
147
|
-
/**
|
|
148
|
-
* Description of the parameter.
|
|
149
|
-
*/
|
|
150
|
-
description?: string;
|
|
151
147
|
/**
|
|
152
148
|
* Name of the parameter.
|
|
153
149
|
*/
|
|
@@ -156,17 +152,21 @@ export interface Parameter {
|
|
|
156
152
|
* Title of the parameter.
|
|
157
153
|
*/
|
|
158
154
|
title: string;
|
|
155
|
+
/**
|
|
156
|
+
* Description of the parameter.
|
|
157
|
+
*/
|
|
158
|
+
description?: string;
|
|
159
159
|
}
|
|
160
160
|
export interface ConfigurableTab {
|
|
161
|
+
/**
|
|
162
|
+
* The url to use when configuring the tab.
|
|
163
|
+
*/
|
|
164
|
+
configurationUrl: string;
|
|
161
165
|
/**
|
|
162
166
|
* A value indicating whether an instance of the tab's configuration can be updated by the
|
|
163
167
|
* user after creation.
|
|
164
168
|
*/
|
|
165
169
|
canUpdateConfiguration?: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* The url to use when configuring the tab.
|
|
168
|
-
*/
|
|
169
|
-
configurationUrl: string;
|
|
170
170
|
/**
|
|
171
171
|
* Specifies whether the tab offers an experience in the context of a channel in a team, or
|
|
172
172
|
* an experience scoped to an individual user alone. These options are non-exclusive.
|
|
@@ -188,21 +188,25 @@ export interface Connector {
|
|
|
188
188
|
scopes: "team"[];
|
|
189
189
|
}
|
|
190
190
|
export interface Description {
|
|
191
|
-
/**
|
|
192
|
-
* The full description of the app. Maximum length is 4000 characters.
|
|
193
|
-
*/
|
|
194
|
-
full: string;
|
|
195
191
|
/**
|
|
196
192
|
* A short description of the app used when space is limited. Maximum length is 80
|
|
197
193
|
* characters.
|
|
198
194
|
*/
|
|
199
195
|
short: string;
|
|
196
|
+
/**
|
|
197
|
+
* The full description of the app. Maximum length is 4000 characters.
|
|
198
|
+
*/
|
|
199
|
+
full: string;
|
|
200
200
|
}
|
|
201
201
|
export interface Developer {
|
|
202
202
|
/**
|
|
203
203
|
* The display name for the developer.
|
|
204
204
|
*/
|
|
205
205
|
name: string;
|
|
206
|
+
/**
|
|
207
|
+
* The url to the page that provides support information for the app.
|
|
208
|
+
*/
|
|
209
|
+
websiteUrl: string;
|
|
206
210
|
/**
|
|
207
211
|
* The url to the page that provides privacy information for the app.
|
|
208
212
|
*/
|
|
@@ -211,38 +215,30 @@ export interface Developer {
|
|
|
211
215
|
* The url to the page that provides the terms of use for the app.
|
|
212
216
|
*/
|
|
213
217
|
termsOfUseUrl: string;
|
|
214
|
-
/**
|
|
215
|
-
* The url to the page that provides support information for the app.
|
|
216
|
-
*/
|
|
217
|
-
websiteUrl: string;
|
|
218
218
|
}
|
|
219
219
|
export interface Icons {
|
|
220
|
-
/**
|
|
221
|
-
* A relative file path to a full color PNG icon. Size 96x96.
|
|
222
|
-
*/
|
|
223
|
-
color: string;
|
|
224
220
|
/**
|
|
225
221
|
* A relative file path to a transparent PNG outline icon. The border color needs to be
|
|
226
222
|
* white. Size 20x20.
|
|
227
223
|
*/
|
|
228
224
|
outline: string;
|
|
229
|
-
}
|
|
230
|
-
export interface Name {
|
|
231
225
|
/**
|
|
232
|
-
*
|
|
226
|
+
* A relative file path to a full color PNG icon. Size 96x96.
|
|
233
227
|
*/
|
|
234
|
-
|
|
228
|
+
color: string;
|
|
229
|
+
}
|
|
230
|
+
export interface Name {
|
|
235
231
|
/**
|
|
236
232
|
* A short display name for the app.
|
|
237
233
|
*/
|
|
238
234
|
short: string;
|
|
235
|
+
/**
|
|
236
|
+
* The full name of the app, used if the full app name exceeds 30 characters.
|
|
237
|
+
*/
|
|
238
|
+
full?: string;
|
|
239
239
|
}
|
|
240
240
|
export type Permission = "identity" | "messageTeamMembers";
|
|
241
241
|
export interface StaticTab {
|
|
242
|
-
/**
|
|
243
|
-
* The url which points to the entity UI to be displayed in the Teams canvas.
|
|
244
|
-
*/
|
|
245
|
-
contentUrl: string;
|
|
246
242
|
/**
|
|
247
243
|
* A unique identifier for the entity which the tab displays.
|
|
248
244
|
*/
|
|
@@ -252,15 +248,19 @@ export interface StaticTab {
|
|
|
252
248
|
*/
|
|
253
249
|
name: string;
|
|
254
250
|
/**
|
|
255
|
-
*
|
|
256
|
-
* an experience scoped to an individual user alone. These options are non-exclusive.
|
|
257
|
-
* Currently static tabs are only supported in the 'personal' scope.
|
|
251
|
+
* The url which points to the entity UI to be displayed in the Teams canvas.
|
|
258
252
|
*/
|
|
259
|
-
|
|
253
|
+
contentUrl: string;
|
|
260
254
|
/**
|
|
261
255
|
* The url to point at if a user opts to view in a browser.
|
|
262
256
|
*/
|
|
263
257
|
websiteUrl?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Specifies whether the tab offers an experience in the context of a channel in a team, or
|
|
260
|
+
* an experience scoped to an individual user alone. These options are non-exclusive.
|
|
261
|
+
* Currently static tabs are only supported in the 'personal' scope.
|
|
262
|
+
*/
|
|
263
|
+
scopes: CommandListScope[];
|
|
264
264
|
}
|
|
265
265
|
export declare class Convert {
|
|
266
266
|
static toTeamsManifestV1D0(json: string): TeamsManifestV1D0;
|
|
@@ -16,7 +16,7 @@ class Convert {
|
|
|
16
16
|
return cast(JSON.parse(json), r("TeamsManifestV1D0"));
|
|
17
17
|
}
|
|
18
18
|
static teamsManifestV1D0ToJson(value) {
|
|
19
|
-
return JSON.stringify(uncast(value, r("TeamsManifestV1D0")), null,
|
|
19
|
+
return JSON.stringify(uncast(value, r("TeamsManifestV1D0")), null, 4);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.Convert = Convert;
|
|
@@ -167,58 +167,58 @@ function r(name) {
|
|
|
167
167
|
}
|
|
168
168
|
const typeMap = {
|
|
169
169
|
"TeamsManifestV1D0": o([
|
|
170
|
+
{ json: "manifestVersion", js: "manifestVersion", typ: "" },
|
|
171
|
+
{ json: "version", js: "version", typ: "" },
|
|
172
|
+
{ json: "id", js: "id", typ: "" },
|
|
173
|
+
{ json: "packageName", js: "packageName", typ: "" },
|
|
174
|
+
{ json: "developer", js: "developer", typ: r("Developer") },
|
|
175
|
+
{ json: "name", js: "name", typ: r("Name") },
|
|
176
|
+
{ json: "description", js: "description", typ: r("Description") },
|
|
177
|
+
{ json: "icons", js: "icons", typ: r("Icons") },
|
|
170
178
|
{ json: "accentColor", js: "accentColor", typ: "" },
|
|
171
|
-
{ json: "bots", js: "bots", typ: u(undefined, a(r("Bot"))) },
|
|
172
|
-
{ json: "composeExtensions", js: "composeExtensions", typ: u(undefined, a(r("ComposeExtension"))) },
|
|
173
179
|
{ json: "configurableTabs", js: "configurableTabs", typ: u(undefined, a(r("ConfigurableTab"))) },
|
|
180
|
+
{ json: "staticTabs", js: "staticTabs", typ: u(undefined, a(r("StaticTab"))) },
|
|
181
|
+
{ json: "bots", js: "bots", typ: u(undefined, a(r("Bot"))) },
|
|
174
182
|
{ json: "connectors", js: "connectors", typ: u(undefined, a(r("Connector"))) },
|
|
175
|
-
{ json: "
|
|
176
|
-
{ json: "developer", js: "developer", typ: r("Developer") },
|
|
177
|
-
{ json: "icons", js: "icons", typ: r("Icons") },
|
|
178
|
-
{ json: "id", js: "id", typ: "" },
|
|
179
|
-
{ json: "manifestVersion", js: "manifestVersion", typ: "" },
|
|
180
|
-
{ json: "name", js: "name", typ: r("Name") },
|
|
181
|
-
{ json: "packageName", js: "packageName", typ: "" },
|
|
183
|
+
{ json: "composeExtensions", js: "composeExtensions", typ: u(undefined, a(r("ComposeExtension"))) },
|
|
182
184
|
{ json: "permissions", js: "permissions", typ: u(undefined, a(r("Permission"))) },
|
|
183
|
-
{ json: "staticTabs", js: "staticTabs", typ: u(undefined, a(r("StaticTab"))) },
|
|
184
185
|
{ json: "validDomains", js: "validDomains", typ: u(undefined, a("")) },
|
|
185
|
-
{ json: "version", js: "version", typ: "" },
|
|
186
186
|
], false),
|
|
187
187
|
"Bot": o([
|
|
188
188
|
{ json: "botId", js: "botId", typ: "" },
|
|
189
|
-
{ json: "commandLists", js: "commandLists", typ: u(undefined, a(r("CommandList"))) },
|
|
190
|
-
{ json: "isNotificationOnly", js: "isNotificationOnly", typ: u(undefined, true) },
|
|
191
189
|
{ json: "needsChannelSelector", js: "needsChannelSelector", typ: u(undefined, true) },
|
|
190
|
+
{ json: "isNotificationOnly", js: "isNotificationOnly", typ: u(undefined, true) },
|
|
192
191
|
{ json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
|
|
192
|
+
{ json: "commandLists", js: "commandLists", typ: u(undefined, a(r("CommandList"))) },
|
|
193
193
|
], false),
|
|
194
194
|
"CommandList": o([
|
|
195
|
-
{ json: "commands", js: "commands", typ: a(r("CommandListCommand")) },
|
|
196
195
|
{ json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
|
|
196
|
+
{ json: "commands", js: "commands", typ: a(r("CommandListCommand")) },
|
|
197
197
|
], false),
|
|
198
198
|
"CommandListCommand": o([
|
|
199
|
-
{ json: "description", js: "description", typ: "" },
|
|
200
199
|
{ json: "title", js: "title", typ: "" },
|
|
200
|
+
{ json: "description", js: "description", typ: "" },
|
|
201
201
|
], false),
|
|
202
202
|
"ComposeExtension": o([
|
|
203
203
|
{ json: "botId", js: "botId", typ: "" },
|
|
204
|
-
{ json: "commands", js: "commands", typ: a(r("ComposeExtensionCommand")) },
|
|
205
204
|
{ json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
|
|
205
|
+
{ json: "commands", js: "commands", typ: a(r("ComposeExtensionCommand")) },
|
|
206
206
|
], false),
|
|
207
207
|
"ComposeExtensionCommand": o([
|
|
208
|
-
{ json: "description", js: "description", typ: u(undefined, "") },
|
|
209
208
|
{ json: "id", js: "id", typ: "" },
|
|
209
|
+
{ json: "title", js: "title", typ: "" },
|
|
210
|
+
{ json: "description", js: "description", typ: u(undefined, "") },
|
|
210
211
|
{ json: "initialRun", js: "initialRun", typ: u(undefined, true) },
|
|
211
212
|
{ json: "parameters", js: "parameters", typ: a(r("Parameter")) },
|
|
212
|
-
{ json: "title", js: "title", typ: "" },
|
|
213
213
|
], false),
|
|
214
214
|
"Parameter": o([
|
|
215
|
-
{ json: "description", js: "description", typ: u(undefined, "") },
|
|
216
215
|
{ json: "name", js: "name", typ: "" },
|
|
217
216
|
{ json: "title", js: "title", typ: "" },
|
|
217
|
+
{ json: "description", js: "description", typ: u(undefined, "") },
|
|
218
218
|
], false),
|
|
219
219
|
"ConfigurableTab": o([
|
|
220
|
-
{ json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
|
|
221
220
|
{ json: "configurationUrl", js: "configurationUrl", typ: "" },
|
|
221
|
+
{ json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
|
|
222
222
|
{ json: "scopes", js: "scopes", typ: a(r("ConfigurableTabScope")) },
|
|
223
223
|
], false),
|
|
224
224
|
"Connector": o([
|
|
@@ -226,29 +226,29 @@ const typeMap = {
|
|
|
226
226
|
{ json: "scopes", js: "scopes", typ: a(r("ConfigurableTabScope")) },
|
|
227
227
|
], false),
|
|
228
228
|
"Description": o([
|
|
229
|
-
{ json: "full", js: "full", typ: "" },
|
|
230
229
|
{ json: "short", js: "short", typ: "" },
|
|
230
|
+
{ json: "full", js: "full", typ: "" },
|
|
231
231
|
], false),
|
|
232
232
|
"Developer": o([
|
|
233
233
|
{ json: "name", js: "name", typ: "" },
|
|
234
|
+
{ json: "websiteUrl", js: "websiteUrl", typ: "" },
|
|
234
235
|
{ json: "privacyUrl", js: "privacyUrl", typ: "" },
|
|
235
236
|
{ json: "termsOfUseUrl", js: "termsOfUseUrl", typ: "" },
|
|
236
|
-
{ json: "websiteUrl", js: "websiteUrl", typ: "" },
|
|
237
237
|
], false),
|
|
238
238
|
"Icons": o([
|
|
239
|
-
{ json: "color", js: "color", typ: "" },
|
|
240
239
|
{ json: "outline", js: "outline", typ: "" },
|
|
240
|
+
{ json: "color", js: "color", typ: "" },
|
|
241
241
|
], false),
|
|
242
242
|
"Name": o([
|
|
243
|
-
{ json: "full", js: "full", typ: u(undefined, "") },
|
|
244
243
|
{ json: "short", js: "short", typ: "" },
|
|
244
|
+
{ json: "full", js: "full", typ: u(undefined, "") },
|
|
245
245
|
], false),
|
|
246
246
|
"StaticTab": o([
|
|
247
|
-
{ json: "contentUrl", js: "contentUrl", typ: "" },
|
|
248
247
|
{ json: "entityId", js: "entityId", typ: "" },
|
|
249
248
|
{ json: "name", js: "name", typ: "" },
|
|
250
|
-
{ json: "
|
|
249
|
+
{ json: "contentUrl", js: "contentUrl", typ: "" },
|
|
251
250
|
{ json: "websiteUrl", js: "websiteUrl", typ: u(undefined, "") },
|
|
251
|
+
{ json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
|
|
252
252
|
], false),
|
|
253
253
|
"CommandListScope": [
|
|
254
254
|
"personal",
|