@microsoft/app-manifest 1.1.3 → 1.1.4-alpha.36e30da2f6.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/README.md +28 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D0.js +107 -65
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D0.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D2.js +108 -70
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D2.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D3.js +117 -75
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D3.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D4.js +163 -109
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D4.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D5.js +163 -109
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D5.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D6.js +179 -125
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D6.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D7.js +204 -136
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D7.js.map +1 -1
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D8.js +78 -43
- package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D8.js.map +1 -1
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.js +141 -95
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.js.map +1 -1
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.js +144 -108
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.js.map +1 -1
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D3.js +145 -114
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D3.js.map +1 -1
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D4.js +147 -121
- package/build/generated-types/copilot/plugin/ApiPluginManifestV2D4.js.map +1 -1
- package/build/generated-types/index.js +8 -0
- package/build/generated-types/index.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D0.js +115 -71
- package/build/generated-types/teams/TeamsManifestV1D0.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D1.js +115 -71
- package/build/generated-types/teams/TeamsManifestV1D1.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D10.js +209 -178
- package/build/generated-types/teams/TeamsManifestV1D10.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D11.js +204 -175
- package/build/generated-types/teams/TeamsManifestV1D11.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D12.js +213 -185
- package/build/generated-types/teams/TeamsManifestV1D12.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D13.js +213 -185
- package/build/generated-types/teams/TeamsManifestV1D13.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D14.js +219 -188
- package/build/generated-types/teams/TeamsManifestV1D14.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D15.js +224 -187
- package/build/generated-types/teams/TeamsManifestV1D15.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D16.js +228 -181
- package/build/generated-types/teams/TeamsManifestV1D16.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D17.js +393 -313
- package/build/generated-types/teams/TeamsManifestV1D17.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D19.js +395 -317
- package/build/generated-types/teams/TeamsManifestV1D19.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D2.js +115 -71
- package/build/generated-types/teams/TeamsManifestV1D2.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D20.js +479 -356
- package/build/generated-types/teams/TeamsManifestV1D20.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D21.js +497 -370
- package/build/generated-types/teams/TeamsManifestV1D21.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D22.js +506 -378
- package/build/generated-types/teams/TeamsManifestV1D22.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D23.js +583 -423
- package/build/generated-types/teams/TeamsManifestV1D23.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D24.js +610 -444
- package/build/generated-types/teams/TeamsManifestV1D24.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D25.js +630 -457
- package/build/generated-types/teams/TeamsManifestV1D25.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D26.js +637 -463
- package/build/generated-types/teams/TeamsManifestV1D26.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D27.js +648 -482
- package/build/generated-types/teams/TeamsManifestV1D27.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D28.js +649 -485
- package/build/generated-types/teams/TeamsManifestV1D28.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D29.js +78 -43
- package/build/generated-types/teams/TeamsManifestV1D29.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D3.js +117 -82
- package/build/generated-types/teams/TeamsManifestV1D3.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D30.js +78 -43
- package/build/generated-types/teams/TeamsManifestV1D30.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D4.js +138 -112
- package/build/generated-types/teams/TeamsManifestV1D4.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D5.js +156 -131
- package/build/generated-types/teams/TeamsManifestV1D5.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D6.js +156 -131
- package/build/generated-types/teams/TeamsManifestV1D6.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D7.js +158 -135
- package/build/generated-types/teams/TeamsManifestV1D7.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D8.js +160 -140
- package/build/generated-types/teams/TeamsManifestV1D8.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestV1D9.js +185 -166
- package/build/generated-types/teams/TeamsManifestV1D9.js.map +1 -1
- package/build/generated-types/teams/TeamsManifestVDevPreview.d.ts +420 -190
- package/build/generated-types/teams/TeamsManifestVDevPreview.js +824 -546
- package/build/generated-types/teams/TeamsManifestVDevPreview.js.map +1 -1
- package/build/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json +1869 -1362
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -20,32 +20,69 @@ class Convert {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.Convert = Convert;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
class ManifestConversionError extends Error {
|
|
24
|
+
path;
|
|
25
|
+
constructor(path, message) {
|
|
26
|
+
super(message);
|
|
27
|
+
this.path = path;
|
|
28
|
+
this.name = "ManifestConversionError";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function formatPath(path) {
|
|
32
|
+
return (path
|
|
33
|
+
.map((key, index) => {
|
|
34
|
+
if (typeof key === "number")
|
|
35
|
+
return `[${key}]`;
|
|
36
|
+
if (!/^[A-Za-z_$][\w$]*$/.test(key))
|
|
37
|
+
return `[${JSON.stringify(key)}]`;
|
|
38
|
+
return `${index === 0 ? "" : "."}${key}`;
|
|
39
|
+
})
|
|
40
|
+
.join("") || "<root>");
|
|
41
|
+
}
|
|
42
|
+
function invalidValue(typ, val, path) {
|
|
43
|
+
const location = formatPath(path);
|
|
44
|
+
if (typ === false) {
|
|
45
|
+
throw new ManifestConversionError(path, `Property "${location}" is not supported by the local manifest model.`);
|
|
46
|
+
}
|
|
47
|
+
const expected = prettyTypeName(typ);
|
|
48
|
+
if (val === undefined) {
|
|
49
|
+
throw new ManifestConversionError(path, `Missing required property "${location}". Expected ${expected}.`);
|
|
50
|
+
}
|
|
51
|
+
const actual = val === null ? "null" : Array.isArray(val) ? "array" : typeof val;
|
|
52
|
+
throw new ManifestConversionError(path, `Invalid value for key "${location}". Expected ${expected} but got ${actual}.`);
|
|
28
53
|
}
|
|
29
54
|
function prettyTypeName(typ) {
|
|
55
|
+
if (typ === null)
|
|
56
|
+
return "null";
|
|
57
|
+
if (typ === "any")
|
|
58
|
+
return "any value";
|
|
59
|
+
if (typ === Date)
|
|
60
|
+
return "Date";
|
|
30
61
|
if (Array.isArray(typ)) {
|
|
31
62
|
if (typ.length === 2 && typ[0] === undefined) {
|
|
32
63
|
return `an optional ${prettyTypeName(typ[1])}`;
|
|
33
64
|
}
|
|
34
|
-
|
|
35
|
-
return `one of [${typ.map(a => { return prettyTypeName(a); }).join(", ")}]`;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
else if (typeof typ === "object" && typ.literal !== undefined) {
|
|
39
|
-
return typ.literal;
|
|
65
|
+
return `one of [${typ.map(prettyTypeName).join(", ")}]`;
|
|
40
66
|
}
|
|
41
|
-
|
|
42
|
-
|
|
67
|
+
if (typeof typ === "object") {
|
|
68
|
+
if (Object.prototype.hasOwnProperty.call(typ, "literal"))
|
|
69
|
+
return JSON.stringify(typ.literal);
|
|
70
|
+
if (Object.prototype.hasOwnProperty.call(typ, "arrayItems"))
|
|
71
|
+
return `array of ${prettyTypeName(typ.arrayItems)}`;
|
|
72
|
+
if (Object.prototype.hasOwnProperty.call(typ, "unionMembers"))
|
|
73
|
+
return prettyTypeName(typ.unionMembers);
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(typ, "ref")) {
|
|
75
|
+
const referenced = typeMap[typ.ref];
|
|
76
|
+
return Array.isArray(referenced) ? prettyTypeName(referenced.map(l)) : typ.ref;
|
|
77
|
+
}
|
|
78
|
+
return "object";
|
|
43
79
|
}
|
|
80
|
+
return typeof typ;
|
|
44
81
|
}
|
|
45
82
|
function jsonToJSProps(typ) {
|
|
46
83
|
if (typ.jsonToJS === undefined) {
|
|
47
84
|
const map = {};
|
|
48
|
-
typ.props.forEach((p) => map[p.json] = { key: p.js, typ: p.typ });
|
|
85
|
+
typ.props.forEach((p) => (map[p.json] = { key: p.js, typ: p.typ }));
|
|
49
86
|
typ.jsonToJS = map;
|
|
50
87
|
}
|
|
51
88
|
return typ.jsonToJS;
|
|
@@ -53,63 +90,67 @@ function jsonToJSProps(typ) {
|
|
|
53
90
|
function jsToJSONProps(typ) {
|
|
54
91
|
if (typ.jsToJSON === undefined) {
|
|
55
92
|
const map = {};
|
|
56
|
-
typ.props.forEach((p) => map[p.js] = { key: p.json, typ: p.typ });
|
|
93
|
+
typ.props.forEach((p) => (map[p.js] = { key: p.json, typ: p.typ }));
|
|
57
94
|
typ.jsToJSON = map;
|
|
58
95
|
}
|
|
59
96
|
return typ.jsToJSON;
|
|
60
97
|
}
|
|
61
|
-
function transform(val, typ, getProps,
|
|
98
|
+
function transform(val, typ, getProps, path = []) {
|
|
62
99
|
function transformPrimitive(typ, val) {
|
|
63
100
|
if (typeof typ === typeof val)
|
|
64
101
|
return val;
|
|
65
|
-
return invalidValue(typ, val,
|
|
102
|
+
return invalidValue(typ, val, path);
|
|
66
103
|
}
|
|
67
104
|
function transformUnion(typs, val) {
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
for (let i = 0; i < l; i++) {
|
|
71
|
-
const typ = typs[i];
|
|
105
|
+
let deepestError;
|
|
106
|
+
for (const member of typs) {
|
|
72
107
|
try {
|
|
73
|
-
return transform(val,
|
|
108
|
+
return transform(val, member, getProps, path);
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
if (!(error instanceof ManifestConversionError))
|
|
112
|
+
throw error;
|
|
113
|
+
if (!deepestError || error.path.length > deepestError.path.length) {
|
|
114
|
+
deepestError = error;
|
|
115
|
+
}
|
|
74
116
|
}
|
|
75
|
-
catch (_) { }
|
|
76
117
|
}
|
|
77
|
-
|
|
118
|
+
// A failed optional/union wrapper must not hide an invalid nested property.
|
|
119
|
+
if (deepestError && deepestError.path.length > path.length)
|
|
120
|
+
throw deepestError;
|
|
121
|
+
return invalidValue(u(...typs), val, path);
|
|
78
122
|
}
|
|
79
123
|
function transformEnum(cases, val) {
|
|
80
124
|
if (cases.indexOf(val) !== -1)
|
|
81
125
|
return val;
|
|
82
|
-
return invalidValue(cases.map(
|
|
126
|
+
return invalidValue(cases.map(l), val, path);
|
|
83
127
|
}
|
|
84
128
|
function transformArray(typ, val) {
|
|
85
|
-
// val must be an array with no invalid elements
|
|
86
129
|
if (!Array.isArray(val))
|
|
87
|
-
return invalidValue(
|
|
88
|
-
return val.map(el => transform(el, typ, getProps));
|
|
130
|
+
return invalidValue(a(typ), val, path);
|
|
131
|
+
return val.map((el, index) => transform(el, typ, getProps, [...path, index]));
|
|
89
132
|
}
|
|
90
133
|
function transformDate(val) {
|
|
91
|
-
if (val === null)
|
|
134
|
+
if (val === null)
|
|
92
135
|
return null;
|
|
93
|
-
}
|
|
94
136
|
const d = new Date(val);
|
|
95
|
-
if (isNaN(d.valueOf()))
|
|
96
|
-
return invalidValue(
|
|
97
|
-
}
|
|
137
|
+
if (isNaN(d.valueOf()))
|
|
138
|
+
return invalidValue(Date, val, path);
|
|
98
139
|
return d;
|
|
99
140
|
}
|
|
100
141
|
function transformObject(props, additional, val) {
|
|
101
142
|
if (val === null || typeof val !== "object" || Array.isArray(val)) {
|
|
102
|
-
return invalidValue(
|
|
143
|
+
return invalidValue(ref ? r(ref) : { props: [] }, val, path);
|
|
103
144
|
}
|
|
104
145
|
const result = {};
|
|
105
|
-
Object.getOwnPropertyNames(props).forEach(key => {
|
|
146
|
+
Object.getOwnPropertyNames(props).forEach((key) => {
|
|
106
147
|
const prop = props[key];
|
|
107
148
|
const v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined;
|
|
108
|
-
result[prop.key] = transform(v, prop.typ, getProps,
|
|
149
|
+
result[prop.key] = transform(v, prop.typ, getProps, [...path, key]);
|
|
109
150
|
});
|
|
110
|
-
Object.getOwnPropertyNames(val).forEach(key => {
|
|
151
|
+
Object.getOwnPropertyNames(val).forEach((key) => {
|
|
111
152
|
if (!Object.prototype.hasOwnProperty.call(props, key)) {
|
|
112
|
-
result[key] = transform(val[key], additional, getProps,
|
|
153
|
+
result[key] = transform(val[key], additional, getProps, [...path, key]);
|
|
113
154
|
}
|
|
114
155
|
});
|
|
115
156
|
return result;
|
|
@@ -119,10 +160,10 @@ function transform(val, typ, getProps, key = '', parent = '') {
|
|
|
119
160
|
if (typ === null) {
|
|
120
161
|
if (val === null)
|
|
121
162
|
return val;
|
|
122
|
-
return invalidValue(typ, val,
|
|
163
|
+
return invalidValue(typ, val, path);
|
|
123
164
|
}
|
|
124
165
|
if (typ === false)
|
|
125
|
-
return invalidValue(typ, val,
|
|
166
|
+
return invalidValue(typ, val, path);
|
|
126
167
|
let ref = undefined;
|
|
127
168
|
while (typeof typ === "object" && typ.ref !== undefined) {
|
|
128
169
|
ref = typ.ref;
|
|
@@ -131,10 +172,13 @@ function transform(val, typ, getProps, key = '', parent = '') {
|
|
|
131
172
|
if (Array.isArray(typ))
|
|
132
173
|
return transformEnum(typ, val);
|
|
133
174
|
if (typeof typ === "object") {
|
|
134
|
-
return typ.hasOwnProperty("unionMembers")
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
175
|
+
return typ.hasOwnProperty("unionMembers")
|
|
176
|
+
? transformUnion(typ.unionMembers, val)
|
|
177
|
+
: typ.hasOwnProperty("arrayItems")
|
|
178
|
+
? transformArray(typ.arrayItems, val)
|
|
179
|
+
: typ.hasOwnProperty("props")
|
|
180
|
+
? transformObject(getProps(typ), typ.additional, val)
|
|
181
|
+
: invalidValue(typ, val, path);
|
|
138
182
|
}
|
|
139
183
|
// Numbers can be parsed by Date but shouldn't be.
|
|
140
184
|
if (typ === Date && typeof val !== "number")
|
|
@@ -166,60 +210,108 @@ function r(name) {
|
|
|
166
210
|
return { ref: name };
|
|
167
211
|
}
|
|
168
212
|
const typeMap = {
|
|
169
|
-
|
|
213
|
+
TeamsManifestV1D15: o([
|
|
170
214
|
{ json: "$schema", js: "$schema", typ: u(undefined, "") },
|
|
171
215
|
{ json: "manifestVersion", js: "manifestVersion", typ: r("ManifestVersion") },
|
|
172
216
|
{ json: "version", js: "version", typ: "" },
|
|
173
217
|
{ json: "id", js: "id", typ: "" },
|
|
174
218
|
{ json: "packageName", js: "packageName", typ: u(undefined, "") },
|
|
175
|
-
{
|
|
219
|
+
{
|
|
220
|
+
json: "localizationInfo",
|
|
221
|
+
js: "localizationInfo",
|
|
222
|
+
typ: u(undefined, r("LocalizationInfo")),
|
|
223
|
+
},
|
|
176
224
|
{ json: "developer", js: "developer", typ: r("Developer") },
|
|
177
225
|
{ json: "name", js: "name", typ: r("Name") },
|
|
178
226
|
{ json: "description", js: "description", typ: r("Description") },
|
|
179
227
|
{ json: "icons", js: "icons", typ: r("Icons") },
|
|
180
228
|
{ json: "accentColor", js: "accentColor", typ: "" },
|
|
181
|
-
{
|
|
229
|
+
{
|
|
230
|
+
json: "configurableTabs",
|
|
231
|
+
js: "configurableTabs",
|
|
232
|
+
typ: u(undefined, a(r("ConfigurableTab"))),
|
|
233
|
+
},
|
|
182
234
|
{ json: "staticTabs", js: "staticTabs", typ: u(undefined, a(r("StaticTab"))) },
|
|
183
235
|
{ json: "bots", js: "bots", typ: u(undefined, a(r("Bot"))) },
|
|
184
236
|
{ json: "connectors", js: "connectors", typ: u(undefined, a(r("Connector"))) },
|
|
185
|
-
{
|
|
186
|
-
|
|
237
|
+
{
|
|
238
|
+
json: "subscriptionOffer",
|
|
239
|
+
js: "subscriptionOffer",
|
|
240
|
+
typ: u(undefined, r("SubscriptionOffer")),
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
json: "composeExtensions",
|
|
244
|
+
js: "composeExtensions",
|
|
245
|
+
typ: u(undefined, a(r("ComposeExtension"))),
|
|
246
|
+
},
|
|
187
247
|
{ json: "permissions", js: "permissions", typ: u(undefined, a(r("Permission"))) },
|
|
188
|
-
{
|
|
248
|
+
{
|
|
249
|
+
json: "devicePermissions",
|
|
250
|
+
js: "devicePermissions",
|
|
251
|
+
typ: u(undefined, a(r("DevicePermission"))),
|
|
252
|
+
},
|
|
189
253
|
{ json: "validDomains", js: "validDomains", typ: u(undefined, a("")) },
|
|
190
|
-
{
|
|
254
|
+
{
|
|
255
|
+
json: "webApplicationInfo",
|
|
256
|
+
js: "webApplicationInfo",
|
|
257
|
+
typ: u(undefined, r("WebApplicationInfo")),
|
|
258
|
+
},
|
|
191
259
|
{ json: "graphConnector", js: "graphConnector", typ: u(undefined, r("GraphConnector")) },
|
|
192
260
|
{ json: "showLoadingIndicator", js: "showLoadingIndicator", typ: u(undefined, true) },
|
|
193
261
|
{ json: "isFullScreen", js: "isFullScreen", typ: u(undefined, true) },
|
|
194
262
|
{ json: "activities", js: "activities", typ: u(undefined, r("Activities")) },
|
|
195
|
-
{
|
|
196
|
-
|
|
197
|
-
|
|
263
|
+
{
|
|
264
|
+
json: "configurableProperties",
|
|
265
|
+
js: "configurableProperties",
|
|
266
|
+
typ: u(undefined, a(r("ConfigurableProperty"))),
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
json: "supportedChannelTypes",
|
|
270
|
+
js: "supportedChannelTypes",
|
|
271
|
+
typ: u(undefined, a(r("SupportedChannelType"))),
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
json: "defaultBlockUntilAdminAction",
|
|
275
|
+
js: "defaultBlockUntilAdminAction",
|
|
276
|
+
typ: u(undefined, true),
|
|
277
|
+
},
|
|
198
278
|
{ json: "publisherDocsUrl", js: "publisherDocsUrl", typ: u(undefined, "") },
|
|
199
|
-
{
|
|
200
|
-
|
|
201
|
-
|
|
279
|
+
{
|
|
280
|
+
json: "defaultInstallScope",
|
|
281
|
+
js: "defaultInstallScope",
|
|
282
|
+
typ: u(undefined, r("DefaultInstallScope")),
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
json: "defaultGroupCapability",
|
|
286
|
+
js: "defaultGroupCapability",
|
|
287
|
+
typ: u(undefined, r("DefaultGroupCapability")),
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
json: "meetingExtensionDefinition",
|
|
291
|
+
js: "meetingExtensionDefinition",
|
|
292
|
+
typ: u(undefined, r("MeetingExtensionDefinition")),
|
|
293
|
+
},
|
|
202
294
|
{ json: "authorization", js: "authorization", typ: u(undefined, r("Authorization")) },
|
|
203
295
|
], false),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
], false),
|
|
207
|
-
"ActivityType": o([
|
|
296
|
+
Activities: o([{ json: "activityTypes", js: "activityTypes", typ: u(undefined, a(r("ActivityType"))) }], false),
|
|
297
|
+
ActivityType: o([
|
|
208
298
|
{ json: "type", js: "type", typ: "" },
|
|
209
299
|
{ json: "description", js: "description", typ: "" },
|
|
210
300
|
{ json: "templateText", js: "templateText", typ: "" },
|
|
211
301
|
], false),
|
|
212
|
-
|
|
213
|
-
|
|
302
|
+
Authorization: o([{ json: "permissions", js: "permissions", typ: u(undefined, r("Permissions")) }], false),
|
|
303
|
+
Permissions: o([
|
|
304
|
+
{
|
|
305
|
+
json: "resourceSpecific",
|
|
306
|
+
js: "resourceSpecific",
|
|
307
|
+
typ: u(undefined, a(r("ResourceSpecific"))),
|
|
308
|
+
},
|
|
214
309
|
], false),
|
|
215
|
-
|
|
216
|
-
{ json: "resourceSpecific", js: "resourceSpecific", typ: u(undefined, a(r("ResourceSpecific"))) },
|
|
217
|
-
], false),
|
|
218
|
-
"ResourceSpecific": o([
|
|
310
|
+
ResourceSpecific: o([
|
|
219
311
|
{ json: "name", js: "name", typ: "" },
|
|
220
312
|
{ json: "type", js: "type", typ: r("ResourceSpecificType") },
|
|
221
313
|
], false),
|
|
222
|
-
|
|
314
|
+
Bot: o([
|
|
223
315
|
{ json: "botId", js: "botId", typ: "" },
|
|
224
316
|
{ json: "needsChannelSelector", js: "needsChannelSelector", typ: u(undefined, true) },
|
|
225
317
|
{ json: "isNotificationOnly", js: "isNotificationOnly", typ: u(undefined, true) },
|
|
@@ -229,21 +321,21 @@ const typeMap = {
|
|
|
229
321
|
{ json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
|
|
230
322
|
{ json: "commandLists", js: "commandLists", typ: u(undefined, a(r("CommandList"))) },
|
|
231
323
|
], false),
|
|
232
|
-
|
|
324
|
+
CommandList: o([
|
|
233
325
|
{ json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
|
|
234
326
|
{ json: "commands", js: "commands", typ: a(r("CommandListCommand")) },
|
|
235
327
|
], false),
|
|
236
|
-
|
|
328
|
+
CommandListCommand: o([
|
|
237
329
|
{ json: "title", js: "title", typ: "" },
|
|
238
330
|
{ json: "description", js: "description", typ: "" },
|
|
239
331
|
], false),
|
|
240
|
-
|
|
332
|
+
ComposeExtension: o([
|
|
241
333
|
{ json: "botId", js: "botId", typ: "" },
|
|
242
334
|
{ json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
|
|
243
335
|
{ json: "commands", js: "commands", typ: a(r("ComposeExtensionCommand")) },
|
|
244
336
|
{ json: "messageHandlers", js: "messageHandlers", typ: u(undefined, a(r("MessageHandler"))) },
|
|
245
337
|
], false),
|
|
246
|
-
|
|
338
|
+
ComposeExtensionCommand: o([
|
|
247
339
|
{ json: "id", js: "id", typ: "" },
|
|
248
340
|
{ json: "type", js: "type", typ: u(undefined, r("CommandType")) },
|
|
249
341
|
{ json: "context", js: "context", typ: u(undefined, a(r("CommandContext"))) },
|
|
@@ -254,7 +346,7 @@ const typeMap = {
|
|
|
254
346
|
{ json: "parameters", js: "parameters", typ: u(undefined, a(r("Parameter"))) },
|
|
255
347
|
{ json: "taskInfo", js: "taskInfo", typ: u(undefined, r("TaskInfo")) },
|
|
256
348
|
], false),
|
|
257
|
-
|
|
349
|
+
Parameter: o([
|
|
258
350
|
{ json: "name", js: "name", typ: "" },
|
|
259
351
|
{ json: "inputType", js: "inputType", typ: u(undefined, r("InputType")) },
|
|
260
352
|
{ json: "title", js: "title", typ: "" },
|
|
@@ -262,86 +354,100 @@ const typeMap = {
|
|
|
262
354
|
{ json: "value", js: "value", typ: u(undefined, "") },
|
|
263
355
|
{ json: "choices", js: "choices", typ: u(undefined, a(r("Choice"))) },
|
|
264
356
|
], false),
|
|
265
|
-
|
|
357
|
+
Choice: o([
|
|
266
358
|
{ json: "title", js: "title", typ: "" },
|
|
267
359
|
{ json: "value", js: "value", typ: "" },
|
|
268
360
|
], false),
|
|
269
|
-
|
|
361
|
+
TaskInfo: o([
|
|
270
362
|
{ json: "title", js: "title", typ: u(undefined, "") },
|
|
271
363
|
{ json: "width", js: "width", typ: u(undefined, "") },
|
|
272
364
|
{ json: "height", js: "height", typ: u(undefined, "") },
|
|
273
365
|
{ json: "url", js: "url", typ: u(undefined, "") },
|
|
274
366
|
], false),
|
|
275
|
-
|
|
367
|
+
MessageHandler: o([
|
|
276
368
|
{ json: "type", js: "type", typ: r("MessageHandlerType") },
|
|
277
369
|
{ json: "value", js: "value", typ: r("Value") },
|
|
278
370
|
], false),
|
|
279
|
-
|
|
371
|
+
Value: o([
|
|
280
372
|
{ json: "domains", js: "domains", typ: u(undefined, a("")) },
|
|
281
|
-
{
|
|
373
|
+
{
|
|
374
|
+
json: "supportsAnonymizedPayloads",
|
|
375
|
+
js: "supportsAnonymizedPayloads",
|
|
376
|
+
typ: u(undefined, true),
|
|
377
|
+
},
|
|
282
378
|
], "any"),
|
|
283
|
-
|
|
379
|
+
ConfigurableTab: o([
|
|
284
380
|
{ json: "configurationUrl", js: "configurationUrl", typ: "" },
|
|
285
381
|
{ json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
|
|
286
382
|
{ json: "scopes", js: "scopes", typ: a(r("ConfigurableTabScope")) },
|
|
287
383
|
{ json: "meetingSurfaces", js: "meetingSurfaces", typ: u(undefined, a(r("MeetingSurface"))) },
|
|
288
384
|
{ json: "context", js: "context", typ: u(undefined, a(r("ConfigurableTabContext"))) },
|
|
289
385
|
{ json: "sharePointPreviewImage", js: "sharePointPreviewImage", typ: u(undefined, "") },
|
|
290
|
-
{
|
|
386
|
+
{
|
|
387
|
+
json: "supportedSharePointHosts",
|
|
388
|
+
js: "supportedSharePointHosts",
|
|
389
|
+
typ: u(undefined, a(r("SupportedSharePointHost"))),
|
|
390
|
+
},
|
|
291
391
|
], false),
|
|
292
|
-
|
|
392
|
+
Connector: o([
|
|
293
393
|
{ json: "connectorId", js: "connectorId", typ: "" },
|
|
294
394
|
{ json: "configurationUrl", js: "configurationUrl", typ: u(undefined, "") },
|
|
295
395
|
{ json: "scopes", js: "scopes", typ: a(r("ConnectorScope")) },
|
|
296
396
|
], false),
|
|
297
|
-
|
|
397
|
+
DefaultGroupCapability: o([
|
|
298
398
|
{ json: "team", js: "team", typ: u(undefined, r("Groupchat")) },
|
|
299
399
|
{ json: "groupchat", js: "groupchat", typ: u(undefined, r("Groupchat")) },
|
|
300
400
|
{ json: "meetings", js: "meetings", typ: u(undefined, r("Groupchat")) },
|
|
301
401
|
], false),
|
|
302
|
-
|
|
402
|
+
Description: o([
|
|
303
403
|
{ json: "short", js: "short", typ: "" },
|
|
304
404
|
{ json: "full", js: "full", typ: "" },
|
|
305
405
|
], false),
|
|
306
|
-
|
|
406
|
+
Developer: o([
|
|
307
407
|
{ json: "name", js: "name", typ: "" },
|
|
308
408
|
{ json: "mpnId", js: "mpnId", typ: u(undefined, "") },
|
|
309
409
|
{ json: "websiteUrl", js: "websiteUrl", typ: "" },
|
|
310
410
|
{ json: "privacyUrl", js: "privacyUrl", typ: "" },
|
|
311
411
|
{ json: "termsOfUseUrl", js: "termsOfUseUrl", typ: "" },
|
|
312
412
|
], false),
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
], false),
|
|
316
|
-
"Icons": o([
|
|
413
|
+
GraphConnector: o([{ json: "notificationUrl", js: "notificationUrl", typ: "" }], false),
|
|
414
|
+
Icons: o([
|
|
317
415
|
{ json: "outline", js: "outline", typ: "" },
|
|
318
416
|
{ json: "color", js: "color", typ: "" },
|
|
319
417
|
], false),
|
|
320
|
-
|
|
418
|
+
LocalizationInfo: o([
|
|
321
419
|
{ json: "defaultLanguageTag", js: "defaultLanguageTag", typ: "" },
|
|
322
|
-
{
|
|
420
|
+
{
|
|
421
|
+
json: "additionalLanguages",
|
|
422
|
+
js: "additionalLanguages",
|
|
423
|
+
typ: u(undefined, a(r("AdditionalLanguage"))),
|
|
424
|
+
},
|
|
323
425
|
], false),
|
|
324
|
-
|
|
426
|
+
AdditionalLanguage: o([
|
|
325
427
|
{ json: "languageTag", js: "languageTag", typ: "" },
|
|
326
428
|
{ json: "file", js: "file", typ: "" },
|
|
327
429
|
], false),
|
|
328
|
-
|
|
430
|
+
MeetingExtensionDefinition: o([
|
|
329
431
|
{ json: "scenes", js: "scenes", typ: u(undefined, a(r("Scene"))) },
|
|
330
432
|
{ json: "supportsStreaming", js: "supportsStreaming", typ: u(undefined, true) },
|
|
331
433
|
], false),
|
|
332
|
-
|
|
434
|
+
Scene: o([
|
|
333
435
|
{ json: "id", js: "id", typ: "" },
|
|
334
436
|
{ json: "name", js: "name", typ: "" },
|
|
335
437
|
{ json: "file", js: "file", typ: "" },
|
|
336
438
|
{ json: "preview", js: "preview", typ: "" },
|
|
337
439
|
{ json: "maxAudience", js: "maxAudience", typ: 0 },
|
|
338
|
-
{
|
|
440
|
+
{
|
|
441
|
+
json: "seatsReservedForOrganizersOrPresenters",
|
|
442
|
+
js: "seatsReservedForOrganizersOrPresenters",
|
|
443
|
+
typ: 0,
|
|
444
|
+
},
|
|
339
445
|
], false),
|
|
340
|
-
|
|
446
|
+
Name: o([
|
|
341
447
|
{ json: "short", js: "short", typ: "" },
|
|
342
448
|
{ json: "full", js: "full", typ: u(undefined, "") },
|
|
343
449
|
], false),
|
|
344
|
-
|
|
450
|
+
StaticTab: o([
|
|
345
451
|
{ json: "entityId", js: "entityId", typ: "" },
|
|
346
452
|
{ json: "name", js: "name", typ: u(undefined, "") },
|
|
347
453
|
{ json: "contentUrl", js: "contentUrl", typ: u(undefined, "") },
|
|
@@ -351,45 +457,18 @@ const typeMap = {
|
|
|
351
457
|
{ json: "scopes", js: "scopes", typ: a(r("StaticTabScope")) },
|
|
352
458
|
{ json: "context", js: "context", typ: u(undefined, a(r("StaticTabContext"))) },
|
|
353
459
|
], false),
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
], false),
|
|
357
|
-
"WebApplicationInfo": o([
|
|
460
|
+
SubscriptionOffer: o([{ json: "offerId", js: "offerId", typ: "" }], false),
|
|
461
|
+
WebApplicationInfo: o([
|
|
358
462
|
{ json: "id", js: "id", typ: "" },
|
|
359
463
|
{ json: "resource", js: "resource", typ: u(undefined, "") },
|
|
360
464
|
], false),
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
],
|
|
365
|
-
"
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
"personal",
|
|
369
|
-
"team",
|
|
370
|
-
],
|
|
371
|
-
"CommandContext": [
|
|
372
|
-
"commandBox",
|
|
373
|
-
"compose",
|
|
374
|
-
"message",
|
|
375
|
-
],
|
|
376
|
-
"InputType": [
|
|
377
|
-
"choiceset",
|
|
378
|
-
"date",
|
|
379
|
-
"number",
|
|
380
|
-
"text",
|
|
381
|
-
"textarea",
|
|
382
|
-
"time",
|
|
383
|
-
"toggle",
|
|
384
|
-
],
|
|
385
|
-
"CommandType": [
|
|
386
|
-
"action",
|
|
387
|
-
"query",
|
|
388
|
-
],
|
|
389
|
-
"MessageHandlerType": [
|
|
390
|
-
"link",
|
|
391
|
-
],
|
|
392
|
-
"ConfigurableProperty": [
|
|
465
|
+
ResourceSpecificType: ["Application", "Delegated"],
|
|
466
|
+
CommandListScope: ["groupChat", "groupchat", "personal", "team"],
|
|
467
|
+
CommandContext: ["commandBox", "compose", "message"],
|
|
468
|
+
InputType: ["choiceset", "date", "number", "text", "textarea", "time", "toggle"],
|
|
469
|
+
CommandType: ["action", "query"],
|
|
470
|
+
MessageHandlerType: ["link"],
|
|
471
|
+
ConfigurableProperty: [
|
|
393
472
|
"accentColor",
|
|
394
473
|
"developerUrl",
|
|
395
474
|
"largeImageUrl",
|
|
@@ -400,7 +479,7 @@ const typeMap = {
|
|
|
400
479
|
"smallImageUrl",
|
|
401
480
|
"termsOfUseUrl",
|
|
402
481
|
],
|
|
403
|
-
|
|
482
|
+
ConfigurableTabContext: [
|
|
404
483
|
"callingSidePanel",
|
|
405
484
|
"channelTab",
|
|
406
485
|
"meetingChatTab",
|
|
@@ -410,59 +489,17 @@ const typeMap = {
|
|
|
410
489
|
"personalTab",
|
|
411
490
|
"privateChatTab",
|
|
412
491
|
],
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
],
|
|
417
|
-
"
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
],
|
|
422
|
-
"
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
],
|
|
426
|
-
"ConnectorScope": [
|
|
427
|
-
"team",
|
|
428
|
-
],
|
|
429
|
-
"Groupchat": [
|
|
430
|
-
"bot",
|
|
431
|
-
"connector",
|
|
432
|
-
"tab",
|
|
433
|
-
],
|
|
434
|
-
"DefaultInstallScope": [
|
|
435
|
-
"groupChat",
|
|
436
|
-
"groupchat",
|
|
437
|
-
"meetings",
|
|
438
|
-
"personal",
|
|
439
|
-
"team",
|
|
440
|
-
],
|
|
441
|
-
"DevicePermission": [
|
|
442
|
-
"geolocation",
|
|
443
|
-
"midi",
|
|
444
|
-
"media",
|
|
445
|
-
"notifications",
|
|
446
|
-
"openExternal",
|
|
447
|
-
],
|
|
448
|
-
"ManifestVersion": [
|
|
449
|
-
"1.15",
|
|
450
|
-
],
|
|
451
|
-
"Permission": [
|
|
452
|
-
"identity",
|
|
453
|
-
"messageTeamMembers",
|
|
454
|
-
],
|
|
455
|
-
"StaticTabContext": [
|
|
456
|
-
"channelTab",
|
|
457
|
-
"personalTab",
|
|
458
|
-
],
|
|
459
|
-
"StaticTabScope": [
|
|
460
|
-
"personal",
|
|
461
|
-
"team",
|
|
462
|
-
],
|
|
463
|
-
"SupportedChannelType": [
|
|
464
|
-
"privateChannels",
|
|
465
|
-
"sharedChannels",
|
|
466
|
-
],
|
|
492
|
+
MeetingSurface: ["sidePanel", "stage"],
|
|
493
|
+
ConfigurableTabScope: ["groupChat", "groupchat", "team"],
|
|
494
|
+
SupportedSharePointHost: ["sharePointFullPage", "sharePointWebPart"],
|
|
495
|
+
ConnectorScope: ["team"],
|
|
496
|
+
Groupchat: ["bot", "connector", "tab"],
|
|
497
|
+
DefaultInstallScope: ["groupChat", "groupchat", "meetings", "personal", "team"],
|
|
498
|
+
DevicePermission: ["geolocation", "midi", "media", "notifications", "openExternal"],
|
|
499
|
+
ManifestVersion: ["1.15"],
|
|
500
|
+
Permission: ["identity", "messageTeamMembers"],
|
|
501
|
+
StaticTabContext: ["channelTab", "personalTab"],
|
|
502
|
+
StaticTabScope: ["personal", "team"],
|
|
503
|
+
SupportedChannelType: ["privateChannels", "sharedChannels"],
|
|
467
504
|
};
|
|
468
505
|
//# sourceMappingURL=TeamsManifestV1D15.js.map
|