@microsoft/teams-js 2.19.0 → 2.20.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/MicrosoftTeams.d.ts +77 -104
- package/dist/MicrosoftTeams.js +850 -352
- 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 -35
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -1,13 +1,5 @@
|
|
1
1
|
// Generated by dts-bundle v0.7.3
|
2
2
|
|
3
|
-
/**
|
4
|
-
* @hidden
|
5
|
-
* Namespace to interact with the logging part of the SDK.
|
6
|
-
* This object is used to send the app logs on demand to the host client
|
7
|
-
*
|
8
|
-
* @internal
|
9
|
-
* Limited to Microsoft-internal use
|
10
|
-
*/
|
11
3
|
export namespace logs {
|
12
4
|
/**
|
13
5
|
* @hidden
|
@@ -352,12 +344,6 @@ export function registerUserSettingsChangeHandler(settingTypes: UserSettingTypes
|
|
352
344
|
*/
|
353
345
|
export function openFilePreview(filePreviewParameters: FilePreviewParameters): void;
|
354
346
|
|
355
|
-
/**
|
356
|
-
* @hidden
|
357
|
-
*
|
358
|
-
* @internal
|
359
|
-
* Limited to Microsoft-internal use
|
360
|
-
*/
|
361
347
|
export interface OpenConversationRequest {
|
362
348
|
/**
|
363
349
|
* @hidden
|
@@ -889,14 +875,6 @@ export namespace externalAppCardActions {
|
|
889
875
|
function isSupported(): boolean;
|
890
876
|
}
|
891
877
|
|
892
|
-
/**
|
893
|
-
* @hidden
|
894
|
-
*
|
895
|
-
* Namespace to interact with the files specific part of the SDK.
|
896
|
-
*
|
897
|
-
* @internal
|
898
|
-
* Limited to Microsoft-internal use
|
899
|
-
*/
|
900
878
|
export namespace files {
|
901
879
|
/**
|
902
880
|
* @hidden
|
@@ -1415,7 +1393,9 @@ export namespace files {
|
|
1415
1393
|
* @hidden
|
1416
1394
|
* Hide from docs
|
1417
1395
|
*
|
1418
|
-
* Gets a list of cloud storage folders added to the channel
|
1396
|
+
* Gets a list of cloud storage folders added to the channel. This function will not timeout;
|
1397
|
+
* the callback will only return when the host responds with a list of folders or error.
|
1398
|
+
*
|
1419
1399
|
* @param channelId - ID of the channel whose cloud storage folders should be retrieved
|
1420
1400
|
* @param callback - Callback that will be triggered post folders load
|
1421
1401
|
*
|
@@ -1653,12 +1633,6 @@ export namespace files {
|
|
1653
1633
|
export {};
|
1654
1634
|
}
|
1655
1635
|
|
1656
|
-
/**
|
1657
|
-
* @hidden
|
1658
|
-
*
|
1659
|
-
* @internal
|
1660
|
-
* Limited to Microsoft-internal use
|
1661
|
-
*/
|
1662
1636
|
export namespace meetingRoom {
|
1663
1637
|
/**
|
1664
1638
|
* @hidden
|
@@ -1863,13 +1837,6 @@ export namespace meetingRoom {
|
|
1863
1837
|
export {};
|
1864
1838
|
}
|
1865
1839
|
|
1866
|
-
/**
|
1867
|
-
* @hidden
|
1868
|
-
* Hidden from Docs
|
1869
|
-
*
|
1870
|
-
* @internal
|
1871
|
-
* Limited to Microsoft-internal use
|
1872
|
-
*/
|
1873
1840
|
export namespace notifications {
|
1874
1841
|
/**
|
1875
1842
|
* @hidden
|
@@ -2684,10 +2651,10 @@ export namespace authentication {
|
|
2684
2651
|
* @param authenticateParameters - Parameters describing the authentication window used for executing the authentication flow
|
2685
2652
|
*
|
2686
2653
|
* @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
|
2687
|
-
* passed by your app when it calls {@link notifySuccess} in the pop-up window after returning from the identity provider redirect.
|
2654
|
+
* 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.
|
2688
2655
|
*
|
2689
2656
|
* @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
|
2690
|
-
* {@link notifyFailure} in the pop-up window after returning from the identity provider redirect. However, in some cases it can also be provided by
|
2657
|
+
* {@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
|
2691
2658
|
* the infrastructure depending on the failure (e.g., a user cancelation)
|
2692
2659
|
*
|
2693
2660
|
*/
|
@@ -2765,9 +2732,8 @@ export namespace authentication {
|
|
2765
2732
|
*
|
2766
2733
|
* @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
|
2767
2734
|
* this value in its callback or via the `Promise` return value
|
2768
|
-
* @param callbackUrl - Specifies the url to redirect back to if the client is Win32 Outlook.
|
2769
2735
|
*/
|
2770
|
-
function notifySuccess(result?: string
|
2736
|
+
function notifySuccess(result?: string): void;
|
2771
2737
|
/**
|
2772
2738
|
* When using {@link authentication.authenticate authentication.authenticate(authenticateParameters: AuthenticatePopUpParameters): Promise\<string\>}, the
|
2773
2739
|
* window that was opened to execute the authentication flow should call this method after authentiction to notify the caller of
|
@@ -2781,9 +2747,9 @@ export namespace authentication {
|
|
2781
2747
|
*
|
2782
2748
|
* @param result - Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives
|
2783
2749
|
* this value in its callback or via the `Promise` return value
|
2784
|
-
* @param
|
2750
|
+
* @param _callbackUrl - This parameter is deprecated and unused
|
2785
2751
|
*/
|
2786
|
-
function notifyFailure(
|
2752
|
+
function notifyFailure(result?: string): void;
|
2787
2753
|
/**
|
2788
2754
|
* @deprecated
|
2789
2755
|
* 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\>}
|
@@ -2859,6 +2825,10 @@ export namespace authentication {
|
|
2859
2825
|
* An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
|
2860
2826
|
*/
|
2861
2827
|
silent?: boolean;
|
2828
|
+
/**
|
2829
|
+
* An optional identifier of the home tenant for which to acquire the acess token for (used in cross-tenant shared channels).
|
2830
|
+
*/
|
2831
|
+
tenantId?: string;
|
2862
2832
|
}
|
2863
2833
|
/**
|
2864
2834
|
* @deprecated
|
@@ -4823,11 +4793,6 @@ export namespace barCode {
|
|
4823
4793
|
function isSupported(): boolean;
|
4824
4794
|
}
|
4825
4795
|
|
4826
|
-
/**
|
4827
|
-
* Describes information needed to start a chat
|
4828
|
-
*
|
4829
|
-
* @beta
|
4830
|
-
*/
|
4831
4796
|
interface OpenChatRequest {
|
4832
4797
|
/**
|
4833
4798
|
* An optional message used when initiating chat
|
@@ -5035,35 +5000,55 @@ export namespace dialog {
|
|
5035
5000
|
*/
|
5036
5001
|
function submit(result?: string | object, appIds?: string | string[]): void;
|
5037
5002
|
/**
|
5038
|
-
*
|
5003
|
+
* Subcapability that allows communication between the dialog and the parent app.
|
5039
5004
|
*
|
5040
5005
|
* @remarks
|
5041
|
-
*
|
5042
|
-
*
|
5043
|
-
* @param message - The message to send to the parent
|
5006
|
+
* Note that dialog can be invoked from parentless scenarios e.g. Search Message Extensions. The subcapability `parentCommunication` is not supported in such scenarios.
|
5044
5007
|
*
|
5045
5008
|
* @beta
|
5046
5009
|
*/
|
5047
|
-
|
5048
|
-
|
5049
|
-
|
5050
|
-
|
5051
|
-
|
5052
|
-
|
5053
|
-
|
5054
|
-
|
5055
|
-
|
5056
|
-
|
5057
|
-
|
5058
|
-
|
5059
|
-
|
5060
|
-
|
5061
|
-
|
5062
|
-
|
5063
|
-
|
5064
|
-
|
5065
|
-
|
5066
|
-
|
5010
|
+
namespace parentCommunication {
|
5011
|
+
/**
|
5012
|
+
* Send message to the parent from dialog
|
5013
|
+
*
|
5014
|
+
* @remarks
|
5015
|
+
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
5016
|
+
*
|
5017
|
+
* @param message - The message to send to the parent
|
5018
|
+
*
|
5019
|
+
* @beta
|
5020
|
+
*/
|
5021
|
+
function sendMessageToParentFromDialog(message: any): void;
|
5022
|
+
/**
|
5023
|
+
* Send message to the dialog from the parent
|
5024
|
+
*
|
5025
|
+
* @param message - The message to send
|
5026
|
+
*
|
5027
|
+
* @beta
|
5028
|
+
*/
|
5029
|
+
function sendMessageToDialog(message: any): void;
|
5030
|
+
/**
|
5031
|
+
* Register a listener that will be triggered when a message is received from the app that opened the dialog.
|
5032
|
+
*
|
5033
|
+
* @remarks
|
5034
|
+
* This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
|
5035
|
+
*
|
5036
|
+
* @param listener - The listener that will be triggered.
|
5037
|
+
*
|
5038
|
+
* @beta
|
5039
|
+
*/
|
5040
|
+
function registerOnMessageFromParent(listener: PostMessageChannel): void;
|
5041
|
+
/**
|
5042
|
+
* Checks if dialog.url.parentCommunication capability is supported by the host
|
5043
|
+
*
|
5044
|
+
* @returns boolean to represent whether dialog.url.parentCommunication capability is supported
|
5045
|
+
*
|
5046
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
5047
|
+
*
|
5048
|
+
* @beta
|
5049
|
+
*/
|
5050
|
+
function isSupported(): boolean;
|
5051
|
+
}
|
5067
5052
|
/**
|
5068
5053
|
* Checks if dialog.url module is supported by the host
|
5069
5054
|
*
|
@@ -5325,6 +5310,9 @@ export function getTabInstancesHelper(apiVersionTag: string, tabInstanceParamete
|
|
5325
5310
|
export function getMruTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
5326
5311
|
export function shareDeepLinkHelper(apiVersionTag: string, deepLinkParameters: ShareDeepLinkParameters): void;
|
5327
5312
|
export function setCurrentFrameHelper(apiVersionTag: string, frameInfo: FrameInfo): void;
|
5313
|
+
export function configSetValidityStateHelper(apiVersionTag: string, validityState: boolean): void;
|
5314
|
+
export function getConfigHelper(apiVersionTag: string): Promise<pages.InstanceConfig>;
|
5315
|
+
export function configSetConfigHelper(apiVersionTag: string, instanceConfig: pages.InstanceConfig): Promise<void>;
|
5328
5316
|
/**
|
5329
5317
|
* Navigation-specific part of the SDK.
|
5330
5318
|
*/
|
@@ -5550,10 +5538,11 @@ export namespace pages {
|
|
5550
5538
|
* @internal
|
5551
5539
|
* Limited to Microsoft-internal use
|
5552
5540
|
*
|
5541
|
+
* @param apiVersionTag - The API version tag, which is used for telemetry, composed by API version number and source API name.
|
5553
5542
|
* @param handler - The handler to invoke when the user selects the Save button.
|
5554
5543
|
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
5555
5544
|
*/
|
5556
|
-
function registerOnSaveHandlerHelper(handler: (evt: SaveEvent) => void, versionSpecificHelper?: () => void): void;
|
5545
|
+
function registerOnSaveHandlerHelper(apiVersionTag: string, handler: (evt: SaveEvent) => void, versionSpecificHelper?: () => void): void;
|
5557
5546
|
/**
|
5558
5547
|
* Registers a handler for user attempts to remove content. This handler should be used
|
5559
5548
|
* to remove the underlying resource powering the content.
|
@@ -5569,10 +5558,11 @@ export namespace pages {
|
|
5569
5558
|
* @internal
|
5570
5559
|
* Limited to Microsoft-internal use
|
5571
5560
|
*
|
5561
|
+
* @param apiVersionTag - The API version tag, which is used for telemetry, composed by API version number and source API name.
|
5572
5562
|
* @param handler - The handler to invoke when the user selects the Remove button.
|
5573
5563
|
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
5574
5564
|
*/
|
5575
|
-
function registerOnRemoveHandlerHelper(handler: (evt: RemoveEvent) => void, versionSpecificHelper?: () => void): void;
|
5565
|
+
function registerOnRemoveHandlerHelper(apiVersionTag: string, handler: (evt: RemoveEvent) => void, versionSpecificHelper?: () => void): void;
|
5576
5566
|
/**
|
5577
5567
|
* Registers a handler for when the tab configuration is changed by the user
|
5578
5568
|
* @param handler - The handler to invoke when the user clicks on Settings.
|
@@ -5678,6 +5668,8 @@ export namespace pages {
|
|
5678
5668
|
* Hide from docs
|
5679
5669
|
* ------
|
5680
5670
|
* Provides APIs to interact with the full-trust part of the SDK. Limited to 1P applications
|
5671
|
+
* @internal
|
5672
|
+
* Limited to Microsoft-internal use
|
5681
5673
|
*/
|
5682
5674
|
namespace fullTrust {
|
5683
5675
|
/**
|
@@ -5685,6 +5677,7 @@ export namespace pages {
|
|
5685
5677
|
* Hide from docs
|
5686
5678
|
* ------
|
5687
5679
|
* Place the tab into full-screen mode.
|
5680
|
+
*
|
5688
5681
|
*/
|
5689
5682
|
function enterFullscreen(): void;
|
5690
5683
|
/**
|
@@ -7362,13 +7355,6 @@ export namespace meeting {
|
|
7362
7355
|
function updateMicState(micState: MicState): void;
|
7363
7356
|
}
|
7364
7357
|
|
7365
|
-
/**
|
7366
|
-
* @hidden
|
7367
|
-
* Hidden from Docs
|
7368
|
-
*
|
7369
|
-
* @internal
|
7370
|
-
* Limited to Microsoft-internal use
|
7371
|
-
*/
|
7372
7358
|
export namespace monetization {
|
7373
7359
|
/**
|
7374
7360
|
* @hidden
|
@@ -7645,9 +7631,6 @@ export namespace teamsCore {
|
|
7645
7631
|
function isSupported(): boolean;
|
7646
7632
|
}
|
7647
7633
|
|
7648
|
-
/**
|
7649
|
-
* Allows your app to add a people picker enabling users to search for and select people in their organization.
|
7650
|
-
*/
|
7651
7634
|
export namespace people {
|
7652
7635
|
/** Select people callback function type */
|
7653
7636
|
type selectPeopleCallbackFunctionType = (error: SdkError, people: PeoplePickerResult[]) => void;
|
@@ -8661,6 +8644,16 @@ export namespace appInitialization {
|
|
8661
8644
|
* @beta
|
8662
8645
|
*/
|
8663
8646
|
export namespace thirdPartyCloudStorage {
|
8647
|
+
/**
|
8648
|
+
* Interface to assemble file chunks
|
8649
|
+
* @beta
|
8650
|
+
*/
|
8651
|
+
interface AssembleAttachment {
|
8652
|
+
/** A number representing the sequence of the attachment in the file chunks. */
|
8653
|
+
sequence: number;
|
8654
|
+
/** A Blob object representing the data of the file chunks. */
|
8655
|
+
file: Blob;
|
8656
|
+
}
|
8664
8657
|
/**
|
8665
8658
|
* Object used to represent a file
|
8666
8659
|
* @beta
|
@@ -8732,26 +8725,6 @@ export namespace thirdPartyCloudStorage {
|
|
8732
8725
|
*/
|
8733
8726
|
fileName: string;
|
8734
8727
|
}
|
8735
|
-
/**
|
8736
|
-
* Interface to assemble file chunks
|
8737
|
-
* @beta
|
8738
|
-
*/
|
8739
|
-
interface AssembleAttachment {
|
8740
|
-
/** A number representing the sequence of the attachment in the file chunks. */
|
8741
|
-
sequence: number;
|
8742
|
-
/** A Blob object representing the data of the file chunks. */
|
8743
|
-
file: Blob;
|
8744
|
-
}
|
8745
|
-
/**
|
8746
|
-
* Interface to assemble files
|
8747
|
-
* @beta
|
8748
|
-
*/
|
8749
|
-
interface AttachmentListHelper {
|
8750
|
-
/** A string representing the MIME type of the file */
|
8751
|
-
fileType: string;
|
8752
|
-
/** An array of {@link AssembleAttachment | AssembleAttachment} objects representing files to be sent as attachment */
|
8753
|
-
assembleAttachment: AssembleAttachment[];
|
8754
|
-
}
|
8755
8728
|
/**
|
8756
8729
|
* Defines the callback function received from Third Party App
|
8757
8730
|
* @beta
|
@@ -9773,7 +9746,7 @@ export { VideoEffectCallBack as DefaultVideoEffectCallBack };
|
|
9773
9746
|
* This class is used to monitor the performance of video processing, and report performance events.
|
9774
9747
|
*/
|
9775
9748
|
export class VideoPerformanceMonitor {
|
9776
|
-
constructor(reportPerformanceEvent: (actionName: string, args: unknown[]) => void);
|
9749
|
+
constructor(reportPerformanceEvent: (apiVersionTag: string, actionName: string, args: unknown[]) => void);
|
9777
9750
|
/**
|
9778
9751
|
* Start to check frame processing time intervally
|
9779
9752
|
* and report performance event if the average frame processing time is too long.
|