@kadoa/node-sdk 0.19.3 → 0.19.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/index.global.js +9 -9
- package/dist/browser/index.global.js.map +1 -1
- package/dist/index.d.mts +1703 -512
- package/dist/index.d.ts +1703 -512
- package/dist/index.js +935 -119
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +932 -116
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import globalAxios3, { isAxiosError, AxiosError } from 'axios';
|
|
2
2
|
import { URL as URL$1, URLSearchParams } from 'url';
|
|
3
3
|
import createDebug from 'debug';
|
|
4
4
|
import { upperFirst, camelCase, merge } from 'es-toolkit';
|
|
@@ -13,7 +13,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
});
|
|
14
14
|
var BASE_PATH = "https://api.kadoa.com".replace(/\/+$/, "");
|
|
15
15
|
var BaseAPI = class {
|
|
16
|
-
constructor(configuration, basePath = BASE_PATH, axios2 =
|
|
16
|
+
constructor(configuration, basePath = BASE_PATH, axios2 = globalAxios3) {
|
|
17
17
|
this.basePath = basePath;
|
|
18
18
|
this.axios = axios2;
|
|
19
19
|
if (configuration) {
|
|
@@ -79,12 +79,724 @@ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
|
79
79
|
var toPathString = function(url) {
|
|
80
80
|
return url.pathname + url.search + url.hash;
|
|
81
81
|
};
|
|
82
|
-
var createRequestFunction = function(axiosArgs,
|
|
83
|
-
return (axios2 =
|
|
82
|
+
var createRequestFunction = function(axiosArgs, globalAxios7, BASE_PATH2, configuration) {
|
|
83
|
+
return (axios2 = globalAxios7, basePath = BASE_PATH2) => {
|
|
84
84
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
85
85
|
return axios2.request(axiosRequestArgs);
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
+
var CrawlerApiAxiosParamCreator = function(configuration) {
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
* Get file content from the crawling bucket (HTML or screenshot)
|
|
92
|
+
* @summary Get bucket data
|
|
93
|
+
* @param {string} filenameb64
|
|
94
|
+
* @param {string} [contentType]
|
|
95
|
+
* @param {string} [cacheControl]
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
v4CrawlBucketDataFilenameb64Get: async (filenameb64, contentType, cacheControl, options = {}) => {
|
|
100
|
+
assertParamExists("v4CrawlBucketDataFilenameb64Get", "filenameb64", filenameb64);
|
|
101
|
+
const localVarPath = `/v4/crawl/bucket/data/{filenameb64}`.replace(`{${"filenameb64"}}`, encodeURIComponent(String(filenameb64)));
|
|
102
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
if (configuration) {
|
|
105
|
+
baseOptions = configuration.baseOptions;
|
|
106
|
+
}
|
|
107
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
108
|
+
const localVarHeaderParameter = {};
|
|
109
|
+
const localVarQueryParameter = {};
|
|
110
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
111
|
+
if (contentType != null) {
|
|
112
|
+
localVarHeaderParameter["Content-Type"] = String(contentType);
|
|
113
|
+
}
|
|
114
|
+
if (cacheControl != null) {
|
|
115
|
+
localVarHeaderParameter["Cache-Control"] = String(cacheControl);
|
|
116
|
+
}
|
|
117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
120
|
+
return {
|
|
121
|
+
url: toPathString(localVarUrlObj),
|
|
122
|
+
options: localVarRequestOptions
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* Get a crawling configuration by ID
|
|
127
|
+
* @summary Get config
|
|
128
|
+
* @param {string} configId
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
v4CrawlConfigConfigIdGet: async (configId, options = {}) => {
|
|
133
|
+
assertParamExists("v4CrawlConfigConfigIdGet", "configId", configId);
|
|
134
|
+
const localVarPath = `/v4/crawl/config/{configId}`.replace(`{${"configId"}}`, encodeURIComponent(String(configId)));
|
|
135
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
136
|
+
let baseOptions;
|
|
137
|
+
if (configuration) {
|
|
138
|
+
baseOptions = configuration.baseOptions;
|
|
139
|
+
}
|
|
140
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
141
|
+
const localVarHeaderParameter = {};
|
|
142
|
+
const localVarQueryParameter = {};
|
|
143
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
147
|
+
return {
|
|
148
|
+
url: toPathString(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
* Delete a crawling configuration
|
|
154
|
+
* @summary Delete config
|
|
155
|
+
* @param {DeleteCrawlerConfigRequest} [deleteCrawlerConfigRequest] Body
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
v4CrawlConfigDelete: async (deleteCrawlerConfigRequest, options = {}) => {
|
|
160
|
+
const localVarPath = `/v4/crawl/config`;
|
|
161
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
167
|
+
const localVarHeaderParameter = {};
|
|
168
|
+
const localVarQueryParameter = {};
|
|
169
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
170
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
171
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
174
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteCrawlerConfigRequest, localVarRequestOptions, configuration);
|
|
175
|
+
return {
|
|
176
|
+
url: toPathString(localVarUrlObj),
|
|
177
|
+
options: localVarRequestOptions
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
* Create a new crawling configuration
|
|
182
|
+
* @summary Create config
|
|
183
|
+
* @param {CreateCrawlerConfigRequest} [createCrawlerConfigRequest] Body
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
v4CrawlConfigPost: async (createCrawlerConfigRequest, options = {}) => {
|
|
188
|
+
const localVarPath = `/v4/crawl/config`;
|
|
189
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
190
|
+
let baseOptions;
|
|
191
|
+
if (configuration) {
|
|
192
|
+
baseOptions = configuration.baseOptions;
|
|
193
|
+
}
|
|
194
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
195
|
+
const localVarHeaderParameter = {};
|
|
196
|
+
const localVarQueryParameter = {};
|
|
197
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
198
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
202
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCrawlerConfigRequest, localVarRequestOptions, configuration);
|
|
203
|
+
return {
|
|
204
|
+
url: toPathString(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
/**
|
|
209
|
+
* Pause an active crawling session
|
|
210
|
+
* @summary Pause session
|
|
211
|
+
* @param {PauseCrawlerSessionRequest} [pauseCrawlerSessionRequest] Body
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
v4CrawlPausePost: async (pauseCrawlerSessionRequest, options = {}) => {
|
|
216
|
+
const localVarPath = `/v4/crawl/pause`;
|
|
217
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
218
|
+
let baseOptions;
|
|
219
|
+
if (configuration) {
|
|
220
|
+
baseOptions = configuration.baseOptions;
|
|
221
|
+
}
|
|
222
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
223
|
+
const localVarHeaderParameter = {};
|
|
224
|
+
const localVarQueryParameter = {};
|
|
225
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
226
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
230
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pauseCrawlerSessionRequest, localVarRequestOptions, configuration);
|
|
231
|
+
return {
|
|
232
|
+
url: toPathString(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions
|
|
234
|
+
};
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* Create a crawling configuration and start a session in one operation (equivalent to v4/crawl)
|
|
238
|
+
* @summary Start crawl
|
|
239
|
+
* @param {StartCrawlerSessionRequest} [startCrawlerSessionRequest] Body
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
v4CrawlPost: async (startCrawlerSessionRequest, options = {}) => {
|
|
244
|
+
const localVarPath = `/v4/crawl/`;
|
|
245
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
246
|
+
let baseOptions;
|
|
247
|
+
if (configuration) {
|
|
248
|
+
baseOptions = configuration.baseOptions;
|
|
249
|
+
}
|
|
250
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
251
|
+
const localVarHeaderParameter = {};
|
|
252
|
+
const localVarQueryParameter = {};
|
|
253
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
254
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
255
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
256
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
257
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
258
|
+
localVarRequestOptions.data = serializeDataIfNeeded(startCrawlerSessionRequest, localVarRequestOptions, configuration);
|
|
259
|
+
return {
|
|
260
|
+
url: toPathString(localVarUrlObj),
|
|
261
|
+
options: localVarRequestOptions
|
|
262
|
+
};
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
* Resume a paused crawling session
|
|
266
|
+
* @summary Resume session
|
|
267
|
+
* @param {ResumeCrawlerSessionRequest} [resumeCrawlerSessionRequest] Body
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
v4CrawlResumePost: async (resumeCrawlerSessionRequest, options = {}) => {
|
|
272
|
+
const localVarPath = `/v4/crawl/resume`;
|
|
273
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
274
|
+
let baseOptions;
|
|
275
|
+
if (configuration) {
|
|
276
|
+
baseOptions = configuration.baseOptions;
|
|
277
|
+
}
|
|
278
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
279
|
+
const localVarHeaderParameter = {};
|
|
280
|
+
const localVarQueryParameter = {};
|
|
281
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
282
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
283
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
284
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
285
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
286
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resumeCrawlerSessionRequest, localVarRequestOptions, configuration);
|
|
287
|
+
return {
|
|
288
|
+
url: toPathString(localVarUrlObj),
|
|
289
|
+
options: localVarRequestOptions
|
|
290
|
+
};
|
|
291
|
+
},
|
|
292
|
+
/**
|
|
293
|
+
* Get a complete list of all pages crawled in a session
|
|
294
|
+
* @summary Get session data list
|
|
295
|
+
* @param {string} sessionId
|
|
296
|
+
* @param {boolean | null} [includeAll]
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
v4CrawlSessionIdListGet: async (sessionId, includeAll, options = {}) => {
|
|
301
|
+
assertParamExists("v4CrawlSessionIdListGet", "sessionId", sessionId);
|
|
302
|
+
const localVarPath = `/v4/crawl/{sessionId}/list`.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
303
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
304
|
+
let baseOptions;
|
|
305
|
+
if (configuration) {
|
|
306
|
+
baseOptions = configuration.baseOptions;
|
|
307
|
+
}
|
|
308
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
309
|
+
const localVarHeaderParameter = {};
|
|
310
|
+
const localVarQueryParameter = {};
|
|
311
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
312
|
+
if (includeAll !== void 0) {
|
|
313
|
+
localVarQueryParameter["includeAll"] = includeAll;
|
|
314
|
+
}
|
|
315
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
316
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
317
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
318
|
+
return {
|
|
319
|
+
url: toPathString(localVarUrlObj),
|
|
320
|
+
options: localVarRequestOptions
|
|
321
|
+
};
|
|
322
|
+
},
|
|
323
|
+
/**
|
|
324
|
+
* Get a paginated list of pages for a crawling session
|
|
325
|
+
* @summary Get paginated session pages
|
|
326
|
+
* @param {string} sessionId
|
|
327
|
+
* @param {number} [currentPage] Current page number for pagination
|
|
328
|
+
* @param {number} [pageSize] Number of items per page for pagination
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
v4CrawlSessionIdPagesGet: async (sessionId, currentPage, pageSize, options = {}) => {
|
|
333
|
+
assertParamExists("v4CrawlSessionIdPagesGet", "sessionId", sessionId);
|
|
334
|
+
const localVarPath = `/v4/crawl/{sessionId}/pages`.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
335
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
336
|
+
let baseOptions;
|
|
337
|
+
if (configuration) {
|
|
338
|
+
baseOptions = configuration.baseOptions;
|
|
339
|
+
}
|
|
340
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
341
|
+
const localVarHeaderParameter = {};
|
|
342
|
+
const localVarQueryParameter = {};
|
|
343
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
344
|
+
if (currentPage !== void 0) {
|
|
345
|
+
localVarQueryParameter["currentPage"] = currentPage;
|
|
346
|
+
}
|
|
347
|
+
if (pageSize !== void 0) {
|
|
348
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
349
|
+
}
|
|
350
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
351
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
352
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
353
|
+
return {
|
|
354
|
+
url: toPathString(localVarUrlObj),
|
|
355
|
+
options: localVarRequestOptions
|
|
356
|
+
};
|
|
357
|
+
},
|
|
358
|
+
/**
|
|
359
|
+
* Get the content of a specific page from a crawling session in HTML or Markdown format
|
|
360
|
+
* @summary Get session page content
|
|
361
|
+
* @param {string} sessionId
|
|
362
|
+
* @param {string} pageId
|
|
363
|
+
* @param {string} [format] Desired format for the page data
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
v4CrawlSessionIdPagesPageIdGet: async (sessionId, pageId, format, options = {}) => {
|
|
368
|
+
assertParamExists("v4CrawlSessionIdPagesPageIdGet", "sessionId", sessionId);
|
|
369
|
+
assertParamExists("v4CrawlSessionIdPagesPageIdGet", "pageId", pageId);
|
|
370
|
+
const localVarPath = `/v4/crawl/{sessionId}/pages/{pageId}`.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))).replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
|
|
371
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
372
|
+
let baseOptions;
|
|
373
|
+
if (configuration) {
|
|
374
|
+
baseOptions = configuration.baseOptions;
|
|
375
|
+
}
|
|
376
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
377
|
+
const localVarHeaderParameter = {};
|
|
378
|
+
const localVarQueryParameter = {};
|
|
379
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
380
|
+
if (format !== void 0) {
|
|
381
|
+
localVarQueryParameter["format"] = format;
|
|
382
|
+
}
|
|
383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
386
|
+
return {
|
|
387
|
+
url: toPathString(localVarUrlObj),
|
|
388
|
+
options: localVarRequestOptions
|
|
389
|
+
};
|
|
390
|
+
},
|
|
391
|
+
/**
|
|
392
|
+
* Get the current status of a crawling session
|
|
393
|
+
* @summary Get session status
|
|
394
|
+
* @param {string} sessionId
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
v4CrawlSessionIdStatusGet: async (sessionId, options = {}) => {
|
|
399
|
+
assertParamExists("v4CrawlSessionIdStatusGet", "sessionId", sessionId);
|
|
400
|
+
const localVarPath = `/v4/crawl/{sessionId}/status`.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
401
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
402
|
+
let baseOptions;
|
|
403
|
+
if (configuration) {
|
|
404
|
+
baseOptions = configuration.baseOptions;
|
|
405
|
+
}
|
|
406
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
407
|
+
const localVarHeaderParameter = {};
|
|
408
|
+
const localVarQueryParameter = {};
|
|
409
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
410
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
411
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
412
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
413
|
+
return {
|
|
414
|
+
url: toPathString(localVarUrlObj),
|
|
415
|
+
options: localVarRequestOptions
|
|
416
|
+
};
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* Get paginated list of crawling sessions with optional filtering
|
|
420
|
+
* @summary List crawling sessions
|
|
421
|
+
* @param {number} [page] Page number
|
|
422
|
+
* @param {number} [pageSize] Items per page
|
|
423
|
+
* @param {string} [userId] Filter by user ID
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
v4CrawlSessionsGet: async (page, pageSize, userId, options = {}) => {
|
|
428
|
+
const localVarPath = `/v4/crawl/sessions`;
|
|
429
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
430
|
+
let baseOptions;
|
|
431
|
+
if (configuration) {
|
|
432
|
+
baseOptions = configuration.baseOptions;
|
|
433
|
+
}
|
|
434
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
435
|
+
const localVarHeaderParameter = {};
|
|
436
|
+
const localVarQueryParameter = {};
|
|
437
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
438
|
+
if (page !== void 0) {
|
|
439
|
+
localVarQueryParameter["page"] = page;
|
|
440
|
+
}
|
|
441
|
+
if (pageSize !== void 0) {
|
|
442
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
443
|
+
}
|
|
444
|
+
if (userId !== void 0) {
|
|
445
|
+
localVarQueryParameter["userId"] = userId;
|
|
446
|
+
}
|
|
447
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
448
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
449
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
450
|
+
return {
|
|
451
|
+
url: toPathString(localVarUrlObj),
|
|
452
|
+
options: localVarRequestOptions
|
|
453
|
+
};
|
|
454
|
+
},
|
|
455
|
+
/**
|
|
456
|
+
* Start a new crawling session with an existing configuration
|
|
457
|
+
* @summary Start session
|
|
458
|
+
* @param {StartSessionWithConfigRequest} [startSessionWithConfigRequest] Body
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
v4CrawlStartPost: async (startSessionWithConfigRequest, options = {}) => {
|
|
463
|
+
const localVarPath = `/v4/crawl/start`;
|
|
464
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
465
|
+
let baseOptions;
|
|
466
|
+
if (configuration) {
|
|
467
|
+
baseOptions = configuration.baseOptions;
|
|
468
|
+
}
|
|
469
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
470
|
+
const localVarHeaderParameter = {};
|
|
471
|
+
const localVarQueryParameter = {};
|
|
472
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
473
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
474
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
475
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
477
|
+
localVarRequestOptions.data = serializeDataIfNeeded(startSessionWithConfigRequest, localVarRequestOptions, configuration);
|
|
478
|
+
return {
|
|
479
|
+
url: toPathString(localVarUrlObj),
|
|
480
|
+
options: localVarRequestOptions
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
var CrawlerApiFp = function(configuration) {
|
|
486
|
+
const localVarAxiosParamCreator = CrawlerApiAxiosParamCreator(configuration);
|
|
487
|
+
return {
|
|
488
|
+
/**
|
|
489
|
+
* Get file content from the crawling bucket (HTML or screenshot)
|
|
490
|
+
* @summary Get bucket data
|
|
491
|
+
* @param {string} filenameb64
|
|
492
|
+
* @param {string} [contentType]
|
|
493
|
+
* @param {string} [cacheControl]
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
async v4CrawlBucketDataFilenameb64Get(filenameb64, contentType, cacheControl, options) {
|
|
498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlBucketDataFilenameb64Get(filenameb64, contentType, cacheControl, options);
|
|
499
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
500
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlBucketDataFilenameb64Get"]?.[localVarOperationServerIndex]?.url;
|
|
501
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
502
|
+
},
|
|
503
|
+
/**
|
|
504
|
+
* Get a crawling configuration by ID
|
|
505
|
+
* @summary Get config
|
|
506
|
+
* @param {string} configId
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
async v4CrawlConfigConfigIdGet(configId, options) {
|
|
511
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigConfigIdGet(configId, options);
|
|
512
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
513
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigConfigIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
514
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
* Delete a crawling configuration
|
|
518
|
+
* @summary Delete config
|
|
519
|
+
* @param {DeleteCrawlerConfigRequest} [deleteCrawlerConfigRequest] Body
|
|
520
|
+
* @param {*} [options] Override http request option.
|
|
521
|
+
* @throws {RequiredError}
|
|
522
|
+
*/
|
|
523
|
+
async v4CrawlConfigDelete(deleteCrawlerConfigRequest, options) {
|
|
524
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigDelete(deleteCrawlerConfigRequest, options);
|
|
525
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
526
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigDelete"]?.[localVarOperationServerIndex]?.url;
|
|
527
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
528
|
+
},
|
|
529
|
+
/**
|
|
530
|
+
* Create a new crawling configuration
|
|
531
|
+
* @summary Create config
|
|
532
|
+
* @param {CreateCrawlerConfigRequest} [createCrawlerConfigRequest] Body
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
async v4CrawlConfigPost(createCrawlerConfigRequest, options) {
|
|
537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigPost(createCrawlerConfigRequest, options);
|
|
538
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
539
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigPost"]?.[localVarOperationServerIndex]?.url;
|
|
540
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
541
|
+
},
|
|
542
|
+
/**
|
|
543
|
+
* Pause an active crawling session
|
|
544
|
+
* @summary Pause session
|
|
545
|
+
* @param {PauseCrawlerSessionRequest} [pauseCrawlerSessionRequest] Body
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
async v4CrawlPausePost(pauseCrawlerSessionRequest, options) {
|
|
550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlPausePost(pauseCrawlerSessionRequest, options);
|
|
551
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
552
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlPausePost"]?.[localVarOperationServerIndex]?.url;
|
|
553
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
554
|
+
},
|
|
555
|
+
/**
|
|
556
|
+
* Create a crawling configuration and start a session in one operation (equivalent to v4/crawl)
|
|
557
|
+
* @summary Start crawl
|
|
558
|
+
* @param {StartCrawlerSessionRequest} [startCrawlerSessionRequest] Body
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
async v4CrawlPost(startCrawlerSessionRequest, options) {
|
|
563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlPost(startCrawlerSessionRequest, options);
|
|
564
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
565
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlPost"]?.[localVarOperationServerIndex]?.url;
|
|
566
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
567
|
+
},
|
|
568
|
+
/**
|
|
569
|
+
* Resume a paused crawling session
|
|
570
|
+
* @summary Resume session
|
|
571
|
+
* @param {ResumeCrawlerSessionRequest} [resumeCrawlerSessionRequest] Body
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
*/
|
|
575
|
+
async v4CrawlResumePost(resumeCrawlerSessionRequest, options) {
|
|
576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlResumePost(resumeCrawlerSessionRequest, options);
|
|
577
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
578
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlResumePost"]?.[localVarOperationServerIndex]?.url;
|
|
579
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
580
|
+
},
|
|
581
|
+
/**
|
|
582
|
+
* Get a complete list of all pages crawled in a session
|
|
583
|
+
* @summary Get session data list
|
|
584
|
+
* @param {string} sessionId
|
|
585
|
+
* @param {boolean | null} [includeAll]
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
async v4CrawlSessionIdListGet(sessionId, includeAll, options) {
|
|
590
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdListGet(sessionId, includeAll, options);
|
|
591
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
592
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdListGet"]?.[localVarOperationServerIndex]?.url;
|
|
593
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
594
|
+
},
|
|
595
|
+
/**
|
|
596
|
+
* Get a paginated list of pages for a crawling session
|
|
597
|
+
* @summary Get paginated session pages
|
|
598
|
+
* @param {string} sessionId
|
|
599
|
+
* @param {number} [currentPage] Current page number for pagination
|
|
600
|
+
* @param {number} [pageSize] Number of items per page for pagination
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
*/
|
|
604
|
+
async v4CrawlSessionIdPagesGet(sessionId, currentPage, pageSize, options) {
|
|
605
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdPagesGet(sessionId, currentPage, pageSize, options);
|
|
606
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
607
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdPagesGet"]?.[localVarOperationServerIndex]?.url;
|
|
608
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
* Get the content of a specific page from a crawling session in HTML or Markdown format
|
|
612
|
+
* @summary Get session page content
|
|
613
|
+
* @param {string} sessionId
|
|
614
|
+
* @param {string} pageId
|
|
615
|
+
* @param {string} [format] Desired format for the page data
|
|
616
|
+
* @param {*} [options] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
async v4CrawlSessionIdPagesPageIdGet(sessionId, pageId, format, options) {
|
|
620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdPagesPageIdGet(sessionId, pageId, format, options);
|
|
621
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
622
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdPagesPageIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
623
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
* Get the current status of a crawling session
|
|
627
|
+
* @summary Get session status
|
|
628
|
+
* @param {string} sessionId
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
async v4CrawlSessionIdStatusGet(sessionId, options) {
|
|
633
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdStatusGet(sessionId, options);
|
|
634
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
635
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdStatusGet"]?.[localVarOperationServerIndex]?.url;
|
|
636
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
* Get paginated list of crawling sessions with optional filtering
|
|
640
|
+
* @summary List crawling sessions
|
|
641
|
+
* @param {number} [page] Page number
|
|
642
|
+
* @param {number} [pageSize] Items per page
|
|
643
|
+
* @param {string} [userId] Filter by user ID
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
async v4CrawlSessionsGet(page, pageSize, userId, options) {
|
|
648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionsGet(page, pageSize, userId, options);
|
|
649
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
650
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionsGet"]?.[localVarOperationServerIndex]?.url;
|
|
651
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
652
|
+
},
|
|
653
|
+
/**
|
|
654
|
+
* Start a new crawling session with an existing configuration
|
|
655
|
+
* @summary Start session
|
|
656
|
+
* @param {StartSessionWithConfigRequest} [startSessionWithConfigRequest] Body
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
async v4CrawlStartPost(startSessionWithConfigRequest, options) {
|
|
661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlStartPost(startSessionWithConfigRequest, options);
|
|
662
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
663
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlStartPost"]?.[localVarOperationServerIndex]?.url;
|
|
664
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
var CrawlerApi = class extends BaseAPI {
|
|
669
|
+
/**
|
|
670
|
+
* Get file content from the crawling bucket (HTML or screenshot)
|
|
671
|
+
* @summary Get bucket data
|
|
672
|
+
* @param {CrawlerApiV4CrawlBucketDataFilenameb64GetRequest} requestParameters Request parameters.
|
|
673
|
+
* @param {*} [options] Override http request option.
|
|
674
|
+
* @throws {RequiredError}
|
|
675
|
+
*/
|
|
676
|
+
v4CrawlBucketDataFilenameb64Get(requestParameters, options) {
|
|
677
|
+
return CrawlerApiFp(this.configuration).v4CrawlBucketDataFilenameb64Get(requestParameters.filenameb64, requestParameters.contentType, requestParameters.cacheControl, options).then((request) => request(this.axios, this.basePath));
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Get a crawling configuration by ID
|
|
681
|
+
* @summary Get config
|
|
682
|
+
* @param {CrawlerApiV4CrawlConfigConfigIdGetRequest} requestParameters Request parameters.
|
|
683
|
+
* @param {*} [options] Override http request option.
|
|
684
|
+
* @throws {RequiredError}
|
|
685
|
+
*/
|
|
686
|
+
v4CrawlConfigConfigIdGet(requestParameters, options) {
|
|
687
|
+
return CrawlerApiFp(this.configuration).v4CrawlConfigConfigIdGet(requestParameters.configId, options).then((request) => request(this.axios, this.basePath));
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Delete a crawling configuration
|
|
691
|
+
* @summary Delete config
|
|
692
|
+
* @param {CrawlerApiV4CrawlConfigDeleteRequest} requestParameters Request parameters.
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
*/
|
|
696
|
+
v4CrawlConfigDelete(requestParameters = {}, options) {
|
|
697
|
+
return CrawlerApiFp(this.configuration).v4CrawlConfigDelete(requestParameters.deleteCrawlerConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* Create a new crawling configuration
|
|
701
|
+
* @summary Create config
|
|
702
|
+
* @param {CrawlerApiV4CrawlConfigPostRequest} requestParameters Request parameters.
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
*/
|
|
706
|
+
v4CrawlConfigPost(requestParameters = {}, options) {
|
|
707
|
+
return CrawlerApiFp(this.configuration).v4CrawlConfigPost(requestParameters.createCrawlerConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* Pause an active crawling session
|
|
711
|
+
* @summary Pause session
|
|
712
|
+
* @param {CrawlerApiV4CrawlPausePostRequest} requestParameters Request parameters.
|
|
713
|
+
* @param {*} [options] Override http request option.
|
|
714
|
+
* @throws {RequiredError}
|
|
715
|
+
*/
|
|
716
|
+
v4CrawlPausePost(requestParameters = {}, options) {
|
|
717
|
+
return CrawlerApiFp(this.configuration).v4CrawlPausePost(requestParameters.pauseCrawlerSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Create a crawling configuration and start a session in one operation (equivalent to v4/crawl)
|
|
721
|
+
* @summary Start crawl
|
|
722
|
+
* @param {CrawlerApiV4CrawlPostRequest} requestParameters Request parameters.
|
|
723
|
+
* @param {*} [options] Override http request option.
|
|
724
|
+
* @throws {RequiredError}
|
|
725
|
+
*/
|
|
726
|
+
v4CrawlPost(requestParameters = {}, options) {
|
|
727
|
+
return CrawlerApiFp(this.configuration).v4CrawlPost(requestParameters.startCrawlerSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Resume a paused crawling session
|
|
731
|
+
* @summary Resume session
|
|
732
|
+
* @param {CrawlerApiV4CrawlResumePostRequest} requestParameters Request parameters.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
v4CrawlResumePost(requestParameters = {}, options) {
|
|
737
|
+
return CrawlerApiFp(this.configuration).v4CrawlResumePost(requestParameters.resumeCrawlerSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Get a complete list of all pages crawled in a session
|
|
741
|
+
* @summary Get session data list
|
|
742
|
+
* @param {CrawlerApiV4CrawlSessionIdListGetRequest} requestParameters Request parameters.
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
v4CrawlSessionIdListGet(requestParameters, options) {
|
|
747
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionIdListGet(requestParameters.sessionId, requestParameters.includeAll, options).then((request) => request(this.axios, this.basePath));
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Get a paginated list of pages for a crawling session
|
|
751
|
+
* @summary Get paginated session pages
|
|
752
|
+
* @param {CrawlerApiV4CrawlSessionIdPagesGetRequest} requestParameters Request parameters.
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
*/
|
|
756
|
+
v4CrawlSessionIdPagesGet(requestParameters, options) {
|
|
757
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionIdPagesGet(requestParameters.sessionId, requestParameters.currentPage, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Get the content of a specific page from a crawling session in HTML or Markdown format
|
|
761
|
+
* @summary Get session page content
|
|
762
|
+
* @param {CrawlerApiV4CrawlSessionIdPagesPageIdGetRequest} requestParameters Request parameters.
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
*/
|
|
766
|
+
v4CrawlSessionIdPagesPageIdGet(requestParameters, options) {
|
|
767
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionIdPagesPageIdGet(requestParameters.sessionId, requestParameters.pageId, requestParameters.format, options).then((request) => request(this.axios, this.basePath));
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Get the current status of a crawling session
|
|
771
|
+
* @summary Get session status
|
|
772
|
+
* @param {CrawlerApiV4CrawlSessionIdStatusGetRequest} requestParameters Request parameters.
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
v4CrawlSessionIdStatusGet(requestParameters, options) {
|
|
777
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionIdStatusGet(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Get paginated list of crawling sessions with optional filtering
|
|
781
|
+
* @summary List crawling sessions
|
|
782
|
+
* @param {CrawlerApiV4CrawlSessionsGetRequest} requestParameters Request parameters.
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
*/
|
|
786
|
+
v4CrawlSessionsGet(requestParameters = {}, options) {
|
|
787
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionsGet(requestParameters.page, requestParameters.pageSize, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Start a new crawling session with an existing configuration
|
|
791
|
+
* @summary Start session
|
|
792
|
+
* @param {CrawlerApiV4CrawlStartPostRequest} requestParameters Request parameters.
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
v4CrawlStartPost(requestParameters = {}, options) {
|
|
797
|
+
return CrawlerApiFp(this.configuration).v4CrawlStartPost(requestParameters.startSessionWithConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
798
|
+
}
|
|
799
|
+
};
|
|
88
800
|
var DataValidationApiAxiosParamCreator = function(configuration) {
|
|
89
801
|
return {
|
|
90
802
|
/**
|
|
@@ -790,7 +1502,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
790
1502
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkApprovePost(bulkApproveRules, options);
|
|
791
1503
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
792
1504
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkApprovePost"]?.[localVarOperationServerIndex]?.url;
|
|
793
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1505
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
794
1506
|
},
|
|
795
1507
|
/**
|
|
796
1508
|
* Bulk delete rules for a workflow
|
|
@@ -802,7 +1514,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
802
1514
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkDeletePost(bulkDeleteRules, options);
|
|
803
1515
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
804
1516
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkDeletePost"]?.[localVarOperationServerIndex]?.url;
|
|
805
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1517
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
806
1518
|
},
|
|
807
1519
|
/**
|
|
808
1520
|
* Delete all validation rules with optional filtering
|
|
@@ -814,7 +1526,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
814
1526
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsDeleteAllDelete(deleteRuleWithReason, options);
|
|
815
1527
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
816
1528
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsDeleteAllDelete"]?.[localVarOperationServerIndex]?.url;
|
|
817
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1529
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
818
1530
|
},
|
|
819
1531
|
/**
|
|
820
1532
|
* Generate a validation rule
|
|
@@ -826,7 +1538,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
826
1538
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGeneratePost(generateRule, options);
|
|
827
1539
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
828
1540
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGeneratePost"]?.[localVarOperationServerIndex]?.url;
|
|
829
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1541
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
830
1542
|
},
|
|
831
1543
|
/**
|
|
832
1544
|
* Generate multiple validation rules
|
|
@@ -838,7 +1550,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
838
1550
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGenerateRulesPost(generateRules, options);
|
|
839
1551
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
840
1552
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGenerateRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
841
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1553
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
842
1554
|
},
|
|
843
1555
|
/**
|
|
844
1556
|
* List validation rules with optional filtering
|
|
@@ -855,7 +1567,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
855
1567
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesGet(groupId, workflowId, status, page, pageSize, includeDeleted, options);
|
|
856
1568
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
857
1569
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesGet"]?.[localVarOperationServerIndex]?.url;
|
|
858
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1570
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
859
1571
|
},
|
|
860
1572
|
/**
|
|
861
1573
|
* Create a new validation rule
|
|
@@ -867,7 +1579,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
867
1579
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesPost(createRule, options);
|
|
868
1580
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
869
1581
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
870
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1582
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
871
1583
|
},
|
|
872
1584
|
/**
|
|
873
1585
|
* Delete a validation rule with reason
|
|
@@ -880,7 +1592,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
880
1592
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDelete(ruleId, deleteRuleWithReason, options);
|
|
881
1593
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
882
1594
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
883
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1595
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
884
1596
|
},
|
|
885
1597
|
/**
|
|
886
1598
|
* Disable a validation rule with reason
|
|
@@ -893,7 +1605,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
893
1605
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDisablePost(ruleId, disableRule, options);
|
|
894
1606
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
895
1607
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDisablePost"]?.[localVarOperationServerIndex]?.url;
|
|
896
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1608
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
897
1609
|
},
|
|
898
1610
|
/**
|
|
899
1611
|
* Get a validation rule by ID
|
|
@@ -906,7 +1618,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
906
1618
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdGet(ruleId, includeDeleted, options);
|
|
907
1619
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
908
1620
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
909
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1621
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
910
1622
|
},
|
|
911
1623
|
/**
|
|
912
1624
|
* Update a validation rule
|
|
@@ -919,7 +1631,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
919
1631
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdPut(ruleId, updateRule, options);
|
|
920
1632
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
921
1633
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
922
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1634
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
923
1635
|
},
|
|
924
1636
|
/**
|
|
925
1637
|
* Get all anomalies for a validation
|
|
@@ -934,7 +1646,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
934
1646
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesGet(validationId, page, pageSize, options);
|
|
935
1647
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
936
1648
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesGet"]?.[localVarOperationServerIndex]?.url;
|
|
937
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1649
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
938
1650
|
},
|
|
939
1651
|
/**
|
|
940
1652
|
* Get anomalies for a specific rule
|
|
@@ -950,7 +1662,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
950
1662
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(validationId, ruleName, page, pageSize, options);
|
|
951
1663
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
952
1664
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet"]?.[localVarOperationServerIndex]?.url;
|
|
953
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1665
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
954
1666
|
},
|
|
955
1667
|
/**
|
|
956
1668
|
* Get validation details
|
|
@@ -964,7 +1676,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
964
1676
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdGet(validationId, includeDryRun, options);
|
|
965
1677
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
966
1678
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
967
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1679
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
968
1680
|
},
|
|
969
1681
|
/**
|
|
970
1682
|
* Schedule a data validation job (alternative path)
|
|
@@ -979,7 +1691,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
979
1691
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
980
1692
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
981
1693
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
982
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1694
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
983
1695
|
},
|
|
984
1696
|
/**
|
|
985
1697
|
* Schedule a data validation job
|
|
@@ -994,7 +1706,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
994
1706
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
995
1707
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
996
1708
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
997
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1709
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
998
1710
|
},
|
|
999
1711
|
/**
|
|
1000
1712
|
* List all validations for a job
|
|
@@ -1011,7 +1723,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1011
1723
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(workflowId, jobId, page, pageSize, includeDryRun, options);
|
|
1012
1724
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1013
1725
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1014
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1726
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1015
1727
|
},
|
|
1016
1728
|
/**
|
|
1017
1729
|
* Get latest validation for a job
|
|
@@ -1026,7 +1738,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1026
1738
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(workflowId, jobId, includeDryRun, options);
|
|
1027
1739
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1028
1740
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1029
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1741
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1030
1742
|
},
|
|
1031
1743
|
/**
|
|
1032
1744
|
* Retrieves the current data validation configuration for a specific workflow
|
|
@@ -1039,7 +1751,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1039
1751
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigGet(workflowId, options);
|
|
1040
1752
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1041
1753
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigGet"]?.[localVarOperationServerIndex]?.url;
|
|
1042
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1754
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1043
1755
|
},
|
|
1044
1756
|
/**
|
|
1045
1757
|
* Updates the complete data validation configuration including alerting settings
|
|
@@ -1053,7 +1765,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1053
1765
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigPut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options);
|
|
1054
1766
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1055
1767
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigPut"]?.[localVarOperationServerIndex]?.url;
|
|
1056
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1768
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1057
1769
|
},
|
|
1058
1770
|
/**
|
|
1059
1771
|
* Enables or disables data validation for a specific workflow
|
|
@@ -1067,7 +1779,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1067
1779
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationTogglePut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options);
|
|
1068
1780
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1069
1781
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationTogglePut"]?.[localVarOperationServerIndex]?.url;
|
|
1070
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1782
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1071
1783
|
},
|
|
1072
1784
|
/**
|
|
1073
1785
|
* Get latest validation for the most recent job of a workflow
|
|
@@ -1081,7 +1793,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1081
1793
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(workflowId, includeDryRun, options);
|
|
1082
1794
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1083
1795
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1084
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1796
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1085
1797
|
}
|
|
1086
1798
|
};
|
|
1087
1799
|
};
|
|
@@ -1742,7 +2454,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1742
2454
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdDelete(channelId, options);
|
|
1743
2455
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1744
2456
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1745
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2457
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1746
2458
|
},
|
|
1747
2459
|
/**
|
|
1748
2460
|
*
|
|
@@ -1756,7 +2468,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1756
2468
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdGet(channelId, includeConfigurations, options);
|
|
1757
2469
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1758
2470
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1759
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2471
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1760
2472
|
},
|
|
1761
2473
|
/**
|
|
1762
2474
|
*
|
|
@@ -1770,7 +2482,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1770
2482
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdPut(channelId, v5NotificationsChannelsPostRequest, options);
|
|
1771
2483
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1772
2484
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1773
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2485
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1774
2486
|
},
|
|
1775
2487
|
/**
|
|
1776
2488
|
*
|
|
@@ -1784,7 +2496,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1784
2496
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsGet(workflowId, includeConfigurations, options);
|
|
1785
2497
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1786
2498
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1787
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2499
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1788
2500
|
},
|
|
1789
2501
|
/**
|
|
1790
2502
|
*
|
|
@@ -1797,7 +2509,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1797
2509
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsPost(v5NotificationsChannelsPostRequest, options);
|
|
1798
2510
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1799
2511
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1800
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2512
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1801
2513
|
},
|
|
1802
2514
|
/**
|
|
1803
2515
|
*
|
|
@@ -1810,7 +2522,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1810
2522
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesEventTypeGet(eventType, options);
|
|
1811
2523
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1812
2524
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesEventTypeGet"]?.[localVarOperationServerIndex]?.url;
|
|
1813
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2525
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1814
2526
|
},
|
|
1815
2527
|
/**
|
|
1816
2528
|
*
|
|
@@ -1822,7 +2534,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1822
2534
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesGet(options);
|
|
1823
2535
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1824
2536
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1825
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2537
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1826
2538
|
},
|
|
1827
2539
|
/**
|
|
1828
2540
|
*
|
|
@@ -1840,7 +2552,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1840
2552
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsLogsGet(workflowId, eventType, startDate, endDate, limit, offset, options);
|
|
1841
2553
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1842
2554
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsLogsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1843
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2555
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1844
2556
|
},
|
|
1845
2557
|
/**
|
|
1846
2558
|
*
|
|
@@ -1854,7 +2566,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1854
2566
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsGet(workflowId, eventType, options);
|
|
1855
2567
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1856
2568
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1857
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2569
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1858
2570
|
},
|
|
1859
2571
|
/**
|
|
1860
2572
|
*
|
|
@@ -1867,7 +2579,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1867
2579
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsPost(v5NotificationsSettingsPostRequest, options);
|
|
1868
2580
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1869
2581
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1870
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2582
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1871
2583
|
},
|
|
1872
2584
|
/**
|
|
1873
2585
|
*
|
|
@@ -1880,7 +2592,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1880
2592
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdDelete(settingsId, options);
|
|
1881
2593
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1882
2594
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1883
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2595
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1884
2596
|
},
|
|
1885
2597
|
/**
|
|
1886
2598
|
*
|
|
@@ -1893,7 +2605,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1893
2605
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdGet(settingsId, options);
|
|
1894
2606
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1895
2607
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1896
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2608
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1897
2609
|
},
|
|
1898
2610
|
/**
|
|
1899
2611
|
*
|
|
@@ -1907,7 +2619,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1907
2619
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdPut(settingsId, v5NotificationsSettingsSettingsIdPutRequest, options);
|
|
1908
2620
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1909
2621
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1910
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2622
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1911
2623
|
},
|
|
1912
2624
|
/**
|
|
1913
2625
|
*
|
|
@@ -1920,7 +2632,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1920
2632
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsTestPost(v5NotificationsTestPostRequest, options);
|
|
1921
2633
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1922
2634
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsTestPost"]?.[localVarOperationServerIndex]?.url;
|
|
1923
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2635
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1924
2636
|
}
|
|
1925
2637
|
};
|
|
1926
2638
|
};
|
|
@@ -2230,7 +2942,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2230
2942
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasGet(options);
|
|
2231
2943
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2232
2944
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasGet"]?.[localVarOperationServerIndex]?.url;
|
|
2233
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2945
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2234
2946
|
},
|
|
2235
2947
|
/**
|
|
2236
2948
|
* Create a new data schema with specified fields and entity type
|
|
@@ -2243,7 +2955,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2243
2955
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasPost(createSchemaBody, options);
|
|
2244
2956
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2245
2957
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasPost"]?.[localVarOperationServerIndex]?.url;
|
|
2246
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2958
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2247
2959
|
},
|
|
2248
2960
|
/**
|
|
2249
2961
|
* Delete a schema and all its revisions
|
|
@@ -2256,7 +2968,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2256
2968
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdDelete(schemaId, options);
|
|
2257
2969
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2258
2970
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
2259
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2971
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2260
2972
|
},
|
|
2261
2973
|
/**
|
|
2262
2974
|
* Retrieve a specific schema by its unique identifier
|
|
@@ -2269,7 +2981,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2269
2981
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdGet(schemaId, options);
|
|
2270
2982
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2271
2983
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
2272
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2984
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2273
2985
|
},
|
|
2274
2986
|
/**
|
|
2275
2987
|
* Update schema metadata or create a new revision with updated fields
|
|
@@ -2283,7 +2995,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2283
2995
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdPut(schemaId, updateSchemaBody, options);
|
|
2284
2996
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2285
2997
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
2286
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2998
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2287
2999
|
}
|
|
2288
3000
|
};
|
|
2289
3001
|
};
|
|
@@ -2386,10 +3098,11 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2386
3098
|
* @param {string} [endDate] End date to filter changes (ISO format)
|
|
2387
3099
|
* @param {number} [skip] Number of records to skip for pagination
|
|
2388
3100
|
* @param {number} [limit] Number of records to return for pagination
|
|
3101
|
+
* @param {string} [exclude] Comma-separated list of fields to exclude from each change object (e.g., \"data,differences\")
|
|
2389
3102
|
* @param {*} [options] Override http request option.
|
|
2390
3103
|
* @throws {RequiredError}
|
|
2391
3104
|
*/
|
|
2392
|
-
v4ChangesGet: async (xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options = {}) => {
|
|
3105
|
+
v4ChangesGet: async (xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, exclude, options = {}) => {
|
|
2393
3106
|
const localVarPath = `/v4/changes`;
|
|
2394
3107
|
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
2395
3108
|
let baseOptions;
|
|
@@ -2416,6 +3129,9 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2416
3129
|
if (limit !== void 0) {
|
|
2417
3130
|
localVarQueryParameter["limit"] = limit;
|
|
2418
3131
|
}
|
|
3132
|
+
if (exclude !== void 0) {
|
|
3133
|
+
localVarQueryParameter["exclude"] = exclude;
|
|
3134
|
+
}
|
|
2419
3135
|
if (xApiKey != null) {
|
|
2420
3136
|
localVarHeaderParameter["x-api-key"] = String(xApiKey);
|
|
2421
3137
|
}
|
|
@@ -2438,16 +3154,16 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2438
3154
|
* @param {number} [limit] Maximum number of items to return
|
|
2439
3155
|
* @param {V4WorkflowsGetStateEnum} [state] Filter workflows by state
|
|
2440
3156
|
* @param {Array<string>} [tags] Filter workflows by tags
|
|
3157
|
+
* @param {string} [userId] Filter workflows by user ID (team members only)
|
|
2441
3158
|
* @param {V4WorkflowsGetMonitoringEnum} [monitoring] Filter workflows by monitoring status
|
|
2442
3159
|
* @param {V4WorkflowsGetUpdateIntervalEnum} [updateInterval] Filter workflows by update interval
|
|
2443
3160
|
* @param {string} [templateId] Filter workflows by template ID (DEPRECATED - templates replaced by schemas)
|
|
2444
|
-
* @param {string} [userId] Filter workflows by user ID (only works in team context)
|
|
2445
3161
|
* @param {V4WorkflowsGetIncludeDeletedEnum} [includeDeleted] Include deleted workflows (for compliance officers)
|
|
2446
3162
|
* @param {V4WorkflowsGetFormatEnum} [format] Response format (json or csv for export)
|
|
2447
3163
|
* @param {*} [options] Override http request option.
|
|
2448
3164
|
* @throws {RequiredError}
|
|
2449
3165
|
*/
|
|
2450
|
-
v4WorkflowsGet: async (search, skip, limit, state, tags, monitoring, updateInterval, templateId,
|
|
3166
|
+
v4WorkflowsGet: async (search, skip, limit, state, tags, userId, monitoring, updateInterval, templateId, includeDeleted, format, options = {}) => {
|
|
2451
3167
|
const localVarPath = `/v4/workflows`;
|
|
2452
3168
|
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
2453
3169
|
let baseOptions;
|
|
@@ -2473,6 +3189,9 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2473
3189
|
if (tags) {
|
|
2474
3190
|
localVarQueryParameter["tags"] = tags;
|
|
2475
3191
|
}
|
|
3192
|
+
if (userId !== void 0) {
|
|
3193
|
+
localVarQueryParameter["userId"] = userId;
|
|
3194
|
+
}
|
|
2476
3195
|
if (monitoring !== void 0) {
|
|
2477
3196
|
localVarQueryParameter["monitoring"] = monitoring;
|
|
2478
3197
|
}
|
|
@@ -2482,9 +3201,6 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2482
3201
|
if (templateId !== void 0) {
|
|
2483
3202
|
localVarQueryParameter["templateId"] = templateId;
|
|
2484
3203
|
}
|
|
2485
|
-
if (userId !== void 0) {
|
|
2486
|
-
localVarQueryParameter["userId"] = userId;
|
|
2487
|
-
}
|
|
2488
3204
|
if (includeDeleted !== void 0) {
|
|
2489
3205
|
localVarQueryParameter["includeDeleted"] = includeDeleted;
|
|
2490
3206
|
}
|
|
@@ -2803,7 +3519,7 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2803
3519
|
};
|
|
2804
3520
|
},
|
|
2805
3521
|
/**
|
|
2806
|
-
*
|
|
3522
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
2807
3523
|
* @summary Get job status and telemetry
|
|
2808
3524
|
* @param {string} workflowId The ID of the workflow
|
|
2809
3525
|
* @param {string} jobId The ID of the job
|
|
@@ -3129,7 +3845,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3129
3845
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3130
3846
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3131
3847
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3132
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3848
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3133
3849
|
},
|
|
3134
3850
|
/**
|
|
3135
3851
|
*
|
|
@@ -3141,14 +3857,15 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3141
3857
|
* @param {string} [endDate] End date to filter changes (ISO format)
|
|
3142
3858
|
* @param {number} [skip] Number of records to skip for pagination
|
|
3143
3859
|
* @param {number} [limit] Number of records to return for pagination
|
|
3860
|
+
* @param {string} [exclude] Comma-separated list of fields to exclude from each change object (e.g., \"data,differences\")
|
|
3144
3861
|
* @param {*} [options] Override http request option.
|
|
3145
3862
|
* @throws {RequiredError}
|
|
3146
3863
|
*/
|
|
3147
|
-
async v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options) {
|
|
3148
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
3864
|
+
async v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, exclude, options) {
|
|
3865
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, exclude, options);
|
|
3149
3866
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3150
3867
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3151
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3868
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3152
3869
|
},
|
|
3153
3870
|
/**
|
|
3154
3871
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3158,20 +3875,20 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3158
3875
|
* @param {number} [limit] Maximum number of items to return
|
|
3159
3876
|
* @param {V4WorkflowsGetStateEnum} [state] Filter workflows by state
|
|
3160
3877
|
* @param {Array<string>} [tags] Filter workflows by tags
|
|
3878
|
+
* @param {string} [userId] Filter workflows by user ID (team members only)
|
|
3161
3879
|
* @param {V4WorkflowsGetMonitoringEnum} [monitoring] Filter workflows by monitoring status
|
|
3162
3880
|
* @param {V4WorkflowsGetUpdateIntervalEnum} [updateInterval] Filter workflows by update interval
|
|
3163
3881
|
* @param {string} [templateId] Filter workflows by template ID (DEPRECATED - templates replaced by schemas)
|
|
3164
|
-
* @param {string} [userId] Filter workflows by user ID (only works in team context)
|
|
3165
3882
|
* @param {V4WorkflowsGetIncludeDeletedEnum} [includeDeleted] Include deleted workflows (for compliance officers)
|
|
3166
3883
|
* @param {V4WorkflowsGetFormatEnum} [format] Response format (json or csv for export)
|
|
3167
3884
|
* @param {*} [options] Override http request option.
|
|
3168
3885
|
* @throws {RequiredError}
|
|
3169
3886
|
*/
|
|
3170
|
-
async v4WorkflowsGet(search, skip, limit, state, tags, monitoring, updateInterval, templateId,
|
|
3171
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, tags, monitoring, updateInterval, templateId,
|
|
3887
|
+
async v4WorkflowsGet(search, skip, limit, state, tags, userId, monitoring, updateInterval, templateId, includeDeleted, format, options) {
|
|
3888
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, tags, userId, monitoring, updateInterval, templateId, includeDeleted, format, options);
|
|
3172
3889
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3173
3890
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3174
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3891
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3175
3892
|
},
|
|
3176
3893
|
/**
|
|
3177
3894
|
* Create a new workflow with schema, custom fields, or agentic navigation mode
|
|
@@ -3184,7 +3901,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3184
3901
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsPost(createWorkflowBody, options);
|
|
3185
3902
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3186
3903
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsPost"]?.[localVarOperationServerIndex]?.url;
|
|
3187
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3904
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3188
3905
|
},
|
|
3189
3906
|
/**
|
|
3190
3907
|
*
|
|
@@ -3201,7 +3918,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3201
3918
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3202
3919
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3203
3920
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3204
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3921
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3205
3922
|
},
|
|
3206
3923
|
/**
|
|
3207
3924
|
*
|
|
@@ -3216,7 +3933,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3216
3933
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceApprovePut(workflowId, xApiKey, authorization, options);
|
|
3217
3934
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3218
3935
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceApprovePut"]?.[localVarOperationServerIndex]?.url;
|
|
3219
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3936
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3220
3937
|
},
|
|
3221
3938
|
/**
|
|
3222
3939
|
*
|
|
@@ -3232,7 +3949,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3232
3949
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceRejectPut(workflowId, v4WorkflowsWorkflowIdComplianceRejectPutRequest, xApiKey, authorization, options);
|
|
3233
3950
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3234
3951
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceRejectPut"]?.[localVarOperationServerIndex]?.url;
|
|
3235
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3952
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3236
3953
|
},
|
|
3237
3954
|
/**
|
|
3238
3955
|
*
|
|
@@ -3257,7 +3974,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3257
3974
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDataGet(workflowId, xApiKey, authorization, runId, format, sortBy, order, filters, page, limit, gzip, rowIds, includeAnomalies, options);
|
|
3258
3975
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3259
3976
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDataGet"]?.[localVarOperationServerIndex]?.url;
|
|
3260
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3977
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3261
3978
|
},
|
|
3262
3979
|
/**
|
|
3263
3980
|
*
|
|
@@ -3270,7 +3987,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3270
3987
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDelete(workflowId, options);
|
|
3271
3988
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3272
3989
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3273
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3990
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3274
3991
|
},
|
|
3275
3992
|
/**
|
|
3276
3993
|
* Retrieves detailed information about a specific workflow. This endpoint requires authentication and proper team access permissions.
|
|
@@ -3283,7 +4000,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3283
4000
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdGet(workflowId, options);
|
|
3284
4001
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3285
4002
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3286
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4003
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3287
4004
|
},
|
|
3288
4005
|
/**
|
|
3289
4006
|
*
|
|
@@ -3296,10 +4013,10 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3296
4013
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdHistoryGet(workflowId, options);
|
|
3297
4014
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3298
4015
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdHistoryGet"]?.[localVarOperationServerIndex]?.url;
|
|
3299
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4016
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3300
4017
|
},
|
|
3301
4018
|
/**
|
|
3302
|
-
*
|
|
4019
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
3303
4020
|
* @summary Get job status and telemetry
|
|
3304
4021
|
* @param {string} workflowId The ID of the workflow
|
|
3305
4022
|
* @param {string} jobId The ID of the job
|
|
@@ -3310,7 +4027,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3310
4027
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdJobsJobIdGet(workflowId, jobId, options);
|
|
3311
4028
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3312
4029
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdJobsJobIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3313
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4030
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3314
4031
|
},
|
|
3315
4032
|
/**
|
|
3316
4033
|
*
|
|
@@ -3324,7 +4041,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3324
4041
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdMetadataPut(workflowId, v4WorkflowsWorkflowIdMetadataPutRequest, options);
|
|
3325
4042
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3326
4043
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdMetadataPut"]?.[localVarOperationServerIndex]?.url;
|
|
3327
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4044
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3328
4045
|
},
|
|
3329
4046
|
/**
|
|
3330
4047
|
*
|
|
@@ -3337,7 +4054,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3337
4054
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdPausePut(workflowId, options);
|
|
3338
4055
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3339
4056
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdPausePut"]?.[localVarOperationServerIndex]?.url;
|
|
3340
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4057
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3341
4058
|
},
|
|
3342
4059
|
/**
|
|
3343
4060
|
* Resumes a paused, preview, or error workflow. If the user\'s team/organization or any of the user\'s organizations has the COMPLIANCE_REVIEW rule enabled, the workflow will be sent for compliance review instead of being directly activated.
|
|
@@ -3350,7 +4067,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3350
4067
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdResumePut(workflowId, options);
|
|
3351
4068
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3352
4069
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdResumePut"]?.[localVarOperationServerIndex]?.url;
|
|
3353
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4070
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3354
4071
|
},
|
|
3355
4072
|
/**
|
|
3356
4073
|
*
|
|
@@ -3364,7 +4081,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3364
4081
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdRunPut(workflowId, v4WorkflowsWorkflowIdRunPutRequest, options);
|
|
3365
4082
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3366
4083
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdRunPut"]?.[localVarOperationServerIndex]?.url;
|
|
3367
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4084
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3368
4085
|
},
|
|
3369
4086
|
/**
|
|
3370
4087
|
*
|
|
@@ -3378,7 +4095,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3378
4095
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdSchedulePut(workflowId, v4WorkflowsWorkflowIdSchedulePutRequest, options);
|
|
3379
4096
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3380
4097
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdSchedulePut"]?.[localVarOperationServerIndex]?.url;
|
|
3381
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4098
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3382
4099
|
},
|
|
3383
4100
|
/**
|
|
3384
4101
|
*
|
|
@@ -3393,7 +4110,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3393
4110
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3394
4111
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3395
4112
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3396
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4113
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3397
4114
|
},
|
|
3398
4115
|
/**
|
|
3399
4116
|
*
|
|
@@ -3412,7 +4129,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3412
4129
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
3413
4130
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3414
4131
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3415
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4132
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3416
4133
|
},
|
|
3417
4134
|
/**
|
|
3418
4135
|
*
|
|
@@ -3429,7 +4146,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3429
4146
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3430
4147
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3431
4148
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3432
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4149
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3433
4150
|
}
|
|
3434
4151
|
};
|
|
3435
4152
|
};
|
|
@@ -3452,7 +4169,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3452
4169
|
* @throws {RequiredError}
|
|
3453
4170
|
*/
|
|
3454
4171
|
v4ChangesGet(requestParameters = {}, options) {
|
|
3455
|
-
return WorkflowsApiFp(this.configuration).v4ChangesGet(requestParameters.xApiKey, requestParameters.authorization, requestParameters.workflowIds, requestParameters.startDate, requestParameters.endDate, requestParameters.skip, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
4172
|
+
return WorkflowsApiFp(this.configuration).v4ChangesGet(requestParameters.xApiKey, requestParameters.authorization, requestParameters.workflowIds, requestParameters.startDate, requestParameters.endDate, requestParameters.skip, requestParameters.limit, requestParameters.exclude, options).then((request) => request(this.axios, this.basePath));
|
|
3456
4173
|
}
|
|
3457
4174
|
/**
|
|
3458
4175
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3462,7 +4179,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3462
4179
|
* @throws {RequiredError}
|
|
3463
4180
|
*/
|
|
3464
4181
|
v4WorkflowsGet(requestParameters = {}, options) {
|
|
3465
|
-
return WorkflowsApiFp(this.configuration).v4WorkflowsGet(requestParameters.search, requestParameters.skip, requestParameters.limit, requestParameters.state, requestParameters.tags, requestParameters.
|
|
4182
|
+
return WorkflowsApiFp(this.configuration).v4WorkflowsGet(requestParameters.search, requestParameters.skip, requestParameters.limit, requestParameters.state, requestParameters.tags, requestParameters.userId, requestParameters.monitoring, requestParameters.updateInterval, requestParameters.templateId, requestParameters.includeDeleted, requestParameters.format, options).then((request) => request(this.axios, this.basePath));
|
|
3466
4183
|
}
|
|
3467
4184
|
/**
|
|
3468
4185
|
* Create a new workflow with schema, custom fields, or agentic navigation mode
|
|
@@ -3545,7 +4262,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3545
4262
|
return WorkflowsApiFp(this.configuration).v4WorkflowsWorkflowIdHistoryGet(requestParameters.workflowId, options).then((request) => request(this.axios, this.basePath));
|
|
3546
4263
|
}
|
|
3547
4264
|
/**
|
|
3548
|
-
*
|
|
4265
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
3549
4266
|
* @summary Get job status and telemetry
|
|
3550
4267
|
* @param {WorkflowsApiV4WorkflowsWorkflowIdJobsJobIdGetRequest} requestParameters Request parameters.
|
|
3551
4268
|
* @param {*} [options] Override http request option.
|
|
@@ -4008,13 +4725,6 @@ var _SchemaBuilder = class _SchemaBuilder {
|
|
|
4008
4725
|
this.entityName = entityName;
|
|
4009
4726
|
return this;
|
|
4010
4727
|
}
|
|
4011
|
-
/**
|
|
4012
|
-
* Add a structured field to the schema
|
|
4013
|
-
* @param name - Field name (alphanumeric only)
|
|
4014
|
-
* @param description - Field description
|
|
4015
|
-
* @param dataType - Data type (STRING, NUMBER, BOOLEAN, etc.)
|
|
4016
|
-
* @param options - Optional field configuration
|
|
4017
|
-
*/
|
|
4018
4728
|
field(name, description, dataType, options) {
|
|
4019
4729
|
this.validateFieldName(name);
|
|
4020
4730
|
const requiresExample = _SchemaBuilder.TYPES_REQUIRING_EXAMPLE.includes(dataType);
|
|
@@ -5257,6 +5967,7 @@ var Realtime = class {
|
|
|
5257
5967
|
this.heartbeatInterval = config.heartbeatInterval || 1e4;
|
|
5258
5968
|
this.reconnectDelay = config.reconnectDelay || 5e3;
|
|
5259
5969
|
this.missedHeartbeatsLimit = config.missedHeartbeatsLimit || 3e4;
|
|
5970
|
+
this.source = config.source;
|
|
5260
5971
|
}
|
|
5261
5972
|
async connect() {
|
|
5262
5973
|
if (this.isConnecting) return;
|
|
@@ -5281,7 +5992,8 @@ var Realtime = class {
|
|
|
5281
5992
|
this.socket.send(
|
|
5282
5993
|
JSON.stringify({
|
|
5283
5994
|
action: "subscribe",
|
|
5284
|
-
channel: team_id
|
|
5995
|
+
channel: team_id,
|
|
5996
|
+
...this.source && { source: this.source }
|
|
5285
5997
|
})
|
|
5286
5998
|
);
|
|
5287
5999
|
debug5("Connected to WebSocket");
|
|
@@ -5449,7 +6161,7 @@ var UserService = class {
|
|
|
5449
6161
|
|
|
5450
6162
|
// src/runtime/utils/polling.ts
|
|
5451
6163
|
var DEFAULT_POLLING_OPTIONS = {
|
|
5452
|
-
pollIntervalMs:
|
|
6164
|
+
pollIntervalMs: 1e4,
|
|
5453
6165
|
timeoutMs: 5 * 60 * 1e3
|
|
5454
6166
|
};
|
|
5455
6167
|
var POLLING_ERROR_CODES = {
|
|
@@ -5461,7 +6173,7 @@ async function pollUntil(pollFn, isComplete, options = {}) {
|
|
|
5461
6173
|
...DEFAULT_POLLING_OPTIONS,
|
|
5462
6174
|
...options
|
|
5463
6175
|
};
|
|
5464
|
-
const pollInterval = Math.max(
|
|
6176
|
+
const pollInterval = Math.max(1e4, internalOptions.pollIntervalMs);
|
|
5465
6177
|
const timeoutMs = internalOptions.timeoutMs;
|
|
5466
6178
|
const start = Date.now();
|
|
5467
6179
|
let attempts = 0;
|
|
@@ -5931,15 +6643,6 @@ var WorkflowsCoreService = class {
|
|
|
5931
6643
|
});
|
|
5932
6644
|
return response.data?.workflows?.[0];
|
|
5933
6645
|
}
|
|
5934
|
-
/**
|
|
5935
|
-
* @deprecated Use delete(id) instead.
|
|
5936
|
-
*/
|
|
5937
|
-
async cancel(id) {
|
|
5938
|
-
console.warn(
|
|
5939
|
-
"[Kadoa SDK] workflow.cancel(id) will be deprecated. Use workflow.delete(id)."
|
|
5940
|
-
);
|
|
5941
|
-
await this.delete(id);
|
|
5942
|
-
}
|
|
5943
6646
|
async delete(id) {
|
|
5944
6647
|
await this.workflowsApi.v4WorkflowsWorkflowIdDelete({
|
|
5945
6648
|
workflowId: id
|
|
@@ -5962,19 +6665,10 @@ var WorkflowsCoreService = class {
|
|
|
5962
6665
|
* Wait for a workflow to reach the target state or a terminal state if no target state is provided
|
|
5963
6666
|
*/
|
|
5964
6667
|
async wait(id, options) {
|
|
5965
|
-
let last;
|
|
5966
6668
|
const result = await pollUntil(
|
|
5967
6669
|
async () => {
|
|
5968
6670
|
const current = await this.get(id);
|
|
5969
|
-
|
|
5970
|
-
debug6(
|
|
5971
|
-
"workflow %s state: [workflowState: %s, jobState: %s]",
|
|
5972
|
-
id,
|
|
5973
|
-
current.state,
|
|
5974
|
-
current.runState
|
|
5975
|
-
);
|
|
5976
|
-
}
|
|
5977
|
-
last = current;
|
|
6671
|
+
debug6("workflow %s state: %s", id, current.runState);
|
|
5978
6672
|
return current;
|
|
5979
6673
|
},
|
|
5980
6674
|
(current) => {
|
|
@@ -6030,14 +6724,10 @@ var WorkflowsCoreService = class {
|
|
|
6030
6724
|
* Wait for a job to reach the target state or a terminal state
|
|
6031
6725
|
*/
|
|
6032
6726
|
async waitForJobCompletion(workflowId, jobId, options) {
|
|
6033
|
-
let last;
|
|
6034
6727
|
const result = await pollUntil(
|
|
6035
6728
|
async () => {
|
|
6036
6729
|
const current = await this.getJobStatus(workflowId, jobId);
|
|
6037
|
-
|
|
6038
|
-
debug6("job %s state: %s", jobId, current.state);
|
|
6039
|
-
}
|
|
6040
|
-
last = current;
|
|
6730
|
+
debug6("workflow run %s state: %s", jobId, current.state);
|
|
6041
6731
|
return current;
|
|
6042
6732
|
},
|
|
6043
6733
|
(current) => {
|
|
@@ -6055,6 +6745,131 @@ var WorkflowsCoreService = class {
|
|
|
6055
6745
|
}
|
|
6056
6746
|
};
|
|
6057
6747
|
|
|
6748
|
+
// src/domains/crawler/crawler-config.service.ts
|
|
6749
|
+
var CrawlerConfigService = class {
|
|
6750
|
+
constructor(client) {
|
|
6751
|
+
this.client = client;
|
|
6752
|
+
this._api = null;
|
|
6753
|
+
}
|
|
6754
|
+
get api() {
|
|
6755
|
+
if (!this._api) {
|
|
6756
|
+
this._api = new CrawlerApi(
|
|
6757
|
+
this.client.configuration,
|
|
6758
|
+
this.client.baseUrl,
|
|
6759
|
+
this.client.axiosInstance
|
|
6760
|
+
);
|
|
6761
|
+
}
|
|
6762
|
+
return this._api;
|
|
6763
|
+
}
|
|
6764
|
+
async createConfig(body) {
|
|
6765
|
+
const response = await this.api.v4CrawlConfigPost({
|
|
6766
|
+
createCrawlerConfigRequest: body
|
|
6767
|
+
});
|
|
6768
|
+
return response.data;
|
|
6769
|
+
}
|
|
6770
|
+
async getConfig(configId) {
|
|
6771
|
+
const response = await this.api.v4CrawlConfigConfigIdGet({ configId });
|
|
6772
|
+
return response.data;
|
|
6773
|
+
}
|
|
6774
|
+
async deleteConfig(configId) {
|
|
6775
|
+
const response = await this.api.v4CrawlConfigDelete({
|
|
6776
|
+
deleteCrawlerConfigRequest: { configId }
|
|
6777
|
+
});
|
|
6778
|
+
return response.data;
|
|
6779
|
+
}
|
|
6780
|
+
};
|
|
6781
|
+
|
|
6782
|
+
// src/domains/crawler/crawler-session.service.ts
|
|
6783
|
+
var CrawlerSessionService = class {
|
|
6784
|
+
constructor(client) {
|
|
6785
|
+
this.client = client;
|
|
6786
|
+
this._api = null;
|
|
6787
|
+
}
|
|
6788
|
+
get api() {
|
|
6789
|
+
if (!this._api) {
|
|
6790
|
+
this._api = new CrawlerApi(
|
|
6791
|
+
this.client.configuration,
|
|
6792
|
+
this.client.baseUrl,
|
|
6793
|
+
this.client.axiosInstance
|
|
6794
|
+
);
|
|
6795
|
+
}
|
|
6796
|
+
return this._api;
|
|
6797
|
+
}
|
|
6798
|
+
async start(body) {
|
|
6799
|
+
const response = await this.api.v4CrawlPost({
|
|
6800
|
+
startCrawlerSessionRequest: body
|
|
6801
|
+
});
|
|
6802
|
+
return response.data;
|
|
6803
|
+
}
|
|
6804
|
+
async startWithConfig(body) {
|
|
6805
|
+
const response = await this.api.v4CrawlStartPost({
|
|
6806
|
+
startSessionWithConfigRequest: body
|
|
6807
|
+
});
|
|
6808
|
+
return response.data;
|
|
6809
|
+
}
|
|
6810
|
+
async pause(sessionId) {
|
|
6811
|
+
const response = await this.api.v4CrawlPausePost({
|
|
6812
|
+
pauseCrawlerSessionRequest: { sessionId }
|
|
6813
|
+
});
|
|
6814
|
+
return response.data;
|
|
6815
|
+
}
|
|
6816
|
+
async resume(sessionId) {
|
|
6817
|
+
const response = await this.api.v4CrawlResumePost({
|
|
6818
|
+
resumeCrawlerSessionRequest: { sessionId }
|
|
6819
|
+
});
|
|
6820
|
+
return response.data;
|
|
6821
|
+
}
|
|
6822
|
+
async listSessions(options) {
|
|
6823
|
+
const response = await this.api.v4CrawlSessionsGet({
|
|
6824
|
+
page: options?.page,
|
|
6825
|
+
pageSize: options?.pageSize,
|
|
6826
|
+
userId: options?.userId
|
|
6827
|
+
});
|
|
6828
|
+
return response.data.data ?? [];
|
|
6829
|
+
}
|
|
6830
|
+
async getSessionStatus(sessionId) {
|
|
6831
|
+
const response = await this.api.v4CrawlSessionIdStatusGet({ sessionId });
|
|
6832
|
+
return response.data;
|
|
6833
|
+
}
|
|
6834
|
+
async getPages(sessionId, options) {
|
|
6835
|
+
const response = await this.api.v4CrawlSessionIdPagesGet({
|
|
6836
|
+
sessionId,
|
|
6837
|
+
currentPage: options?.currentPage,
|
|
6838
|
+
pageSize: options?.pageSize
|
|
6839
|
+
});
|
|
6840
|
+
return response.data;
|
|
6841
|
+
}
|
|
6842
|
+
async getPage(sessionId, pageId, options) {
|
|
6843
|
+
const response = await this.api.v4CrawlSessionIdPagesPageIdGet({
|
|
6844
|
+
sessionId,
|
|
6845
|
+
pageId,
|
|
6846
|
+
format: options?.format
|
|
6847
|
+
});
|
|
6848
|
+
return response.data;
|
|
6849
|
+
}
|
|
6850
|
+
async getAllSessionData(sessionId, options) {
|
|
6851
|
+
const response = await this.api.v4CrawlSessionIdListGet({
|
|
6852
|
+
sessionId,
|
|
6853
|
+
includeAll: options?.includeAll
|
|
6854
|
+
});
|
|
6855
|
+
return response.data;
|
|
6856
|
+
}
|
|
6857
|
+
async getBucketFile(filenameb64) {
|
|
6858
|
+
const response = await this.api.v4CrawlBucketDataFilenameb64Get({
|
|
6859
|
+
filenameb64
|
|
6860
|
+
});
|
|
6861
|
+
return response.data;
|
|
6862
|
+
}
|
|
6863
|
+
};
|
|
6864
|
+
|
|
6865
|
+
// src/domains/crawler/crawler.facade.ts
|
|
6866
|
+
function createCrawlerDomain(client) {
|
|
6867
|
+
return {
|
|
6868
|
+
config: new CrawlerConfigService(client),
|
|
6869
|
+
session: new CrawlerSessionService(client)
|
|
6870
|
+
};
|
|
6871
|
+
}
|
|
6872
|
+
|
|
6058
6873
|
// src/domains/validation/validation.facade.ts
|
|
6059
6874
|
function createValidationDomain(core, rules) {
|
|
6060
6875
|
return {
|
|
@@ -6088,7 +6903,7 @@ var KadoaClient = class {
|
|
|
6088
6903
|
headers
|
|
6089
6904
|
}
|
|
6090
6905
|
});
|
|
6091
|
-
this._axiosInstance =
|
|
6906
|
+
this._axiosInstance = globalAxios3.create({
|
|
6092
6907
|
timeout: this._timeout,
|
|
6093
6908
|
headers
|
|
6094
6909
|
});
|
|
@@ -6169,6 +6984,7 @@ var KadoaClient = class {
|
|
|
6169
6984
|
setupForWorkspace: (request) => channelSetupService.setupForWorkspace(request)
|
|
6170
6985
|
};
|
|
6171
6986
|
this.validation = createValidationDomain(coreService, rulesService);
|
|
6987
|
+
this.crawler = createCrawlerDomain(this);
|
|
6172
6988
|
if (config.enableRealtime && config.realtimeConfig?.autoConnect !== false) {
|
|
6173
6989
|
this.connectRealtime();
|
|
6174
6990
|
}
|