@satorijs/adapter-lark 3.9.0 → 3.9.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.
Files changed (89) hide show
  1. package/lib/index.cjs +1091 -27
  2. package/lib/internal.d.ts +2 -3
  3. package/lib/types/acs.d.ts +19 -19
  4. package/lib/types/admin.d.ts +58 -32
  5. package/lib/types/aily.d.ts +52 -52
  6. package/lib/types/apaas.d.ts +96 -96
  7. package/lib/types/api.d.ts +14 -1
  8. package/lib/types/application.d.ts +153 -69
  9. package/lib/types/approval.d.ts +186 -154
  10. package/lib/types/attendance.d.ts +395 -353
  11. package/lib/types/auth.d.ts +18 -18
  12. package/lib/types/authen.d.ts +24 -24
  13. package/lib/types/baike.d.ts +42 -42
  14. package/lib/types/bitable.d.ts +276 -192
  15. package/lib/types/calendar.d.ts +144 -144
  16. package/lib/types/cardkit.d.ts +8 -8
  17. package/lib/types/contact.d.ts +209 -137
  18. package/lib/types/corehr.d.ts +761 -613
  19. package/lib/types/document_ai.d.ts +68 -68
  20. package/lib/types/docx.d.ts +103 -95
  21. package/lib/types/drive.d.ts +237 -229
  22. package/lib/types/ehr.d.ts +26 -2
  23. package/lib/types/helpdesk.d.ts +156 -148
  24. package/lib/types/hire.d.ts +954 -510
  25. package/lib/types/im.d.ts +446 -446
  26. package/lib/types/index.d.ts +72 -30
  27. package/lib/types/lingo.d.ts +28 -28
  28. package/lib/types/mail.d.ts +192 -192
  29. package/lib/types/minutes.d.ts +4 -4
  30. package/lib/types/okr.d.ts +86 -58
  31. package/lib/types/passport.d.ts +13 -5
  32. package/lib/types/payroll.d.ts +13 -5
  33. package/lib/types/performance.d.ts +85 -79
  34. package/lib/types/personal_settings.d.ts +12 -12
  35. package/lib/types/report.d.ts +11 -5
  36. package/lib/types/search.d.ts +48 -24
  37. package/lib/types/sheets.d.ts +64 -64
  38. package/lib/types/speech_to_text.d.ts +4 -4
  39. package/lib/types/task.d.ts +191 -185
  40. package/lib/types/translation.d.ts +4 -4
  41. package/lib/types/vc.d.ts +335 -155
  42. package/lib/types/wiki.d.ts +48 -48
  43. package/package.json +1 -1
  44. package/src/internal.ts +3 -4
  45. package/src/types/acs.ts +24 -24
  46. package/src/types/admin.ts +69 -39
  47. package/src/types/aily.ts +61 -61
  48. package/src/types/apaas.ts +113 -113
  49. package/src/types/application.ts +177 -83
  50. package/src/types/approval.ts +210 -174
  51. package/src/types/attendance.ts +466 -421
  52. package/src/types/auth.ts +20 -20
  53. package/src/types/authen.ts +28 -28
  54. package/src/types/baike.ts +55 -55
  55. package/src/types/bitable.ts +321 -235
  56. package/src/types/calendar.ts +167 -167
  57. package/src/types/cardkit.ts +10 -10
  58. package/src/types/contact.ts +251 -169
  59. package/src/types/corehr.ts +905 -736
  60. package/src/types/document_ai.ts +85 -85
  61. package/src/types/docx.ts +117 -108
  62. package/src/types/drive.ts +299 -290
  63. package/src/types/ehr.ts +28 -2
  64. package/src/types/helpdesk.ts +182 -173
  65. package/src/types/hire.ts +1081 -591
  66. package/src/types/im.ts +521 -521
  67. package/src/types/index.ts +73 -30
  68. package/src/types/lingo.ts +36 -36
  69. package/src/types/mail.ts +215 -215
  70. package/src/types/minutes.ts +5 -5
  71. package/src/types/okr.ts +98 -66
  72. package/src/types/passport.ts +15 -6
  73. package/src/types/payroll.ts +15 -6
  74. package/src/types/performance.ts +98 -91
  75. package/src/types/personal_settings.ts +15 -15
  76. package/src/types/report.ts +13 -6
  77. package/src/types/search.ts +57 -29
  78. package/src/types/sheets.ts +80 -80
  79. package/src/types/speech_to_text.ts +5 -5
  80. package/src/types/task.ts +238 -231
  81. package/src/types/translation.ts +5 -5
  82. package/src/types/vc.ts +386 -186
  83. package/src/types/wiki.ts +59 -59
  84. package/src/utils.ts +11 -6
  85. package/lib/index.cjs.map +0 -6
  86. package/lib/types/guild.d.ts +0 -59
  87. package/lib/types/message/asset.d.ts +0 -40
  88. package/lib/types/user.d.ts +0 -78
  89. package/lib/types/utils.d.ts +0 -9
@@ -97,66 +97,130 @@ export interface ParseDocumentAiResumeForm {
97
97
  /** 简历文件,支持 PDF / DOCX / PNG / JPG */
98
98
  file: Blob;
99
99
  }
100
+ export interface ParseDocumentAiResumeResponse {
101
+ /** 简历信息 */
102
+ resumes?: Resume[];
103
+ }
100
104
  export interface RecognizeDocumentAiVehicleInvoiceForm {
101
105
  /** 识别的机动车发票源文件 */
102
106
  file: Blob;
103
107
  }
108
+ export interface RecognizeDocumentAiVehicleInvoiceResponse {
109
+ /** 机动车发票信息 */
110
+ vehicle_invoice?: VehicleInvoice;
111
+ }
104
112
  export interface RecognizeDocumentAiHealthCertificateForm {
105
113
  /** 识别的健康证源文件 */
106
114
  file: Blob;
107
115
  }
116
+ export interface RecognizeDocumentAiHealthCertificateResponse {
117
+ /** 健康证信息 */
118
+ health_certificate?: HealthCertificate;
119
+ }
108
120
  export interface RecognizeDocumentAiHkmMainlandTravelPermitForm {
109
121
  /** 识别的港澳居民来往内地通行证源文件 */
110
122
  file: Blob;
111
123
  }
124
+ export interface RecognizeDocumentAiHkmMainlandTravelPermitResponse {
125
+ /** 港澳居民来往内地通行证信息 */
126
+ hkm_mainland_travel_permit?: HkmMainlandTravelPermit;
127
+ }
112
128
  export interface RecognizeDocumentAiTwMainlandTravelPermitForm {
113
129
  /** 识别的台湾居民来往大陆通行证源文件 */
114
130
  file?: Blob;
115
131
  }
132
+ export interface RecognizeDocumentAiTwMainlandTravelPermitResponse {
133
+ /** 台湾居民来往大陆通行证信息 */
134
+ tw_mainland_travel_permit?: TwMainlandTravelPermit;
135
+ }
116
136
  export interface RecognizeDocumentAiChinesePassportForm {
117
137
  /** 识别的中国护照源文件 */
118
138
  file: Blob;
119
139
  }
140
+ export interface RecognizeDocumentAiChinesePassportResponse {
141
+ /** 中国护照信息 */
142
+ chinese_passport?: ChinesePassport;
143
+ }
120
144
  export interface RecognizeDocumentAiBankCardForm {
121
145
  /** 识别的银行卡源文件 */
122
146
  file: Blob;
123
147
  }
148
+ export interface RecognizeDocumentAiBankCardResponse {
149
+ /** 银行卡信息 */
150
+ bank_card?: BankCard;
151
+ }
124
152
  export interface RecognizeDocumentAiVehicleLicenseForm {
125
153
  /** 识别的行驶证源文件 */
126
154
  file: Blob;
127
155
  }
156
+ export interface RecognizeDocumentAiVehicleLicenseResponse {
157
+ /** 行驶证信息 */
158
+ vehicle_license?: VehicleLicense;
159
+ }
128
160
  export interface RecognizeDocumentAiTrainInvoiceForm {
129
161
  /** 识别的火车票源文件 */
130
162
  file: Blob;
131
163
  }
164
+ export interface RecognizeDocumentAiTrainInvoiceResponse {
165
+ /** 火车票信息 */
166
+ train_invoices?: TrainInvoice[];
167
+ }
132
168
  export interface RecognizeDocumentAiTaxiInvoiceForm {
133
169
  /** 识别的出租车票源文件 */
134
170
  file: Blob;
135
171
  }
172
+ export interface RecognizeDocumentAiTaxiInvoiceResponse {
173
+ /** 出租车票信息 */
174
+ taxi_invoices?: TaxiInvoice[];
175
+ }
136
176
  export interface RecognizeDocumentAiIdCardForm {
137
177
  /** 识别身份证的源文件 */
138
178
  file: Blob;
139
179
  }
180
+ export interface RecognizeDocumentAiIdCardResponse {
181
+ /** 身份证信息 */
182
+ id_card?: IdCard;
183
+ }
140
184
  export interface RecognizeDocumentAiFoodProduceLicenseForm {
141
185
  /** 识别的食品生产许可证源文件 */
142
186
  file: Blob;
143
187
  }
188
+ export interface RecognizeDocumentAiFoodProduceLicenseResponse {
189
+ /** 食品生产许可证信息 */
190
+ food_produce_license?: FoodProduceLicense;
191
+ }
144
192
  export interface RecognizeDocumentAiFoodManageLicenseForm {
145
193
  /** 识别的食品经营许可证源文件 */
146
194
  file: Blob;
147
195
  }
196
+ export interface RecognizeDocumentAiFoodManageLicenseResponse {
197
+ /** 食品经营许可证信息 */
198
+ food_manage_license?: FoodManageLicense;
199
+ }
148
200
  export interface RecognizeDocumentAiDrivingLicenseForm {
149
201
  /** 识别的驾驶证源文件 */
150
202
  file: Blob;
151
203
  }
204
+ export interface RecognizeDocumentAiDrivingLicenseResponse {
205
+ /** 驾驶证信息 */
206
+ driving_license?: DrvingLicense;
207
+ }
152
208
  export interface RecognizeDocumentAiVatInvoiceForm {
153
209
  /** 识别的增值税发票文件 */
154
210
  file: Blob;
155
211
  }
212
+ export interface RecognizeDocumentAiVatInvoiceResponse {
213
+ /** 增值税发票信息 */
214
+ vat_invoices?: VatInvoice[];
215
+ }
156
216
  export interface RecognizeDocumentAiBusinessLicenseForm {
157
217
  /** 识别的营业执照源文件 */
158
218
  file: Blob;
159
219
  }
220
+ export interface RecognizeDocumentAiBusinessLicenseResponse {
221
+ /** 营业执照信息 */
222
+ business_license?: BusinessLicense;
223
+ }
160
224
  export interface FieldExtractionDocumentAiContractForm {
161
225
  /** 合同字段解析的源文件,当前只支持pdf, doc, docx三种类型的文件 */
162
226
  file: Blob;
@@ -165,74 +229,6 @@ export interface FieldExtractionDocumentAiContractForm {
165
229
  /** ocr 参数,当前支持force, pdf, unused三种格式 */
166
230
  ocr_mode: 'force' | 'auto' | 'unused';
167
231
  }
168
- export interface RecognizeDocumentAiBusinessCardForm {
169
- /** 识别名片的源文件(支持 JPG / PNG / PDF) */
170
- file: Blob;
171
- }
172
- export interface ParseDocumentAiResumeResponse {
173
- /** 简历信息 */
174
- resumes?: Resume[];
175
- }
176
- export interface RecognizeDocumentAiVehicleInvoiceResponse {
177
- /** 机动车发票信息 */
178
- vehicle_invoice?: VehicleInvoice;
179
- }
180
- export interface RecognizeDocumentAiHealthCertificateResponse {
181
- /** 健康证信息 */
182
- health_certificate?: HealthCertificate;
183
- }
184
- export interface RecognizeDocumentAiHkmMainlandTravelPermitResponse {
185
- /** 港澳居民来往内地通行证信息 */
186
- hkm_mainland_travel_permit?: HkmMainlandTravelPermit;
187
- }
188
- export interface RecognizeDocumentAiTwMainlandTravelPermitResponse {
189
- /** 台湾居民来往大陆通行证信息 */
190
- tw_mainland_travel_permit?: TwMainlandTravelPermit;
191
- }
192
- export interface RecognizeDocumentAiChinesePassportResponse {
193
- /** 中国护照信息 */
194
- chinese_passport?: ChinesePassport;
195
- }
196
- export interface RecognizeDocumentAiBankCardResponse {
197
- /** 银行卡信息 */
198
- bank_card?: BankCard;
199
- }
200
- export interface RecognizeDocumentAiVehicleLicenseResponse {
201
- /** 行驶证信息 */
202
- vehicle_license?: VehicleLicense;
203
- }
204
- export interface RecognizeDocumentAiTrainInvoiceResponse {
205
- /** 火车票信息 */
206
- train_invoices?: TrainInvoice[];
207
- }
208
- export interface RecognizeDocumentAiTaxiInvoiceResponse {
209
- /** 出租车票信息 */
210
- taxi_invoices?: TaxiInvoice[];
211
- }
212
- export interface RecognizeDocumentAiIdCardResponse {
213
- /** 身份证信息 */
214
- id_card?: IdCard;
215
- }
216
- export interface RecognizeDocumentAiFoodProduceLicenseResponse {
217
- /** 食品生产许可证信息 */
218
- food_produce_license?: FoodProduceLicense;
219
- }
220
- export interface RecognizeDocumentAiFoodManageLicenseResponse {
221
- /** 食品经营许可证信息 */
222
- food_manage_license?: FoodManageLicense;
223
- }
224
- export interface RecognizeDocumentAiDrivingLicenseResponse {
225
- /** 驾驶证信息 */
226
- driving_license?: DrvingLicense;
227
- }
228
- export interface RecognizeDocumentAiVatInvoiceResponse {
229
- /** 增值税发票信息 */
230
- vat_invoices?: VatInvoice[];
231
- }
232
- export interface RecognizeDocumentAiBusinessLicenseResponse {
233
- /** 营业执照信息 */
234
- business_license?: BusinessLicense;
235
- }
236
232
  export interface FieldExtractionDocumentAiContractResponse {
237
233
  /** 文件的唯一id */
238
234
  file_id?: string;
@@ -251,6 +247,10 @@ export interface FieldExtractionDocumentAiContractResponse {
251
247
  /** 银行信息 */
252
248
  bank_info?: BankInfo[];
253
249
  }
250
+ export interface RecognizeDocumentAiBusinessCardForm {
251
+ /** 识别名片的源文件(支持 JPG / PNG / PDF) */
252
+ file: Blob;
253
+ }
254
254
  export interface RecognizeDocumentAiBusinessCardResponse {
255
255
  /** 名片信息 */
256
256
  business_cards?: RecognizedEntities[];
@@ -98,6 +98,24 @@ export interface GetDocxChatAnnouncementQuery {
98
98
  /** 此次调用中使用的用户ID的类型 */
99
99
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
100
100
  }
101
+ export interface GetDocxChatAnnouncementResponse {
102
+ /** 当前版本号 */
103
+ revision_id?: number;
104
+ /** 群公告生成的时间戳(秒) */
105
+ create_time?: string;
106
+ /** 群公告更新的时间戳(秒) */
107
+ update_time?: string;
108
+ /** 群公告所有者 ID,ID 值与 owner_id_type 中的ID类型对应 */
109
+ owner_id?: string;
110
+ /** 群公告所有者的 ID 类型 */
111
+ owner_id_type?: 'user_id' | 'union_id' | 'open_id';
112
+ /** 群公告最新修改者 ID,ID 值与 modifier_id_type 中的ID类型对应 */
113
+ modifier_id?: string;
114
+ /** 群公告最新修改者 id 类型 */
115
+ modifier_id_type?: 'user_id' | 'union_id' | 'open_id';
116
+ /** 群公告类型 */
117
+ announcement_type?: 'docx' | 'doc';
118
+ }
101
119
  export interface ListDocxChatAnnouncementBlockQuery extends Pagination {
102
120
  /** 查询的群公告版本,-1 表示群公告最新版本。群公告创建后,版本为 1。若查询的版本为群公告最新版本,则需要持有群公告的阅读权限;若查询的版本为群公告的历史版本,则需要持有群公告的编辑权限。 */
103
121
  revision_id?: number;
@@ -118,6 +136,14 @@ export interface CreateDocxChatAnnouncementBlockChildrenQuery {
118
136
  /** 此次调用中使用的用户ID的类型 */
119
137
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
120
138
  }
139
+ export interface CreateDocxChatAnnouncementBlockChildrenResponse {
140
+ /** 所添加的孩子的 Block 信息 */
141
+ children?: Block[];
142
+ /** 当前 Block Children 创建成功后群公告的版本号 */
143
+ revision_id?: number;
144
+ /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
145
+ client_token?: string;
146
+ }
121
147
  export interface BatchUpdateDocxChatAnnouncementBlockRequest {
122
148
  /** 批量更新 Block */
123
149
  requests?: UpdateBlockRequest[];
@@ -130,12 +156,24 @@ export interface BatchUpdateDocxChatAnnouncementBlockQuery {
130
156
  /** 此次调用中使用的用户ID的类型 */
131
157
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
132
158
  }
159
+ export interface BatchUpdateDocxChatAnnouncementBlockResponse {
160
+ /** 批量更新的 Block */
161
+ blocks?: Block[];
162
+ /** 当前更新成功后群公告的版本号 */
163
+ revision_id?: number;
164
+ /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
165
+ client_token?: string;
166
+ }
133
167
  export interface GetDocxChatAnnouncementBlockQuery {
134
168
  /** 查询的群公告版本,-1 表示群公告最新版本。群公告创建后,版本为 1。若查询的版本为群公告最新版本,则需要持有群公告的阅读权限;若查询的版本为群公告的历史版本,则需要持有群公告的更新权限 */
135
169
  revision_id?: number;
136
170
  /** 此次调用中使用的用户ID的类型 */
137
171
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
138
172
  }
173
+ export interface GetDocxChatAnnouncementBlockResponse {
174
+ /** 查询的 Block 的信息 */
175
+ block?: Block;
176
+ }
139
177
  export interface GetDocxChatAnnouncementBlockChildrenQuery extends Pagination {
140
178
  /** 查询的群公告版本,-1 表示群公告最新版本。群公告创建后,版本为 1。若查询的版本为群公告最新版本,则需要持有群公告的阅读权限;若查询的版本为群公告的历史版本,则需要持有群公告的更新权限。 */
141
179
  revision_id?: number;
@@ -154,15 +192,41 @@ export interface BatchDeleteDocxChatAnnouncementBlockChildrenQuery {
154
192
  /** 操作的唯一标识,与接口返回值的 client_token 相对应,用于幂等的进行更新操作。此值为空表示将发起一次新的请求,此值非空表示幂等的进行更新操作。 */
155
193
  client_token?: string;
156
194
  }
195
+ export interface BatchDeleteDocxChatAnnouncementBlockChildrenResponse {
196
+ /** 当前删除操作成功后群公告的版本号 */
197
+ revision_id?: number;
198
+ /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
199
+ client_token?: string;
200
+ }
157
201
  export interface CreateDocxDocumentRequest {
158
202
  /** 文件夹 token,获取方式见云文档接口快速入门;空表示根目录,tenant_access_token应用权限仅允许操作应用创建的目录 */
159
203
  folder_token?: string;
160
204
  /** 文档标题,只支持纯文本 */
161
205
  title?: string;
162
206
  }
207
+ export interface CreateDocxDocumentResponse {
208
+ /** 新建文档的文档信息 */
209
+ document?: Document;
210
+ }
211
+ export interface GetDocxDocumentResponse {
212
+ /** 文档信息 */
213
+ document?: Document;
214
+ }
215
+ export declare const enum RawContentDocxDocumentQueryLang {
216
+ /** 中文 */
217
+ ZH = 0,
218
+ /** 英文 */
219
+ EN = 1,
220
+ /** 日文 */
221
+ JP = 2
222
+ }
163
223
  export interface RawContentDocxDocumentQuery {
164
224
  /** 语言(用于 MentionUser 语言的选取) */
165
- lang?: 0 | 1 | 2;
225
+ lang?: RawContentDocxDocumentQueryLang;
226
+ }
227
+ export interface RawContentDocxDocumentResponse {
228
+ /** 文档纯文本 */
229
+ content?: string;
166
230
  }
167
231
  export interface ListDocxDocumentBlockQuery extends Pagination {
168
232
  /** 查询的文档版本,-1表示文档最新版本。若此时查询的版本为文档最新版本,则需要持有文档的阅读权限;若此时查询的版本为文档的历史版本,则需要持有文档的编辑权限。 */
@@ -184,6 +248,14 @@ export interface CreateDocxDocumentBlockChildrenQuery {
184
248
  /** 此次调用中使用的用户ID的类型 */
185
249
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
186
250
  }
251
+ export interface CreateDocxDocumentBlockChildrenResponse {
252
+ /** 所添加的孩子的 Block 信息 */
253
+ children?: Block[];
254
+ /** 当前 block children 创建成功后文档的版本号 */
255
+ document_revision_id?: number;
256
+ /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
257
+ client_token: string;
258
+ }
187
259
  export interface CreateDocxDocumentBlockDescendantRequest {
188
260
  /** 添加的孩子 BlockID 列表 */
189
261
  children_id: string[];
@@ -200,6 +272,16 @@ export interface CreateDocxDocumentBlockDescendantQuery {
200
272
  /** 此次调用中使用的用户ID的类型 */
201
273
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
202
274
  }
275
+ export interface CreateDocxDocumentBlockDescendantResponse {
276
+ /** 所添加的孩子的 Block 信息 */
277
+ children?: Block[];
278
+ /** 当前提交的 Block 创建成功后文档的版本号 */
279
+ document_revision_id?: number;
280
+ /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
281
+ client_token?: string;
282
+ /** 传入的临时 BlockID 与真实 BlockID 映射关系 */
283
+ block_id_relations?: BlockIdRelation[];
284
+ }
203
285
  export interface PatchDocxDocumentBlockRequest {
204
286
  /** 更新文本元素请求 */
205
287
  update_text_elements?: UpdateTextElementsRequest;
@@ -242,12 +324,24 @@ export interface PatchDocxDocumentBlockQuery {
242
324
  /** 此次调用中使用的用户ID的类型 */
243
325
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
244
326
  }
327
+ export interface PatchDocxDocumentBlockResponse {
328
+ /** 更新后的 block 信息 */
329
+ block?: Block;
330
+ /** 当前更新成功后文档的版本号 */
331
+ document_revision_id?: number;
332
+ /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
333
+ client_token: string;
334
+ }
245
335
  export interface GetDocxDocumentBlockQuery {
246
336
  /** 查询的文档版本,-1表示文档最新版本。若此时查询的版本为文档最新版本,则需要持有文档的阅读权限;若此时查询的版本为文档的历史版本,则需要持有文档的编辑权限。 */
247
337
  document_revision_id?: number;
248
338
  /** 此次调用中使用的用户ID的类型 */
249
339
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
250
340
  }
341
+ export interface GetDocxDocumentBlockResponse {
342
+ /** 查询的 Block 的信息 */
343
+ block?: Block;
344
+ }
251
345
  export interface BatchUpdateDocxDocumentBlockRequest {
252
346
  /** 批量更新 Block */
253
347
  requests: UpdateBlockRequest[];
@@ -260,6 +354,14 @@ export interface BatchUpdateDocxDocumentBlockQuery {
260
354
  /** 此次调用中使用的用户ID的类型 */
261
355
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
262
356
  }
357
+ export interface BatchUpdateDocxDocumentBlockResponse {
358
+ /** 批量更新的 Block */
359
+ blocks?: Block[];
360
+ /** 当前更新成功后文档的版本号 */
361
+ document_revision_id?: number;
362
+ /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
363
+ client_token: string;
364
+ }
263
365
  export interface GetDocxDocumentBlockChildrenQuery extends Pagination {
264
366
  /** 操作的文档版本,-1表示文档最新版本。若此时操作的版本为文档最新版本,则需要持有文档的阅读权限;若此时操作的版本为文档的历史版本,则需要持有文档的编辑权限。 */
265
367
  document_revision_id?: number;
@@ -278,100 +380,6 @@ export interface BatchDeleteDocxDocumentBlockChildrenQuery {
278
380
  /** 操作的唯一标识,与接口返回值的 client_token 相对应,用于幂等的进行更新操作。此值为空表示将发起一次新的请求,此值非空表示幂等的进行更新操作。 */
279
381
  client_token?: string;
280
382
  }
281
- export interface GetDocxChatAnnouncementResponse {
282
- /** 当前版本号 */
283
- revision_id?: number;
284
- /** 群公告生成的时间戳(秒) */
285
- create_time?: string;
286
- /** 群公告更新的时间戳(秒) */
287
- update_time?: string;
288
- /** 群公告所有者 ID,ID 值与 owner_id_type 中的ID类型对应 */
289
- owner_id?: string;
290
- /** 群公告所有者的 ID 类型 */
291
- owner_id_type?: 'user_id' | 'union_id' | 'open_id';
292
- /** 群公告最新修改者 ID,ID 值与 modifier_id_type 中的ID类型对应 */
293
- modifier_id?: string;
294
- /** 群公告最新修改者 id 类型 */
295
- modifier_id_type?: 'user_id' | 'union_id' | 'open_id';
296
- /** 群公告类型 */
297
- announcement_type?: 'docx' | 'doc';
298
- }
299
- export interface CreateDocxChatAnnouncementBlockChildrenResponse {
300
- /** 所添加的孩子的 Block 信息 */
301
- children?: Block[];
302
- /** 当前 Block Children 创建成功后群公告的版本号 */
303
- revision_id?: number;
304
- /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
305
- client_token?: string;
306
- }
307
- export interface BatchUpdateDocxChatAnnouncementBlockResponse {
308
- /** 批量更新的 Block */
309
- blocks?: Block[];
310
- /** 当前更新成功后群公告的版本号 */
311
- revision_id?: number;
312
- /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
313
- client_token?: string;
314
- }
315
- export interface GetDocxChatAnnouncementBlockResponse {
316
- /** 查询的 Block 的信息 */
317
- block?: Block;
318
- }
319
- export interface BatchDeleteDocxChatAnnouncementBlockChildrenResponse {
320
- /** 当前删除操作成功后群公告的版本号 */
321
- revision_id?: number;
322
- /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
323
- client_token?: string;
324
- }
325
- export interface CreateDocxDocumentResponse {
326
- /** 新建文档的文档信息 */
327
- document?: Document;
328
- }
329
- export interface GetDocxDocumentResponse {
330
- /** 文档信息 */
331
- document?: Document;
332
- }
333
- export interface RawContentDocxDocumentResponse {
334
- /** 文档纯文本 */
335
- content?: string;
336
- }
337
- export interface CreateDocxDocumentBlockChildrenResponse {
338
- /** 所添加的孩子的 Block 信息 */
339
- children?: Block[];
340
- /** 当前 block children 创建成功后文档的版本号 */
341
- document_revision_id?: number;
342
- /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
343
- client_token: string;
344
- }
345
- export interface CreateDocxDocumentBlockDescendantResponse {
346
- /** 所添加的孩子的 Block 信息 */
347
- children?: Block[];
348
- /** 当前提交的 Block 创建成功后文档的版本号 */
349
- document_revision_id?: number;
350
- /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
351
- client_token?: string;
352
- /** 传入的临时 BlockID 与真实 BlockID 映射关系 */
353
- block_id_relations?: BlockIdRelation[];
354
- }
355
- export interface PatchDocxDocumentBlockResponse {
356
- /** 更新后的 block 信息 */
357
- block?: Block;
358
- /** 当前更新成功后文档的版本号 */
359
- document_revision_id?: number;
360
- /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
361
- client_token: string;
362
- }
363
- export interface GetDocxDocumentBlockResponse {
364
- /** 查询的 Block 的信息 */
365
- block?: Block;
366
- }
367
- export interface BatchUpdateDocxDocumentBlockResponse {
368
- /** 批量更新的 Block */
369
- blocks?: Block[];
370
- /** 当前更新成功后文档的版本号 */
371
- document_revision_id?: number;
372
- /** 操作的唯一标识,更新请求中使用此值表示幂等的进行此次更新 */
373
- client_token: string;
374
- }
375
383
  export interface BatchDeleteDocxDocumentBlockChildrenResponse {
376
384
  /** 当前删除操作成功后文档的版本号 */
377
385
  document_revision_id?: number;