@microsoft/teams-js 2.22.0-beta.0 → 2.22.0

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.
@@ -3197,12 +3197,19 @@ __webpack_require__.r(__webpack_exports__);
3197
3197
 
3198
3198
  // EXPORTS
3199
3199
  __webpack_require__.d(__webpack_exports__, {
3200
+ ActionObjectType: () => (/* reexport */ ActionObjectType),
3201
+ ChannelType: () => (/* reexport */ ChannelType),
3200
3202
  ChildAppWindow: () => (/* reexport */ ChildAppWindow),
3203
+ DialogDimension: () => (/* reexport */ DialogDimension),
3201
3204
  ErrorCode: () => (/* reexport */ ErrorCode),
3205
+ FileOpenPreference: () => (/* reexport */ FileOpenPreference),
3202
3206
  FrameContexts: () => (/* reexport */ FrameContexts),
3203
3207
  HostClientType: () => (/* reexport */ HostClientType),
3208
+ HostName: () => (/* reexport */ HostName),
3204
3209
  LiveShareHost: () => (/* reexport */ LiveShareHost),
3205
3210
  ParentAppWindow: () => (/* reexport */ ParentAppWindow),
3211
+ SecondaryM365ContentIdName: () => (/* reexport */ SecondaryM365ContentIdName),
3212
+ TaskModuleDimension: () => (/* reexport */ TaskModuleDimension),
3206
3213
  TeamType: () => (/* reexport */ TeamType),
3207
3214
  UserTeamRole: () => (/* reexport */ UserTeamRole),
3208
3215
  app: () => (/* reexport */ app),
@@ -3600,6 +3607,44 @@ function validate_validate(uuid) {
3600
3607
  /* harmony default export */ const esm_browser_validate = (validate_validate);
3601
3608
  ;// CONCATENATED MODULE: ./src/public/interfaces.ts
3602
3609
  /* eslint-disable @typescript-eslint/no-explicit-any*/
3610
+ /**
3611
+ * Allowed user file open preferences
3612
+ */
3613
+ var FileOpenPreference;
3614
+ (function (FileOpenPreference) {
3615
+ /** Indicates that the user should be prompted to open the file in inline. */
3616
+ FileOpenPreference["Inline"] = "inline";
3617
+ /** Indicates that the user should be prompted to open the file in the native desktop application associated with the file type. */
3618
+ FileOpenPreference["Desktop"] = "desktop";
3619
+ /** Indicates that the user should be prompted to open the file in a web browser. */
3620
+ FileOpenPreference["Web"] = "web";
3621
+ })(FileOpenPreference || (FileOpenPreference = {}));
3622
+ /**
3623
+ * Possible Action Types
3624
+ *
3625
+ * @beta
3626
+ */
3627
+ var ActionObjectType;
3628
+ (function (ActionObjectType) {
3629
+ /** Represents content within a Microsoft 365 application. */
3630
+ ActionObjectType["M365Content"] = "m365content";
3631
+ })(ActionObjectType || (ActionObjectType = {}));
3632
+ /**
3633
+ * These correspond with field names in the MSGraph.
3634
+ * See [commonly accessed resources](https://learn.microsoft.com/graph/api/resources/onedrive?view=graph-rest-1.0#commonly-accessed-resources).
3635
+ * @beta
3636
+ */
3637
+ var SecondaryM365ContentIdName;
3638
+ (function (SecondaryM365ContentIdName) {
3639
+ /** OneDrive ID */
3640
+ SecondaryM365ContentIdName["DriveId"] = "driveId";
3641
+ /** Teams Group ID */
3642
+ SecondaryM365ContentIdName["GroupId"] = "groupId";
3643
+ /** SharePoint ID */
3644
+ SecondaryM365ContentIdName["SiteId"] = "siteId";
3645
+ /** User ID */
3646
+ SecondaryM365ContentIdName["UserId"] = "userId";
3647
+ })(SecondaryM365ContentIdName || (SecondaryM365ContentIdName = {}));
3603
3648
  function isSdkError(err) {
3604
3649
  return (err === null || err === void 0 ? void 0 : err.errorCode) !== undefined;
3605
3650
  }
@@ -3667,6 +3712,12 @@ var ErrorCode;
3667
3712
  */
3668
3713
  ErrorCode[ErrorCode["SIZE_EXCEEDED"] = 10000] = "SIZE_EXCEEDED";
3669
3714
  })(ErrorCode || (ErrorCode = {}));
3715
+ /** @hidden */
3716
+ var DevicePermission;
3717
+ (function (DevicePermission) {
3718
+ DevicePermission["GeoLocation"] = "geolocation";
3719
+ DevicePermission["Media"] = "media";
3720
+ })(DevicePermission || (DevicePermission = {}));
3670
3721
  /**
3671
3722
  * Currently supported Mime type
3672
3723
  */
@@ -3710,6 +3761,39 @@ var HostClientType;
3710
3761
  /** Represents the client of host, which runs on Teams displays devices. More information can be found [Microsoft Teams Displays](https://support.microsoft.com/office/get-started-with-teams-displays-ff299825-7f13-4528-96c2-1d3437e6d4e6) */
3711
3762
  HostClientType["teamsDisplays"] = "teamsDisplays";
3712
3763
  })(HostClientType || (HostClientType = {}));
3764
+ /** HostName indicates the possible hosts for your application. */
3765
+ var HostName;
3766
+ (function (HostName) {
3767
+ /**
3768
+ * Office.com and Office Windows App
3769
+ */
3770
+ HostName["office"] = "Office";
3771
+ /**
3772
+ * For "desktop" specifically, this refers to the new, pre-release version of Outlook for Windows.
3773
+ * Also used on other platforms that map to a single Outlook client.
3774
+ */
3775
+ HostName["outlook"] = "Outlook";
3776
+ /**
3777
+ * Outlook for Windows: the classic, native, desktop client
3778
+ */
3779
+ HostName["outlookWin32"] = "OutlookWin32";
3780
+ /**
3781
+ * Microsoft-internal test Host
3782
+ */
3783
+ HostName["orange"] = "Orange";
3784
+ /**
3785
+ * Microsoft connected workplace platform
3786
+ */
3787
+ HostName["places"] = "Places";
3788
+ /**
3789
+ * Teams
3790
+ */
3791
+ HostName["teams"] = "Teams";
3792
+ /**
3793
+ * Modern Teams
3794
+ */
3795
+ HostName["teamsModern"] = "TeamsModern";
3796
+ })(HostName || (HostName = {}));
3713
3797
  /**
3714
3798
  * FrameContexts provides information about the context in which the app is running within the host.
3715
3799
  * Developers can use FrameContexts to determine how their app should behave in different contexts,
@@ -3771,7 +3855,37 @@ var UserTeamRole;
3771
3855
  /** Represents that the user does not have any role in the team. */
3772
3856
  UserTeamRole[UserTeamRole["Guest"] = 2] = "Guest";
3773
3857
  })(UserTeamRole || (UserTeamRole = {}));
3858
+ /**
3859
+ * Dialog module dimension enum
3860
+ */
3861
+ var DialogDimension;
3862
+ (function (DialogDimension) {
3863
+ /** Represents a large-sized dialog box, which is typically used for displaying large amounts of content or complex workflows that require more space. */
3864
+ DialogDimension["Large"] = "large";
3865
+ /** Represents a medium-sized dialog box, which is typically used for displaying moderate amounts of content or workflows that require less space. */
3866
+ DialogDimension["Medium"] = "medium";
3867
+ /** Represents a small-sized dialog box, which is typically used for displaying simple messages or workflows that require minimal space.*/
3868
+ DialogDimension["Small"] = "small";
3869
+ })(DialogDimension || (DialogDimension = {}));
3774
3870
 
3871
+ /**
3872
+ * @deprecated
3873
+ * As of 2.0.0, please use {@link DialogDimension} instead.
3874
+ */
3875
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
3876
+ var TaskModuleDimension = DialogDimension;
3877
+ /**
3878
+ * The type of the channel with which the content is associated.
3879
+ */
3880
+ var ChannelType;
3881
+ (function (ChannelType) {
3882
+ /** The default channel type. Type of channel is used for general collaboration and communication within a team. */
3883
+ ChannelType["Regular"] = "Regular";
3884
+ /** Type of channel is used for sensitive or confidential communication within a team and is only accessible to members of the channel. */
3885
+ ChannelType["Private"] = "Private";
3886
+ /** Type of channel is used for collaboration between multiple teams or groups and is accessible to members of all the teams or groups. */
3887
+ ChannelType["Shared"] = "Shared";
3888
+ })(ChannelType || (ChannelType = {}));
3775
3889
  /** An error object indicating that the requested operation or feature is not supported on the current platform or device.
3776
3890
  * @typedef {Object} SdkError
3777
3891
  */
@@ -4553,7 +4667,7 @@ const _minRuntimeConfigToUninitialize = {
4553
4667
  * @hidden
4554
4668
  * Package version.
4555
4669
  */
4556
- const version = "2.22.0-beta.0";
4670
+ const version = "2.22.0";
4557
4671
 
4558
4672
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
4559
4673
 
@@ -5170,6 +5284,28 @@ var authentication;
5170
5284
  closeAuthenticationWindow();
5171
5285
  }
5172
5286
  }
5287
+ /**
5288
+ * @hidden
5289
+ * Limited set of data residencies information exposed to 1P application developers
5290
+ *
5291
+ * @internal
5292
+ * Limited to Microsoft-internal use
5293
+ */
5294
+ let DataResidency;
5295
+ (function (DataResidency) {
5296
+ /**
5297
+ * Public
5298
+ */
5299
+ DataResidency["Public"] = "public";
5300
+ /**
5301
+ * European Union Data Boundary
5302
+ */
5303
+ DataResidency["EUDB"] = "eudb";
5304
+ /**
5305
+ * Other, stored to cover fields that will not be exposed
5306
+ */
5307
+ DataResidency["Other"] = "other";
5308
+ })(DataResidency = authentication.DataResidency || (authentication.DataResidency = {}));
5173
5309
  })(authentication || (authentication = {}));
5174
5310
 
5175
5311
  ;// CONCATENATED MODULE: ./src/public/dialog.ts
@@ -5466,8 +5602,8 @@ var dialog;
5466
5602
  function getDialogInfoFromUrlDialogInfo(urlDialogInfo) {
5467
5603
  const dialogInfo = {
5468
5604
  url: urlDialogInfo.url,
5469
- height: urlDialogInfo.size ? urlDialogInfo.size.height : "small" /* DialogDimension.Small */,
5470
- width: urlDialogInfo.size ? urlDialogInfo.size.width : "small" /* DialogDimension.Small */,
5605
+ height: urlDialogInfo.size ? urlDialogInfo.size.height : DialogDimension.Small,
5606
+ width: urlDialogInfo.size ? urlDialogInfo.size.width : DialogDimension.Small,
5471
5607
  title: urlDialogInfo.title,
5472
5608
  fallbackUrl: urlDialogInfo.fallbackUrl,
5473
5609
  };
@@ -5638,8 +5774,8 @@ var dialog;
5638
5774
  function getDialogInfoFromAdaptiveCardDialogInfo(adaptiveCardDialogInfo) {
5639
5775
  const dialogInfo = {
5640
5776
  card: adaptiveCardDialogInfo.card,
5641
- height: adaptiveCardDialogInfo.size ? adaptiveCardDialogInfo.size.height : "small" /* DialogDimension.Small */,
5642
- width: adaptiveCardDialogInfo.size ? adaptiveCardDialogInfo.size.width : "small" /* DialogDimension.Small */,
5777
+ height: adaptiveCardDialogInfo.size ? adaptiveCardDialogInfo.size.height : DialogDimension.Small,
5778
+ width: adaptiveCardDialogInfo.size ? adaptiveCardDialogInfo.size.width : DialogDimension.Small,
5643
5779
  title: adaptiveCardDialogInfo.title,
5644
5780
  };
5645
5781
  return dialogInfo;
@@ -5712,6 +5848,15 @@ var menus;
5712
5848
  }
5713
5849
  }
5714
5850
  menus.MenuItem = MenuItem;
5851
+ /**
5852
+ * @hidden
5853
+ * Represents information about type of list to display in Navigation Bar Menu.
5854
+ */
5855
+ let MenuListType;
5856
+ (function (MenuListType) {
5857
+ MenuListType["dropDown"] = "dropDown";
5858
+ MenuListType["popOver"] = "popOver";
5859
+ })(MenuListType = menus.MenuListType || (menus.MenuListType = {}));
5715
5860
  let navBarMenuItemPressHandler;
5716
5861
  let actionMenuItemPressHandler;
5717
5862
  let viewConfigItemPressHandler;
@@ -6250,7 +6395,7 @@ function transformLegacyContextToAppContext(legacyContext) {
6250
6395
  userClickTime: legacyContext.userClickTime,
6251
6396
  userFileOpenPreference: legacyContext.userFileOpenPreference,
6252
6397
  host: {
6253
- name: legacyContext.hostName ? legacyContext.hostName : "Teams" /* HostName.teams */,
6398
+ name: legacyContext.hostName ? legacyContext.hostName : HostName.teams,
6254
6399
  clientType: legacyContext.hostClientType ? legacyContext.hostClientType : HostClientType.web,
6255
6400
  sessionId: legacyContext.sessionId ? legacyContext.sessionId : '',
6256
6401
  ringId: legacyContext.ringId,
@@ -8655,6 +8800,16 @@ const mediaLogger = getLogger('media');
8655
8800
  */
8656
8801
  var media;
8657
8802
  (function (media) {
8803
+ /**
8804
+ * Enum for file formats supported
8805
+ */
8806
+ let FileFormat;
8807
+ (function (FileFormat) {
8808
+ /** Base64 encoding */
8809
+ FileFormat["Base64"] = "base64";
8810
+ /** File id */
8811
+ FileFormat["ID"] = "id";
8812
+ })(FileFormat = media.FileFormat || (media.FileFormat = {}));
8658
8813
  /**
8659
8814
  * File object that can be used to represent image or video or audio
8660
8815
  */
@@ -8704,7 +8859,7 @@ var media;
8704
8859
  if (!isPermissionSupported()) {
8705
8860
  throw errorNotSupportedOnPlatform;
8706
8861
  }
8707
- const permissions = "media" /* DevicePermission.Media */;
8862
+ const permissions = DevicePermission.Media;
8708
8863
  return new Promise((resolve) => {
8709
8864
  resolve(sendAndHandleSdkError(getApiVersionTag(mediaTelemetryVersionNumber, "media.hasPermission" /* ApiName.Media_HasPermission */), 'permissions.has', permissions));
8710
8865
  });
@@ -8723,7 +8878,7 @@ var media;
8723
8878
  if (!isPermissionSupported()) {
8724
8879
  throw errorNotSupportedOnPlatform;
8725
8880
  }
8726
- const permissions = "media" /* DevicePermission.Media */;
8881
+ const permissions = DevicePermission.Media;
8727
8882
  return new Promise((resolve) => {
8728
8883
  resolve(sendAndHandleSdkError(getApiVersionTag(mediaTelemetryVersionNumber, "media.requestPermission" /* ApiName.Media_RequestPermission */), 'permissions.request', permissions));
8729
8884
  });
@@ -9276,7 +9431,7 @@ function isMediaCallForNonFullScreenVideoMode(mediaInputs) {
9276
9431
  * @internal
9277
9432
  */
9278
9433
  function validateGetMediaInputs(mimeType, format, content) {
9279
- if (mimeType == null || format == null || format != "id" /* media.FileFormat.ID */ || content == null) {
9434
+ if (mimeType == null || format == null || format != media.FileFormat.ID || content == null) {
9280
9435
  return false;
9281
9436
  }
9282
9437
  return true;
@@ -9394,7 +9549,7 @@ var barCode;
9394
9549
  if (!isSupported()) {
9395
9550
  throw errorNotSupportedOnPlatform;
9396
9551
  }
9397
- const permissions = "media" /* DevicePermission.Media */;
9552
+ const permissions = DevicePermission.Media;
9398
9553
  return new Promise((resolve) => {
9399
9554
  resolve(sendAndHandleSdkError(getApiVersionTag(barCodeTelemetryVersionNumber, "barCode.hasPermission" /* ApiName.BarCode_HasPermission */), 'permissions.has', permissions));
9400
9555
  });
@@ -9412,7 +9567,7 @@ var barCode;
9412
9567
  if (!isSupported()) {
9413
9568
  throw errorNotSupportedOnPlatform;
9414
9569
  }
9415
- const permissions = "media" /* DevicePermission.Media */;
9570
+ const permissions = DevicePermission.Media;
9416
9571
  return new Promise((resolve) => {
9417
9572
  resolve(sendAndHandleSdkError(getApiVersionTag(barCodeTelemetryVersionNumber, "barCode.requestPermission" /* ApiName.BarCode_RequestPermission */), 'permissions.request', permissions));
9418
9573
  });
@@ -9704,7 +9859,7 @@ var geoLocation;
9704
9859
  if (!isSupported()) {
9705
9860
  throw errorNotSupportedOnPlatform;
9706
9861
  }
9707
- const permissions = "geolocation" /* DevicePermission.GeoLocation */;
9862
+ const permissions = DevicePermission.GeoLocation;
9708
9863
  return new Promise((resolve) => {
9709
9864
  resolve(sendAndHandleSdkError(getApiVersionTag(geoLocationTelemetryVersionNumber, "geoLocation.hasPermission" /* ApiName.GeoLocation_HasPermission */), 'permissions.has', permissions));
9710
9865
  });
@@ -9724,7 +9879,7 @@ var geoLocation;
9724
9879
  if (!isSupported()) {
9725
9880
  throw errorNotSupportedOnPlatform;
9726
9881
  }
9727
- const permissions = "geolocation" /* DevicePermission.GeoLocation */;
9882
+ const permissions = DevicePermission.GeoLocation;
9728
9883
  return new Promise((resolve) => {
9729
9884
  resolve(sendAndHandleSdkError(getApiVersionTag(geoLocationTelemetryVersionNumber, "geoLocation.requestPermission" /* ApiName.GeoLocation_RequestPermission */), 'permissions.request', permissions));
9730
9885
  });
@@ -10086,6 +10241,122 @@ var meeting;
10086
10241
  MicStateChangeReason[MicStateChangeReason["AppDeclinedToChange"] = 2] = "AppDeclinedToChange";
10087
10242
  MicStateChangeReason[MicStateChangeReason["AppFailedToChange"] = 3] = "AppFailedToChange";
10088
10243
  })(MicStateChangeReason || (MicStateChangeReason = {}));
10244
+ /**
10245
+ * Different types of meeting reactions that can be sent/received
10246
+ *
10247
+ * @hidden
10248
+ * Hide from docs.
10249
+ *
10250
+ * @internal
10251
+ * Limited to Microsoft-internal use
10252
+ *
10253
+ * @beta
10254
+ */
10255
+ let MeetingReactionType;
10256
+ (function (MeetingReactionType) {
10257
+ MeetingReactionType["like"] = "like";
10258
+ MeetingReactionType["heart"] = "heart";
10259
+ MeetingReactionType["laugh"] = "laugh";
10260
+ MeetingReactionType["surprised"] = "surprised";
10261
+ MeetingReactionType["applause"] = "applause";
10262
+ })(MeetingReactionType = meeting.MeetingReactionType || (meeting.MeetingReactionType = {}));
10263
+ /**
10264
+ * Represents the type of a meeting
10265
+ *
10266
+ * @hidden
10267
+ * Hide from docs.
10268
+ *
10269
+ * @remarks
10270
+ * Teams has several types of meetings to account for different user scenarios and requirements.
10271
+ */
10272
+ let MeetingType;
10273
+ (function (MeetingType) {
10274
+ /**
10275
+ * Used when the meeting type is not known.
10276
+ *
10277
+ * @remarks
10278
+ * This response is not an expected case.
10279
+ */
10280
+ MeetingType["Unknown"] = "Unknown";
10281
+ /**
10282
+ * Used for group call meeting types.
10283
+ *
10284
+ * @remarks
10285
+ * To test this meeting type in Teams, start a chat with two or more users and click the "Call" button.
10286
+ * Note that a group call may return as this or {@link CallType.GroupCall}. These two different response types should be considered as equal.
10287
+ */
10288
+ MeetingType["Adhoc"] = "Adhoc";
10289
+ /**
10290
+ * Used for single-occurrence meetings that have been scheduled in advance.
10291
+ *
10292
+ * @remarks
10293
+ * To create a meeting of this type in Teams, press the "New meeting" button from the calendar and enter a meeting title.
10294
+ * Before saving, ensure that the "Online Meeting" field is checked.
10295
+ */
10296
+ MeetingType["Scheduled"] = "Scheduled";
10297
+ /**
10298
+ * Used for meetings that occur on a recurring basis.
10299
+ *
10300
+ * @remarks
10301
+ * To create a meeting of this type in Teams, press the "New meeting" button from the calendar, enter a meeting title, and then change the field labeled "Does not repeat" to some other value.
10302
+ * Before saving, ensure that the "Online Meeting" field is checked.
10303
+ */
10304
+ MeetingType["Recurring"] = "Recurring";
10305
+ /**
10306
+ * Used for webinars.
10307
+ *
10308
+ * @remarks
10309
+ * Meeting apps are only supported for those in the "event group" of a webinar, which are those who'll be presenting and producing the webinar.
10310
+ * To learn how to create a meeting of this type, visit https://aka.ms/teams/howto/webinars.
10311
+ */
10312
+ MeetingType["Broadcast"] = "Broadcast";
10313
+ /**
10314
+ * Used for meet now meetings, which are meetings users create on the fly.
10315
+ *
10316
+ * @remarks
10317
+ * To create a meeting of this type, click the "Meet now" button from the calendar in Teams or the "Teams call" button in Outlook.
10318
+ */
10319
+ MeetingType["MeetNow"] = "MeetNow";
10320
+ })(MeetingType = meeting.MeetingType || (meeting.MeetingType = {}));
10321
+ /**
10322
+ * Represents the type of a call.
10323
+ *
10324
+ * @hidden
10325
+ * Hide from docs.
10326
+ */
10327
+ let CallType;
10328
+ (function (CallType) {
10329
+ /**
10330
+ * Represents a call between two people.
10331
+ *
10332
+ * @remarks
10333
+ * To test this feature, start a chat with one other user and click the "Call" button.
10334
+ */
10335
+ CallType["OneOnOneCall"] = "oneOnOneCall";
10336
+ /**
10337
+ * Represents a call between more than two people.
10338
+ *
10339
+ * @remarks
10340
+ * To test this meeting type in Teams, start a chat with two or more users and click the "Call" button.
10341
+ * Note that a group call may return as this or {@link MeetingType.Adhoc}. These two different response types should be considered as equal.
10342
+ */
10343
+ CallType["GroupCall"] = "groupCall";
10344
+ })(CallType = meeting.CallType || (meeting.CallType = {}));
10345
+ /**
10346
+ * Represents the protocol option for sharing app content to the meeting stage.
10347
+ */
10348
+ let SharingProtocol;
10349
+ (function (SharingProtocol) {
10350
+ /**
10351
+ * The default protocol for sharing app content to stage. To learn more, visit https://aka.ms/teamsjs/shareAppContentToStage
10352
+ */
10353
+ SharingProtocol["Collaborative"] = "Collaborative";
10354
+ /**
10355
+ * A read-only protocol for sharing app content to stage, which uses screen sharing in meetings. If provided, this protocol will open
10356
+ * the specified `contentUrl` passed to the {@link shareAppContentToStage} API in a new instance and screen share that instance.
10357
+ */
10358
+ SharingProtocol["ScreenShare"] = "ScreenShare";
10359
+ })(SharingProtocol = meeting.SharingProtocol || (meeting.SharingProtocol = {}));
10089
10360
  /**
10090
10361
  * Allows an app to get the incoming audio speaker setting for the meeting user.
10091
10362
  * To learn more, visit https://aka.ms/teamsjs/getIncomingClientAudioState
@@ -10272,7 +10543,7 @@ var meeting;
10272
10543
  * @param shareOptions - is an object that contains additional sharing options. If omitted, the default
10273
10544
  * sharing protocol will be `Collaborative`. See {@link IShareAppContentToStageOptions} for more information.
10274
10545
  */
10275
- function shareAppContentToStage(callback, appContentUrl, shareOptions = { sharingProtocol: "Collaborative" /* SharingProtocol.Collaborative */ }) {
10546
+ function shareAppContentToStage(callback, appContentUrl, shareOptions = { sharingProtocol: SharingProtocol.Collaborative }) {
10276
10547
  if (!callback) {
10277
10548
  throw new Error('[share app content to stage] Callback cannot be null');
10278
10549
  }
@@ -10428,11 +10699,39 @@ var meeting;
10428
10699
  ensureInitialized(runtime);
10429
10700
  const serializedJoinMeetingParams = {
10430
10701
  joinWebUrl: joinMeetingParams.joinWebUrl.href,
10431
- source: joinMeetingParams.source || "other" /* EventActionSource.Other */,
10702
+ source: joinMeetingParams.source || EventActionSource.Other,
10432
10703
  };
10433
10704
  return sendAndHandleSdkError(getApiVersionTag("v2" /* ApiVersionNumber.V_2 */, "meeting.joinMeeting" /* ApiName.Meeting_JoinMeeting */), 'meeting.joinMeeting', serializedJoinMeetingParams);
10434
10705
  }
10435
10706
  meeting.joinMeeting = joinMeeting;
10707
+ /** The source of the join button click. */
10708
+ let EventActionSource;
10709
+ (function (EventActionSource) {
10710
+ /**
10711
+ * Source is calendar grid context menu.
10712
+ */
10713
+ EventActionSource["M365CalendarGridContextMenu"] = "m365_calendar_grid_context_menu";
10714
+ /**
10715
+ * Source is calendar grid peek.
10716
+ */
10717
+ EventActionSource["M365CalendarGridPeek"] = "m365_calendar_grid_peek";
10718
+ /**
10719
+ * Source is calendar grid event card join button.
10720
+ */
10721
+ EventActionSource["M365CalendarGridEventCardJoinButton"] = "m365_calendar_grid_event_card_join_button";
10722
+ /**
10723
+ * Source is calendar form ribbon join button.
10724
+ */
10725
+ EventActionSource["M365CalendarFormRibbonJoinButton"] = "m365_calendar_form_ribbon_join_button";
10726
+ /**
10727
+ * Source is calendar form join teams meeting button.
10728
+ */
10729
+ EventActionSource["M365CalendarFormJoinTeamsMeetingButton"] = "m365_calendar_form_join_teams_meeting_button";
10730
+ /**
10731
+ * Other sources.
10732
+ */
10733
+ EventActionSource["Other"] = "other";
10734
+ })(EventActionSource = meeting.EventActionSource || (meeting.EventActionSource = {}));
10436
10735
  /**
10437
10736
  * Nested namespace for functions to control behavior of the app share button
10438
10737
  *
@@ -11783,6 +12082,30 @@ var videoEffects;
11783
12082
  const videoPerformanceMonitor = inServerSideRenderingEnvironment()
11784
12083
  ? undefined
11785
12084
  : new VideoPerformanceMonitor(sendMessageToParent);
12085
+ /**
12086
+ * Video frame format enum, currently only support NV12
12087
+ * @beta
12088
+ */
12089
+ let VideoFrameFormat;
12090
+ (function (VideoFrameFormat) {
12091
+ /** Video format used for encoding and decoding YUV color data in video streaming and storage applications. */
12092
+ VideoFrameFormat["NV12"] = "NV12";
12093
+ })(VideoFrameFormat = videoEffects.VideoFrameFormat || (videoEffects.VideoFrameFormat = {}));
12094
+ /**
12095
+ * Video effect change type enum
12096
+ * @beta
12097
+ */
12098
+ let EffectChangeType;
12099
+ (function (EffectChangeType) {
12100
+ /**
12101
+ * Current video effect changed
12102
+ */
12103
+ EffectChangeType["EffectChanged"] = "EffectChanged";
12104
+ /**
12105
+ * Disable the video effect
12106
+ */
12107
+ EffectChangeType["EffectDisabled"] = "EffectDisabled";
12108
+ })(EffectChangeType = videoEffects.EffectChangeType || (videoEffects.EffectChangeType = {}));
11786
12109
  /**
11787
12110
  * Predefined failure reasons for preparing the selected video effect
11788
12111
  * @beta
@@ -12294,6 +12617,24 @@ const stageViewTelemetryVersionNumber = "v2" /* ApiVersionNumber.V_2 */;
12294
12617
  */
12295
12618
  var stageView;
12296
12619
  (function (stageView) {
12620
+ /**
12621
+ * The open mode for stage content.
12622
+ */
12623
+ let StageViewOpenMode;
12624
+ (function (StageViewOpenMode) {
12625
+ /**
12626
+ * Open the content in a modal.
12627
+ */
12628
+ StageViewOpenMode["modal"] = "modal";
12629
+ /**
12630
+ * Open the content in a popped-out window.
12631
+ */
12632
+ StageViewOpenMode["popout"] = "popout";
12633
+ /**
12634
+ * Open the content in a popped-out window with chat collaboration.
12635
+ */
12636
+ StageViewOpenMode["popoutWithChat"] = "popoutWithChat";
12637
+ })(StageViewOpenMode = stageView.StageViewOpenMode || (stageView.StageViewOpenMode = {}));
12297
12638
  /**
12298
12639
  *
12299
12640
  * Opens a stage view to display a Teams application
@@ -12343,6 +12684,7 @@ var visualMedia_awaiter = (undefined && undefined.__awaiter) || function (thisAr
12343
12684
 
12344
12685
 
12345
12686
 
12687
+
12346
12688
  /**
12347
12689
  * v2 APIs telemetry file: All of APIs in this capability file should send out API version v2 ONLY
12348
12690
  */
@@ -12399,7 +12741,7 @@ var visualMedia;
12399
12741
  if (!image.isSupported()) {
12400
12742
  throw errorNotSupportedOnPlatform;
12401
12743
  }
12402
- const permissions = "media" /* DevicePermission.Media */;
12744
+ const permissions = DevicePermission.Media;
12403
12745
  return sendAndHandleSdkError(getApiVersionTag(visualMediaTelemetryVersionNumber, "visualMedia.hasPermission" /* ApiName.VisualMedia_HasPermission */), 'permissions.has', permissions);
12404
12746
  }
12405
12747
  visualMedia.hasPermission = hasPermission;
@@ -12417,7 +12759,7 @@ var visualMedia;
12417
12759
  if (!image.isSupported()) {
12418
12760
  throw errorNotSupportedOnPlatform;
12419
12761
  }
12420
- const permissions = "media" /* DevicePermission.Media */;
12762
+ const permissions = DevicePermission.Media;
12421
12763
  return sendAndHandleSdkError(getApiVersionTag(visualMediaTelemetryVersionNumber, "visualMedia.requestPermission" /* ApiName.VisualMedia_RequestPermission */), 'permissions.request', permissions);
12422
12764
  }
12423
12765
  visualMedia.requestPermission = requestPermission;
@@ -12583,6 +12925,20 @@ const callTelemetryVersionNumber = "v2" /* ApiVersionNumber.V_2 */;
12583
12925
  */
12584
12926
  var call;
12585
12927
  (function (call) {
12928
+ /** Modalities that can be associated with a call. */
12929
+ let CallModalities;
12930
+ (function (CallModalities) {
12931
+ /** Indicates that the modality is unknown or undefined. */
12932
+ CallModalities["Unknown"] = "unknown";
12933
+ /** Indicates that the call includes audio. */
12934
+ CallModalities["Audio"] = "audio";
12935
+ /** Indicates that the call includes video. */
12936
+ CallModalities["Video"] = "video";
12937
+ /** Indicates that the call includes video-based screen sharing. */
12938
+ CallModalities["VideoBasedScreenSharing"] = "videoBasedScreenSharing";
12939
+ /** Indicates that the call includes data sharing or messaging. */
12940
+ CallModalities["Data"] = "data";
12941
+ })(CallModalities = call.CallModalities || (call.CallModalities = {}));
12586
12942
  /**
12587
12943
  * Starts a call with other users
12588
12944
  *
@@ -12601,7 +12957,7 @@ var call;
12601
12957
  throw errorNotSupportedOnPlatform;
12602
12958
  }
12603
12959
  if (runtime.isLegacyTeams) {
12604
- resolve(sendAndUnwrap(apiVersionTag, 'executeDeepLink', createTeamsDeepLinkForCall(startCallParams.targets, (_a = startCallParams.requestedModalities) === null || _a === void 0 ? void 0 : _a.includes("video" /* CallModalities.Video */), startCallParams.source)).then((result) => {
12960
+ resolve(sendAndUnwrap(apiVersionTag, 'executeDeepLink', createTeamsDeepLinkForCall(startCallParams.targets, (_a = startCallParams.requestedModalities) === null || _a === void 0 ? void 0 : _a.includes(CallModalities.Video), startCallParams.source)).then((result) => {
12605
12961
  if (!result) {
12606
12962
  throw new Error(errorCallNotStarted);
12607
12963
  }
@@ -13441,8 +13797,8 @@ var tasks;
13441
13797
  const urldialogInfo = {
13442
13798
  url: taskInfo.url,
13443
13799
  size: {
13444
- height: taskInfo.height ? taskInfo.height : "small" /* TaskModuleDimension.Small */,
13445
- width: taskInfo.width ? taskInfo.width : "small" /* TaskModuleDimension.Small */,
13800
+ height: taskInfo.height ? taskInfo.height : TaskModuleDimension.Small,
13801
+ width: taskInfo.width ? taskInfo.width : TaskModuleDimension.Small,
13446
13802
  },
13447
13803
  title: taskInfo.title,
13448
13804
  fallbackUrl: taskInfo.fallbackUrl,
@@ -13461,8 +13817,8 @@ var tasks;
13461
13817
  const botUrldialogInfo = {
13462
13818
  url: taskInfo.url,
13463
13819
  size: {
13464
- height: taskInfo.height ? taskInfo.height : "small" /* TaskModuleDimension.Small */,
13465
- width: taskInfo.width ? taskInfo.width : "small" /* TaskModuleDimension.Small */,
13820
+ height: taskInfo.height ? taskInfo.height : TaskModuleDimension.Small,
13821
+ width: taskInfo.width ? taskInfo.width : TaskModuleDimension.Small,
13466
13822
  },
13467
13823
  title: taskInfo.title,
13468
13824
  fallbackUrl: taskInfo.fallbackUrl,
@@ -13477,8 +13833,8 @@ var tasks;
13477
13833
  * @returns TaskInfo with height and width specified
13478
13834
  */
13479
13835
  function getDefaultSizeIfNotProvided(taskInfo) {
13480
- taskInfo.height = taskInfo.height ? taskInfo.height : "small" /* TaskModuleDimension.Small */;
13481
- taskInfo.width = taskInfo.width ? taskInfo.width : "small" /* TaskModuleDimension.Small */;
13836
+ taskInfo.height = taskInfo.height ? taskInfo.height : TaskModuleDimension.Small;
13837
+ taskInfo.width = taskInfo.width ? taskInfo.width : TaskModuleDimension.Small;
13482
13838
  return taskInfo;
13483
13839
  }
13484
13840
  tasks.getDefaultSizeIfNotProvided = getDefaultSizeIfNotProvided;
@@ -13502,6 +13858,59 @@ const interactiveTelemetryVersionNumber = "v2" /* ApiVersionNumber.V_2 */;
13502
13858
  */
13503
13859
  var liveShare;
13504
13860
  (function (liveShare) {
13861
+ /**
13862
+ * @hidden
13863
+ * The meeting roles of a user.
13864
+ * Used in Live Share for its role verification feature.
13865
+ * For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
13866
+ */
13867
+ let UserMeetingRole;
13868
+ (function (UserMeetingRole) {
13869
+ /**
13870
+ * Guest role.
13871
+ */
13872
+ UserMeetingRole["guest"] = "Guest";
13873
+ /**
13874
+ * Attendee role.
13875
+ */
13876
+ UserMeetingRole["attendee"] = "Attendee";
13877
+ /**
13878
+ * Presenter role.
13879
+ */
13880
+ UserMeetingRole["presenter"] = "Presenter";
13881
+ /**
13882
+ * Organizer role.
13883
+ */
13884
+ UserMeetingRole["organizer"] = "Organizer";
13885
+ })(UserMeetingRole = liveShare.UserMeetingRole || (liveShare.UserMeetingRole = {}));
13886
+ /**
13887
+ * @hidden
13888
+ * State of the current Live Share session's Fluid container.
13889
+ * This is used internally by the `LiveShareClient` when joining a Live Share session.
13890
+ */
13891
+ let ContainerState;
13892
+ (function (ContainerState) {
13893
+ /**
13894
+ * The call to `LiveShareHost.setContainerId()` successfully created the container mapping
13895
+ * for the current Live Share session.
13896
+ */
13897
+ ContainerState["added"] = "Added";
13898
+ /**
13899
+ * A container mapping for the current Live Share session already exists.
13900
+ * This indicates to Live Share that a new container does not need be created.
13901
+ */
13902
+ ContainerState["alreadyExists"] = "AlreadyExists";
13903
+ /**
13904
+ * The call to `LiveShareHost.setContainerId()` failed to create the container mapping.
13905
+ * This happens when another client has already set the container ID for the session.
13906
+ */
13907
+ ContainerState["conflict"] = "Conflict";
13908
+ /**
13909
+ * A container mapping for the current Live Share session does not yet exist.
13910
+ * This indicates to Live Share that a new container should be created.
13911
+ */
13912
+ ContainerState["notFound"] = "NotFound";
13913
+ })(ContainerState = liveShare.ContainerState || (liveShare.ContainerState = {}));
13505
13914
  /**
13506
13915
  * Checks if the interactive capability is supported by the host
13507
13916
  * @returns boolean to represent whether the interactive capability is supported
@@ -13886,6 +14295,29 @@ var marketplace;
13886
14295
  */
13887
14296
  minorVersion: 1,
13888
14297
  };
14298
+ /**
14299
+ * @hidden
14300
+ * Represents the persona creating the cart.
14301
+ * @beta
14302
+ */
14303
+ let Intent;
14304
+ (function (Intent) {
14305
+ /**
14306
+ * @hidden
14307
+ * The cart is created by admin of an organization in Teams Admin Center.
14308
+ */
14309
+ Intent["TACAdminUser"] = "TACAdminUser";
14310
+ /**
14311
+ * @hidden
14312
+ * The cart is created by admin of an organization in Teams.
14313
+ */
14314
+ Intent["TeamsAdminUser"] = "TeamsAdminUser";
14315
+ /**
14316
+ * @hidden
14317
+ * The cart is created by end user of an organization in Teams.
14318
+ */
14319
+ Intent["TeamsEndUser"] = "TeamsEndUser";
14320
+ })(Intent = marketplace.Intent || (marketplace.Intent = {}));
13889
14321
  /**
13890
14322
  * @hidden
13891
14323
  * Represents the status of the cart.