@satorijs/adapter-lark 3.8.6 → 3.9.0

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 (127) 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 +2787 -1714
  5. package/lib/index.cjs.map +6 -0
  6. package/lib/index.d.ts +4 -2
  7. package/lib/internal.d.ts +38 -0
  8. package/lib/message.d.ts +2 -0
  9. package/lib/types/acs.d.ts +177 -0
  10. package/lib/types/admin.d.ts +270 -0
  11. package/lib/types/aily.d.ts +221 -0
  12. package/lib/types/apaas.d.ts +499 -0
  13. package/lib/types/api.d.ts +1 -14
  14. package/lib/types/application.d.ts +406 -0
  15. package/lib/types/approval.d.ts +779 -0
  16. package/lib/types/attendance.d.ts +957 -0
  17. package/lib/types/auth.d.ts +86 -0
  18. package/lib/types/authen.d.ts +191 -0
  19. package/lib/types/baike.d.ts +239 -0
  20. package/lib/types/bitable.d.ts +691 -0
  21. package/lib/types/board.d.ts +19 -0
  22. package/lib/types/calendar.d.ts +653 -0
  23. package/lib/types/cardkit.d.ts +139 -0
  24. package/lib/types/compensation.d.ts +54 -0
  25. package/lib/types/contact.d.ts +1137 -0
  26. package/lib/types/corehr.d.ts +4383 -0
  27. package/lib/types/docs.d.ts +23 -0
  28. package/lib/types/document_ai.d.ts +257 -0
  29. package/lib/types/docx.d.ts +380 -0
  30. package/lib/types/drive.d.ts +1045 -0
  31. package/lib/types/ehr.d.ts +32 -0
  32. package/lib/types/event.d.ts +9 -18
  33. package/lib/types/guild.d.ts +59 -0
  34. package/lib/types/helpdesk.d.ts +738 -0
  35. package/lib/types/hire.d.ts +3150 -0
  36. package/lib/types/human_authentication.d.ts +27 -0
  37. package/lib/types/im.d.ts +1300 -0
  38. package/lib/types/index.d.ts +16432 -34
  39. package/lib/types/lingo.d.ts +254 -0
  40. package/lib/types/mail.d.ts +680 -0
  41. package/lib/types/mdm.d.ts +42 -0
  42. package/lib/types/message/asset.d.ts +40 -0
  43. package/lib/types/minutes.d.ts +31 -0
  44. package/lib/types/moments.d.ts +18 -0
  45. package/lib/types/okr.d.ts +205 -0
  46. package/lib/types/optical_char_recognition.d.ts +17 -0
  47. package/lib/types/passport.d.ts +45 -0
  48. package/lib/types/payroll.d.ts +50 -0
  49. package/lib/types/performance.d.ts +413 -0
  50. package/lib/types/personal_settings.d.ts +87 -0
  51. package/lib/types/report.d.ts +57 -0
  52. package/lib/types/search.d.ts +216 -0
  53. package/lib/types/security_and_compliance.d.ts +24 -0
  54. package/lib/types/sheets.d.ts +326 -0
  55. package/lib/types/speech_to_text.d.ts +39 -0
  56. package/lib/types/task.d.ts +1153 -0
  57. package/lib/types/tenant.d.ts +23 -0
  58. package/lib/types/translation.d.ts +37 -0
  59. package/lib/types/user.d.ts +78 -0
  60. package/lib/types/utils.d.ts +9 -0
  61. package/lib/types/vc.d.ts +948 -0
  62. package/lib/types/verification.d.ts +14 -0
  63. package/lib/types/wiki.d.ts +240 -0
  64. package/lib/types/workplace.d.ts +43 -0
  65. package/lib/utils.d.ts +143 -7
  66. package/package.json +6 -4
  67. package/src/bot.ts +19 -3
  68. package/src/{types/message/content.ts → content.ts} +1 -0
  69. package/src/http.ts +1 -3
  70. package/src/index.ts +4 -2
  71. package/src/internal.ts +144 -0
  72. package/src/message.ts +13 -11
  73. package/src/types/acs.ts +236 -0
  74. package/src/types/admin.ts +328 -0
  75. package/src/types/aily.ts +288 -0
  76. package/src/types/apaas.ts +646 -0
  77. package/src/types/application.ts +520 -0
  78. package/src/types/approval.ts +924 -0
  79. package/src/types/attendance.ts +1153 -0
  80. package/src/types/auth.ts +114 -0
  81. package/src/types/authen.ts +220 -0
  82. package/src/types/baike.ts +306 -0
  83. package/src/types/bitable.ts +879 -0
  84. package/src/types/board.ts +31 -0
  85. package/src/types/calendar.ts +817 -0
  86. package/src/types/cardkit.ts +182 -0
  87. package/src/types/compensation.ts +79 -0
  88. package/src/types/contact.ts +1411 -0
  89. package/src/types/corehr.ts +5288 -0
  90. package/src/types/docs.ts +33 -0
  91. package/src/types/document_ai.ts +352 -0
  92. package/src/types/docx.ts +471 -0
  93. package/src/types/drive.ts +1312 -0
  94. package/src/types/ehr.ts +43 -0
  95. package/src/types/event.ts +15 -21
  96. package/src/types/helpdesk.ts +916 -0
  97. package/src/types/hire.ts +3918 -0
  98. package/src/types/human_authentication.ts +38 -0
  99. package/src/types/im.ts +1605 -0
  100. package/src/types/index.ts +17754 -39
  101. package/src/types/lingo.ts +321 -0
  102. package/src/types/mail.ts +851 -0
  103. package/src/types/mdm.ts +57 -0
  104. package/src/types/minutes.ts +46 -0
  105. package/src/types/moments.ts +28 -0
  106. package/src/types/okr.ts +261 -0
  107. package/src/types/optical_char_recognition.ts +27 -0
  108. package/src/types/passport.ts +61 -0
  109. package/src/types/payroll.ts +69 -0
  110. package/src/types/performance.ts +524 -0
  111. package/src/types/personal_settings.ts +116 -0
  112. package/src/types/report.ts +77 -0
  113. package/src/types/search.ts +268 -0
  114. package/src/types/security_and_compliance.ts +33 -0
  115. package/src/types/sheets.ts +425 -0
  116. package/src/types/speech_to_text.ts +54 -0
  117. package/src/types/task.ts +1464 -0
  118. package/src/types/tenant.ts +36 -0
  119. package/src/types/translation.ts +52 -0
  120. package/src/types/vc.ts +1197 -0
  121. package/src/types/verification.ts +23 -0
  122. package/src/types/wiki.ts +313 -0
  123. package/src/types/workplace.ts +59 -0
  124. package/src/utils.ts +160 -8
  125. package/src/types/api.ts +0 -30848
  126. package/src/types/internal.ts +0 -84
  127. package/src/types/message/index.ts +0 -97
@@ -0,0 +1,216 @@
1
+ import { Acl, ConnectorParam, DataSource, I18nMeta, Item, ItemContent, ItemMetadata, PatchSchemaProperty, Schema, SchemaDisplay, SchemaProperty } from '.';
2
+ import { Pagination } from '../internal';
3
+ declare module '../internal' {
4
+ interface Internal {
5
+ /**
6
+ * 搜索消息
7
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/message/create
8
+ */
9
+ createSearchMessage(body: CreateSearchMessageRequest, query?: CreateSearchMessageQuery): Paginated<string>;
10
+ /**
11
+ * 搜索应用
12
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/app/create
13
+ */
14
+ createSearchApp(body: CreateSearchAppRequest, query?: CreateSearchAppQuery): Paginated<string>;
15
+ /**
16
+ * 创建数据源
17
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/create
18
+ */
19
+ createSearchDataSource(body: CreateSearchDataSourceRequest): Promise<CreateSearchDataSourceResponse>;
20
+ /**
21
+ * 删除数据源
22
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/delete
23
+ */
24
+ deleteSearchDataSource(data_source_id: string): Promise<void>;
25
+ /**
26
+ * 修改数据源
27
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/patch
28
+ */
29
+ patchSearchDataSource(data_source_id: string, body: PatchSearchDataSourceRequest): Promise<PatchSearchDataSourceResponse>;
30
+ /**
31
+ * 获取数据源
32
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/get
33
+ */
34
+ getSearchDataSource(data_source_id: string): Promise<GetSearchDataSourceResponse>;
35
+ /**
36
+ * 批量获取数据源
37
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/list
38
+ */
39
+ listSearchDataSource(query?: ListSearchDataSourceQuery): Paginated<DataSource>;
40
+ /**
41
+ * 为指定数据项创建索引
42
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source-item/create
43
+ */
44
+ createSearchDataSourceItem(data_source_id: string, body: CreateSearchDataSourceItemRequest): Promise<void>;
45
+ /**
46
+ * 删除数据项
47
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source-item/delete
48
+ */
49
+ deleteSearchDataSourceItem(data_source_id: string, item_id: string): Promise<void>;
50
+ /**
51
+ * 查询指定数据项
52
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source-item/get
53
+ */
54
+ getSearchDataSourceItem(data_source_id: string, item_id: string): Promise<GetSearchDataSourceItemResponse>;
55
+ /**
56
+ * 创建数据范式
57
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/schema/create
58
+ */
59
+ createSearchSchema(body: CreateSearchSchemaRequest, query?: CreateSearchSchemaQuery): Promise<CreateSearchSchemaResponse>;
60
+ /**
61
+ * 删除数据范式
62
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/schema/delete
63
+ */
64
+ deleteSearchSchema(schema_id: string): Promise<void>;
65
+ /**
66
+ * 修改数据范式
67
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/schema/patch
68
+ */
69
+ patchSearchSchema(schema_id: string, body: PatchSearchSchemaRequest): Promise<PatchSearchSchemaResponse>;
70
+ /**
71
+ * 获取数据范式
72
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/schema/get
73
+ */
74
+ getSearchSchema(schema_id: string): Promise<GetSearchSchemaResponse>;
75
+ }
76
+ }
77
+ export interface CreateSearchMessageRequest {
78
+ /** 搜索关键词 */
79
+ query: string;
80
+ /** 消息来自user_id列表 */
81
+ from_ids?: string[];
82
+ /** 消息所在chat_id列表 */
83
+ chat_ids?: string[];
84
+ /** 消息类型(file/image/media) */
85
+ message_type?: 'file' | 'image' | 'media';
86
+ /** at用户user_id列表 */
87
+ at_chatter_ids?: string[];
88
+ /** 消息来自类型(bot/user) */
89
+ from_type?: 'bot' | 'user';
90
+ /** 会话类型(group_chat/p2p_chat) */
91
+ chat_type?: 'group_chat' | 'p2p_chat';
92
+ /** 消息发送起始时间 */
93
+ start_time?: string;
94
+ /** 消息发送结束时间 */
95
+ end_time?: string;
96
+ }
97
+ export interface CreateSearchMessageQuery extends Pagination {
98
+ /** 此次调用中使用的用户ID的类型 */
99
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
100
+ }
101
+ export interface CreateSearchAppRequest {
102
+ /** 搜索关键词 */
103
+ query: string;
104
+ }
105
+ export interface CreateSearchAppQuery extends Pagination {
106
+ /** 此次调用中使用的用户ID的类型 */
107
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
108
+ }
109
+ export interface CreateSearchDataSourceRequest {
110
+ /** data_source的展示名称 */
111
+ name: string;
112
+ /** 数据源状态,0-已上线,1-未上线 */
113
+ state?: 0 | 1;
114
+ /** 对于数据源的描述 */
115
+ description?: string;
116
+ /** 数据源在 search tab 上的展示图标路径 */
117
+ icon_url?: string;
118
+ /** 数据源采用的展示模版名称 */
119
+ template?: string;
120
+ /** 描述哪些字段可以被搜索 */
121
+ searchable_fields?: string[];
122
+ /** 数据源的国际化展示名称 */
123
+ i18n_name?: I18nMeta;
124
+ /** 数据源的国际化描述 */
125
+ i18n_description?: I18nMeta;
126
+ /** 数据源关联的 schema 标识 */
127
+ schema_id?: string;
128
+ /** datasource对应的开放平台应用id */
129
+ app_id?: string;
130
+ /** 搜索请求的接入方式 */
131
+ connect_type?: 0 | 1;
132
+ /** 根据连接器类型不同所需要提供的相关参数 */
133
+ connector_param?: ConnectorParam;
134
+ /** 是否使用问答服务 */
135
+ enable_answer?: boolean;
136
+ }
137
+ export interface PatchSearchDataSourceRequest {
138
+ /** 数据源的展示名称 */
139
+ name?: string;
140
+ /** 数据源状态,0-已上线,1-未上线 */
141
+ state?: 0 | 1;
142
+ /** 对于数据源的描述 */
143
+ description?: string;
144
+ /** 数据源在 search tab 上的展示图标路径 */
145
+ icon_url?: string;
146
+ /** 数据源名称多语言配置,json格式,key为语言locale,value为对应文案,例如{"zh_cn":"测试数据源", "en_us":"Test DataSource"} */
147
+ i18n_name?: I18nMeta;
148
+ /** 数据源描述多语言配置,json格式,key为语言locale,value为对应文案,例如{"zh_cn":"搜索测试数据源相关数据", "en_us":"Search data from Test DataSource"} */
149
+ i18n_description?: I18nMeta;
150
+ /** 修改connector的相关配置 */
151
+ connector_param?: ConnectorParam;
152
+ /** 是否使用问答服务 */
153
+ enable_answer?: boolean;
154
+ }
155
+ export interface ListSearchDataSourceQuery extends Pagination {
156
+ /** 回包数据格式,0-全量数据;1-摘要数据。**注**:摘要数据仅包含"id","name","state"。 */
157
+ view?: 0 | 1;
158
+ }
159
+ export interface CreateSearchDataSourceItemRequest {
160
+ /** item 在 datasource 中的唯一标识,只接受英文字母、数字和下划线 */
161
+ id: string;
162
+ /** item 的访问权限控制 */
163
+ acl: Acl[];
164
+ /** item 的元信息 */
165
+ metadata: ItemMetadata;
166
+ /** 结构化数据 */
167
+ structured_data: string;
168
+ /** 非结构化数据,如文档文本 */
169
+ content?: ItemContent;
170
+ }
171
+ export interface CreateSearchSchemaRequest {
172
+ /** 数据范式的属性定义 */
173
+ properties: SchemaProperty[];
174
+ /** 数据展示相关配置 */
175
+ display: SchemaDisplay;
176
+ /** 用户自定义数据范式的唯一标识 */
177
+ schema_id: string;
178
+ }
179
+ export interface CreateSearchSchemaQuery {
180
+ /** 是否只用来校验合法性 */
181
+ validate_only?: boolean;
182
+ }
183
+ export interface PatchSearchSchemaRequest {
184
+ /** 数据展示相关配置 */
185
+ display?: SchemaDisplay;
186
+ /** 数据范式的属性定义 */
187
+ properties?: PatchSchemaProperty[];
188
+ }
189
+ export interface CreateSearchDataSourceResponse {
190
+ /** 数据源实例 */
191
+ data_source?: DataSource;
192
+ }
193
+ export interface PatchSearchDataSourceResponse {
194
+ /** 数据源 */
195
+ data_source?: DataSource;
196
+ }
197
+ export interface GetSearchDataSourceResponse {
198
+ /** 数据源实例 */
199
+ data_source?: DataSource;
200
+ }
201
+ export interface GetSearchDataSourceItemResponse {
202
+ /** 数据项实例 */
203
+ item: Item;
204
+ }
205
+ export interface CreateSearchSchemaResponse {
206
+ /** 数据范式实例 */
207
+ schema?: Schema;
208
+ }
209
+ export interface PatchSearchSchemaResponse {
210
+ /** 数据范式实例 */
211
+ schema?: Schema;
212
+ }
213
+ export interface GetSearchSchemaResponse {
214
+ /** 数据范式 */
215
+ schema?: Schema;
216
+ }
@@ -0,0 +1,24 @@
1
+ import { OpenapiLog } from '.';
2
+ declare module '../internal' {
3
+ interface Internal {
4
+ /**
5
+ * 获取OpenAPI审计日志数据
6
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/security_and_compliance-v1/openapi_log/list_data
7
+ */
8
+ listDataSecurityAndComplianceOpenapiLog(body: ListDataSecurityAndComplianceOpenapiLogRequest): Paginated<OpenapiLog>;
9
+ }
10
+ }
11
+ export interface ListDataSecurityAndComplianceOpenapiLogRequest {
12
+ /** 飞书开放平台定义的API */
13
+ api_keys?: string[];
14
+ /** 以秒为单位的起始时间戳 */
15
+ start_time?: number;
16
+ /** 以秒为单位的终止时间戳 */
17
+ end_time?: number;
18
+ /** 在开发者后台——凭证与基础信息页面查看的app_id(cli_xxx),指调用openapi的应用 */
19
+ app_id?: string;
20
+ /** 分页大小 */
21
+ page_size?: number;
22
+ /** 分页标记,第一次请求不填,表示从头开始遍历;当返回的has_more为true时,会返回新的page_token,再次调用接口,传入这个page_token,将获得下一页数据 */
23
+ page_token?: string;
24
+ }
@@ -0,0 +1,326 @@
1
+ import { Condition, Dimension, FilterView, FilterViewCondition, FindCondition, FindReplaceResult, FloatImage, GetSpreadsheet, Sheet, SheetFilterInfo, Spreadsheet } from '.';
2
+ declare module '../internal' {
3
+ interface Internal {
4
+ /**
5
+ * 创建电子表格
6
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet/create
7
+ */
8
+ createSheetsSpreadsheet(body: CreateSheetsSpreadsheetRequest): Promise<CreateSheetsSpreadsheetResponse>;
9
+ /**
10
+ * 修改电子表格属性
11
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet/patch
12
+ */
13
+ patchSheetsSpreadsheet(spreadsheet_token: string, body: PatchSheetsSpreadsheetRequest): Promise<void>;
14
+ /**
15
+ * 获取电子表格信息
16
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet/get
17
+ */
18
+ getSheetsSpreadsheet(spreadsheet_token: string, query?: GetSheetsSpreadsheetQuery): Promise<GetSheetsSpreadsheetResponse>;
19
+ /**
20
+ * 获取工作表
21
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/query
22
+ */
23
+ querySheetsSpreadsheetSheet(spreadsheet_token: string): Promise<QuerySheetsSpreadsheetSheetResponse>;
24
+ /**
25
+ * 查询工作表
26
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/get
27
+ */
28
+ getSheetsSpreadsheetSheet(spreadsheet_token: string, sheet_id: string): Promise<GetSheetsSpreadsheetSheetResponse>;
29
+ /**
30
+ * 移动行列
31
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/move_dimension
32
+ */
33
+ moveDimensionSheetsSpreadsheetSheet(spreadsheet_token: string, sheet_id: string, body: MoveDimensionSheetsSpreadsheetSheetRequest): Promise<void>;
34
+ /**
35
+ * 查找单元格
36
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/find
37
+ */
38
+ findSheetsSpreadsheetSheet(spreadsheet_token: string, sheet_id: string, body: FindSheetsSpreadsheetSheetRequest): Promise<FindSheetsSpreadsheetSheetResponse>;
39
+ /**
40
+ * 替换单元格
41
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/replace
42
+ */
43
+ replaceSheetsSpreadsheetSheet(spreadsheet_token: string, sheet_id: string, body: ReplaceSheetsSpreadsheetSheetRequest): Promise<ReplaceSheetsSpreadsheetSheetResponse>;
44
+ /**
45
+ * 创建筛选
46
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter/create
47
+ */
48
+ createSheetsSpreadsheetSheetFilter(spreadsheet_token: string, sheet_id: string, body: CreateSheetsSpreadsheetSheetFilterRequest): Promise<void>;
49
+ /**
50
+ * 更新筛选
51
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter/update
52
+ */
53
+ updateSheetsSpreadsheetSheetFilter(spreadsheet_token: string, sheet_id: string, body: UpdateSheetsSpreadsheetSheetFilterRequest): Promise<void>;
54
+ /**
55
+ * 获取筛选
56
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter/get
57
+ */
58
+ getSheetsSpreadsheetSheetFilter(spreadsheet_token: string, sheet_id: string): Promise<GetSheetsSpreadsheetSheetFilterResponse>;
59
+ /**
60
+ * 删除筛选
61
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter/delete
62
+ */
63
+ deleteSheetsSpreadsheetSheetFilter(spreadsheet_token: string, sheet_id: string): Promise<void>;
64
+ /**
65
+ * 创建筛选视图
66
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/create
67
+ */
68
+ createSheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string, body: CreateSheetsSpreadsheetSheetFilterViewRequest): Promise<CreateSheetsSpreadsheetSheetFilterViewResponse>;
69
+ /**
70
+ * 更新筛选视图
71
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/patch
72
+ */
73
+ patchSheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string, filter_view_id: string, body: PatchSheetsSpreadsheetSheetFilterViewRequest): Promise<PatchSheetsSpreadsheetSheetFilterViewResponse>;
74
+ /**
75
+ * 查询筛选视图
76
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/query
77
+ */
78
+ querySheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string): Promise<QuerySheetsSpreadsheetSheetFilterViewResponse>;
79
+ /**
80
+ * 获取筛选视图
81
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/get
82
+ */
83
+ getSheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string, filter_view_id: string): Promise<GetSheetsSpreadsheetSheetFilterViewResponse>;
84
+ /**
85
+ * 删除筛选视图
86
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view/delete
87
+ */
88
+ deleteSheetsSpreadsheetSheetFilterView(spreadsheet_token: string, sheet_id: string, filter_view_id: string): Promise<void>;
89
+ /**
90
+ * 创建筛选条件
91
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/create
92
+ */
93
+ createSheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string, body: CreateSheetsSpreadsheetSheetFilterViewConditionRequest): Promise<CreateSheetsSpreadsheetSheetFilterViewConditionResponse>;
94
+ /**
95
+ * 更新筛选条件
96
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/update
97
+ */
98
+ updateSheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string, condition_id: string, body: UpdateSheetsSpreadsheetSheetFilterViewConditionRequest): Promise<UpdateSheetsSpreadsheetSheetFilterViewConditionResponse>;
99
+ /**
100
+ * 查询筛选条件
101
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/query
102
+ */
103
+ querySheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string): Promise<QuerySheetsSpreadsheetSheetFilterViewConditionResponse>;
104
+ /**
105
+ * 获取筛选条件
106
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/get
107
+ */
108
+ getSheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string, condition_id: string): Promise<GetSheetsSpreadsheetSheetFilterViewConditionResponse>;
109
+ /**
110
+ * 删除筛选条件
111
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-filter_view-condition/delete
112
+ */
113
+ deleteSheetsSpreadsheetSheetFilterViewCondition(spreadsheet_token: string, sheet_id: string, filter_view_id: string, condition_id: string): Promise<void>;
114
+ /**
115
+ * 创建浮动图片
116
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/create
117
+ */
118
+ createSheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string, body: CreateSheetsSpreadsheetSheetFloatImageRequest): Promise<CreateSheetsSpreadsheetSheetFloatImageResponse>;
119
+ /**
120
+ * 更新浮动图片
121
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/patch
122
+ */
123
+ patchSheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string, float_image_id: string, body: PatchSheetsSpreadsheetSheetFloatImageRequest): Promise<PatchSheetsSpreadsheetSheetFloatImageResponse>;
124
+ /**
125
+ * 获取浮动图片
126
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/get
127
+ */
128
+ getSheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string, float_image_id: string): Promise<GetSheetsSpreadsheetSheetFloatImageResponse>;
129
+ /**
130
+ * 查询浮动图片
131
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/query
132
+ */
133
+ querySheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string): Promise<QuerySheetsSpreadsheetSheetFloatImageResponse>;
134
+ /**
135
+ * 删除浮动图片
136
+ * @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet-float_image/delete
137
+ */
138
+ deleteSheetsSpreadsheetSheetFloatImage(spreadsheet_token: string, sheet_id: string, float_image_id: string): Promise<void>;
139
+ }
140
+ }
141
+ export interface CreateSheetsSpreadsheetRequest {
142
+ /** 表格标题 */
143
+ title?: string;
144
+ /** 文件夹token */
145
+ folder_token?: string;
146
+ }
147
+ export interface PatchSheetsSpreadsheetRequest {
148
+ /** 表格标题 */
149
+ title?: string;
150
+ }
151
+ export interface GetSheetsSpreadsheetQuery {
152
+ /** 此次调用中使用的用户ID的类型 */
153
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
154
+ }
155
+ export interface MoveDimensionSheetsSpreadsheetSheetRequest {
156
+ /** 移动源位置参数 */
157
+ source?: Dimension;
158
+ /** 移动的目标位置行或者列号 */
159
+ destination_index?: number;
160
+ }
161
+ export interface FindSheetsSpreadsheetSheetRequest {
162
+ /** 查找条件 */
163
+ find_condition: FindCondition;
164
+ /** 查找的字符串 */
165
+ find: string;
166
+ }
167
+ export interface ReplaceSheetsSpreadsheetSheetRequest {
168
+ /** 查找条件 */
169
+ find_condition: FindCondition;
170
+ /** 查找的字符串 */
171
+ find: string;
172
+ /** 替换的字符串 */
173
+ replacement: string;
174
+ }
175
+ export interface CreateSheetsSpreadsheetSheetFilterRequest {
176
+ /** 筛选应用范围 */
177
+ range: string;
178
+ /** 设置筛选条件的列 */
179
+ col: string;
180
+ /** 筛选的条件 */
181
+ condition: Condition;
182
+ }
183
+ export interface UpdateSheetsSpreadsheetSheetFilterRequest {
184
+ /** 更新筛选条件的列 */
185
+ col: string;
186
+ /** 筛选条件 */
187
+ condition: Condition;
188
+ }
189
+ export interface CreateSheetsSpreadsheetSheetFilterViewRequest {
190
+ /** 筛选视图 id */
191
+ filter_view_id?: string;
192
+ /** 筛选视图名字 */
193
+ filter_view_name?: string;
194
+ /** 筛选视图的筛选范围 */
195
+ range?: string;
196
+ }
197
+ export interface PatchSheetsSpreadsheetSheetFilterViewRequest {
198
+ /** 筛选视图名字 */
199
+ filter_view_name?: string;
200
+ /** 筛选视图的筛选范围 */
201
+ range?: string;
202
+ }
203
+ export interface CreateSheetsSpreadsheetSheetFilterViewConditionRequest {
204
+ /** 设置筛选条件的列,使用字母号 */
205
+ condition_id?: string;
206
+ /** 筛选类型 */
207
+ filter_type?: string;
208
+ /** 比较类型 */
209
+ compare_type?: string;
210
+ /** 筛选参数 */
211
+ expected?: string[];
212
+ }
213
+ export interface UpdateSheetsSpreadsheetSheetFilterViewConditionRequest {
214
+ /** 筛选类型 */
215
+ filter_type?: string;
216
+ /** 比较类型 */
217
+ compare_type?: string;
218
+ /** 筛选参数 */
219
+ expected?: string[];
220
+ }
221
+ export interface CreateSheetsSpreadsheetSheetFloatImageRequest {
222
+ /** 浮动图片 id */
223
+ float_image_id?: string;
224
+ /** 浮动图片 token,需要先上传图片到表格获得此 token 之后再进行浮动图片的操作 */
225
+ float_image_token?: string;
226
+ /** 浮动图片的左上角单元格定位,只支持一个单元格 */
227
+ range?: string;
228
+ /** 浮动图片的宽度,大于等于 20px */
229
+ width?: number;
230
+ /** 浮动图片的高度,大于等于 20px */
231
+ height?: number;
232
+ /** 浮动图片左上角所在位置相对于所在单元格左上角的横向偏移,大于等于0且小于所在单元格的宽度 */
233
+ offset_x?: number;
234
+ /** 浮动图片左上角所在位置相对于所在单元格左上角的纵向偏移,大于等于0且小于所在单元格的高度 */
235
+ offset_y?: number;
236
+ }
237
+ export interface PatchSheetsSpreadsheetSheetFloatImageRequest {
238
+ /** 浮动图片 token,需要先上传图片到表格获得此 token 之后再进行浮动图片的操作 */
239
+ float_image_token?: string;
240
+ /** 浮动图片的左上角单元格定位,只支持一个单元格 */
241
+ range?: string;
242
+ /** 浮动图片的宽度,大于等于 20px */
243
+ width?: number;
244
+ /** 浮动图片的高度,大于等于 20px */
245
+ height?: number;
246
+ /** 浮动图片左上角所在位置相对于所在单元格左上角的横向偏移,大于等于0且小于所在单元格的宽度 */
247
+ offset_x?: number;
248
+ /** 浮动图片左上角所在位置相对于所在单元格左上角的纵向偏移,大于等于0且小于所在单元格的高度 */
249
+ offset_y?: number;
250
+ }
251
+ export interface CreateSheetsSpreadsheetResponse {
252
+ /** 表格信息 */
253
+ spreadsheet?: Spreadsheet;
254
+ }
255
+ export interface GetSheetsSpreadsheetResponse {
256
+ /** 表格 */
257
+ spreadsheet?: GetSpreadsheet;
258
+ }
259
+ export interface QuerySheetsSpreadsheetSheetResponse {
260
+ /** 工作表信息 */
261
+ sheets?: Sheet[];
262
+ }
263
+ export interface GetSheetsSpreadsheetSheetResponse {
264
+ /** 工作表 */
265
+ sheet?: Sheet;
266
+ }
267
+ export interface FindSheetsSpreadsheetSheetResponse {
268
+ /** 查找返回符合条件的信息 */
269
+ find_result?: FindReplaceResult;
270
+ }
271
+ export interface ReplaceSheetsSpreadsheetSheetResponse {
272
+ /** 符合查找条件并替换的单元格信息 */
273
+ replace_result?: FindReplaceResult;
274
+ }
275
+ export interface GetSheetsSpreadsheetSheetFilterResponse {
276
+ /** 筛选信息 */
277
+ sheet_filter_info?: SheetFilterInfo;
278
+ }
279
+ export interface CreateSheetsSpreadsheetSheetFilterViewResponse {
280
+ /** 创建的筛选视图的 id 、name、range */
281
+ filter_view?: FilterView;
282
+ }
283
+ export interface PatchSheetsSpreadsheetSheetFilterViewResponse {
284
+ /** 更新后的筛选视图的 id 、name、range */
285
+ filter_view?: FilterView;
286
+ }
287
+ export interface QuerySheetsSpreadsheetSheetFilterViewResponse {
288
+ /** 子表的所有筛选视图信息,id、name、range */
289
+ items?: FilterView[];
290
+ }
291
+ export interface GetSheetsSpreadsheetSheetFilterViewResponse {
292
+ /** 筛选视图信息,包括 id、name、range */
293
+ filter_view?: FilterView;
294
+ }
295
+ export interface CreateSheetsSpreadsheetSheetFilterViewConditionResponse {
296
+ /** 创建的筛选条件 */
297
+ condition?: FilterViewCondition;
298
+ }
299
+ export interface UpdateSheetsSpreadsheetSheetFilterViewConditionResponse {
300
+ /** 更新后的筛选条件 */
301
+ condition?: FilterViewCondition;
302
+ }
303
+ export interface QuerySheetsSpreadsheetSheetFilterViewConditionResponse {
304
+ /** 筛选视图设置的所有筛选条件 */
305
+ items?: FilterViewCondition[];
306
+ }
307
+ export interface GetSheetsSpreadsheetSheetFilterViewConditionResponse {
308
+ /** 筛选的条件 */
309
+ condition?: FilterViewCondition;
310
+ }
311
+ export interface CreateSheetsSpreadsheetSheetFloatImageResponse {
312
+ /** 浮动图片 */
313
+ float_image?: FloatImage;
314
+ }
315
+ export interface PatchSheetsSpreadsheetSheetFloatImageResponse {
316
+ /** 浮动图片 */
317
+ float_image?: FloatImage;
318
+ }
319
+ export interface GetSheetsSpreadsheetSheetFloatImageResponse {
320
+ /** 浮动图片 */
321
+ float_image?: FloatImage;
322
+ }
323
+ export interface QuerySheetsSpreadsheetSheetFloatImageResponse {
324
+ /** 子表的所有浮动图片信息 */
325
+ items?: FloatImage[];
326
+ }
@@ -0,0 +1,39 @@
1
+ import { FileConfig, Speech, StreamConfig } from '.';
2
+ declare module '../internal' {
3
+ interface Internal {
4
+ /**
5
+ * 识别语音文件
6
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/speech_to_text-v1/speech/file_recognize
7
+ */
8
+ fileRecognizeSpeechToTextSpeech(body: FileRecognizeSpeechToTextSpeechRequest): Promise<FileRecognizeSpeechToTextSpeechResponse>;
9
+ /**
10
+ * 识别流式语音
11
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/speech_to_text-v1/speech/stream_recognize
12
+ */
13
+ streamRecognizeSpeechToTextSpeech(body: StreamRecognizeSpeechToTextSpeechRequest): Promise<StreamRecognizeSpeechToTextSpeechResponse>;
14
+ }
15
+ }
16
+ export interface FileRecognizeSpeechToTextSpeechRequest {
17
+ /** 语音资源 */
18
+ speech: Speech;
19
+ /** 配置属性 */
20
+ config: FileConfig;
21
+ }
22
+ export interface StreamRecognizeSpeechToTextSpeechRequest {
23
+ /** 语音资源 */
24
+ speech: Speech;
25
+ /** 配置属性 */
26
+ config: StreamConfig;
27
+ }
28
+ export interface FileRecognizeSpeechToTextSpeechResponse {
29
+ /** 语音识别后的文本信息 */
30
+ recognition_text: string;
31
+ }
32
+ export interface StreamRecognizeSpeechToTextSpeechResponse {
33
+ /** 16 位 String 随机串作为同一数据流的标识 */
34
+ stream_id: string;
35
+ /** 数据流分片的序号,序号从 0 开始,每次请求递增 1 */
36
+ sequence_id: number;
37
+ /** 语音流识别后的文本信息 */
38
+ recognition_text: string;
39
+ }