@microsoft/teams-js 1.10.1-dev.0 → 1.10.1-dev.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.js +1 -1
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/microsoftteams.d.ts +2834 -0
- package/dts/index.d.ts +2 -0
- package/dts/internal/communication.d.ts +23 -0
- package/dts/internal/constants.d.ts +42 -0
- package/dts/internal/globalVars.d.ts +15 -0
- package/dts/internal/handlers.d.ts +10 -0
- package/dts/internal/interfaces.d.ts +44 -0
- package/dts/internal/internalAPIs.d.ts +12 -0
- package/dts/internal/mediaUtil.d.ts +31 -0
- package/dts/internal/utils.d.ts +22 -0
- package/dts/private/appEntity.d.ts +49 -0
- package/dts/private/bot.d.ts +77 -0
- package/dts/private/conversations.d.ts +20 -0
- package/dts/private/files.d.ts +169 -0
- package/dts/private/index.d.ts +10 -0
- package/dts/private/interfaces.d.ts +141 -0
- package/dts/private/logs.d.ts +17 -0
- package/dts/private/meetingRoom.d.ts +157 -0
- package/dts/private/menus.d.ts +117 -0
- package/dts/private/privateAPIs.d.ts +104 -0
- package/dts/private/remoteCamera.d.ts +196 -0
- package/dts/public/appInitialization.d.ts +44 -0
- package/dts/public/appWindow.d.ts +14 -0
- package/dts/public/authentication.d.ts +177 -0
- package/dts/public/constants.d.ts +53 -0
- package/dts/public/index.d.ts +13 -0
- package/dts/public/interfaces.d.ts +557 -0
- package/dts/public/location.d.ts +47 -0
- package/dts/public/media.d.ts +219 -0
- package/dts/public/meeting.d.ts +158 -0
- package/dts/public/navigation.d.ts +28 -0
- package/dts/public/people.d.ts +53 -0
- package/dts/public/publicAPIs.d.ts +117 -0
- package/dts/public/settings.d.ts +95 -0
- package/dts/public/tasks.d.ts +25 -0
- package/package.json +1 -1
- package/dist/MicrosoftTeams.d.ts +0 -5
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Namespace to interact with the authentication-specific part of the SDK.
|
|
3
|
+
* This object is used for starting or completing authentication flows.
|
|
4
|
+
*/
|
|
5
|
+
export declare namespace authentication {
|
|
6
|
+
function initialize(): void;
|
|
7
|
+
/**
|
|
8
|
+
* Registers the authentication Communication.handlers
|
|
9
|
+
* @param authenticateParameters A set of values that configure the authentication pop-up.
|
|
10
|
+
*/
|
|
11
|
+
function registerAuthenticationHandlers(authenticateParameters: AuthenticateParameters): void;
|
|
12
|
+
/**
|
|
13
|
+
* Initiates an authentication request, which opens a new window with the specified settings.
|
|
14
|
+
*/
|
|
15
|
+
function authenticate(authenticateParameters?: AuthenticateParameters): void;
|
|
16
|
+
/**
|
|
17
|
+
* Requests an Azure AD token to be issued on behalf of the app. The token is acquired from the cache
|
|
18
|
+
* if it is not expired. Otherwise a request is sent to Azure AD to obtain a new token.
|
|
19
|
+
* @param authTokenRequest A set of values that configure the token request.
|
|
20
|
+
*/
|
|
21
|
+
function getAuthToken(authTokenRequest: AuthTokenRequest): void;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
* Hide from docs.
|
|
25
|
+
* ------
|
|
26
|
+
* Requests the decoded Azure AD user identity on behalf of the app.
|
|
27
|
+
*/
|
|
28
|
+
function getUser(userRequest: UserRequest): void;
|
|
29
|
+
/**
|
|
30
|
+
* Notifies the frame that initiated this authentication request that the request was successful.
|
|
31
|
+
* This function is usable only on the authentication window.
|
|
32
|
+
* This call causes the authentication window to be closed.
|
|
33
|
+
* @param result Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives this value in its callback.
|
|
34
|
+
* @param callbackUrl Specifies the url to redirect back to if the client is Win32 Outlook.
|
|
35
|
+
*/
|
|
36
|
+
function notifySuccess(result?: string, callbackUrl?: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Notifies the frame that initiated this authentication request that the request failed.
|
|
39
|
+
* This function is usable only on the authentication window.
|
|
40
|
+
* This call causes the authentication window to be closed.
|
|
41
|
+
* @param result Specifies a result for the authentication. If specified, the frame that initiated the authentication pop-up receives this value in its callback.
|
|
42
|
+
* @param callbackUrl Specifies the url to redirect back to if the client is Win32 Outlook.
|
|
43
|
+
*/
|
|
44
|
+
function notifyFailure(reason?: string, callbackUrl?: string): void;
|
|
45
|
+
interface AuthenticateParameters {
|
|
46
|
+
/**
|
|
47
|
+
* The URL for the authentication pop-up.
|
|
48
|
+
*/
|
|
49
|
+
url: string;
|
|
50
|
+
/**
|
|
51
|
+
* The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.
|
|
52
|
+
*/
|
|
53
|
+
width?: number;
|
|
54
|
+
/**
|
|
55
|
+
* The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.
|
|
56
|
+
*/
|
|
57
|
+
height?: number;
|
|
58
|
+
/**
|
|
59
|
+
* A function that is called if the authentication succeeds, with the result returned from the authentication pop-up.
|
|
60
|
+
*/
|
|
61
|
+
successCallback?: (result?: string) => void;
|
|
62
|
+
/**
|
|
63
|
+
* A function that is called if the authentication fails, with the reason for the failure returned from the authentication pop-up.
|
|
64
|
+
*/
|
|
65
|
+
failureCallback?: (reason?: string) => void;
|
|
66
|
+
}
|
|
67
|
+
interface AuthTokenRequest {
|
|
68
|
+
/**
|
|
69
|
+
* An optional list of resource for which to acquire the access token; only used for full trust apps.
|
|
70
|
+
*/
|
|
71
|
+
resources?: string[];
|
|
72
|
+
/**
|
|
73
|
+
* An optional list of claims which to pass to AAD when requesting the access token.
|
|
74
|
+
*/
|
|
75
|
+
claims?: string[];
|
|
76
|
+
/**
|
|
77
|
+
* An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
|
|
78
|
+
*/
|
|
79
|
+
silent?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* A function that is called if the token request succeeds, with the resulting token.
|
|
82
|
+
*/
|
|
83
|
+
successCallback?: (token: string) => void;
|
|
84
|
+
/**
|
|
85
|
+
* A function that is called if the token request fails, with the reason for the failure.
|
|
86
|
+
*/
|
|
87
|
+
failureCallback?: (reason: string) => void;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @private
|
|
91
|
+
* Hide from docs.
|
|
92
|
+
* ------
|
|
93
|
+
*/
|
|
94
|
+
interface UserRequest {
|
|
95
|
+
/**
|
|
96
|
+
* A function that is called if the token request succeeds, with the resulting token.
|
|
97
|
+
*/
|
|
98
|
+
successCallback?: (user: UserProfile) => void;
|
|
99
|
+
/**
|
|
100
|
+
* A function that is called if the token request fails, with the reason for the failure.
|
|
101
|
+
*/
|
|
102
|
+
failureCallback?: (reason: string) => void;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @private
|
|
106
|
+
* Hide from docs.
|
|
107
|
+
* ------
|
|
108
|
+
*/
|
|
109
|
+
interface UserProfile {
|
|
110
|
+
/**
|
|
111
|
+
* The intended recipient of the token. The application that receives the token must verify that the audience
|
|
112
|
+
* value is correct and reject any tokens intended for a different audience.
|
|
113
|
+
*/
|
|
114
|
+
aud: string;
|
|
115
|
+
/**
|
|
116
|
+
* Identifies how the subject of the token was authenticated.
|
|
117
|
+
*/
|
|
118
|
+
amr: string[];
|
|
119
|
+
/**
|
|
120
|
+
* Stores the time at which the token was issued. It is often used to measure token freshness.
|
|
121
|
+
*/
|
|
122
|
+
iat: number;
|
|
123
|
+
/**
|
|
124
|
+
* Identifies the security token service (STS) that constructs and returns the token. In the tokens that Azure AD
|
|
125
|
+
* returns, the issuer is sts.windows.net. The GUID in the issuer claim value is the tenant ID of the Azure AD
|
|
126
|
+
* directory. The tenant ID is an immutable and reliable identifier of the directory.
|
|
127
|
+
*/
|
|
128
|
+
iss: string;
|
|
129
|
+
/**
|
|
130
|
+
* Provides the last name, surname, or family name of the user as defined in the Azure AD user object.
|
|
131
|
+
*/
|
|
132
|
+
family_name: string;
|
|
133
|
+
/**
|
|
134
|
+
* Provides the first or "given" name of the user, as set on the Azure AD user object.
|
|
135
|
+
*/
|
|
136
|
+
given_name: string;
|
|
137
|
+
/**
|
|
138
|
+
* Provides a human-readable value that identifies the subject of the token. This value is not guaranteed to
|
|
139
|
+
* be unique within a tenant and is designed to be used only for display purposes.
|
|
140
|
+
*/
|
|
141
|
+
unique_name: string;
|
|
142
|
+
/**
|
|
143
|
+
* Contains a unique identifier of an object in Azure AD. This value is immutable and cannot be reassigned or
|
|
144
|
+
* reused. Use the object ID to identify an object in queries to Azure AD.
|
|
145
|
+
*/
|
|
146
|
+
oid: string;
|
|
147
|
+
/**
|
|
148
|
+
* Identifies the principal about which the token asserts information, such as the user of an application.
|
|
149
|
+
* This value is immutable and cannot be reassigned or reused, so it can be used to perform authorization
|
|
150
|
+
* checks safely. Because the subject is always present in the tokens the Azure AD issues, we recommended
|
|
151
|
+
* using this value in a general-purpose authorization system.
|
|
152
|
+
*/
|
|
153
|
+
sub: string;
|
|
154
|
+
/**
|
|
155
|
+
* An immutable, non-reusable identifier that identifies the directory tenant that issued the token. You can
|
|
156
|
+
* use this value to access tenant-specific directory resources in a multitenant application. For example,
|
|
157
|
+
* you can use this value to identify the tenant in a call to the Graph API.
|
|
158
|
+
*/
|
|
159
|
+
tid: string;
|
|
160
|
+
/**
|
|
161
|
+
* Defines the time interval within which a token is valid. The service that validates the token should verify
|
|
162
|
+
* that the current date is within the token lifetime; otherwise it should reject the token. The service might
|
|
163
|
+
* allow for up to five minutes beyond the token lifetime to account for any differences in clock time ("time
|
|
164
|
+
* skew") between Azure AD and the service.
|
|
165
|
+
*/
|
|
166
|
+
exp: number;
|
|
167
|
+
nbf: number;
|
|
168
|
+
/**
|
|
169
|
+
* Stores the user name of the user principal.
|
|
170
|
+
*/
|
|
171
|
+
upn: string;
|
|
172
|
+
/**
|
|
173
|
+
* Stores the version number of the token.
|
|
174
|
+
*/
|
|
175
|
+
ver: string;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare enum HostClientType {
|
|
2
|
+
desktop = "desktop",
|
|
3
|
+
web = "web",
|
|
4
|
+
android = "android",
|
|
5
|
+
ios = "ios",
|
|
6
|
+
rigel = "rigel",
|
|
7
|
+
surfaceHub = "surfaceHub"
|
|
8
|
+
}
|
|
9
|
+
export declare enum FrameContexts {
|
|
10
|
+
settings = "settings",
|
|
11
|
+
content = "content",
|
|
12
|
+
authentication = "authentication",
|
|
13
|
+
remove = "remove",
|
|
14
|
+
task = "task",
|
|
15
|
+
sidePanel = "sidePanel",
|
|
16
|
+
stage = "stage",
|
|
17
|
+
meetingStage = "meetingStage"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Indicates the team type, currently used to distinguish between different team
|
|
21
|
+
* types in Office 365 for Education (team types 1, 2, 3, and 4).
|
|
22
|
+
*/
|
|
23
|
+
export declare enum TeamType {
|
|
24
|
+
Standard = 0,
|
|
25
|
+
Edu = 1,
|
|
26
|
+
Class = 2,
|
|
27
|
+
Plc = 3,
|
|
28
|
+
Staff = 4
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Indicates the various types of roles of a user in a team.
|
|
32
|
+
*/
|
|
33
|
+
export declare enum UserTeamRole {
|
|
34
|
+
Admin = 0,
|
|
35
|
+
User = 1,
|
|
36
|
+
Guest = 2
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Task module dimension enum
|
|
40
|
+
*/
|
|
41
|
+
export declare enum TaskModuleDimension {
|
|
42
|
+
Large = "large",
|
|
43
|
+
Medium = "medium",
|
|
44
|
+
Small = "small"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The type of the channel with which the content is associated.
|
|
48
|
+
*/
|
|
49
|
+
export declare enum ChannelType {
|
|
50
|
+
Regular = "Regular",
|
|
51
|
+
Private = "Private",
|
|
52
|
+
Shared = "Shared"
|
|
53
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { appInitialization } from './appInitialization';
|
|
2
|
+
export { authentication } from './authentication';
|
|
3
|
+
export { FrameContexts, HostClientType, TaskModuleDimension, TeamType, UserTeamRole, ChannelType } from './constants';
|
|
4
|
+
export { Context, DeepLinkParameters, ErrorCode, LoadContext, SdkError, TabInformation, TabInstance, TabInstanceParameters, TaskInfo, TeamInformation, FileOpenPreference, } from './interfaces';
|
|
5
|
+
export { enablePrintCapability, executeDeepLink, getContext, getMruTabInstances, getTabInstances, initialize, initializeWithFrameContext, print, registerBackButtonHandler, registerBeforeUnloadHandler, registerChangeSettingsHandler, registerFullScreenHandler, registerOnLoadHandler, registerOnThemeChangeHandler, registerAppButtonClickHandler, registerAppButtonHoverEnterHandler, registerAppButtonHoverLeaveHandler, setFrameContext, shareDeepLink, } from './publicAPIs';
|
|
6
|
+
export { returnFocus, navigateBack, navigateCrossDomain, navigateToTab } from './navigation';
|
|
7
|
+
export { settings } from './settings';
|
|
8
|
+
export { tasks } from './tasks';
|
|
9
|
+
export { ChildAppWindow, IAppWindow, ParentAppWindow } from './appWindow';
|
|
10
|
+
export { media } from './media';
|
|
11
|
+
export { location } from './location';
|
|
12
|
+
export { meeting } from './meeting';
|
|
13
|
+
export { people } from './people';
|