@satorijs/adapter-lark 3.8.6 → 3.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/lib/bot.d.ts +1 -1
  2. package/lib/content.d.ts +433 -0
  3. package/lib/http.d.ts +1 -1
  4. package/lib/index.cjs +2792 -1719
  5. package/lib/index.d.ts +4 -2
  6. package/lib/internal.d.ts +37 -0
  7. package/lib/message.d.ts +2 -0
  8. package/lib/types/acs.d.ts +177 -0
  9. package/lib/types/admin.d.ts +270 -0
  10. package/lib/types/aily.d.ts +221 -0
  11. package/lib/types/apaas.d.ts +499 -0
  12. package/lib/types/application.d.ts +406 -0
  13. package/lib/types/approval.d.ts +779 -0
  14. package/lib/types/attendance.d.ts +957 -0
  15. package/lib/types/auth.d.ts +86 -0
  16. package/lib/types/authen.d.ts +191 -0
  17. package/lib/types/baike.d.ts +239 -0
  18. package/lib/types/bitable.d.ts +691 -0
  19. package/lib/types/board.d.ts +19 -0
  20. package/lib/types/calendar.d.ts +653 -0
  21. package/lib/types/cardkit.d.ts +139 -0
  22. package/lib/types/compensation.d.ts +54 -0
  23. package/lib/types/contact.d.ts +1137 -0
  24. package/lib/types/corehr.d.ts +4391 -0
  25. package/lib/types/docs.d.ts +23 -0
  26. package/lib/types/document_ai.d.ts +257 -0
  27. package/lib/types/docx.d.ts +380 -0
  28. package/lib/types/drive.d.ts +1053 -0
  29. package/lib/types/ehr.d.ts +32 -0
  30. package/lib/types/event.d.ts +9 -18
  31. package/lib/types/helpdesk.d.ts +746 -0
  32. package/lib/types/hire.d.ts +3150 -0
  33. package/lib/types/human_authentication.d.ts +27 -0
  34. package/lib/types/im.d.ts +1300 -0
  35. package/lib/types/index.d.ts +16432 -34
  36. package/lib/types/lingo.d.ts +254 -0
  37. package/lib/types/mail.d.ts +680 -0
  38. package/lib/types/mdm.d.ts +42 -0
  39. package/lib/types/minutes.d.ts +31 -0
  40. package/lib/types/moments.d.ts +18 -0
  41. package/lib/types/okr.d.ts +205 -0
  42. package/lib/types/optical_char_recognition.d.ts +17 -0
  43. package/lib/types/passport.d.ts +45 -0
  44. package/lib/types/payroll.d.ts +50 -0
  45. package/lib/types/performance.d.ts +413 -0
  46. package/lib/types/personal_settings.d.ts +87 -0
  47. package/lib/types/report.d.ts +57 -0
  48. package/lib/types/search.d.ts +216 -0
  49. package/lib/types/security_and_compliance.d.ts +24 -0
  50. package/lib/types/sheets.d.ts +326 -0
  51. package/lib/types/speech_to_text.d.ts +39 -0
  52. package/lib/types/task.d.ts +1153 -0
  53. package/lib/types/tenant.d.ts +23 -0
  54. package/lib/types/translation.d.ts +37 -0
  55. package/lib/types/vc.d.ts +948 -0
  56. package/lib/types/verification.d.ts +14 -0
  57. package/lib/types/wiki.d.ts +240 -0
  58. package/lib/types/workplace.d.ts +43 -0
  59. package/lib/utils.d.ts +143 -7
  60. package/package.json +6 -4
  61. package/src/bot.ts +19 -3
  62. package/src/{types/message/content.ts → content.ts} +1 -0
  63. package/src/http.ts +1 -3
  64. package/src/index.ts +4 -2
  65. package/src/internal.ts +143 -0
  66. package/src/message.ts +13 -11
  67. package/src/types/acs.ts +236 -0
  68. package/src/types/admin.ts +328 -0
  69. package/src/types/aily.ts +288 -0
  70. package/src/types/apaas.ts +646 -0
  71. package/src/types/application.ts +520 -0
  72. package/src/types/approval.ts +924 -0
  73. package/src/types/attendance.ts +1153 -0
  74. package/src/types/auth.ts +114 -0
  75. package/src/types/authen.ts +220 -0
  76. package/src/types/baike.ts +306 -0
  77. package/src/types/bitable.ts +879 -0
  78. package/src/types/board.ts +31 -0
  79. package/src/types/calendar.ts +817 -0
  80. package/src/types/cardkit.ts +182 -0
  81. package/src/types/compensation.ts +79 -0
  82. package/src/types/contact.ts +1411 -0
  83. package/src/types/corehr.ts +5297 -0
  84. package/src/types/docs.ts +33 -0
  85. package/src/types/document_ai.ts +352 -0
  86. package/src/types/docx.ts +471 -0
  87. package/src/types/drive.ts +1321 -0
  88. package/src/types/ehr.ts +43 -0
  89. package/src/types/event.ts +15 -21
  90. package/src/types/helpdesk.ts +925 -0
  91. package/src/types/hire.ts +3918 -0
  92. package/src/types/human_authentication.ts +38 -0
  93. package/src/types/im.ts +1605 -0
  94. package/src/types/index.ts +17754 -39
  95. package/src/types/lingo.ts +321 -0
  96. package/src/types/mail.ts +851 -0
  97. package/src/types/mdm.ts +57 -0
  98. package/src/types/minutes.ts +46 -0
  99. package/src/types/moments.ts +28 -0
  100. package/src/types/okr.ts +261 -0
  101. package/src/types/optical_char_recognition.ts +27 -0
  102. package/src/types/passport.ts +61 -0
  103. package/src/types/payroll.ts +69 -0
  104. package/src/types/performance.ts +524 -0
  105. package/src/types/personal_settings.ts +116 -0
  106. package/src/types/report.ts +77 -0
  107. package/src/types/search.ts +268 -0
  108. package/src/types/security_and_compliance.ts +33 -0
  109. package/src/types/sheets.ts +425 -0
  110. package/src/types/speech_to_text.ts +54 -0
  111. package/src/types/task.ts +1464 -0
  112. package/src/types/tenant.ts +36 -0
  113. package/src/types/translation.ts +52 -0
  114. package/src/types/vc.ts +1197 -0
  115. package/src/types/verification.ts +23 -0
  116. package/src/types/wiki.ts +313 -0
  117. package/src/types/workplace.ts +59 -0
  118. package/src/utils.ts +160 -8
  119. package/src/types/api.ts +0 -30848
  120. package/src/types/internal.ts +0 -84
  121. package/src/types/message/index.ts +0 -97
@@ -0,0 +1,425 @@
1
+ import { Condition, Dimension, FilterView, FilterViewCondition, FindCondition, FindReplaceResult, FloatImage, GetSpreadsheet, Sheet, SheetFilterInfo, Spreadsheet } from '.'
2
+ import { Internal } from '../internal'
3
+
4
+ declare module '../internal' {
5
+ interface Internal {
6
+ /**
7
+ * 创建电子表格
8
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet/create
9
+ */
10
+ createSheetsSpreadsheet(body: CreateSheetsSpreadsheetRequest): Promise<CreateSheetsSpreadsheetResponse>
11
+ /**
12
+ * 修改电子表格属性
13
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet/patch
14
+ */
15
+ patchSheetsSpreadsheet(spreadsheet_token: string, body: PatchSheetsSpreadsheetRequest): Promise<void>
16
+ /**
17
+ * 获取电子表格信息
18
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet/get
19
+ */
20
+ getSheetsSpreadsheet(spreadsheet_token: string, query?: GetSheetsSpreadsheetQuery): Promise<GetSheetsSpreadsheetResponse>
21
+ /**
22
+ * 获取工作表
23
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/query
24
+ */
25
+ querySheetsSpreadsheetSheet(spreadsheet_token: string): Promise<QuerySheetsSpreadsheetSheetResponse>
26
+ /**
27
+ * 查询工作表
28
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/get
29
+ */
30
+ getSheetsSpreadsheetSheet(spreadsheet_token: string, sheet_id: string): Promise<GetSheetsSpreadsheetSheetResponse>
31
+ /**
32
+ * 移动行列
33
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/move_dimension
34
+ */
35
+ moveDimensionSheetsSpreadsheetSheet(spreadsheet_token: string, sheet_id: string, body: MoveDimensionSheetsSpreadsheetSheetRequest): Promise<void>
36
+ /**
37
+ * 查找单元格
38
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/find
39
+ */
40
+ findSheetsSpreadsheetSheet(spreadsheet_token: string, sheet_id: string, body: FindSheetsSpreadsheetSheetRequest): Promise<FindSheetsSpreadsheetSheetResponse>
41
+ /**
42
+ * 替换单元格
43
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/replace
44
+ */
45
+ replaceSheetsSpreadsheetSheet(spreadsheet_token: string, sheet_id: string, body: ReplaceSheetsSpreadsheetSheetRequest): Promise<ReplaceSheetsSpreadsheetSheetResponse>
46
+ /**
47
+ * 创建筛选
48
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter/create
49
+ */
50
+ createSheetsSpreadsheetSheetFilter(spreadsheet_token: string, sheet_id: string, body: CreateSheetsSpreadsheetSheetFilterRequest): Promise<void>
51
+ /**
52
+ * 更新筛选
53
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter/update
54
+ */
55
+ updateSheetsSpreadsheetSheetFilter(spreadsheet_token: string, sheet_id: string, body: UpdateSheetsSpreadsheetSheetFilterRequest): Promise<void>
56
+ /**
57
+ * 获取筛选
58
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter/get
59
+ */
60
+ getSheetsSpreadsheetSheetFilter(spreadsheet_token: string, sheet_id: string): Promise<GetSheetsSpreadsheetSheetFilterResponse>
61
+ /**
62
+ * 删除筛选
63
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter/delete
64
+ */
65
+ deleteSheetsSpreadsheetSheetFilter(spreadsheet_token: string, sheet_id: string): Promise<void>
66
+ /**
67
+ * 创建筛选视图
68
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/create
69
+ */
70
+ createSheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string, body: CreateSheetsSpreadsheetSheetFilterViewRequest): Promise<CreateSheetsSpreadsheetSheetFilterViewResponse>
71
+ /**
72
+ * 更新筛选视图
73
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/patch
74
+ */
75
+ patchSheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string, filter_view_id: string, body: PatchSheetsSpreadsheetSheetFilterViewRequest): Promise<PatchSheetsSpreadsheetSheetFilterViewResponse>
76
+ /**
77
+ * 查询筛选视图
78
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/query
79
+ */
80
+ querySheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string): Promise<QuerySheetsSpreadsheetSheetFilterViewResponse>
81
+ /**
82
+ * 获取筛选视图
83
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/get
84
+ */
85
+ getSheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string, filter_view_id: string): Promise<GetSheetsSpreadsheetSheetFilterViewResponse>
86
+ /**
87
+ * 删除筛选视图
88
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/delete
89
+ */
90
+ deleteSheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string, filter_view_id: string): Promise<void>
91
+ /**
92
+ * 创建筛选条件
93
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/create
94
+ */
95
+ createSheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string, body: CreateSheetsSpreadsheetSheetFilterViewConditionRequest): Promise<CreateSheetsSpreadsheetSheetFilterViewConditionResponse>
96
+ /**
97
+ * 更新筛选条件
98
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/update
99
+ */
100
+ updateSheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string, condition_id: string, body: UpdateSheetsSpreadsheetSheetFilterViewConditionRequest): Promise<UpdateSheetsSpreadsheetSheetFilterViewConditionResponse>
101
+ /**
102
+ * 查询筛选条件
103
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/query
104
+ */
105
+ querySheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string): Promise<QuerySheetsSpreadsheetSheetFilterViewConditionResponse>
106
+ /**
107
+ * 获取筛选条件
108
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/get
109
+ */
110
+ getSheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string, condition_id: string): Promise<GetSheetsSpreadsheetSheetFilterViewConditionResponse>
111
+ /**
112
+ * 删除筛选条件
113
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/delete
114
+ */
115
+ deleteSheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string, condition_id: string): Promise<void>
116
+ /**
117
+ * 创建浮动图片
118
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/create
119
+ */
120
+ createSheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string, body: CreateSheetsSpreadsheetSheetFloatImageRequest): Promise<CreateSheetsSpreadsheetSheetFloatImageResponse>
121
+ /**
122
+ * 更新浮动图片
123
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/patch
124
+ */
125
+ patchSheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string, float_image_id: string, body: PatchSheetsSpreadsheetSheetFloatImageRequest): Promise<PatchSheetsSpreadsheetSheetFloatImageResponse>
126
+ /**
127
+ * 获取浮动图片
128
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/get
129
+ */
130
+ getSheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string, float_image_id: string): Promise<GetSheetsSpreadsheetSheetFloatImageResponse>
131
+ /**
132
+ * 查询浮动图片
133
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/query
134
+ */
135
+ querySheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string): Promise<QuerySheetsSpreadsheetSheetFloatImageResponse>
136
+ /**
137
+ * 删除浮动图片
138
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/delete
139
+ */
140
+ deleteSheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string, float_image_id: string): Promise<void>
141
+ }
142
+ }
143
+
144
+ export interface CreateSheetsSpreadsheetRequest {
145
+ /** 表格标题 */
146
+ title?: string
147
+ /** 文件夹token */
148
+ folder_token?: string
149
+ }
150
+
151
+ export interface PatchSheetsSpreadsheetRequest {
152
+ /** 表格标题 */
153
+ title?: string
154
+ }
155
+
156
+ export interface GetSheetsSpreadsheetQuery {
157
+ /** 此次调用中使用的用户ID的类型 */
158
+ user_id_type?: 'user_id' | 'union_id' | 'open_id'
159
+ }
160
+
161
+ export interface MoveDimensionSheetsSpreadsheetSheetRequest {
162
+ /** 移动源位置参数 */
163
+ source?: Dimension
164
+ /** 移动的目标位置行或者列号 */
165
+ destination_index?: number
166
+ }
167
+
168
+ export interface FindSheetsSpreadsheetSheetRequest {
169
+ /** 查找条件 */
170
+ find_condition: FindCondition
171
+ /** 查找的字符串 */
172
+ find: string
173
+ }
174
+
175
+ export interface ReplaceSheetsSpreadsheetSheetRequest {
176
+ /** 查找条件 */
177
+ find_condition: FindCondition
178
+ /** 查找的字符串 */
179
+ find: string
180
+ /** 替换的字符串 */
181
+ replacement: string
182
+ }
183
+
184
+ export interface CreateSheetsSpreadsheetSheetFilterRequest {
185
+ /** 筛选应用范围 */
186
+ range: string
187
+ /** 设置筛选条件的列 */
188
+ col: string
189
+ /** 筛选的条件 */
190
+ condition: Condition
191
+ }
192
+
193
+ export interface UpdateSheetsSpreadsheetSheetFilterRequest {
194
+ /** 更新筛选条件的列 */
195
+ col: string
196
+ /** 筛选条件 */
197
+ condition: Condition
198
+ }
199
+
200
+ export interface CreateSheetsSpreadsheetSheetFilterViewRequest {
201
+ /** 筛选视图 id */
202
+ filter_view_id?: string
203
+ /** 筛选视图名字 */
204
+ filter_view_name?: string
205
+ /** 筛选视图的筛选范围 */
206
+ range?: string
207
+ }
208
+
209
+ export interface PatchSheetsSpreadsheetSheetFilterViewRequest {
210
+ /** 筛选视图名字 */
211
+ filter_view_name?: string
212
+ /** 筛选视图的筛选范围 */
213
+ range?: string
214
+ }
215
+
216
+ export interface CreateSheetsSpreadsheetSheetFilterViewConditionRequest {
217
+ /** 设置筛选条件的列,使用字母号 */
218
+ condition_id?: string
219
+ /** 筛选类型 */
220
+ filter_type?: string
221
+ /** 比较类型 */
222
+ compare_type?: string
223
+ /** 筛选参数 */
224
+ expected?: string[]
225
+ }
226
+
227
+ export interface UpdateSheetsSpreadsheetSheetFilterViewConditionRequest {
228
+ /** 筛选类型 */
229
+ filter_type?: string
230
+ /** 比较类型 */
231
+ compare_type?: string
232
+ /** 筛选参数 */
233
+ expected?: string[]
234
+ }
235
+
236
+ export interface CreateSheetsSpreadsheetSheetFloatImageRequest {
237
+ /** 浮动图片 id */
238
+ float_image_id?: string
239
+ /** 浮动图片 token,需要先上传图片到表格获得此 token 之后再进行浮动图片的操作 */
240
+ float_image_token?: string
241
+ /** 浮动图片的左上角单元格定位,只支持一个单元格 */
242
+ range?: string
243
+ /** 浮动图片的宽度,大于等于 20px */
244
+ width?: number
245
+ /** 浮动图片的高度,大于等于 20px */
246
+ height?: number
247
+ /** 浮动图片左上角所在位置相对于所在单元格左上角的横向偏移,大于等于0且小于所在单元格的宽度 */
248
+ offset_x?: number
249
+ /** 浮动图片左上角所在位置相对于所在单元格左上角的纵向偏移,大于等于0且小于所在单元格的高度 */
250
+ offset_y?: number
251
+ }
252
+
253
+ export interface PatchSheetsSpreadsheetSheetFloatImageRequest {
254
+ /** 浮动图片 token,需要先上传图片到表格获得此 token 之后再进行浮动图片的操作 */
255
+ float_image_token?: string
256
+ /** 浮动图片的左上角单元格定位,只支持一个单元格 */
257
+ range?: string
258
+ /** 浮动图片的宽度,大于等于 20px */
259
+ width?: number
260
+ /** 浮动图片的高度,大于等于 20px */
261
+ height?: number
262
+ /** 浮动图片左上角所在位置相对于所在单元格左上角的横向偏移,大于等于0且小于所在单元格的宽度 */
263
+ offset_x?: number
264
+ /** 浮动图片左上角所在位置相对于所在单元格左上角的纵向偏移,大于等于0且小于所在单元格的高度 */
265
+ offset_y?: number
266
+ }
267
+
268
+ export interface CreateSheetsSpreadsheetResponse {
269
+ /** 表格信息 */
270
+ spreadsheet?: Spreadsheet
271
+ }
272
+
273
+ export interface GetSheetsSpreadsheetResponse {
274
+ /** 表格 */
275
+ spreadsheet?: GetSpreadsheet
276
+ }
277
+
278
+ export interface QuerySheetsSpreadsheetSheetResponse {
279
+ /** 工作表信息 */
280
+ sheets?: Sheet[]
281
+ }
282
+
283
+ export interface GetSheetsSpreadsheetSheetResponse {
284
+ /** 工作表 */
285
+ sheet?: Sheet
286
+ }
287
+
288
+ export interface FindSheetsSpreadsheetSheetResponse {
289
+ /** 查找返回符合条件的信息 */
290
+ find_result?: FindReplaceResult
291
+ }
292
+
293
+ export interface ReplaceSheetsSpreadsheetSheetResponse {
294
+ /** 符合查找条件并替换的单元格信息 */
295
+ replace_result?: FindReplaceResult
296
+ }
297
+
298
+ export interface GetSheetsSpreadsheetSheetFilterResponse {
299
+ /** 筛选信息 */
300
+ sheet_filter_info?: SheetFilterInfo
301
+ }
302
+
303
+ export interface CreateSheetsSpreadsheetSheetFilterViewResponse {
304
+ /** 创建的筛选视图的 id 、name、range */
305
+ filter_view?: FilterView
306
+ }
307
+
308
+ export interface PatchSheetsSpreadsheetSheetFilterViewResponse {
309
+ /** 更新后的筛选视图的 id 、name、range */
310
+ filter_view?: FilterView
311
+ }
312
+
313
+ export interface QuerySheetsSpreadsheetSheetFilterViewResponse {
314
+ /** 子表的所有筛选视图信息,id、name、range */
315
+ items?: FilterView[]
316
+ }
317
+
318
+ export interface GetSheetsSpreadsheetSheetFilterViewResponse {
319
+ /** 筛选视图信息,包括 id、name、range */
320
+ filter_view?: FilterView
321
+ }
322
+
323
+ export interface CreateSheetsSpreadsheetSheetFilterViewConditionResponse {
324
+ /** 创建的筛选条件 */
325
+ condition?: FilterViewCondition
326
+ }
327
+
328
+ export interface UpdateSheetsSpreadsheetSheetFilterViewConditionResponse {
329
+ /** 更新后的筛选条件 */
330
+ condition?: FilterViewCondition
331
+ }
332
+
333
+ export interface QuerySheetsSpreadsheetSheetFilterViewConditionResponse {
334
+ /** 筛选视图设置的所有筛选条件 */
335
+ items?: FilterViewCondition[]
336
+ }
337
+
338
+ export interface GetSheetsSpreadsheetSheetFilterViewConditionResponse {
339
+ /** 筛选的条件 */
340
+ condition?: FilterViewCondition
341
+ }
342
+
343
+ export interface CreateSheetsSpreadsheetSheetFloatImageResponse {
344
+ /** 浮动图片 */
345
+ float_image?: FloatImage
346
+ }
347
+
348
+ export interface PatchSheetsSpreadsheetSheetFloatImageResponse {
349
+ /** 浮动图片 */
350
+ float_image?: FloatImage
351
+ }
352
+
353
+ export interface GetSheetsSpreadsheetSheetFloatImageResponse {
354
+ /** 浮动图片 */
355
+ float_image?: FloatImage
356
+ }
357
+
358
+ export interface QuerySheetsSpreadsheetSheetFloatImageResponse {
359
+ /** 子表的所有浮动图片信息 */
360
+ items?: FloatImage[]
361
+ }
362
+
363
+ Internal.define({
364
+ '/sheets/v3/spreadsheets': {
365
+ POST: 'createSheetsSpreadsheet',
366
+ },
367
+ '/sheets/v3/spreadsheets/{spreadsheet_token}': {
368
+ PATCH: 'patchSheetsSpreadsheet',
369
+ GET: 'getSheetsSpreadsheet',
370
+ },
371
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/query': {
372
+ GET: 'querySheetsSpreadsheetSheet',
373
+ },
374
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}': {
375
+ GET: 'getSheetsSpreadsheetSheet',
376
+ },
377
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/move_dimension': {
378
+ POST: 'moveDimensionSheetsSpreadsheetSheet',
379
+ },
380
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/find': {
381
+ POST: 'findSheetsSpreadsheetSheet',
382
+ },
383
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/replace': {
384
+ POST: 'replaceSheetsSpreadsheetSheet',
385
+ },
386
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter': {
387
+ POST: 'createSheetsSpreadsheetSheetFilter',
388
+ PUT: 'updateSheetsSpreadsheetSheetFilter',
389
+ GET: 'getSheetsSpreadsheetSheetFilter',
390
+ DELETE: 'deleteSheetsSpreadsheetSheetFilter',
391
+ },
392
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views': {
393
+ POST: 'createSheetsSpreadsheetSheetFilterView',
394
+ },
395
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}': {
396
+ PATCH: 'patchSheetsSpreadsheetSheetFilterView',
397
+ GET: 'getSheetsSpreadsheetSheetFilterView',
398
+ DELETE: 'deleteSheetsSpreadsheetSheetFilterView',
399
+ },
400
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/query': {
401
+ GET: 'querySheetsSpreadsheetSheetFilterView',
402
+ },
403
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions': {
404
+ POST: 'createSheetsSpreadsheetSheetFilterViewCondition',
405
+ },
406
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions/{condition_id}': {
407
+ PUT: 'updateSheetsSpreadsheetSheetFilterViewCondition',
408
+ GET: 'getSheetsSpreadsheetSheetFilterViewCondition',
409
+ DELETE: 'deleteSheetsSpreadsheetSheetFilterViewCondition',
410
+ },
411
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions/query': {
412
+ GET: 'querySheetsSpreadsheetSheetFilterViewCondition',
413
+ },
414
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images': {
415
+ POST: 'createSheetsSpreadsheetSheetFloatImage',
416
+ },
417
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images/{float_image_id}': {
418
+ PATCH: 'patchSheetsSpreadsheetSheetFloatImage',
419
+ GET: 'getSheetsSpreadsheetSheetFloatImage',
420
+ DELETE: 'deleteSheetsSpreadsheetSheetFloatImage',
421
+ },
422
+ '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images/query': {
423
+ GET: 'querySheetsSpreadsheetSheetFloatImage',
424
+ },
425
+ })
@@ -0,0 +1,54 @@
1
+ import { FileConfig, Speech, StreamConfig } from '.'
2
+ import { Internal } from '../internal'
3
+
4
+ declare module '../internal' {
5
+ interface Internal {
6
+ /**
7
+ * 识别语音文件
8
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/speech_to_text-v1/speech/file_recognize
9
+ */
10
+ fileRecognizeSpeechToTextSpeech(body: FileRecognizeSpeechToTextSpeechRequest): Promise<FileRecognizeSpeechToTextSpeechResponse>
11
+ /**
12
+ * 识别流式语音
13
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/speech_to_text-v1/speech/stream_recognize
14
+ */
15
+ streamRecognizeSpeechToTextSpeech(body: StreamRecognizeSpeechToTextSpeechRequest): Promise<StreamRecognizeSpeechToTextSpeechResponse>
16
+ }
17
+ }
18
+
19
+ export interface FileRecognizeSpeechToTextSpeechRequest {
20
+ /** 语音资源 */
21
+ speech: Speech
22
+ /** 配置属性 */
23
+ config: FileConfig
24
+ }
25
+
26
+ export interface StreamRecognizeSpeechToTextSpeechRequest {
27
+ /** 语音资源 */
28
+ speech: Speech
29
+ /** 配置属性 */
30
+ config: StreamConfig
31
+ }
32
+
33
+ export interface FileRecognizeSpeechToTextSpeechResponse {
34
+ /** 语音识别后的文本信息 */
35
+ recognition_text: string
36
+ }
37
+
38
+ export interface StreamRecognizeSpeechToTextSpeechResponse {
39
+ /** 16 位 String 随机串作为同一数据流的标识 */
40
+ stream_id: string
41
+ /** 数据流分片的序号,序号从 0 开始,每次请求递增 1 */
42
+ sequence_id: number
43
+ /** 语音流识别后的文本信息 */
44
+ recognition_text: string
45
+ }
46
+
47
+ Internal.define({
48
+ '/speech_to_text/v1/speech/file_recognize': {
49
+ POST: 'fileRecognizeSpeechToTextSpeech',
50
+ },
51
+ '/speech_to_text/v1/speech/stream_recognize': {
52
+ POST: 'streamRecognizeSpeechToTextSpeech',
53
+ },
54
+ })