@microsoft/teams-js 2.1.0-beta.1 → 2.1.0-beta.4

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.
@@ -1943,65 +1943,85 @@ export enum FileOpenPreference {
1943
1943
  */
1944
1944
  export interface Context {
1945
1945
  /**
1946
- * @hidden
1946
+ * @deprecated
1947
+ * As of 2.0.0, please use {@link app.Context.team.groupId} instead
1948
+ *
1947
1949
  * The Office 365 group ID for the team with which the content is associated.
1948
1950
  * This field is available only when the identity permission is requested in the manifest.
1949
1951
  */
1950
1952
  groupId?: string;
1951
1953
  /**
1952
- * @hidden
1954
+ * @deprecated
1955
+ * As of 2.0.0, please use {@link app.Context.team.internalId} instead
1956
+ *
1953
1957
  * The Microsoft Teams ID for the team with which the content is associated.
1954
1958
  */
1955
1959
  teamId?: string;
1956
1960
  /**
1957
- * @hidden
1961
+ * @deprecated
1962
+ * As of 2.0.0, please use {@link app.Context.team.displayName} instead
1963
+ *
1958
1964
  * The name for the team with which the content is associated.
1959
1965
  */
1960
1966
  teamName?: string;
1961
1967
  /**
1962
- * @hidden
1968
+ * @deprecated
1969
+ * As of 2.0.0, please use {@link app.Context.channel.id} instead
1970
+ *
1963
1971
  * The Microsoft Teams ID for the channel with which the content is associated.
1964
1972
  */
1965
1973
  channelId?: string;
1966
1974
  /**
1967
- * @hidden
1975
+ * @deprecated
1976
+ * As of 2.0.0, please use {@link app.Context.channel.displayName} instead
1977
+ *
1968
1978
  * The name for the channel with which the content is associated.
1969
1979
  */
1970
1980
  channelName?: string;
1971
1981
  /**
1972
- * @hidden
1982
+ * @deprecated
1983
+ * As of 2.0.0, please use {@link app.Context.channel.membershipType} instead
1984
+ *
1973
1985
  * The type of the channel with which the content is associated.
1974
1986
  */
1975
1987
  channelType?: ChannelType;
1976
1988
  /**
1977
- * @hidden
1989
+ * @deprecated
1990
+ * As of 2.0.0, please use {@link app.Context.page.id} instead
1991
+ *
1978
1992
  * The developer-defined unique ID for the entity this content points to.
1979
1993
  */
1980
1994
  entityId: string;
1981
1995
  /**
1982
- * @hidden
1996
+ * @deprecated
1997
+ * As of 2.0.0, please use {@link app.Context.page.subPageId} instead
1998
+ *
1983
1999
  * The developer-defined unique ID for the sub-entity this content points to.
1984
2000
  * This field should be used to restore to a specific state within an entity,
1985
2001
  * such as scrolling to or activating a specific piece of content.
1986
2002
  */
1987
2003
  subEntityId?: string;
1988
2004
  /**
1989
- * @hidden
2005
+ * @deprecated
2006
+ * As of 2.0.0, please use {@link app.Context.app.locale} instead
2007
+ *
1990
2008
  * The current locale that the user has configured for the app formatted as
1991
2009
  * languageId-countryId (for example, en-us).
1992
2010
  */
1993
2011
  locale: string;
1994
2012
  /**
1995
- * @hidden
2013
+ * @deprecated
2014
+ * As of 2.0.0, please use {@link app.Context.app.osLocaleInfo} instead
2015
+ *
1996
2016
  * More detailed locale info from the user's OS if available. Can be used together with
1997
2017
  * the @microsoft/globe NPM package to ensure your app respects the user's OS date and
1998
2018
  * time format configuration
1999
2019
  */
2000
2020
  osLocaleInfo?: LocaleInfo;
2001
2021
  /**
2002
- * @hidden
2003
2022
  * @deprecated
2004
- * As of 2.0.0, please use {@link loginHint} or {@link userPrincipalName} instead.
2023
+ *
2024
+ * As of 2.0.0, please use {@link app.Context.user.loginHint} or {@link app.Context.user.userPrincipalName} instead.
2005
2025
  * The UPN of the current user.
2006
2026
  * Because a malicious party can run your content in a browser, this value should
2007
2027
  * be used only as a hint as to who the user is and never as proof of identity.
@@ -2009,7 +2029,9 @@ export interface Context {
2009
2029
  */
2010
2030
  upn?: string;
2011
2031
  /**
2012
- * @hidden
2032
+ * @deprecated
2033
+ * As of 2.0.0, please use {@link app.Context.user.tenant.id} instead
2034
+ *
2013
2035
  * The Azure AD tenant ID of the current user.
2014
2036
  * Because a malicious party can run your content in a browser, this value should
2015
2037
  * be used only as a hint as to who the user is and never as proof of identity.
@@ -2017,69 +2039,95 @@ export interface Context {
2017
2039
  */
2018
2040
  tid?: string;
2019
2041
  /**
2020
- * @hidden
2042
+ * @deprecated
2043
+ * As of 2.0.0, please use {@link app.Context.app.theme} instead
2044
+ *
2021
2045
  * The current UI theme.
2022
2046
  */
2023
2047
  theme?: string;
2024
2048
  /**
2025
- * @hidden
2049
+ * @deprecated
2050
+ * As of 2.0.0, please use {@link app.Context.page.isFullScreen} instead
2051
+ *
2026
2052
  * Indication whether the tab is in full-screen mode.
2027
2053
  */
2028
2054
  isFullScreen?: boolean;
2029
2055
  /**
2030
- * @hidden
2056
+ * @deprecated
2057
+ * As of 2.0.0, please use {@link app.Context.team.type} instead
2058
+ *
2031
2059
  * The type of the team.
2032
2060
  */
2033
2061
  teamType?: TeamType;
2034
2062
  /**
2035
- * @hidden
2063
+ * @deprecated
2064
+ * As of 2.0.0, please use {@link app.Context.sharePointSite.teamSiteUrl} instead
2065
+ *
2036
2066
  * The root SharePoint site associated with the team.
2037
2067
  */
2038
2068
  teamSiteUrl?: string;
2039
2069
  /**
2040
- * @hidden
2070
+ * @deprecated
2071
+ * As of 2.0.0, please use {@link app.Context.sharePointSite.teamSiteDomain} instead
2072
+ *
2041
2073
  * The domain of the root SharePoint site associated with the team.
2042
2074
  */
2043
2075
  teamSiteDomain?: string;
2044
2076
  /**
2045
- * @hidden
2077
+ * @deprecated
2078
+ * As of 2.0.0, please use {@link app.Context.sharePointSite.teamSitePath} instead
2079
+ *
2046
2080
  * The relative path to the SharePoint site associated with the team.
2047
2081
  */
2048
2082
  teamSitePath?: string;
2049
2083
  /**
2050
- * @hidden
2084
+ * @deprecated
2085
+ * As of 2.0.0, please use {@link app.Context.channel.ownerTeamTenantId} instead
2086
+ *
2051
2087
  * The tenant ID of the host team.
2052
2088
  */
2053
2089
  hostTeamTenantId?: string;
2054
2090
  /**
2055
- * @hidden
2091
+ * @deprecated
2092
+ * As of 2.0.0, please use {@link app.Context.channel.ownerGroupId} instead
2093
+ *
2056
2094
  * The AAD group ID of the host team.
2057
2095
  */
2058
2096
  hostTeamGroupId?: string;
2059
2097
  /**
2060
- * @hidden
2098
+ * @deprecated
2099
+ * As of 2.0.0, please use {@link app.Context.channel.relativeUrl} instead
2100
+ *
2061
2101
  * The relative path to the SharePoint folder associated with the channel.
2062
2102
  */
2063
2103
  channelRelativeUrl?: string;
2064
2104
  /**
2065
- * @hidden
2105
+ * @deprecated
2106
+ * As of 2.0.0, please use {@link app.Context.app.host.sessionId} instead
2107
+ *
2066
2108
  * Unique ID for the current Teams session for use in correlating telemetry data.
2067
2109
  */
2068
2110
  sessionId?: string;
2069
2111
  /**
2070
- * @hidden
2112
+ * @deprecated
2113
+ * As of 2.0.0, please use {@link app.Context.team.userRole} instead
2114
+ *
2071
2115
  * The user's role in the team.
2072
2116
  * Because a malicious party can run your content in a browser, this value should
2073
2117
  * be used only as a hint as to the user's role, and never as proof of her role.
2074
2118
  */
2075
2119
  userTeamRole?: UserTeamRole;
2076
2120
  /**
2077
- * @hidden
2121
+ * @deprecated
2122
+ * As of 2.0.0, please use {@link app.Context.chat.id} instead
2123
+ *
2078
2124
  * The Microsoft Teams ID for the chat with which the content is associated.
2079
2125
  */
2080
2126
  chatId?: string;
2081
2127
  /**
2082
- * @hidden
2128
+ * @deprecated
2129
+ * As of 2.0.0, please use {@link app.Context.user.loginHint} instead
2130
+ *
2083
2131
  * A value suitable for use as a login_hint when authenticating with Azure AD.
2084
2132
  * Because a malicious party can run your content in a browser, this value should
2085
2133
  * be used only as a hint as to who the user is and never as proof of identity.
@@ -2087,7 +2135,9 @@ export interface Context {
2087
2135
  */
2088
2136
  loginHint?: string;
2089
2137
  /**
2090
- * @hidden
2138
+ * @deprecated
2139
+ * As of 2.0.0, please use {@link app.Context.user.userPrincipalName} instead
2140
+ *
2091
2141
  * The UPN of the current user. This may be an externally-authenticated UPN (e.g., guest users).
2092
2142
  * Because a malicious party run your content in a browser, this value should
2093
2143
  * be used only as a hint as to who the user is and never as proof of identity.
@@ -2095,7 +2145,9 @@ export interface Context {
2095
2145
  */
2096
2146
  userPrincipalName?: string;
2097
2147
  /**
2098
- * @hidden
2148
+ * @deprecated
2149
+ * As of 2.0.0, please use {@link app.Context.user.id} instead
2150
+ *
2099
2151
  * The Azure AD object id of the current user.
2100
2152
  * Because a malicious party run your content in a browser, this value should
2101
2153
  * be used only as a hint as to who the user is and never as proof of identity.
@@ -2103,130 +2155,180 @@ export interface Context {
2103
2155
  */
2104
2156
  userObjectId?: string;
2105
2157
  /**
2106
- * @hidden
2158
+ * @deprecated
2159
+ * As of 2.0.0, please use {@link app.Context.team.isArchived} instead
2160
+ *
2107
2161
  * Indicates whether team is archived.
2108
2162
  * Apps should use this as a signal to prevent any changes to content associated with archived teams.
2109
2163
  */
2110
2164
  isTeamArchived?: boolean;
2111
2165
  /**
2112
- * @hidden
2166
+ * @deprecated
2167
+ * As of 2.0.0, please use {@link app.Context.host.name} instead
2168
+ *
2113
2169
  * The name of the host client. Possible values are: Office, Orange, Outlook, Teams
2114
2170
  */
2115
2171
  hostName?: HostName;
2116
2172
  /**
2117
- * @hidden
2173
+ * @deprecated
2174
+ * As of 2.0.0, please use {@link app.Context.host.clientType} instead
2175
+ *
2118
2176
  * The type of the host client. Possible values are : android, ios, web, desktop, rigel(deprecated, use teamsRoomsWindows instead),
2119
2177
  * surfaceHub, teamsRoomsWindows, teamsRoomsAndroid, teamsPhones, teamsDisplays
2120
2178
  */
2121
2179
  hostClientType?: HostClientType;
2122
2180
  /**
2123
- * @hidden
2181
+ * @deprecated
2182
+ * As of 2.0.0, please use {@link app.Context.page.frameContext} instead
2183
+ *
2124
2184
  * The context where tab url is loaded (content, task, setting, remove, sidePanel)
2125
2185
  */
2126
2186
  frameContext?: FrameContexts;
2127
2187
  /**
2128
- * @hidden
2188
+ * @deprecated
2189
+ * As of 2.0.0, please use {@link app.Context.sharepoint} instead
2190
+ *
2129
2191
  * SharePoint context. This is only available when hosted in SharePoint.
2130
2192
  */
2131
2193
  sharepoint?: any;
2132
2194
  /**
2133
- * @hidden
2195
+ * @deprecated
2196
+ * As of 2.0.0, please use {@link app.Context.user.tenant.teamsSku} instead
2197
+ *
2134
2198
  * The type of license for the current users tenant.
2135
2199
  */
2136
2200
  tenantSKU?: string;
2137
2201
  /**
2138
- * @hidden
2202
+ * @deprecated
2203
+ * As of 2.0.0, please use {@link app.Context.user.licenseType} instead
2204
+ *
2139
2205
  * The license type for the current user.
2140
2206
  */
2141
2207
  userLicenseType?: string;
2142
2208
  /**
2143
- * @hidden
2209
+ * @deprecated
2210
+ * As of 2.0.0, please use {@link app.Context.app.parentMessageId} instead
2211
+ *
2144
2212
  * The ID of the parent message from which this task module was launched.
2145
2213
  * This is only available in task modules launched from bot cards.
2146
2214
  */
2147
2215
  parentMessageId?: string;
2148
2216
  /**
2149
- * @hidden
2217
+ * @deprecated
2218
+ * As of 2.0.0, please use {@link app.Context.app.host.ringId} instead
2219
+ *
2150
2220
  * Current ring ID
2151
2221
  */
2152
2222
  ringId?: string;
2153
2223
  /**
2154
- * @hidden
2224
+ * @deprecated
2225
+ * As of 2.0.0, please use {@link app.Context.app.sessionId} instead
2226
+ *
2155
2227
  * Unique ID for the current session for use in correlating telemetry data.
2156
2228
  */
2157
2229
  appSessionId?: string;
2158
2230
  /**
2159
- * @hidden
2231
+ * @deprecated
2232
+ * As of 2.0.0, please use {@link app.Context.app.appLaunchId} instead
2233
+ *
2160
2234
  * ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data``
2161
2235
  */
2162
2236
  appLaunchId?: string;
2163
2237
  /**
2164
- * @hidden
2238
+ * @deprecated
2239
+ * As of 2.0.0, please use {@link app.Context.user.isCallingAllowed} instead
2240
+ *
2165
2241
  * Represents whether calling is allowed for the current logged in User
2166
2242
  */
2167
2243
  isCallingAllowed?: boolean;
2168
2244
  /**
2169
- * @hidden
2245
+ * @deprecated
2246
+ * As of 2.0.0, please use {@link app.Context.user.isPSTNCallingAllowed} instead
2247
+ *
2170
2248
  * Represents whether PSTN calling is allowed for the current logged in User
2171
2249
  */
2172
2250
  isPSTNCallingAllowed?: boolean;
2173
2251
  /**
2174
- * @hidden
2252
+ * @deprecated
2253
+ * As of 2.0.0, please use {@link app.Context.meeting.id} instead
2254
+ *
2175
2255
  * Meeting Id used by tab when running in meeting context
2176
2256
  */
2177
2257
  meetingId?: string;
2178
2258
  /**
2179
- * @hidden
2259
+ * @deprecated
2260
+ * As of 2.0.0, please use {@link app.Context.channel.defaultOneNoteSectionId} instead
2261
+ *
2180
2262
  * The OneNote section ID that is linked to the channel.
2181
2263
  */
2182
2264
  defaultOneNoteSectionId?: string;
2183
2265
  /**
2184
- * @hidden
2266
+ * @deprecated
2267
+ * As of 2.0.0, please use {@link app.Context.page.isMultiWindow} instead
2268
+ *
2185
2269
  * Indication whether the tab is in a pop out window
2186
2270
  */
2187
2271
  isMultiWindow?: boolean;
2188
2272
  /**
2189
- * @hidden
2273
+ * @deprecated
2274
+ * As of 2.0.0, please use {@link app.Context.app.iconPositionVertical} instead
2275
+ *
2190
2276
  * Personal app icon y coordinate position
2191
2277
  */
2192
2278
  appIconPosition?: number;
2193
2279
  /**
2194
- * @hidden
2280
+ * @deprecated
2281
+ * As of 2.0.0, please use {@link app.Context.page.sourceOrigin} instead
2282
+ *
2195
2283
  * Source origin from where the tab is opened
2196
2284
  */
2197
2285
  sourceOrigin?: string;
2198
2286
  /**
2199
- * @hidden
2287
+ * @deprecated
2288
+ * As of 2.0.0, please use {@link app.Context.app.userClickTime} instead
2289
+ *
2200
2290
  * Time when the user clicked on the tab
2201
2291
  */
2202
2292
  userClickTime?: number;
2203
2293
  /**
2204
- * @hidden
2294
+ * @deprecated
2295
+ * As of 2.0.0, please use {@link app.Context.team.templateId} instead
2296
+ *
2205
2297
  * Team Template ID if there was a Team Template associated with the creation of the team.
2206
2298
  */
2207
2299
  teamTemplateId?: string;
2208
2300
  /**
2209
- * @hidden
2301
+ * @deprecated
2302
+ * As of 2.0.0, please use {@link app.Context.app.userFileOpenPreference} instead
2303
+ *
2210
2304
  * Where the user prefers the file to be opened from by default during file open
2211
2305
  */
2212
2306
  userFileOpenPreference?: FileOpenPreference;
2213
2307
  /**
2214
- * @hidden
2308
+ * @deprecated
2309
+ * As of 2.0.0, please use {@link app.Context.user.displayName} instead
2310
+ *
2215
2311
  * The address book name of the current user.
2216
2312
  */
2217
2313
  userDisplayName?: string;
2218
2314
  /**
2219
- * @hidden
2315
+ * @deprecated
2316
+ * As of 2.0.0, please use {@link app.Context.sharePointSite.teamSiteId} instead
2317
+ *
2220
2318
  * Teamsite ID, aka sharepoint site id.
2221
2319
  */
2222
2320
  teamSiteId?: string;
2223
2321
  /**
2224
- * @hidden
2322
+ * @deprecated
2323
+ * As of 2.0.0, please use {@link app.Context.sharePointSite.mySiteDomain} instead
2324
+ *
2225
2325
  * The SharePoint my site domain associated with the user.
2226
2326
  */
2227
2327
  mySiteDomain?: string;
2228
2328
  /**
2229
- * @hidden
2329
+ * @deprecated
2330
+ * As of 2.0.0, please use {@link app.Context.sharePointSite.mySitePath} instead
2331
+ *
2230
2332
  * The SharePoint relative path to the current users mysite
2231
2333
  */
2232
2334
  mySitePath?: string;
@@ -2313,6 +2415,9 @@ export interface BotUrlDialogInfo extends UrlDialogInfo {
2313
2415
  */
2314
2416
  completionBotId: string;
2315
2417
  }
2418
+ /**
2419
+ * Data structure to describe dialog information
2420
+ */
2316
2421
  export interface DialogInfo {
2317
2422
  /**
2318
2423
  * The url to be rendered in the webview/iframe.
@@ -4481,7 +4586,7 @@ export namespace meeting {
4481
4586
  function registerSpeakingStateChangeHandler(handler: (speakingState: ISpeakingState) => void): void;
4482
4587
  /**
4483
4588
  * Registers a handler for changes to the selfParticipant's (current user's) raiseHandState. If the selfParticipant raises their hand, isHandRaised
4484
- * will be true. By default and if the selfParticipant hand is lowered, isHandRaised will be false. This API will return {@link RaiseHandStateChangedEvent}
4589
+ * will be true. By default and if the selfParticipant hand is lowered, isHandRaised will be false. This API will return {@link RaiseHandStateChangedEventData}
4485
4590
  * that will have the raiseHandState or an error object. Only one handler can be registered at a time. A subsequent registration
4486
4591
  * replaces an existing registration.
4487
4592
  *
@@ -4799,10 +4904,12 @@ export namespace profile {
4799
4904
 
4800
4905
  /**
4801
4906
  * Namespace to video extensibility of the SDK
4907
+ * @beta
4802
4908
  */
4803
4909
  export namespace video {
4804
4910
  /**
4805
4911
  * Represents a video frame
4912
+ * @beta
4806
4913
  */
4807
4914
  interface VideoFrame {
4808
4915
  /**
@@ -4832,21 +4939,24 @@ export namespace video {
4832
4939
  }
4833
4940
  /**
4834
4941
  * Video frame format enum, currently only support NV12
4942
+ * @beta
4835
4943
  */
4836
4944
  enum VideoFrameFormat {
4837
4945
  NV12 = 0
4838
4946
  }
4839
4947
  /**
4840
4948
  * Video frame configuration supplied to the host to customize the generated video frame parameters, like format
4949
+ * @beta
4841
4950
  */
4842
4951
  interface VideoFrameConfig {
4843
4952
  /**
4844
- * video format
4953
+ * Video format
4845
4954
  */
4846
4955
  format: VideoFrameFormat;
4847
4956
  }
4848
4957
  /**
4849
- * Video effect change type enum
4958
+ * Video effect change type enum
4959
+ * @beta
4850
4960
  */
4851
4961
  enum EffectChangeType {
4852
4962
  /**
@@ -4859,35 +4969,40 @@ export namespace video {
4859
4969
  EffectDisabled = 1
4860
4970
  }
4861
4971
  /**
4862
- * Video frame call back function definition
4972
+ * Video frame call back function definition
4973
+ * @beta
4863
4974
  */
4864
4975
  type VideoFrameCallback = (frame: VideoFrame, notifyVideoFrameProcessed: () => void, notifyError: (errorMessage: string) => void) => void;
4865
4976
  /**
4866
- * Video effect change call back function definition
4977
+ * Video effect change call back function definition
4978
+ * @beta
4867
4979
  */
4868
4980
  type VideoEffectCallBack = (effectId: string | undefined) => void;
4869
4981
  /**
4870
4982
  * Register to read the video frames in Permissions section
4983
+ * @beta
4871
4984
  * @param frameCallback - The callback to invoke when registerForVideoFrame has completed
4872
4985
  * @param config - VideoFrameConfig to customize generated video frame parameters
4873
4986
  */
4874
4987
  function registerForVideoFrame(frameCallback: VideoFrameCallback, config: VideoFrameConfig): void;
4875
4988
  /**
4876
- * video extension should call this to notify host client that the current selected effect parameter changed.
4989
+ * Video extension should call this to notify host client that the current selected effect parameter changed.
4877
4990
  * If it's pre-meeting, host client will call videoEffectCallback immediately then use the videoEffect.
4878
4991
  * If it's the in-meeting scenario, we will call videoEffectCallback when apply button clicked.
4879
- *
4992
+ * @beta
4880
4993
  * @param effectChangeType - the effect change type.
4881
4994
  * @param effectId - Newly selected effect id.
4882
4995
  */
4883
4996
  function notifySelectedVideoEffectChanged(effectChangeType: EffectChangeType, effectId: string | undefined): void;
4884
4997
  /**
4885
4998
  * Register the video effect callback, host client uses this to notify the video extension the new video effect will by applied
4999
+ * @beta
4886
5000
  * @param callback - The VideoEffectCallback to invoke when registerForVideoEffect has completed
4887
5001
  */
4888
5002
  function registerForVideoEffect(callback: VideoEffectCallBack): void;
4889
5003
  /**
4890
5004
  * Checks if video capability is supported by the host
5005
+ * @beta
4891
5006
  * @returns true if the video capability is enabled in runtime.supports.video and
4892
5007
  * false if it is disabled
4893
5008
  */
@@ -4988,6 +5103,30 @@ export namespace stageView {
4988
5103
  function open(stageViewParams: StageViewParams): Promise<void>;
4989
5104
  }
4990
5105
 
5106
+ /**
5107
+ * Contains functionality to allow web apps to store data in webview cache
5108
+ *
5109
+ * @beta
5110
+ */
5111
+ export namespace webStorage {
5112
+ /**
5113
+ * Checks if web storage gets cleared when a user logs out from host client
5114
+ *
5115
+ * @returns true is web storage gets cleared on logout and false if it does not
5116
+ *
5117
+ * @beta
5118
+ */
5119
+ function isWebStorageClearedOnUserLogOut(): boolean;
5120
+ /**
5121
+ * Checks if webStorage capability is supported by the host
5122
+ * @returns true if the webStorage capability is enabled in runtime.supports.webStorage and
5123
+ * false if it is disabled
5124
+ *
5125
+ * @beta
5126
+ */
5127
+ function isSupported(): boolean;
5128
+ }
5129
+
4991
5130
  export namespace call {
4992
5131
  enum CallModalities {
4993
5132
  Unknown = "unknown",
@@ -5401,7 +5540,7 @@ export namespace settings {
5401
5540
  function setValidityState(validityState: boolean): void;
5402
5541
  /**
5403
5542
  * @deprecated
5404
- * As of 2.0.0, please use {@link pages.config.getConfig pages.config.getConfig(): Promise\<Config\>} instead.
5543
+ * As of 2.0.0, please use {@link pages.getConfig pages.getConfig(): Promise\<InstanceConfig\>} instead.
5405
5544
  *
5406
5545
  * Gets the settings for the current instance.
5407
5546
  *
@@ -5455,8 +5594,9 @@ export namespace settings {
5455
5594
  export namespace tasks {
5456
5595
  /**
5457
5596
  * @deprecated
5458
- * As of 2.0.0, please use {@link dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): PostMessageChannel} for url based dialogs
5459
- * and {@link dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): PostMessageChannel} for bot based dialogs.
5597
+ * As of 2.0.0, please use {@link dialog.open dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for url based dialogs
5598
+ * and {@link dialog.bot.open dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for bot based dialogs. In Teams,
5599
+ * this function can be used for adaptive card based dialogs. Support for adaptive card based dialogs is coming to other hosts in the future.
5460
5600
  *
5461
5601
  * Allows an app to open the task module.
5462
5602
  *
@@ -5475,7 +5615,7 @@ export namespace tasks {
5475
5615
  function updateTask(taskInfo: TaskInfo): void;
5476
5616
  /**
5477
5617
  * @deprecated
5478
- * As of 2.0.0, please use {@link dialog.submit dialog.submit(result?: string | object, appIds?: string | string[]): void} instead.
5618
+ * As of 2.0.0, please use {@link dialog.submit} instead.
5479
5619
  *
5480
5620
  * Submit the task module.
5481
5621
  *
@@ -5483,8 +5623,24 @@ export namespace tasks {
5483
5623
  * @param appIds - Helps to validate that the call originates from the same appId as the one that invoked the task module
5484
5624
  */
5485
5625
  function submitTask(result?: string | object, appIds?: string | string[]): void;
5626
+ /**
5627
+ * Converts {@link TaskInfo} to {@link UrlDialogInfo}
5628
+ * @param taskInfo - TaskInfo object to convert
5629
+ * @returns - Converted UrlDialogInfo object
5630
+ */
5486
5631
  function getUrlDialogInfoFromTaskInfo(taskInfo: TaskInfo): UrlDialogInfo;
5632
+ /**
5633
+ * Converts {@link TaskInfo} to {@link BotUrlDialogInfo}
5634
+ * @param taskInfo - TaskInfo object to convert
5635
+ * @returns - converted BotUrlDialogInfo object
5636
+ */
5487
5637
  function getBotUrlDialogInfoFromTaskInfo(taskInfo: TaskInfo): BotUrlDialogInfo;
5638
+ /**
5639
+ * Sets the height and width of the {@link TaskInfo} object to the original height and width, if initially specified,
5640
+ * otherwise uses the height and width values corresponding to {@link TaskModuleDimension.Small}
5641
+ * @param taskInfo TaskInfo object from which to extract size info, if specified
5642
+ * @returns TaskInfo with height and width specified
5643
+ */
5488
5644
  function getDefaultSizeIfNotProvided(taskInfo: TaskInfo): TaskInfo;
5489
5645
  }
5490
5646