tencentcloud-sdk-nodejs-ess 4.0.389 → 4.0.432

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.
@@ -50,6 +50,21 @@ export interface CancelMultiFlowSignQRCodeRequest {
50
50
  Agent?: Agent
51
51
  }
52
52
 
53
+ /**
54
+ * CreateFlowEvidenceReport返回参数结构体
55
+ */
56
+ export interface CreateFlowEvidenceReportResponse {
57
+ /**
58
+ * 出证报告 URL(有效期5分钟)
59
+ */
60
+ ReportUrl: string
61
+
62
+ /**
63
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
64
+ */
65
+ RequestId?: string
66
+ }
67
+
53
68
  /**
54
69
  * DescribeFileUrls返回参数结构体
55
70
  */
@@ -221,7 +236,7 @@ export interface CreateDocumentRequest {
221
236
  TemplateId: string
222
237
 
223
238
  /**
224
- * 文件名列表,单个文件名最大长度200个字符
239
+ * 文件名列表,单个文件名最大长度200个字符,暂时仅支持单文件发起
225
240
  */
226
241
  FileNames: Array<string>
227
242
 
@@ -262,7 +277,7 @@ export interface CreateFlowRequest {
262
277
  FlowName: string
263
278
 
264
279
  /**
265
- * 签署流程参与者信息
280
+ * 签署流程参与者信息,最大限制50方
266
281
  */
267
282
  Approvers: Array<FlowCreateApprover>
268
283
 
@@ -310,6 +325,14 @@ false:有序签
310
325
  */
311
326
  CustomShowMap?: string
312
327
 
328
+ /**
329
+ * 发起方企业的签署人进行签署操作是否需要企业内部审批。
330
+ 若设置为true,审核结果需通过接口 CreateFlowSignReview 通知电子签,审核通过后,发起方企业签署人方可进行签署操作,否则会阻塞其签署操作。
331
+
332
+ 注:企业可以通过此功能与企业内部的审批流程进行关联,支持手动、静默签署合同。
333
+ */
334
+ NeedSignReview?: boolean
335
+
313
336
  /**
314
337
  * 暂未开放
315
338
  */
@@ -400,6 +423,21 @@ export interface DescribeThirdPartyAuthCodeRequest {
400
423
  AuthCode: string
401
424
  }
402
425
 
426
+ /**
427
+ * 查询过滤条件
428
+ */
429
+ export interface Filter {
430
+ /**
431
+ * 查询过滤条件的Key
432
+ */
433
+ Key: string
434
+
435
+ /**
436
+ * 查询过滤条件的Value列表
437
+ */
438
+ Values: Array<string>
439
+ }
440
+
403
441
  /**
404
442
  * 一码多扫签署二维码对象
405
443
  */
@@ -420,14 +458,39 @@ export interface SignQrCode {
420
458
  ExpiredTime: number
421
459
  }
422
460
 
461
+ /**
462
+ * GetTaskResultApi请求参数结构体
463
+ */
464
+ export interface GetTaskResultApiRequest {
465
+ /**
466
+ * 任务Id,通过CreateConvertTaskApi得到
467
+ */
468
+ TaskId: string
469
+
470
+ /**
471
+ * 操作人信息
472
+ */
473
+ Operator?: UserInfo
474
+
475
+ /**
476
+ * 应用号信息
477
+ */
478
+ Agent?: Agent
479
+
480
+ /**
481
+ * 暂未开放
482
+ */
483
+ Organization?: OrganizationInfo
484
+ }
485
+
423
486
  /**
424
487
  * UploadFiles请求参数结构体
425
488
  */
426
489
  export interface UploadFilesRequest {
427
490
  /**
428
491
  * 文件对应业务类型,用于区分文件存储路径:
429
- 1. TEMPLATE - 模板; 文件类型:.pdf/.html
430
- 2. DOCUMENT - 签署过程及签署后的合同文档 文件类型:.pdf/.html
492
+ 1. TEMPLATE - 模板; 文件类型:.pdf .doc .docx .html
493
+ 2. DOCUMENT - 签署过程及签署后的合同文档/图片控件 文件类型:.pdf/.jpg/.png
431
494
  3. SEAL - 印章; 文件类型:.jpg/.jpeg/.png
432
495
  */
433
496
  BusinessType: string
@@ -511,14 +574,22 @@ export interface DescribeFlowBriefsResponse {
511
574
  */
512
575
  export interface Component {
513
576
  /**
514
- * 如果是 Component 控件类型,则可选类型为:
515
- TEXT - 内容文本控件
516
- DATE - 内容日期控件
517
- CHECK_BOX - 勾选框控件
518
- 如果是 SignComponent 控件类型,则可选类型为:
519
- SIGN_SEAL - 签署印章控件
520
- SIGN_DATE - 签署日期控件
521
- SIGN_SIGNATURE - 手写签名控件
577
+ * 如果是Component控件类型,则可选的字段为:
578
+ TEXT - 普通文本控件;
579
+ MULTI_LINE_TEXT - 多行文本控件;
580
+ CHECK_BOX - 勾选框控件;
581
+ FILL_IMAGE - 图片控件;
582
+ DYNAMIC_TABLE - 动态表格控件;
583
+ ATTACHMENT - 附件控件;
584
+ SELECTOR - 选择器控件;
585
+
586
+ 如果是SignComponent控件类型,则可选的字段为
587
+ SIGN_SEAL - 签署印章控件;
588
+ SIGN_DATE - 签署日期控件;
589
+ SIGN_SIGNATURE - 用户签名控件;
590
+ SIGN_PERSONAL_SEAL - 个人签署印章控件(使用文件发起暂不支持此类型);
591
+
592
+ 表单域的控件不能作为印章和签名控件
522
593
  */
523
594
  ComponentType: string
524
595
 
@@ -586,8 +657,14 @@ ESIGN -- 个人印章类型
586
657
  ComponentRecipientId?: string
587
658
 
588
659
  /**
589
- * 控件所填写的内容
590
- */
660
+ * 控件填充vaule,ComponentType和传入值类型对应关系:
661
+ TEXT - 文本内容
662
+ MULTI_LINE_TEXT - 文本内容
663
+ CHECK_BOX - true/false
664
+ FILL_IMAGE、ATTACHMENT - 附件的FileId,需要通过UploadFiles接口上传获取
665
+ SELECTOR - 选项值
666
+ DYNAMIC_TABLE - 传入json格式的表格内容,具体见数据结构FlowInfo:https://cloud.tencent.com/document/api/1420/61525#FlowInfo
667
+ */
591
668
  ComponentValue?: string
592
669
 
593
670
  /**
@@ -627,6 +704,11 @@ export interface CreateMultiFlowSignQRCodeResponse {
627
704
  */
628
705
  QrCode: SignQrCode
629
706
 
707
+ /**
708
+ * 签署链接对象
709
+ */
710
+ SignUrls: SignUrl
711
+
630
712
  /**
631
713
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
632
714
  */
@@ -765,6 +847,36 @@ export interface CreateFlowByFilesResponse {
765
847
  RequestId?: string
766
848
  }
767
849
 
850
+ /**
851
+ * 机构信息
852
+ */
853
+ export interface OrganizationInfo {
854
+ /**
855
+ * 机构在平台的编号
856
+ */
857
+ OrganizationId?: string
858
+
859
+ /**
860
+ * 用户渠道
861
+ */
862
+ Channel?: string
863
+
864
+ /**
865
+ * 用户在渠道的机构编号
866
+ */
867
+ OrganizationOpenId?: string
868
+
869
+ /**
870
+ * 用户真实的IP
871
+ */
872
+ ClientIp?: string
873
+
874
+ /**
875
+ * 机构的代理IP
876
+ */
877
+ ProxyIp?: string
878
+ }
879
+
768
880
  /**
769
881
  * DescribeFlowBriefs请求参数结构体
770
882
  */
@@ -775,7 +887,7 @@ export interface DescribeFlowBriefsRequest {
775
887
  Operator: UserInfo
776
888
 
777
889
  /**
778
- * 需要查询的流程ID列表
890
+ * 需要查询的流程ID列表,限制最大20个
779
891
  */
780
892
  FlowIds: Array<string>
781
893
 
@@ -855,6 +967,56 @@ export interface Recipient {
855
967
  RecipientExtra?: string
856
968
  }
857
969
 
970
+ /**
971
+ * 用户信息
972
+ */
973
+ export interface UserInfo {
974
+ /**
975
+ * 用户在平台的编号
976
+ */
977
+ UserId?: string
978
+
979
+ /**
980
+ * 用户的来源渠道
981
+ */
982
+ Channel?: string
983
+
984
+ /**
985
+ * 用户在渠道的编号
986
+ */
987
+ OpenId?: string
988
+
989
+ /**
990
+ * 用户真实IP
991
+ */
992
+ ClientIp?: string
993
+
994
+ /**
995
+ * 用户代理IP
996
+ */
997
+ ProxyIp?: string
998
+ }
999
+
1000
+ /**
1001
+ * 一码多扫签署二维码签署信息
1002
+ */
1003
+ export interface SignUrl {
1004
+ /**
1005
+ * 小程序签署链接
1006
+ */
1007
+ AppSignUrl: string
1008
+
1009
+ /**
1010
+ * 签署链接有效时间
1011
+ */
1012
+ EffectiveTime: string
1013
+
1014
+ /**
1015
+ * 移动端签署链接
1016
+ */
1017
+ HttpSignUrl: string
1018
+ }
1019
+
858
1020
  /**
859
1021
  * DescribeFileUrls请求参数结构体
860
1022
  */
@@ -944,7 +1106,7 @@ export interface ApproverInfo {
944
1106
  ApproverMobile: string
945
1107
 
946
1108
  /**
947
- * 本环节操作人签署控件配置,为企业静默签署时,只允许类型为SIGN_SEAL(印章)和SIGN_DATE(日期)控件,并且传入印章编号。
1109
+ * 本环节操作人签署控件配置
948
1110
  */
949
1111
  SignComponents: Array<Component>
950
1112
 
@@ -987,6 +1149,16 @@ HONGKONG_MACAO_AND_TAIWAN 港澳台居民居住证(格式同居民身份证)
987
1149
  PreReadTime?: number
988
1150
  }
989
1151
 
1152
+ /**
1153
+ * CreateFlowSignReview返回参数结构体
1154
+ */
1155
+ export interface CreateFlowSignReviewResponse {
1156
+ /**
1157
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1158
+ */
1159
+ RequestId?: string
1160
+ }
1161
+
990
1162
  /**
991
1163
  * 此结构体 (Caller) 用于描述调用方属性。
992
1164
  */
@@ -1033,18 +1205,58 @@ export interface DescribeFlowTemplatesResponse {
1033
1205
  }
1034
1206
 
1035
1207
  /**
1036
- * 查询过滤条件
1208
+ * CreateFlowEvidenceReport请求参数结构体
1037
1209
  */
1038
- export interface Filter {
1210
+ export interface CreateFlowEvidenceReportRequest {
1039
1211
  /**
1040
- * 查询过滤条件的Key
1212
+ * 调用方用户信息,userId 必填
1041
1213
  */
1042
- Key: string
1214
+ Operator: UserInfo
1043
1215
 
1044
1216
  /**
1045
- * 查询过滤条件的Value列表
1217
+ * 签署流程编号
1046
1218
  */
1047
- Values: Array<string>
1219
+ FlowId: string
1220
+ }
1221
+
1222
+ /**
1223
+ * CreateBatchCancelFlowUrl返回参数结构体
1224
+ */
1225
+ export interface CreateBatchCancelFlowUrlResponse {
1226
+ /**
1227
+ * 批量撤回签署流程链接
1228
+ */
1229
+ BatchCancelFlowUrl: string
1230
+
1231
+ /**
1232
+ * 签署流程撤回失败信息
1233
+ */
1234
+ FailMessages: Array<string>
1235
+
1236
+ /**
1237
+ * 签署连接过期时间字符串:年月日-时分秒
1238
+ */
1239
+ UrlExpireOn: string
1240
+
1241
+ /**
1242
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1243
+ */
1244
+ RequestId?: string
1245
+ }
1246
+
1247
+ /**
1248
+ * StartFlow返回参数结构体
1249
+ */
1250
+ export interface StartFlowResponse {
1251
+ /**
1252
+ * 返回描述,START-发起成功, REVIEW-提交审核成功,EXECUTING-已提交发起任务
1253
+ */
1254
+ Status: string
1255
+
1256
+ /**
1257
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1258
+ */
1259
+ RequestId?: string
1048
1260
  }
1049
1261
 
1050
1262
  /**
@@ -1072,6 +1284,21 @@ export interface FileInfo {
1072
1284
  CreatedOn?: number
1073
1285
  }
1074
1286
 
1287
+ /**
1288
+ * CreateBatchCancelFlowUrl请求参数结构体
1289
+ */
1290
+ export interface CreateBatchCancelFlowUrlRequest {
1291
+ /**
1292
+ * 调用方用户信息,userId 必填
1293
+ */
1294
+ Operator: UserInfo
1295
+
1296
+ /**
1297
+ * 需要执行撤回的签署流程id数组,最多100个
1298
+ */
1299
+ FlowIds: Array<string>
1300
+ }
1301
+
1075
1302
  /**
1076
1303
  * CreateMultiFlowSignQRCode请求参数结构体
1077
1304
  */
@@ -1118,16 +1345,21 @@ export interface CreateMultiFlowSignQRCodeRequest {
1118
1345
  * 二维码有效天数 默认7天 最高设置不超过90天
1119
1346
  */
1120
1347
  QrEffectiveDay?: number
1348
+
1349
+ /**
1350
+ * 限制二维码用户条件
1351
+ */
1352
+ ApproverRestrictions?: ApproverRestriction
1121
1353
  }
1122
1354
 
1123
1355
  /**
1124
- * StartFlow返回参数结构体
1356
+ * CreateConvertTaskApi返回参数结构体
1125
1357
  */
1126
- export interface StartFlowResponse {
1358
+ export interface CreateConvertTaskApiResponse {
1127
1359
  /**
1128
- * 返回描述,START-发起成功, REVIEW-提交审核成功,EXECUTING-已提交发起任务
1360
+ * 转换任务Id
1129
1361
  */
1130
- Status: string
1362
+ TaskId: string
1131
1363
 
1132
1364
  /**
1133
1365
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -1135,6 +1367,74 @@ export interface StartFlowResponse {
1135
1367
  RequestId?: string
1136
1368
  }
1137
1369
 
1370
+ /**
1371
+ * CreateFlowSignReview请求参数结构体
1372
+ */
1373
+ export interface CreateFlowSignReviewRequest {
1374
+ /**
1375
+ * 调用方用户信息,userId 必填
1376
+ */
1377
+ Operator: UserInfo
1378
+
1379
+ /**
1380
+ * 签署流程编号
1381
+ */
1382
+ FlowId: string
1383
+
1384
+ /**
1385
+ * 企业内部审核结果
1386
+ PASS: 通过
1387
+ REJECT: 拒绝
1388
+ */
1389
+ ReviewType: string
1390
+
1391
+ /**
1392
+ * 审核原因
1393
+ 当ReviewType 是REJECT 时此字段必填,字符串长度不超过200
1394
+ */
1395
+ ReviewMessage?: string
1396
+
1397
+ /**
1398
+ * 应用相关信息
1399
+ */
1400
+ Agent?: Agent
1401
+ }
1402
+
1403
+ /**
1404
+ * CreateConvertTaskApi请求参数结构体
1405
+ */
1406
+ export interface CreateConvertTaskApiRequest {
1407
+ /**
1408
+ * 资源类型 取值范围doc,docx,html之一
1409
+ */
1410
+ ResourceType: string
1411
+
1412
+ /**
1413
+ * 资源名称,长度限制为256字符
1414
+ */
1415
+ ResourceName: string
1416
+
1417
+ /**
1418
+ * 资源Id,通过UploadFiles获取
1419
+ */
1420
+ ResourceId: string
1421
+
1422
+ /**
1423
+ * 操作者信息
1424
+ */
1425
+ Operator?: UserInfo
1426
+
1427
+ /**
1428
+ * 应用号信息
1429
+ */
1430
+ Agent?: Agent
1431
+
1432
+ /**
1433
+ * 暂未开放
1434
+ */
1435
+ Organization?: OrganizationInfo
1436
+ }
1437
+
1138
1438
  /**
1139
1439
  * CreateSchemeUrl返回参数结构体
1140
1440
  */
@@ -1165,12 +1465,12 @@ export interface CreateFlowByFilesRequest {
1165
1465
  FlowName: string
1166
1466
 
1167
1467
  /**
1168
- * 签署参与者信息
1468
+ * 签署参与者信息,最大限制50方
1169
1469
  */
1170
1470
  Approvers: Array<ApproverInfo>
1171
1471
 
1172
1472
  /**
1173
- * 签署pdf文件的资源编号列表,通过UploadFiles接口获取
1473
+ * 签署pdf文件的资源编号列表,通过UploadFiles接口获取,暂时仅支持单文件发起
1174
1474
  */
1175
1475
  FileIds: Array<string>
1176
1476
 
@@ -1180,13 +1480,8 @@ export interface CreateFlowByFilesRequest {
1180
1480
  FlowType?: string
1181
1481
 
1182
1482
  /**
1183
- * 经办人内容控件配置。可选类型为:
1184
- TEXT - 内容文本控件
1185
- MULTI_LINE_TEXT - 多行文本控件
1186
- CHECK_BOX - 勾选框控件
1187
- ATTACHMENT - 附件
1188
- 注:默认字体大小为 字号12
1189
- */
1483
+ * 经办人内容控件配置
1484
+ */
1190
1485
  Components?: Array<Component>
1191
1486
 
1192
1487
  /**
@@ -1225,12 +1520,45 @@ false:有序签
1225
1520
  */
1226
1521
  CustomShowMap?: string
1227
1522
 
1523
+ /**
1524
+ * 发起方企业的签署人进行签署操作是否需要企业内部审批。
1525
+ 若设置为true,审核结果需通过接口 CreateFlowSignReview 通知电子签,审核通过后,发起方企业签署人方可进行签署操作,否则会阻塞其签署操作。
1526
+
1527
+ 注:企业可以通过此功能与企业内部的审批流程进行关联,支持手动、静默签署合同。
1528
+ */
1529
+ NeedSignReview?: boolean
1530
+
1228
1531
  /**
1229
1532
  * 应用号信息
1230
1533
  */
1231
1534
  Agent?: Agent
1232
1535
  }
1233
1536
 
1537
+ /**
1538
+ * 指定签署人限制项
1539
+ */
1540
+ export interface ApproverRestriction {
1541
+ /**
1542
+ * 指定签署人名字
1543
+ */
1544
+ Name?: string
1545
+
1546
+ /**
1547
+ * 指定签署人手机号
1548
+ */
1549
+ Mobile?: string
1550
+
1551
+ /**
1552
+ * 指定签署人证件类型
1553
+ */
1554
+ IdCardType?: string
1555
+
1556
+ /**
1557
+ * 指定签署人证件号码
1558
+ */
1559
+ IdCardNumber?: string
1560
+ }
1561
+
1234
1562
  /**
1235
1563
  * CancelMultiFlowSignQRCode返回参数结构体
1236
1564
  */
@@ -1266,17 +1594,23 @@ export type Agent = null
1266
1594
  */
1267
1595
  export interface FormField {
1268
1596
  /**
1269
- * 控件填充value
1270
- */
1597
+ * 控件填充vaule,ComponentType和传入值类型对应关系:
1598
+ TEXT - 文本内容
1599
+ MULTI_LINE_TEXT - 文本内容
1600
+ CHECK_BOX - true/false
1601
+ FILL_IMAGE、ATTACHMENT - 附件的FileId,需要通过UploadFiles接口上传获取
1602
+ SELECTOR - 选项值
1603
+ DYNAMIC_TABLE - 传入json格式的表格内容,具体见数据结构FlowInfo:https://cloud.tencent.com/document/api/1420/61525#FlowInfo
1604
+ */
1271
1605
  ComponentValue: string
1272
1606
 
1273
1607
  /**
1274
- * 控件id
1608
+ * 控件id,和ComponentName选择一项传入即可
1275
1609
  */
1276
1610
  ComponentId?: string
1277
1611
 
1278
1612
  /**
1279
- * 控件名字,最大长度不超过30字符
1613
+ * 控件名字,最大长度不超过30字符,和ComponentId选择一项传入即可
1280
1614
  */
1281
1615
  ComponentName?: string
1282
1616
  }
@@ -1296,7 +1630,7 @@ export interface DescribeFlowTemplatesRequest {
1296
1630
  Filters?: Array<Filter>
1297
1631
 
1298
1632
  /**
1299
- * 查询个数,默认20,最大100
1633
+ * 查询个数,默认20,最大200
1300
1634
  */
1301
1635
  Limit?: number
1302
1636
 
@@ -1322,33 +1656,45 @@ export interface DescribeFlowTemplatesRequest {
1322
1656
  }
1323
1657
 
1324
1658
  /**
1325
- * 用户信息
1659
+ * GetTaskResultApi返回参数结构体
1326
1660
  */
1327
- export interface UserInfo {
1661
+ export interface GetTaskResultApiResponse {
1328
1662
  /**
1329
- * 用户在平台的编号
1663
+ * 任务Id
1330
1664
  */
1331
- UserId?: string
1665
+ TaskId: string
1332
1666
 
1333
1667
  /**
1334
- * 用户的来源渠道
1335
- */
1336
- Channel?: string
1668
+ * 任务状态,需要关注的状态
1669
+ 0 :NeedTranform - 任务已提交
1670
+ 4 :Processing - 文档转换中
1671
+ 8 :TaskEnd - 任务处理完成
1672
+ -2 :DownloadFailed - 下载失败
1673
+ -6 :ProcessFailed - 转换失败
1674
+ -13:ProcessTimeout - 转换文件超时
1675
+ */
1676
+ TaskStatus: number
1337
1677
 
1338
1678
  /**
1339
- * 用户在渠道的编号
1340
- */
1341
- OpenId?: string
1679
+ * 状态描述,需要关注的状态
1680
+ NeedTranform - 任务已提交
1681
+ Processing - 文档转换中
1682
+ TaskEnd - 任务处理完成
1683
+ DownloadFailed - 下载失败
1684
+ ProcessFailed - 转换失败
1685
+ ProcessTimeout - 转换文件超时
1686
+ */
1687
+ TaskMessage: string
1342
1688
 
1343
1689
  /**
1344
- * 用户真实IP
1690
+ * 资源Id,也是FileId,用于文件发起使用
1345
1691
  */
1346
- ClientIp?: string
1692
+ ResourceId: string
1347
1693
 
1348
1694
  /**
1349
- * 用户代理IP
1695
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1350
1696
  */
1351
- ProxyIp?: string
1697
+ RequestId?: string
1352
1698
  }
1353
1699
 
1354
1700
  /**
@@ -1378,12 +1724,17 @@ export interface FlowBrief {
1378
1724
 
1379
1725
  /**
1380
1726
  * 流程状态
1381
- - `1` 未签署
1727
+ - `0` 还没有发起
1728
+ - `1` 未签署
1382
1729
  - `2` 部分签署
1383
1730
  - `3` 已退回
1384
1731
  - `4` 完成签署
1385
1732
  - `5` 已过期
1386
1733
  - `6` 已取消
1734
+ - `7` 还没有预发起
1735
+ - `8` 等待填写
1736
+ - `9` 部分填写
1737
+ - `10` 拒填
1387
1738
  注意:此字段可能返回 null,表示取不到有效值。
1388
1739
  */
1389
1740
  FlowStatus: number