@satorijs/adapter-lark 3.8.6 → 3.9.1
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.
- package/lib/bot.d.ts +1 -1
- package/lib/content.d.ts +433 -0
- package/lib/http.d.ts +1 -1
- package/lib/index.cjs +2792 -1719
- package/lib/index.d.ts +4 -2
- package/lib/internal.d.ts +37 -0
- package/lib/message.d.ts +2 -0
- package/lib/types/acs.d.ts +177 -0
- package/lib/types/admin.d.ts +270 -0
- package/lib/types/aily.d.ts +221 -0
- package/lib/types/apaas.d.ts +499 -0
- package/lib/types/application.d.ts +406 -0
- package/lib/types/approval.d.ts +779 -0
- package/lib/types/attendance.d.ts +957 -0
- package/lib/types/auth.d.ts +86 -0
- package/lib/types/authen.d.ts +191 -0
- package/lib/types/baike.d.ts +239 -0
- package/lib/types/bitable.d.ts +691 -0
- package/lib/types/board.d.ts +19 -0
- package/lib/types/calendar.d.ts +653 -0
- package/lib/types/cardkit.d.ts +139 -0
- package/lib/types/compensation.d.ts +54 -0
- package/lib/types/contact.d.ts +1137 -0
- package/lib/types/corehr.d.ts +4391 -0
- package/lib/types/docs.d.ts +23 -0
- package/lib/types/document_ai.d.ts +257 -0
- package/lib/types/docx.d.ts +380 -0
- package/lib/types/drive.d.ts +1053 -0
- package/lib/types/ehr.d.ts +32 -0
- package/lib/types/event.d.ts +9 -18
- package/lib/types/helpdesk.d.ts +746 -0
- package/lib/types/hire.d.ts +3150 -0
- package/lib/types/human_authentication.d.ts +27 -0
- package/lib/types/im.d.ts +1300 -0
- package/lib/types/index.d.ts +16432 -34
- package/lib/types/lingo.d.ts +254 -0
- package/lib/types/mail.d.ts +680 -0
- package/lib/types/mdm.d.ts +42 -0
- package/lib/types/minutes.d.ts +31 -0
- package/lib/types/moments.d.ts +18 -0
- package/lib/types/okr.d.ts +205 -0
- package/lib/types/optical_char_recognition.d.ts +17 -0
- package/lib/types/passport.d.ts +45 -0
- package/lib/types/payroll.d.ts +50 -0
- package/lib/types/performance.d.ts +413 -0
- package/lib/types/personal_settings.d.ts +87 -0
- package/lib/types/report.d.ts +57 -0
- package/lib/types/search.d.ts +216 -0
- package/lib/types/security_and_compliance.d.ts +24 -0
- package/lib/types/sheets.d.ts +326 -0
- package/lib/types/speech_to_text.d.ts +39 -0
- package/lib/types/task.d.ts +1153 -0
- package/lib/types/tenant.d.ts +23 -0
- package/lib/types/translation.d.ts +37 -0
- package/lib/types/vc.d.ts +948 -0
- package/lib/types/verification.d.ts +14 -0
- package/lib/types/wiki.d.ts +240 -0
- package/lib/types/workplace.d.ts +43 -0
- package/lib/utils.d.ts +143 -7
- package/package.json +6 -4
- package/src/bot.ts +19 -3
- package/src/{types/message/content.ts → content.ts} +1 -0
- package/src/http.ts +1 -3
- package/src/index.ts +4 -2
- package/src/internal.ts +143 -0
- package/src/message.ts +13 -11
- package/src/types/acs.ts +236 -0
- package/src/types/admin.ts +328 -0
- package/src/types/aily.ts +288 -0
- package/src/types/apaas.ts +646 -0
- package/src/types/application.ts +520 -0
- package/src/types/approval.ts +924 -0
- package/src/types/attendance.ts +1153 -0
- package/src/types/auth.ts +114 -0
- package/src/types/authen.ts +220 -0
- package/src/types/baike.ts +306 -0
- package/src/types/bitable.ts +879 -0
- package/src/types/board.ts +31 -0
- package/src/types/calendar.ts +817 -0
- package/src/types/cardkit.ts +182 -0
- package/src/types/compensation.ts +79 -0
- package/src/types/contact.ts +1411 -0
- package/src/types/corehr.ts +5297 -0
- package/src/types/docs.ts +33 -0
- package/src/types/document_ai.ts +352 -0
- package/src/types/docx.ts +471 -0
- package/src/types/drive.ts +1321 -0
- package/src/types/ehr.ts +43 -0
- package/src/types/event.ts +15 -21
- package/src/types/helpdesk.ts +925 -0
- package/src/types/hire.ts +3918 -0
- package/src/types/human_authentication.ts +38 -0
- package/src/types/im.ts +1605 -0
- package/src/types/index.ts +17754 -39
- package/src/types/lingo.ts +321 -0
- package/src/types/mail.ts +851 -0
- package/src/types/mdm.ts +57 -0
- package/src/types/minutes.ts +46 -0
- package/src/types/moments.ts +28 -0
- package/src/types/okr.ts +261 -0
- package/src/types/optical_char_recognition.ts +27 -0
- package/src/types/passport.ts +61 -0
- package/src/types/payroll.ts +69 -0
- package/src/types/performance.ts +524 -0
- package/src/types/personal_settings.ts +116 -0
- package/src/types/report.ts +77 -0
- package/src/types/search.ts +268 -0
- package/src/types/security_and_compliance.ts +33 -0
- package/src/types/sheets.ts +425 -0
- package/src/types/speech_to_text.ts +54 -0
- package/src/types/task.ts +1464 -0
- package/src/types/tenant.ts +36 -0
- package/src/types/translation.ts +52 -0
- package/src/types/vc.ts +1197 -0
- package/src/types/verification.ts +23 -0
- package/src/types/wiki.ts +313 -0
- package/src/types/workplace.ts +59 -0
- package/src/utils.ts +160 -8
- package/src/types/api.ts +0 -30848
- package/src/types/internal.ts +0 -84
- package/src/types/message/index.ts +0 -97
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Internal } from '../internal'
|
|
2
|
+
|
|
3
|
+
declare module '../internal' {
|
|
4
|
+
interface Internal {
|
|
5
|
+
/**
|
|
6
|
+
* 获取云文档内容
|
|
7
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/docs-v1/content/get
|
|
8
|
+
*/
|
|
9
|
+
getDocsContent(query?: GetDocsContentQuery): Promise<GetDocsContentResponse>
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface GetDocsContentQuery {
|
|
14
|
+
/** 文档唯一标识 */
|
|
15
|
+
doc_token: string
|
|
16
|
+
/** 文档类型 */
|
|
17
|
+
doc_type: 'docx'
|
|
18
|
+
/** 内容类型 */
|
|
19
|
+
content_type: 'markdown'
|
|
20
|
+
/** 语言 */
|
|
21
|
+
lang?: 'zh' | 'en' | 'ja'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface GetDocsContentResponse {
|
|
25
|
+
/** 内容 */
|
|
26
|
+
content?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
Internal.define({
|
|
30
|
+
'/docs/v1/content': {
|
|
31
|
+
GET: 'getDocsContent',
|
|
32
|
+
},
|
|
33
|
+
})
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { BankCard, BankInfo, BodyInfo, BusinessLicense, ChinesePassport, DrvingLicense, ExtractCopy, ExtractCurrency, ExtractPrice, ExtractTime, FoodManageLicense, FoodProduceLicense, HealthCertificate, HkmMainlandTravelPermit, IdCard, RecognizedEntities, Resume, TaxiInvoice, TrainInvoice, TwMainlandTravelPermit, VatInvoice, VehicleInvoice, VehicleLicense } from '.'
|
|
2
|
+
import { Internal } from '../internal'
|
|
3
|
+
|
|
4
|
+
declare module '../internal' {
|
|
5
|
+
interface Internal {
|
|
6
|
+
/**
|
|
7
|
+
* 识别文件中的简历信息
|
|
8
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/resume/parse
|
|
9
|
+
*/
|
|
10
|
+
parseDocumentAiResume(form: ParseDocumentAiResumeForm): Promise<ParseDocumentAiResumeResponse>
|
|
11
|
+
/**
|
|
12
|
+
* 识别文件中的机动车发票
|
|
13
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vehicle_invoice/recognize
|
|
14
|
+
*/
|
|
15
|
+
recognizeDocumentAiVehicleInvoice(form: RecognizeDocumentAiVehicleInvoiceForm): Promise<RecognizeDocumentAiVehicleInvoiceResponse>
|
|
16
|
+
/**
|
|
17
|
+
* 识别文件中的健康证
|
|
18
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/health_certificate/recognize
|
|
19
|
+
*/
|
|
20
|
+
recognizeDocumentAiHealthCertificate(form: RecognizeDocumentAiHealthCertificateForm): Promise<RecognizeDocumentAiHealthCertificateResponse>
|
|
21
|
+
/**
|
|
22
|
+
* 识别文件中的港澳居民来往内地通行证
|
|
23
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/hkm_mainland_travel_permit/recognize
|
|
24
|
+
*/
|
|
25
|
+
recognizeDocumentAiHkmMainlandTravelPermit(form: RecognizeDocumentAiHkmMainlandTravelPermitForm): Promise<RecognizeDocumentAiHkmMainlandTravelPermitResponse>
|
|
26
|
+
/**
|
|
27
|
+
* 识别文件中的台湾居民来往大陆通行证
|
|
28
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/tw_mainland_travel_permit/recognize
|
|
29
|
+
*/
|
|
30
|
+
recognizeDocumentAiTwMainlandTravelPermit(form: RecognizeDocumentAiTwMainlandTravelPermitForm): Promise<RecognizeDocumentAiTwMainlandTravelPermitResponse>
|
|
31
|
+
/**
|
|
32
|
+
* 识别文件中的中国护照
|
|
33
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/chinese_passport/recognize
|
|
34
|
+
*/
|
|
35
|
+
recognizeDocumentAiChinesePassport(form: RecognizeDocumentAiChinesePassportForm): Promise<RecognizeDocumentAiChinesePassportResponse>
|
|
36
|
+
/**
|
|
37
|
+
* 识别文件中的银行卡
|
|
38
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/bank_card/recognize
|
|
39
|
+
*/
|
|
40
|
+
recognizeDocumentAiBankCard(form: RecognizeDocumentAiBankCardForm): Promise<RecognizeDocumentAiBankCardResponse>
|
|
41
|
+
/**
|
|
42
|
+
* 识别文件中的行驶证
|
|
43
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vehicle_license/recognize
|
|
44
|
+
*/
|
|
45
|
+
recognizeDocumentAiVehicleLicense(form: RecognizeDocumentAiVehicleLicenseForm): Promise<RecognizeDocumentAiVehicleLicenseResponse>
|
|
46
|
+
/**
|
|
47
|
+
* 识别文件中的火车票
|
|
48
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/train_invoice/recognize
|
|
49
|
+
*/
|
|
50
|
+
recognizeDocumentAiTrainInvoice(form: RecognizeDocumentAiTrainInvoiceForm): Promise<RecognizeDocumentAiTrainInvoiceResponse>
|
|
51
|
+
/**
|
|
52
|
+
* 识别文件中的出租车发票
|
|
53
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/taxi_invoice/recognize
|
|
54
|
+
*/
|
|
55
|
+
recognizeDocumentAiTaxiInvoice(form: RecognizeDocumentAiTaxiInvoiceForm): Promise<RecognizeDocumentAiTaxiInvoiceResponse>
|
|
56
|
+
/**
|
|
57
|
+
* 识别文件中的身份证
|
|
58
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/id_card/recognize
|
|
59
|
+
*/
|
|
60
|
+
recognizeDocumentAiIdCard(form: RecognizeDocumentAiIdCardForm): Promise<RecognizeDocumentAiIdCardResponse>
|
|
61
|
+
/**
|
|
62
|
+
* 识别文件中的食品生产许可证
|
|
63
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/food_produce_license/recognize
|
|
64
|
+
*/
|
|
65
|
+
recognizeDocumentAiFoodProduceLicense(form: RecognizeDocumentAiFoodProduceLicenseForm): Promise<RecognizeDocumentAiFoodProduceLicenseResponse>
|
|
66
|
+
/**
|
|
67
|
+
* 识别文件中的食品经营许可证
|
|
68
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/food_manage_license/recognize
|
|
69
|
+
*/
|
|
70
|
+
recognizeDocumentAiFoodManageLicense(form: RecognizeDocumentAiFoodManageLicenseForm): Promise<RecognizeDocumentAiFoodManageLicenseResponse>
|
|
71
|
+
/**
|
|
72
|
+
* 识别文件中的驾驶证
|
|
73
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/driving_license/recognize
|
|
74
|
+
*/
|
|
75
|
+
recognizeDocumentAiDrivingLicense(form: RecognizeDocumentAiDrivingLicenseForm): Promise<RecognizeDocumentAiDrivingLicenseResponse>
|
|
76
|
+
/**
|
|
77
|
+
* 识别文件中的增值税发票
|
|
78
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vat_invoice/recognize
|
|
79
|
+
*/
|
|
80
|
+
recognizeDocumentAiVatInvoice(form: RecognizeDocumentAiVatInvoiceForm): Promise<RecognizeDocumentAiVatInvoiceResponse>
|
|
81
|
+
/**
|
|
82
|
+
* 识别文件中的营业执照
|
|
83
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/business_license/recognize
|
|
84
|
+
*/
|
|
85
|
+
recognizeDocumentAiBusinessLicense(form: RecognizeDocumentAiBusinessLicenseForm): Promise<RecognizeDocumentAiBusinessLicenseResponse>
|
|
86
|
+
/**
|
|
87
|
+
* 提取文件中的合同字段
|
|
88
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/contract/field_extraction
|
|
89
|
+
*/
|
|
90
|
+
fieldExtractionDocumentAiContract(form: FieldExtractionDocumentAiContractForm): Promise<FieldExtractionDocumentAiContractResponse>
|
|
91
|
+
/**
|
|
92
|
+
* 识别文件中的名片
|
|
93
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/business_card/recognize
|
|
94
|
+
*/
|
|
95
|
+
recognizeDocumentAiBusinessCard(form: RecognizeDocumentAiBusinessCardForm): Promise<RecognizeDocumentAiBusinessCardResponse>
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface ParseDocumentAiResumeForm {
|
|
100
|
+
/** 简历文件,支持 PDF / DOCX / PNG / JPG */
|
|
101
|
+
file: Blob
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface RecognizeDocumentAiVehicleInvoiceForm {
|
|
105
|
+
/** 识别的机动车发票源文件 */
|
|
106
|
+
file: Blob
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface RecognizeDocumentAiHealthCertificateForm {
|
|
110
|
+
/** 识别的健康证源文件 */
|
|
111
|
+
file: Blob
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface RecognizeDocumentAiHkmMainlandTravelPermitForm {
|
|
115
|
+
/** 识别的港澳居民来往内地通行证源文件 */
|
|
116
|
+
file: Blob
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface RecognizeDocumentAiTwMainlandTravelPermitForm {
|
|
120
|
+
/** 识别的台湾居民来往大陆通行证源文件 */
|
|
121
|
+
file?: Blob
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface RecognizeDocumentAiChinesePassportForm {
|
|
125
|
+
/** 识别的中国护照源文件 */
|
|
126
|
+
file: Blob
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface RecognizeDocumentAiBankCardForm {
|
|
130
|
+
/** 识别的银行卡源文件 */
|
|
131
|
+
file: Blob
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface RecognizeDocumentAiVehicleLicenseForm {
|
|
135
|
+
/** 识别的行驶证源文件 */
|
|
136
|
+
file: Blob
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface RecognizeDocumentAiTrainInvoiceForm {
|
|
140
|
+
/** 识别的火车票源文件 */
|
|
141
|
+
file: Blob
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface RecognizeDocumentAiTaxiInvoiceForm {
|
|
145
|
+
/** 识别的出租车票源文件 */
|
|
146
|
+
file: Blob
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface RecognizeDocumentAiIdCardForm {
|
|
150
|
+
/** 识别身份证的源文件 */
|
|
151
|
+
file: Blob
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface RecognizeDocumentAiFoodProduceLicenseForm {
|
|
155
|
+
/** 识别的食品生产许可证源文件 */
|
|
156
|
+
file: Blob
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface RecognizeDocumentAiFoodManageLicenseForm {
|
|
160
|
+
/** 识别的食品经营许可证源文件 */
|
|
161
|
+
file: Blob
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface RecognizeDocumentAiDrivingLicenseForm {
|
|
165
|
+
/** 识别的驾驶证源文件 */
|
|
166
|
+
file: Blob
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface RecognizeDocumentAiVatInvoiceForm {
|
|
170
|
+
/** 识别的增值税发票文件 */
|
|
171
|
+
file: Blob
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface RecognizeDocumentAiBusinessLicenseForm {
|
|
175
|
+
/** 识别的营业执照源文件 */
|
|
176
|
+
file: Blob
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface FieldExtractionDocumentAiContractForm {
|
|
180
|
+
/** 合同字段解析的源文件,当前只支持pdf, doc, docx三种类型的文件 */
|
|
181
|
+
file: Blob
|
|
182
|
+
/** pdf页数限制,太长会导致latency增加,最大允许100页 */
|
|
183
|
+
pdf_page_limit: number
|
|
184
|
+
/** ocr 参数,当前支持force, pdf, unused三种格式 */
|
|
185
|
+
ocr_mode: 'force' | 'auto' | 'unused'
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface RecognizeDocumentAiBusinessCardForm {
|
|
189
|
+
/** 识别名片的源文件(支持 JPG / PNG / PDF) */
|
|
190
|
+
file: Blob
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface ParseDocumentAiResumeResponse {
|
|
194
|
+
/** 简历信息 */
|
|
195
|
+
resumes?: Resume[]
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface RecognizeDocumentAiVehicleInvoiceResponse {
|
|
199
|
+
/** 机动车发票信息 */
|
|
200
|
+
vehicle_invoice?: VehicleInvoice
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface RecognizeDocumentAiHealthCertificateResponse {
|
|
204
|
+
/** 健康证信息 */
|
|
205
|
+
health_certificate?: HealthCertificate
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface RecognizeDocumentAiHkmMainlandTravelPermitResponse {
|
|
209
|
+
/** 港澳居民来往内地通行证信息 */
|
|
210
|
+
hkm_mainland_travel_permit?: HkmMainlandTravelPermit
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface RecognizeDocumentAiTwMainlandTravelPermitResponse {
|
|
214
|
+
/** 台湾居民来往大陆通行证信息 */
|
|
215
|
+
tw_mainland_travel_permit?: TwMainlandTravelPermit
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface RecognizeDocumentAiChinesePassportResponse {
|
|
219
|
+
/** 中国护照信息 */
|
|
220
|
+
chinese_passport?: ChinesePassport
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface RecognizeDocumentAiBankCardResponse {
|
|
224
|
+
/** 银行卡信息 */
|
|
225
|
+
bank_card?: BankCard
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface RecognizeDocumentAiVehicleLicenseResponse {
|
|
229
|
+
/** 行驶证信息 */
|
|
230
|
+
vehicle_license?: VehicleLicense
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface RecognizeDocumentAiTrainInvoiceResponse {
|
|
234
|
+
/** 火车票信息 */
|
|
235
|
+
train_invoices?: TrainInvoice[]
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface RecognizeDocumentAiTaxiInvoiceResponse {
|
|
239
|
+
/** 出租车票信息 */
|
|
240
|
+
taxi_invoices?: TaxiInvoice[]
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface RecognizeDocumentAiIdCardResponse {
|
|
244
|
+
/** 身份证信息 */
|
|
245
|
+
id_card?: IdCard
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface RecognizeDocumentAiFoodProduceLicenseResponse {
|
|
249
|
+
/** 食品生产许可证信息 */
|
|
250
|
+
food_produce_license?: FoodProduceLicense
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface RecognizeDocumentAiFoodManageLicenseResponse {
|
|
254
|
+
/** 食品经营许可证信息 */
|
|
255
|
+
food_manage_license?: FoodManageLicense
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface RecognizeDocumentAiDrivingLicenseResponse {
|
|
259
|
+
/** 驾驶证信息 */
|
|
260
|
+
driving_license?: DrvingLicense
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface RecognizeDocumentAiVatInvoiceResponse {
|
|
264
|
+
/** 增值税发票信息 */
|
|
265
|
+
vat_invoices?: VatInvoice[]
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface RecognizeDocumentAiBusinessLicenseResponse {
|
|
269
|
+
/** 营业执照信息 */
|
|
270
|
+
business_license?: BusinessLicense
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface FieldExtractionDocumentAiContractResponse {
|
|
274
|
+
/** 文件的唯一id */
|
|
275
|
+
file_id?: string
|
|
276
|
+
/** 总交易金额 */
|
|
277
|
+
price?: ExtractPrice
|
|
278
|
+
/** 期限相关信息,包括开始日期、结束日期、有效时长 */
|
|
279
|
+
time?: ExtractTime
|
|
280
|
+
/** 盖章份数 */
|
|
281
|
+
copy?: ExtractCopy
|
|
282
|
+
/** 币种 */
|
|
283
|
+
currency?: ExtractCurrency
|
|
284
|
+
/** 合同标题 */
|
|
285
|
+
header?: string
|
|
286
|
+
/** 主体信息 */
|
|
287
|
+
body_info?: BodyInfo[]
|
|
288
|
+
/** 银行信息 */
|
|
289
|
+
bank_info?: BankInfo[]
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export interface RecognizeDocumentAiBusinessCardResponse {
|
|
293
|
+
/** 名片信息 */
|
|
294
|
+
business_cards?: RecognizedEntities[]
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
Internal.define({
|
|
298
|
+
'/document_ai/v1/resume/parse': {
|
|
299
|
+
POST: { name: 'parseDocumentAiResume', multipart: true },
|
|
300
|
+
},
|
|
301
|
+
'/document_ai/v1/vehicle_invoice/recognize': {
|
|
302
|
+
POST: { name: 'recognizeDocumentAiVehicleInvoice', multipart: true },
|
|
303
|
+
},
|
|
304
|
+
'/document_ai/v1/health_certificate/recognize': {
|
|
305
|
+
POST: { name: 'recognizeDocumentAiHealthCertificate', multipart: true },
|
|
306
|
+
},
|
|
307
|
+
'/document_ai/v1/hkm_mainland_travel_permit/recognize': {
|
|
308
|
+
POST: { name: 'recognizeDocumentAiHkmMainlandTravelPermit', multipart: true },
|
|
309
|
+
},
|
|
310
|
+
'/document_ai/v1/tw_mainland_travel_permit/recognize': {
|
|
311
|
+
POST: { name: 'recognizeDocumentAiTwMainlandTravelPermit', multipart: true },
|
|
312
|
+
},
|
|
313
|
+
'/document_ai/v1/chinese_passport/recognize': {
|
|
314
|
+
POST: { name: 'recognizeDocumentAiChinesePassport', multipart: true },
|
|
315
|
+
},
|
|
316
|
+
'/document_ai/v1/bank_card/recognize': {
|
|
317
|
+
POST: { name: 'recognizeDocumentAiBankCard', multipart: true },
|
|
318
|
+
},
|
|
319
|
+
'/document_ai/v1/vehicle_license/recognize': {
|
|
320
|
+
POST: { name: 'recognizeDocumentAiVehicleLicense', multipart: true },
|
|
321
|
+
},
|
|
322
|
+
'/document_ai/v1/train_invoice/recognize': {
|
|
323
|
+
POST: { name: 'recognizeDocumentAiTrainInvoice', multipart: true },
|
|
324
|
+
},
|
|
325
|
+
'/document_ai/v1/taxi_invoice/recognize': {
|
|
326
|
+
POST: { name: 'recognizeDocumentAiTaxiInvoice', multipart: true },
|
|
327
|
+
},
|
|
328
|
+
'/document_ai/v1/id_card/recognize': {
|
|
329
|
+
POST: { name: 'recognizeDocumentAiIdCard', multipart: true },
|
|
330
|
+
},
|
|
331
|
+
'/document_ai/v1/food_produce_license/recognize': {
|
|
332
|
+
POST: { name: 'recognizeDocumentAiFoodProduceLicense', multipart: true },
|
|
333
|
+
},
|
|
334
|
+
'/document_ai/v1/food_manage_license/recognize': {
|
|
335
|
+
POST: { name: 'recognizeDocumentAiFoodManageLicense', multipart: true },
|
|
336
|
+
},
|
|
337
|
+
'/document_ai/v1/driving_license/recognize': {
|
|
338
|
+
POST: { name: 'recognizeDocumentAiDrivingLicense', multipart: true },
|
|
339
|
+
},
|
|
340
|
+
'/document_ai/v1/vat_invoice/recognize': {
|
|
341
|
+
POST: { name: 'recognizeDocumentAiVatInvoice', multipart: true },
|
|
342
|
+
},
|
|
343
|
+
'/document_ai/v1/business_license/recognize': {
|
|
344
|
+
POST: { name: 'recognizeDocumentAiBusinessLicense', multipart: true },
|
|
345
|
+
},
|
|
346
|
+
'/document_ai/v1/contract/field_extraction': {
|
|
347
|
+
POST: { name: 'fieldExtractionDocumentAiContract', multipart: true },
|
|
348
|
+
},
|
|
349
|
+
'/document_ai/v1/business_card/recognize': {
|
|
350
|
+
POST: { name: 'recognizeDocumentAiBusinessCard', multipart: true },
|
|
351
|
+
},
|
|
352
|
+
})
|