@alicloud/live20161101 2.2.0 → 2.3.1

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.
Files changed (53) hide show
  1. package/dist/client.d.ts +35 -0
  2. package/dist/client.js +88 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddCustomLiveStreamTranscodeRequest.d.ts +1 -0
  5. package/dist/models/AddCustomLiveStreamTranscodeRequest.js +2 -0
  6. package/dist/models/AddCustomLiveStreamTranscodeRequest.js.map +1 -1
  7. package/dist/models/AddLiveRecordNotifyConfigRequest.d.ts +2 -0
  8. package/dist/models/AddLiveRecordNotifyConfigRequest.js +4 -0
  9. package/dist/models/AddLiveRecordNotifyConfigRequest.js.map +1 -1
  10. package/dist/models/DescribeLiveRecordNotifyConfigResponseBody.d.ts +2 -0
  11. package/dist/models/DescribeLiveRecordNotifyConfigResponseBody.js +4 -0
  12. package/dist/models/DescribeLiveRecordNotifyConfigResponseBody.js.map +1 -1
  13. package/dist/models/DescribeLiveRecordNotifyRecordsResponseBody.d.ts +1 -0
  14. package/dist/models/DescribeLiveRecordNotifyRecordsResponseBody.js +2 -0
  15. package/dist/models/DescribeLiveRecordNotifyRecordsResponseBody.js.map +1 -1
  16. package/dist/models/DescribeLiveStreamTranscodeInfoResponseBody.d.ts +1 -0
  17. package/dist/models/DescribeLiveStreamTranscodeInfoResponseBody.js +2 -0
  18. package/dist/models/DescribeLiveStreamTranscodeInfoResponseBody.js.map +1 -1
  19. package/dist/models/PutRecordStorageLifeCycleRequest.d.ts +37 -0
  20. package/dist/models/PutRecordStorageLifeCycleRequest.js +65 -0
  21. package/dist/models/PutRecordStorageLifeCycleRequest.js.map +1 -0
  22. package/dist/models/PutRecordStorageLifeCycleResponse.d.ts +19 -0
  23. package/dist/models/PutRecordStorageLifeCycleResponse.js +69 -0
  24. package/dist/models/PutRecordStorageLifeCycleResponse.js.map +1 -0
  25. package/dist/models/PutRecordStorageLifeCycleResponseBody.d.ts +28 -0
  26. package/dist/models/PutRecordStorageLifeCycleResponseBody.js +62 -0
  27. package/dist/models/PutRecordStorageLifeCycleResponseBody.js.map +1 -0
  28. package/dist/models/PutRecordStorageLifeCycleShrinkRequest.d.ts +37 -0
  29. package/dist/models/PutRecordStorageLifeCycleShrinkRequest.js +62 -0
  30. package/dist/models/PutRecordStorageLifeCycleShrinkRequest.js.map +1 -0
  31. package/dist/models/UpdateCustomLiveStreamTranscodeRequest.d.ts +1 -0
  32. package/dist/models/UpdateCustomLiveStreamTranscodeRequest.js +2 -0
  33. package/dist/models/UpdateCustomLiveStreamTranscodeRequest.js.map +1 -1
  34. package/dist/models/UpdateLiveRecordNotifyConfigRequest.d.ts +2 -0
  35. package/dist/models/UpdateLiveRecordNotifyConfigRequest.js +4 -0
  36. package/dist/models/UpdateLiveRecordNotifyConfigRequest.js.map +1 -1
  37. package/dist/models/model.d.ts +4 -0
  38. package/dist/models/model.js +15 -7
  39. package/dist/models/model.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/client.ts +100 -0
  42. package/src/models/AddCustomLiveStreamTranscodeRequest.ts +3 -0
  43. package/src/models/AddLiveRecordNotifyConfigRequest.ts +6 -0
  44. package/src/models/DescribeLiveRecordNotifyConfigResponseBody.ts +6 -0
  45. package/src/models/DescribeLiveRecordNotifyRecordsResponseBody.ts +3 -0
  46. package/src/models/DescribeLiveStreamTranscodeInfoResponseBody.ts +3 -0
  47. package/src/models/PutRecordStorageLifeCycleRequest.ts +57 -0
  48. package/src/models/PutRecordStorageLifeCycleResponse.ts +40 -0
  49. package/src/models/PutRecordStorageLifeCycleResponseBody.ts +45 -0
  50. package/src/models/PutRecordStorageLifeCycleShrinkRequest.ts +54 -0
  51. package/src/models/UpdateCustomLiveStreamTranscodeRequest.ts +3 -0
  52. package/src/models/UpdateLiveRecordNotifyConfigRequest.ts +6 -0
  53. package/src/models/model.ts +4 -0
package/dist/client.d.ts CHANGED
@@ -8587,6 +8587,37 @@ export default class Client extends OpenApi {
8587
8587
  * @returns PublishLiveStagingConfigToProductionResponse
8588
8588
  */
8589
8589
  publishLiveStagingConfigToProduction(request: $_model.PublishLiveStagingConfigToProductionRequest): Promise<$_model.PublishLiveStagingConfigToProductionResponse>;
8590
+ /**
8591
+ * 用于修改指定直播流的录制文件存储时长。
8592
+ *
8593
+ * @remarks
8594
+ * ## 请求说明
8595
+ * - 该接口允许用户为一个或多个指定的直播流设置新的录制文件存储期限。
8596
+ * - `Tag` 字段必须符合格式 `[0-9]+days`,表示直播结束后录制内容将被保存的天数。
8597
+ * - 如果对某个流的存储时间修改失败,错误信息会被记录在返回结果中。对于失败的情况,调用方应重试最多3次;如果超过重试次数仍失败,则视为最终失败。
8598
+ * - 为了支持未来可能的需求变化(如更长的存储周期),请确保您的系统能够处理不同的时间段值。
8599
+ * - 成功执行后,供应商会通过异步回调的方式通知调用方所有操作的结果。若回调失败,将按照1小时、2小时、4小时的时间间隔尝试重新发送,直至成功或达到最大重试次数。
8600
+ *
8601
+ * @param tmpReq - PutRecordStorageLifeCycleRequest
8602
+ * @param runtime - runtime options for this request RuntimeOptions
8603
+ * @returns PutRecordStorageLifeCycleResponse
8604
+ */
8605
+ putRecordStorageLifeCycleWithOptions(tmpReq: $_model.PutRecordStorageLifeCycleRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PutRecordStorageLifeCycleResponse>;
8606
+ /**
8607
+ * 用于修改指定直播流的录制文件存储时长。
8608
+ *
8609
+ * @remarks
8610
+ * ## 请求说明
8611
+ * - 该接口允许用户为一个或多个指定的直播流设置新的录制文件存储期限。
8612
+ * - `Tag` 字段必须符合格式 `[0-9]+days`,表示直播结束后录制内容将被保存的天数。
8613
+ * - 如果对某个流的存储时间修改失败,错误信息会被记录在返回结果中。对于失败的情况,调用方应重试最多3次;如果超过重试次数仍失败,则视为最终失败。
8614
+ * - 为了支持未来可能的需求变化(如更长的存储周期),请确保您的系统能够处理不同的时间段值。
8615
+ * - 成功执行后,供应商会通过异步回调的方式通知调用方所有操作的结果。若回调失败,将按照1小时、2小时、4小时的时间间隔尝试重新发送,直至成功或达到最大重试次数。
8616
+ *
8617
+ * @param request - PutRecordStorageLifeCycleRequest
8618
+ * @returns PutRecordStorageLifeCycleResponse
8619
+ */
8620
+ putRecordStorageLifeCycle(request: $_model.PutRecordStorageLifeCycleRequest): Promise<$_model.PutRecordStorageLifeCycleResponse>;
8590
8621
  /**
8591
8622
  * Queries the dual-stream disaster recovery records of online streams.
8592
8623
  *
@@ -9981,12 +10012,16 @@ export default class Client extends OpenApi {
9981
10012
  */
9982
10013
  tagLiveResources(request: $_model.TagLiveResourcesRequest): Promise<$_model.TagLiveResourcesResponse>;
9983
10014
  /**
10015
+ * 解绑标签
10016
+ *
9984
10017
  * @param request - UnTagLiveResourcesRequest
9985
10018
  * @param runtime - runtime options for this request RuntimeOptions
9986
10019
  * @returns UnTagLiveResourcesResponse
9987
10020
  */
9988
10021
  unTagLiveResourcesWithOptions(request: $_model.UnTagLiveResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UnTagLiveResourcesResponse>;
9989
10022
  /**
10023
+ * 解绑标签
10024
+ *
9990
10025
  * @param request - UnTagLiveResourcesRequest
9991
10026
  * @returns UnTagLiveResourcesResponse
9992
10027
  */
package/dist/client.js CHANGED
@@ -677,6 +677,9 @@ class Client extends openapi_core_1.default {
677
677
  if (!$dara.isNull(request.bitrateWithSource)) {
678
678
  query["BitrateWithSource"] = request.bitrateWithSource;
679
679
  }
680
+ if (!$dara.isNull(request.deInterlaced)) {
681
+ query["DeInterlaced"] = request.deInterlaced;
682
+ }
680
683
  if (!$dara.isNull(request.domain)) {
681
684
  query["Domain"] = request.domain;
682
685
  }
@@ -1860,6 +1863,12 @@ class Client extends openapi_core_1.default {
1860
1863
  if (!$dara.isNull(request.needStatusNotify)) {
1861
1864
  query["NeedStatusNotify"] = request.needStatusNotify;
1862
1865
  }
1866
+ if (!$dara.isNull(request.notifyAuthKey)) {
1867
+ query["NotifyAuthKey"] = request.notifyAuthKey;
1868
+ }
1869
+ if (!$dara.isNull(request.notifyReqAuth)) {
1870
+ query["NotifyReqAuth"] = request.notifyReqAuth;
1871
+ }
1863
1872
  if (!$dara.isNull(request.notifyUrl)) {
1864
1873
  query["NotifyUrl"] = request.notifyUrl;
1865
1874
  }
@@ -21634,6 +21643,72 @@ class Client extends openapi_core_1.default {
21634
21643
  let runtime = new $dara.RuntimeOptions({});
21635
21644
  return await this.publishLiveStagingConfigToProductionWithOptions(request, runtime);
21636
21645
  }
21646
+ /**
21647
+ * 用于修改指定直播流的录制文件存储时长。
21648
+ *
21649
+ * @remarks
21650
+ * ## 请求说明
21651
+ * - 该接口允许用户为一个或多个指定的直播流设置新的录制文件存储期限。
21652
+ * - `Tag` 字段必须符合格式 `[0-9]+days`,表示直播结束后录制内容将被保存的天数。
21653
+ * - 如果对某个流的存储时间修改失败,错误信息会被记录在返回结果中。对于失败的情况,调用方应重试最多3次;如果超过重试次数仍失败,则视为最终失败。
21654
+ * - 为了支持未来可能的需求变化(如更长的存储周期),请确保您的系统能够处理不同的时间段值。
21655
+ * - 成功执行后,供应商会通过异步回调的方式通知调用方所有操作的结果。若回调失败,将按照1小时、2小时、4小时的时间间隔尝试重新发送,直至成功或达到最大重试次数。
21656
+ *
21657
+ * @param tmpReq - PutRecordStorageLifeCycleRequest
21658
+ * @param runtime - runtime options for this request RuntimeOptions
21659
+ * @returns PutRecordStorageLifeCycleResponse
21660
+ */
21661
+ async putRecordStorageLifeCycleWithOptions(tmpReq, runtime) {
21662
+ tmpReq.validate();
21663
+ let request = new $_model.PutRecordStorageLifeCycleShrinkRequest({});
21664
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
21665
+ if (!$dara.isNull(tmpReq.streamIds)) {
21666
+ request.streamIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.streamIds, "StreamIds", "json");
21667
+ }
21668
+ let body = {};
21669
+ if (!$dara.isNull(request.streamIdsShrink)) {
21670
+ body["StreamIds"] = request.streamIdsShrink;
21671
+ }
21672
+ if (!$dara.isNull(request.tag)) {
21673
+ body["Tag"] = request.tag;
21674
+ }
21675
+ if (!$dara.isNull(request.unixTimestamp)) {
21676
+ body["UnixTimestamp"] = request.unixTimestamp;
21677
+ }
21678
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
21679
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
21680
+ });
21681
+ let params = new openapi_core_2.$OpenApiUtil.Params({
21682
+ action: "PutRecordStorageLifeCycle",
21683
+ version: "2016-11-01",
21684
+ protocol: "HTTPS",
21685
+ pathname: "/",
21686
+ method: "POST",
21687
+ authType: "AK",
21688
+ style: "RPC",
21689
+ reqBodyType: "formData",
21690
+ bodyType: "json",
21691
+ });
21692
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.PutRecordStorageLifeCycleResponse({}));
21693
+ }
21694
+ /**
21695
+ * 用于修改指定直播流的录制文件存储时长。
21696
+ *
21697
+ * @remarks
21698
+ * ## 请求说明
21699
+ * - 该接口允许用户为一个或多个指定的直播流设置新的录制文件存储期限。
21700
+ * - `Tag` 字段必须符合格式 `[0-9]+days`,表示直播结束后录制内容将被保存的天数。
21701
+ * - 如果对某个流的存储时间修改失败,错误信息会被记录在返回结果中。对于失败的情况,调用方应重试最多3次;如果超过重试次数仍失败,则视为最终失败。
21702
+ * - 为了支持未来可能的需求变化(如更长的存储周期),请确保您的系统能够处理不同的时间段值。
21703
+ * - 成功执行后,供应商会通过异步回调的方式通知调用方所有操作的结果。若回调失败,将按照1小时、2小时、4小时的时间间隔尝试重新发送,直至成功或达到最大重试次数。
21704
+ *
21705
+ * @param request - PutRecordStorageLifeCycleRequest
21706
+ * @returns PutRecordStorageLifeCycleResponse
21707
+ */
21708
+ async putRecordStorageLifeCycle(request) {
21709
+ let runtime = new $dara.RuntimeOptions({});
21710
+ return await this.putRecordStorageLifeCycleWithOptions(request, runtime);
21711
+ }
21637
21712
  /**
21638
21713
  * Queries the dual-stream disaster recovery records of online streams.
21639
21714
  *
@@ -25053,6 +25128,8 @@ class Client extends openapi_core_1.default {
25053
25128
  return await this.tagLiveResourcesWithOptions(request, runtime);
25054
25129
  }
25055
25130
  /**
25131
+ * 解绑标签
25132
+ *
25056
25133
  * @param request - UnTagLiveResourcesRequest
25057
25134
  * @param runtime - runtime options for this request RuntimeOptions
25058
25135
  * @returns UnTagLiveResourcesResponse
@@ -25095,6 +25172,8 @@ class Client extends openapi_core_1.default {
25095
25172
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UnTagLiveResourcesResponse({}));
25096
25173
  }
25097
25174
  /**
25175
+ * 解绑标签
25176
+ *
25098
25177
  * @param request - UnTagLiveResourcesRequest
25099
25178
  * @returns UnTagLiveResourcesResponse
25100
25179
  */
@@ -25391,6 +25470,9 @@ class Client extends openapi_core_1.default {
25391
25470
  if (!$dara.isNull(request.bitrateWithSource)) {
25392
25471
  query["BitrateWithSource"] = request.bitrateWithSource;
25393
25472
  }
25473
+ if (!$dara.isNull(request.deInterlaced)) {
25474
+ query["DeInterlaced"] = request.deInterlaced;
25475
+ }
25394
25476
  if (!$dara.isNull(request.domain)) {
25395
25477
  query["Domain"] = request.domain;
25396
25478
  }
@@ -26574,6 +26656,12 @@ class Client extends openapi_core_1.default {
26574
26656
  if (!$dara.isNull(request.needStatusNotify)) {
26575
26657
  query["NeedStatusNotify"] = request.needStatusNotify;
26576
26658
  }
26659
+ if (!$dara.isNull(request.notifyAuthKey)) {
26660
+ query["NotifyAuthKey"] = request.notifyAuthKey;
26661
+ }
26662
+ if (!$dara.isNull(request.notifyReqAuth)) {
26663
+ query["NotifyReqAuth"] = request.notifyReqAuth;
26664
+ }
26577
26665
  if (!$dara.isNull(request.notifyUrl)) {
26578
26666
  query["NotifyUrl"] = request.notifyUrl;
26579
26667
  }