@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,244 @@
1
+ import { DefaultVideoEffectCallBack as VideoEffectCallBack } from '../internal/videoEffectsUtils';
2
+ import { videoEffects } from '../public/videoEffects';
3
+ export declare namespace videoEffectsEx {
4
+ const frameProcessingTimeoutInMs = 2000;
5
+ /**
6
+ * @hidden
7
+ * Error level when notifying errors to the host, the host will decide what to do acording to the error level.
8
+ * @beta
9
+ *
10
+ * @internal
11
+ * Limited to Microsoft-internal use
12
+ */
13
+ enum ErrorLevel {
14
+ Fatal = "fatal",
15
+ Warn = "warn"
16
+ }
17
+ /**
18
+ * @hidden
19
+ * Video frame configuration supplied to the host to customize the generated video frame parameters
20
+ * @beta
21
+ *
22
+ * @internal
23
+ * Limited to Microsoft-internal use
24
+ */
25
+ interface VideoFrameConfig extends videoEffects.VideoFrameConfig {
26
+ /**
27
+ * @hidden
28
+ * Flag to indicate use camera stream to synthesize video frame or not.
29
+ * Default value is true.
30
+ * @beta
31
+ *
32
+ * @internal
33
+ * Limited to Microsoft-internal use
34
+ */
35
+ requireCameraStream?: boolean;
36
+ /**
37
+ * @hidden
38
+ * Machine learning model to run in the host to do audio inference for you
39
+ * @beta
40
+ *
41
+ * @internal
42
+ * Limited to Microsoft-internal use
43
+ */
44
+ audioInferenceModel?: ArrayBuffer;
45
+ /**
46
+ * @hidden
47
+ * Specifies additional capabilities that should be applied to the video frame
48
+ * @beta
49
+ *
50
+ * @internal
51
+ * Limited to Microsoft-internal use
52
+ */
53
+ requiredCapabilities?: string[];
54
+ }
55
+ /**
56
+ * @hidden
57
+ * Represents a video frame
58
+ * @beta
59
+ *
60
+ * @internal
61
+ * Limited to Microsoft-internal use
62
+ */
63
+ interface VideoBufferData extends videoEffects.VideoBufferData {
64
+ /**
65
+ * @hidden
66
+ * The model output if you passed in an {@linkcode VideoFrameConfig.audioInferenceModel}
67
+ * @beta
68
+ *
69
+ * @internal
70
+ * Limited to Microsoft-internal use
71
+ */
72
+ audioInferenceResult?: Uint8Array;
73
+ }
74
+ /**
75
+ * @hidden
76
+ * The callback will be called on every frame when running on the supported host.
77
+ * We require the frame rate of the video to be at least 22fps for 720p, thus the callback should process a frame timely.
78
+ * The video app should call `notifyVideoFrameProcessed` to notify a successfully processed video frame.
79
+ * The video app should call `notifyError` to notify a failure. When the failures accumulate to a certain number(determined by the host), the host will see the app is "frozen" and give the user the option to close the app.
80
+ * @beta
81
+ *
82
+ * @internal
83
+ * Limited to Microsoft-internal use
84
+ */
85
+ type VideoBufferHandler = (videoBufferData: VideoBufferData, notifyVideoFrameProcessed: () => void, notifyError: (errorMessage: string) => void) => void;
86
+ /**
87
+ * @hidden
88
+ * Video frame data extracted from the media stream. More properties may be added in the future.
89
+ * @beta
90
+ *
91
+ * @internal
92
+ * Limited to Microsoft-internal use
93
+ */
94
+ type VideoFrameData = videoEffects.VideoFrameData & {
95
+ /**
96
+ * @hidden
97
+ * The model output if you passed in an {@linkcode VideoFrameConfig.audioInferenceModel}
98
+ * @beta
99
+ *
100
+ * @internal
101
+ * Limited to Microsoft-internal use
102
+ */
103
+ audioInferenceResult?: Uint8Array;
104
+ /**
105
+ * @hidden
106
+ * Additional metadata determined by capabilities specified in {@linkcode VideoFrameConfig.requiredCapabilities}
107
+ * @beta
108
+ *
109
+ * @internal
110
+ * Limited to Microsoft-internal use
111
+ */
112
+ attributes?: ReadonlyMap<string, Uint8Array>;
113
+ };
114
+ /**
115
+ * @hidden
116
+ * The callback will be called on every frame when running on the supported host.
117
+ * We require the frame rate of the video to be at least 22fps for 720p, thus the callback should process a frame timely.
118
+ * The video app should resolve the promise to notify a successfully processed video frame.
119
+ * The video app should reject the promise to notify a failure. When the failures accumulate to a certain number(determined by the host), the host will see the app is "frozen" and give the user the option to close the app.
120
+ * @beta
121
+ *
122
+ * @internal
123
+ * Limited to Microsoft-internal use
124
+ */
125
+ type VideoFrameHandler = (receivedVideoFrame: VideoFrameData) => Promise<videoEffects.VideoFrame>;
126
+ /**
127
+ * @hidden
128
+ * @beta
129
+ * Callbacks and configuration supplied to the host to process the video frames.
130
+ * @internal
131
+ * Limited to Microsoft-internal use
132
+ */
133
+ type RegisterForVideoFrameParameters = {
134
+ /**
135
+ * Callback function to process the video frames extracted from a media stream.
136
+ */
137
+ videoFrameHandler: VideoFrameHandler;
138
+ /**
139
+ * Callback function to process the video frames shared by the host.
140
+ */
141
+ videoBufferHandler: VideoBufferHandler;
142
+ /**
143
+ * Video frame configuration supplied to the host to customize the generated video frame parameters, like format
144
+ */
145
+ config: VideoFrameConfig;
146
+ };
147
+ /**
148
+ * @hidden
149
+ * Register to process video frames
150
+ * @beta
151
+ *
152
+ * @param parameters - Callbacks and configuration to process the video frames. A host may support either {@link VideoFrameHandler} or {@link VideoBufferHandler}, but not both.
153
+ * To ensure the video effect works on all supported hosts, the video app must provide both {@link VideoFrameHandler} and {@link VideoBufferHandler}.
154
+ * The host will choose the appropriate callback based on the host's capability.
155
+ *
156
+ * @internal
157
+ * Limited to Microsoft-internal use
158
+ */
159
+ function registerForVideoFrame(parameters: RegisterForVideoFrameParameters): void;
160
+ /**
161
+ * @hidden
162
+ * Video extension should call this to notify host that the current selected effect parameter changed.
163
+ * If it's pre-meeting, host will call videoEffectCallback immediately then use the videoEffect.
164
+ * If it's the in-meeting scenario, we will call videoEffectCallback when apply button clicked.
165
+ * @beta
166
+ * @param effectChangeType - the effect change type.
167
+ * @param effectId - Newly selected effect id. {@linkcode VideoEffectCallBack}
168
+ * @param effectParam Variant for the newly selected effect. {@linkcode VideoEffectCallBack}
169
+ *
170
+ * @internal
171
+ * Limited to Microsoft-internal use
172
+ */
173
+ function notifySelectedVideoEffectChanged(effectChangeType: videoEffects.EffectChangeType, effectId: string | undefined, effectParam?: string): void;
174
+ /**
175
+ * @hidden
176
+ * Register the video effect callback, host uses this to notify the video extension the new video effect will by applied
177
+ * @beta
178
+ * @param callback - The VideoEffectCallback to invoke when registerForVideoEffect has completed
179
+ *
180
+ * @internal
181
+ * Limited to Microsoft-internal use
182
+ */
183
+ function registerForVideoEffect(callback: VideoEffectCallBack): void;
184
+ /**
185
+ * @hidden
186
+ * Personalized video effect
187
+ * @beta
188
+ *
189
+ * @internal
190
+ * Limited to Microsoft-internal use
191
+ */
192
+ interface PersonalizedEffect {
193
+ /**
194
+ * Personalized effect id
195
+ */
196
+ id: string;
197
+ /**
198
+ * Display name
199
+ */
200
+ name: string;
201
+ /**
202
+ * Effect type defined by app
203
+ */
204
+ type: string;
205
+ /**
206
+ * Data URI of the thumbnail image content encoded in ASCII format using the base64 scheme
207
+ */
208
+ thumbnail: string;
209
+ }
210
+ /**
211
+ * @hidden
212
+ * Send personalized effects to Teams client
213
+ * @beta
214
+ *
215
+ * @internal
216
+ * Limited to Microsoft-internal use
217
+ */
218
+ function updatePersonalizedEffects(effects: PersonalizedEffect[]): void;
219
+ /**
220
+ * @hidden
221
+ *
222
+ * Checks if video capability is supported by the host
223
+ * @beta
224
+ *
225
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
226
+ *
227
+ * @returns boolean to represent whether the video capability is supported
228
+ *
229
+ * @internal
230
+ * Limited to Microsoft-internal use
231
+ */
232
+ function isSupported(): boolean;
233
+ /**
234
+ * @hidden
235
+ * Sending fatal error notification to host. Call this function only when your app meets fatal error and can't continue.
236
+ * The host will stop the video pipeline and terminate this session, and optionally, show an error message to the user.
237
+ * @beta
238
+ * @param errorMessage - The error message that will be sent to the host
239
+ *
240
+ * @internal
241
+ * Limited to Microsoft-internal use
242
+ */
243
+ function notifyFatalError(errorMessage: string): void;
244
+ }
@@ -0,0 +1,6 @@
1
+ import { AdaptiveCardVersion } from './interfaces';
2
+ /**
3
+ * @returns The {@linkcode AdaptiveCardVersion} representing the Adaptive Card schema
4
+ * version supported by the host, or undefined if the host does not support Adaptive Cards
5
+ */
6
+ export declare function getAdaptiveCardSchemaVersion(): AdaptiveCardVersion | undefined;