@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
- }
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
- 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
- "TeamsManifestV1D14": o([
213
+ TeamsManifestV1D14: 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,85 +354,93 @@ 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([
280
- { json: "domains", js: "domains", typ: u(undefined, a("")) },
281
- ], "any"),
282
- "ConfigurableTab": o([
371
+ Value: o([{ json: "domains", js: "domains", typ: u(undefined, a("")) }], "any"),
372
+ ConfigurableTab: o([
283
373
  { json: "configurationUrl", js: "configurationUrl", typ: "" },
284
374
  { json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
285
375
  { json: "scopes", js: "scopes", typ: a(r("ConfigurableTabScope")) },
286
376
  { json: "meetingSurfaces", js: "meetingSurfaces", typ: u(undefined, a(r("MeetingSurface"))) },
287
377
  { json: "context", js: "context", typ: u(undefined, a(r("ConfigurableTabContext"))) },
288
378
  { json: "sharePointPreviewImage", js: "sharePointPreviewImage", typ: u(undefined, "") },
289
- { json: "supportedSharePointHosts", js: "supportedSharePointHosts", typ: u(undefined, a(r("SupportedSharePointHost"))) },
379
+ {
380
+ json: "supportedSharePointHosts",
381
+ js: "supportedSharePointHosts",
382
+ typ: u(undefined, a(r("SupportedSharePointHost"))),
383
+ },
290
384
  ], false),
291
- "Connector": o([
385
+ Connector: o([
292
386
  { json: "connectorId", js: "connectorId", typ: "" },
293
387
  { json: "configurationUrl", js: "configurationUrl", typ: u(undefined, "") },
294
388
  { json: "scopes", js: "scopes", typ: a(r("ConnectorScope")) },
295
389
  ], false),
296
- "DefaultGroupCapability": o([
390
+ DefaultGroupCapability: o([
297
391
  { json: "team", js: "team", typ: u(undefined, r("Groupchat")) },
298
392
  { json: "groupchat", js: "groupchat", typ: u(undefined, r("Groupchat")) },
299
393
  { json: "meetings", js: "meetings", typ: u(undefined, r("Groupchat")) },
300
394
  ], false),
301
- "Description": o([
395
+ Description: o([
302
396
  { json: "short", js: "short", typ: "" },
303
397
  { json: "full", js: "full", typ: "" },
304
398
  ], false),
305
- "Developer": o([
399
+ Developer: o([
306
400
  { json: "name", js: "name", typ: "" },
307
401
  { json: "mpnId", js: "mpnId", typ: u(undefined, "") },
308
402
  { json: "websiteUrl", js: "websiteUrl", typ: "" },
309
403
  { json: "privacyUrl", js: "privacyUrl", typ: "" },
310
404
  { json: "termsOfUseUrl", js: "termsOfUseUrl", typ: "" },
311
405
  ], false),
312
- "GraphConnector": o([
313
- { json: "notificationUrl", js: "notificationUrl", typ: "" },
314
- ], false),
315
- "Icons": o([
406
+ GraphConnector: o([{ json: "notificationUrl", js: "notificationUrl", typ: "" }], false),
407
+ Icons: o([
316
408
  { json: "outline", js: "outline", typ: "" },
317
409
  { json: "color", js: "color", typ: "" },
318
410
  ], false),
319
- "LocalizationInfo": o([
411
+ LocalizationInfo: o([
320
412
  { json: "defaultLanguageTag", js: "defaultLanguageTag", typ: "" },
321
- { json: "additionalLanguages", js: "additionalLanguages", typ: u(undefined, a(r("AdditionalLanguage"))) },
413
+ {
414
+ json: "additionalLanguages",
415
+ js: "additionalLanguages",
416
+ typ: u(undefined, a(r("AdditionalLanguage"))),
417
+ },
322
418
  ], false),
323
- "AdditionalLanguage": o([
419
+ AdditionalLanguage: o([
324
420
  { json: "languageTag", js: "languageTag", typ: "" },
325
421
  { json: "file", js: "file", typ: "" },
326
422
  ], false),
327
- "MeetingExtensionDefinition": o([
423
+ MeetingExtensionDefinition: o([
328
424
  { json: "scenes", js: "scenes", typ: u(undefined, a(r("Scene"))) },
329
425
  { json: "supportsStreaming", js: "supportsStreaming", typ: u(undefined, true) },
330
426
  ], false),
331
- "Scene": o([
427
+ Scene: o([
332
428
  { json: "id", js: "id", typ: "" },
333
429
  { json: "name", js: "name", typ: "" },
334
430
  { json: "file", js: "file", typ: "" },
335
431
  { json: "preview", js: "preview", typ: "" },
336
432
  { json: "maxAudience", js: "maxAudience", typ: 0 },
337
- { json: "seatsReservedForOrganizersOrPresenters", js: "seatsReservedForOrganizersOrPresenters", typ: 0 },
433
+ {
434
+ json: "seatsReservedForOrganizersOrPresenters",
435
+ js: "seatsReservedForOrganizersOrPresenters",
436
+ typ: 0,
437
+ },
338
438
  ], false),
339
- "Name": o([
439
+ Name: o([
340
440
  { json: "short", js: "short", typ: "" },
341
441
  { json: "full", js: "full", typ: u(undefined, "") },
342
442
  ], false),
343
- "StaticTab": o([
443
+ StaticTab: o([
344
444
  { json: "entityId", js: "entityId", typ: "" },
345
445
  { json: "name", js: "name", typ: u(undefined, "") },
346
446
  { json: "contentUrl", js: "contentUrl", typ: u(undefined, "") },
@@ -350,45 +450,18 @@ const typeMap = {
350
450
  { json: "scopes", js: "scopes", typ: a(r("StaticTabScope")) },
351
451
  { json: "context", js: "context", typ: u(undefined, a(r("StaticTabContext"))) },
352
452
  ], false),
353
- "SubscriptionOffer": o([
354
- { json: "offerId", js: "offerId", typ: "" },
355
- ], false),
356
- "WebApplicationInfo": o([
453
+ SubscriptionOffer: o([{ json: "offerId", js: "offerId", typ: "" }], false),
454
+ WebApplicationInfo: o([
357
455
  { json: "id", js: "id", typ: "" },
358
456
  { json: "resource", js: "resource", typ: u(undefined, "") },
359
457
  ], false),
360
- "ResourceSpecificType": [
361
- "Application",
362
- "Delegated",
363
- ],
364
- "CommandListScope": [
365
- "groupChat",
366
- "groupchat",
367
- "personal",
368
- "team",
369
- ],
370
- "CommandContext": [
371
- "commandBox",
372
- "compose",
373
- "message",
374
- ],
375
- "InputType": [
376
- "choiceset",
377
- "date",
378
- "number",
379
- "text",
380
- "textarea",
381
- "time",
382
- "toggle",
383
- ],
384
- "CommandType": [
385
- "action",
386
- "query",
387
- ],
388
- "MessageHandlerType": [
389
- "link",
390
- ],
391
- "ConfigurableProperty": [
458
+ ResourceSpecificType: ["Application", "Delegated"],
459
+ CommandListScope: ["groupChat", "groupchat", "personal", "team"],
460
+ CommandContext: ["commandBox", "compose", "message"],
461
+ InputType: ["choiceset", "date", "number", "text", "textarea", "time", "toggle"],
462
+ CommandType: ["action", "query"],
463
+ MessageHandlerType: ["link"],
464
+ ConfigurableProperty: [
392
465
  "accentColor",
393
466
  "developerUrl",
394
467
  "largeImageUrl",
@@ -399,7 +472,7 @@ const typeMap = {
399
472
  "smallImageUrl",
400
473
  "termsOfUseUrl",
401
474
  ],
402
- "ConfigurableTabContext": [
475
+ ConfigurableTabContext: [
403
476
  "callingSidePanel",
404
477
  "channelTab",
405
478
  "meetingChatTab",
@@ -409,59 +482,17 @@ const typeMap = {
409
482
  "personalTab",
410
483
  "privateChatTab",
411
484
  ],
412
- "MeetingSurface": [
413
- "sidePanel",
414
- "stage",
415
- ],
416
- "ConfigurableTabScope": [
417
- "groupChat",
418
- "groupchat",
419
- "team",
420
- ],
421
- "SupportedSharePointHost": [
422
- "sharePointFullPage",
423
- "sharePointWebPart",
424
- ],
425
- "ConnectorScope": [
426
- "team",
427
- ],
428
- "Groupchat": [
429
- "bot",
430
- "connector",
431
- "tab",
432
- ],
433
- "DefaultInstallScope": [
434
- "groupChat",
435
- "groupchat",
436
- "meetings",
437
- "personal",
438
- "team",
439
- ],
440
- "DevicePermission": [
441
- "geolocation",
442
- "midi",
443
- "media",
444
- "notifications",
445
- "openExternal",
446
- ],
447
- "ManifestVersion": [
448
- "1.14",
449
- ],
450
- "Permission": [
451
- "identity",
452
- "messageTeamMembers",
453
- ],
454
- "StaticTabContext": [
455
- "channelTab",
456
- "personalTab",
457
- ],
458
- "StaticTabScope": [
459
- "personal",
460
- "team",
461
- ],
462
- "SupportedChannelType": [
463
- "privateChannels",
464
- "sharedChannels",
465
- ],
485
+ MeetingSurface: ["sidePanel", "stage"],
486
+ ConfigurableTabScope: ["groupChat", "groupchat", "team"],
487
+ SupportedSharePointHost: ["sharePointFullPage", "sharePointWebPart"],
488
+ ConnectorScope: ["team"],
489
+ Groupchat: ["bot", "connector", "tab"],
490
+ DefaultInstallScope: ["groupChat", "groupchat", "meetings", "personal", "team"],
491
+ DevicePermission: ["geolocation", "midi", "media", "notifications", "openExternal"],
492
+ ManifestVersion: ["1.14"],
493
+ Permission: ["identity", "messageTeamMembers"],
494
+ StaticTabContext: ["channelTab", "personalTab"],
495
+ StaticTabScope: ["personal", "team"],
496
+ SupportedChannelType: ["privateChannels", "sharedChannels"],
466
497
  };
467
498
  //# sourceMappingURL=TeamsManifestV1D14.js.map