tencentcloud-sdk-nodejs-intl-en 3.0.1300 → 3.0.1302
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/common/sdk_version.js +1 -1
- package/tencentcloud/hunyuan/v20230901/hunyuan_client.js +57 -2
- package/tencentcloud/hunyuan/v20230901/models.js +427 -40
- package/tencentcloud/mdl/v20200326/mdl_client.js +6 -3
- package/tencentcloud/mdl/v20200326/models.js +292 -66
- package/tencentcloud/mdp/v20200527/models.js +124 -11
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1302";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -16,12 +16,21 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const models = require("./models");
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
-
const SubmitHunyuanTo3DProJobRequest = models.SubmitHunyuanTo3DProJobRequest;
|
|
20
|
-
const SubmitHunyuanTo3DProJobResponse = models.SubmitHunyuanTo3DProJobResponse;
|
|
21
19
|
const ViewImage = models.ViewImage;
|
|
20
|
+
const SubmitHunyuanTo3DRapidJobRequest = models.SubmitHunyuanTo3DRapidJobRequest;
|
|
21
|
+
const SubmitHunyuanTo3DProJobResponse = models.SubmitHunyuanTo3DProJobResponse;
|
|
22
|
+
const SubmitHunyuan3DPartJobResponse = models.SubmitHunyuan3DPartJobResponse;
|
|
23
|
+
const SubmitHunyuanTo3DProJobRequest = models.SubmitHunyuanTo3DProJobRequest;
|
|
22
24
|
const QueryHunyuanTo3DProJobRequest = models.QueryHunyuanTo3DProJobRequest;
|
|
23
25
|
const File3D = models.File3D;
|
|
26
|
+
const QueryHunyuanTo3DRapidJobResponse = models.QueryHunyuanTo3DRapidJobResponse;
|
|
27
|
+
const QueryHunyuan3DPartJobResponse = models.QueryHunyuan3DPartJobResponse;
|
|
24
28
|
const QueryHunyuanTo3DProJobResponse = models.QueryHunyuanTo3DProJobResponse;
|
|
29
|
+
const SubmitHunyuan3DPartJobRequest = models.SubmitHunyuan3DPartJobRequest;
|
|
30
|
+
const QueryHunyuan3DPartJobRequest = models.QueryHunyuan3DPartJobRequest;
|
|
31
|
+
const SubmitHunyuanTo3DRapidJobResponse = models.SubmitHunyuanTo3DRapidJobResponse;
|
|
32
|
+
const InputFile3D = models.InputFile3D;
|
|
33
|
+
const QueryHunyuanTo3DRapidJobRequest = models.QueryHunyuanTo3DRapidJobRequest;
|
|
25
34
|
|
|
26
35
|
|
|
27
36
|
/**
|
|
@@ -46,6 +55,29 @@ This API is used to provide 3 concurrent tasks by default. Up to 3 submitted tas
|
|
|
46
55
|
this.request("SubmitHunyuanTo3DProJob", req, resp, cb);
|
|
47
56
|
}
|
|
48
57
|
|
|
58
|
+
/**
|
|
59
|
+
* This API is used to intelligently generate 3D content based on the HunYuan Large Model with input text descriptions or images.
|
|
60
|
+
This API is used to provide 1 concurrent task by default, which means only 1 submitted task can be processed simultaneously. The next task can be processed only after the previous task is completed.
|
|
61
|
+
* @param {QueryHunyuanTo3DRapidJobRequest} req
|
|
62
|
+
* @param {function(string, QueryHunyuanTo3DRapidJobResponse):void} cb
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
QueryHunyuanTo3DRapidJob(req, cb) {
|
|
66
|
+
let resp = new QueryHunyuanTo3DRapidJobResponse();
|
|
67
|
+
this.request("QueryHunyuanTo3DRapidJob", req, resp, cb);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* This API is used to query the generation task of a component.
|
|
72
|
+
* @param {QueryHunyuan3DPartJobRequest} req
|
|
73
|
+
* @param {function(string, QueryHunyuan3DPartJobResponse):void} cb
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
QueryHunyuan3DPartJob(req, cb) {
|
|
77
|
+
let resp = new QueryHunyuan3DPartJobResponse();
|
|
78
|
+
this.request("QueryHunyuan3DPartJob", req, resp, cb);
|
|
79
|
+
}
|
|
80
|
+
|
|
49
81
|
/**
|
|
50
82
|
* This API is used to intelligently generate 3D content based on the HunYuan Large Model and input text descriptions/images.
|
|
51
83
|
This API is used to provide 3 concurrent tasks by default, which can process 3 submitted tasks simultaneously. The next task can be processed only after the previous task is completed.
|
|
@@ -58,6 +90,29 @@ This API is used to provide 3 concurrent tasks by default, which can process 3 s
|
|
|
58
90
|
this.request("QueryHunyuanTo3DProJob", req, resp, cb);
|
|
59
91
|
}
|
|
60
92
|
|
|
93
|
+
/**
|
|
94
|
+
* This API is used to intelligently generate 3D content based on the HunYuan Large Model with input text descriptions or images.
|
|
95
|
+
This API is used to provide 1 concurrent task by default, which means only 1 submitted task can be processed simultaneously. The next task can be processed only after the previous task is completed.
|
|
96
|
+
* @param {SubmitHunyuanTo3DRapidJobRequest} req
|
|
97
|
+
* @param {function(string, SubmitHunyuanTo3DRapidJobResponse):void} cb
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
SubmitHunyuanTo3DRapidJob(req, cb) {
|
|
101
|
+
let resp = new SubmitHunyuanTo3DRapidJobResponse();
|
|
102
|
+
this.request("SubmitHunyuanTo3DRapidJob", req, resp, cb);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* This API is used to automatically perform component identification and generation based on the model structure after inputting a 3D model file.
|
|
107
|
+
* @param {SubmitHunyuan3DPartJobRequest} req
|
|
108
|
+
* @param {function(string, SubmitHunyuan3DPartJobResponse):void} cb
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
SubmitHunyuan3DPartJob(req, cb) {
|
|
112
|
+
let resp = new SubmitHunyuan3DPartJobResponse();
|
|
113
|
+
this.request("SubmitHunyuan3DPartJob", req, resp, cb);
|
|
114
|
+
}
|
|
115
|
+
|
|
61
116
|
|
|
62
117
|
}
|
|
63
118
|
module.exports = HunyuanClient;
|
|
@@ -16,6 +16,175 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const AbstractModel = require("../../common/abstract_model");
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Multi-Perspective images.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class ViewImage extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the viewing angle type.
|
|
29
|
+
Valid values: back, left, right.
|
|
30
|
+
* @type {string || null}
|
|
31
|
+
*/
|
|
32
|
+
this.ViewType = null;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Image Url.
|
|
36
|
+
* @type {string || null}
|
|
37
|
+
*/
|
|
38
|
+
this.ViewImageUrl = null;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* base64 address of the image.
|
|
42
|
+
* @type {string || null}
|
|
43
|
+
*/
|
|
44
|
+
this.ViewImageBase64 = null;
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
deserialize(params) {
|
|
52
|
+
if (!params) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
this.ViewType = 'ViewType' in params ? params.ViewType : null;
|
|
56
|
+
this.ViewImageUrl = 'ViewImageUrl' in params ? params.ViewImageUrl : null;
|
|
57
|
+
this.ViewImageBase64 = 'ViewImageBase64' in params ? params.ViewImageBase64 : null;
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* SubmitHunyuanTo3DRapidJob request structure.
|
|
64
|
+
* @class
|
|
65
|
+
*/
|
|
66
|
+
class SubmitHunyuanTo3DRapidJobRequest extends AbstractModel {
|
|
67
|
+
constructor(){
|
|
68
|
+
super();
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Text-To-3D, description of 3D content, forward Prompt content. supports up to 200 utf-8 characters. either ImageBase64, ImageUrl, or Prompt is required, and Prompt cannot coexist with ImageBase64/ImageUrl.
|
|
72
|
+
* @type {string || null}
|
|
73
|
+
*/
|
|
74
|
+
this.Prompt = null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Input image Base64 data. size: unilateral resolution requirement not less than 128, not greater than 5000, size ≤6m (after encoding, size increases by approximately 30%). format: jpg, png, jpeg, webp. imagebase64, imageurl, and Prompt are required, but Prompt and imagebase64/imageurl cannot coexist.
|
|
78
|
+
* @type {string || null}
|
|
79
|
+
*/
|
|
80
|
+
this.ImageBase64 = null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Input image Url. size: unilateral resolution requirement not less than 128, not greater than 5000. size ≤8m. format: jpg, png, jpeg, webp. imagebase64, imageurl, and Prompt are required, and Prompt cannot coexist with imagebase64/imageurl.
|
|
84
|
+
* @type {string || null}
|
|
85
|
+
*/
|
|
86
|
+
this.ImageUrl = null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Specifies whether PBR material generation is enabled, false by default.
|
|
90
|
+
* @type {boolean || null}
|
|
91
|
+
*/
|
|
92
|
+
this.EnablePBR = null;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Specifies whether to enable the single geometry generation option. when enabled, it generates a 3D model without textures (white model). enabled, the generative model does not support OBJ format. default model file format is GLB.
|
|
96
|
+
* @type {boolean || null}
|
|
97
|
+
*/
|
|
98
|
+
this.EnableGeometry = null;
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
deserialize(params) {
|
|
106
|
+
if (!params) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.Prompt = 'Prompt' in params ? params.Prompt : null;
|
|
110
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
111
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
112
|
+
this.EnablePBR = 'EnablePBR' in params ? params.EnablePBR : null;
|
|
113
|
+
this.EnableGeometry = 'EnableGeometry' in params ? params.EnableGeometry : null;
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* SubmitHunyuanTo3DProJob response structure.
|
|
120
|
+
* @class
|
|
121
|
+
*/
|
|
122
|
+
class SubmitHunyuanTo3DProJobResponse extends AbstractModel {
|
|
123
|
+
constructor(){
|
|
124
|
+
super();
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Task ID (valid period: 24 hours).
|
|
128
|
+
* @type {string || null}
|
|
129
|
+
*/
|
|
130
|
+
this.JobId = null;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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.
|
|
134
|
+
* @type {string || null}
|
|
135
|
+
*/
|
|
136
|
+
this.RequestId = null;
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @private
|
|
142
|
+
*/
|
|
143
|
+
deserialize(params) {
|
|
144
|
+
if (!params) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
this.JobId = 'JobId' in params ? params.JobId : null;
|
|
148
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* SubmitHunyuan3DPartJob response structure.
|
|
155
|
+
* @class
|
|
156
|
+
*/
|
|
157
|
+
class SubmitHunyuan3DPartJobResponse extends AbstractModel {
|
|
158
|
+
constructor(){
|
|
159
|
+
super();
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Task id (valid period: 24 hours).
|
|
163
|
+
* @type {string || null}
|
|
164
|
+
*/
|
|
165
|
+
this.JobId = null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* 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.
|
|
169
|
+
* @type {string || null}
|
|
170
|
+
*/
|
|
171
|
+
this.RequestId = null;
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @private
|
|
177
|
+
*/
|
|
178
|
+
deserialize(params) {
|
|
179
|
+
if (!params) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
this.JobId = 'JobId' in params ? params.JobId : null;
|
|
183
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
184
|
+
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
19
188
|
/**
|
|
20
189
|
* SubmitHunyuanTo3DProJob request structure.
|
|
21
190
|
* @class
|
|
@@ -137,25 +306,19 @@ quadrilateral: mix quadrangle and triangle faces to generate.
|
|
|
137
306
|
}
|
|
138
307
|
|
|
139
308
|
/**
|
|
140
|
-
*
|
|
309
|
+
* QueryHunyuanTo3DProJob request structure.
|
|
141
310
|
* @class
|
|
142
311
|
*/
|
|
143
|
-
class
|
|
312
|
+
class QueryHunyuanTo3DProJobRequest extends AbstractModel {
|
|
144
313
|
constructor(){
|
|
145
314
|
super();
|
|
146
315
|
|
|
147
316
|
/**
|
|
148
|
-
* Task ID
|
|
317
|
+
* Task ID.
|
|
149
318
|
* @type {string || null}
|
|
150
319
|
*/
|
|
151
320
|
this.JobId = null;
|
|
152
321
|
|
|
153
|
-
/**
|
|
154
|
-
* 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.
|
|
155
|
-
* @type {string || null}
|
|
156
|
-
*/
|
|
157
|
-
this.RequestId = null;
|
|
158
|
-
|
|
159
322
|
}
|
|
160
323
|
|
|
161
324
|
/**
|
|
@@ -166,37 +329,35 @@ class SubmitHunyuanTo3DProJobResponse extends AbstractModel {
|
|
|
166
329
|
return;
|
|
167
330
|
}
|
|
168
331
|
this.JobId = 'JobId' in params ? params.JobId : null;
|
|
169
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
170
332
|
|
|
171
333
|
}
|
|
172
334
|
}
|
|
173
335
|
|
|
174
336
|
/**
|
|
175
|
-
*
|
|
337
|
+
* 3D file.
|
|
176
338
|
* @class
|
|
177
339
|
*/
|
|
178
|
-
class
|
|
340
|
+
class File3D extends AbstractModel {
|
|
179
341
|
constructor(){
|
|
180
342
|
super();
|
|
181
343
|
|
|
182
344
|
/**
|
|
183
|
-
*
|
|
184
|
-
Valid values: back, left, right.
|
|
345
|
+
* 3D file format. valid values: GIF, OBJ.
|
|
185
346
|
* @type {string || null}
|
|
186
347
|
*/
|
|
187
|
-
this.
|
|
348
|
+
this.Type = null;
|
|
188
349
|
|
|
189
350
|
/**
|
|
190
|
-
*
|
|
351
|
+
* Specifies the file Url (valid for 24 hours).
|
|
191
352
|
* @type {string || null}
|
|
192
353
|
*/
|
|
193
|
-
this.
|
|
354
|
+
this.Url = null;
|
|
194
355
|
|
|
195
356
|
/**
|
|
196
|
-
*
|
|
357
|
+
* Preview image Url.
|
|
197
358
|
* @type {string || null}
|
|
198
359
|
*/
|
|
199
|
-
this.
|
|
360
|
+
this.PreviewImageUrl = null;
|
|
200
361
|
|
|
201
362
|
}
|
|
202
363
|
|
|
@@ -207,26 +368,50 @@ Valid values: back, left, right.
|
|
|
207
368
|
if (!params) {
|
|
208
369
|
return;
|
|
209
370
|
}
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
371
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
372
|
+
this.Url = 'Url' in params ? params.Url : null;
|
|
373
|
+
this.PreviewImageUrl = 'PreviewImageUrl' in params ? params.PreviewImageUrl : null;
|
|
213
374
|
|
|
214
375
|
}
|
|
215
376
|
}
|
|
216
377
|
|
|
217
378
|
/**
|
|
218
|
-
*
|
|
379
|
+
* QueryHunyuanTo3DRapidJob response structure.
|
|
219
380
|
* @class
|
|
220
381
|
*/
|
|
221
|
-
class
|
|
382
|
+
class QueryHunyuanTo3DRapidJobResponse extends AbstractModel {
|
|
222
383
|
constructor(){
|
|
223
384
|
super();
|
|
224
385
|
|
|
225
386
|
/**
|
|
226
|
-
* Task
|
|
387
|
+
* Task status. WAIT: waiting; RUN: running; FAIL: failed; DONE: successful.
|
|
227
388
|
* @type {string || null}
|
|
228
389
|
*/
|
|
229
|
-
this.
|
|
390
|
+
this.Status = null;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Error code
|
|
394
|
+
* @type {string || null}
|
|
395
|
+
*/
|
|
396
|
+
this.ErrorCode = null;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Error message
|
|
400
|
+
* @type {string || null}
|
|
401
|
+
*/
|
|
402
|
+
this.ErrorMessage = null;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Specifies the generated 3D file array.
|
|
406
|
+
* @type {Array.<File3D> || null}
|
|
407
|
+
*/
|
|
408
|
+
this.ResultFile3Ds = null;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* 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.
|
|
412
|
+
* @type {string || null}
|
|
413
|
+
*/
|
|
414
|
+
this.RequestId = null;
|
|
230
415
|
|
|
231
416
|
}
|
|
232
417
|
|
|
@@ -237,36 +422,60 @@ class QueryHunyuanTo3DProJobRequest extends AbstractModel {
|
|
|
237
422
|
if (!params) {
|
|
238
423
|
return;
|
|
239
424
|
}
|
|
240
|
-
this.
|
|
425
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
426
|
+
this.ErrorCode = 'ErrorCode' in params ? params.ErrorCode : null;
|
|
427
|
+
this.ErrorMessage = 'ErrorMessage' in params ? params.ErrorMessage : null;
|
|
428
|
+
|
|
429
|
+
if (params.ResultFile3Ds) {
|
|
430
|
+
this.ResultFile3Ds = new Array();
|
|
431
|
+
for (let z in params.ResultFile3Ds) {
|
|
432
|
+
let obj = new File3D();
|
|
433
|
+
obj.deserialize(params.ResultFile3Ds[z]);
|
|
434
|
+
this.ResultFile3Ds.push(obj);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
241
438
|
|
|
242
439
|
}
|
|
243
440
|
}
|
|
244
441
|
|
|
245
442
|
/**
|
|
246
|
-
*
|
|
443
|
+
* QueryHunyuan3DPartJob response structure.
|
|
247
444
|
* @class
|
|
248
445
|
*/
|
|
249
|
-
class
|
|
446
|
+
class QueryHunyuan3DPartJobResponse extends AbstractModel {
|
|
250
447
|
constructor(){
|
|
251
448
|
super();
|
|
252
449
|
|
|
253
450
|
/**
|
|
254
|
-
*
|
|
451
|
+
* Task status. WAIT: waiting; RUN: running; FAIL: failed; DONE: successful. example value: RUN.
|
|
255
452
|
* @type {string || null}
|
|
256
453
|
*/
|
|
257
|
-
this.
|
|
454
|
+
this.Status = null;
|
|
258
455
|
|
|
259
456
|
/**
|
|
260
|
-
*
|
|
457
|
+
* Error code.
|
|
261
458
|
* @type {string || null}
|
|
262
459
|
*/
|
|
263
|
-
this.
|
|
460
|
+
this.ErrorCode = null;
|
|
264
461
|
|
|
265
462
|
/**
|
|
266
|
-
*
|
|
463
|
+
* Error message.
|
|
267
464
|
* @type {string || null}
|
|
268
465
|
*/
|
|
269
|
-
this.
|
|
466
|
+
this.ErrorMessage = null;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Generates the file URL with a valid period of 1 day.
|
|
470
|
+
* @type {Array.<File3D> || null}
|
|
471
|
+
*/
|
|
472
|
+
this.ResultFile3Ds = null;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* 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.
|
|
476
|
+
* @type {string || null}
|
|
477
|
+
*/
|
|
478
|
+
this.RequestId = null;
|
|
270
479
|
|
|
271
480
|
}
|
|
272
481
|
|
|
@@ -277,9 +486,19 @@ class File3D extends AbstractModel {
|
|
|
277
486
|
if (!params) {
|
|
278
487
|
return;
|
|
279
488
|
}
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
489
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
490
|
+
this.ErrorCode = 'ErrorCode' in params ? params.ErrorCode : null;
|
|
491
|
+
this.ErrorMessage = 'ErrorMessage' in params ? params.ErrorMessage : null;
|
|
492
|
+
|
|
493
|
+
if (params.ResultFile3Ds) {
|
|
494
|
+
this.ResultFile3Ds = new Array();
|
|
495
|
+
for (let z in params.ResultFile3Ds) {
|
|
496
|
+
let obj = new File3D();
|
|
497
|
+
obj.deserialize(params.ResultFile3Ds[z]);
|
|
498
|
+
this.ResultFile3Ds.push(obj);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
283
502
|
|
|
284
503
|
}
|
|
285
504
|
}
|
|
@@ -348,12 +567,180 @@ class QueryHunyuanTo3DProJobResponse extends AbstractModel {
|
|
|
348
567
|
}
|
|
349
568
|
}
|
|
350
569
|
|
|
570
|
+
/**
|
|
571
|
+
* SubmitHunyuan3DPartJob request structure.
|
|
572
|
+
* @class
|
|
573
|
+
*/
|
|
574
|
+
class SubmitHunyuan3DPartJobRequest extends AbstractModel {
|
|
575
|
+
constructor(){
|
|
576
|
+
super();
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Recommends inputting 3D models generated by AIGC. recommended file size ≤100MB. face count ≤1,500,000. only supports FBX format.
|
|
580
|
+
* @type {InputFile3D || null}
|
|
581
|
+
*/
|
|
582
|
+
this.File = null;
|
|
583
|
+
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* @private
|
|
588
|
+
*/
|
|
589
|
+
deserialize(params) {
|
|
590
|
+
if (!params) {
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
if (params.File) {
|
|
595
|
+
let obj = new InputFile3D();
|
|
596
|
+
obj.deserialize(params.File)
|
|
597
|
+
this.File = obj;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* QueryHunyuan3DPartJob request structure.
|
|
605
|
+
* @class
|
|
606
|
+
*/
|
|
607
|
+
class QueryHunyuan3DPartJobRequest extends AbstractModel {
|
|
608
|
+
constructor(){
|
|
609
|
+
super();
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Task ID.
|
|
613
|
+
* @type {string || null}
|
|
614
|
+
*/
|
|
615
|
+
this.JobId = null;
|
|
616
|
+
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* @private
|
|
621
|
+
*/
|
|
622
|
+
deserialize(params) {
|
|
623
|
+
if (!params) {
|
|
624
|
+
return;
|
|
625
|
+
}
|
|
626
|
+
this.JobId = 'JobId' in params ? params.JobId : null;
|
|
627
|
+
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* SubmitHunyuanTo3DRapidJob response structure.
|
|
633
|
+
* @class
|
|
634
|
+
*/
|
|
635
|
+
class SubmitHunyuanTo3DRapidJobResponse extends AbstractModel {
|
|
636
|
+
constructor(){
|
|
637
|
+
super();
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Task ID (valid period: 24 hours).
|
|
641
|
+
* @type {string || null}
|
|
642
|
+
*/
|
|
643
|
+
this.JobId = null;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* 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.
|
|
647
|
+
* @type {string || null}
|
|
648
|
+
*/
|
|
649
|
+
this.RequestId = null;
|
|
650
|
+
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* @private
|
|
655
|
+
*/
|
|
656
|
+
deserialize(params) {
|
|
657
|
+
if (!params) {
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
this.JobId = 'JobId' in params ? params.JobId : null;
|
|
661
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
662
|
+
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* 3D file.
|
|
668
|
+
* @class
|
|
669
|
+
*/
|
|
670
|
+
class InputFile3D extends AbstractModel {
|
|
671
|
+
constructor(){
|
|
672
|
+
super();
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Specifies the file Url with a valid period of 24 hours.
|
|
676
|
+
* @type {string || null}
|
|
677
|
+
*/
|
|
678
|
+
this.Url = null;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Specifies the file format.
|
|
682
|
+
* @type {string || null}
|
|
683
|
+
*/
|
|
684
|
+
this.Type = null;
|
|
685
|
+
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* @private
|
|
690
|
+
*/
|
|
691
|
+
deserialize(params) {
|
|
692
|
+
if (!params) {
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
this.Url = 'Url' in params ? params.Url : null;
|
|
696
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
697
|
+
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* QueryHunyuanTo3DRapidJob request structure.
|
|
703
|
+
* @class
|
|
704
|
+
*/
|
|
705
|
+
class QueryHunyuanTo3DRapidJobRequest extends AbstractModel {
|
|
706
|
+
constructor(){
|
|
707
|
+
super();
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Task ID.
|
|
711
|
+
* @type {string || null}
|
|
712
|
+
*/
|
|
713
|
+
this.JobId = null;
|
|
714
|
+
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* @private
|
|
719
|
+
*/
|
|
720
|
+
deserialize(params) {
|
|
721
|
+
if (!params) {
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
this.JobId = 'JobId' in params ? params.JobId : null;
|
|
725
|
+
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
351
729
|
module.exports = {
|
|
352
|
-
SubmitHunyuanTo3DProJobRequest: SubmitHunyuanTo3DProJobRequest,
|
|
353
|
-
SubmitHunyuanTo3DProJobResponse: SubmitHunyuanTo3DProJobResponse,
|
|
354
730
|
ViewImage: ViewImage,
|
|
731
|
+
SubmitHunyuanTo3DRapidJobRequest: SubmitHunyuanTo3DRapidJobRequest,
|
|
732
|
+
SubmitHunyuanTo3DProJobResponse: SubmitHunyuanTo3DProJobResponse,
|
|
733
|
+
SubmitHunyuan3DPartJobResponse: SubmitHunyuan3DPartJobResponse,
|
|
734
|
+
SubmitHunyuanTo3DProJobRequest: SubmitHunyuanTo3DProJobRequest,
|
|
355
735
|
QueryHunyuanTo3DProJobRequest: QueryHunyuanTo3DProJobRequest,
|
|
356
736
|
File3D: File3D,
|
|
737
|
+
QueryHunyuanTo3DRapidJobResponse: QueryHunyuanTo3DRapidJobResponse,
|
|
738
|
+
QueryHunyuan3DPartJobResponse: QueryHunyuan3DPartJobResponse,
|
|
357
739
|
QueryHunyuanTo3DProJobResponse: QueryHunyuanTo3DProJobResponse,
|
|
740
|
+
SubmitHunyuan3DPartJobRequest: SubmitHunyuan3DPartJobRequest,
|
|
741
|
+
QueryHunyuan3DPartJobRequest: QueryHunyuan3DPartJobRequest,
|
|
742
|
+
SubmitHunyuanTo3DRapidJobResponse: SubmitHunyuanTo3DRapidJobResponse,
|
|
743
|
+
InputFile3D: InputFile3D,
|
|
744
|
+
QueryHunyuanTo3DRapidJobRequest: QueryHunyuanTo3DRapidJobRequest,
|
|
358
745
|
|
|
359
746
|
}
|