@microsoft/teams-js 2.2.0-beta.0 → 2.3.0-beta.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.
@@ -1111,6 +1111,7 @@ __webpack_require__.d(__webpack_exports__, {
1111
1111
  "registerUserSettingsChangeHandler": () => (/* reexport */ registerUserSettingsChangeHandler),
1112
1112
  "remoteCamera": () => (/* reexport */ remoteCamera),
1113
1113
  "returnFocus": () => (/* reexport */ returnFocus),
1114
+ "search": () => (/* reexport */ search),
1114
1115
  "sendCustomEvent": () => (/* reexport */ sendCustomEvent),
1115
1116
  "sendCustomMessage": () => (/* reexport */ sendCustomMessage),
1116
1117
  "setFrameContext": () => (/* reexport */ setFrameContext),
@@ -1127,7 +1128,7 @@ __webpack_require__.d(__webpack_exports__, {
1127
1128
  });
1128
1129
 
1129
1130
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1130
- var version = "2.2.0-beta.0";
1131
+ var version = "2.3.0-beta.0";
1131
1132
  /**
1132
1133
  * @hidden
1133
1134
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -1135,6 +1136,7 @@ var version = "2.2.0-beta.0";
1135
1136
  * Mobile clients are passing versions, hence will be applicable to web and desktop clients only.
1136
1137
  *
1137
1138
  * @internal
1139
+ * Limited to Microsoft-internal use
1138
1140
  */
1139
1141
  var defaultSDKVersionForCompatCheck = '2.0.1';
1140
1142
  /**
@@ -1142,14 +1144,23 @@ var defaultSDKVersionForCompatCheck = '2.0.1';
1142
1144
  * This is the client version when selectMedia API - VideoAndImage is supported on mobile.
1143
1145
  *
1144
1146
  * @internal
1147
+ * Limited to Microsoft-internal use
1145
1148
  */
1146
1149
  var videoAndImageMediaAPISupportVersion = '2.0.2';
1147
1150
  /**
1151
+ * @hidden
1148
1152
  * This is the client version when selectMedia API - Video with non-full screen mode is supported on mobile.
1153
+ *
1154
+ * @internal
1155
+ * Limited to Microsoft-internal use
1149
1156
  */
1150
1157
  var nonFullScreenVideoModeAPISupportVersion = '2.0.3';
1151
1158
  /**
1159
+ * @hidden
1152
1160
  * This is the client version when selectMedia API - ImageOutputFormats is supported on mobile.
1161
+ *
1162
+ * @internal
1163
+ * Limited to Microsoft-internal use
1153
1164
  */
1154
1165
  var imageOutputFormatsAPISupportVersion = '2.0.4';
1155
1166
  /**
@@ -1157,6 +1168,7 @@ var imageOutputFormatsAPISupportVersion = '2.0.4';
1157
1168
  * Minimum required client supported version for {@link getUserJoinedTeams} to be supported on {@link HostClientType.android}
1158
1169
  *
1159
1170
  * @internal
1171
+ * Limited to Microsoft-internal use
1160
1172
  */
1161
1173
  var getUserJoinedTeamsSupportedAndroidClientVersion = '2.0.1';
1162
1174
  /**
@@ -1164,6 +1176,7 @@ var getUserJoinedTeamsSupportedAndroidClientVersion = '2.0.1';
1164
1176
  * This is the client version when location APIs (getLocation and showLocation) are supported.
1165
1177
  *
1166
1178
  * @internal
1179
+ * Limited to Microsoft-internal use
1167
1180
  */
1168
1181
  var locationAPIsRequiredVersion = '1.9.0';
1169
1182
  /**
@@ -1171,6 +1184,7 @@ var locationAPIsRequiredVersion = '1.9.0';
1171
1184
  * This is the client version when permisisons are supported
1172
1185
  *
1173
1186
  * @internal
1187
+ * Limited to Microsoft-internal use
1174
1188
  */
1175
1189
  var permissionsAPIsRequiredVersion = '2.0.1';
1176
1190
  /**
@@ -1178,6 +1192,7 @@ var permissionsAPIsRequiredVersion = '2.0.1';
1178
1192
  * This is the client version when people picker API is supported on mobile.
1179
1193
  *
1180
1194
  * @internal
1195
+ * Limited to Microsoft-internal use
1181
1196
  */
1182
1197
  var peoplePickerRequiredVersion = '2.0.0';
1183
1198
  /**
@@ -1185,6 +1200,7 @@ var peoplePickerRequiredVersion = '2.0.0';
1185
1200
  * This is the client version when captureImage API is supported on mobile.
1186
1201
  *
1187
1202
  * @internal
1203
+ * Limited to Microsoft-internal use
1188
1204
  */
1189
1205
  var captureImageMobileSupportVersion = '1.7.0';
1190
1206
  /**
@@ -1192,6 +1208,7 @@ var captureImageMobileSupportVersion = '1.7.0';
1192
1208
  * This is the client version when media APIs are supported on all three platforms ios, android and web.
1193
1209
  *
1194
1210
  * @internal
1211
+ * Limited to Microsoft-internal use
1195
1212
  */
1196
1213
  var mediaAPISupportVersion = '1.8.0';
1197
1214
  /**
@@ -1199,6 +1216,7 @@ var mediaAPISupportVersion = '1.8.0';
1199
1216
  * This is the client version when getMedia API is supported via Callbacks on all three platforms ios, android and web.
1200
1217
  *
1201
1218
  * @internal
1219
+ * Limited to Microsoft-internal use
1202
1220
  */
1203
1221
  var getMediaCallbackSupportVersion = '2.0.0';
1204
1222
  /**
@@ -1206,6 +1224,7 @@ var getMediaCallbackSupportVersion = '2.0.0';
1206
1224
  * This is the client version when scanBarCode API is supported on mobile.
1207
1225
  *
1208
1226
  * @internal
1227
+ * Limited to Microsoft-internal use
1209
1228
  */
1210
1229
  var scanBarCodeAPIMobileSupportVersion = '1.9.0';
1211
1230
  /**
@@ -1213,6 +1232,7 @@ var scanBarCodeAPIMobileSupportVersion = '1.9.0';
1213
1232
  * List of supported Host origins
1214
1233
  *
1215
1234
  * @internal
1235
+ * Limited to Microsoft-internal use
1216
1236
  */
1217
1237
  var validOrigins = [
1218
1238
  'teams.microsoft.com',
@@ -1248,6 +1268,7 @@ var validOrigins = [
1248
1268
  * USer specified message origins should satisfy this test
1249
1269
  *
1250
1270
  * @internal
1271
+ * Limited to Microsoft-internal use
1251
1272
  */
1252
1273
  var userOriginUrlValidationRegExp = /^https:\/\//;
1253
1274
  /**
@@ -1255,6 +1276,7 @@ var userOriginUrlValidationRegExp = /^https:\/\//;
1255
1276
  * The protocol used for deep links into Teams
1256
1277
  *
1257
1278
  * @internal
1279
+ * Limited to Microsoft-internal use
1258
1280
  */
1259
1281
  var teamsDeepLinkProtocol = 'https';
1260
1282
  /**
@@ -1262,6 +1284,7 @@ var teamsDeepLinkProtocol = 'https';
1262
1284
  * The host used for deep links into Teams
1263
1285
  *
1264
1286
  * @internal
1287
+ * Limited to Microsoft-internal use
1265
1288
  */
1266
1289
  var teamsDeepLinkHost = 'teams.microsoft.com';
1267
1290
 
@@ -1484,6 +1507,7 @@ var uuid = __webpack_require__(22);
1484
1507
  * validateHostAgainstPattern('teams.microsoft.com', 'team.microsoft.com') returns false
1485
1508
  *
1486
1509
  * @internal
1510
+ * Limited to Microsoft-internal use
1487
1511
  */
1488
1512
  function validateHostAgainstPattern(pattern, host) {
1489
1513
  if (pattern.substring(0, 2) === '*.') {
@@ -1499,7 +1523,10 @@ function validateHostAgainstPattern(pattern, host) {
1499
1523
  }
1500
1524
  return false;
1501
1525
  }
1502
- /**@internal */
1526
+ /**
1527
+ * @internal
1528
+ * Limited to Microsoft-internal use
1529
+ */
1503
1530
  function validateOrigin(messageOrigin) {
1504
1531
  // Check whether the url is in the pre-known allowlist or supplied by user
1505
1532
  if (messageOrigin.protocol !== 'https:') {
@@ -1518,7 +1545,10 @@ function validateOrigin(messageOrigin) {
1518
1545
  }
1519
1546
  return false;
1520
1547
  }
1521
- /**@internal */
1548
+ /**
1549
+ * @internal
1550
+ * Limited to Microsoft-internal use
1551
+ */
1522
1552
  function getGenericOnCompleteHandler(errorMessage) {
1523
1553
  return function (success, reason) {
1524
1554
  if (!success) {
@@ -1544,6 +1574,7 @@ function getGenericOnCompleteHandler(errorMessage) {
1544
1574
  * compareSDKVersions('2.0', 2.0) returns NaN
1545
1575
  *
1546
1576
  * @internal
1577
+ * Limited to Microsoft-internal use
1547
1578
  */
1548
1579
  function compareSDKVersions(v1, v2) {
1549
1580
  if (typeof v1 !== 'string' || typeof v2 !== 'string') {
@@ -1584,10 +1615,15 @@ function compareSDKVersions(v1, v2) {
1584
1615
  * Generates a GUID
1585
1616
  *
1586
1617
  * @internal
1618
+ * Limited to Microsoft-internal use
1587
1619
  */
1588
1620
  function generateGUID() {
1589
1621
  return uuid.v4();
1590
1622
  }
1623
+ /**
1624
+ * @internal
1625
+ * Limited to Microsoft-internal use
1626
+ */
1591
1627
  function deepFreeze(obj) {
1592
1628
  Object.keys(obj).forEach(function (prop) {
1593
1629
  if (typeof obj[prop] === 'object') {
@@ -1604,6 +1640,7 @@ function deepFreeze(obj) {
1604
1640
  * @returns
1605
1641
  *
1606
1642
  * @internal
1643
+ * Limited to Microsoft-internal use
1607
1644
  */
1608
1645
  function callCallbackWithErrorOrResultFromPromiseAndReturnPromise(funcHelper, callback) {
1609
1646
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1638,6 +1675,7 @@ function callCallbackWithErrorOrResultFromPromiseAndReturnPromise(funcHelper, ca
1638
1675
  * @param args
1639
1676
  * @returns
1640
1677
  * @internal
1678
+ * Limited to Microsoft-internal use
1641
1679
  */
1642
1680
  function callCallbackWithErrorOrBooleanFromPromiseAndReturnPromise(funcHelper, callback) {
1643
1681
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1670,7 +1708,9 @@ function callCallbackWithErrorOrBooleanFromPromiseAndReturnPromise(funcHelper, c
1670
1708
  * @param callback
1671
1709
  * @param args
1672
1710
  * @returns
1711
+ *
1673
1712
  * @internal
1713
+ * Limited to Microsoft-internal use
1674
1714
  */
1675
1715
  function callCallbackWithSdkErrorFromPromiseAndReturnPromise(funcHelper, callback) {
1676
1716
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1705,6 +1745,7 @@ function callCallbackWithSdkErrorFromPromiseAndReturnPromise(funcHelper, callbac
1705
1745
  * @returns
1706
1746
  *
1707
1747
  * @internal
1748
+ * Limited to Microsoft-internal use
1708
1749
  */
1709
1750
  function callCallbackWithErrorOrResultOrNullFromPromiseAndReturnPromise(funcHelper, callback) {
1710
1751
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1741,6 +1782,7 @@ function callCallbackWithErrorOrResultOrNullFromPromiseAndReturnPromise(funcHelp
1741
1782
  * if the initial action didn't complete within provided timeout.
1742
1783
  *
1743
1784
  * @internal
1785
+ * Limited to Microsoft-internal use
1744
1786
  */
1745
1787
  function runWithTimeout(action, timeoutInMs, timeoutError) {
1746
1788
  return new Promise(function (resolve, reject) {
@@ -1756,6 +1798,10 @@ function runWithTimeout(action, timeoutInMs, timeoutError) {
1756
1798
  });
1757
1799
  });
1758
1800
  }
1801
+ /**
1802
+ * @internal
1803
+ * Limited to Microsoft-internal use
1804
+ */
1759
1805
  function createTeamsAppLink(params) {
1760
1806
  var url = new URL('https://teams.microsoft.com/l/entity/' +
1761
1807
  encodeURIComponent(params.appId) +
@@ -1776,7 +1822,10 @@ function createTeamsAppLink(params) {
1776
1822
 
1777
1823
 
1778
1824
 
1779
- /** @internal */
1825
+ /**
1826
+ * @internal
1827
+ * Limited to Microsoft-internal use
1828
+ */
1780
1829
  function ensureInitialized() {
1781
1830
  var expectedFrameContexts = [];
1782
1831
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -1807,6 +1856,7 @@ function ensureInitialized() {
1807
1856
  * @param requiredVersion - SDK version required by the API
1808
1857
  *
1809
1858
  * @internal
1859
+ * Limited to Microsoft-internal use
1810
1860
  */
1811
1861
  function isCurrentSDKVersionAtLeast(requiredVersion) {
1812
1862
  if (requiredVersion === void 0) { requiredVersion = defaultSDKVersionForCompatCheck; }
@@ -1821,6 +1871,7 @@ function isCurrentSDKVersionAtLeast(requiredVersion) {
1821
1871
  * Helper function to identify if host client is either android or ios
1822
1872
  *
1823
1873
  * @internal
1874
+ * Limited to Microsoft-internal use
1824
1875
  */
1825
1876
  function isHostClientMobile() {
1826
1877
  return GlobalVars.hostClientType == HostClientType.android || GlobalVars.hostClientType == HostClientType.ios;
@@ -1832,6 +1883,7 @@ function isHostClientMobile() {
1832
1883
  * supported by platform or not. Null is returned in case of success.
1833
1884
  *
1834
1885
  * @internal
1886
+ * Limited to Microsoft-internal use
1835
1887
  */
1836
1888
  function throwExceptionIfMobileApiIsNotSupported(requiredVersion) {
1837
1889
  if (requiredVersion === void 0) { requiredVersion = defaultSDKVersionForCompatCheck; }
@@ -1850,6 +1902,7 @@ function throwExceptionIfMobileApiIsNotSupported(requiredVersion) {
1850
1902
  * which is used later for message source/origin validation
1851
1903
  *
1852
1904
  * @internal
1905
+ * Limited to Microsoft-internal use
1853
1906
  */
1854
1907
  function processAdditionalValidOrigins(validMessageOrigins) {
1855
1908
  var combinedOriginUrls = GlobalVars.additionalValidOrigins.concat(validMessageOrigins.filter(function (_origin) {
@@ -1866,137 +1919,6 @@ function processAdditionalValidOrigins(validMessageOrigins) {
1866
1919
  GlobalVars.additionalValidOrigins = combinedOriginUrls;
1867
1920
  }
1868
1921
 
1869
- ;// CONCATENATED MODULE: ./src/private/privateAPIs.ts
1870
- /* eslint-disable @typescript-eslint/no-explicit-any */
1871
-
1872
-
1873
-
1874
-
1875
-
1876
- /**
1877
- * @internal
1878
- */
1879
- function initializePrivateApis() {
1880
- // To maintain backwards compatability, this function cannot be deleted as it is callable
1881
- }
1882
- /**
1883
- * @hidden
1884
- * Hide from docs.
1885
- * ------
1886
- * Upload a custom App manifest directly to both team and personal scopes.
1887
- * This method works just for the first party Apps.
1888
- *
1889
- * @internal
1890
- */
1891
- function uploadCustomApp(manifestBlob, onComplete) {
1892
- ensureInitialized();
1893
- sendMessageToParent('uploadCustomApp', [manifestBlob], onComplete ? onComplete : getGenericOnCompleteHandler());
1894
- }
1895
- /**
1896
- * @hidden
1897
- * Internal use only
1898
- * Sends a custom action MessageRequest to host or parent window
1899
- *
1900
- * @param actionName - Specifies name of the custom action to be sent
1901
- * @param args - Specifies additional arguments passed to the action
1902
- * @param callback - Optionally specify a callback to receive response parameters from the parent
1903
- * @returns id of sent message
1904
- *
1905
- * @internal
1906
- */
1907
- function sendCustomMessage(actionName,
1908
- // tslint:disable-next-line:no-any
1909
- args,
1910
- // tslint:disable-next-line:no-any
1911
- callback) {
1912
- ensureInitialized();
1913
- sendMessageToParent(actionName, args, callback);
1914
- }
1915
- /**
1916
- * @hidden
1917
- * Internal use only
1918
- * Sends a custom action MessageEvent to a child iframe/window, only if you are not using auth popup.
1919
- * Otherwise it will go to the auth popup (which becomes the child)
1920
- *
1921
- * @param actionName - Specifies name of the custom action to be sent
1922
- * @param args - Specifies additional arguments passed to the action
1923
- * @returns id of sent message
1924
- *
1925
- * @internal
1926
- */
1927
- function sendCustomEvent(actionName,
1928
- // tslint:disable-next-line:no-any
1929
- args) {
1930
- ensureInitialized();
1931
- //validate childWindow
1932
- if (!Communication.childWindow) {
1933
- throw new Error('The child window has not yet been initialized or is not present');
1934
- }
1935
- sendMessageEventToChild(actionName, args);
1936
- }
1937
- /**
1938
- * @hidden
1939
- * Internal use only
1940
- * Adds a handler for an action sent by a child window or parent window
1941
- *
1942
- * @param actionName - Specifies name of the action message to handle
1943
- * @param customHandler - The callback to invoke when the action message is received. The return value is sent to the child
1944
- *
1945
- * @internal
1946
- */
1947
- function registerCustomHandler(actionName, customHandler) {
1948
- var _this = this;
1949
- ensureInitialized();
1950
- registerHandler(actionName, function () {
1951
- var args = [];
1952
- for (var _i = 0; _i < arguments.length; _i++) {
1953
- args[_i] = arguments[_i];
1954
- }
1955
- return customHandler.apply(_this, args);
1956
- });
1957
- }
1958
- /**
1959
- * @hidden
1960
- * register a handler to be called when a user setting changes. The changed setting type & value is provided in the callback.
1961
- *
1962
- * @param settingTypes - List of user setting changes to subscribe
1963
- * @param handler - When a subscribed setting is updated this handler is called
1964
- *
1965
- * @internal
1966
- */
1967
- function registerUserSettingsChangeHandler(settingTypes, handler) {
1968
- ensureInitialized();
1969
- registerHandler('userSettingsChange', handler, true, [settingTypes]);
1970
- }
1971
- /**
1972
- * @hidden
1973
- * Hide from docs.
1974
- * ------
1975
- * Opens a client-friendly preview of the specified file.
1976
- *
1977
- * @param file - The file to preview.
1978
- */
1979
- function openFilePreview(filePreviewParameters) {
1980
- ensureInitialized(FrameContexts.content, FrameContexts.task);
1981
- var params = [
1982
- filePreviewParameters.entityId,
1983
- filePreviewParameters.title,
1984
- filePreviewParameters.description,
1985
- filePreviewParameters.type,
1986
- filePreviewParameters.objectUrl,
1987
- filePreviewParameters.downloadUrl,
1988
- filePreviewParameters.webPreviewUrl,
1989
- filePreviewParameters.webEditUrl,
1990
- filePreviewParameters.baseUrl,
1991
- filePreviewParameters.editFile,
1992
- filePreviewParameters.subEntityId,
1993
- filePreviewParameters.viewerAction,
1994
- filePreviewParameters.fileOpenPreference,
1995
- filePreviewParameters.conversationId,
1996
- ];
1997
- sendMessageToParent('openFilePreview', params);
1998
- }
1999
-
2000
1922
  ;// CONCATENATED MODULE: ./src/public/authentication.ts
2001
1923
 
2002
1924
 
@@ -2425,6 +2347,7 @@ var runtime = {
2425
2347
  permissions: undefined,
2426
2348
  profile: undefined,
2427
2349
  remoteCamera: undefined,
2350
+ search: undefined,
2428
2351
  sharing: undefined,
2429
2352
  stageView: undefined,
2430
2353
  teams: {
@@ -2501,21 +2424,29 @@ var versionConstants = {
2501
2424
  capability: { teams: { fullTrust: { joinedTeams: {} } } },
2502
2425
  hostClientTypes: [
2503
2426
  HostClientType.android,
2427
+ HostClientType.desktop,
2428
+ HostClientType.ios,
2504
2429
  HostClientType.teamsRoomsAndroid,
2505
2430
  HostClientType.teamsPhones,
2506
2431
  HostClientType.teamsDisplays,
2432
+ HostClientType.web,
2507
2433
  ],
2508
2434
  },
2435
+ {
2436
+ capability: { webStorage: {} },
2437
+ hostClientTypes: [HostClientType.desktop],
2438
+ },
2509
2439
  ],
2510
2440
  '2.0.5': [
2511
2441
  {
2512
2442
  capability: { webStorage: {} },
2513
- hostClientTypes: [HostClientType.android, HostClientType.ios],
2443
+ hostClientTypes: [HostClientType.android, HostClientType.desktop, HostClientType.ios],
2514
2444
  },
2515
2445
  ],
2516
2446
  };
2517
2447
  /**
2518
2448
  * @internal
2449
+ * Limited to Microsoft-internal use
2519
2450
  *
2520
2451
  * Generates and returns a runtime configuration for host clients which are not on the latest host SDK version
2521
2452
  * and do not provide their own runtime config. Their supported capabilities are based on the highest
@@ -2547,12 +2478,11 @@ function applyRuntimeConfig(runtimeConfig) {
2547
2478
  }
2548
2479
  /**
2549
2480
  * @hidden
2550
- * Hide from docs.
2551
- * ------
2552
2481
  * Constant used to set minimum runtime configuration
2553
2482
  * while un-initializing an app in unit test case.
2554
2483
  *
2555
2484
  * @internal
2485
+ * Limited to Microsoft-internal use
2556
2486
  */
2557
2487
  var _minRuntimeConfigToUninitialize = {
2558
2488
  apiVersion: 1,
@@ -2590,10 +2520,11 @@ var dialog;
2590
2520
  /**
2591
2521
  * @hidden
2592
2522
  * Hide from docs because this function is only used during initialization
2593
- * ------------------
2523
+ *
2594
2524
  * Adds register handlers for messageForChild upon initialization and only in the tasks FrameContext. {@link FrameContexts.task}
2595
2525
  * Function is called during app initialization
2596
2526
  * @internal
2527
+ * Limited to Microsoft-internal use
2597
2528
  */
2598
2529
  function initialize() {
2599
2530
  registerHandler('messageForChild', handleDialogMessage, false);
@@ -2790,11 +2721,11 @@ var dialog;
2790
2721
  })(bot = dialog.bot || (dialog.bot = {}));
2791
2722
  /**
2792
2723
  * @hidden
2793
- * Hide from docs
2794
- * --------
2724
+ *
2795
2725
  * Convert UrlDialogInfo to DialogInfo to send the information to host in {@linkcode open} API.
2796
2726
  *
2797
2727
  * @internal
2728
+ * Limited to Microsoft-internal use
2798
2729
  */
2799
2730
  function getDialogInfoFromUrlDialogInfo(urlDialogInfo) {
2800
2731
  var dialogInfo = {
@@ -2809,11 +2740,11 @@ var dialog;
2809
2740
  dialog.getDialogInfoFromUrlDialogInfo = getDialogInfoFromUrlDialogInfo;
2810
2741
  /**
2811
2742
  * @hidden
2812
- * Hide from docs
2813
- * --------
2743
+ *
2814
2744
  * Convert BotUrlDialogInfo to DialogInfo to send the information to host in {@linkcode bot.open} API.
2815
2745
  *
2816
2746
  * @internal
2747
+ * Limited to Microsoft-internal use
2817
2748
  */
2818
2749
  function getDialogInfoFromBotUrlDialogInfo(botUrlDialogInfo) {
2819
2750
  var dialogInfo = {
@@ -3070,7 +3001,6 @@ var teamsCore;
3070
3001
 
3071
3002
 
3072
3003
 
3073
-
3074
3004
  /**
3075
3005
  * Namespace to interact with app initialization and lifecycle.
3076
3006
  *
@@ -3227,7 +3157,6 @@ var app_app;
3227
3157
  menus.initialize();
3228
3158
  pages.config.initialize();
3229
3159
  dialog.initialize();
3230
- initializePrivateApis();
3231
3160
  }
3232
3161
  // Handle additional valid message origins if specified
3233
3162
  if (Array.isArray(validMessageOrigins)) {
@@ -3238,11 +3167,10 @@ var app_app;
3238
3167
  }
3239
3168
  /**
3240
3169
  * @hidden
3241
- * Hide from docs.
3242
- * ------
3243
3170
  * Undocumented function used to set a mock window for unit tests
3244
3171
  *
3245
3172
  * @internal
3173
+ * Limited to Microsoft-internal use
3246
3174
  */
3247
3175
  function _initialize(hostWindow) {
3248
3176
  Communication.currentWindow = hostWindow;
@@ -3250,11 +3178,10 @@ var app_app;
3250
3178
  app._initialize = _initialize;
3251
3179
  /**
3252
3180
  * @hidden
3253
- * Hide from docs.
3254
- * ------
3255
3181
  * Undocumented function used to clear state between unit tests
3256
3182
  *
3257
3183
  * @internal
3184
+ * Limited to Microsoft-internal use
3258
3185
  */
3259
3186
  function _uninitialize() {
3260
3187
  if (!GlobalVars.initializeCalled) {
@@ -3368,6 +3295,7 @@ var app_app;
3368
3295
  * Transforms the Legacy Context object received from Messages to the structured app.Context object
3369
3296
  *
3370
3297
  * @internal
3298
+ * Limited to Microsoft-internal use
3371
3299
  */
3372
3300
  function transformLegacyContextToAppContext(legacyContext) {
3373
3301
  var context = {
@@ -3499,6 +3427,7 @@ var pages;
3499
3427
  * @param handler - The handler for placing focus within the application.
3500
3428
  *
3501
3429
  * @internal
3430
+ * Limited to Microsoft-internal use
3502
3431
  */
3503
3432
  function registerFocusEnterHandler(handler) {
3504
3433
  ensureInitialized();
@@ -3707,9 +3636,10 @@ var pages;
3707
3636
  /**
3708
3637
  * @hidden
3709
3638
  * Hide from docs because this function is only used during initialization
3710
- * ------------------
3639
+ *
3711
3640
  * Adds register handlers for settings.save and settings.remove upon initialization. Function is called in {@link app.initializeHelper}
3712
3641
  * @internal
3642
+ * Limited to Microsoft-internal use
3713
3643
  */
3714
3644
  function initialize() {
3715
3645
  registerHandler('settings.save', handleSave, false);
@@ -4038,6 +3968,7 @@ var browser = __webpack_require__(227);
4038
3968
  var topLevelLogger = (0,browser.debug)('teamsJs');
4039
3969
  /**
4040
3970
  * @internal
3971
+ * Limited to Microsoft-internal use
4041
3972
  *
4042
3973
  * Returns a logger for a given namespace, within the pre-defined top-level teamsJs namespace
4043
3974
  */
@@ -4060,14 +3991,20 @@ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from
4060
3991
 
4061
3992
 
4062
3993
  var handlersLogger = getLogger('handlers');
4063
- /** @internal */
3994
+ /**
3995
+ * @internal
3996
+ * Limited to Microsoft-internal use
3997
+ */
4064
3998
  var HandlersPrivate = /** @class */ (function () {
4065
3999
  function HandlersPrivate() {
4066
4000
  }
4067
4001
  HandlersPrivate.handlers = {};
4068
4002
  return HandlersPrivate;
4069
4003
  }());
4070
- /** @internal */
4004
+ /**
4005
+ * @internal
4006
+ * Limited to Microsoft-internal use
4007
+ */
4071
4008
  function initializeHandlers() {
4072
4009
  // ::::::::::::::::::::MicrosoftTeams SDK Internal :::::::::::::::::
4073
4010
  HandlersPrivate.handlers['themeChange'] = handleThemeChange;
@@ -4076,7 +4013,10 @@ function initializeHandlers() {
4076
4013
  pages.backStack._initialize();
4077
4014
  }
4078
4015
  var callHandlerLogger = handlersLogger.extend('callHandler');
4079
- /** @internal */
4016
+ /**
4017
+ * @internal
4018
+ * Limited to Microsoft-internal use
4019
+ */
4080
4020
  function callHandler(name, args) {
4081
4021
  var handler = HandlersPrivate.handlers[name];
4082
4022
  if (handler) {
@@ -4089,7 +4029,10 @@ function callHandler(name, args) {
4089
4029
  return [false, undefined];
4090
4030
  }
4091
4031
  }
4092
- /** @internal */
4032
+ /**
4033
+ * @internal
4034
+ * Limited to Microsoft-internal use
4035
+ */
4093
4036
  function registerHandler(name, handler, sendMessage, args) {
4094
4037
  if (sendMessage === void 0) { sendMessage = true; }
4095
4038
  if (args === void 0) { args = []; }
@@ -4101,7 +4044,10 @@ function registerHandler(name, handler, sendMessage, args) {
4101
4044
  delete HandlersPrivate.handlers[name];
4102
4045
  }
4103
4046
  }
4104
- /** @internal */
4047
+ /**
4048
+ * @internal
4049
+ * Limited to Microsoft-internal use
4050
+ */
4105
4051
  function removeHandler(name) {
4106
4052
  delete HandlersPrivate.handlers[name];
4107
4053
  }
@@ -4109,12 +4055,18 @@ function removeHandler(name) {
4109
4055
  function doesHandlerExist(name) {
4110
4056
  return HandlersPrivate.handlers[name] != null;
4111
4057
  }
4112
- /** @internal */
4058
+ /**
4059
+ * @internal
4060
+ * Limited to Microsoft-internal use
4061
+ */
4113
4062
  function handlers_registerOnThemeChangeHandler(handler) {
4114
4063
  HandlersPrivate.themeChangeHandler = handler;
4115
4064
  handler && sendMessageToParent('registerHandler', ['themeChange']);
4116
4065
  }
4117
- /** @internal */
4066
+ /**
4067
+ * @internal
4068
+ * Limited to Microsoft-internal use
4069
+ */
4118
4070
  function handleThemeChange(theme) {
4119
4071
  if (HandlersPrivate.themeChangeHandler) {
4120
4072
  HandlersPrivate.themeChangeHandler(theme);
@@ -4123,12 +4075,18 @@ function handleThemeChange(theme) {
4123
4075
  sendMessageEventToChild('themeChange', [theme]);
4124
4076
  }
4125
4077
  }
4126
- /** @internal */
4078
+ /**
4079
+ * @internal
4080
+ * Limited to Microsoft-internal use
4081
+ */
4127
4082
  function handlers_registerOnLoadHandler(handler) {
4128
4083
  HandlersPrivate.loadHandler = handler;
4129
4084
  handler && sendMessageToParent('registerHandler', ['load']);
4130
4085
  }
4131
- /** @internal */
4086
+ /**
4087
+ * @internal
4088
+ * Limited to Microsoft-internal use
4089
+ */
4132
4090
  function handleLoad(context) {
4133
4091
  if (HandlersPrivate.loadHandler) {
4134
4092
  HandlersPrivate.loadHandler(context);
@@ -4137,12 +4095,18 @@ function handleLoad(context) {
4137
4095
  sendMessageEventToChild('load', [context]);
4138
4096
  }
4139
4097
  }
4140
- /** @internal */
4098
+ /**
4099
+ * @internal
4100
+ * Limited to Microsoft-internal use
4101
+ */
4141
4102
  function handlers_registerBeforeUnloadHandler(handler) {
4142
4103
  HandlersPrivate.beforeUnloadHandler = handler;
4143
4104
  handler && sendMessageToParent('registerHandler', ['beforeUnload']);
4144
4105
  }
4145
- /** @internal */
4106
+ /**
4107
+ * @internal
4108
+ * Limited to Microsoft-internal use
4109
+ */
4146
4110
  function handleBeforeUnload() {
4147
4111
  var readyToUnload = function () {
4148
4112
  sendMessageToParent('readyToUnload', []);
@@ -4170,14 +4134,20 @@ var communication_spreadArray = (undefined && undefined.__spreadArray) || functi
4170
4134
 
4171
4135
 
4172
4136
  var communicationLogger = getLogger('communication');
4173
- /**@internal */
4137
+ /**
4138
+ * @internal
4139
+ * Limited to Microsoft-internal use
4140
+ */
4174
4141
  var Communication = /** @class */ (function () {
4175
4142
  function Communication() {
4176
4143
  }
4177
4144
  return Communication;
4178
4145
  }());
4179
4146
 
4180
- /**@internal */
4147
+ /**
4148
+ * @internal
4149
+ * Limited to Microsoft-internal use
4150
+ */
4181
4151
  var CommunicationPrivate = /** @class */ (function () {
4182
4152
  function CommunicationPrivate() {
4183
4153
  }
@@ -4188,7 +4158,10 @@ var CommunicationPrivate = /** @class */ (function () {
4188
4158
  CommunicationPrivate.promiseCallbacks = {};
4189
4159
  return CommunicationPrivate;
4190
4160
  }());
4191
- /**@internal */
4161
+ /**
4162
+ * @internal
4163
+ * Limited to Microsoft-internal use
4164
+ */
4192
4165
  function initializeCommunication(validMessageOrigins) {
4193
4166
  // Listen for messages post to our window
4194
4167
  CommunicationPrivate.messageListener = function (evt) { return processMessage(evt); };
@@ -4228,7 +4201,10 @@ function initializeCommunication(validMessageOrigins) {
4228
4201
  Communication.parentOrigin = null;
4229
4202
  }
4230
4203
  }
4231
- /**@internal */
4204
+ /**
4205
+ * @internal
4206
+ * Limited to Microsoft-internal use
4207
+ */
4232
4208
  function uninitializeCommunication() {
4233
4209
  Communication.currentWindow.removeEventListener('message', CommunicationPrivate.messageListener, false);
4234
4210
  Communication.parentWindow = null;
@@ -4240,7 +4216,10 @@ function uninitializeCommunication() {
4240
4216
  CommunicationPrivate.nextMessageId = 0;
4241
4217
  CommunicationPrivate.callbacks = {};
4242
4218
  }
4243
- /**@internal */
4219
+ /**
4220
+ * @internal
4221
+ * Limited to Microsoft-internal use
4222
+ */
4244
4223
  function sendAndUnwrap(actionName) {
4245
4224
  var args = [];
4246
4225
  for (var _i = 1; _i < arguments.length; _i++) {
@@ -4263,7 +4242,10 @@ function sendAndHandleStatusAndReason(actionName) {
4263
4242
  }
4264
4243
  });
4265
4244
  }
4266
- /**@internal */
4245
+ /**
4246
+ * @internal
4247
+ * Limited to Microsoft-internal use
4248
+ */
4267
4249
  function sendAndHandleStatusAndReasonWithDefaultError(actionName, defaultError) {
4268
4250
  var args = [];
4269
4251
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -4276,7 +4258,10 @@ function sendAndHandleStatusAndReasonWithDefaultError(actionName, defaultError)
4276
4258
  }
4277
4259
  });
4278
4260
  }
4279
- /**@internal */
4261
+ /**
4262
+ * @internal
4263
+ * Limited to Microsoft-internal use
4264
+ */
4280
4265
  function sendAndHandleSdkError(actionName) {
4281
4266
  var args = [];
4282
4267
  for (var _i = 1; _i < arguments.length; _i++) {
@@ -4295,6 +4280,7 @@ function sendAndHandleSdkError(actionName) {
4295
4280
  * Send a message to parent. Uses nativeInterface on mobile to communicate with parent context
4296
4281
  *
4297
4282
  * @internal
4283
+ * Limited to Microsoft-internal use
4298
4284
  */
4299
4285
  function sendMessageToParentAsync(actionName, args) {
4300
4286
  if (args === void 0) { args = undefined; }
@@ -4303,13 +4289,19 @@ function sendMessageToParentAsync(actionName, args) {
4303
4289
  resolve(waitForResponse(request.id));
4304
4290
  });
4305
4291
  }
4306
- /**@internal */
4292
+ /**
4293
+ * @internal
4294
+ * Limited to Microsoft-internal use
4295
+ */
4307
4296
  function waitForResponse(requestId) {
4308
4297
  return new Promise(function (resolve) {
4309
4298
  CommunicationPrivate.promiseCallbacks[requestId] = resolve;
4310
4299
  });
4311
4300
  }
4312
- /**@internal */
4301
+ /**
4302
+ * @internal
4303
+ * Limited to Microsoft-internal use
4304
+ */
4313
4305
  function sendMessageToParent(actionName, argsOrCallback, callback) {
4314
4306
  var args;
4315
4307
  if (argsOrCallback instanceof Function) {
@@ -4324,7 +4316,10 @@ function sendMessageToParent(actionName, argsOrCallback, callback) {
4324
4316
  }
4325
4317
  }
4326
4318
  var sendMessageToParentHelperLogger = communicationLogger.extend('sendMessageToParentHelper');
4327
- /**@internal */
4319
+ /**
4320
+ * @internal
4321
+ * Limited to Microsoft-internal use
4322
+ */
4328
4323
  function sendMessageToParentHelper(actionName, args) {
4329
4324
  var logger = sendMessageToParentHelperLogger;
4330
4325
  var targetWindow = Communication.parentWindow;
@@ -4351,7 +4346,10 @@ function sendMessageToParentHelper(actionName, args) {
4351
4346
  }
4352
4347
  return request;
4353
4348
  }
4354
- /**@internal */
4349
+ /**
4350
+ * @internal
4351
+ * Limited to Microsoft-internal use
4352
+ */
4355
4353
  function processMessage(evt) {
4356
4354
  // Process only if we received a valid message
4357
4355
  if (!evt || !evt.data || typeof evt.data !== 'object') {
@@ -4379,6 +4377,7 @@ function processMessage(evt) {
4379
4377
  * Validates the message source and origin, if it should be processed
4380
4378
  *
4381
4379
  * @internal
4380
+ * Limited to Microsoft-internal use
4382
4381
  */
4383
4382
  function shouldProcessMessage(messageSource, messageOrigin) {
4384
4383
  // Process if message source is a different window and if origin is either in
@@ -4396,7 +4395,10 @@ function shouldProcessMessage(messageSource, messageOrigin) {
4396
4395
  return validateOrigin(new URL(messageOrigin));
4397
4396
  }
4398
4397
  }
4399
- /**@internal */
4398
+ /**
4399
+ * @internal
4400
+ * Limited to Microsoft-internal use
4401
+ */
4400
4402
  function updateRelationships(messageSource, messageOrigin) {
4401
4403
  // Determine whether the source of the message is our parent or child and update our
4402
4404
  // window and origin pointer accordingly
@@ -4426,7 +4428,10 @@ function updateRelationships(messageSource, messageOrigin) {
4426
4428
  flushMessageQueue(Communication.childWindow);
4427
4429
  }
4428
4430
  var handleParentMessageLogger = communicationLogger.extend('handleParentMessage');
4429
- /**@internal */
4431
+ /**
4432
+ * @internal
4433
+ * Limited to Microsoft-internal use
4434
+ */
4430
4435
  function handleParentMessage(evt) {
4431
4436
  var logger = handleParentMessageLogger;
4432
4437
  if ('id' in evt.data && typeof evt.data.id === 'number') {
@@ -4461,11 +4466,17 @@ function handleParentMessage(evt) {
4461
4466
  logger('Received an unknown message: %O', evt);
4462
4467
  }
4463
4468
  }
4464
- /**@internal */
4469
+ /**
4470
+ * @internal
4471
+ * Limited to Microsoft-internal use
4472
+ */
4465
4473
  function isPartialResponse(evt) {
4466
4474
  return evt.data.isPartialResponse === true;
4467
4475
  }
4468
- /**@internal */
4476
+ /**
4477
+ * @internal
4478
+ * Limited to Microsoft-internal use
4479
+ */
4469
4480
  function handleChildMessage(evt) {
4470
4481
  if ('id' in evt.data && 'func' in evt.data) {
4471
4482
  // Try to delegate the request to the proper handler, if defined
@@ -4490,7 +4501,10 @@ function handleChildMessage(evt) {
4490
4501
  }
4491
4502
  }
4492
4503
  }
4493
- /**@internal */
4504
+ /**
4505
+ * @internal
4506
+ * Limited to Microsoft-internal use
4507
+ */
4494
4508
  function getTargetMessageQueue(targetWindow) {
4495
4509
  return targetWindow === Communication.parentWindow
4496
4510
  ? CommunicationPrivate.parentMessageQueue
@@ -4498,7 +4512,10 @@ function getTargetMessageQueue(targetWindow) {
4498
4512
  ? CommunicationPrivate.childMessageQueue
4499
4513
  : [];
4500
4514
  }
4501
- /**@internal */
4515
+ /**
4516
+ * @internal
4517
+ * Limited to Microsoft-internal use
4518
+ */
4502
4519
  function getTargetOrigin(targetWindow) {
4503
4520
  return targetWindow === Communication.parentWindow
4504
4521
  ? Communication.parentOrigin
@@ -4507,7 +4524,10 @@ function getTargetOrigin(targetWindow) {
4507
4524
  : null;
4508
4525
  }
4509
4526
  var flushMessageQueueLogger = communicationLogger.extend('flushMessageQueue');
4510
- /**@internal */
4527
+ /**
4528
+ * @internal
4529
+ * Limited to Microsoft-internal use
4530
+ */
4511
4531
  function flushMessageQueue(targetWindow) {
4512
4532
  var targetOrigin = getTargetOrigin(targetWindow);
4513
4533
  var targetMessageQueue = getTargetMessageQueue(targetWindow);
@@ -4518,7 +4538,10 @@ function flushMessageQueue(targetWindow) {
4518
4538
  targetWindow.postMessage(request, targetOrigin);
4519
4539
  }
4520
4540
  }
4521
- /**@internal */
4541
+ /**
4542
+ * @internal
4543
+ * Limited to Microsoft-internal use
4544
+ */
4522
4545
  function waitForMessageQueue(targetWindow, callback) {
4523
4546
  var messageQueueMonitor = Communication.currentWindow.setInterval(function () {
4524
4547
  if (getTargetMessageQueue(targetWindow).length === 0) {
@@ -4532,6 +4555,7 @@ function waitForMessageQueue(targetWindow, callback) {
4532
4555
  * Send a response to child for a message request that was from child
4533
4556
  *
4534
4557
  * @internal
4558
+ * Limited to Microsoft-internal use
4535
4559
  */
4536
4560
  function sendMessageResponseToChild(id,
4537
4561
  // tslint:disable-next-line:no-any
@@ -4549,6 +4573,7 @@ args, isPartialResponse) {
4549
4573
  * instead of a response message to a child
4550
4574
  *
4551
4575
  * @internal
4576
+ * Limited to Microsoft-internal use
4552
4577
  */
4553
4578
  function sendMessageEventToChild(actionName,
4554
4579
  // tslint:disable-next-line: no-any
@@ -4565,7 +4590,10 @@ args) {
4565
4590
  getTargetMessageQueue(targetWindow).push(customEvent);
4566
4591
  }
4567
4592
  }
4568
- /**@internal */
4593
+ /**
4594
+ * @internal
4595
+ * Limited to Microsoft-internal use
4596
+ */
4569
4597
  // tslint:disable-next-line:no-any
4570
4598
  function createMessageRequest(func, args) {
4571
4599
  return {
@@ -4575,7 +4603,10 @@ function createMessageRequest(func, args) {
4575
4603
  args: args || [],
4576
4604
  };
4577
4605
  }
4578
- /**@internal */
4606
+ /**
4607
+ * @internal
4608
+ * Limited to Microsoft-internal use
4609
+ */
4579
4610
  // tslint:disable-next-line:no-any
4580
4611
  function createMessageResponse(id, args, isPartialResponse) {
4581
4612
  return {
@@ -4589,6 +4620,7 @@ function createMessageResponse(id, args, isPartialResponse) {
4589
4620
  * Creates a message object without any id, used for custom actions being sent to child frame/window
4590
4621
  *
4591
4622
  * @internal
4623
+ * Limited to Microsoft-internal use
4592
4624
  */
4593
4625
  // tslint:disable-next-line:no-any
4594
4626
  function createMessageEvent(func, args) {
@@ -4609,19 +4641,20 @@ function createMessageEvent(func, args) {
4609
4641
  * Namespace to interact with the logging part of the SDK.
4610
4642
  * This object is used to send the app logs on demand to the host client
4611
4643
  *
4612
- * Hide from docs
4613
- *
4614
4644
  * @internal
4645
+ * Limited to Microsoft-internal use
4615
4646
  */
4616
4647
  var logs;
4617
4648
  (function (logs) {
4618
4649
  /**
4619
4650
  * @hidden
4620
- * Hide from docs
4621
- * ------
4651
+ *
4622
4652
  * Registers a handler for getting app log
4623
4653
  *
4624
4654
  * @param handler - The handler to invoke to get the app log
4655
+ *
4656
+ * @internal
4657
+ * Limited to Microsoft-internal use
4625
4658
  */
4626
4659
  function registerGetLogHandler(handler) {
4627
4660
  ensureInitialized();
@@ -4639,6 +4672,14 @@ var logs;
4639
4672
  }
4640
4673
  }
4641
4674
  logs.registerGetLogHandler = registerGetLogHandler;
4675
+ /**
4676
+ * @hidden
4677
+ *
4678
+ * @returns boolean to represent whether the logs capability is supported
4679
+ *
4680
+ * @internal
4681
+ * Limited to Microsoft-internal use
4682
+ */
4642
4683
  function isSupported() {
4643
4684
  return runtime.supports.logs ? true : false;
4644
4685
  }
@@ -4646,6 +4687,12 @@ var logs;
4646
4687
  })(logs || (logs = {}));
4647
4688
 
4648
4689
  ;// CONCATENATED MODULE: ./src/private/interfaces.ts
4690
+ /**
4691
+ * @hidden
4692
+ *
4693
+ * @internal
4694
+ * Limited to Microsoft-internal use
4695
+ */
4649
4696
  var NotificationTypes;
4650
4697
  (function (NotificationTypes) {
4651
4698
  NotificationTypes["fileDownloadStart"] = "fileDownloadStart";
@@ -4653,7 +4700,9 @@ var NotificationTypes;
4653
4700
  })(NotificationTypes || (NotificationTypes = {}));
4654
4701
  /**
4655
4702
  * @hidden
4656
- * Hide from docs.
4703
+ *
4704
+ * @internal
4705
+ * Limited to Microsoft-internal use
4657
4706
  */
4658
4707
  var ViewerActionTypes;
4659
4708
  (function (ViewerActionTypes) {
@@ -4663,8 +4712,7 @@ var ViewerActionTypes;
4663
4712
  })(ViewerActionTypes || (ViewerActionTypes = {}));
4664
4713
  /**
4665
4714
  * @hidden
4666
- * Hide from docs.
4667
- * ------
4715
+ *
4668
4716
  * User setting changes that can be subscribed to
4669
4717
  */
4670
4718
  var UserSettingTypes;
@@ -4672,15 +4720,147 @@ var UserSettingTypes;
4672
4720
  /**
4673
4721
  * @hidden
4674
4722
  * Use this key to subscribe to changes in user's file open preference
4723
+ *
4724
+ * @internal
4725
+ * Limited to Microsoft-internal use
4675
4726
  */
4676
4727
  UserSettingTypes["fileOpenPreference"] = "fileOpenPreference";
4677
4728
  /**
4678
4729
  * @hidden
4679
4730
  * Use this key to subscribe to theme changes
4731
+ *
4732
+ * @internal
4733
+ * Limited to Microsoft-internal use
4680
4734
  */
4681
4735
  UserSettingTypes["theme"] = "theme";
4682
4736
  })(UserSettingTypes || (UserSettingTypes = {}));
4683
4737
 
4738
+ ;// CONCATENATED MODULE: ./src/private/privateAPIs.ts
4739
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4740
+
4741
+
4742
+
4743
+
4744
+
4745
+ /**
4746
+ * @hidden
4747
+ * Upload a custom App manifest directly to both team and personal scopes.
4748
+ * This method works just for the first party Apps.
4749
+ *
4750
+ * @internal
4751
+ * Limited to Microsoft-internal use
4752
+ */
4753
+ function uploadCustomApp(manifestBlob, onComplete) {
4754
+ ensureInitialized();
4755
+ sendMessageToParent('uploadCustomApp', [manifestBlob], onComplete ? onComplete : getGenericOnCompleteHandler());
4756
+ }
4757
+ /**
4758
+ * @hidden
4759
+ * Sends a custom action MessageRequest to host or parent window
4760
+ *
4761
+ * @param actionName - Specifies name of the custom action to be sent
4762
+ * @param args - Specifies additional arguments passed to the action
4763
+ * @param callback - Optionally specify a callback to receive response parameters from the parent
4764
+ * @returns id of sent message
4765
+ *
4766
+ * @internal
4767
+ * Limited to Microsoft-internal use
4768
+ */
4769
+ function sendCustomMessage(actionName,
4770
+ // tslint:disable-next-line:no-any
4771
+ args,
4772
+ // tslint:disable-next-line:no-any
4773
+ callback) {
4774
+ ensureInitialized();
4775
+ sendMessageToParent(actionName, args, callback);
4776
+ }
4777
+ /**
4778
+ * @hidden
4779
+ * Sends a custom action MessageEvent to a child iframe/window, only if you are not using auth popup.
4780
+ * Otherwise it will go to the auth popup (which becomes the child)
4781
+ *
4782
+ * @param actionName - Specifies name of the custom action to be sent
4783
+ * @param args - Specifies additional arguments passed to the action
4784
+ * @returns id of sent message
4785
+ *
4786
+ * @internal
4787
+ * Limited to Microsoft-internal use
4788
+ */
4789
+ function sendCustomEvent(actionName,
4790
+ // tslint:disable-next-line:no-any
4791
+ args) {
4792
+ ensureInitialized();
4793
+ //validate childWindow
4794
+ if (!Communication.childWindow) {
4795
+ throw new Error('The child window has not yet been initialized or is not present');
4796
+ }
4797
+ sendMessageEventToChild(actionName, args);
4798
+ }
4799
+ /**
4800
+ * @hidden
4801
+ * Adds a handler for an action sent by a child window or parent window
4802
+ *
4803
+ * @param actionName - Specifies name of the action message to handle
4804
+ * @param customHandler - The callback to invoke when the action message is received. The return value is sent to the child
4805
+ *
4806
+ * @internal
4807
+ * Limited to Microsoft-internal use
4808
+ */
4809
+ function registerCustomHandler(actionName, customHandler) {
4810
+ var _this = this;
4811
+ ensureInitialized();
4812
+ registerHandler(actionName, function () {
4813
+ var args = [];
4814
+ for (var _i = 0; _i < arguments.length; _i++) {
4815
+ args[_i] = arguments[_i];
4816
+ }
4817
+ return customHandler.apply(_this, args);
4818
+ });
4819
+ }
4820
+ /**
4821
+ * @hidden
4822
+ * register a handler to be called when a user setting changes. The changed setting type & value is provided in the callback.
4823
+ *
4824
+ * @param settingTypes - List of user setting changes to subscribe
4825
+ * @param handler - When a subscribed setting is updated this handler is called
4826
+ *
4827
+ * @internal
4828
+ * Limited to Microsoft-internal use
4829
+ */
4830
+ function registerUserSettingsChangeHandler(settingTypes, handler) {
4831
+ ensureInitialized();
4832
+ registerHandler('userSettingsChange', handler, true, [settingTypes]);
4833
+ }
4834
+ /**
4835
+ * @hidden
4836
+ * Opens a client-friendly preview of the specified file.
4837
+ *
4838
+ * @param file - The file to preview.
4839
+ *
4840
+ * @internal
4841
+ * Limited to Microsoft-internal use
4842
+ */
4843
+ function openFilePreview(filePreviewParameters) {
4844
+ ensureInitialized(FrameContexts.content, FrameContexts.task);
4845
+ var params = [
4846
+ filePreviewParameters.entityId,
4847
+ filePreviewParameters.title,
4848
+ filePreviewParameters.description,
4849
+ filePreviewParameters.type,
4850
+ filePreviewParameters.objectUrl,
4851
+ filePreviewParameters.downloadUrl,
4852
+ filePreviewParameters.webPreviewUrl,
4853
+ filePreviewParameters.webEditUrl,
4854
+ filePreviewParameters.baseUrl,
4855
+ filePreviewParameters.editFile,
4856
+ filePreviewParameters.subEntityId,
4857
+ filePreviewParameters.viewerAction,
4858
+ filePreviewParameters.fileOpenPreference,
4859
+ filePreviewParameters.conversationId,
4860
+ ];
4861
+ sendMessageToParent('openFilePreview', params);
4862
+ }
4863
+
4684
4864
  ;// CONCATENATED MODULE: ./src/private/conversations.ts
4685
4865
 
4686
4866
 
@@ -4690,6 +4870,9 @@ var UserSettingTypes;
4690
4870
  /**
4691
4871
  * @hidden
4692
4872
  * Namespace to interact with the conversational subEntities inside the tab
4873
+ *
4874
+ * @internal
4875
+ * Limited to Microsoft-internal use
4693
4876
  */
4694
4877
  var conversations;
4695
4878
  (function (conversations) {
@@ -4700,6 +4883,9 @@ var conversations;
4700
4883
  * Allows the user to start or continue a conversation with each subentity inside the tab
4701
4884
  *
4702
4885
  * @returns Promise resolved upon completion
4886
+ *
4887
+ * @internal
4888
+ * Limited to Microsoft-internal use
4703
4889
  */
4704
4890
  function openConversation(openConversationRequest) {
4705
4891
  return new Promise(function (resolve) {
@@ -4740,9 +4926,11 @@ var conversations;
4740
4926
  conversations.openConversation = openConversation;
4741
4927
  /**
4742
4928
  * @hidden
4743
- * Hide from docs
4744
- * --------------
4929
+ *
4745
4930
  * Allows the user to close the conversation in the right pane
4931
+ *
4932
+ * @internal
4933
+ * Limited to Microsoft-internal use
4746
4934
  */
4747
4935
  function closeConversation() {
4748
4936
  ensureInitialized(FrameContexts.content);
@@ -4765,6 +4953,7 @@ var conversations;
4765
4953
  * @returns Promise resolved with information on all chat members
4766
4954
  *
4767
4955
  * @internal
4956
+ * Limited to Microsoft-internal use
4768
4957
  */
4769
4958
  function getChatMembers() {
4770
4959
  return new Promise(function (resolve) {
@@ -4776,6 +4965,12 @@ var conversations;
4776
4965
  });
4777
4966
  }
4778
4967
  conversations.getChatMembers = getChatMembers;
4968
+ /**
4969
+ * @returns boolean to represent whether conversations capability is supported
4970
+ *
4971
+ * @internal
4972
+ * Limited to Microsoft-internal use
4973
+ */
4779
4974
  function isSupported() {
4780
4975
  return runtime.supports.conversations ? true : false;
4781
4976
  }
@@ -5328,6 +5523,7 @@ var media;
5328
5523
  * Helper function to create a blob from media chunks based on their sequence
5329
5524
  *
5330
5525
  * @internal
5526
+ * Limited to Microsoft-internal use
5331
5527
  */
5332
5528
  function createFile(assembleAttachment, mimeType) {
5333
5529
  if (assembleAttachment == null || mimeType == null || assembleAttachment.length <= 0) {
@@ -5355,6 +5551,7 @@ function createFile(assembleAttachment, mimeType) {
5355
5551
  * Converts base 64 encoded string to byte array and then into an array of blobs
5356
5552
  *
5357
5553
  * @internal
5554
+ * Limited to Microsoft-internal use
5358
5555
  */
5359
5556
  function decodeAttachment(attachment, mimeType) {
5360
5557
  if (attachment == null || mimeType == null) {
@@ -5376,8 +5573,11 @@ function decodeAttachment(attachment, mimeType) {
5376
5573
  /**
5377
5574
  * @hidden
5378
5575
  * Function throws an SdkError if the media call is not supported on current mobile version, else undefined.
5576
+ *
5379
5577
  * @throws an SdkError if the media call is not supported
5578
+ *
5380
5579
  * @internal
5580
+ * Limited to Microsoft-internal use
5381
5581
  */
5382
5582
  function throwExceptionIfMediaCallIsNotSupportedOnMobile(mediaInputs) {
5383
5583
  if (isMediaCallForVideoAndImageInputs(mediaInputs)) {
@@ -5395,6 +5595,7 @@ function throwExceptionIfMediaCallIsNotSupportedOnMobile(mediaInputs) {
5395
5595
  * Function returns true if the app has registered to listen to video controller events, else false.
5396
5596
  *
5397
5597
  * @internal
5598
+ * Limited to Microsoft-internal use
5398
5599
  */
5399
5600
  function isVideoControllerRegistered(mediaInputs) {
5400
5601
  if (mediaInputs.mediaType == media.MediaType.Video &&
@@ -5409,6 +5610,7 @@ function isVideoControllerRegistered(mediaInputs) {
5409
5610
  * Returns true if the mediaInput params are valid and false otherwise
5410
5611
  *
5411
5612
  * @internal
5613
+ * Limited to Microsoft-internal use
5412
5614
  */
5413
5615
  function validateSelectMediaInputs(mediaInputs) {
5414
5616
  if (mediaInputs == null || mediaInputs.maxMediaCount > 10) {
@@ -5417,7 +5619,11 @@ function validateSelectMediaInputs(mediaInputs) {
5417
5619
  return true;
5418
5620
  }
5419
5621
  /**
5622
+ * @hidden
5420
5623
  * Returns true if the mediaInput params are called for mediatype Image and contains Image outputs formats, false otherwise
5624
+ *
5625
+ * @internal
5626
+ * Limited to Microsoft-internal use
5421
5627
  */
5422
5628
  function isMediaCallForImageOutputFormats(mediaInputs) {
5423
5629
  var _a;
@@ -6056,8 +6262,6 @@ var meeting;
6056
6262
  meeting.toggleIncomingClientAudio = toggleIncomingClientAudio;
6057
6263
  /**
6058
6264
  * @hidden
6059
- * Hide from docs
6060
- *
6061
6265
  * Allows an app to get the meeting details for the meeting
6062
6266
  *
6063
6267
  * @param callback - Callback contains 2 parameters, error and meetingDetailsResponse.
@@ -6065,6 +6269,7 @@ var meeting;
6065
6269
  * result can either contain a IMeetingDetailsResponse value, in case of a successful get or null when the get fails
6066
6270
  *
6067
6271
  * @internal
6272
+ * Limited to Microsoft-internal use
6068
6273
  */
6069
6274
  function getMeetingDetails(callback) {
6070
6275
  if (!callback) {
@@ -6083,6 +6288,7 @@ var meeting;
6083
6288
  * authenticationTokenOfAnonymousUser can either contain a string value, incase of a successful get or null when the get fails
6084
6289
  *
6085
6290
  * @internal
6291
+ * Limited to Microsoft-internal use
6086
6292
  */
6087
6293
  function getAuthenticationTokenForAnonymousUser(callback) {
6088
6294
  if (!callback) {
@@ -6465,6 +6671,7 @@ var people;
6465
6671
  * @returns true if the parameters are valid, false otherwise
6466
6672
  *
6467
6673
  * @internal
6674
+ * Limited to Microsoft-internal use
6468
6675
  */
6469
6676
  function validateShowProfileRequest(showProfileRequest) {
6470
6677
  if (!showProfileRequest) {
@@ -6492,6 +6699,7 @@ function validateShowProfileRequest(showProfileRequest) {
6492
6699
  * @returns true if the persona is valid, false otherwise
6493
6700
  *
6494
6701
  * @internal
6702
+ * Limited to Microsoft-internal use
6495
6703
  */
6496
6704
  function validatePersona(persona) {
6497
6705
  if (!persona) {
@@ -6677,6 +6885,111 @@ var video;
6677
6885
  video.isSupported = isSupported;
6678
6886
  })(video || (video = {})); //end of video namespace
6679
6887
 
6888
+ ;// CONCATENATED MODULE: ./src/public/search.ts
6889
+
6890
+
6891
+
6892
+
6893
+
6894
+ /**
6895
+ * Allows your application to interact with the host M365 application's search box.
6896
+ * By integrating your application with the host's search box, users can search
6897
+ * your app using the same search box they use elsewhere in Teams, Outlook, or Office.
6898
+ *
6899
+ * This functionality is in Beta.
6900
+ * @beta
6901
+ */
6902
+ var search;
6903
+ (function (search) {
6904
+ var onChangeHandlerName = 'search.queryChange';
6905
+ var onClosedHandlerName = 'search.queryClose';
6906
+ var onExecutedHandlerName = 'search.queryExecute';
6907
+ /**
6908
+ * Allows the caller to register for various events fired by the host search experience.
6909
+ * Calling this function indicates that your application intends to plug into the host's search box and handle search events,
6910
+ * when the user is actively using your page/tab.
6911
+ *
6912
+ * The host may visually update its search box, e.g. with the name or icon of your application.
6913
+ *
6914
+ * Your application should *not* re-render inside of these callbacks, there may be a large number
6915
+ * of onChangeHandler calls if the user is typing rapidly in the search box.
6916
+ *
6917
+ * @param onChangeHandler - This optional handler will be called when the user first starts using the
6918
+ * host's search box and as the user types their query. Can be used to put your application into a
6919
+ * word-wheeling state or to display suggestions as the user is typing.
6920
+ *
6921
+ * This handler will be called with an empty {@link SearchQuery.searchTerm} when search is beginning, and subsequently,
6922
+ * with the current contents of the search box.
6923
+ *
6924
+ * @param onClosedHandler - This handler will be called when the user exits or cancels their search.
6925
+ * Should be used to return your application to its most recent, non-search state. The value of {@link SearchQuery.searchTerm}
6926
+ * will be whatever the last query was before ending search.
6927
+ *
6928
+ * @param onExecuteHandler - The handler will be called when the user executes their
6929
+ * search (by pressing Enter for example). Should be used to display the full list of search results.
6930
+ * The value of {@link SearchQuery.searchTerm} is the complete query the user entered in the search box.
6931
+ *
6932
+ * @example
6933
+ * ``` ts
6934
+ * search.registerHandlers(
6935
+ query => {
6936
+ console.log(`Update your application with the changed search query: ${query.searchTerm}`);
6937
+ },
6938
+ query => {
6939
+ console.log('Update your application to handle the search experience being closed. Last query: ${query.searchTerm}');
6940
+ },
6941
+ query => {
6942
+ console.log(`Update your application to handle an executed search result: ${query.searchTerm}`);
6943
+ },
6944
+ );
6945
+ * ```
6946
+ *
6947
+ * @beta
6948
+ */
6949
+ function registerHandlers(onClosedHandler, onExecuteHandler, onChangeHandler) {
6950
+ ensureInitialized(FrameContexts.content);
6951
+ if (!isSupported()) {
6952
+ throw errorNotSupportedOnPlatform;
6953
+ }
6954
+ registerHandler(onClosedHandlerName, onClosedHandler);
6955
+ registerHandler(onExecutedHandlerName, onExecuteHandler);
6956
+ if (onChangeHandler) {
6957
+ registerHandler(onChangeHandlerName, onChangeHandler);
6958
+ }
6959
+ }
6960
+ search.registerHandlers = registerHandlers;
6961
+ /**
6962
+ * Allows the caller to unregister for all events fired by the host search experience. Calling
6963
+ * this function will cause your app to stop appearing in the set of search scopes in the hosts
6964
+ *
6965
+ * @beta
6966
+ */
6967
+ function unregisterHandlers() {
6968
+ ensureInitialized(FrameContexts.content);
6969
+ if (!isSupported()) {
6970
+ throw errorNotSupportedOnPlatform;
6971
+ }
6972
+ // This should let the host know to stop making the app scope show up in the search experience
6973
+ // Can also be used to clean up handlers on the host if desired
6974
+ sendMessageToParent('search.unregister');
6975
+ removeHandler(onChangeHandlerName);
6976
+ removeHandler(onClosedHandlerName);
6977
+ removeHandler(onExecutedHandlerName);
6978
+ }
6979
+ search.unregisterHandlers = unregisterHandlers;
6980
+ /**
6981
+ * Checks if search capability is supported by the host
6982
+ * @returns true if the search capability is supported by the host and false otherwise
6983
+ * false if it is disabled
6984
+ *
6985
+ * @beta
6986
+ */
6987
+ function isSupported() {
6988
+ return runtime.supports.search ? true : false;
6989
+ }
6990
+ search.isSupported = isSupported;
6991
+ })(search || (search = {}));
6992
+
6680
6993
  ;// CONCATENATED MODULE: ./src/public/sharing.ts
6681
6994
 
6682
6995
 
@@ -6816,8 +7129,6 @@ var stageView;
6816
7129
  ;// CONCATENATED MODULE: ./src/public/webStorage.ts
6817
7130
 
6818
7131
 
6819
-
6820
-
6821
7132
  /**
6822
7133
  * Contains functionality to allow web apps to store data in webview cache
6823
7134
  *
@@ -6834,10 +7145,6 @@ var webStorage;
6834
7145
  */
6835
7146
  function isWebStorageClearedOnUserLogOut() {
6836
7147
  ensureInitialized();
6837
- // return true as web storage is always cleared on desktop.
6838
- if (GlobalVars.hostClientType === HostClientType.desktop) {
6839
- return true;
6840
- }
6841
7148
  return isSupported();
6842
7149
  }
6843
7150
  webStorage.isWebStorageClearedOnUserLogOut = isWebStorageClearedOnUserLogOut;
@@ -6999,11 +7306,10 @@ function initialize(callback, validMessageOrigins) {
6999
7306
  * As of 2.0.0, please use {@link app._initialize app._initialize(hostWindow: any): void} instead.
7000
7307
  *
7001
7308
  * @hidden
7002
- * Hide from docs.
7003
- * ------
7004
7309
  * Undocumented function used to set a mock window for unit tests
7005
7310
  *
7006
7311
  * @internal
7312
+ * Limited to Microsoft-internal use
7007
7313
  */
7008
7314
  // eslint-disable-next-line
7009
7315
  function _initialize(hostWindow) {
@@ -7014,11 +7320,10 @@ function _initialize(hostWindow) {
7014
7320
  * As of 2.0.0, please use {@link app._uninitialize app._uninitialize(): void} instead.
7015
7321
  *
7016
7322
  * @hidden
7017
- * Hide from docs.
7018
- * ------
7019
7323
  * Undocumented function used to clear state between unit tests
7020
7324
  *
7021
7325
  * @internal
7326
+ * Limited to Microsoft-internal use
7022
7327
  */
7023
7328
  function _uninitialize() {
7024
7329
  app._uninitialize();
@@ -7697,6 +8002,7 @@ var tasks;
7697
8002
 
7698
8003
 
7699
8004
 
8005
+
7700
8006
 
7701
8007
 
7702
8008
 
@@ -7707,17 +8013,21 @@ var tasks;
7707
8013
 
7708
8014
  /**
7709
8015
  * @hidden
7710
- * Hide from docs
7711
- * ------
8016
+ *
7712
8017
  * Namespace to interact with the files specific part of the SDK.
8018
+ *
8019
+ * @internal
8020
+ * Limited to Microsoft-internal use
7713
8021
  */
7714
8022
  var files;
7715
8023
  (function (files_1) {
7716
8024
  /**
7717
8025
  * @hidden
7718
- * Hide from docs
7719
- * ------
8026
+ *
7720
8027
  * Cloud storage providers registered with Microsoft Teams
8028
+ *
8029
+ * @internal
8030
+ * Limited to Microsoft-internal use
7721
8031
  */
7722
8032
  var CloudStorageProvider;
7723
8033
  (function (CloudStorageProvider) {
@@ -7730,9 +8040,11 @@ var files;
7730
8040
  })(CloudStorageProvider = files_1.CloudStorageProvider || (files_1.CloudStorageProvider = {}));
7731
8041
  /**
7732
8042
  * @hidden
7733
- * Hide from docs
7734
8043
  *
7735
8044
  * Cloud storage provider type enums
8045
+ *
8046
+ * @internal
8047
+ * Limited to Microsoft-internal use
7736
8048
  */
7737
8049
  var CloudStorageProviderType;
7738
8050
  (function (CloudStorageProviderType) {
@@ -7749,9 +8061,11 @@ var files;
7749
8061
  })(CloudStorageProviderType = files_1.CloudStorageProviderType || (files_1.CloudStorageProviderType = {}));
7750
8062
  /**
7751
8063
  * @hidden
7752
- * Hide from docs
7753
8064
  *
7754
8065
  * Special Document Library enum
8066
+ *
8067
+ * @internal
8068
+ * Limited to Microsoft-internal use
7755
8069
  */
7756
8070
  var SpecialDocumentLibraryType;
7757
8071
  (function (SpecialDocumentLibraryType) {
@@ -7759,9 +8073,11 @@ var files;
7759
8073
  })(SpecialDocumentLibraryType = files_1.SpecialDocumentLibraryType || (files_1.SpecialDocumentLibraryType = {}));
7760
8074
  /**
7761
8075
  * @hidden
7762
- * Hide from docs
7763
8076
  *
7764
8077
  * Document Library Access enum
8078
+ *
8079
+ * @internal
8080
+ * Limited to Microsoft-internal use
7765
8081
  */
7766
8082
  var DocumentLibraryAccessType;
7767
8083
  (function (DocumentLibraryAccessType) {
@@ -7769,9 +8085,11 @@ var files;
7769
8085
  })(DocumentLibraryAccessType = files_1.DocumentLibraryAccessType || (files_1.DocumentLibraryAccessType = {}));
7770
8086
  /**
7771
8087
  * @hidden
7772
- * Hide from docs
7773
8088
  *
7774
8089
  * Download status enum
8090
+ *
8091
+ * @internal
8092
+ * Limited to Microsoft-internal use
7775
8093
  */
7776
8094
  var FileDownloadStatus;
7777
8095
  (function (FileDownloadStatus) {
@@ -7784,6 +8102,9 @@ var files;
7784
8102
  * Hide from docs
7785
8103
  *
7786
8104
  * Actions specific to 3P cloud storage provider file and / or account
8105
+ *
8106
+ * @internal
8107
+ * Limited to Microsoft-internal use
7787
8108
  */
7788
8109
  var CloudStorageProviderFileAction;
7789
8110
  (function (CloudStorageProviderFileAction) {
@@ -7798,6 +8119,9 @@ var files;
7798
8119
  * Gets a list of cloud storage folders added to the channel
7799
8120
  * @param channelId - ID of the channel whose cloud storage folders should be retrieved
7800
8121
  * @param callback - Callback that will be triggered post folders load
8122
+ *
8123
+ * @internal
8124
+ * Limited to Microsoft-internal use
7801
8125
  */
7802
8126
  function getCloudStorageFolders(channelId, callback) {
7803
8127
  ensureInitialized(FrameContexts.content);
@@ -7818,6 +8142,9 @@ var files;
7818
8142
  *
7819
8143
  * @param channelId - ID of the channel to add cloud storage folder
7820
8144
  * @param callback - Callback that will be triggered post add folder flow is compelete
8145
+ *
8146
+ * @internal
8147
+ * Limited to Microsoft-internal use
7821
8148
  */
7822
8149
  function addCloudStorageFolder(channelId, callback) {
7823
8150
  ensureInitialized(FrameContexts.content);
@@ -7840,6 +8167,9 @@ var files;
7840
8167
  * @param channelId - ID of the channel where folder is to be deleted
7841
8168
  * @param folderToDelete - cloud storage folder to be deleted
7842
8169
  * @param callback - Callback that will be triggered post delete
8170
+ *
8171
+ * @internal
8172
+ * Limited to Microsoft-internal use
7843
8173
  */
7844
8174
  function deleteCloudStorageFolder(channelId, folderToDelete, callback) {
7845
8175
  ensureInitialized(FrameContexts.content);
@@ -7865,6 +8195,9 @@ var files;
7865
8195
  * @param folder - Cloud storage folder (CloudStorageFolder) / sub directory (CloudStorageFolderItem)
7866
8196
  * @param providerCode - Code of the cloud storage folder provider
7867
8197
  * @param callback - Callback that will be triggered post contents are loaded
8198
+ *
8199
+ * @internal
8200
+ * Limited to Microsoft-internal use
7868
8201
  */
7869
8202
  function getCloudStorageFolderContents(folder, providerCode, callback) {
7870
8203
  ensureInitialized(FrameContexts.content);
@@ -7890,6 +8223,9 @@ var files;
7890
8223
  * @param file - cloud storage file that should be opened
7891
8224
  * @param providerCode - Code of the cloud storage folder provider
7892
8225
  * @param fileOpenPreference - Whether file should be opened in web/inline
8226
+ *
8227
+ * @internal
8228
+ * Limited to Microsoft-internal use
7893
8229
  */
7894
8230
  function openCloudStorageFile(file, providerCode, fileOpenPreference) {
7895
8231
  ensureInitialized(FrameContexts.content);
@@ -7908,6 +8244,9 @@ var files;
7908
8244
  * third party cloud storage accounts that the tenant supports
7909
8245
  * @param excludeAddedProviders: return a list of support third party
7910
8246
  * cloud storages that hasn't been added yet.
8247
+ *
8248
+ * @internal
8249
+ * Limited to Microsoft-internal use
7911
8250
  */
7912
8251
  function getExternalProviders(excludeAddedProviders, callback) {
7913
8252
  if (excludeAddedProviders === void 0) { excludeAddedProviders = false; }
@@ -7922,6 +8261,9 @@ var files;
7922
8261
  * @hidden
7923
8262
  * Allow 1st party apps to call this function to move files
7924
8263
  * among SharePoint and third party cloud storages.
8264
+ *
8265
+ * @internal
8266
+ * Limited to Microsoft-internal use
7925
8267
  */
7926
8268
  function copyMoveFiles(selectedFiles, providerCode, destinationFolder, destinationProviderCode, isMove, callback) {
7927
8269
  if (isMove === void 0) { isMove = false; }
@@ -7951,6 +8293,9 @@ var files;
7951
8293
  *
7952
8294
  * Gets list of downloads for current user
7953
8295
  * @param callback Callback that will be triggered post downloads load
8296
+ *
8297
+ * @internal
8298
+ * Limited to Microsoft-internal use
7954
8299
  */
7955
8300
  function getFileDownloads(callback) {
7956
8301
  ensureInitialized(FrameContexts.content);
@@ -7967,6 +8312,9 @@ var files;
7967
8312
  * Open download preference folder if fileObjectId value is undefined else open folder containing the file with id fileObjectId
7968
8313
  * @param fileObjectId - Id of the file whose containing folder should be opened
7969
8314
  * @param callback Callback that will be triggered post open download folder/path
8315
+ *
8316
+ * @internal
8317
+ * Limited to Microsoft-internal use
7970
8318
  */
7971
8319
  function openDownloadFolder(fileObjectId, callback) {
7972
8320
  if (fileObjectId === void 0) { fileObjectId = undefined; }
@@ -7986,6 +8334,9 @@ var files;
7986
8334
  * for selected 3P provider is performed on success of which the selected 3P provider support is added for user
7987
8335
  *
7988
8336
  * @param callback Callback that will be triggered post add 3P cloud storage provider action
8337
+ *
8338
+ * @internal
8339
+ * Limited to Microsoft-internal use
7989
8340
  */
7990
8341
  function addCloudStorageProvider(callback) {
7991
8342
  ensureInitialized(FrameContexts.content);
@@ -8005,6 +8356,9 @@ var files;
8005
8356
  *
8006
8357
  * @param logoutRequest 3P cloud storage provider remove action request content
8007
8358
  * @param callback Callback that will be triggered post signout of 3P cloud storage provider action
8359
+ *
8360
+ * @internal
8361
+ * Limited to Microsoft-internal use
8008
8362
  */
8009
8363
  function removeCloudStorageProvider(logoutRequest, callback) {
8010
8364
  ensureInitialized(FrameContexts.content);
@@ -8025,6 +8379,9 @@ var files;
8025
8379
  *
8026
8380
  * @param addNewFileRequest 3P cloud storage provider add action request content
8027
8381
  * @param callback Callback that will be triggered post adding a new file flow is finished
8382
+ *
8383
+ * @internal
8384
+ * Limited to Microsoft-internal use
8028
8385
  */
8029
8386
  function addCloudStorageProviderFile(addNewFileRequest, callback) {
8030
8387
  ensureInitialized(FrameContexts.content);
@@ -8045,6 +8402,9 @@ var files;
8045
8402
  *
8046
8403
  * @param renameFileRequest 3P cloud storage provider rename action request content
8047
8404
  * @param callback Callback that will be triggered post renaming an existing file flow is finished
8405
+ *
8406
+ * @internal
8407
+ * Limited to Microsoft-internal use
8048
8408
  */
8049
8409
  function renameCloudStorageProviderFile(renameFileRequest, callback) {
8050
8410
  ensureInitialized(FrameContexts.content);
@@ -8066,6 +8426,9 @@ var files;
8066
8426
  *
8067
8427
  * @param deleteFileRequest 3P cloud storage provider delete action request content
8068
8428
  * @param callback Callback that will be triggered post deleting existing file(s) flow is finished
8429
+ *
8430
+ * @internal
8431
+ * Limited to Microsoft-internal use
8069
8432
  */
8070
8433
  function deleteCloudStorageProviderFile(deleteFileRequest, callback) {
8071
8434
  ensureInitialized(FrameContexts.content);
@@ -8090,6 +8453,9 @@ var files;
8090
8453
  *
8091
8454
  * @param downloadFileRequest 3P cloud storage provider download file(s) action request content
8092
8455
  * @param callback Callback that will be triggered post downloading existing file(s) flow is finished
8456
+ *
8457
+ * @internal
8458
+ * Limited to Microsoft-internal use
8093
8459
  */
8094
8460
  function downloadCloudStorageProviderFile(downloadFileRequest, callback) {
8095
8461
  ensureInitialized(FrameContexts.content);
@@ -8113,6 +8479,9 @@ var files;
8113
8479
  *
8114
8480
  * @param uploadFileRequest 3P cloud storage provider upload file(s) action request content
8115
8481
  * @param callback Callback that will be triggered post uploading file(s) flow is finished
8482
+ *
8483
+ * @internal
8484
+ * Limited to Microsoft-internal use
8116
8485
  */
8117
8486
  function uploadCloudStorageProviderFile(uploadFileRequest, callback) {
8118
8487
  ensureInitialized(FrameContexts.content);
@@ -8144,6 +8513,7 @@ var files;
8144
8513
  *
8145
8514
  * @param handler - When 3P cloud storage provider list is updated this handler is called
8146
8515
  *
8516
+ * @internal Limited to Microsoft-internal use
8147
8517
  */
8148
8518
  function registerCloudStorageProviderListChangeHandler(handler) {
8149
8519
  ensureInitialized();
@@ -8162,6 +8532,8 @@ var files;
8162
8532
  *
8163
8533
  * @param handler - When 3P cloud storage provider content is updated this handler is called
8164
8534
  *
8535
+ * @internal
8536
+ * Limited to Microsoft-internal use
8165
8537
  */
8166
8538
  function registerCloudStorageProviderContentChangeHandler(handler) {
8167
8539
  ensureInitialized();
@@ -8186,15 +8558,22 @@ var files;
8186
8558
 
8187
8559
 
8188
8560
 
8561
+ /**
8562
+ * @hidden
8563
+ *
8564
+ * @internal
8565
+ * Limited to Microsoft-internal use
8566
+ */
8189
8567
  var meetingRoom;
8190
8568
  (function (meetingRoom) {
8191
8569
  /**
8192
8570
  * @hidden
8193
- * Hide from docs
8194
- * ------
8195
8571
  * Fetch the meeting room info that paired with current client.
8196
8572
  *
8197
8573
  * @returns Promise resolved with meeting room info or rejected with SdkError value
8574
+ *
8575
+ * @internal
8576
+ * Limited to Microsoft-internal use
8198
8577
  */
8199
8578
  function getPairedMeetingRoomInfo() {
8200
8579
  return new Promise(function (resolve) {
@@ -8208,12 +8587,13 @@ var meetingRoom;
8208
8587
  meetingRoom.getPairedMeetingRoomInfo = getPairedMeetingRoomInfo;
8209
8588
  /**
8210
8589
  * @hidden
8211
- * Hide from docs
8212
- * ------
8213
8590
  * Send a command to paired meeting room.
8214
8591
  *
8215
8592
  * @param commandName The command name.
8216
8593
  * @returns Promise resolved upon completion or rejected with SdkError value
8594
+ *
8595
+ * @internal
8596
+ * Limited to Microsoft-internal use
8217
8597
  */
8218
8598
  function sendCommandToPairedMeetingRoom(commandName) {
8219
8599
  return new Promise(function (resolve) {
@@ -8230,12 +8610,13 @@ var meetingRoom;
8230
8610
  meetingRoom.sendCommandToPairedMeetingRoom = sendCommandToPairedMeetingRoom;
8231
8611
  /**
8232
8612
  * @hidden
8233
- * Hide from docs
8234
- * ------
8235
8613
  * Registers a handler for meeting room capabilities update.
8236
8614
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
8237
8615
  *
8238
8616
  * @param handler The handler to invoke when the capabilities of meeting room update.
8617
+ *
8618
+ * @internal
8619
+ * Limited to Microsoft-internal use
8239
8620
  */
8240
8621
  function registerMeetingRoomCapabilitiesUpdateHandler(handler) {
8241
8622
  if (!handler) {
@@ -8258,6 +8639,9 @@ var meetingRoom;
8258
8639
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
8259
8640
  *
8260
8641
  * @param handler The handler to invoke when the states of meeting room update.
8642
+ *
8643
+ * @internal
8644
+ * Limited to Microsoft-internal use
8261
8645
  */
8262
8646
  function registerMeetingRoomStatesUpdateHandler(handler) {
8263
8647
  if (!handler) {
@@ -8273,6 +8657,14 @@ var meetingRoom;
8273
8657
  });
8274
8658
  }
8275
8659
  meetingRoom.registerMeetingRoomStatesUpdateHandler = registerMeetingRoomStatesUpdateHandler;
8660
+ /**
8661
+ * @hidden
8662
+ *
8663
+ * @returns boolean to represent whether the meetingRoom capability is supported
8664
+ *
8665
+ * @internal
8666
+ * Limited to Microsoft-internal use
8667
+ */
8276
8668
  function isSupported() {
8277
8669
  return runtime.supports.meetingRoom ? true : false;
8278
8670
  }
@@ -8288,14 +8680,13 @@ var notifications;
8288
8680
  (function (notifications) {
8289
8681
  /**
8290
8682
  * @hidden
8291
- * Hide from docs.
8292
- * ------
8293
8683
  * display notification API.
8294
8684
  *
8295
8685
  * @param message - Notification message.
8296
8686
  * @param notificationType - Notification type
8297
8687
  *
8298
8688
  * @internal
8689
+ * Limited to Microsoft-internal use
8299
8690
  */
8300
8691
  function showNotification(showNotificationParameters) {
8301
8692
  ensureInitialized(FrameContexts.content);
@@ -8305,6 +8696,13 @@ var notifications;
8305
8696
  sendMessageToParent('notifications.showNotification', [showNotificationParameters]);
8306
8697
  }
8307
8698
  notifications.showNotification = showNotification;
8699
+ /**
8700
+ * @hidden
8701
+ * @returns boolean to represent whether the notifications capability is supported
8702
+ *
8703
+ * @internal
8704
+ * Limited to Microsoft-internal use
8705
+ */
8308
8706
  function isSupported() {
8309
8707
  return runtime.supports.notifications ? true : false;
8310
8708
  }
@@ -8317,13 +8715,20 @@ var notifications;
8317
8715
 
8318
8716
 
8319
8717
 
8718
+ /**
8719
+ * @hidden
8720
+ *
8721
+ * @internal
8722
+ * Limited to Microsoft-internal use
8723
+ */
8320
8724
  var remoteCamera;
8321
8725
  (function (remoteCamera) {
8322
8726
  /**
8323
8727
  * @hidden
8324
- * Hide from docs
8325
- * ------
8326
8728
  * Enum used to indicate possible camera control commands.
8729
+ *
8730
+ * @internal
8731
+ * Limited to Microsoft-internal use
8327
8732
  */
8328
8733
  var ControlCommand;
8329
8734
  (function (ControlCommand) {
@@ -8337,9 +8742,10 @@ var remoteCamera;
8337
8742
  })(ControlCommand = remoteCamera.ControlCommand || (remoteCamera.ControlCommand = {}));
8338
8743
  /**
8339
8744
  * @hidden
8340
- * Hide from docs
8341
- * ------
8342
8745
  * Enum used to indicate the reason for the error.
8746
+ *
8747
+ * @internal
8748
+ * Limited to Microsoft-internal use
8343
8749
  */
8344
8750
  var ErrorReason;
8345
8751
  (function (ErrorReason) {
@@ -8354,9 +8760,10 @@ var remoteCamera;
8354
8760
  })(ErrorReason = remoteCamera.ErrorReason || (remoteCamera.ErrorReason = {}));
8355
8761
  /**
8356
8762
  * @hidden
8357
- * Hide from docs
8358
- * ------
8359
8763
  * Enum used to indicate the reason the session was terminated.
8764
+ *
8765
+ * @internal
8766
+ * Limited to Microsoft-internal use
8360
8767
  */
8361
8768
  var SessionTerminatedReason;
8362
8769
  (function (SessionTerminatedReason) {
@@ -8374,14 +8781,15 @@ var remoteCamera;
8374
8781
  })(SessionTerminatedReason = remoteCamera.SessionTerminatedReason || (remoteCamera.SessionTerminatedReason = {}));
8375
8782
  /**
8376
8783
  * @hidden
8377
- * Hide from docs
8378
- * ------
8379
8784
  * Fetch a list of the participants with controllable-cameras in a meeting.
8380
8785
  *
8381
8786
  * @param callback - Callback contains 2 parameters, error and participants.
8382
8787
  * error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
8383
8788
  * participants can either contain an array of Participant objects, incase of a successful fetch or null when it fails
8384
8789
  * participants: object that contains an array of participants with controllable-cameras
8790
+ *
8791
+ * @internal
8792
+ * Limited to Microsoft-internal use
8385
8793
  */
8386
8794
  function getCapableParticipants(callback) {
8387
8795
  if (!callback) {
@@ -8396,8 +8804,6 @@ var remoteCamera;
8396
8804
  remoteCamera.getCapableParticipants = getCapableParticipants;
8397
8805
  /**
8398
8806
  * @hidden
8399
- * Hide from docs
8400
- * ------
8401
8807
  * Request control of a participant's camera.
8402
8808
  *
8403
8809
  * @param participant - Participant specifies the participant to send the request for camera control.
@@ -8405,6 +8811,9 @@ var remoteCamera;
8405
8811
  * error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
8406
8812
  * requestResponse can either contain the true/false value, incase of a successful request or null when it fails
8407
8813
  * requestResponse: True means request was accepted and false means request was denied
8814
+ *
8815
+ * @internal
8816
+ * Limited to Microsoft-internal use
8408
8817
  */
8409
8818
  function requestControl(participant, callback) {
8410
8819
  if (!participant) {
@@ -8422,12 +8831,13 @@ var remoteCamera;
8422
8831
  remoteCamera.requestControl = requestControl;
8423
8832
  /**
8424
8833
  * @hidden
8425
- * Hide from docs
8426
- * ------
8427
8834
  * Send control command to the participant's camera.
8428
8835
  *
8429
8836
  * @param ControlCommand - ControlCommand specifies the command for controling the camera.
8430
8837
  * @param callback - Callback to invoke when the command response returns.
8838
+ *
8839
+ * @internal
8840
+ * Limited to Microsoft-internal use
8431
8841
  */
8432
8842
  function sendControlCommand(ControlCommand, callback) {
8433
8843
  if (!ControlCommand) {
@@ -8445,11 +8855,12 @@ var remoteCamera;
8445
8855
  remoteCamera.sendControlCommand = sendControlCommand;
8446
8856
  /**
8447
8857
  * @hidden
8448
- * Hide from docs
8449
- * ------
8450
8858
  * Terminate the remote session
8451
8859
  *
8452
8860
  * @param callback - Callback to invoke when the command response returns.
8861
+ *
8862
+ * @internal
8863
+ * Limited to Microsoft-internal use
8453
8864
  */
8454
8865
  function terminateSession(callback) {
8455
8866
  if (!callback) {
@@ -8468,6 +8879,9 @@ var remoteCamera;
8468
8879
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
8469
8880
  *
8470
8881
  * @param handler - The handler to invoke when the list of participants with controllable-cameras changes.
8882
+ *
8883
+ * @internal
8884
+ * Limited to Microsoft-internal use
8471
8885
  */
8472
8886
  function registerOnCapableParticipantsChangeHandler(handler) {
8473
8887
  if (!handler) {
@@ -8486,6 +8900,9 @@ var remoteCamera;
8486
8900
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
8487
8901
  *
8488
8902
  * @param handler - The handler to invoke when there is an error from the camera handler.
8903
+ *
8904
+ * @internal
8905
+ * Limited to Microsoft-internal use
8489
8906
  */
8490
8907
  function registerOnErrorHandler(handler) {
8491
8908
  if (!handler) {
@@ -8504,6 +8921,9 @@ var remoteCamera;
8504
8921
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
8505
8922
  *
8506
8923
  * @param handler - The handler to invoke when the controlled device changes state.
8924
+ *
8925
+ * @internal
8926
+ * Limited to Microsoft-internal use
8507
8927
  */
8508
8928
  function registerOnDeviceStateChangeHandler(handler) {
8509
8929
  if (!handler) {
@@ -8522,6 +8942,9 @@ var remoteCamera;
8522
8942
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
8523
8943
  *
8524
8944
  * @param handler - The handler to invoke when the current session status changes.
8945
+ *
8946
+ * @internal
8947
+ * Limited to Microsoft-internal use
8525
8948
  */
8526
8949
  function registerOnSessionStatusChangeHandler(handler) {
8527
8950
  if (!handler) {
@@ -8534,6 +8957,13 @@ var remoteCamera;
8534
8957
  registerHandler('remoteCamera.sessionStatusChange', handler);
8535
8958
  }
8536
8959
  remoteCamera.registerOnSessionStatusChangeHandler = registerOnSessionStatusChangeHandler;
8960
+ /**
8961
+ * @hidden
8962
+ * @returns boolean to represent whether the remoteCamera capability is supported
8963
+ *
8964
+ * @internal
8965
+ * Limited to Microsoft-internal use
8966
+ */
8537
8967
  function isSupported() {
8538
8968
  return runtime.supports.remoteCamera ? true : false;
8539
8969
  }
@@ -8549,6 +8979,9 @@ var remoteCamera;
8549
8979
  /**
8550
8980
  * @hidden
8551
8981
  * Namespace to interact with the application entities specific part of the SDK.
8982
+ *
8983
+ * @internal
8984
+ * Limited to Microsoft-internal use
8552
8985
  */
8553
8986
  var appEntity;
8554
8987
  (function (appEntity_1) {
@@ -8564,6 +8997,9 @@ var appEntity;
8564
8997
  * @param callback Callback that will be triggered once the app entity information is available.
8565
8998
  * The callback takes two arguments: an SdkError in case something happened (i.e.
8566
8999
  * no permissions to execute the API) and the app entity configuration, if available
9000
+ *
9001
+ * @internal
9002
+ * Limited to Microsoft-internal use
8567
9003
  */
8568
9004
  function selectAppEntity(threadId, categories, subEntityId, callback) {
8569
9005
  ensureInitialized(FrameContexts.content);
@@ -8580,9 +9016,14 @@ var appEntity;
8580
9016
  }
8581
9017
  appEntity_1.selectAppEntity = selectAppEntity;
8582
9018
  /**
9019
+ * @hidden
9020
+ *
8583
9021
  * Checks if appEntity capability is supported by the host
8584
9022
  * @returns true if the appEntity capability is enabled in runtime.supports.appEntity and
8585
9023
  * false if it is disabled
9024
+ *
9025
+ * @internal
9026
+ * Limited to Microsoft-internal use
8586
9027
  */
8587
9028
  function isSupported() {
8588
9029
  return runtime.supports.appEntity ? true : false;
@@ -8601,10 +9042,9 @@ var appEntity;
8601
9042
  /**
8602
9043
  * @hidden
8603
9044
  * Namespace to interact with the `teams` specific part of the SDK.
8604
- * ------
8605
- * Hide from docs
8606
9045
  *
8607
9046
  * @internal
9047
+ * Limited to Microsoft-internal use
8608
9048
  */
8609
9049
  var teams;
8610
9050
  (function (teams) {
@@ -8616,11 +9056,12 @@ var teams;
8616
9056
  })(ChannelType = teams.ChannelType || (teams.ChannelType = {}));
8617
9057
  /**
8618
9058
  * @hidden
8619
- * Hide from docs
8620
- * ------
8621
9059
  * Get a list of channels belong to a Team
8622
9060
  *
8623
9061
  * @param groupId - a team's objectId
9062
+ *
9063
+ * @internal
9064
+ * Limited to Microsoft-internal use
8624
9065
  */
8625
9066
  function getTeamChannels(groupId, callback) {
8626
9067
  ensureInitialized(FrameContexts.content);
@@ -8643,6 +9084,9 @@ var teams;
8643
9084
  *
8644
9085
  * @param threadId - ID of the thread where the app entity will be created; if threadId is not
8645
9086
  * provided, the threadId from route params will be used.
9087
+ *
9088
+ * @internal
9089
+ * Limited to Microsoft-internal use
8646
9090
  */
8647
9091
  function refreshSiteUrl(threadId, callback) {
8648
9092
  ensureInitialized();
@@ -8664,6 +9108,9 @@ var teams;
8664
9108
  *
8665
9109
  * @returns true if the teams capability is enabled in runtime.supports.teams and
8666
9110
  * false if it is disabled
9111
+ *
9112
+ * @internal
9113
+ * Limited to Microsoft-internal use
8667
9114
  */
8668
9115
  function isSupported() {
8669
9116
  return runtime.supports.teams ? true : false;
@@ -8671,23 +9118,27 @@ var teams;
8671
9118
  teams.isSupported = isSupported;
8672
9119
  /**
8673
9120
  * @hidden
8674
- * Hide from docs
8675
- * ------
8676
- *
8677
9121
  * @internal
9122
+ * Limited to Microsoft-internal use
8678
9123
  */
8679
9124
  var fullTrust;
8680
9125
  (function (fullTrust) {
9126
+ /**
9127
+ * @hidden
9128
+ * @internal
9129
+ * Limited to Microsoft-internal use
9130
+ */
8681
9131
  var joinedTeams;
8682
9132
  (function (joinedTeams) {
8683
9133
  /**
8684
9134
  * @hidden
8685
- * Hide from docs
8686
- * ------
8687
9135
  * Allows an app to retrieve information of all user joined teams
8688
9136
  *
8689
9137
  * @param teamInstanceParameters - Optional flags that specify whether to scope call to favorite teams
8690
9138
  * @returns Promise that resolves with information about the user joined teams or rejects with an error when the operation has completed
9139
+ *
9140
+ * @internal
9141
+ * Limited to Microsoft-internal use
8691
9142
  */
8692
9143
  function getUserJoinedTeams(teamInstanceParameters) {
8693
9144
  return new Promise(function (resolve) {
@@ -8709,12 +9160,13 @@ var teams;
8709
9160
  joinedTeams.getUserJoinedTeams = getUserJoinedTeams;
8710
9161
  /**
8711
9162
  * @hidden
8712
- * Hide from docs
8713
- * ------
8714
9163
  * Checks if teams.fullTrust.joinedTeams capability is supported by the host
8715
9164
  *
8716
9165
  * @returns true if the teams.fullTrust.joinedTeams capability is enabled in
8717
9166
  * runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
9167
+ *
9168
+ * @internal
9169
+ * Limited to Microsoft-internal use
8718
9170
  */
8719
9171
  function isSupported() {
8720
9172
  return runtime.supports.teams
@@ -8729,12 +9181,13 @@ var teams;
8729
9181
  })(joinedTeams = fullTrust.joinedTeams || (fullTrust.joinedTeams = {}));
8730
9182
  /**
8731
9183
  * @hidden
8732
- * Hide from docs
8733
- * ------
8734
9184
  * Allows an app to get the configuration setting value
8735
9185
  *
8736
9186
  * @param key - The key for the config setting
8737
9187
  * @returns Promise that resolves with the value for the provided configuration setting or rejects with an error when the operation has completed
9188
+ *
9189
+ * @internal
9190
+ * Limited to Microsoft-internal use
8738
9191
  */
8739
9192
  function getConfigSetting(key) {
8740
9193
  return new Promise(function (resolve) {
@@ -8748,11 +9201,12 @@ var teams;
8748
9201
  fullTrust.getConfigSetting = getConfigSetting;
8749
9202
  /**
8750
9203
  * @hidden
8751
- * Hide from docs
8752
- * ------
8753
9204
  * Checks if teams.fullTrust capability is supported by the host
8754
9205
  * @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
8755
9206
  * false if it is disabled
9207
+ *
9208
+ * @internal
9209
+ * Limited to Microsoft-internal use
8756
9210
  */
8757
9211
  function isSupported() {
8758
9212
  return runtime.supports.teams ? (runtime.supports.teams.fullTrust ? true : false) : false;