@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.
Files changed (93) hide show
  1. package/README.md +28 -1
  2. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D0.js +107 -65
  3. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D0.js.map +1 -1
  4. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D2.js +108 -70
  5. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D2.js.map +1 -1
  6. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D3.js +117 -75
  7. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D3.js.map +1 -1
  8. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D4.js +163 -109
  9. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D4.js.map +1 -1
  10. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D5.js +163 -109
  11. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D5.js.map +1 -1
  12. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D6.js +179 -125
  13. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D6.js.map +1 -1
  14. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D7.js +204 -136
  15. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D7.js.map +1 -1
  16. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D8.js +78 -43
  17. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D8.js.map +1 -1
  18. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.js +141 -95
  19. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.js.map +1 -1
  20. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.js +144 -108
  21. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.js.map +1 -1
  22. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D3.js +145 -114
  23. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D3.js.map +1 -1
  24. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D4.js +147 -121
  25. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D4.js.map +1 -1
  26. package/build/generated-types/index.js +8 -0
  27. package/build/generated-types/index.js.map +1 -1
  28. package/build/generated-types/teams/TeamsManifestV1D0.js +115 -71
  29. package/build/generated-types/teams/TeamsManifestV1D0.js.map +1 -1
  30. package/build/generated-types/teams/TeamsManifestV1D1.js +115 -71
  31. package/build/generated-types/teams/TeamsManifestV1D1.js.map +1 -1
  32. package/build/generated-types/teams/TeamsManifestV1D10.js +209 -178
  33. package/build/generated-types/teams/TeamsManifestV1D10.js.map +1 -1
  34. package/build/generated-types/teams/TeamsManifestV1D11.js +204 -175
  35. package/build/generated-types/teams/TeamsManifestV1D11.js.map +1 -1
  36. package/build/generated-types/teams/TeamsManifestV1D12.js +213 -185
  37. package/build/generated-types/teams/TeamsManifestV1D12.js.map +1 -1
  38. package/build/generated-types/teams/TeamsManifestV1D13.js +213 -185
  39. package/build/generated-types/teams/TeamsManifestV1D13.js.map +1 -1
  40. package/build/generated-types/teams/TeamsManifestV1D14.js +219 -188
  41. package/build/generated-types/teams/TeamsManifestV1D14.js.map +1 -1
  42. package/build/generated-types/teams/TeamsManifestV1D15.js +224 -187
  43. package/build/generated-types/teams/TeamsManifestV1D15.js.map +1 -1
  44. package/build/generated-types/teams/TeamsManifestV1D16.js +228 -181
  45. package/build/generated-types/teams/TeamsManifestV1D16.js.map +1 -1
  46. package/build/generated-types/teams/TeamsManifestV1D17.js +393 -313
  47. package/build/generated-types/teams/TeamsManifestV1D17.js.map +1 -1
  48. package/build/generated-types/teams/TeamsManifestV1D19.js +395 -317
  49. package/build/generated-types/teams/TeamsManifestV1D19.js.map +1 -1
  50. package/build/generated-types/teams/TeamsManifestV1D2.js +115 -71
  51. package/build/generated-types/teams/TeamsManifestV1D2.js.map +1 -1
  52. package/build/generated-types/teams/TeamsManifestV1D20.js +479 -356
  53. package/build/generated-types/teams/TeamsManifestV1D20.js.map +1 -1
  54. package/build/generated-types/teams/TeamsManifestV1D21.js +497 -370
  55. package/build/generated-types/teams/TeamsManifestV1D21.js.map +1 -1
  56. package/build/generated-types/teams/TeamsManifestV1D22.js +506 -378
  57. package/build/generated-types/teams/TeamsManifestV1D22.js.map +1 -1
  58. package/build/generated-types/teams/TeamsManifestV1D23.js +583 -423
  59. package/build/generated-types/teams/TeamsManifestV1D23.js.map +1 -1
  60. package/build/generated-types/teams/TeamsManifestV1D24.js +610 -444
  61. package/build/generated-types/teams/TeamsManifestV1D24.js.map +1 -1
  62. package/build/generated-types/teams/TeamsManifestV1D25.js +630 -457
  63. package/build/generated-types/teams/TeamsManifestV1D25.js.map +1 -1
  64. package/build/generated-types/teams/TeamsManifestV1D26.js +637 -463
  65. package/build/generated-types/teams/TeamsManifestV1D26.js.map +1 -1
  66. package/build/generated-types/teams/TeamsManifestV1D27.js +648 -482
  67. package/build/generated-types/teams/TeamsManifestV1D27.js.map +1 -1
  68. package/build/generated-types/teams/TeamsManifestV1D28.js +649 -485
  69. package/build/generated-types/teams/TeamsManifestV1D28.js.map +1 -1
  70. package/build/generated-types/teams/TeamsManifestV1D29.js +78 -43
  71. package/build/generated-types/teams/TeamsManifestV1D29.js.map +1 -1
  72. package/build/generated-types/teams/TeamsManifestV1D3.js +117 -82
  73. package/build/generated-types/teams/TeamsManifestV1D3.js.map +1 -1
  74. package/build/generated-types/teams/TeamsManifestV1D30.js +78 -43
  75. package/build/generated-types/teams/TeamsManifestV1D30.js.map +1 -1
  76. package/build/generated-types/teams/TeamsManifestV1D4.js +138 -112
  77. package/build/generated-types/teams/TeamsManifestV1D4.js.map +1 -1
  78. package/build/generated-types/teams/TeamsManifestV1D5.js +156 -131
  79. package/build/generated-types/teams/TeamsManifestV1D5.js.map +1 -1
  80. package/build/generated-types/teams/TeamsManifestV1D6.js +156 -131
  81. package/build/generated-types/teams/TeamsManifestV1D6.js.map +1 -1
  82. package/build/generated-types/teams/TeamsManifestV1D7.js +158 -135
  83. package/build/generated-types/teams/TeamsManifestV1D7.js.map +1 -1
  84. package/build/generated-types/teams/TeamsManifestV1D8.js +160 -140
  85. package/build/generated-types/teams/TeamsManifestV1D8.js.map +1 -1
  86. package/build/generated-types/teams/TeamsManifestV1D9.js +185 -166
  87. package/build/generated-types/teams/TeamsManifestV1D9.js.map +1 -1
  88. package/build/generated-types/teams/TeamsManifestVDevPreview.d.ts +420 -190
  89. package/build/generated-types/teams/TeamsManifestVDevPreview.js +824 -546
  90. package/build/generated-types/teams/TeamsManifestVDevPreview.js.map +1 -1
  91. package/build/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json +1869 -1362
  92. package/build/tsconfig.tsbuildinfo +1 -1
  93. package/package.json +3 -3
@@ -20,32 +20,69 @@ class Convert {
20
20
  }
21
21
  }
22
22
  exports.Convert = Convert;
23
- function invalidValue(typ, val, key, parent = '') {
24
- const prettyTyp = prettyTypeName(typ);
25
- const parentText = parent ? ` on ${parent}` : '';
26
- const keyText = key ? ` for key "${key}"` : '';
27
- throw Error(`Invalid value${keyText}${parentText}. Expected ${prettyTyp} but got ${JSON.stringify(val)}`);
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
- else {
35
- return `one of [${typ.map(a => { return prettyTypeName(a); }).join(", ")}]`;
36
- }
65
+ return `one of [${typ.map(prettyTypeName).join(", ")}]`;
37
66
  }
38
- else if (typeof typ === "object" && typ.literal !== undefined) {
39
- return typ.literal;
40
- }
41
- else {
42
- return typeof typ;
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, key = '', parent = '') {
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, key, parent);
102
+ return invalidValue(typ, val, path);
66
103
  }
67
104
  function transformUnion(typs, val) {
68
- // val must validate against one typ in typs
69
- const l = typs.length;
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, typ, getProps);
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
- return invalidValue(typs, val, key, parent);
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(a => { return l(a); }), val, key, parent);
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(l("array"), val, key, parent);
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(l("Date"), val, key, parent);
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(l(ref || "object"), val, key, parent);
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, key, ref);
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, key, ref);
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, key, parent);
163
+ return invalidValue(typ, val, path);
123
164
  }
124
165
  if (typ === false)
125
- return invalidValue(typ, val, key, parent);
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") ? transformUnion(typ.unionMembers, val)
135
- : typ.hasOwnProperty("arrayItems") ? transformArray(typ.arrayItems, val)
136
- : typ.hasOwnProperty("props") ? transformObject(getProps(typ), typ.additional, val)
137
- : invalidValue(typ, val, key, parent);
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,48 +210,90 @@ function r(name) {
166
210
  return { ref: name };
167
211
  }
168
212
  const typeMap = {
169
- "TeamsManifestV1D11": o([
213
+ TeamsManifestV1D11: 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
- { json: "localizationInfo", js: "localizationInfo", typ: u(undefined, r("LocalizationInfo")) },
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
- { json: "configurableTabs", js: "configurableTabs", typ: u(undefined, a(r("ConfigurableTab"))) },
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
- { json: "subscriptionOffer", js: "subscriptionOffer", typ: u(undefined, r("SubscriptionOffer")) },
186
- { json: "composeExtensions", js: "composeExtensions", typ: u(undefined, a(r("ComposeExtension"))) },
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
- { json: "devicePermissions", js: "devicePermissions", typ: u(undefined, a(r("DevicePermission"))) },
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
- { json: "webApplicationInfo", js: "webApplicationInfo", typ: u(undefined, r("WebApplicationInfo")) },
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
- { json: "configurableProperties", js: "configurableProperties", typ: u(undefined, a(r("ConfigurableProperty"))) },
196
- { json: "defaultBlockUntilAdminAction", js: "defaultBlockUntilAdminAction", typ: u(undefined, true) },
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
- { json: "defaultInstallScope", js: "defaultInstallScope", typ: u(undefined, r("DefaultInstallScope")) },
199
- { json: "defaultGroupCapability", js: "defaultGroupCapability", typ: u(undefined, r("DefaultGroupCapability")) },
200
- { json: "meetingExtensionDefinition", js: "meetingExtensionDefinition", typ: u(undefined, r("MeetingExtensionDefinition")) },
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
  ], false),
202
- "Activities": o([
203
- { json: "activityTypes", js: "activityTypes", typ: u(undefined, a(r("ActivityType"))) },
204
- ], false),
205
- "ActivityType": o([
290
+ Activities: o([{ json: "activityTypes", js: "activityTypes", typ: u(undefined, a(r("ActivityType"))) }], false),
291
+ ActivityType: o([
206
292
  { json: "type", js: "type", typ: "" },
207
293
  { json: "description", js: "description", typ: "" },
208
294
  { json: "templateText", js: "templateText", typ: "" },
209
295
  ], false),
210
- "Bot": o([
296
+ Bot: o([
211
297
  { json: "botId", js: "botId", typ: "" },
212
298
  { json: "needsChannelSelector", js: "needsChannelSelector", typ: u(undefined, true) },
213
299
  { json: "isNotificationOnly", js: "isNotificationOnly", typ: u(undefined, true) },
@@ -217,21 +303,21 @@ const typeMap = {
217
303
  { json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
218
304
  { json: "commandLists", js: "commandLists", typ: u(undefined, a(r("CommandList"))) },
219
305
  ], false),
220
- "CommandList": o([
306
+ CommandList: o([
221
307
  { json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
222
308
  { json: "commands", js: "commands", typ: a(r("CommandListCommand")) },
223
309
  ], false),
224
- "CommandListCommand": o([
310
+ CommandListCommand: o([
225
311
  { json: "title", js: "title", typ: "" },
226
312
  { json: "description", js: "description", typ: "" },
227
313
  ], false),
228
- "ComposeExtension": o([
314
+ ComposeExtension: o([
229
315
  { json: "botId", js: "botId", typ: "" },
230
316
  { json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
231
317
  { json: "commands", js: "commands", typ: a(r("ComposeExtensionCommand")) },
232
318
  { json: "messageHandlers", js: "messageHandlers", typ: u(undefined, a(r("MessageHandler"))) },
233
319
  ], false),
234
- "ComposeExtensionCommand": o([
320
+ ComposeExtensionCommand: o([
235
321
  { json: "id", js: "id", typ: "" },
236
322
  { json: "type", js: "type", typ: u(undefined, r("CommandType")) },
237
323
  { json: "context", js: "context", typ: u(undefined, a(r("CommandContext"))) },
@@ -242,7 +328,7 @@ const typeMap = {
242
328
  { json: "parameters", js: "parameters", typ: u(undefined, a(r("Parameter"))) },
243
329
  { json: "taskInfo", js: "taskInfo", typ: u(undefined, r("TaskInfo")) },
244
330
  ], false),
245
- "Parameter": o([
331
+ Parameter: o([
246
332
  { json: "name", js: "name", typ: "" },
247
333
  { json: "inputType", js: "inputType", typ: u(undefined, r("InputType")) },
248
334
  { json: "title", js: "title", typ: "" },
@@ -250,84 +336,90 @@ const typeMap = {
250
336
  { json: "value", js: "value", typ: u(undefined, "") },
251
337
  { json: "choices", js: "choices", typ: u(undefined, a(r("Choice"))) },
252
338
  ], false),
253
- "Choice": o([
339
+ Choice: o([
254
340
  { json: "title", js: "title", typ: "" },
255
341
  { json: "value", js: "value", typ: "" },
256
342
  ], false),
257
- "TaskInfo": o([
343
+ TaskInfo: o([
258
344
  { json: "title", js: "title", typ: u(undefined, "") },
259
345
  { json: "width", js: "width", typ: u(undefined, "") },
260
346
  { json: "height", js: "height", typ: u(undefined, "") },
261
347
  { json: "url", js: "url", typ: u(undefined, "") },
262
348
  ], false),
263
- "MessageHandler": o([
349
+ MessageHandler: o([
264
350
  { json: "type", js: "type", typ: r("MessageHandlerType") },
265
351
  { json: "value", js: "value", typ: r("Value") },
266
352
  ], false),
267
- "Value": o([
268
- { json: "domains", js: "domains", typ: u(undefined, a("")) },
269
- ], "any"),
270
- "ConfigurableTab": o([
353
+ Value: o([{ json: "domains", js: "domains", typ: u(undefined, a("")) }], "any"),
354
+ ConfigurableTab: o([
271
355
  { json: "configurationUrl", js: "configurationUrl", typ: "" },
272
356
  { json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
273
357
  { json: "scopes", js: "scopes", typ: a(r("ConfigurableTabScope")) },
274
358
  { json: "meetingSurfaces", js: "meetingSurfaces", typ: u(undefined, a(r("MeetingSurface"))) },
275
359
  { json: "context", js: "context", typ: u(undefined, a(r("ConfigurableTabContext"))) },
276
360
  { json: "sharePointPreviewImage", js: "sharePointPreviewImage", typ: u(undefined, "") },
277
- { json: "supportedSharePointHosts", js: "supportedSharePointHosts", typ: u(undefined, a(r("SupportedSharePointHost"))) },
361
+ {
362
+ json: "supportedSharePointHosts",
363
+ js: "supportedSharePointHosts",
364
+ typ: u(undefined, a(r("SupportedSharePointHost"))),
365
+ },
278
366
  ], false),
279
- "Connector": o([
367
+ Connector: o([
280
368
  { json: "connectorId", js: "connectorId", typ: "" },
281
369
  { json: "configurationUrl", js: "configurationUrl", typ: u(undefined, "") },
282
370
  { json: "scopes", js: "scopes", typ: a(r("ConnectorScope")) },
283
371
  ], false),
284
- "DefaultGroupCapability": o([
372
+ DefaultGroupCapability: o([
285
373
  { json: "team", js: "team", typ: u(undefined, r("Groupchat")) },
286
374
  { json: "groupchat", js: "groupchat", typ: u(undefined, r("Groupchat")) },
287
375
  { json: "meetings", js: "meetings", typ: u(undefined, r("Groupchat")) },
288
376
  ], false),
289
- "Description": o([
377
+ Description: o([
290
378
  { json: "short", js: "short", typ: "" },
291
379
  { json: "full", js: "full", typ: "" },
292
380
  ], false),
293
- "Developer": o([
381
+ Developer: o([
294
382
  { json: "name", js: "name", typ: "" },
295
383
  { json: "mpnId", js: "mpnId", typ: u(undefined, "") },
296
384
  { json: "websiteUrl", js: "websiteUrl", typ: "" },
297
385
  { json: "privacyUrl", js: "privacyUrl", typ: "" },
298
386
  { json: "termsOfUseUrl", js: "termsOfUseUrl", typ: "" },
299
387
  ], false),
300
- "GraphConnector": o([
301
- { json: "notificationUrl", js: "notificationUrl", typ: "" },
302
- ], false),
303
- "Icons": o([
388
+ GraphConnector: o([{ json: "notificationUrl", js: "notificationUrl", typ: "" }], false),
389
+ Icons: o([
304
390
  { json: "outline", js: "outline", typ: "" },
305
391
  { json: "color", js: "color", typ: "" },
306
392
  ], false),
307
- "LocalizationInfo": o([
393
+ LocalizationInfo: o([
308
394
  { json: "defaultLanguageTag", js: "defaultLanguageTag", typ: "" },
309
- { json: "additionalLanguages", js: "additionalLanguages", typ: u(undefined, a(r("AdditionalLanguage"))) },
395
+ {
396
+ json: "additionalLanguages",
397
+ js: "additionalLanguages",
398
+ typ: u(undefined, a(r("AdditionalLanguage"))),
399
+ },
310
400
  ], false),
311
- "AdditionalLanguage": o([
401
+ AdditionalLanguage: o([
312
402
  { json: "languageTag", js: "languageTag", typ: "" },
313
403
  { json: "file", js: "file", typ: "" },
314
404
  ], false),
315
- "MeetingExtensionDefinition": o([
316
- { json: "scenes", js: "scenes", typ: u(undefined, a(r("Scene"))) },
317
- ], false),
318
- "Scene": o([
405
+ MeetingExtensionDefinition: o([{ json: "scenes", js: "scenes", typ: u(undefined, a(r("Scene"))) }], false),
406
+ Scene: o([
319
407
  { json: "id", js: "id", typ: "" },
320
408
  { json: "name", js: "name", typ: "" },
321
409
  { json: "file", js: "file", typ: "" },
322
410
  { json: "preview", js: "preview", typ: "" },
323
411
  { json: "maxAudience", js: "maxAudience", typ: 0 },
324
- { json: "seatsReservedForOrganizersOrPresenters", js: "seatsReservedForOrganizersOrPresenters", typ: 0 },
412
+ {
413
+ json: "seatsReservedForOrganizersOrPresenters",
414
+ js: "seatsReservedForOrganizersOrPresenters",
415
+ typ: 0,
416
+ },
325
417
  ], false),
326
- "Name": o([
418
+ Name: o([
327
419
  { json: "short", js: "short", typ: "" },
328
420
  { json: "full", js: "full", typ: u(undefined, "") },
329
421
  ], false),
330
- "StaticTab": o([
422
+ StaticTab: o([
331
423
  { json: "entityId", js: "entityId", typ: "" },
332
424
  { json: "name", js: "name", typ: u(undefined, "") },
333
425
  { json: "contentUrl", js: "contentUrl", typ: u(undefined, "") },
@@ -337,42 +429,18 @@ const typeMap = {
337
429
  { json: "scopes", js: "scopes", typ: a(r("StaticTabScope")) },
338
430
  { json: "context", js: "context", typ: u(undefined, a(r("StaticTabContext"))) },
339
431
  ], false),
340
- "SubscriptionOffer": o([
341
- { json: "offerId", js: "offerId", typ: "" },
342
- ], false),
343
- "WebApplicationInfo": o([
432
+ SubscriptionOffer: o([{ json: "offerId", js: "offerId", typ: "" }], false),
433
+ WebApplicationInfo: o([
344
434
  { json: "id", js: "id", typ: "" },
345
435
  { json: "resource", js: "resource", typ: u(undefined, "") },
346
436
  { json: "applicationPermissions", js: "applicationPermissions", typ: u(undefined, a("")) },
347
437
  ], false),
348
- "CommandListScope": [
349
- "groupChat",
350
- "groupchat",
351
- "personal",
352
- "team",
353
- ],
354
- "CommandContext": [
355
- "commandBox",
356
- "compose",
357
- "message",
358
- ],
359
- "InputType": [
360
- "choiceset",
361
- "date",
362
- "number",
363
- "text",
364
- "textarea",
365
- "time",
366
- "toggle",
367
- ],
368
- "CommandType": [
369
- "action",
370
- "query",
371
- ],
372
- "MessageHandlerType": [
373
- "link",
374
- ],
375
- "ConfigurableProperty": [
438
+ CommandListScope: ["groupChat", "groupchat", "personal", "team"],
439
+ CommandContext: ["commandBox", "compose", "message"],
440
+ InputType: ["choiceset", "date", "number", "text", "textarea", "time", "toggle"],
441
+ CommandType: ["action", "query"],
442
+ MessageHandlerType: ["link"],
443
+ ConfigurableProperty: [
376
444
  "accentColor",
377
445
  "developerUrl",
378
446
  "largeImageUrl",
@@ -383,7 +451,7 @@ const typeMap = {
383
451
  "smallImageUrl",
384
452
  "termsOfUseUrl",
385
453
  ],
386
- "ConfigurableTabContext": [
454
+ ConfigurableTabContext: [
387
455
  "callingSidePanel",
388
456
  "channelTab",
389
457
  "meetingChatTab",
@@ -393,55 +461,16 @@ const typeMap = {
393
461
  "personalTab",
394
462
  "privateChatTab",
395
463
  ],
396
- "MeetingSurface": [
397
- "sidePanel",
398
- "stage",
399
- ],
400
- "ConfigurableTabScope": [
401
- "groupChat",
402
- "groupchat",
403
- "team",
404
- ],
405
- "SupportedSharePointHost": [
406
- "sharePointFullPage",
407
- "sharePointWebPart",
408
- ],
409
- "ConnectorScope": [
410
- "team",
411
- ],
412
- "Groupchat": [
413
- "bot",
414
- "connector",
415
- "tab",
416
- ],
417
- "DefaultInstallScope": [
418
- "groupChat",
419
- "groupchat",
420
- "meetings",
421
- "personal",
422
- "team",
423
- ],
424
- "DevicePermission": [
425
- "geolocation",
426
- "midi",
427
- "media",
428
- "notifications",
429
- "openExternal",
430
- ],
431
- "ManifestVersion": [
432
- "1.11",
433
- ],
434
- "Permission": [
435
- "identity",
436
- "messageTeamMembers",
437
- ],
438
- "StaticTabContext": [
439
- "channelTab",
440
- "personalTab",
441
- ],
442
- "StaticTabScope": [
443
- "personal",
444
- "team",
445
- ],
464
+ MeetingSurface: ["sidePanel", "stage"],
465
+ ConfigurableTabScope: ["groupChat", "groupchat", "team"],
466
+ SupportedSharePointHost: ["sharePointFullPage", "sharePointWebPart"],
467
+ ConnectorScope: ["team"],
468
+ Groupchat: ["bot", "connector", "tab"],
469
+ DefaultInstallScope: ["groupChat", "groupchat", "meetings", "personal", "team"],
470
+ DevicePermission: ["geolocation", "midi", "media", "notifications", "openExternal"],
471
+ ManifestVersion: ["1.11"],
472
+ Permission: ["identity", "messageTeamMembers"],
473
+ StaticTabContext: ["channelTab", "personalTab"],
474
+ StaticTabScope: ["personal", "team"],
446
475
  };
447
476
  //# sourceMappingURL=TeamsManifestV1D11.js.map