@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.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var globalAxios3 = require('axios');
|
|
4
4
|
var url = require('url');
|
|
5
5
|
var createDebug = require('debug');
|
|
6
6
|
var esToolkit = require('es-toolkit');
|
|
7
7
|
var assert = require('assert');
|
|
8
|
-
var zod = require('zod');
|
|
9
8
|
var uuid = require('uuid');
|
|
10
9
|
|
|
11
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
11
|
|
|
13
|
-
var
|
|
12
|
+
var globalAxios3__default = /*#__PURE__*/_interopDefault(globalAxios3);
|
|
14
13
|
var createDebug__default = /*#__PURE__*/_interopDefault(createDebug);
|
|
15
14
|
var assert__default = /*#__PURE__*/_interopDefault(assert);
|
|
16
15
|
|
|
@@ -22,7 +21,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
22
21
|
});
|
|
23
22
|
var BASE_PATH = "https://api.kadoa.com".replace(/\/+$/, "");
|
|
24
23
|
var BaseAPI = class {
|
|
25
|
-
constructor(configuration, basePath = BASE_PATH, axios2 =
|
|
24
|
+
constructor(configuration, basePath = BASE_PATH, axios2 = globalAxios3__default.default) {
|
|
26
25
|
this.basePath = basePath;
|
|
27
26
|
this.axios = axios2;
|
|
28
27
|
if (configuration) {
|
|
@@ -88,12 +87,724 @@ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
|
88
87
|
var toPathString = function(url) {
|
|
89
88
|
return url.pathname + url.search + url.hash;
|
|
90
89
|
};
|
|
91
|
-
var createRequestFunction = function(axiosArgs,
|
|
92
|
-
return (axios2 =
|
|
90
|
+
var createRequestFunction = function(axiosArgs, globalAxios7, BASE_PATH2, configuration) {
|
|
91
|
+
return (axios2 = globalAxios7, basePath = BASE_PATH2) => {
|
|
93
92
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
94
93
|
return axios2.request(axiosRequestArgs);
|
|
95
94
|
};
|
|
96
95
|
};
|
|
96
|
+
var CrawlerApiAxiosParamCreator = function(configuration) {
|
|
97
|
+
return {
|
|
98
|
+
/**
|
|
99
|
+
* Get file content from the crawling bucket (HTML or screenshot)
|
|
100
|
+
* @summary Get bucket data
|
|
101
|
+
* @param {string} filenameb64
|
|
102
|
+
* @param {string} [contentType]
|
|
103
|
+
* @param {string} [cacheControl]
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
v4CrawlBucketDataFilenameb64Get: async (filenameb64, contentType, cacheControl, options = {}) => {
|
|
108
|
+
assertParamExists("v4CrawlBucketDataFilenameb64Get", "filenameb64", filenameb64);
|
|
109
|
+
const localVarPath = `/v4/crawl/bucket/data/{filenameb64}`.replace(`{${"filenameb64"}}`, encodeURIComponent(String(filenameb64)));
|
|
110
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
119
|
+
if (contentType != null) {
|
|
120
|
+
localVarHeaderParameter["Content-Type"] = String(contentType);
|
|
121
|
+
}
|
|
122
|
+
if (cacheControl != null) {
|
|
123
|
+
localVarHeaderParameter["Cache-Control"] = String(cacheControl);
|
|
124
|
+
}
|
|
125
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* Get a crawling configuration by ID
|
|
135
|
+
* @summary Get config
|
|
136
|
+
* @param {string} configId
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
v4CrawlConfigConfigIdGet: async (configId, options = {}) => {
|
|
141
|
+
assertParamExists("v4CrawlConfigConfigIdGet", "configId", configId);
|
|
142
|
+
const localVarPath = `/v4/crawl/config/{configId}`.replace(`{${"configId"}}`, encodeURIComponent(String(configId)));
|
|
143
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
144
|
+
let baseOptions;
|
|
145
|
+
if (configuration) {
|
|
146
|
+
baseOptions = configuration.baseOptions;
|
|
147
|
+
}
|
|
148
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
149
|
+
const localVarHeaderParameter = {};
|
|
150
|
+
const localVarQueryParameter = {};
|
|
151
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
155
|
+
return {
|
|
156
|
+
url: toPathString(localVarUrlObj),
|
|
157
|
+
options: localVarRequestOptions
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* Delete a crawling configuration
|
|
162
|
+
* @summary Delete config
|
|
163
|
+
* @param {DeleteCrawlerConfigRequest} [deleteCrawlerConfigRequest] Body
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
v4CrawlConfigDelete: async (deleteCrawlerConfigRequest, options = {}) => {
|
|
168
|
+
const localVarPath = `/v4/crawl/config`;
|
|
169
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
170
|
+
let baseOptions;
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
}
|
|
174
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
175
|
+
const localVarHeaderParameter = {};
|
|
176
|
+
const localVarQueryParameter = {};
|
|
177
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
178
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
179
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
182
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteCrawlerConfigRequest, localVarRequestOptions, configuration);
|
|
183
|
+
return {
|
|
184
|
+
url: toPathString(localVarUrlObj),
|
|
185
|
+
options: localVarRequestOptions
|
|
186
|
+
};
|
|
187
|
+
},
|
|
188
|
+
/**
|
|
189
|
+
* Create a new crawling configuration
|
|
190
|
+
* @summary Create config
|
|
191
|
+
* @param {CreateCrawlerConfigRequest} [createCrawlerConfigRequest] Body
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
v4CrawlConfigPost: async (createCrawlerConfigRequest, options = {}) => {
|
|
196
|
+
const localVarPath = `/v4/crawl/config`;
|
|
197
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
198
|
+
let baseOptions;
|
|
199
|
+
if (configuration) {
|
|
200
|
+
baseOptions = configuration.baseOptions;
|
|
201
|
+
}
|
|
202
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
203
|
+
const localVarHeaderParameter = {};
|
|
204
|
+
const localVarQueryParameter = {};
|
|
205
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
206
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
207
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
210
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCrawlerConfigRequest, localVarRequestOptions, configuration);
|
|
211
|
+
return {
|
|
212
|
+
url: toPathString(localVarUrlObj),
|
|
213
|
+
options: localVarRequestOptions
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
* Pause an active crawling session
|
|
218
|
+
* @summary Pause session
|
|
219
|
+
* @param {PauseCrawlerSessionRequest} [pauseCrawlerSessionRequest] Body
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
v4CrawlPausePost: async (pauseCrawlerSessionRequest, options = {}) => {
|
|
224
|
+
const localVarPath = `/v4/crawl/pause`;
|
|
225
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
226
|
+
let baseOptions;
|
|
227
|
+
if (configuration) {
|
|
228
|
+
baseOptions = configuration.baseOptions;
|
|
229
|
+
}
|
|
230
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
231
|
+
const localVarHeaderParameter = {};
|
|
232
|
+
const localVarQueryParameter = {};
|
|
233
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
234
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
235
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
238
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pauseCrawlerSessionRequest, localVarRequestOptions, configuration);
|
|
239
|
+
return {
|
|
240
|
+
url: toPathString(localVarUrlObj),
|
|
241
|
+
options: localVarRequestOptions
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
/**
|
|
245
|
+
* Create a crawling configuration and start a session in one operation (equivalent to v4/crawl)
|
|
246
|
+
* @summary Start crawl
|
|
247
|
+
* @param {StartCrawlerSessionRequest} [startCrawlerSessionRequest] Body
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
v4CrawlPost: async (startCrawlerSessionRequest, options = {}) => {
|
|
252
|
+
const localVarPath = `/v4/crawl/`;
|
|
253
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
254
|
+
let baseOptions;
|
|
255
|
+
if (configuration) {
|
|
256
|
+
baseOptions = configuration.baseOptions;
|
|
257
|
+
}
|
|
258
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
259
|
+
const localVarHeaderParameter = {};
|
|
260
|
+
const localVarQueryParameter = {};
|
|
261
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
262
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
263
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
264
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
265
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
266
|
+
localVarRequestOptions.data = serializeDataIfNeeded(startCrawlerSessionRequest, localVarRequestOptions, configuration);
|
|
267
|
+
return {
|
|
268
|
+
url: toPathString(localVarUrlObj),
|
|
269
|
+
options: localVarRequestOptions
|
|
270
|
+
};
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
* Resume a paused crawling session
|
|
274
|
+
* @summary Resume session
|
|
275
|
+
* @param {ResumeCrawlerSessionRequest} [resumeCrawlerSessionRequest] Body
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
v4CrawlResumePost: async (resumeCrawlerSessionRequest, options = {}) => {
|
|
280
|
+
const localVarPath = `/v4/crawl/resume`;
|
|
281
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
282
|
+
let baseOptions;
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
}
|
|
286
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
287
|
+
const localVarHeaderParameter = {};
|
|
288
|
+
const localVarQueryParameter = {};
|
|
289
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
290
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
294
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resumeCrawlerSessionRequest, localVarRequestOptions, configuration);
|
|
295
|
+
return {
|
|
296
|
+
url: toPathString(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions
|
|
298
|
+
};
|
|
299
|
+
},
|
|
300
|
+
/**
|
|
301
|
+
* Get a complete list of all pages crawled in a session
|
|
302
|
+
* @summary Get session data list
|
|
303
|
+
* @param {string} sessionId
|
|
304
|
+
* @param {boolean | null} [includeAll]
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
v4CrawlSessionIdListGet: async (sessionId, includeAll, options = {}) => {
|
|
309
|
+
assertParamExists("v4CrawlSessionIdListGet", "sessionId", sessionId);
|
|
310
|
+
const localVarPath = `/v4/crawl/{sessionId}/list`.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
311
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
312
|
+
let baseOptions;
|
|
313
|
+
if (configuration) {
|
|
314
|
+
baseOptions = configuration.baseOptions;
|
|
315
|
+
}
|
|
316
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
317
|
+
const localVarHeaderParameter = {};
|
|
318
|
+
const localVarQueryParameter = {};
|
|
319
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
320
|
+
if (includeAll !== void 0) {
|
|
321
|
+
localVarQueryParameter["includeAll"] = includeAll;
|
|
322
|
+
}
|
|
323
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
324
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
325
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
326
|
+
return {
|
|
327
|
+
url: toPathString(localVarUrlObj),
|
|
328
|
+
options: localVarRequestOptions
|
|
329
|
+
};
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
* Get a paginated list of pages for a crawling session
|
|
333
|
+
* @summary Get paginated session pages
|
|
334
|
+
* @param {string} sessionId
|
|
335
|
+
* @param {number} [currentPage] Current page number for pagination
|
|
336
|
+
* @param {number} [pageSize] Number of items per page for pagination
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
v4CrawlSessionIdPagesGet: async (sessionId, currentPage, pageSize, options = {}) => {
|
|
341
|
+
assertParamExists("v4CrawlSessionIdPagesGet", "sessionId", sessionId);
|
|
342
|
+
const localVarPath = `/v4/crawl/{sessionId}/pages`.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
343
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
344
|
+
let baseOptions;
|
|
345
|
+
if (configuration) {
|
|
346
|
+
baseOptions = configuration.baseOptions;
|
|
347
|
+
}
|
|
348
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
349
|
+
const localVarHeaderParameter = {};
|
|
350
|
+
const localVarQueryParameter = {};
|
|
351
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
352
|
+
if (currentPage !== void 0) {
|
|
353
|
+
localVarQueryParameter["currentPage"] = currentPage;
|
|
354
|
+
}
|
|
355
|
+
if (pageSize !== void 0) {
|
|
356
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
357
|
+
}
|
|
358
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
359
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
360
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
361
|
+
return {
|
|
362
|
+
url: toPathString(localVarUrlObj),
|
|
363
|
+
options: localVarRequestOptions
|
|
364
|
+
};
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
* Get the content of a specific page from a crawling session in HTML or Markdown format
|
|
368
|
+
* @summary Get session page content
|
|
369
|
+
* @param {string} sessionId
|
|
370
|
+
* @param {string} pageId
|
|
371
|
+
* @param {string} [format] Desired format for the page data
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
v4CrawlSessionIdPagesPageIdGet: async (sessionId, pageId, format, options = {}) => {
|
|
376
|
+
assertParamExists("v4CrawlSessionIdPagesPageIdGet", "sessionId", sessionId);
|
|
377
|
+
assertParamExists("v4CrawlSessionIdPagesPageIdGet", "pageId", pageId);
|
|
378
|
+
const localVarPath = `/v4/crawl/{sessionId}/pages/{pageId}`.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))).replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
|
|
379
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
380
|
+
let baseOptions;
|
|
381
|
+
if (configuration) {
|
|
382
|
+
baseOptions = configuration.baseOptions;
|
|
383
|
+
}
|
|
384
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
385
|
+
const localVarHeaderParameter = {};
|
|
386
|
+
const localVarQueryParameter = {};
|
|
387
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
388
|
+
if (format !== void 0) {
|
|
389
|
+
localVarQueryParameter["format"] = format;
|
|
390
|
+
}
|
|
391
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
393
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
394
|
+
return {
|
|
395
|
+
url: toPathString(localVarUrlObj),
|
|
396
|
+
options: localVarRequestOptions
|
|
397
|
+
};
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
* Get the current status of a crawling session
|
|
401
|
+
* @summary Get session status
|
|
402
|
+
* @param {string} sessionId
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
v4CrawlSessionIdStatusGet: async (sessionId, options = {}) => {
|
|
407
|
+
assertParamExists("v4CrawlSessionIdStatusGet", "sessionId", sessionId);
|
|
408
|
+
const localVarPath = `/v4/crawl/{sessionId}/status`.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
409
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
410
|
+
let baseOptions;
|
|
411
|
+
if (configuration) {
|
|
412
|
+
baseOptions = configuration.baseOptions;
|
|
413
|
+
}
|
|
414
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
415
|
+
const localVarHeaderParameter = {};
|
|
416
|
+
const localVarQueryParameter = {};
|
|
417
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
418
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
419
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
420
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
421
|
+
return {
|
|
422
|
+
url: toPathString(localVarUrlObj),
|
|
423
|
+
options: localVarRequestOptions
|
|
424
|
+
};
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
* Get paginated list of crawling sessions with optional filtering
|
|
428
|
+
* @summary List crawling sessions
|
|
429
|
+
* @param {number} [page] Page number
|
|
430
|
+
* @param {number} [pageSize] Items per page
|
|
431
|
+
* @param {string} [userId] Filter by user ID
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
*/
|
|
435
|
+
v4CrawlSessionsGet: async (page, pageSize, userId, options = {}) => {
|
|
436
|
+
const localVarPath = `/v4/crawl/sessions`;
|
|
437
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
438
|
+
let baseOptions;
|
|
439
|
+
if (configuration) {
|
|
440
|
+
baseOptions = configuration.baseOptions;
|
|
441
|
+
}
|
|
442
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
443
|
+
const localVarHeaderParameter = {};
|
|
444
|
+
const localVarQueryParameter = {};
|
|
445
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
446
|
+
if (page !== void 0) {
|
|
447
|
+
localVarQueryParameter["page"] = page;
|
|
448
|
+
}
|
|
449
|
+
if (pageSize !== void 0) {
|
|
450
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
451
|
+
}
|
|
452
|
+
if (userId !== void 0) {
|
|
453
|
+
localVarQueryParameter["userId"] = userId;
|
|
454
|
+
}
|
|
455
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
456
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
457
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
458
|
+
return {
|
|
459
|
+
url: toPathString(localVarUrlObj),
|
|
460
|
+
options: localVarRequestOptions
|
|
461
|
+
};
|
|
462
|
+
},
|
|
463
|
+
/**
|
|
464
|
+
* Start a new crawling session with an existing configuration
|
|
465
|
+
* @summary Start session
|
|
466
|
+
* @param {StartSessionWithConfigRequest} [startSessionWithConfigRequest] Body
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
v4CrawlStartPost: async (startSessionWithConfigRequest, options = {}) => {
|
|
471
|
+
const localVarPath = `/v4/crawl/start`;
|
|
472
|
+
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
473
|
+
let baseOptions;
|
|
474
|
+
if (configuration) {
|
|
475
|
+
baseOptions = configuration.baseOptions;
|
|
476
|
+
}
|
|
477
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
478
|
+
const localVarHeaderParameter = {};
|
|
479
|
+
const localVarQueryParameter = {};
|
|
480
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
481
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
482
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
483
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
484
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
485
|
+
localVarRequestOptions.data = serializeDataIfNeeded(startSessionWithConfigRequest, localVarRequestOptions, configuration);
|
|
486
|
+
return {
|
|
487
|
+
url: toPathString(localVarUrlObj),
|
|
488
|
+
options: localVarRequestOptions
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
var CrawlerApiFp = function(configuration) {
|
|
494
|
+
const localVarAxiosParamCreator = CrawlerApiAxiosParamCreator(configuration);
|
|
495
|
+
return {
|
|
496
|
+
/**
|
|
497
|
+
* Get file content from the crawling bucket (HTML or screenshot)
|
|
498
|
+
* @summary Get bucket data
|
|
499
|
+
* @param {string} filenameb64
|
|
500
|
+
* @param {string} [contentType]
|
|
501
|
+
* @param {string} [cacheControl]
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
async v4CrawlBucketDataFilenameb64Get(filenameb64, contentType, cacheControl, options) {
|
|
506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlBucketDataFilenameb64Get(filenameb64, contentType, cacheControl, options);
|
|
507
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
508
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlBucketDataFilenameb64Get"]?.[localVarOperationServerIndex]?.url;
|
|
509
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
510
|
+
},
|
|
511
|
+
/**
|
|
512
|
+
* Get a crawling configuration by ID
|
|
513
|
+
* @summary Get config
|
|
514
|
+
* @param {string} configId
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
async v4CrawlConfigConfigIdGet(configId, options) {
|
|
519
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigConfigIdGet(configId, options);
|
|
520
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
521
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigConfigIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
522
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
523
|
+
},
|
|
524
|
+
/**
|
|
525
|
+
* Delete a crawling configuration
|
|
526
|
+
* @summary Delete config
|
|
527
|
+
* @param {DeleteCrawlerConfigRequest} [deleteCrawlerConfigRequest] Body
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
async v4CrawlConfigDelete(deleteCrawlerConfigRequest, options) {
|
|
532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigDelete(deleteCrawlerConfigRequest, options);
|
|
533
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
534
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigDelete"]?.[localVarOperationServerIndex]?.url;
|
|
535
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
* Create a new crawling configuration
|
|
539
|
+
* @summary Create config
|
|
540
|
+
* @param {CreateCrawlerConfigRequest} [createCrawlerConfigRequest] Body
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
async v4CrawlConfigPost(createCrawlerConfigRequest, options) {
|
|
545
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigPost(createCrawlerConfigRequest, options);
|
|
546
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
547
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigPost"]?.[localVarOperationServerIndex]?.url;
|
|
548
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
549
|
+
},
|
|
550
|
+
/**
|
|
551
|
+
* Pause an active crawling session
|
|
552
|
+
* @summary Pause session
|
|
553
|
+
* @param {PauseCrawlerSessionRequest} [pauseCrawlerSessionRequest] Body
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @throws {RequiredError}
|
|
556
|
+
*/
|
|
557
|
+
async v4CrawlPausePost(pauseCrawlerSessionRequest, options) {
|
|
558
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlPausePost(pauseCrawlerSessionRequest, options);
|
|
559
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
560
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlPausePost"]?.[localVarOperationServerIndex]?.url;
|
|
561
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
* Create a crawling configuration and start a session in one operation (equivalent to v4/crawl)
|
|
565
|
+
* @summary Start crawl
|
|
566
|
+
* @param {StartCrawlerSessionRequest} [startCrawlerSessionRequest] Body
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
async v4CrawlPost(startCrawlerSessionRequest, options) {
|
|
571
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlPost(startCrawlerSessionRequest, options);
|
|
572
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
573
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlPost"]?.[localVarOperationServerIndex]?.url;
|
|
574
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
575
|
+
},
|
|
576
|
+
/**
|
|
577
|
+
* Resume a paused crawling session
|
|
578
|
+
* @summary Resume session
|
|
579
|
+
* @param {ResumeCrawlerSessionRequest} [resumeCrawlerSessionRequest] Body
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
*/
|
|
583
|
+
async v4CrawlResumePost(resumeCrawlerSessionRequest, options) {
|
|
584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlResumePost(resumeCrawlerSessionRequest, options);
|
|
585
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
586
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlResumePost"]?.[localVarOperationServerIndex]?.url;
|
|
587
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
588
|
+
},
|
|
589
|
+
/**
|
|
590
|
+
* Get a complete list of all pages crawled in a session
|
|
591
|
+
* @summary Get session data list
|
|
592
|
+
* @param {string} sessionId
|
|
593
|
+
* @param {boolean | null} [includeAll]
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
*/
|
|
597
|
+
async v4CrawlSessionIdListGet(sessionId, includeAll, options) {
|
|
598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdListGet(sessionId, includeAll, options);
|
|
599
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
600
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdListGet"]?.[localVarOperationServerIndex]?.url;
|
|
601
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
602
|
+
},
|
|
603
|
+
/**
|
|
604
|
+
* Get a paginated list of pages for a crawling session
|
|
605
|
+
* @summary Get paginated session pages
|
|
606
|
+
* @param {string} sessionId
|
|
607
|
+
* @param {number} [currentPage] Current page number for pagination
|
|
608
|
+
* @param {number} [pageSize] Number of items per page for pagination
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
async v4CrawlSessionIdPagesGet(sessionId, currentPage, pageSize, options) {
|
|
613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdPagesGet(sessionId, currentPage, pageSize, options);
|
|
614
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
615
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdPagesGet"]?.[localVarOperationServerIndex]?.url;
|
|
616
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
617
|
+
},
|
|
618
|
+
/**
|
|
619
|
+
* Get the content of a specific page from a crawling session in HTML or Markdown format
|
|
620
|
+
* @summary Get session page content
|
|
621
|
+
* @param {string} sessionId
|
|
622
|
+
* @param {string} pageId
|
|
623
|
+
* @param {string} [format] Desired format for the page data
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
async v4CrawlSessionIdPagesPageIdGet(sessionId, pageId, format, options) {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdPagesPageIdGet(sessionId, pageId, format, options);
|
|
629
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
630
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdPagesPageIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
631
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
632
|
+
},
|
|
633
|
+
/**
|
|
634
|
+
* Get the current status of a crawling session
|
|
635
|
+
* @summary Get session status
|
|
636
|
+
* @param {string} sessionId
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
async v4CrawlSessionIdStatusGet(sessionId, options) {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdStatusGet(sessionId, options);
|
|
642
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
643
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdStatusGet"]?.[localVarOperationServerIndex]?.url;
|
|
644
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
645
|
+
},
|
|
646
|
+
/**
|
|
647
|
+
* Get paginated list of crawling sessions with optional filtering
|
|
648
|
+
* @summary List crawling sessions
|
|
649
|
+
* @param {number} [page] Page number
|
|
650
|
+
* @param {number} [pageSize] Items per page
|
|
651
|
+
* @param {string} [userId] Filter by user ID
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
async v4CrawlSessionsGet(page, pageSize, userId, options) {
|
|
656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionsGet(page, pageSize, userId, options);
|
|
657
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
658
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionsGet"]?.[localVarOperationServerIndex]?.url;
|
|
659
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
660
|
+
},
|
|
661
|
+
/**
|
|
662
|
+
* Start a new crawling session with an existing configuration
|
|
663
|
+
* @summary Start session
|
|
664
|
+
* @param {StartSessionWithConfigRequest} [startSessionWithConfigRequest] Body
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
async v4CrawlStartPost(startSessionWithConfigRequest, options) {
|
|
669
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlStartPost(startSessionWithConfigRequest, options);
|
|
670
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
671
|
+
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlStartPost"]?.[localVarOperationServerIndex]?.url;
|
|
672
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
var CrawlerApi = class extends BaseAPI {
|
|
677
|
+
/**
|
|
678
|
+
* Get file content from the crawling bucket (HTML or screenshot)
|
|
679
|
+
* @summary Get bucket data
|
|
680
|
+
* @param {CrawlerApiV4CrawlBucketDataFilenameb64GetRequest} requestParameters Request parameters.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
v4CrawlBucketDataFilenameb64Get(requestParameters, options) {
|
|
685
|
+
return CrawlerApiFp(this.configuration).v4CrawlBucketDataFilenameb64Get(requestParameters.filenameb64, requestParameters.contentType, requestParameters.cacheControl, options).then((request) => request(this.axios, this.basePath));
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Get a crawling configuration by ID
|
|
689
|
+
* @summary Get config
|
|
690
|
+
* @param {CrawlerApiV4CrawlConfigConfigIdGetRequest} requestParameters Request parameters.
|
|
691
|
+
* @param {*} [options] Override http request option.
|
|
692
|
+
* @throws {RequiredError}
|
|
693
|
+
*/
|
|
694
|
+
v4CrawlConfigConfigIdGet(requestParameters, options) {
|
|
695
|
+
return CrawlerApiFp(this.configuration).v4CrawlConfigConfigIdGet(requestParameters.configId, options).then((request) => request(this.axios, this.basePath));
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Delete a crawling configuration
|
|
699
|
+
* @summary Delete config
|
|
700
|
+
* @param {CrawlerApiV4CrawlConfigDeleteRequest} requestParameters Request parameters.
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
v4CrawlConfigDelete(requestParameters = {}, options) {
|
|
705
|
+
return CrawlerApiFp(this.configuration).v4CrawlConfigDelete(requestParameters.deleteCrawlerConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Create a new crawling configuration
|
|
709
|
+
* @summary Create config
|
|
710
|
+
* @param {CrawlerApiV4CrawlConfigPostRequest} requestParameters Request parameters.
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
v4CrawlConfigPost(requestParameters = {}, options) {
|
|
715
|
+
return CrawlerApiFp(this.configuration).v4CrawlConfigPost(requestParameters.createCrawlerConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Pause an active crawling session
|
|
719
|
+
* @summary Pause session
|
|
720
|
+
* @param {CrawlerApiV4CrawlPausePostRequest} requestParameters Request parameters.
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
*/
|
|
724
|
+
v4CrawlPausePost(requestParameters = {}, options) {
|
|
725
|
+
return CrawlerApiFp(this.configuration).v4CrawlPausePost(requestParameters.pauseCrawlerSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Create a crawling configuration and start a session in one operation (equivalent to v4/crawl)
|
|
729
|
+
* @summary Start crawl
|
|
730
|
+
* @param {CrawlerApiV4CrawlPostRequest} requestParameters Request parameters.
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
v4CrawlPost(requestParameters = {}, options) {
|
|
735
|
+
return CrawlerApiFp(this.configuration).v4CrawlPost(requestParameters.startCrawlerSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Resume a paused crawling session
|
|
739
|
+
* @summary Resume session
|
|
740
|
+
* @param {CrawlerApiV4CrawlResumePostRequest} requestParameters Request parameters.
|
|
741
|
+
* @param {*} [options] Override http request option.
|
|
742
|
+
* @throws {RequiredError}
|
|
743
|
+
*/
|
|
744
|
+
v4CrawlResumePost(requestParameters = {}, options) {
|
|
745
|
+
return CrawlerApiFp(this.configuration).v4CrawlResumePost(requestParameters.resumeCrawlerSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Get a complete list of all pages crawled in a session
|
|
749
|
+
* @summary Get session data list
|
|
750
|
+
* @param {CrawlerApiV4CrawlSessionIdListGetRequest} requestParameters Request parameters.
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
v4CrawlSessionIdListGet(requestParameters, options) {
|
|
755
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionIdListGet(requestParameters.sessionId, requestParameters.includeAll, options).then((request) => request(this.axios, this.basePath));
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Get a paginated list of pages for a crawling session
|
|
759
|
+
* @summary Get paginated session pages
|
|
760
|
+
* @param {CrawlerApiV4CrawlSessionIdPagesGetRequest} requestParameters Request parameters.
|
|
761
|
+
* @param {*} [options] Override http request option.
|
|
762
|
+
* @throws {RequiredError}
|
|
763
|
+
*/
|
|
764
|
+
v4CrawlSessionIdPagesGet(requestParameters, options) {
|
|
765
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionIdPagesGet(requestParameters.sessionId, requestParameters.currentPage, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Get the content of a specific page from a crawling session in HTML or Markdown format
|
|
769
|
+
* @summary Get session page content
|
|
770
|
+
* @param {CrawlerApiV4CrawlSessionIdPagesPageIdGetRequest} requestParameters Request parameters.
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
*/
|
|
774
|
+
v4CrawlSessionIdPagesPageIdGet(requestParameters, options) {
|
|
775
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionIdPagesPageIdGet(requestParameters.sessionId, requestParameters.pageId, requestParameters.format, options).then((request) => request(this.axios, this.basePath));
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Get the current status of a crawling session
|
|
779
|
+
* @summary Get session status
|
|
780
|
+
* @param {CrawlerApiV4CrawlSessionIdStatusGetRequest} requestParameters Request parameters.
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
v4CrawlSessionIdStatusGet(requestParameters, options) {
|
|
785
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionIdStatusGet(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Get paginated list of crawling sessions with optional filtering
|
|
789
|
+
* @summary List crawling sessions
|
|
790
|
+
* @param {CrawlerApiV4CrawlSessionsGetRequest} requestParameters Request parameters.
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
v4CrawlSessionsGet(requestParameters = {}, options) {
|
|
795
|
+
return CrawlerApiFp(this.configuration).v4CrawlSessionsGet(requestParameters.page, requestParameters.pageSize, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Start a new crawling session with an existing configuration
|
|
799
|
+
* @summary Start session
|
|
800
|
+
* @param {CrawlerApiV4CrawlStartPostRequest} requestParameters Request parameters.
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
v4CrawlStartPost(requestParameters = {}, options) {
|
|
805
|
+
return CrawlerApiFp(this.configuration).v4CrawlStartPost(requestParameters.startSessionWithConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
806
|
+
}
|
|
807
|
+
};
|
|
97
808
|
var DataValidationApiAxiosParamCreator = function(configuration) {
|
|
98
809
|
return {
|
|
99
810
|
/**
|
|
@@ -799,7 +1510,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
799
1510
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkApprovePost(bulkApproveRules, options);
|
|
800
1511
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
801
1512
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkApprovePost"]?.[localVarOperationServerIndex]?.url;
|
|
802
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1513
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
803
1514
|
},
|
|
804
1515
|
/**
|
|
805
1516
|
* Bulk delete rules for a workflow
|
|
@@ -811,7 +1522,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
811
1522
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkDeletePost(bulkDeleteRules, options);
|
|
812
1523
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
813
1524
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkDeletePost"]?.[localVarOperationServerIndex]?.url;
|
|
814
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1525
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
815
1526
|
},
|
|
816
1527
|
/**
|
|
817
1528
|
* Delete all validation rules with optional filtering
|
|
@@ -823,7 +1534,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
823
1534
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsDeleteAllDelete(deleteRuleWithReason, options);
|
|
824
1535
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
825
1536
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsDeleteAllDelete"]?.[localVarOperationServerIndex]?.url;
|
|
826
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1537
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
827
1538
|
},
|
|
828
1539
|
/**
|
|
829
1540
|
* Generate a validation rule
|
|
@@ -835,7 +1546,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
835
1546
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGeneratePost(generateRule, options);
|
|
836
1547
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
837
1548
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGeneratePost"]?.[localVarOperationServerIndex]?.url;
|
|
838
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1549
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
839
1550
|
},
|
|
840
1551
|
/**
|
|
841
1552
|
* Generate multiple validation rules
|
|
@@ -847,7 +1558,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
847
1558
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGenerateRulesPost(generateRules, options);
|
|
848
1559
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
849
1560
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGenerateRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
850
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1561
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
851
1562
|
},
|
|
852
1563
|
/**
|
|
853
1564
|
* List validation rules with optional filtering
|
|
@@ -864,7 +1575,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
864
1575
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesGet(groupId, workflowId, status, page, pageSize, includeDeleted, options);
|
|
865
1576
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
866
1577
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesGet"]?.[localVarOperationServerIndex]?.url;
|
|
867
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1578
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
868
1579
|
},
|
|
869
1580
|
/**
|
|
870
1581
|
* Create a new validation rule
|
|
@@ -876,7 +1587,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
876
1587
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesPost(createRule, options);
|
|
877
1588
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
878
1589
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
879
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1590
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
880
1591
|
},
|
|
881
1592
|
/**
|
|
882
1593
|
* Delete a validation rule with reason
|
|
@@ -889,7 +1600,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
889
1600
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDelete(ruleId, deleteRuleWithReason, options);
|
|
890
1601
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
891
1602
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
892
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1603
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
893
1604
|
},
|
|
894
1605
|
/**
|
|
895
1606
|
* Disable a validation rule with reason
|
|
@@ -902,7 +1613,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
902
1613
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDisablePost(ruleId, disableRule, options);
|
|
903
1614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
904
1615
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDisablePost"]?.[localVarOperationServerIndex]?.url;
|
|
905
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1616
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
906
1617
|
},
|
|
907
1618
|
/**
|
|
908
1619
|
* Get a validation rule by ID
|
|
@@ -915,7 +1626,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
915
1626
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdGet(ruleId, includeDeleted, options);
|
|
916
1627
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
917
1628
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
918
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1629
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
919
1630
|
},
|
|
920
1631
|
/**
|
|
921
1632
|
* Update a validation rule
|
|
@@ -928,7 +1639,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
928
1639
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdPut(ruleId, updateRule, options);
|
|
929
1640
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
930
1641
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
931
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1642
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
932
1643
|
},
|
|
933
1644
|
/**
|
|
934
1645
|
* Get all anomalies for a validation
|
|
@@ -943,7 +1654,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
943
1654
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesGet(validationId, page, pageSize, options);
|
|
944
1655
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
945
1656
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesGet"]?.[localVarOperationServerIndex]?.url;
|
|
946
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1657
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
947
1658
|
},
|
|
948
1659
|
/**
|
|
949
1660
|
* Get anomalies for a specific rule
|
|
@@ -959,7 +1670,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
959
1670
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(validationId, ruleName, page, pageSize, options);
|
|
960
1671
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
961
1672
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet"]?.[localVarOperationServerIndex]?.url;
|
|
962
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1673
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
963
1674
|
},
|
|
964
1675
|
/**
|
|
965
1676
|
* Get validation details
|
|
@@ -973,7 +1684,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
973
1684
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdGet(validationId, includeDryRun, options);
|
|
974
1685
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
975
1686
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
976
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1687
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
977
1688
|
},
|
|
978
1689
|
/**
|
|
979
1690
|
* Schedule a data validation job (alternative path)
|
|
@@ -988,7 +1699,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
988
1699
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
989
1700
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
990
1701
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
991
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1702
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
992
1703
|
},
|
|
993
1704
|
/**
|
|
994
1705
|
* Schedule a data validation job
|
|
@@ -1003,7 +1714,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1003
1714
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
1004
1715
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1005
1716
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
1006
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1717
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1007
1718
|
},
|
|
1008
1719
|
/**
|
|
1009
1720
|
* List all validations for a job
|
|
@@ -1020,7 +1731,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1020
1731
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(workflowId, jobId, page, pageSize, includeDryRun, options);
|
|
1021
1732
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1022
1733
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1023
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1734
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1024
1735
|
},
|
|
1025
1736
|
/**
|
|
1026
1737
|
* Get latest validation for a job
|
|
@@ -1035,7 +1746,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1035
1746
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(workflowId, jobId, includeDryRun, options);
|
|
1036
1747
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1037
1748
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1038
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1749
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1039
1750
|
},
|
|
1040
1751
|
/**
|
|
1041
1752
|
* Retrieves the current data validation configuration for a specific workflow
|
|
@@ -1048,7 +1759,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1048
1759
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigGet(workflowId, options);
|
|
1049
1760
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1050
1761
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigGet"]?.[localVarOperationServerIndex]?.url;
|
|
1051
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1762
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1052
1763
|
},
|
|
1053
1764
|
/**
|
|
1054
1765
|
* Updates the complete data validation configuration including alerting settings
|
|
@@ -1062,7 +1773,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1062
1773
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigPut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options);
|
|
1063
1774
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1064
1775
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigPut"]?.[localVarOperationServerIndex]?.url;
|
|
1065
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1776
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1066
1777
|
},
|
|
1067
1778
|
/**
|
|
1068
1779
|
* Enables or disables data validation for a specific workflow
|
|
@@ -1076,7 +1787,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1076
1787
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationTogglePut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options);
|
|
1077
1788
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1078
1789
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationTogglePut"]?.[localVarOperationServerIndex]?.url;
|
|
1079
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1790
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1080
1791
|
},
|
|
1081
1792
|
/**
|
|
1082
1793
|
* Get latest validation for the most recent job of a workflow
|
|
@@ -1090,7 +1801,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1090
1801
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(workflowId, includeDryRun, options);
|
|
1091
1802
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1092
1803
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1093
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1804
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1094
1805
|
}
|
|
1095
1806
|
};
|
|
1096
1807
|
};
|
|
@@ -1751,7 +2462,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1751
2462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdDelete(channelId, options);
|
|
1752
2463
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1753
2464
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1754
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2465
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1755
2466
|
},
|
|
1756
2467
|
/**
|
|
1757
2468
|
*
|
|
@@ -1765,7 +2476,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1765
2476
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdGet(channelId, includeConfigurations, options);
|
|
1766
2477
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1767
2478
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1768
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2479
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1769
2480
|
},
|
|
1770
2481
|
/**
|
|
1771
2482
|
*
|
|
@@ -1779,7 +2490,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1779
2490
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdPut(channelId, v5NotificationsChannelsPostRequest, options);
|
|
1780
2491
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1781
2492
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1782
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2493
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1783
2494
|
},
|
|
1784
2495
|
/**
|
|
1785
2496
|
*
|
|
@@ -1793,7 +2504,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1793
2504
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsGet(workflowId, includeConfigurations, options);
|
|
1794
2505
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1795
2506
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1796
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2507
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1797
2508
|
},
|
|
1798
2509
|
/**
|
|
1799
2510
|
*
|
|
@@ -1806,7 +2517,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1806
2517
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsPost(v5NotificationsChannelsPostRequest, options);
|
|
1807
2518
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1808
2519
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1809
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2520
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1810
2521
|
},
|
|
1811
2522
|
/**
|
|
1812
2523
|
*
|
|
@@ -1819,7 +2530,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1819
2530
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesEventTypeGet(eventType, options);
|
|
1820
2531
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1821
2532
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesEventTypeGet"]?.[localVarOperationServerIndex]?.url;
|
|
1822
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2533
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1823
2534
|
},
|
|
1824
2535
|
/**
|
|
1825
2536
|
*
|
|
@@ -1831,7 +2542,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1831
2542
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesGet(options);
|
|
1832
2543
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1833
2544
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1834
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2545
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1835
2546
|
},
|
|
1836
2547
|
/**
|
|
1837
2548
|
*
|
|
@@ -1849,7 +2560,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1849
2560
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsLogsGet(workflowId, eventType, startDate, endDate, limit, offset, options);
|
|
1850
2561
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1851
2562
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsLogsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1852
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2563
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1853
2564
|
},
|
|
1854
2565
|
/**
|
|
1855
2566
|
*
|
|
@@ -1863,7 +2574,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1863
2574
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsGet(workflowId, eventType, options);
|
|
1864
2575
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1865
2576
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1866
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2577
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1867
2578
|
},
|
|
1868
2579
|
/**
|
|
1869
2580
|
*
|
|
@@ -1876,7 +2587,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1876
2587
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsPost(v5NotificationsSettingsPostRequest, options);
|
|
1877
2588
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1878
2589
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1879
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2590
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1880
2591
|
},
|
|
1881
2592
|
/**
|
|
1882
2593
|
*
|
|
@@ -1889,7 +2600,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1889
2600
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdDelete(settingsId, options);
|
|
1890
2601
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1891
2602
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1892
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2603
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1893
2604
|
},
|
|
1894
2605
|
/**
|
|
1895
2606
|
*
|
|
@@ -1902,7 +2613,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1902
2613
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdGet(settingsId, options);
|
|
1903
2614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1904
2615
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1905
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2616
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1906
2617
|
},
|
|
1907
2618
|
/**
|
|
1908
2619
|
*
|
|
@@ -1916,7 +2627,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1916
2627
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdPut(settingsId, v5NotificationsSettingsSettingsIdPutRequest, options);
|
|
1917
2628
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1918
2629
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1919
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2630
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1920
2631
|
},
|
|
1921
2632
|
/**
|
|
1922
2633
|
*
|
|
@@ -1929,7 +2640,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1929
2640
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsTestPost(v5NotificationsTestPostRequest, options);
|
|
1930
2641
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1931
2642
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsTestPost"]?.[localVarOperationServerIndex]?.url;
|
|
1932
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2643
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1933
2644
|
}
|
|
1934
2645
|
};
|
|
1935
2646
|
};
|
|
@@ -2239,7 +2950,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2239
2950
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasGet(options);
|
|
2240
2951
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2241
2952
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasGet"]?.[localVarOperationServerIndex]?.url;
|
|
2242
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2953
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2243
2954
|
},
|
|
2244
2955
|
/**
|
|
2245
2956
|
* Create a new data schema with specified fields and entity type
|
|
@@ -2252,7 +2963,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2252
2963
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasPost(createSchemaBody, options);
|
|
2253
2964
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2254
2965
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasPost"]?.[localVarOperationServerIndex]?.url;
|
|
2255
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2966
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2256
2967
|
},
|
|
2257
2968
|
/**
|
|
2258
2969
|
* Delete a schema and all its revisions
|
|
@@ -2265,7 +2976,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2265
2976
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdDelete(schemaId, options);
|
|
2266
2977
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2267
2978
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
2268
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2979
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2269
2980
|
},
|
|
2270
2981
|
/**
|
|
2271
2982
|
* Retrieve a specific schema by its unique identifier
|
|
@@ -2278,7 +2989,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2278
2989
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdGet(schemaId, options);
|
|
2279
2990
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2280
2991
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
2281
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2992
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2282
2993
|
},
|
|
2283
2994
|
/**
|
|
2284
2995
|
* Update schema metadata or create a new revision with updated fields
|
|
@@ -2292,7 +3003,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2292
3003
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdPut(schemaId, updateSchemaBody, options);
|
|
2293
3004
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2294
3005
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
2295
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3006
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2296
3007
|
}
|
|
2297
3008
|
};
|
|
2298
3009
|
};
|
|
@@ -2395,10 +3106,11 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2395
3106
|
* @param {string} [endDate] End date to filter changes (ISO format)
|
|
2396
3107
|
* @param {number} [skip] Number of records to skip for pagination
|
|
2397
3108
|
* @param {number} [limit] Number of records to return for pagination
|
|
3109
|
+
* @param {string} [exclude] Comma-separated list of fields to exclude from each change object (e.g., \"data,differences\")
|
|
2398
3110
|
* @param {*} [options] Override http request option.
|
|
2399
3111
|
* @throws {RequiredError}
|
|
2400
3112
|
*/
|
|
2401
|
-
v4ChangesGet: async (xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options = {}) => {
|
|
3113
|
+
v4ChangesGet: async (xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, exclude, options = {}) => {
|
|
2402
3114
|
const localVarPath = `/v4/changes`;
|
|
2403
3115
|
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
2404
3116
|
let baseOptions;
|
|
@@ -2425,6 +3137,9 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2425
3137
|
if (limit !== void 0) {
|
|
2426
3138
|
localVarQueryParameter["limit"] = limit;
|
|
2427
3139
|
}
|
|
3140
|
+
if (exclude !== void 0) {
|
|
3141
|
+
localVarQueryParameter["exclude"] = exclude;
|
|
3142
|
+
}
|
|
2428
3143
|
if (xApiKey != null) {
|
|
2429
3144
|
localVarHeaderParameter["x-api-key"] = String(xApiKey);
|
|
2430
3145
|
}
|
|
@@ -2447,16 +3162,16 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2447
3162
|
* @param {number} [limit] Maximum number of items to return
|
|
2448
3163
|
* @param {V4WorkflowsGetStateEnum} [state] Filter workflows by state
|
|
2449
3164
|
* @param {Array<string>} [tags] Filter workflows by tags
|
|
3165
|
+
* @param {string} [userId] Filter workflows by user ID (team members only)
|
|
2450
3166
|
* @param {V4WorkflowsGetMonitoringEnum} [monitoring] Filter workflows by monitoring status
|
|
2451
3167
|
* @param {V4WorkflowsGetUpdateIntervalEnum} [updateInterval] Filter workflows by update interval
|
|
2452
3168
|
* @param {string} [templateId] Filter workflows by template ID (DEPRECATED - templates replaced by schemas)
|
|
2453
|
-
* @param {string} [userId] Filter workflows by user ID (only works in team context)
|
|
2454
3169
|
* @param {V4WorkflowsGetIncludeDeletedEnum} [includeDeleted] Include deleted workflows (for compliance officers)
|
|
2455
3170
|
* @param {V4WorkflowsGetFormatEnum} [format] Response format (json or csv for export)
|
|
2456
3171
|
* @param {*} [options] Override http request option.
|
|
2457
3172
|
* @throws {RequiredError}
|
|
2458
3173
|
*/
|
|
2459
|
-
v4WorkflowsGet: async (search, skip, limit, state, tags, monitoring, updateInterval, templateId,
|
|
3174
|
+
v4WorkflowsGet: async (search, skip, limit, state, tags, userId, monitoring, updateInterval, templateId, includeDeleted, format, options = {}) => {
|
|
2460
3175
|
const localVarPath = `/v4/workflows`;
|
|
2461
3176
|
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
2462
3177
|
let baseOptions;
|
|
@@ -2482,6 +3197,9 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2482
3197
|
if (tags) {
|
|
2483
3198
|
localVarQueryParameter["tags"] = tags;
|
|
2484
3199
|
}
|
|
3200
|
+
if (userId !== void 0) {
|
|
3201
|
+
localVarQueryParameter["userId"] = userId;
|
|
3202
|
+
}
|
|
2485
3203
|
if (monitoring !== void 0) {
|
|
2486
3204
|
localVarQueryParameter["monitoring"] = monitoring;
|
|
2487
3205
|
}
|
|
@@ -2491,9 +3209,6 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2491
3209
|
if (templateId !== void 0) {
|
|
2492
3210
|
localVarQueryParameter["templateId"] = templateId;
|
|
2493
3211
|
}
|
|
2494
|
-
if (userId !== void 0) {
|
|
2495
|
-
localVarQueryParameter["userId"] = userId;
|
|
2496
|
-
}
|
|
2497
3212
|
if (includeDeleted !== void 0) {
|
|
2498
3213
|
localVarQueryParameter["includeDeleted"] = includeDeleted;
|
|
2499
3214
|
}
|
|
@@ -2812,7 +3527,7 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2812
3527
|
};
|
|
2813
3528
|
},
|
|
2814
3529
|
/**
|
|
2815
|
-
*
|
|
3530
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
2816
3531
|
* @summary Get job status and telemetry
|
|
2817
3532
|
* @param {string} workflowId The ID of the workflow
|
|
2818
3533
|
* @param {string} jobId The ID of the job
|
|
@@ -3138,7 +3853,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3138
3853
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3139
3854
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3140
3855
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3141
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3856
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3142
3857
|
},
|
|
3143
3858
|
/**
|
|
3144
3859
|
*
|
|
@@ -3150,14 +3865,15 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3150
3865
|
* @param {string} [endDate] End date to filter changes (ISO format)
|
|
3151
3866
|
* @param {number} [skip] Number of records to skip for pagination
|
|
3152
3867
|
* @param {number} [limit] Number of records to return for pagination
|
|
3868
|
+
* @param {string} [exclude] Comma-separated list of fields to exclude from each change object (e.g., \"data,differences\")
|
|
3153
3869
|
* @param {*} [options] Override http request option.
|
|
3154
3870
|
* @throws {RequiredError}
|
|
3155
3871
|
*/
|
|
3156
|
-
async v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options) {
|
|
3157
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
3872
|
+
async v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, exclude, options) {
|
|
3873
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, exclude, options);
|
|
3158
3874
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3159
3875
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3160
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3876
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3161
3877
|
},
|
|
3162
3878
|
/**
|
|
3163
3879
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3167,20 +3883,20 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3167
3883
|
* @param {number} [limit] Maximum number of items to return
|
|
3168
3884
|
* @param {V4WorkflowsGetStateEnum} [state] Filter workflows by state
|
|
3169
3885
|
* @param {Array<string>} [tags] Filter workflows by tags
|
|
3886
|
+
* @param {string} [userId] Filter workflows by user ID (team members only)
|
|
3170
3887
|
* @param {V4WorkflowsGetMonitoringEnum} [monitoring] Filter workflows by monitoring status
|
|
3171
3888
|
* @param {V4WorkflowsGetUpdateIntervalEnum} [updateInterval] Filter workflows by update interval
|
|
3172
3889
|
* @param {string} [templateId] Filter workflows by template ID (DEPRECATED - templates replaced by schemas)
|
|
3173
|
-
* @param {string} [userId] Filter workflows by user ID (only works in team context)
|
|
3174
3890
|
* @param {V4WorkflowsGetIncludeDeletedEnum} [includeDeleted] Include deleted workflows (for compliance officers)
|
|
3175
3891
|
* @param {V4WorkflowsGetFormatEnum} [format] Response format (json or csv for export)
|
|
3176
3892
|
* @param {*} [options] Override http request option.
|
|
3177
3893
|
* @throws {RequiredError}
|
|
3178
3894
|
*/
|
|
3179
|
-
async v4WorkflowsGet(search, skip, limit, state, tags, monitoring, updateInterval, templateId,
|
|
3180
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, tags, monitoring, updateInterval, templateId,
|
|
3895
|
+
async v4WorkflowsGet(search, skip, limit, state, tags, userId, monitoring, updateInterval, templateId, includeDeleted, format, options) {
|
|
3896
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, tags, userId, monitoring, updateInterval, templateId, includeDeleted, format, options);
|
|
3181
3897
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3182
3898
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3183
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3899
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3184
3900
|
},
|
|
3185
3901
|
/**
|
|
3186
3902
|
* Create a new workflow with schema, custom fields, or agentic navigation mode
|
|
@@ -3193,7 +3909,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3193
3909
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsPost(createWorkflowBody, options);
|
|
3194
3910
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3195
3911
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsPost"]?.[localVarOperationServerIndex]?.url;
|
|
3196
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3912
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3197
3913
|
},
|
|
3198
3914
|
/**
|
|
3199
3915
|
*
|
|
@@ -3210,7 +3926,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3210
3926
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3211
3927
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3212
3928
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3213
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3929
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3214
3930
|
},
|
|
3215
3931
|
/**
|
|
3216
3932
|
*
|
|
@@ -3225,7 +3941,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3225
3941
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceApprovePut(workflowId, xApiKey, authorization, options);
|
|
3226
3942
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3227
3943
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceApprovePut"]?.[localVarOperationServerIndex]?.url;
|
|
3228
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3944
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3229
3945
|
},
|
|
3230
3946
|
/**
|
|
3231
3947
|
*
|
|
@@ -3241,7 +3957,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3241
3957
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceRejectPut(workflowId, v4WorkflowsWorkflowIdComplianceRejectPutRequest, xApiKey, authorization, options);
|
|
3242
3958
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3243
3959
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceRejectPut"]?.[localVarOperationServerIndex]?.url;
|
|
3244
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3960
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3245
3961
|
},
|
|
3246
3962
|
/**
|
|
3247
3963
|
*
|
|
@@ -3266,7 +3982,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3266
3982
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDataGet(workflowId, xApiKey, authorization, runId, format, sortBy, order, filters, page, limit, gzip, rowIds, includeAnomalies, options);
|
|
3267
3983
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3268
3984
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDataGet"]?.[localVarOperationServerIndex]?.url;
|
|
3269
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3985
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3270
3986
|
},
|
|
3271
3987
|
/**
|
|
3272
3988
|
*
|
|
@@ -3279,7 +3995,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3279
3995
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDelete(workflowId, options);
|
|
3280
3996
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3281
3997
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3282
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3998
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3283
3999
|
},
|
|
3284
4000
|
/**
|
|
3285
4001
|
* Retrieves detailed information about a specific workflow. This endpoint requires authentication and proper team access permissions.
|
|
@@ -3292,7 +4008,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3292
4008
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdGet(workflowId, options);
|
|
3293
4009
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3294
4010
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3295
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4011
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3296
4012
|
},
|
|
3297
4013
|
/**
|
|
3298
4014
|
*
|
|
@@ -3305,10 +4021,10 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3305
4021
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdHistoryGet(workflowId, options);
|
|
3306
4022
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3307
4023
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdHistoryGet"]?.[localVarOperationServerIndex]?.url;
|
|
3308
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4024
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3309
4025
|
},
|
|
3310
4026
|
/**
|
|
3311
|
-
*
|
|
4027
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
3312
4028
|
* @summary Get job status and telemetry
|
|
3313
4029
|
* @param {string} workflowId The ID of the workflow
|
|
3314
4030
|
* @param {string} jobId The ID of the job
|
|
@@ -3319,7 +4035,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3319
4035
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdJobsJobIdGet(workflowId, jobId, options);
|
|
3320
4036
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3321
4037
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdJobsJobIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3322
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4038
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3323
4039
|
},
|
|
3324
4040
|
/**
|
|
3325
4041
|
*
|
|
@@ -3333,7 +4049,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3333
4049
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdMetadataPut(workflowId, v4WorkflowsWorkflowIdMetadataPutRequest, options);
|
|
3334
4050
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3335
4051
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdMetadataPut"]?.[localVarOperationServerIndex]?.url;
|
|
3336
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4052
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3337
4053
|
},
|
|
3338
4054
|
/**
|
|
3339
4055
|
*
|
|
@@ -3346,7 +4062,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3346
4062
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdPausePut(workflowId, options);
|
|
3347
4063
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3348
4064
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdPausePut"]?.[localVarOperationServerIndex]?.url;
|
|
3349
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4065
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3350
4066
|
},
|
|
3351
4067
|
/**
|
|
3352
4068
|
* 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.
|
|
@@ -3359,7 +4075,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3359
4075
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdResumePut(workflowId, options);
|
|
3360
4076
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3361
4077
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdResumePut"]?.[localVarOperationServerIndex]?.url;
|
|
3362
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4078
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3363
4079
|
},
|
|
3364
4080
|
/**
|
|
3365
4081
|
*
|
|
@@ -3373,7 +4089,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3373
4089
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdRunPut(workflowId, v4WorkflowsWorkflowIdRunPutRequest, options);
|
|
3374
4090
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3375
4091
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdRunPut"]?.[localVarOperationServerIndex]?.url;
|
|
3376
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4092
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3377
4093
|
},
|
|
3378
4094
|
/**
|
|
3379
4095
|
*
|
|
@@ -3387,7 +4103,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3387
4103
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdSchedulePut(workflowId, v4WorkflowsWorkflowIdSchedulePutRequest, options);
|
|
3388
4104
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3389
4105
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdSchedulePut"]?.[localVarOperationServerIndex]?.url;
|
|
3390
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4106
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3391
4107
|
},
|
|
3392
4108
|
/**
|
|
3393
4109
|
*
|
|
@@ -3402,7 +4118,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3402
4118
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3403
4119
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3404
4120
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3405
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4121
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3406
4122
|
},
|
|
3407
4123
|
/**
|
|
3408
4124
|
*
|
|
@@ -3421,7 +4137,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3421
4137
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
3422
4138
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3423
4139
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3424
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4140
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3425
4141
|
},
|
|
3426
4142
|
/**
|
|
3427
4143
|
*
|
|
@@ -3438,7 +4154,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3438
4154
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3439
4155
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3440
4156
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3441
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4157
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3442
4158
|
}
|
|
3443
4159
|
};
|
|
3444
4160
|
};
|
|
@@ -3461,7 +4177,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3461
4177
|
* @throws {RequiredError}
|
|
3462
4178
|
*/
|
|
3463
4179
|
v4ChangesGet(requestParameters = {}, options) {
|
|
3464
|
-
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));
|
|
4180
|
+
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));
|
|
3465
4181
|
}
|
|
3466
4182
|
/**
|
|
3467
4183
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3471,7 +4187,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3471
4187
|
* @throws {RequiredError}
|
|
3472
4188
|
*/
|
|
3473
4189
|
v4WorkflowsGet(requestParameters = {}, options) {
|
|
3474
|
-
return WorkflowsApiFp(this.configuration).v4WorkflowsGet(requestParameters.search, requestParameters.skip, requestParameters.limit, requestParameters.state, requestParameters.tags, requestParameters.
|
|
4190
|
+
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));
|
|
3475
4191
|
}
|
|
3476
4192
|
/**
|
|
3477
4193
|
* Create a new workflow with schema, custom fields, or agentic navigation mode
|
|
@@ -3554,7 +4270,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3554
4270
|
return WorkflowsApiFp(this.configuration).v4WorkflowsWorkflowIdHistoryGet(requestParameters.workflowId, options).then((request) => request(this.axios, this.basePath));
|
|
3555
4271
|
}
|
|
3556
4272
|
/**
|
|
3557
|
-
*
|
|
4273
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
3558
4274
|
* @summary Get job status and telemetry
|
|
3559
4275
|
* @param {WorkflowsApiV4WorkflowsWorkflowIdJobsJobIdGetRequest} requestParameters Request parameters.
|
|
3560
4276
|
* @param {*} [options] Override http request option.
|
|
@@ -3974,7 +4690,7 @@ var KadoaHttpException = class _KadoaHttpException extends KadoaSdkException {
|
|
|
3974
4690
|
static wrap(error, extra) {
|
|
3975
4691
|
if (error instanceof _KadoaHttpException) return error;
|
|
3976
4692
|
if (error instanceof KadoaSdkException) return error;
|
|
3977
|
-
if (
|
|
4693
|
+
if (globalAxios3.isAxiosError(error)) {
|
|
3978
4694
|
return _KadoaHttpException.fromAxiosError(error, extra);
|
|
3979
4695
|
}
|
|
3980
4696
|
return KadoaSdkException.wrap(error, extra);
|
|
@@ -4017,13 +4733,6 @@ var _SchemaBuilder = class _SchemaBuilder {
|
|
|
4017
4733
|
this.entityName = entityName;
|
|
4018
4734
|
return this;
|
|
4019
4735
|
}
|
|
4020
|
-
/**
|
|
4021
|
-
* Add a structured field to the schema
|
|
4022
|
-
* @param name - Field name (alphanumeric only)
|
|
4023
|
-
* @param description - Field description
|
|
4024
|
-
* @param dataType - Data type (STRING, NUMBER, BOOLEAN, etc.)
|
|
4025
|
-
* @param options - Optional field configuration
|
|
4026
|
-
*/
|
|
4027
4736
|
field(name, description, dataType, options) {
|
|
4028
4737
|
this.validateFieldName(name);
|
|
4029
4738
|
const requiresExample = _SchemaBuilder.TYPES_REQUIRING_EXAMPLE.includes(dataType);
|
|
@@ -4823,13 +5532,33 @@ var NotificationChannelType = {
|
|
|
4823
5532
|
};
|
|
4824
5533
|
|
|
4825
5534
|
// src/domains/notifications/notification-channels.service.ts
|
|
4826
|
-
var
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
"
|
|
4831
|
-
|
|
4832
|
-
|
|
5535
|
+
var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
5536
|
+
function validateEmailChannelConfig(config) {
|
|
5537
|
+
const issues = [];
|
|
5538
|
+
if (!config.recipients?.length) {
|
|
5539
|
+
issues.push({ message: "Recipients are required for email channel" });
|
|
5540
|
+
} else {
|
|
5541
|
+
for (const email of config.recipients) {
|
|
5542
|
+
if (!EMAIL_REGEX.test(email)) {
|
|
5543
|
+
issues.push({ message: `Invalid email address: ${email}` });
|
|
5544
|
+
}
|
|
5545
|
+
}
|
|
5546
|
+
}
|
|
5547
|
+
if (config.from !== void 0) {
|
|
5548
|
+
if (!EMAIL_REGEX.test(config.from)) {
|
|
5549
|
+
issues.push({ message: `Invalid from email address: ${config.from}` });
|
|
5550
|
+
} else if (!config.from.endsWith("@kadoa.com")) {
|
|
5551
|
+
issues.push({ message: "From email address must end with @kadoa.com" });
|
|
5552
|
+
}
|
|
5553
|
+
}
|
|
5554
|
+
if (issues.length > 0) {
|
|
5555
|
+
throw new KadoaSdkException("Invalid email channel config", {
|
|
5556
|
+
code: KadoaErrorCode.VALIDATION_ERROR,
|
|
5557
|
+
details: { issues }
|
|
5558
|
+
});
|
|
5559
|
+
}
|
|
5560
|
+
return config;
|
|
5561
|
+
}
|
|
4833
5562
|
var _NotificationChannelsService = class _NotificationChannelsService {
|
|
4834
5563
|
constructor(notificationsApi, userService) {
|
|
4835
5564
|
this.api = notificationsApi;
|
|
@@ -4939,16 +5668,7 @@ var _NotificationChannelsService = class _NotificationChannelsService {
|
|
|
4939
5668
|
recipients = [user.email];
|
|
4940
5669
|
}
|
|
4941
5670
|
const config = esToolkit.merge(defaults, { recipients });
|
|
4942
|
-
|
|
4943
|
-
if (!result.success) {
|
|
4944
|
-
throw new KadoaSdkException(`Invalid email channel config`, {
|
|
4945
|
-
code: KadoaErrorCode.VALIDATION_ERROR,
|
|
4946
|
-
details: {
|
|
4947
|
-
issues: result.error.issues
|
|
4948
|
-
}
|
|
4949
|
-
});
|
|
4950
|
-
}
|
|
4951
|
-
return result.data;
|
|
5671
|
+
return validateEmailChannelConfig(config);
|
|
4952
5672
|
}
|
|
4953
5673
|
async buildSlackChannelConfig(defaults) {
|
|
4954
5674
|
return defaults;
|
|
@@ -5235,7 +5955,7 @@ var WSS_API_URI = process.env.KADOA_WSS_API_URI ?? "wss://realtime.kadoa.com";
|
|
|
5235
5955
|
var REALTIME_API_URI = process.env.KADOA_REALTIME_API_URI ?? "https://realtime.kadoa.com";
|
|
5236
5956
|
|
|
5237
5957
|
// src/version.ts
|
|
5238
|
-
var SDK_VERSION = "0.19.
|
|
5958
|
+
var SDK_VERSION = "0.19.3";
|
|
5239
5959
|
var SDK_NAME = "kadoa-node-sdk";
|
|
5240
5960
|
var SDK_LANGUAGE = "node";
|
|
5241
5961
|
|
|
@@ -5447,7 +6167,7 @@ var UserService = class {
|
|
|
5447
6167
|
|
|
5448
6168
|
// src/runtime/utils/polling.ts
|
|
5449
6169
|
var DEFAULT_POLLING_OPTIONS = {
|
|
5450
|
-
pollIntervalMs:
|
|
6170
|
+
pollIntervalMs: 1e4,
|
|
5451
6171
|
timeoutMs: 5 * 60 * 1e3
|
|
5452
6172
|
};
|
|
5453
6173
|
var POLLING_ERROR_CODES = {
|
|
@@ -5459,7 +6179,7 @@ async function pollUntil(pollFn, isComplete, options = {}) {
|
|
|
5459
6179
|
...DEFAULT_POLLING_OPTIONS,
|
|
5460
6180
|
...options
|
|
5461
6181
|
};
|
|
5462
|
-
const pollInterval = Math.max(
|
|
6182
|
+
const pollInterval = Math.max(1e4, internalOptions.pollIntervalMs);
|
|
5463
6183
|
const timeoutMs = internalOptions.timeoutMs;
|
|
5464
6184
|
const start = Date.now();
|
|
5465
6185
|
let attempts = 0;
|
|
@@ -5538,7 +6258,7 @@ async function checkForUpdates() {
|
|
|
5538
6258
|
`\u26A0\uFE0F A new version of ${SDK_NAME} is available: ${latestVersion} (current: ${SDK_VERSION}). Update with: npm install ${PACKAGE_NAME}@latest`
|
|
5539
6259
|
);
|
|
5540
6260
|
}
|
|
5541
|
-
} catch
|
|
6261
|
+
} catch {
|
|
5542
6262
|
}
|
|
5543
6263
|
}
|
|
5544
6264
|
function isNewerVersion(version1, version2) {
|
|
@@ -5929,15 +6649,6 @@ var WorkflowsCoreService = class {
|
|
|
5929
6649
|
});
|
|
5930
6650
|
return response.data?.workflows?.[0];
|
|
5931
6651
|
}
|
|
5932
|
-
/**
|
|
5933
|
-
* @deprecated Use delete(id) instead.
|
|
5934
|
-
*/
|
|
5935
|
-
async cancel(id) {
|
|
5936
|
-
console.warn(
|
|
5937
|
-
"[Kadoa SDK] workflow.cancel(id) will be deprecated. Use workflow.delete(id)."
|
|
5938
|
-
);
|
|
5939
|
-
await this.delete(id);
|
|
5940
|
-
}
|
|
5941
6652
|
async delete(id) {
|
|
5942
6653
|
await this.workflowsApi.v4WorkflowsWorkflowIdDelete({
|
|
5943
6654
|
workflowId: id
|
|
@@ -5960,19 +6671,10 @@ var WorkflowsCoreService = class {
|
|
|
5960
6671
|
* Wait for a workflow to reach the target state or a terminal state if no target state is provided
|
|
5961
6672
|
*/
|
|
5962
6673
|
async wait(id, options) {
|
|
5963
|
-
let last;
|
|
5964
6674
|
const result = await pollUntil(
|
|
5965
6675
|
async () => {
|
|
5966
6676
|
const current = await this.get(id);
|
|
5967
|
-
|
|
5968
|
-
debug6(
|
|
5969
|
-
"workflow %s state: [workflowState: %s, jobState: %s]",
|
|
5970
|
-
id,
|
|
5971
|
-
current.state,
|
|
5972
|
-
current.runState
|
|
5973
|
-
);
|
|
5974
|
-
}
|
|
5975
|
-
last = current;
|
|
6677
|
+
debug6("workflow %s state: %s", id, current.runState);
|
|
5976
6678
|
return current;
|
|
5977
6679
|
},
|
|
5978
6680
|
(current) => {
|
|
@@ -6028,14 +6730,10 @@ var WorkflowsCoreService = class {
|
|
|
6028
6730
|
* Wait for a job to reach the target state or a terminal state
|
|
6029
6731
|
*/
|
|
6030
6732
|
async waitForJobCompletion(workflowId, jobId, options) {
|
|
6031
|
-
let last;
|
|
6032
6733
|
const result = await pollUntil(
|
|
6033
6734
|
async () => {
|
|
6034
6735
|
const current = await this.getJobStatus(workflowId, jobId);
|
|
6035
|
-
|
|
6036
|
-
debug6("job %s state: %s", jobId, current.state);
|
|
6037
|
-
}
|
|
6038
|
-
last = current;
|
|
6736
|
+
debug6("workflow run %s state: %s", jobId, current.state);
|
|
6039
6737
|
return current;
|
|
6040
6738
|
},
|
|
6041
6739
|
(current) => {
|
|
@@ -6053,6 +6751,131 @@ var WorkflowsCoreService = class {
|
|
|
6053
6751
|
}
|
|
6054
6752
|
};
|
|
6055
6753
|
|
|
6754
|
+
// src/domains/crawler/crawler-config.service.ts
|
|
6755
|
+
var CrawlerConfigService = class {
|
|
6756
|
+
constructor(client) {
|
|
6757
|
+
this.client = client;
|
|
6758
|
+
this._api = null;
|
|
6759
|
+
}
|
|
6760
|
+
get api() {
|
|
6761
|
+
if (!this._api) {
|
|
6762
|
+
this._api = new CrawlerApi(
|
|
6763
|
+
this.client.configuration,
|
|
6764
|
+
this.client.baseUrl,
|
|
6765
|
+
this.client.axiosInstance
|
|
6766
|
+
);
|
|
6767
|
+
}
|
|
6768
|
+
return this._api;
|
|
6769
|
+
}
|
|
6770
|
+
async createConfig(body) {
|
|
6771
|
+
const response = await this.api.v4CrawlConfigPost({
|
|
6772
|
+
createCrawlerConfigRequest: body
|
|
6773
|
+
});
|
|
6774
|
+
return response.data;
|
|
6775
|
+
}
|
|
6776
|
+
async getConfig(configId) {
|
|
6777
|
+
const response = await this.api.v4CrawlConfigConfigIdGet({ configId });
|
|
6778
|
+
return response.data;
|
|
6779
|
+
}
|
|
6780
|
+
async deleteConfig(configId) {
|
|
6781
|
+
const response = await this.api.v4CrawlConfigDelete({
|
|
6782
|
+
deleteCrawlerConfigRequest: { configId }
|
|
6783
|
+
});
|
|
6784
|
+
return response.data;
|
|
6785
|
+
}
|
|
6786
|
+
};
|
|
6787
|
+
|
|
6788
|
+
// src/domains/crawler/crawler-session.service.ts
|
|
6789
|
+
var CrawlerSessionService = class {
|
|
6790
|
+
constructor(client) {
|
|
6791
|
+
this.client = client;
|
|
6792
|
+
this._api = null;
|
|
6793
|
+
}
|
|
6794
|
+
get api() {
|
|
6795
|
+
if (!this._api) {
|
|
6796
|
+
this._api = new CrawlerApi(
|
|
6797
|
+
this.client.configuration,
|
|
6798
|
+
this.client.baseUrl,
|
|
6799
|
+
this.client.axiosInstance
|
|
6800
|
+
);
|
|
6801
|
+
}
|
|
6802
|
+
return this._api;
|
|
6803
|
+
}
|
|
6804
|
+
async start(body) {
|
|
6805
|
+
const response = await this.api.v4CrawlPost({
|
|
6806
|
+
startCrawlerSessionRequest: body
|
|
6807
|
+
});
|
|
6808
|
+
return response.data;
|
|
6809
|
+
}
|
|
6810
|
+
async startWithConfig(body) {
|
|
6811
|
+
const response = await this.api.v4CrawlStartPost({
|
|
6812
|
+
startSessionWithConfigRequest: body
|
|
6813
|
+
});
|
|
6814
|
+
return response.data;
|
|
6815
|
+
}
|
|
6816
|
+
async pause(sessionId) {
|
|
6817
|
+
const response = await this.api.v4CrawlPausePost({
|
|
6818
|
+
pauseCrawlerSessionRequest: { sessionId }
|
|
6819
|
+
});
|
|
6820
|
+
return response.data;
|
|
6821
|
+
}
|
|
6822
|
+
async resume(sessionId) {
|
|
6823
|
+
const response = await this.api.v4CrawlResumePost({
|
|
6824
|
+
resumeCrawlerSessionRequest: { sessionId }
|
|
6825
|
+
});
|
|
6826
|
+
return response.data;
|
|
6827
|
+
}
|
|
6828
|
+
async listSessions(options) {
|
|
6829
|
+
const response = await this.api.v4CrawlSessionsGet({
|
|
6830
|
+
page: options?.page,
|
|
6831
|
+
pageSize: options?.pageSize,
|
|
6832
|
+
userId: options?.userId
|
|
6833
|
+
});
|
|
6834
|
+
return response.data.data ?? [];
|
|
6835
|
+
}
|
|
6836
|
+
async getSessionStatus(sessionId) {
|
|
6837
|
+
const response = await this.api.v4CrawlSessionIdStatusGet({ sessionId });
|
|
6838
|
+
return response.data;
|
|
6839
|
+
}
|
|
6840
|
+
async getPages(sessionId, options) {
|
|
6841
|
+
const response = await this.api.v4CrawlSessionIdPagesGet({
|
|
6842
|
+
sessionId,
|
|
6843
|
+
currentPage: options?.currentPage,
|
|
6844
|
+
pageSize: options?.pageSize
|
|
6845
|
+
});
|
|
6846
|
+
return response.data;
|
|
6847
|
+
}
|
|
6848
|
+
async getPage(sessionId, pageId, options) {
|
|
6849
|
+
const response = await this.api.v4CrawlSessionIdPagesPageIdGet({
|
|
6850
|
+
sessionId,
|
|
6851
|
+
pageId,
|
|
6852
|
+
format: options?.format
|
|
6853
|
+
});
|
|
6854
|
+
return response.data;
|
|
6855
|
+
}
|
|
6856
|
+
async getAllSessionData(sessionId, options) {
|
|
6857
|
+
const response = await this.api.v4CrawlSessionIdListGet({
|
|
6858
|
+
sessionId,
|
|
6859
|
+
includeAll: options?.includeAll
|
|
6860
|
+
});
|
|
6861
|
+
return response.data;
|
|
6862
|
+
}
|
|
6863
|
+
async getBucketFile(filenameb64) {
|
|
6864
|
+
const response = await this.api.v4CrawlBucketDataFilenameb64Get({
|
|
6865
|
+
filenameb64
|
|
6866
|
+
});
|
|
6867
|
+
return response.data;
|
|
6868
|
+
}
|
|
6869
|
+
};
|
|
6870
|
+
|
|
6871
|
+
// src/domains/crawler/crawler.facade.ts
|
|
6872
|
+
function createCrawlerDomain(client) {
|
|
6873
|
+
return {
|
|
6874
|
+
config: new CrawlerConfigService(client),
|
|
6875
|
+
session: new CrawlerSessionService(client)
|
|
6876
|
+
};
|
|
6877
|
+
}
|
|
6878
|
+
|
|
6056
6879
|
// src/domains/validation/validation.facade.ts
|
|
6057
6880
|
function createValidationDomain(core, rules) {
|
|
6058
6881
|
return {
|
|
@@ -6086,7 +6909,7 @@ var KadoaClient = class {
|
|
|
6086
6909
|
headers
|
|
6087
6910
|
}
|
|
6088
6911
|
});
|
|
6089
|
-
this._axiosInstance =
|
|
6912
|
+
this._axiosInstance = globalAxios3__default.default.create({
|
|
6090
6913
|
timeout: this._timeout,
|
|
6091
6914
|
headers
|
|
6092
6915
|
});
|
|
@@ -6105,7 +6928,7 @@ var KadoaClient = class {
|
|
|
6105
6928
|
return response;
|
|
6106
6929
|
},
|
|
6107
6930
|
(error) => {
|
|
6108
|
-
if (error instanceof
|
|
6931
|
+
if (error instanceof globalAxios3.AxiosError) {
|
|
6109
6932
|
const status = error.response?.status;
|
|
6110
6933
|
if (status === 400) {
|
|
6111
6934
|
throw KadoaHttpException.wrap(error);
|
|
@@ -6167,6 +6990,7 @@ var KadoaClient = class {
|
|
|
6167
6990
|
setupForWorkspace: (request) => channelSetupService.setupForWorkspace(request)
|
|
6168
6991
|
};
|
|
6169
6992
|
this.validation = createValidationDomain(coreService, rulesService);
|
|
6993
|
+
this.crawler = createCrawlerDomain(this);
|
|
6170
6994
|
if (config.enableRealtime && config.realtimeConfig?.autoConnect !== false) {
|
|
6171
6995
|
this.connectRealtime();
|
|
6172
6996
|
}
|