tencentcloud-sdk-nodejs-intl-en 3.0.1413 → 3.0.1415
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 +1 -1
- package/tencentcloud/cdb/v20170320/cdb_client.js +13 -0
- package/tencentcloud/cdb/v20170320/models.js +72 -0
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/dts/v20211206/dts_client.js +1 -0
- package/tencentcloud/dts/v20211206/models.js +53 -2
- package/tencentcloud/faceid/v20180301/faceid_client.js +1 -1
- package/tencentcloud/hunyuan/v20230901/models.js +11 -7
- package/tencentcloud/mdc/v20200828/mdc_client.js +4 -0
- package/tencentcloud/mdc/v20200828/models.js +225 -0
- package/tencentcloud/tmt/v20180321/models.js +269 -72
- package/tencentcloud/tmt/v20180321/tmt_client.js +17 -9
package/package.json
CHANGED
|
@@ -123,6 +123,7 @@ const ModifyAuditRuleTemplatesRequest = models.ModifyAuditRuleTemplatesRequest;
|
|
|
123
123
|
const StopDBImportJobRequest = models.StopDBImportJobRequest;
|
|
124
124
|
const ModifyRemoteBackupConfigResponse = models.ModifyRemoteBackupConfigResponse;
|
|
125
125
|
const DescribeDBInstanceInfoResponse = models.DescribeDBInstanceInfoResponse;
|
|
126
|
+
const UpgradeRoGroupResponse = models.UpgradeRoGroupResponse;
|
|
126
127
|
const AssociateSecurityGroupsRequest = models.AssociateSecurityGroupsRequest;
|
|
127
128
|
const DescribeInstanceUpgradeCheckJobRequest = models.DescribeInstanceUpgradeCheckJobRequest;
|
|
128
129
|
const DescribeDBFeaturesResponse = models.DescribeDBFeaturesResponse;
|
|
@@ -223,6 +224,7 @@ const DeleteAccountsRequest = models.DeleteAccountsRequest;
|
|
|
223
224
|
const DeleteRotationPasswordResponse = models.DeleteRotationPasswordResponse;
|
|
224
225
|
const DescribeAccountsResponse = models.DescribeAccountsResponse;
|
|
225
226
|
const RollbackTimeRange = models.RollbackTimeRange;
|
|
227
|
+
const UpgradeRoGroupRequest = models.UpgradeRoGroupRequest;
|
|
226
228
|
const ModifyProtectModeRequest = models.ModifyProtectModeRequest;
|
|
227
229
|
const DescribeAuditRuleTemplateModifyHistoryResponse = models.DescribeAuditRuleTemplateModifyHistoryResponse;
|
|
228
230
|
const DescribeAuditLogFilesRequest = models.DescribeAuditLogFilesRequest;
|
|
@@ -1335,6 +1337,17 @@ Description: The parameter template is a common component, effective across all
|
|
|
1335
1337
|
this.request("DescribeProxyCustomConf", req, resp, cb);
|
|
1336
1338
|
}
|
|
1337
1339
|
|
|
1340
|
+
/**
|
|
1341
|
+
* This API is used to upgrade a read-only group to a pure network forwarding mode.
|
|
1342
|
+
* @param {UpgradeRoGroupRequest} req
|
|
1343
|
+
* @param {function(string, UpgradeRoGroupResponse):void} cb
|
|
1344
|
+
* @public
|
|
1345
|
+
*/
|
|
1346
|
+
UpgradeRoGroup(req, cb) {
|
|
1347
|
+
let resp = new UpgradeRoGroupResponse();
|
|
1348
|
+
this.request("UpgradeRoGroup", req, resp, cb);
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1338
1351
|
/**
|
|
1339
1352
|
* This API is used to terminate a data import task.
|
|
1340
1353
|
Description: Only incomplete import jobs support termination, and the executed SQL part is retained after termination.
|
|
@@ -5950,6 +5950,41 @@ class DescribeDBInstanceInfoResponse extends AbstractModel {
|
|
|
5950
5950
|
}
|
|
5951
5951
|
}
|
|
5952
5952
|
|
|
5953
|
+
/**
|
|
5954
|
+
* UpgradeRoGroup response structure.
|
|
5955
|
+
* @class
|
|
5956
|
+
*/
|
|
5957
|
+
class UpgradeRoGroupResponse extends AbstractModel {
|
|
5958
|
+
constructor(){
|
|
5959
|
+
super();
|
|
5960
|
+
|
|
5961
|
+
/**
|
|
5962
|
+
* Asynchronous task ID.
|
|
5963
|
+
* @type {string || null}
|
|
5964
|
+
*/
|
|
5965
|
+
this.AsyncRequestId = null;
|
|
5966
|
+
|
|
5967
|
+
/**
|
|
5968
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
5969
|
+
* @type {string || null}
|
|
5970
|
+
*/
|
|
5971
|
+
this.RequestId = null;
|
|
5972
|
+
|
|
5973
|
+
}
|
|
5974
|
+
|
|
5975
|
+
/**
|
|
5976
|
+
* @private
|
|
5977
|
+
*/
|
|
5978
|
+
deserialize(params) {
|
|
5979
|
+
if (!params) {
|
|
5980
|
+
return;
|
|
5981
|
+
}
|
|
5982
|
+
this.AsyncRequestId = 'AsyncRequestId' in params ? params.AsyncRequestId : null;
|
|
5983
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
5984
|
+
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5987
|
+
|
|
5953
5988
|
/**
|
|
5954
5989
|
* AssociateSecurityGroups request structure.
|
|
5955
5990
|
* @class
|
|
@@ -10730,6 +10765,41 @@ class RollbackTimeRange extends AbstractModel {
|
|
|
10730
10765
|
}
|
|
10731
10766
|
}
|
|
10732
10767
|
|
|
10768
|
+
/**
|
|
10769
|
+
* UpgradeRoGroup request structure.
|
|
10770
|
+
* @class
|
|
10771
|
+
*/
|
|
10772
|
+
class UpgradeRoGroupRequest extends AbstractModel {
|
|
10773
|
+
constructor(){
|
|
10774
|
+
super();
|
|
10775
|
+
|
|
10776
|
+
/**
|
|
10777
|
+
* Instance ID.
|
|
10778
|
+
* @type {string || null}
|
|
10779
|
+
*/
|
|
10780
|
+
this.InstanceId = null;
|
|
10781
|
+
|
|
10782
|
+
/**
|
|
10783
|
+
* ID of the RO group.
|
|
10784
|
+
* @type {string || null}
|
|
10785
|
+
*/
|
|
10786
|
+
this.UniqRoGroupId = null;
|
|
10787
|
+
|
|
10788
|
+
}
|
|
10789
|
+
|
|
10790
|
+
/**
|
|
10791
|
+
* @private
|
|
10792
|
+
*/
|
|
10793
|
+
deserialize(params) {
|
|
10794
|
+
if (!params) {
|
|
10795
|
+
return;
|
|
10796
|
+
}
|
|
10797
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
10798
|
+
this.UniqRoGroupId = 'UniqRoGroupId' in params ? params.UniqRoGroupId : null;
|
|
10799
|
+
|
|
10800
|
+
}
|
|
10801
|
+
}
|
|
10802
|
+
|
|
10733
10803
|
/**
|
|
10734
10804
|
* ModifyProtectMode request structure.
|
|
10735
10805
|
* @class
|
|
@@ -24331,6 +24401,7 @@ module.exports = {
|
|
|
24331
24401
|
StopDBImportJobRequest: StopDBImportJobRequest,
|
|
24332
24402
|
ModifyRemoteBackupConfigResponse: ModifyRemoteBackupConfigResponse,
|
|
24333
24403
|
DescribeDBInstanceInfoResponse: DescribeDBInstanceInfoResponse,
|
|
24404
|
+
UpgradeRoGroupResponse: UpgradeRoGroupResponse,
|
|
24334
24405
|
AssociateSecurityGroupsRequest: AssociateSecurityGroupsRequest,
|
|
24335
24406
|
DescribeInstanceUpgradeCheckJobRequest: DescribeInstanceUpgradeCheckJobRequest,
|
|
24336
24407
|
DescribeDBFeaturesResponse: DescribeDBFeaturesResponse,
|
|
@@ -24431,6 +24502,7 @@ module.exports = {
|
|
|
24431
24502
|
DeleteRotationPasswordResponse: DeleteRotationPasswordResponse,
|
|
24432
24503
|
DescribeAccountsResponse: DescribeAccountsResponse,
|
|
24433
24504
|
RollbackTimeRange: RollbackTimeRange,
|
|
24505
|
+
UpgradeRoGroupRequest: UpgradeRoGroupRequest,
|
|
24434
24506
|
ModifyProtectModeRequest: ModifyProtectModeRequest,
|
|
24435
24507
|
DescribeAuditRuleTemplateModifyHistoryResponse: DescribeAuditRuleTemplateModifyHistoryResponse,
|
|
24436
24508
|
DescribeAuditLogFilesRequest: DescribeAuditLogFilesRequest,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1415";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -218,6 +218,7 @@ const IsolateSubscribeRequest = models.IsolateSubscribeRequest;
|
|
|
218
218
|
const DescribeSubscribeReturnableResponse = models.DescribeSubscribeReturnableResponse;
|
|
219
219
|
const TagItem = models.TagItem;
|
|
220
220
|
const RecoverMigrateJobRequest = models.RecoverMigrateJobRequest;
|
|
221
|
+
const OnlineDDL = models.OnlineDDL;
|
|
221
222
|
const DescribeSubscribeJobsResponse = models.DescribeSubscribeJobsResponse;
|
|
222
223
|
const ResetSubscribeRequest = models.ResetSubscribeRequest;
|
|
223
224
|
const DatabaseTableObject = models.DatabaseTableObject;
|
|
@@ -6673,6 +6673,13 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
6673
6673
|
*/
|
|
6674
6674
|
this.NewSchemaName = null;
|
|
6675
6675
|
|
|
6676
|
+
/**
|
|
6677
|
+
* Table selection mode, which is required if `DBMode` is `Partial` for postgresql or sqlserver. Valid values: `All`, `Partial`. To sync an entire schema, set this parameter to `All`.
|
|
6678
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
6679
|
+
* @type {string || null}
|
|
6680
|
+
*/
|
|
6681
|
+
this.SchemaMode = null;
|
|
6682
|
+
|
|
6676
6683
|
/**
|
|
6677
6684
|
* Table selection mode, which is required if `DBMode` is `Partial`. Valid values: `All`, `Partial`. To sync an entire database, set this parameter to `All`.
|
|
6678
6685
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
@@ -6730,7 +6737,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
6730
6737
|
this.Procedures = null;
|
|
6731
6738
|
|
|
6732
6739
|
/**
|
|
6733
|
-
* Trigger sync mode. Valid values: `All`, `Partial`. To sync an entire database, set this parameter to `All`. Currently, the advanced object
|
|
6740
|
+
* Trigger sync mode. Valid values: `All`, `Partial`. To sync an entire database, set this parameter to `All`. Currently, the advanced object "trigger" is not supported for data sync.
|
|
6734
6741
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
6735
6742
|
* @type {string || null}
|
|
6736
6743
|
*/
|
|
@@ -6744,7 +6751,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
6744
6751
|
this.Triggers = null;
|
|
6745
6752
|
|
|
6746
6753
|
/**
|
|
6747
|
-
* Event sync mode. Valid values: `All`, `Partial`. To sync an entire database, set this parameter to `All`. Currently, the advanced object
|
|
6754
|
+
* Event sync mode. Valid values: `All`, `Partial`. To sync an entire database, set this parameter to `All`. Currently, the advanced object "event" is not supported for data sync.
|
|
6748
6755
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
6749
6756
|
* @type {string || null}
|
|
6750
6757
|
*/
|
|
@@ -6771,6 +6778,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
6771
6778
|
this.DbMode = 'DbMode' in params ? params.DbMode : null;
|
|
6772
6779
|
this.SchemaName = 'SchemaName' in params ? params.SchemaName : null;
|
|
6773
6780
|
this.NewSchemaName = 'NewSchemaName' in params ? params.NewSchemaName : null;
|
|
6781
|
+
this.SchemaMode = 'SchemaMode' in params ? params.SchemaMode : null;
|
|
6774
6782
|
this.TableMode = 'TableMode' in params ? params.TableMode : null;
|
|
6775
6783
|
|
|
6776
6784
|
if (params.Tables) {
|
|
@@ -9663,6 +9671,13 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
9663
9671
|
*/
|
|
9664
9672
|
this.AdvancedObjects = null;
|
|
9665
9673
|
|
|
9674
|
+
/**
|
|
9675
|
+
* A redundant field that specifies the online DDL type
|
|
9676
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
9677
|
+
* @type {OnlineDDL || null}
|
|
9678
|
+
*/
|
|
9679
|
+
this.OnlineDDL = null;
|
|
9680
|
+
|
|
9666
9681
|
}
|
|
9667
9682
|
|
|
9668
9683
|
/**
|
|
@@ -9684,6 +9699,12 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
9684
9699
|
}
|
|
9685
9700
|
this.AdvancedObjects = 'AdvancedObjects' in params ? params.AdvancedObjects : null;
|
|
9686
9701
|
|
|
9702
|
+
if (params.OnlineDDL) {
|
|
9703
|
+
let obj = new OnlineDDL();
|
|
9704
|
+
obj.deserialize(params.OnlineDDL)
|
|
9705
|
+
this.OnlineDDL = obj;
|
|
9706
|
+
}
|
|
9707
|
+
|
|
9687
9708
|
}
|
|
9688
9709
|
}
|
|
9689
9710
|
|
|
@@ -11503,6 +11524,35 @@ class RecoverMigrateJobRequest extends AbstractModel {
|
|
|
11503
11524
|
}
|
|
11504
11525
|
}
|
|
11505
11526
|
|
|
11527
|
+
/**
|
|
11528
|
+
* Online DDL type
|
|
11529
|
+
* @class
|
|
11530
|
+
*/
|
|
11531
|
+
class OnlineDDL extends AbstractModel {
|
|
11532
|
+
constructor(){
|
|
11533
|
+
super();
|
|
11534
|
+
|
|
11535
|
+
/**
|
|
11536
|
+
* Status
|
|
11537
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
11538
|
+
* @type {string || null}
|
|
11539
|
+
*/
|
|
11540
|
+
this.Status = null;
|
|
11541
|
+
|
|
11542
|
+
}
|
|
11543
|
+
|
|
11544
|
+
/**
|
|
11545
|
+
* @private
|
|
11546
|
+
*/
|
|
11547
|
+
deserialize(params) {
|
|
11548
|
+
if (!params) {
|
|
11549
|
+
return;
|
|
11550
|
+
}
|
|
11551
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
11552
|
+
|
|
11553
|
+
}
|
|
11554
|
+
}
|
|
11555
|
+
|
|
11506
11556
|
/**
|
|
11507
11557
|
* DescribeSubscribeJobs response structure.
|
|
11508
11558
|
* @class
|
|
@@ -12250,6 +12300,7 @@ module.exports = {
|
|
|
12250
12300
|
DescribeSubscribeReturnableResponse: DescribeSubscribeReturnableResponse,
|
|
12251
12301
|
TagItem: TagItem,
|
|
12252
12302
|
RecoverMigrateJobRequest: RecoverMigrateJobRequest,
|
|
12303
|
+
OnlineDDL: OnlineDDL,
|
|
12253
12304
|
DescribeSubscribeJobsResponse: DescribeSubscribeJobsResponse,
|
|
12254
12305
|
ResetSubscribeRequest: ResetSubscribeRequest,
|
|
12255
12306
|
DatabaseTableObject: DatabaseTableObject,
|
|
@@ -353,7 +353,7 @@ The data generated with the SDK must be stored in COS, and the region of the COS
|
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
/**
|
|
356
|
-
* NFC verification service, obtain Token information for the NFC identify request.
|
|
356
|
+
* NFC verification service, obtain Token information for the NFC identify request.This API supports NFC recognition and verification of ID cards (second-generation resident identity card, Residence Permit for Hong Kong (China) and Macao (China), Residence Permit for Taiwan (China), Permanent Residence Permit for Foreigners) as well as travel documents (exit-entry permit for travelling to and from Hong Kong (China) and Macao (China), Taiwan travel permit, Mainland Travel Permit for Taiwan Residents, Return Home Permit).
|
|
357
357
|
* @param {GetNFCTokenRequest} req
|
|
358
358
|
* @param {function(string, GetNFCTokenResponse):void} cb
|
|
359
359
|
* @public
|
|
@@ -1400,7 +1400,7 @@ class SubmitHunyuan3DPartJobResponse extends AbstractModel {
|
|
|
1400
1400
|
super();
|
|
1401
1401
|
|
|
1402
1402
|
/**
|
|
1403
|
-
* Task id (valid period: 24 hours)
|
|
1403
|
+
* <p>Task id (valid period: 24 hours).</p>
|
|
1404
1404
|
* @type {string || null}
|
|
1405
1405
|
*/
|
|
1406
1406
|
this.JobId = null;
|
|
@@ -1701,26 +1701,29 @@ class SubmitHunyuan3DPartJobRequest extends AbstractModel {
|
|
|
1701
1701
|
super();
|
|
1702
1702
|
|
|
1703
1703
|
/**
|
|
1704
|
-
* Recommends inputting 3D models generated by AIGC
|
|
1705
|
-
Recommended file size not greater than 200MB
|
|
1706
|
-
Face count not greater than 1,500,000
|
|
1707
|
-
Only supports FBX format
|
|
1704
|
+
* <p>Recommends inputting 3D models generated by AIGC Recommended file size not greater than 200MB Face count not greater than 1,500,000 Only supports FBX format</p>
|
|
1708
1705
|
* @type {InputFile3D || null}
|
|
1709
1706
|
*/
|
|
1710
1707
|
this.File = null;
|
|
1711
1708
|
|
|
1712
1709
|
/**
|
|
1713
|
-
* <p>Model component segmentation data
|
|
1710
|
+
* <p>Model component segmentation data; The format is a JSON string, e.g., {"MeshName_part_1":{"face_ids": 1,2,3..],"color":"#FF805C"}}. Here, face_ids is an integer array representing the set of face IDs for the segment, and color specifies the color.</p>
|
|
1714
1711
|
* @type {string || null}
|
|
1715
1712
|
*/
|
|
1716
1713
|
this.PartSegmentationInfo = null;
|
|
1717
1714
|
|
|
1718
1715
|
/**
|
|
1719
|
-
* <p>Determines whether component generation is performed in a step-by-step manner
|
|
1716
|
+
* <p>Determines whether component generation is performed in a step-by-step manner. When enabled, providing the original model allows for the generation of a model containing segmentation information, along with the corresponding segmentation data. Users can then edit this information before submitting the segmented model and data to proceed with the component generation process. </br>This parameter is disabled by default.</p>
|
|
1720
1717
|
* @type {boolean || null}
|
|
1721
1718
|
*/
|
|
1722
1719
|
this.EnableStagedGeneration = null;
|
|
1723
1720
|
|
|
1721
|
+
/**
|
|
1722
|
+
* <p>Whether post-processing is enabled. Once enabled, only one model link will be output, off by default. (After this API is enabled, an additional increase of 20 points is required.)</p>
|
|
1723
|
+
* @type {boolean || null}
|
|
1724
|
+
*/
|
|
1725
|
+
this.EnablePostProcess = null;
|
|
1726
|
+
|
|
1724
1727
|
}
|
|
1725
1728
|
|
|
1726
1729
|
/**
|
|
@@ -1738,6 +1741,7 @@ Only supports FBX format
|
|
|
1738
1741
|
}
|
|
1739
1742
|
this.PartSegmentationInfo = 'PartSegmentationInfo' in params ? params.PartSegmentationInfo : null;
|
|
1740
1743
|
this.EnableStagedGeneration = 'EnableStagedGeneration' in params ? params.EnableStagedGeneration : null;
|
|
1744
|
+
this.EnablePostProcess = 'EnablePostProcess' in params ? params.EnablePostProcess : null;
|
|
1741
1745
|
|
|
1742
1746
|
}
|
|
1743
1747
|
}
|
|
@@ -36,6 +36,7 @@ const DescribeRTMPPullSourceAddress = models.DescribeRTMPPullSourceAddress;
|
|
|
36
36
|
const DescribeOutputRTMPPullSettings = models.DescribeOutputRTMPPullSettings;
|
|
37
37
|
const DescribeStreamLinkFlowSRTStatisticsResponse = models.DescribeStreamLinkFlowSRTStatisticsResponse;
|
|
38
38
|
const ModifyOutputInfo = models.ModifyOutputInfo;
|
|
39
|
+
const TrackSelector = models.TrackSelector;
|
|
39
40
|
const CreateInputRTPSettings = models.CreateInputRTPSettings;
|
|
40
41
|
const CreateStreamLinkOutputInfoResponse = models.CreateStreamLinkOutputInfoResponse;
|
|
41
42
|
const RTPAddressDestination = models.RTPAddressDestination;
|
|
@@ -73,6 +74,7 @@ const DescribeStreamLinkFlowRealtimeStatusRequest = models.DescribeStreamLinkFlo
|
|
|
73
74
|
const FlowAudio = models.FlowAudio;
|
|
74
75
|
const FlowMediaVideo = models.FlowMediaVideo;
|
|
75
76
|
const DescribeOutputHLSPullServerUrl = models.DescribeOutputHLSPullServerUrl;
|
|
77
|
+
const StreamSelector = models.StreamSelector;
|
|
76
78
|
const DescribeStreamLinkFlowSRTStatisticsRequest = models.DescribeStreamLinkFlowSRTStatisticsRequest;
|
|
77
79
|
const DescribeStreamLinkFlowRequest = models.DescribeStreamLinkFlowRequest;
|
|
78
80
|
const DescribeOutputHLSPullSettings = models.DescribeOutputHLSPullSettings;
|
|
@@ -102,6 +104,7 @@ const FlowRealtimeStatusRTMP = models.FlowRealtimeStatusRTMP;
|
|
|
102
104
|
const StopStreamLinkFlowRequest = models.StopStreamLinkFlowRequest;
|
|
103
105
|
const CreateInput = models.CreateInput;
|
|
104
106
|
const CreateOutputRTMPSettings = models.CreateOutputRTMPSettings;
|
|
107
|
+
const PidSelector = models.PidSelector;
|
|
105
108
|
const HLSPullSourceAddress = models.HLSPullSourceAddress;
|
|
106
109
|
const CreateOutputRtmpSettingsDestinations = models.CreateOutputRtmpSettingsDestinations;
|
|
107
110
|
const FlowLogInfo = models.FlowLogInfo;
|
|
@@ -116,6 +119,7 @@ const DescribeInputRTMPPullSettings = models.DescribeInputRTMPPullSettings;
|
|
|
116
119
|
const CreateInputSRTSettings = models.CreateInputSRTSettings;
|
|
117
120
|
const RTMPPullSourceAddress = models.RTMPPullSourceAddress;
|
|
118
121
|
const StreamLinkRegionInfo = models.StreamLinkRegionInfo;
|
|
122
|
+
const CreateOutputRistSettings = models.CreateOutputRistSettings;
|
|
119
123
|
|
|
120
124
|
|
|
121
125
|
/**
|
|
@@ -1153,6 +1153,18 @@ class ModifyOutputInfo extends AbstractModel {
|
|
|
1153
1153
|
*/
|
|
1154
1154
|
this.Protocol = null;
|
|
1155
1155
|
|
|
1156
|
+
/**
|
|
1157
|
+
* Output Type: Internet/Tencent CSS/StreamLive
|
|
1158
|
+
* @type {string || null}
|
|
1159
|
+
*/
|
|
1160
|
+
this.OutputType = null;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Output module types include Pinpoint (single-point output, supporting up to four concurrent outputs) and MultiMesh (multi-output, supporting concurrent outputs exceeding four, currently capable of reaching 200 channels). The default type is Pinpoint output. For a single Flow, only one MultiMesh output can be assigned per region.
|
|
1164
|
+
* @type {string || null}
|
|
1165
|
+
*/
|
|
1166
|
+
this.OutputKind = null;
|
|
1167
|
+
|
|
1156
1168
|
/**
|
|
1157
1169
|
* The SRT relay configuration.
|
|
1158
1170
|
* @type {CreateOutputSrtSettings || null}
|
|
@@ -1189,6 +1201,30 @@ class ModifyOutputInfo extends AbstractModel {
|
|
|
1189
1201
|
*/
|
|
1190
1202
|
this.SecurityGroupIds = null;
|
|
1191
1203
|
|
|
1204
|
+
/**
|
|
1205
|
+
* Availability Zone
|
|
1206
|
+
* @type {Array.<string> || null}
|
|
1207
|
+
*/
|
|
1208
|
+
this.Zones = null;
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Transfer the configuration of RIST.
|
|
1212
|
+
* @type {CreateOutputRistSettings || null}
|
|
1213
|
+
*/
|
|
1214
|
+
this.RISTSettings = null;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* For streams containing multiple audio/video tracks, you can specify the tracks that need to be used
|
|
1218
|
+
* @type {PidSelector || null}
|
|
1219
|
+
*/
|
|
1220
|
+
this.PidSelector = null;
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* For streams containing multiple audio/video tracks, you can specify the tracks that need to be used
|
|
1224
|
+
* @type {StreamSelector || null}
|
|
1225
|
+
*/
|
|
1226
|
+
this.StreamSelector = null;
|
|
1227
|
+
|
|
1192
1228
|
}
|
|
1193
1229
|
|
|
1194
1230
|
/**
|
|
@@ -1202,6 +1238,8 @@ class ModifyOutputInfo extends AbstractModel {
|
|
|
1202
1238
|
this.OutputName = 'OutputName' in params ? params.OutputName : null;
|
|
1203
1239
|
this.Description = 'Description' in params ? params.Description : null;
|
|
1204
1240
|
this.Protocol = 'Protocol' in params ? params.Protocol : null;
|
|
1241
|
+
this.OutputType = 'OutputType' in params ? params.OutputType : null;
|
|
1242
|
+
this.OutputKind = 'OutputKind' in params ? params.OutputKind : null;
|
|
1205
1243
|
|
|
1206
1244
|
if (params.SRTSettings) {
|
|
1207
1245
|
let obj = new CreateOutputSrtSettings();
|
|
@@ -1223,6 +1261,60 @@ class ModifyOutputInfo extends AbstractModel {
|
|
|
1223
1261
|
this.AllowIpList = 'AllowIpList' in params ? params.AllowIpList : null;
|
|
1224
1262
|
this.MaxConcurrent = 'MaxConcurrent' in params ? params.MaxConcurrent : null;
|
|
1225
1263
|
this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
|
|
1264
|
+
this.Zones = 'Zones' in params ? params.Zones : null;
|
|
1265
|
+
|
|
1266
|
+
if (params.RISTSettings) {
|
|
1267
|
+
let obj = new CreateOutputRistSettings();
|
|
1268
|
+
obj.deserialize(params.RISTSettings)
|
|
1269
|
+
this.RISTSettings = obj;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
if (params.PidSelector) {
|
|
1273
|
+
let obj = new PidSelector();
|
|
1274
|
+
obj.deserialize(params.PidSelector)
|
|
1275
|
+
this.PidSelector = obj;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
if (params.StreamSelector) {
|
|
1279
|
+
let obj = new StreamSelector();
|
|
1280
|
+
obj.deserialize(params.StreamSelector)
|
|
1281
|
+
this.StreamSelector = obj;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
*
|
|
1289
|
+
* @class
|
|
1290
|
+
*/
|
|
1291
|
+
class TrackSelector extends AbstractModel {
|
|
1292
|
+
constructor(){
|
|
1293
|
+
super();
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
*
|
|
1297
|
+
* @type {Array.<number> || null}
|
|
1298
|
+
*/
|
|
1299
|
+
this.VideoIndex = null;
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
*
|
|
1303
|
+
* @type {Array.<number> || null}
|
|
1304
|
+
*/
|
|
1305
|
+
this.AudioIndex = null;
|
|
1306
|
+
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* @private
|
|
1311
|
+
*/
|
|
1312
|
+
deserialize(params) {
|
|
1313
|
+
if (!params) {
|
|
1314
|
+
return;
|
|
1315
|
+
}
|
|
1316
|
+
this.VideoIndex = 'VideoIndex' in params ? params.VideoIndex : null;
|
|
1317
|
+
this.AudioIndex = 'AudioIndex' in params ? params.AudioIndex : null;
|
|
1226
1318
|
|
|
1227
1319
|
}
|
|
1228
1320
|
}
|
|
@@ -3178,6 +3270,58 @@ class DescribeOutputHLSPullServerUrl extends AbstractModel {
|
|
|
3178
3270
|
}
|
|
3179
3271
|
}
|
|
3180
3272
|
|
|
3273
|
+
/**
|
|
3274
|
+
*
|
|
3275
|
+
* @class
|
|
3276
|
+
*/
|
|
3277
|
+
class StreamSelector extends AbstractModel {
|
|
3278
|
+
constructor(){
|
|
3279
|
+
super();
|
|
3280
|
+
|
|
3281
|
+
/**
|
|
3282
|
+
*
|
|
3283
|
+
* @type {string || null}
|
|
3284
|
+
*/
|
|
3285
|
+
this.SelectorType = null;
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
*
|
|
3289
|
+
* @type {PidSelector || null}
|
|
3290
|
+
*/
|
|
3291
|
+
this.PidSelector = null;
|
|
3292
|
+
|
|
3293
|
+
/**
|
|
3294
|
+
*
|
|
3295
|
+
* @type {TrackSelector || null}
|
|
3296
|
+
*/
|
|
3297
|
+
this.TrackSelector = null;
|
|
3298
|
+
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
/**
|
|
3302
|
+
* @private
|
|
3303
|
+
*/
|
|
3304
|
+
deserialize(params) {
|
|
3305
|
+
if (!params) {
|
|
3306
|
+
return;
|
|
3307
|
+
}
|
|
3308
|
+
this.SelectorType = 'SelectorType' in params ? params.SelectorType : null;
|
|
3309
|
+
|
|
3310
|
+
if (params.PidSelector) {
|
|
3311
|
+
let obj = new PidSelector();
|
|
3312
|
+
obj.deserialize(params.PidSelector)
|
|
3313
|
+
this.PidSelector = obj;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
if (params.TrackSelector) {
|
|
3317
|
+
let obj = new TrackSelector();
|
|
3318
|
+
obj.deserialize(params.TrackSelector)
|
|
3319
|
+
this.TrackSelector = obj;
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3181
3325
|
/**
|
|
3182
3326
|
* DescribeStreamLinkFlowSRTStatistics request structure.
|
|
3183
3327
|
* @class
|
|
@@ -4666,6 +4810,41 @@ class CreateOutputRTMPSettings extends AbstractModel {
|
|
|
4666
4810
|
}
|
|
4667
4811
|
}
|
|
4668
4812
|
|
|
4813
|
+
/**
|
|
4814
|
+
*
|
|
4815
|
+
* @class
|
|
4816
|
+
*/
|
|
4817
|
+
class PidSelector extends AbstractModel {
|
|
4818
|
+
constructor(){
|
|
4819
|
+
super();
|
|
4820
|
+
|
|
4821
|
+
/**
|
|
4822
|
+
*
|
|
4823
|
+
* @type {Array.<number> || null}
|
|
4824
|
+
*/
|
|
4825
|
+
this.AudioPID = null;
|
|
4826
|
+
|
|
4827
|
+
/**
|
|
4828
|
+
*
|
|
4829
|
+
* @type {Array.<number> || null}
|
|
4830
|
+
*/
|
|
4831
|
+
this.VideoPID = null;
|
|
4832
|
+
|
|
4833
|
+
}
|
|
4834
|
+
|
|
4835
|
+
/**
|
|
4836
|
+
* @private
|
|
4837
|
+
*/
|
|
4838
|
+
deserialize(params) {
|
|
4839
|
+
if (!params) {
|
|
4840
|
+
return;
|
|
4841
|
+
}
|
|
4842
|
+
this.AudioPID = 'AudioPID' in params ? params.AudioPID : null;
|
|
4843
|
+
this.VideoPID = 'VideoPID' in params ? params.VideoPID : null;
|
|
4844
|
+
|
|
4845
|
+
}
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4669
4848
|
/**
|
|
4670
4849
|
*
|
|
4671
4850
|
* @class
|
|
@@ -5268,6 +5447,48 @@ class StreamLinkRegionInfo extends AbstractModel {
|
|
|
5268
5447
|
}
|
|
5269
5448
|
}
|
|
5270
5449
|
|
|
5450
|
+
/**
|
|
5451
|
+
*
|
|
5452
|
+
* @class
|
|
5453
|
+
*/
|
|
5454
|
+
class CreateOutputRistSettings extends AbstractModel {
|
|
5455
|
+
constructor(){
|
|
5456
|
+
super();
|
|
5457
|
+
|
|
5458
|
+
/**
|
|
5459
|
+
*
|
|
5460
|
+
* @type {string || null}
|
|
5461
|
+
*/
|
|
5462
|
+
this.Mode = null;
|
|
5463
|
+
|
|
5464
|
+
/**
|
|
5465
|
+
*
|
|
5466
|
+
* @type {string || null}
|
|
5467
|
+
*/
|
|
5468
|
+
this.Profile = null;
|
|
5469
|
+
|
|
5470
|
+
/**
|
|
5471
|
+
*
|
|
5472
|
+
* @type {number || null}
|
|
5473
|
+
*/
|
|
5474
|
+
this.Buffer = null;
|
|
5475
|
+
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
/**
|
|
5479
|
+
* @private
|
|
5480
|
+
*/
|
|
5481
|
+
deserialize(params) {
|
|
5482
|
+
if (!params) {
|
|
5483
|
+
return;
|
|
5484
|
+
}
|
|
5485
|
+
this.Mode = 'Mode' in params ? params.Mode : null;
|
|
5486
|
+
this.Profile = 'Profile' in params ? params.Profile : null;
|
|
5487
|
+
this.Buffer = 'Buffer' in params ? params.Buffer : null;
|
|
5488
|
+
|
|
5489
|
+
}
|
|
5490
|
+
}
|
|
5491
|
+
|
|
5271
5492
|
module.exports = {
|
|
5272
5493
|
OutputAddress: OutputAddress,
|
|
5273
5494
|
DescribeOutputRTMPPullServerUrl: DescribeOutputRTMPPullServerUrl,
|
|
@@ -5289,6 +5510,7 @@ module.exports = {
|
|
|
5289
5510
|
DescribeOutputRTMPPullSettings: DescribeOutputRTMPPullSettings,
|
|
5290
5511
|
DescribeStreamLinkFlowSRTStatisticsResponse: DescribeStreamLinkFlowSRTStatisticsResponse,
|
|
5291
5512
|
ModifyOutputInfo: ModifyOutputInfo,
|
|
5513
|
+
TrackSelector: TrackSelector,
|
|
5292
5514
|
CreateInputRTPSettings: CreateInputRTPSettings,
|
|
5293
5515
|
CreateStreamLinkOutputInfoResponse: CreateStreamLinkOutputInfoResponse,
|
|
5294
5516
|
RTPAddressDestination: RTPAddressDestination,
|
|
@@ -5326,6 +5548,7 @@ module.exports = {
|
|
|
5326
5548
|
FlowAudio: FlowAudio,
|
|
5327
5549
|
FlowMediaVideo: FlowMediaVideo,
|
|
5328
5550
|
DescribeOutputHLSPullServerUrl: DescribeOutputHLSPullServerUrl,
|
|
5551
|
+
StreamSelector: StreamSelector,
|
|
5329
5552
|
DescribeStreamLinkFlowSRTStatisticsRequest: DescribeStreamLinkFlowSRTStatisticsRequest,
|
|
5330
5553
|
DescribeStreamLinkFlowRequest: DescribeStreamLinkFlowRequest,
|
|
5331
5554
|
DescribeOutputHLSPullSettings: DescribeOutputHLSPullSettings,
|
|
@@ -5355,6 +5578,7 @@ module.exports = {
|
|
|
5355
5578
|
StopStreamLinkFlowRequest: StopStreamLinkFlowRequest,
|
|
5356
5579
|
CreateInput: CreateInput,
|
|
5357
5580
|
CreateOutputRTMPSettings: CreateOutputRTMPSettings,
|
|
5581
|
+
PidSelector: PidSelector,
|
|
5358
5582
|
HLSPullSourceAddress: HLSPullSourceAddress,
|
|
5359
5583
|
CreateOutputRtmpSettingsDestinations: CreateOutputRtmpSettingsDestinations,
|
|
5360
5584
|
FlowLogInfo: FlowLogInfo,
|
|
@@ -5369,5 +5593,6 @@ module.exports = {
|
|
|
5369
5593
|
CreateInputSRTSettings: CreateInputSRTSettings,
|
|
5370
5594
|
RTMPPullSourceAddress: RTMPPullSourceAddress,
|
|
5371
5595
|
StreamLinkRegionInfo: StreamLinkRegionInfo,
|
|
5596
|
+
CreateOutputRistSettings: CreateOutputRistSettings,
|
|
5372
5597
|
|
|
5373
5598
|
}
|
|
@@ -17,31 +17,104 @@
|
|
|
17
17
|
const AbstractModel = require("../../common/abstract_model");
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* ImageTranslateLLM request structure.
|
|
21
21
|
* @class
|
|
22
22
|
*/
|
|
23
|
-
class
|
|
23
|
+
class ImageTranslateLLMRequest extends AbstractModel {
|
|
24
24
|
constructor(){
|
|
25
25
|
super();
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* <p>Base64 string of the image data, no more than 9M after Base64 encoding. A resolution of 600*800 or higher is recommended. PNG, JPG, and JPEG formats are supported.</p>
|
|
29
29
|
* @type {string || null}
|
|
30
30
|
*/
|
|
31
|
-
this.
|
|
31
|
+
this.Data = null;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* <p>Target language, supported languages:</p><ul><li>Chinese: zh</li><li>Traditional (Taiwan): zh-TW</li><li>Traditional (Hong Kong (China)): zh-HK</li><li>English: en</li><li>Japanese: ja</li><li>Korean: ko</li><li>Thai: th</li><li>Vietnamese: vi</li><li>Russian: ru</li><li>German: de</li><li>French: fr</li><li>Arabic: ar</li><li>Spanish: es</li><li>Italian: it</li><li>Indonesian: id</li><li>Malay language: ms</li><li>Portuguese: pt</li><li>Turkish: tr<br>-</li></ul>
|
|
35
|
+
* @type {string || null}
|
|
36
|
+
*/
|
|
37
|
+
this.Target = null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* <p>Enter image Url. When using a Url, the Data parameter requires the input of "". Image restrictions: less than 10MB, resolution recommendation 600*800 or higher, format support jpg, jpeg, png.</p>
|
|
41
|
+
* @type {string || null}
|
|
42
|
+
*/
|
|
43
|
+
this.Url = null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* <p>Invocation method.</p><p>Enumeration value:</p><ul><li>0: End-to-end image translation large model pro version</li><li>1: End-to-end image translation large model lite version</li></ul><p>Default value: 0</p>
|
|
47
|
+
* @type {number || null}
|
|
48
|
+
*/
|
|
49
|
+
this.Mode = null;
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
deserialize(params) {
|
|
57
|
+
if (!params) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
this.Data = 'Data' in params ? params.Data : null;
|
|
61
|
+
this.Target = 'Target' in params ? params.Target : null;
|
|
62
|
+
this.Url = 'Url' in params ? params.Url : null;
|
|
63
|
+
this.Mode = 'Mode' in params ? params.Mode : null;
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* ImageTranslateLLM response structure.
|
|
70
|
+
* @class
|
|
71
|
+
*/
|
|
72
|
+
class ImageTranslateLLMResponse extends AbstractModel {
|
|
73
|
+
constructor(){
|
|
74
|
+
super();
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* <p>Base64 string of the image data. The output format is JPG.</p>
|
|
78
|
+
* @type {string || null}
|
|
79
|
+
*/
|
|
80
|
+
this.Data = null;
|
|
32
81
|
|
|
33
82
|
/**
|
|
34
|
-
*
|
|
83
|
+
* <p>Primary source language.</p>
|
|
35
84
|
* @type {string || null}
|
|
36
85
|
*/
|
|
37
86
|
this.Source = null;
|
|
38
87
|
|
|
39
88
|
/**
|
|
40
|
-
*
|
|
89
|
+
* <p>Target translation language.</p>
|
|
41
90
|
* @type {string || null}
|
|
42
91
|
*/
|
|
43
92
|
this.Target = null;
|
|
44
93
|
|
|
94
|
+
/**
|
|
95
|
+
* <p>All original text in the image.</p>
|
|
96
|
+
* @type {string || null}
|
|
97
|
+
*/
|
|
98
|
+
this.SourceText = null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* <p>All translations in the image.</p>
|
|
102
|
+
* @type {string || null}
|
|
103
|
+
*/
|
|
104
|
+
this.TargetText = null;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* <p>Image angle counterclockwise, value range 0-359</p>
|
|
108
|
+
* @type {number || null}
|
|
109
|
+
*/
|
|
110
|
+
this.Angle = null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* <p>Translation detailed information</p>
|
|
114
|
+
* @type {Array.<TransDetail> || null}
|
|
115
|
+
*/
|
|
116
|
+
this.TransDetails = null;
|
|
117
|
+
|
|
45
118
|
/**
|
|
46
119
|
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
47
120
|
* @type {string || null}
|
|
@@ -57,99 +130,110 @@ class TextTranslateResponse extends AbstractModel {
|
|
|
57
130
|
if (!params) {
|
|
58
131
|
return;
|
|
59
132
|
}
|
|
60
|
-
this.
|
|
133
|
+
this.Data = 'Data' in params ? params.Data : null;
|
|
61
134
|
this.Source = 'Source' in params ? params.Source : null;
|
|
62
135
|
this.Target = 'Target' in params ? params.Target : null;
|
|
136
|
+
this.SourceText = 'SourceText' in params ? params.SourceText : null;
|
|
137
|
+
this.TargetText = 'TargetText' in params ? params.TargetText : null;
|
|
138
|
+
this.Angle = 'Angle' in params ? params.Angle : null;
|
|
139
|
+
|
|
140
|
+
if (params.TransDetails) {
|
|
141
|
+
this.TransDetails = new Array();
|
|
142
|
+
for (let z in params.TransDetails) {
|
|
143
|
+
let obj = new TransDetail();
|
|
144
|
+
obj.deserialize(params.TransDetails[z]);
|
|
145
|
+
this.TransDetails.push(obj);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
63
148
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
64
149
|
|
|
65
150
|
}
|
|
66
151
|
}
|
|
67
152
|
|
|
68
153
|
/**
|
|
69
|
-
*
|
|
154
|
+
* Coordinate details
|
|
70
155
|
* @class
|
|
71
156
|
*/
|
|
72
|
-
class
|
|
157
|
+
class Coord extends AbstractModel {
|
|
73
158
|
constructor(){
|
|
74
159
|
super();
|
|
75
160
|
|
|
76
161
|
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {
|
|
162
|
+
* X coordinate
|
|
163
|
+
* @type {number || null}
|
|
79
164
|
*/
|
|
80
|
-
this.
|
|
165
|
+
this.X = null;
|
|
81
166
|
|
|
82
167
|
/**
|
|
83
|
-
*
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
168
|
+
* Y-axis coordinate
|
|
169
|
+
* @type {number || null}
|
|
170
|
+
*/
|
|
171
|
+
this.Y = null;
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @private
|
|
177
|
+
*/
|
|
178
|
+
deserialize(params) {
|
|
179
|
+
if (!params) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
this.X = 'X' in params ? params.X : null;
|
|
183
|
+
this.Y = 'Y' in params ? params.Y : null;
|
|
184
|
+
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Large model image translation detailed information
|
|
190
|
+
* @class
|
|
191
|
+
*/
|
|
192
|
+
class TransDetail extends AbstractModel {
|
|
193
|
+
constructor(){
|
|
194
|
+
super();
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* <p>Original text of the current row</p>
|
|
102
198
|
* @type {string || null}
|
|
103
199
|
*/
|
|
104
|
-
this.
|
|
200
|
+
this.SourceLineText = null;
|
|
105
201
|
|
|
106
202
|
/**
|
|
107
|
-
*
|
|
108
|
-
|
|
109
|
-
<li>zh (Simplified Chinese): en (English), ja (Japanese), fr (French), es (Spanish), it (Italian), de (German), tr (Turkish), ru (Russian), pt (Portuguese), vi (Vietnamese), id (Bahasa Indonesian), th (Thai), and ms (Malay)</li>
|
|
110
|
-
<li>zh-TW (Traditional Chinese): en (English), ja (Japanese), fr (French), es (Spanish), it (Italian), tr (Turkish), ru (Russian), pt (Portuguese), vi (Vietnamese), id (Bahasa Indonesian), th (Thai), and ms (Malay)</li>
|
|
111
|
-
<li>en (English): zh (Simplified Chinese), zh-TW (Traditional Chinese), ja (Japanese), fr (French), es (Spanish), it (Italian), de (German), tr (Turkish), vi (Vietnamese), id (Bahasa Indonesian), th (Thai), ms (Malay), and hi (Hindi)</li>
|
|
112
|
-
<li>fr (French): zh (Simplified Chinese), zh-TW (Traditional Chinese) and en (English)</li>
|
|
113
|
-
<li>it (Italian): zh (Simplified Chinese), zh-TW (Traditional Chinese) and en (English)</li>
|
|
114
|
-
<li>de (German): zh (Simplified Chinese), zh-TW (Traditional Chinese) and en (English)</li>
|
|
115
|
-
<li>ru (Russian): zh (Simplified Chinese) and zh-TW (Traditional Chinese)</li>
|
|
116
|
-
<li>tr (Turkish): zh (Simplified Chinese) and zh-TW (Traditional Chinese)</li>
|
|
117
|
-
<li>pt (Portuguese): zh (Simplified Chinese) and tr (Turkish)</li>
|
|
118
|
-
<li>es (Spanish): zh (Simplified Chinese), zh-TW (Traditional Chinese) and en (English)</li>
|
|
119
|
-
<li>ja (Japanese): zh (Simplified Chinese), zh-TW (Traditional Chinese) and en (English)</li>
|
|
120
|
-
<li>vi (Vietnamese): zh (Simplified Chinese), zh-TW (Traditional Chinese) and en (English)</li>
|
|
121
|
-
<li>th (Thai): zh (Simplified Chinese) and en (English)</li>
|
|
122
|
-
<li>id (Bahasa Indonesian): zh (Simplified Chinese), zh-TW (Traditional Chinese) and en (English)</li>
|
|
123
|
-
<li>ms (Malay): zh (Simplified Chinese) and zh-TW (Traditional Chinese)</li>
|
|
124
|
-
<li>ar (Arabic): en (English)</li>
|
|
125
|
-
<li>hi (Hindi): en (English)</li>
|
|
203
|
+
* <p>Translation of the current row</p>
|
|
126
204
|
* @type {string || null}
|
|
127
205
|
*/
|
|
128
|
-
this.
|
|
206
|
+
this.TargetLineText = null;
|
|
129
207
|
|
|
130
208
|
/**
|
|
131
|
-
*
|
|
209
|
+
* <p>Paragraph text box location</p>
|
|
210
|
+
* @type {BoundingBox || null}
|
|
211
|
+
*/
|
|
212
|
+
this.BoundingBox = null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* <p>Row count</p>
|
|
132
216
|
* @type {number || null}
|
|
133
217
|
*/
|
|
134
|
-
this.
|
|
218
|
+
this.LinesCount = null;
|
|
135
219
|
|
|
136
220
|
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {
|
|
221
|
+
* <p>Line height.</p><p>Unit: px.</p>
|
|
222
|
+
* @type {number || null}
|
|
139
223
|
*/
|
|
140
|
-
this.
|
|
224
|
+
this.LineHeight = null;
|
|
141
225
|
|
|
142
226
|
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {
|
|
227
|
+
* <p>The spam_code field is 0 in a normal paragraph; if the spam_code field exists and its value is above 0 (1: hit garbage check; 2: hit security policy; 3: another.), then the security check hit is filtered.</p>
|
|
228
|
+
* @type {number || null}
|
|
145
229
|
*/
|
|
146
|
-
this.
|
|
230
|
+
this.SpamCode = null;
|
|
147
231
|
|
|
148
232
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @type {
|
|
233
|
+
* <p>Rotation information of paragraph text. Coordinates are valid only when valid is true.</p>
|
|
234
|
+
* @type {RotateParagraphRect || null}
|
|
151
235
|
*/
|
|
152
|
-
this.
|
|
236
|
+
this.RotateParagraphRect = null;
|
|
153
237
|
|
|
154
238
|
}
|
|
155
239
|
|
|
@@ -160,19 +244,132 @@ hi: Hindi
|
|
|
160
244
|
if (!params) {
|
|
161
245
|
return;
|
|
162
246
|
}
|
|
163
|
-
this.
|
|
164
|
-
this.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
247
|
+
this.SourceLineText = 'SourceLineText' in params ? params.SourceLineText : null;
|
|
248
|
+
this.TargetLineText = 'TargetLineText' in params ? params.TargetLineText : null;
|
|
249
|
+
|
|
250
|
+
if (params.BoundingBox) {
|
|
251
|
+
let obj = new BoundingBox();
|
|
252
|
+
obj.deserialize(params.BoundingBox)
|
|
253
|
+
this.BoundingBox = obj;
|
|
254
|
+
}
|
|
255
|
+
this.LinesCount = 'LinesCount' in params ? params.LinesCount : null;
|
|
256
|
+
this.LineHeight = 'LineHeight' in params ? params.LineHeight : null;
|
|
257
|
+
this.SpamCode = 'SpamCode' in params ? params.SpamCode : null;
|
|
258
|
+
|
|
259
|
+
if (params.RotateParagraphRect) {
|
|
260
|
+
let obj = new RotateParagraphRect();
|
|
261
|
+
obj.deserialize(params.RotateParagraphRect)
|
|
262
|
+
this.RotateParagraphRect = obj;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Paragraph text box location: x, y represent the top-left corner, width and height represent width and height.
|
|
270
|
+
* @class
|
|
271
|
+
*/
|
|
272
|
+
class BoundingBox extends AbstractModel {
|
|
273
|
+
constructor(){
|
|
274
|
+
super();
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* <p>x-coordinate of the top-left corner</p>
|
|
278
|
+
* @type {number || null}
|
|
279
|
+
*/
|
|
280
|
+
this.X = null;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* <p>y-coordinate of the top-left corner</p>
|
|
284
|
+
* @type {number || null}
|
|
285
|
+
*/
|
|
286
|
+
this.Y = null;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* <p>Width.</p><p>Unit: px.</p>
|
|
290
|
+
* @type {number || null}
|
|
291
|
+
*/
|
|
292
|
+
this.Width = null;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* <p>High.</p><p>Unit: px.</p>
|
|
296
|
+
* @type {number || null}
|
|
297
|
+
*/
|
|
298
|
+
this.Height = null;
|
|
299
|
+
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @private
|
|
304
|
+
*/
|
|
305
|
+
deserialize(params) {
|
|
306
|
+
if (!params) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
this.X = 'X' in params ? params.X : null;
|
|
310
|
+
this.Y = 'Y' in params ? params.Y : null;
|
|
311
|
+
this.Width = 'Width' in params ? params.Width : null;
|
|
312
|
+
this.Height = 'Height' in params ? params.Height : null;
|
|
313
|
+
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Paragraph text rotation information
|
|
319
|
+
* @class
|
|
320
|
+
*/
|
|
321
|
+
class RotateParagraphRect extends AbstractModel {
|
|
322
|
+
constructor(){
|
|
323
|
+
super();
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Paragraph text coordinates
|
|
327
|
+
* @type {Array.<Coord> || null}
|
|
328
|
+
*/
|
|
329
|
+
this.Coord = null;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Rotation angle
|
|
333
|
+
* @type {number || null}
|
|
334
|
+
*/
|
|
335
|
+
this.TiltAngle = null;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Whether the paragraph text information is valid
|
|
339
|
+
* @type {boolean || null}
|
|
340
|
+
*/
|
|
341
|
+
this.Valid = null;
|
|
342
|
+
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* @private
|
|
347
|
+
*/
|
|
348
|
+
deserialize(params) {
|
|
349
|
+
if (!params) {
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (params.Coord) {
|
|
354
|
+
this.Coord = new Array();
|
|
355
|
+
for (let z in params.Coord) {
|
|
356
|
+
let obj = new Coord();
|
|
357
|
+
obj.deserialize(params.Coord[z]);
|
|
358
|
+
this.Coord.push(obj);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
this.TiltAngle = 'TiltAngle' in params ? params.TiltAngle : null;
|
|
362
|
+
this.Valid = 'Valid' in params ? params.Valid : null;
|
|
170
363
|
|
|
171
364
|
}
|
|
172
365
|
}
|
|
173
366
|
|
|
174
367
|
module.exports = {
|
|
175
|
-
|
|
176
|
-
|
|
368
|
+
ImageTranslateLLMRequest: ImageTranslateLLMRequest,
|
|
369
|
+
ImageTranslateLLMResponse: ImageTranslateLLMResponse,
|
|
370
|
+
Coord: Coord,
|
|
371
|
+
TransDetail: TransDetail,
|
|
372
|
+
BoundingBox: BoundingBox,
|
|
373
|
+
RotateParagraphRect: RotateParagraphRect,
|
|
177
374
|
|
|
178
375
|
}
|
|
@@ -16,8 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const models = require("./models");
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
-
const
|
|
20
|
-
const
|
|
19
|
+
const ImageTranslateLLMRequest = models.ImageTranslateLLMRequest;
|
|
20
|
+
const ImageTranslateLLMResponse = models.ImageTranslateLLMResponse;
|
|
21
|
+
const Coord = models.Coord;
|
|
22
|
+
const TransDetail = models.TransDetail;
|
|
23
|
+
const BoundingBox = models.BoundingBox;
|
|
24
|
+
const RotateParagraphRect = models.RotateParagraphRect;
|
|
21
25
|
|
|
22
26
|
|
|
23
27
|
/**
|
|
@@ -31,15 +35,19 @@ class TmtClient extends AbstractClient {
|
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
/**
|
|
34
|
-
* This API is used to
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
* This API is used to provide translation service for images in 18 languages. It can automatically recognize text content in images and translate it into the target language. The recognized text is translated line by line, and a version that supports paragraph translation will be offered subsequently.
|
|
39
|
+
|
|
40
|
+
-Input image format: png, jpg, jpeg and other common image formats. gif animation is not supported.
|
|
41
|
+
-Output image format: jpg.
|
|
42
|
+
|
|
43
|
+
Notification: For general developers, we recommend prioritizing SDK integration to simplify development. For SDK usage introduction, directly view the 5. Developer Resources part.
|
|
44
|
+
* @param {ImageTranslateLLMRequest} req
|
|
45
|
+
* @param {function(string, ImageTranslateLLMResponse):void} cb
|
|
38
46
|
* @public
|
|
39
47
|
*/
|
|
40
|
-
|
|
41
|
-
let resp = new
|
|
42
|
-
this.request("
|
|
48
|
+
ImageTranslateLLM(req, cb) {
|
|
49
|
+
let resp = new ImageTranslateLLMResponse();
|
|
50
|
+
this.request("ImageTranslateLLM", req, resp, cb);
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
|