@kadoa/node-sdk 0.19.2 → 0.19.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/index.global.js +9 -31
- package/dist/browser/index.global.js.map +1 -1
- package/dist/index.d.mts +1701 -512
- package/dist/index.d.ts +1701 -512
- package/dist/index.js +962 -138
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +959 -135
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
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';
|
|
5
5
|
import assert from 'assert';
|
|
6
|
-
import { z } from 'zod';
|
|
7
6
|
import { v4 } from 'uuid';
|
|
8
7
|
|
|
9
8
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
@@ -14,7 +13,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
14
13
|
});
|
|
15
14
|
var BASE_PATH = "https://api.kadoa.com".replace(/\/+$/, "");
|
|
16
15
|
var BaseAPI = class {
|
|
17
|
-
constructor(configuration, basePath = BASE_PATH, axios2 =
|
|
16
|
+
constructor(configuration, basePath = BASE_PATH, axios2 = globalAxios3) {
|
|
18
17
|
this.basePath = basePath;
|
|
19
18
|
this.axios = axios2;
|
|
20
19
|
if (configuration) {
|
|
@@ -80,12 +79,724 @@ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
|
80
79
|
var toPathString = function(url) {
|
|
81
80
|
return url.pathname + url.search + url.hash;
|
|
82
81
|
};
|
|
83
|
-
var createRequestFunction = function(axiosArgs,
|
|
84
|
-
return (axios2 =
|
|
82
|
+
var createRequestFunction = function(axiosArgs, globalAxios7, BASE_PATH2, configuration) {
|
|
83
|
+
return (axios2 = globalAxios7, basePath = BASE_PATH2) => {
|
|
85
84
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
86
85
|
return axios2.request(axiosRequestArgs);
|
|
87
86
|
};
|
|
88
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
|
+
};
|
|
89
800
|
var DataValidationApiAxiosParamCreator = function(configuration) {
|
|
90
801
|
return {
|
|
91
802
|
/**
|
|
@@ -791,7 +1502,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
791
1502
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkApprovePost(bulkApproveRules, options);
|
|
792
1503
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
793
1504
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkApprovePost"]?.[localVarOperationServerIndex]?.url;
|
|
794
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1505
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
795
1506
|
},
|
|
796
1507
|
/**
|
|
797
1508
|
* Bulk delete rules for a workflow
|
|
@@ -803,7 +1514,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
803
1514
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkDeletePost(bulkDeleteRules, options);
|
|
804
1515
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
805
1516
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkDeletePost"]?.[localVarOperationServerIndex]?.url;
|
|
806
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1517
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
807
1518
|
},
|
|
808
1519
|
/**
|
|
809
1520
|
* Delete all validation rules with optional filtering
|
|
@@ -815,7 +1526,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
815
1526
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsDeleteAllDelete(deleteRuleWithReason, options);
|
|
816
1527
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
817
1528
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsDeleteAllDelete"]?.[localVarOperationServerIndex]?.url;
|
|
818
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1529
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
819
1530
|
},
|
|
820
1531
|
/**
|
|
821
1532
|
* Generate a validation rule
|
|
@@ -827,7 +1538,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
827
1538
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGeneratePost(generateRule, options);
|
|
828
1539
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
829
1540
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGeneratePost"]?.[localVarOperationServerIndex]?.url;
|
|
830
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1541
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
831
1542
|
},
|
|
832
1543
|
/**
|
|
833
1544
|
* Generate multiple validation rules
|
|
@@ -839,7 +1550,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
839
1550
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGenerateRulesPost(generateRules, options);
|
|
840
1551
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
841
1552
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGenerateRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
842
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1553
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
843
1554
|
},
|
|
844
1555
|
/**
|
|
845
1556
|
* List validation rules with optional filtering
|
|
@@ -856,7 +1567,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
856
1567
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesGet(groupId, workflowId, status, page, pageSize, includeDeleted, options);
|
|
857
1568
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
858
1569
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesGet"]?.[localVarOperationServerIndex]?.url;
|
|
859
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1570
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
860
1571
|
},
|
|
861
1572
|
/**
|
|
862
1573
|
* Create a new validation rule
|
|
@@ -868,7 +1579,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
868
1579
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesPost(createRule, options);
|
|
869
1580
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
870
1581
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
871
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1582
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
872
1583
|
},
|
|
873
1584
|
/**
|
|
874
1585
|
* Delete a validation rule with reason
|
|
@@ -881,7 +1592,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
881
1592
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDelete(ruleId, deleteRuleWithReason, options);
|
|
882
1593
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
883
1594
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
884
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1595
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
885
1596
|
},
|
|
886
1597
|
/**
|
|
887
1598
|
* Disable a validation rule with reason
|
|
@@ -894,7 +1605,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
894
1605
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDisablePost(ruleId, disableRule, options);
|
|
895
1606
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
896
1607
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDisablePost"]?.[localVarOperationServerIndex]?.url;
|
|
897
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1608
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
898
1609
|
},
|
|
899
1610
|
/**
|
|
900
1611
|
* Get a validation rule by ID
|
|
@@ -907,7 +1618,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
907
1618
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdGet(ruleId, includeDeleted, options);
|
|
908
1619
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
909
1620
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
910
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1621
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
911
1622
|
},
|
|
912
1623
|
/**
|
|
913
1624
|
* Update a validation rule
|
|
@@ -920,7 +1631,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
920
1631
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdPut(ruleId, updateRule, options);
|
|
921
1632
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
922
1633
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
923
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1634
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
924
1635
|
},
|
|
925
1636
|
/**
|
|
926
1637
|
* Get all anomalies for a validation
|
|
@@ -935,7 +1646,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
935
1646
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesGet(validationId, page, pageSize, options);
|
|
936
1647
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
937
1648
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesGet"]?.[localVarOperationServerIndex]?.url;
|
|
938
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1649
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
939
1650
|
},
|
|
940
1651
|
/**
|
|
941
1652
|
* Get anomalies for a specific rule
|
|
@@ -951,7 +1662,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
951
1662
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(validationId, ruleName, page, pageSize, options);
|
|
952
1663
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
953
1664
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet"]?.[localVarOperationServerIndex]?.url;
|
|
954
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1665
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
955
1666
|
},
|
|
956
1667
|
/**
|
|
957
1668
|
* Get validation details
|
|
@@ -965,7 +1676,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
965
1676
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdGet(validationId, includeDryRun, options);
|
|
966
1677
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
967
1678
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
968
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1679
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
969
1680
|
},
|
|
970
1681
|
/**
|
|
971
1682
|
* Schedule a data validation job (alternative path)
|
|
@@ -980,7 +1691,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
980
1691
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
981
1692
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
982
1693
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
983
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1694
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
984
1695
|
},
|
|
985
1696
|
/**
|
|
986
1697
|
* Schedule a data validation job
|
|
@@ -995,7 +1706,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
995
1706
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
996
1707
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
997
1708
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
998
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1709
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
999
1710
|
},
|
|
1000
1711
|
/**
|
|
1001
1712
|
* List all validations for a job
|
|
@@ -1012,7 +1723,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1012
1723
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(workflowId, jobId, page, pageSize, includeDryRun, options);
|
|
1013
1724
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1014
1725
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1015
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1726
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1016
1727
|
},
|
|
1017
1728
|
/**
|
|
1018
1729
|
* Get latest validation for a job
|
|
@@ -1027,7 +1738,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1027
1738
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(workflowId, jobId, includeDryRun, options);
|
|
1028
1739
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1029
1740
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1030
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1741
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1031
1742
|
},
|
|
1032
1743
|
/**
|
|
1033
1744
|
* Retrieves the current data validation configuration for a specific workflow
|
|
@@ -1040,7 +1751,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1040
1751
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigGet(workflowId, options);
|
|
1041
1752
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1042
1753
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigGet"]?.[localVarOperationServerIndex]?.url;
|
|
1043
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1754
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1044
1755
|
},
|
|
1045
1756
|
/**
|
|
1046
1757
|
* Updates the complete data validation configuration including alerting settings
|
|
@@ -1054,7 +1765,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1054
1765
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigPut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options);
|
|
1055
1766
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1056
1767
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigPut"]?.[localVarOperationServerIndex]?.url;
|
|
1057
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1768
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1058
1769
|
},
|
|
1059
1770
|
/**
|
|
1060
1771
|
* Enables or disables data validation for a specific workflow
|
|
@@ -1068,7 +1779,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1068
1779
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationTogglePut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options);
|
|
1069
1780
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1070
1781
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationTogglePut"]?.[localVarOperationServerIndex]?.url;
|
|
1071
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1782
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1072
1783
|
},
|
|
1073
1784
|
/**
|
|
1074
1785
|
* Get latest validation for the most recent job of a workflow
|
|
@@ -1082,7 +1793,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1082
1793
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(workflowId, includeDryRun, options);
|
|
1083
1794
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1084
1795
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1085
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1796
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1086
1797
|
}
|
|
1087
1798
|
};
|
|
1088
1799
|
};
|
|
@@ -1743,7 +2454,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1743
2454
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdDelete(channelId, options);
|
|
1744
2455
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1745
2456
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1746
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2457
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1747
2458
|
},
|
|
1748
2459
|
/**
|
|
1749
2460
|
*
|
|
@@ -1757,7 +2468,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1757
2468
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdGet(channelId, includeConfigurations, options);
|
|
1758
2469
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1759
2470
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1760
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2471
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1761
2472
|
},
|
|
1762
2473
|
/**
|
|
1763
2474
|
*
|
|
@@ -1771,7 +2482,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1771
2482
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdPut(channelId, v5NotificationsChannelsPostRequest, options);
|
|
1772
2483
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1773
2484
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1774
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2485
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1775
2486
|
},
|
|
1776
2487
|
/**
|
|
1777
2488
|
*
|
|
@@ -1785,7 +2496,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1785
2496
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsGet(workflowId, includeConfigurations, options);
|
|
1786
2497
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1787
2498
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1788
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2499
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1789
2500
|
},
|
|
1790
2501
|
/**
|
|
1791
2502
|
*
|
|
@@ -1798,7 +2509,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1798
2509
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsPost(v5NotificationsChannelsPostRequest, options);
|
|
1799
2510
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1800
2511
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1801
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2512
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1802
2513
|
},
|
|
1803
2514
|
/**
|
|
1804
2515
|
*
|
|
@@ -1811,7 +2522,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1811
2522
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesEventTypeGet(eventType, options);
|
|
1812
2523
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1813
2524
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesEventTypeGet"]?.[localVarOperationServerIndex]?.url;
|
|
1814
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2525
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1815
2526
|
},
|
|
1816
2527
|
/**
|
|
1817
2528
|
*
|
|
@@ -1823,7 +2534,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1823
2534
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesGet(options);
|
|
1824
2535
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1825
2536
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1826
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2537
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1827
2538
|
},
|
|
1828
2539
|
/**
|
|
1829
2540
|
*
|
|
@@ -1841,7 +2552,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1841
2552
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsLogsGet(workflowId, eventType, startDate, endDate, limit, offset, options);
|
|
1842
2553
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1843
2554
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsLogsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1844
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2555
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1845
2556
|
},
|
|
1846
2557
|
/**
|
|
1847
2558
|
*
|
|
@@ -1855,7 +2566,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1855
2566
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsGet(workflowId, eventType, options);
|
|
1856
2567
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1857
2568
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1858
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2569
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1859
2570
|
},
|
|
1860
2571
|
/**
|
|
1861
2572
|
*
|
|
@@ -1868,7 +2579,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1868
2579
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsPost(v5NotificationsSettingsPostRequest, options);
|
|
1869
2580
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1870
2581
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1871
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2582
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1872
2583
|
},
|
|
1873
2584
|
/**
|
|
1874
2585
|
*
|
|
@@ -1881,7 +2592,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1881
2592
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdDelete(settingsId, options);
|
|
1882
2593
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1883
2594
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1884
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2595
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1885
2596
|
},
|
|
1886
2597
|
/**
|
|
1887
2598
|
*
|
|
@@ -1894,7 +2605,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1894
2605
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdGet(settingsId, options);
|
|
1895
2606
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1896
2607
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1897
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2608
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1898
2609
|
},
|
|
1899
2610
|
/**
|
|
1900
2611
|
*
|
|
@@ -1908,7 +2619,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1908
2619
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdPut(settingsId, v5NotificationsSettingsSettingsIdPutRequest, options);
|
|
1909
2620
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1910
2621
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1911
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2622
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1912
2623
|
},
|
|
1913
2624
|
/**
|
|
1914
2625
|
*
|
|
@@ -1921,7 +2632,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1921
2632
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsTestPost(v5NotificationsTestPostRequest, options);
|
|
1922
2633
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1923
2634
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsTestPost"]?.[localVarOperationServerIndex]?.url;
|
|
1924
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2635
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1925
2636
|
}
|
|
1926
2637
|
};
|
|
1927
2638
|
};
|
|
@@ -2231,7 +2942,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2231
2942
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasGet(options);
|
|
2232
2943
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2233
2944
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasGet"]?.[localVarOperationServerIndex]?.url;
|
|
2234
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2945
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2235
2946
|
},
|
|
2236
2947
|
/**
|
|
2237
2948
|
* Create a new data schema with specified fields and entity type
|
|
@@ -2244,7 +2955,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2244
2955
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasPost(createSchemaBody, options);
|
|
2245
2956
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2246
2957
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasPost"]?.[localVarOperationServerIndex]?.url;
|
|
2247
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2958
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2248
2959
|
},
|
|
2249
2960
|
/**
|
|
2250
2961
|
* Delete a schema and all its revisions
|
|
@@ -2257,7 +2968,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2257
2968
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdDelete(schemaId, options);
|
|
2258
2969
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2259
2970
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
2260
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2971
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2261
2972
|
},
|
|
2262
2973
|
/**
|
|
2263
2974
|
* Retrieve a specific schema by its unique identifier
|
|
@@ -2270,7 +2981,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2270
2981
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdGet(schemaId, options);
|
|
2271
2982
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2272
2983
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
2273
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2984
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2274
2985
|
},
|
|
2275
2986
|
/**
|
|
2276
2987
|
* Update schema metadata or create a new revision with updated fields
|
|
@@ -2284,7 +2995,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2284
2995
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdPut(schemaId, updateSchemaBody, options);
|
|
2285
2996
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2286
2997
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
2287
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2998
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2288
2999
|
}
|
|
2289
3000
|
};
|
|
2290
3001
|
};
|
|
@@ -2387,10 +3098,11 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2387
3098
|
* @param {string} [endDate] End date to filter changes (ISO format)
|
|
2388
3099
|
* @param {number} [skip] Number of records to skip for pagination
|
|
2389
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\")
|
|
2390
3102
|
* @param {*} [options] Override http request option.
|
|
2391
3103
|
* @throws {RequiredError}
|
|
2392
3104
|
*/
|
|
2393
|
-
v4ChangesGet: async (xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options = {}) => {
|
|
3105
|
+
v4ChangesGet: async (xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, exclude, options = {}) => {
|
|
2394
3106
|
const localVarPath = `/v4/changes`;
|
|
2395
3107
|
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
2396
3108
|
let baseOptions;
|
|
@@ -2417,6 +3129,9 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2417
3129
|
if (limit !== void 0) {
|
|
2418
3130
|
localVarQueryParameter["limit"] = limit;
|
|
2419
3131
|
}
|
|
3132
|
+
if (exclude !== void 0) {
|
|
3133
|
+
localVarQueryParameter["exclude"] = exclude;
|
|
3134
|
+
}
|
|
2420
3135
|
if (xApiKey != null) {
|
|
2421
3136
|
localVarHeaderParameter["x-api-key"] = String(xApiKey);
|
|
2422
3137
|
}
|
|
@@ -2439,16 +3154,16 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2439
3154
|
* @param {number} [limit] Maximum number of items to return
|
|
2440
3155
|
* @param {V4WorkflowsGetStateEnum} [state] Filter workflows by state
|
|
2441
3156
|
* @param {Array<string>} [tags] Filter workflows by tags
|
|
3157
|
+
* @param {string} [userId] Filter workflows by user ID (team members only)
|
|
2442
3158
|
* @param {V4WorkflowsGetMonitoringEnum} [monitoring] Filter workflows by monitoring status
|
|
2443
3159
|
* @param {V4WorkflowsGetUpdateIntervalEnum} [updateInterval] Filter workflows by update interval
|
|
2444
3160
|
* @param {string} [templateId] Filter workflows by template ID (DEPRECATED - templates replaced by schemas)
|
|
2445
|
-
* @param {string} [userId] Filter workflows by user ID (only works in team context)
|
|
2446
3161
|
* @param {V4WorkflowsGetIncludeDeletedEnum} [includeDeleted] Include deleted workflows (for compliance officers)
|
|
2447
3162
|
* @param {V4WorkflowsGetFormatEnum} [format] Response format (json or csv for export)
|
|
2448
3163
|
* @param {*} [options] Override http request option.
|
|
2449
3164
|
* @throws {RequiredError}
|
|
2450
3165
|
*/
|
|
2451
|
-
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 = {}) => {
|
|
2452
3167
|
const localVarPath = `/v4/workflows`;
|
|
2453
3168
|
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
2454
3169
|
let baseOptions;
|
|
@@ -2474,6 +3189,9 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2474
3189
|
if (tags) {
|
|
2475
3190
|
localVarQueryParameter["tags"] = tags;
|
|
2476
3191
|
}
|
|
3192
|
+
if (userId !== void 0) {
|
|
3193
|
+
localVarQueryParameter["userId"] = userId;
|
|
3194
|
+
}
|
|
2477
3195
|
if (monitoring !== void 0) {
|
|
2478
3196
|
localVarQueryParameter["monitoring"] = monitoring;
|
|
2479
3197
|
}
|
|
@@ -2483,9 +3201,6 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2483
3201
|
if (templateId !== void 0) {
|
|
2484
3202
|
localVarQueryParameter["templateId"] = templateId;
|
|
2485
3203
|
}
|
|
2486
|
-
if (userId !== void 0) {
|
|
2487
|
-
localVarQueryParameter["userId"] = userId;
|
|
2488
|
-
}
|
|
2489
3204
|
if (includeDeleted !== void 0) {
|
|
2490
3205
|
localVarQueryParameter["includeDeleted"] = includeDeleted;
|
|
2491
3206
|
}
|
|
@@ -2804,7 +3519,7 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2804
3519
|
};
|
|
2805
3520
|
},
|
|
2806
3521
|
/**
|
|
2807
|
-
*
|
|
3522
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
2808
3523
|
* @summary Get job status and telemetry
|
|
2809
3524
|
* @param {string} workflowId The ID of the workflow
|
|
2810
3525
|
* @param {string} jobId The ID of the job
|
|
@@ -3130,7 +3845,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3130
3845
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3131
3846
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3132
3847
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3133
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3848
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3134
3849
|
},
|
|
3135
3850
|
/**
|
|
3136
3851
|
*
|
|
@@ -3142,14 +3857,15 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3142
3857
|
* @param {string} [endDate] End date to filter changes (ISO format)
|
|
3143
3858
|
* @param {number} [skip] Number of records to skip for pagination
|
|
3144
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\")
|
|
3145
3861
|
* @param {*} [options] Override http request option.
|
|
3146
3862
|
* @throws {RequiredError}
|
|
3147
3863
|
*/
|
|
3148
|
-
async v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options) {
|
|
3149
|
-
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);
|
|
3150
3866
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3151
3867
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3152
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3868
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3153
3869
|
},
|
|
3154
3870
|
/**
|
|
3155
3871
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3159,20 +3875,20 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3159
3875
|
* @param {number} [limit] Maximum number of items to return
|
|
3160
3876
|
* @param {V4WorkflowsGetStateEnum} [state] Filter workflows by state
|
|
3161
3877
|
* @param {Array<string>} [tags] Filter workflows by tags
|
|
3878
|
+
* @param {string} [userId] Filter workflows by user ID (team members only)
|
|
3162
3879
|
* @param {V4WorkflowsGetMonitoringEnum} [monitoring] Filter workflows by monitoring status
|
|
3163
3880
|
* @param {V4WorkflowsGetUpdateIntervalEnum} [updateInterval] Filter workflows by update interval
|
|
3164
3881
|
* @param {string} [templateId] Filter workflows by template ID (DEPRECATED - templates replaced by schemas)
|
|
3165
|
-
* @param {string} [userId] Filter workflows by user ID (only works in team context)
|
|
3166
3882
|
* @param {V4WorkflowsGetIncludeDeletedEnum} [includeDeleted] Include deleted workflows (for compliance officers)
|
|
3167
3883
|
* @param {V4WorkflowsGetFormatEnum} [format] Response format (json or csv for export)
|
|
3168
3884
|
* @param {*} [options] Override http request option.
|
|
3169
3885
|
* @throws {RequiredError}
|
|
3170
3886
|
*/
|
|
3171
|
-
async v4WorkflowsGet(search, skip, limit, state, tags, monitoring, updateInterval, templateId,
|
|
3172
|
-
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);
|
|
3173
3889
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3174
3890
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3175
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3891
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3176
3892
|
},
|
|
3177
3893
|
/**
|
|
3178
3894
|
* Create a new workflow with schema, custom fields, or agentic navigation mode
|
|
@@ -3185,7 +3901,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3185
3901
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsPost(createWorkflowBody, options);
|
|
3186
3902
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3187
3903
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsPost"]?.[localVarOperationServerIndex]?.url;
|
|
3188
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3904
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3189
3905
|
},
|
|
3190
3906
|
/**
|
|
3191
3907
|
*
|
|
@@ -3202,7 +3918,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3202
3918
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3203
3919
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3204
3920
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3205
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3921
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3206
3922
|
},
|
|
3207
3923
|
/**
|
|
3208
3924
|
*
|
|
@@ -3217,7 +3933,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3217
3933
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceApprovePut(workflowId, xApiKey, authorization, options);
|
|
3218
3934
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3219
3935
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceApprovePut"]?.[localVarOperationServerIndex]?.url;
|
|
3220
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3936
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3221
3937
|
},
|
|
3222
3938
|
/**
|
|
3223
3939
|
*
|
|
@@ -3233,7 +3949,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3233
3949
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceRejectPut(workflowId, v4WorkflowsWorkflowIdComplianceRejectPutRequest, xApiKey, authorization, options);
|
|
3234
3950
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3235
3951
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceRejectPut"]?.[localVarOperationServerIndex]?.url;
|
|
3236
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3952
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3237
3953
|
},
|
|
3238
3954
|
/**
|
|
3239
3955
|
*
|
|
@@ -3258,7 +3974,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3258
3974
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDataGet(workflowId, xApiKey, authorization, runId, format, sortBy, order, filters, page, limit, gzip, rowIds, includeAnomalies, options);
|
|
3259
3975
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3260
3976
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDataGet"]?.[localVarOperationServerIndex]?.url;
|
|
3261
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3977
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3262
3978
|
},
|
|
3263
3979
|
/**
|
|
3264
3980
|
*
|
|
@@ -3271,7 +3987,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3271
3987
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDelete(workflowId, options);
|
|
3272
3988
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3273
3989
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3274
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3990
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3275
3991
|
},
|
|
3276
3992
|
/**
|
|
3277
3993
|
* Retrieves detailed information about a specific workflow. This endpoint requires authentication and proper team access permissions.
|
|
@@ -3284,7 +4000,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3284
4000
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdGet(workflowId, options);
|
|
3285
4001
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3286
4002
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3287
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4003
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3288
4004
|
},
|
|
3289
4005
|
/**
|
|
3290
4006
|
*
|
|
@@ -3297,10 +4013,10 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3297
4013
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdHistoryGet(workflowId, options);
|
|
3298
4014
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3299
4015
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdHistoryGet"]?.[localVarOperationServerIndex]?.url;
|
|
3300
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4016
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3301
4017
|
},
|
|
3302
4018
|
/**
|
|
3303
|
-
*
|
|
4019
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
3304
4020
|
* @summary Get job status and telemetry
|
|
3305
4021
|
* @param {string} workflowId The ID of the workflow
|
|
3306
4022
|
* @param {string} jobId The ID of the job
|
|
@@ -3311,7 +4027,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3311
4027
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdJobsJobIdGet(workflowId, jobId, options);
|
|
3312
4028
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3313
4029
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdJobsJobIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3314
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4030
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3315
4031
|
},
|
|
3316
4032
|
/**
|
|
3317
4033
|
*
|
|
@@ -3325,7 +4041,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3325
4041
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdMetadataPut(workflowId, v4WorkflowsWorkflowIdMetadataPutRequest, options);
|
|
3326
4042
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3327
4043
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdMetadataPut"]?.[localVarOperationServerIndex]?.url;
|
|
3328
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4044
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3329
4045
|
},
|
|
3330
4046
|
/**
|
|
3331
4047
|
*
|
|
@@ -3338,7 +4054,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3338
4054
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdPausePut(workflowId, options);
|
|
3339
4055
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3340
4056
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdPausePut"]?.[localVarOperationServerIndex]?.url;
|
|
3341
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4057
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3342
4058
|
},
|
|
3343
4059
|
/**
|
|
3344
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.
|
|
@@ -3351,7 +4067,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3351
4067
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdResumePut(workflowId, options);
|
|
3352
4068
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3353
4069
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdResumePut"]?.[localVarOperationServerIndex]?.url;
|
|
3354
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4070
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3355
4071
|
},
|
|
3356
4072
|
/**
|
|
3357
4073
|
*
|
|
@@ -3365,7 +4081,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3365
4081
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdRunPut(workflowId, v4WorkflowsWorkflowIdRunPutRequest, options);
|
|
3366
4082
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3367
4083
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdRunPut"]?.[localVarOperationServerIndex]?.url;
|
|
3368
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4084
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3369
4085
|
},
|
|
3370
4086
|
/**
|
|
3371
4087
|
*
|
|
@@ -3379,7 +4095,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3379
4095
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdSchedulePut(workflowId, v4WorkflowsWorkflowIdSchedulePutRequest, options);
|
|
3380
4096
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3381
4097
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdSchedulePut"]?.[localVarOperationServerIndex]?.url;
|
|
3382
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4098
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3383
4099
|
},
|
|
3384
4100
|
/**
|
|
3385
4101
|
*
|
|
@@ -3394,7 +4110,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3394
4110
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3395
4111
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3396
4112
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3397
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4113
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3398
4114
|
},
|
|
3399
4115
|
/**
|
|
3400
4116
|
*
|
|
@@ -3413,7 +4129,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3413
4129
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
3414
4130
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3415
4131
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3416
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4132
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3417
4133
|
},
|
|
3418
4134
|
/**
|
|
3419
4135
|
*
|
|
@@ -3430,7 +4146,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3430
4146
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3431
4147
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3432
4148
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3433
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4149
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3434
4150
|
}
|
|
3435
4151
|
};
|
|
3436
4152
|
};
|
|
@@ -3453,7 +4169,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3453
4169
|
* @throws {RequiredError}
|
|
3454
4170
|
*/
|
|
3455
4171
|
v4ChangesGet(requestParameters = {}, options) {
|
|
3456
|
-
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));
|
|
3457
4173
|
}
|
|
3458
4174
|
/**
|
|
3459
4175
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3463,7 +4179,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3463
4179
|
* @throws {RequiredError}
|
|
3464
4180
|
*/
|
|
3465
4181
|
v4WorkflowsGet(requestParameters = {}, options) {
|
|
3466
|
-
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));
|
|
3467
4183
|
}
|
|
3468
4184
|
/**
|
|
3469
4185
|
* Create a new workflow with schema, custom fields, or agentic navigation mode
|
|
@@ -3546,7 +4262,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3546
4262
|
return WorkflowsApiFp(this.configuration).v4WorkflowsWorkflowIdHistoryGet(requestParameters.workflowId, options).then((request) => request(this.axios, this.basePath));
|
|
3547
4263
|
}
|
|
3548
4264
|
/**
|
|
3549
|
-
*
|
|
4265
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
3550
4266
|
* @summary Get job status and telemetry
|
|
3551
4267
|
* @param {WorkflowsApiV4WorkflowsWorkflowIdJobsJobIdGetRequest} requestParameters Request parameters.
|
|
3552
4268
|
* @param {*} [options] Override http request option.
|
|
@@ -4009,13 +4725,6 @@ var _SchemaBuilder = class _SchemaBuilder {
|
|
|
4009
4725
|
this.entityName = entityName;
|
|
4010
4726
|
return this;
|
|
4011
4727
|
}
|
|
4012
|
-
/**
|
|
4013
|
-
* Add a structured field to the schema
|
|
4014
|
-
* @param name - Field name (alphanumeric only)
|
|
4015
|
-
* @param description - Field description
|
|
4016
|
-
* @param dataType - Data type (STRING, NUMBER, BOOLEAN, etc.)
|
|
4017
|
-
* @param options - Optional field configuration
|
|
4018
|
-
*/
|
|
4019
4728
|
field(name, description, dataType, options) {
|
|
4020
4729
|
this.validateFieldName(name);
|
|
4021
4730
|
const requiresExample = _SchemaBuilder.TYPES_REQUIRING_EXAMPLE.includes(dataType);
|
|
@@ -4815,13 +5524,33 @@ var NotificationChannelType = {
|
|
|
4815
5524
|
};
|
|
4816
5525
|
|
|
4817
5526
|
// src/domains/notifications/notification-channels.service.ts
|
|
4818
|
-
var
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
"
|
|
4823
|
-
|
|
4824
|
-
|
|
5527
|
+
var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
5528
|
+
function validateEmailChannelConfig(config) {
|
|
5529
|
+
const issues = [];
|
|
5530
|
+
if (!config.recipients?.length) {
|
|
5531
|
+
issues.push({ message: "Recipients are required for email channel" });
|
|
5532
|
+
} else {
|
|
5533
|
+
for (const email of config.recipients) {
|
|
5534
|
+
if (!EMAIL_REGEX.test(email)) {
|
|
5535
|
+
issues.push({ message: `Invalid email address: ${email}` });
|
|
5536
|
+
}
|
|
5537
|
+
}
|
|
5538
|
+
}
|
|
5539
|
+
if (config.from !== void 0) {
|
|
5540
|
+
if (!EMAIL_REGEX.test(config.from)) {
|
|
5541
|
+
issues.push({ message: `Invalid from email address: ${config.from}` });
|
|
5542
|
+
} else if (!config.from.endsWith("@kadoa.com")) {
|
|
5543
|
+
issues.push({ message: "From email address must end with @kadoa.com" });
|
|
5544
|
+
}
|
|
5545
|
+
}
|
|
5546
|
+
if (issues.length > 0) {
|
|
5547
|
+
throw new KadoaSdkException("Invalid email channel config", {
|
|
5548
|
+
code: KadoaErrorCode.VALIDATION_ERROR,
|
|
5549
|
+
details: { issues }
|
|
5550
|
+
});
|
|
5551
|
+
}
|
|
5552
|
+
return config;
|
|
5553
|
+
}
|
|
4825
5554
|
var _NotificationChannelsService = class _NotificationChannelsService {
|
|
4826
5555
|
constructor(notificationsApi, userService) {
|
|
4827
5556
|
this.api = notificationsApi;
|
|
@@ -4931,16 +5660,7 @@ var _NotificationChannelsService = class _NotificationChannelsService {
|
|
|
4931
5660
|
recipients = [user.email];
|
|
4932
5661
|
}
|
|
4933
5662
|
const config = merge(defaults, { recipients });
|
|
4934
|
-
|
|
4935
|
-
if (!result.success) {
|
|
4936
|
-
throw new KadoaSdkException(`Invalid email channel config`, {
|
|
4937
|
-
code: KadoaErrorCode.VALIDATION_ERROR,
|
|
4938
|
-
details: {
|
|
4939
|
-
issues: result.error.issues
|
|
4940
|
-
}
|
|
4941
|
-
});
|
|
4942
|
-
}
|
|
4943
|
-
return result.data;
|
|
5663
|
+
return validateEmailChannelConfig(config);
|
|
4944
5664
|
}
|
|
4945
5665
|
async buildSlackChannelConfig(defaults) {
|
|
4946
5666
|
return defaults;
|
|
@@ -5227,7 +5947,7 @@ var WSS_API_URI = process.env.KADOA_WSS_API_URI ?? "wss://realtime.kadoa.com";
|
|
|
5227
5947
|
var REALTIME_API_URI = process.env.KADOA_REALTIME_API_URI ?? "https://realtime.kadoa.com";
|
|
5228
5948
|
|
|
5229
5949
|
// src/version.ts
|
|
5230
|
-
var SDK_VERSION = "0.19.
|
|
5950
|
+
var SDK_VERSION = "0.19.3";
|
|
5231
5951
|
var SDK_NAME = "kadoa-node-sdk";
|
|
5232
5952
|
var SDK_LANGUAGE = "node";
|
|
5233
5953
|
|
|
@@ -5439,7 +6159,7 @@ var UserService = class {
|
|
|
5439
6159
|
|
|
5440
6160
|
// src/runtime/utils/polling.ts
|
|
5441
6161
|
var DEFAULT_POLLING_OPTIONS = {
|
|
5442
|
-
pollIntervalMs:
|
|
6162
|
+
pollIntervalMs: 1e4,
|
|
5443
6163
|
timeoutMs: 5 * 60 * 1e3
|
|
5444
6164
|
};
|
|
5445
6165
|
var POLLING_ERROR_CODES = {
|
|
@@ -5451,7 +6171,7 @@ async function pollUntil(pollFn, isComplete, options = {}) {
|
|
|
5451
6171
|
...DEFAULT_POLLING_OPTIONS,
|
|
5452
6172
|
...options
|
|
5453
6173
|
};
|
|
5454
|
-
const pollInterval = Math.max(
|
|
6174
|
+
const pollInterval = Math.max(1e4, internalOptions.pollIntervalMs);
|
|
5455
6175
|
const timeoutMs = internalOptions.timeoutMs;
|
|
5456
6176
|
const start = Date.now();
|
|
5457
6177
|
let attempts = 0;
|
|
@@ -5530,7 +6250,7 @@ async function checkForUpdates() {
|
|
|
5530
6250
|
`\u26A0\uFE0F A new version of ${SDK_NAME} is available: ${latestVersion} (current: ${SDK_VERSION}). Update with: npm install ${PACKAGE_NAME}@latest`
|
|
5531
6251
|
);
|
|
5532
6252
|
}
|
|
5533
|
-
} catch
|
|
6253
|
+
} catch {
|
|
5534
6254
|
}
|
|
5535
6255
|
}
|
|
5536
6256
|
function isNewerVersion(version1, version2) {
|
|
@@ -5921,15 +6641,6 @@ var WorkflowsCoreService = class {
|
|
|
5921
6641
|
});
|
|
5922
6642
|
return response.data?.workflows?.[0];
|
|
5923
6643
|
}
|
|
5924
|
-
/**
|
|
5925
|
-
* @deprecated Use delete(id) instead.
|
|
5926
|
-
*/
|
|
5927
|
-
async cancel(id) {
|
|
5928
|
-
console.warn(
|
|
5929
|
-
"[Kadoa SDK] workflow.cancel(id) will be deprecated. Use workflow.delete(id)."
|
|
5930
|
-
);
|
|
5931
|
-
await this.delete(id);
|
|
5932
|
-
}
|
|
5933
6644
|
async delete(id) {
|
|
5934
6645
|
await this.workflowsApi.v4WorkflowsWorkflowIdDelete({
|
|
5935
6646
|
workflowId: id
|
|
@@ -5952,19 +6663,10 @@ var WorkflowsCoreService = class {
|
|
|
5952
6663
|
* Wait for a workflow to reach the target state or a terminal state if no target state is provided
|
|
5953
6664
|
*/
|
|
5954
6665
|
async wait(id, options) {
|
|
5955
|
-
let last;
|
|
5956
6666
|
const result = await pollUntil(
|
|
5957
6667
|
async () => {
|
|
5958
6668
|
const current = await this.get(id);
|
|
5959
|
-
|
|
5960
|
-
debug6(
|
|
5961
|
-
"workflow %s state: [workflowState: %s, jobState: %s]",
|
|
5962
|
-
id,
|
|
5963
|
-
current.state,
|
|
5964
|
-
current.runState
|
|
5965
|
-
);
|
|
5966
|
-
}
|
|
5967
|
-
last = current;
|
|
6669
|
+
debug6("workflow %s state: %s", id, current.runState);
|
|
5968
6670
|
return current;
|
|
5969
6671
|
},
|
|
5970
6672
|
(current) => {
|
|
@@ -6020,14 +6722,10 @@ var WorkflowsCoreService = class {
|
|
|
6020
6722
|
* Wait for a job to reach the target state or a terminal state
|
|
6021
6723
|
*/
|
|
6022
6724
|
async waitForJobCompletion(workflowId, jobId, options) {
|
|
6023
|
-
let last;
|
|
6024
6725
|
const result = await pollUntil(
|
|
6025
6726
|
async () => {
|
|
6026
6727
|
const current = await this.getJobStatus(workflowId, jobId);
|
|
6027
|
-
|
|
6028
|
-
debug6("job %s state: %s", jobId, current.state);
|
|
6029
|
-
}
|
|
6030
|
-
last = current;
|
|
6728
|
+
debug6("workflow run %s state: %s", jobId, current.state);
|
|
6031
6729
|
return current;
|
|
6032
6730
|
},
|
|
6033
6731
|
(current) => {
|
|
@@ -6045,6 +6743,131 @@ var WorkflowsCoreService = class {
|
|
|
6045
6743
|
}
|
|
6046
6744
|
};
|
|
6047
6745
|
|
|
6746
|
+
// src/domains/crawler/crawler-config.service.ts
|
|
6747
|
+
var CrawlerConfigService = class {
|
|
6748
|
+
constructor(client) {
|
|
6749
|
+
this.client = client;
|
|
6750
|
+
this._api = null;
|
|
6751
|
+
}
|
|
6752
|
+
get api() {
|
|
6753
|
+
if (!this._api) {
|
|
6754
|
+
this._api = new CrawlerApi(
|
|
6755
|
+
this.client.configuration,
|
|
6756
|
+
this.client.baseUrl,
|
|
6757
|
+
this.client.axiosInstance
|
|
6758
|
+
);
|
|
6759
|
+
}
|
|
6760
|
+
return this._api;
|
|
6761
|
+
}
|
|
6762
|
+
async createConfig(body) {
|
|
6763
|
+
const response = await this.api.v4CrawlConfigPost({
|
|
6764
|
+
createCrawlerConfigRequest: body
|
|
6765
|
+
});
|
|
6766
|
+
return response.data;
|
|
6767
|
+
}
|
|
6768
|
+
async getConfig(configId) {
|
|
6769
|
+
const response = await this.api.v4CrawlConfigConfigIdGet({ configId });
|
|
6770
|
+
return response.data;
|
|
6771
|
+
}
|
|
6772
|
+
async deleteConfig(configId) {
|
|
6773
|
+
const response = await this.api.v4CrawlConfigDelete({
|
|
6774
|
+
deleteCrawlerConfigRequest: { configId }
|
|
6775
|
+
});
|
|
6776
|
+
return response.data;
|
|
6777
|
+
}
|
|
6778
|
+
};
|
|
6779
|
+
|
|
6780
|
+
// src/domains/crawler/crawler-session.service.ts
|
|
6781
|
+
var CrawlerSessionService = class {
|
|
6782
|
+
constructor(client) {
|
|
6783
|
+
this.client = client;
|
|
6784
|
+
this._api = null;
|
|
6785
|
+
}
|
|
6786
|
+
get api() {
|
|
6787
|
+
if (!this._api) {
|
|
6788
|
+
this._api = new CrawlerApi(
|
|
6789
|
+
this.client.configuration,
|
|
6790
|
+
this.client.baseUrl,
|
|
6791
|
+
this.client.axiosInstance
|
|
6792
|
+
);
|
|
6793
|
+
}
|
|
6794
|
+
return this._api;
|
|
6795
|
+
}
|
|
6796
|
+
async start(body) {
|
|
6797
|
+
const response = await this.api.v4CrawlPost({
|
|
6798
|
+
startCrawlerSessionRequest: body
|
|
6799
|
+
});
|
|
6800
|
+
return response.data;
|
|
6801
|
+
}
|
|
6802
|
+
async startWithConfig(body) {
|
|
6803
|
+
const response = await this.api.v4CrawlStartPost({
|
|
6804
|
+
startSessionWithConfigRequest: body
|
|
6805
|
+
});
|
|
6806
|
+
return response.data;
|
|
6807
|
+
}
|
|
6808
|
+
async pause(sessionId) {
|
|
6809
|
+
const response = await this.api.v4CrawlPausePost({
|
|
6810
|
+
pauseCrawlerSessionRequest: { sessionId }
|
|
6811
|
+
});
|
|
6812
|
+
return response.data;
|
|
6813
|
+
}
|
|
6814
|
+
async resume(sessionId) {
|
|
6815
|
+
const response = await this.api.v4CrawlResumePost({
|
|
6816
|
+
resumeCrawlerSessionRequest: { sessionId }
|
|
6817
|
+
});
|
|
6818
|
+
return response.data;
|
|
6819
|
+
}
|
|
6820
|
+
async listSessions(options) {
|
|
6821
|
+
const response = await this.api.v4CrawlSessionsGet({
|
|
6822
|
+
page: options?.page,
|
|
6823
|
+
pageSize: options?.pageSize,
|
|
6824
|
+
userId: options?.userId
|
|
6825
|
+
});
|
|
6826
|
+
return response.data.data ?? [];
|
|
6827
|
+
}
|
|
6828
|
+
async getSessionStatus(sessionId) {
|
|
6829
|
+
const response = await this.api.v4CrawlSessionIdStatusGet({ sessionId });
|
|
6830
|
+
return response.data;
|
|
6831
|
+
}
|
|
6832
|
+
async getPages(sessionId, options) {
|
|
6833
|
+
const response = await this.api.v4CrawlSessionIdPagesGet({
|
|
6834
|
+
sessionId,
|
|
6835
|
+
currentPage: options?.currentPage,
|
|
6836
|
+
pageSize: options?.pageSize
|
|
6837
|
+
});
|
|
6838
|
+
return response.data;
|
|
6839
|
+
}
|
|
6840
|
+
async getPage(sessionId, pageId, options) {
|
|
6841
|
+
const response = await this.api.v4CrawlSessionIdPagesPageIdGet({
|
|
6842
|
+
sessionId,
|
|
6843
|
+
pageId,
|
|
6844
|
+
format: options?.format
|
|
6845
|
+
});
|
|
6846
|
+
return response.data;
|
|
6847
|
+
}
|
|
6848
|
+
async getAllSessionData(sessionId, options) {
|
|
6849
|
+
const response = await this.api.v4CrawlSessionIdListGet({
|
|
6850
|
+
sessionId,
|
|
6851
|
+
includeAll: options?.includeAll
|
|
6852
|
+
});
|
|
6853
|
+
return response.data;
|
|
6854
|
+
}
|
|
6855
|
+
async getBucketFile(filenameb64) {
|
|
6856
|
+
const response = await this.api.v4CrawlBucketDataFilenameb64Get({
|
|
6857
|
+
filenameb64
|
|
6858
|
+
});
|
|
6859
|
+
return response.data;
|
|
6860
|
+
}
|
|
6861
|
+
};
|
|
6862
|
+
|
|
6863
|
+
// src/domains/crawler/crawler.facade.ts
|
|
6864
|
+
function createCrawlerDomain(client) {
|
|
6865
|
+
return {
|
|
6866
|
+
config: new CrawlerConfigService(client),
|
|
6867
|
+
session: new CrawlerSessionService(client)
|
|
6868
|
+
};
|
|
6869
|
+
}
|
|
6870
|
+
|
|
6048
6871
|
// src/domains/validation/validation.facade.ts
|
|
6049
6872
|
function createValidationDomain(core, rules) {
|
|
6050
6873
|
return {
|
|
@@ -6078,7 +6901,7 @@ var KadoaClient = class {
|
|
|
6078
6901
|
headers
|
|
6079
6902
|
}
|
|
6080
6903
|
});
|
|
6081
|
-
this._axiosInstance =
|
|
6904
|
+
this._axiosInstance = globalAxios3.create({
|
|
6082
6905
|
timeout: this._timeout,
|
|
6083
6906
|
headers
|
|
6084
6907
|
});
|
|
@@ -6159,6 +6982,7 @@ var KadoaClient = class {
|
|
|
6159
6982
|
setupForWorkspace: (request) => channelSetupService.setupForWorkspace(request)
|
|
6160
6983
|
};
|
|
6161
6984
|
this.validation = createValidationDomain(coreService, rulesService);
|
|
6985
|
+
this.crawler = createCrawlerDomain(this);
|
|
6162
6986
|
if (config.enableRealtime && config.realtimeConfig?.autoConnect !== false) {
|
|
6163
6987
|
this.connectRealtime();
|
|
6164
6988
|
}
|