@antchain/antdigital-creative 1.2.1 → 1.2.3
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 +516 -0
- package/dist/client.js +734 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +961 -1
package/src/client.ts
CHANGED
|
@@ -2378,6 +2378,714 @@ export class ExecMaasChatstreamResponse extends $tea.Model {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
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
|
+
|
|
2971
|
+
export class PushArkassetvisualRequest extends $tea.Model {
|
|
2972
|
+
// OAuth模式下的授权token
|
|
2973
|
+
authToken?: string;
|
|
2974
|
+
productInstanceId?: string;
|
|
2975
|
+
// 请求参数
|
|
2976
|
+
requestBody: string;
|
|
2977
|
+
static names(): { [key: string]: string } {
|
|
2978
|
+
return {
|
|
2979
|
+
authToken: 'auth_token',
|
|
2980
|
+
productInstanceId: 'product_instance_id',
|
|
2981
|
+
requestBody: 'request_body',
|
|
2982
|
+
};
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
static types(): { [key: string]: any } {
|
|
2986
|
+
return {
|
|
2987
|
+
authToken: 'string',
|
|
2988
|
+
productInstanceId: 'string',
|
|
2989
|
+
requestBody: 'string',
|
|
2990
|
+
};
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
constructor(map?: { [key: string]: any }) {
|
|
2994
|
+
super(map);
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
export class PushArkassetvisualResponse extends $tea.Model {
|
|
2999
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
3000
|
+
reqMsgId?: string;
|
|
3001
|
+
// 结果码,一般OK表示调用成功
|
|
3002
|
+
resultCode?: string;
|
|
3003
|
+
// 异常信息的文本描述
|
|
3004
|
+
resultMsg?: string;
|
|
3005
|
+
// 响应参数
|
|
3006
|
+
responseBody?: string;
|
|
3007
|
+
static names(): { [key: string]: string } {
|
|
3008
|
+
return {
|
|
3009
|
+
reqMsgId: 'req_msg_id',
|
|
3010
|
+
resultCode: 'result_code',
|
|
3011
|
+
resultMsg: 'result_msg',
|
|
3012
|
+
responseBody: 'response_body',
|
|
3013
|
+
};
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
static types(): { [key: string]: any } {
|
|
3017
|
+
return {
|
|
3018
|
+
reqMsgId: 'string',
|
|
3019
|
+
resultCode: 'string',
|
|
3020
|
+
resultMsg: 'string',
|
|
3021
|
+
responseBody: 'string',
|
|
3022
|
+
};
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
constructor(map?: { [key: string]: any }) {
|
|
3026
|
+
super(map);
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
export class QueryArkassetvisualRequest extends $tea.Model {
|
|
3031
|
+
// OAuth模式下的授权token
|
|
3032
|
+
authToken?: string;
|
|
3033
|
+
productInstanceId?: string;
|
|
3034
|
+
// 请求参数
|
|
3035
|
+
requestBody: string;
|
|
3036
|
+
static names(): { [key: string]: string } {
|
|
3037
|
+
return {
|
|
3038
|
+
authToken: 'auth_token',
|
|
3039
|
+
productInstanceId: 'product_instance_id',
|
|
3040
|
+
requestBody: 'request_body',
|
|
3041
|
+
};
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
static types(): { [key: string]: any } {
|
|
3045
|
+
return {
|
|
3046
|
+
authToken: 'string',
|
|
3047
|
+
productInstanceId: 'string',
|
|
3048
|
+
requestBody: 'string',
|
|
3049
|
+
};
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
constructor(map?: { [key: string]: any }) {
|
|
3053
|
+
super(map);
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
export class QueryArkassetvisualResponse extends $tea.Model {
|
|
3058
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
3059
|
+
reqMsgId?: string;
|
|
3060
|
+
// 结果码,一般OK表示调用成功
|
|
3061
|
+
resultCode?: string;
|
|
3062
|
+
// 异常信息的文本描述
|
|
3063
|
+
resultMsg?: string;
|
|
3064
|
+
// 响应参数
|
|
3065
|
+
responseBody?: string;
|
|
3066
|
+
static names(): { [key: string]: string } {
|
|
3067
|
+
return {
|
|
3068
|
+
reqMsgId: 'req_msg_id',
|
|
3069
|
+
resultCode: 'result_code',
|
|
3070
|
+
resultMsg: 'result_msg',
|
|
3071
|
+
responseBody: 'response_body',
|
|
3072
|
+
};
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
static types(): { [key: string]: any } {
|
|
3076
|
+
return {
|
|
3077
|
+
reqMsgId: 'string',
|
|
3078
|
+
resultCode: 'string',
|
|
3079
|
+
resultMsg: 'string',
|
|
3080
|
+
responseBody: 'string',
|
|
3081
|
+
};
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
constructor(map?: { [key: string]: any }) {
|
|
3085
|
+
super(map);
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
|
|
2381
3089
|
|
|
2382
3090
|
export default class Client {
|
|
2383
3091
|
_endpoint: string;
|
|
@@ -2495,7 +3203,7 @@ export default class Client {
|
|
|
2495
3203
|
req_msg_id: AntchainUtil.getNonce(),
|
|
2496
3204
|
access_key: this._accessKeyId,
|
|
2497
3205
|
base_sdk_version: "TeaSDK-2.0",
|
|
2498
|
-
sdk_version: "1.2.
|
|
3206
|
+
sdk_version: "1.2.3",
|
|
2499
3207
|
_prod_code: "CREATIVE",
|
|
2500
3208
|
_prod_channel: "default",
|
|
2501
3209
|
};
|
|
@@ -2858,4 +3566,256 @@ export default class Client {
|
|
|
2858
3566
|
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({}));
|
|
2859
3567
|
}
|
|
2860
3568
|
|
|
3569
|
+
/**
|
|
3570
|
+
* @remarks
|
|
3571
|
+
* Description: 创建素材资产
|
|
3572
|
+
* Summary: 创建素材资产
|
|
3573
|
+
*/
|
|
3574
|
+
async pushArkasset(request: PushArkassetRequest): Promise<PushArkassetResponse> {
|
|
3575
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3576
|
+
let headers : {[key: string ]: string} = { };
|
|
3577
|
+
return await this.pushArkassetEx(request, headers, runtime);
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3580
|
+
/**
|
|
3581
|
+
* @remarks
|
|
3582
|
+
* Description: 创建素材资产
|
|
3583
|
+
* Summary: 创建素材资产
|
|
3584
|
+
*/
|
|
3585
|
+
async pushArkassetEx(request: PushArkassetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushArkassetResponse> {
|
|
3586
|
+
Util.validateModel(request);
|
|
3587
|
+
return $tea.cast<PushArkassetResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushArkassetResponse({}));
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
/**
|
|
3591
|
+
* @remarks
|
|
3592
|
+
* Description: 查询素材资产信息
|
|
3593
|
+
* Summary: 查询素材资产信息
|
|
3594
|
+
*/
|
|
3595
|
+
async queryArkasset(request: QueryArkassetRequest): Promise<QueryArkassetResponse> {
|
|
3596
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3597
|
+
let headers : {[key: string ]: string} = { };
|
|
3598
|
+
return await this.queryArkassetEx(request, headers, runtime);
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3601
|
+
/**
|
|
3602
|
+
* @remarks
|
|
3603
|
+
* Description: 查询素材资产信息
|
|
3604
|
+
* Summary: 查询素材资产信息
|
|
3605
|
+
*/
|
|
3606
|
+
async queryArkassetEx(request: QueryArkassetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetResponse> {
|
|
3607
|
+
Util.validateModel(request);
|
|
3608
|
+
return $tea.cast<QueryArkassetResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryArkassetResponse({}));
|
|
3609
|
+
}
|
|
3610
|
+
|
|
3611
|
+
/**
|
|
3612
|
+
* @remarks
|
|
3613
|
+
* Description: 查询素材资产列表
|
|
3614
|
+
* Summary: 查询素材资产列表
|
|
3615
|
+
*/
|
|
3616
|
+
async queryArkassetList(request: QueryArkassetListRequest): Promise<QueryArkassetListResponse> {
|
|
3617
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3618
|
+
let headers : {[key: string ]: string} = { };
|
|
3619
|
+
return await this.queryArkassetListEx(request, headers, runtime);
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
/**
|
|
3623
|
+
* @remarks
|
|
3624
|
+
* Description: 查询素材资产列表
|
|
3625
|
+
* Summary: 查询素材资产列表
|
|
3626
|
+
*/
|
|
3627
|
+
async queryArkassetListEx(request: QueryArkassetListRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetListResponse> {
|
|
3628
|
+
Util.validateModel(request);
|
|
3629
|
+
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({}));
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
/**
|
|
3633
|
+
* @remarks
|
|
3634
|
+
* Description: 更新素材资产信息
|
|
3635
|
+
* Summary: 更新素材资产信息
|
|
3636
|
+
*/
|
|
3637
|
+
async resetArkasset(request: ResetArkassetRequest): Promise<ResetArkassetResponse> {
|
|
3638
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3639
|
+
let headers : {[key: string ]: string} = { };
|
|
3640
|
+
return await this.resetArkassetEx(request, headers, runtime);
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* @remarks
|
|
3645
|
+
* Description: 更新素材资产信息
|
|
3646
|
+
* Summary: 更新素材资产信息
|
|
3647
|
+
*/
|
|
3648
|
+
async resetArkassetEx(request: ResetArkassetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResetArkassetResponse> {
|
|
3649
|
+
Util.validateModel(request);
|
|
3650
|
+
return $tea.cast<ResetArkassetResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.reset", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ResetArkassetResponse({}));
|
|
3651
|
+
}
|
|
3652
|
+
|
|
3653
|
+
/**
|
|
3654
|
+
* @remarks
|
|
3655
|
+
* Description: 删除素材资产
|
|
3656
|
+
* Summary: 删除素材资产
|
|
3657
|
+
*/
|
|
3658
|
+
async deleteArkasset(request: DeleteArkassetRequest): Promise<DeleteArkassetResponse> {
|
|
3659
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3660
|
+
let headers : {[key: string ]: string} = { };
|
|
3661
|
+
return await this.deleteArkassetEx(request, headers, runtime);
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
/**
|
|
3665
|
+
* @remarks
|
|
3666
|
+
* Description: 删除素材资产
|
|
3667
|
+
* Summary: 删除素材资产
|
|
3668
|
+
*/
|
|
3669
|
+
async deleteArkassetEx(request: DeleteArkassetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteArkassetResponse> {
|
|
3670
|
+
Util.validateModel(request);
|
|
3671
|
+
return $tea.cast<DeleteArkassetResponse>(await this.doRequest("1.0", "antdigital.creative.arkasset.delete", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new DeleteArkassetResponse({}));
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
/**
|
|
3675
|
+
* @remarks
|
|
3676
|
+
* Description: 创建素材资产组合
|
|
3677
|
+
* Summary: 创建素材资产组合
|
|
3678
|
+
*/
|
|
3679
|
+
async pushArkassetgroup(request: PushArkassetgroupRequest): Promise<PushArkassetgroupResponse> {
|
|
3680
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3681
|
+
let headers : {[key: string ]: string} = { };
|
|
3682
|
+
return await this.pushArkassetgroupEx(request, headers, runtime);
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3685
|
+
/**
|
|
3686
|
+
* @remarks
|
|
3687
|
+
* Description: 创建素材资产组合
|
|
3688
|
+
* Summary: 创建素材资产组合
|
|
3689
|
+
*/
|
|
3690
|
+
async pushArkassetgroupEx(request: PushArkassetgroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushArkassetgroupResponse> {
|
|
3691
|
+
Util.validateModel(request);
|
|
3692
|
+
return $tea.cast<PushArkassetgroupResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushArkassetgroupResponse({}));
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
/**
|
|
3696
|
+
* @remarks
|
|
3697
|
+
* Description: 查询素材资产组合信息
|
|
3698
|
+
* Summary: 查询素材资产组合信息
|
|
3699
|
+
*/
|
|
3700
|
+
async queryArkassetgroup(request: QueryArkassetgroupRequest): Promise<QueryArkassetgroupResponse> {
|
|
3701
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3702
|
+
let headers : {[key: string ]: string} = { };
|
|
3703
|
+
return await this.queryArkassetgroupEx(request, headers, runtime);
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* @remarks
|
|
3708
|
+
* Description: 查询素材资产组合信息
|
|
3709
|
+
* Summary: 查询素材资产组合信息
|
|
3710
|
+
*/
|
|
3711
|
+
async queryArkassetgroupEx(request: QueryArkassetgroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetgroupResponse> {
|
|
3712
|
+
Util.validateModel(request);
|
|
3713
|
+
return $tea.cast<QueryArkassetgroupResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryArkassetgroupResponse({}));
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* @remarks
|
|
3718
|
+
* Description: 查询素材资产组合列表
|
|
3719
|
+
* Summary: 查询素材资产组合列表
|
|
3720
|
+
*/
|
|
3721
|
+
async queryArkassetgroupList(request: QueryArkassetgroupListRequest): Promise<QueryArkassetgroupListResponse> {
|
|
3722
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3723
|
+
let headers : {[key: string ]: string} = { };
|
|
3724
|
+
return await this.queryArkassetgroupListEx(request, headers, runtime);
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
/**
|
|
3728
|
+
* @remarks
|
|
3729
|
+
* Description: 查询素材资产组合列表
|
|
3730
|
+
* Summary: 查询素材资产组合列表
|
|
3731
|
+
*/
|
|
3732
|
+
async queryArkassetgroupListEx(request: QueryArkassetgroupListRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetgroupListResponse> {
|
|
3733
|
+
Util.validateModel(request);
|
|
3734
|
+
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({}));
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
/**
|
|
3738
|
+
* @remarks
|
|
3739
|
+
* Description: 更新素材资产组合信息
|
|
3740
|
+
* Summary: 更新素材资产组合信息
|
|
3741
|
+
*/
|
|
3742
|
+
async resetArkassetgroup(request: ResetArkassetgroupRequest): Promise<ResetArkassetgroupResponse> {
|
|
3743
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3744
|
+
let headers : {[key: string ]: string} = { };
|
|
3745
|
+
return await this.resetArkassetgroupEx(request, headers, runtime);
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
/**
|
|
3749
|
+
* @remarks
|
|
3750
|
+
* Description: 更新素材资产组合信息
|
|
3751
|
+
* Summary: 更新素材资产组合信息
|
|
3752
|
+
*/
|
|
3753
|
+
async resetArkassetgroupEx(request: ResetArkassetgroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResetArkassetgroupResponse> {
|
|
3754
|
+
Util.validateModel(request);
|
|
3755
|
+
return $tea.cast<ResetArkassetgroupResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.reset", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ResetArkassetgroupResponse({}));
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
/**
|
|
3759
|
+
* @remarks
|
|
3760
|
+
* Description: 删除素材资产组
|
|
3761
|
+
* Summary: 删除素材资产组
|
|
3762
|
+
*/
|
|
3763
|
+
async deleteArkassetgroup(request: DeleteArkassetgroupRequest): Promise<DeleteArkassetgroupResponse> {
|
|
3764
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3765
|
+
let headers : {[key: string ]: string} = { };
|
|
3766
|
+
return await this.deleteArkassetgroupEx(request, headers, runtime);
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
/**
|
|
3770
|
+
* @remarks
|
|
3771
|
+
* Description: 删除素材资产组
|
|
3772
|
+
* Summary: 删除素材资产组
|
|
3773
|
+
*/
|
|
3774
|
+
async deleteArkassetgroupEx(request: DeleteArkassetgroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteArkassetgroupResponse> {
|
|
3775
|
+
Util.validateModel(request);
|
|
3776
|
+
return $tea.cast<DeleteArkassetgroupResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetgroup.delete", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new DeleteArkassetgroupResponse({}));
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3779
|
+
/**
|
|
3780
|
+
* @remarks
|
|
3781
|
+
* Description: 创建真人人像素材组
|
|
3782
|
+
* Summary: 创建真人人像素材组
|
|
3783
|
+
*/
|
|
3784
|
+
async pushArkassetvisual(request: PushArkassetvisualRequest): Promise<PushArkassetvisualResponse> {
|
|
3785
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3786
|
+
let headers : {[key: string ]: string} = { };
|
|
3787
|
+
return await this.pushArkassetvisualEx(request, headers, runtime);
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3790
|
+
/**
|
|
3791
|
+
* @remarks
|
|
3792
|
+
* Description: 创建真人人像素材组
|
|
3793
|
+
* Summary: 创建真人人像素材组
|
|
3794
|
+
*/
|
|
3795
|
+
async pushArkassetvisualEx(request: PushArkassetvisualRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushArkassetvisualResponse> {
|
|
3796
|
+
Util.validateModel(request);
|
|
3797
|
+
return $tea.cast<PushArkassetvisualResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetvisual.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushArkassetvisualResponse({}));
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
/**
|
|
3801
|
+
* @remarks
|
|
3802
|
+
* Description: 获取真人 Asset Group ID
|
|
3803
|
+
* Summary: 获取真人 Asset Group ID
|
|
3804
|
+
*/
|
|
3805
|
+
async queryArkassetvisual(request: QueryArkassetvisualRequest): Promise<QueryArkassetvisualResponse> {
|
|
3806
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3807
|
+
let headers : {[key: string ]: string} = { };
|
|
3808
|
+
return await this.queryArkassetvisualEx(request, headers, runtime);
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3811
|
+
/**
|
|
3812
|
+
* @remarks
|
|
3813
|
+
* Description: 获取真人 Asset Group ID
|
|
3814
|
+
* Summary: 获取真人 Asset Group ID
|
|
3815
|
+
*/
|
|
3816
|
+
async queryArkassetvisualEx(request: QueryArkassetvisualRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryArkassetvisualResponse> {
|
|
3817
|
+
Util.validateModel(request);
|
|
3818
|
+
return $tea.cast<QueryArkassetvisualResponse>(await this.doRequest("1.0", "antdigital.creative.arkassetvisual.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryArkassetvisualResponse({}));
|
|
3819
|
+
}
|
|
3820
|
+
|
|
2861
3821
|
}
|