@microsoft/teams-js 2.30.0 → 2.31.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/dist/esm/_virtual/__polyfill-node.os.js +1 -0
  2. package/dist/esm/_virtual/_polyfill-node.os.js +1 -0
  3. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js +1 -1
  4. package/dist/esm/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js +1 -0
  5. package/dist/esm/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js +1 -0
  6. package/dist/esm/packages/teams-js/dts/index.d.ts +2 -0
  7. package/dist/esm/packages/teams-js/dts/internal/VideoFrameTypes.d.ts +78 -0
  8. package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +8 -0
  9. package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +16 -0
  10. package/dist/esm/packages/teams-js/dts/internal/communication.d.ts +162 -0
  11. package/dist/esm/packages/teams-js/dts/internal/constants.d.ts +146 -0
  12. package/dist/esm/packages/teams-js/dts/internal/deepLinkConstants.d.ts +26 -0
  13. package/dist/esm/packages/teams-js/dts/internal/deepLinkUtilities.d.ts +4 -0
  14. package/dist/esm/packages/teams-js/dts/internal/emailAddressValidation.d.ts +1 -0
  15. package/dist/esm/packages/teams-js/dts/internal/globalVars.d.ts +12 -0
  16. package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +80 -0
  17. package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +47 -0
  18. package/dist/esm/packages/teams-js/dts/internal/internalAPIs.d.ts +61 -0
  19. package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +94 -0
  20. package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +95 -0
  21. package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +73 -0
  22. package/dist/esm/packages/teams-js/dts/internal/nestedAppAuthUtils.d.ts +105 -0
  23. package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +11 -0
  24. package/dist/esm/packages/teams-js/dts/internal/responseHandler.d.ts +30 -0
  25. package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +344 -0
  26. package/dist/esm/packages/teams-js/dts/internal/typeCheckUtilities.d.ts +1 -0
  27. package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +200 -0
  28. package/dist/esm/packages/teams-js/dts/internal/uuidObject.d.ts +11 -0
  29. package/dist/esm/packages/teams-js/dts/internal/validOrigins.d.ts +6 -0
  30. package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +31 -0
  31. package/dist/esm/packages/teams-js/dts/internal/videoFrameTick.d.ts +10 -0
  32. package/dist/esm/packages/teams-js/dts/internal/videoPerformanceMonitor.d.ts +54 -0
  33. package/dist/esm/packages/teams-js/dts/internal/videoPerformanceStatistics.d.ts +49 -0
  34. package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +89 -0
  35. package/dist/esm/packages/teams-js/dts/private/constants.d.ts +9 -0
  36. package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +152 -0
  37. package/dist/esm/packages/teams-js/dts/private/copilot.d.ts +39 -0
  38. package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +378 -0
  39. package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +75 -0
  40. package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +112 -0
  41. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +49 -0
  42. package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +123 -0
  43. package/dist/esm/packages/teams-js/dts/private/files.d.ts +758 -0
  44. package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +176 -0
  45. package/dist/esm/packages/teams-js/dts/private/index.d.ts +20 -0
  46. package/dist/esm/packages/teams-js/dts/private/interfaces.d.ts +250 -0
  47. package/dist/esm/packages/teams-js/dts/private/logs.d.ts +25 -0
  48. package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +203 -0
  49. package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +107 -0
  50. package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +26 -0
  51. package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +81 -0
  52. package/dist/esm/packages/teams-js/dts/private/privateAPIs.d.ts +60 -0
  53. package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +298 -0
  54. package/dist/esm/packages/teams-js/dts/private/teams.d.ts +116 -0
  55. package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +244 -0
  56. package/dist/esm/packages/teams-js/dts/public/adaptiveCards.d.ts +6 -0
  57. package/dist/esm/packages/teams-js/dts/public/app.d.ts +592 -0
  58. package/dist/esm/packages/teams-js/dts/public/appId.d.ts +33 -0
  59. package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +57 -0
  60. package/dist/esm/packages/teams-js/dts/public/appInstallDialog.d.ts +18 -0
  61. package/dist/esm/packages/teams-js/dts/public/appWindow.d.ts +66 -0
  62. package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +409 -0
  63. package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +53 -0
  64. package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +40 -0
  65. package/dist/esm/packages/teams-js/dts/public/call.d.ts +53 -0
  66. package/dist/esm/packages/teams-js/dts/public/chat.d.ts +66 -0
  67. package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +34 -0
  68. package/dist/esm/packages/teams-js/dts/public/constants.d.ts +179 -0
  69. package/dist/esm/packages/teams-js/dts/public/dialog.d.ts +286 -0
  70. package/dist/esm/packages/teams-js/dts/public/emailAddress.d.ts +12 -0
  71. package/dist/esm/packages/teams-js/dts/public/geoLocation.d.ts +100 -0
  72. package/dist/esm/packages/teams-js/dts/public/index.d.ts +44 -0
  73. package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +1133 -0
  74. package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +221 -0
  75. package/dist/esm/packages/teams-js/dts/public/location.d.ts +86 -0
  76. package/dist/esm/packages/teams-js/dts/public/mail.d.ts +95 -0
  77. package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +321 -0
  78. package/dist/esm/packages/teams-js/dts/public/media.d.ts +440 -0
  79. package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +906 -0
  80. package/dist/esm/packages/teams-js/dts/public/menus.d.ts +188 -0
  81. package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +58 -0
  82. package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +45 -0
  83. package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +15 -0
  84. package/dist/esm/packages/teams-js/dts/public/pages.d.ts +574 -0
  85. package/dist/esm/packages/teams-js/dts/public/people.d.ts +75 -0
  86. package/dist/esm/packages/teams-js/dts/public/profile.d.ts +127 -0
  87. package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +218 -0
  88. package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +207 -0
  89. package/dist/esm/packages/teams-js/dts/public/search.d.ts +91 -0
  90. package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +32 -0
  91. package/dist/esm/packages/teams-js/dts/public/serializable.interface.d.ts +17 -0
  92. package/dist/esm/packages/teams-js/dts/public/settings.d.ts +101 -0
  93. package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +124 -0
  94. package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +104 -0
  95. package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +62 -0
  96. package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +77 -0
  97. package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +119 -0
  98. package/dist/esm/packages/teams-js/dts/public/version.d.ts +5 -0
  99. package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +213 -0
  100. package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +192 -0
  101. package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +27 -0
  102. package/dist/esm/packages/teams-js/src/index.js +1 -1
  103. package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -0
  104. package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
  105. package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -1
  106. package/dist/esm/packages/teams-js/src/internal/responseHandler.js +1 -0
  107. package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
  108. package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
  109. package/dist/esm/packages/teams-js/src/private/hostEntity.js +1 -1
  110. package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
  111. package/dist/esm/packages/teams-js/src/public/app.js +1 -1
  112. package/dist/esm/packages/teams-js/src/public/appId.js +1 -1
  113. package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
  114. package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -1
  115. package/dist/esm/packages/teams-js/src/public/authentication.js +1 -1
  116. package/dist/esm/packages/teams-js/src/public/barCode.js +1 -1
  117. package/dist/esm/packages/teams-js/src/public/calendar.js +1 -1
  118. package/dist/esm/packages/teams-js/src/public/call.js +1 -1
  119. package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
  120. package/dist/esm/packages/teams-js/src/public/constants.js +1 -1
  121. package/dist/esm/packages/teams-js/src/public/pages.js +1 -1
  122. package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
  123. package/dist/esm/packages/teams-js/src/public/serializable.interface.js +1 -0
  124. package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
  125. package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
  126. package/dist/esm/packages/teams-js/src/public/version.js +1 -1
  127. package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
  128. package/dist/umd/MicrosoftTeams.d.ts +10740 -10768
  129. package/dist/umd/MicrosoftTeams.js +1571 -1359
  130. package/dist/umd/MicrosoftTeams.js.map +1 -1
  131. package/dist/umd/MicrosoftTeams.min.js +1 -1
  132. package/dist/umd/MicrosoftTeams.min.js.map +1 -1
  133. package/package.json +1 -51
  134. package/dist/esm/node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js +0 -1
@@ -0,0 +1,176 @@
1
+ import { TabInstance } from '../public/interfaces';
2
+ /**
3
+ * @hidden
4
+ * @internal
5
+ * @beta
6
+ * Limited to Microsoft-internal use
7
+ *
8
+ * This capability allows an app to associate apps with a host entity, such as a Teams channel or chat, and configure them as needed.
9
+ */
10
+ export declare namespace hostEntity {
11
+ export enum AppTypes {
12
+ edu = "EDU"
13
+ }
14
+ /**
15
+ * Id of the teams entity like channel, chat
16
+ */
17
+ interface TeamsEntityId {
18
+ threadId: string;
19
+ }
20
+ /**
21
+ * Id of message in which channel meeting is created
22
+ */
23
+ export interface TeamsChannelMeetingEntityIds extends TeamsEntityId {
24
+ parentMessageId: string;
25
+ }
26
+ /**
27
+ * Id of the host entity
28
+ */
29
+ export type HostEntityIds = TeamsEntityId | TeamsChannelMeetingEntityIds;
30
+ /**
31
+ * @hidden
32
+ * @internal
33
+ * @beta
34
+ * Limited to Microsoft-internal use
35
+ *
36
+ * CRUD operations for tabs associated with apps
37
+ */
38
+ export namespace tab {
39
+ /**
40
+ * Represents information about a static tab instance
41
+ */
42
+ interface StaticTabInstance extends TabInstance {
43
+ tabType: 'StaticTab';
44
+ }
45
+ /**
46
+ * Represents information about a configurable tab instance
47
+ */
48
+ interface ConfigurableTabInstance extends TabInstance {
49
+ tabType: 'ConfigurableTab';
50
+ }
51
+ /**
52
+ * Represents information about a tab instance associated with a host entity like chat, channel or meeting. Cab be a configurable tab or static tab.
53
+ */
54
+ type HostEntityTabInstance = StaticTabInstance | ConfigurableTabInstance;
55
+ /**
56
+ * Represents all tabs associated with a host entity like chat, channel or meeting
57
+ */
58
+ interface HostEntityTabInstances {
59
+ allTabs: HostEntityTabInstance[];
60
+ }
61
+ /**
62
+ * @hidden
63
+ * @internal
64
+ * @beta
65
+ * Limited to Microsoft-internal use
66
+ *
67
+ * Launches host-owned UI that lets a user select an app, installs it if required,
68
+ * runs through app configuration if required, and then associates the app with the threadId provided
69
+ *
70
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
71
+ *
72
+ * @param appTypes What type of applications to show the user. If EDU is passed as appType, only apps supported by EDU tenant are shown.
73
+ * If no value is passed, all apps are shown.
74
+ *
75
+ * @returns The HostEntityTabInstance of the newly associated app
76
+ *
77
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid, user cancels operation or installing
78
+ * or configuring or adding tab fails
79
+ */
80
+ function addAndConfigure(hostEntityIds: HostEntityIds, appTypes?: AppTypes[]): Promise<HostEntityTabInstance>;
81
+ /**
82
+ * @hidden
83
+ * @internal
84
+ * @beta
85
+ * Limited to Microsoft-internal use
86
+ *
87
+ * Returns all tab instances associated with a host entity
88
+ *
89
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
90
+ *
91
+ * @returns Object with array of HostEntityTabInstance's associated with a host entity
92
+ *
93
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid or fetching tabs fails
94
+ */
95
+ function getAll(hostEntityIds: HostEntityIds): Promise<HostEntityTabInstances>;
96
+ /**
97
+ * @hidden
98
+ * @internal
99
+ * @beta
100
+ * Limited to Microsoft-internal use
101
+ *
102
+ * Launches host-owned UI that lets a user re-configure the contentUrl of the tab
103
+ *
104
+ * @param tab Configurable tab instance that needs to be updated
105
+ *
106
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
107
+ *
108
+ * @returns The HostEntityTabInstance of the updated tab
109
+ *
110
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid, user cancels operation,
111
+ * re-configuring tab fails or if tab is a static tab
112
+ */
113
+ function reconfigure(tab: ConfigurableTabInstance, hostEntityIds: HostEntityIds): Promise<ConfigurableTabInstance>;
114
+ /**
115
+ * @hidden
116
+ * @internal
117
+ * @beta
118
+ * Limited to Microsoft-internal use
119
+ *
120
+ * Launches host-owned UI that lets a user rename the tab
121
+ *
122
+ * @param tab Configurable tab instance that needs to be updated
123
+ *
124
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
125
+ *
126
+ * @returns The HostEntityTabInstance of the updated tab
127
+ *
128
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid, user cancels operation,
129
+ * re-naming tab fails or if tab is a static tab
130
+ */
131
+ function rename(tab: ConfigurableTabInstance, hostEntityIds: HostEntityIds): Promise<ConfigurableTabInstance>;
132
+ /**
133
+ * @hidden
134
+ * @internal
135
+ * @beta
136
+ * Limited to Microsoft-internal use
137
+ *
138
+ * Launches host-owned UI that lets a user remove the tab
139
+ *
140
+ * @param tab tab instance that needs to be updated. Can be static tab or configurable tab.
141
+ *
142
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
143
+ *
144
+ * @returns Boolean. Returns true if removing tab was successful
145
+ *
146
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid, user cancels operation or
147
+ * removing tab fails
148
+ */
149
+ function remove(tab: HostEntityTabInstance, hostEntityIds: HostEntityIds): Promise<boolean>;
150
+ /**
151
+ * @hidden
152
+ * @internal
153
+ * @beta
154
+ * Limited to Microsoft-internal use
155
+ *
156
+ * Checks if the hostEntity.tab capability is supported by the host
157
+ * @returns boolean to represent whether the histEntity and hostEntity.tab capability is supported
158
+ *
159
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
160
+ */
161
+ function isSupported(): boolean;
162
+ }
163
+ /**
164
+ * @hidden
165
+ * @internal
166
+ * @beta
167
+ * Limited to Microsoft-internal use
168
+ *
169
+ * Checks if the hostEntity capability is supported by the host
170
+ * @returns boolean to represent whether the hostEntity capability is supported
171
+ *
172
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
173
+ */
174
+ export function isSupported(): boolean;
175
+ export {};
176
+ }
@@ -0,0 +1,20 @@
1
+ export { logs } from './logs';
2
+ export { ChatMembersInformation, FilePreviewParameters, NotificationTypes, ShowNotificationParameters, TeamInstanceParameters, ThreadMember, UserJoinedTeamsInformation, ViewerActionTypes, UserSettingTypes, } from './interfaces';
3
+ export { sendCustomMessage, sendCustomEvent, registerCustomHandler, uploadCustomApp, registerUserSettingsChangeHandler, openFilePreview, } from './privateAPIs';
4
+ export { conversations, OpenConversationRequest } from './conversations';
5
+ export { copilot } from './copilot';
6
+ export { externalAppAuthentication } from './externalAppAuthentication';
7
+ export { externalAppAuthenticationForCEA } from './externalAppAuthenticationForCEA';
8
+ export { externalAppCardActions } from './externalAppCardActions';
9
+ export { externalAppCardActionsForCEA } from './externalAppCardActionsForCEA';
10
+ export { externalAppCommands } from './externalAppCommands';
11
+ export { files } from './files';
12
+ export { meetingRoom } from './meetingRoom';
13
+ export { messageChannels } from './messageChannels';
14
+ export { notifications } from './notifications';
15
+ export { otherAppStateChange } from './otherAppStateChange';
16
+ export { remoteCamera } from './remoteCamera';
17
+ export { appEntity } from './appEntity';
18
+ export { teams } from './teams';
19
+ export { videoEffectsEx } from './videoEffectsEx';
20
+ export { hostEntity } from './hostEntity';
@@ -0,0 +1,250 @@
1
+ import { FileOpenPreference, TeamInformation } from '../public/interfaces';
2
+ /**
3
+ * @hidden
4
+ *
5
+ * Information about all members in a chat
6
+ *
7
+ * @internal
8
+ * Limited to Microsoft-internal use
9
+ */
10
+ export interface ChatMembersInformation {
11
+ members: ThreadMember[];
12
+ }
13
+ /**
14
+ * @hidden
15
+ *
16
+ * Information about a chat member
17
+ *
18
+ * @internal
19
+ * Limited to Microsoft-internal use
20
+ */
21
+ export interface ThreadMember {
22
+ /**
23
+ * @hidden
24
+ * The member's user principal name in the current tenant.
25
+ *
26
+ * @internal
27
+ * Limited to Microsoft-internal use
28
+ */
29
+ upn: string;
30
+ }
31
+ /**
32
+ * @hidden
33
+ *
34
+ * @internal
35
+ * Limited to Microsoft-internal use
36
+ */
37
+ export declare enum NotificationTypes {
38
+ fileDownloadStart = "fileDownloadStart",
39
+ fileDownloadComplete = "fileDownloadComplete"
40
+ }
41
+ /**
42
+ * @hidden
43
+ *
44
+ * @internal
45
+ * Limited to Microsoft-internal use
46
+ */
47
+ export interface ShowNotificationParameters {
48
+ message: string;
49
+ notificationType: NotificationTypes;
50
+ }
51
+ /**
52
+ * @hidden
53
+ *
54
+ * @internal
55
+ * Limited to Microsoft-internal use
56
+ */
57
+ export declare enum ViewerActionTypes {
58
+ view = "view",
59
+ edit = "edit",
60
+ editNew = "editNew"
61
+ }
62
+ /**
63
+ * @hidden
64
+ *
65
+ * User setting changes that can be subscribed to
66
+ */
67
+ export declare enum UserSettingTypes {
68
+ /**
69
+ * @hidden
70
+ * Use this key to subscribe to changes in user's file open preference
71
+ *
72
+ * @internal
73
+ * Limited to Microsoft-internal use
74
+ */
75
+ fileOpenPreference = "fileOpenPreference",
76
+ /**
77
+ * @hidden
78
+ * Use this key to subscribe to theme changes
79
+ *
80
+ * @internal
81
+ * Limited to Microsoft-internal use
82
+ */
83
+ theme = "theme"
84
+ }
85
+ /**
86
+ * @hidden
87
+ *
88
+ * @internal
89
+ * Limited to Microsoft-internal use
90
+ */
91
+ export interface FilePreviewParameters {
92
+ /**
93
+ * @hidden
94
+ * The developer-defined unique ID for the file.
95
+ *
96
+ * @internal
97
+ * Limited to Microsoft-internal use
98
+ */
99
+ entityId?: string;
100
+ /**
101
+ * @hidden
102
+ * The display name of the file.
103
+ *
104
+ * @internal
105
+ * Limited to Microsoft-internal use
106
+ */
107
+ title?: string;
108
+ /**
109
+ * @hidden
110
+ * An optional description of the file.
111
+ *
112
+ * @internal
113
+ * Limited to Microsoft-internal use
114
+ */
115
+ description?: string;
116
+ /**
117
+ * @hidden
118
+ * The file extension; e.g. pptx, docx, etc.
119
+ *
120
+ * @internal
121
+ * Limited to Microsoft-internal use
122
+ */
123
+ type: string;
124
+ /**
125
+ * @hidden
126
+ * The size of the file in bytes.
127
+ *
128
+ * @internal
129
+ * Limited to Microsoft-internal use
130
+ */
131
+ sizeInBytes?: number;
132
+ /**
133
+ * @hidden
134
+ * A url to the source of the file, used to open the content in the user's default browser
135
+ *
136
+ * @internal
137
+ * Limited to Microsoft-internal use
138
+ */
139
+ objectUrl: string;
140
+ /**
141
+ * @hidden
142
+ * Optional; an alternate self-authenticating url used to preview the file in Mobile clients and offer it for download by the user
143
+ *
144
+ * @internal
145
+ * Limited to Microsoft-internal use
146
+ */
147
+ downloadUrl?: string;
148
+ /**
149
+ * @hidden
150
+ * Optional; an alternate url optimized for previewing the file in web and desktop clients
151
+ *
152
+ * @internal
153
+ * Limited to Microsoft-internal use
154
+ */
155
+ webPreviewUrl?: string;
156
+ /**
157
+ * @hidden
158
+ * Optional; an alternate url that allows editing of the file in web and desktop clients
159
+ *
160
+ * @internal
161
+ * Limited to Microsoft-internal use
162
+ */
163
+ webEditUrl?: string;
164
+ /**
165
+ * @hidden
166
+ * Optional; the base url of the site where the file is hosted
167
+ *
168
+ * @internal
169
+ * Limited to Microsoft-internal use
170
+ */
171
+ baseUrl?: string;
172
+ /**
173
+ * @hidden
174
+ * Deprecated; prefer using {@linkcode viewerAction} instead
175
+ * Optional; indicates whether the file should be opened in edit mode
176
+ *
177
+ * @internal
178
+ * Limited to Microsoft-internal use
179
+ */
180
+ editFile?: boolean;
181
+ /**
182
+ * @hidden
183
+ * Optional; the developer-defined unique ID for the sub-entity to return to when the file stage closes.
184
+ * This field should be used to restore to a specific state within an entity, such as scrolling to or activating a specific piece of content.
185
+ *
186
+ * @internal
187
+ * Limited to Microsoft-internal use
188
+ */
189
+ subEntityId?: string;
190
+ /**
191
+ * @hidden
192
+ * Optional; indicates the mode in which file should be opened. Takes precedence over edit mode.
193
+ *
194
+ * @internal
195
+ * Limited to Microsoft-internal use
196
+ */
197
+ viewerAction?: ViewerActionTypes;
198
+ /**
199
+ * @hidden
200
+ * Optional; indicates how user prefers to open the file
201
+ *
202
+ * @internal
203
+ * Limited to Microsoft-internal use
204
+ */
205
+ fileOpenPreference?: FileOpenPreference;
206
+ /**
207
+ * @hidden
208
+ * Optional; id required to enable conversation button in files. Will be channel id in case file is shared in a channel or the chat id in p2p chat case.
209
+ *
210
+ * @internal
211
+ * Limited to Microsoft-internal use
212
+ */
213
+ conversationId?: string;
214
+ }
215
+ /**
216
+ * @hidden
217
+ *
218
+ * Query parameters used when fetching team information
219
+ *
220
+ * @internal
221
+ * Limited to Microsoft-internal use
222
+ */
223
+ export interface TeamInstanceParameters {
224
+ /**
225
+ * @hidden
226
+ * Flag allowing to select favorite teams only
227
+ *
228
+ * @internal
229
+ * Limited to Microsoft-internal use
230
+ */
231
+ favoriteTeamsOnly?: boolean;
232
+ }
233
+ /**
234
+ * @hidden
235
+ *
236
+ * Information on userJoined Teams
237
+ *
238
+ * @internal
239
+ * Limited to Microsoft-internal use
240
+ */
241
+ export interface UserJoinedTeamsInformation {
242
+ /**
243
+ * @hidden
244
+ * List of team information
245
+ *
246
+ * @internal
247
+ * Limited to Microsoft-internal use
248
+ */
249
+ userJoinedTeams: TeamInformation[];
250
+ }
@@ -0,0 +1,25 @@
1
+ export declare namespace logs {
2
+ /**
3
+ * @hidden
4
+ *
5
+ * Registers a handler for getting app log
6
+ *
7
+ * @param handler - The handler to invoke to get the app log
8
+ *
9
+ * @internal
10
+ * Limited to Microsoft-internal use
11
+ */
12
+ function registerGetLogHandler(handler: () => string): void;
13
+ /**
14
+ * @hidden
15
+ *
16
+ * Checks if the logs capability is supported by the host
17
+ * @returns boolean to represent whether the logs capability is supported
18
+ *
19
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
20
+ *
21
+ * @internal
22
+ * Limited to Microsoft-internal use
23
+ */
24
+ function isSupported(): boolean;
25
+ }
@@ -0,0 +1,203 @@
1
+ export declare namespace meetingRoom {
2
+ /**
3
+ * @hidden
4
+ *
5
+ * Data structure to represent a meeting room.
6
+ *
7
+ * @internal
8
+ * Limited to Microsoft-internal use
9
+ */
10
+ export interface MeetingRoomInfo {
11
+ /**
12
+ * @hidden
13
+ * Endpoint id of the meeting room.
14
+ *
15
+ * @internal
16
+ * Limited to Microsoft-internal use
17
+ */
18
+ endpointId: string;
19
+ /**
20
+ * @hidden
21
+ * Device name of the meeting room.
22
+ *
23
+ * @internal
24
+ * Limited to Microsoft-internal use
25
+ */
26
+ deviceName: string;
27
+ /**
28
+ * @hidden
29
+ * Client type of the meeting room.
30
+ *
31
+ * @internal
32
+ * Limited to Microsoft-internal use
33
+ */
34
+ clientType: string;
35
+ /**
36
+ * @hidden
37
+ * Client version of the meeting room.
38
+ *
39
+ * @internal
40
+ * Limited to Microsoft-internal use
41
+ */
42
+ clientVersion: string;
43
+ }
44
+ /**
45
+ * @hidden
46
+ * Type of Media control capabilities of a meeting room.
47
+ */
48
+ type MediaControls = 'toggleMute' | 'toggleCamera' | 'toggleCaptions' | 'volume';
49
+ /**
50
+ * @hidden
51
+ * Types of Stage Layout control capabilities of a meeting room.
52
+ */
53
+ type StageLayoutControls = 'showVideoGallery' | 'showContent' | 'showVideoGalleryAndContent' | 'showLargeGallery' | 'showTogether';
54
+ /**
55
+ * @hidden
56
+ * Types of Meeting Control capabilities of a meeting room.
57
+ */
58
+ type MeetingControls = 'leaveMeeting';
59
+ /**
60
+ * @hidden
61
+ * Types of Stage Layout State of a meeting room.
62
+ */
63
+ type StageLayoutStates = 'Gallery' | 'Content + gallery' | 'Content' | 'Large gallery' | 'Together mode';
64
+ /**
65
+ * @hidden
66
+ * Data structure to represent capabilities of a meeting room.
67
+ *
68
+ * @internal
69
+ * Limited to Microsoft-internal use
70
+ */
71
+ export interface MeetingRoomCapability {
72
+ /**
73
+ * @hidden
74
+ * Media control capabilities, value can be "toggleMute", "toggleCamera", "toggleCaptions", "volume".
75
+ *
76
+ * @internal
77
+ * Limited to Microsoft-internal use
78
+ */
79
+ mediaControls: MediaControls[];
80
+ /**
81
+ * @hidden
82
+ * Main stage layout control capabilities, value can be "showVideoGallery", "showContent", "showVideoGalleryAndContent", "showLargeGallery", "showTogether".
83
+ *
84
+ * @internal
85
+ * Limited to Microsoft-internal use
86
+ */
87
+ stageLayoutControls: StageLayoutControls[];
88
+ /**
89
+ * @hidden
90
+ * Meeting control capabilities, value can be "leaveMeeting".
91
+ *
92
+ * @internal
93
+ * Limited to Microsoft-internal use
94
+ */
95
+ meetingControls: MeetingControls[];
96
+ }
97
+ /**
98
+ * @hidden
99
+ * Data structure to represent states of a meeting room.
100
+ *
101
+ * @internal
102
+ * Limited to Microsoft-internal use
103
+ */
104
+ export interface MeetingRoomState {
105
+ /**
106
+ * @hidden
107
+ * Current mute state, true: mute, false: unmute.
108
+ *
109
+ * @internal
110
+ * Limited to Microsoft-internal use
111
+ */
112
+ toggleMute: boolean;
113
+ /**
114
+ * @hidden
115
+ * Current camera state, true: camera on, false: camera off.
116
+ *
117
+ * @internal
118
+ * Limited to Microsoft-internal use
119
+ */
120
+ toggleCamera: boolean;
121
+ /**
122
+ * @hidden
123
+ * Current captions state, true: captions on, false: captions off.
124
+ *
125
+ * @internal
126
+ * Limited to Microsoft-internal use
127
+ */
128
+ toggleCaptions: boolean;
129
+ /**
130
+ * @hidden
131
+ * Current main stage layout state, value can be one of "Gallery", "Content + gallery", "Content", "Large gallery" and "Together mode".
132
+ *
133
+ * @internal
134
+ * Limited to Microsoft-internal use
135
+ */
136
+ stageLayout: StageLayoutStates;
137
+ /**
138
+ * @hidden
139
+ * Current leaveMeeting state, true: leave, false: no-op.
140
+ *
141
+ * @internal
142
+ * Limited to Microsoft-internal use
143
+ */
144
+ leaveMeeting: boolean;
145
+ }
146
+ /**
147
+ * @hidden
148
+ * Fetch the meeting room info that paired with current client.
149
+ *
150
+ * @returns Promise resolved with meeting room info or rejected with SdkError value
151
+ *
152
+ * @internal
153
+ * Limited to Microsoft-internal use
154
+ */
155
+ export function getPairedMeetingRoomInfo(): Promise<MeetingRoomInfo>;
156
+ /**
157
+ * @hidden
158
+ * Send a command to paired meeting room.
159
+ *
160
+ * @param commandName The command name.
161
+ * @returns Promise resolved upon completion or rejected with SdkError value
162
+ *
163
+ * @internal
164
+ * Limited to Microsoft-internal use
165
+ */
166
+ export function sendCommandToPairedMeetingRoom(commandName: string): Promise<void>;
167
+ /**
168
+ * @hidden
169
+ * Registers a handler for meeting room capabilities update.
170
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
171
+ *
172
+ * @param handler The handler to invoke when the capabilities of meeting room update.
173
+ *
174
+ * @internal
175
+ * Limited to Microsoft-internal use
176
+ */
177
+ export function registerMeetingRoomCapabilitiesUpdateHandler(handler: (capabilities: MeetingRoomCapability) => void): void;
178
+ /**
179
+ * @hidden
180
+ * Hide from docs
181
+ * Registers a handler for meeting room states update.
182
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
183
+ *
184
+ * @param handler The handler to invoke when the states of meeting room update.
185
+ *
186
+ * @internal
187
+ * Limited to Microsoft-internal use
188
+ */
189
+ export function registerMeetingRoomStatesUpdateHandler(handler: (states: MeetingRoomState) => void): void;
190
+ /**
191
+ * @hidden
192
+ *
193
+ * Checks if the meetingRoom capability is supported by the host
194
+ * @returns boolean to represent whether the meetingRoom capability is supported
195
+ *
196
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
197
+ *
198
+ * @internal
199
+ * Limited to Microsoft-internal use
200
+ */
201
+ export function isSupported(): boolean;
202
+ export {};
203
+ }