tencentcloud-sdk-nodejs-intl-en 3.0.798 → 3.0.800

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.798",
3
+ "version": "3.0.800",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,9 @@ const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
19
  const CreateSessionResponse = models.CreateSessionResponse;
20
20
  const StopPublishStreamRequest = models.StopPublishStreamRequest;
21
+ const StartPublishStreamWithURLResponse = models.StartPublishStreamWithURLResponse;
21
22
  const StopPublishStreamResponse = models.StopPublishStreamResponse;
23
+ const StartPublishStreamWithURLRequest = models.StartPublishStreamWithURLRequest;
22
24
  const DestroySessionResponse = models.DestroySessionResponse;
23
25
  const StartPublishStreamResponse = models.StartPublishStreamResponse;
24
26
  const ApplyConcurrentResponse = models.ApplyConcurrentResponse;
@@ -49,6 +51,28 @@ class CarClient extends AbstractClient {
49
51
  this.request("ApplyConcurrent", req, resp, cb);
50
52
  }
51
53
 
54
+ /**
55
+ * This API is used to terminate a session.
56
+ * @param {DestroySessionRequest} req
57
+ * @param {function(string, DestroySessionResponse):void} cb
58
+ * @public
59
+ */
60
+ DestroySession(req, cb) {
61
+ let resp = new DestroySessionResponse();
62
+ this.request("DestroySession", req, resp, cb);
63
+ }
64
+
65
+ /**
66
+ * This API is used to start stream push.
67
+ * @param {StartPublishStreamRequest} req
68
+ * @param {function(string, StartPublishStreamResponse):void} cb
69
+ * @public
70
+ */
71
+ StartPublishStream(req, cb) {
72
+ let resp = new StartPublishStreamResponse();
73
+ this.request("StartPublishStream", req, resp, cb);
74
+ }
75
+
52
76
  /**
53
77
  * This API is used to stop stream push.
54
78
  * @param {StopPublishStreamRequest} req
@@ -61,14 +85,14 @@ class CarClient extends AbstractClient {
61
85
  }
62
86
 
63
87
  /**
64
- * This API is used to terminate a session.
65
- * @param {DestroySessionRequest} req
66
- * @param {function(string, DestroySessionResponse):void} cb
88
+ * This API is used to start stream push to the specified URL. It is billed separately. For billing details, see the [Push to third-party address](https://intl.cloud.tencent.com/document/product/1547/72168?from_cn_redirect=1#98ac188a-d122-4caf-88be-05268ecefdf6) section.
89
+ * @param {StartPublishStreamWithURLRequest} req
90
+ * @param {function(string, StartPublishStreamWithURLResponse):void} cb
67
91
  * @public
68
92
  */
69
- DestroySession(req, cb) {
70
- let resp = new DestroySessionResponse();
71
- this.request("DestroySession", req, resp, cb);
93
+ StartPublishStreamWithURL(req, cb) {
94
+ let resp = new StartPublishStreamWithURLResponse();
95
+ this.request("StartPublishStreamWithURL", req, resp, cb);
72
96
  }
73
97
 
74
98
  /**
@@ -82,17 +106,6 @@ class CarClient extends AbstractClient {
82
106
  this.request("CreateSession", req, resp, cb);
83
107
  }
84
108
 
85
- /**
86
- * This API is used to start stream push.
87
- * @param {StartPublishStreamRequest} req
88
- * @param {function(string, StartPublishStreamResponse):void} cb
89
- * @public
90
- */
91
- StartPublishStream(req, cb) {
92
- let resp = new StartPublishStreamResponse();
93
- this.request("StartPublishStream", req, resp, cb);
94
- }
95
-
96
109
 
97
110
  }
98
111
  module.exports = CarClient;
@@ -79,6 +79,34 @@ class StopPublishStreamRequest extends AbstractModel {
79
79
  }
80
80
  }
81
81
 
82
+ /**
83
+ * StartPublishStreamWithURL response structure.
84
+ * @class
85
+ */
86
+ class StartPublishStreamWithURLResponse extends AbstractModel {
87
+ constructor(){
88
+ super();
89
+
90
+ /**
91
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
92
+ * @type {string || null}
93
+ */
94
+ this.RequestId = null;
95
+
96
+ }
97
+
98
+ /**
99
+ * @private
100
+ */
101
+ deserialize(params) {
102
+ if (!params) {
103
+ return;
104
+ }
105
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
106
+
107
+ }
108
+ }
109
+
82
110
  /**
83
111
  * StopPublishStream response structure.
84
112
  * @class
@@ -107,6 +135,41 @@ class StopPublishStreamResponse extends AbstractModel {
107
135
  }
108
136
  }
109
137
 
138
+ /**
139
+ * StartPublishStreamWithURL request structure.
140
+ * @class
141
+ */
142
+ class StartPublishStreamWithURLRequest extends AbstractModel {
143
+ constructor(){
144
+ super();
145
+
146
+ /**
147
+ * Unique user ID, which is customized by you and is not understood by CAR.
148
+ * @type {string || null}
149
+ */
150
+ this.UserId = null;
151
+
152
+ /**
153
+ * Push address. Only RTMP is supported for push currently.
154
+ * @type {string || null}
155
+ */
156
+ this.PublishStreamURL = null;
157
+
158
+ }
159
+
160
+ /**
161
+ * @private
162
+ */
163
+ deserialize(params) {
164
+ if (!params) {
165
+ return;
166
+ }
167
+ this.UserId = 'UserId' in params ? params.UserId : null;
168
+ this.PublishStreamURL = 'PublishStreamURL' in params ? params.PublishStreamURL : null;
169
+
170
+ }
171
+ }
172
+
110
173
  /**
111
174
  * DestroySession response structure.
112
175
  * @class
@@ -394,7 +457,9 @@ If the current user is the host, `HostUserId` must be the same as their `UserId`
394
457
  module.exports = {
395
458
  CreateSessionResponse: CreateSessionResponse,
396
459
  StopPublishStreamRequest: StopPublishStreamRequest,
460
+ StartPublishStreamWithURLResponse: StartPublishStreamWithURLResponse,
397
461
  StopPublishStreamResponse: StopPublishStreamResponse,
462
+ StartPublishStreamWithURLRequest: StartPublishStreamWithURLRequest,
398
463
  DestroySessionResponse: DestroySessionResponse,
399
464
  StartPublishStreamResponse: StartPublishStreamResponse,
400
465
  ApplyConcurrentResponse: ApplyConcurrentResponse,
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.798";
1
+ const sdkVersion = "3.0.800";
2
2
  module.exports = sdkVersion
@@ -56,6 +56,7 @@ const DeleteStreamLiveInputSecurityGroupRequest = models.DeleteStreamLiveInputSe
56
56
  const AttachedInput = models.AttachedInput;
57
57
  const QueryInputStreamStateResponse = models.QueryInputStreamStateResponse;
58
58
  const DescribeStreamLiveWatermarksRequest = models.DescribeStreamLiveWatermarksRequest;
59
+ const TimedMetadataInfo = models.TimedMetadataInfo;
59
60
  const DescribeTranscodeDetailInfo = models.DescribeTranscodeDetailInfo;
60
61
  const TimeShiftSettingsInfo = models.TimeShiftSettingsInfo;
61
62
  const DeliveryRestrictionsInfo = models.DeliveryRestrictionsInfo;
@@ -73,7 +74,7 @@ const FailOverSettings = models.FailOverSettings;
73
74
  const ChannelInputStatistics = models.ChannelInputStatistics;
74
75
  const HlsRemuxSettingsInfo = models.HlsRemuxSettingsInfo;
75
76
  const EventSettingsResp = models.EventSettingsResp;
76
- const TimingSettingsResp = models.TimingSettingsResp;
77
+ const TimedMetadataSettingInfo = models.TimedMetadataSettingInfo;
77
78
  const AudioTemplateInfo = models.AudioTemplateInfo;
78
79
  const StreamPackageSettingsInfo = models.StreamPackageSettingsInfo;
79
80
  const DescribeStreamLiveChannelsResponse = models.DescribeStreamLiveChannelsResponse;
@@ -116,6 +117,7 @@ const DescribeStreamLiveInputSecurityGroupsResponse = models.DescribeStreamLiveI
116
117
  const EventNotifySetting = models.EventNotifySetting;
117
118
  const DeleteStreamLiveInputResponse = models.DeleteStreamLiveInputResponse;
118
119
  const StartStreamLiveChannelRequest = models.StartStreamLiveChannelRequest;
120
+ const TimingSettingsResp = models.TimingSettingsResp;
119
121
  const DescribeStreamLiveWatermarkResponse = models.DescribeStreamLiveWatermarkResponse;
120
122
  const StreamScte35Info = models.StreamScte35Info;
121
123
  const StreamAudioInfo = models.StreamAudioInfo;
@@ -1921,6 +1921,34 @@ class DescribeStreamLiveWatermarksRequest extends AbstractModel {
1921
1921
  }
1922
1922
  }
1923
1923
 
1924
+ /**
1925
+ * Transparent transmission of meta information plan configuration.
1926
+ * @class
1927
+ */
1928
+ class TimedMetadataInfo extends AbstractModel {
1929
+ constructor(){
1930
+ super();
1931
+
1932
+ /**
1933
+ * Base64-encoded id3 metadata information, with a maximum limit of 1024 characters.
1934
+ * @type {string || null}
1935
+ */
1936
+ this.ID3 = null;
1937
+
1938
+ }
1939
+
1940
+ /**
1941
+ * @private
1942
+ */
1943
+ deserialize(params) {
1944
+ if (!params) {
1945
+ return;
1946
+ }
1947
+ this.ID3 = 'ID3' in params ? params.ID3 : null;
1948
+
1949
+ }
1950
+ }
1951
+
1924
1952
  /**
1925
1953
  * Transcoding details.
1926
1954
  * @class
@@ -2901,6 +2929,12 @@ class EventSettingsResp extends AbstractModel {
2901
2929
  */
2902
2930
  this.SpliceDuration = null;
2903
2931
 
2932
+ /**
2933
+ * Meta information plan configuration.
2934
+ * @type {TimedMetadataInfo || null}
2935
+ */
2936
+ this.TimedMetadataSetting = null;
2937
+
2904
2938
  }
2905
2939
 
2906
2940
  /**
@@ -2935,43 +2969,28 @@ class EventSettingsResp extends AbstractModel {
2935
2969
  this.SpliceEventID = 'SpliceEventID' in params ? params.SpliceEventID : null;
2936
2970
  this.SpliceDuration = 'SpliceDuration' in params ? params.SpliceDuration : null;
2937
2971
 
2972
+ if (params.TimedMetadataSetting) {
2973
+ let obj = new TimedMetadataInfo();
2974
+ obj.deserialize(params.TimedMetadataSetting)
2975
+ this.TimedMetadataSetting = obj;
2976
+ }
2977
+
2938
2978
  }
2939
2979
  }
2940
2980
 
2941
2981
  /**
2942
- * Event trigger time settings
2982
+ * Transparent transmission of ID3 information configuration.
2943
2983
  * @class
2944
2984
  */
2945
- class TimingSettingsResp extends AbstractModel {
2985
+ class TimedMetadataSettingInfo extends AbstractModel {
2946
2986
  constructor(){
2947
2987
  super();
2948
2988
 
2949
2989
  /**
2950
- * Event trigger type
2951
- * @type {string || null}
2952
- */
2953
- this.StartType = null;
2954
-
2955
- /**
2956
- * Not empty if `StartType` is `FIXED_TIME`
2957
- UTC time, such as `2020-01-01T12:00:00Z`
2958
- * @type {string || null}
2959
- */
2960
- this.Time = null;
2961
-
2962
- /**
2963
- * This parameter cannot be empty if `EventType` is `TIMED_RECORD`.
2964
- It indicates the start time for recording in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the current time.
2965
- * @type {string || null}
2966
- */
2967
- this.StartTime = null;
2968
-
2969
- /**
2970
- * This parameter cannot be empty if `EventType` is `TIMED_RECORD`.
2971
- It indicates the end time for recording in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the start time for recording.
2972
- * @type {string || null}
2990
+ * Whether to transparently transmit ID3 information, optional values: 0:NO_PASSTHROUGH, 1:PASSTHROUGH, default 0.
2991
+ * @type {number || null}
2973
2992
  */
2974
- this.EndTime = null;
2993
+ this.Behavior = null;
2975
2994
 
2976
2995
  }
2977
2996
 
@@ -2982,10 +3001,7 @@ It indicates the end time for recording in UTC format (e.g., `2020-01-01T12:00:0
2982
3001
  if (!params) {
2983
3002
  return;
2984
3003
  }
2985
- this.StartType = 'StartType' in params ? params.StartType : null;
2986
- this.Time = 'Time' in params ? params.Time : null;
2987
- this.StartTime = 'StartTime' in params ? params.StartTime : null;
2988
- this.EndTime = 'EndTime' in params ? params.EndTime : null;
3004
+ this.Behavior = 'Behavior' in params ? params.Behavior : null;
2989
3005
 
2990
3006
  }
2991
3007
  }
@@ -4132,6 +4148,12 @@ class EventSettingsReq extends AbstractModel {
4132
4148
  */
4133
4149
  this.SpliceDuration = null;
4134
4150
 
4151
+ /**
4152
+ * Meta information plan configuration.
4153
+ * @type {TimedMetadataInfo || null}
4154
+ */
4155
+ this.TimedMetadataSetting = null;
4156
+
4135
4157
  }
4136
4158
 
4137
4159
  /**
@@ -4166,6 +4188,12 @@ class EventSettingsReq extends AbstractModel {
4166
4188
  this.SpliceEventID = 'SpliceEventID' in params ? params.SpliceEventID : null;
4167
4189
  this.SpliceDuration = 'SpliceDuration' in params ? params.SpliceDuration : null;
4168
4190
 
4191
+ if (params.TimedMetadataSetting) {
4192
+ let obj = new TimedMetadataInfo();
4193
+ obj.deserialize(params.TimedMetadataSetting)
4194
+ this.TimedMetadataSetting = obj;
4195
+ }
4196
+
4169
4197
  }
4170
4198
  }
4171
4199
 
@@ -4305,6 +4333,12 @@ Note: this field may return `null`, indicating that no valid value was found.
4305
4333
  */
4306
4334
  this.AVTemplateNames = null;
4307
4335
 
4336
+ /**
4337
+ * Meta information controls configuration.
4338
+ * @type {TimedMetadataSettingInfo || null}
4339
+ */
4340
+ this.TimedMetadataSettings = null;
4341
+
4308
4342
  }
4309
4343
 
4310
4344
  /**
@@ -4325,6 +4359,12 @@ Note: this field may return `null`, indicating that no valid value was found.
4325
4359
  }
4326
4360
  this.AVTemplateNames = 'AVTemplateNames' in params ? params.AVTemplateNames : null;
4327
4361
 
4362
+ if (params.TimedMetadataSettings) {
4363
+ let obj = new TimedMetadataSettingInfo();
4364
+ obj.deserialize(params.TimedMetadataSettings)
4365
+ this.TimedMetadataSettings = obj;
4366
+ }
4367
+
4328
4368
  }
4329
4369
  }
4330
4370
 
@@ -4937,6 +4977,58 @@ class StartStreamLiveChannelRequest extends AbstractModel {
4937
4977
  }
4938
4978
  }
4939
4979
 
4980
+ /**
4981
+ * Event trigger time settings
4982
+ * @class
4983
+ */
4984
+ class TimingSettingsResp extends AbstractModel {
4985
+ constructor(){
4986
+ super();
4987
+
4988
+ /**
4989
+ * Event trigger type
4990
+ * @type {string || null}
4991
+ */
4992
+ this.StartType = null;
4993
+
4994
+ /**
4995
+ * Not empty if `StartType` is `FIXED_TIME`
4996
+ UTC time, such as `2020-01-01T12:00:00Z`
4997
+ * @type {string || null}
4998
+ */
4999
+ this.Time = null;
5000
+
5001
+ /**
5002
+ * This parameter cannot be empty if `EventType` is `TIMED_RECORD`.
5003
+ It indicates the start time for recording in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the current time.
5004
+ * @type {string || null}
5005
+ */
5006
+ this.StartTime = null;
5007
+
5008
+ /**
5009
+ * This parameter cannot be empty if `EventType` is `TIMED_RECORD`.
5010
+ It indicates the end time for recording in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the start time for recording.
5011
+ * @type {string || null}
5012
+ */
5013
+ this.EndTime = null;
5014
+
5015
+ }
5016
+
5017
+ /**
5018
+ * @private
5019
+ */
5020
+ deserialize(params) {
5021
+ if (!params) {
5022
+ return;
5023
+ }
5024
+ this.StartType = 'StartType' in params ? params.StartType : null;
5025
+ this.Time = 'Time' in params ? params.Time : null;
5026
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
5027
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
5028
+
5029
+ }
5030
+ }
5031
+
4940
5032
  /**
4941
5033
  * DescribeStreamLiveWatermark response structure.
4942
5034
  * @class
@@ -6467,6 +6559,7 @@ module.exports = {
6467
6559
  AttachedInput: AttachedInput,
6468
6560
  QueryInputStreamStateResponse: QueryInputStreamStateResponse,
6469
6561
  DescribeStreamLiveWatermarksRequest: DescribeStreamLiveWatermarksRequest,
6562
+ TimedMetadataInfo: TimedMetadataInfo,
6470
6563
  DescribeTranscodeDetailInfo: DescribeTranscodeDetailInfo,
6471
6564
  TimeShiftSettingsInfo: TimeShiftSettingsInfo,
6472
6565
  DeliveryRestrictionsInfo: DeliveryRestrictionsInfo,
@@ -6484,7 +6577,7 @@ module.exports = {
6484
6577
  ChannelInputStatistics: ChannelInputStatistics,
6485
6578
  HlsRemuxSettingsInfo: HlsRemuxSettingsInfo,
6486
6579
  EventSettingsResp: EventSettingsResp,
6487
- TimingSettingsResp: TimingSettingsResp,
6580
+ TimedMetadataSettingInfo: TimedMetadataSettingInfo,
6488
6581
  AudioTemplateInfo: AudioTemplateInfo,
6489
6582
  StreamPackageSettingsInfo: StreamPackageSettingsInfo,
6490
6583
  DescribeStreamLiveChannelsResponse: DescribeStreamLiveChannelsResponse,
@@ -6527,6 +6620,7 @@ module.exports = {
6527
6620
  EventNotifySetting: EventNotifySetting,
6528
6621
  DeleteStreamLiveInputResponse: DeleteStreamLiveInputResponse,
6529
6622
  StartStreamLiveChannelRequest: StartStreamLiveChannelRequest,
6623
+ TimingSettingsResp: TimingSettingsResp,
6530
6624
  DescribeStreamLiveWatermarkResponse: DescribeStreamLiveWatermarkResponse,
6531
6625
  StreamScte35Info: StreamScte35Info,
6532
6626
  StreamAudioInfo: StreamAudioInfo,
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20210111: require("./v20210111"), v20190711: require("./v20190711"),
2
+ v20190711: require("./v20190711"), v20210111: require("./v20210111"),
3
3
  };
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20210701: require("./v20210701"), v20201221: require("./v20201221"),
2
+ v20201221: require("./v20201221"), v20210701: require("./v20210701"),
3
3
  };
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20220901: require("./v20220901"), v20220106: require("./v20220106"),
2
+ v20220106: require("./v20220106"), v20220901: require("./v20220901"),
3
3
  };
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20210922: require("./v20210922"), v20201229: require("./v20201229"),
2
+ v20201229: require("./v20201229"), v20210922: require("./v20210922"),
3
3
  };