tccli 3.0.1309.1__py2.py3-none-any.whl → 3.0.1311.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 (62) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +38 -0
  3. tccli/services/asr/v20190614/api.json +9 -0
  4. tccli/services/autoscaling/v20180419/api.json +19 -10
  5. tccli/services/bh/v20230418/api.json +193 -2
  6. tccli/services/bh/v20230418/examples.json +2 -2
  7. tccli/services/billing/billing_client.py +867 -125
  8. tccli/services/billing/v20180709/api.json +1336 -45
  9. tccli/services/billing/v20180709/examples.json +136 -0
  10. tccli/services/cdb/cdb_client.py +0 -53
  11. tccli/services/cdb/v20170320/api.json +0 -64
  12. tccli/services/cdb/v20170320/examples.json +0 -8
  13. tccli/services/cdwch/v20200915/examples.json +1 -1
  14. tccli/services/cfw/v20190904/api.json +11 -1
  15. tccli/services/cfw/v20190904/examples.json +2 -2
  16. tccli/services/cynosdb/v20190107/api.json +2 -2
  17. tccli/services/dsgc/v20190723/api.json +28 -18
  18. tccli/services/dsgc/v20190723/examples.json +1 -1
  19. tccli/services/ess/ess_client.py +53 -0
  20. tccli/services/ess/v20201111/api.json +102 -3
  21. tccli/services/ess/v20201111/examples.json +14 -0
  22. tccli/services/essbasic/essbasic_client.py +53 -0
  23. tccli/services/essbasic/v20210526/api.json +110 -2
  24. tccli/services/essbasic/v20210526/examples.json +14 -0
  25. tccli/services/gaap/gaap_client.py +12 -171
  26. tccli/services/gaap/v20180529/api.json +0 -325
  27. tccli/services/gaap/v20180529/examples.json +0 -24
  28. tccli/services/hunyuan/v20230901/api.json +130 -7
  29. tccli/services/iai/v20180301/api.json +12 -12
  30. tccli/services/iai/v20180301/examples.json +8 -2
  31. tccli/services/keewidb/v20220308/api.json +1 -1
  32. tccli/services/keewidb/v20220308/examples.json +1 -1
  33. tccli/services/lighthouse/v20200324/api.json +4 -4
  34. tccli/services/lke/v20231130/api.json +117 -2
  35. tccli/services/postgres/v20170312/api.json +6 -6
  36. tccli/services/redis/v20180412/api.json +12 -12
  37. tccli/services/redis/v20180412/examples.json +4 -4
  38. tccli/services/tag/v20180813/api.json +4 -4
  39. tccli/services/tcb/v20180608/api.json +20 -0
  40. tccli/services/tcb/v20180608/examples.json +1 -1
  41. tccli/services/tcbr/v20220217/api.json +94 -0
  42. tccli/services/tdmq/v20200217/api.json +4 -4
  43. tccli/services/teo/v20220901/api.json +45 -24
  44. tccli/services/thpc/v20211109/api.json +1 -1
  45. tccli/services/thpc/v20220401/api.json +1 -1
  46. tccli/services/thpc/v20230321/api.json +6 -6
  47. tccli/services/tione/v20211111/api.json +159 -4
  48. tccli/services/tke/v20180525/api.json +10 -10
  49. tccli/services/tmt/v20180321/api.json +1 -1
  50. tccli/services/trtc/v20190722/api.json +9 -0
  51. tccli/services/vod/v20180717/api.json +1 -1
  52. tccli/services/vpc/v20170312/api.json +5 -5
  53. tccli/services/waf/v20180125/api.json +163 -28
  54. tccli/services/waf/v20180125/examples.json +6 -0
  55. tccli/services/wedata/v20210820/api.json +1419 -0
  56. tccli/services/wedata/v20210820/examples.json +57 -1
  57. tccli/services/wedata/wedata_client.py +371 -0
  58. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/METADATA +2 -2
  59. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/RECORD +62 -62
  60. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/WHEEL +0 -0
  61. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/entry_points.txt +0 -0
  62. {tccli-3.0.1309.1.dist-info → tccli-3.0.1311.1.dist-info}/license_files/LICENSE +0 -0
@@ -5009,6 +5009,58 @@ def doArchiveDynamicFlow(args, parsed_globals):
5009
5009
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5010
5010
 
5011
5011
 
5012
+ def doCreatePrepareFlowGroup(args, parsed_globals):
5013
+ g_param = parse_global_arg(parsed_globals)
5014
+
5015
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5016
+ cred = credential.CVMRoleCredential()
5017
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5018
+ cred = credential.STSAssumeRoleCredential(
5019
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5020
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5021
+ )
5022
+ 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):
5023
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5024
+ else:
5025
+ cred = credential.Credential(
5026
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5027
+ )
5028
+ http_profile = HttpProfile(
5029
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5030
+ reqMethod="POST",
5031
+ endpoint=g_param[OptionsDefine.Endpoint],
5032
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5033
+ )
5034
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5035
+ if g_param[OptionsDefine.Language]:
5036
+ profile.language = g_param[OptionsDefine.Language]
5037
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5038
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
5039
+ client._sdkVersion += ("_CLI_" + __version__)
5040
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5041
+ model = models.CreatePrepareFlowGroupRequest()
5042
+ model.from_json_string(json.dumps(args))
5043
+ start_time = time.time()
5044
+ while True:
5045
+ rsp = client.CreatePrepareFlowGroup(model)
5046
+ result = rsp.to_json_string()
5047
+ try:
5048
+ json_obj = json.loads(result)
5049
+ except TypeError as e:
5050
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5051
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5052
+ break
5053
+ cur_time = time.time()
5054
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5055
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5056
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5057
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5058
+ else:
5059
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5060
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5061
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5062
+
5063
+
5012
5064
  def doUpdateIntegrationEmployees(args, parsed_globals):
5013
5065
  g_param = parse_global_arg(parsed_globals)
5014
5066
 
@@ -5480,6 +5532,7 @@ ACTION_MAP = {
5480
5532
  "GetTaskResultApi": doGetTaskResultApi,
5481
5533
  "DescribeBillUsage": doDescribeBillUsage,
5482
5534
  "ArchiveDynamicFlow": doArchiveDynamicFlow,
5535
+ "CreatePrepareFlowGroup": doCreatePrepareFlowGroup,
5483
5536
  "UpdateIntegrationEmployees": doUpdateIntegrationEmployees,
5484
5537
  "CreateOrganizationBatchSignUrl": doCreateOrganizationBatchSignUrl,
5485
5538
  "DescribeThirdPartyAuthCode": doDescribeThirdPartyAuthCode,
@@ -322,6 +322,13 @@
322
322
  "output": "CreatePrepareFlowResponse",
323
323
  "status": "online"
324
324
  },
325
+ "CreatePrepareFlowGroup": {
326
+ "document": "接口(CreatePrepareFlowGroup)用于创建嵌入式合同组签署流程。\n\n- 该接口当前仅支持文件发起\n- 该接口能力和CreateFlowGroupByFiles,~~CreateFlowGroupByTemplates~~保持一致。\n- 返回的FlowGroupId 为临时id,只有在页面内成功发起后FlowGroupId才会有效。",
327
+ "input": "CreatePrepareFlowGroupRequest",
328
+ "name": "获取发起合同组嵌入链接",
329
+ "output": "CreatePrepareFlowGroupResponse",
330
+ "status": "online"
331
+ },
325
332
  "CreatePreparedPersonalEsign": {
326
333
  "document": "本接口(CreatePreparedPersonalEsign)用于创建导入个人印章(处方单场景专用,使用此接口请与客户经理确认)。",
327
334
  "input": "CreatePreparedPersonalEsignRequest",
@@ -2039,7 +2046,7 @@
2039
2046
  },
2040
2047
  {
2041
2048
  "disabled": false,
2042
- "document": "**在绝对定位方式和关键字定位方式下**,可以指定控件横向位置的位置,单位为pt(点)。",
2049
+ "document": "**在绝对定位方式下**,可以指定控件横向位置的位置,单位为pt(点)。",
2043
2050
  "example": "100",
2044
2051
  "member": "float",
2045
2052
  "name": "ComponentPosX",
@@ -2050,7 +2057,7 @@
2050
2057
  },
2051
2058
  {
2052
2059
  "disabled": false,
2053
- "document": "**在绝对定位方式和关键字定位方式下**,可以指定控件纵向位置的位置,单位为pt(点)。",
2060
+ "document": "**在绝对定位方式下**,可以指定控件纵向位置的位置,单位为pt(点)。",
2054
2061
  "example": "100",
2055
2062
  "member": "float",
2056
2063
  "name": "ComponentPosY",
@@ -5992,7 +5999,7 @@
5992
5999
  "example": "[\"yDxZtUyKQD2JuqUuO4zjERYG3XNeEJXw\"]",
5993
6000
  "member": "string",
5994
6001
  "name": "FlowIds",
5995
- "required": true,
6002
+ "required": false,
5996
6003
  "type": "list"
5997
6004
  },
5998
6005
  {
@@ -6039,6 +6046,15 @@
6039
6046
  "name": "RecipientIds",
6040
6047
  "required": false,
6041
6048
  "type": "list"
6049
+ },
6050
+ {
6051
+ "disabled": false,
6052
+ "document": "合同组Id,传入此参数则可以不传FlowIds",
6053
+ "example": "yDwcCUUgyg3tgmwcUEVzyNaupO7DiB3E",
6054
+ "member": "string",
6055
+ "name": "FlowGroupId",
6056
+ "required": false,
6057
+ "type": "string"
6042
6058
  }
6043
6059
  ],
6044
6060
  "type": "object"
@@ -6440,6 +6456,89 @@
6440
6456
  ],
6441
6457
  "type": "object"
6442
6458
  },
6459
+ "CreatePrepareFlowGroupRequest": {
6460
+ "document": "CreatePrepareFlowGroup请求参数结构体",
6461
+ "members": [
6462
+ {
6463
+ "disabled": false,
6464
+ "document": "执行本接口操作的员工信息。\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
6465
+ "example": "无",
6466
+ "member": "UserInfo",
6467
+ "name": "Operator",
6468
+ "required": true,
6469
+ "type": "object"
6470
+ },
6471
+ {
6472
+ "disabled": false,
6473
+ "document": "合同(流程)组名称(可自定义此名称),长度不能超过200,只能由中文、字母、数字和下划线组成。",
6474
+ "example": "入职合同集",
6475
+ "member": "string",
6476
+ "name": "FlowGroupName",
6477
+ "required": true,
6478
+ "type": "string"
6479
+ },
6480
+ {
6481
+ "disabled": false,
6482
+ "document": "合同(流程)组的子合同信息,支持2-50个子合同",
6483
+ "example": "无",
6484
+ "member": "FlowGroupInfo",
6485
+ "name": "FlowGroupInfos",
6486
+ "required": true,
6487
+ "type": "list"
6488
+ },
6489
+ {
6490
+ "disabled": false,
6491
+ "document": "资源类型,取值有: <ul><li> **1**:模板</li> <li> **2**:文件</li></ul>",
6492
+ "example": "1",
6493
+ "member": "int64",
6494
+ "name": "ResourceType",
6495
+ "required": true,
6496
+ "type": "int"
6497
+ },
6498
+ {
6499
+ "disabled": false,
6500
+ "document": "代理企业和员工的信息。\n在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。",
6501
+ "example": "无",
6502
+ "member": "Agent",
6503
+ "name": "Agent",
6504
+ "required": false,
6505
+ "type": "object"
6506
+ }
6507
+ ],
6508
+ "type": "object"
6509
+ },
6510
+ "CreatePrepareFlowGroupResponse": {
6511
+ "document": "CreatePrepareFlowGroup返回参数结构体",
6512
+ "members": [
6513
+ {
6514
+ "disabled": false,
6515
+ "document": "合同(流程)组的合同组Id",
6516
+ "example": "yDt1JUUckp77a2omUyEmko88eg49PTsN",
6517
+ "member": "string",
6518
+ "name": "FlowGroupId",
6519
+ "output_required": true,
6520
+ "type": "string",
6521
+ "value_allowed_null": false
6522
+ },
6523
+ {
6524
+ "disabled": false,
6525
+ "document": "嵌入式合同组发起链接",
6526
+ "example": "https://embed.test.qian.tencent.cn/contract-create?embed=1&expiredOn=1744785243&code=yDtBLUUckpx65&businessId=yDtBLUUckYNlO&channel=TENCENTCLOUD&operateSource=byFileGroup&themeId=saas_web_theme",
6527
+ "member": "string",
6528
+ "name": "PrepareUrl",
6529
+ "output_required": false,
6530
+ "type": "string",
6531
+ "value_allowed_null": false
6532
+ },
6533
+ {
6534
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
6535
+ "member": "string",
6536
+ "name": "RequestId",
6537
+ "type": "string"
6538
+ }
6539
+ ],
6540
+ "type": "object"
6541
+ },
6443
6542
  "CreatePrepareFlowRequest": {
6444
6543
  "document": "CreatePrepareFlow请求参数结构体",
6445
6544
  "members": [
@@ -944,6 +944,12 @@
944
944
  "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationBatchSignUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2xun5UXXXzjEwg0vjoimj\"\n },\n \"Agent\": {\n \"ProxyOrganizationId\": \"\"\n },\n \"UserId\": \"\",\n \"Name\": \"\",\n \"Mobile\": \"\",\n \"FlowIds\": [\n \"yDC5yUUntf6vnnUxxBTyJ8Ps0WGqAuHL\",\n \"yDC5yUUntf6fccUEgcyeHwPz4wjnDSI4\"\n ],\n \"RecipientIds\": [\n \"yDC5yUUntf6vn0UxxBTyJvfv3Xlckcye\",\n \"yDC5yUUntf6mdgUEgcyeHCpCDmDjbsQJ\"\n ]\n}",
945
945
  "output": "{\n \"Response\": {\n \"ExpiredTime\": 1706100107,\n \"RequestId\": \"s1705495307288609862\",\n \"SignUrl\": \"https://embed.test.qian.tencent.cn/contract-sign?embed=1&expiredOn=1706100107&code=yDCNBUUckpvlibz6UEMbkWeSzl6YurH0&shortKey=yDCNBUzgvS93aBhXs3ae&channel=TENCENTCLOUD\"\n }\n}",
946
946
  "title": "基于RecipientIds 生成他方签署链接"
947
+ },
948
+ {
949
+ "document": "",
950
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationBatchSignUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2xun5UXXXzjEwg0vjoimj\"\n },\n \"Agent\": {\n \"ProxyOrganizationId\": \"\"\n },\n \"FlowGroupId\": \"yDwFmUUckpstqfvzUxxx3jo1f3cqjkGm\",\n \"UserId\": \"yDRCLUUgygq2xun5UXXXzjEwg0vjoimj\",\n \"Name\": \"张三\",\n \"Mobile\": \"18888888888\"\n}",
951
+ "output": "{\n \"Response\": {\n \"ExpiredTime\": 1706100107,\n \"RequestId\": \"s1705495307288609862\",\n \"SignUrl\": \"https://embed.test.qian.tencent.cn/contract-sign?embed=1&expiredOn=1706100107&code=yDCNBUUckpvlibz6UEMbkWeSzl6YurH0&shortKey=yDCNBUzgvS93aBhXs3ae&channel=TENCENTCLOUD\"\n }\n}",
952
+ "title": "获取合同组签署链接"
947
953
  }
948
954
  ],
949
955
  "CreateOrganizationGroupInvitationLink": [
@@ -1028,6 +1034,14 @@
1028
1034
  "title": "文件发起,设置跳过上传文件,必须要传资源id"
1029
1035
  }
1030
1036
  ],
1037
+ "CreatePrepareFlowGroup": [
1038
+ {
1039
+ "document": "",
1040
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrepareFlowGroup\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwf3UUckps8dvypUEfH3DjwIpMfa0uw\"\n },\n \"FlowGroupInfos\": [\n {\n \"FileIds\": [\n \"yDCWiUUckpv6iggyUyuqIrwyppQVS7TR\"\n ],\n \"FlowName\": \"预发起合同\",\n \"FlowType\": \"嵌入式文件发起合同\",\n \"FlowDescription\": \"描述\",\n \"Deadline\": 1757034793,\n \"Unordered\": false,\n \"NeedSignReview\": false,\n \"UserData\": \"\",\n \"Approvers\": [\n {\n \"ApproverType\": 1,\n \"OrganizationName\": \"\",\n \"ApproverName\": \"典子签\",\n \"ApproverOption\": {\n \"CanEditApprover\": true\n },\n \"ApproverMobile\": \"18700000000\",\n \"SignComponents\": [\n {\n \"ChannelComponentId\": \"\",\n \"ChannelComponentSource\": 0,\n \"ComponentDateFontSize\": 0,\n \"ComponentExtra\": \"\",\n \"ComponentHeight\": 100,\n \"ComponentId\": \"\",\n \"ComponentName\": \"\",\n \"ComponentPage\": 3,\n \"ComponentPosX\": 160,\n \"ComponentPosY\": 360,\n \"ComponentRecipientId\": \"\",\n \"ComponentRequired\": false,\n \"ComponentType\": \"SIGN_SIGNATURE\",\n \"ComponentValue\": \"\",\n \"ComponentWidth\": 100,\n \"FileIndex\": 0,\n \"ForbidMoveAndDelete\": true,\n \"GenerateMode\": \"\",\n \"IsFormType\": false,\n \"KeywordIndexes\": [],\n \"KeywordOrder\": \"\",\n \"KeywordPage\": 0,\n \"LockComponentValue\": false,\n \"OffsetX\": 0,\n \"OffsetY\": 0,\n \"RelativeLocation\": \"\"\n }\n ]\n }\n ]\n }\n ],\n \"FlowGroupName\": \"group\",\n \"ResourceType\": 2\n}",
1041
+ "output": "{\n \"Response\": {\n \"FlowGroupId\": \"yDttAUUckpxbcziqUySqdD5Eugn0LPHo\",\n \"RequestId\": \"s1747034803503801327\",\n \"PrepareUrl\": \"https://embed.test.qian.tencent.cn/contract-create?embed=1&expiredOn=1747035103&code=yDttAUUckpxbcHI&businessId=yDttAUUckpxbcziqUySqdD5o&channel=TENCENTCLOUD&operateSource=byFileGroup&themeId=saas_web_theme_yDhk9nE0qLixm\"\n }\n}",
1042
+ "title": "文件发起嵌入式合同组"
1043
+ }
1044
+ ],
1031
1045
  "CreatePreparedPersonalEsign": [
1032
1046
  {
1033
1047
  "document": "通过准备好的印章图片创建个人印章",
@@ -3815,6 +3815,58 @@ def doCreateBatchOrganizationAuthorizationUrl(args, parsed_globals):
3815
3815
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3816
3816
 
3817
3817
 
3818
+ def doChannelCreatePrepareFlowGroup(args, parsed_globals):
3819
+ g_param = parse_global_arg(parsed_globals)
3820
+
3821
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3822
+ cred = credential.CVMRoleCredential()
3823
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3824
+ cred = credential.STSAssumeRoleCredential(
3825
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3826
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3827
+ )
3828
+ 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):
3829
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3830
+ else:
3831
+ cred = credential.Credential(
3832
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3833
+ )
3834
+ http_profile = HttpProfile(
3835
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3836
+ reqMethod="POST",
3837
+ endpoint=g_param[OptionsDefine.Endpoint],
3838
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3839
+ )
3840
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3841
+ if g_param[OptionsDefine.Language]:
3842
+ profile.language = g_param[OptionsDefine.Language]
3843
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3844
+ client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
3845
+ client._sdkVersion += ("_CLI_" + __version__)
3846
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3847
+ model = models.ChannelCreatePrepareFlowGroupRequest()
3848
+ model.from_json_string(json.dumps(args))
3849
+ start_time = time.time()
3850
+ while True:
3851
+ rsp = client.ChannelCreatePrepareFlowGroup(model)
3852
+ result = rsp.to_json_string()
3853
+ try:
3854
+ json_obj = json.loads(result)
3855
+ except TypeError as e:
3856
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3857
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3858
+ break
3859
+ cur_time = time.time()
3860
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3861
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3862
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3863
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3864
+ else:
3865
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3866
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3867
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3868
+
3869
+
3818
3870
  def doChannelCreateBatchQuickSignUrl(args, parsed_globals):
3819
3871
  g_param = parse_global_arg(parsed_globals)
3820
3872
 
@@ -7489,6 +7541,7 @@ ACTION_MAP = {
7489
7541
  "DescribeFlowFiles": doDescribeFlowFiles,
7490
7542
  "CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
7491
7543
  "CreateBatchOrganizationAuthorizationUrl": doCreateBatchOrganizationAuthorizationUrl,
7544
+ "ChannelCreatePrepareFlowGroup": doChannelCreatePrepareFlowGroup,
7492
7545
  "ChannelCreateBatchQuickSignUrl": doChannelCreateBatchQuickSignUrl,
7493
7546
  "ChannelDisableUserAutoSign": doChannelDisableUserAutoSign,
7494
7547
  "CreateBatchOrganizationRegistrationTasks": doCreateBatchOrganizationRegistrationTasks,
@@ -161,6 +161,13 @@
161
161
  "output": "ChannelCreatePrepareFlowResponse",
162
162
  "status": "online"
163
163
  },
164
+ "ChannelCreatePrepareFlowGroup": {
165
+ "document": "接口(ChannelCreatePrepareFlowGroup)用于创建嵌入式合同组签署流程。\n\n- 该接口当前仅支持文件发起\n- 该接口能力和ChannelCreateFlowGroupByFiles,~~ChannelCreateFlowGroupByTemplates~~保持一致。\n- 返回的FlowGroupId 为临时id,只有在页面内成功发起后FlowGroupId才会有效。",
166
+ "input": "ChannelCreatePrepareFlowGroupRequest",
167
+ "name": "获取发起合同组嵌入链接",
168
+ "output": "ChannelCreatePrepareFlowGroupResponse",
169
+ "status": "online"
170
+ },
164
171
  "ChannelCreatePreparedPersonalEsign": {
165
172
  "document": "本接口(ChannelCreatePreparedPersonalEsign)用于创建导入个人印章(处方单场景专用,使用此接口请与客户经理确认)。",
166
173
  "input": "ChannelCreatePreparedPersonalEsignRequest",
@@ -1222,6 +1229,24 @@
1222
1229
  "name": "FlowDisplayType",
1223
1230
  "required": false,
1224
1231
  "type": "int"
1232
+ },
1233
+ {
1234
+ "disabled": false,
1235
+ "document": "签署文件资源Id列表,目前仅支持单个文件",
1236
+ "example": "yDCWiUUckpv6iggyUyuqIrwyppQV",
1237
+ "member": "string",
1238
+ "name": "FileIds",
1239
+ "required": false,
1240
+ "type": "list"
1241
+ },
1242
+ {
1243
+ "disabled": false,
1244
+ "document": "合同签署人信息",
1245
+ "example": "无",
1246
+ "member": "CommonFlowApprover",
1247
+ "name": "Approvers",
1248
+ "required": false,
1249
+ "type": "list"
1225
1250
  }
1226
1251
  ],
1227
1252
  "usage": "in"
@@ -3313,6 +3338,15 @@
3313
3338
  "name": "Mobile",
3314
3339
  "required": false,
3315
3340
  "type": "string"
3341
+ },
3342
+ {
3343
+ "disabled": false,
3344
+ "document": "合同组Id,传入此参数则可以不传FlowIds",
3345
+ "example": "yDttAUUckpxbczx6UySqdD5wIcNyCCQW",
3346
+ "member": "string",
3347
+ "name": "FlowGroupId",
3348
+ "required": false,
3349
+ "type": "string"
3316
3350
  }
3317
3351
  ],
3318
3352
  "type": "object"
@@ -3396,6 +3430,80 @@
3396
3430
  ],
3397
3431
  "type": "object"
3398
3432
  },
3433
+ "ChannelCreatePrepareFlowGroupRequest": {
3434
+ "document": "ChannelCreatePrepareFlowGroup请求参数结构体",
3435
+ "members": [
3436
+ {
3437
+ "disabled": false,
3438
+ "document": "合同组中每个合同签署流程的信息,合同组中最少包含2个合同,不能超过50个合同。",
3439
+ "example": "无",
3440
+ "member": "BaseFlowInfo",
3441
+ "name": "BaseFlowInfos",
3442
+ "required": true,
3443
+ "type": "list"
3444
+ },
3445
+ {
3446
+ "disabled": false,
3447
+ "document": "合同组的名称(可自定义此名称),长度不能超过200,只能由中文、字母、数字和下划线组成。",
3448
+ "example": "\"2023年采购合同们\"",
3449
+ "member": "string",
3450
+ "name": "FlowGroupName",
3451
+ "required": true,
3452
+ "type": "string"
3453
+ },
3454
+ {
3455
+ "disabled": false,
3456
+ "document": "资源类型,取值有: <ul><li> **1**:模板</li> <li> **2**:文件</li></ul>",
3457
+ "example": "1",
3458
+ "member": "int64",
3459
+ "name": "ResourceType",
3460
+ "required": true,
3461
+ "type": "int"
3462
+ },
3463
+ {
3464
+ "disabled": false,
3465
+ "document": "合同的发起企业和发起人信息,<a href=\"https://qcloudimg.tencent-cloud.cn/raw/b69f8aad306c40b7b78d096e39b2edbb.png\" target=\"_blank\">点击查看合同发起企业和人展示的位置</a>\n\n此接口下面信息必填。\n<ul>\n<li>渠道应用标识: <a href=\"https://qcloudimg.tencent-cloud.cn/raw/a71872de3d540d55451e3e73a2ad1a6e.png\" target=\"_blank\">Agent.AppId</a></li>\n<li>第三方平台子客企业标识: Agent.ProxyOrganizationOpenId(合同的发起企业)</li>\n<li>第三方平台子客企业中的员工标识: Agent.ProxyOperator.OpenId (合同的发起人)</li>\n</ul>\n\n合同的发起企业和发起人必需已经完成实名,并加入企业",
3466
+ "example": "无",
3467
+ "member": "Agent",
3468
+ "name": "Agent",
3469
+ "required": false,
3470
+ "type": "object"
3471
+ }
3472
+ ],
3473
+ "type": "object"
3474
+ },
3475
+ "ChannelCreatePrepareFlowGroupResponse": {
3476
+ "document": "ChannelCreatePrepareFlowGroup返回参数结构体",
3477
+ "members": [
3478
+ {
3479
+ "disabled": false,
3480
+ "document": "合同组ID,为32位字符串。\n建议开发者妥善保存此合同组ID,以便于顺利进行后续操作。",
3481
+ "example": "yDwFmUUckpstqfvzUE1h3jo1f3cqjkGm",
3482
+ "member": "string",
3483
+ "name": "FlowGroupId",
3484
+ "output_required": true,
3485
+ "type": "string",
3486
+ "value_allowed_null": false
3487
+ },
3488
+ {
3489
+ "disabled": false,
3490
+ "document": "嵌入式发起链接",
3491
+ "example": "https://embed.test.qian.tencent.cn/contract-create?embed=1&expiredOn=1744785243&code=yDtBLUUckpx65&businessId=yDtBLUUckYNlO&channel=TENCENTCLOUD&operateSource=byFileGroup&themeId=saas_web_theme",
3492
+ "member": "string",
3493
+ "name": "PrepareUrl",
3494
+ "output_required": true,
3495
+ "type": "string",
3496
+ "value_allowed_null": false
3497
+ },
3498
+ {
3499
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3500
+ "member": "string",
3501
+ "name": "RequestId",
3502
+ "type": "string"
3503
+ }
3504
+ ],
3505
+ "type": "object"
3506
+ },
3399
3507
  "ChannelCreatePrepareFlowRequest": {
3400
3508
  "document": "ChannelCreatePrepareFlow请求参数结构体",
3401
3509
  "members": [
@@ -6133,7 +6241,7 @@
6133
6241
  },
6134
6242
  {
6135
6243
  "disabled": false,
6136
- "document": "**在绝对定位方式和关键字定位方式下**,可以指定控件横向位置的位置,单位为pt(点)。",
6244
+ "document": "**在绝对定位方式下**,可以指定控件横向位置的位置,单位为pt(点)。",
6137
6245
  "example": "10",
6138
6246
  "member": "float",
6139
6247
  "name": "ComponentPosX",
@@ -6144,7 +6252,7 @@
6144
6252
  },
6145
6253
  {
6146
6254
  "disabled": false,
6147
- "document": "**在绝对定位方式和关键字定位方式下**,可以指定控件纵向位置的位置,单位为pt(点)。",
6255
+ "document": "**在绝对定位方式下**,可以指定控件纵向位置的位置,单位为pt(点)。",
6148
6256
  "example": "10",
6149
6257
  "member": "float",
6150
6258
  "name": "ComponentPosY",
@@ -436,6 +436,12 @@
436
436
  "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateOrganizationBatchSignUrl\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"60exxxxxxxxxxxxxxxxxxxxxc16e9\",\n \"ProxyOrganizationOpenId\": \"org_open_id\"\n },\n \"Name\": \"\",\n \"Mobile\": \"\",\n \"FlowIds\": [\n \"yDxxxxxxxxxxxxxxxxxxxxxxxx\"\n ],\n \"OpenId\": \"user_open_id\"\n}",
437
437
  "output": "{\n \"Response\": {\n \"SignUrl\": \"https://embed.test.qian.tencent.cn/console/?channel=PROXYCHANNEL&expiredTime=1695805069&code=xxxxx&menuStatus=ENABLE&token=xxxx\",\n \"ExpiredTime\": 0,\n \"RequestId\": \"s1695804769054178191\"\n }\n}",
438
438
  "title": "创建签署链接"
439
+ },
440
+ {
441
+ "document": "",
442
+ "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateOrganizationBatchSignUrl\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"60exxxxxxxxxxxxxxxxxxxxxc16e9\",\n \"ProxyOrganizationOpenId\": \"org_open_id\"\n },\n \"Name\": \"\",\n \"Mobile\": \"\",\n \"FlowGroupId\": \"yDxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"OpenId\": \"user_open_id\"\n}",
443
+ "output": "{\n \"Response\": {\n \"SignUrl\": \"https://embed.test.qian.tencent.cn/console/?channel=PROXYCHANNEL&expiredTime=1695805069&code=xxxxx&menuStatus=ENABLE&token=xxxx\",\n \"ExpiredTime\": 0,\n \"RequestId\": \"s1695804769054178191\"\n }\n}",
444
+ "title": "创建合同组签署链接"
439
445
  }
440
446
  ],
441
447
  "ChannelCreateOrganizationModifyQrCode": [
@@ -466,6 +472,14 @@
466
472
  "title": "创建发起合同签署链接-模板发起(固定所有的参与方)"
467
473
  }
468
474
  ],
475
+ "ChannelCreatePrepareFlowGroup": [
476
+ {
477
+ "document": "",
478
+ "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreatePrepareFlowGroup\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwFoUUckpsomwx1UyhWGhIR2RkhOjw2\",\n \"ProxyOrganizationOpenId\": \"kevinlcheng_open_organization_1\",\n \"ProxyOperator\": {\n \"OpenId\": \"kevinlcheng_1\"\n }\n },\n \"FlowGroupName\": \"group\",\n \"ResourceType\": 2,\n \"BaseFlowInfos\": [\n {\n \"FlowName\": \"第三方预发起合同\",\n \"FlowType\": \"第三方嵌入式文件发起合同\",\n \"FileIds\": [\n \"yDCWiUUckpv6iggyUyuqIrwyppQVS7TR\"\n ],\n \"FlowDescription\": \"描述\",\n \"Deadline\": 1757034793,\n \"Unordered\": false,\n \"IntelligentStatus\": \"CLOSE\",\n \"FormFields\": [],\n \"NeedCreateReview\": false,\n \"NeedSignReview\": false,\n \"UserData\": \"\",\n \"CcInfos\": [],\n \"Approvers\": [\n {\n \"ApproverType\": 1,\n \"OrganizationName\": \"\",\n \"NotChannelOrganization\": false,\n \"ApproverName\": \"张轩\",\n \"ApproverOption\": {\n \"CanEditApprover\": true\n },\n \"IsFullText\": true,\n \"ApproverMobile\": \"18729585347\",\n \"SignComponents\": [\n {\n \"ChannelComponentId\": \"\",\n \"ComponentDateFontSize\": 0,\n \"ComponentDescription\": \"\",\n \"ComponentExtra\": \"\",\n \"ComponentHeight\": 100,\n \"ComponentId\": \"\",\n \"ComponentName\": \"\",\n \"ComponentPage\": 3,\n \"ComponentPosX\": 160,\n \"ComponentPosY\": 360,\n \"ComponentRecipientId\": \"\",\n \"ComponentRequired\": false,\n \"ComponentType\": \"SIGN_SIGNATURE\",\n \"ComponentValue\": \"\",\n \"ComponentWidth\": 100,\n \"DocumentId\": \"\",\n \"FileIndex\": 0,\n \"ForbidMoveAndDelete\": true,\n \"GenerateMode\": \"\",\n \"KeywordIndexes\": [],\n \"KeywordOrder\": \"\",\n \"KeywordPage\": 0,\n \"LockComponentValue\": false,\n \"OffsetX\": 0,\n \"OffsetY\": 0,\n \"Placeholder\": \"\",\n \"RelativeLocation\": \"\"\n }\n ]\n }\n ]\n }\n ]\n}",
479
+ "output": "{\n \"Response\": {\n \"FlowGroupId\": \"yDttAUUckpxbcz9uUySqdD58t8bwneLp\",\n \"PrepareUrl\": \"https://embed.test.qian.tencent.cn/contract-create?embed=1&expiredOn=1747036582&code=yDttAUUckpxbcz9vUySqdD5u3jnsKVT6&businessId=yDttAUUckpxbcz9uUySqdD58t8bwneLp&channel=PROXYCHANNEL&operateSource=byFileGroup&themeId=channel_web_theme_yDSLbUUckpo3e14eUEK7ajSyPX7g3kIc\",\n \"RequestId\": \"s1747036282702037847\"\n }\n}",
480
+ "title": "嵌入式文件发起合同组"
481
+ }
482
+ ],
469
483
  "ChannelCreatePreparedPersonalEsign": [
470
484
  {
471
485
  "document": "通过准备好的个人印章图片创建印章",