tccli 3.0.1358.1__py2.py3-none-any.whl → 3.0.1359.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 (37) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/ai3d/v20250513/api.json +5 -5
  4. tccli/services/ai3d/v20250513/examples.json +1 -1
  5. tccli/services/aiart/v20221229/api.json +34 -34
  6. tccli/services/aiart/v20221229/examples.json +11 -11
  7. tccli/services/cdb/v20170320/api.json +103 -101
  8. tccli/services/cdb/v20170320/examples.json +11 -11
  9. tccli/services/cdn/v20180606/api.json +8 -8
  10. tccli/services/dsgc/v20190723/api.json +1 -1
  11. tccli/services/essbasic/v20210526/api.json +3 -3
  12. tccli/services/gs/v20191118/api.json +28 -4
  13. tccli/services/hunyuan/v20230901/api.json +12 -12
  14. tccli/services/hunyuan/v20230901/examples.json +4 -4
  15. tccli/services/lcic/v20220817/api.json +8 -8
  16. tccli/services/lcic/v20220817/examples.json +1 -1
  17. tccli/services/live/v20180801/api.json +43 -1
  18. tccli/services/live/v20180801/examples.json +1 -1
  19. tccli/services/lke/v20231130/api.json +7 -7
  20. tccli/services/oceanus/v20190422/api.json +22 -2
  21. tccli/services/ocr/ocr_client.py +53 -0
  22. tccli/services/ocr/v20181119/api.json +80 -0
  23. tccli/services/ocr/v20181119/examples.json +8 -0
  24. tccli/services/postgres/v20170312/api.json +189 -185
  25. tccli/services/postgres/v20170312/examples.json +29 -29
  26. tccli/services/ssl/v20191205/api.json +19 -1
  27. tccli/services/vclm/v20240523/api.json +6 -6
  28. tccli/services/vclm/v20240523/examples.json +1 -1
  29. tccli/services/wsa/__init__.py +4 -0
  30. tccli/services/wsa/v20250508/api.json +113 -0
  31. tccli/services/wsa/v20250508/examples.json +13 -0
  32. tccli/services/wsa/wsa_client.py +207 -0
  33. {tccli-3.0.1358.1.dist-info → tccli-3.0.1359.1.dist-info}/METADATA +2 -2
  34. {tccli-3.0.1358.1.dist-info → tccli-3.0.1359.1.dist-info}/RECORD +37 -33
  35. {tccli-3.0.1358.1.dist-info → tccli-3.0.1359.1.dist-info}/WHEEL +0 -0
  36. {tccli-3.0.1358.1.dist-info → tccli-3.0.1359.1.dist-info}/entry_points.txt +0 -0
  37. {tccli-3.0.1358.1.dist-info → tccli-3.0.1359.1.dist-info}/license_files/LICENSE +0 -0
@@ -8882,7 +8882,7 @@
8882
8882
  "members": [
8883
8883
  {
8884
8884
  "disabled": false,
8885
- "document": "接入类型, 5-API 访客",
8885
+ "document": "接入类型, 5-API 访客,目前仅支持传5",
8886
8886
  "example": "5",
8887
8887
  "member": "int64",
8888
8888
  "name": "Type",
@@ -8901,7 +8901,7 @@
8901
8901
  {
8902
8902
  "disabled": false,
8903
8903
  "document": "访客ID(外部输入,建议唯一,标识当前接入会话的用户)\n长度限制: string(64)",
8904
- "example": "",
8904
+ "example": "K18PFhu16oZe0rnxesOomORA7omXwrri",
8905
8905
  "member": "string",
8906
8906
  "name": "VisitorBizId",
8907
8907
  "required": false,
@@ -8910,7 +8910,7 @@
8910
8910
  {
8911
8911
  "disabled": false,
8912
8912
  "document": "知识标签,用于知识库中知识的检索过滤。该字段即将下线,请使用对话端接口中的 custom_variables 字段替代该字段。",
8913
- "example": "",
8913
+ "example": "已废弃,请使用对话接口中的custom_variables",
8914
8914
  "member": "GetWsTokenReq_Label",
8915
8915
  "name": "VisitorLabels",
8916
8916
  "required": false,
@@ -8925,7 +8925,7 @@
8925
8925
  {
8926
8926
  "disabled": false,
8927
8927
  "document": "token值(有效期60s,仅一次有效,多次校验会报错)",
8928
- "example": "",
8928
+ "example": "32477330DC0AF2C5C1D99C8830C4A917",
8929
8929
  "member": "string",
8930
8930
  "name": "Token",
8931
8931
  "output_required": false,
@@ -8935,7 +8935,7 @@
8935
8935
  {
8936
8936
  "disabled": false,
8937
8937
  "document": "余额; 余额大于 0 时表示有效\n注意:此字段可能返回 null,表示取不到有效值。",
8938
- "example": "",
8938
+ "example": "1",
8939
8939
  "member": "float",
8940
8940
  "name": "Balance",
8941
8941
  "output_required": false,
@@ -8945,7 +8945,7 @@
8945
8945
  {
8946
8946
  "disabled": false,
8947
8947
  "document": "对话窗输入字符限制",
8948
- "example": "",
8948
+ "example": "3000",
8949
8949
  "member": "int64",
8950
8950
  "name": "InputLenLimit",
8951
8951
  "output_required": false,
@@ -8965,7 +8965,7 @@
8965
8965
  {
8966
8966
  "disabled": false,
8967
8967
  "document": "SingleWorkflow",
8968
- "example": "",
8968
+ "example": "{\"WorkflowDesc\":\"\",\"WorkflowId\":\"\",\"WorkflowName\":\"\",\"IsEnable\":false,\"Status\":\"\"}",
8969
8969
  "member": "KnowledgeQaSingleWorkflow",
8970
8970
  "name": "SingleWorkflow",
8971
8971
  "output_required": false,
@@ -3996,7 +3996,7 @@
3996
3996
  "members": [
3997
3997
  {
3998
3998
  "disabled": false,
3999
- "document": "筛选条件字段",
3999
+ "document": "筛选条件字段,使用了筛选字段后不支持分页,最多返回2000条记录",
4000
4000
  "example": "无",
4001
4001
  "member": "Filter",
4002
4002
  "name": "Filters",
@@ -4133,12 +4133,32 @@
4133
4133
  {
4134
4134
  "disabled": false,
4135
4135
  "document": "请求ID\n注意:此字段可能返回 null,表示取不到有效值。",
4136
- "example": "xxx",
4136
+ "example": "ocs-111",
4137
4137
  "member": "string",
4138
4138
  "name": "RequestId",
4139
4139
  "output_required": true,
4140
4140
  "type": "string",
4141
4141
  "value_allowed_null": true
4142
+ },
4143
+ {
4144
+ "disabled": false,
4145
+ "document": "attach-000\n注意:此字段可能返回 null,表示取不到有效值。",
4146
+ "example": "attach-000",
4147
+ "member": "string",
4148
+ "name": "PageAttach",
4149
+ "output_required": false,
4150
+ "type": "string",
4151
+ "value_allowed_null": true
4152
+ },
4153
+ {
4154
+ "disabled": false,
4155
+ "document": "bool\n注意:此字段可能返回 null,表示取不到有效值。",
4156
+ "example": "false",
4157
+ "member": "bool",
4158
+ "name": "HasMore",
4159
+ "output_required": false,
4160
+ "type": "bool",
4161
+ "value_allowed_null": true
4142
4162
  }
4143
4163
  ],
4144
4164
  "usage": "out"
@@ -3709,6 +3709,58 @@ def doRecognizeMedicalInvoiceOCR(args, parsed_globals):
3709
3709
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3710
3710
 
3711
3711
 
3712
+ def doRecognizeTableMultiOCR(args, parsed_globals):
3713
+ g_param = parse_global_arg(parsed_globals)
3714
+
3715
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3716
+ cred = credential.CVMRoleCredential()
3717
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3718
+ cred = credential.STSAssumeRoleCredential(
3719
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3720
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3721
+ )
3722
+ 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):
3723
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3724
+ else:
3725
+ cred = credential.Credential(
3726
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3727
+ )
3728
+ http_profile = HttpProfile(
3729
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3730
+ reqMethod="POST",
3731
+ endpoint=g_param[OptionsDefine.Endpoint],
3732
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3733
+ )
3734
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3735
+ if g_param[OptionsDefine.Language]:
3736
+ profile.language = g_param[OptionsDefine.Language]
3737
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3738
+ client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
3739
+ client._sdkVersion += ("_CLI_" + __version__)
3740
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3741
+ model = models.RecognizeTableMultiOCRRequest()
3742
+ model.from_json_string(json.dumps(args))
3743
+ start_time = time.time()
3744
+ while True:
3745
+ rsp = client.RecognizeTableMultiOCR(model)
3746
+ result = rsp.to_json_string()
3747
+ try:
3748
+ json_obj = json.loads(result)
3749
+ except TypeError as e:
3750
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3751
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3752
+ break
3753
+ cur_time = time.time()
3754
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3755
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3756
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3757
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3758
+ else:
3759
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3760
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3761
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3762
+
3763
+
3712
3764
  def doGeneralFastOCR(args, parsed_globals):
3713
3765
  g_param = parse_global_arg(parsed_globals)
3714
3766
 
@@ -4623,6 +4675,7 @@ ACTION_MAP = {
4623
4675
  "QuestionSplitOCR": doQuestionSplitOCR,
4624
4676
  "MLIDCardOCR": doMLIDCardOCR,
4625
4677
  "RecognizeMedicalInvoiceOCR": doRecognizeMedicalInvoiceOCR,
4678
+ "RecognizeTableMultiOCR": doRecognizeTableMultiOCR,
4626
4679
  "GeneralFastOCR": doGeneralFastOCR,
4627
4680
  "VatInvoiceOCR": doVatInvoiceOCR,
4628
4681
  "RecognizeForeignPermanentResidentIdCard": doRecognizeForeignPermanentResidentIdCard,
@@ -448,6 +448,13 @@
448
448
  "output": "RecognizeTableAccurateOCRResponse",
449
449
  "status": "online"
450
450
  },
451
+ "RecognizeTableMultiOCR": {
452
+ "document": "基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。\n\n默认接口请求频率限制:1次/秒。",
453
+ "input": "RecognizeTableMultiOCRRequest",
454
+ "name": "表格识别(多模态版)",
455
+ "output": "RecognizeTableMultiOCRResponse",
456
+ "status": "online"
457
+ },
451
458
  "RecognizeTableOCR": {
452
459
  "document": "本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。\n\n默认接口请求频率限制:10次/秒。",
453
460
  "input": "RecognizeTableOCRRequest",
@@ -14820,6 +14827,79 @@
14820
14827
  ],
14821
14828
  "type": "object"
14822
14829
  },
14830
+ "RecognizeTableMultiOCRRequest": {
14831
+ "document": "RecognizeTableMultiOCR请求参数结构体",
14832
+ "members": [
14833
+ {
14834
+ "disabled": false,
14835
+ "document": "图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ",
14836
+ "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
14837
+ "member": "string",
14838
+ "name": "ImageBase64",
14839
+ "required": false,
14840
+ "type": "string"
14841
+ },
14842
+ {
14843
+ "disabled": false,
14844
+ "document": "图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ",
14845
+ "example": "https://xxx.com/document/xxx.png",
14846
+ "member": "string",
14847
+ "name": "ImageUrl",
14848
+ "required": false,
14849
+ "type": "string"
14850
+ },
14851
+ {
14852
+ "disabled": false,
14853
+ "document": "文档的起始页码。 当传入文件是PDF型时,用来指定识别的起始页码,识别的页码包含当前值。",
14854
+ "example": "1",
14855
+ "member": "int64",
14856
+ "name": "PdfStartPageNumber",
14857
+ "required": false,
14858
+ "type": "int"
14859
+ },
14860
+ {
14861
+ "disabled": false,
14862
+ "document": "文档的结束页码。 当传入文件是PDF类型时,用来指定识别的结束页码,识别的页码包含当前值。单次调用最多支持识别3页内容,即PdfEndPageNumber-PdfStartPageNumber需要不大于3。",
14863
+ "example": "3",
14864
+ "member": "int64",
14865
+ "name": "PdfEndPageNumber",
14866
+ "required": false,
14867
+ "type": "int"
14868
+ },
14869
+ {
14870
+ "disabled": false,
14871
+ "document": "配置选项,支持配置输出数据格式。\n\n* **Mdbase64** 返回 base64 编码的 markdown 格式文本。\n* **Excelbase64** 返回 base64 编码的 excel 文件。",
14872
+ "example": "Excelbase64",
14873
+ "member": "string",
14874
+ "name": "DataFormat",
14875
+ "required": false,
14876
+ "type": "string"
14877
+ }
14878
+ ],
14879
+ "type": "object"
14880
+ },
14881
+ "RecognizeTableMultiOCRResponse": {
14882
+ "document": "RecognizeTableMultiOCR返回参数结构体",
14883
+ "members": [
14884
+ {
14885
+ "disabled": false,
14886
+ "document": "Base64 编码后的 Excel 数据或 Markdown 数据。 注意:此字段可能返回空,表示取不到有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
14887
+ "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
14888
+ "member": "string",
14889
+ "name": "DataBase64",
14890
+ "output_required": true,
14891
+ "type": "string",
14892
+ "value_allowed_null": true
14893
+ },
14894
+ {
14895
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
14896
+ "member": "string",
14897
+ "name": "RequestId",
14898
+ "type": "string"
14899
+ }
14900
+ ],
14901
+ "type": "object"
14902
+ },
14823
14903
  "RecognizeTableOCRRequest": {
14824
14904
  "document": "RecognizeTableOCR请求参数结构体",
14825
14905
  "members": [
@@ -554,6 +554,14 @@
554
554
  "title": "RecognizeTableAccurateOCR调用"
555
555
  }
556
556
  ],
557
+ "RecognizeTableMultiOCR": [
558
+ {
559
+ "document": "调用成功示例",
560
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RecognizeTableMultiOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xxx.com/1.pdf\",\n \"PdfStartPageNumber\": 1,\n \"PdfEndPageNumber\": 2\n}",
561
+ "output": "{\n \"Response\": {\n \"RequestId\": \"43e5db77-ea0c-4b82-9f77-86387eb856e5\",\n \"DataBase64\": \"fCDpobnnm64gfCAyMDI0IOW5tDkg5pyIMz...4LjQ0IHwK\"\n }\n}",
562
+ "title": "调用成功示例"
563
+ }
564
+ ],
557
565
  "RecognizeTableOCR": [
558
566
  {
559
567
  "document": "表格识别示例代码",