@alicloud/live20161101 2.1.3 → 2.2.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.
package/dist/client.d.ts CHANGED
@@ -7982,6 +7982,21 @@ export default class Client extends OpenApi {
7982
7982
  * @returns ListPlaylistItemsResponse
7983
7983
  */
7984
7984
  listPlaylistItems(request: $_model.ListPlaylistItemsRequest): Promise<$_model.ListPlaylistItemsResponse>;
7985
+ /**
7986
+ * 获取在线频道列表
7987
+ *
7988
+ * @param request - ListRTCLiveRoomsRequest
7989
+ * @param runtime - runtime options for this request RuntimeOptions
7990
+ * @returns ListRTCLiveRoomsResponse
7991
+ */
7992
+ listRTCLiveRoomsWithOptions(request: $_model.ListRTCLiveRoomsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListRTCLiveRoomsResponse>;
7993
+ /**
7994
+ * 获取在线频道列表
7995
+ *
7996
+ * @param request - ListRTCLiveRoomsRequest
7997
+ * @returns ListRTCLiveRoomsResponse
7998
+ */
7999
+ listRTCLiveRooms(request: $_model.ListRTCLiveRoomsRequest): Promise<$_model.ListRTCLiveRoomsResponse>;
7985
8000
  /**
7986
8001
  * Queries the callback records of a subscription to mixed-stream relay events.
7987
8002
  *
package/dist/client.js CHANGED
@@ -19909,6 +19909,51 @@ class Client extends openapi_core_1.default {
19909
19909
  let runtime = new $dara.RuntimeOptions({});
19910
19910
  return await this.listPlaylistItemsWithOptions(request, runtime);
19911
19911
  }
19912
+ /**
19913
+ * 获取在线频道列表
19914
+ *
19915
+ * @param request - ListRTCLiveRoomsRequest
19916
+ * @param runtime - runtime options for this request RuntimeOptions
19917
+ * @returns ListRTCLiveRoomsResponse
19918
+ */
19919
+ async listRTCLiveRoomsWithOptions(request, runtime) {
19920
+ request.validate();
19921
+ let query = {};
19922
+ if (!$dara.isNull(request.appId)) {
19923
+ query["AppId"] = request.appId;
19924
+ }
19925
+ if (!$dara.isNull(request.pageNo)) {
19926
+ query["PageNo"] = request.pageNo;
19927
+ }
19928
+ if (!$dara.isNull(request.pageSize)) {
19929
+ query["PageSize"] = request.pageSize;
19930
+ }
19931
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
19932
+ query: openapi_core_2.OpenApiUtil.query(query),
19933
+ });
19934
+ let params = new openapi_core_2.$OpenApiUtil.Params({
19935
+ action: "ListRTCLiveRooms",
19936
+ version: "2016-11-01",
19937
+ protocol: "HTTPS",
19938
+ pathname: "/",
19939
+ method: "POST",
19940
+ authType: "AK",
19941
+ style: "RPC",
19942
+ reqBodyType: "formData",
19943
+ bodyType: "json",
19944
+ });
19945
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListRTCLiveRoomsResponse({}));
19946
+ }
19947
+ /**
19948
+ * 获取在线频道列表
19949
+ *
19950
+ * @param request - ListRTCLiveRoomsRequest
19951
+ * @returns ListRTCLiveRoomsResponse
19952
+ */
19953
+ async listRTCLiveRooms(request) {
19954
+ let runtime = new $dara.RuntimeOptions({});
19955
+ return await this.listRTCLiveRoomsWithOptions(request, runtime);
19956
+ }
19912
19957
  /**
19913
19958
  * Queries the callback records of a subscription to mixed-stream relay events.
19914
19959
  *