@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,59 +210,103 @@ function r(name) {
|
|
|
166
210
|
return { ref: name };
|
|
167
211
|
}
|
|
168
212
|
const typeMap = {
|
|
169
|
-
|
|
213
|
+
TeamsManifestV1D12: 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
|
-
|
|
263
|
+
{
|
|
264
|
+
json: "configurableProperties",
|
|
265
|
+
js: "configurableProperties",
|
|
266
|
+
typ: u(undefined, a(r("ConfigurableProperty"))),
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
json: "defaultBlockUntilAdminAction",
|
|
270
|
+
js: "defaultBlockUntilAdminAction",
|
|
271
|
+
typ: u(undefined, true),
|
|
272
|
+
},
|
|
197
273
|
{ json: "publisherDocsUrl", js: "publisherDocsUrl", typ: u(undefined, "") },
|
|
198
|
-
{
|
|
199
|
-
|
|
200
|
-
|
|
274
|
+
{
|
|
275
|
+
json: "defaultInstallScope",
|
|
276
|
+
js: "defaultInstallScope",
|
|
277
|
+
typ: u(undefined, r("DefaultInstallScope")),
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
json: "defaultGroupCapability",
|
|
281
|
+
js: "defaultGroupCapability",
|
|
282
|
+
typ: u(undefined, r("DefaultGroupCapability")),
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
json: "meetingExtensionDefinition",
|
|
286
|
+
js: "meetingExtensionDefinition",
|
|
287
|
+
typ: u(undefined, r("MeetingExtensionDefinition")),
|
|
288
|
+
},
|
|
201
289
|
{ json: "authorization", js: "authorization", typ: u(undefined, r("Authorization")) },
|
|
202
290
|
], false),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
], false),
|
|
206
|
-
"ActivityType": o([
|
|
291
|
+
Activities: o([{ json: "activityTypes", js: "activityTypes", typ: u(undefined, a(r("ActivityType"))) }], false),
|
|
292
|
+
ActivityType: o([
|
|
207
293
|
{ json: "type", js: "type", typ: "" },
|
|
208
294
|
{ json: "description", js: "description", typ: "" },
|
|
209
295
|
{ json: "templateText", js: "templateText", typ: "" },
|
|
210
296
|
], false),
|
|
211
|
-
|
|
212
|
-
|
|
297
|
+
Authorization: o([{ json: "permissions", js: "permissions", typ: u(undefined, r("Permissions")) }], false),
|
|
298
|
+
Permissions: o([
|
|
299
|
+
{
|
|
300
|
+
json: "resourceSpecific",
|
|
301
|
+
js: "resourceSpecific",
|
|
302
|
+
typ: u(undefined, a(r("ResourceSpecific"))),
|
|
303
|
+
},
|
|
213
304
|
], false),
|
|
214
|
-
|
|
215
|
-
{ json: "resourceSpecific", js: "resourceSpecific", typ: u(undefined, a(r("ResourceSpecific"))) },
|
|
216
|
-
], false),
|
|
217
|
-
"ResourceSpecific": o([
|
|
305
|
+
ResourceSpecific: o([
|
|
218
306
|
{ json: "name", js: "name", typ: "" },
|
|
219
307
|
{ json: "type", js: "type", typ: r("ResourceSpecificType") },
|
|
220
308
|
], false),
|
|
221
|
-
|
|
309
|
+
Bot: o([
|
|
222
310
|
{ json: "botId", js: "botId", typ: "" },
|
|
223
311
|
{ json: "needsChannelSelector", js: "needsChannelSelector", typ: u(undefined, true) },
|
|
224
312
|
{ json: "isNotificationOnly", js: "isNotificationOnly", typ: u(undefined, true) },
|
|
@@ -228,21 +316,21 @@ const typeMap = {
|
|
|
228
316
|
{ json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
|
|
229
317
|
{ json: "commandLists", js: "commandLists", typ: u(undefined, a(r("CommandList"))) },
|
|
230
318
|
], false),
|
|
231
|
-
|
|
319
|
+
CommandList: o([
|
|
232
320
|
{ json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
|
|
233
321
|
{ json: "commands", js: "commands", typ: a(r("CommandListCommand")) },
|
|
234
322
|
], false),
|
|
235
|
-
|
|
323
|
+
CommandListCommand: o([
|
|
236
324
|
{ json: "title", js: "title", typ: "" },
|
|
237
325
|
{ json: "description", js: "description", typ: "" },
|
|
238
326
|
], false),
|
|
239
|
-
|
|
327
|
+
ComposeExtension: o([
|
|
240
328
|
{ json: "botId", js: "botId", typ: "" },
|
|
241
329
|
{ json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
|
|
242
330
|
{ json: "commands", js: "commands", typ: a(r("ComposeExtensionCommand")) },
|
|
243
331
|
{ json: "messageHandlers", js: "messageHandlers", typ: u(undefined, a(r("MessageHandler"))) },
|
|
244
332
|
], false),
|
|
245
|
-
|
|
333
|
+
ComposeExtensionCommand: o([
|
|
246
334
|
{ json: "id", js: "id", typ: "" },
|
|
247
335
|
{ json: "type", js: "type", typ: u(undefined, r("CommandType")) },
|
|
248
336
|
{ json: "context", js: "context", typ: u(undefined, a(r("CommandContext"))) },
|
|
@@ -253,7 +341,7 @@ const typeMap = {
|
|
|
253
341
|
{ json: "parameters", js: "parameters", typ: u(undefined, a(r("Parameter"))) },
|
|
254
342
|
{ json: "taskInfo", js: "taskInfo", typ: u(undefined, r("TaskInfo")) },
|
|
255
343
|
], false),
|
|
256
|
-
|
|
344
|
+
Parameter: o([
|
|
257
345
|
{ json: "name", js: "name", typ: "" },
|
|
258
346
|
{ json: "inputType", js: "inputType", typ: u(undefined, r("InputType")) },
|
|
259
347
|
{ json: "title", js: "title", typ: "" },
|
|
@@ -261,84 +349,90 @@ const typeMap = {
|
|
|
261
349
|
{ json: "value", js: "value", typ: u(undefined, "") },
|
|
262
350
|
{ json: "choices", js: "choices", typ: u(undefined, a(r("Choice"))) },
|
|
263
351
|
], false),
|
|
264
|
-
|
|
352
|
+
Choice: o([
|
|
265
353
|
{ json: "title", js: "title", typ: "" },
|
|
266
354
|
{ json: "value", js: "value", typ: "" },
|
|
267
355
|
], false),
|
|
268
|
-
|
|
356
|
+
TaskInfo: o([
|
|
269
357
|
{ json: "title", js: "title", typ: u(undefined, "") },
|
|
270
358
|
{ json: "width", js: "width", typ: u(undefined, "") },
|
|
271
359
|
{ json: "height", js: "height", typ: u(undefined, "") },
|
|
272
360
|
{ json: "url", js: "url", typ: u(undefined, "") },
|
|
273
361
|
], false),
|
|
274
|
-
|
|
362
|
+
MessageHandler: o([
|
|
275
363
|
{ json: "type", js: "type", typ: r("MessageHandlerType") },
|
|
276
364
|
{ json: "value", js: "value", typ: r("Value") },
|
|
277
365
|
], false),
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
], "any"),
|
|
281
|
-
"ConfigurableTab": o([
|
|
366
|
+
Value: o([{ json: "domains", js: "domains", typ: u(undefined, a("")) }], "any"),
|
|
367
|
+
ConfigurableTab: o([
|
|
282
368
|
{ json: "configurationUrl", js: "configurationUrl", typ: "" },
|
|
283
369
|
{ json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
|
|
284
370
|
{ json: "scopes", js: "scopes", typ: a(r("ConfigurableTabScope")) },
|
|
285
371
|
{ json: "meetingSurfaces", js: "meetingSurfaces", typ: u(undefined, a(r("MeetingSurface"))) },
|
|
286
372
|
{ json: "context", js: "context", typ: u(undefined, a(r("ConfigurableTabContext"))) },
|
|
287
373
|
{ json: "sharePointPreviewImage", js: "sharePointPreviewImage", typ: u(undefined, "") },
|
|
288
|
-
{
|
|
374
|
+
{
|
|
375
|
+
json: "supportedSharePointHosts",
|
|
376
|
+
js: "supportedSharePointHosts",
|
|
377
|
+
typ: u(undefined, a(r("SupportedSharePointHost"))),
|
|
378
|
+
},
|
|
289
379
|
], false),
|
|
290
|
-
|
|
380
|
+
Connector: o([
|
|
291
381
|
{ json: "connectorId", js: "connectorId", typ: "" },
|
|
292
382
|
{ json: "configurationUrl", js: "configurationUrl", typ: u(undefined, "") },
|
|
293
383
|
{ json: "scopes", js: "scopes", typ: a(r("ConnectorScope")) },
|
|
294
384
|
], false),
|
|
295
|
-
|
|
385
|
+
DefaultGroupCapability: o([
|
|
296
386
|
{ json: "team", js: "team", typ: u(undefined, r("Groupchat")) },
|
|
297
387
|
{ json: "groupchat", js: "groupchat", typ: u(undefined, r("Groupchat")) },
|
|
298
388
|
{ json: "meetings", js: "meetings", typ: u(undefined, r("Groupchat")) },
|
|
299
389
|
], false),
|
|
300
|
-
|
|
390
|
+
Description: o([
|
|
301
391
|
{ json: "short", js: "short", typ: "" },
|
|
302
392
|
{ json: "full", js: "full", typ: "" },
|
|
303
393
|
], false),
|
|
304
|
-
|
|
394
|
+
Developer: o([
|
|
305
395
|
{ json: "name", js: "name", typ: "" },
|
|
306
396
|
{ json: "mpnId", js: "mpnId", typ: u(undefined, "") },
|
|
307
397
|
{ json: "websiteUrl", js: "websiteUrl", typ: "" },
|
|
308
398
|
{ json: "privacyUrl", js: "privacyUrl", typ: "" },
|
|
309
399
|
{ json: "termsOfUseUrl", js: "termsOfUseUrl", typ: "" },
|
|
310
400
|
], false),
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
], false),
|
|
314
|
-
"Icons": o([
|
|
401
|
+
GraphConnector: o([{ json: "notificationUrl", js: "notificationUrl", typ: "" }], false),
|
|
402
|
+
Icons: o([
|
|
315
403
|
{ json: "outline", js: "outline", typ: "" },
|
|
316
404
|
{ json: "color", js: "color", typ: "" },
|
|
317
405
|
], false),
|
|
318
|
-
|
|
406
|
+
LocalizationInfo: o([
|
|
319
407
|
{ json: "defaultLanguageTag", js: "defaultLanguageTag", typ: "" },
|
|
320
|
-
{
|
|
408
|
+
{
|
|
409
|
+
json: "additionalLanguages",
|
|
410
|
+
js: "additionalLanguages",
|
|
411
|
+
typ: u(undefined, a(r("AdditionalLanguage"))),
|
|
412
|
+
},
|
|
321
413
|
], false),
|
|
322
|
-
|
|
414
|
+
AdditionalLanguage: o([
|
|
323
415
|
{ json: "languageTag", js: "languageTag", typ: "" },
|
|
324
416
|
{ json: "file", js: "file", typ: "" },
|
|
325
417
|
], false),
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
], false),
|
|
329
|
-
"Scene": o([
|
|
418
|
+
MeetingExtensionDefinition: o([{ json: "scenes", js: "scenes", typ: u(undefined, a(r("Scene"))) }], false),
|
|
419
|
+
Scene: o([
|
|
330
420
|
{ json: "id", js: "id", typ: "" },
|
|
331
421
|
{ json: "name", js: "name", typ: "" },
|
|
332
422
|
{ json: "file", js: "file", typ: "" },
|
|
333
423
|
{ json: "preview", js: "preview", typ: "" },
|
|
334
424
|
{ json: "maxAudience", js: "maxAudience", typ: 0 },
|
|
335
|
-
{
|
|
425
|
+
{
|
|
426
|
+
json: "seatsReservedForOrganizersOrPresenters",
|
|
427
|
+
js: "seatsReservedForOrganizersOrPresenters",
|
|
428
|
+
typ: 0,
|
|
429
|
+
},
|
|
336
430
|
], false),
|
|
337
|
-
|
|
431
|
+
Name: o([
|
|
338
432
|
{ json: "short", js: "short", typ: "" },
|
|
339
433
|
{ json: "full", js: "full", typ: u(undefined, "") },
|
|
340
434
|
], false),
|
|
341
|
-
|
|
435
|
+
StaticTab: o([
|
|
342
436
|
{ json: "entityId", js: "entityId", typ: "" },
|
|
343
437
|
{ json: "name", js: "name", typ: u(undefined, "") },
|
|
344
438
|
{ json: "contentUrl", js: "contentUrl", typ: u(undefined, "") },
|
|
@@ -348,45 +442,18 @@ const typeMap = {
|
|
|
348
442
|
{ json: "scopes", js: "scopes", typ: a(r("StaticTabScope")) },
|
|
349
443
|
{ json: "context", js: "context", typ: u(undefined, a(r("StaticTabContext"))) },
|
|
350
444
|
], false),
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
], false),
|
|
354
|
-
"WebApplicationInfo": o([
|
|
445
|
+
SubscriptionOffer: o([{ json: "offerId", js: "offerId", typ: "" }], false),
|
|
446
|
+
WebApplicationInfo: o([
|
|
355
447
|
{ json: "id", js: "id", typ: "" },
|
|
356
448
|
{ json: "resource", js: "resource", typ: u(undefined, "") },
|
|
357
449
|
], false),
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
],
|
|
362
|
-
"
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
"personal",
|
|
366
|
-
"team",
|
|
367
|
-
],
|
|
368
|
-
"CommandContext": [
|
|
369
|
-
"commandBox",
|
|
370
|
-
"compose",
|
|
371
|
-
"message",
|
|
372
|
-
],
|
|
373
|
-
"InputType": [
|
|
374
|
-
"choiceset",
|
|
375
|
-
"date",
|
|
376
|
-
"number",
|
|
377
|
-
"text",
|
|
378
|
-
"textarea",
|
|
379
|
-
"time",
|
|
380
|
-
"toggle",
|
|
381
|
-
],
|
|
382
|
-
"CommandType": [
|
|
383
|
-
"action",
|
|
384
|
-
"query",
|
|
385
|
-
],
|
|
386
|
-
"MessageHandlerType": [
|
|
387
|
-
"link",
|
|
388
|
-
],
|
|
389
|
-
"ConfigurableProperty": [
|
|
450
|
+
ResourceSpecificType: ["Application", "Delegated"],
|
|
451
|
+
CommandListScope: ["groupChat", "groupchat", "personal", "team"],
|
|
452
|
+
CommandContext: ["commandBox", "compose", "message"],
|
|
453
|
+
InputType: ["choiceset", "date", "number", "text", "textarea", "time", "toggle"],
|
|
454
|
+
CommandType: ["action", "query"],
|
|
455
|
+
MessageHandlerType: ["link"],
|
|
456
|
+
ConfigurableProperty: [
|
|
390
457
|
"accentColor",
|
|
391
458
|
"developerUrl",
|
|
392
459
|
"largeImageUrl",
|
|
@@ -397,7 +464,7 @@ const typeMap = {
|
|
|
397
464
|
"smallImageUrl",
|
|
398
465
|
"termsOfUseUrl",
|
|
399
466
|
],
|
|
400
|
-
|
|
467
|
+
ConfigurableTabContext: [
|
|
401
468
|
"callingSidePanel",
|
|
402
469
|
"channelTab",
|
|
403
470
|
"meetingChatTab",
|
|
@@ -407,55 +474,16 @@ const typeMap = {
|
|
|
407
474
|
"personalTab",
|
|
408
475
|
"privateChatTab",
|
|
409
476
|
],
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
],
|
|
414
|
-
"
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
],
|
|
419
|
-
"
|
|
420
|
-
|
|
421
|
-
"sharePointWebPart",
|
|
422
|
-
],
|
|
423
|
-
"ConnectorScope": [
|
|
424
|
-
"team",
|
|
425
|
-
],
|
|
426
|
-
"Groupchat": [
|
|
427
|
-
"bot",
|
|
428
|
-
"connector",
|
|
429
|
-
"tab",
|
|
430
|
-
],
|
|
431
|
-
"DefaultInstallScope": [
|
|
432
|
-
"groupChat",
|
|
433
|
-
"groupchat",
|
|
434
|
-
"meetings",
|
|
435
|
-
"personal",
|
|
436
|
-
"team",
|
|
437
|
-
],
|
|
438
|
-
"DevicePermission": [
|
|
439
|
-
"geolocation",
|
|
440
|
-
"midi",
|
|
441
|
-
"media",
|
|
442
|
-
"notifications",
|
|
443
|
-
"openExternal",
|
|
444
|
-
],
|
|
445
|
-
"ManifestVersion": [
|
|
446
|
-
"1.12",
|
|
447
|
-
],
|
|
448
|
-
"Permission": [
|
|
449
|
-
"identity",
|
|
450
|
-
"messageTeamMembers",
|
|
451
|
-
],
|
|
452
|
-
"StaticTabContext": [
|
|
453
|
-
"channelTab",
|
|
454
|
-
"personalTab",
|
|
455
|
-
],
|
|
456
|
-
"StaticTabScope": [
|
|
457
|
-
"personal",
|
|
458
|
-
"team",
|
|
459
|
-
],
|
|
477
|
+
MeetingSurface: ["sidePanel", "stage"],
|
|
478
|
+
ConfigurableTabScope: ["groupChat", "groupchat", "team"],
|
|
479
|
+
SupportedSharePointHost: ["sharePointFullPage", "sharePointWebPart"],
|
|
480
|
+
ConnectorScope: ["team"],
|
|
481
|
+
Groupchat: ["bot", "connector", "tab"],
|
|
482
|
+
DefaultInstallScope: ["groupChat", "groupchat", "meetings", "personal", "team"],
|
|
483
|
+
DevicePermission: ["geolocation", "midi", "media", "notifications", "openExternal"],
|
|
484
|
+
ManifestVersion: ["1.12"],
|
|
485
|
+
Permission: ["identity", "messageTeamMembers"],
|
|
486
|
+
StaticTabContext: ["channelTab", "personalTab"],
|
|
487
|
+
StaticTabScope: ["personal", "team"],
|
|
460
488
|
};
|
|
461
489
|
//# sourceMappingURL=TeamsManifestV1D12.js.map
|