@kadoa/node-sdk 0.19.3 → 0.19.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/index.global.js +9 -9
- package/dist/browser/index.global.js.map +1 -1
- package/dist/index.d.mts +1703 -512
- package/dist/index.d.ts +1703 -512
- package/dist/index.js +935 -119
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +932 -116
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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');
|
|
@@ -9,7 +9,7 @@ var uuid = require('uuid');
|
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var globalAxios3__default = /*#__PURE__*/_interopDefault(globalAxios3);
|
|
13
13
|
var createDebug__default = /*#__PURE__*/_interopDefault(createDebug);
|
|
14
14
|
var assert__default = /*#__PURE__*/_interopDefault(assert);
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
21
21
|
});
|
|
22
22
|
var BASE_PATH = "https://api.kadoa.com".replace(/\/+$/, "");
|
|
23
23
|
var BaseAPI = class {
|
|
24
|
-
constructor(configuration, basePath = BASE_PATH, axios2 =
|
|
24
|
+
constructor(configuration, basePath = BASE_PATH, axios2 = globalAxios3__default.default) {
|
|
25
25
|
this.basePath = basePath;
|
|
26
26
|
this.axios = axios2;
|
|
27
27
|
if (configuration) {
|
|
@@ -87,12 +87,724 @@ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
|
87
87
|
var toPathString = function(url) {
|
|
88
88
|
return url.pathname + url.search + url.hash;
|
|
89
89
|
};
|
|
90
|
-
var createRequestFunction = function(axiosArgs,
|
|
91
|
-
return (axios2 =
|
|
90
|
+
var createRequestFunction = function(axiosArgs, globalAxios7, BASE_PATH2, configuration) {
|
|
91
|
+
return (axios2 = globalAxios7, basePath = BASE_PATH2) => {
|
|
92
92
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
93
93
|
return axios2.request(axiosRequestArgs);
|
|
94
94
|
};
|
|
95
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
|
+
};
|
|
96
808
|
var DataValidationApiAxiosParamCreator = function(configuration) {
|
|
97
809
|
return {
|
|
98
810
|
/**
|
|
@@ -798,7 +1510,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
798
1510
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkApprovePost(bulkApproveRules, options);
|
|
799
1511
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
800
1512
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkApprovePost"]?.[localVarOperationServerIndex]?.url;
|
|
801
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1513
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
802
1514
|
},
|
|
803
1515
|
/**
|
|
804
1516
|
* Bulk delete rules for a workflow
|
|
@@ -810,7 +1522,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
810
1522
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkDeletePost(bulkDeleteRules, options);
|
|
811
1523
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
812
1524
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkDeletePost"]?.[localVarOperationServerIndex]?.url;
|
|
813
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1525
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
814
1526
|
},
|
|
815
1527
|
/**
|
|
816
1528
|
* Delete all validation rules with optional filtering
|
|
@@ -822,7 +1534,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
822
1534
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsDeleteAllDelete(deleteRuleWithReason, options);
|
|
823
1535
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
824
1536
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsDeleteAllDelete"]?.[localVarOperationServerIndex]?.url;
|
|
825
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1537
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
826
1538
|
},
|
|
827
1539
|
/**
|
|
828
1540
|
* Generate a validation rule
|
|
@@ -834,7 +1546,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
834
1546
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGeneratePost(generateRule, options);
|
|
835
1547
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
836
1548
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGeneratePost"]?.[localVarOperationServerIndex]?.url;
|
|
837
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1549
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
838
1550
|
},
|
|
839
1551
|
/**
|
|
840
1552
|
* Generate multiple validation rules
|
|
@@ -846,7 +1558,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
846
1558
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGenerateRulesPost(generateRules, options);
|
|
847
1559
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
848
1560
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGenerateRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
849
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1561
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
850
1562
|
},
|
|
851
1563
|
/**
|
|
852
1564
|
* List validation rules with optional filtering
|
|
@@ -863,7 +1575,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
863
1575
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesGet(groupId, workflowId, status, page, pageSize, includeDeleted, options);
|
|
864
1576
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
865
1577
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesGet"]?.[localVarOperationServerIndex]?.url;
|
|
866
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1578
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
867
1579
|
},
|
|
868
1580
|
/**
|
|
869
1581
|
* Create a new validation rule
|
|
@@ -875,7 +1587,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
875
1587
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesPost(createRule, options);
|
|
876
1588
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
877
1589
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
878
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1590
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
879
1591
|
},
|
|
880
1592
|
/**
|
|
881
1593
|
* Delete a validation rule with reason
|
|
@@ -888,7 +1600,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
888
1600
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDelete(ruleId, deleteRuleWithReason, options);
|
|
889
1601
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
890
1602
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
891
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1603
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
892
1604
|
},
|
|
893
1605
|
/**
|
|
894
1606
|
* Disable a validation rule with reason
|
|
@@ -901,7 +1613,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
901
1613
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDisablePost(ruleId, disableRule, options);
|
|
902
1614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
903
1615
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDisablePost"]?.[localVarOperationServerIndex]?.url;
|
|
904
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1616
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
905
1617
|
},
|
|
906
1618
|
/**
|
|
907
1619
|
* Get a validation rule by ID
|
|
@@ -914,7 +1626,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
914
1626
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdGet(ruleId, includeDeleted, options);
|
|
915
1627
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
916
1628
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
917
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1629
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
918
1630
|
},
|
|
919
1631
|
/**
|
|
920
1632
|
* Update a validation rule
|
|
@@ -927,7 +1639,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
927
1639
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdPut(ruleId, updateRule, options);
|
|
928
1640
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
929
1641
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
930
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1642
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
931
1643
|
},
|
|
932
1644
|
/**
|
|
933
1645
|
* Get all anomalies for a validation
|
|
@@ -942,7 +1654,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
942
1654
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesGet(validationId, page, pageSize, options);
|
|
943
1655
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
944
1656
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesGet"]?.[localVarOperationServerIndex]?.url;
|
|
945
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1657
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
946
1658
|
},
|
|
947
1659
|
/**
|
|
948
1660
|
* Get anomalies for a specific rule
|
|
@@ -958,7 +1670,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
958
1670
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(validationId, ruleName, page, pageSize, options);
|
|
959
1671
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
960
1672
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet"]?.[localVarOperationServerIndex]?.url;
|
|
961
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1673
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
962
1674
|
},
|
|
963
1675
|
/**
|
|
964
1676
|
* Get validation details
|
|
@@ -972,7 +1684,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
972
1684
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdGet(validationId, includeDryRun, options);
|
|
973
1685
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
974
1686
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
975
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1687
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
976
1688
|
},
|
|
977
1689
|
/**
|
|
978
1690
|
* Schedule a data validation job (alternative path)
|
|
@@ -987,7 +1699,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
987
1699
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
988
1700
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
989
1701
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
990
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1702
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
991
1703
|
},
|
|
992
1704
|
/**
|
|
993
1705
|
* Schedule a data validation job
|
|
@@ -1002,7 +1714,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1002
1714
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
1003
1715
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1004
1716
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
1005
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1717
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1006
1718
|
},
|
|
1007
1719
|
/**
|
|
1008
1720
|
* List all validations for a job
|
|
@@ -1019,7 +1731,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1019
1731
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(workflowId, jobId, page, pageSize, includeDryRun, options);
|
|
1020
1732
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1021
1733
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1022
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1734
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1023
1735
|
},
|
|
1024
1736
|
/**
|
|
1025
1737
|
* Get latest validation for a job
|
|
@@ -1034,7 +1746,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1034
1746
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(workflowId, jobId, includeDryRun, options);
|
|
1035
1747
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1036
1748
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1037
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1749
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1038
1750
|
},
|
|
1039
1751
|
/**
|
|
1040
1752
|
* Retrieves the current data validation configuration for a specific workflow
|
|
@@ -1047,7 +1759,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1047
1759
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigGet(workflowId, options);
|
|
1048
1760
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1049
1761
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigGet"]?.[localVarOperationServerIndex]?.url;
|
|
1050
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1762
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1051
1763
|
},
|
|
1052
1764
|
/**
|
|
1053
1765
|
* Updates the complete data validation configuration including alerting settings
|
|
@@ -1061,7 +1773,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1061
1773
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigPut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options);
|
|
1062
1774
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1063
1775
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigPut"]?.[localVarOperationServerIndex]?.url;
|
|
1064
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1776
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1065
1777
|
},
|
|
1066
1778
|
/**
|
|
1067
1779
|
* Enables or disables data validation for a specific workflow
|
|
@@ -1075,7 +1787,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1075
1787
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationTogglePut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options);
|
|
1076
1788
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1077
1789
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationTogglePut"]?.[localVarOperationServerIndex]?.url;
|
|
1078
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1790
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1079
1791
|
},
|
|
1080
1792
|
/**
|
|
1081
1793
|
* Get latest validation for the most recent job of a workflow
|
|
@@ -1089,7 +1801,7 @@ var DataValidationApiFp = function(configuration) {
|
|
|
1089
1801
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(workflowId, includeDryRun, options);
|
|
1090
1802
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1091
1803
|
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1092
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
1804
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1093
1805
|
}
|
|
1094
1806
|
};
|
|
1095
1807
|
};
|
|
@@ -1750,7 +2462,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1750
2462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdDelete(channelId, options);
|
|
1751
2463
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1752
2464
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1753
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2465
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1754
2466
|
},
|
|
1755
2467
|
/**
|
|
1756
2468
|
*
|
|
@@ -1764,7 +2476,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1764
2476
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdGet(channelId, includeConfigurations, options);
|
|
1765
2477
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1766
2478
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1767
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2479
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1768
2480
|
},
|
|
1769
2481
|
/**
|
|
1770
2482
|
*
|
|
@@ -1778,7 +2490,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1778
2490
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdPut(channelId, v5NotificationsChannelsPostRequest, options);
|
|
1779
2491
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1780
2492
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1781
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2493
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1782
2494
|
},
|
|
1783
2495
|
/**
|
|
1784
2496
|
*
|
|
@@ -1792,7 +2504,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1792
2504
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsGet(workflowId, includeConfigurations, options);
|
|
1793
2505
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1794
2506
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1795
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2507
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1796
2508
|
},
|
|
1797
2509
|
/**
|
|
1798
2510
|
*
|
|
@@ -1805,7 +2517,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1805
2517
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsPost(v5NotificationsChannelsPostRequest, options);
|
|
1806
2518
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1807
2519
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1808
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2520
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1809
2521
|
},
|
|
1810
2522
|
/**
|
|
1811
2523
|
*
|
|
@@ -1818,7 +2530,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1818
2530
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesEventTypeGet(eventType, options);
|
|
1819
2531
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1820
2532
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesEventTypeGet"]?.[localVarOperationServerIndex]?.url;
|
|
1821
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2533
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1822
2534
|
},
|
|
1823
2535
|
/**
|
|
1824
2536
|
*
|
|
@@ -1830,7 +2542,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1830
2542
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesGet(options);
|
|
1831
2543
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1832
2544
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1833
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2545
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1834
2546
|
},
|
|
1835
2547
|
/**
|
|
1836
2548
|
*
|
|
@@ -1848,7 +2560,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1848
2560
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsLogsGet(workflowId, eventType, startDate, endDate, limit, offset, options);
|
|
1849
2561
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1850
2562
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsLogsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1851
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2563
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1852
2564
|
},
|
|
1853
2565
|
/**
|
|
1854
2566
|
*
|
|
@@ -1862,7 +2574,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1862
2574
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsGet(workflowId, eventType, options);
|
|
1863
2575
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1864
2576
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1865
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2577
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1866
2578
|
},
|
|
1867
2579
|
/**
|
|
1868
2580
|
*
|
|
@@ -1875,7 +2587,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1875
2587
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsPost(v5NotificationsSettingsPostRequest, options);
|
|
1876
2588
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1877
2589
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1878
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2590
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1879
2591
|
},
|
|
1880
2592
|
/**
|
|
1881
2593
|
*
|
|
@@ -1888,7 +2600,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1888
2600
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdDelete(settingsId, options);
|
|
1889
2601
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1890
2602
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1891
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2603
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1892
2604
|
},
|
|
1893
2605
|
/**
|
|
1894
2606
|
*
|
|
@@ -1901,7 +2613,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1901
2613
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdGet(settingsId, options);
|
|
1902
2614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1903
2615
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1904
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2616
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1905
2617
|
},
|
|
1906
2618
|
/**
|
|
1907
2619
|
*
|
|
@@ -1915,7 +2627,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1915
2627
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdPut(settingsId, v5NotificationsSettingsSettingsIdPutRequest, options);
|
|
1916
2628
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1917
2629
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1918
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2630
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1919
2631
|
},
|
|
1920
2632
|
/**
|
|
1921
2633
|
*
|
|
@@ -1928,7 +2640,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1928
2640
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsTestPost(v5NotificationsTestPostRequest, options);
|
|
1929
2641
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1930
2642
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsTestPost"]?.[localVarOperationServerIndex]?.url;
|
|
1931
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2643
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1932
2644
|
}
|
|
1933
2645
|
};
|
|
1934
2646
|
};
|
|
@@ -2238,7 +2950,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2238
2950
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasGet(options);
|
|
2239
2951
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2240
2952
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasGet"]?.[localVarOperationServerIndex]?.url;
|
|
2241
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2953
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2242
2954
|
},
|
|
2243
2955
|
/**
|
|
2244
2956
|
* Create a new data schema with specified fields and entity type
|
|
@@ -2251,7 +2963,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2251
2963
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasPost(createSchemaBody, options);
|
|
2252
2964
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2253
2965
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasPost"]?.[localVarOperationServerIndex]?.url;
|
|
2254
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2966
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2255
2967
|
},
|
|
2256
2968
|
/**
|
|
2257
2969
|
* Delete a schema and all its revisions
|
|
@@ -2264,7 +2976,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2264
2976
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdDelete(schemaId, options);
|
|
2265
2977
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2266
2978
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
2267
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2979
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2268
2980
|
},
|
|
2269
2981
|
/**
|
|
2270
2982
|
* Retrieve a specific schema by its unique identifier
|
|
@@ -2277,7 +2989,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2277
2989
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdGet(schemaId, options);
|
|
2278
2990
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2279
2991
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
2280
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2992
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2281
2993
|
},
|
|
2282
2994
|
/**
|
|
2283
2995
|
* Update schema metadata or create a new revision with updated fields
|
|
@@ -2291,7 +3003,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
2291
3003
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdPut(schemaId, updateSchemaBody, options);
|
|
2292
3004
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2293
3005
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
2294
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3006
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2295
3007
|
}
|
|
2296
3008
|
};
|
|
2297
3009
|
};
|
|
@@ -2394,10 +3106,11 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2394
3106
|
* @param {string} [endDate] End date to filter changes (ISO format)
|
|
2395
3107
|
* @param {number} [skip] Number of records to skip for pagination
|
|
2396
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\")
|
|
2397
3110
|
* @param {*} [options] Override http request option.
|
|
2398
3111
|
* @throws {RequiredError}
|
|
2399
3112
|
*/
|
|
2400
|
-
v4ChangesGet: async (xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options = {}) => {
|
|
3113
|
+
v4ChangesGet: async (xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, exclude, options = {}) => {
|
|
2401
3114
|
const localVarPath = `/v4/changes`;
|
|
2402
3115
|
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
2403
3116
|
let baseOptions;
|
|
@@ -2424,6 +3137,9 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2424
3137
|
if (limit !== void 0) {
|
|
2425
3138
|
localVarQueryParameter["limit"] = limit;
|
|
2426
3139
|
}
|
|
3140
|
+
if (exclude !== void 0) {
|
|
3141
|
+
localVarQueryParameter["exclude"] = exclude;
|
|
3142
|
+
}
|
|
2427
3143
|
if (xApiKey != null) {
|
|
2428
3144
|
localVarHeaderParameter["x-api-key"] = String(xApiKey);
|
|
2429
3145
|
}
|
|
@@ -2446,16 +3162,16 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2446
3162
|
* @param {number} [limit] Maximum number of items to return
|
|
2447
3163
|
* @param {V4WorkflowsGetStateEnum} [state] Filter workflows by state
|
|
2448
3164
|
* @param {Array<string>} [tags] Filter workflows by tags
|
|
3165
|
+
* @param {string} [userId] Filter workflows by user ID (team members only)
|
|
2449
3166
|
* @param {V4WorkflowsGetMonitoringEnum} [monitoring] Filter workflows by monitoring status
|
|
2450
3167
|
* @param {V4WorkflowsGetUpdateIntervalEnum} [updateInterval] Filter workflows by update interval
|
|
2451
3168
|
* @param {string} [templateId] Filter workflows by template ID (DEPRECATED - templates replaced by schemas)
|
|
2452
|
-
* @param {string} [userId] Filter workflows by user ID (only works in team context)
|
|
2453
3169
|
* @param {V4WorkflowsGetIncludeDeletedEnum} [includeDeleted] Include deleted workflows (for compliance officers)
|
|
2454
3170
|
* @param {V4WorkflowsGetFormatEnum} [format] Response format (json or csv for export)
|
|
2455
3171
|
* @param {*} [options] Override http request option.
|
|
2456
3172
|
* @throws {RequiredError}
|
|
2457
3173
|
*/
|
|
2458
|
-
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 = {}) => {
|
|
2459
3175
|
const localVarPath = `/v4/workflows`;
|
|
2460
3176
|
const localVarUrlObj = new url.URL(localVarPath, DUMMY_BASE_URL);
|
|
2461
3177
|
let baseOptions;
|
|
@@ -2481,6 +3197,9 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2481
3197
|
if (tags) {
|
|
2482
3198
|
localVarQueryParameter["tags"] = tags;
|
|
2483
3199
|
}
|
|
3200
|
+
if (userId !== void 0) {
|
|
3201
|
+
localVarQueryParameter["userId"] = userId;
|
|
3202
|
+
}
|
|
2484
3203
|
if (monitoring !== void 0) {
|
|
2485
3204
|
localVarQueryParameter["monitoring"] = monitoring;
|
|
2486
3205
|
}
|
|
@@ -2490,9 +3209,6 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2490
3209
|
if (templateId !== void 0) {
|
|
2491
3210
|
localVarQueryParameter["templateId"] = templateId;
|
|
2492
3211
|
}
|
|
2493
|
-
if (userId !== void 0) {
|
|
2494
|
-
localVarQueryParameter["userId"] = userId;
|
|
2495
|
-
}
|
|
2496
3212
|
if (includeDeleted !== void 0) {
|
|
2497
3213
|
localVarQueryParameter["includeDeleted"] = includeDeleted;
|
|
2498
3214
|
}
|
|
@@ -2811,7 +3527,7 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
2811
3527
|
};
|
|
2812
3528
|
},
|
|
2813
3529
|
/**
|
|
2814
|
-
*
|
|
3530
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
2815
3531
|
* @summary Get job status and telemetry
|
|
2816
3532
|
* @param {string} workflowId The ID of the workflow
|
|
2817
3533
|
* @param {string} jobId The ID of the job
|
|
@@ -3137,7 +3853,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3137
3853
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3138
3854
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3139
3855
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3140
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3856
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3141
3857
|
},
|
|
3142
3858
|
/**
|
|
3143
3859
|
*
|
|
@@ -3149,14 +3865,15 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3149
3865
|
* @param {string} [endDate] End date to filter changes (ISO format)
|
|
3150
3866
|
* @param {number} [skip] Number of records to skip for pagination
|
|
3151
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\")
|
|
3152
3869
|
* @param {*} [options] Override http request option.
|
|
3153
3870
|
* @throws {RequiredError}
|
|
3154
3871
|
*/
|
|
3155
|
-
async v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options) {
|
|
3156
|
-
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);
|
|
3157
3874
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3158
3875
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3159
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3876
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3160
3877
|
},
|
|
3161
3878
|
/**
|
|
3162
3879
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3166,20 +3883,20 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3166
3883
|
* @param {number} [limit] Maximum number of items to return
|
|
3167
3884
|
* @param {V4WorkflowsGetStateEnum} [state] Filter workflows by state
|
|
3168
3885
|
* @param {Array<string>} [tags] Filter workflows by tags
|
|
3886
|
+
* @param {string} [userId] Filter workflows by user ID (team members only)
|
|
3169
3887
|
* @param {V4WorkflowsGetMonitoringEnum} [monitoring] Filter workflows by monitoring status
|
|
3170
3888
|
* @param {V4WorkflowsGetUpdateIntervalEnum} [updateInterval] Filter workflows by update interval
|
|
3171
3889
|
* @param {string} [templateId] Filter workflows by template ID (DEPRECATED - templates replaced by schemas)
|
|
3172
|
-
* @param {string} [userId] Filter workflows by user ID (only works in team context)
|
|
3173
3890
|
* @param {V4WorkflowsGetIncludeDeletedEnum} [includeDeleted] Include deleted workflows (for compliance officers)
|
|
3174
3891
|
* @param {V4WorkflowsGetFormatEnum} [format] Response format (json or csv for export)
|
|
3175
3892
|
* @param {*} [options] Override http request option.
|
|
3176
3893
|
* @throws {RequiredError}
|
|
3177
3894
|
*/
|
|
3178
|
-
async v4WorkflowsGet(search, skip, limit, state, tags, monitoring, updateInterval, templateId,
|
|
3179
|
-
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);
|
|
3180
3897
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3181
3898
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3182
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3899
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3183
3900
|
},
|
|
3184
3901
|
/**
|
|
3185
3902
|
* Create a new workflow with schema, custom fields, or agentic navigation mode
|
|
@@ -3192,7 +3909,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3192
3909
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsPost(createWorkflowBody, options);
|
|
3193
3910
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3194
3911
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsPost"]?.[localVarOperationServerIndex]?.url;
|
|
3195
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3912
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3196
3913
|
},
|
|
3197
3914
|
/**
|
|
3198
3915
|
*
|
|
@@ -3209,7 +3926,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3209
3926
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3210
3927
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3211
3928
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3212
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3929
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3213
3930
|
},
|
|
3214
3931
|
/**
|
|
3215
3932
|
*
|
|
@@ -3224,7 +3941,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3224
3941
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceApprovePut(workflowId, xApiKey, authorization, options);
|
|
3225
3942
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3226
3943
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceApprovePut"]?.[localVarOperationServerIndex]?.url;
|
|
3227
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3944
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3228
3945
|
},
|
|
3229
3946
|
/**
|
|
3230
3947
|
*
|
|
@@ -3240,7 +3957,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3240
3957
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceRejectPut(workflowId, v4WorkflowsWorkflowIdComplianceRejectPutRequest, xApiKey, authorization, options);
|
|
3241
3958
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3242
3959
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceRejectPut"]?.[localVarOperationServerIndex]?.url;
|
|
3243
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3960
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3244
3961
|
},
|
|
3245
3962
|
/**
|
|
3246
3963
|
*
|
|
@@ -3265,7 +3982,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3265
3982
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDataGet(workflowId, xApiKey, authorization, runId, format, sortBy, order, filters, page, limit, gzip, rowIds, includeAnomalies, options);
|
|
3266
3983
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3267
3984
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDataGet"]?.[localVarOperationServerIndex]?.url;
|
|
3268
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3985
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3269
3986
|
},
|
|
3270
3987
|
/**
|
|
3271
3988
|
*
|
|
@@ -3278,7 +3995,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3278
3995
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDelete(workflowId, options);
|
|
3279
3996
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3280
3997
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3281
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3998
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3282
3999
|
},
|
|
3283
4000
|
/**
|
|
3284
4001
|
* Retrieves detailed information about a specific workflow. This endpoint requires authentication and proper team access permissions.
|
|
@@ -3291,7 +4008,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3291
4008
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdGet(workflowId, options);
|
|
3292
4009
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3293
4010
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3294
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4011
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3295
4012
|
},
|
|
3296
4013
|
/**
|
|
3297
4014
|
*
|
|
@@ -3304,10 +4021,10 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3304
4021
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdHistoryGet(workflowId, options);
|
|
3305
4022
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3306
4023
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdHistoryGet"]?.[localVarOperationServerIndex]?.url;
|
|
3307
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4024
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3308
4025
|
},
|
|
3309
4026
|
/**
|
|
3310
|
-
*
|
|
4027
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
3311
4028
|
* @summary Get job status and telemetry
|
|
3312
4029
|
* @param {string} workflowId The ID of the workflow
|
|
3313
4030
|
* @param {string} jobId The ID of the job
|
|
@@ -3318,7 +4035,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3318
4035
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdJobsJobIdGet(workflowId, jobId, options);
|
|
3319
4036
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3320
4037
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdJobsJobIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3321
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4038
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3322
4039
|
},
|
|
3323
4040
|
/**
|
|
3324
4041
|
*
|
|
@@ -3332,7 +4049,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3332
4049
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdMetadataPut(workflowId, v4WorkflowsWorkflowIdMetadataPutRequest, options);
|
|
3333
4050
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3334
4051
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdMetadataPut"]?.[localVarOperationServerIndex]?.url;
|
|
3335
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4052
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3336
4053
|
},
|
|
3337
4054
|
/**
|
|
3338
4055
|
*
|
|
@@ -3345,7 +4062,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3345
4062
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdPausePut(workflowId, options);
|
|
3346
4063
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3347
4064
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdPausePut"]?.[localVarOperationServerIndex]?.url;
|
|
3348
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4065
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3349
4066
|
},
|
|
3350
4067
|
/**
|
|
3351
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.
|
|
@@ -3358,7 +4075,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3358
4075
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdResumePut(workflowId, options);
|
|
3359
4076
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3360
4077
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdResumePut"]?.[localVarOperationServerIndex]?.url;
|
|
3361
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4078
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3362
4079
|
},
|
|
3363
4080
|
/**
|
|
3364
4081
|
*
|
|
@@ -3372,7 +4089,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3372
4089
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdRunPut(workflowId, v4WorkflowsWorkflowIdRunPutRequest, options);
|
|
3373
4090
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3374
4091
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdRunPut"]?.[localVarOperationServerIndex]?.url;
|
|
3375
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4092
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3376
4093
|
},
|
|
3377
4094
|
/**
|
|
3378
4095
|
*
|
|
@@ -3386,7 +4103,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3386
4103
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdSchedulePut(workflowId, v4WorkflowsWorkflowIdSchedulePutRequest, options);
|
|
3387
4104
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3388
4105
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdSchedulePut"]?.[localVarOperationServerIndex]?.url;
|
|
3389
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4106
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3390
4107
|
},
|
|
3391
4108
|
/**
|
|
3392
4109
|
*
|
|
@@ -3401,7 +4118,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3401
4118
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3402
4119
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3403
4120
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3404
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4121
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3405
4122
|
},
|
|
3406
4123
|
/**
|
|
3407
4124
|
*
|
|
@@ -3420,7 +4137,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3420
4137
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
3421
4138
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3422
4139
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3423
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4140
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3424
4141
|
},
|
|
3425
4142
|
/**
|
|
3426
4143
|
*
|
|
@@ -3437,7 +4154,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3437
4154
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3438
4155
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3439
4156
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3440
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4157
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios3__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3441
4158
|
}
|
|
3442
4159
|
};
|
|
3443
4160
|
};
|
|
@@ -3460,7 +4177,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3460
4177
|
* @throws {RequiredError}
|
|
3461
4178
|
*/
|
|
3462
4179
|
v4ChangesGet(requestParameters = {}, options) {
|
|
3463
|
-
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));
|
|
3464
4181
|
}
|
|
3465
4182
|
/**
|
|
3466
4183
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3470,7 +4187,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3470
4187
|
* @throws {RequiredError}
|
|
3471
4188
|
*/
|
|
3472
4189
|
v4WorkflowsGet(requestParameters = {}, options) {
|
|
3473
|
-
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));
|
|
3474
4191
|
}
|
|
3475
4192
|
/**
|
|
3476
4193
|
* Create a new workflow with schema, custom fields, or agentic navigation mode
|
|
@@ -3553,7 +4270,7 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
3553
4270
|
return WorkflowsApiFp(this.configuration).v4WorkflowsWorkflowIdHistoryGet(requestParameters.workflowId, options).then((request) => request(this.axios, this.basePath));
|
|
3554
4271
|
}
|
|
3555
4272
|
/**
|
|
3556
|
-
*
|
|
4273
|
+
* Retrieve the current status and telemetry information for a specific job
|
|
3557
4274
|
* @summary Get job status and telemetry
|
|
3558
4275
|
* @param {WorkflowsApiV4WorkflowsWorkflowIdJobsJobIdGetRequest} requestParameters Request parameters.
|
|
3559
4276
|
* @param {*} [options] Override http request option.
|
|
@@ -3973,7 +4690,7 @@ var KadoaHttpException = class _KadoaHttpException extends KadoaSdkException {
|
|
|
3973
4690
|
static wrap(error, extra) {
|
|
3974
4691
|
if (error instanceof _KadoaHttpException) return error;
|
|
3975
4692
|
if (error instanceof KadoaSdkException) return error;
|
|
3976
|
-
if (
|
|
4693
|
+
if (globalAxios3.isAxiosError(error)) {
|
|
3977
4694
|
return _KadoaHttpException.fromAxiosError(error, extra);
|
|
3978
4695
|
}
|
|
3979
4696
|
return KadoaSdkException.wrap(error, extra);
|
|
@@ -4016,13 +4733,6 @@ var _SchemaBuilder = class _SchemaBuilder {
|
|
|
4016
4733
|
this.entityName = entityName;
|
|
4017
4734
|
return this;
|
|
4018
4735
|
}
|
|
4019
|
-
/**
|
|
4020
|
-
* Add a structured field to the schema
|
|
4021
|
-
* @param name - Field name (alphanumeric only)
|
|
4022
|
-
* @param description - Field description
|
|
4023
|
-
* @param dataType - Data type (STRING, NUMBER, BOOLEAN, etc.)
|
|
4024
|
-
* @param options - Optional field configuration
|
|
4025
|
-
*/
|
|
4026
4736
|
field(name, description, dataType, options) {
|
|
4027
4737
|
this.validateFieldName(name);
|
|
4028
4738
|
const requiresExample = _SchemaBuilder.TYPES_REQUIRING_EXAMPLE.includes(dataType);
|
|
@@ -5265,6 +5975,7 @@ var Realtime = class {
|
|
|
5265
5975
|
this.heartbeatInterval = config.heartbeatInterval || 1e4;
|
|
5266
5976
|
this.reconnectDelay = config.reconnectDelay || 5e3;
|
|
5267
5977
|
this.missedHeartbeatsLimit = config.missedHeartbeatsLimit || 3e4;
|
|
5978
|
+
this.source = config.source;
|
|
5268
5979
|
}
|
|
5269
5980
|
async connect() {
|
|
5270
5981
|
if (this.isConnecting) return;
|
|
@@ -5289,7 +6000,8 @@ var Realtime = class {
|
|
|
5289
6000
|
this.socket.send(
|
|
5290
6001
|
JSON.stringify({
|
|
5291
6002
|
action: "subscribe",
|
|
5292
|
-
channel: team_id
|
|
6003
|
+
channel: team_id,
|
|
6004
|
+
...this.source && { source: this.source }
|
|
5293
6005
|
})
|
|
5294
6006
|
);
|
|
5295
6007
|
debug5("Connected to WebSocket");
|
|
@@ -5457,7 +6169,7 @@ var UserService = class {
|
|
|
5457
6169
|
|
|
5458
6170
|
// src/runtime/utils/polling.ts
|
|
5459
6171
|
var DEFAULT_POLLING_OPTIONS = {
|
|
5460
|
-
pollIntervalMs:
|
|
6172
|
+
pollIntervalMs: 1e4,
|
|
5461
6173
|
timeoutMs: 5 * 60 * 1e3
|
|
5462
6174
|
};
|
|
5463
6175
|
var POLLING_ERROR_CODES = {
|
|
@@ -5469,7 +6181,7 @@ async function pollUntil(pollFn, isComplete, options = {}) {
|
|
|
5469
6181
|
...DEFAULT_POLLING_OPTIONS,
|
|
5470
6182
|
...options
|
|
5471
6183
|
};
|
|
5472
|
-
const pollInterval = Math.max(
|
|
6184
|
+
const pollInterval = Math.max(1e4, internalOptions.pollIntervalMs);
|
|
5473
6185
|
const timeoutMs = internalOptions.timeoutMs;
|
|
5474
6186
|
const start = Date.now();
|
|
5475
6187
|
let attempts = 0;
|
|
@@ -5939,15 +6651,6 @@ var WorkflowsCoreService = class {
|
|
|
5939
6651
|
});
|
|
5940
6652
|
return response.data?.workflows?.[0];
|
|
5941
6653
|
}
|
|
5942
|
-
/**
|
|
5943
|
-
* @deprecated Use delete(id) instead.
|
|
5944
|
-
*/
|
|
5945
|
-
async cancel(id) {
|
|
5946
|
-
console.warn(
|
|
5947
|
-
"[Kadoa SDK] workflow.cancel(id) will be deprecated. Use workflow.delete(id)."
|
|
5948
|
-
);
|
|
5949
|
-
await this.delete(id);
|
|
5950
|
-
}
|
|
5951
6654
|
async delete(id) {
|
|
5952
6655
|
await this.workflowsApi.v4WorkflowsWorkflowIdDelete({
|
|
5953
6656
|
workflowId: id
|
|
@@ -5970,19 +6673,10 @@ var WorkflowsCoreService = class {
|
|
|
5970
6673
|
* Wait for a workflow to reach the target state or a terminal state if no target state is provided
|
|
5971
6674
|
*/
|
|
5972
6675
|
async wait(id, options) {
|
|
5973
|
-
let last;
|
|
5974
6676
|
const result = await pollUntil(
|
|
5975
6677
|
async () => {
|
|
5976
6678
|
const current = await this.get(id);
|
|
5977
|
-
|
|
5978
|
-
debug6(
|
|
5979
|
-
"workflow %s state: [workflowState: %s, jobState: %s]",
|
|
5980
|
-
id,
|
|
5981
|
-
current.state,
|
|
5982
|
-
current.runState
|
|
5983
|
-
);
|
|
5984
|
-
}
|
|
5985
|
-
last = current;
|
|
6679
|
+
debug6("workflow %s state: %s", id, current.runState);
|
|
5986
6680
|
return current;
|
|
5987
6681
|
},
|
|
5988
6682
|
(current) => {
|
|
@@ -6038,14 +6732,10 @@ var WorkflowsCoreService = class {
|
|
|
6038
6732
|
* Wait for a job to reach the target state or a terminal state
|
|
6039
6733
|
*/
|
|
6040
6734
|
async waitForJobCompletion(workflowId, jobId, options) {
|
|
6041
|
-
let last;
|
|
6042
6735
|
const result = await pollUntil(
|
|
6043
6736
|
async () => {
|
|
6044
6737
|
const current = await this.getJobStatus(workflowId, jobId);
|
|
6045
|
-
|
|
6046
|
-
debug6("job %s state: %s", jobId, current.state);
|
|
6047
|
-
}
|
|
6048
|
-
last = current;
|
|
6738
|
+
debug6("workflow run %s state: %s", jobId, current.state);
|
|
6049
6739
|
return current;
|
|
6050
6740
|
},
|
|
6051
6741
|
(current) => {
|
|
@@ -6063,6 +6753,131 @@ var WorkflowsCoreService = class {
|
|
|
6063
6753
|
}
|
|
6064
6754
|
};
|
|
6065
6755
|
|
|
6756
|
+
// src/domains/crawler/crawler-config.service.ts
|
|
6757
|
+
var CrawlerConfigService = class {
|
|
6758
|
+
constructor(client) {
|
|
6759
|
+
this.client = client;
|
|
6760
|
+
this._api = null;
|
|
6761
|
+
}
|
|
6762
|
+
get api() {
|
|
6763
|
+
if (!this._api) {
|
|
6764
|
+
this._api = new CrawlerApi(
|
|
6765
|
+
this.client.configuration,
|
|
6766
|
+
this.client.baseUrl,
|
|
6767
|
+
this.client.axiosInstance
|
|
6768
|
+
);
|
|
6769
|
+
}
|
|
6770
|
+
return this._api;
|
|
6771
|
+
}
|
|
6772
|
+
async createConfig(body) {
|
|
6773
|
+
const response = await this.api.v4CrawlConfigPost({
|
|
6774
|
+
createCrawlerConfigRequest: body
|
|
6775
|
+
});
|
|
6776
|
+
return response.data;
|
|
6777
|
+
}
|
|
6778
|
+
async getConfig(configId) {
|
|
6779
|
+
const response = await this.api.v4CrawlConfigConfigIdGet({ configId });
|
|
6780
|
+
return response.data;
|
|
6781
|
+
}
|
|
6782
|
+
async deleteConfig(configId) {
|
|
6783
|
+
const response = await this.api.v4CrawlConfigDelete({
|
|
6784
|
+
deleteCrawlerConfigRequest: { configId }
|
|
6785
|
+
});
|
|
6786
|
+
return response.data;
|
|
6787
|
+
}
|
|
6788
|
+
};
|
|
6789
|
+
|
|
6790
|
+
// src/domains/crawler/crawler-session.service.ts
|
|
6791
|
+
var CrawlerSessionService = class {
|
|
6792
|
+
constructor(client) {
|
|
6793
|
+
this.client = client;
|
|
6794
|
+
this._api = null;
|
|
6795
|
+
}
|
|
6796
|
+
get api() {
|
|
6797
|
+
if (!this._api) {
|
|
6798
|
+
this._api = new CrawlerApi(
|
|
6799
|
+
this.client.configuration,
|
|
6800
|
+
this.client.baseUrl,
|
|
6801
|
+
this.client.axiosInstance
|
|
6802
|
+
);
|
|
6803
|
+
}
|
|
6804
|
+
return this._api;
|
|
6805
|
+
}
|
|
6806
|
+
async start(body) {
|
|
6807
|
+
const response = await this.api.v4CrawlPost({
|
|
6808
|
+
startCrawlerSessionRequest: body
|
|
6809
|
+
});
|
|
6810
|
+
return response.data;
|
|
6811
|
+
}
|
|
6812
|
+
async startWithConfig(body) {
|
|
6813
|
+
const response = await this.api.v4CrawlStartPost({
|
|
6814
|
+
startSessionWithConfigRequest: body
|
|
6815
|
+
});
|
|
6816
|
+
return response.data;
|
|
6817
|
+
}
|
|
6818
|
+
async pause(sessionId) {
|
|
6819
|
+
const response = await this.api.v4CrawlPausePost({
|
|
6820
|
+
pauseCrawlerSessionRequest: { sessionId }
|
|
6821
|
+
});
|
|
6822
|
+
return response.data;
|
|
6823
|
+
}
|
|
6824
|
+
async resume(sessionId) {
|
|
6825
|
+
const response = await this.api.v4CrawlResumePost({
|
|
6826
|
+
resumeCrawlerSessionRequest: { sessionId }
|
|
6827
|
+
});
|
|
6828
|
+
return response.data;
|
|
6829
|
+
}
|
|
6830
|
+
async listSessions(options) {
|
|
6831
|
+
const response = await this.api.v4CrawlSessionsGet({
|
|
6832
|
+
page: options?.page,
|
|
6833
|
+
pageSize: options?.pageSize,
|
|
6834
|
+
userId: options?.userId
|
|
6835
|
+
});
|
|
6836
|
+
return response.data.data ?? [];
|
|
6837
|
+
}
|
|
6838
|
+
async getSessionStatus(sessionId) {
|
|
6839
|
+
const response = await this.api.v4CrawlSessionIdStatusGet({ sessionId });
|
|
6840
|
+
return response.data;
|
|
6841
|
+
}
|
|
6842
|
+
async getPages(sessionId, options) {
|
|
6843
|
+
const response = await this.api.v4CrawlSessionIdPagesGet({
|
|
6844
|
+
sessionId,
|
|
6845
|
+
currentPage: options?.currentPage,
|
|
6846
|
+
pageSize: options?.pageSize
|
|
6847
|
+
});
|
|
6848
|
+
return response.data;
|
|
6849
|
+
}
|
|
6850
|
+
async getPage(sessionId, pageId, options) {
|
|
6851
|
+
const response = await this.api.v4CrawlSessionIdPagesPageIdGet({
|
|
6852
|
+
sessionId,
|
|
6853
|
+
pageId,
|
|
6854
|
+
format: options?.format
|
|
6855
|
+
});
|
|
6856
|
+
return response.data;
|
|
6857
|
+
}
|
|
6858
|
+
async getAllSessionData(sessionId, options) {
|
|
6859
|
+
const response = await this.api.v4CrawlSessionIdListGet({
|
|
6860
|
+
sessionId,
|
|
6861
|
+
includeAll: options?.includeAll
|
|
6862
|
+
});
|
|
6863
|
+
return response.data;
|
|
6864
|
+
}
|
|
6865
|
+
async getBucketFile(filenameb64) {
|
|
6866
|
+
const response = await this.api.v4CrawlBucketDataFilenameb64Get({
|
|
6867
|
+
filenameb64
|
|
6868
|
+
});
|
|
6869
|
+
return response.data;
|
|
6870
|
+
}
|
|
6871
|
+
};
|
|
6872
|
+
|
|
6873
|
+
// src/domains/crawler/crawler.facade.ts
|
|
6874
|
+
function createCrawlerDomain(client) {
|
|
6875
|
+
return {
|
|
6876
|
+
config: new CrawlerConfigService(client),
|
|
6877
|
+
session: new CrawlerSessionService(client)
|
|
6878
|
+
};
|
|
6879
|
+
}
|
|
6880
|
+
|
|
6066
6881
|
// src/domains/validation/validation.facade.ts
|
|
6067
6882
|
function createValidationDomain(core, rules) {
|
|
6068
6883
|
return {
|
|
@@ -6096,7 +6911,7 @@ var KadoaClient = class {
|
|
|
6096
6911
|
headers
|
|
6097
6912
|
}
|
|
6098
6913
|
});
|
|
6099
|
-
this._axiosInstance =
|
|
6914
|
+
this._axiosInstance = globalAxios3__default.default.create({
|
|
6100
6915
|
timeout: this._timeout,
|
|
6101
6916
|
headers
|
|
6102
6917
|
});
|
|
@@ -6115,7 +6930,7 @@ var KadoaClient = class {
|
|
|
6115
6930
|
return response;
|
|
6116
6931
|
},
|
|
6117
6932
|
(error) => {
|
|
6118
|
-
if (error instanceof
|
|
6933
|
+
if (error instanceof globalAxios3.AxiosError) {
|
|
6119
6934
|
const status = error.response?.status;
|
|
6120
6935
|
if (status === 400) {
|
|
6121
6936
|
throw KadoaHttpException.wrap(error);
|
|
@@ -6177,6 +6992,7 @@ var KadoaClient = class {
|
|
|
6177
6992
|
setupForWorkspace: (request) => channelSetupService.setupForWorkspace(request)
|
|
6178
6993
|
};
|
|
6179
6994
|
this.validation = createValidationDomain(coreService, rulesService);
|
|
6995
|
+
this.crawler = createCrawlerDomain(this);
|
|
6180
6996
|
if (config.enableRealtime && config.realtimeConfig?.autoConnect !== false) {
|
|
6181
6997
|
this.connectRealtime();
|
|
6182
6998
|
}
|