@microsoft/teams-js 2.19.1-beta.0 → 2.20.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/MicrosoftTeams.d.ts +67 -63
- package/dist/MicrosoftTeams.js +648 -253
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -276,14 +276,6 @@ export interface UserJoinedTeamsInformation {
|
|
276
276
|
userJoinedTeams: TeamInformation[];
|
277
277
|
}
|
278
278
|
|
279
|
-
/**
|
280
|
-
* @hidden
|
281
|
-
* Upload a custom App manifest directly to both team and personal scopes.
|
282
|
-
* This method works just for the first party Apps.
|
283
|
-
*
|
284
|
-
* @internal
|
285
|
-
* Limited to Microsoft-internal use
|
286
|
-
*/
|
287
279
|
export function uploadCustomApp(manifestBlob: Blob, onComplete?: (status: boolean, reason?: string) => void): void;
|
288
280
|
/**
|
289
281
|
* @hidden
|
@@ -1393,7 +1385,9 @@ export namespace files {
|
|
1393
1385
|
* @hidden
|
1394
1386
|
* Hide from docs
|
1395
1387
|
*
|
1396
|
-
* Gets a list of cloud storage folders added to the channel
|
1388
|
+
* Gets a list of cloud storage folders added to the channel. This function will not timeout;
|
1389
|
+
* the callback will only return when the host responds with a list of folders or error.
|
1390
|
+
*
|
1397
1391
|
* @param channelId - ID of the channel whose cloud storage folders should be retrieved
|
1398
1392
|
* @param callback - Callback that will be triggered post folders load
|
1399
1393
|
*
|
@@ -1861,12 +1855,6 @@ export namespace notifications {
|
|
1861
1855
|
function isSupported(): boolean;
|
1862
1856
|
}
|
1863
1857
|
|
1864
|
-
/**
|
1865
|
-
* @hidden
|
1866
|
-
*
|
1867
|
-
* @internal
|
1868
|
-
* Limited to Microsoft-internal use
|
1869
|
-
*/
|
1870
1858
|
export namespace remoteCamera {
|
1871
1859
|
/**
|
1872
1860
|
* @hidden
|
@@ -2254,13 +2242,6 @@ export namespace appEntity {
|
|
2254
2242
|
function isSupported(): boolean;
|
2255
2243
|
}
|
2256
2244
|
|
2257
|
-
/**
|
2258
|
-
* @hidden
|
2259
|
-
* Namespace to interact with the `teams` specific part of the SDK.
|
2260
|
-
*
|
2261
|
-
* @internal
|
2262
|
-
* Limited to Microsoft-internal use
|
2263
|
-
*/
|
2264
2245
|
export namespace teams {
|
2265
2246
|
enum ChannelType {
|
2266
2247
|
Regular = 0,
|
@@ -2376,14 +2357,6 @@ export namespace teams {
|
|
2376
2357
|
}
|
2377
2358
|
}
|
2378
2359
|
|
2379
|
-
/**
|
2380
|
-
* @hidden
|
2381
|
-
* Extended video API
|
2382
|
-
* @beta
|
2383
|
-
*
|
2384
|
-
* @internal
|
2385
|
-
* Limited to Microsoft-internal use
|
2386
|
-
*/
|
2387
2360
|
export namespace videoEffectsEx {
|
2388
2361
|
const frameProcessingTimeoutInMs = 2000;
|
2389
2362
|
/**
|
@@ -2649,10 +2622,10 @@ export namespace authentication {
|
|
2649
2622
|
* @param authenticateParameters - Parameters describing the authentication window used for executing the authentication flow
|
2650
2623
|
*
|
2651
2624
|
* @returns `Promise` that will be fulfilled with the result from the authentication pop-up, if successful. The string in this result is provided in the parameter
|
2652
|
-
* passed by your app when it calls {@link notifySuccess} in the pop-up window after returning from the identity provider redirect.
|
2625
|
+
* passed by your app when it calls {@link authentication.notifySuccess authentication.notifySuccess(result?: string): void} in the pop-up window after returning from the identity provider redirect.
|
2653
2626
|
*
|
2654
2627
|
* @throws `Error` if the authentication request fails or is canceled by the user. This error is provided in the parameter passed by your app when it calls
|
2655
|
-
* {@link notifyFailure} in the pop-up window after returning from the identity provider redirect. However, in some cases it can also be provided by
|
2628
|
+
* {@link authentication.notifyFailure authentication.notifyFailure(result?: string): void} in the pop-up window after returning from the identity provider redirect. However, in some cases it can also be provided by
|
2656
2629
|
* the infrastructure depending on the failure (e.g., a user cancelation)
|
2657
2630
|
*
|
2658
2631
|
*/
|
@@ -2730,9 +2703,8 @@ export namespace authentication {
|
|
2730
2703
|
*
|
2731
2704
|
* @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
|
2732
2705
|
* this value in its callback or via the `Promise` return value
|
2733
|
-
* @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
|
2734
2706
|
*/
|
2735
|
-
function notifySuccess(result?: string
|
2707
|
+
function notifySuccess(result?: string): void;
|
2736
2708
|
/**
|
2737
2709
|
* When using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}, the
|
2738
2710
|
* window that was opened to execute the authentication flow should call this method after authentiction to notify the caller of
|
@@ -2746,9 +2718,9 @@ export namespace authentication {
|
|
2746
2718
|
*
|
2747
2719
|
* @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
|
2748
2720
|
* this value in its callback or via the `Promise` return value
|
2749
|
-
* @param
|
2721
|
+
* @param _callbackUrl - This parameter is deprecated and unused
|
2750
2722
|
*/
|
2751
|
-
function notifyFailure(
|
2723
|
+
function notifyFailure(result?: string): void;
|
2752
2724
|
/**
|
2753
2725
|
* @deprecated
|
2754
2726
|
* As of 2.0.0, this interface has been deprecated in favor of leveraging the `Promise` returned from {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}
|
@@ -2824,6 +2796,10 @@ export namespace authentication {
|
|
2824
2796
|
* An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
|
2825
2797
|
*/
|
2826
2798
|
silent?: boolean;
|
2799
|
+
/**
|
2800
|
+
* An optional identifier of the home tenant for which to acquire the acess token for (used in cross-tenant shared channels).
|
2801
|
+
*/
|
2802
|
+
tenantId?: string;
|
2827
2803
|
}
|
2828
2804
|
/**
|
2829
2805
|
* @deprecated
|
@@ -4995,35 +4971,55 @@ export namespace dialog {
|
|
4995
4971
|
*/
|
4996
4972
|
function submit(result?: string | object, appIds?: string | string[]): void;
|
4997
4973
|
/**
|
4998
|
-
*
|
4974
|
+
* Subcapability that allows communication between the dialog and the parent app.
|
4999
4975
|
*
|
5000
4976
|
* @remarks
|
5001
|
-
*
|
5002
|
-
*
|
5003
|
-
* @param message - The message to send to the parent
|
4977
|
+
* Note that dialog can be invoked from parentless scenarios e.g. Search Message Extensions. The subcapability `parentCommunication` is not supported in such scenarios.
|
5004
4978
|
*
|
5005
4979
|
* @beta
|
5006
4980
|
*/
|
5007
|
-
|
5008
|
-
|
5009
|
-
|
5010
|
-
|
5011
|
-
|
5012
|
-
|
5013
|
-
|
5014
|
-
|
5015
|
-
|
5016
|
-
|
5017
|
-
|
5018
|
-
|
5019
|
-
|
5020
|
-
|
5021
|
-
|
5022
|
-
|
5023
|
-
|
5024
|
-
|
5025
|
-
|
5026
|
-
|
4981
|
+
namespace parentCommunication {
|
4982
|
+
/**
|
4983
|
+
* Send message to the parent from dialog
|
4984
|
+
*
|
4985
|
+
* @remarks
|
4986
|
+
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
4987
|
+
*
|
4988
|
+
* @param message - The message to send to the parent
|
4989
|
+
*
|
4990
|
+
* @beta
|
4991
|
+
*/
|
4992
|
+
function sendMessageToParentFromDialog(message: any): void;
|
4993
|
+
/**
|
4994
|
+
* Send message to the dialog from the parent
|
4995
|
+
*
|
4996
|
+
* @param message - The message to send
|
4997
|
+
*
|
4998
|
+
* @beta
|
4999
|
+
*/
|
5000
|
+
function sendMessageToDialog(message: any): void;
|
5001
|
+
/**
|
5002
|
+
* Register a listener that will be triggered when a message is received from the app that opened the dialog.
|
5003
|
+
*
|
5004
|
+
* @remarks
|
5005
|
+
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
5006
|
+
*
|
5007
|
+
* @param listener - The listener that will be triggered.
|
5008
|
+
*
|
5009
|
+
* @beta
|
5010
|
+
*/
|
5011
|
+
function registerOnMessageFromParent(listener: PostMessageChannel): void;
|
5012
|
+
/**
|
5013
|
+
* Checks if dialog.url.parentCommunication capability is supported by the host
|
5014
|
+
*
|
5015
|
+
* @returns boolean to represent whether dialog.url.parentCommunication capability is supported
|
5016
|
+
*
|
5017
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
5018
|
+
*
|
5019
|
+
* @beta
|
5020
|
+
*/
|
5021
|
+
function isSupported(): boolean;
|
5022
|
+
}
|
5027
5023
|
/**
|
5028
5024
|
* Checks if dialog.url module is supported by the host
|
5029
5025
|
*
|
@@ -5285,6 +5281,9 @@ export function getTabInstancesHelper(apiVersionTag: string, tabInstanceParamete
|
|
5285
5281
|
export function getMruTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
5286
5282
|
export function shareDeepLinkHelper(apiVersionTag: string, deepLinkParameters: ShareDeepLinkParameters): void;
|
5287
5283
|
export function setCurrentFrameHelper(apiVersionTag: string, frameInfo: FrameInfo): void;
|
5284
|
+
export function configSetValidityStateHelper(apiVersionTag: string, validityState: boolean): void;
|
5285
|
+
export function getConfigHelper(apiVersionTag: string): Promise<pages.InstanceConfig>;
|
5286
|
+
export function configSetConfigHelper(apiVersionTag: string, instanceConfig: pages.InstanceConfig): Promise<void>;
|
5288
5287
|
/**
|
5289
5288
|
* Navigation-specific part of the SDK.
|
5290
5289
|
*/
|
@@ -5510,10 +5509,11 @@ export namespace pages {
|
|
5510
5509
|
* @internal
|
5511
5510
|
* Limited to Microsoft-internal use
|
5512
5511
|
*
|
5512
|
+
* @param apiVersionTag - The API version tag, which is used for telemetry, composed by API version number and source API name.
|
5513
5513
|
* @param handler - The handler to invoke when the user selects the Save button.
|
5514
5514
|
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
5515
5515
|
*/
|
5516
|
-
function registerOnSaveHandlerHelper(handler: (evt: SaveEvent) => void, versionSpecificHelper?: () => void): void;
|
5516
|
+
function registerOnSaveHandlerHelper(apiVersionTag: string, handler: (evt: SaveEvent) => void, versionSpecificHelper?: () => void): void;
|
5517
5517
|
/**
|
5518
5518
|
* Registers a handler for user attempts to remove content. This handler should be used
|
5519
5519
|
* to remove the underlying resource powering the content.
|
@@ -5529,10 +5529,11 @@ export namespace pages {
|
|
5529
5529
|
* @internal
|
5530
5530
|
* Limited to Microsoft-internal use
|
5531
5531
|
*
|
5532
|
+
* @param apiVersionTag - The API version tag, which is used for telemetry, composed by API version number and source API name.
|
5532
5533
|
* @param handler - The handler to invoke when the user selects the Remove button.
|
5533
5534
|
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
5534
5535
|
*/
|
5535
|
-
function registerOnRemoveHandlerHelper(handler: (evt: RemoveEvent) => void, versionSpecificHelper?: () => void): void;
|
5536
|
+
function registerOnRemoveHandlerHelper(apiVersionTag: string, handler: (evt: RemoveEvent) => void, versionSpecificHelper?: () => void): void;
|
5536
5537
|
/**
|
5537
5538
|
* Registers a handler for when the tab configuration is changed by the user
|
5538
5539
|
* @param handler - The handler to invoke when the user clicks on Settings.
|
@@ -5638,6 +5639,8 @@ export namespace pages {
|
|
5638
5639
|
* Hide from docs
|
5639
5640
|
* ------
|
5640
5641
|
* Provides APIs to interact with the full-trust part of the SDK. Limited to 1P applications
|
5642
|
+
* @internal
|
5643
|
+
* Limited to Microsoft-internal use
|
5641
5644
|
*/
|
5642
5645
|
namespace fullTrust {
|
5643
5646
|
/**
|
@@ -5645,6 +5648,7 @@ export namespace pages {
|
|
5645
5648
|
* Hide from docs
|
5646
5649
|
* ------
|
5647
5650
|
* Place the tab into full-screen mode.
|
5651
|
+
*
|
5648
5652
|
*/
|
5649
5653
|
function enterFullscreen(): void;
|
5650
5654
|
/**
|
@@ -9713,7 +9717,7 @@ export { VideoEffectCallBack as DefaultVideoEffectCallBack };
|
|
9713
9717
|
* This class is used to monitor the performance of video processing, and report performance events.
|
9714
9718
|
*/
|
9715
9719
|
export class VideoPerformanceMonitor {
|
9716
|
-
constructor(reportPerformanceEvent: (actionName: string, args: unknown[]) => void);
|
9720
|
+
constructor(reportPerformanceEvent: (apiVersionTag: string, actionName: string, args: unknown[]) => void);
|
9717
9721
|
/**
|
9718
9722
|
* Start to check frame processing time intervally
|
9719
9723
|
* and report performance event if the average frame processing time is too long.
|