tccli 3.0.1171.1__py2.py3-none-any.whl → 3.0.1173.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/billing/v20180709/api.json +125 -5
  3. tccli/services/dlc/v20210125/api.json +137 -19
  4. tccli/services/dlc/v20210125/examples.json +6 -6
  5. tccli/services/es/v20180416/api.json +89 -2
  6. tccli/services/ess/ess_client.py +110 -4
  7. tccli/services/ess/v20201111/api.json +239 -0
  8. tccli/services/ess/v20201111/examples.json +16 -0
  9. tccli/services/essbasic/essbasic_client.py +67 -14
  10. tccli/services/essbasic/v20210526/api.json +103 -0
  11. tccli/services/essbasic/v20210526/examples.json +8 -0
  12. tccli/services/faceid/v20180301/api.json +2 -2
  13. tccli/services/goosefs/v20220519/api.json +56 -11
  14. tccli/services/hunyuan/v20230901/api.json +9 -0
  15. tccli/services/iss/v20230517/api.json +58 -0
  16. tccli/services/iss/v20230517/examples.json +13 -7
  17. tccli/services/mna/mna_client.py +53 -0
  18. tccli/services/mna/v20210119/api.json +80 -0
  19. tccli/services/mna/v20210119/examples.json +8 -0
  20. tccli/services/mongodb/v20190725/api.json +57 -57
  21. tccli/services/mongodb/v20190725/examples.json +2 -2
  22. tccli/services/ms/v20180408/api.json +46 -46
  23. tccli/services/ocr/v20181119/api.json +1 -1
  24. tccli/services/organization/organization_client.py +2837 -293
  25. tccli/services/organization/v20210331/api.json +7182 -1735
  26. tccli/services/organization/v20210331/examples.json +384 -0
  27. tccli/services/tat/tat_client.py +53 -0
  28. tccli/services/tat/v20201028/api.json +149 -5
  29. tccli/services/tat/v20201028/examples.json +8 -0
  30. tccli/services/teo/v20220901/api.json +2 -2
  31. tccli/services/trocket/v20230308/api.json +65 -12
  32. tccli/services/trtc/v20190722/api.json +22 -0
  33. {tccli-3.0.1171.1.dist-info → tccli-3.0.1173.1.dist-info}/METADATA +2 -2
  34. {tccli-3.0.1171.1.dist-info → tccli-3.0.1173.1.dist-info}/RECORD +37 -37
  35. {tccli-3.0.1171.1.dist-info → tccli-3.0.1173.1.dist-info}/WHEEL +0 -0
  36. {tccli-3.0.1171.1.dist-info → tccli-3.0.1173.1.dist-info}/entry_points.txt +0 -0
  37. {tccli-3.0.1171.1.dist-info → tccli-3.0.1173.1.dist-info}/license_files/LICENSE +0 -0
@@ -35,6 +35,20 @@
35
35
  "output": "CreateBatchCancelFlowUrlResponse",
36
36
  "status": "online"
37
37
  },
38
+ "CreateBatchInitOrganizationUrl": {
39
+ "document": "支持企业进行批量初始化操作:\n\n此接口存在以下限制:\n1. 若批量操作中包含<font color=\"red\">加入集团企业</font>操作,则调用此接口的员工须有<font color=\"red\">集团企业管理权限</font>。\n2. 批量操作的企业需要已经完成电子签的认证流程。\n3. 通过此接口生成的链接在小程序端进行操作时,操作人需要是<font color=\"red\">所有企业的超管或法人</font>。\n4. 批量操作的企业,需要是<a href=\"https://qian.tencent.com/developers/companyApis/organizations/CreateOrganizationAuthUrl\" target=\"_blank\">通过平台方引导认证</a>的企业。\n5. <font color=\"red\">操作链接过期时间默认为生成链接后7天。</font>",
40
+ "input": "CreateBatchInitOrganizationUrlRequest",
41
+ "name": "批量操作企业初始化",
42
+ "output": "CreateBatchInitOrganizationUrlResponse",
43
+ "status": "online"
44
+ },
45
+ "CreateBatchOrganizationAuthorizationUrl": {
46
+ "document": "此接口用于获取企业批量认证链接-单链接包含多条认证流。\n\n前提条件:已调用 [CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任务接口](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks) 和[查询企业批量认证链接DescribeBatchOrganizationRegistrationUrls](https://qian.tencent.com/developers/companyApis/organizations/DescribeBatchOrganizationRegistrationUrls) 确保认证任务已经完成。\n\n异步任务的处理完成时间视当前已提交的任务量、任务的复杂程度等因素决定,正常情况下 3~5 秒即可完成,但也可能需要更长的时间。\n此链接包含多条认证流程,使用该链接可以批量的对企业进行认证。",
47
+ "input": "CreateBatchOrganizationAuthorizationUrlRequest",
48
+ "name": "创建企业批量认证链接-单链接",
49
+ "output": "CreateBatchOrganizationAuthorizationUrlResponse",
50
+ "status": "online"
51
+ },
38
52
  "CreateBatchOrganizationRegistrationTasks": {
39
53
  "document": "本接口(CreateBatchOrganizationRegistrationTasks)用于批量创建企业认证链接\n该接口为异步提交任务接口,需要跟查询企业批量认证链接(DescribeBatchOrganizationRegistrationUrls) 配合使用.\n\n批量创建链接有以下限制:\n\n1. 单次最多创建10个企业。\n2. 一天同一家企业最多创建8000家企业。\n3. 同一批创建的企业不能重复 其中包括 企业名称,企业统一信用代码\n4. 跳转到小程序的实现,参考微信官方文档(分为全屏、半屏两种方式),如何配置也可以请参考: 跳转电子签小程序配置\n\n注:\n\n1. **此接口需要购买单独的实名套餐包方可调用,如有需求请联系对接人员评估**\n \n2. 如果生成的链接是APP链接,跳转到小程序的实现,参考微信官方文档(分为<a href=\"https://developers.weixin.qq.com/miniprogram/dev/api/navigate/wx.navigateToMiniProgram.html\">全屏</a>、<a href=\"https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html\">半屏</a>两种方式),如何配置也可以请参考: <a href=\"https://qian.tencent.com/developers/company/openwxminiprogram\">跳转电子签小程序配置</a>\n \n\n**腾讯电子签小程序的AppID 和 原始Id如下:**\n\n| 小程序 | AppID | 原始ID |\n| --- | --- | --- |\n| 腾讯电子签(正式版) | wxa023b292fd19d41d | gh_da88f6188665 |\n| 腾讯电子签Demo | wx371151823f6f3edf | gh_39a5d3de69fa |",
40
54
  "input": "CreateBatchOrganizationRegistrationTasksRequest",
@@ -2129,6 +2143,220 @@
2129
2143
  ],
2130
2144
  "type": "object"
2131
2145
  },
2146
+ "CreateBatchInitOrganizationUrlRequest": {
2147
+ "document": "CreateBatchInitOrganizationUrl请求参数结构体",
2148
+ "members": [
2149
+ {
2150
+ "disabled": false,
2151
+ "document": "执行本接口操作的员工信息。\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
2152
+ "example": "无",
2153
+ "member": "UserInfo",
2154
+ "name": "Operator",
2155
+ "required": true,
2156
+ "type": "object"
2157
+ },
2158
+ {
2159
+ "disabled": false,
2160
+ "document": "初始化操作类型\n<ul><li>CREATE_SEAL : 创建印章</li>\n<li>AUTH_JOIN_ORGANIZATION_GROUP : 加入集团企业</li>\n<li>OPEN_AUTO_SIGN :开通企业自动签署</li></ul>",
2161
+ "example": "无",
2162
+ "member": "string",
2163
+ "name": "OperateTypes",
2164
+ "required": true,
2165
+ "type": "list"
2166
+ },
2167
+ {
2168
+ "disabled": false,
2169
+ "document": "批量操作的企业Id列表,最大支持50个",
2170
+ "example": "无",
2171
+ "member": "string",
2172
+ "name": "OrganizationIds",
2173
+ "required": true,
2174
+ "type": "list"
2175
+ },
2176
+ {
2177
+ "disabled": false,
2178
+ "document": "代理相关应用信息,如集团主企业代子企业操作的场景中ProxyOrganizationId必填",
2179
+ "example": "无",
2180
+ "member": "Agent",
2181
+ "name": "Agent",
2182
+ "required": false,
2183
+ "type": "object"
2184
+ }
2185
+ ],
2186
+ "type": "object"
2187
+ },
2188
+ "CreateBatchInitOrganizationUrlResponse": {
2189
+ "document": "CreateBatchInitOrganizationUrl返回参数结构体",
2190
+ "members": [
2191
+ {
2192
+ "disabled": false,
2193
+ "document": "小程序路径",
2194
+ "example": "无",
2195
+ "member": "string",
2196
+ "name": "MiniAppPath",
2197
+ "output_required": true,
2198
+ "type": "string",
2199
+ "value_allowed_null": false
2200
+ },
2201
+ {
2202
+ "disabled": false,
2203
+ "document": "操作长链",
2204
+ "example": "无",
2205
+ "member": "string",
2206
+ "name": "OperateLongUrl",
2207
+ "output_required": true,
2208
+ "type": "string",
2209
+ "value_allowed_null": false
2210
+ },
2211
+ {
2212
+ "disabled": false,
2213
+ "document": "操作短链",
2214
+ "example": "无",
2215
+ "member": "string",
2216
+ "name": "OperateShortUrl",
2217
+ "output_required": true,
2218
+ "type": "string",
2219
+ "value_allowed_null": false
2220
+ },
2221
+ {
2222
+ "disabled": false,
2223
+ "document": "操作二维码",
2224
+ "example": "无",
2225
+ "member": "string",
2226
+ "name": "QRCodeUrl",
2227
+ "output_required": true,
2228
+ "type": "string",
2229
+ "value_allowed_null": false
2230
+ },
2231
+ {
2232
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2233
+ "member": "string",
2234
+ "name": "RequestId",
2235
+ "type": "string"
2236
+ }
2237
+ ],
2238
+ "type": "object"
2239
+ },
2240
+ "CreateBatchOrganizationAuthorizationUrlRequest": {
2241
+ "document": "CreateBatchOrganizationAuthorizationUrl请求参数结构体",
2242
+ "members": [
2243
+ {
2244
+ "disabled": false,
2245
+ "document": "执行本接口操作的员工信息。\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
2246
+ "example": "无",
2247
+ "member": "UserInfo",
2248
+ "name": "Operator",
2249
+ "required": true,
2250
+ "type": "object"
2251
+ },
2252
+ {
2253
+ "disabled": false,
2254
+ "document": "组织机构超管姓名。 在注册流程中,必须是超管本人进行操作。\n此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminName 保持一致。",
2255
+ "example": "典子谦",
2256
+ "member": "string",
2257
+ "name": "AdminName",
2258
+ "required": true,
2259
+ "type": "string"
2260
+ },
2261
+ {
2262
+ "disabled": false,
2263
+ "document": "组织机构超管手机号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 Admin Mobile保持一致。",
2264
+ "example": "13200000000",
2265
+ "member": "string",
2266
+ "name": "AdminMobile",
2267
+ "required": true,
2268
+ "type": "string"
2269
+ },
2270
+ {
2271
+ "disabled": false,
2272
+ "document": "代理相关应用信息,如集团主企业代子企业操作的场景中ProxyOrganizationId必填",
2273
+ "example": "无",
2274
+ "member": "Agent",
2275
+ "name": "Agent",
2276
+ "required": false,
2277
+ "type": "object"
2278
+ },
2279
+ {
2280
+ "disabled": false,
2281
+ "document": "企业批量认证链接的子任务 SubTaskId,该 SubTaskId 是通过接口 查询企业批量认证链接 DescribeBatchOrganizationRegistrationUrls 获得。此参数需与超管个人三要素(AdminName,AdminMobile,AdminIdCardNumber)配合使用。若 SubTaskId 不属于传入的超级管理员,将进行筛选。",
2282
+ "example": "[\"yDRS4UUgygqdcj56UuO4zjExBQcOiB68\",\"yDRS4UUgygqdcj5pUuO4zjEu602GFIe6\"]",
2283
+ "member": "string",
2284
+ "name": "SubTaskIds",
2285
+ "required": false,
2286
+ "type": "list"
2287
+ },
2288
+ {
2289
+ "disabled": false,
2290
+ "document": "组织机构超管证件类型支持以下类型\n- ID_CARD : 居民身份证 (默认值)\n- HONGKONG_AND_MACAO : 港澳居民来往内地通行证\n- HONGKONG_MACAO_AND_TAIWAN : 港澳台居民居住证(格式同居民身份证)\n此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardType保持一致。",
2291
+ "example": "ID_CARD",
2292
+ "member": "string",
2293
+ "name": "AdminIdCardType",
2294
+ "required": false,
2295
+ "type": "string"
2296
+ },
2297
+ {
2298
+ "disabled": false,
2299
+ "document": "组织机构超管证件号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardNumber保持一致。",
2300
+ "example": "620000198802020000",
2301
+ "member": "string",
2302
+ "name": "AdminIdCardNumber",
2303
+ "required": false,
2304
+ "type": "string"
2305
+ },
2306
+ {
2307
+ "disabled": false,
2308
+ "document": "要跳转的链接类型<ul><li> **HTTP**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型 ,此时返回长链 (默认类型)</li><li>**HTTP_SHORT_URL**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型,此时返回短链</li><li>**APP**: 第三方APP或小程序跳转电子签小程序的path, APP或者小程序跳转适合此类型</li><li>**QR_CODE**: 跳转电子签小程序的http_url的二维码形式, 可以在页面展示适合此类型</li></ul>",
2309
+ "example": "无",
2310
+ "member": "string",
2311
+ "name": "Endpoint",
2312
+ "required": false,
2313
+ "type": "string"
2314
+ }
2315
+ ],
2316
+ "type": "object"
2317
+ },
2318
+ "CreateBatchOrganizationAuthorizationUrlResponse": {
2319
+ "document": "CreateBatchOrganizationAuthorizationUrl返回参数结构体",
2320
+ "members": [
2321
+ {
2322
+ "disabled": false,
2323
+ "document": "批量企业注册链接-单链接包含多条认证流,根据Endpoint的不同设置,返回不同的链接地址。失效时间:7天\n跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表\n<table> <thead> <tr> <th>Endpoint</th> <th>示例</th> <th>链接有效期限</th> </tr> </thead> <tbody>\n <tr> <td>HTTP</td> <td>https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHHURDfBxSB2rj2Bfa</td> <td>7天</td> </tr> \n<tr> <td>HTTP_SHORT_URL</td> <td>https://test.essurl.cn/8gDKUBAWK8</td> <td>7天</td> </tr> \n<tr> <td>APP</td> <td>pages/guide/index?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHpURDfR6iEkdpsDde</td> <td>7天</td> </tr><tr> <td>QR_CODE</td> <td>https://dyn.test.ess.tencent.cn/imgs/qrcode_urls/authorization_enterprise_for_batch_submit/yDCHHUUckpbdauq9UEjnoFDCCumAMmv1.png</td> <td>7天</td> </tr> </tbody> </table>\n注: \n`1.创建的链接应避免被转义,如:&被转义为\\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义`\n",
2324
+ "example": "pages/guide/index?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHpURDfR6iEkdpsDde",
2325
+ "member": "string",
2326
+ "name": "AuthUrl",
2327
+ "output_required": false,
2328
+ "type": "string",
2329
+ "value_allowed_null": false
2330
+ },
2331
+ {
2332
+ "disabled": false,
2333
+ "document": "认证流认证失败信息",
2334
+ "example": "无",
2335
+ "member": "string",
2336
+ "name": "ErrorMessages",
2337
+ "output_required": false,
2338
+ "type": "list",
2339
+ "value_allowed_null": false
2340
+ },
2341
+ {
2342
+ "disabled": false,
2343
+ "document": "链接过期时间,为 7 天后,创建时间,格式为Unix标准时间戳(秒)。",
2344
+ "example": "无",
2345
+ "member": "uint64",
2346
+ "name": "ExpireTime",
2347
+ "output_required": false,
2348
+ "type": "int",
2349
+ "value_allowed_null": false
2350
+ },
2351
+ {
2352
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2353
+ "member": "string",
2354
+ "name": "RequestId",
2355
+ "type": "string"
2356
+ }
2357
+ ],
2358
+ "type": "object"
2359
+ },
2132
2360
  "CreateBatchOrganizationRegistrationTasksRequest": {
2133
2361
  "document": "CreateBatchOrganizationRegistrationTasks请求参数结构体",
2134
2362
  "members": [
@@ -12500,6 +12728,17 @@
12500
12728
  "required": false,
12501
12729
  "type": "list",
12502
12730
  "value_allowed_null": false
12731
+ },
12732
+ {
12733
+ "disabled": false,
12734
+ "document": "签署方是否可以转他人处理\n\n<ul><li> **false** : ( 默认)可以转他人处理</li>\n<li> **true** :不可以转他人处理</li></ul>",
12735
+ "example": "无",
12736
+ "member": "bool",
12737
+ "name": "NoTransfer",
12738
+ "output_required": false,
12739
+ "required": false,
12740
+ "type": "bool",
12741
+ "value_allowed_null": false
12503
12742
  }
12504
12743
  ],
12505
12744
  "usage": "both"
@@ -88,6 +88,22 @@
88
88
  "title": "获取批量撤销签署流程链接部分成功"
89
89
  }
90
90
  ],
91
+ "CreateBatchInitOrganizationUrl": [
92
+ {
93
+ "document": "",
94
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchInitOrganizationUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDxjOXXgydjfxgnzUuO4zjEWA07rD2xl\"\n },\n \"OperateTypes\": [\n \"OPEN_AUTO_SIGN\",\n \"AUTH_JOIN_ORGANIZATION_GROUP\",\n \"CREATE_SEAL\"\n ],\n \"OrganizationIds\": [\n \"yDCpSUUckpao78exUIqrf58JQDTLbbTr\",\n \"yDCpSUUckpao696tUIqrf5x1nPoxNy7C\"\n ]\n}",
95
+ "output": "{\n \"Response\": {\n \"MiniAppPath\": \"pages/guide/index?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDAHpURDfyLc5LgBhXb6\",\n \"OperateLongUrl\": \"https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDCHpURDfyLc5LgBhXb6\",\n \"OperateShortUrl\": \"https://essurl.cn/zahbUBHxW3\",\n \"QRCodeUrl\": \"https://dyn.ess.tencent.cn/imgs/qrcode_urls/batch_initialization_organizations/yDCHHUUckpacc9ijUuXGmVcuzZCNH5pF.png\",\n \"RequestId\": \"s1723520103899037060\"\n }\n}",
96
+ "title": "创建批量操作企业初始化链接"
97
+ }
98
+ ],
99
+ "CreateBatchOrganizationAuthorizationUrl": [
100
+ {
101
+ "document": "根据批量注册企业子任务 Id 和超管的三要素生成批量认证链接。\n1. 批量注册企业子任务是由接口 [CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任务接口](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks) 生成的。\n2. 调用[查询企业批量认证链接DescribeBatchOrganizationRegistrationUrls](https://qian.tencent.com/developers/companyApis/organizations/DescribeBatchOrganizationRegistrationUrls),获得子任务 TaskId。\n3. Endpoint 设置为短链,会生成一条短链。",
102
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchOrganizationAuthorizationUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwf3UUckps8dvveUEfH3DjvMmg3ZkjQ\",\n \"ClientIp\": \"8.8.8.8\"\n },\n \"SubTaskIds\": [\n \"yDCHlUUckpaeefmfUxPr7deu6g5PvvJz\",\n \"yDCHlUUckpaeix9uU0ETNLSzHbAxJxLj\"\n ],\n \"AdminName\": \"典子谦\",\n \"AdminMobile\": \"13200000000\",\n \"AdminIdCardType\": \"ID_CARD\",\n \"AdminIdCardNumber\": \"620000198802020000\",\n \"Endpoint\": \"HTTP_SHORT_URL\"\n}",
103
+ "output": "{\n \"Response\": {\n \"AuthUrl\": \"https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHHURDfCVEoeNYGCc6\",\n \"ErrorMessages\": [],\n \"ExpireTime\": 1724165376,\n \"RequestId\": \"s1723560576553977682\"\n }\n}",
104
+ "title": "根据批量注册企业子任务 Id 和超管的三要素生成批量认证链接"
105
+ }
106
+ ],
91
107
  "CreateBatchOrganizationRegistrationTasks": [
92
108
  {
93
109
  "document": "",
@@ -2723,6 +2723,58 @@ def doDescribeChannelOrganizations(args, parsed_globals):
2723
2723
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2724
2724
 
2725
2725
 
2726
+ def doCreateBatchInitOrganizationUrl(args, parsed_globals):
2727
+ g_param = parse_global_arg(parsed_globals)
2728
+
2729
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2730
+ cred = credential.CVMRoleCredential()
2731
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2732
+ cred = credential.STSAssumeRoleCredential(
2733
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2734
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2735
+ )
2736
+ 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):
2737
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2738
+ else:
2739
+ cred = credential.Credential(
2740
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2741
+ )
2742
+ http_profile = HttpProfile(
2743
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2744
+ reqMethod="POST",
2745
+ endpoint=g_param[OptionsDefine.Endpoint],
2746
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2747
+ )
2748
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2749
+ if g_param[OptionsDefine.Language]:
2750
+ profile.language = g_param[OptionsDefine.Language]
2751
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2752
+ client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
2753
+ client._sdkVersion += ("_CLI_" + __version__)
2754
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2755
+ model = models.CreateBatchInitOrganizationUrlRequest()
2756
+ model.from_json_string(json.dumps(args))
2757
+ start_time = time.time()
2758
+ while True:
2759
+ rsp = client.CreateBatchInitOrganizationUrl(model)
2760
+ result = rsp.to_json_string()
2761
+ try:
2762
+ json_obj = json.loads(result)
2763
+ except TypeError as e:
2764
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2765
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2766
+ break
2767
+ cur_time = time.time()
2768
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2769
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2770
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2771
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2772
+ else:
2773
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2774
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2775
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2776
+
2777
+
2726
2778
  def doSendFlow(args, parsed_globals):
2727
2779
  g_param = parse_global_arg(parsed_globals)
2728
2780
 
@@ -4231,7 +4283,7 @@ def doDescribeCustomFlowIdsByFlowId(args, parsed_globals):
4231
4283
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4232
4284
 
4233
4285
 
4234
- def doCreateH5FaceIdUrl(args, parsed_globals):
4286
+ def doDescribeFaceIdResults(args, parsed_globals):
4235
4287
  g_param = parse_global_arg(parsed_globals)
4236
4288
 
4237
4289
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4260,11 +4312,11 @@ def doCreateH5FaceIdUrl(args, parsed_globals):
4260
4312
  client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
4261
4313
  client._sdkVersion += ("_CLI_" + __version__)
4262
4314
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4263
- model = models.CreateH5FaceIdUrlRequest()
4315
+ model = models.DescribeFaceIdResultsRequest()
4264
4316
  model.from_json_string(json.dumps(args))
4265
4317
  start_time = time.time()
4266
4318
  while True:
4267
- rsp = client.CreateH5FaceIdUrl(model)
4319
+ rsp = client.DescribeFaceIdResults(model)
4268
4320
  result = rsp.to_json_string()
4269
4321
  try:
4270
4322
  json_obj = json.loads(result)
@@ -4283,7 +4335,7 @@ def doCreateH5FaceIdUrl(args, parsed_globals):
4283
4335
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4284
4336
 
4285
4337
 
4286
- def doDescribeFaceIdResults(args, parsed_globals):
4338
+ def doCreateChannelOrganizationInfoChangeUrl(args, parsed_globals):
4287
4339
  g_param = parse_global_arg(parsed_globals)
4288
4340
 
4289
4341
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4312,11 +4364,11 @@ def doDescribeFaceIdResults(args, parsed_globals):
4312
4364
  client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
4313
4365
  client._sdkVersion += ("_CLI_" + __version__)
4314
4366
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4315
- model = models.DescribeFaceIdResultsRequest()
4367
+ model = models.CreateChannelOrganizationInfoChangeUrlRequest()
4316
4368
  model.from_json_string(json.dumps(args))
4317
4369
  start_time = time.time()
4318
4370
  while True:
4319
- rsp = client.DescribeFaceIdResults(model)
4371
+ rsp = client.CreateChannelOrganizationInfoChangeUrl(model)
4320
4372
  result = rsp.to_json_string()
4321
4373
  try:
4322
4374
  json_obj = json.loads(result)
@@ -4335,7 +4387,7 @@ def doDescribeFaceIdResults(args, parsed_globals):
4335
4387
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4336
4388
 
4337
4389
 
4338
- def doCreateChannelOrganizationInfoChangeUrl(args, parsed_globals):
4390
+ def doDescribeUsers(args, parsed_globals):
4339
4391
  g_param = parse_global_arg(parsed_globals)
4340
4392
 
4341
4393
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4364,11 +4416,11 @@ def doCreateChannelOrganizationInfoChangeUrl(args, parsed_globals):
4364
4416
  client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
4365
4417
  client._sdkVersion += ("_CLI_" + __version__)
4366
4418
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4367
- model = models.CreateChannelOrganizationInfoChangeUrlRequest()
4419
+ model = models.DescribeUsersRequest()
4368
4420
  model.from_json_string(json.dumps(args))
4369
4421
  start_time = time.time()
4370
4422
  while True:
4371
- rsp = client.CreateChannelOrganizationInfoChangeUrl(model)
4423
+ rsp = client.DescribeUsers(model)
4372
4424
  result = rsp.to_json_string()
4373
4425
  try:
4374
4426
  json_obj = json.loads(result)
@@ -4751,7 +4803,7 @@ def doCancelFlow(args, parsed_globals):
4751
4803
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4752
4804
 
4753
4805
 
4754
- def doDescribeUsers(args, parsed_globals):
4806
+ def doCreateH5FaceIdUrl(args, parsed_globals):
4755
4807
  g_param = parse_global_arg(parsed_globals)
4756
4808
 
4757
4809
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4780,11 +4832,11 @@ def doDescribeUsers(args, parsed_globals):
4780
4832
  client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
4781
4833
  client._sdkVersion += ("_CLI_" + __version__)
4782
4834
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4783
- model = models.DescribeUsersRequest()
4835
+ model = models.CreateH5FaceIdUrlRequest()
4784
4836
  model.from_json_string(json.dumps(args))
4785
4837
  start_time = time.time()
4786
4838
  while True:
4787
- rsp = client.DescribeUsers(model)
4839
+ rsp = client.CreateH5FaceIdUrl(model)
4788
4840
  result = rsp.to_json_string()
4789
4841
  try:
4790
4842
  json_obj = json.loads(result)
@@ -6740,6 +6792,7 @@ ACTION_MAP = {
6740
6792
  "ChannelDescribeRoles": doChannelDescribeRoles,
6741
6793
  "DescribeResourceUrlsByFlows": doDescribeResourceUrlsByFlows,
6742
6794
  "DescribeChannelOrganizations": doDescribeChannelOrganizations,
6795
+ "CreateBatchInitOrganizationUrl": doCreateBatchInitOrganizationUrl,
6743
6796
  "SendFlow": doSendFlow,
6744
6797
  "DescribeFaceIdPhotos": doDescribeFaceIdPhotos,
6745
6798
  "ChannelDescribeFlowComponents": doChannelDescribeFlowComponents,
@@ -6769,9 +6822,9 @@ ACTION_MAP = {
6769
6822
  "VerifySubOrganization": doVerifySubOrganization,
6770
6823
  "ArchiveFlow": doArchiveFlow,
6771
6824
  "DescribeCustomFlowIdsByFlowId": doDescribeCustomFlowIdsByFlowId,
6772
- "CreateH5FaceIdUrl": doCreateH5FaceIdUrl,
6773
6825
  "DescribeFaceIdResults": doDescribeFaceIdResults,
6774
6826
  "CreateChannelOrganizationInfoChangeUrl": doCreateChannelOrganizationInfoChangeUrl,
6827
+ "DescribeUsers": doDescribeUsers,
6775
6828
  "CreateFaceIdSign": doCreateFaceIdSign,
6776
6829
  "CheckVerifyCodeMatchFlowId": doCheckVerifyCodeMatchFlowId,
6777
6830
  "ChannelCreateFlowGroupByFiles": doChannelCreateFlowGroupByFiles,
@@ -6779,7 +6832,7 @@ ACTION_MAP = {
6779
6832
  "DescribeFlowDetailInfo": doDescribeFlowDetailInfo,
6780
6833
  "ChannelDescribeBillUsageDetail": doChannelDescribeBillUsageDetail,
6781
6834
  "CancelFlow": doCancelFlow,
6782
- "DescribeUsers": doDescribeUsers,
6835
+ "CreateH5FaceIdUrl": doCreateH5FaceIdUrl,
6783
6836
  "DescribeFlowApprovers": doDescribeFlowApprovers,
6784
6837
  "DeleteSeal": doDeleteSeal,
6785
6838
  "ModifyFlowDeadline": doModifyFlowDeadline,
@@ -315,6 +315,13 @@
315
315
  "output": "ChannelVerifyPdfResponse",
316
316
  "status": "online"
317
317
  },
318
+ "CreateBatchInitOrganizationUrl": {
319
+ "document": "支持企业进行批量初始化操作:\n\n此接口存在以下限制:\n1. 批量操作的企业需要已经完成电子签的认证流程。\n2. 通过此接口生成的链接在小程序端进行操作时,操作人需要是<font color=\"red\">所有企业的超管或法人</font>。\n3. 批量操作的企业,需要是本方第三方应用下的企业。\n4. <font color=\"red\">操作链接过期时间默认为生成链接后7天。</font>",
320
+ "input": "CreateBatchInitOrganizationUrlRequest",
321
+ "name": "批量操作企业初始化",
322
+ "output": "CreateBatchInitOrganizationUrlResponse",
323
+ "status": "online"
324
+ },
318
325
  "CreateBatchOrganizationRegistrationTasks": {
319
326
  "document": "该接口用于批量创建企业认证链接, 可以支持PC浏览器,H5和小程序三种途径。\n此接口为异步提交任务接口,需要与[查询子企业批量认证链接](https://qcloudimg.tencent-cloud.cn/raw/1d3737991b2a3be78002bd78a47d6917.png)配合使用,整体流程如下图。\n![image](https://qcloudimg.tencent-cloud.cn/raw/654aa2a72ab7d42f06464ea33c50c3bb.png)\n\n\n\n**注意**\n\n1. 单次最多创建10个子企业。\n2. 一天内,同一家企业最多创建8000个子企业。\n3. 同一批创建的子客户不能重复,包括企业名称、企业统一信用代码和子客户经办人openId。\n4. 跳转到小程序的实现,请参考微信官方文档(分为<a href=\"https://developers.weixin.qq.com/miniprogram/dev/api/navigate/wx.navigateToMiniProgram.html\">全屏</a>、<a href=\"https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html\">半屏</a>两种方式)。如何配置跳转电子签小程序,可参考:<a href=\"https://qian.tencent.com/developers/company/openwxminiprogram\">跳转电子签小程序配置</a>。\n\n\n\n**腾讯电子签小程序的AppID 和 原始Id如下:**\n\n| 小程序 | AppID | 原始ID |\n| ------------ | ------------ | ------------ |\n| 腾讯电子签(正式版) | wxa023b292fd19d41d | gh_da88f6188665 |\n| 腾讯电子签Demo | wx371151823f6f3edf | gh_39a5d3de69fa |",
320
327
  "input": "CreateBatchOrganizationRegistrationTasksRequest",
@@ -5841,6 +5848,91 @@
5841
5848
  ],
5842
5849
  "usage": "in"
5843
5850
  },
5851
+ "CreateBatchInitOrganizationUrlRequest": {
5852
+ "document": "CreateBatchInitOrganizationUrl请求参数结构体",
5853
+ "members": [
5854
+ {
5855
+ "disabled": false,
5856
+ "document": "应用相关信息。 此接口Agent.AppId 必填。",
5857
+ "example": "无",
5858
+ "member": "Agent",
5859
+ "name": "Agent",
5860
+ "required": true,
5861
+ "type": "object"
5862
+ },
5863
+ {
5864
+ "disabled": false,
5865
+ "document": "初始化操作类型\n<ul><li>CREATE_SEAL : 创建印章</li>\n<li>OPEN_AUTO_SIGN :开通企业自动签署</li></ul>",
5866
+ "example": "无",
5867
+ "member": "string",
5868
+ "name": "OperateTypes",
5869
+ "required": true,
5870
+ "type": "list"
5871
+ },
5872
+ {
5873
+ "disabled": false,
5874
+ "document": "批量操作的企业列表在第三方平台的企业Id列表,即ProxyOrganizationOpenId列表,最大支持50个",
5875
+ "example": "无",
5876
+ "member": "string",
5877
+ "name": "ProxyOrganizationOpenIds",
5878
+ "required": true,
5879
+ "type": "list"
5880
+ }
5881
+ ],
5882
+ "type": "object"
5883
+ },
5884
+ "CreateBatchInitOrganizationUrlResponse": {
5885
+ "document": "CreateBatchInitOrganizationUrl返回参数结构体",
5886
+ "members": [
5887
+ {
5888
+ "disabled": false,
5889
+ "document": "小程序路径",
5890
+ "example": "无",
5891
+ "member": "string",
5892
+ "name": "MiniAppPath",
5893
+ "output_required": true,
5894
+ "type": "string",
5895
+ "value_allowed_null": false
5896
+ },
5897
+ {
5898
+ "disabled": false,
5899
+ "document": "操作长链",
5900
+ "example": "无",
5901
+ "member": "string",
5902
+ "name": "OperateLongUrl",
5903
+ "output_required": true,
5904
+ "type": "string",
5905
+ "value_allowed_null": false
5906
+ },
5907
+ {
5908
+ "disabled": false,
5909
+ "document": "操作短链",
5910
+ "example": "无",
5911
+ "member": "string",
5912
+ "name": "OperateShortUrl",
5913
+ "output_required": true,
5914
+ "type": "string",
5915
+ "value_allowed_null": false
5916
+ },
5917
+ {
5918
+ "disabled": false,
5919
+ "document": "操作二维码",
5920
+ "example": "无",
5921
+ "member": "string",
5922
+ "name": "QRCodeUrl",
5923
+ "output_required": true,
5924
+ "type": "string",
5925
+ "value_allowed_null": false
5926
+ },
5927
+ {
5928
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5929
+ "member": "string",
5930
+ "name": "RequestId",
5931
+ "type": "string"
5932
+ }
5933
+ ],
5934
+ "type": "object"
5935
+ },
5844
5936
  "CreateBatchOrganizationRegistrationTasksRequest": {
5845
5937
  "document": "CreateBatchOrganizationRegistrationTasks请求参数结构体",
5846
5938
  "members": [
@@ -10760,6 +10852,17 @@
10760
10852
  "required": false,
10761
10853
  "type": "list",
10762
10854
  "value_allowed_null": false
10855
+ },
10856
+ {
10857
+ "disabled": false,
10858
+ "document": "签署方是否可以转他人处理\n\n<ul><li> **false** : ( 默认)可以转他人处理</li>\n<li> **true** :不可以转他人处理</li></ul>",
10859
+ "example": "无",
10860
+ "member": "bool",
10861
+ "name": "NoTransfer",
10862
+ "output_required": false,
10863
+ "required": false,
10864
+ "type": "bool",
10865
+ "value_allowed_null": false
10763
10866
  }
10764
10867
  ],
10765
10868
  "usage": "both"
@@ -672,6 +672,14 @@
672
672
  "title": "验证不通过"
673
673
  }
674
674
  ],
675
+ "CreateBatchInitOrganizationUrl": [
676
+ {
677
+ "document": "",
678
+ "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchInitOrganizationUrl\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOrganizationOpenId\": \"\",\n \"AppId\": \"yDKHHUUckpacc9ijUuXGmVcuzACNH5pF\"\n },\n \"ProxyOrganizationOpenIds\": [\n \"tencent-testorg-cd\",\n \"tencent-testorg-ca\",\n \"tencent-testorg-zhangy\",\n \"tencent-testorg-tianjing\",\n \"tencent-testorg-hongkong\"\n ],\n \"OperateTypes\": [\n \"OPEN_AUTO_SIGN\",\n \"CREATE_SEAL\"\n ]\n}",
679
+ "output": "{\n \"Response\": {\n \"MiniAppPath\": \"pages/guide/index?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDAHpURDfyLc5LgBhXb6\",\n \"OperateLongUrl\": \"https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDCHpURDfyLc5LgBhXb6\",\n \"OperateShortUrl\": \"https://essurl.cn/zahbUBHxW3\",\n \"QRCodeUrl\": \"https://dyn.ess.tencent.cn/imgs/qrcode_urls/batch_initialization_organizations/yDCHHUUckpacc9ijUuXGmVcuzZCNH5pF.png\",\n \"RequestId\": \"s1723520103899037060\"\n }\n}",
680
+ "title": "创建批量操作企业初始化链接"
681
+ }
682
+ ],
675
683
  "CreateBatchOrganizationRegistrationTasks": [
676
684
  {
677
685
  "document": "用户同时创建3个企业, 创建链接成功",
@@ -413,7 +413,7 @@
413
413
  "members": [
414
414
  {
415
415
  "disabled": false,
416
- "document": "认证结果码\n收费结果码:\n'0': '认证通过'\n'-1': '认证未通过'\n'-6': '持卡人信息有误'\n'-7': '未开通无卡支付'\n'-8': '此卡被没收'\n'-9': '无效卡号'\n'-10': '此卡无对应发卡行'\n'-11': '该卡未初始化或睡眠卡'\n'-12': '作弊卡、吞卡'\n'-13': '此卡已挂失'\n'-14': '该卡已过期'\n'-15': '受限制的卡'\n'-16': '密码错误次数超限'\n'-17': '发卡行不支持此交易'\n不收费结果码:\n'-2': '姓名校验不通过'\n'-3': '身份证号码有误'\n'-4': '银行卡号码有误'\n'-5': '手机号码不合法'\n'-18': '验证中心服务繁忙'\n'-19': '验证次数超限,请次日重试'",
416
+ "document": "认证结果码\n收费结果码:\n'0': '认证通过'\n'-1': '认证未通过'\n'-6': '持卡人信息有误'\n'-7': '未开通无卡支付'\n'-8': '此卡被没收'\n'-9': '无效卡号'\n'-10': '此卡无对应发卡行'\n'-11': '该卡未初始化或睡眠卡'\n'-12': '作弊卡、吞卡'\n'-13': '此卡已挂失'\n'-14': '该卡已过期'\n'-15': '受限制的卡'\n'-16': '密码错误次数超限'\n'-17': '发卡行不支持此交易'\n不收费结果码:\n'-2': '姓名校验不通过'\n'-3': '身份证号码有误'\n'-4': '银行卡号码有误'\n'-5': '手机号码不合法'\n'-18': '验证中心服务繁忙'\n'-19': '验证次数超限,请次日重试'\n'-20': '该证件号暂不支持核验,当前仅支持二代身份证'",
417
417
  "example": "0",
418
418
  "member": "string",
419
419
  "name": "Result",
@@ -496,7 +496,7 @@
496
496
  "members": [
497
497
  {
498
498
  "disabled": false,
499
- "document": "认证结果码\n收费结果码:\n'0': '认证通过'\n'-1': '认证未通过'\n'-5': '持卡人信息有误'\n'-6': '未开通无卡支付'\n'-7': '此卡被没收'\n'-8': '无效卡号'\n'-9': '此卡无对应发卡行'\n'-10': '该卡未初始化或睡眠卡'\n'-11': '作弊卡、吞卡'\n'-12': '此卡已挂失'\n'-13': '该卡已过期'\n'-14': '受限制的卡'\n'-15': '密码错误次数超限'\n'-16': '发卡行不支持此交易'\n不收费结果码:\n'-2': '姓名校验不通过'\n'-3': '身份证号码有误'\n'-4': '银行卡号码有误'\n'-17': '验证中心服务繁忙'\n'-18': '验证次数超限,请次日重试'",
499
+ "document": "认证结果码\n收费结果码:\n'0': '认证通过'\n'-1': '认证未通过'\n'-5': '持卡人信息有误'\n'-6': '未开通无卡支付'\n'-7': '此卡被没收'\n'-8': '无效卡号'\n'-9': '此卡无对应发卡行'\n'-10': '该卡未初始化或睡眠卡'\n'-11': '作弊卡、吞卡'\n'-12': '此卡已挂失'\n'-13': '该卡已过期'\n'-14': '受限制的卡'\n'-15': '密码错误次数超限'\n'-16': '发卡行不支持此交易'\n不收费结果码:\n'-2': '姓名校验不通过'\n'-3': '身份证号码有误'\n'-4': '银行卡号码有误'\n'-17': '验证中心服务繁忙'\n'-18': '验证次数超限,请次日重试'\n'-19': '该证件号暂不支持核验,当前仅支持二代身份证'\t",
500
500
  "example": "0",
501
501
  "member": "string",
502
502
  "name": "Result",