@microsoft/teams-js 2.23.0-beta.0 → 2.23.0-beta.1
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.
- package/dist/MicrosoftTeams.d.ts +157 -54
- package/dist/MicrosoftTeams.js +531 -61
- 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
@@ -61,7 +61,7 @@ export interface ThreadMember {
|
|
61
61
|
* @internal
|
62
62
|
* Limited to Microsoft-internal use
|
63
63
|
*/
|
64
|
-
export
|
64
|
+
export enum NotificationTypes {
|
65
65
|
fileDownloadStart = "fileDownloadStart",
|
66
66
|
fileDownloadComplete = "fileDownloadComplete"
|
67
67
|
}
|
@@ -81,7 +81,7 @@ export interface ShowNotificationParameters {
|
|
81
81
|
* @internal
|
82
82
|
* Limited to Microsoft-internal use
|
83
83
|
*/
|
84
|
-
export
|
84
|
+
export enum ViewerActionTypes {
|
85
85
|
view = "view",
|
86
86
|
edit = "edit",
|
87
87
|
editNew = "editNew"
|
@@ -91,7 +91,7 @@ export const enum ViewerActionTypes {
|
|
91
91
|
*
|
92
92
|
* User setting changes that can be subscribed to
|
93
93
|
*/
|
94
|
-
export
|
94
|
+
export enum UserSettingTypes {
|
95
95
|
/**
|
96
96
|
* @hidden
|
97
97
|
* Use this key to subscribe to changes in user's file open preference
|
@@ -610,7 +610,7 @@ export namespace externalAppAuthentication {
|
|
610
610
|
* @internal
|
611
611
|
* Limited to Microsoft-internal use
|
612
612
|
*/
|
613
|
-
|
613
|
+
enum OriginalRequestType {
|
614
614
|
ActionExecuteInvokeRequest = "ActionExecuteInvokeRequest",
|
615
615
|
QueryMessageExtensionRequest = "QueryMessageExtensionRequest"
|
616
616
|
}
|
@@ -627,7 +627,7 @@ export namespace externalAppAuthentication {
|
|
627
627
|
* @internal
|
628
628
|
* Limited to Microsoft-internal use
|
629
629
|
*/
|
630
|
-
|
630
|
+
enum InvokeResponseType {
|
631
631
|
ActionExecuteInvokeResponse = "ActionExecuteInvokeResponse",
|
632
632
|
QueryMessageExtensionResponse = "QueryMessageExtensionResponse"
|
633
633
|
}
|
@@ -733,7 +733,7 @@ export namespace externalAppAuthentication {
|
|
733
733
|
* @internal
|
734
734
|
* Limited to Microsoft-internal use
|
735
735
|
*/
|
736
|
-
|
736
|
+
enum InvokeErrorCode {
|
737
737
|
INTERNAL_ERROR = "INTERNAL_ERROR"
|
738
738
|
}
|
739
739
|
/**
|
@@ -783,6 +783,18 @@ export namespace externalAppAuthentication {
|
|
783
783
|
* @returns A promise that resolves when authentication succeeds and rejects with InvokeError on failure
|
784
784
|
*/
|
785
785
|
function authenticateWithOauth2(titleId: string, oauthConfigId: string, oauthWindowParameters: OauthWindowProperties): Promise<void>;
|
786
|
+
/**
|
787
|
+
* @beta
|
788
|
+
* @hidden
|
789
|
+
* API to authenticate power platform connector plugins
|
790
|
+
* @internal
|
791
|
+
* Limited to Microsoft-internal use
|
792
|
+
* @param titleId ID of the acquisition
|
793
|
+
* @param signInUrl signInUrl for the connctor page listing the connector. This is optional
|
794
|
+
* @param oauthWindowParameters parameters for the signIn window
|
795
|
+
* @returns A promise that resolves when authentication succeeds and rejects with InvokeError on failure
|
796
|
+
*/
|
797
|
+
function authenticateWithPowerPlatformConnectorPlugins(titleId: string, signInUrl?: URL, oauthWindowParameters?: OauthWindowProperties): Promise<void>;
|
786
798
|
/**
|
787
799
|
* @hidden
|
788
800
|
* Checks if the externalAppAuthentication capability is supported by the host
|
@@ -809,7 +821,7 @@ export namespace externalAppCardActions {
|
|
809
821
|
* @internal
|
810
822
|
* Limited to Microsoft-internal use
|
811
823
|
*/
|
812
|
-
|
824
|
+
enum ActionOpenUrlType {
|
813
825
|
DeepLinkDialog = "DeepLinkDialog",
|
814
826
|
DeepLinkOther = "DeepLinkOther",
|
815
827
|
DeepLinkStageView = "DeepLinkStageView",
|
@@ -832,7 +844,7 @@ export namespace externalAppCardActions {
|
|
832
844
|
* @internal
|
833
845
|
* Limited to Microsoft-internal use
|
834
846
|
*/
|
835
|
-
|
847
|
+
enum ActionOpenUrlErrorCode {
|
836
848
|
INTERNAL_ERROR = "INTERNAL_ERROR",
|
837
849
|
INVALID_LINK = "INVALID_LINK",
|
838
850
|
NOT_SUPPORTED = "NOT_SUPPORTED"
|
@@ -1031,7 +1043,7 @@ export namespace files {
|
|
1031
1043
|
* @internal
|
1032
1044
|
* Limited to Microsoft-internal use
|
1033
1045
|
*/
|
1034
|
-
export
|
1046
|
+
export enum CloudStorageProvider {
|
1035
1047
|
Dropbox = "DROPBOX",
|
1036
1048
|
Box = "BOX",
|
1037
1049
|
Sharefile = "SHAREFILE",
|
@@ -1068,7 +1080,7 @@ export namespace files {
|
|
1068
1080
|
* @internal
|
1069
1081
|
* Limited to Microsoft-internal use
|
1070
1082
|
*/
|
1071
|
-
export
|
1083
|
+
export enum CloudStorageProviderType {
|
1072
1084
|
Sharepoint = 0,
|
1073
1085
|
WopiIntegration = 1,
|
1074
1086
|
Google = 2,
|
@@ -1286,7 +1298,7 @@ export namespace files {
|
|
1286
1298
|
* @internal
|
1287
1299
|
* Limited to Microsoft-internal use
|
1288
1300
|
*/
|
1289
|
-
export
|
1301
|
+
export enum SpecialDocumentLibraryType {
|
1290
1302
|
ClassMaterials = "classMaterials"
|
1291
1303
|
}
|
1292
1304
|
/**
|
@@ -1297,7 +1309,7 @@ export namespace files {
|
|
1297
1309
|
* @internal
|
1298
1310
|
* Limited to Microsoft-internal use
|
1299
1311
|
*/
|
1300
|
-
export
|
1312
|
+
export enum DocumentLibraryAccessType {
|
1301
1313
|
Readonly = "readonly"
|
1302
1314
|
}
|
1303
1315
|
/**
|
@@ -1339,7 +1351,7 @@ export namespace files {
|
|
1339
1351
|
* @internal
|
1340
1352
|
* Limited to Microsoft-internal use
|
1341
1353
|
*/
|
1342
|
-
export
|
1354
|
+
export enum FileDownloadStatus {
|
1343
1355
|
Downloaded = "Downloaded",
|
1344
1356
|
Downloading = "Downloading",
|
1345
1357
|
Failed = "Failed"
|
@@ -1441,7 +1453,7 @@ export namespace files {
|
|
1441
1453
|
* @internal
|
1442
1454
|
* Limited to Microsoft-internal use
|
1443
1455
|
*/
|
1444
|
-
export
|
1456
|
+
export enum CloudStorageProviderFileAction {
|
1445
1457
|
Download = "DOWNLOAD",
|
1446
1458
|
Upload = "UPLOAD",
|
1447
1459
|
Delete = "DELETE"
|
@@ -1994,21 +2006,88 @@ export namespace meetingRoom {
|
|
1994
2006
|
* Limited to Microsoft-internal use
|
1995
2007
|
*/
|
1996
2008
|
export namespace messageChannels {
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2009
|
+
namespace telemetry {
|
2010
|
+
/**
|
2011
|
+
* @hidden
|
2012
|
+
* @beta
|
2013
|
+
*
|
2014
|
+
* Fetches a MessagePort to batch telemetry through the host's telemetry worker.
|
2015
|
+
* The port is cached once received, so subsequent calls return the same port.
|
2016
|
+
* @returns MessagePort.
|
2017
|
+
*
|
2018
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed,
|
2019
|
+
* if the host does not support the feature, or if the port request is rejected.
|
2020
|
+
*
|
2021
|
+
* @internal
|
2022
|
+
* Limited to Microsoft-internal use
|
2023
|
+
*/
|
2024
|
+
function getTelemetryPort(): Promise<MessagePort>;
|
2025
|
+
/**
|
2026
|
+
* @hidden
|
2027
|
+
*
|
2028
|
+
* @beta
|
2029
|
+
*
|
2030
|
+
* Checks if the messageChannels.telemetry capability is supported by the host
|
2031
|
+
* @returns boolean to represent whether the messageChannels.telemetry capability is supported
|
2032
|
+
*
|
2033
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
2034
|
+
*
|
2035
|
+
* @internal
|
2036
|
+
* Limited to Microsoft-internal use
|
2037
|
+
*/
|
2038
|
+
function isSupported(): boolean;
|
2039
|
+
/**
|
2040
|
+
* @hidden
|
2041
|
+
* Undocumented function used to clear state between unit tests
|
2042
|
+
*
|
2043
|
+
* @beta
|
2044
|
+
*
|
2045
|
+
* @internal
|
2046
|
+
* Limited to Microsoft-internal use
|
2047
|
+
*/
|
2048
|
+
function _clearTelemetryPort(): void;
|
2049
|
+
}
|
2050
|
+
namespace dataLayer {
|
2051
|
+
/**
|
2052
|
+
* @hidden
|
2053
|
+
* @beta
|
2054
|
+
*
|
2055
|
+
* Fetches a MessagePort to allow access to the host's data layer worker.
|
2056
|
+
* The port is cached once received, so subsequent calls return the same port.
|
2057
|
+
* @returns MessagePort.
|
2058
|
+
*
|
2059
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed,
|
2060
|
+
* if the host does not support the feature, or if the port request is rejected.
|
2061
|
+
*
|
2062
|
+
* @internal
|
2063
|
+
* Limited to Microsoft-internal use
|
2064
|
+
*/
|
2065
|
+
function getDataLayerPort(): Promise<MessagePort>;
|
2066
|
+
/**
|
2067
|
+
* @hidden
|
2068
|
+
*
|
2069
|
+
* @beta
|
2070
|
+
*
|
2071
|
+
* Checks if the messageChannels.dataLayer capability is supported by the host
|
2072
|
+
* @returns boolean to represent whether the messageChannels.dataLayer capability is supported
|
2073
|
+
*
|
2074
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
2075
|
+
*
|
2076
|
+
* @internal
|
2077
|
+
* Limited to Microsoft-internal use
|
2078
|
+
*/
|
2079
|
+
function isSupported(): boolean;
|
2080
|
+
/**
|
2081
|
+
* @hidden
|
2082
|
+
* Undocumented function used to clear state between unit tests
|
2083
|
+
*
|
2084
|
+
* @beta
|
2085
|
+
*
|
2086
|
+
* @internal
|
2087
|
+
* Limited to Microsoft-internal use
|
2088
|
+
*/
|
2089
|
+
function _clearDataLayerPort(): void;
|
2090
|
+
}
|
2012
2091
|
/**
|
2013
2092
|
* @hidden
|
2014
2093
|
*
|
@@ -2023,16 +2102,6 @@ export namespace messageChannels {
|
|
2023
2102
|
* Limited to Microsoft-internal use
|
2024
2103
|
*/
|
2025
2104
|
function isSupported(): boolean;
|
2026
|
-
/**
|
2027
|
-
* @hidden
|
2028
|
-
* Undocumented function used to clear state between unit tests
|
2029
|
-
*
|
2030
|
-
* @beta
|
2031
|
-
*
|
2032
|
-
* @internal
|
2033
|
-
* Limited to Microsoft-internal use
|
2034
|
-
*/
|
2035
|
-
function _clearTelemetryPort(): void;
|
2036
2105
|
}
|
2037
2106
|
|
2038
2107
|
export namespace notifications {
|
@@ -2280,7 +2349,7 @@ export namespace remoteCamera {
|
|
2280
2349
|
* @internal
|
2281
2350
|
* Limited to Microsoft-internal use
|
2282
2351
|
*/
|
2283
|
-
|
2352
|
+
enum ErrorReason {
|
2284
2353
|
CommandResetError = 0,
|
2285
2354
|
CommandZoomInError = 1,
|
2286
2355
|
CommandZoomOutError = 2,
|
@@ -2322,7 +2391,7 @@ export namespace remoteCamera {
|
|
2322
2391
|
* @internal
|
2323
2392
|
* Limited to Microsoft-internal use
|
2324
2393
|
*/
|
2325
|
-
|
2394
|
+
enum SessionTerminatedReason {
|
2326
2395
|
None = 0,
|
2327
2396
|
ControlDenied = 1,
|
2328
2397
|
ControlNoResponse = 2,
|
@@ -2531,7 +2600,7 @@ export namespace appEntity {
|
|
2531
2600
|
}
|
2532
2601
|
|
2533
2602
|
export namespace teams {
|
2534
|
-
|
2603
|
+
enum ChannelType {
|
2535
2604
|
Regular = 0,
|
2536
2605
|
Private = 1,
|
2537
2606
|
Shared = 2
|
@@ -2655,7 +2724,7 @@ export namespace videoEffectsEx {
|
|
2655
2724
|
* @internal
|
2656
2725
|
* Limited to Microsoft-internal use
|
2657
2726
|
*/
|
2658
|
-
|
2727
|
+
enum ErrorLevel {
|
2659
2728
|
Fatal = "fatal",
|
2660
2729
|
Warn = "warn"
|
2661
2730
|
}
|
@@ -6007,14 +6076,10 @@ export namespace pages {
|
|
6007
6076
|
}
|
6008
6077
|
/**
|
6009
6078
|
* Provides functions for navigating without needing to specify your application ID.
|
6010
|
-
*
|
6011
|
-
* @beta
|
6012
6079
|
*/
|
6013
6080
|
namespace currentApp {
|
6014
6081
|
/**
|
6015
6082
|
* Parameters for the NavigateWithinApp
|
6016
|
-
*
|
6017
|
-
* @beta
|
6018
6083
|
*/
|
6019
6084
|
interface NavigateWithinAppParams {
|
6020
6085
|
/**
|
@@ -6033,14 +6098,11 @@ export namespace pages {
|
|
6033
6098
|
* specific content within the page).
|
6034
6099
|
* @param params - Parameters for the navigation
|
6035
6100
|
* @returns a promise that will resolve if the navigation was successful
|
6036
|
-
*
|
6037
|
-
* @beta
|
6038
6101
|
*/
|
6039
6102
|
function navigateTo(params: NavigateWithinAppParams): Promise<void>;
|
6040
6103
|
/**
|
6041
6104
|
* Navigate to the currently running application's first static page defined in the application
|
6042
6105
|
* manifest.
|
6043
|
-
* @beta
|
6044
6106
|
*/
|
6045
6107
|
function navigateToDefaultPage(): Promise<void>;
|
6046
6108
|
/**
|
@@ -6048,8 +6110,6 @@ export namespace pages {
|
|
6048
6110
|
* @returns boolean to represent whether the pages.currentApp capability is supported
|
6049
6111
|
*
|
6050
6112
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
6051
|
-
*
|
6052
|
-
* @beta
|
6053
6113
|
*/
|
6054
6114
|
function isSupported(): boolean;
|
6055
6115
|
}
|
@@ -6937,7 +6997,23 @@ export namespace meeting {
|
|
6937
6997
|
* Hide from docs
|
6938
6998
|
* Data structure to represent call details
|
6939
6999
|
*/
|
6940
|
-
|
7000
|
+
interface ICallDetails extends IMeetingOrCallDetailsBase<CallType> {
|
7001
|
+
/**
|
7002
|
+
* @hidden
|
7003
|
+
* Phone number of a PSTN caller or email of a VoIP caller
|
7004
|
+
*/
|
7005
|
+
originalCaller?: string;
|
7006
|
+
/**
|
7007
|
+
* @hidden
|
7008
|
+
* Phone number of a PSTN callee or email of a VoIP callee
|
7009
|
+
*/
|
7010
|
+
dialedEntity?: never;
|
7011
|
+
/**
|
7012
|
+
* @hidden
|
7013
|
+
* Tracking identifier for grouping related calls
|
7014
|
+
*/
|
7015
|
+
trackingId?: never;
|
7016
|
+
}
|
6941
7017
|
/**
|
6942
7018
|
* @hidden
|
6943
7019
|
* Hide from docs
|
@@ -6949,6 +7025,11 @@ export namespace meeting {
|
|
6949
7025
|
* Scheduled end time of the meeting
|
6950
7026
|
*/
|
6951
7027
|
scheduledEndTime: string;
|
7028
|
+
/**
|
7029
|
+
* @hidden
|
7030
|
+
* event id of the meeting
|
7031
|
+
*/
|
7032
|
+
id?: string;
|
6952
7033
|
/**
|
6953
7034
|
* @hidden
|
6954
7035
|
* meeting title name of the meeting
|
@@ -7348,6 +7429,10 @@ export namespace meeting {
|
|
7348
7429
|
*/
|
7349
7430
|
function toggleIncomingClientAudio(callback: errorCallbackFunctionType): void;
|
7350
7431
|
/**
|
7432
|
+
* @throws error if your app manifest does not include the `OnlineMeeting.ReadBasic.Chat` RSC permission.
|
7433
|
+
* Find the app manifest reference at https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema.
|
7434
|
+
* Find the RSC reference at https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/resource-specific-consent.
|
7435
|
+
*
|
7351
7436
|
* @hidden
|
7352
7437
|
* Allows an app to get the meeting details for the meeting
|
7353
7438
|
*
|
@@ -7359,6 +7444,24 @@ export namespace meeting {
|
|
7359
7444
|
* Limited to Microsoft-internal use
|
7360
7445
|
*/
|
7361
7446
|
function getMeetingDetails(callback: (error: SdkError | null, meetingDetails: IMeetingDetailsResponse | null) => void): void;
|
7447
|
+
/**
|
7448
|
+
* @throws error if your app manifest does not include both the `OnlineMeeting.ReadBasic.Chat` RSC permission
|
7449
|
+
* and the `OnlineMeetingParticipant.Read.Chat` RSC permission.
|
7450
|
+
* Find the app manifest reference at https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema.
|
7451
|
+
* Find the RSC reference at https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/resource-specific-consent.
|
7452
|
+
*
|
7453
|
+
* @throws `not supported on platform` error if your app is run on a host that does not support returning additional meeting details.
|
7454
|
+
*
|
7455
|
+
* @hidden
|
7456
|
+
* Allows an app to get the additional meeting details for the meeting.
|
7457
|
+
* Some additional details are returned on a best-effort basis. They may not be present for every meeting.
|
7458
|
+
*
|
7459
|
+
* @internal
|
7460
|
+
* Limited to Microsoft-internal use
|
7461
|
+
*
|
7462
|
+
* @beta
|
7463
|
+
*/
|
7464
|
+
function getMeetingDetailsVerbose(): Promise<IMeetingDetailsResponse>;
|
7362
7465
|
/**
|
7363
7466
|
* @hidden
|
7364
7467
|
* Allows an app to get the authentication token for the anonymous or guest user in the meeting
|
@@ -10095,7 +10198,7 @@ export namespace marketplace {
|
|
10095
10198
|
* @internal
|
10096
10199
|
* Limited to Microsoft-internal use
|
10097
10200
|
*/
|
10098
|
-
export
|
10201
|
+
export enum ExternalAppErrorCode {
|
10099
10202
|
INTERNAL_ERROR = "INTERNAL_ERROR"
|
10100
10203
|
}
|
10101
10204
|
|