@antchain/antdigital-creative 1.1.5 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +475 -0
- package/dist/client.js +677 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +889 -1
package/src/client.ts
CHANGED
|
@@ -2311,6 +2311,663 @@ export class ExecMaasPriceResponse extends $tea.Model {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
2314
|
+
export class ExecMaasChatstreamRequest extends $tea.Model {
|
|
2315
|
+
// OAuth模式下的授权token
|
|
2316
|
+
authToken?: string;
|
|
2317
|
+
productInstanceId?: string;
|
|
2318
|
+
// 幂等标识,由客户端生成
|
|
2319
|
+
requestId: string;
|
|
2320
|
+
// 文本模型编码
|
|
2321
|
+
model: string;
|
|
2322
|
+
// 非空消息列表
|
|
2323
|
+
messages: ChatMessages[];
|
|
2324
|
+
// 模型参数 JSON 字符串
|
|
2325
|
+
extParams?: string;
|
|
2326
|
+
static names(): { [key: string]: string } {
|
|
2327
|
+
return {
|
|
2328
|
+
authToken: 'auth_token',
|
|
2329
|
+
productInstanceId: 'product_instance_id',
|
|
2330
|
+
requestId: 'request_id',
|
|
2331
|
+
model: 'model',
|
|
2332
|
+
messages: 'messages',
|
|
2333
|
+
extParams: 'ext_params',
|
|
2334
|
+
};
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
static types(): { [key: string]: any } {
|
|
2338
|
+
return {
|
|
2339
|
+
authToken: 'string',
|
|
2340
|
+
productInstanceId: 'string',
|
|
2341
|
+
requestId: 'string',
|
|
2342
|
+
model: 'string',
|
|
2343
|
+
messages: { 'type': 'array', 'itemType': ChatMessages },
|
|
2344
|
+
extParams: 'string',
|
|
2345
|
+
};
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
constructor(map?: { [key: string]: any }) {
|
|
2349
|
+
super(map);
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
export class ExecMaasChatstreamResponse extends $tea.Model {
|
|
2354
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2355
|
+
reqMsgId?: string;
|
|
2356
|
+
// 结果码,一般OK表示调用成功
|
|
2357
|
+
resultCode?: string;
|
|
2358
|
+
// 异常信息的文本描述
|
|
2359
|
+
resultMsg?: string;
|
|
2360
|
+
static names(): { [key: string]: string } {
|
|
2361
|
+
return {
|
|
2362
|
+
reqMsgId: 'req_msg_id',
|
|
2363
|
+
resultCode: 'result_code',
|
|
2364
|
+
resultMsg: 'result_msg',
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
static types(): { [key: string]: any } {
|
|
2369
|
+
return {
|
|
2370
|
+
reqMsgId: 'string',
|
|
2371
|
+
resultCode: 'string',
|
|
2372
|
+
resultMsg: 'string',
|
|
2373
|
+
};
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
constructor(map?: { [key: string]: any }) {
|
|
2377
|
+
super(map);
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
export class PushArkassetRequest extends $tea.Model {
|
|
2382
|
+
// OAuth模式下的授权token
|
|
2383
|
+
authToken?: string;
|
|
2384
|
+
productInstanceId?: string;
|
|
2385
|
+
// {"GroupId":"group-20240514212750-b5e9m","URL":"https://example-tos.cn-beijing.volcengine.com/asset-20240514212750-a3f8k.jpg","Name":"demo-portrait-image","AssetType":"Image","ProjectName":"default"}
|
|
2386
|
+
requestBody: string;
|
|
2387
|
+
static names(): { [key: string]: string } {
|
|
2388
|
+
return {
|
|
2389
|
+
authToken: 'auth_token',
|
|
2390
|
+
productInstanceId: 'product_instance_id',
|
|
2391
|
+
requestBody: 'request_body',
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
static types(): { [key: string]: any } {
|
|
2396
|
+
return {
|
|
2397
|
+
authToken: 'string',
|
|
2398
|
+
productInstanceId: 'string',
|
|
2399
|
+
requestBody: 'string',
|
|
2400
|
+
};
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
constructor(map?: { [key: string]: any }) {
|
|
2404
|
+
super(map);
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
export class PushArkassetResponse extends $tea.Model {
|
|
2409
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2410
|
+
reqMsgId?: string;
|
|
2411
|
+
// 结果码,一般OK表示调用成功
|
|
2412
|
+
resultCode?: string;
|
|
2413
|
+
// 异常信息的文本描述
|
|
2414
|
+
resultMsg?: string;
|
|
2415
|
+
// {"ResponseMetadata":{"RequestId":"20240514212750A1B2C3D4E5F6789ABC","Action":"CreateAsset","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{"Id":"asset-20240514212750-a3f8k"}}
|
|
2416
|
+
responseBody?: string;
|
|
2417
|
+
static names(): { [key: string]: string } {
|
|
2418
|
+
return {
|
|
2419
|
+
reqMsgId: 'req_msg_id',
|
|
2420
|
+
resultCode: 'result_code',
|
|
2421
|
+
resultMsg: 'result_msg',
|
|
2422
|
+
responseBody: 'response_body',
|
|
2423
|
+
};
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
static types(): { [key: string]: any } {
|
|
2427
|
+
return {
|
|
2428
|
+
reqMsgId: 'string',
|
|
2429
|
+
resultCode: 'string',
|
|
2430
|
+
resultMsg: 'string',
|
|
2431
|
+
responseBody: 'string',
|
|
2432
|
+
};
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
constructor(map?: { [key: string]: any }) {
|
|
2436
|
+
super(map);
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
export class QueryArkassetRequest extends $tea.Model {
|
|
2441
|
+
// OAuth模式下的授权token
|
|
2442
|
+
authToken?: string;
|
|
2443
|
+
productInstanceId?: string;
|
|
2444
|
+
// {"Id":"asset-20240514212750-a3f8k","ProjectName":"default"}
|
|
2445
|
+
requestBody: string;
|
|
2446
|
+
static names(): { [key: string]: string } {
|
|
2447
|
+
return {
|
|
2448
|
+
authToken: 'auth_token',
|
|
2449
|
+
productInstanceId: 'product_instance_id',
|
|
2450
|
+
requestBody: 'request_body',
|
|
2451
|
+
};
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
static types(): { [key: string]: any } {
|
|
2455
|
+
return {
|
|
2456
|
+
authToken: 'string',
|
|
2457
|
+
productInstanceId: 'string',
|
|
2458
|
+
requestBody: 'string',
|
|
2459
|
+
};
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
constructor(map?: { [key: string]: any }) {
|
|
2463
|
+
super(map);
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
export class QueryArkassetResponse extends $tea.Model {
|
|
2468
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2469
|
+
reqMsgId?: string;
|
|
2470
|
+
// 结果码,一般OK表示调用成功
|
|
2471
|
+
resultCode?: string;
|
|
2472
|
+
// 异常信息的文本描述
|
|
2473
|
+
resultMsg?: string;
|
|
2474
|
+
// {"ResponseMetadata":{"RequestId":"20240514213000E5F6789ABCDEF01234","Action":"GetAsset","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{"Id":"asset-20240514212750-a3f8k","Name":"demo-portrait-image","URL":"https://ark-asset.cn-beijing.volcengine.com/asset-20240514212750-a3f8k.jpg?X-Amz-Expires=43200","AssetType":"Image","GroupId":"group-20240514212750-b5e9m","Status":"Active","Moderation":{"Strategy":"Default"},"Error":{"Code":"","Message":""},"CreateTime":"2024-05-14T21:27:50Z","UpdateTime":"2024-05-14T21:30:00Z","LastInferenceTime":"2024-05-14T22:15:30Z","ProjectName":"default"}}
|
|
2475
|
+
responseBody?: string;
|
|
2476
|
+
static names(): { [key: string]: string } {
|
|
2477
|
+
return {
|
|
2478
|
+
reqMsgId: 'req_msg_id',
|
|
2479
|
+
resultCode: 'result_code',
|
|
2480
|
+
resultMsg: 'result_msg',
|
|
2481
|
+
responseBody: 'response_body',
|
|
2482
|
+
};
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
static types(): { [key: string]: any } {
|
|
2486
|
+
return {
|
|
2487
|
+
reqMsgId: 'string',
|
|
2488
|
+
resultCode: 'string',
|
|
2489
|
+
resultMsg: 'string',
|
|
2490
|
+
responseBody: 'string',
|
|
2491
|
+
};
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
constructor(map?: { [key: string]: any }) {
|
|
2495
|
+
super(map);
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
export class QueryArkassetListRequest extends $tea.Model {
|
|
2500
|
+
// OAuth模式下的授权token
|
|
2501
|
+
authToken?: string;
|
|
2502
|
+
productInstanceId?: string;
|
|
2503
|
+
// {"Filter":{"GroupIds":["group-20240514212750-b5e9m"],"GroupType":"AIGC","Statuses":["Active"]},"MaxResults":1,"SortBy":"CreateTime","SortOrder":"Desc","ProjectName":"default"}
|
|
2504
|
+
requestBody: string;
|
|
2505
|
+
static names(): { [key: string]: string } {
|
|
2506
|
+
return {
|
|
2507
|
+
authToken: 'auth_token',
|
|
2508
|
+
productInstanceId: 'product_instance_id',
|
|
2509
|
+
requestBody: 'request_body',
|
|
2510
|
+
};
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
static types(): { [key: string]: any } {
|
|
2514
|
+
return {
|
|
2515
|
+
authToken: 'string',
|
|
2516
|
+
productInstanceId: 'string',
|
|
2517
|
+
requestBody: 'string',
|
|
2518
|
+
};
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
constructor(map?: { [key: string]: any }) {
|
|
2522
|
+
super(map);
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
export class QueryArkassetListResponse extends $tea.Model {
|
|
2527
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2528
|
+
reqMsgId?: string;
|
|
2529
|
+
// 结果码,一般OK表示调用成功
|
|
2530
|
+
resultCode?: string;
|
|
2531
|
+
// 异常信息的文本描述
|
|
2532
|
+
resultMsg?: string;
|
|
2533
|
+
// {"ResponseMetadata":{"RequestId":"202405142130001A2B3C4D5E6F708192","Action":"ListAssets","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{"Items":[{"Id":"asset-20240514212750-a3f8k","Name":"demo-portrait-image","URL":"https://ark-asset.cn-beijing.volcengine.com/asset-20240514212750-a3f8k.jpg?X-Amz-Expires=43200","GroupId":"group-20240514212750-b5e9m","AssetType":"Image","Status":"Active","Moderation":{"Strategy":"Default"},"Error":{"Code":"","Message":""},"ProjectName":"default","CreateTime":"2024-05-14T21:27:50Z","UpdateTime":"2024-05-14T21:30:00Z","LastInferenceTime":"2024-05-14T22:15:30Z"}],"NextToken":"****bmNyeXB0ZWRfY3Vyc29yIjoiLi4****"}}
|
|
2534
|
+
responseBody?: string;
|
|
2535
|
+
static names(): { [key: string]: string } {
|
|
2536
|
+
return {
|
|
2537
|
+
reqMsgId: 'req_msg_id',
|
|
2538
|
+
resultCode: 'result_code',
|
|
2539
|
+
resultMsg: 'result_msg',
|
|
2540
|
+
responseBody: 'response_body',
|
|
2541
|
+
};
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
static types(): { [key: string]: any } {
|
|
2545
|
+
return {
|
|
2546
|
+
reqMsgId: 'string',
|
|
2547
|
+
resultCode: 'string',
|
|
2548
|
+
resultMsg: 'string',
|
|
2549
|
+
responseBody: 'string',
|
|
2550
|
+
};
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
constructor(map?: { [key: string]: any }) {
|
|
2554
|
+
super(map);
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
export class ResetArkassetRequest extends $tea.Model {
|
|
2559
|
+
// OAuth模式下的授权token
|
|
2560
|
+
authToken?: string;
|
|
2561
|
+
productInstanceId?: string;
|
|
2562
|
+
// {"Id":"asset-20240514212750-a3f8k","Name":"demo-portrait-image-renamed","ProjectName":"default"}
|
|
2563
|
+
requestBody: string;
|
|
2564
|
+
static names(): { [key: string]: string } {
|
|
2565
|
+
return {
|
|
2566
|
+
authToken: 'auth_token',
|
|
2567
|
+
productInstanceId: 'product_instance_id',
|
|
2568
|
+
requestBody: 'request_body',
|
|
2569
|
+
};
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
static types(): { [key: string]: any } {
|
|
2573
|
+
return {
|
|
2574
|
+
authToken: 'string',
|
|
2575
|
+
productInstanceId: 'string',
|
|
2576
|
+
requestBody: 'string',
|
|
2577
|
+
};
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
constructor(map?: { [key: string]: any }) {
|
|
2581
|
+
super(map);
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
export class ResetArkassetResponse extends $tea.Model {
|
|
2586
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2587
|
+
reqMsgId?: string;
|
|
2588
|
+
// 结果码,一般OK表示调用成功
|
|
2589
|
+
resultCode?: string;
|
|
2590
|
+
// 异常信息的文本描述
|
|
2591
|
+
resultMsg?: string;
|
|
2592
|
+
// {"ResponseMetadata":{"RequestId":"202405142130003C4D5E6F708192031A","Action":"UpdateAsset","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{"Id":"asset-20240514212750-a3f8k"}}
|
|
2593
|
+
responseBody?: string;
|
|
2594
|
+
static names(): { [key: string]: string } {
|
|
2595
|
+
return {
|
|
2596
|
+
reqMsgId: 'req_msg_id',
|
|
2597
|
+
resultCode: 'result_code',
|
|
2598
|
+
resultMsg: 'result_msg',
|
|
2599
|
+
responseBody: 'response_body',
|
|
2600
|
+
};
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
static types(): { [key: string]: any } {
|
|
2604
|
+
return {
|
|
2605
|
+
reqMsgId: 'string',
|
|
2606
|
+
resultCode: 'string',
|
|
2607
|
+
resultMsg: 'string',
|
|
2608
|
+
responseBody: 'string',
|
|
2609
|
+
};
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
constructor(map?: { [key: string]: any }) {
|
|
2613
|
+
super(map);
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
export class DeleteArkassetRequest extends $tea.Model {
|
|
2618
|
+
// OAuth模式下的授权token
|
|
2619
|
+
authToken?: string;
|
|
2620
|
+
productInstanceId?: string;
|
|
2621
|
+
// {"Id":"asset-20240514212750-a3f8k","ProjectName":"default"}
|
|
2622
|
+
requestBody: string;
|
|
2623
|
+
static names(): { [key: string]: string } {
|
|
2624
|
+
return {
|
|
2625
|
+
authToken: 'auth_token',
|
|
2626
|
+
productInstanceId: 'product_instance_id',
|
|
2627
|
+
requestBody: 'request_body',
|
|
2628
|
+
};
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
static types(): { [key: string]: any } {
|
|
2632
|
+
return {
|
|
2633
|
+
authToken: 'string',
|
|
2634
|
+
productInstanceId: 'string',
|
|
2635
|
+
requestBody: 'string',
|
|
2636
|
+
};
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
constructor(map?: { [key: string]: any }) {
|
|
2640
|
+
super(map);
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
export class DeleteArkassetResponse extends $tea.Model {
|
|
2645
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2646
|
+
reqMsgId?: string;
|
|
2647
|
+
// 结果码,一般OK表示调用成功
|
|
2648
|
+
resultCode?: string;
|
|
2649
|
+
// 异常信息的文本描述
|
|
2650
|
+
resultMsg?: string;
|
|
2651
|
+
// {"ResponseMetadata":{"RequestId":"20240514213000C3D4E5F6789ABCDEF0","Action":"DeleteAsset","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{}}
|
|
2652
|
+
responseBody?: string;
|
|
2653
|
+
static names(): { [key: string]: string } {
|
|
2654
|
+
return {
|
|
2655
|
+
reqMsgId: 'req_msg_id',
|
|
2656
|
+
resultCode: 'result_code',
|
|
2657
|
+
resultMsg: 'result_msg',
|
|
2658
|
+
responseBody: 'response_body',
|
|
2659
|
+
};
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
static types(): { [key: string]: any } {
|
|
2663
|
+
return {
|
|
2664
|
+
reqMsgId: 'string',
|
|
2665
|
+
resultCode: 'string',
|
|
2666
|
+
resultMsg: 'string',
|
|
2667
|
+
responseBody: 'string',
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
constructor(map?: { [key: string]: any }) {
|
|
2672
|
+
super(map);
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
export class PushArkassetgroupRequest extends $tea.Model {
|
|
2677
|
+
// OAuth模式下的授权token
|
|
2678
|
+
authToken?: string;
|
|
2679
|
+
productInstanceId?: string;
|
|
2680
|
+
// {"Name":"demo-portrait-group","Description":"虚拟人像素材组示例","GroupType":"AIGC","ProjectName":"default"}
|
|
2681
|
+
requestBody: string;
|
|
2682
|
+
static names(): { [key: string]: string } {
|
|
2683
|
+
return {
|
|
2684
|
+
authToken: 'auth_token',
|
|
2685
|
+
productInstanceId: 'product_instance_id',
|
|
2686
|
+
requestBody: 'request_body',
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
static types(): { [key: string]: any } {
|
|
2691
|
+
return {
|
|
2692
|
+
authToken: 'string',
|
|
2693
|
+
productInstanceId: 'string',
|
|
2694
|
+
requestBody: 'string',
|
|
2695
|
+
};
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
constructor(map?: { [key: string]: any }) {
|
|
2699
|
+
super(map);
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
export class PushArkassetgroupResponse extends $tea.Model {
|
|
2704
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2705
|
+
reqMsgId?: string;
|
|
2706
|
+
// 结果码,一般OK表示调用成功
|
|
2707
|
+
resultCode?: string;
|
|
2708
|
+
// 异常信息的文本描述
|
|
2709
|
+
resultMsg?: string;
|
|
2710
|
+
// {"ResponseMetadata":{"RequestId":"20240514212750B2C3D4E5F6789ABCDE","Action":"CreateAssetGroup","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{"Id":"group-20240514212750-b5e9m"}}
|
|
2711
|
+
responseBody?: string;
|
|
2712
|
+
static names(): { [key: string]: string } {
|
|
2713
|
+
return {
|
|
2714
|
+
reqMsgId: 'req_msg_id',
|
|
2715
|
+
resultCode: 'result_code',
|
|
2716
|
+
resultMsg: 'result_msg',
|
|
2717
|
+
responseBody: 'response_body',
|
|
2718
|
+
};
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
static types(): { [key: string]: any } {
|
|
2722
|
+
return {
|
|
2723
|
+
reqMsgId: 'string',
|
|
2724
|
+
resultCode: 'string',
|
|
2725
|
+
resultMsg: 'string',
|
|
2726
|
+
responseBody: 'string',
|
|
2727
|
+
};
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
constructor(map?: { [key: string]: any }) {
|
|
2731
|
+
super(map);
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
export class QueryArkassetgroupRequest extends $tea.Model {
|
|
2736
|
+
// OAuth模式下的授权token
|
|
2737
|
+
authToken?: string;
|
|
2738
|
+
productInstanceId?: string;
|
|
2739
|
+
// {"Id":"group-20240514212750-b5e9m","ProjectName":"default"}
|
|
2740
|
+
requestBody: string;
|
|
2741
|
+
static names(): { [key: string]: string } {
|
|
2742
|
+
return {
|
|
2743
|
+
authToken: 'auth_token',
|
|
2744
|
+
productInstanceId: 'product_instance_id',
|
|
2745
|
+
requestBody: 'request_body',
|
|
2746
|
+
};
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
static types(): { [key: string]: any } {
|
|
2750
|
+
return {
|
|
2751
|
+
authToken: 'string',
|
|
2752
|
+
productInstanceId: 'string',
|
|
2753
|
+
requestBody: 'string',
|
|
2754
|
+
};
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
constructor(map?: { [key: string]: any }) {
|
|
2758
|
+
super(map);
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
export class QueryArkassetgroupResponse extends $tea.Model {
|
|
2763
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2764
|
+
reqMsgId?: string;
|
|
2765
|
+
// 结果码,一般OK表示调用成功
|
|
2766
|
+
resultCode?: string;
|
|
2767
|
+
// 异常信息的文本描述
|
|
2768
|
+
resultMsg?: string;
|
|
2769
|
+
// {"ResponseMetadata":{"RequestId":"20240514213000F6789ABCDEF0123456","Action":"GetAssetGroup","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{"Id":"group-20240514212750-b5e9m","Name":"demo-portrait-group","Description":"虚拟人像素材组示例","GroupType":"AIGC","ProjectName":"default","CreateTime":"2024-05-14T21:27:50Z","UpdateTime":"2024-05-14T21:30:00Z"}}
|
|
2770
|
+
responseBody?: string;
|
|
2771
|
+
static names(): { [key: string]: string } {
|
|
2772
|
+
return {
|
|
2773
|
+
reqMsgId: 'req_msg_id',
|
|
2774
|
+
resultCode: 'result_code',
|
|
2775
|
+
resultMsg: 'result_msg',
|
|
2776
|
+
responseBody: 'response_body',
|
|
2777
|
+
};
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
static types(): { [key: string]: any } {
|
|
2781
|
+
return {
|
|
2782
|
+
reqMsgId: 'string',
|
|
2783
|
+
resultCode: 'string',
|
|
2784
|
+
resultMsg: 'string',
|
|
2785
|
+
responseBody: 'string',
|
|
2786
|
+
};
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
constructor(map?: { [key: string]: any }) {
|
|
2790
|
+
super(map);
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
export class QueryArkassetgroupListRequest extends $tea.Model {
|
|
2795
|
+
// OAuth模式下的授权token
|
|
2796
|
+
authToken?: string;
|
|
2797
|
+
productInstanceId?: string;
|
|
2798
|
+
// {"Filter":{"GroupIds":["group-20240514212750-b5e9m","group-20240514212810-c7n2p"],"GroupType":"AIGC"},"MaxResults":1,"SortBy":"CreateTime","SortOrder":"Desc","ProjectName":"default"}
|
|
2799
|
+
requestBody: string;
|
|
2800
|
+
static names(): { [key: string]: string } {
|
|
2801
|
+
return {
|
|
2802
|
+
authToken: 'auth_token',
|
|
2803
|
+
productInstanceId: 'product_instance_id',
|
|
2804
|
+
requestBody: 'request_body',
|
|
2805
|
+
};
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
static types(): { [key: string]: any } {
|
|
2809
|
+
return {
|
|
2810
|
+
authToken: 'string',
|
|
2811
|
+
productInstanceId: 'string',
|
|
2812
|
+
requestBody: 'string',
|
|
2813
|
+
};
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
constructor(map?: { [key: string]: any }) {
|
|
2817
|
+
super(map);
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
export class QueryArkassetgroupListResponse extends $tea.Model {
|
|
2822
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2823
|
+
reqMsgId?: string;
|
|
2824
|
+
// 结果码,一般OK表示调用成功
|
|
2825
|
+
resultCode?: string;
|
|
2826
|
+
// 异常信息的文本描述
|
|
2827
|
+
resultMsg?: string;
|
|
2828
|
+
// {"ResponseMetadata":{"RequestId":"202405142130002B3C4D5E6F70819203","Action":"ListAssetGroups","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{"Items":[{"Id":"group-20240514212750-b5e9m","Name":"demo-portrait-group","Description":"虚拟人像素材组示例","GroupType":"AIGC","ProjectName":"default","CreateTime":"2024-05-14T21:27:50Z","UpdateTime":"2024-05-14T21:30:00Z"}],"NextToken":"****bmNyeXB0ZWRfY3Vyc29yIjoiLi4****"}}
|
|
2829
|
+
responseBody?: string;
|
|
2830
|
+
static names(): { [key: string]: string } {
|
|
2831
|
+
return {
|
|
2832
|
+
reqMsgId: 'req_msg_id',
|
|
2833
|
+
resultCode: 'result_code',
|
|
2834
|
+
resultMsg: 'result_msg',
|
|
2835
|
+
responseBody: 'response_body',
|
|
2836
|
+
};
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
static types(): { [key: string]: any } {
|
|
2840
|
+
return {
|
|
2841
|
+
reqMsgId: 'string',
|
|
2842
|
+
resultCode: 'string',
|
|
2843
|
+
resultMsg: 'string',
|
|
2844
|
+
responseBody: 'string',
|
|
2845
|
+
};
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
constructor(map?: { [key: string]: any }) {
|
|
2849
|
+
super(map);
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
export class ResetArkassetgroupRequest extends $tea.Model {
|
|
2854
|
+
// OAuth模式下的授权token
|
|
2855
|
+
authToken?: string;
|
|
2856
|
+
productInstanceId?: string;
|
|
2857
|
+
// {"Id":"group-20240514212750-b5e9m","Name":"demo-portrait-group-renamed","Description":"更新后的虚拟人像素材组描述","ProjectName":"default"}
|
|
2858
|
+
requestBody: string;
|
|
2859
|
+
static names(): { [key: string]: string } {
|
|
2860
|
+
return {
|
|
2861
|
+
authToken: 'auth_token',
|
|
2862
|
+
productInstanceId: 'product_instance_id',
|
|
2863
|
+
requestBody: 'request_body',
|
|
2864
|
+
};
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
static types(): { [key: string]: any } {
|
|
2868
|
+
return {
|
|
2869
|
+
authToken: 'string',
|
|
2870
|
+
productInstanceId: 'string',
|
|
2871
|
+
requestBody: 'string',
|
|
2872
|
+
};
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
constructor(map?: { [key: string]: any }) {
|
|
2876
|
+
super(map);
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
export class ResetArkassetgroupResponse extends $tea.Model {
|
|
2881
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2882
|
+
reqMsgId?: string;
|
|
2883
|
+
// 结果码,一般OK表示调用成功
|
|
2884
|
+
resultCode?: string;
|
|
2885
|
+
// 异常信息的文本描述
|
|
2886
|
+
resultMsg?: string;
|
|
2887
|
+
// {"ResponseMetadata":{"RequestId":"202405142130004D5E6F708192031A2B","Action":"UpdateAssetGroup","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{"Id":"group-20240514212750-b5e9m"}}
|
|
2888
|
+
responseBody?: string;
|
|
2889
|
+
static names(): { [key: string]: string } {
|
|
2890
|
+
return {
|
|
2891
|
+
reqMsgId: 'req_msg_id',
|
|
2892
|
+
resultCode: 'result_code',
|
|
2893
|
+
resultMsg: 'result_msg',
|
|
2894
|
+
responseBody: 'response_body',
|
|
2895
|
+
};
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
static types(): { [key: string]: any } {
|
|
2899
|
+
return {
|
|
2900
|
+
reqMsgId: 'string',
|
|
2901
|
+
resultCode: 'string',
|
|
2902
|
+
resultMsg: 'string',
|
|
2903
|
+
responseBody: 'string',
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
constructor(map?: { [key: string]: any }) {
|
|
2908
|
+
super(map);
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
export class DeleteArkassetgroupRequest extends $tea.Model {
|
|
2913
|
+
// OAuth模式下的授权token
|
|
2914
|
+
authToken?: string;
|
|
2915
|
+
productInstanceId?: string;
|
|
2916
|
+
// {"Id":"group-20240514212750-b5e9m","ProjectName":"default"}
|
|
2917
|
+
requestBody: string;
|
|
2918
|
+
static names(): { [key: string]: string } {
|
|
2919
|
+
return {
|
|
2920
|
+
authToken: 'auth_token',
|
|
2921
|
+
productInstanceId: 'product_instance_id',
|
|
2922
|
+
requestBody: 'request_body',
|
|
2923
|
+
};
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
static types(): { [key: string]: any } {
|
|
2927
|
+
return {
|
|
2928
|
+
authToken: 'string',
|
|
2929
|
+
productInstanceId: 'string',
|
|
2930
|
+
requestBody: 'string',
|
|
2931
|
+
};
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
constructor(map?: { [key: string]: any }) {
|
|
2935
|
+
super(map);
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
export class DeleteArkassetgroupResponse extends $tea.Model {
|
|
2940
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
2941
|
+
reqMsgId?: string;
|
|
2942
|
+
// 结果码,一般OK表示调用成功
|
|
2943
|
+
resultCode?: string;
|
|
2944
|
+
// 异常信息的文本描述
|
|
2945
|
+
resultMsg?: string;
|
|
2946
|
+
// {"ResponseMetadata":{"RequestId":"20240514213000D4E5F6789ABCDEF012","Action":"DeleteAssetGroup","Version":"2024-01-01","Service":"ark","Region":"cn-beijing"},"Result":{}}
|
|
2947
|
+
responseBody?: string;
|
|
2948
|
+
static names(): { [key: string]: string } {
|
|
2949
|
+
return {
|
|
2950
|
+
reqMsgId: 'req_msg_id',
|
|
2951
|
+
resultCode: 'result_code',
|
|
2952
|
+
resultMsg: 'result_msg',
|
|
2953
|
+
responseBody: 'response_body',
|
|
2954
|
+
};
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
static types(): { [key: string]: any } {
|
|
2958
|
+
return {
|
|
2959
|
+
reqMsgId: 'string',
|
|
2960
|
+
resultCode: 'string',
|
|
2961
|
+
resultMsg: 'string',
|
|
2962
|
+
responseBody: 'string',
|
|
2963
|
+
};
|
|
2964
|
+
}
|
|
2965
|
+
|
|
2966
|
+
constructor(map?: { [key: string]: any }) {
|
|
2967
|
+
super(map);
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2314
2971
|
|
|
2315
2972
|
export default class Client {
|
|
2316
2973
|
_endpoint: string;
|
|
@@ -2428,7 +3085,7 @@ export default class Client {
|
|
|
2428
3085
|
req_msg_id: AntchainUtil.getNonce(),
|
|
2429
3086
|
access_key: this._accessKeyId,
|
|
2430
3087
|
base_sdk_version: "TeaSDK-2.0",
|
|
2431
|
-
sdk_version: "1.
|
|
3088
|
+
sdk_version: "1.2.2",
|
|
2432
3089
|
_prod_code: "CREATIVE",
|
|
2433
3090
|
_prod_channel: "default",
|
|
2434
3091
|
};
|
|
@@ -2770,4 +3427,235 @@ export default class Client {
|
|
|
2770
3427
|
return $tea.cast<ExecMaasPriceResponse>(await this.doRequest("1.0", "antdigital.creative.maas.price.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasPriceResponse({}));
|
|
2771
3428
|
}
|
|
2772
3429
|
|
|
3430
|
+
/**
|
|
3431
|
+
* @remarks
|
|
3432
|
+
* Description: 文本流式调用
|
|
3433
|
+
* Summary: 文本流式调用
|
|
3434
|
+
*/
|
|
3435
|
+
async execMaasChatstream(request: ExecMaasChatstreamRequest): Promise<ExecMaasChatstreamResponse> {
|
|
3436
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3437
|
+
let headers : {[key: string ]: string} = { };
|
|
3438
|
+
return await this.execMaasChatstreamEx(request, headers, runtime);
|
|
3439
|
+
}
|
|
3440
|
+
|
|
3441
|
+
/**
|
|
3442
|
+
* @remarks
|
|
3443
|
+
* Description: 文本流式调用
|
|
3444
|
+
* Summary: 文本流式调用
|
|
3445
|
+
*/
|
|
3446
|
+
async execMaasChatstreamEx(request: ExecMaasChatstreamRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ExecMaasChatstreamResponse> {
|
|
3447
|
+
Util.validateModel(request);
|
|
3448
|
+
return $tea.cast<ExecMaasChatstreamResponse>(await this.doRequest("1.0", "antdigital.creative.maas.chatstream.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasChatstreamResponse({}));
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
/**
|
|
3452
|
+
* @remarks
|
|
3453
|
+
* Description: 创建素材资产
|
|
3454
|
+
* Summary: 创建素材资产
|
|
3455
|
+
*/
|
|
3456
|
+
async pushArkasset(request: PushArkassetRequest): Promise<PushArkassetResponse> {
|
|
3457
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3458
|
+
let headers : {[key: string ]: string} = { };
|
|
3459
|
+
return await this.pushArkassetEx(request, headers, runtime);
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
/**
|
|
3463
|
+
* @remarks
|
|
3464
|
+
* Description: 创建素材资产
|
|
3465
|
+
* Summary: 创建素材资产
|
|
3466
|
+
*/
|
|
3467
|
+
async pushArkassetEx(request: PushArkassetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushArkassetResponse> {
|
|
3468
|
+
Util.validateModel(request);
|
|
3469
|
+
return $tea.cast<PushArkassetResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushArkassetResponse({}));
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
/**
|
|
3473
|
+
* @remarks
|
|
3474
|
+
* Description: 查询素材资产信息
|
|
3475
|
+
* Summary: 查询素材资产信息
|
|
3476
|
+
*/
|
|
3477
|
+
async queryArkasset(request: QueryArkassetRequest): Promise<QueryArkassetResponse> {
|
|
3478
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3479
|
+
let headers : {[key: string ]: string} = { };
|
|
3480
|
+
return await this.queryArkassetEx(request, headers, runtime);
|
|
3481
|
+
}
|
|
3482
|
+
|
|
3483
|
+
/**
|
|
3484
|
+
* @remarks
|
|
3485
|
+
* Description: 查询素材资产信息
|
|
3486
|
+
* Summary: 查询素材资产信息
|
|
3487
|
+
*/
|
|
3488
|
+
async queryArkassetEx(request: QueryArkassetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetResponse> {
|
|
3489
|
+
Util.validateModel(request);
|
|
3490
|
+
return $tea.cast<QueryArkassetResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryArkassetResponse({}));
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3493
|
+
/**
|
|
3494
|
+
* @remarks
|
|
3495
|
+
* Description: 查询素材资产列表
|
|
3496
|
+
* Summary: 查询素材资产列表
|
|
3497
|
+
*/
|
|
3498
|
+
async queryArkassetList(request: QueryArkassetListRequest): Promise<QueryArkassetListResponse> {
|
|
3499
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3500
|
+
let headers : {[key: string ]: string} = { };
|
|
3501
|
+
return await this.queryArkassetListEx(request, headers, runtime);
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* @remarks
|
|
3506
|
+
* Description: 查询素材资产列表
|
|
3507
|
+
* Summary: 查询素材资产列表
|
|
3508
|
+
*/
|
|
3509
|
+
async queryArkassetListEx(request: QueryArkassetListRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetListResponse> {
|
|
3510
|
+
Util.validateModel(request);
|
|
3511
|
+
return $tea.cast<QueryArkassetListResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.list.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryArkassetListResponse({}));
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
/**
|
|
3515
|
+
* @remarks
|
|
3516
|
+
* Description: 更新素材资产信息
|
|
3517
|
+
* Summary: 更新素材资产信息
|
|
3518
|
+
*/
|
|
3519
|
+
async resetArkasset(request: ResetArkassetRequest): Promise<ResetArkassetResponse> {
|
|
3520
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3521
|
+
let headers : {[key: string ]: string} = { };
|
|
3522
|
+
return await this.resetArkassetEx(request, headers, runtime);
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
/**
|
|
3526
|
+
* @remarks
|
|
3527
|
+
* Description: 更新素材资产信息
|
|
3528
|
+
* Summary: 更新素材资产信息
|
|
3529
|
+
*/
|
|
3530
|
+
async resetArkassetEx(request: ResetArkassetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResetArkassetResponse> {
|
|
3531
|
+
Util.validateModel(request);
|
|
3532
|
+
return $tea.cast<ResetArkassetResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.reset", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ResetArkassetResponse({}));
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* @remarks
|
|
3537
|
+
* Description: 删除素材资产
|
|
3538
|
+
* Summary: 删除素材资产
|
|
3539
|
+
*/
|
|
3540
|
+
async deleteArkasset(request: DeleteArkassetRequest): Promise<DeleteArkassetResponse> {
|
|
3541
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3542
|
+
let headers : {[key: string ]: string} = { };
|
|
3543
|
+
return await this.deleteArkassetEx(request, headers, runtime);
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
/**
|
|
3547
|
+
* @remarks
|
|
3548
|
+
* Description: 删除素材资产
|
|
3549
|
+
* Summary: 删除素材资产
|
|
3550
|
+
*/
|
|
3551
|
+
async deleteArkassetEx(request: DeleteArkassetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteArkassetResponse> {
|
|
3552
|
+
Util.validateModel(request);
|
|
3553
|
+
return $tea.cast<DeleteArkassetResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.delete", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new DeleteArkassetResponse({}));
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
/**
|
|
3557
|
+
* @remarks
|
|
3558
|
+
* Description: 创建素材资产组合
|
|
3559
|
+
* Summary: 创建素材资产组合
|
|
3560
|
+
*/
|
|
3561
|
+
async pushArkassetgroup(request: PushArkassetgroupRequest): Promise<PushArkassetgroupResponse> {
|
|
3562
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3563
|
+
let headers : {[key: string ]: string} = { };
|
|
3564
|
+
return await this.pushArkassetgroupEx(request, headers, runtime);
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
/**
|
|
3568
|
+
* @remarks
|
|
3569
|
+
* Description: 创建素材资产组合
|
|
3570
|
+
* Summary: 创建素材资产组合
|
|
3571
|
+
*/
|
|
3572
|
+
async pushArkassetgroupEx(request: PushArkassetgroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushArkassetgroupResponse> {
|
|
3573
|
+
Util.validateModel(request);
|
|
3574
|
+
return $tea.cast<PushArkassetgroupResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushArkassetgroupResponse({}));
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
/**
|
|
3578
|
+
* @remarks
|
|
3579
|
+
* Description: 查询素材资产组合信息
|
|
3580
|
+
* Summary: 查询素材资产组合信息
|
|
3581
|
+
*/
|
|
3582
|
+
async queryArkassetgroup(request: QueryArkassetgroupRequest): Promise<QueryArkassetgroupResponse> {
|
|
3583
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3584
|
+
let headers : {[key: string ]: string} = { };
|
|
3585
|
+
return await this.queryArkassetgroupEx(request, headers, runtime);
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
* @remarks
|
|
3590
|
+
* Description: 查询素材资产组合信息
|
|
3591
|
+
* Summary: 查询素材资产组合信息
|
|
3592
|
+
*/
|
|
3593
|
+
async queryArkassetgroupEx(request: QueryArkassetgroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetgroupResponse> {
|
|
3594
|
+
Util.validateModel(request);
|
|
3595
|
+
return $tea.cast<QueryArkassetgroupResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryArkassetgroupResponse({}));
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
/**
|
|
3599
|
+
* @remarks
|
|
3600
|
+
* Description: 查询素材资产组合列表
|
|
3601
|
+
* Summary: 查询素材资产组合列表
|
|
3602
|
+
*/
|
|
3603
|
+
async queryArkassetgroupList(request: QueryArkassetgroupListRequest): Promise<QueryArkassetgroupListResponse> {
|
|
3604
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3605
|
+
let headers : {[key: string ]: string} = { };
|
|
3606
|
+
return await this.queryArkassetgroupListEx(request, headers, runtime);
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
/**
|
|
3610
|
+
* @remarks
|
|
3611
|
+
* Description: 查询素材资产组合列表
|
|
3612
|
+
* Summary: 查询素材资产组合列表
|
|
3613
|
+
*/
|
|
3614
|
+
async queryArkassetgroupListEx(request: QueryArkassetgroupListRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetgroupListResponse> {
|
|
3615
|
+
Util.validateModel(request);
|
|
3616
|
+
return $tea.cast<QueryArkassetgroupListResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.list.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryArkassetgroupListResponse({}));
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3619
|
+
/**
|
|
3620
|
+
* @remarks
|
|
3621
|
+
* Description: 更新素材资产组合信息
|
|
3622
|
+
* Summary: 更新素材资产组合信息
|
|
3623
|
+
*/
|
|
3624
|
+
async resetArkassetgroup(request: ResetArkassetgroupRequest): Promise<ResetArkassetgroupResponse> {
|
|
3625
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3626
|
+
let headers : {[key: string ]: string} = { };
|
|
3627
|
+
return await this.resetArkassetgroupEx(request, headers, runtime);
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* @remarks
|
|
3632
|
+
* Description: 更新素材资产组合信息
|
|
3633
|
+
* Summary: 更新素材资产组合信息
|
|
3634
|
+
*/
|
|
3635
|
+
async resetArkassetgroupEx(request: ResetArkassetgroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResetArkassetgroupResponse> {
|
|
3636
|
+
Util.validateModel(request);
|
|
3637
|
+
return $tea.cast<ResetArkassetgroupResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.reset", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ResetArkassetgroupResponse({}));
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
/**
|
|
3641
|
+
* @remarks
|
|
3642
|
+
* Description: 删除素材资产组
|
|
3643
|
+
* Summary: 删除素材资产组
|
|
3644
|
+
*/
|
|
3645
|
+
async deleteArkassetgroup(request: DeleteArkassetgroupRequest): Promise<DeleteArkassetgroupResponse> {
|
|
3646
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3647
|
+
let headers : {[key: string ]: string} = { };
|
|
3648
|
+
return await this.deleteArkassetgroupEx(request, headers, runtime);
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
/**
|
|
3652
|
+
* @remarks
|
|
3653
|
+
* Description: 删除素材资产组
|
|
3654
|
+
* Summary: 删除素材资产组
|
|
3655
|
+
*/
|
|
3656
|
+
async deleteArkassetgroupEx(request: DeleteArkassetgroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteArkassetgroupResponse> {
|
|
3657
|
+
Util.validateModel(request);
|
|
3658
|
+
return $tea.cast<DeleteArkassetgroupResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.delete", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new DeleteArkassetgroupResponse({}));
|
|
3659
|
+
}
|
|
3660
|
+
|
|
2773
3661
|
}
|