@microsoft/teams-js 2.0.0-beta.6-dev.6 → 2.0.0-beta.6-dev.7

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.
@@ -3961,7 +3961,8 @@ export namespace location {
3961
3961
  }
3962
3962
 
3963
3963
  /**
3964
- * @alpha
3964
+ * @deprecated
3965
+ * As of 2.0.0-beta.6, use meeting only for backwards compatibility of existing code.
3965
3966
  */
3966
3967
  export namespace meeting {
3967
3968
  /**
@@ -3971,12 +3972,12 @@ export namespace meeting {
3971
3972
  *
3972
3973
  * @internal
3973
3974
  */
3974
- interface IMeetingDetails {
3975
+ interface IMeetingDetailsResponse {
3975
3976
  /**
3976
3977
  * @hidden
3977
3978
  * details object
3978
3979
  */
3979
- details: IDetails;
3980
+ details: IMeetingDetails | ICallDetails;
3980
3981
  /**
3981
3982
  * @hidden
3982
3983
  * conversation object
@@ -3991,36 +3992,47 @@ export namespace meeting {
3991
3992
  /**
3992
3993
  * @hidden
3993
3994
  * Hide from docs
3994
- * Data structure to represent details.
3995
- *
3996
- * @internal
3995
+ * Base data structure to represent a meeting or call detail
3997
3996
  */
3998
- interface IDetails {
3997
+ interface IMeetingOrCallDetailsBase<T> {
3999
3998
  /**
4000
3999
  * @hidden
4001
- * Scheduled start time of the meeting
4000
+ * Scheduled start time of the meeting or start time of the call
4002
4001
  */
4003
4002
  scheduledStartTime: string;
4004
4003
  /**
4005
4004
  * @hidden
4006
- * Scheduled end time of the meeting
4005
+ * url to join the current meeting or call
4007
4006
  */
4008
- scheduledEndTime: string;
4007
+ joinUrl?: string;
4009
4008
  /**
4010
4009
  * @hidden
4011
- * url to join the current meeting
4010
+ * type of the meeting or call
4012
4011
  */
4013
- joinUrl?: string;
4012
+ type?: T;
4013
+ }
4014
+ /**
4015
+ * @hidden
4016
+ * Hide from docs
4017
+ * Data structure to represent call details
4018
+ */
4019
+ type ICallDetails = IMeetingOrCallDetailsBase<CallType>;
4020
+ /**
4021
+ * @hidden
4022
+ * Hide from docs
4023
+ * Data structure to represent meeting details.
4024
+ */
4025
+ interface IMeetingDetails extends IMeetingOrCallDetailsBase<MeetingType> {
4014
4026
  /**
4015
4027
  * @hidden
4016
- * meeting title name of the meeting
4028
+ * Scheduled end time of the meeting
4017
4029
  */
4018
- title?: string;
4030
+ scheduledEndTime: string;
4019
4031
  /**
4020
4032
  * @hidden
4021
- * type of the meeting
4033
+ * meeting title name of the meeting
4022
4034
  */
4023
- type?: MeetingType;
4035
+ title?: string;
4024
4036
  }
4025
4037
  /**
4026
4038
  * @hidden
@@ -4070,6 +4082,12 @@ export namespace meeting {
4070
4082
  message?: string;
4071
4083
  };
4072
4084
  }
4085
+ interface IAppContentStageSharingCapabilities {
4086
+ /**
4087
+ * indicates whether app has permission to share contents to meeting stage
4088
+ */
4089
+ doesAppHaveSharePermission: boolean;
4090
+ }
4073
4091
  interface IAppContentStageSharingState {
4074
4092
  /**
4075
4093
  * indicates whether app is currently being shared to stage
@@ -4083,12 +4101,6 @@ export namespace meeting {
4083
4101
  */
4084
4102
  isSpeakingDetected: boolean;
4085
4103
  }
4086
- interface IAppContentStageSharingCapabilities {
4087
- /**
4088
- * indicates whether app has permission to share contents to meeting stage
4089
- */
4090
- doesAppHaveSharePermission: boolean;
4091
- }
4092
4104
  enum MeetingType {
4093
4105
  Unknown = "Unknown",
4094
4106
  Adhoc = "Adhoc",
@@ -4097,41 +4109,28 @@ export namespace meeting {
4097
4109
  Broadcast = "Broadcast",
4098
4110
  MeetNow = "MeetNow"
4099
4111
  }
4100
- /**
4101
- * Allows an app to get the incoming audio speaker setting for the meeting user
4102
- *
4103
- * @remarks
4104
- * error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
4105
- * result can either contain the true/false value, incase of a successful fetch or null when the fetching fails
4106
- *
4107
- * @returns Promise result where true means incoming audio is muted and false means incoming audio is unmuted
4108
- */
4109
- function getIncomingClientAudioState(): Promise<boolean>;
4112
+ enum CallType {
4113
+ OneOnOneCall = "oneOnOneCall",
4114
+ GroupCall = "groupCall"
4115
+ }
4110
4116
  /**
4111
4117
  * @deprecated
4112
- * As of 2.0.0-beta.1, please use {@link meeting.getIncomingClientAudioState meeting.getIncomingClientAudioState(): Promise\<boolean\>} instead.
4118
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4113
4119
  *
4114
4120
  * Allows an app to get the incoming audio speaker setting for the meeting user
4115
4121
  *
4116
4122
  * @param callback - Callback contains 2 parameters, error and result.
4123
+ *
4117
4124
  * error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
4118
4125
  * result can either contain the true/false value, incase of a successful fetch or null when the fetching fails
4119
4126
  * result: True means incoming audio is muted and false means incoming audio is unmuted
4120
4127
  */
4121
4128
  function getIncomingClientAudioState(callback: (error: SdkError | null, result: boolean | null) => void): void;
4122
- /**
4123
- * Allows an app to toggle the incoming audio speaker setting for the meeting user from mute to unmute or vice-versa
4124
- *
4125
- * @remarks
4126
- * error can either contain an error of type SdkError, incase of an error, or null when toggle is successful
4127
- * result can either contain the true/false value, incase of a successful toggle or null when the toggling fails
4128
- *
4129
- * @returns Promise result where true means incoming audio is muted and false means incoming audio is unmuted or rejected promise containing SdkError details
4130
- */
4131
- function toggleIncomingClientAudio(): Promise<boolean>;
4132
4129
  /**
4133
4130
  * @deprecated
4134
- * As of 2.0.0-beta.1, please use {@link meeting.toggleIncomingClientAudio meeting.toggleIncomingClientAudio(): Promise\<boolean\>} instead.
4131
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4132
+ *
4133
+ * Allows an app to toggle the incoming audio speaker setting for the meeting user from mute to unmute or vice-versa
4135
4134
  *
4136
4135
  * @param callback - Callback contains 2 parameters, error and result.
4137
4136
  * error can either contain an error of type SdkError, incase of an error, or null when toggle is successful
@@ -4139,50 +4138,29 @@ export namespace meeting {
4139
4138
  * result: True means incoming audio is muted and false means incoming audio is unmuted
4140
4139
  */
4141
4140
  function toggleIncomingClientAudio(callback: (error: SdkError | null, result: boolean | null) => void): void;
4142
- /**
4143
- * @hidden
4144
- * Hide from docs
4145
- *
4146
- * Allows an app to get the meeting details for the meeting
4147
- *
4148
- * @returns Promise containing the meeting details in IMeetingDetails form or rejected promise containing SdkError details
4149
- *
4150
- * @internal
4151
- */
4152
- function getMeetingDetails(): Promise<IMeetingDetails>;
4153
4141
  /**
4154
4142
  * @deprecated
4155
- * As of 2.0.0-beta.1, please use {@link meeting.getMeetingDetails meeting.getMeetingDetails(): Promise\<IMeetingDetails\>} instead.
4143
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4156
4144
  *
4157
4145
  * @hidden
4158
4146
  * Hide from docs
4159
4147
  *
4160
4148
  * Allows an app to get the meeting details for the meeting
4161
4149
  *
4162
- * @param callback - Callback contains 2 parameters, error and meetingDetails.
4150
+ * @param callback - Callback contains 2 parameters, error and meetingDetailsResponse.
4163
4151
  * error can either contain an error of type SdkError, incase of an error, or null when get is successful
4164
- * result can either contain a IMeetingDetails value, incase of a successful get or null when the get fails
4165
- *
4166
- * @internal
4167
- */
4168
- function getMeetingDetails(callback: (error: SdkError | null, meetingDetails: IMeetingDetails | null) => void): void;
4169
- /**
4170
- * @hidden
4171
- * Allows an app to get the authentication token for the anonymous or guest user in the meeting
4172
- *
4173
- * @returns Promise containing the token or rejected promise containing SdkError details
4152
+ * result can either contain a IMeetingDetailsResponse value, incase of a successful get or null when the get fails
4174
4153
  *
4175
4154
  * @internal
4176
4155
  */
4177
- function getAuthenticationTokenForAnonymousUser(): Promise<string>;
4156
+ function getMeetingDetails(callback: (error: SdkError | null, meetingDetails: IMeetingDetailsResponse | null) => void): void;
4178
4157
  /**
4179
4158
  * @deprecated
4180
- * As of 2.0.0-beta.1, please use {@link meeting.getAuthenticationTokenForAnonymousUser meeting.getAuthenticationTokenForAnonymousUser(): Promise\<string\>} instead.
4159
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4181
4160
  *
4182
4161
  * @hidden
4183
- * Hide from docs
4184
- *
4185
4162
  * Allows an app to get the authentication token for the anonymous or guest user in the meeting
4163
+ *
4186
4164
  * @param callback - Callback contains 2 parameters, error and authenticationTokenOfAnonymousUser.
4187
4165
  * error can either contain an error of type SdkError, incase of an error, or null when get is successful
4188
4166
  * authenticationTokenOfAnonymousUser can either contain a string value, incase of a successful get or null when the get fails
@@ -4190,16 +4168,9 @@ export namespace meeting {
4190
4168
  * @internal
4191
4169
  */
4192
4170
  function getAuthenticationTokenForAnonymousUser(callback: (error: SdkError | null, authenticationTokenOfAnonymousUser: string | null) => void): void;
4193
- function isSupported(): boolean;
4194
- /**
4195
- * Allows an app to get the state of the live stream in the current meeting
4196
- *
4197
- * @returns Promise containing the LiveStreamState value or rejected promise containing SdkError details
4198
- */
4199
- function getLiveStreamState(): Promise<LiveStreamState>;
4200
4171
  /**
4201
4172
  * @deprecated
4202
- * As of 2.0.0-beta.1, please use {@link meeting.getLiveStreamState meeting.getLiveStreamState(): Promise\<LiveStreamState\>} instead.
4173
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4203
4174
  *
4204
4175
  * Allows an app to get the state of the live stream in the current meeting
4205
4176
  *
@@ -4209,6 +4180,9 @@ export namespace meeting {
4209
4180
  */
4210
4181
  function getLiveStreamState(callback: (error: SdkError | null, liveStreamState: LiveStreamState | null) => void): void;
4211
4182
  /**
4183
+ * @deprecated
4184
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4185
+ *
4212
4186
  * Allows an app to request the live streaming be started at the given streaming url
4213
4187
  *
4214
4188
  * @remarks
@@ -4216,42 +4190,25 @@ export namespace meeting {
4216
4190
  *
4217
4191
  * @param streamUrl - the url to the stream resource
4218
4192
  * @param streamKey - the key to the stream resource
4219
- * @returns Promise that will be resolved when the operation has completed or rejected with SdkError value
4193
+ * @param callback - Callback contains error parameter which can be of type SdkError in case of an error, or null when operation is successful
4220
4194
  */
4221
- function requestStartLiveStreaming(streamUrl: string, streamKey?: string): Promise<void>;
4195
+ function requestStartLiveStreaming(callback: (error: SdkError | null) => void, streamUrl: string, streamKey?: string): void;
4222
4196
  /**
4223
4197
  * @deprecated
4224
- * As of 2.0.0-beta.1, please use {@link meeting.requestStartLiveStreaming meeting.requestStartLiveStreaming(streamUrl: string, streamKey?: string): Promise\<void\>} instead.
4225
- *
4226
- * Allows an app to request the live streaming be started at the given streaming url
4198
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4227
4199
  *
4228
- * @param streamUrl - The url to the stream resource
4229
- * @param streamKey - The key to the stream resource
4230
- * @param callback - Callback contains error parameter which can be of type SdkError in case of an error, or null when operation is successful
4231
- *
4232
- * Use getLiveStreamState or registerLiveStreamChangedHandler to get updates on the live stream state
4233
- */
4234
- function requestStartLiveStreaming(callback: (error: SdkError | null) => void, streamUrl: string, streamKey?: string): Promise<void>;
4235
- /**
4236
4200
  * Allows an app to request the live streaming be stopped at the given streaming url
4237
4201
  *
4238
4202
  * @remarks
4239
4203
  * Use getLiveStreamState or registerLiveStreamChangedHandler to get updates on the live stream state
4240
4204
  *
4241
- * @returns Promise that will be resolved when the operation has completed or rejected with SdkError value
4242
- */
4243
- function requestStopLiveStreaming(): Promise<void>;
4244
- /**
4245
- * @deprecated
4246
- * As of 2.0.0-beta.1, please use {@link meeting.requestStopLiveStreaming meeting.requestStopLiveStreaming(): Promise\<void\>} instead.
4247
- *
4248
- * Allows an app to request the live streaming be stopped at the given streaming url
4249
4205
  * @param callback - Callback contains error parameter which can be of type SdkError in case of an error, or null when operation is successful
4250
- *
4251
- * Use getLiveStreamState or registerLiveStreamChangedHandler to get updates on the live stream state
4252
4206
  */
4253
4207
  function requestStopLiveStreaming(callback: (error: SdkError | null) => void): void;
4254
4208
  /**
4209
+ * @deprecated
4210
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4211
+ *
4255
4212
  * Registers a handler for changes to the live stream.
4256
4213
  *
4257
4214
  * @remarks
@@ -4260,16 +4217,9 @@ export namespace meeting {
4260
4217
  * @param handler - The handler to invoke when the live stream state changes
4261
4218
  */
4262
4219
  function registerLiveStreamChangedHandler(handler: (liveStreamState: LiveStreamState) => void): void;
4263
- /**
4264
- * Allows an app to share contents in the meeting
4265
- *
4266
- * @param appContentUrl - appContentUrl is the input URL which needs to be shared on to the stage
4267
- * @returns Promise resolved indicating whether or not the share was successful or rejected with SdkError value
4268
- */
4269
- function shareAppContentToStage(appContentUrl: string): Promise<boolean>;
4270
4220
  /**
4271
4221
  * @deprecated
4272
- * As of 2.0.0-beta.1, please use {@link meeting.shareAppContentToStage meeting.shareAppContentToStage(appContentUrl: string): Promise\<boolean\>} instead.
4222
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4273
4223
  *
4274
4224
  * Allows an app to share contents in the meeting
4275
4225
  *
@@ -4279,17 +4229,11 @@ export namespace meeting {
4279
4229
  * @param appContentUrl - is the input URL which needs to be shared on to the stage
4280
4230
  */
4281
4231
  function shareAppContentToStage(callback: (error: SdkError | null, result: boolean | null) => void, appContentUrl: string): void;
4282
- /**
4283
- * Provides information related to app's in-meeting sharing capabilities
4284
- *
4285
- * @returns Promise resolved with sharing capability details or rejected with SdkError value
4286
- */
4287
- function getAppContentStageSharingCapabilities(): Promise<IAppContentStageSharingCapabilities>;
4288
4232
  /**
4289
4233
  * @deprecated
4290
- * As of 2.0.0-beta.1, please use {@link meeting.getAppContentStageSharingCapabilities meeting.getAppContentStageSharingCapabilities(): Promise\<IAppContentStageSharingCapabilities\>} instead.
4234
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4291
4235
  *
4292
- * Provides information related to app's in-meeting sharing capabilities
4236
+ * Provides information related app's in-meeting sharing capabilities
4293
4237
  *
4294
4238
  * @param callback - Callback contains 2 parameters, error and result.
4295
4239
  * error can either contain an error of type SdkError (error indication), or null (non-error indication)
@@ -4297,40 +4241,25 @@ export namespace meeting {
4297
4241
  * (indication of successful retrieval), or null (indication of failed retrieval)
4298
4242
  */
4299
4243
  function getAppContentStageSharingCapabilities(callback: (error: SdkError | null, appContentStageSharingCapabilities: IAppContentStageSharingCapabilities | null) => void): void;
4300
- /**
4301
- * @hidden
4302
- * Hide from docs.
4303
- * ------------------------------------------
4304
- * Terminates current stage sharing session in meeting
4305
- *
4306
- * @returns Promise resolved indicating whether or not sharing successfully stopped or rejected with SdkError value
4307
- */
4308
- function stopSharingAppContentToStage(): Promise<boolean>;
4309
4244
  /**
4310
4245
  * @deprecated
4311
- * As of 2.0.0-beta.1, please use {@link meeting.stopSharingAppContentToStage meeting.stopSharingAppContentToStage(): Promise\<boolean\>} instead.
4246
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4312
4247
  *
4313
4248
  * @hidden
4314
4249
  * Hide from docs.
4315
- * ------------------------------------------
4316
4250
  * Terminates current stage sharing session in meeting
4317
- * @param callback Callback contains 2 parameters, error and result.
4251
+ *
4252
+ * @param callback - Callback contains 2 parameters, error and result.
4318
4253
  * error can either contain an error of type SdkError (error indication), or null (non-error indication)
4319
4254
  * result can either contain a true boolean value (successful termination), or null (unsuccessful fetch)
4320
- * @internal
4321
4255
  */
4322
4256
  function stopSharingAppContentToStage(callback: (error: SdkError | null, result: boolean | null) => void): void;
4323
- /**
4324
- * Provides information related to current stage sharing state for app
4325
- *
4326
- * @returns Promise resolved to the App Content Stage Sharing State, or rejected with SdkError value
4327
- */
4328
- function getAppContentStageSharingState(): Promise<IAppContentStageSharingState>;
4329
4257
  /**
4330
4258
  * @deprecated
4331
- * As of 2.0.0-beta.1, please use {@link meeting.getAppContentStageSharingState meeting.getAppContentStageSharingState(): Promise\<IAppContentStageSharingState\>} instead.
4259
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4332
4260
  *
4333
4261
  * Provides information related to current stage sharing state for app
4262
+ *
4334
4263
  * @param callback - Callback contains 2 parameters, error and result.
4335
4264
  * error can either contain an error of type SdkError (error indication), or null (non-error indication)
4336
4265
  * appContentStageSharingState can either contain an IAppContentStageSharingState object
@@ -4338,9 +4267,13 @@ export namespace meeting {
4338
4267
  */
4339
4268
  function getAppContentStageSharingState(callback: (error: SdkError | null, appContentStageSharingState: IAppContentStageSharingState | null) => void): void;
4340
4269
  /**
4270
+ * @deprecated
4271
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4272
+ *
4341
4273
  * Registers a handler for changes to paticipant speaking states. If any participant is speaking, isSpeakingDetected
4342
4274
  * will be true. If no participants are speaking, isSpeakingDetected will be false. Only one handler can be registered
4343
4275
  * at a time. A subsequent registration replaces an existing registration.
4276
+ *
4344
4277
  * @param handler The handler to invoke when the speaking state of any participant changes (start/stop speaking).
4345
4278
  */
4346
4279
  function registerSpeakingStateChangeHandler(handler: (speakingState: ISpeakingState) => void): void;