tccli 3.0.1268.1__py2.py3-none-any.whl → 3.0.1270.1__py2.py3-none-any.whl

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.
Files changed (107) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +5 -4
  3. tccli/services/aiart/aiart_client.py +106 -0
  4. tccli/services/aiart/v20221229/api.json +286 -11
  5. tccli/services/aiart/v20221229/examples.json +18 -2
  6. tccli/services/antiddos/v20200309/api.json +201 -132
  7. tccli/services/antiddos/v20200309/examples.json +12 -12
  8. tccli/services/apm/v20210622/api.json +13 -3
  9. tccli/services/billing/billing_client.py +4 -163
  10. tccli/services/billing/v20180709/api.json +0 -489
  11. tccli/services/billing/v20180709/examples.json +0 -24
  12. tccli/services/cam/v20190116/api.json +8 -8
  13. tccli/services/cat/v20180409/api.json +3 -1
  14. tccli/services/cbs/cbs_client.py +220 -8
  15. tccli/services/cbs/v20170312/api.json +418 -2
  16. tccli/services/cbs/v20170312/examples.json +32 -0
  17. tccli/services/ccc/v20200210/api.json +11 -11
  18. tccli/services/ccc/v20200210/examples.json +2 -2
  19. tccli/services/cdb/v20170320/api.json +48 -18
  20. tccli/services/cdwdoris/v20211228/api.json +10 -1
  21. tccli/services/cfw/v20190904/api.json +30 -30
  22. tccli/services/ckafka/v20190819/api.json +10 -0
  23. tccli/services/cls/v20201016/api.json +11 -0
  24. tccli/services/csip/v20221121/api.json +38 -38
  25. tccli/services/cwp/cwp_client.py +4 -57
  26. tccli/services/cwp/v20180228/api.json +0 -184
  27. tccli/services/cwp/v20180228/examples.json +0 -8
  28. tccli/services/cynosdb/v20190107/api.json +1 -1
  29. tccli/services/cynosdb/v20190107/examples.json +1 -1
  30. tccli/services/dcdb/dcdb_client.py +122 -16
  31. tccli/services/dcdb/v20180411/api.json +222 -0
  32. tccli/services/dcdb/v20180411/examples.json +16 -0
  33. tccli/services/dlc/v20210125/api.json +169 -50
  34. tccli/services/dlc/v20210125/examples.json +20 -20
  35. tccli/services/domain/v20180808/api.json +8 -8
  36. tccli/services/domain/v20180808/examples.json +3 -3
  37. tccli/services/dts/v20211206/api.json +1 -1
  38. tccli/services/es/v20180416/api.json +9 -9
  39. tccli/services/ess/v20201111/api.json +1 -1
  40. tccli/services/essbasic/v20210526/api.json +3 -3
  41. tccli/services/essbasic/v20210526/examples.json +2 -2
  42. tccli/services/facefusion/v20220927/api.json +4 -4
  43. tccli/services/faceid/v20180301/api.json +5 -5
  44. tccli/services/faceid/v20180301/examples.json +6 -0
  45. tccli/services/gme/v20180711/api.json +147 -141
  46. tccli/services/gme/v20180711/examples.json +9 -9
  47. tccli/services/hunyuan/v20230901/api.json +9 -0
  48. tccli/services/iotexplorer/v20190423/api.json +4 -4
  49. tccli/services/iotexplorer/v20190423/examples.json +5 -5
  50. tccli/services/keewidb/v20220308/api.json +2 -2
  51. tccli/services/lcic/v20220817/api.json +177 -177
  52. tccli/services/lcic/v20220817/examples.json +2 -2
  53. tccli/services/lighthouse/v20200324/api.json +76 -67
  54. tccli/services/live/v20180801/api.json +1 -1
  55. tccli/services/lke/v20231130/api.json +31 -0
  56. tccli/services/lkeap/v20240522/api.json +55 -9
  57. tccli/services/lkeap/v20240522/examples.json +1 -1
  58. tccli/services/mna/mna_client.py +106 -0
  59. tccli/services/mna/v20210119/api.json +246 -0
  60. tccli/services/mna/v20210119/examples.json +16 -0
  61. tccli/services/monitor/monitor_client.py +62 -57
  62. tccli/services/monitor/v20230616/api.json +266 -0
  63. tccli/services/monitor/v20230616/examples.json +19 -0
  64. tccli/services/mqtt/mqtt_client.py +489 -12
  65. tccli/services/mqtt/v20240516/api.json +864 -3
  66. tccli/services/mqtt/v20240516/examples.json +72 -0
  67. tccli/services/ocr/ocr_client.py +53 -0
  68. tccli/services/ocr/v20181119/api.json +319 -2
  69. tccli/services/ocr/v20181119/examples.json +8 -0
  70. tccli/services/postgres/postgres_client.py +334 -16
  71. tccli/services/postgres/v20170312/api.json +717 -34
  72. tccli/services/postgres/v20170312/examples.json +72 -0
  73. tccli/services/ses/v20201002/api.json +15 -5
  74. tccli/services/ssl/v20191205/api.json +496 -493
  75. tccli/services/ssl/v20191205/examples.json +144 -24
  76. tccli/services/svp/v20240125/api.json +6 -6
  77. tccli/services/taf/taf_client.py +0 -159
  78. tccli/services/taf/v20200210/api.json +0 -665
  79. tccli/services/taf/v20200210/examples.json +0 -24
  80. tccli/services/teo/v20220901/api.json +40 -2
  81. tccli/services/tione/v20211111/api.json +14 -3
  82. tccli/services/trabbit/__init__.py +4 -0
  83. tccli/services/trabbit/trabbit_client.py +1691 -0
  84. tccli/services/trabbit/v20230418/api.json +4773 -0
  85. tccli/services/trabbit/v20230418/examples.json +237 -0
  86. tccli/services/trp/v20210515/api.json +549 -513
  87. tccli/services/trp/v20210515/examples.json +5 -5
  88. tccli/services/trtc/v20190722/api.json +8 -8
  89. tccli/services/trtc/v20190722/examples.json +2 -2
  90. tccli/services/vclm/v20240523/api.json +0 -450
  91. tccli/services/vclm/v20240523/examples.json +0 -48
  92. tccli/services/vclm/vclm_client.py +0 -159
  93. tccli/services/vpc/v20170312/api.json +124 -0
  94. tccli/services/vpc/v20170312/examples.json +16 -0
  95. tccli/services/vpc/vpc_client.py +106 -0
  96. tccli/services/wedata/v20210820/api.json +211 -33
  97. tccli/services/wedata/v20210820/examples.json +14 -0
  98. tccli/services/wedata/wedata_client.py +53 -0
  99. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/METADATA +2 -2
  100. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/RECORD +103 -101
  101. tccli/services/aa/__init__.py +0 -4
  102. tccli/services/aa/aa_client.py +0 -207
  103. tccli/services/aa/v20200224/api.json +0 -397
  104. tccli/services/aa/v20200224/examples.json +0 -13
  105. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/WHEEL +0 -0
  106. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/entry_points.txt +0 -0
  107. {tccli-3.0.1268.1.dist-info → tccli-3.0.1270.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1268.1'
1
+ __version__ = '3.0.1270.1'
@@ -21,9 +21,6 @@ def action_caller(service):
21
21
 
22
22
 
23
23
  SERVICE_VERSIONS = {
24
- "aa": [
25
- "2020-02-24"
26
- ],
27
24
  "aai": [
28
25
  "2018-05-22"
29
26
  ],
@@ -505,7 +502,8 @@ SERVICE_VERSIONS = {
505
502
  "2018-04-08"
506
503
  ],
507
504
  "monitor": [
508
- "2018-07-24"
505
+ "2018-07-24",
506
+ "2023-06-16"
509
507
  ],
510
508
  "mps": [
511
509
  "2019-06-12"
@@ -745,6 +743,9 @@ SERVICE_VERSIONS = {
745
743
  "tourism": [
746
744
  "2023-02-15"
747
745
  ],
746
+ "trabbit": [
747
+ "2023-04-18"
748
+ ],
748
749
  "trdp": [
749
750
  "2022-07-26"
750
751
  ],
@@ -537,6 +537,58 @@ def doQueryDrawPortraitJob(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
+ def doQueryGlamPicJob(args, parsed_globals):
541
+ g_param = parse_global_arg(parsed_globals)
542
+
543
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
544
+ cred = credential.CVMRoleCredential()
545
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
546
+ cred = credential.STSAssumeRoleCredential(
547
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
548
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
549
+ )
550
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
551
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
552
+ else:
553
+ cred = credential.Credential(
554
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
555
+ )
556
+ http_profile = HttpProfile(
557
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
558
+ reqMethod="POST",
559
+ endpoint=g_param[OptionsDefine.Endpoint],
560
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
561
+ )
562
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
563
+ if g_param[OptionsDefine.Language]:
564
+ profile.language = g_param[OptionsDefine.Language]
565
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
566
+ client = mod.AiartClient(cred, g_param[OptionsDefine.Region], profile)
567
+ client._sdkVersion += ("_CLI_" + __version__)
568
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
+ model = models.QueryGlamPicJobRequest()
570
+ model.from_json_string(json.dumps(args))
571
+ start_time = time.time()
572
+ while True:
573
+ rsp = client.QueryGlamPicJob(model)
574
+ result = rsp.to_json_string()
575
+ try:
576
+ json_obj = json.loads(result)
577
+ except TypeError as e:
578
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
579
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
580
+ break
581
+ cur_time = time.time()
582
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
583
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
584
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
585
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
586
+ else:
587
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
588
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
589
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
+
591
+
540
592
  def doUploadTrainPortraitImages(args, parsed_globals):
541
593
  g_param = parse_global_arg(parsed_globals)
542
594
 
@@ -693,6 +745,58 @@ def doQueryTextToImageProJob(args, parsed_globals):
693
745
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
746
 
695
747
 
748
+ def doSubmitGlamPicJob(args, parsed_globals):
749
+ g_param = parse_global_arg(parsed_globals)
750
+
751
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
752
+ cred = credential.CVMRoleCredential()
753
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
754
+ cred = credential.STSAssumeRoleCredential(
755
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
756
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
757
+ )
758
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
759
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
760
+ else:
761
+ cred = credential.Credential(
762
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
763
+ )
764
+ http_profile = HttpProfile(
765
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
766
+ reqMethod="POST",
767
+ endpoint=g_param[OptionsDefine.Endpoint],
768
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
769
+ )
770
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
771
+ if g_param[OptionsDefine.Language]:
772
+ profile.language = g_param[OptionsDefine.Language]
773
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
774
+ client = mod.AiartClient(cred, g_param[OptionsDefine.Region], profile)
775
+ client._sdkVersion += ("_CLI_" + __version__)
776
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
+ model = models.SubmitGlamPicJobRequest()
778
+ model.from_json_string(json.dumps(args))
779
+ start_time = time.time()
780
+ while True:
781
+ rsp = client.SubmitGlamPicJob(model)
782
+ result = rsp.to_json_string()
783
+ try:
784
+ json_obj = json.loads(result)
785
+ except TypeError as e:
786
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
787
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
788
+ break
789
+ cur_time = time.time()
790
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
791
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
792
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
793
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
794
+ else:
795
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
796
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
797
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
+
799
+
696
800
  def doChangeClothes(args, parsed_globals):
697
801
  g_param = parse_global_arg(parsed_globals)
698
802
 
@@ -922,9 +1026,11 @@ ACTION_MAP = {
922
1026
  "QueryMemeJob": doQueryMemeJob,
923
1027
  "QueryTrainPortraitModelJob": doQueryTrainPortraitModelJob,
924
1028
  "QueryDrawPortraitJob": doQueryDrawPortraitJob,
1029
+ "QueryGlamPicJob": doQueryGlamPicJob,
925
1030
  "UploadTrainPortraitImages": doUploadTrainPortraitImages,
926
1031
  "TextToImage": doTextToImage,
927
1032
  "QueryTextToImageProJob": doQueryTextToImageProJob,
1033
+ "SubmitGlamPicJob": doSubmitGlamPicJob,
928
1034
  "ChangeClothes": doChangeClothes,
929
1035
  "ImageInpaintingRemoval": doImageInpaintingRemoval,
930
1036
  "SubmitDrawPortraitJob": doSubmitDrawPortraitJob,
@@ -42,6 +42,13 @@
42
42
  "output": "QueryDrawPortraitJobResponse",
43
43
  "status": "online"
44
44
  },
45
+ "QueryGlamPicJob": {
46
+ "document": "AI 美照接口将根据模板为用户生成精美照片。分为提交任务和查询任务2个接口。\n- 提交任务:提交一个美照生成异步任务,获得任务 ID。\n- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n\nAI 美照默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
47
+ "input": "QueryGlamPicJobRequest",
48
+ "name": "查询美照生成任务",
49
+ "output": "QueryGlamPicJobResponse",
50
+ "status": "online"
51
+ },
45
52
  "QueryMemeJob": {
46
53
  "document": "表情动图生成接口将静态照片制作成动态的表情包。分为提交任务和查询任务2个接口。\n- 提交任务:提交一个表情动图生成异步任务,获得任务 ID。\n- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n\n表情动图生成默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
47
54
  "input": "QueryMemeJobRequest",
@@ -84,6 +91,13 @@
84
91
  "output": "SubmitDrawPortraitJobResponse",
85
92
  "status": "online"
86
93
  },
94
+ "SubmitGlamPicJob": {
95
+ "document": "AI 美照接口将根据模板为用户生成精美照片。分为提交任务和查询任务2个接口。\n- 提交任务:提交一个美照生成异步任务,获得任务 ID。\n- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n\nAI 美照默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
96
+ "input": "SubmitGlamPicJobRequest",
97
+ "name": "提交美照生成任务",
98
+ "output": "SubmitGlamPicJobResponse",
99
+ "status": "online"
100
+ },
87
101
  "SubmitMemeJob": {
88
102
  "document": "表情动图生成接口将静态照片制作成动态的表情包。分为提交任务和查询任务2个接口。\n\n- 提交任务:提交一个表情动图生成异步任务,获得任务 ID。\n- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n\n表情动图生成默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
89
103
  "input": "SubmitMemeJobRequest",
@@ -209,6 +223,30 @@
209
223
  ],
210
224
  "type": "object"
211
225
  },
226
+ "FaceInfo": {
227
+ "document": "融合信息",
228
+ "members": [
229
+ {
230
+ "disabled": false,
231
+ "document": "用户图 URL 列表",
232
+ "example": "[\"\"https://xxx.com/input.jpg\"\"]",
233
+ "member": "string",
234
+ "name": "ImageUrls",
235
+ "required": false,
236
+ "type": "list"
237
+ },
238
+ {
239
+ "disabled": false,
240
+ "document": "模版图人脸坐标。",
241
+ "example": "{\"X\":30,\"Y\":30,\"Width\":30,\"Height\":\"30\"}",
242
+ "member": "Rect",
243
+ "name": "TemplateFaceRect",
244
+ "required": false,
245
+ "type": "object"
246
+ }
247
+ ],
248
+ "usage": "in"
249
+ },
212
250
  "Filter": {
213
251
  "document": "训练图像质量过滤开关配置。\n支持开启或关闭对训练图像分辨率下限、脸部区域大小、脸部遮挡、脸部角度的过滤,默认开启以上过滤。\n如果训练图像内包含多人脸或无人脸、和 Base 人像不为同一人也将被过滤,不可关闭该过滤条件。\n建议:关闭以上过滤可能导致写真生成效果受损,建议使用单人、正脸、脸部清晰、无遮挡、无夸张表情、脸部区域占比较大的图像进行训练。",
214
252
  "members": [
@@ -521,7 +559,7 @@
521
559
  {
522
560
  "disabled": false,
523
561
  "document": "输入图 Base64 数据。\n算法将根据输入的图片,结合文本描述智能生成与之相关的图像。\nBase64 和 Url 必须提供一个,如果都提供以 Url 为准。\n图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。",
524
- "example": "",
562
+ "example": "/9j/4QlQaHR0c...N6a2M5ZCI",
525
563
  "member": "string",
526
564
  "name": "InputImage",
527
565
  "required": false,
@@ -530,7 +568,7 @@
530
568
  {
531
569
  "disabled": false,
532
570
  "document": "输入图 Url。\n算法将根据输入的图片,结合文本描述智能生成与之相关的图像。\nBase64 和 Url 必须提供一个,如果都提供以 Url 为准。\n图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。",
533
- "example": "",
571
+ "example": "https://xxx.com/image.jpg",
534
572
  "member": "string",
535
573
  "name": "InputUrl",
536
574
  "required": false,
@@ -557,7 +595,7 @@
557
595
  {
558
596
  "disabled": false,
559
597
  "document": "绘画风格。\n请在 [图像风格化风格列表](https://cloud.tencent.com/document/product/1668/86250) 中选择期望的风格,传入风格编号。\n推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。",
560
- "example": "",
598
+ "example": "[\"201\"]",
561
599
  "member": "string",
562
600
  "name": "Styles",
563
601
  "required": false,
@@ -566,7 +604,7 @@
566
604
  {
567
605
  "disabled": false,
568
606
  "document": "生成图结果的配置,包括输出图片分辨率和尺寸等。\n支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3)。\n不传默认使用origin。",
569
- "example": "",
607
+ "example": "768:768",
570
608
  "member": "ResultConfig",
571
609
  "name": "ResultConfig",
572
610
  "required": false,
@@ -575,7 +613,7 @@
575
613
  {
576
614
  "disabled": false,
577
615
  "document": "为生成结果图添加标识的开关,默认为1。\n1:添加标识。\n0:不添加标识。\n其他数值:默认按1处理。\n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
578
- "example": "",
616
+ "example": "1",
579
617
  "member": "int64",
580
618
  "name": "LogoAdd",
581
619
  "required": false,
@@ -584,7 +622,7 @@
584
622
  {
585
623
  "disabled": false,
586
624
  "document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
587
- "example": "",
625
+ "example": "{\"LogoUrl\": \"https://xxx.com/logo.jpg\", \"LogoRect\": {\"X\": 10, \"Y\": 10, \"Width\": 20, \"Height\": 20}}",
588
626
  "member": "LogoParam",
589
627
  "name": "LogoParam",
590
628
  "required": false,
@@ -593,7 +631,7 @@
593
631
  {
594
632
  "disabled": false,
595
633
  "document": "生成自由度。\nStrength 值越小,生成图和原图越接近,取值范围(0, 1],不传使用模型内置的默认值。\n推荐的取值范围为0.6 - 0.8。",
596
- "example": "",
634
+ "example": "0.5",
597
635
  "member": "float",
598
636
  "name": "Strength",
599
637
  "required": false,
@@ -602,7 +640,7 @@
602
640
  {
603
641
  "disabled": false,
604
642
  "document": "返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。",
605
- "example": "base64",
643
+ "example": "url",
606
644
  "member": "string",
607
645
  "name": "RspImgType",
608
646
  "required": false,
@@ -611,7 +649,7 @@
611
649
  {
612
650
  "disabled": false,
613
651
  "document": "画质增强开关,默认关闭。\n1:开启\n0:关闭\n开启后将增强图像的画质清晰度,生成耗时有所增加。",
614
- "example": "0",
652
+ "example": "1",
615
653
  "member": "int64",
616
654
  "name": "EnhanceImage",
617
655
  "required": false,
@@ -620,7 +658,7 @@
620
658
  {
621
659
  "disabled": false,
622
660
  "document": "细节优化的面部数量上限,支持0 ~ 6,默认为0。\n若上传大于0的值,将以此为上限对每张图片中面积占比较小的面部进行细节修复,生成耗时根据实际优化的面部个数有所增加。",
623
- "example": "0",
661
+ "example": "1",
624
662
  "member": "int64",
625
663
  "name": "RestoreFace",
626
664
  "required": false,
@@ -635,7 +673,7 @@
635
673
  {
636
674
  "disabled": false,
637
675
  "document": "根据入参 RspImgType 填入不同,返回不同的内容。\n如果传入 base64 则返回生成图 Base64 编码。\n如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。",
638
- "example": "",
676
+ "example": "https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/xxx.jpg?q-sign-algorithm=sha1&q-ak=xxxxx&q-sign-time=1731574045;1731577645&q-key-time=1731574045;1731577645&q-header-list=host&q-url-param-list=&q-signature=31fe75c1c18c3d91db59508961209dd37aaf41c7",
639
677
  "member": "string",
640
678
  "name": "ResultImage",
641
679
  "output_required": true,
@@ -817,6 +855,93 @@
817
855
  ],
818
856
  "type": "object"
819
857
  },
858
+ "QueryGlamPicJobRequest": {
859
+ "document": "QueryGlamPicJob请求参数结构体",
860
+ "members": [
861
+ {
862
+ "disabled": false,
863
+ "document": "任务ID。",
864
+ "example": "251197749-1732000778-a319cc1b-a646-11ef-be80-525400047e59-0",
865
+ "member": "string",
866
+ "name": "JobId",
867
+ "required": true,
868
+ "type": "string"
869
+ }
870
+ ],
871
+ "type": "object"
872
+ },
873
+ "QueryGlamPicJobResponse": {
874
+ "document": "QueryGlamPicJob返回参数结构体",
875
+ "members": [
876
+ {
877
+ "disabled": false,
878
+ "document": "当前任务状态码:\n1:等待中、2:运行中、4:处理失败、5:处理完成。",
879
+ "example": "5",
880
+ "member": "string",
881
+ "name": "JobStatusCode",
882
+ "output_required": false,
883
+ "type": "string",
884
+ "value_allowed_null": false
885
+ },
886
+ {
887
+ "disabled": false,
888
+ "document": "当前任务状态:排队中、处理中、处理失败或者处理完成。\n",
889
+ "example": "处理完成",
890
+ "member": "string",
891
+ "name": "JobStatusMsg",
892
+ "output_required": false,
893
+ "type": "string",
894
+ "value_allowed_null": false
895
+ },
896
+ {
897
+ "disabled": false,
898
+ "document": "任务处理失败错误码。\n",
899
+ "example": "FailedOperation.DownloadError",
900
+ "member": "string",
901
+ "name": "JobErrorCode",
902
+ "output_required": false,
903
+ "type": "string",
904
+ "value_allowed_null": false
905
+ },
906
+ {
907
+ "disabled": false,
908
+ "document": "任务处理失败错误信息。\n",
909
+ "example": "文件下载失败。",
910
+ "member": "string",
911
+ "name": "JobErrorMsg",
912
+ "output_required": false,
913
+ "type": "string",
914
+ "value_allowed_null": false
915
+ },
916
+ {
917
+ "disabled": false,
918
+ "document": "生成图 URL 列表,有效期1小时,请及时保存。\n",
919
+ "example": "[\"https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/xxx.jpg?q-sign-algorithm=sha1&q-ak=xxxxx&q-sign-time=1731574045;1731577645&q-key-time=1731574045;1731577645&q-header-list=host&q-url-param-list=&q-signature=31fe75c1c18c3d91db59508961209dd37aaf41c7\"]",
920
+ "member": "string",
921
+ "name": "ResultImage",
922
+ "output_required": false,
923
+ "type": "list",
924
+ "value_allowed_null": false
925
+ },
926
+ {
927
+ "disabled": false,
928
+ "document": "结果 detail 数组,Success 代表成功。\n",
929
+ "example": "[\"Success\"]",
930
+ "member": "string",
931
+ "name": "ResultDetails",
932
+ "output_required": false,
933
+ "type": "list",
934
+ "value_allowed_null": false
935
+ },
936
+ {
937
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
938
+ "member": "string",
939
+ "name": "RequestId",
940
+ "type": "string"
941
+ }
942
+ ],
943
+ "type": "object"
944
+ },
820
945
  "QueryMemeJobRequest": {
821
946
  "document": "QueryMemeJob请求参数结构体",
822
947
  "members": [
@@ -1058,6 +1183,56 @@
1058
1183
  ],
1059
1184
  "type": "object"
1060
1185
  },
1186
+ "Rect": {
1187
+ "document": "人脸框坐标",
1188
+ "members": [
1189
+ {
1190
+ "disabled": false,
1191
+ "document": "人脸框左上角横坐标。",
1192
+ "example": "1",
1193
+ "member": "int64",
1194
+ "name": "X",
1195
+ "output_required": false,
1196
+ "required": false,
1197
+ "type": "int",
1198
+ "value_allowed_null": false
1199
+ },
1200
+ {
1201
+ "disabled": false,
1202
+ "document": "人脸框左上角纵坐标。",
1203
+ "example": "1",
1204
+ "member": "int64",
1205
+ "name": "Y",
1206
+ "output_required": false,
1207
+ "required": false,
1208
+ "type": "int",
1209
+ "value_allowed_null": false
1210
+ },
1211
+ {
1212
+ "disabled": false,
1213
+ "document": "人脸框宽度。",
1214
+ "example": "30",
1215
+ "member": "int64",
1216
+ "name": "Width",
1217
+ "output_required": false,
1218
+ "required": false,
1219
+ "type": "int",
1220
+ "value_allowed_null": false
1221
+ },
1222
+ {
1223
+ "disabled": false,
1224
+ "document": "人脸框高度。",
1225
+ "example": "30",
1226
+ "member": "int64",
1227
+ "name": "Height",
1228
+ "output_required": false,
1229
+ "required": false,
1230
+ "type": "int",
1231
+ "value_allowed_null": false
1232
+ }
1233
+ ],
1234
+ "usage": "both"
1235
+ },
1061
1236
  "ReplaceBackgroundRequest": {
1062
1237
  "document": "ReplaceBackground请求参数结构体",
1063
1238
  "members": [
@@ -1365,6 +1540,106 @@
1365
1540
  ],
1366
1541
  "type": "object"
1367
1542
  },
1543
+ "SubmitGlamPicJobRequest": {
1544
+ "document": "SubmitGlamPicJob请求参数结构体",
1545
+ "members": [
1546
+ {
1547
+ "disabled": false,
1548
+ "document": "美照模板图 URL。\n图片限制:模板图中最多出现5张人脸,单边分辨率大于300,转成 Base64 字符串后小于 10MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。",
1549
+ "example": "https://xxx.com/image.jpg",
1550
+ "member": "string",
1551
+ "name": "TemplateUrl",
1552
+ "required": true,
1553
+ "type": "string"
1554
+ },
1555
+ {
1556
+ "disabled": false,
1557
+ "document": "用户图 URL 列表,以及模板图中需要替换成用户的人脸框信息。\n一张美照中可包含1 ~ 5个用户形象。每个用户需上传1 ~ 6张照片,如果图中存在多个人脸将取最大人脸。\n模板图中的人脸数量需要大于等于用户个数。如果不传每个用户在模板图中的人脸框位置,默认按照模板图人脸框从大到小的顺序进行替换。如需自定义顺序,需要依次上传每个用户在模板图中的人脸框位置。\n图片限制:每张图片转成 Base64 字符串后小于 10MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。建议使用单人、正脸、脸部区域占比较大、脸部清晰无遮挡、无大角度偏转、无夸张表情的用户图。",
1558
+ "example": "[ { \"ImageUrls\": [ \"https://xxx.com/image.jpg\" ] } ]",
1559
+ "member": "FaceInfo",
1560
+ "name": "FaceInfos",
1561
+ "required": false,
1562
+ "type": "list"
1563
+ },
1564
+ {
1565
+ "disabled": false,
1566
+ "document": "美照生成数量。\n支持1 ~ 4张,默认生成4张。",
1567
+ "example": "4",
1568
+ "member": "int64",
1569
+ "name": "Num",
1570
+ "required": false,
1571
+ "type": "int"
1572
+ },
1573
+ {
1574
+ "disabled": false,
1575
+ "document": "美照生成风格。\n仅对单人美照生效,单人可支持选择不同风格。需按照美照生成数量,在数组中逐一填入每张美照的风格名称。如果不传,默认取不重复的随机风格顺序。\n多人美照只支持 balanced 一种风格,该参数不生效。\n可选风格:<ul><li>real:面部相似度更高。</li><li>balanced:平衡面部真实感和美观度。</li><li>textured:脸部皮肤更具真实感。</li><li>beautiful:脸部美观度更高。</li></ul>",
1576
+ "example": "[\"real\", \"balanced\", \"textured\", \"beautiful\"]",
1577
+ "member": "string",
1578
+ "name": "Style",
1579
+ "required": false,
1580
+ "type": "list"
1581
+ },
1582
+ {
1583
+ "disabled": false,
1584
+ "document": "相似度系数,越高越像用户图。\n取值范围[0, 1],默认为0.6。",
1585
+ "example": "0.6",
1586
+ "member": "float",
1587
+ "name": "Similarity",
1588
+ "required": false,
1589
+ "type": "float"
1590
+ },
1591
+ {
1592
+ "disabled": false,
1593
+ "document": "超分选项,默认不做超分,可选开启。\nx2:2倍超分\nx4:4倍超分",
1594
+ "example": "x2",
1595
+ "member": "string",
1596
+ "name": "Clarity",
1597
+ "required": false,
1598
+ "type": "string"
1599
+ },
1600
+ {
1601
+ "disabled": false,
1602
+ "document": "为生成结果图添加标识的开关,默认为1。\n1:添加标识。\n0:不添加标识。\n其他数值:默认按1处理。\n建议您使用显著标识来提示结果图是 AI 生成的图片。",
1603
+ "example": "1",
1604
+ "member": "int64",
1605
+ "name": "LogoAdd",
1606
+ "required": false,
1607
+ "type": "int"
1608
+ },
1609
+ {
1610
+ "disabled": false,
1611
+ "document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
1612
+ "example": "{\"LogoUrl\": \"https://xxx.com/logo.jpg\", \"LogoRect\": {\"X\": 10, \"Y\": 10, \"Width\": 20, \"Height\": 20}}",
1613
+ "member": "LogoParam",
1614
+ "name": "LogoParam",
1615
+ "required": false,
1616
+ "type": "object"
1617
+ }
1618
+ ],
1619
+ "type": "object"
1620
+ },
1621
+ "SubmitGlamPicJobResponse": {
1622
+ "document": "SubmitGlamPicJob返回参数结构体",
1623
+ "members": [
1624
+ {
1625
+ "disabled": false,
1626
+ "document": "任务ID。",
1627
+ "example": "251197749-1732000778-a319cc1b-a646-11ef-be80-525400047e59-0",
1628
+ "member": "string",
1629
+ "name": "JobId",
1630
+ "output_required": false,
1631
+ "type": "string",
1632
+ "value_allowed_null": false
1633
+ },
1634
+ {
1635
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1636
+ "member": "string",
1637
+ "name": "RequestId",
1638
+ "type": "string"
1639
+ }
1640
+ ],
1641
+ "type": "object"
1642
+ },
1368
1643
  "SubmitMemeJobRequest": {
1369
1644
  "document": "SubmitMemeJob请求参数结构体",
1370
1645
  "members": [
@@ -35,8 +35,8 @@
35
35
  "ImageToImage": [
36
36
  {
37
37
  "document": "调用成功示例",
38
- "input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImageToImage\n<公共请求参数>\n\n{\n \"InputImage\": \"/asoaisjdio\",\n \"Prompt\": \"女孩\",\n \"Styles\": [\n \"201\"\n ],\n \"ResultConfig\": {\n \"Resolution\": \"768:768\"\n },\n \"Strength\": 0.5\n}",
39
- "output": "{\n \"Response\": {\n \"ResultImage\": \"/asjdioajsoi\",\n \"RequestId\": \"301bfc25-61ca-4ece-b03e-f6aefb547969\"\n }\n}",
38
+ "input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImageToImage\n<公共请求参数>\n\n{\n \"InputUrl\": \"https://xxx.com/image.jpg\",\n \"Prompt\": \"女孩\",\n \"Styles\": [\n \"201\"\n ],\n \"ResultConfig\": {\n \"Resolution\": \"768:768\"\n },\n \"Strength\": 0.5,\n \"RspImgType\": \"url\"\n}",
39
+ "output": "{\n \"Response\": {\n \"ResultImage\": \"https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/xxx.jpg?q-sign-algorithm=sha1&q-ak=xxxxx&q-sign-time=1731574045;1731577645&q-key-time=1731574045;1731577645&q-header-list=host&q-url-param-list=&q-signature=31fe75c1c18c3d91db59508961209dd37aaf41c7\",\n \"RequestId\": \"301bfc25-61ca-4ece-b03e-f6aefb547969\"\n }\n}",
40
40
  "title": "调用示例"
41
41
  }
42
42
  ],
@@ -48,6 +48,14 @@
48
48
  "title": "成功"
49
49
  }
50
50
  ],
51
+ "QueryGlamPicJob": [
52
+ {
53
+ "document": "",
54
+ "input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryGlamPicJob\n<公共请求参数>\n\n{\n \"JobId\": \"251197749-1739792863-ff707c2a-ed24-11ef-b774-525400c5aaa8-0\"\n}",
55
+ "output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"5\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"fcf5d2a6-bd68-4a86-a931-28dd6322e457\",\n \"ResultDetails\": [\n \"Success\"\n ],\n \"ResultImage\": [\n \"https://xxx.cos.ap-guangzhou.myqcloud.com/glam_pic/xxx.jpg\"\n ]\n }\n}",
56
+ "title": "查询美照任务"
57
+ }
58
+ ],
51
59
  "QueryMemeJob": [
52
60
  {
53
61
  "document": "",
@@ -96,6 +104,14 @@
96
104
  "title": "成功"
97
105
  }
98
106
  ],
107
+ "SubmitGlamPicJob": [
108
+ {
109
+ "document": "",
110
+ "input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitGlamPicJob\n<公共请求参数>\n\n{\n \"TemplateUrl\": \"https://xxx.com/template.jpg\",\n \"FaceInfos\": [\n {\n \"ImageUrls\": [\n \"https://xxx.com/input.jpg\"\n ]\n }\n ],\n \"Num\": 1,\n \"Similarity\": 0.6\n}",
111
+ "output": "{\n \"Response\": {\n \"JobId\": \"251197749-1739859949-31f02502-edc1-11ef-a849-525400c5aaa8-0\",\n \"RequestId\": \"d878c2e1-7108-40b5-aecf-4fb37a6e5695\"\n }\n}",
112
+ "title": "提交美照任务"
113
+ }
114
+ ],
99
115
  "SubmitMemeJob": [
100
116
  {
101
117
  "document": "",