@satorijs/adapter-lark 3.7.1 → 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.
@@ -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
@@ -16756,6 +16756,50 @@ export interface UrgentPhoneImMessageQuery {
16756
16756
  /** 此次调用中使用的用户ID的类型 */
16757
16757
  user_id_type: string;
16758
16758
  }
16759
+ export interface CreateImImageForm {
16760
+ /** 图片类型 */
16761
+ image_type: 'message' | 'avatar';
16762
+ /**
16763
+ * 图片内容。传值方式可以参考请求体示例。
16764
+ *
16765
+ * 注意:
16766
+ *
16767
+ * - 上传的图片大小不能超过 10 MB,也不能上传大小为 0 的图片。
16768
+ * - 分辨率限制:
16769
+ * - GIF 图片分辨率不能超过 2000 x 2000,其他图片分辨率不能超过 12000 x 12000。
16770
+ * - 用于设置头像的图片分辨率不能超过 4096 x 4096。
16771
+ */
16772
+ image: Blob;
16773
+ }
16774
+ export interface CreateImFileForm {
16775
+ /**
16776
+ * 待上传的文件类型
16777
+ *
16778
+ * 可选值有:
16779
+ *
16780
+ * - opus:OPUS 音频文件。其他格式的音频文件,请转为 OPUS 格式后上传。可使用 ffmpeg 转换格式:
16781
+ * ```sh
16782
+ * ffmpeg -i SourceFile.mp3 -acodec libopus -ac 1 -ar 16000 TargetFile.opus
16783
+ * ```
16784
+ * - mp4:MP4 格式视频文件
16785
+ * - pdf:PDF 格式文件
16786
+ * - doc:DOC 格式文件
16787
+ * - xls:XLS 格式文件
16788
+ * - ppt:PPT 格式文件
16789
+ * - stream:stream 格式文件。若上传文件不属于以上枚举类型,可以使用 stream 格式
16790
+ */
16791
+ file_type: string;
16792
+ /** 带后缀的文件名 */
16793
+ file_name: string;
16794
+ /** 文件的时长(视频、音频),单位:毫秒。不传值时无法显示文件的具体时长。 */
16795
+ duration?: number;
16796
+ /**
16797
+ * 文件内容,具体的传值方式可参考请求体示例。
16798
+ *
16799
+ * 注意:文件大小不得超过 30 MB,且不允许上传空文件。
16800
+ */
16801
+ file: Blob;
16802
+ }
16759
16803
  export interface PatchImMessageRequest {
16760
16804
  /** 消息内容 json 格式,[发送消息 content 说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json),参考文档中的卡片格式 */
16761
16805
  content: string;
@@ -17117,6 +17161,44 @@ export interface TaskCheckDrivev1FileQuery {
17117
17161
  /** 文件相关异步任务id */
17118
17162
  task_id: string;
17119
17163
  }
17164
+ export interface UploadAllDrivev1MediaForm {
17165
+ /**
17166
+ * 要上传的素材的名称
17167
+ *
17168
+ * 数据校验规则:
17169
+ *
17170
+ * - 最大长度:250 字符
17171
+ */
17172
+ file_name: string;
17173
+ /**
17174
+ * 上传点的类型。你可根据上传的素材类型与云文档类型确定上传点类型。例如,要将一张图片插入到新版文档(文件类型为 docx)中,需指定上传点为 docx_image;要将一个附件上传到新版文档中,需指定上传点为 docx_file。
17175
+ *
17176
+ * 可选值有:
17177
+ *
17178
+ * - doc_image:旧版文档图片
17179
+ * - docx_image:新版文档图片
17180
+ * - sheet_image:电子表格图片
17181
+ * - doc_file:旧版文档文件
17182
+ * - docx_file:新版文档文件
17183
+ */
17184
+ parent_type: string;
17185
+ /** 上传点的 token,即要上传的云文档的 token,用于指定素材将要上传到的云文档或位置。参考素材概述了解上传点类型与上传点 token 的对应关系 */
17186
+ parent_node: string;
17187
+ /**
17188
+ * 文件的大小,单位为字节
17189
+ *
17190
+ * 数据校验规则:
17191
+ *
17192
+ * - 最大值:20971520
17193
+ */
17194
+ size: number;
17195
+ /** 文件的 Adler-32 校验和 */
17196
+ checksum?: string;
17197
+ /** 其它扩展信息。详情参考素材概述。如果需要跨域路由,需要填写路由的云文档 token,格式为 {"drive_route_token":"需要路由的云文档的 token"} */
17198
+ extra?: string;
17199
+ /** 文件的二进制内容 */
17200
+ file: Blob;
17201
+ }
17120
17202
  export interface DownloadDrivev1MediaQuery {
17121
17203
  /** 扩展信息 */
17122
17204
  extra?: string;
@@ -17139,6 +17221,18 @@ export interface UploadPrepareDrivev1MediaRequest {
17139
17221
  /** 扩展信息(可选) */
17140
17222
  extra?: string;
17141
17223
  }
17224
+ export interface UploadPartDrivev1MediaForm {
17225
+ /** 分片上传事务的 ID。通过调用分片上传素材(预上传)接口获取。 */
17226
+ upload_id: string;
17227
+ /** 块号,从 0 开始计数。 */
17228
+ seq: number;
17229
+ /** 块的大小,单位为字节。 */
17230
+ size: number;
17231
+ /** 素材文件的 Adler-32 校验和 */
17232
+ checksum?: string;
17233
+ /** 素材文件分片的二进制内容 */
17234
+ file: Blob;
17235
+ }
17142
17236
  export interface UploadFinishDrivev1MediaRequest {
17143
17237
  /** 分片上传事务ID */
17144
17238
  upload_id: string;
@@ -17157,6 +17251,38 @@ export interface GetSubscribeDrivev1FileQuery {
17157
17251
  /** 文档类型 */
17158
17252
  file_type: string;
17159
17253
  }
17254
+ export interface UploadAllDrivev1FileForm {
17255
+ /**
17256
+ * 要上传的文件的名称。
17257
+ *
17258
+ * 数据校验规则:
17259
+ *
17260
+ * - 最大长度:250 字符
17261
+ */
17262
+ file_name: string;
17263
+ /**
17264
+ * 上传点的类型。取固定值 explorer,表示将文件上传至云空间中。
17265
+ *
17266
+ * 可选值有:
17267
+ *
17268
+ * - explorer:云空间
17269
+ */
17270
+ parent_type: string;
17271
+ /** 云空间中文件夹的 token。获取方式见文件夹概述。 */
17272
+ parent_node: string;
17273
+ /**
17274
+ * 文件的大小,单位为字节。
17275
+ *
17276
+ * 数据校验规则:
17277
+ *
17278
+ * - 最大值:20971520
17279
+ */
17280
+ size: number;
17281
+ /** 文件的 Adler-32 校验和 */
17282
+ checksum?: string;
17283
+ /** 文件的二进制内容 */
17284
+ file: Blob;
17285
+ }
17160
17286
  export interface UploadPrepareDrivev1FileRequest {
17161
17287
  /** 文件名 */
17162
17288
  file_name: string;
@@ -17167,6 +17293,18 @@ export interface UploadPrepareDrivev1FileRequest {
17167
17293
  /** 文件大小 */
17168
17294
  size: number;
17169
17295
  }
17296
+ export interface UploadPartDrivev1FileForm {
17297
+ /** 分片上传事务 ID。通过调用分片上传文件-预上传接口获取。 */
17298
+ upload_id: string;
17299
+ /** 文件分片的序号,从 0 开始计数。 */
17300
+ seq: number;
17301
+ /** 分片的大小,单位为字节。 */
17302
+ size: number;
17303
+ /** 文件分片的 Adler-32 校验和 */
17304
+ checksum?: string;
17305
+ /** 文件分片的二进制内容 */
17306
+ file: Blob;
17307
+ }
17170
17308
  export interface UploadFinishDrivev1FileRequest {
17171
17309
  /** 分片上传事务ID */
17172
17310
  upload_id: string;
@@ -19166,6 +19304,10 @@ export interface QueryAttendanceUserSettingQuery {
19166
19304
  /** 请求体中的 user_ids 和响应体中的 user_id 的员工工号类型 */
19167
19305
  employee_type: string;
19168
19306
  }
19307
+ export interface UploadAttendanceFileForm {
19308
+ /** 文件内容 */
19309
+ file?: Blob;
19310
+ }
19169
19311
  export interface UploadAttendanceFileQuery {
19170
19312
  /** 带后缀的文件名 */
19171
19313
  file_name: string;
@@ -20518,6 +20660,24 @@ export interface ListTaskv2CommentQuery {
20518
20660
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
20519
20661
  user_id_type?: string;
20520
20662
  }
20663
+ export interface UploadTaskv2AttachmentForm {
20664
+ /**
20665
+ * 附件归属资源的类型
20666
+ *
20667
+ * 默认值:task
20668
+ */
20669
+ resource_type?: string;
20670
+ /**
20671
+ * 附件要归属资源的id。例如,要给任务添加附件,这里要填入任务GUID。任务GUID可以通过任务相关接口获得。
20672
+ *
20673
+ * 数据校验规则:
20674
+ *
20675
+ * - 最大长度:100 字符
20676
+ */
20677
+ resource_id: string;
20678
+ /** 要上传的文件,单请求支持最多5个文件。上传结果的顺序将和请求中文件的顺序保持一致。 */
20679
+ file: Blob;
20680
+ }
20521
20681
  export interface UploadTaskv2AttachmentQuery {
20522
20682
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
20523
20683
  user_id_type?: string;
@@ -21290,6 +21450,90 @@ export interface PatchSearchSchemaRequest {
21290
21450
  /** 数据展示相关配置 */
21291
21451
  display?: Lark.SchemaDisplay;
21292
21452
  }
21453
+ export interface ParseDocumentAiResumeForm {
21454
+ /** 简历文件,支持 PDF / DOCX / PNG / JPG */
21455
+ file: Blob;
21456
+ }
21457
+ export interface RecognizeDocumentAiVehicleInvoiceForm {
21458
+ /** 识别的机动车发票源文件 */
21459
+ file: Blob;
21460
+ }
21461
+ export interface RecognizeDocumentAiHealthCertificateForm {
21462
+ /** 识别的健康证源文件 */
21463
+ file: Blob;
21464
+ }
21465
+ export interface RecognizeDocumentAiHkmMainlandTravelPermitForm {
21466
+ /** 识别的港澳居民来往内地通行证源文件 */
21467
+ file: Blob;
21468
+ }
21469
+ export interface RecognizeDocumentAiTwMainlandTravelPermitForm {
21470
+ /** 识别的台湾居民来往大陆通行证源文件 */
21471
+ file: Blob;
21472
+ }
21473
+ export interface RecognizeDocumentAiChinesePassportForm {
21474
+ /** 识别的中国护照源文件 */
21475
+ file: Blob;
21476
+ }
21477
+ export interface RecognizeDocumentAiBankCardForm {
21478
+ /** 识别的银行卡源文件 */
21479
+ file: Blob;
21480
+ }
21481
+ export interface RecognizeDocumentAiVehicleLicenseForm {
21482
+ /** 识别的行驶证源文件 */
21483
+ file: Blob;
21484
+ }
21485
+ export interface RecognizeDocumentAiTrainInvoiceForm {
21486
+ /** 识别的火车票源文件 */
21487
+ file: Blob;
21488
+ }
21489
+ export interface RecognizeDocumentAiTaxiInvoiceForm {
21490
+ /** 识别的出租车票源文件 */
21491
+ file: Blob;
21492
+ }
21493
+ export interface RecognizeDocumentAiIdCardForm {
21494
+ /** 识别身份证的源文件 */
21495
+ file: Blob;
21496
+ }
21497
+ export interface RecognizeDocumentAiFoodProduceLicenseForm {
21498
+ /** 识别的食品生产许可证源文件 */
21499
+ file: Blob;
21500
+ }
21501
+ export interface RecognizeDocumentAiFoodManageLicenseForm {
21502
+ /** 识别的食品经营许可证源文件 */
21503
+ file: Blob;
21504
+ }
21505
+ export interface RecognizeDocumentAiDrivingLicenseForm {
21506
+ /** 识别的驾驶证源文件 */
21507
+ file: Blob;
21508
+ }
21509
+ export interface RecognizeDocumentAiVatInvoiceForm {
21510
+ /** 识别的增值税发票文件(支持JPG/JPEG/PNG/PDF/BMP/OFD) */
21511
+ file: Blob;
21512
+ }
21513
+ export interface RecognizeDocumentAiBusinessLicenseForm {
21514
+ /** 识别的营业执照源文件 */
21515
+ file: Blob;
21516
+ }
21517
+ export interface FieldExtractionDocumentAiContractForm {
21518
+ /** 合同字段解析的源文件,当前只支持pdf, doc, docx三种类型的文件 */
21519
+ file: Blob;
21520
+ /** pdf页数限制,太长会导致latency增加,最大允许100页 */
21521
+ pdf_page_limit: number;
21522
+ /**
21523
+ * ocr 参数,当前支持force, pdf, unused三种格式
21524
+ *
21525
+ * 可选值有:
21526
+ *
21527
+ * - force:pdf类型文件直接走OCR解析
21528
+ * - auto:pdf类型文件先走本地解析,无法解析(扫描/图片版)再走OCR
21529
+ * - unused:不调用OCR,扫描/图片PDF返回不可解析信息
21530
+ */
21531
+ ocr_mode: string;
21532
+ }
21533
+ export interface RecognizeDocumentAiBusinessCardForm {
21534
+ /** 识别名片的源文件(支持 JPG / PNG / PDF) */
21535
+ file: Blob;
21536
+ }
21293
21537
  export interface BasicRecognizeOpticalCharRecognitionImageRequest {
21294
21538
  /** base64 后的图片数据 */
21295
21539
  image?: string;
@@ -21424,6 +21668,19 @@ export interface UpdateAdminBadgeRequest {
21424
21668
  /** 勋章的多语言描述文案,同explanation字段限制,最多100个字符。 */
21425
21669
  i18n_explanation?: Lark.I18n;
21426
21670
  }
21671
+ export interface CreateAdminBadgeImageForm {
21672
+ /** 勋章图片的文件,仅支持 PNG 格式,320 x 320 像素,大小不超过 1024 KB。 */
21673
+ image_file: Blob;
21674
+ /**
21675
+ * 图片的类型
21676
+ *
21677
+ * 可选值有:
21678
+ *
21679
+ * - 1:勋章详情图
21680
+ * - 2:勋章挂饰图
21681
+ */
21682
+ image_type: 1 | 2;
21683
+ }
21427
21684
  export interface ListAdminBadgeQuery {
21428
21685
  /** 分页大小 */
21429
21686
  page_size: number;
@@ -22070,6 +22327,12 @@ export interface PatchCorehrPersonQuery {
22070
22327
  /** 根据client_token是否一致来判断是否为同一请求 */
22071
22328
  client_token?: string;
22072
22329
  }
22330
+ export interface UploadCorehrPersonForm {
22331
+ /** 文件二进制内容,大小不超过50M */
22332
+ file_content: Blob;
22333
+ /** 文件名称(需带有文件后缀) */
22334
+ file_name: string;
22335
+ }
22073
22336
  export interface CreateCorehrJobDataRequest {
22074
22337
  /** 级别 */
22075
22338
  job_level_id?: string;
@@ -23105,27 +23368,21 @@ export interface LeaveRequestHistoryCorehrLeaveQuery {
23105
23368
  employment_id_list?: string[];
23106
23369
  /** 休假发起人 ID 列表,最大 100 个 */
23107
23370
  initiator_id_list?: string[];
23108
- /** 请假记录的状态
23109
-
23110
- 可选值有:
23111
-
23112
- - 1:已通过
23113
-
23114
- - 2:审批中
23115
-
23116
- - 3:审批中(更正)
23117
-
23118
- - 4:审批中(取消休假)
23119
-
23120
- - 5:审批中(返岗)
23121
-
23122
- - 6:已返岗
23123
-
23124
- - 7:已拒绝
23125
-
23126
- - 8:已取消
23127
-
23128
- - 9:已撤回 */
23371
+ /**
23372
+ * 请假记录的状态
23373
+ *
23374
+ * 可选值有:
23375
+ *
23376
+ * - 1:已通过
23377
+ * - 2:审批中
23378
+ * - 3:审批中(更正)
23379
+ * - 4:审批中(取消休假)
23380
+ * - 5:审批中(返岗)
23381
+ * - 6:已返岗
23382
+ * - 7:已拒绝
23383
+ * - 8:已取消
23384
+ * - 9:已撤回
23385
+ */
23129
23386
  leave_request_status?: string[];
23130
23387
  /** 假期类型 ID 列表,枚举值可通过【获取假期类型列表】接口获取 */
23131
23388
  leave_type_id_list?: string[];
@@ -24244,6 +24501,21 @@ export interface GetOkrProgressRecordQuery {
24244
24501
  /** 此次调用中使用的用户ID的类型 */
24245
24502
  user_id_type?: string;
24246
24503
  }
24504
+ export interface UploadOkrImageForm {
24505
+ /** 图片 */
24506
+ data: Blob;
24507
+ /** 图片的目标ID */
24508
+ target_id: string;
24509
+ /**
24510
+ * 图片使用的目标类型
24511
+ *
24512
+ * 可选值有:
24513
+ *
24514
+ * - 2:okr的O
24515
+ * - 3:okr的KR
24516
+ */
24517
+ target_type: 2 | 3;
24518
+ }
24247
24519
  export interface CreateHumanAuthenticationIdentityRequest {
24248
24520
  /** 姓名 */
24249
24521
  identity_name: string;
@@ -24563,6 +24835,18 @@ export interface ListLingoClassificationQuery {
24563
24835
  /** 词库ID */
24564
24836
  repo_id?: string;
24565
24837
  }
24838
+ export interface UploadLingoFileForm {
24839
+ /**
24840
+ * 文件名称,当前仅支持上传图片且图片格式为以下六种:icon、bmp、gif、png、jpeg、webp
24841
+ *
24842
+ * 数据校验规则:
24843
+ *
24844
+ * - 长度范围:1 字符 ~ 100 字符
24845
+ */
24846
+ name: string;
24847
+ /** 二进制文件内容,高宽像素在 320-4096 像素之间,大小在 3KB-10MB 的图片 */
24848
+ file: Blob;
24849
+ }
24566
24850
  export interface ListDataSecurityAndComplianceOpenapiLogRequest {
24567
24851
  /** 飞书开放平台定义的API */
24568
24852
  api_keys?: string[];
@@ -24866,6 +25150,18 @@ export interface ListBaikeClassificationQuery {
24866
25150
  /** 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果 */
24867
25151
  page_token?: string;
24868
25152
  }
25153
+ export interface UploadBaikeFileForm {
25154
+ /**
25155
+ * 文件名称,当前仅支持上传图片且图片格式为以下六种:icon、bmp、gif、png、jpeg、webp
25156
+ *
25157
+ * 数据校验规则:
25158
+ *
25159
+ * - 长度范围:1 字符 ~ 100 字符
25160
+ */
25161
+ name: string;
25162
+ /** 二进制文件内容,高宽像素在 320-4096 像素之间,大小在 3KB-10MB 的图片 */
25163
+ file: Blob;
25164
+ }
24869
25165
  export interface ListContactUserQuery {
24870
25166
  /** 此次调用中使用的用户ID的类型 */
24871
25167
  user_id_type?: string;