@microsoft/app-manifest 1.1.3 → 1.1.4-alpha.3256bba3fe.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,60 +210,108 @@ function r(name) {
166
210
  return { ref: name };
167
211
  }
168
212
  const typeMap = {
169
- "TeamsManifestV1D16": o([
213
+ TeamsManifestV1D16: 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: "supportedChannelTypes", js: "supportedChannelTypes", typ: u(undefined, a(r("SupportedChannelType"))) },
197
- { 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: "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
- { json: "defaultInstallScope", js: "defaultInstallScope", typ: u(undefined, r("DefaultInstallScope")) },
200
- { json: "defaultGroupCapability", js: "defaultGroupCapability", typ: u(undefined, r("DefaultGroupCapability")) },
201
- { json: "meetingExtensionDefinition", js: "meetingExtensionDefinition", typ: u(undefined, r("MeetingExtensionDefinition")) },
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
- "Activities": o([
205
- { json: "activityTypes", js: "activityTypes", typ: u(undefined, a(r("ActivityType"))) },
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
- "Authorization": o([
213
- { json: "permissions", js: "permissions", typ: u(undefined, r("Permissions")) },
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
- "Permissions": o([
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
- "Bot": o([
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
- "CommandList": o([
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
- "CommandListCommand": o([
328
+ CommandListCommand: o([
237
329
  { json: "title", js: "title", typ: "" },
238
330
  { json: "description", js: "description", typ: "" },
239
331
  ], false),
240
- "ComposeExtension": o([
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
- "ComposeExtensionCommand": o([
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
- "Parameter": o([
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,87 +354,105 @@ 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
- "Choice": o([
357
+ Choice: o([
266
358
  { json: "title", js: "title", typ: "" },
267
359
  { json: "value", js: "value", typ: "" },
268
360
  ], false),
269
- "TaskInfo": o([
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
- "MessageHandler": o([
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
- "Value": o([
371
+ Value: o([
280
372
  { json: "domains", js: "domains", typ: u(undefined, a("")) },
281
- { json: "supportsAnonymizedPayloads", js: "supportsAnonymizedPayloads", typ: u(undefined, true) },
373
+ {
374
+ json: "supportsAnonymizedPayloads",
375
+ js: "supportsAnonymizedPayloads",
376
+ typ: u(undefined, true),
377
+ },
282
378
  ], "any"),
283
- "ConfigurableTab": o([
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
- { json: "supportedSharePointHosts", js: "supportedSharePointHosts", typ: u(undefined, a(r("SupportedSharePointHost"))) },
386
+ {
387
+ json: "supportedSharePointHosts",
388
+ js: "supportedSharePointHosts",
389
+ typ: u(undefined, a(r("SupportedSharePointHost"))),
390
+ },
291
391
  ], false),
292
- "Connector": o([
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
- "DefaultGroupCapability": o([
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
- "Description": o([
402
+ Description: o([
303
403
  { json: "short", js: "short", typ: "" },
304
404
  { json: "full", js: "full", typ: "" },
305
405
  ], false),
306
- "Developer": o([
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
- "GraphConnector": o([
314
- { json: "notificationUrl", js: "notificationUrl", typ: "" },
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
- "LocalizationInfo": o([
418
+ LocalizationInfo: o([
321
419
  { json: "defaultLanguageTag", js: "defaultLanguageTag", typ: "" },
322
- { json: "additionalLanguages", js: "additionalLanguages", typ: u(undefined, a(r("AdditionalLanguage"))) },
420
+ {
421
+ json: "additionalLanguages",
422
+ js: "additionalLanguages",
423
+ typ: u(undefined, a(r("AdditionalLanguage"))),
424
+ },
323
425
  ], false),
324
- "AdditionalLanguage": o([
426
+ AdditionalLanguage: o([
325
427
  { json: "languageTag", js: "languageTag", typ: "" },
326
428
  { json: "file", js: "file", typ: "" },
327
429
  ], false),
328
- "MeetingExtensionDefinition": o([
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
- { json: "supportsAnonymousGuestUsers", js: "supportsAnonymousGuestUsers", typ: u(undefined, true) },
433
+ {
434
+ json: "supportsAnonymousGuestUsers",
435
+ js: "supportsAnonymousGuestUsers",
436
+ typ: u(undefined, true),
437
+ },
332
438
  ], false),
333
- "Scene": o([
439
+ Scene: o([
334
440
  { json: "id", js: "id", typ: "" },
335
441
  { json: "name", js: "name", typ: "" },
336
442
  { json: "file", js: "file", typ: "" },
337
443
  { json: "preview", js: "preview", typ: "" },
338
444
  { json: "maxAudience", js: "maxAudience", typ: 0 },
339
- { json: "seatsReservedForOrganizersOrPresenters", js: "seatsReservedForOrganizersOrPresenters", typ: 0 },
445
+ {
446
+ json: "seatsReservedForOrganizersOrPresenters",
447
+ js: "seatsReservedForOrganizersOrPresenters",
448
+ typ: 0,
449
+ },
340
450
  ], false),
341
- "Name": o([
451
+ Name: o([
342
452
  { json: "short", js: "short", typ: "" },
343
453
  { json: "full", js: "full", typ: "" },
344
454
  ], false),
345
- "StaticTab": o([
455
+ StaticTab: o([
346
456
  { json: "entityId", js: "entityId", typ: "" },
347
457
  { json: "name", js: "name", typ: u(undefined, "") },
348
458
  { json: "contentUrl", js: "contentUrl", typ: u(undefined, "") },
@@ -352,45 +462,18 @@ const typeMap = {
352
462
  { json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
353
463
  { json: "context", js: "context", typ: u(undefined, a(r("StaticTabContext"))) },
354
464
  ], false),
355
- "SubscriptionOffer": o([
356
- { json: "offerId", js: "offerId", typ: "" },
357
- ], false),
358
- "WebApplicationInfo": o([
465
+ SubscriptionOffer: o([{ json: "offerId", js: "offerId", typ: "" }], false),
466
+ WebApplicationInfo: o([
359
467
  { json: "id", js: "id", typ: "" },
360
468
  { json: "resource", js: "resource", typ: u(undefined, "") },
361
469
  ], false),
362
- "ResourceSpecificType": [
363
- "Application",
364
- "Delegated",
365
- ],
366
- "CommandListScope": [
367
- "groupChat",
368
- "groupchat",
369
- "personal",
370
- "team",
371
- ],
372
- "CommandContext": [
373
- "commandBox",
374
- "compose",
375
- "message",
376
- ],
377
- "InputType": [
378
- "choiceset",
379
- "date",
380
- "number",
381
- "text",
382
- "textarea",
383
- "time",
384
- "toggle",
385
- ],
386
- "CommandType": [
387
- "action",
388
- "query",
389
- ],
390
- "MessageHandlerType": [
391
- "link",
392
- ],
393
- "ConfigurableProperty": [
470
+ ResourceSpecificType: ["Application", "Delegated"],
471
+ CommandListScope: ["groupChat", "groupchat", "personal", "team"],
472
+ CommandContext: ["commandBox", "compose", "message"],
473
+ InputType: ["choiceset", "date", "number", "text", "textarea", "time", "toggle"],
474
+ CommandType: ["action", "query"],
475
+ MessageHandlerType: ["link"],
476
+ ConfigurableProperty: [
394
477
  "accentColor",
395
478
  "developerUrl",
396
479
  "largeImageUrl",
@@ -401,7 +484,7 @@ const typeMap = {
401
484
  "smallImageUrl",
402
485
  "termsOfUseUrl",
403
486
  ],
404
- "ConfigurableTabContext": [
487
+ ConfigurableTabContext: [
405
488
  "callingSidePanel",
406
489
  "channelTab",
407
490
  "meetingChatTab",
@@ -411,49 +494,16 @@ const typeMap = {
411
494
  "personalTab",
412
495
  "privateChatTab",
413
496
  ],
414
- "MeetingSurface": [
415
- "sidePanel",
416
- "stage",
417
- ],
418
- "ConfigurableTabScope": [
419
- "groupChat",
420
- "groupchat",
421
- "team",
422
- ],
423
- "SupportedSharePointHost": [
424
- "sharePointFullPage",
425
- "sharePointWebPart",
426
- ],
427
- "ConnectorScope": [
428
- "team",
429
- ],
430
- "Groupchat": [
431
- "bot",
432
- "connector",
433
- "tab",
434
- ],
435
- "DefaultInstallScope": [
436
- "groupChat",
437
- "groupchat",
438
- "meetings",
439
- "personal",
440
- "team",
441
- ],
442
- "DevicePermission": [
443
- "geolocation",
444
- "midi",
445
- "media",
446
- "notifications",
447
- "openExternal",
448
- ],
449
- "ManifestVersion": [
450
- "1.16",
451
- ],
452
- "Permission": [
453
- "identity",
454
- "messageTeamMembers",
455
- ],
456
- "StaticTabContext": [
497
+ MeetingSurface: ["sidePanel", "stage"],
498
+ ConfigurableTabScope: ["groupChat", "groupchat", "team"],
499
+ SupportedSharePointHost: ["sharePointFullPage", "sharePointWebPart"],
500
+ ConnectorScope: ["team"],
501
+ Groupchat: ["bot", "connector", "tab"],
502
+ DefaultInstallScope: ["groupChat", "groupchat", "meetings", "personal", "team"],
503
+ DevicePermission: ["geolocation", "midi", "media", "notifications", "openExternal"],
504
+ ManifestVersion: ["1.16"],
505
+ Permission: ["identity", "messageTeamMembers"],
506
+ StaticTabContext: [
457
507
  "channelTab",
458
508
  "meetingChatTab",
459
509
  "meetingDetailsTab",
@@ -463,9 +513,6 @@ const typeMap = {
463
513
  "privateChatTab",
464
514
  "teamLevelApp",
465
515
  ],
466
- "SupportedChannelType": [
467
- "privateChannels",
468
- "sharedChannels",
469
- ],
516
+ SupportedChannelType: ["privateChannels", "sharedChannels"],
470
517
  };
471
518
  //# sourceMappingURL=TeamsManifestV1D16.js.map