@satorijs/adapter-lark 3.10.6 → 3.11.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.
Files changed (119) hide show
  1. package/lib/content.d.ts +211 -93
  2. package/lib/index.cjs +2954 -2474
  3. package/lib/internal.d.ts +4 -4
  4. package/lib/message.d.ts +2 -3
  5. package/lib/types/acs.d.ts +212 -172
  6. package/lib/types/admin.d.ts +331 -291
  7. package/lib/types/aily.d.ts +331 -216
  8. package/lib/types/apaas.d.ts +646 -494
  9. package/lib/types/application.d.ts +559 -458
  10. package/lib/types/approval.d.ts +826 -791
  11. package/lib/types/attendance.d.ts +1094 -994
  12. package/lib/types/auth.d.ts +66 -61
  13. package/lib/types/authen.d.ts +221 -186
  14. package/lib/types/baike.d.ts +258 -233
  15. package/lib/types/base.d.ts +74 -0
  16. package/lib/types/bitable.d.ts +830 -770
  17. package/lib/types/board.d.ts +29 -14
  18. package/lib/types/calendar.d.ts +660 -605
  19. package/lib/types/cardkit.d.ts +149 -134
  20. package/lib/types/compensation.d.ts +84 -49
  21. package/lib/types/contact.d.ts +1279 -1204
  22. package/lib/types/corehr.d.ts +4982 -4526
  23. package/lib/types/directory.d.ts +447 -0
  24. package/lib/types/docs.d.ts +28 -18
  25. package/lib/types/document_ai.d.ts +347 -252
  26. package/lib/types/docx.d.ts +428 -383
  27. package/lib/types/drive.d.ts +1093 -1048
  28. package/lib/types/ehr.d.ts +66 -51
  29. package/lib/types/event.d.ts +16 -6
  30. package/lib/types/helpdesk.d.ts +816 -741
  31. package/lib/types/hire.d.ts +3955 -3589
  32. package/lib/types/human_authentication.d.ts +32 -22
  33. package/lib/types/im.d.ts +1420 -1295
  34. package/lib/types/index.d.ts +1422 -330
  35. package/lib/types/lingo.d.ts +279 -249
  36. package/lib/types/mail.d.ts +1032 -675
  37. package/lib/types/mdm.d.ts +105 -37
  38. package/lib/types/minutes.d.ts +73 -26
  39. package/lib/types/moments.d.ts +23 -13
  40. package/lib/types/okr.d.ts +266 -225
  41. package/lib/types/optical_char_recognition.d.ts +22 -12
  42. package/lib/types/passport.d.ts +58 -48
  43. package/lib/types/payroll.d.ts +210 -53
  44. package/lib/types/performance.d.ts +463 -414
  45. package/lib/types/personal_settings.d.ts +93 -82
  46. package/lib/types/report.d.ts +79 -58
  47. package/lib/types/search.d.ts +265 -235
  48. package/lib/types/security_and_compliance.d.ts +30 -19
  49. package/lib/types/sheets.d.ts +356 -321
  50. package/lib/types/speech_to_text.d.ts +44 -34
  51. package/lib/types/task.d.ts +998 -1087
  52. package/lib/types/tenant.d.ts +25 -15
  53. package/lib/types/translation.d.ts +42 -32
  54. package/lib/types/trust_party.d.ts +81 -0
  55. package/lib/types/vc.d.ts +1218 -1123
  56. package/lib/types/verification.d.ts +11 -6
  57. package/lib/types/wiki.d.ts +270 -235
  58. package/lib/types/workplace.d.ts +58 -38
  59. package/lib/utils.d.ts +2 -2
  60. package/package.json +4 -4
  61. package/src/bot.ts +15 -15
  62. package/src/content.ts +230 -107
  63. package/src/internal.ts +29 -12
  64. package/src/message.ts +82 -111
  65. package/src/types/acs.ts +234 -186
  66. package/src/types/admin.ts +353 -305
  67. package/src/types/aily.ts +375 -233
  68. package/src/types/apaas.ts +754 -568
  69. package/src/types/application.ts +633 -507
  70. package/src/types/approval.ts +914 -872
  71. package/src/types/attendance.ts +1226 -1104
  72. package/src/types/auth.ts +72 -66
  73. package/src/types/authen.ts +233 -191
  74. package/src/types/baike.ts +276 -246
  75. package/src/types/base.ts +93 -0
  76. package/src/types/bitable.ts +966 -894
  77. package/src/types/board.ts +34 -16
  78. package/src/types/calendar.ts +751 -685
  79. package/src/types/cardkit.ts +164 -146
  80. package/src/types/compensation.ts +97 -55
  81. package/src/types/contact.ts +1465 -1375
  82. package/src/types/corehr.ts +5664 -5077
  83. package/src/types/directory.ts +569 -0
  84. package/src/types/docs.ts +31 -19
  85. package/src/types/document_ai.ts +401 -287
  86. package/src/types/docx.ts +492 -438
  87. package/src/types/drive.ts +1266 -1213
  88. package/src/types/ehr.ts +71 -53
  89. package/src/types/event.ts +19 -7
  90. package/src/types/helpdesk.ts +930 -840
  91. package/src/types/hire.ts +4453 -4019
  92. package/src/types/human_authentication.ts +35 -23
  93. package/src/types/im.ts +1626 -1476
  94. package/src/types/index.ts +1532 -346
  95. package/src/types/lingo.ts +299 -263
  96. package/src/types/mail.ts +1231 -779
  97. package/src/types/mdm.ts +122 -39
  98. package/src/types/minutes.ts +88 -28
  99. package/src/types/moments.ts +26 -14
  100. package/src/types/okr.ts +286 -238
  101. package/src/types/optical_char_recognition.ts +25 -13
  102. package/src/types/passport.ts +62 -50
  103. package/src/types/payroll.ts +254 -57
  104. package/src/types/performance.ts +528 -467
  105. package/src/types/personal_settings.ts +101 -89
  106. package/src/types/report.ts +86 -62
  107. package/src/types/search.ts +285 -249
  108. package/src/types/security_and_compliance.ts +33 -21
  109. package/src/types/sheets.ts +421 -379
  110. package/src/types/speech_to_text.ts +48 -36
  111. package/src/types/task.ts +1152 -1260
  112. package/src/types/tenant.ts +29 -17
  113. package/src/types/translation.ts +46 -34
  114. package/src/types/trust_party.ts +110 -0
  115. package/src/types/vc.ts +1397 -1283
  116. package/src/types/verification.ts +13 -7
  117. package/src/types/wiki.ts +293 -251
  118. package/src/types/workplace.ts +65 -41
  119. package/src/utils.ts +3 -3
@@ -1,352 +1,466 @@
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 '.'
1
+ import * as Lark from '.'
2
2
  import { Internal } from '../internal'
3
3
 
4
4
  declare module '../internal' {
5
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>
6
+ documentAi: DocumentAi.Methods
96
7
  }
97
8
  }
98
9
 
99
- export interface ParseDocumentAiResumeForm {
100
- /** 简历文件,支持 PDF / DOCX / PNG / JPG */
101
- file: Blob
102
- }
103
-
104
- export interface ParseDocumentAiResumeResponse {
105
- /** 简历信息 */
106
- resumes?: Resume[]
107
- }
108
-
109
- export interface RecognizeDocumentAiVehicleInvoiceForm {
110
- /** 识别的机动车发票源文件 */
111
- file: Blob
112
- }
113
-
114
- export interface RecognizeDocumentAiVehicleInvoiceResponse {
115
- /** 机动车发票信息 */
116
- vehicle_invoice?: VehicleInvoice
117
- }
118
-
119
- export interface RecognizeDocumentAiHealthCertificateForm {
120
- /** 识别的健康证源文件 */
121
- file: Blob
122
- }
123
-
124
- export interface RecognizeDocumentAiHealthCertificateResponse {
125
- /** 健康证信息 */
126
- health_certificate?: HealthCertificate
127
- }
128
-
129
- export interface RecognizeDocumentAiHkmMainlandTravelPermitForm {
130
- /** 识别的港澳居民来往内地通行证源文件 */
131
- file: Blob
132
- }
133
-
134
- export interface RecognizeDocumentAiHkmMainlandTravelPermitResponse {
135
- /** 港澳居民来往内地通行证信息 */
136
- hkm_mainland_travel_permit?: HkmMainlandTravelPermit
137
- }
138
-
139
- export interface RecognizeDocumentAiTwMainlandTravelPermitForm {
140
- /** 识别的台湾居民来往大陆通行证源文件 */
141
- file?: Blob
142
- }
143
-
144
- export interface RecognizeDocumentAiTwMainlandTravelPermitResponse {
145
- /** 台湾居民来往大陆通行证信息 */
146
- tw_mainland_travel_permit?: TwMainlandTravelPermit
147
- }
148
-
149
- export interface RecognizeDocumentAiChinesePassportForm {
150
- /** 识别的中国护照源文件 */
151
- file: Blob
152
- }
153
-
154
- export interface RecognizeDocumentAiChinesePassportResponse {
155
- /** 中国护照信息 */
156
- chinese_passport?: ChinesePassport
157
- }
158
-
159
- export interface RecognizeDocumentAiBankCardForm {
160
- /** 识别的银行卡源文件 */
161
- file: Blob
162
- }
163
-
164
- export interface RecognizeDocumentAiBankCardResponse {
165
- /** 银行卡信息 */
166
- bank_card?: BankCard
167
- }
168
-
169
- export interface RecognizeDocumentAiVehicleLicenseForm {
170
- /** 识别的行驶证源文件 */
171
- file: Blob
172
- }
173
-
174
- export interface RecognizeDocumentAiVehicleLicenseResponse {
175
- /** 行驶证信息 */
176
- vehicle_license?: VehicleLicense
177
- }
178
-
179
- export interface RecognizeDocumentAiTrainInvoiceForm {
180
- /** 识别的火车票源文件 */
181
- file: Blob
182
- }
183
-
184
- export interface RecognizeDocumentAiTrainInvoiceResponse {
185
- /** 火车票信息 */
186
- train_invoices?: TrainInvoice[]
187
- }
10
+ export namespace DocumentAi {
11
+ export interface Methods {
12
+ resume: Resume.Methods
13
+ vehicleInvoice: VehicleInvoice.Methods
14
+ healthCertificate: HealthCertificate.Methods
15
+ hkmMainlandTravelPermit: HkmMainlandTravelPermit.Methods
16
+ twMainlandTravelPermit: TwMainlandTravelPermit.Methods
17
+ chinesePassport: ChinesePassport.Methods
18
+ bankCard: BankCard.Methods
19
+ vehicleLicense: VehicleLicense.Methods
20
+ trainInvoice: TrainInvoice.Methods
21
+ taxiInvoice: TaxiInvoice.Methods
22
+ idCard: IdCard.Methods
23
+ foodProduceLicense: FoodProduceLicense.Methods
24
+ foodManageLicense: FoodManageLicense.Methods
25
+ drivingLicense: DrivingLicense.Methods
26
+ vatInvoice: VatInvoice.Methods
27
+ businessLicense: BusinessLicense.Methods
28
+ contract: Contract.Methods
29
+ businessCard: BusinessCard.Methods
30
+ }
188
31
 
189
- export interface RecognizeDocumentAiTaxiInvoiceForm {
190
- /** 识别的出租车票源文件 */
191
- file: Blob
192
- }
32
+ export namespace Resume {
33
+ export interface Methods {
34
+ /**
35
+ * 识别文件中的简历信息
36
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/resume/parse
37
+ */
38
+ parse(form: ParseForm): Promise<ParseResponse>
39
+ }
40
+
41
+ export interface ParseForm {
42
+ /** 简历文件,支持 PDF / DOCX / PNG / JPG */
43
+ file: Blob
44
+ }
45
+
46
+ export interface ParseResponse {
47
+ /** 简历信息 */
48
+ resumes?: Lark.Resume[]
49
+ }
50
+ }
193
51
 
194
- export interface RecognizeDocumentAiTaxiInvoiceResponse {
195
- /** 出租车票信息 */
196
- taxi_invoices?: TaxiInvoice[]
197
- }
52
+ export namespace VehicleInvoice {
53
+ export interface Methods {
54
+ /**
55
+ * 识别文件中的机动车发票
56
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vehicle_invoice/recognize
57
+ */
58
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
59
+ }
60
+
61
+ export interface RecognizeForm {
62
+ /** 识别的机动车发票源文件 */
63
+ file: Blob
64
+ }
65
+
66
+ export interface RecognizeResponse {
67
+ /** 机动车发票信息 */
68
+ vehicle_invoice?: Lark.VehicleInvoice
69
+ }
70
+ }
198
71
 
199
- export interface RecognizeDocumentAiIdCardForm {
200
- /** 识别身份证的源文件 */
201
- file: Blob
202
- }
72
+ export namespace HealthCertificate {
73
+ export interface Methods {
74
+ /**
75
+ * 识别文件中的健康证
76
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/health_certificate/recognize
77
+ */
78
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
79
+ }
80
+
81
+ export interface RecognizeForm {
82
+ /** 识别的健康证源文件 */
83
+ file: Blob
84
+ }
85
+
86
+ export interface RecognizeResponse {
87
+ /** 健康证信息 */
88
+ health_certificate?: Lark.HealthCertificate
89
+ }
90
+ }
203
91
 
204
- export interface RecognizeDocumentAiIdCardResponse {
205
- /** 身份证信息 */
206
- id_card?: IdCard
207
- }
92
+ export namespace HkmMainlandTravelPermit {
93
+ export interface Methods {
94
+ /**
95
+ * 识别文件中的港澳居民来往内地通行证
96
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/hkm_mainland_travel_permit/recognize
97
+ */
98
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
99
+ }
100
+
101
+ export interface RecognizeForm {
102
+ /** 识别的港澳居民来往内地通行证源文件 */
103
+ file: Blob
104
+ }
105
+
106
+ export interface RecognizeResponse {
107
+ /** 港澳居民来往内地通行证信息 */
108
+ hkm_mainland_travel_permit?: Lark.HkmMainlandTravelPermit
109
+ }
110
+ }
208
111
 
209
- export interface RecognizeDocumentAiFoodProduceLicenseForm {
210
- /** 识别的食品生产许可证源文件 */
211
- file: Blob
212
- }
112
+ export namespace TwMainlandTravelPermit {
113
+ export interface Methods {
114
+ /**
115
+ * 识别文件中的台湾居民来往大陆通行证
116
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/tw_mainland_travel_permit/recognize
117
+ */
118
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
119
+ }
120
+
121
+ export interface RecognizeForm {
122
+ /** 识别的台湾居民来往大陆通行证源文件 */
123
+ file?: Blob
124
+ }
125
+
126
+ export interface RecognizeResponse {
127
+ /** 台湾居民来往大陆通行证信息 */
128
+ tw_mainland_travel_permit?: Lark.TwMainlandTravelPermit
129
+ }
130
+ }
213
131
 
214
- export interface RecognizeDocumentAiFoodProduceLicenseResponse {
215
- /** 食品生产许可证信息 */
216
- food_produce_license?: FoodProduceLicense
217
- }
132
+ export namespace ChinesePassport {
133
+ export interface Methods {
134
+ /**
135
+ * 识别文件中的中国护照
136
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/chinese_passport/recognize
137
+ */
138
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
139
+ }
140
+
141
+ export interface RecognizeForm {
142
+ /** 识别的中国护照源文件 */
143
+ file: Blob
144
+ }
145
+
146
+ export interface RecognizeResponse {
147
+ /** 中国护照信息 */
148
+ chinese_passport?: Lark.ChinesePassport
149
+ }
150
+ }
218
151
 
219
- export interface RecognizeDocumentAiFoodManageLicenseForm {
220
- /** 识别的食品经营许可证源文件 */
221
- file: Blob
222
- }
152
+ export namespace BankCard {
153
+ export interface Methods {
154
+ /**
155
+ * 识别文件中的银行卡
156
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/bank_card/recognize
157
+ */
158
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
159
+ }
160
+
161
+ export interface RecognizeForm {
162
+ /** 识别的银行卡源文件 */
163
+ file: Blob
164
+ }
165
+
166
+ export interface RecognizeResponse {
167
+ /** 银行卡信息 */
168
+ bank_card?: Lark.BankCard
169
+ }
170
+ }
223
171
 
224
- export interface RecognizeDocumentAiFoodManageLicenseResponse {
225
- /** 食品经营许可证信息 */
226
- food_manage_license?: FoodManageLicense
227
- }
172
+ export namespace VehicleLicense {
173
+ export interface Methods {
174
+ /**
175
+ * 识别文件中的行驶证
176
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vehicle_license/recognize
177
+ */
178
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
179
+ }
180
+
181
+ export interface RecognizeForm {
182
+ /** 识别的行驶证源文件 */
183
+ file: Blob
184
+ }
185
+
186
+ export interface RecognizeResponse {
187
+ /** 行驶证信息 */
188
+ vehicle_license?: Lark.VehicleLicense
189
+ }
190
+ }
228
191
 
229
- export interface RecognizeDocumentAiDrivingLicenseForm {
230
- /** 识别的驾驶证源文件 */
231
- file: Blob
232
- }
192
+ export namespace TrainInvoice {
193
+ export interface Methods {
194
+ /**
195
+ * 识别文件中的火车票
196
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/train_invoice/recognize
197
+ */
198
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
199
+ }
200
+
201
+ export interface RecognizeForm {
202
+ /** 识别的火车票源文件 */
203
+ file: Blob
204
+ }
205
+
206
+ export interface RecognizeResponse {
207
+ /** 火车票信息 */
208
+ train_invoices?: Lark.TrainInvoice[]
209
+ }
210
+ }
233
211
 
234
- export interface RecognizeDocumentAiDrivingLicenseResponse {
235
- /** 驾驶证信息 */
236
- driving_license?: DrvingLicense
237
- }
212
+ export namespace TaxiInvoice {
213
+ export interface Methods {
214
+ /**
215
+ * 识别文件中的出租车发票
216
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/taxi_invoice/recognize
217
+ */
218
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
219
+ }
220
+
221
+ export interface RecognizeForm {
222
+ /** 识别的出租车票源文件 */
223
+ file: Blob
224
+ }
225
+
226
+ export interface RecognizeResponse {
227
+ /** 出租车票信息 */
228
+ taxi_invoices?: Lark.TaxiInvoice[]
229
+ }
230
+ }
238
231
 
239
- export interface RecognizeDocumentAiVatInvoiceForm {
240
- /** 识别的增值税发票文件 */
241
- file: Blob
242
- }
232
+ export namespace IdCard {
233
+ export interface Methods {
234
+ /**
235
+ * 识别文件中的身份证
236
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/id_card/recognize
237
+ */
238
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
239
+ }
240
+
241
+ export interface RecognizeForm {
242
+ /** 识别身份证的源文件 */
243
+ file: Blob
244
+ }
245
+
246
+ export interface RecognizeResponse {
247
+ /** 身份证信息 */
248
+ id_card?: Lark.IdCard
249
+ }
250
+ }
243
251
 
244
- export interface RecognizeDocumentAiVatInvoiceResponse {
245
- /** 增值税发票信息 */
246
- vat_invoices?: VatInvoice[]
247
- }
252
+ export namespace FoodProduceLicense {
253
+ export interface Methods {
254
+ /**
255
+ * 识别文件中的食品生产许可证
256
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/food_produce_license/recognize
257
+ */
258
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
259
+ }
260
+
261
+ export interface RecognizeForm {
262
+ /** 识别的食品生产许可证源文件 */
263
+ file: Blob
264
+ }
265
+
266
+ export interface RecognizeResponse {
267
+ /** 食品生产许可证信息 */
268
+ food_produce_license?: Lark.FoodProduceLicense
269
+ }
270
+ }
248
271
 
249
- export interface RecognizeDocumentAiBusinessLicenseForm {
250
- /** 识别的营业执照源文件 */
251
- file: Blob
252
- }
272
+ export namespace FoodManageLicense {
273
+ export interface Methods {
274
+ /**
275
+ * 识别文件中的食品经营许可证
276
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/food_manage_license/recognize
277
+ */
278
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
279
+ }
280
+
281
+ export interface RecognizeForm {
282
+ /** 识别的食品经营许可证源文件 */
283
+ file: Blob
284
+ }
285
+
286
+ export interface RecognizeResponse {
287
+ /** 食品经营许可证信息 */
288
+ food_manage_license?: Lark.FoodManageLicense
289
+ }
290
+ }
253
291
 
254
- export interface RecognizeDocumentAiBusinessLicenseResponse {
255
- /** 营业执照信息 */
256
- business_license?: BusinessLicense
257
- }
292
+ export namespace DrivingLicense {
293
+ export interface Methods {
294
+ /**
295
+ * 识别文件中的驾驶证
296
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/driving_license/recognize
297
+ */
298
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
299
+ }
300
+
301
+ export interface RecognizeForm {
302
+ /** 识别的驾驶证源文件 */
303
+ file: Blob
304
+ }
305
+
306
+ export interface RecognizeResponse {
307
+ /** 驾驶证信息 */
308
+ driving_license?: Lark.DrvingLicense
309
+ }
310
+ }
258
311
 
259
- export interface FieldExtractionDocumentAiContractForm {
260
- /** 合同字段解析的源文件,当前只支持pdf, doc, docx三种类型的文件 */
261
- file: Blob
262
- /** pdf页数限制,太长会导致latency增加,最大允许100页 */
263
- pdf_page_limit: number
264
- /** ocr 参数,当前支持force, pdf, unused三种格式 */
265
- ocr_mode: 'force' | 'auto' | 'unused'
266
- }
312
+ export namespace VatInvoice {
313
+ export interface Methods {
314
+ /**
315
+ * 识别文件中的增值税发票
316
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vat_invoice/recognize
317
+ */
318
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
319
+ }
320
+
321
+ export interface RecognizeForm {
322
+ /** 识别的增值税发票文件 */
323
+ file: Blob
324
+ }
325
+
326
+ export interface RecognizeResponse {
327
+ /** 增值税发票信息 */
328
+ vat_invoices?: Lark.VatInvoice[]
329
+ }
330
+ }
267
331
 
268
- export interface FieldExtractionDocumentAiContractResponse {
269
- /** 文件的唯一id */
270
- file_id?: string
271
- /** 总交易金额 */
272
- price?: ExtractPrice
273
- /** 期限相关信息,包括开始日期、结束日期、有效时长 */
274
- time?: ExtractTime
275
- /** 盖章份数 */
276
- copy?: ExtractCopy
277
- /** 币种 */
278
- currency?: ExtractCurrency
279
- /** 合同标题 */
280
- header?: string
281
- /** 主体信息 */
282
- body_info?: BodyInfo[]
283
- /** 银行信息 */
284
- bank_info?: BankInfo[]
285
- }
332
+ export namespace BusinessLicense {
333
+ export interface Methods {
334
+ /**
335
+ * 识别文件中的营业执照
336
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/business_license/recognize
337
+ */
338
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
339
+ }
340
+
341
+ export interface RecognizeForm {
342
+ /** 识别的营业执照源文件 */
343
+ file: Blob
344
+ }
345
+
346
+ export interface RecognizeResponse {
347
+ /** 营业执照信息 */
348
+ business_license?: Lark.BusinessLicense
349
+ }
350
+ }
286
351
 
287
- export interface RecognizeDocumentAiBusinessCardForm {
288
- /** 识别名片的源文件(支持 JPG / PNG / PDF) */
289
- file: Blob
290
- }
352
+ export namespace Contract {
353
+ export interface Methods {
354
+ /**
355
+ * 提取文件中的合同字段
356
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/contract/field_extraction
357
+ */
358
+ fieldExtraction(form: FieldExtractionForm): Promise<FieldExtractionResponse>
359
+ }
360
+
361
+ export interface FieldExtractionForm {
362
+ /** 合同字段解析的源文件,当前只支持pdf, doc, docx三种类型的文件 */
363
+ file: Blob
364
+ /** pdf页数限制,太长会导致latency增加,最大允许100页 */
365
+ pdf_page_limit: number
366
+ /** ocr 参数,当前支持force, pdf, unused三种格式 */
367
+ ocr_mode: 'force' | 'auto' | 'unused'
368
+ }
369
+
370
+ export interface FieldExtractionResponse {
371
+ /** 文件的唯一id */
372
+ file_id?: string
373
+ /** 总交易金额 */
374
+ price?: Lark.ExtractPrice
375
+ /** 期限相关信息,包括开始日期、结束日期、有效时长 */
376
+ time?: Lark.ExtractTime
377
+ /** 盖章份数 */
378
+ copy?: Lark.ExtractCopy
379
+ /** 币种 */
380
+ currency?: Lark.ExtractCurrency
381
+ /** 合同标题 */
382
+ header?: string
383
+ /** 主体信息 */
384
+ body_info?: Lark.BodyInfo[]
385
+ /** 银行信息 */
386
+ bank_info?: Lark.BankInfo[]
387
+ }
388
+ }
291
389
 
292
- export interface RecognizeDocumentAiBusinessCardResponse {
293
- /** 名片信息 */
294
- business_cards?: RecognizedEntities[]
390
+ export namespace BusinessCard {
391
+ export interface Methods {
392
+ /**
393
+ * 识别文件中的名片
394
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/business_card/recognize
395
+ */
396
+ recognize(form: RecognizeForm): Promise<RecognizeResponse>
397
+ }
398
+
399
+ export interface RecognizeForm {
400
+ /** 识别名片的源文件(支持 JPG / PNG / PDF) */
401
+ file: Blob
402
+ }
403
+
404
+ export interface RecognizeResponse {
405
+ /** 名片信息 */
406
+ business_cards?: Lark.RecognizedEntities[]
407
+ }
408
+ }
295
409
  }
296
410
 
297
411
  Internal.define({
298
412
  '/document_ai/v1/resume/parse': {
299
- POST: { name: 'parseDocumentAiResume', multipart: true },
413
+ POST: { name: 'documentAi.resume.parse', multipart: true },
300
414
  },
301
415
  '/document_ai/v1/vehicle_invoice/recognize': {
302
- POST: { name: 'recognizeDocumentAiVehicleInvoice', multipart: true },
416
+ POST: { name: 'documentAi.vehicleInvoice.recognize', multipart: true },
303
417
  },
304
418
  '/document_ai/v1/health_certificate/recognize': {
305
- POST: { name: 'recognizeDocumentAiHealthCertificate', multipart: true },
419
+ POST: { name: 'documentAi.healthCertificate.recognize', multipart: true },
306
420
  },
307
421
  '/document_ai/v1/hkm_mainland_travel_permit/recognize': {
308
- POST: { name: 'recognizeDocumentAiHkmMainlandTravelPermit', multipart: true },
422
+ POST: { name: 'documentAi.hkmMainlandTravelPermit.recognize', multipart: true },
309
423
  },
310
424
  '/document_ai/v1/tw_mainland_travel_permit/recognize': {
311
- POST: { name: 'recognizeDocumentAiTwMainlandTravelPermit', multipart: true },
425
+ POST: { name: 'documentAi.twMainlandTravelPermit.recognize', multipart: true },
312
426
  },
313
427
  '/document_ai/v1/chinese_passport/recognize': {
314
- POST: { name: 'recognizeDocumentAiChinesePassport', multipart: true },
428
+ POST: { name: 'documentAi.chinesePassport.recognize', multipart: true },
315
429
  },
316
430
  '/document_ai/v1/bank_card/recognize': {
317
- POST: { name: 'recognizeDocumentAiBankCard', multipart: true },
431
+ POST: { name: 'documentAi.bankCard.recognize', multipart: true },
318
432
  },
319
433
  '/document_ai/v1/vehicle_license/recognize': {
320
- POST: { name: 'recognizeDocumentAiVehicleLicense', multipart: true },
434
+ POST: { name: 'documentAi.vehicleLicense.recognize', multipart: true },
321
435
  },
322
436
  '/document_ai/v1/train_invoice/recognize': {
323
- POST: { name: 'recognizeDocumentAiTrainInvoice', multipart: true },
437
+ POST: { name: 'documentAi.trainInvoice.recognize', multipart: true },
324
438
  },
325
439
  '/document_ai/v1/taxi_invoice/recognize': {
326
- POST: { name: 'recognizeDocumentAiTaxiInvoice', multipart: true },
440
+ POST: { name: 'documentAi.taxiInvoice.recognize', multipart: true },
327
441
  },
328
442
  '/document_ai/v1/id_card/recognize': {
329
- POST: { name: 'recognizeDocumentAiIdCard', multipart: true },
443
+ POST: { name: 'documentAi.idCard.recognize', multipart: true },
330
444
  },
331
445
  '/document_ai/v1/food_produce_license/recognize': {
332
- POST: { name: 'recognizeDocumentAiFoodProduceLicense', multipart: true },
446
+ POST: { name: 'documentAi.foodProduceLicense.recognize', multipart: true },
333
447
  },
334
448
  '/document_ai/v1/food_manage_license/recognize': {
335
- POST: { name: 'recognizeDocumentAiFoodManageLicense', multipart: true },
449
+ POST: { name: 'documentAi.foodManageLicense.recognize', multipart: true },
336
450
  },
337
451
  '/document_ai/v1/driving_license/recognize': {
338
- POST: { name: 'recognizeDocumentAiDrivingLicense', multipart: true },
452
+ POST: { name: 'documentAi.drivingLicense.recognize', multipart: true },
339
453
  },
340
454
  '/document_ai/v1/vat_invoice/recognize': {
341
- POST: { name: 'recognizeDocumentAiVatInvoice', multipart: true },
455
+ POST: { name: 'documentAi.vatInvoice.recognize', multipart: true },
342
456
  },
343
457
  '/document_ai/v1/business_license/recognize': {
344
- POST: { name: 'recognizeDocumentAiBusinessLicense', multipart: true },
458
+ POST: { name: 'documentAi.businessLicense.recognize', multipart: true },
345
459
  },
346
460
  '/document_ai/v1/contract/field_extraction': {
347
- POST: { name: 'fieldExtractionDocumentAiContract', multipart: true },
461
+ POST: { name: 'documentAi.contract.fieldExtraction', multipart: true },
348
462
  },
349
463
  '/document_ai/v1/business_card/recognize': {
350
- POST: { name: 'recognizeDocumentAiBusinessCard', multipart: true },
464
+ POST: { name: 'documentAi.businessCard.recognize', multipart: true },
351
465
  },
352
466
  })