@microsoft/app-manifest 1.1.3 → 1.1.4-alpha.1ba10daa01.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 (101) hide show
  1. package/README.md +33 -2
  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/declarative-agent/DeclarativeAgentManifestV1D9.d.ts +681 -0
  19. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D9.js +418 -0
  20. package/build/generated-types/copilot/declarative-agent/DeclarativeAgentManifestV1D9.js.map +1 -0
  21. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.js +141 -95
  22. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D1.js.map +1 -1
  23. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.js +144 -108
  24. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D2.js.map +1 -1
  25. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D3.js +145 -114
  26. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D3.js.map +1 -1
  27. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D4.js +147 -121
  28. package/build/generated-types/copilot/plugin/ApiPluginManifestV2D4.js.map +1 -1
  29. package/build/generated-types/index.d.ts +5 -15
  30. package/build/generated-types/index.js +15 -1
  31. package/build/generated-types/index.js.map +1 -1
  32. package/build/generated-types/teams/TeamsManifestV1D0.js +115 -71
  33. package/build/generated-types/teams/TeamsManifestV1D0.js.map +1 -1
  34. package/build/generated-types/teams/TeamsManifestV1D1.js +115 -71
  35. package/build/generated-types/teams/TeamsManifestV1D1.js.map +1 -1
  36. package/build/generated-types/teams/TeamsManifestV1D10.js +209 -178
  37. package/build/generated-types/teams/TeamsManifestV1D10.js.map +1 -1
  38. package/build/generated-types/teams/TeamsManifestV1D11.js +204 -175
  39. package/build/generated-types/teams/TeamsManifestV1D11.js.map +1 -1
  40. package/build/generated-types/teams/TeamsManifestV1D12.js +213 -185
  41. package/build/generated-types/teams/TeamsManifestV1D12.js.map +1 -1
  42. package/build/generated-types/teams/TeamsManifestV1D13.js +213 -185
  43. package/build/generated-types/teams/TeamsManifestV1D13.js.map +1 -1
  44. package/build/generated-types/teams/TeamsManifestV1D14.js +219 -188
  45. package/build/generated-types/teams/TeamsManifestV1D14.js.map +1 -1
  46. package/build/generated-types/teams/TeamsManifestV1D15.js +224 -187
  47. package/build/generated-types/teams/TeamsManifestV1D15.js.map +1 -1
  48. package/build/generated-types/teams/TeamsManifestV1D16.js +228 -181
  49. package/build/generated-types/teams/TeamsManifestV1D16.js.map +1 -1
  50. package/build/generated-types/teams/TeamsManifestV1D17.js +393 -313
  51. package/build/generated-types/teams/TeamsManifestV1D17.js.map +1 -1
  52. package/build/generated-types/teams/TeamsManifestV1D19.js +395 -317
  53. package/build/generated-types/teams/TeamsManifestV1D19.js.map +1 -1
  54. package/build/generated-types/teams/TeamsManifestV1D2.js +115 -71
  55. package/build/generated-types/teams/TeamsManifestV1D2.js.map +1 -1
  56. package/build/generated-types/teams/TeamsManifestV1D20.js +479 -356
  57. package/build/generated-types/teams/TeamsManifestV1D20.js.map +1 -1
  58. package/build/generated-types/teams/TeamsManifestV1D21.js +497 -370
  59. package/build/generated-types/teams/TeamsManifestV1D21.js.map +1 -1
  60. package/build/generated-types/teams/TeamsManifestV1D22.js +506 -378
  61. package/build/generated-types/teams/TeamsManifestV1D22.js.map +1 -1
  62. package/build/generated-types/teams/TeamsManifestV1D23.js +583 -423
  63. package/build/generated-types/teams/TeamsManifestV1D23.js.map +1 -1
  64. package/build/generated-types/teams/TeamsManifestV1D24.js +610 -444
  65. package/build/generated-types/teams/TeamsManifestV1D24.js.map +1 -1
  66. package/build/generated-types/teams/TeamsManifestV1D25.js +630 -457
  67. package/build/generated-types/teams/TeamsManifestV1D25.js.map +1 -1
  68. package/build/generated-types/teams/TeamsManifestV1D26.js +637 -463
  69. package/build/generated-types/teams/TeamsManifestV1D26.js.map +1 -1
  70. package/build/generated-types/teams/TeamsManifestV1D27.js +648 -482
  71. package/build/generated-types/teams/TeamsManifestV1D27.js.map +1 -1
  72. package/build/generated-types/teams/TeamsManifestV1D28.js +649 -485
  73. package/build/generated-types/teams/TeamsManifestV1D28.js.map +1 -1
  74. package/build/generated-types/teams/TeamsManifestV1D29.js +78 -43
  75. package/build/generated-types/teams/TeamsManifestV1D29.js.map +1 -1
  76. package/build/generated-types/teams/TeamsManifestV1D3.js +117 -82
  77. package/build/generated-types/teams/TeamsManifestV1D3.js.map +1 -1
  78. package/build/generated-types/teams/TeamsManifestV1D30.js +78 -43
  79. package/build/generated-types/teams/TeamsManifestV1D30.js.map +1 -1
  80. package/build/generated-types/teams/TeamsManifestV1D4.js +138 -112
  81. package/build/generated-types/teams/TeamsManifestV1D4.js.map +1 -1
  82. package/build/generated-types/teams/TeamsManifestV1D5.js +156 -131
  83. package/build/generated-types/teams/TeamsManifestV1D5.js.map +1 -1
  84. package/build/generated-types/teams/TeamsManifestV1D6.js +156 -131
  85. package/build/generated-types/teams/TeamsManifestV1D6.js.map +1 -1
  86. package/build/generated-types/teams/TeamsManifestV1D7.js +158 -135
  87. package/build/generated-types/teams/TeamsManifestV1D7.js.map +1 -1
  88. package/build/generated-types/teams/TeamsManifestV1D8.js +160 -140
  89. package/build/generated-types/teams/TeamsManifestV1D8.js.map +1 -1
  90. package/build/generated-types/teams/TeamsManifestV1D9.js +185 -166
  91. package/build/generated-types/teams/TeamsManifestV1D9.js.map +1 -1
  92. package/build/generated-types/teams/TeamsManifestVDevPreview.d.ts +420 -190
  93. package/build/generated-types/teams/TeamsManifestVDevPreview.js +824 -546
  94. package/build/generated-types/teams/TeamsManifestVDevPreview.js.map +1 -1
  95. package/build/json-schemas/copilot/declarative-agent/v1.9/schema.json +1356 -0
  96. package/build/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json +1869 -1362
  97. package/build/tsconfig.tsbuildinfo +1 -1
  98. package/build/wrappers/DeclarativeAgentManifestWrapper.d.ts +1 -1
  99. package/build/wrappers/DeclarativeAgentManifestWrapper.js +5 -3
  100. package/build/wrappers/DeclarativeAgentManifestWrapper.js.map +1 -1
  101. 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,45 +210,83 @@ function r(name) {
166
210
  return { ref: name };
167
211
  }
168
212
  const typeMap = {
169
- "TeamsManifestV1D10": o([
213
+ TeamsManifestV1D10: 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: "showLoadingIndicator", js: "showLoadingIndicator", typ: u(undefined, true) },
192
260
  { json: "isFullScreen", js: "isFullScreen", typ: u(undefined, true) },
193
261
  { json: "activities", js: "activities", typ: u(undefined, r("Activities")) },
194
- { json: "configurableProperties", js: "configurableProperties", typ: u(undefined, a(r("ConfigurableProperty"))) },
195
- { json: "defaultInstallScope", js: "defaultInstallScope", typ: u(undefined, r("DefaultInstallScope")) },
196
- { json: "defaultGroupCapability", js: "defaultGroupCapability", typ: u(undefined, r("DefaultGroupCapability")) },
197
- { json: "meetingExtensionDefinition", js: "meetingExtensionDefinition", typ: u(undefined, r("MeetingExtensionDefinition")) },
262
+ {
263
+ json: "configurableProperties",
264
+ js: "configurableProperties",
265
+ typ: u(undefined, a(r("ConfigurableProperty"))),
266
+ },
267
+ {
268
+ json: "defaultInstallScope",
269
+ js: "defaultInstallScope",
270
+ typ: u(undefined, r("DefaultInstallScope")),
271
+ },
272
+ {
273
+ json: "defaultGroupCapability",
274
+ js: "defaultGroupCapability",
275
+ typ: u(undefined, r("DefaultGroupCapability")),
276
+ },
277
+ {
278
+ json: "meetingExtensionDefinition",
279
+ js: "meetingExtensionDefinition",
280
+ typ: u(undefined, r("MeetingExtensionDefinition")),
281
+ },
198
282
  ], false),
199
- "Activities": o([
200
- { json: "activityTypes", js: "activityTypes", typ: u(undefined, a(r("ActivityType"))) },
201
- ], false),
202
- "ActivityType": o([
283
+ Activities: o([{ json: "activityTypes", js: "activityTypes", typ: u(undefined, a(r("ActivityType"))) }], false),
284
+ ActivityType: o([
203
285
  { json: "type", js: "type", typ: "" },
204
286
  { json: "description", js: "description", typ: "" },
205
287
  { json: "templateText", js: "templateText", typ: "" },
206
288
  ], false),
207
- "Bot": o([
289
+ Bot: o([
208
290
  { json: "botId", js: "botId", typ: "" },
209
291
  { json: "needsChannelSelector", js: "needsChannelSelector", typ: u(undefined, true) },
210
292
  { json: "isNotificationOnly", js: "isNotificationOnly", typ: u(undefined, true) },
@@ -214,21 +296,21 @@ const typeMap = {
214
296
  { json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
215
297
  { json: "commandLists", js: "commandLists", typ: u(undefined, a(r("CommandList"))) },
216
298
  ], false),
217
- "CommandList": o([
299
+ CommandList: o([
218
300
  { json: "scopes", js: "scopes", typ: a(r("CommandListScope")) },
219
301
  { json: "commands", js: "commands", typ: a(r("CommandListCommand")) },
220
302
  ], false),
221
- "CommandListCommand": o([
303
+ CommandListCommand: o([
222
304
  { json: "title", js: "title", typ: "" },
223
305
  { json: "description", js: "description", typ: "" },
224
306
  ], false),
225
- "ComposeExtension": o([
307
+ ComposeExtension: o([
226
308
  { json: "botId", js: "botId", typ: "" },
227
309
  { json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
228
310
  { json: "commands", js: "commands", typ: a(r("ComposeExtensionCommand")) },
229
311
  { json: "messageHandlers", js: "messageHandlers", typ: u(undefined, a(r("MessageHandler"))) },
230
312
  ], false),
231
- "ComposeExtensionCommand": o([
313
+ ComposeExtensionCommand: o([
232
314
  { json: "id", js: "id", typ: "" },
233
315
  { json: "type", js: "type", typ: u(undefined, r("CommandType")) },
234
316
  { json: "context", js: "context", typ: u(undefined, a(r("CommandContext"))) },
@@ -239,7 +321,7 @@ const typeMap = {
239
321
  { json: "parameters", js: "parameters", typ: u(undefined, a(r("Parameter"))) },
240
322
  { json: "taskInfo", js: "taskInfo", typ: u(undefined, r("TaskInfo")) },
241
323
  ], false),
242
- "Parameter": o([
324
+ Parameter: o([
243
325
  { json: "name", js: "name", typ: "" },
244
326
  { json: "inputType", js: "inputType", typ: u(undefined, r("InputType")) },
245
327
  { json: "title", js: "title", typ: "" },
@@ -247,82 +329,94 @@ const typeMap = {
247
329
  { json: "value", js: "value", typ: u(undefined, "") },
248
330
  { json: "choices", js: "choices", typ: u(undefined, a(r("Choice"))) },
249
331
  ], false),
250
- "Choice": o([
332
+ Choice: o([
251
333
  { json: "title", js: "title", typ: "" },
252
334
  { json: "value", js: "value", typ: "" },
253
335
  ], false),
254
- "TaskInfo": o([
336
+ TaskInfo: o([
255
337
  { json: "title", js: "title", typ: u(undefined, "") },
256
338
  { json: "width", js: "width", typ: u(undefined, "") },
257
339
  { json: "height", js: "height", typ: u(undefined, "") },
258
340
  { json: "url", js: "url", typ: u(undefined, "") },
259
341
  ], false),
260
- "MessageHandler": o([
342
+ MessageHandler: o([
261
343
  { json: "type", js: "type", typ: r("MessageHandlerType") },
262
344
  { json: "value", js: "value", typ: r("Value") },
263
345
  ], false),
264
- "Value": o([
265
- { json: "domains", js: "domains", typ: u(undefined, a("")) },
266
- ], "any"),
267
- "ConfigurableTab": o([
346
+ Value: o([{ json: "domains", js: "domains", typ: u(undefined, a("")) }], "any"),
347
+ ConfigurableTab: o([
268
348
  { json: "configurationUrl", js: "configurationUrl", typ: "" },
269
349
  { json: "canUpdateConfiguration", js: "canUpdateConfiguration", typ: u(undefined, true) },
270
350
  { json: "scopes", js: "scopes", typ: a(r("ConfigurableTabScope")) },
271
351
  { json: "meetingSurfaces", js: "meetingSurfaces", typ: u(undefined, a(r("MeetingSurface"))) },
272
352
  { json: "context", js: "context", typ: u(undefined, a(r("ConfigurableTabContext"))) },
273
- { json: "supportedPlatform", js: "supportedPlatform", typ: u(undefined, a(r("SupportedPlatform"))) },
353
+ {
354
+ json: "supportedPlatform",
355
+ js: "supportedPlatform",
356
+ typ: u(undefined, a(r("SupportedPlatform"))),
357
+ },
274
358
  { json: "sharePointPreviewImage", js: "sharePointPreviewImage", typ: u(undefined, "") },
275
- { json: "supportedSharePointHosts", js: "supportedSharePointHosts", typ: u(undefined, a(r("SupportedSharePointHost"))) },
359
+ {
360
+ json: "supportedSharePointHosts",
361
+ js: "supportedSharePointHosts",
362
+ typ: u(undefined, a(r("SupportedSharePointHost"))),
363
+ },
276
364
  ], false),
277
- "Connector": o([
365
+ Connector: o([
278
366
  { json: "connectorId", js: "connectorId", typ: "" },
279
367
  { json: "configurationUrl", js: "configurationUrl", typ: u(undefined, "") },
280
368
  { json: "scopes", js: "scopes", typ: a(r("ConnectorScope")) },
281
369
  ], false),
282
- "DefaultGroupCapability": o([
370
+ DefaultGroupCapability: o([
283
371
  { json: "team", js: "team", typ: u(undefined, r("Groupchat")) },
284
372
  { json: "groupchat", js: "groupchat", typ: u(undefined, r("Groupchat")) },
285
373
  { json: "meetings", js: "meetings", typ: u(undefined, r("Groupchat")) },
286
374
  ], false),
287
- "Description": o([
375
+ Description: o([
288
376
  { json: "short", js: "short", typ: "" },
289
377
  { json: "full", js: "full", typ: "" },
290
378
  ], false),
291
- "Developer": o([
379
+ Developer: o([
292
380
  { json: "name", js: "name", typ: "" },
293
381
  { json: "mpnId", js: "mpnId", typ: u(undefined, "") },
294
382
  { json: "websiteUrl", js: "websiteUrl", typ: "" },
295
383
  { json: "privacyUrl", js: "privacyUrl", typ: "" },
296
384
  { json: "termsOfUseUrl", js: "termsOfUseUrl", typ: "" },
297
385
  ], false),
298
- "Icons": o([
386
+ Icons: o([
299
387
  { json: "outline", js: "outline", typ: "" },
300
388
  { json: "color", js: "color", typ: "" },
301
389
  ], false),
302
- "LocalizationInfo": o([
390
+ LocalizationInfo: o([
303
391
  { json: "defaultLanguageTag", js: "defaultLanguageTag", typ: "" },
304
- { json: "additionalLanguages", js: "additionalLanguages", typ: u(undefined, a(r("AdditionalLanguage"))) },
392
+ {
393
+ json: "additionalLanguages",
394
+ js: "additionalLanguages",
395
+ typ: u(undefined, a(r("AdditionalLanguage"))),
396
+ },
305
397
  ], false),
306
- "AdditionalLanguage": o([
398
+ AdditionalLanguage: o([
307
399
  { json: "languageTag", js: "languageTag", typ: "" },
308
400
  { json: "file", js: "file", typ: "" },
309
401
  ], false),
310
- "MeetingExtensionDefinition": o([
311
- { json: "scenes", js: "scenes", typ: u(undefined, a(r("Scene"))) },
312
- ], false),
313
- "Scene": o([
402
+ MeetingExtensionDefinition: o([{ json: "scenes", js: "scenes", typ: u(undefined, a(r("Scene"))) }], false),
403
+ Scene: o([
314
404
  { json: "id", js: "id", typ: "" },
315
405
  { json: "name", js: "name", typ: "" },
316
406
  { json: "file", js: "file", typ: "" },
317
407
  { json: "preview", js: "preview", typ: "" },
318
408
  { json: "maxAudience", js: "maxAudience", typ: 0 },
319
- { json: "seatsReservedForOrganizersOrPresenters", js: "seatsReservedForOrganizersOrPresenters", typ: 0 },
409
+ {
410
+ json: "seatsReservedForOrganizersOrPresenters",
411
+ js: "seatsReservedForOrganizersOrPresenters",
412
+ typ: 0,
413
+ },
320
414
  ], false),
321
- "Name": o([
415
+ Name: o([
322
416
  { json: "short", js: "short", typ: "" },
323
417
  { json: "full", js: "full", typ: u(undefined, "") },
324
418
  ], false),
325
- "StaticTab": o([
419
+ StaticTab: o([
326
420
  { json: "entityId", js: "entityId", typ: "" },
327
421
  { json: "name", js: "name", typ: u(undefined, "") },
328
422
  { json: "contentUrl", js: "contentUrl", typ: u(undefined, "") },
@@ -331,44 +425,24 @@ const typeMap = {
331
425
  { json: "searchUrl", js: "searchUrl", typ: u(undefined, "") },
332
426
  { json: "scopes", js: "scopes", typ: a(r("StaticTabScope")) },
333
427
  { json: "context", js: "context", typ: u(undefined, a(r("StaticTabContext"))) },
334
- { json: "supportedPlatform", js: "supportedPlatform", typ: u(undefined, a(r("SupportedPlatform"))) },
428
+ {
429
+ json: "supportedPlatform",
430
+ js: "supportedPlatform",
431
+ typ: u(undefined, a(r("SupportedPlatform"))),
432
+ },
335
433
  ], false),
336
- "SubscriptionOffer": o([
337
- { json: "offerId", js: "offerId", typ: "" },
338
- ], false),
339
- "WebApplicationInfo": o([
434
+ SubscriptionOffer: o([{ json: "offerId", js: "offerId", typ: "" }], false),
435
+ WebApplicationInfo: o([
340
436
  { json: "id", js: "id", typ: "" },
341
437
  { json: "resource", js: "resource", typ: u(undefined, "") },
342
438
  { json: "applicationPermissions", js: "applicationPermissions", typ: u(undefined, a("")) },
343
439
  ], false),
344
- "CommandListScope": [
345
- "groupChat",
346
- "groupchat",
347
- "personal",
348
- "team",
349
- ],
350
- "CommandContext": [
351
- "commandBox",
352
- "compose",
353
- "message",
354
- ],
355
- "InputType": [
356
- "choiceset",
357
- "date",
358
- "number",
359
- "text",
360
- "textarea",
361
- "time",
362
- "toggle",
363
- ],
364
- "CommandType": [
365
- "action",
366
- "query",
367
- ],
368
- "MessageHandlerType": [
369
- "link",
370
- ],
371
- "ConfigurableProperty": [
440
+ CommandListScope: ["groupChat", "groupchat", "personal", "team"],
441
+ CommandContext: ["commandBox", "compose", "message"],
442
+ InputType: ["choiceset", "date", "number", "text", "textarea", "time", "toggle"],
443
+ CommandType: ["action", "query"],
444
+ MessageHandlerType: ["link"],
445
+ ConfigurableProperty: [
372
446
  "accentColor",
373
447
  "developerUrl",
374
448
  "largeImageUrl",
@@ -379,7 +453,7 @@ const typeMap = {
379
453
  "smallImageUrl",
380
454
  "termsOfUseUrl",
381
455
  ],
382
- "ConfigurableTabContext": [
456
+ ConfigurableTabContext: [
383
457
  "callingSidePanel",
384
458
  "channelTab",
385
459
  "meetingChatTab",
@@ -389,60 +463,17 @@ const typeMap = {
389
463
  "personalTab",
390
464
  "privateChatTab",
391
465
  ],
392
- "MeetingSurface": [
393
- "sidePanel",
394
- "stage",
395
- ],
396
- "ConfigurableTabScope": [
397
- "groupChat",
398
- "groupchat",
399
- "team",
400
- ],
401
- "SupportedPlatform": [
402
- "desktop",
403
- "mobile",
404
- "teamsMeetingDevices",
405
- ],
406
- "SupportedSharePointHost": [
407
- "sharePointFullPage",
408
- "sharePointWebPart",
409
- ],
410
- "ConnectorScope": [
411
- "team",
412
- ],
413
- "Groupchat": [
414
- "bot",
415
- "connector",
416
- "tab",
417
- ],
418
- "DefaultInstallScope": [
419
- "groupChat",
420
- "groupchat",
421
- "meetings",
422
- "personal",
423
- "team",
424
- ],
425
- "DevicePermission": [
426
- "geolocation",
427
- "midi",
428
- "media",
429
- "notifications",
430
- "openExternal",
431
- ],
432
- "ManifestVersion": [
433
- "1.10",
434
- ],
435
- "Permission": [
436
- "identity",
437
- "messageTeamMembers",
438
- ],
439
- "StaticTabContext": [
440
- "channelTab",
441
- "personalTab",
442
- ],
443
- "StaticTabScope": [
444
- "personal",
445
- "team",
446
- ],
466
+ MeetingSurface: ["sidePanel", "stage"],
467
+ ConfigurableTabScope: ["groupChat", "groupchat", "team"],
468
+ SupportedPlatform: ["desktop", "mobile", "teamsMeetingDevices"],
469
+ SupportedSharePointHost: ["sharePointFullPage", "sharePointWebPart"],
470
+ ConnectorScope: ["team"],
471
+ Groupchat: ["bot", "connector", "tab"],
472
+ DefaultInstallScope: ["groupChat", "groupchat", "meetings", "personal", "team"],
473
+ DevicePermission: ["geolocation", "midi", "media", "notifications", "openExternal"],
474
+ ManifestVersion: ["1.10"],
475
+ Permission: ["identity", "messageTeamMembers"],
476
+ StaticTabContext: ["channelTab", "personalTab"],
477
+ StaticTabScope: ["personal", "team"],
447
478
  };
448
479
  //# sourceMappingURL=TeamsManifestV1D10.js.map