tccli 3.0.1276.1__py2.py3-none-any.whl → 3.0.1278.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.
- tccli/__init__.py +1 -1
- tccli/services/ams/v20201229/api.json +52 -22
- tccli/services/cvm/v20170312/api.json +41 -4
- tccli/services/emr/emr_client.py +57 -4
- tccli/services/emr/v20190103/api.json +49 -6
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/ess/ess_client.py +57 -4
- tccli/services/ess/v20201111/api.json +137 -6
- tccli/services/ess/v20201111/examples.json +11 -3
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +122 -0
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/ims/v20201229/api.json +82 -0
- tccli/services/live/v20180801/api.json +86 -79
- tccli/services/lke/v20231130/api.json +2 -2
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/tione/v20211111/api.json +2 -2
- tccli/services/trtc/v20190722/api.json +9 -0
- tccli/services/wedata/v20210820/api.json +29 -18
- tccli/services/wedata/v20210820/examples.json +12 -18
- {tccli-3.0.1276.1.dist-info → tccli-3.0.1278.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1276.1.dist-info → tccli-3.0.1278.1.dist-info}/RECORD +26 -26
- {tccli-3.0.1276.1.dist-info → tccli-3.0.1278.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1276.1.dist-info → tccli-3.0.1278.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1276.1.dist-info → tccli-3.0.1278.1.dist-info}/license_files/LICENSE +0 -0
@@ -168,6 +168,13 @@
|
|
168
168
|
"output": "CreateFlowEvidenceReportResponse",
|
169
169
|
"status": "online"
|
170
170
|
},
|
171
|
+
"CreateFlowForwards": {
|
172
|
+
"document": "该接口用于将合同中本企业当前经办人转为本企业其他员工进行操作。\n\n注意:\n1. 转交的目标经办人需要已经加入企业,且完成实名。\n2. 仅企业拥有`超管`、`法人`或者`合同管理员`角色的员工才有调用本接口的权限。如果使用主带子方式调用,请确保您已经加入子企业,且账号在子企业中担任任一上述角色。\n3. 仅支持当前经办人为待签署或待填写状态时进行转交操作。\n4. 若原合同有填写控件,且当前经办人已经完成填写,则不支持进行转交。\n5. 若当前经办人已签署完成,或者处于签署流程中,则不支持进行转交。",
|
173
|
+
"input": "CreateFlowForwardsRequest",
|
174
|
+
"name": "变更本企业待签合同的经办人",
|
175
|
+
"output": "CreateFlowForwardsResponse",
|
176
|
+
"status": "online"
|
177
|
+
},
|
171
178
|
"CreateFlowGroupByFiles": {
|
172
179
|
"document": "此接口(CreateFlowGroupByFiles)可用于通过多个文件创建合同组签署流程。使用该接口需要先依赖[多文件上传](https://qian.tencent.com/developers/companyApis/templatesAndFiles/UploadFiles)接口返回的FileIds。\n\n- 该接口允许通过PDF资源ID一次性创建多个合同,这些合同被组织在一个合同组中。\n- 每个签署方将收到一个签署链接,通过这个链接可以访问并签署合同组中的所有合同。\n- 合同组中的合同必须作为一个整体进行签署,不能将合同组拆分成单独的合同进行逐一签署。\n\n<img src=\"https://qcloudimg.tencent-cloud.cn/raw/a63074a0293c9ff5bf6c0bb74c0d3b20.png\" width=\"400\" />\n\n### 2. 适用场景\n\n该接口适用于需要一次性完成多份合同签署的情况,多份合同一般具有关联性,用户以目录的形式查看合同。\n\n\n### 3. 合同额度的扣减与返还\n- **扣减时机**:合同一旦发起,相关的合同额度就会被扣减,合同组下面的每个合同都要扣减一个合同额度。\n- **返还条件**:只有在合同被撤销且没有任何签署方签署过,或者只有自动签署的情况下,合同额度才会被返还。\n- **不返还的情况**:如果合同已过期、被拒签、签署完成或已解除,合同额度将不会被返还。\n\n### 4.合同组暂不支持抄送功能",
|
173
180
|
"input": "CreateFlowGroupByFilesRequest",
|
@@ -4134,6 +4141,80 @@
|
|
4134
4141
|
],
|
4135
4142
|
"type": "object"
|
4136
4143
|
},
|
4144
|
+
"CreateFlowForwardsRequest": {
|
4145
|
+
"document": "CreateFlowForwards请求参数结构体",
|
4146
|
+
"members": [
|
4147
|
+
{
|
4148
|
+
"disabled": false,
|
4149
|
+
"document": "执行本接口操作的员工信息。注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
|
4150
|
+
"example": "无",
|
4151
|
+
"member": "UserInfo",
|
4152
|
+
"name": "Operator",
|
4153
|
+
"required": true,
|
4154
|
+
"type": "object"
|
4155
|
+
},
|
4156
|
+
{
|
4157
|
+
"disabled": false,
|
4158
|
+
"document": "合同对应参与方需要修改的目标经办人。其UserId可在企业控制台中组织管理里面找到。或者使用获取员工信息接口得到。\n\n注意:`需要保证目标经办人已经加入企业且已实名`",
|
4159
|
+
"example": "无",
|
4160
|
+
"member": "string",
|
4161
|
+
"name": "TargetUserId",
|
4162
|
+
"required": true,
|
4163
|
+
"type": "string"
|
4164
|
+
},
|
4165
|
+
{
|
4166
|
+
"disabled": false,
|
4167
|
+
"document": "企业签署方的合同及对应签署方",
|
4168
|
+
"example": "无",
|
4169
|
+
"member": "FlowForwardInfo",
|
4170
|
+
"name": "FlowForwardInfos",
|
4171
|
+
"required": true,
|
4172
|
+
"type": "list"
|
4173
|
+
},
|
4174
|
+
{
|
4175
|
+
"disabled": false,
|
4176
|
+
"document": "代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。",
|
4177
|
+
"example": "无",
|
4178
|
+
"member": "Agent",
|
4179
|
+
"name": "Agent",
|
4180
|
+
"required": false,
|
4181
|
+
"type": "object"
|
4182
|
+
}
|
4183
|
+
],
|
4184
|
+
"type": "object"
|
4185
|
+
},
|
4186
|
+
"CreateFlowForwardsResponse": {
|
4187
|
+
"document": "CreateFlowForwards返回参数结构体",
|
4188
|
+
"members": [
|
4189
|
+
{
|
4190
|
+
"disabled": false,
|
4191
|
+
"document": "失败的合同id以及错误详情",
|
4192
|
+
"example": "无",
|
4193
|
+
"member": "FlowForwardResult",
|
4194
|
+
"name": "FailedFlows",
|
4195
|
+
"output_required": false,
|
4196
|
+
"type": "list",
|
4197
|
+
"value_allowed_null": false
|
4198
|
+
},
|
4199
|
+
{
|
4200
|
+
"disabled": false,
|
4201
|
+
"document": "成功的合同id",
|
4202
|
+
"example": "无",
|
4203
|
+
"member": "string",
|
4204
|
+
"name": "SuccessFlows",
|
4205
|
+
"output_required": false,
|
4206
|
+
"type": "list",
|
4207
|
+
"value_allowed_null": false
|
4208
|
+
},
|
4209
|
+
{
|
4210
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4211
|
+
"member": "string",
|
4212
|
+
"name": "RequestId",
|
4213
|
+
"type": "string"
|
4214
|
+
}
|
4215
|
+
],
|
4216
|
+
"type": "object"
|
4217
|
+
},
|
4137
4218
|
"CreateFlowGroupByFilesRequest": {
|
4138
4219
|
"document": "CreateFlowGroupByFiles请求参数结构体",
|
4139
4220
|
"members": [
|
@@ -10735,23 +10816,23 @@
|
|
10735
10816
|
"members": [
|
10736
10817
|
{
|
10737
10818
|
"disabled": false,
|
10738
|
-
"document": "员工在电子签的userId
|
10819
|
+
"document": "员工在电子签的userId",
|
10739
10820
|
"example": "yDxVwUyKQWho8CUuO4zjEyQOAgwvr4Zy",
|
10740
10821
|
"member": "string",
|
10741
10822
|
"name": "UserId",
|
10742
10823
|
"output_required": true,
|
10743
10824
|
"type": "string",
|
10744
|
-
"value_allowed_null":
|
10825
|
+
"value_allowed_null": false
|
10745
10826
|
},
|
10746
10827
|
{
|
10747
10828
|
"disabled": false,
|
10748
|
-
"document": "员工在第三方平台的openId
|
10829
|
+
"document": "员工在第三方平台的openId",
|
10749
10830
|
"example": "n9527",
|
10750
10831
|
"member": "string",
|
10751
10832
|
"name": "OpenId",
|
10752
10833
|
"output_required": true,
|
10753
10834
|
"type": "string",
|
10754
|
-
"value_allowed_null":
|
10835
|
+
"value_allowed_null": false
|
10755
10836
|
},
|
10756
10837
|
{
|
10757
10838
|
"disabled": false,
|
@@ -11847,6 +11928,56 @@
|
|
11847
11928
|
],
|
11848
11929
|
"usage": "out"
|
11849
11930
|
},
|
11931
|
+
"FlowForwardInfo": {
|
11932
|
+
"document": "合同转交相关信息",
|
11933
|
+
"members": [
|
11934
|
+
{
|
11935
|
+
"disabled": false,
|
11936
|
+
"document": "合同流程ID,为32位字符串。此接口的合同流程ID需要由[创建签署流程](https://qian.tencent.com/developers/companyApis/startFlows/CreateFlow)接口创建得到。",
|
11937
|
+
"example": "yDCVNUUckpw3nnnyUVScgTvSA1IaZgM7",
|
11938
|
+
"member": "string",
|
11939
|
+
"name": "FlowId",
|
11940
|
+
"required": true,
|
11941
|
+
"type": "string"
|
11942
|
+
},
|
11943
|
+
{
|
11944
|
+
"disabled": false,
|
11945
|
+
"document": "签署方经办人在合同中的参与方ID,为32位字符串。",
|
11946
|
+
"example": "yDtwEUUckp7f8w6uUuBHsZJd9KcpXpMH",
|
11947
|
+
"member": "string",
|
11948
|
+
"name": "RecipientId",
|
11949
|
+
"required": true,
|
11950
|
+
"type": "string"
|
11951
|
+
}
|
11952
|
+
],
|
11953
|
+
"usage": "in"
|
11954
|
+
},
|
11955
|
+
"FlowForwardResult": {
|
11956
|
+
"document": "转交合同结果",
|
11957
|
+
"members": [
|
11958
|
+
{
|
11959
|
+
"disabled": false,
|
11960
|
+
"document": "合同流程ID为32位字符串。您可以登录腾讯电子签控制台,在 \"合同\" -> \"合同中心\" 中查看某个合同的FlowId(在页面中展示为合同ID)。[点击查看FlowId在控制台中的位置](https://qcloudimg.tencent-cloud.cn/raw/0a83015166cfe1cb043d14f9ec4bd75e.png)。",
|
11961
|
+
"example": "yDwFmUUckpstqfvzUE1h3jo1f3cqjkGm",
|
11962
|
+
"member": "string",
|
11963
|
+
"name": "FlowId",
|
11964
|
+
"output_required": false,
|
11965
|
+
"type": "string",
|
11966
|
+
"value_allowed_null": false
|
11967
|
+
},
|
11968
|
+
{
|
11969
|
+
"disabled": false,
|
11970
|
+
"document": "如果失败,返回的错误细节。",
|
11971
|
+
"example": "合同目标转出参与方非本企业员工,请检查",
|
11972
|
+
"member": "string",
|
11973
|
+
"name": "ErrorDetail",
|
11974
|
+
"output_required": false,
|
11975
|
+
"type": "string",
|
11976
|
+
"value_allowed_null": false
|
11977
|
+
}
|
11978
|
+
],
|
11979
|
+
"usage": "out"
|
11980
|
+
},
|
11850
11981
|
"FlowGroupApproverInfo": {
|
11851
11982
|
"document": "合同组相关信息,指定合同组子合同和签署方的信息,用于补充动态签署人。",
|
11852
11983
|
"members": [
|
@@ -12633,13 +12764,13 @@
|
|
12633
12764
|
"members": [
|
12634
12765
|
{
|
12635
12766
|
"disabled": false,
|
12636
|
-
"document": "
|
12767
|
+
"document": "意愿核身结果详细数据,与每段点头确认过程一一对应",
|
12637
12768
|
"example": "无",
|
12638
12769
|
"member": "IntentionActionResultDetail",
|
12639
12770
|
"name": "Details",
|
12640
12771
|
"output_required": false,
|
12641
12772
|
"type": "list",
|
12642
|
-
"value_allowed_null":
|
12773
|
+
"value_allowed_null": false
|
12643
12774
|
}
|
12644
12775
|
],
|
12645
12776
|
"usage": "out"
|
@@ -275,13 +275,13 @@
|
|
275
275
|
},
|
276
276
|
{
|
277
277
|
"document": "二要素形式补充签署人",
|
278
|
-
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDynamicFlowApprover\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"操作人id\"\n },\n \"FlowId\": \"合同id\",\n \"Approvers\": [{\n \"ApproverType\": 0,\n \"OrganizationName\": \"企业名称\",\n \"ApproverName\": \"签署人姓名\",\n \"ApproverMobile\": \"签署人手机号\",\n \"PreReadTime\": 3,\n \"SignComponents\": [{\n \"ComponentPosX\": 260,\n \"ComponentPosY\": 260,\n \"ComponentWidth\": 100,\n \"ComponentHeight\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentPage\": 1\n }\n ]\n }\n
|
278
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDynamicFlowApprover\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"操作人id\"\n },\n \"FlowId\": \"合同id\",\n \"Approvers\": [\n {\n \"ApproverType\": 0,\n \"OrganizationName\": \"企业名称\",\n \"ApproverName\": \"签署人姓名\",\n \"ApproverMobile\": \"签署人手机号\",\n \"PreReadTime\": 3,\n \"SignComponents\": [\n {\n \"ComponentPosX\": 260,\n \"ComponentPosY\": 260,\n \"ComponentWidth\": 100,\n \"ComponentHeight\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentPage\": 1\n }\n ]\n }\n ]\n}",
|
279
279
|
"output": "{\n \"Response\": {\n \"DynamicFlowApproverList\": [\n {\n \"ApproverStatus\": 1,\n \"RecipientId\": \"yDCjFUUckp48f6hcUyh7ukYyfaIqHqnR\",\n \"SignId\": \"yDCjFUUckp48f6hiUyh7ukYBjxSiGXzB\"\n }\n ],\n \"FlowId\": \"yDCjFUUckp48f680Uyh7ukYy5JFb80ux\",\n \"RequestId\": \"s1728544317709049372\"\n }\n}",
|
280
280
|
"title": "二要素形式补充企业签署人"
|
281
281
|
},
|
282
282
|
{
|
283
283
|
"document": "二要素补充个人签署人",
|
284
|
-
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDynamicFlowApprover\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"操作人id\"\n },\n \"FlowId\": \"合同id\",\n \"Approvers\": [{\n \"ApproverType\": 1,\n \"ApproverName\": \"签署人姓名\",\n \"ApproverMobile\": \"签署人手机号\",\n \"PreReadTime\": 3,\n \"SignComponents\": [{\n \"ComponentPosX\": 260,\n \"ComponentPosY\": 260,\n \"ComponentWidth\": 100,\n \"ComponentHeight\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentPage\": 1\n }\n ]\n }\n
|
284
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDynamicFlowApprover\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"操作人id\"\n },\n \"FlowId\": \"合同id\",\n \"Approvers\": [\n {\n \"ApproverType\": 1,\n \"ApproverName\": \"签署人姓名\",\n \"ApproverMobile\": \"签署人手机号\",\n \"PreReadTime\": 3,\n \"SignComponents\": [\n {\n \"ComponentPosX\": 260,\n \"ComponentPosY\": 260,\n \"ComponentWidth\": 100,\n \"ComponentHeight\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentPage\": 1\n }\n ]\n }\n ]\n}",
|
285
285
|
"output": "{\n \"Response\": {\n \"DynamicFlowApproverList\": [\n {\n \"ApproverStatus\": 1,\n \"RecipientId\": \"yDCjFUUckp48f6hcUyh7ukYyfaIqHqnR\",\n \"SignId\": \"yDCjFUUckp48f6hiUyh7ukYBjxSiGXzB\"\n }\n ],\n \"FlowId\": \"合同id\",\n \"RequestId\": \"s1728544317709049372\"\n }\n}",
|
286
286
|
"title": "二要素补充个人签署人"
|
287
287
|
},
|
@@ -612,6 +612,14 @@
|
|
612
612
|
"title": "错误示例:流程未签署完,请求出证失败"
|
613
613
|
}
|
614
614
|
],
|
615
|
+
"CreateFlowForwards": [
|
616
|
+
{
|
617
|
+
"document": "将当前合同经办人转为其他员工",
|
618
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowForwards\n<公共请求参数>\n\n{\n \"TargetUserId\": \"yDCkSUUck******************BQnKvKPVf\",\n \"FlowForwardInfos\": [\n {\n \"FlowId\": \"yDtSPUU**********************PHG7JhZM\",\n \"RecipientId\": \"yDtSPUU******************os8flxcvLpj\"\n },\n {\n \"FlowId\": \"yDtSPUU**********************PHG7s8flx\",\n \"RecipientId\": \"yDtSPUU******************oSPUxSP\"\n }\n ],\n \"Operator\": {\n \"UserId\": \"yDtSPUU******************p4z5lt9UuY\",\n \"ClientIp\": \"116.211.195.11\"\n }\n}",
|
619
|
+
"output": "{\n \"Response\": {\n \"FailedFlows\": [\n {\n \"ErrorDetail\": \"转发人状态非待签署或待填写,禁止转发\",\n \"FlowId\": \"yDtSPUU**********************PHG7JhZM\"\n }\n ],\n \"RequestId\": \"s1740641173120185806\",\n \"SuccessFlows\": [\n \"yDtSPUU**********************PHG7s8flx\"\n ]\n }\n}",
|
620
|
+
"title": "将当前合同经办人转为其他员工"
|
621
|
+
}
|
622
|
+
],
|
615
623
|
"CreateFlowGroupByFiles": [
|
616
624
|
{
|
617
625
|
"document": "1. 子合同1为B2B合同(Approvers中包含两个ApproverInfo元素);\n2. 子合同1的发起方企业自动签署(ApproverType设置为3,SIGN_SEAL对应签署控件的ComponentValue设置为自动签署使用的印章Id);\n3. 子合同2为普通B2B合同(Approvers中包含两个ApproverInfo元素,且ApproverType都是0);\n4. 子合同3为普通B2C合同(Approvers中包含两个ApproverInfo元素,C端签署人的ApproverType为1)。",
|
@@ -1381,7 +1389,7 @@
|
|
1381
1389
|
},
|
1382
1390
|
{
|
1383
1391
|
"document": "",
|
1384
|
-
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExtendedServiceAuthDetail\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwf3UUckps8dvveUEfH3DjvMmg3ZkjQ\"\n },\n \"ExtendServiceType\": \"
|
1392
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExtendedServiceAuthDetail\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwf3UUckps8dvveUEfH3DjvMmg3ZkjQ\"\n },\n \"ExtendServiceType\": \"BATCH_SIGN\",\n \"Agent\": {},\n \"Limit\": 10,\n \"Offset\": 0\n}",
|
1385
1393
|
"output": "{\n \"Response\": {\n \"AuthInfoDetail\": {\n \"AuthOrganizationTotal\": 0,\n \"AuthUserTotal\": 1,\n \"HasAuthOrganizationList\": [],\n \"HasAuthUserList\": [\n {\n \"BelongTo\": \"CurrentOrg\",\n \"MainOrganizationId\": \"\",\n \"UserId\": \"yDxjKxxxxxxxx4zjESzn1dvkm5\"\n }\n ],\n \"Name\": \"批量签署\",\n \"Type\": \"BATCH_SIGN\"\n },\n \"RequestId\": \"d03c95cb-82f4-488a-a832-4ced6e367a54\"\n }\n}",
|
1386
1394
|
"title": "查询企业扩展服务授权详情-批量签署"
|
1387
1395
|
}
|
@@ -4491,6 +4491,58 @@ def doUploadFiles(args, parsed_globals):
|
|
4491
4491
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4492
4492
|
|
4493
4493
|
|
4494
|
+
def doCreateFlowForwards(args, parsed_globals):
|
4495
|
+
g_param = parse_global_arg(parsed_globals)
|
4496
|
+
|
4497
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4498
|
+
cred = credential.CVMRoleCredential()
|
4499
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4500
|
+
cred = credential.STSAssumeRoleCredential(
|
4501
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4502
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4503
|
+
)
|
4504
|
+
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):
|
4505
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4506
|
+
else:
|
4507
|
+
cred = credential.Credential(
|
4508
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4509
|
+
)
|
4510
|
+
http_profile = HttpProfile(
|
4511
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4512
|
+
reqMethod="POST",
|
4513
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4514
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4515
|
+
)
|
4516
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4517
|
+
if g_param[OptionsDefine.Language]:
|
4518
|
+
profile.language = g_param[OptionsDefine.Language]
|
4519
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4520
|
+
client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
|
4521
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4522
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4523
|
+
model = models.CreateFlowForwardsRequest()
|
4524
|
+
model.from_json_string(json.dumps(args))
|
4525
|
+
start_time = time.time()
|
4526
|
+
while True:
|
4527
|
+
rsp = client.CreateFlowForwards(model)
|
4528
|
+
result = rsp.to_json_string()
|
4529
|
+
try:
|
4530
|
+
json_obj = json.loads(result)
|
4531
|
+
except TypeError as e:
|
4532
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4533
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4534
|
+
break
|
4535
|
+
cur_time = time.time()
|
4536
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4537
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4538
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4539
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4540
|
+
else:
|
4541
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4542
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4543
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4544
|
+
|
4545
|
+
|
4494
4546
|
def doChannelCreateFlowSignUrl(args, parsed_globals):
|
4495
4547
|
g_param = parse_global_arg(parsed_globals)
|
4496
4548
|
|
@@ -7346,6 +7398,7 @@ ACTION_MAP = {
|
|
7346
7398
|
"DescribeTemplates": doDescribeTemplates,
|
7347
7399
|
"ChannelCancelUserAutoSignEnableUrl": doChannelCancelUserAutoSignEnableUrl,
|
7348
7400
|
"UploadFiles": doUploadFiles,
|
7401
|
+
"CreateFlowForwards": doCreateFlowForwards,
|
7349
7402
|
"ChannelCreateFlowSignUrl": doChannelCreateFlowSignUrl,
|
7350
7403
|
"VerifySubOrganization": doVerifySubOrganization,
|
7351
7404
|
"ArchiveFlow": doArchiveFlow,
|
@@ -413,6 +413,13 @@
|
|
413
413
|
"output": "CreateFlowBlockchainEvidenceUrlResponse",
|
414
414
|
"status": "online"
|
415
415
|
},
|
416
|
+
"CreateFlowForwards": {
|
417
|
+
"document": "该接口用于将合同中本企业当前经办人转为本企业其他员工进行操作。\n\n注意:\n1. 转交的目标经办人需要已经加入企业,且完成实名。\n2. 仅企业拥有`超管`或`法人角色`的员工才有调用本接口的权限。\n3. 仅支持当前经办人为待签署或待填写状态时进行转交操作。\n4. 若原合同有填写控件,且当前经办人已经完成填写,则不支持进行转交。\n5. 若当前经办人已签署完成,或者处于签署流程中,则不支持进行转交。",
|
418
|
+
"input": "CreateFlowForwardsRequest",
|
419
|
+
"name": "变更本企业待签合同的经办人",
|
420
|
+
"output": "CreateFlowForwardsResponse",
|
421
|
+
"status": "online"
|
422
|
+
},
|
416
423
|
"CreateFlowGroupSignReview": {
|
417
424
|
"document": "1. 在使用[通过多文件创建合同组签署流程](https://qian.tencent.com/developers/partnerApis/startFlows/ChannelCreateFlowGroupByFiles)或[通过多模板创建合同组签署流程](https://qian.tencent.com/developers/partnerApis/startFlows/ChannelCreateFlowGroupByTemplates)创建合同组签署流程时,若指定了参数以下参数为true,则可以调用此接口提交企业内部签署审批结果,即使是自动签署也需要进行审核通过才会进行签署。\n - [FlowInfo.NeedSignReview](https://qian.tencent.com/developers/partnerApis/dataTypes/#flowinfo)\n - [FlowFileInfo.NeedSignReview](https://qian.tencent.com/developers/partnerApis/dataTypes/#flowfileinfo)\n - [FlowApproverInfo.ApproverNeedSignReview](https://qian.tencent.com/developers/partnerApis/dataTypes/#flowapproverinfo) \n\n2. 同一合同组,同一签署人可以多次提交签署审批结果,签署时的最后一个“审批结果”有效。",
|
418
425
|
"input": "CreateFlowGroupSignReviewRequest",
|
@@ -7271,6 +7278,71 @@
|
|
7271
7278
|
],
|
7272
7279
|
"type": "object"
|
7273
7280
|
},
|
7281
|
+
"CreateFlowForwardsRequest": {
|
7282
|
+
"document": "CreateFlowForwards请求参数结构体",
|
7283
|
+
"members": [
|
7284
|
+
{
|
7285
|
+
"disabled": false,
|
7286
|
+
"document": "合同对应参与方需要修改的目标经办人对应的OpenId。\n\n注意:`需要保证目标经办人已经加入企业且已实名`",
|
7287
|
+
"example": "无",
|
7288
|
+
"member": "string",
|
7289
|
+
"name": "TargetOpenId",
|
7290
|
+
"required": true,
|
7291
|
+
"type": "string"
|
7292
|
+
},
|
7293
|
+
{
|
7294
|
+
"disabled": false,
|
7295
|
+
"document": "企业签署方的合同及对应签署方",
|
7296
|
+
"example": "无",
|
7297
|
+
"member": "FlowForwardInfo",
|
7298
|
+
"name": "FlowForwardInfos",
|
7299
|
+
"required": true,
|
7300
|
+
"type": "list"
|
7301
|
+
},
|
7302
|
+
{
|
7303
|
+
"disabled": false,
|
7304
|
+
"document": "关于渠道应用的相关信息,包括渠道应用标识、第三方平台子客企业标识及第三方平台子客企业中的员工标识等内容,您可以参阅开发者中心所提供的 Agent 结构体以获取详细定义。此接口下面信息必填。<ul><li>渠道应用标识: Agent.AppId</li><li>第三方平台子客企业标识: Agent.ProxyOrganizationOpenId</li><li>第三方平台子客企业中的员工标识: Agent. ProxyOperator.OpenId</li></ul>第三方平台子客企业和员工必须已经经过实名认证",
|
7305
|
+
"example": "无",
|
7306
|
+
"member": "Agent",
|
7307
|
+
"name": "Agent",
|
7308
|
+
"required": true,
|
7309
|
+
"type": "object"
|
7310
|
+
}
|
7311
|
+
],
|
7312
|
+
"type": "object"
|
7313
|
+
},
|
7314
|
+
"CreateFlowForwardsResponse": {
|
7315
|
+
"document": "CreateFlowForwards返回参数结构体",
|
7316
|
+
"members": [
|
7317
|
+
{
|
7318
|
+
"disabled": false,
|
7319
|
+
"document": "失败的合同id以及错误详情",
|
7320
|
+
"example": "无",
|
7321
|
+
"member": "FlowForwardResult",
|
7322
|
+
"name": "FailedFlows",
|
7323
|
+
"output_required": false,
|
7324
|
+
"type": "list",
|
7325
|
+
"value_allowed_null": false
|
7326
|
+
},
|
7327
|
+
{
|
7328
|
+
"disabled": false,
|
7329
|
+
"document": "成功的合同id",
|
7330
|
+
"example": "yDtSPUUckpxlb************Hyr2w74",
|
7331
|
+
"member": "string",
|
7332
|
+
"name": "SuccessFlows",
|
7333
|
+
"output_required": false,
|
7334
|
+
"type": "list",
|
7335
|
+
"value_allowed_null": false
|
7336
|
+
},
|
7337
|
+
{
|
7338
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7339
|
+
"member": "string",
|
7340
|
+
"name": "RequestId",
|
7341
|
+
"type": "string"
|
7342
|
+
}
|
7343
|
+
],
|
7344
|
+
"type": "object"
|
7345
|
+
},
|
7274
7346
|
"CreateFlowGroupSignReviewRequest": {
|
7275
7347
|
"document": "CreateFlowGroupSignReview请求参数结构体",
|
7276
7348
|
"members": [
|
@@ -10462,6 +10534,56 @@
|
|
10462
10534
|
],
|
10463
10535
|
"usage": "in"
|
10464
10536
|
},
|
10537
|
+
"FlowForwardInfo": {
|
10538
|
+
"document": "合同转交相关信息",
|
10539
|
+
"members": [
|
10540
|
+
{
|
10541
|
+
"disabled": false,
|
10542
|
+
"document": "合同流程ID,为32位字符串。此接口的合同流程ID需要由[创建签署流程](https://qian.tencent.com/developers/companyApis/startFlows/CreateFlow)接口创建得到。",
|
10543
|
+
"example": "yDCVNUUckpw3nnnyUVScgTvSA1IaZgM7",
|
10544
|
+
"member": "string",
|
10545
|
+
"name": "FlowId",
|
10546
|
+
"required": true,
|
10547
|
+
"type": "string"
|
10548
|
+
},
|
10549
|
+
{
|
10550
|
+
"disabled": false,
|
10551
|
+
"document": "签署方经办人在合同中的参与方ID,为32位字符串。",
|
10552
|
+
"example": "yDtwEUUckp7f8w6uUuBHsZJd9KcpXpMH",
|
10553
|
+
"member": "string",
|
10554
|
+
"name": "RecipientId",
|
10555
|
+
"required": true,
|
10556
|
+
"type": "string"
|
10557
|
+
}
|
10558
|
+
],
|
10559
|
+
"usage": "in"
|
10560
|
+
},
|
10561
|
+
"FlowForwardResult": {
|
10562
|
+
"document": "转交合同结果",
|
10563
|
+
"members": [
|
10564
|
+
{
|
10565
|
+
"disabled": false,
|
10566
|
+
"document": "合同流程ID为32位字符串。您可以登录腾讯电子签控制台,在 \"合同\" -> \"合同中心\" 中查看某个合同的FlowId(在页面中展示为合同ID)。[点击查看FlowId在控制台中的位置](https://qcloudimg.tencent-cloud.cn/raw/0a83015166cfe1cb043d14f9ec4bd75e.png)。",
|
10567
|
+
"example": "yDwFmUUckpstqfvzUE1h3jo1f3cqjkGm",
|
10568
|
+
"member": "string",
|
10569
|
+
"name": "FlowId",
|
10570
|
+
"output_required": false,
|
10571
|
+
"type": "string",
|
10572
|
+
"value_allowed_null": false
|
10573
|
+
},
|
10574
|
+
{
|
10575
|
+
"disabled": false,
|
10576
|
+
"document": "如果失败,返回的错误细节。",
|
10577
|
+
"example": "合同目标转出参与方非本企业员工",
|
10578
|
+
"member": "string",
|
10579
|
+
"name": "ErrorDetail",
|
10580
|
+
"output_required": false,
|
10581
|
+
"type": "string",
|
10582
|
+
"value_allowed_null": false
|
10583
|
+
}
|
10584
|
+
],
|
10585
|
+
"usage": "out"
|
10586
|
+
},
|
10465
10587
|
"FlowGroupApproverInfo": {
|
10466
10588
|
"document": "合同组相关信息,指定合同组子合同和签署方的信息,用于补充动态签署人。",
|
10467
10589
|
"members": [
|
@@ -922,6 +922,14 @@
|
|
922
922
|
"title": "生成合同区块链存证证书查看二维码/链接"
|
923
923
|
}
|
924
924
|
],
|
925
|
+
"CreateFlowForwards": [
|
926
|
+
{
|
927
|
+
"document": "将当前合同经办人转为其他员工",
|
928
|
+
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowForwards\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyAppId\": \"\"\n },\n \"TargetOpenId\": \"open_id_1\",\n \"FlowForwardInfos\": [\n {\n \"FlowId\": \"yDtSPUU**********************PHG7JhZM\",\n \"RecipientId\": \"yDtSPUU******************os8flxcvLpj\"\n },\n {\n \"FlowId\": \"yDtSPUU**********************PHG7s8flx\",\n \"RecipientId\": \"yDtSPUU******************oSPUxSP\"\n }\n ]\n}",
|
929
|
+
"output": "{\n \"Response\": {\n \"FailedFlows\": [\n {\n \"ErrorDetail\": \"转发人状态非待签署或待填写,禁止转发\",\n \"FlowId\": \"yDtSPUU**********************PHG7JhZM\"\n }\n ],\n \"RequestId\": \"s1740641173120185806\",\n \"SuccessFlows\": [\n \"yDtSPUU**********************PHG7s8flx\"\n ]\n }\n}",
|
930
|
+
"title": "将当前合同经办人转为其他员工"
|
931
|
+
}
|
932
|
+
],
|
925
933
|
"CreateFlowGroupSignReview": [
|
926
934
|
{
|
927
935
|
"document": "1.签署审核通过企业签署人(ApproverType 设置为PERSON)\n2.使用 姓名 + 手机号 定位合同组内所有子合同的该签署人\n3.拒绝(阻断)该签署人的签署操作 (ReviewType 设置为REJECT)",
|
@@ -889,6 +889,52 @@
|
|
889
889
|
],
|
890
890
|
"usage": "out"
|
891
891
|
},
|
892
|
+
"OcrHitInfo": {
|
893
|
+
"document": "ocr关键词命中位置信息",
|
894
|
+
"members": [
|
895
|
+
{
|
896
|
+
"disabled": false,
|
897
|
+
"document": "标识模型命中还是关键词命中",
|
898
|
+
"example": "Model",
|
899
|
+
"member": "string",
|
900
|
+
"name": "Type",
|
901
|
+
"output_required": true,
|
902
|
+
"type": "string",
|
903
|
+
"value_allowed_null": false
|
904
|
+
},
|
905
|
+
{
|
906
|
+
"disabled": false,
|
907
|
+
"document": "命中关键词",
|
908
|
+
"example": "啦啦",
|
909
|
+
"member": "string",
|
910
|
+
"name": "Keyword",
|
911
|
+
"output_required": true,
|
912
|
+
"type": "string",
|
913
|
+
"value_allowed_null": false
|
914
|
+
},
|
915
|
+
{
|
916
|
+
"disabled": false,
|
917
|
+
"document": "自定义词库名称",
|
918
|
+
"example": "测试词库1",
|
919
|
+
"member": "string",
|
920
|
+
"name": "LibName",
|
921
|
+
"output_required": true,
|
922
|
+
"type": "string",
|
923
|
+
"value_allowed_null": false
|
924
|
+
},
|
925
|
+
{
|
926
|
+
"disabled": false,
|
927
|
+
"document": "位置信息",
|
928
|
+
"example": "无",
|
929
|
+
"member": "Positions",
|
930
|
+
"name": "Positions",
|
931
|
+
"output_required": true,
|
932
|
+
"type": "list",
|
933
|
+
"value_allowed_null": false
|
934
|
+
}
|
935
|
+
],
|
936
|
+
"usage": "out"
|
937
|
+
},
|
892
938
|
"OcrResult": {
|
893
939
|
"document": "用于返回OCR结果检测详情",
|
894
940
|
"members": [
|
@@ -1057,6 +1103,42 @@
|
|
1057
1103
|
"output_required": true,
|
1058
1104
|
"type": "string",
|
1059
1105
|
"value_allowed_null": false
|
1106
|
+
},
|
1107
|
+
{
|
1108
|
+
"disabled": false,
|
1109
|
+
"document": "关键词命中位置信息",
|
1110
|
+
"example": "{\"Type\": \"Keyword\", \"Keyword\": \"国家\", \"LibName\": \"\", \"Positions\": [ { \"Start\": 0, \"End\": 2 } ] }",
|
1111
|
+
"member": "OcrHitInfo",
|
1112
|
+
"name": "HitInfos",
|
1113
|
+
"output_required": false,
|
1114
|
+
"type": "list",
|
1115
|
+
"value_allowed_null": false
|
1116
|
+
}
|
1117
|
+
],
|
1118
|
+
"usage": "out"
|
1119
|
+
},
|
1120
|
+
"Positions": {
|
1121
|
+
"document": "标识命中的违规关键词位置信息",
|
1122
|
+
"members": [
|
1123
|
+
{
|
1124
|
+
"disabled": false,
|
1125
|
+
"document": "关键词起始位置",
|
1126
|
+
"example": "0",
|
1127
|
+
"member": "int64",
|
1128
|
+
"name": "Start",
|
1129
|
+
"output_required": false,
|
1130
|
+
"type": "int",
|
1131
|
+
"value_allowed_null": false
|
1132
|
+
},
|
1133
|
+
{
|
1134
|
+
"disabled": false,
|
1135
|
+
"document": "关键词结束位置",
|
1136
|
+
"example": "10",
|
1137
|
+
"member": "int64",
|
1138
|
+
"name": "End",
|
1139
|
+
"output_required": false,
|
1140
|
+
"type": "int",
|
1141
|
+
"value_allowed_null": false
|
1060
1142
|
}
|
1061
1143
|
],
|
1062
1144
|
"usage": "out"
|