@satorijs/adapter-lark 3.7.0 → 3.7.2

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/src/types/api.ts CHANGED
@@ -486,7 +486,7 @@ declare module './internal' {
486
486
  * 上传图片
487
487
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/image/create
488
488
  */
489
- createImImage(form: FormData): Promise<CreateImImageResponse>
489
+ createImImage(form: CreateImImageForm): Promise<CreateImImageResponse>
490
490
  /**
491
491
  * 下载图片
492
492
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/image/get
@@ -496,7 +496,7 @@ declare module './internal' {
496
496
  * 上传文件
497
497
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/file/create
498
498
  */
499
- createImFile(form: FormData): Promise<CreateImFileResponse>
499
+ createImFile(form: CreateImFileForm): Promise<CreateImFileResponse>
500
500
  /**
501
501
  * 下载文件
502
502
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/file/get
@@ -736,7 +736,7 @@ declare module './internal' {
736
736
  * 上传素材
737
737
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/upload_all
738
738
  */
739
- uploadAllDrivev1Media(form: FormData): Promise<UploadAllDrivev1MediaResponse>
739
+ uploadAllDrivev1Media(form: UploadAllDrivev1MediaForm): Promise<UploadAllDrivev1MediaResponse>
740
740
  /**
741
741
  * 下载素材
742
742
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/download
@@ -756,7 +756,7 @@ declare module './internal' {
756
756
  * 分片上传素材(上传分片)
757
757
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/upload_part
758
758
  */
759
- uploadPartDrivev1Media(form: FormData): Promise<BaseResponse>
759
+ uploadPartDrivev1Media(form: UploadPartDrivev1MediaForm): Promise<BaseResponse>
760
760
  /**
761
761
  * 分片上传素材(完成上传)
762
762
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/upload_finish
@@ -781,7 +781,7 @@ declare module './internal' {
781
781
  * 上传文件
782
782
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/upload_all
783
783
  */
784
- uploadAllDrivev1File(form: FormData): Promise<UploadAllDrivev1FileResponse>
784
+ uploadAllDrivev1File(form: UploadAllDrivev1FileForm): Promise<UploadAllDrivev1FileResponse>
785
785
  /**
786
786
  * 分片上传文件(预上传)
787
787
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/upload_prepare
@@ -791,7 +791,7 @@ declare module './internal' {
791
791
  * 分片上传文件(上传分片)
792
792
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/upload_part
793
793
  */
794
- uploadPartDrivev1File(form: FormData): Promise<BaseResponse>
794
+ uploadPartDrivev1File(form: UploadPartDrivev1FileForm): Promise<BaseResponse>
795
795
  /**
796
796
  * 分片上传文件(完成上传)
797
797
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/upload_finish
@@ -2046,7 +2046,7 @@ declare module './internal' {
2046
2046
  * 上传用户人脸识别照片
2047
2047
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/file/upload
2048
2048
  */
2049
- uploadAttendanceFile(form: FormData, query?: UploadAttendanceFileQuery): Promise<UploadAttendanceFileResponse>
2049
+ uploadAttendanceFile(form: UploadAttendanceFileForm, query?: UploadAttendanceFileQuery): Promise<UploadAttendanceFileResponse>
2050
2050
  /**
2051
2051
  * 下载用户人脸识别照片
2052
2052
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/file/download
@@ -2741,7 +2741,7 @@ declare module './internal' {
2741
2741
  * 上传附件
2742
2742
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/attachment/upload
2743
2743
  */
2744
- uploadTaskv2Attachment(form: FormData, query?: UploadTaskv2AttachmentQuery): Promise<UploadTaskv2AttachmentResponse>
2744
+ uploadTaskv2Attachment(form: UploadTaskv2AttachmentForm, query?: UploadTaskv2AttachmentQuery): Promise<UploadTaskv2AttachmentResponse>
2745
2745
  /**
2746
2746
  * 列取附件
2747
2747
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/attachment/list
@@ -3256,92 +3256,92 @@ declare module './internal' {
3256
3256
  * 识别文件中的简历信息
3257
3257
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/resume/parse
3258
3258
  */
3259
- parseDocumentAiResume(form: FormData): Promise<ParseDocumentAiResumeResponse>
3259
+ parseDocumentAiResume(form: ParseDocumentAiResumeForm): Promise<ParseDocumentAiResumeResponse>
3260
3260
  /**
3261
3261
  * 识别文件中的机动车发票
3262
3262
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vehicle_invoice/recognize
3263
3263
  */
3264
- recognizeDocumentAiVehicleInvoice(form: FormData): Promise<RecognizeDocumentAiVehicleInvoiceResponse>
3264
+ recognizeDocumentAiVehicleInvoice(form: RecognizeDocumentAiVehicleInvoiceForm): Promise<RecognizeDocumentAiVehicleInvoiceResponse>
3265
3265
  /**
3266
3266
  * 识别文件中的健康证
3267
3267
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/health_certificate/recognize
3268
3268
  */
3269
- recognizeDocumentAiHealthCertificate(form: FormData): Promise<RecognizeDocumentAiHealthCertificateResponse>
3269
+ recognizeDocumentAiHealthCertificate(form: RecognizeDocumentAiHealthCertificateForm): Promise<RecognizeDocumentAiHealthCertificateResponse>
3270
3270
  /**
3271
3271
  * 识别文件中的港澳居民来往内地通行证
3272
3272
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/hkm_mainland_travel_permit/recognize
3273
3273
  */
3274
- recognizeDocumentAiHkmMainlandTravelPermit(form: FormData): Promise<RecognizeDocumentAiHkmMainlandTravelPermitResponse>
3274
+ recognizeDocumentAiHkmMainlandTravelPermit(form: RecognizeDocumentAiHkmMainlandTravelPermitForm): Promise<RecognizeDocumentAiHkmMainlandTravelPermitResponse>
3275
3275
  /**
3276
3276
  * 识别文件中的台湾居民来往大陆通行证
3277
3277
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/tw_mainland_travel_permit/recognize
3278
3278
  */
3279
- recognizeDocumentAiTwMainlandTravelPermit(form: FormData): Promise<RecognizeDocumentAiTwMainlandTravelPermitResponse>
3279
+ recognizeDocumentAiTwMainlandTravelPermit(form: RecognizeDocumentAiTwMainlandTravelPermitForm): Promise<RecognizeDocumentAiTwMainlandTravelPermitResponse>
3280
3280
  /**
3281
3281
  * 识别文件中的中国护照
3282
3282
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/chinese_passport/recognize
3283
3283
  */
3284
- recognizeDocumentAiChinesePassport(form: FormData): Promise<RecognizeDocumentAiChinesePassportResponse>
3284
+ recognizeDocumentAiChinesePassport(form: RecognizeDocumentAiChinesePassportForm): Promise<RecognizeDocumentAiChinesePassportResponse>
3285
3285
  /**
3286
3286
  * 识别文件中的银行卡
3287
3287
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/bank_card/recognize
3288
3288
  */
3289
- recognizeDocumentAiBankCard(form: FormData): Promise<RecognizeDocumentAiBankCardResponse>
3289
+ recognizeDocumentAiBankCard(form: RecognizeDocumentAiBankCardForm): Promise<RecognizeDocumentAiBankCardResponse>
3290
3290
  /**
3291
3291
  * 识别文件中的行驶证
3292
3292
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vehicle_license/recognize
3293
3293
  */
3294
- recognizeDocumentAiVehicleLicense(form: FormData): Promise<RecognizeDocumentAiVehicleLicenseResponse>
3294
+ recognizeDocumentAiVehicleLicense(form: RecognizeDocumentAiVehicleLicenseForm): Promise<RecognizeDocumentAiVehicleLicenseResponse>
3295
3295
  /**
3296
3296
  * 识别文件中的火车票
3297
3297
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/train_invoice/recognize
3298
3298
  */
3299
- recognizeDocumentAiTrainInvoice(form: FormData): Promise<RecognizeDocumentAiTrainInvoiceResponse>
3299
+ recognizeDocumentAiTrainInvoice(form: RecognizeDocumentAiTrainInvoiceForm): Promise<RecognizeDocumentAiTrainInvoiceResponse>
3300
3300
  /**
3301
3301
  * 识别文件中的出租车发票
3302
3302
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/taxi_invoice/recognize
3303
3303
  */
3304
- recognizeDocumentAiTaxiInvoice(form: FormData): Promise<RecognizeDocumentAiTaxiInvoiceResponse>
3304
+ recognizeDocumentAiTaxiInvoice(form: RecognizeDocumentAiTaxiInvoiceForm): Promise<RecognizeDocumentAiTaxiInvoiceResponse>
3305
3305
  /**
3306
3306
  * 识别文件中的身份证
3307
3307
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/id_card/recognize
3308
3308
  */
3309
- recognizeDocumentAiIdCard(form: FormData): Promise<RecognizeDocumentAiIdCardResponse>
3309
+ recognizeDocumentAiIdCard(form: RecognizeDocumentAiIdCardForm): Promise<RecognizeDocumentAiIdCardResponse>
3310
3310
  /**
3311
3311
  * 识别文件中的食品生产许可证
3312
3312
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/food_produce_license/recognize
3313
3313
  */
3314
- recognizeDocumentAiFoodProduceLicense(form: FormData): Promise<RecognizeDocumentAiFoodProduceLicenseResponse>
3314
+ recognizeDocumentAiFoodProduceLicense(form: RecognizeDocumentAiFoodProduceLicenseForm): Promise<RecognizeDocumentAiFoodProduceLicenseResponse>
3315
3315
  /**
3316
3316
  * 识别文件中的食品经营许可证
3317
3317
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/food_manage_license/recognize
3318
3318
  */
3319
- recognizeDocumentAiFoodManageLicense(form: FormData): Promise<RecognizeDocumentAiFoodManageLicenseResponse>
3319
+ recognizeDocumentAiFoodManageLicense(form: RecognizeDocumentAiFoodManageLicenseForm): Promise<RecognizeDocumentAiFoodManageLicenseResponse>
3320
3320
  /**
3321
3321
  * 识别文件中的驾驶证
3322
3322
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/driving_license/recognize
3323
3323
  */
3324
- recognizeDocumentAiDrivingLicense(form: FormData): Promise<RecognizeDocumentAiDrivingLicenseResponse>
3324
+ recognizeDocumentAiDrivingLicense(form: RecognizeDocumentAiDrivingLicenseForm): Promise<RecognizeDocumentAiDrivingLicenseResponse>
3325
3325
  /**
3326
3326
  * 识别文件中的增值税发票
3327
3327
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/vat_invoice/recognize
3328
3328
  */
3329
- recognizeDocumentAiVatInvoice(form: FormData): Promise<RecognizeDocumentAiVatInvoiceResponse>
3329
+ recognizeDocumentAiVatInvoice(form: RecognizeDocumentAiVatInvoiceForm): Promise<RecognizeDocumentAiVatInvoiceResponse>
3330
3330
  /**
3331
3331
  * 识别文件中的营业执照
3332
3332
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/business_license/recognize
3333
3333
  */
3334
- recognizeDocumentAiBusinessLicense(form: FormData): Promise<RecognizeDocumentAiBusinessLicenseResponse>
3334
+ recognizeDocumentAiBusinessLicense(form: RecognizeDocumentAiBusinessLicenseForm): Promise<RecognizeDocumentAiBusinessLicenseResponse>
3335
3335
  /**
3336
3336
  * 提取文件中的合同字段
3337
3337
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/contract/field_extraction
3338
3338
  */
3339
- fieldExtractionDocumentAiContract(form: FormData): Promise<FieldExtractionDocumentAiContractResponse>
3339
+ fieldExtractionDocumentAiContract(form: FieldExtractionDocumentAiContractForm): Promise<FieldExtractionDocumentAiContractResponse>
3340
3340
  /**
3341
3341
  * 识别文件中的名片
3342
3342
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/document_ai-v1/business_card/recognize
3343
3343
  */
3344
- recognizeDocumentAiBusinessCard(form: FormData): Promise<RecognizeDocumentAiBusinessCardResponse>
3344
+ recognizeDocumentAiBusinessCard(form: RecognizeDocumentAiBusinessCardForm): Promise<RecognizeDocumentAiBusinessCardResponse>
3345
3345
  /**
3346
3346
  * 识别图片中的文字
3347
3347
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/optical_char_recognition-v1/image/basic_recognize
@@ -3416,7 +3416,7 @@ declare module './internal' {
3416
3416
  * 上传勋章图片
3417
3417
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge_image/create
3418
3418
  */
3419
- createAdminBadgeImage(form: FormData): Promise<CreateAdminBadgeImageResponse>
3419
+ createAdminBadgeImage(form: CreateAdminBadgeImageForm): Promise<CreateAdminBadgeImageResponse>
3420
3420
  /**
3421
3421
  * 获取勋章列表
3422
3422
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/list
@@ -3636,7 +3636,7 @@ declare module './internal' {
3636
3636
  * 上传文件
3637
3637
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/upload
3638
3638
  */
3639
- uploadCorehrPerson(form: FormData): Promise<UploadCorehrPersonResponse>
3639
+ uploadCorehrPerson(form: UploadCorehrPersonForm): Promise<UploadCorehrPersonResponse>
3640
3640
  /**
3641
3641
  * 下载文件
3642
3642
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/file/get
@@ -4531,7 +4531,7 @@ declare module './internal' {
4531
4531
  * 上传进展记录图片
4532
4532
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/image/upload
4533
4533
  */
4534
- uploadOkrImage(form: FormData): Promise<UploadOkrImageResponse>
4534
+ uploadOkrImage(form: UploadOkrImageForm): Promise<UploadOkrImageResponse>
4535
4535
  /**
4536
4536
  * 录入身份信息
4537
4537
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/human_authentication-v1/identity/create
@@ -4691,7 +4691,7 @@ declare module './internal' {
4691
4691
  * 上传图片
4692
4692
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/lingo-v1/file/upload
4693
4693
  */
4694
- uploadLingoFile(form: FormData): Promise<UploadLingoFileResponse>
4694
+ uploadLingoFile(form: UploadLingoFileForm): Promise<UploadLingoFileResponse>
4695
4695
  /**
4696
4696
  * 下载图片
4697
4697
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/lingo-v1/file/download
@@ -4841,7 +4841,7 @@ declare module './internal' {
4841
4841
  * 上传图片
4842
4842
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/file/upload
4843
4843
  */
4844
- uploadBaikeFile(form: FormData): Promise<UploadBaikeFileResponse>
4844
+ uploadBaikeFile(form: UploadBaikeFileForm): Promise<UploadBaikeFileResponse>
4845
4845
  /**
4846
4846
  * 下载图片
4847
4847
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/file/download
@@ -16776,6 +16776,50 @@ export interface UrgentPhoneImMessageQuery {
16776
16776
  /** 此次调用中使用的用户ID的类型 */
16777
16777
  user_id_type: string
16778
16778
  }
16779
+ export interface CreateImImageForm {
16780
+ /** 图片类型 */
16781
+ image_type: 'message' | 'avatar'
16782
+ /**
16783
+ * 图片内容。传值方式可以参考请求体示例。
16784
+ *
16785
+ * 注意:
16786
+ *
16787
+ * - 上传的图片大小不能超过 10 MB,也不能上传大小为 0 的图片。
16788
+ * - 分辨率限制:
16789
+ * - GIF 图片分辨率不能超过 2000 x 2000,其他图片分辨率不能超过 12000 x 12000。
16790
+ * - 用于设置头像的图片分辨率不能超过 4096 x 4096。
16791
+ */
16792
+ image: Blob
16793
+ }
16794
+ export interface CreateImFileForm {
16795
+ /**
16796
+ * 待上传的文件类型
16797
+ *
16798
+ * 可选值有:
16799
+ *
16800
+ * - opus:OPUS 音频文件。其他格式的音频文件,请转为 OPUS 格式后上传。可使用 ffmpeg 转换格式:
16801
+ * ```sh
16802
+ * ffmpeg -i SourceFile.mp3 -acodec libopus -ac 1 -ar 16000 TargetFile.opus
16803
+ * ```
16804
+ * - mp4:MP4 格式视频文件
16805
+ * - pdf:PDF 格式文件
16806
+ * - doc:DOC 格式文件
16807
+ * - xls:XLS 格式文件
16808
+ * - ppt:PPT 格式文件
16809
+ * - stream:stream 格式文件。若上传文件不属于以上枚举类型,可以使用 stream 格式
16810
+ */
16811
+ file_type: string
16812
+ /** 带后缀的文件名 */
16813
+ file_name: string
16814
+ /** 文件的时长(视频、音频),单位:毫秒。不传值时无法显示文件的具体时长。 */
16815
+ duration?: number
16816
+ /**
16817
+ * 文件内容,具体的传值方式可参考请求体示例。
16818
+ *
16819
+ * 注意:文件大小不得超过 30 MB,且不允许上传空文件。
16820
+ */
16821
+ file: Blob
16822
+ }
16779
16823
  export interface PatchImMessageRequest {
16780
16824
  /** 消息内容 json 格式,[发送消息 content 说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json),参考文档中的卡片格式 */
16781
16825
  content: string
@@ -17137,6 +17181,44 @@ export interface TaskCheckDrivev1FileQuery {
17137
17181
  /** 文件相关异步任务id */
17138
17182
  task_id: string
17139
17183
  }
17184
+ export interface UploadAllDrivev1MediaForm {
17185
+ /**
17186
+ * 要上传的素材的名称
17187
+ *
17188
+ * 数据校验规则:
17189
+ *
17190
+ * - 最大长度:250 字符
17191
+ */
17192
+ file_name: string
17193
+ /**
17194
+ * 上传点的类型。你可根据上传的素材类型与云文档类型确定上传点类型。例如,要将一张图片插入到新版文档(文件类型为 docx)中,需指定上传点为 docx_image;要将一个附件上传到新版文档中,需指定上传点为 docx_file。
17195
+ *
17196
+ * 可选值有:
17197
+ *
17198
+ * - doc_image:旧版文档图片
17199
+ * - docx_image:新版文档图片
17200
+ * - sheet_image:电子表格图片
17201
+ * - doc_file:旧版文档文件
17202
+ * - docx_file:新版文档文件
17203
+ */
17204
+ parent_type: string
17205
+ /** 上传点的 token,即要上传的云文档的 token,用于指定素材将要上传到的云文档或位置。参考素材概述了解上传点类型与上传点 token 的对应关系 */
17206
+ parent_node: string
17207
+ /**
17208
+ * 文件的大小,单位为字节
17209
+ *
17210
+ * 数据校验规则:
17211
+ *
17212
+ * - 最大值:20971520
17213
+ */
17214
+ size: number
17215
+ /** 文件的 Adler-32 校验和 */
17216
+ checksum?: string
17217
+ /** 其它扩展信息。详情参考素材概述。如果需要跨域路由,需要填写路由的云文档 token,格式为 {"drive_route_token":"需要路由的云文档的 token"} */
17218
+ extra?: string
17219
+ /** 文件的二进制内容 */
17220
+ file: Blob
17221
+ }
17140
17222
  export interface DownloadDrivev1MediaQuery {
17141
17223
  /** 扩展信息 */
17142
17224
  extra?: string
@@ -17159,6 +17241,18 @@ export interface UploadPrepareDrivev1MediaRequest {
17159
17241
  /** 扩展信息(可选) */
17160
17242
  extra?: string
17161
17243
  }
17244
+ export interface UploadPartDrivev1MediaForm {
17245
+ /** 分片上传事务的 ID。通过调用分片上传素材(预上传)接口获取。 */
17246
+ upload_id: string
17247
+ /** 块号,从 0 开始计数。 */
17248
+ seq: number
17249
+ /** 块的大小,单位为字节。 */
17250
+ size: number
17251
+ /** 素材文件的 Adler-32 校验和 */
17252
+ checksum?: string
17253
+ /** 素材文件分片的二进制内容 */
17254
+ file: Blob
17255
+ }
17162
17256
  export interface UploadFinishDrivev1MediaRequest {
17163
17257
  /** 分片上传事务ID */
17164
17258
  upload_id: string
@@ -17177,6 +17271,38 @@ export interface GetSubscribeDrivev1FileQuery {
17177
17271
  /** 文档类型 */
17178
17272
  file_type: string
17179
17273
  }
17274
+ export interface UploadAllDrivev1FileForm {
17275
+ /**
17276
+ * 要上传的文件的名称。
17277
+ *
17278
+ * 数据校验规则:
17279
+ *
17280
+ * - 最大长度:250 字符
17281
+ */
17282
+ file_name: string
17283
+ /**
17284
+ * 上传点的类型。取固定值 explorer,表示将文件上传至云空间中。
17285
+ *
17286
+ * 可选值有:
17287
+ *
17288
+ * - explorer:云空间
17289
+ */
17290
+ parent_type: string
17291
+ /** 云空间中文件夹的 token。获取方式见文件夹概述。 */
17292
+ parent_node: string
17293
+ /**
17294
+ * 文件的大小,单位为字节。
17295
+ *
17296
+ * 数据校验规则:
17297
+ *
17298
+ * - 最大值:20971520
17299
+ */
17300
+ size: number
17301
+ /** 文件的 Adler-32 校验和 */
17302
+ checksum?: string
17303
+ /** 文件的二进制内容 */
17304
+ file: Blob
17305
+ }
17180
17306
  export interface UploadPrepareDrivev1FileRequest {
17181
17307
  /** 文件名 */
17182
17308
  file_name: string
@@ -17187,6 +17313,18 @@ export interface UploadPrepareDrivev1FileRequest {
17187
17313
  /** 文件大小 */
17188
17314
  size: number
17189
17315
  }
17316
+ export interface UploadPartDrivev1FileForm {
17317
+ /** 分片上传事务 ID。通过调用分片上传文件-预上传接口获取。 */
17318
+ upload_id: string
17319
+ /** 文件分片的序号,从 0 开始计数。 */
17320
+ seq: number
17321
+ /** 分片的大小,单位为字节。 */
17322
+ size: number
17323
+ /** 文件分片的 Adler-32 校验和 */
17324
+ checksum?: string
17325
+ /** 文件分片的二进制内容 */
17326
+ file: Blob
17327
+ }
17190
17328
  export interface UploadFinishDrivev1FileRequest {
17191
17329
  /** 分片上传事务ID */
17192
17330
  upload_id: string
@@ -19186,6 +19324,10 @@ export interface QueryAttendanceUserSettingQuery {
19186
19324
  /** 请求体中的 user_ids 和响应体中的 user_id 的员工工号类型 */
19187
19325
  employee_type: string
19188
19326
  }
19327
+ export interface UploadAttendanceFileForm {
19328
+ /** 文件内容 */
19329
+ file?: Blob
19330
+ }
19189
19331
  export interface UploadAttendanceFileQuery {
19190
19332
  /** 带后缀的文件名 */
19191
19333
  file_name: string
@@ -20538,6 +20680,24 @@ export interface ListTaskv2CommentQuery {
20538
20680
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
20539
20681
  user_id_type?: string
20540
20682
  }
20683
+ export interface UploadTaskv2AttachmentForm {
20684
+ /**
20685
+ * 附件归属资源的类型
20686
+ *
20687
+ * 默认值:task
20688
+ */
20689
+ resource_type?: string
20690
+ /**
20691
+ * 附件要归属资源的id。例如,要给任务添加附件,这里要填入任务GUID。任务GUID可以通过任务相关接口获得。
20692
+ *
20693
+ * 数据校验规则:
20694
+ *
20695
+ * - 最大长度:100 字符
20696
+ */
20697
+ resource_id: string
20698
+ /** 要上传的文件,单请求支持最多5个文件。上传结果的顺序将和请求中文件的顺序保持一致。 */
20699
+ file: Blob
20700
+ }
20541
20701
  export interface UploadTaskv2AttachmentQuery {
20542
20702
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
20543
20703
  user_id_type?: string
@@ -21310,6 +21470,90 @@ export interface PatchSearchSchemaRequest {
21310
21470
  /** 数据展示相关配置 */
21311
21471
  display?: Lark.SchemaDisplay
21312
21472
  }
21473
+ export interface ParseDocumentAiResumeForm {
21474
+ /** 简历文件,支持 PDF / DOCX / PNG / JPG */
21475
+ file: Blob
21476
+ }
21477
+ export interface RecognizeDocumentAiVehicleInvoiceForm {
21478
+ /** 识别的机动车发票源文件 */
21479
+ file: Blob
21480
+ }
21481
+ export interface RecognizeDocumentAiHealthCertificateForm {
21482
+ /** 识别的健康证源文件 */
21483
+ file: Blob
21484
+ }
21485
+ export interface RecognizeDocumentAiHkmMainlandTravelPermitForm {
21486
+ /** 识别的港澳居民来往内地通行证源文件 */
21487
+ file: Blob
21488
+ }
21489
+ export interface RecognizeDocumentAiTwMainlandTravelPermitForm {
21490
+ /** 识别的台湾居民来往大陆通行证源文件 */
21491
+ file: Blob
21492
+ }
21493
+ export interface RecognizeDocumentAiChinesePassportForm {
21494
+ /** 识别的中国护照源文件 */
21495
+ file: Blob
21496
+ }
21497
+ export interface RecognizeDocumentAiBankCardForm {
21498
+ /** 识别的银行卡源文件 */
21499
+ file: Blob
21500
+ }
21501
+ export interface RecognizeDocumentAiVehicleLicenseForm {
21502
+ /** 识别的行驶证源文件 */
21503
+ file: Blob
21504
+ }
21505
+ export interface RecognizeDocumentAiTrainInvoiceForm {
21506
+ /** 识别的火车票源文件 */
21507
+ file: Blob
21508
+ }
21509
+ export interface RecognizeDocumentAiTaxiInvoiceForm {
21510
+ /** 识别的出租车票源文件 */
21511
+ file: Blob
21512
+ }
21513
+ export interface RecognizeDocumentAiIdCardForm {
21514
+ /** 识别身份证的源文件 */
21515
+ file: Blob
21516
+ }
21517
+ export interface RecognizeDocumentAiFoodProduceLicenseForm {
21518
+ /** 识别的食品生产许可证源文件 */
21519
+ file: Blob
21520
+ }
21521
+ export interface RecognizeDocumentAiFoodManageLicenseForm {
21522
+ /** 识别的食品经营许可证源文件 */
21523
+ file: Blob
21524
+ }
21525
+ export interface RecognizeDocumentAiDrivingLicenseForm {
21526
+ /** 识别的驾驶证源文件 */
21527
+ file: Blob
21528
+ }
21529
+ export interface RecognizeDocumentAiVatInvoiceForm {
21530
+ /** 识别的增值税发票文件(支持JPG/JPEG/PNG/PDF/BMP/OFD) */
21531
+ file: Blob
21532
+ }
21533
+ export interface RecognizeDocumentAiBusinessLicenseForm {
21534
+ /** 识别的营业执照源文件 */
21535
+ file: Blob
21536
+ }
21537
+ export interface FieldExtractionDocumentAiContractForm {
21538
+ /** 合同字段解析的源文件,当前只支持pdf, doc, docx三种类型的文件 */
21539
+ file: Blob
21540
+ /** pdf页数限制,太长会导致latency增加,最大允许100页 */
21541
+ pdf_page_limit: number
21542
+ /**
21543
+ * ocr 参数,当前支持force, pdf, unused三种格式
21544
+ *
21545
+ * 可选值有:
21546
+ *
21547
+ * - force:pdf类型文件直接走OCR解析
21548
+ * - auto:pdf类型文件先走本地解析,无法解析(扫描/图片版)再走OCR
21549
+ * - unused:不调用OCR,扫描/图片PDF返回不可解析信息
21550
+ */
21551
+ ocr_mode: string
21552
+ }
21553
+ export interface RecognizeDocumentAiBusinessCardForm {
21554
+ /** 识别名片的源文件(支持 JPG / PNG / PDF) */
21555
+ file: Blob
21556
+ }
21313
21557
  export interface BasicRecognizeOpticalCharRecognitionImageRequest {
21314
21558
  /** base64 后的图片数据 */
21315
21559
  image?: string
@@ -21444,6 +21688,19 @@ export interface UpdateAdminBadgeRequest {
21444
21688
  /** 勋章的多语言描述文案,同explanation字段限制,最多100个字符。 */
21445
21689
  i18n_explanation?: Lark.I18n
21446
21690
  }
21691
+ export interface CreateAdminBadgeImageForm {
21692
+ /** 勋章图片的文件,仅支持 PNG 格式,320 x 320 像素,大小不超过 1024 KB。 */
21693
+ image_file: Blob
21694
+ /**
21695
+ * 图片的类型
21696
+ *
21697
+ * 可选值有:
21698
+ *
21699
+ * - 1:勋章详情图
21700
+ * - 2:勋章挂饰图
21701
+ */
21702
+ image_type: 1 | 2
21703
+ }
21447
21704
  export interface ListAdminBadgeQuery {
21448
21705
  /** 分页大小 */
21449
21706
  page_size: number
@@ -22090,6 +22347,12 @@ export interface PatchCorehrPersonQuery {
22090
22347
  /** 根据client_token是否一致来判断是否为同一请求 */
22091
22348
  client_token?: string
22092
22349
  }
22350
+ export interface UploadCorehrPersonForm {
22351
+ /** 文件二进制内容,大小不超过50M */
22352
+ file_content: Blob
22353
+ /** 文件名称(需带有文件后缀) */
22354
+ file_name: string
22355
+ }
22093
22356
  export interface CreateCorehrJobDataRequest {
22094
22357
  /** 级别 */
22095
22358
  job_level_id?: string
@@ -23125,27 +23388,21 @@ export interface LeaveRequestHistoryCorehrLeaveQuery {
23125
23388
  employment_id_list?: string[]
23126
23389
  /** 休假发起人 ID 列表,最大 100 个 */
23127
23390
  initiator_id_list?: string[]
23128
- /** 请假记录的状态
23129
-
23130
- 可选值有:
23131
-
23132
- - 1:已通过
23133
-
23134
- - 2:审批中
23135
-
23136
- - 3:审批中(更正)
23137
-
23138
- - 4:审批中(取消休假)
23139
-
23140
- - 5:审批中(返岗)
23141
-
23142
- - 6:已返岗
23143
-
23144
- - 7:已拒绝
23145
-
23146
- - 8:已取消
23147
-
23148
- - 9:已撤回 */
23391
+ /**
23392
+ * 请假记录的状态
23393
+ *
23394
+ * 可选值有:
23395
+ *
23396
+ * - 1:已通过
23397
+ * - 2:审批中
23398
+ * - 3:审批中(更正)
23399
+ * - 4:审批中(取消休假)
23400
+ * - 5:审批中(返岗)
23401
+ * - 6:已返岗
23402
+ * - 7:已拒绝
23403
+ * - 8:已取消
23404
+ * - 9:已撤回
23405
+ */
23149
23406
  leave_request_status?: string[]
23150
23407
  /** 假期类型 ID 列表,枚举值可通过【获取假期类型列表】接口获取 */
23151
23408
  leave_type_id_list?: string[]
@@ -24264,6 +24521,21 @@ export interface GetOkrProgressRecordQuery {
24264
24521
  /** 此次调用中使用的用户ID的类型 */
24265
24522
  user_id_type?: string
24266
24523
  }
24524
+ export interface UploadOkrImageForm {
24525
+ /** 图片 */
24526
+ data: Blob
24527
+ /** 图片的目标ID */
24528
+ target_id: string
24529
+ /**
24530
+ * 图片使用的目标类型
24531
+ *
24532
+ * 可选值有:
24533
+ *
24534
+ * - 2:okr的O
24535
+ * - 3:okr的KR
24536
+ */
24537
+ target_type: 2 | 3
24538
+ }
24267
24539
  export interface CreateHumanAuthenticationIdentityRequest {
24268
24540
  /** 姓名 */
24269
24541
  identity_name: string
@@ -24583,6 +24855,18 @@ export interface ListLingoClassificationQuery {
24583
24855
  /** 词库ID */
24584
24856
  repo_id?: string
24585
24857
  }
24858
+ export interface UploadLingoFileForm {
24859
+ /**
24860
+ * 文件名称,当前仅支持上传图片且图片格式为以下六种:icon、bmp、gif、png、jpeg、webp
24861
+ *
24862
+ * 数据校验规则:
24863
+ *
24864
+ * - 长度范围:1 字符 ~ 100 字符
24865
+ */
24866
+ name: string
24867
+ /** 二进制文件内容,高宽像素在 320-4096 像素之间,大小在 3KB-10MB 的图片 */
24868
+ file: Blob
24869
+ }
24586
24870
  export interface ListDataSecurityAndComplianceOpenapiLogRequest {
24587
24871
  /** 飞书开放平台定义的API */
24588
24872
  api_keys?: string[]
@@ -24886,6 +25170,18 @@ export interface ListBaikeClassificationQuery {
24886
25170
  /** 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果 */
24887
25171
  page_token?: string
24888
25172
  }
25173
+ export interface UploadBaikeFileForm {
25174
+ /**
25175
+ * 文件名称,当前仅支持上传图片且图片格式为以下六种:icon、bmp、gif、png、jpeg、webp
25176
+ *
25177
+ * 数据校验规则:
25178
+ *
25179
+ * - 长度范围:1 字符 ~ 100 字符
25180
+ */
25181
+ name: string
25182
+ /** 二进制文件内容,高宽像素在 320-4096 像素之间,大小在 3KB-10MB 的图片 */
25183
+ file: Blob
25184
+ }
24889
25185
  export interface ListContactUserQuery {
24890
25186
  /** 此次调用中使用的用户ID的类型 */
24891
25187
  user_id_type?: string
@@ -28055,7 +28351,7 @@ Internal.define({
28055
28351
  '/auth/v3/app_ticket/resend': {
28056
28352
  POST: 'appTicketResendAuth',
28057
28353
  },
28058
- }, false)
28354
+ }, { noExtractData: true })
28059
28355
 
28060
28356
  Internal.define({
28061
28357
  '/event/v1/outbound_ip': {