tencentcloud-sdk-nodejs-ess 4.0.387 → 4.0.397

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.
@@ -128,22 +128,22 @@ export interface CreateDocumentResponse {
128
128
  * StartFlow请求参数结构体
129
129
  */
130
130
  export interface StartFlowRequest {
131
+ /**
132
+ * 调用方用户信息,userId 必填
133
+ */
134
+ Operator: UserInfo;
131
135
  /**
132
136
  * 签署流程编号,由CreateFlow接口返回
133
137
  */
134
138
  FlowId: string;
135
139
  /**
136
- * 用户信息
140
+ * 客户端Token,保持接口幂等性,最大长度64个字符
137
141
  */
138
- Operator: UserInfo;
142
+ ClientToken?: string;
139
143
  /**
140
144
  * 应用相关信息
141
145
  */
142
146
  Agent?: Agent;
143
- /**
144
- * 客户端Token,保持接口幂等性,最大长度64个字符
145
- */
146
- ClientToken?: string;
147
147
  }
148
148
  /**
149
149
  * CancelFlow返回参数结构体
@@ -158,6 +158,10 @@ export interface CancelFlowResponse {
158
158
  * CreateDocument请求参数结构体
159
159
  */
160
160
  export interface CreateDocumentRequest {
161
+ /**
162
+ * 调用方用户信息,userId 必填
163
+ */
164
+ Operator: UserInfo;
161
165
  /**
162
166
  * 签署流程编号,由CreateFlow接口返回
163
167
  */
@@ -170,14 +174,6 @@ export interface CreateDocumentRequest {
170
174
  * 文件名列表,单个文件名最大长度200个字符
171
175
  */
172
176
  FileNames: Array<string>;
173
- /**
174
- * 无
175
- */
176
- Operator: UserInfo;
177
- /**
178
- * 应用相关信息
179
- */
180
- Agent?: Agent;
181
177
  /**
182
178
  * 内容控件信息数组
183
179
  */
@@ -191,11 +187,19 @@ export interface CreateDocumentRequest {
191
187
  * 客户端Token,保持接口幂等性,最大长度64个字符
192
188
  */
193
189
  ClientToken?: string;
190
+ /**
191
+ * 应用相关信息
192
+ */
193
+ Agent?: Agent;
194
194
  }
195
195
  /**
196
196
  * CreateFlow请求参数结构体
197
197
  */
198
198
  export interface CreateFlowRequest {
199
+ /**
200
+ * 调用方用户信息,userId 必填
201
+ */
202
+ Operator: UserInfo;
199
203
  /**
200
204
  * 签署流程名称,最大长度200个字符
201
205
  */
@@ -205,29 +209,22 @@ export interface CreateFlowRequest {
205
209
  */
206
210
  Approvers: Array<FlowCreateApprover>;
207
211
  /**
208
- * 操作人信息
212
+ * 签署流程的类型(如销售合同/入职合同等),最大长度200个字符
209
213
  */
210
- Operator: UserInfo;
214
+ FlowType?: string;
211
215
  /**
212
- * 应用相关信息
216
+ * 客户端Token,保持接口幂等性,最大长度64个字符
213
217
  */
214
- Agent?: Agent;
218
+ ClientToken?: string;
215
219
  /**
216
- * 发送类型:
217
- true:无序签
218
- false:有序签
219
- 注:默认为false(有序签),请和模板中的配置保持一致
220
- */
221
- Unordered?: boolean;
220
+ * 暂未开放
221
+ */
222
+ CallbackUrl?: string;
222
223
  /**
223
224
  * 签署流程的签署截止时间。
224
225
  值为unix时间戳,精确到秒,不传默认为当前时间一年后
225
226
  */
226
227
  DeadLine?: number;
227
- /**
228
- * 签署流程的类型(如销售合同/入职合同等),最大长度200个字符
229
- */
230
- FlowType?: string;
231
228
  /**
232
229
  * 用户自定义字段(需进行base64 encode),回调的时候会进行透传, 长度需要小于20480
233
230
  */
@@ -237,9 +234,12 @@ export interface CreateFlowRequest {
237
234
  */
238
235
  FlowDescription?: string;
239
236
  /**
240
- * 客户端Token,保持接口幂等性,最大长度64个字符
241
- */
242
- ClientToken?: string;
237
+ * 发送类型:
238
+ true:无序签
239
+ false:有序签
240
+ 注:默认为false(有序签),请和模板中的配置保持一致
241
+ */
242
+ Unordered?: boolean;
243
243
  /**
244
244
  * 合同显示的页卡模板,说明:只支持{合同名称}, {发起方企业}, {发起方姓名}, {签署方N企业}, {签署方N姓名},且N不能超过签署人的数量,N从1开始
245
245
  */
@@ -249,29 +249,22 @@ export interface CreateFlowRequest {
249
249
  */
250
250
  RelatedFlowId?: string;
251
251
  /**
252
- * 暂未开放
252
+ * 应用相关信息
253
253
  */
254
- CallbackUrl?: string;
254
+ Agent?: Agent;
255
255
  }
256
256
  /**
257
257
  * CreateSchemeUrl请求参数结构体
258
258
  */
259
259
  export interface CreateSchemeUrlRequest {
260
260
  /**
261
- * 调用方用户信息,参考通用结构
261
+ * 调用方用户信息,userId 必填
262
262
  */
263
263
  Operator: UserInfo;
264
264
  /**
265
- * 应用相关信息
265
+ * 企业名称
266
266
  */
267
- Agent?: Agent;
268
- /**
269
- * 链接类型
270
- HTTP:跳转电子签小程序的http_url,
271
- APP:第三方APP或小程序跳转电子签小程序的path。
272
- 默认为HTTP类型
273
- */
274
- EndPoint?: string;
267
+ OrganizationName?: string;
275
268
  /**
276
269
  * 姓名,最大长度50个字符
277
270
  */
@@ -281,9 +274,12 @@ export interface CreateSchemeUrlRequest {
281
274
  */
282
275
  Mobile?: string;
283
276
  /**
284
- * 企业名称
285
- */
286
- OrganizationName?: string;
277
+ * 链接类型
278
+ HTTP:跳转电子签小程序的http_url,
279
+ APP:第三方APP或小程序跳转电子签小程序的path。
280
+ 默认为HTTP类型
281
+ */
282
+ EndPoint?: string;
287
283
  /**
288
284
  * 签署流程编号 (PathType=1时必传)
289
285
  */
@@ -296,6 +292,10 @@ export interface CreateSchemeUrlRequest {
296
292
  * 是否自动回跳 true:是, false:否。该参数只针对"APP" 类型的签署链接有效
297
293
  */
298
294
  AutoJumpBack?: boolean;
295
+ /**
296
+ * 应用相关信息
297
+ */
298
+ Agent?: Agent;
299
299
  }
300
300
  /**
301
301
  * 下载文件的URL信息
@@ -337,6 +337,27 @@ export interface SignQrCode {
337
337
  */
338
338
  ExpiredTime: number;
339
339
  }
340
+ /**
341
+ * GetTaskResultApi请求参数结构体
342
+ */
343
+ export interface GetTaskResultApiRequest {
344
+ /**
345
+ * 任务Id
346
+ */
347
+ TaskId: string;
348
+ /**
349
+ * 企业信息
350
+ */
351
+ Organization?: OrganizationInfo;
352
+ /**
353
+ * 操作人信息
354
+ */
355
+ Operator?: UserInfo;
356
+ /**
357
+ * 渠道信息
358
+ */
359
+ Agent?: Agent;
360
+ }
340
361
  /**
341
362
  * UploadFiles请求参数结构体
342
363
  */
@@ -380,6 +401,10 @@ export interface UploadFilesRequest {
380
401
  * CancelFlow请求参数结构体
381
402
  */
382
403
  export interface CancelFlowRequest {
404
+ /**
405
+ * 调用方用户信息,userId 必填
406
+ */
407
+ Operator: UserInfo;
383
408
  /**
384
409
  * 签署流程id
385
410
  */
@@ -388,10 +413,6 @@ export interface CancelFlowRequest {
388
413
  * 撤销原因,最长200个字符;
389
414
  */
390
415
  CancelMessage: string;
391
- /**
392
- * 操作用户id
393
- */
394
- Operator: UserInfo;
395
416
  /**
396
417
  * 应用相关信息
397
418
  */
@@ -416,13 +437,15 @@ export interface DescribeFlowBriefsResponse {
416
437
  export interface Component {
417
438
  /**
418
439
  * 如果是 Component 控件类型,则可选类型为:
419
- TEXT - 内容文本控件
420
- DATE - 内容日期控件
421
- CHECK_BOX - 勾选框控件
440
+ TEXT - 单行文本
441
+ MULTI_LINE_TEXT - 多行文本
442
+ CHECK_BOX - 勾选框
443
+ ATTACHMENT - 附件
444
+ SELECTOR - 选择器
422
445
  如果是 SignComponent 控件类型,则可选类型为:
423
- SIGN_SEAL - 签署印章控件
446
+ SIGN_SEAL - 签署印章控件,静默签署时需要传入印章id作为ComponentValue
424
447
  SIGN_DATE - 签署日期控件
425
- SIGN_SIGNATURE - 手写签名控件
448
+ SIGN_SIGNATURE - 手写签名控件,静默签署时不能使用
426
449
  */
427
450
  ComponentType: string;
428
451
  /**
@@ -478,8 +501,13 @@ export interface Component {
478
501
  */
479
502
  ComponentRecipientId?: string;
480
503
  /**
481
- * 控件所填写的内容
482
- */
504
+ * 控件填充vaule,ComponentType和传入值类型对应关系:
505
+ TEXT - 文本内容
506
+ MULTI_LINE_TEXT - 文本内容
507
+ CHECK_BOX - true/false
508
+ ATTACHMENT - 附件的FileId,需要通过UploadFiles接口上传获取
509
+ SELECTOR - 选项值
510
+ */
483
511
  ComponentValue?: string;
484
512
  /**
485
513
  * 是否是表单域类型,默认不存在
@@ -628,18 +656,43 @@ export interface CreateFlowByFilesResponse {
628
656
  */
629
657
  RequestId?: string;
630
658
  }
659
+ /**
660
+ * 机构信息
661
+ */
662
+ export interface OrganizationInfo {
663
+ /**
664
+ * 机构在平台的编号
665
+ */
666
+ OrganizationId?: string;
667
+ /**
668
+ * 用户渠道
669
+ */
670
+ Channel?: string;
671
+ /**
672
+ * 用户在渠道的机构编号
673
+ */
674
+ OrganizationOpenId?: string;
675
+ /**
676
+ * 用户真实的IP
677
+ */
678
+ ClientIp?: string;
679
+ /**
680
+ * 机构的代理IP
681
+ */
682
+ ProxyIp?: string;
683
+ }
631
684
  /**
632
685
  * DescribeFlowBriefs请求参数结构体
633
686
  */
634
687
  export interface DescribeFlowBriefsRequest {
635
688
  /**
636
- * 需要查询的流程ID列表
689
+ * 调用方用户信息,userId 必填
637
690
  */
638
- FlowIds: Array<string>;
691
+ Operator: UserInfo;
639
692
  /**
640
- * 操作人信息
693
+ * 需要查询的流程ID列表
641
694
  */
642
- Operator: UserInfo;
695
+ FlowIds: Array<string>;
643
696
  /**
644
697
  * 应用相关信息
645
698
  */
@@ -702,6 +755,31 @@ export interface Recipient {
702
755
  */
703
756
  RecipientExtra?: string;
704
757
  }
758
+ /**
759
+ * 用户信息
760
+ */
761
+ export interface UserInfo {
762
+ /**
763
+ * 用户在平台的编号
764
+ */
765
+ UserId?: string;
766
+ /**
767
+ * 用户的来源渠道
768
+ */
769
+ Channel?: string;
770
+ /**
771
+ * 用户在渠道的编号
772
+ */
773
+ OpenId?: string;
774
+ /**
775
+ * 用户真实IP
776
+ */
777
+ ClientIp?: string;
778
+ /**
779
+ * 用户代理IP
780
+ */
781
+ ProxyIp?: string;
782
+ }
705
783
  /**
706
784
  * DescribeFileUrls请求参数结构体
707
785
  */
@@ -777,7 +855,7 @@ export interface ApproverInfo {
777
855
  */
778
856
  ApproverMobile: string;
779
857
  /**
780
- * 本环节操作人签署控件配置,为企业静默签署时,只允许类型为SIGN_SEAL(印章)和SIGN_DATE(日期)控件,并且传入印章编号。
858
+ * 本环节操作人签署控件配置
781
859
  */
782
860
  SignComponents: Array<Component>;
783
861
  /**
@@ -924,6 +1002,19 @@ export interface CreateMultiFlowSignQRCodeRequest {
924
1002
  */
925
1003
  QrEffectiveDay?: number;
926
1004
  }
1005
+ /**
1006
+ * CreateConvertTaskApi返回参数结构体
1007
+ */
1008
+ export interface CreateConvertTaskApiResponse {
1009
+ /**
1010
+ * 转换任务Id
1011
+ */
1012
+ TaskId: string;
1013
+ /**
1014
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1015
+ */
1016
+ RequestId?: string;
1017
+ }
927
1018
  /**
928
1019
  * StartFlow返回参数结构体
929
1020
  */
@@ -937,6 +1028,35 @@ export interface StartFlowResponse {
937
1028
  */
938
1029
  RequestId?: string;
939
1030
  }
1031
+ /**
1032
+ * CreateConvertTaskApi请求参数结构体
1033
+ */
1034
+ export interface CreateConvertTaskApiRequest {
1035
+ /**
1036
+ * 资源Id
1037
+ */
1038
+ ResourceId: string;
1039
+ /**
1040
+ * 资源类型 取值范围doc,docx,html之一
1041
+ */
1042
+ ResourceType: string;
1043
+ /**
1044
+ * 资源名称
1045
+ */
1046
+ ResourceName: string;
1047
+ /**
1048
+ * 无
1049
+ */
1050
+ Organization?: OrganizationInfo;
1051
+ /**
1052
+ * 无
1053
+ */
1054
+ Operator?: UserInfo;
1055
+ /**
1056
+ * 无
1057
+ */
1058
+ Agent?: Agent;
1059
+ }
940
1060
  /**
941
1061
  * CreateSchemeUrl返回参数结构体
942
1062
  */
@@ -954,6 +1074,10 @@ export interface CreateSchemeUrlResponse {
954
1074
  * CreateFlowByFiles请求参数结构体
955
1075
  */
956
1076
  export interface CreateFlowByFilesRequest {
1077
+ /**
1078
+ * 调用方用户信息,userId 必填
1079
+ */
1080
+ Operator: UserInfo;
957
1081
  /**
958
1082
  * 签署流程名称,最大长度200个字符
959
1083
  */
@@ -967,34 +1091,18 @@ export interface CreateFlowByFilesRequest {
967
1091
  */
968
1092
  FileIds: Array<string>;
969
1093
  /**
970
- * 调用方用户信息
1094
+ * 签署流程的类型(如销售合同/入职合同等),最大长度200个字符
971
1095
  */
972
- Operator: UserInfo;
1096
+ FlowType?: string;
973
1097
  /**
974
- * 应用号信息
1098
+ * 经办人内容控件配置
975
1099
  */
976
- Agent?: Agent;
977
- /**
978
- * 经办人内容控件配置。可选类型为:
979
- TEXT - 内容文本控件
980
- MULTI_LINE_TEXT - 多行文本控件
981
- CHECK_BOX - 勾选框控件
982
- ATTACHMENT - 附件
983
- 注:默认字体大小为 字号12
984
- */
985
1100
  Components?: Array<Component>;
986
1101
  /**
987
- * 签署流程的签署截止时间。
988
- 值为unix时间戳,精确到秒,不传默认为当前时间一年后
989
- */
990
- Deadline?: number;
991
- /**
992
- * 发送类型:
993
- true:无序签
994
- false:有序签
995
- 注:默认为false(有序签)
1102
+ * 被抄送人的信息列表。
1103
+ 注:此功能为白名单功能,若有需要,请联系电子签客服开白使用
996
1104
  */
997
- Unordered?: boolean;
1105
+ CcInfos?: Array<CcInfo>;
998
1106
  /**
999
1107
  * 是否需要预览,true:预览模式,false:非预览(默认);
1000
1108
  预览链接有效期300秒;
@@ -1005,18 +1113,25 @@ export interface CreateFlowByFilesRequest {
1005
1113
  */
1006
1114
  FlowDescription?: string;
1007
1115
  /**
1008
- * 签署流程的类型(如销售合同/入职合同等),最大长度200个字符
1009
- */
1010
- FlowType?: string;
1116
+ * 签署流程的签署截止时间。
1117
+ 值为unix时间戳,精确到秒,不传默认为当前时间一年后
1118
+ */
1119
+ Deadline?: number;
1011
1120
  /**
1012
- * 被抄送人的信息列表。
1013
- 注:此功能为白名单功能,若有需要,请联系电子签客服开白使用
1121
+ * 发送类型:
1122
+ true:无序签
1123
+ false:有序签
1124
+ 注:默认为false(有序签)
1014
1125
  */
1015
- CcInfos?: Array<CcInfo>;
1126
+ Unordered?: boolean;
1016
1127
  /**
1017
1128
  * 合同显示的页卡模板,说明:只支持{合同名称}, {发起方企业}, {发起方姓名}, {签署方N企业}, {签署方N姓名},且N不能超过签署人的数量,N从1开始
1018
1129
  */
1019
1130
  CustomShowMap?: string;
1131
+ /**
1132
+ * 应用号信息
1133
+ */
1134
+ Agent?: Agent;
1020
1135
  }
1021
1136
  /**
1022
1137
  * CancelMultiFlowSignQRCode返回参数结构体
@@ -1049,15 +1164,20 @@ export declare type Agent = null;
1049
1164
  */
1050
1165
  export interface FormField {
1051
1166
  /**
1052
- * 控件填充value
1053
- */
1167
+ * 控件填充value,ComponentType和传入值类型对应关系:
1168
+ TEXT - 文本内容
1169
+ MULTI_LINE_TEXT - 文本内容
1170
+ CHECK_BOX - true/false
1171
+ ATTACHMENT - 附件的FileId,需要通过UploadFiles接口上传获取
1172
+ SELECTOR - 模板中配置的选项值
1173
+ */
1054
1174
  ComponentValue: string;
1055
1175
  /**
1056
- * 控件id
1176
+ * 控件id,和ComponentName选择一项传入即可
1057
1177
  */
1058
1178
  ComponentId?: string;
1059
1179
  /**
1060
- * 控件名字,最大长度不超过30字符
1180
+ * 控件名字,最大长度不超过30字符,和ComponentId选择一项传入即可
1061
1181
  */
1062
1182
  ComponentName?: string;
1063
1183
  }
@@ -1066,58 +1186,58 @@ export interface FormField {
1066
1186
  */
1067
1187
  export interface DescribeFlowTemplatesRequest {
1068
1188
  /**
1069
- * 操作人信息
1189
+ * 调用方用户信息,userId 必填
1070
1190
  */
1071
1191
  Operator: UserInfo;
1072
1192
  /**
1073
- * 查询偏移位置,默认0
1193
+ * 搜索条件,具体参考Filter结构体。本接口取值:template-id:按照【 **模板唯一标识** 】进行过滤
1074
1194
  */
1075
- Offset?: number;
1195
+ Filters?: Array<Filter>;
1076
1196
  /**
1077
1197
  * 查询个数,默认20,最大100
1078
1198
  */
1079
1199
  Limit?: number;
1080
1200
  /**
1081
- * 搜索条件,具体参考Filter结构体。本接口取值:template-id:按照【 **模板唯一标识** 】进行过滤
1201
+ * 查询偏移位置,默认0
1082
1202
  */
1083
- Filters?: Array<Filter>;
1203
+ Offset?: number;
1084
1204
  /**
1085
- * 应用相关信息
1205
+ * 查询内容:0-模板列表及详情(默认),1-仅模板列表
1086
1206
  */
1087
- Agent?: Agent;
1207
+ ContentType?: number;
1088
1208
  /**
1089
1209
  * 暂未开放
1090
1210
  */
1091
1211
  GenerateSource?: number;
1092
1212
  /**
1093
- * 查询内容:0-模板列表及详情(默认),1-仅模板列表
1213
+ * 应用相关信息
1094
1214
  */
1095
- ContentType?: number;
1215
+ Agent?: Agent;
1096
1216
  }
1097
1217
  /**
1098
- * 用户信息
1218
+ * GetTaskResultApi返回参数结构体
1099
1219
  */
1100
- export interface UserInfo {
1220
+ export interface GetTaskResultApiResponse {
1101
1221
  /**
1102
- * 用户在平台的编号
1222
+ * 任务Id
1103
1223
  */
1104
- UserId?: string;
1224
+ TaskId: string;
1105
1225
  /**
1106
- * 用户的来源渠道
1226
+ * 任务状态
1107
1227
  */
1108
- Channel?: string;
1228
+ TaskStatus: number;
1109
1229
  /**
1110
- * 用户在渠道的编号
1230
+ * 状态描述
1111
1231
  */
1112
- OpenId?: string;
1232
+ TaskMessage: string;
1113
1233
  /**
1114
- * 用户真实IP
1234
+ * 资源Id
1115
1235
  */
1116
- ClientIp?: string;
1236
+ ResourceId: string;
1117
1237
  /**
1118
- * 用户代理IP
1238
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1119
1239
  */
1120
- ProxyIp?: string;
1240
+ RequestId?: string;
1121
1241
  }
1122
1242
  /**
1123
1243
  * 流程信息摘要