@qlik/api 1.31.0 → 1.32.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/api-keys.js +2 -2
- package/apps.js +2 -2
- package/assistants.d.ts +1301 -0
- package/assistants.js +273 -0
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automation-connections.d.ts +366 -0
- package/automation-connections.js +91 -0
- package/automations.js +2 -2
- package/automl-deployments.d.ts +97 -0
- package/automl-deployments.js +27 -0
- package/automl-predictions.d.ts +214 -0
- package/automl-predictions.js +72 -0
- package/brands.js +2 -2
- package/chunks/{GUU3KZGK.js → RCLKKVYB.js} +1 -1
- package/chunks/{YKZ2QYHN.js → VVD2DPKQ.js} +2 -2
- package/chunks/{KBSD75QL.js → YTT2FEVE.js} +1 -1
- package/collections.js +2 -2
- package/conditions.d.ts +662 -0
- package/conditions.js +113 -0
- package/consumption.d.ts +182 -0
- package/consumption.js +24 -0
- package/csp-origins.js +2 -2
- package/csrf-token.d.ts +62 -0
- package/csrf-token.js +23 -0
- package/data-alerts.d.ts +1004 -0
- package/data-alerts.js +155 -0
- package/data-assets.js +2 -2
- package/data-connections.js +2 -2
- package/data-credentials.js +2 -2
- package/data-files.js +2 -2
- package/data-qualities.d.ts +175 -0
- package/data-qualities.js +44 -0
- package/data-sets.d.ts +424 -0
- package/data-sets.js +75 -0
- package/data-sources.d.ts +268 -0
- package/data-sources.js +39 -0
- package/data-stores.d.ts +537 -0
- package/data-stores.js +108 -0
- package/dcaas.d.ts +192 -0
- package/dcaas.js +39 -0
- package/di-projects.d.ts +673 -0
- package/di-projects.js +164 -0
- package/encryption.d.ts +370 -0
- package/encryption.js +98 -0
- package/extensions.js +2 -2
- package/glossaries.js +2 -2
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.d.ts +105 -1
- package/index.js +556 -4
- package/items.js +2 -2
- package/knowledgebases.d.ts +890 -0
- package/knowledgebases.js +169 -0
- package/licenses.d.ts +1 -1
- package/licenses.js +2 -2
- package/lineage-graphs.d.ts +712 -0
- package/lineage-graphs.js +92 -0
- package/ml.d.ts +2628 -0
- package/ml.js +384 -0
- package/notes.d.ts +110 -0
- package/notes.js +31 -0
- package/notifications.d.ts +98 -0
- package/notifications.js +24 -0
- package/oauth-clients.js +2 -2
- package/oauth-tokens.d.ts +126 -0
- package/oauth-tokens.js +31 -0
- package/package.json +28 -2
- package/qix.d.ts +1 -1
- package/qix.js +2 -2
- package/questions.d.ts +364 -0
- package/questions.js +34 -0
- package/quotas.js +2 -2
- package/reload-tasks.js +2 -2
- package/reloads.js +2 -2
- package/report-templates.d.ts +287 -0
- package/report-templates.js +80 -0
- package/reports.js +2 -2
- package/roles.js +2 -2
- package/sharing-tasks.d.ts +952 -0
- package/sharing-tasks.js +105 -0
- package/spaces.js +2 -2
- package/tasks.d.ts +564 -0
- package/tasks.js +106 -0
- package/temp-contents.js +2 -2
- package/tenants.js +2 -2
- package/themes.js +2 -2
- package/transports.js +2 -2
- package/ui-config.d.ts +274 -0
- package/ui-config.js +77 -0
- package/users.js +2 -2
- package/web-integrations.js +2 -2
- package/web-notifications.js +2 -2
- package/webhooks.js +2 -2
- /package/chunks/{DLKLPD7T.js → LTNGXTXG.js} +0 -0
|
@@ -0,0 +1,890 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
|
|
2
|
+
import './auth-types-DqfMuSRX.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
|
|
6
|
+
*/
|
|
7
|
+
type JSONPatch = {
|
|
8
|
+
/** The operation to be performed. */
|
|
9
|
+
op: "REPLACE";
|
|
10
|
+
/** A JSON Pointer. */
|
|
11
|
+
path: string;
|
|
12
|
+
/** The value to be used for this operation. */
|
|
13
|
+
value: string | number | boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* An array of JSON Patch documents
|
|
17
|
+
* @example
|
|
18
|
+
* [
|
|
19
|
+
* {
|
|
20
|
+
* path: "/name",
|
|
21
|
+
* value: "new name"
|
|
22
|
+
* },
|
|
23
|
+
* {
|
|
24
|
+
* path: "/description",
|
|
25
|
+
* value: "new description"
|
|
26
|
+
* }
|
|
27
|
+
* ]
|
|
28
|
+
*/
|
|
29
|
+
type JSONPatchArray = JSONPatch[];
|
|
30
|
+
type Chunking = {
|
|
31
|
+
/** Allows to keep or remove separators used */
|
|
32
|
+
keepSeparator: boolean;
|
|
33
|
+
/** Chunk overlap, should be less than size */
|
|
34
|
+
overlap: number;
|
|
35
|
+
/** List of separators to chunk by */
|
|
36
|
+
separators: string[];
|
|
37
|
+
/** Size of chunks */
|
|
38
|
+
size: number;
|
|
39
|
+
/** Chunking strategy */
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
type ContentSummary = {
|
|
43
|
+
effectivePages: number;
|
|
44
|
+
fileCount: number;
|
|
45
|
+
fileSize: number;
|
|
46
|
+
textSize: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided.
|
|
50
|
+
*/
|
|
51
|
+
type CreateDataSource = {
|
|
52
|
+
/** Configuration for webcrawling */
|
|
53
|
+
crawlerConfig?: DataSourceCrawlConfig;
|
|
54
|
+
/** Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided. */
|
|
55
|
+
fileConfig?: DataSourceFileConfig;
|
|
56
|
+
/** Name of the datasource */
|
|
57
|
+
name: string;
|
|
58
|
+
type: "file" | "web" | "database";
|
|
59
|
+
};
|
|
60
|
+
type CreateKnowledgeBase = {
|
|
61
|
+
/** Description of the knowledgebase */
|
|
62
|
+
description?: string;
|
|
63
|
+
/** Name of the knowledgebase */
|
|
64
|
+
name: string;
|
|
65
|
+
/** Number of selected errors to store in the case of any failed datasources. Optional value with a default of 10. */
|
|
66
|
+
selectedErrorsCount?: number;
|
|
67
|
+
/** Unique identifier of the space to contain the knowledgebase */
|
|
68
|
+
spaceId: string;
|
|
69
|
+
/** List of tags for knowledgebase */
|
|
70
|
+
tags?: string[];
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided.
|
|
74
|
+
*/
|
|
75
|
+
type DataSource = {
|
|
76
|
+
chunking?: Chunking;
|
|
77
|
+
contentSummary: ContentSummary;
|
|
78
|
+
/** Configuration for webcrawling */
|
|
79
|
+
crawlerConfig?: DataSourceCrawlConfig;
|
|
80
|
+
/** Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided. */
|
|
81
|
+
fileConfig?: DataSourceFileConfig;
|
|
82
|
+
/** Unique identifier of the datasource */
|
|
83
|
+
id: string;
|
|
84
|
+
/** Name of the datasource */
|
|
85
|
+
name?: string;
|
|
86
|
+
/** The number of times that a datasource was referenced as a source in an answer */
|
|
87
|
+
sourceCount?: number;
|
|
88
|
+
/** The unique identifier of the space containing the datasource */
|
|
89
|
+
spaceId?: string;
|
|
90
|
+
syncInfo?: DataSourceSyncStatus;
|
|
91
|
+
type: "file" | "web" | "database";
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Configuration for webcrawling
|
|
95
|
+
*/
|
|
96
|
+
type DataSourceCrawlConfig = {
|
|
97
|
+
/** Pattern matching links to crawl */
|
|
98
|
+
crawlPatterns?: DataSourceCrawlPattern[];
|
|
99
|
+
/** Pattern matching links to index */
|
|
100
|
+
indexPatterns?: DataSourceCrawlPattern[];
|
|
101
|
+
/** Scope for th webcrawler */
|
|
102
|
+
scope: DataSourceCrawlScope;
|
|
103
|
+
/** Seed URL that crawling will start on. */
|
|
104
|
+
url: string;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Include or exclude pattern
|
|
108
|
+
*/
|
|
109
|
+
type DataSourceCrawlPattern = {
|
|
110
|
+
/** Regex patterna to filter links on */
|
|
111
|
+
pattern: string;
|
|
112
|
+
/** include or exclude */
|
|
113
|
+
type: "include" | "exclude";
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Scope for th webcrawler
|
|
117
|
+
*/
|
|
118
|
+
type DataSourceCrawlScope = {
|
|
119
|
+
/** The number of levels of links the crawler will traverse */
|
|
120
|
+
depth: number;
|
|
121
|
+
/** if set to true crawler will try to download and index other supported content like pdf:s from links */
|
|
122
|
+
downloadFiles?: boolean;
|
|
123
|
+
/** Maximum number of links per page that will be extracted */
|
|
124
|
+
maxLinks?: number;
|
|
125
|
+
/** Optional parameter. Max size of downloaded files in bytes */
|
|
126
|
+
maxSize?: number;
|
|
127
|
+
/** The scope that the crawler will crawl. */
|
|
128
|
+
scope: "all" | "domain" | "subdomain";
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided.
|
|
132
|
+
*/
|
|
133
|
+
type DataSourceFileConfig = {
|
|
134
|
+
/** connection id to be used to retrieve the raw data */
|
|
135
|
+
connectionId: string;
|
|
136
|
+
/** Pattern matching links to crawl */
|
|
137
|
+
crawlPatterns?: DataSourceCrawlPattern[];
|
|
138
|
+
files?: string[];
|
|
139
|
+
/** Root folder for traversing. */
|
|
140
|
+
folder?: string;
|
|
141
|
+
/** Scope for the file crawler. */
|
|
142
|
+
scope?: DataSourceFileCrawlScope;
|
|
143
|
+
/** userId of the owner of the datasource fileConfig */
|
|
144
|
+
userId: string;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Scope for the file crawler.
|
|
148
|
+
*/
|
|
149
|
+
type DataSourceFileCrawlScope = {
|
|
150
|
+
/** The number of levels of sub folders that should be considered */
|
|
151
|
+
depth: number;
|
|
152
|
+
/** list of file extensions to be considered */
|
|
153
|
+
extensions?: string[];
|
|
154
|
+
/** Maximum number of files per folder that should be considered */
|
|
155
|
+
maxFilesPerFolder?: number;
|
|
156
|
+
/** Total number of files that should be considered */
|
|
157
|
+
maxFilesTotal?: number;
|
|
158
|
+
/** Optional parameter. Max size of downloaded files in bytes */
|
|
159
|
+
maxSize?: number;
|
|
160
|
+
/** only files modified after this time should be indexed. If set older files will be removed from index. */
|
|
161
|
+
modifiedAfter?: string;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Response when a datasource sync is started, contains the sync Id
|
|
165
|
+
*/
|
|
166
|
+
type DataSourceSync = {
|
|
167
|
+
/** Unique identifier of the sync */
|
|
168
|
+
id: string;
|
|
169
|
+
};
|
|
170
|
+
type DataSourceSyncStatus = {
|
|
171
|
+
/** Datetime when the sync task was completed */
|
|
172
|
+
readonly completedAt: string;
|
|
173
|
+
/** sync Id */
|
|
174
|
+
lastSyncId?: string;
|
|
175
|
+
/** Datetime when the sync task was started */
|
|
176
|
+
readonly startedAt: string;
|
|
177
|
+
/** Sync status */
|
|
178
|
+
readonly status: "neverIndexed" | "progress" | "completed" | "completedWithError" | "toAdd" | "toDelete";
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Summary of documents processed
|
|
182
|
+
*/
|
|
183
|
+
type DocStats = {
|
|
184
|
+
readonly added: number;
|
|
185
|
+
readonly deleted: number;
|
|
186
|
+
readonly deltaBytes: number;
|
|
187
|
+
readonly deltaEffectivePages: number;
|
|
188
|
+
readonly deltaTextSize: number;
|
|
189
|
+
readonly errors: number;
|
|
190
|
+
readonly largestFileSize: number;
|
|
191
|
+
readonly totalBytesProcessed: number;
|
|
192
|
+
readonly updated: number;
|
|
193
|
+
};
|
|
194
|
+
type DownloadFile = {
|
|
195
|
+
/** file path to the file to downlaod. */
|
|
196
|
+
path: string;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Download information for the file.
|
|
200
|
+
*/
|
|
201
|
+
type DownloadFileResponse = {
|
|
202
|
+
/** Size of downloaded file. */
|
|
203
|
+
fileSize: number;
|
|
204
|
+
/** Date for last time the file was modified. */
|
|
205
|
+
lastUpdatedAt: string;
|
|
206
|
+
/** The mimetype of the file. */
|
|
207
|
+
mimeType: string;
|
|
208
|
+
/** The requested file name. */
|
|
209
|
+
name: string;
|
|
210
|
+
/** Space id the file belongs in. */
|
|
211
|
+
spaceId: string;
|
|
212
|
+
/** URL to download the file. */
|
|
213
|
+
url: string;
|
|
214
|
+
};
|
|
215
|
+
type Duration = {
|
|
216
|
+
readonly chunk: number;
|
|
217
|
+
readonly download: number;
|
|
218
|
+
readonly embed: number;
|
|
219
|
+
readonly parse: number;
|
|
220
|
+
readonly store: number;
|
|
221
|
+
};
|
|
222
|
+
type ErrorResponse = {
|
|
223
|
+
errors?: ErrorResponseCode[];
|
|
224
|
+
traceId?: string;
|
|
225
|
+
};
|
|
226
|
+
type ErrorResponseCode = {
|
|
227
|
+
code?: string;
|
|
228
|
+
detail?: string;
|
|
229
|
+
title?: string;
|
|
230
|
+
};
|
|
231
|
+
type KnowledgeBase = KnowledgeBaseLight & {
|
|
232
|
+
datasources?: DataSource[];
|
|
233
|
+
};
|
|
234
|
+
type KnowledgeBaseLight = {
|
|
235
|
+
contentSummary: ContentSummary;
|
|
236
|
+
/** Datetime when the knowledgebase was created */
|
|
237
|
+
readonly createdAt: string;
|
|
238
|
+
/** Unique identifier of the user who created the knowledgebase */
|
|
239
|
+
readonly createdBy: string;
|
|
240
|
+
/** Description of the knowledgebase */
|
|
241
|
+
description: string;
|
|
242
|
+
/** Unique identifier of the knowledgebase */
|
|
243
|
+
id: string;
|
|
244
|
+
/** Datetime when the knowledgebase was last indexed */
|
|
245
|
+
readonly lastIndexedAt?: string;
|
|
246
|
+
/** Name of the knowledgebase */
|
|
247
|
+
name: string;
|
|
248
|
+
/** The unique identifier of the knowledgebase owner */
|
|
249
|
+
ownerId: string;
|
|
250
|
+
/** Number of selected errors to store in the case of any failed datasources. */
|
|
251
|
+
selectedErrorsCount?: number;
|
|
252
|
+
/** The unique identifier of the space containing the knowledgebase */
|
|
253
|
+
spaceId: string;
|
|
254
|
+
/** List of tags associated with the knowledgebase. */
|
|
255
|
+
tags: string[];
|
|
256
|
+
/** Unique identifier of the tenant */
|
|
257
|
+
tenantId?: string;
|
|
258
|
+
/** Datetime when the knowledgebase was updated */
|
|
259
|
+
readonly updatedAt: string;
|
|
260
|
+
/** The unique identifier of the user who last updated the knowledgebase */
|
|
261
|
+
readonly updatedBy: string;
|
|
262
|
+
};
|
|
263
|
+
type KnowledgeBasesResult = {
|
|
264
|
+
data: KnowledgeBaseLight[];
|
|
265
|
+
links?: PageLinks;
|
|
266
|
+
};
|
|
267
|
+
type PageLink = {
|
|
268
|
+
href?: string;
|
|
269
|
+
};
|
|
270
|
+
type PageLinks = {
|
|
271
|
+
next?: PageLink;
|
|
272
|
+
prev?: PageLink;
|
|
273
|
+
self?: PageLink;
|
|
274
|
+
};
|
|
275
|
+
type ResultMeta = {
|
|
276
|
+
countTotal?: number;
|
|
277
|
+
};
|
|
278
|
+
type Schedule = {
|
|
279
|
+
calendars?: ScheduleCalendar[];
|
|
280
|
+
intervals?: ScheduleInterval[];
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* An event specification relative to the calendar, similar to a traditional cron specification.
|
|
284
|
+
*/
|
|
285
|
+
type ScheduleCalendar = {
|
|
286
|
+
/** Description of the intention of this schedule */
|
|
287
|
+
comment: string;
|
|
288
|
+
/** DayOfMonth range to match (1-31). Default matches all days */
|
|
289
|
+
dayOfMonth: ScheduleRange[];
|
|
290
|
+
/** DayOfWeek range to match (0-6; 0 is Sunday). Default matches all days of the week */
|
|
291
|
+
dayOfWeek: ScheduleRange[];
|
|
292
|
+
/** Hour range to match (0-23). Default matches 0 */
|
|
293
|
+
hour: ScheduleRange[];
|
|
294
|
+
/** Minute range to match (0-59). Default matches 0 */
|
|
295
|
+
minute: ScheduleRange[];
|
|
296
|
+
/** Month range to match (1-12). Default matches all months */
|
|
297
|
+
month: ScheduleRange[];
|
|
298
|
+
/** Second range to match (0-59). Default matches 0 */
|
|
299
|
+
second: ScheduleRange[];
|
|
300
|
+
/** Year range to match. Default matches all years */
|
|
301
|
+
year: ScheduleRange[];
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* For example, an `every` of 1 hour with `offset` of zero would match every hour, on the hour. The same `every` but an `offset` of 19 minutes would match every `xx:19:00`.
|
|
305
|
+
*/
|
|
306
|
+
type ScheduleInterval = {
|
|
307
|
+
/** The period to repeat the interval */
|
|
308
|
+
every: string;
|
|
309
|
+
/** A fixed offset added to the intervals period. Optional, defaults to 0 */
|
|
310
|
+
offset?: string;
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* ScheduleRange represents a set of integer values, used to match fields of a calendar time in scheduleCalendar. If end < start, then end is interpreted as equal to start
|
|
314
|
+
*/
|
|
315
|
+
type ScheduleRange = {
|
|
316
|
+
/** End of the range (inclusive). If end < start, then end is interpreted as equal to start. Optional, defaulted to Start */
|
|
317
|
+
end?: number;
|
|
318
|
+
/** Start of the range (inclusive) */
|
|
319
|
+
start: number;
|
|
320
|
+
/** Step to be take between each value. Optional, defaulted to 1 */
|
|
321
|
+
step?: number;
|
|
322
|
+
};
|
|
323
|
+
type ScheduleWithManifest = {
|
|
324
|
+
calendars: ScheduleCalendar[];
|
|
325
|
+
datasourceId?: string;
|
|
326
|
+
intervals?: ScheduleInterval[];
|
|
327
|
+
knowledgebaseId: string;
|
|
328
|
+
ownerId: string;
|
|
329
|
+
spaceId?: string;
|
|
330
|
+
tenantId: string;
|
|
331
|
+
};
|
|
332
|
+
type SyncHistory = {
|
|
333
|
+
/** Datetime when the sync task was completed */
|
|
334
|
+
readonly completedAt?: string;
|
|
335
|
+
/** Connection id that the datasource used */
|
|
336
|
+
connectionId: string;
|
|
337
|
+
/** datasource id */
|
|
338
|
+
datasourceId: string;
|
|
339
|
+
/** Summary of documents processed */
|
|
340
|
+
docStats: DocStats;
|
|
341
|
+
/** sync id */
|
|
342
|
+
id: string;
|
|
343
|
+
/** populated with up to the first selectedErrorsCount errors if there were any during sync */
|
|
344
|
+
selectedErrors?: string[];
|
|
345
|
+
/** Datetime when the sync task was started */
|
|
346
|
+
readonly startedAt: string;
|
|
347
|
+
/** Sync status */
|
|
348
|
+
readonly status: "neverIndexed" | "progress" | "completed" | "completedWithError";
|
|
349
|
+
/** Datasource trigger type, was it manually or automatically synced */
|
|
350
|
+
triggerType: string;
|
|
351
|
+
};
|
|
352
|
+
type SyncHistoryDetails = {
|
|
353
|
+
/** acion performed */
|
|
354
|
+
readonly action: "add" | "delete" | "update";
|
|
355
|
+
/** chunk size */
|
|
356
|
+
readonly chunkSize?: number;
|
|
357
|
+
/** number of chunks */
|
|
358
|
+
readonly chunks?: number;
|
|
359
|
+
duration?: Duration;
|
|
360
|
+
/** error if one happened during sync */
|
|
361
|
+
error?: string;
|
|
362
|
+
/** page count */
|
|
363
|
+
readonly explicitPages: number;
|
|
364
|
+
/** Datetime when the file processing finished */
|
|
365
|
+
readonly fileCompletedAt?: string;
|
|
366
|
+
/** Datetime when the file was last modified */
|
|
367
|
+
readonly fileLastModified?: string;
|
|
368
|
+
/** file size */
|
|
369
|
+
readonly fileSize?: number;
|
|
370
|
+
/** Datetime when the file processing started */
|
|
371
|
+
readonly fileStartedAt?: string;
|
|
372
|
+
/** document Id */
|
|
373
|
+
id: string;
|
|
374
|
+
/** Source of the document */
|
|
375
|
+
readonly source: string;
|
|
376
|
+
/** sync Id */
|
|
377
|
+
syncId: string;
|
|
378
|
+
/** Datetime when the sync task was executed */
|
|
379
|
+
readonly syncedAt: string;
|
|
380
|
+
};
|
|
381
|
+
type SyncHistoryResult = {
|
|
382
|
+
data: SyncHistory[];
|
|
383
|
+
links?: PageLinks;
|
|
384
|
+
meta?: ResultMeta;
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* Returns a list of all knowledgebases the user has access to.
|
|
388
|
+
*
|
|
389
|
+
* @param query an object with query parameters
|
|
390
|
+
* @throws GetKnowledgebasesHttpError
|
|
391
|
+
*/
|
|
392
|
+
declare const getKnowledgebases: (query: {
|
|
393
|
+
/** @deprecated
|
|
394
|
+
* Optional parameter to request total count for query */
|
|
395
|
+
countTotal?: boolean;
|
|
396
|
+
/** The number of knowledgebases to get. */
|
|
397
|
+
limit?: number;
|
|
398
|
+
/** Optional parameter to request the next page. */
|
|
399
|
+
next?: string;
|
|
400
|
+
/** Optional parameter to request the previous page. */
|
|
401
|
+
prev?: string;
|
|
402
|
+
/** Optional resource field name to sort on, case insensitive, eg. name. Can be prefixed with - to set descending order, defaults to ascending. */
|
|
403
|
+
sort?: "NAME" | "-NAME" | "DESCRIPTION" | "-DESCRIPTION" | "CREATED" | "-CREATED" | "UPDATED" | "-UPDATED";
|
|
404
|
+
}, options?: ApiCallOptions) => Promise<GetKnowledgebasesHttpResponse>;
|
|
405
|
+
type GetKnowledgebasesHttpResponse = {
|
|
406
|
+
data: KnowledgeBasesResult;
|
|
407
|
+
headers: Headers;
|
|
408
|
+
status: 200;
|
|
409
|
+
prev?: (options?: ApiCallOptions) => Promise<GetKnowledgebasesHttpResponse>;
|
|
410
|
+
next?: (options?: ApiCallOptions) => Promise<GetKnowledgebasesHttpResponse>;
|
|
411
|
+
};
|
|
412
|
+
type GetKnowledgebasesHttpError = {
|
|
413
|
+
data: ErrorResponse;
|
|
414
|
+
headers: Headers;
|
|
415
|
+
status: 400 | 403;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Creates a new knowledgebase.
|
|
419
|
+
*
|
|
420
|
+
* @param body an object with the body content
|
|
421
|
+
* @throws CreateKnowledgebaseHttpError
|
|
422
|
+
*/
|
|
423
|
+
declare const createKnowledgebase: (body: CreateKnowledgeBase, options?: ApiCallOptions) => Promise<CreateKnowledgebaseHttpResponse>;
|
|
424
|
+
type CreateKnowledgebaseHttpResponse = {
|
|
425
|
+
data: KnowledgeBaseLight;
|
|
426
|
+
headers: Headers;
|
|
427
|
+
status: 201;
|
|
428
|
+
};
|
|
429
|
+
type CreateKnowledgebaseHttpError = {
|
|
430
|
+
data: ErrorResponse;
|
|
431
|
+
headers: Headers;
|
|
432
|
+
status: 400 | 403;
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Deletes a knowledgebase and all of its resources.
|
|
436
|
+
*
|
|
437
|
+
* @param id The id of the knowledgebase to delete.
|
|
438
|
+
* @throws DeleteKnowledgebaseHttpError
|
|
439
|
+
*/
|
|
440
|
+
declare const deleteKnowledgebase: (id: string, options?: ApiCallOptions) => Promise<DeleteKnowledgebaseHttpResponse>;
|
|
441
|
+
type DeleteKnowledgebaseHttpResponse = {
|
|
442
|
+
data: void;
|
|
443
|
+
headers: Headers;
|
|
444
|
+
status: 204;
|
|
445
|
+
};
|
|
446
|
+
type DeleteKnowledgebaseHttpError = {
|
|
447
|
+
data: ErrorResponse;
|
|
448
|
+
headers: Headers;
|
|
449
|
+
status: 400 | 403 | 404;
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* Retrieves a specific knowledgebase.
|
|
453
|
+
*
|
|
454
|
+
* @param id The id of the knowledgebase to retrieve.
|
|
455
|
+
* @throws GetKnowledgebaseHttpError
|
|
456
|
+
*/
|
|
457
|
+
declare const getKnowledgebase: (id: string, options?: ApiCallOptions) => Promise<GetKnowledgebaseHttpResponse>;
|
|
458
|
+
type GetKnowledgebaseHttpResponse = {
|
|
459
|
+
data: KnowledgeBase;
|
|
460
|
+
headers: Headers;
|
|
461
|
+
status: 200;
|
|
462
|
+
};
|
|
463
|
+
type GetKnowledgebaseHttpError = {
|
|
464
|
+
data: ErrorResponse;
|
|
465
|
+
headers: Headers;
|
|
466
|
+
status: 400 | 403 | 404;
|
|
467
|
+
};
|
|
468
|
+
/**
|
|
469
|
+
* Updates properties of a specific knowledgebase.
|
|
470
|
+
*
|
|
471
|
+
* @param id The knowledgebase id.
|
|
472
|
+
* @param body an object with the body content
|
|
473
|
+
* @throws PatchKnowledgebaseHttpError
|
|
474
|
+
*/
|
|
475
|
+
declare const patchKnowledgebase: (id: string, body: JSONPatchArray, options?: ApiCallOptions) => Promise<PatchKnowledgebaseHttpResponse>;
|
|
476
|
+
type PatchKnowledgebaseHttpResponse = {
|
|
477
|
+
data: void;
|
|
478
|
+
headers: Headers;
|
|
479
|
+
status: 204;
|
|
480
|
+
};
|
|
481
|
+
type PatchKnowledgebaseHttpError = {
|
|
482
|
+
data: ErrorResponse;
|
|
483
|
+
headers: Headers;
|
|
484
|
+
status: 400 | 401 | 403 | 404 | 429;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Adds a datasource to a knowledgebase.
|
|
488
|
+
*
|
|
489
|
+
* @param id The id of the knowledgebase.
|
|
490
|
+
* @param body an object with the body content
|
|
491
|
+
* @throws CreateKnowledgebaseDatasourceHttpError
|
|
492
|
+
*/
|
|
493
|
+
declare const createKnowledgebaseDatasource: (id: string, body: CreateDataSource, options?: ApiCallOptions) => Promise<CreateKnowledgebaseDatasourceHttpResponse>;
|
|
494
|
+
type CreateKnowledgebaseDatasourceHttpResponse = {
|
|
495
|
+
data: DataSource;
|
|
496
|
+
headers: Headers;
|
|
497
|
+
status: 201;
|
|
498
|
+
};
|
|
499
|
+
type CreateKnowledgebaseDatasourceHttpError = {
|
|
500
|
+
data: ErrorResponse;
|
|
501
|
+
headers: Headers;
|
|
502
|
+
status: 400 | 403 | 404;
|
|
503
|
+
};
|
|
504
|
+
/**
|
|
505
|
+
* Deletes a specified datasource and all its resources.
|
|
506
|
+
*
|
|
507
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
508
|
+
* @param datasourceId The id of the datasource to delete.
|
|
509
|
+
* @throws DeleteKnowledgebaseDatasourceHttpError
|
|
510
|
+
*/
|
|
511
|
+
declare const deleteKnowledgebaseDatasource: (id: string, datasourceId: string, options?: ApiCallOptions) => Promise<DeleteKnowledgebaseDatasourceHttpResponse>;
|
|
512
|
+
type DeleteKnowledgebaseDatasourceHttpResponse = {
|
|
513
|
+
data: void;
|
|
514
|
+
headers: Headers;
|
|
515
|
+
status: 204;
|
|
516
|
+
};
|
|
517
|
+
type DeleteKnowledgebaseDatasourceHttpError = {
|
|
518
|
+
data: ErrorResponse;
|
|
519
|
+
headers: Headers;
|
|
520
|
+
status: 400 | 403 | 404;
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* Update a knowledgebase datasource
|
|
524
|
+
*
|
|
525
|
+
* @param id The id of a knowledgebase.
|
|
526
|
+
* @param datasourceId The id of the datasource to update.
|
|
527
|
+
* @param body an object with the body content
|
|
528
|
+
* @throws UpdateKnowledgebaseDatasourceHttpError
|
|
529
|
+
*/
|
|
530
|
+
declare const updateKnowledgebaseDatasource: (id: string, datasourceId: string, body: DataSource, options?: ApiCallOptions) => Promise<UpdateKnowledgebaseDatasourceHttpResponse>;
|
|
531
|
+
type UpdateKnowledgebaseDatasourceHttpResponse = {
|
|
532
|
+
data: DataSource;
|
|
533
|
+
headers: Headers;
|
|
534
|
+
status: 200;
|
|
535
|
+
};
|
|
536
|
+
type UpdateKnowledgebaseDatasourceHttpError = {
|
|
537
|
+
data: ErrorResponse;
|
|
538
|
+
headers: Headers;
|
|
539
|
+
status: 400 | 403 | 404;
|
|
540
|
+
};
|
|
541
|
+
/**
|
|
542
|
+
* Cancels ongoing sync for a specified datasource.
|
|
543
|
+
*
|
|
544
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
545
|
+
* @param datasourceId The id of the datasource to cancel sync for.
|
|
546
|
+
* @throws CancelKnowledgebaseDatasourceHttpError
|
|
547
|
+
*/
|
|
548
|
+
declare const cancelKnowledgebaseDatasource: (id: string, datasourceId: string, options?: ApiCallOptions) => Promise<CancelKnowledgebaseDatasourceHttpResponse>;
|
|
549
|
+
type CancelKnowledgebaseDatasourceHttpResponse = {
|
|
550
|
+
data: DataSourceSync;
|
|
551
|
+
headers: Headers;
|
|
552
|
+
status: 200;
|
|
553
|
+
};
|
|
554
|
+
type CancelKnowledgebaseDatasourceHttpError = {
|
|
555
|
+
data: ErrorResponse;
|
|
556
|
+
headers: Headers;
|
|
557
|
+
status: 400 | 403 | 404;
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Download knowledgebase datasource reference
|
|
561
|
+
*
|
|
562
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
563
|
+
* @param datasourceId The id of the datasource to download from.
|
|
564
|
+
* @param body an object with the body content
|
|
565
|
+
* @throws DownloadKnowledgebaseDatasourceHttpError
|
|
566
|
+
*/
|
|
567
|
+
declare const downloadKnowledgebaseDatasource: (id: string, datasourceId: string, body: DownloadFile, options?: ApiCallOptions) => Promise<DownloadKnowledgebaseDatasourceHttpResponse>;
|
|
568
|
+
type DownloadKnowledgebaseDatasourceHttpResponse = {
|
|
569
|
+
data: DownloadFileResponse;
|
|
570
|
+
headers: Headers;
|
|
571
|
+
status: 200;
|
|
572
|
+
};
|
|
573
|
+
type DownloadKnowledgebaseDatasourceHttpError = {
|
|
574
|
+
data: ErrorResponse;
|
|
575
|
+
headers: Headers;
|
|
576
|
+
status: 400 | 403 | 404;
|
|
577
|
+
};
|
|
578
|
+
/**
|
|
579
|
+
* Starts syncing a specified datasource to a specified knowledgebase index.
|
|
580
|
+
*
|
|
581
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
582
|
+
* @param datasourceId The id of the datasource to sync.
|
|
583
|
+
* @param query an object with query parameters
|
|
584
|
+
* @throws SyncKnowledgebaseDatasourceHttpError
|
|
585
|
+
*/
|
|
586
|
+
declare const syncKnowledgebaseDatasource: (id: string, datasourceId: string, query: {
|
|
587
|
+
/** Optional parameter to migrate indexed files to docdetails collection */
|
|
588
|
+
migrate?: boolean;
|
|
589
|
+
}, options?: ApiCallOptions) => Promise<SyncKnowledgebaseDatasourceHttpResponse>;
|
|
590
|
+
type SyncKnowledgebaseDatasourceHttpResponse = {
|
|
591
|
+
data: DataSourceSync;
|
|
592
|
+
headers: Headers;
|
|
593
|
+
status: 202;
|
|
594
|
+
};
|
|
595
|
+
type SyncKnowledgebaseDatasourceHttpError = {
|
|
596
|
+
data: ErrorResponse;
|
|
597
|
+
headers: Headers;
|
|
598
|
+
status: 400 | 403 | 404;
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* Retrieves sync history for a specified datasource in a knowledgebase. Returns a `404` if there is no sync history, or if the calling user doesn't have access to the datasource.
|
|
602
|
+
*
|
|
603
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
604
|
+
* @param datasourceId The id of the datasource.
|
|
605
|
+
* @param query an object with query parameters
|
|
606
|
+
* @throws GetKnowledgebaseDatasourceHistoriesHttpError
|
|
607
|
+
*/
|
|
608
|
+
declare const getKnowledgebaseDatasourceHistories: (id: string, datasourceId: string, query: {
|
|
609
|
+
/** The number of knowledgebases to get. */
|
|
610
|
+
limit?: number;
|
|
611
|
+
/** Optional parameter to request the next page. */
|
|
612
|
+
next?: string;
|
|
613
|
+
/** Optional parameter to request the previous page. */
|
|
614
|
+
prev?: string;
|
|
615
|
+
/** Optional resource field name to sort on, case insensitive, eg. name. Can be prefixed with - to set descending order, defaults to ascending. */
|
|
616
|
+
sort?: "COMPLETED" | "-COMPLETED";
|
|
617
|
+
}, options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceHistoriesHttpResponse>;
|
|
618
|
+
type GetKnowledgebaseDatasourceHistoriesHttpResponse = {
|
|
619
|
+
data: SyncHistoryResult;
|
|
620
|
+
headers: Headers;
|
|
621
|
+
status: 200;
|
|
622
|
+
prev?: (options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceHistoriesHttpResponse>;
|
|
623
|
+
next?: (options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceHistoriesHttpResponse>;
|
|
624
|
+
};
|
|
625
|
+
type GetKnowledgebaseDatasourceHistoriesHttpError = {
|
|
626
|
+
data: ErrorResponse;
|
|
627
|
+
headers: Headers;
|
|
628
|
+
status: 400 | 403 | 404;
|
|
629
|
+
};
|
|
630
|
+
/**
|
|
631
|
+
* @deprecated
|
|
632
|
+
*
|
|
633
|
+
* Retrieves detailed sync history for a specified datasource.
|
|
634
|
+
*
|
|
635
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
636
|
+
* @param datasourceId The id of the datasource.
|
|
637
|
+
* @param syncId The sync identifier.
|
|
638
|
+
* @throws GetKnowledgebaseDatasourceHistoryHttpError
|
|
639
|
+
*/
|
|
640
|
+
declare const getKnowledgebaseDatasourceHistory: (id: string, datasourceId: string, syncId: string, options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceHistoryHttpResponse>;
|
|
641
|
+
type GetKnowledgebaseDatasourceHistoryHttpResponse = {
|
|
642
|
+
data: SyncHistoryDetails;
|
|
643
|
+
headers: Headers;
|
|
644
|
+
status: 200;
|
|
645
|
+
};
|
|
646
|
+
type GetKnowledgebaseDatasourceHistoryHttpError = {
|
|
647
|
+
data: ErrorResponse;
|
|
648
|
+
headers: Headers;
|
|
649
|
+
status: 400 | 403 | 404;
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* Delete knowledgebase datasource schedule
|
|
653
|
+
*
|
|
654
|
+
* @param id The id of the knowledgebase the schedule belongs to.
|
|
655
|
+
* @param datasourceId The id of the datasource the schedule belongs to.
|
|
656
|
+
* @throws DeleteKnowledgebaseDatasourceScheduleHttpError
|
|
657
|
+
*/
|
|
658
|
+
declare const deleteKnowledgebaseDatasourceSchedule: (id: string, datasourceId: string, options?: ApiCallOptions) => Promise<DeleteKnowledgebaseDatasourceScheduleHttpResponse>;
|
|
659
|
+
type DeleteKnowledgebaseDatasourceScheduleHttpResponse = {
|
|
660
|
+
data: void;
|
|
661
|
+
headers: Headers;
|
|
662
|
+
status: 204;
|
|
663
|
+
};
|
|
664
|
+
type DeleteKnowledgebaseDatasourceScheduleHttpError = {
|
|
665
|
+
data: ErrorResponse;
|
|
666
|
+
headers: Headers;
|
|
667
|
+
status: 400 | 403 | 404;
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* Get a knowledgebase datasource schedule
|
|
671
|
+
*
|
|
672
|
+
* @param id The id of the knowledgebase the schedule belongs to.
|
|
673
|
+
* @param datasourceId The id of the datasource the schedule belongs to.
|
|
674
|
+
* @throws GetKnowledgebaseDatasourceScheduleHttpError
|
|
675
|
+
*/
|
|
676
|
+
declare const getKnowledgebaseDatasourceSchedule: (id: string, datasourceId: string, options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceScheduleHttpResponse>;
|
|
677
|
+
type GetKnowledgebaseDatasourceScheduleHttpResponse = {
|
|
678
|
+
data: ScheduleWithManifest;
|
|
679
|
+
headers: Headers;
|
|
680
|
+
status: 200;
|
|
681
|
+
};
|
|
682
|
+
type GetKnowledgebaseDatasourceScheduleHttpError = {
|
|
683
|
+
data: ErrorResponse;
|
|
684
|
+
headers: Headers;
|
|
685
|
+
status: 400 | 403 | 404;
|
|
686
|
+
};
|
|
687
|
+
/**
|
|
688
|
+
* Creates or updates a specified datasource schedule.
|
|
689
|
+
*
|
|
690
|
+
* @param id The id of the knowledgebase the schedule belongs to.
|
|
691
|
+
* @param datasourceId The id of the datasource the schedule belongs to.
|
|
692
|
+
* @param body an object with the body content
|
|
693
|
+
* @throws CreateKnowledgebaseDatasourceScheduleHttpError
|
|
694
|
+
*/
|
|
695
|
+
declare const createKnowledgebaseDatasourceSchedule: (id: string, datasourceId: string, body: Schedule, options?: ApiCallOptions) => Promise<CreateKnowledgebaseDatasourceScheduleHttpResponse>;
|
|
696
|
+
type CreateKnowledgebaseDatasourceScheduleHttpResponse = {
|
|
697
|
+
data: ScheduleWithManifest;
|
|
698
|
+
headers: Headers;
|
|
699
|
+
status: 200 | 201;
|
|
700
|
+
};
|
|
701
|
+
type CreateKnowledgebaseDatasourceScheduleHttpError = {
|
|
702
|
+
data: ErrorResponse;
|
|
703
|
+
headers: Headers;
|
|
704
|
+
status: 400 | 403 | 404;
|
|
705
|
+
};
|
|
706
|
+
/**
|
|
707
|
+
* Retrieves sync history for the specified knowledgebase. Will return a `404` if no sync history exists, or if the calling user does not have access to synced datasources.
|
|
708
|
+
*
|
|
709
|
+
* @param id The id of the knowledgebase.
|
|
710
|
+
* @param query an object with query parameters
|
|
711
|
+
* @throws GetKnowledgebaseHistoriesHttpError
|
|
712
|
+
*/
|
|
713
|
+
declare const getKnowledgebaseHistories: (id: string, query: {
|
|
714
|
+
/** The number of sync histories to get. */
|
|
715
|
+
limit?: number;
|
|
716
|
+
/** Optional parameter to request the next page. */
|
|
717
|
+
next?: string;
|
|
718
|
+
/** Optional parameter to request the previous page. */
|
|
719
|
+
prev?: string;
|
|
720
|
+
/** Optional resource field name to sort on, case insensitive, eg. name. Can be prefixed with - to set descending order, defaults to ascending. */
|
|
721
|
+
sort?: "COMPLETED" | "-COMPLETED";
|
|
722
|
+
}, options?: ApiCallOptions) => Promise<GetKnowledgebaseHistoriesHttpResponse>;
|
|
723
|
+
type GetKnowledgebaseHistoriesHttpResponse = {
|
|
724
|
+
data: SyncHistoryResult;
|
|
725
|
+
headers: Headers;
|
|
726
|
+
status: 200;
|
|
727
|
+
prev?: (options?: ApiCallOptions) => Promise<GetKnowledgebaseHistoriesHttpResponse>;
|
|
728
|
+
next?: (options?: ApiCallOptions) => Promise<GetKnowledgebaseHistoriesHttpResponse>;
|
|
729
|
+
};
|
|
730
|
+
type GetKnowledgebaseHistoriesHttpError = {
|
|
731
|
+
data: ErrorResponse;
|
|
732
|
+
headers: Headers;
|
|
733
|
+
status: 400 | 403 | 404;
|
|
734
|
+
};
|
|
735
|
+
/**
|
|
736
|
+
* Clears the cache for knowledgebases api requests.
|
|
737
|
+
*/
|
|
738
|
+
declare function clearCache(): void;
|
|
739
|
+
interface KnowledgebasesAPI {
|
|
740
|
+
/**
|
|
741
|
+
* Returns a list of all knowledgebases the user has access to.
|
|
742
|
+
*
|
|
743
|
+
* @param query an object with query parameters
|
|
744
|
+
* @throws GetKnowledgebasesHttpError
|
|
745
|
+
*/
|
|
746
|
+
getKnowledgebases: typeof getKnowledgebases;
|
|
747
|
+
/**
|
|
748
|
+
* Creates a new knowledgebase.
|
|
749
|
+
*
|
|
750
|
+
* @param body an object with the body content
|
|
751
|
+
* @throws CreateKnowledgebaseHttpError
|
|
752
|
+
*/
|
|
753
|
+
createKnowledgebase: typeof createKnowledgebase;
|
|
754
|
+
/**
|
|
755
|
+
* Deletes a knowledgebase and all of its resources.
|
|
756
|
+
*
|
|
757
|
+
* @param id The id of the knowledgebase to delete.
|
|
758
|
+
* @throws DeleteKnowledgebaseHttpError
|
|
759
|
+
*/
|
|
760
|
+
deleteKnowledgebase: typeof deleteKnowledgebase;
|
|
761
|
+
/**
|
|
762
|
+
* Retrieves a specific knowledgebase.
|
|
763
|
+
*
|
|
764
|
+
* @param id The id of the knowledgebase to retrieve.
|
|
765
|
+
* @throws GetKnowledgebaseHttpError
|
|
766
|
+
*/
|
|
767
|
+
getKnowledgebase: typeof getKnowledgebase;
|
|
768
|
+
/**
|
|
769
|
+
* Updates properties of a specific knowledgebase.
|
|
770
|
+
*
|
|
771
|
+
* @param id The knowledgebase id.
|
|
772
|
+
* @param body an object with the body content
|
|
773
|
+
* @throws PatchKnowledgebaseHttpError
|
|
774
|
+
*/
|
|
775
|
+
patchKnowledgebase: typeof patchKnowledgebase;
|
|
776
|
+
/**
|
|
777
|
+
* Adds a datasource to a knowledgebase.
|
|
778
|
+
*
|
|
779
|
+
* @param id The id of the knowledgebase.
|
|
780
|
+
* @param body an object with the body content
|
|
781
|
+
* @throws CreateKnowledgebaseDatasourceHttpError
|
|
782
|
+
*/
|
|
783
|
+
createKnowledgebaseDatasource: typeof createKnowledgebaseDatasource;
|
|
784
|
+
/**
|
|
785
|
+
* Deletes a specified datasource and all its resources.
|
|
786
|
+
*
|
|
787
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
788
|
+
* @param datasourceId The id of the datasource to delete.
|
|
789
|
+
* @throws DeleteKnowledgebaseDatasourceHttpError
|
|
790
|
+
*/
|
|
791
|
+
deleteKnowledgebaseDatasource: typeof deleteKnowledgebaseDatasource;
|
|
792
|
+
/**
|
|
793
|
+
* Update a knowledgebase datasource
|
|
794
|
+
*
|
|
795
|
+
* @param id The id of a knowledgebase.
|
|
796
|
+
* @param datasourceId The id of the datasource to update.
|
|
797
|
+
* @param body an object with the body content
|
|
798
|
+
* @throws UpdateKnowledgebaseDatasourceHttpError
|
|
799
|
+
*/
|
|
800
|
+
updateKnowledgebaseDatasource: typeof updateKnowledgebaseDatasource;
|
|
801
|
+
/**
|
|
802
|
+
* Cancels ongoing sync for a specified datasource.
|
|
803
|
+
*
|
|
804
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
805
|
+
* @param datasourceId The id of the datasource to cancel sync for.
|
|
806
|
+
* @throws CancelKnowledgebaseDatasourceHttpError
|
|
807
|
+
*/
|
|
808
|
+
cancelKnowledgebaseDatasource: typeof cancelKnowledgebaseDatasource;
|
|
809
|
+
/**
|
|
810
|
+
* Download knowledgebase datasource reference
|
|
811
|
+
*
|
|
812
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
813
|
+
* @param datasourceId The id of the datasource to download from.
|
|
814
|
+
* @param body an object with the body content
|
|
815
|
+
* @throws DownloadKnowledgebaseDatasourceHttpError
|
|
816
|
+
*/
|
|
817
|
+
downloadKnowledgebaseDatasource: typeof downloadKnowledgebaseDatasource;
|
|
818
|
+
/**
|
|
819
|
+
* Starts syncing a specified datasource to a specified knowledgebase index.
|
|
820
|
+
*
|
|
821
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
822
|
+
* @param datasourceId The id of the datasource to sync.
|
|
823
|
+
* @param query an object with query parameters
|
|
824
|
+
* @throws SyncKnowledgebaseDatasourceHttpError
|
|
825
|
+
*/
|
|
826
|
+
syncKnowledgebaseDatasource: typeof syncKnowledgebaseDatasource;
|
|
827
|
+
/**
|
|
828
|
+
* Retrieves sync history for a specified datasource in a knowledgebase. Returns a `404` if there is no sync history, or if the calling user doesn't have access to the datasource.
|
|
829
|
+
*
|
|
830
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
831
|
+
* @param datasourceId The id of the datasource.
|
|
832
|
+
* @param query an object with query parameters
|
|
833
|
+
* @throws GetKnowledgebaseDatasourceHistoriesHttpError
|
|
834
|
+
*/
|
|
835
|
+
getKnowledgebaseDatasourceHistories: typeof getKnowledgebaseDatasourceHistories;
|
|
836
|
+
/**
|
|
837
|
+
* @deprecated
|
|
838
|
+
*
|
|
839
|
+
* Retrieves detailed sync history for a specified datasource.
|
|
840
|
+
*
|
|
841
|
+
* @param id The id of the knowledgebase the datasource belongs to.
|
|
842
|
+
* @param datasourceId The id of the datasource.
|
|
843
|
+
* @param syncId The sync identifier.
|
|
844
|
+
* @throws GetKnowledgebaseDatasourceHistoryHttpError
|
|
845
|
+
*/
|
|
846
|
+
getKnowledgebaseDatasourceHistory: typeof getKnowledgebaseDatasourceHistory;
|
|
847
|
+
/**
|
|
848
|
+
* Delete knowledgebase datasource schedule
|
|
849
|
+
*
|
|
850
|
+
* @param id The id of the knowledgebase the schedule belongs to.
|
|
851
|
+
* @param datasourceId The id of the datasource the schedule belongs to.
|
|
852
|
+
* @throws DeleteKnowledgebaseDatasourceScheduleHttpError
|
|
853
|
+
*/
|
|
854
|
+
deleteKnowledgebaseDatasourceSchedule: typeof deleteKnowledgebaseDatasourceSchedule;
|
|
855
|
+
/**
|
|
856
|
+
* Get a knowledgebase datasource schedule
|
|
857
|
+
*
|
|
858
|
+
* @param id The id of the knowledgebase the schedule belongs to.
|
|
859
|
+
* @param datasourceId The id of the datasource the schedule belongs to.
|
|
860
|
+
* @throws GetKnowledgebaseDatasourceScheduleHttpError
|
|
861
|
+
*/
|
|
862
|
+
getKnowledgebaseDatasourceSchedule: typeof getKnowledgebaseDatasourceSchedule;
|
|
863
|
+
/**
|
|
864
|
+
* Creates or updates a specified datasource schedule.
|
|
865
|
+
*
|
|
866
|
+
* @param id The id of the knowledgebase the schedule belongs to.
|
|
867
|
+
* @param datasourceId The id of the datasource the schedule belongs to.
|
|
868
|
+
* @param body an object with the body content
|
|
869
|
+
* @throws CreateKnowledgebaseDatasourceScheduleHttpError
|
|
870
|
+
*/
|
|
871
|
+
createKnowledgebaseDatasourceSchedule: typeof createKnowledgebaseDatasourceSchedule;
|
|
872
|
+
/**
|
|
873
|
+
* Retrieves sync history for the specified knowledgebase. Will return a `404` if no sync history exists, or if the calling user does not have access to synced datasources.
|
|
874
|
+
*
|
|
875
|
+
* @param id The id of the knowledgebase.
|
|
876
|
+
* @param query an object with query parameters
|
|
877
|
+
* @throws GetKnowledgebaseHistoriesHttpError
|
|
878
|
+
*/
|
|
879
|
+
getKnowledgebaseHistories: typeof getKnowledgebaseHistories;
|
|
880
|
+
/**
|
|
881
|
+
* Clears the cache for knowledgebases api requests.
|
|
882
|
+
*/
|
|
883
|
+
clearCache: typeof clearCache;
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Functions for the knowledgebases api
|
|
887
|
+
*/
|
|
888
|
+
declare const knowledgebasesExport: KnowledgebasesAPI;
|
|
889
|
+
|
|
890
|
+
export { type CancelKnowledgebaseDatasourceHttpError, type CancelKnowledgebaseDatasourceHttpResponse, type Chunking, type ContentSummary, type CreateDataSource, type CreateKnowledgeBase, type CreateKnowledgebaseDatasourceHttpError, type CreateKnowledgebaseDatasourceHttpResponse, type CreateKnowledgebaseDatasourceScheduleHttpError, type CreateKnowledgebaseDatasourceScheduleHttpResponse, type CreateKnowledgebaseHttpError, type CreateKnowledgebaseHttpResponse, type DataSource, type DataSourceCrawlConfig, type DataSourceCrawlPattern, type DataSourceCrawlScope, type DataSourceFileConfig, type DataSourceFileCrawlScope, type DataSourceSync, type DataSourceSyncStatus, type DeleteKnowledgebaseDatasourceHttpError, type DeleteKnowledgebaseDatasourceHttpResponse, type DeleteKnowledgebaseDatasourceScheduleHttpError, type DeleteKnowledgebaseDatasourceScheduleHttpResponse, type DeleteKnowledgebaseHttpError, type DeleteKnowledgebaseHttpResponse, type DocStats, type DownloadFile, type DownloadFileResponse, type DownloadKnowledgebaseDatasourceHttpError, type DownloadKnowledgebaseDatasourceHttpResponse, type Duration, type ErrorResponse, type ErrorResponseCode, type GetKnowledgebaseDatasourceHistoriesHttpError, type GetKnowledgebaseDatasourceHistoriesHttpResponse, type GetKnowledgebaseDatasourceHistoryHttpError, type GetKnowledgebaseDatasourceHistoryHttpResponse, type GetKnowledgebaseDatasourceScheduleHttpError, type GetKnowledgebaseDatasourceScheduleHttpResponse, type GetKnowledgebaseHistoriesHttpError, type GetKnowledgebaseHistoriesHttpResponse, type GetKnowledgebaseHttpError, type GetKnowledgebaseHttpResponse, type GetKnowledgebasesHttpError, type GetKnowledgebasesHttpResponse, type JSONPatch, type JSONPatchArray, type KnowledgeBase, type KnowledgeBaseLight, type KnowledgeBasesResult, type KnowledgebasesAPI, type PageLink, type PageLinks, type PatchKnowledgebaseHttpError, type PatchKnowledgebaseHttpResponse, type ResultMeta, type Schedule, type ScheduleCalendar, type ScheduleInterval, type ScheduleRange, type ScheduleWithManifest, type SyncHistory, type SyncHistoryDetails, type SyncHistoryResult, type SyncKnowledgebaseDatasourceHttpError, type SyncKnowledgebaseDatasourceHttpResponse, type UpdateKnowledgebaseDatasourceHttpError, type UpdateKnowledgebaseDatasourceHttpResponse, cancelKnowledgebaseDatasource, clearCache, createKnowledgebase, createKnowledgebaseDatasource, createKnowledgebaseDatasourceSchedule, knowledgebasesExport as default, deleteKnowledgebase, deleteKnowledgebaseDatasource, deleteKnowledgebaseDatasourceSchedule, downloadKnowledgebaseDatasource, getKnowledgebase, getKnowledgebaseDatasourceHistories, getKnowledgebaseDatasourceHistory, getKnowledgebaseDatasourceSchedule, getKnowledgebaseHistories, getKnowledgebases, patchKnowledgebase, syncKnowledgebaseDatasource, updateKnowledgebaseDatasource };
|