@satorijs/adapter-lark 3.8.5 → 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.
- package/lib/bot.d.ts +1 -1
- package/lib/content.d.ts +433 -0
- package/lib/http.d.ts +1 -1
- package/lib/index.cjs +2796 -1713
- package/lib/index.cjs.map +6 -0
- package/lib/index.d.ts +4 -2
- package/lib/internal.d.ts +38 -0
- package/lib/message.d.ts +2 -0
- package/lib/types/acs.d.ts +177 -0
- package/lib/types/admin.d.ts +270 -0
- package/lib/types/aily.d.ts +221 -0
- package/lib/types/apaas.d.ts +499 -0
- package/lib/types/application.d.ts +406 -0
- package/lib/types/approval.d.ts +779 -0
- package/lib/types/attendance.d.ts +957 -0
- package/lib/types/auth.d.ts +86 -0
- package/lib/types/authen.d.ts +191 -0
- package/lib/types/baike.d.ts +239 -0
- package/lib/types/bitable.d.ts +691 -0
- package/lib/types/board.d.ts +19 -0
- package/lib/types/calendar.d.ts +653 -0
- package/lib/types/cardkit.d.ts +139 -0
- package/lib/types/compensation.d.ts +54 -0
- package/lib/types/contact.d.ts +1137 -0
- package/lib/types/corehr.d.ts +4383 -0
- package/lib/types/docs.d.ts +23 -0
- package/lib/types/document_ai.d.ts +257 -0
- package/lib/types/docx.d.ts +380 -0
- package/lib/types/drive.d.ts +1045 -0
- package/lib/types/ehr.d.ts +32 -0
- package/lib/types/event.d.ts +9 -18
- package/lib/types/guild.d.ts +59 -0
- package/lib/types/helpdesk.d.ts +738 -0
- package/lib/types/hire.d.ts +3150 -0
- package/lib/types/human_authentication.d.ts +27 -0
- package/lib/types/im.d.ts +1300 -0
- package/lib/types/index.d.ts +16432 -34
- package/lib/types/lingo.d.ts +254 -0
- package/lib/types/mail.d.ts +680 -0
- package/lib/types/mdm.d.ts +42 -0
- package/lib/types/message/asset.d.ts +40 -0
- package/lib/types/minutes.d.ts +31 -0
- package/lib/types/moments.d.ts +18 -0
- package/lib/types/okr.d.ts +205 -0
- package/lib/types/optical_char_recognition.d.ts +17 -0
- package/lib/types/passport.d.ts +45 -0
- package/lib/types/payroll.d.ts +50 -0
- package/lib/types/performance.d.ts +413 -0
- package/lib/types/personal_settings.d.ts +87 -0
- package/lib/types/report.d.ts +57 -0
- package/lib/types/search.d.ts +216 -0
- package/lib/types/security_and_compliance.d.ts +24 -0
- package/lib/types/sheets.d.ts +326 -0
- package/lib/types/speech_to_text.d.ts +39 -0
- package/lib/types/task.d.ts +1153 -0
- package/lib/types/tenant.d.ts +23 -0
- package/lib/types/translation.d.ts +37 -0
- package/lib/types/user.d.ts +78 -0
- package/lib/types/utils.d.ts +9 -0
- package/lib/types/vc.d.ts +948 -0
- package/lib/types/verification.d.ts +14 -0
- package/lib/types/wiki.d.ts +240 -0
- package/lib/types/workplace.d.ts +43 -0
- package/lib/utils.d.ts +143 -7
- package/package.json +6 -4
- package/src/bot.ts +19 -3
- package/src/{types/message/content.ts → content.ts} +1 -0
- package/src/http.ts +1 -3
- package/src/index.ts +4 -2
- package/src/internal.ts +144 -0
- package/src/message.ts +24 -11
- package/src/types/acs.ts +236 -0
- package/src/types/admin.ts +328 -0
- package/src/types/aily.ts +288 -0
- package/src/types/apaas.ts +646 -0
- package/src/types/application.ts +520 -0
- package/src/types/approval.ts +924 -0
- package/src/types/attendance.ts +1153 -0
- package/src/types/auth.ts +114 -0
- package/src/types/authen.ts +220 -0
- package/src/types/baike.ts +306 -0
- package/src/types/bitable.ts +879 -0
- package/src/types/board.ts +31 -0
- package/src/types/calendar.ts +817 -0
- package/src/types/cardkit.ts +182 -0
- package/src/types/compensation.ts +79 -0
- package/src/types/contact.ts +1411 -0
- package/src/types/corehr.ts +5288 -0
- package/src/types/docs.ts +33 -0
- package/src/types/document_ai.ts +352 -0
- package/src/types/docx.ts +471 -0
- package/src/types/drive.ts +1312 -0
- package/src/types/ehr.ts +43 -0
- package/src/types/event.ts +15 -21
- package/src/types/helpdesk.ts +916 -0
- package/src/types/hire.ts +3918 -0
- package/src/types/human_authentication.ts +38 -0
- package/src/types/im.ts +1605 -0
- package/src/types/index.ts +17754 -39
- package/src/types/lingo.ts +321 -0
- package/src/types/mail.ts +851 -0
- package/src/types/mdm.ts +57 -0
- package/src/types/minutes.ts +46 -0
- package/src/types/moments.ts +28 -0
- package/src/types/okr.ts +261 -0
- package/src/types/optical_char_recognition.ts +27 -0
- package/src/types/passport.ts +61 -0
- package/src/types/payroll.ts +69 -0
- package/src/types/performance.ts +524 -0
- package/src/types/personal_settings.ts +116 -0
- package/src/types/report.ts +77 -0
- package/src/types/search.ts +268 -0
- package/src/types/security_and_compliance.ts +33 -0
- package/src/types/sheets.ts +425 -0
- package/src/types/speech_to_text.ts +54 -0
- package/src/types/task.ts +1464 -0
- package/src/types/tenant.ts +36 -0
- package/src/types/translation.ts +52 -0
- package/src/types/vc.ts +1197 -0
- package/src/types/verification.ts +23 -0
- package/src/types/wiki.ts +313 -0
- package/src/types/workplace.ts +59 -0
- package/src/utils.ts +160 -8
- package/src/types/api.ts +0 -30835
- package/src/types/internal.ts +0 -84
- package/src/types/message/index.ts +0 -97
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Rule, Task } 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/report/report-v1/rule/query
|
|
9
|
+
*/
|
|
10
|
+
queryReportRule(query?: QueryReportRuleQuery): Promise<QueryReportRuleResponse>
|
|
11
|
+
/**
|
|
12
|
+
* 移除规则看板
|
|
13
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove
|
|
14
|
+
*/
|
|
15
|
+
removeReportRuleView(rule_id: string, body: RemoveReportRuleViewRequest, query?: RemoveReportRuleViewQuery): Promise<void>
|
|
16
|
+
/**
|
|
17
|
+
* 查询任务
|
|
18
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query
|
|
19
|
+
*/
|
|
20
|
+
queryReportTask(body: QueryReportTaskRequest, query?: QueryReportTaskQuery): Paginated<Task>
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface QueryReportRuleQuery {
|
|
25
|
+
/** 规则名称 */
|
|
26
|
+
rule_name: string
|
|
27
|
+
/** 是否包括已删除,默认未删除 */
|
|
28
|
+
include_deleted?: 0 | 1
|
|
29
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
30
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface RemoveReportRuleViewRequest {
|
|
34
|
+
/** 列表为空删除规则下全用户视图,列表不为空删除指定用户视图,大小限制200。 */
|
|
35
|
+
user_ids?: string[]
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface RemoveReportRuleViewQuery {
|
|
39
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface QueryReportTaskRequest {
|
|
43
|
+
/** 提交开始时间时间戳 */
|
|
44
|
+
commit_start_time: number
|
|
45
|
+
/** 提交结束时间时间戳 */
|
|
46
|
+
commit_end_time: number
|
|
47
|
+
/** 汇报规则ID */
|
|
48
|
+
rule_id?: string
|
|
49
|
+
/** 用户ID */
|
|
50
|
+
user_id?: string
|
|
51
|
+
/** 分页标识符 */
|
|
52
|
+
page_token: string
|
|
53
|
+
/** 单次分页返回的条数 */
|
|
54
|
+
page_size: number
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface QueryReportTaskQuery {
|
|
58
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
59
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface QueryReportRuleResponse {
|
|
63
|
+
/** 规则列表 */
|
|
64
|
+
rules?: Rule[]
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
Internal.define({
|
|
68
|
+
'/report/v1/rules/query': {
|
|
69
|
+
GET: 'queryReportRule',
|
|
70
|
+
},
|
|
71
|
+
'/report/v1/rules/{rule_id}/views/remove': {
|
|
72
|
+
POST: 'removeReportRuleView',
|
|
73
|
+
},
|
|
74
|
+
'/report/v1/tasks/query': {
|
|
75
|
+
POST: 'queryReportTask',
|
|
76
|
+
},
|
|
77
|
+
})
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { Acl, ConnectorParam, DataSource, I18nMeta, Item, ItemContent, ItemMetadata, PatchSchemaProperty, Schema, SchemaDisplay, SchemaProperty } from '.'
|
|
2
|
+
import { Internal, Pagination } from '../internal'
|
|
3
|
+
|
|
4
|
+
declare module '../internal' {
|
|
5
|
+
interface Internal {
|
|
6
|
+
/**
|
|
7
|
+
* 搜索消息
|
|
8
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/message/create
|
|
9
|
+
*/
|
|
10
|
+
createSearchMessage(body: CreateSearchMessageRequest, query?: CreateSearchMessageQuery): Paginated<string>
|
|
11
|
+
/**
|
|
12
|
+
* 搜索应用
|
|
13
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/app/create
|
|
14
|
+
*/
|
|
15
|
+
createSearchApp(body: CreateSearchAppRequest, query?: CreateSearchAppQuery): Paginated<string>
|
|
16
|
+
/**
|
|
17
|
+
* 创建数据源
|
|
18
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/create
|
|
19
|
+
*/
|
|
20
|
+
createSearchDataSource(body: CreateSearchDataSourceRequest): Promise<CreateSearchDataSourceResponse>
|
|
21
|
+
/**
|
|
22
|
+
* 删除数据源
|
|
23
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/delete
|
|
24
|
+
*/
|
|
25
|
+
deleteSearchDataSource(data_source_id: string): Promise<void>
|
|
26
|
+
/**
|
|
27
|
+
* 修改数据源
|
|
28
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/patch
|
|
29
|
+
*/
|
|
30
|
+
patchSearchDataSource(data_source_id: string, body: PatchSearchDataSourceRequest): Promise<PatchSearchDataSourceResponse>
|
|
31
|
+
/**
|
|
32
|
+
* 获取数据源
|
|
33
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/get
|
|
34
|
+
*/
|
|
35
|
+
getSearchDataSource(data_source_id: string): Promise<GetSearchDataSourceResponse>
|
|
36
|
+
/**
|
|
37
|
+
* 批量获取数据源
|
|
38
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source/list
|
|
39
|
+
*/
|
|
40
|
+
listSearchDataSource(query?: ListSearchDataSourceQuery): Paginated<DataSource>
|
|
41
|
+
/**
|
|
42
|
+
* 为指定数据项创建索引
|
|
43
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source-item/create
|
|
44
|
+
*/
|
|
45
|
+
createSearchDataSourceItem(data_source_id: string, body: CreateSearchDataSourceItemRequest): Promise<void>
|
|
46
|
+
/**
|
|
47
|
+
* 删除数据项
|
|
48
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source-item/delete
|
|
49
|
+
*/
|
|
50
|
+
deleteSearchDataSourceItem(data_source_id: string, item_id: string): Promise<void>
|
|
51
|
+
/**
|
|
52
|
+
* 查询指定数据项
|
|
53
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/data_source-item/get
|
|
54
|
+
*/
|
|
55
|
+
getSearchDataSourceItem(data_source_id: string, item_id: string): Promise<GetSearchDataSourceItemResponse>
|
|
56
|
+
/**
|
|
57
|
+
* 创建数据范式
|
|
58
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/schema/create
|
|
59
|
+
*/
|
|
60
|
+
createSearchSchema(body: CreateSearchSchemaRequest, query?: CreateSearchSchemaQuery): Promise<CreateSearchSchemaResponse>
|
|
61
|
+
/**
|
|
62
|
+
* 删除数据范式
|
|
63
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/schema/delete
|
|
64
|
+
*/
|
|
65
|
+
deleteSearchSchema(schema_id: string): Promise<void>
|
|
66
|
+
/**
|
|
67
|
+
* 修改数据范式
|
|
68
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/schema/patch
|
|
69
|
+
*/
|
|
70
|
+
patchSearchSchema(schema_id: string, body: PatchSearchSchemaRequest): Promise<PatchSearchSchemaResponse>
|
|
71
|
+
/**
|
|
72
|
+
* 获取数据范式
|
|
73
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/schema/get
|
|
74
|
+
*/
|
|
75
|
+
getSearchSchema(schema_id: string): Promise<GetSearchSchemaResponse>
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface CreateSearchMessageRequest {
|
|
80
|
+
/** 搜索关键词 */
|
|
81
|
+
query: string
|
|
82
|
+
/** 消息来自user_id列表 */
|
|
83
|
+
from_ids?: string[]
|
|
84
|
+
/** 消息所在chat_id列表 */
|
|
85
|
+
chat_ids?: string[]
|
|
86
|
+
/** 消息类型(file/image/media) */
|
|
87
|
+
message_type?: 'file' | 'image' | 'media'
|
|
88
|
+
/** at用户user_id列表 */
|
|
89
|
+
at_chatter_ids?: string[]
|
|
90
|
+
/** 消息来自类型(bot/user) */
|
|
91
|
+
from_type?: 'bot' | 'user'
|
|
92
|
+
/** 会话类型(group_chat/p2p_chat) */
|
|
93
|
+
chat_type?: 'group_chat' | 'p2p_chat'
|
|
94
|
+
/** 消息发送起始时间 */
|
|
95
|
+
start_time?: string
|
|
96
|
+
/** 消息发送结束时间 */
|
|
97
|
+
end_time?: string
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface CreateSearchMessageQuery extends Pagination {
|
|
101
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
102
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface CreateSearchAppRequest {
|
|
106
|
+
/** 搜索关键词 */
|
|
107
|
+
query: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface CreateSearchAppQuery extends Pagination {
|
|
111
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
112
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface CreateSearchDataSourceRequest {
|
|
116
|
+
/** data_source的展示名称 */
|
|
117
|
+
name: string
|
|
118
|
+
/** 数据源状态,0-已上线,1-未上线 */
|
|
119
|
+
state?: 0 | 1
|
|
120
|
+
/** 对于数据源的描述 */
|
|
121
|
+
description?: string
|
|
122
|
+
/** 数据源在 search tab 上的展示图标路径 */
|
|
123
|
+
icon_url?: string
|
|
124
|
+
/** 数据源采用的展示模版名称 */
|
|
125
|
+
template?: string
|
|
126
|
+
/** 描述哪些字段可以被搜索 */
|
|
127
|
+
searchable_fields?: string[]
|
|
128
|
+
/** 数据源的国际化展示名称 */
|
|
129
|
+
i18n_name?: I18nMeta
|
|
130
|
+
/** 数据源的国际化描述 */
|
|
131
|
+
i18n_description?: I18nMeta
|
|
132
|
+
/** 数据源关联的 schema 标识 */
|
|
133
|
+
schema_id?: string
|
|
134
|
+
/** datasource对应的开放平台应用id */
|
|
135
|
+
app_id?: string
|
|
136
|
+
/** 搜索请求的接入方式 */
|
|
137
|
+
connect_type?: 0 | 1
|
|
138
|
+
/** 根据连接器类型不同所需要提供的相关参数 */
|
|
139
|
+
connector_param?: ConnectorParam
|
|
140
|
+
/** 是否使用问答服务 */
|
|
141
|
+
enable_answer?: boolean
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface PatchSearchDataSourceRequest {
|
|
145
|
+
/** 数据源的展示名称 */
|
|
146
|
+
name?: string
|
|
147
|
+
/** 数据源状态,0-已上线,1-未上线 */
|
|
148
|
+
state?: 0 | 1
|
|
149
|
+
/** 对于数据源的描述 */
|
|
150
|
+
description?: string
|
|
151
|
+
/** 数据源在 search tab 上的展示图标路径 */
|
|
152
|
+
icon_url?: string
|
|
153
|
+
/** 数据源名称多语言配置,json格式,key为语言locale,value为对应文案,例如{"zh_cn":"测试数据源", "en_us":"Test DataSource"} */
|
|
154
|
+
i18n_name?: I18nMeta
|
|
155
|
+
/** 数据源描述多语言配置,json格式,key为语言locale,value为对应文案,例如{"zh_cn":"搜索测试数据源相关数据", "en_us":"Search data from Test DataSource"} */
|
|
156
|
+
i18n_description?: I18nMeta
|
|
157
|
+
/** 修改connector的相关配置 */
|
|
158
|
+
connector_param?: ConnectorParam
|
|
159
|
+
/** 是否使用问答服务 */
|
|
160
|
+
enable_answer?: boolean
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface ListSearchDataSourceQuery extends Pagination {
|
|
164
|
+
/** 回包数据格式,0-全量数据;1-摘要数据。**注**:摘要数据仅包含"id","name","state"。 */
|
|
165
|
+
view?: 0 | 1
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface CreateSearchDataSourceItemRequest {
|
|
169
|
+
/** item 在 datasource 中的唯一标识,只接受英文字母、数字和下划线 */
|
|
170
|
+
id: string
|
|
171
|
+
/** item 的访问权限控制 */
|
|
172
|
+
acl: Acl[]
|
|
173
|
+
/** item 的元信息 */
|
|
174
|
+
metadata: ItemMetadata
|
|
175
|
+
/** 结构化数据 */
|
|
176
|
+
structured_data: string
|
|
177
|
+
/** 非结构化数据,如文档文本 */
|
|
178
|
+
content?: ItemContent
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface CreateSearchSchemaRequest {
|
|
182
|
+
/** 数据范式的属性定义 */
|
|
183
|
+
properties: SchemaProperty[]
|
|
184
|
+
/** 数据展示相关配置 */
|
|
185
|
+
display: SchemaDisplay
|
|
186
|
+
/** 用户自定义数据范式的唯一标识 */
|
|
187
|
+
schema_id: string
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface CreateSearchSchemaQuery {
|
|
191
|
+
/** 是否只用来校验合法性 */
|
|
192
|
+
validate_only?: boolean
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface PatchSearchSchemaRequest {
|
|
196
|
+
/** 数据展示相关配置 */
|
|
197
|
+
display?: SchemaDisplay
|
|
198
|
+
/** 数据范式的属性定义 */
|
|
199
|
+
properties?: PatchSchemaProperty[]
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface CreateSearchDataSourceResponse {
|
|
203
|
+
/** 数据源实例 */
|
|
204
|
+
data_source?: DataSource
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface PatchSearchDataSourceResponse {
|
|
208
|
+
/** 数据源 */
|
|
209
|
+
data_source?: DataSource
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface GetSearchDataSourceResponse {
|
|
213
|
+
/** 数据源实例 */
|
|
214
|
+
data_source?: DataSource
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface GetSearchDataSourceItemResponse {
|
|
218
|
+
/** 数据项实例 */
|
|
219
|
+
item: Item
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface CreateSearchSchemaResponse {
|
|
223
|
+
/** 数据范式实例 */
|
|
224
|
+
schema?: Schema
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface PatchSearchSchemaResponse {
|
|
228
|
+
/** 数据范式实例 */
|
|
229
|
+
schema?: Schema
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface GetSearchSchemaResponse {
|
|
233
|
+
/** 数据范式 */
|
|
234
|
+
schema?: Schema
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
Internal.define({
|
|
238
|
+
'/search/v2/message': {
|
|
239
|
+
POST: { name: 'createSearchMessage', pagination: { argIndex: 1 } },
|
|
240
|
+
},
|
|
241
|
+
'/search/v2/app': {
|
|
242
|
+
POST: { name: 'createSearchApp', pagination: { argIndex: 1 } },
|
|
243
|
+
},
|
|
244
|
+
'/search/v2/data_sources': {
|
|
245
|
+
POST: 'createSearchDataSource',
|
|
246
|
+
GET: { name: 'listSearchDataSource', pagination: { argIndex: 0 } },
|
|
247
|
+
},
|
|
248
|
+
'/search/v2/data_sources/{data_source_id}': {
|
|
249
|
+
DELETE: 'deleteSearchDataSource',
|
|
250
|
+
PATCH: 'patchSearchDataSource',
|
|
251
|
+
GET: 'getSearchDataSource',
|
|
252
|
+
},
|
|
253
|
+
'/search/v2/data_sources/{data_source_id}/items': {
|
|
254
|
+
POST: 'createSearchDataSourceItem',
|
|
255
|
+
},
|
|
256
|
+
'/search/v2/data_sources/{data_source_id}/items/{item_id}': {
|
|
257
|
+
DELETE: 'deleteSearchDataSourceItem',
|
|
258
|
+
GET: 'getSearchDataSourceItem',
|
|
259
|
+
},
|
|
260
|
+
'/search/v2/schemas': {
|
|
261
|
+
POST: 'createSearchSchema',
|
|
262
|
+
},
|
|
263
|
+
'/search/v2/schemas/{schema_id}': {
|
|
264
|
+
DELETE: 'deleteSearchSchema',
|
|
265
|
+
PATCH: 'patchSearchSchema',
|
|
266
|
+
GET: 'getSearchSchema',
|
|
267
|
+
},
|
|
268
|
+
})
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OpenapiLog } from '.'
|
|
2
|
+
import { Internal } from '../internal'
|
|
3
|
+
|
|
4
|
+
declare module '../internal' {
|
|
5
|
+
interface Internal {
|
|
6
|
+
/**
|
|
7
|
+
* 获取OpenAPI审计日志数据
|
|
8
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/security_and_compliance-v1/openapi_log/list_data
|
|
9
|
+
*/
|
|
10
|
+
listDataSecurityAndComplianceOpenapiLog(body: ListDataSecurityAndComplianceOpenapiLogRequest): Paginated<OpenapiLog>
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface ListDataSecurityAndComplianceOpenapiLogRequest {
|
|
15
|
+
/** 飞书开放平台定义的API */
|
|
16
|
+
api_keys?: string[]
|
|
17
|
+
/** 以秒为单位的起始时间戳 */
|
|
18
|
+
start_time?: number
|
|
19
|
+
/** 以秒为单位的终止时间戳 */
|
|
20
|
+
end_time?: number
|
|
21
|
+
/** 在开发者后台——凭证与基础信息页面查看的app_id(cli_xxx),指调用openapi的应用 */
|
|
22
|
+
app_id?: string
|
|
23
|
+
/** 分页大小 */
|
|
24
|
+
page_size?: number
|
|
25
|
+
/** 分页标记,第一次请求不填,表示从头开始遍历;当返回的has_more为true时,会返回新的page_token,再次调用接口,传入这个page_token,将获得下一页数据 */
|
|
26
|
+
page_token?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
Internal.define({
|
|
30
|
+
'/security_and_compliance/v1/openapi_logs/list_data': {
|
|
31
|
+
POST: 'listDataSecurityAndComplianceOpenapiLog',
|
|
32
|
+
},
|
|
33
|
+
})
|