@microsoft/teams-js 2.31.0-beta.1 → 2.31.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +11 -1
  2. package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +11 -1
  3. package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
  4. package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +11 -0
  5. package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +5 -0
  6. package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +24 -0
  7. package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +23 -1
  8. package/dist/esm/packages/teams-js/dts/internal/uint8array-extras/uint8array-extras.d.ts +6 -0
  9. package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +20 -1
  10. package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +2 -2
  11. package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
  12. package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
  13. package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +61 -61
  14. package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +48 -48
  15. package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +2 -0
  16. package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +29 -0
  17. package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +355 -349
  18. package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +67 -68
  19. package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +104 -105
  20. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +41 -42
  21. package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +113 -114
  22. package/dist/esm/packages/teams-js/dts/private/files.d.ts +590 -582
  23. package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +42 -0
  24. package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
  25. package/dist/esm/packages/teams-js/dts/private/index.d.ts +19 -18
  26. package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -25
  27. package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +147 -142
  28. package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
  29. package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
  30. package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
  31. package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +31 -25
  32. package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +69 -70
  33. package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +219 -214
  34. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
  35. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
  36. package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
  37. package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +192 -186
  38. package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +21 -2
  39. package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +3 -2
  40. package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +1 -1
  41. package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +6 -0
  42. package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +2 -1
  43. package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +1 -0
  44. package/dist/esm/packages/teams-js/dts/public/call.d.ts +1 -0
  45. package/dist/esm/packages/teams-js/dts/public/chat.d.ts +4 -0
  46. package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +1 -0
  47. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +0 -4
  48. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +3 -2
  49. package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +0 -13
  50. package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +2 -1
  51. package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +3 -2
  52. package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +2 -1
  53. package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +3 -2
  54. package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +6 -0
  55. package/dist/esm/packages/teams-js/dts/public/index.d.ts +9 -9
  56. package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +11 -0
  57. package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +1 -0
  58. package/dist/esm/packages/teams-js/dts/public/location.d.ts +4 -3
  59. package/dist/esm/packages/teams-js/dts/public/mail.d.ts +1 -0
  60. package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +1 -0
  61. package/dist/esm/packages/teams-js/dts/public/media.d.ts +0 -3
  62. package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
  63. package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
  64. package/dist/esm/packages/teams-js/dts/public/menus.d.ts +1 -0
  65. package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +8 -0
  66. package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +2 -1
  67. package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +1 -0
  68. package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
  69. package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
  70. package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
  71. package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
  72. package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
  73. package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
  74. package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
  75. package/dist/esm/packages/teams-js/dts/public/profile.d.ts +81 -103
  76. package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +3 -0
  77. package/dist/esm/packages/teams-js/dts/public/search.d.ts +9 -0
  78. package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +1 -0
  79. package/dist/esm/packages/teams-js/dts/public/settings.d.ts +4 -3
  80. package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
  81. package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +76 -0
  82. package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
  83. package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
  84. package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +0 -8
  85. package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +4 -0
  86. package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +2 -1
  87. package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +209 -210
  88. package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
  89. package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
  90. package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +20 -22
  91. package/dist/esm/packages/teams-js/src/index.js +1 -1
  92. package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -1
  93. package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
  94. package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -1
  95. package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
  96. package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -1
  97. package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -1
  98. package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
  99. package/dist/esm/packages/teams-js/src/internal/uint8array-extras/uint8array-extras.js +1 -0
  100. package/dist/esm/packages/teams-js/src/internal/utils.js +1 -1
  101. package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -1
  102. package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -1
  103. package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
  104. package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
  105. package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -1
  106. package/dist/esm/packages/teams-js/src/private/conversations.js +1 -1
  107. package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
  108. package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
  109. package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
  110. package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
  111. package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -1
  112. package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -1
  113. package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -1
  114. package/dist/esm/packages/teams-js/src/private/files.js +1 -1
  115. package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
  116. package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
  117. package/dist/esm/packages/teams-js/src/private/logs.js +1 -1
  118. package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -1
  119. package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
  120. package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
  121. package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
  122. package/dist/esm/packages/teams-js/src/private/notifications.js +1 -1
  123. package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -1
  124. package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -1
  125. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
  126. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
  127. package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
  128. package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
  129. package/dist/esm/packages/teams-js/src/public/app/app.js +1 -1
  130. package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
  131. package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
  132. package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
  133. package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
  134. package/dist/esm/packages/teams-js/src/public/navigation.js +1 -1
  135. package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
  136. package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
  137. package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
  138. package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
  139. package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
  140. package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
  141. package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
  142. package/dist/esm/packages/teams-js/src/public/profile.js +1 -1
  143. package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
  144. package/dist/esm/packages/teams-js/src/public/runtime.js +1 -1
  145. package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
  146. package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
  147. package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
  148. package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
  149. package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
  150. package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
  151. package/dist/esm/packages/teams-js/src/public/version.js +1 -1
  152. package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -1
  153. package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
  154. package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
  155. package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
  156. package/dist/umd/MicrosoftTeams.d.ts +5751 -5160
  157. package/dist/umd/MicrosoftTeams.js +6231 -6442
  158. package/dist/umd/MicrosoftTeams.js.map +1 -1
  159. package/dist/umd/MicrosoftTeams.min.js +1 -1
  160. package/dist/umd/MicrosoftTeams.min.js.map +1 -1
  161. package/package.json +1 -1
  162. package/dist/esm/packages/teams-js/dts/private/copilot.d.ts +0 -39
  163. package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +0 -176
  164. package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +0 -107
  165. package/dist/esm/packages/teams-js/dts/private/teams.d.ts +0 -116
  166. package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +0 -906
  167. package/dist/esm/packages/teams-js/dts/public/pages.d.ts +0 -574
  168. package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +0 -124
  169. package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +0 -104
  170. package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +0 -192
  171. package/dist/esm/packages/teams-js/src/private/copilot.js +0 -1
  172. package/dist/esm/packages/teams-js/src/private/hostEntity.js +0 -1
  173. package/dist/esm/packages/teams-js/src/private/messageChannels.js +0 -1
  174. package/dist/esm/packages/teams-js/src/private/teams.js +0 -1
  175. package/dist/esm/packages/teams-js/src/public/meeting.js +0 -1
  176. package/dist/esm/packages/teams-js/src/public/pages.js +0 -1
  177. package/dist/esm/packages/teams-js/src/public/sharing.js +0 -1
  178. package/dist/esm/packages/teams-js/src/public/stageView.js +0 -1
  179. package/dist/esm/packages/teams-js/src/public/visualMedia.js +0 -1
  180. /package/dist/esm/node_modules/.pnpm/{@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5 → @rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5}/node_modules/tslib/tslib.es6.js +0 -0
@@ -1,8 +1,18 @@
1
1
  import * as app from '../public/app/app';
2
+ /**
3
+ * The response of the notify success callback.
4
+ */
5
+ export interface NotifySuccessResponse {
6
+ /**
7
+ * It shows if the callback resolved successfully in the host. If the host does not support answering back to the callback, the result is unknown.
8
+ */
9
+ hasFinishedSuccessfully: true | 'unknown';
10
+ }
2
11
  export declare function appInitializeHelper(apiVersionTag: string, validMessageOrigins?: string[]): Promise<void>;
3
12
  export declare function notifyAppLoadedHelper(apiVersionTag: string): void;
4
13
  export declare function notifyExpectedFailureHelper(apiVersionTag: string, expectedFailureRequest: app.IExpectedFailureRequest): void;
5
14
  export declare function notifyFailureHelper(apiVersiontag: string, appInitializationFailedRequest: app.IFailedRequest): void;
6
- export declare function notifySuccessHelper(apiVersionTag: string): void;
15
+ export declare function notifySuccessHelper(apiVersionTag: string): Promise<NotifySuccessResponse>;
16
+ export declare function callNotifySuccessInHost(apiVersionTag: string): Promise<NotifySuccessResponse>;
7
17
  export declare function registerOnThemeChangeHandlerHelper(apiVersionTag: string, handler: app.themeHandler): void;
8
18
  export declare function openLinkHelper(apiVersionTag: string, deepLink: string): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { FrameContexts } from '../public/constants';
2
- import { LoadContext, ResumeContext } from '../public/interfaces';
2
+ import { HostToAppPerformanceMetrics, LoadContext, ResumeContext } from '../public/interfaces';
3
3
  /**
4
4
  * @internal
5
5
  * Limited to Microsoft-internal use
@@ -54,6 +54,16 @@ export declare function registerOnThemeChangeHandler(apiVersionTag: string, hand
54
54
  * Limited to Microsoft-internal use
55
55
  */
56
56
  export declare function handleThemeChange(theme: string): void;
57
+ /**
58
+ * @internal
59
+ * Limited to Microsoft-internal use
60
+ */
61
+ export declare function registerHostToAppPerformanceMetricsHandler(handler: (metrics: HostToAppPerformanceMetrics) => void): void;
62
+ /**
63
+ * @internal
64
+ * Limited to Microsoft-internal use
65
+ */
66
+ export declare function handleHostToAppPerformanceMetrics(metrics: HostToAppPerformanceMetrics): void;
57
67
  /**
58
68
  * @internal
59
69
  * Limited to Microsoft-internal use
@@ -0,0 +1,51 @@
1
+ import { Debugger } from 'debug';
2
+ import { CallbackInformation } from './interfaces';
3
+ import { MessageRequest, MessageResponse } from './messageObjects';
4
+ import { UUID as MessageUUID } from './uuidObject';
5
+ /**
6
+ * @internal
7
+ * Limited to Microsoft-internal use
8
+ */
9
+ export default class HostToAppMessageDelayTelemetry {
10
+ private static callbackInformation;
11
+ /**
12
+ * @internal
13
+ * Limited to Microsoft-internal use
14
+ *
15
+ * Store information about a particular message.
16
+ * @param messageUUID The message id for the request.
17
+ * @param callbackInformation The information of the callback.
18
+ */
19
+ static storeCallbackInformation(messageUUID: MessageUUID, callbackInformation: CallbackInformation): void;
20
+ /**
21
+ * @internal
22
+ * Limited to Microsoft-internal use
23
+ */
24
+ static clearMessages(): void;
25
+ /**
26
+ * @internal
27
+ * Limited to Microsoft-internal use
28
+ */
29
+ static deleteMessageInformation(callbackId: MessageUUID): void;
30
+ /**
31
+ * @internal
32
+ * Limited to Microsoft-internal use
33
+ *
34
+ * Executes telemetry actions related to host to app performance metrics where event is raised in the host.
35
+ * @param message The request from the host.
36
+ * @param logger The logger in case an error occurs.
37
+ * @param endTime The ending time for calculating the elapsed time
38
+ */
39
+ static handleOneWayPerformanceMetrics(message: MessageRequest, logger: Debugger, endTime?: number): void;
40
+ /**
41
+ * @internal
42
+ * Limited to Microsoft-internal use
43
+ *
44
+ * Executes telemetry actions related to host to app performance metrics.
45
+ * @param callbackId The message id for the request.
46
+ * @param message The response from the host.
47
+ * @param logger The logger in case an error occurs.
48
+ * @param endTime The ending time for calculating the elapsed time
49
+ */
50
+ static handlePerformanceMetrics(callbackID: MessageUUID, message: MessageResponse, logger: Debugger, endTime?: number): void;
51
+ }
@@ -45,3 +45,14 @@ export interface DOMMessageEvent {
45
45
  func: string;
46
46
  args?: any[];
47
47
  }
48
+ /**
49
+ * @hidden
50
+ * Meant for providing information related to certain callback context.
51
+ *
52
+ * @internal
53
+ * Limited to Microsoft-internal use
54
+ */
55
+ export interface CallbackInformation {
56
+ name: string;
57
+ calledAt: number;
58
+ }
@@ -15,6 +15,7 @@ export interface MessageRequest {
15
15
  uuid?: MessageUUID;
16
16
  func: string;
17
17
  timestamp?: number;
18
+ monotonicTimestamp?: number;
18
19
  args?: any[];
19
20
  apiVersionTag?: string;
20
21
  isPartialResponse?: boolean;
@@ -28,6 +29,7 @@ export interface SerializedMessageRequest {
28
29
  uuidAsString?: string;
29
30
  func: string;
30
31
  timestamp?: number;
32
+ monotonicTimestamp?: number;
31
33
  args?: any[];
32
34
  apiVersionTag?: string;
33
35
  }
@@ -39,6 +41,7 @@ export interface SerializedMessageResponse {
39
41
  id: MessageID;
40
42
  uuidAsString?: string;
41
43
  args?: any[];
44
+ monotonicTimestamp?: number;
42
45
  isPartialResponse?: boolean;
43
46
  }
44
47
  /**
@@ -49,6 +52,7 @@ export interface MessageResponse {
49
52
  id: MessageID;
50
53
  uuid?: MessageUUID;
51
54
  args?: any[];
55
+ monotonicTimestamp?: number;
52
56
  isPartialResponse?: boolean;
53
57
  }
54
58
  /**
@@ -65,6 +69,7 @@ export interface MessageResponse {
65
69
  export interface MessageRequestWithRequiredProperties extends MessageRequest {
66
70
  id: MessageID;
67
71
  uuid: MessageUUID;
72
+ /** Deprecated field, is still here for backwards compatibility */
68
73
  timestamp: number;
69
74
  }
70
75
  export declare const serializeMessageRequest: (message: MessageRequest) => SerializedMessageRequest;
@@ -0,0 +1,24 @@
1
+ import { FrameInfo, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters } from '../public/interfaces';
2
+ import * as pages from '../public/pages/pages';
3
+ import { ApiVersionNumber } from './telemetry';
4
+ /**
5
+ * v2 APIs telemetry file: All of APIs in this capability file should send out API version v2 ONLY
6
+ */
7
+ export declare const pagesTelemetryVersionNumber: ApiVersionNumber;
8
+ export declare function navigateCrossDomainHelper(apiVersionTag: string, url: string): Promise<void>;
9
+ export declare function backStackNavigateBackHelper(apiVersionTag: string): Promise<void>;
10
+ export declare function tabsNavigateToTabHelper(apiVersionTag: string, tabInstance: TabInstance): Promise<void>;
11
+ /**
12
+ * @hidden
13
+ */
14
+ export declare function returnFocusHelper(apiVersionTag: string, navigateForward?: boolean): void;
15
+ export declare function getTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
16
+ export declare function getMruTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
17
+ export declare function shareDeepLinkHelper(apiVersionTag: string, deepLinkParameters: ShareDeepLinkParameters): void;
18
+ export declare function setCurrentFrameHelper(apiVersionTag: string, frameInfo: FrameInfo): void;
19
+ export declare function configSetValidityStateHelper(apiVersionTag: string, validityState: boolean): void;
20
+ export declare function getConfigHelper(apiVersionTag: string): Promise<pages.InstanceConfig>;
21
+ export declare function configSetConfigHelper(apiVersionTag: string, instanceConfig: pages.InstanceConfig): Promise<void>;
22
+ export declare function isAppNavigationParametersObject(obj: pages.AppNavigationParameters | pages.NavigateToAppParams): obj is pages.AppNavigationParameters;
23
+ export declare function convertNavigateToAppParamsToAppNavigationParameters(params: pages.NavigateToAppParams): pages.AppNavigationParameters;
24
+ export declare function convertAppNavigationParametersToNavigateToAppParams(params: pages.AppNavigationParameters): pages.NavigateToAppParams;
@@ -1,4 +1,4 @@
1
- import { profile } from '../public/profile';
1
+ import * as profile from '../public/profile';
2
2
  /**
3
3
  * @hidden
4
4
  * Validates the request parameters
@@ -9,3 +9,25 @@ import { profile } from '../public/profile';
9
9
  * Limited to Microsoft-internal use
10
10
  */
11
11
  export declare function validateShowProfileRequest(showProfileRequest: profile.ShowProfileRequest): [boolean, string | undefined];
12
+ /**
13
+ * Internal representation of a DOMRect suitable for sending via postMessage.
14
+ */
15
+ type Rectangle = {
16
+ x: number;
17
+ y: number;
18
+ width: number;
19
+ height: number;
20
+ };
21
+ /**
22
+ * @beta
23
+ * @hidden
24
+ * An internal representation of the showProfile parameters suitable for sending via postMessage.
25
+ * The hub expects to receive an object of this type.
26
+ */
27
+ export interface ShowProfileRequestInternal {
28
+ modality?: profile.Modality;
29
+ persona: profile.Persona;
30
+ targetRectangle: Rectangle;
31
+ triggerType: profile.TriggerType;
32
+ }
33
+ export {};
@@ -0,0 +1,6 @@
1
+ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
2
+ export declare function isUint8Array(value: unknown): value is Uint8Array;
3
+ export declare function base64ToUint8Array(base64String: string): Uint8Array;
4
+ export declare function uint8ArrayToString(array: Uint8Array | ArrayBuffer, encoding?: string): string;
5
+ export declare function base64ToString(base64String: string): string;
6
+ export declare function assertUint8ArrayOrArrayBuffer(value: any): void;
@@ -1,5 +1,5 @@
1
1
  import { AdaptiveCardVersion, SdkError } from '../public/interfaces';
2
- import { pages } from '../public/pages';
2
+ import * as pages from '../public/pages/pages';
3
3
  /**
4
4
  * @internal
5
5
  * Limited to Microsoft-internal use
@@ -198,3 +198,22 @@ export declare function hasScriptTags(input: string): boolean;
198
198
  * Limited to Microsoft-internal use
199
199
  */
200
200
  export declare function validateUuid(id: string | undefined | null): void;
201
+ /**
202
+ * @internal
203
+ * Limited to Microsoft-internal use
204
+ * @returns current timestamp in milliseconds
205
+ */
206
+ export declare function getCurrentTimestamp(): number | undefined;
207
+ /**
208
+ * @hidden
209
+ * @internal
210
+ * Limited to Microsoft-internal use
211
+ *
212
+ * Function to check whether the data is a primitive type or a plain object.
213
+ * Recursion is limited to a maximum depth of 1000 to prevent excessive nesting and potential stack overflow.
214
+ *
215
+ * @param value The value to check
216
+ * @returns true if the value is a primitive type or a plain object, false otherwise
217
+ *
218
+ */
219
+ export declare function isPrimitiveOrPlainObject(value: unknown, depth?: number): boolean;
@@ -1,5 +1,5 @@
1
- import { videoEffectsEx } from '../private/videoEffectsEx';
2
- import { videoEffects } from '../public/videoEffects';
1
+ import * as videoEffectsEx from '../private/videoEffectsEx';
2
+ import * as videoEffects from '../public/videoEffects';
3
3
  import { VideoPerformanceMonitor } from './videoPerformanceMonitor';
4
4
  /**
5
5
  * @hidden
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @hidden
3
+ * All properties common to Image and Video Props
4
+ *
5
+ * @beta
6
+ */
7
+ export interface VisualMediaProps {
8
+ /**
9
+ * @hidden
10
+ * The maximum number of media items that can be selected at once is limited to values that are less than or equal to the maximum visual media selection limit.
11
+ */
12
+ maxVisualMediaCount: number;
13
+ }
14
+ export declare const maxVisualMediaSelectionLimit = 10;
@@ -0,0 +1,4 @@
1
+ import { HostName } from '../public/constants';
2
+ export declare let cachedHostName: HostName | null;
3
+ export declare function getCachedHostName(): Promise<HostName>;
4
+ export declare function clearWebStorageCachedHostNameForTests(): void;
@@ -1,89 +1,89 @@
1
+ /**
2
+ * @hidden
3
+ * Module to interact with the application entities specific part of the SDK.
4
+ *
5
+ * @internal
6
+ * Limited to Microsoft-internal use
7
+ *
8
+ * @module
9
+ */
1
10
  import { SdkError } from '../public/interfaces';
2
11
  /**
3
12
  * @hidden
4
- * Namespace to interact with the application entities specific part of the SDK.
13
+ *
14
+ * Information on an app entity
5
15
  *
6
16
  * @internal
7
17
  * Limited to Microsoft-internal use
8
18
  */
9
- export declare namespace appEntity {
19
+ export interface AppEntity {
10
20
  /**
11
21
  * @hidden
12
- *
13
- * Information on an app entity
22
+ * ID of the application
14
23
  *
15
24
  * @internal
16
25
  * Limited to Microsoft-internal use
17
26
  */
18
- interface AppEntity {
19
- /**
20
- * @hidden
21
- * ID of the application
22
- *
23
- * @internal
24
- * Limited to Microsoft-internal use
25
- */
26
- appId: string;
27
- /**
28
- * @hidden
29
- * URL for the application's icon
30
- *
31
- * @internal
32
- * Limited to Microsoft-internal use
33
- */
34
- appIconUrl: string;
35
- /**
36
- * @hidden
37
- * Content URL for the app entity
38
- *
39
- * @internal
40
- * Limited to Microsoft-internal use
41
- */
42
- contentUrl: string;
43
- /**
44
- * @hidden
45
- * The display name for the app entity
46
- *
47
- * @internal
48
- * Limited to Microsoft-internal use
49
- */
50
- displayName: string;
51
- /**
52
- * @hidden
53
- * Website URL for the app entity. It is meant to be opened by the user in a browser.
54
- *
55
- * @internal
56
- * Limited to Microsoft-internal use
57
- */
58
- websiteUrl: string;
59
- }
27
+ appId: string;
60
28
  /**
61
29
  * @hidden
62
- * Hide from docs
63
- * --------
64
- * Open the Tab Gallery and retrieve the app entity
65
- * @param threadId ID of the thread where the app entity will be created
66
- * @param categories A list of application categories that will be displayed in the opened tab gallery
67
- * @param subEntityId An object that will be made available to the application being configured
68
- * through the Context's subEntityId field.
69
- * @param callback Callback that will be triggered once the app entity information is available.
70
- * The callback takes two arguments: an SdkError in case something happened (i.e.
71
- * no permissions to execute the API) and the app entity configuration, if available
30
+ * URL for the application's icon
72
31
  *
73
32
  * @internal
74
33
  * Limited to Microsoft-internal use
75
34
  */
76
- function selectAppEntity(threadId: string, categories: string[], subEntityId: string, callback: (sdkError?: SdkError, appEntity?: AppEntity) => void): void;
35
+ appIconUrl: string;
77
36
  /**
78
37
  * @hidden
38
+ * Content URL for the app entity
79
39
  *
80
- * Checks if the appEntity capability is supported by the host
81
- * @returns boolean to represent whether the appEntity capability is supported
40
+ * @internal
41
+ * Limited to Microsoft-internal use
42
+ */
43
+ contentUrl: string;
44
+ /**
45
+ * @hidden
46
+ * The display name for the app entity
82
47
  *
83
- * @throws Error if {@linkcode app.initialize} has not successfully completed
48
+ * @internal
49
+ * Limited to Microsoft-internal use
50
+ */
51
+ displayName: string;
52
+ /**
53
+ * @hidden
54
+ * Website URL for the app entity. It is meant to be opened by the user in a browser.
84
55
  *
85
56
  * @internal
86
57
  * Limited to Microsoft-internal use
87
58
  */
88
- function isSupported(): boolean;
59
+ websiteUrl: string;
89
60
  }
61
+ /**
62
+ * @hidden
63
+ * Hide from docs
64
+ * --------
65
+ * Open the Tab Gallery and retrieve the app entity
66
+ * @param threadId ID of the thread where the app entity will be created
67
+ * @param categories A list of application categories that will be displayed in the opened tab gallery
68
+ * @param subEntityId An object that will be made available to the application being configured
69
+ * through the Context's subEntityId field.
70
+ * @param callback Callback that will be triggered once the app entity information is available.
71
+ * The callback takes two arguments: an SdkError in case something happened (i.e.
72
+ * no permissions to execute the API) and the app entity configuration, if available
73
+ *
74
+ * @internal
75
+ * Limited to Microsoft-internal use
76
+ */
77
+ export declare function selectAppEntity(threadId: string, categories: string[], subEntityId: string, callback: (sdkError?: SdkError, appEntity?: AppEntity) => void): void;
78
+ /**
79
+ * @hidden
80
+ *
81
+ * Checks if the appEntity capability is supported by the host
82
+ * @returns boolean to represent whether the appEntity capability is supported
83
+ *
84
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
85
+ *
86
+ * @internal
87
+ * Limited to Microsoft-internal use
88
+ */
89
+ export declare function isSupported(): boolean;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * @hidden
3
+ * Module to interact with the conversational subEntities inside the tab
4
+ *
5
+ * @internal
6
+ * Limited to Microsoft-internal use
7
+ *
8
+ * @module
9
+ */
1
10
  import { ChatMembersInformation } from './interfaces';
2
11
  export interface OpenConversationRequest {
3
12
  /**
@@ -98,55 +107,46 @@ export interface ConversationResponse {
98
107
  }
99
108
  /**
100
109
  * @hidden
101
- * Namespace to interact with the conversational subEntities inside the tab
110
+ * Hide from docs
111
+ * --------------
112
+ * Allows the user to start or continue a conversation with each subentity inside the tab
113
+ *
114
+ * @returns Promise resolved upon completion
102
115
  *
103
116
  * @internal
104
117
  * Limited to Microsoft-internal use
105
118
  */
106
- export declare namespace conversations {
107
- /**
108
- * @hidden
109
- * Hide from docs
110
- * --------------
111
- * Allows the user to start or continue a conversation with each subentity inside the tab
112
- *
113
- * @returns Promise resolved upon completion
114
- *
115
- * @internal
116
- * Limited to Microsoft-internal use
117
- */
118
- function openConversation(openConversationRequest: OpenConversationRequest): Promise<void>;
119
- /**
120
- * @hidden
121
- *
122
- * Allows the user to close the conversation in the right pane
123
- *
124
- * @internal
125
- * Limited to Microsoft-internal use
126
- */
127
- function closeConversation(): void;
128
- /**
129
- * @hidden
130
- * Hide from docs
131
- * ------
132
- * Allows retrieval of information for all chat members.
133
- * NOTE: This value should be used only as a hint as to who the members are
134
- * and never as proof of membership in case your app is being hosted by a malicious party.
135
- *
136
- * @returns Promise resolved with information on all chat members
137
- *
138
- * @internal
139
- * Limited to Microsoft-internal use
140
- */
141
- function getChatMembers(): Promise<ChatMembersInformation>;
142
- /**
143
- * Checks if the conversations capability is supported by the host
144
- * @returns boolean to represent whether conversations capability is supported
145
- *
146
- * @throws Error if {@linkcode app.initialize} has not successfully completed
147
- *
148
- * @internal
149
- * Limited to Microsoft-internal use
150
- */
151
- function isSupported(): boolean;
152
- }
119
+ export declare function openConversation(openConversationRequest: OpenConversationRequest): Promise<void>;
120
+ /**
121
+ * @hidden
122
+ *
123
+ * Allows the user to close the conversation in the right pane
124
+ *
125
+ * @internal
126
+ * Limited to Microsoft-internal use
127
+ */
128
+ export declare function closeConversation(): void;
129
+ /**
130
+ * @hidden
131
+ * Hide from docs
132
+ * ------
133
+ * Allows retrieval of information for all chat members.
134
+ * NOTE: This value should be used only as a hint as to who the members are
135
+ * and never as proof of membership in case your app is being hosted by a malicious party.
136
+ *
137
+ * @returns Promise resolved with information on all chat members
138
+ *
139
+ * @internal
140
+ * Limited to Microsoft-internal use
141
+ */
142
+ export declare function getChatMembers(): Promise<ChatMembersInformation>;
143
+ /**
144
+ * Checks if the conversations capability is supported by the host
145
+ * @returns boolean to represent whether conversations capability is supported
146
+ *
147
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
148
+ *
149
+ * @internal
150
+ * Limited to Microsoft-internal use
151
+ */
152
+ export declare function isSupported(): boolean;
@@ -0,0 +1,2 @@
1
+ import * as eligibility from './eligibility';
2
+ export { eligibility };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @beta
3
+ * @hidden
4
+ * User information required by specific apps
5
+ * @internal
6
+ * Limited to Microsoft-internal use
7
+ * @module
8
+ */
9
+ import { AppEligibilityInformation } from '../../public/interfaces';
10
+ /**
11
+ * @hidden
12
+ * @internal
13
+ * Limited to Microsoft-internal use
14
+ * @beta
15
+ * @returns boolean to represent whether copilot.eligibility capability is supported
16
+ *
17
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
18
+ */
19
+ export declare function isSupported(): boolean;
20
+ /**
21
+ * @hidden
22
+ * @internal
23
+ * Limited to Microsoft-internal use
24
+ * @beta
25
+ * @returns the copilot eligibility information about the user
26
+ *
27
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
28
+ */
29
+ export declare function getEligibilityInfo(): Promise<AppEligibilityInformation>;