@nestbox-ai/agents 1.0.25

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/dist/api.js ADDED
@@ -0,0 +1,1205 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nestbox API Agents API
6
+ * API for Nestbox Agents, control your agents
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.ServerLiveStatusApi = exports.ServerLiveStatusApiFactory = exports.ServerLiveStatusApiFp = exports.ServerLiveStatusApiAxiosParamCreator = exports.QueryApi = exports.QueryApiFactory = exports.QueryApiFp = exports.QueryApiAxiosParamCreator = exports.GuardrailsApi = exports.GuardrailsApiFactory = exports.GuardrailsApiFp = exports.GuardrailsApiAxiosParamCreator = exports.EventLogsApi = exports.EventLogsApiFactory = exports.EventLogsApiFp = exports.EventLogsApiAxiosParamCreator = exports.CreateGuardrailDtoFlagEnum = exports.CreateGuardrailDtoRiskEnum = exports.CreateGuardrailDtoSeverityEnum = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("./common");
30
+ // @ts-ignore
31
+ const base_1 = require("./base");
32
+ exports.CreateGuardrailDtoSeverityEnum = {
33
+ Low: 'low',
34
+ Medium: 'medium',
35
+ High: 'high'
36
+ };
37
+ exports.CreateGuardrailDtoRiskEnum = {
38
+ Low: 'low',
39
+ Medium: 'medium',
40
+ High: 'high'
41
+ };
42
+ exports.CreateGuardrailDtoFlagEnum = {
43
+ Pass: 'pass',
44
+ Block: 'block'
45
+ };
46
+ /**
47
+ * EventLogsApi - axios parameter creator
48
+ * @export
49
+ */
50
+ const EventLogsApiAxiosParamCreator = function (configuration) {
51
+ return {
52
+ /**
53
+ *
54
+ * @param {string} id ID of the model.
55
+ * @param {string} page
56
+ * @param {string} limit
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ modelOperationsEventLogsControllerGetEventLogs: (id_1, page_1, limit_1, ...args_1) => __awaiter(this, [id_1, page_1, limit_1, ...args_1], void 0, function* (id, page, limit, options = {}) {
61
+ // verify required parameter 'id' is not null or undefined
62
+ (0, common_1.assertParamExists)('modelOperationsEventLogsControllerGetEventLogs', 'id', id);
63
+ // verify required parameter 'page' is not null or undefined
64
+ (0, common_1.assertParamExists)('modelOperationsEventLogsControllerGetEventLogs', 'page', page);
65
+ // verify required parameter 'limit' is not null or undefined
66
+ (0, common_1.assertParamExists)('modelOperationsEventLogsControllerGetEventLogs', 'limit', limit);
67
+ const localVarPath = `/models/{id}/events`
68
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
69
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
70
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
71
+ let baseOptions;
72
+ if (configuration) {
73
+ baseOptions = configuration.baseOptions;
74
+ }
75
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
76
+ const localVarHeaderParameter = {};
77
+ const localVarQueryParameter = {};
78
+ if (page !== undefined) {
79
+ localVarQueryParameter['page'] = page;
80
+ }
81
+ if (limit !== undefined) {
82
+ localVarQueryParameter['limit'] = limit;
83
+ }
84
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
85
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
86
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
87
+ return {
88
+ url: (0, common_1.toPathString)(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ }),
92
+ /**
93
+ *
94
+ * @param {string} id ID of the model.
95
+ * @param {string} queryId
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ modelOperationsEventLogsControllerGetEventLogsByQueryId: (id_1, queryId_1, ...args_1) => __awaiter(this, [id_1, queryId_1, ...args_1], void 0, function* (id, queryId, options = {}) {
100
+ // verify required parameter 'id' is not null or undefined
101
+ (0, common_1.assertParamExists)('modelOperationsEventLogsControllerGetEventLogsByQueryId', 'id', id);
102
+ // verify required parameter 'queryId' is not null or undefined
103
+ (0, common_1.assertParamExists)('modelOperationsEventLogsControllerGetEventLogsByQueryId', 'queryId', queryId);
104
+ const localVarPath = `/models/{id}/eventsByQueryId`
105
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
108
+ let baseOptions;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ }
112
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
113
+ const localVarHeaderParameter = {};
114
+ const localVarQueryParameter = {};
115
+ if (queryId !== undefined) {
116
+ localVarQueryParameter['queryId'] = queryId;
117
+ }
118
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
121
+ return {
122
+ url: (0, common_1.toPathString)(localVarUrlObj),
123
+ options: localVarRequestOptions,
124
+ };
125
+ }),
126
+ };
127
+ };
128
+ exports.EventLogsApiAxiosParamCreator = EventLogsApiAxiosParamCreator;
129
+ /**
130
+ * EventLogsApi - functional programming interface
131
+ * @export
132
+ */
133
+ const EventLogsApiFp = function (configuration) {
134
+ const localVarAxiosParamCreator = (0, exports.EventLogsApiAxiosParamCreator)(configuration);
135
+ return {
136
+ /**
137
+ *
138
+ * @param {string} id ID of the model.
139
+ * @param {string} page
140
+ * @param {string} limit
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ modelOperationsEventLogsControllerGetEventLogs(id, page, limit, options) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ var _a, _b, _c;
147
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsEventLogsControllerGetEventLogs(id, page, limit, options);
148
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
149
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventLogsApi.modelOperationsEventLogsControllerGetEventLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
150
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
151
+ });
152
+ },
153
+ /**
154
+ *
155
+ * @param {string} id ID of the model.
156
+ * @param {string} queryId
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ modelOperationsEventLogsControllerGetEventLogsByQueryId(id, queryId, options) {
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ var _a, _b, _c;
163
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsEventLogsControllerGetEventLogsByQueryId(id, queryId, options);
164
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
165
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventLogsApi.modelOperationsEventLogsControllerGetEventLogsByQueryId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
166
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
167
+ });
168
+ },
169
+ };
170
+ };
171
+ exports.EventLogsApiFp = EventLogsApiFp;
172
+ /**
173
+ * EventLogsApi - factory interface
174
+ * @export
175
+ */
176
+ const EventLogsApiFactory = function (configuration, basePath, axios) {
177
+ const localVarFp = (0, exports.EventLogsApiFp)(configuration);
178
+ return {
179
+ /**
180
+ *
181
+ * @param {string} id ID of the model.
182
+ * @param {string} page
183
+ * @param {string} limit
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ modelOperationsEventLogsControllerGetEventLogs(id, page, limit, options) {
188
+ return localVarFp.modelOperationsEventLogsControllerGetEventLogs(id, page, limit, options).then((request) => request(axios, basePath));
189
+ },
190
+ /**
191
+ *
192
+ * @param {string} id ID of the model.
193
+ * @param {string} queryId
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ modelOperationsEventLogsControllerGetEventLogsByQueryId(id, queryId, options) {
198
+ return localVarFp.modelOperationsEventLogsControllerGetEventLogsByQueryId(id, queryId, options).then((request) => request(axios, basePath));
199
+ },
200
+ };
201
+ };
202
+ exports.EventLogsApiFactory = EventLogsApiFactory;
203
+ /**
204
+ * EventLogsApi - object-oriented interface
205
+ * @export
206
+ * @class EventLogsApi
207
+ * @extends {BaseAPI}
208
+ */
209
+ class EventLogsApi extends base_1.BaseAPI {
210
+ /**
211
+ *
212
+ * @param {string} id ID of the model.
213
+ * @param {string} page
214
+ * @param {string} limit
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ * @memberof EventLogsApi
218
+ */
219
+ modelOperationsEventLogsControllerGetEventLogs(id, page, limit, options) {
220
+ return (0, exports.EventLogsApiFp)(this.configuration).modelOperationsEventLogsControllerGetEventLogs(id, page, limit, options).then((request) => request(this.axios, this.basePath));
221
+ }
222
+ /**
223
+ *
224
+ * @param {string} id ID of the model.
225
+ * @param {string} queryId
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ * @memberof EventLogsApi
229
+ */
230
+ modelOperationsEventLogsControllerGetEventLogsByQueryId(id, queryId, options) {
231
+ return (0, exports.EventLogsApiFp)(this.configuration).modelOperationsEventLogsControllerGetEventLogsByQueryId(id, queryId, options).then((request) => request(this.axios, this.basePath));
232
+ }
233
+ }
234
+ exports.EventLogsApi = EventLogsApi;
235
+ /**
236
+ * GuardrailsApi - axios parameter creator
237
+ * @export
238
+ */
239
+ const GuardrailsApiAxiosParamCreator = function (configuration) {
240
+ return {
241
+ /**
242
+ *
243
+ * @param {string} id ID of the model.
244
+ * @param {CreateGuardrailDto} createGuardrailDto
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ modelOperationsGuardrailsControllerCreateGuardrails: (id_1, createGuardrailDto_1, ...args_1) => __awaiter(this, [id_1, createGuardrailDto_1, ...args_1], void 0, function* (id, createGuardrailDto, options = {}) {
249
+ // verify required parameter 'id' is not null or undefined
250
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerCreateGuardrails', 'id', id);
251
+ // verify required parameter 'createGuardrailDto' is not null or undefined
252
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerCreateGuardrails', 'createGuardrailDto', createGuardrailDto);
253
+ const localVarPath = `/models/{id}/guardrails`
254
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
255
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
256
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
257
+ let baseOptions;
258
+ if (configuration) {
259
+ baseOptions = configuration.baseOptions;
260
+ }
261
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
262
+ const localVarHeaderParameter = {};
263
+ const localVarQueryParameter = {};
264
+ localVarHeaderParameter['Content-Type'] = 'application/json';
265
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
266
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
267
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
268
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGuardrailDto, localVarRequestOptions, configuration);
269
+ return {
270
+ url: (0, common_1.toPathString)(localVarUrlObj),
271
+ options: localVarRequestOptions,
272
+ };
273
+ }),
274
+ /**
275
+ *
276
+ * @param {string} id ID of the model.
277
+ * @param {string} guardrailsId ID of the guardrails.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ modelOperationsGuardrailsControllerDeleteGuardrails: (id_1, guardrailsId_1, ...args_1) => __awaiter(this, [id_1, guardrailsId_1, ...args_1], void 0, function* (id, guardrailsId, options = {}) {
282
+ // verify required parameter 'id' is not null or undefined
283
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerDeleteGuardrails', 'id', id);
284
+ // verify required parameter 'guardrailsId' is not null or undefined
285
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerDeleteGuardrails', 'guardrailsId', guardrailsId);
286
+ const localVarPath = `/models/{id}/guardrails/{guardrailsId}`
287
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
288
+ .replace(`{${"guardrailsId"}}`, encodeURIComponent(String(guardrailsId)));
289
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
290
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
291
+ let baseOptions;
292
+ if (configuration) {
293
+ baseOptions = configuration.baseOptions;
294
+ }
295
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
296
+ const localVarHeaderParameter = {};
297
+ const localVarQueryParameter = {};
298
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
301
+ return {
302
+ url: (0, common_1.toPathString)(localVarUrlObj),
303
+ options: localVarRequestOptions,
304
+ };
305
+ }),
306
+ /**
307
+ *
308
+ * @param {string} id ID of the model.
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ modelOperationsGuardrailsControllerGetAllGuardrails: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
313
+ // verify required parameter 'id' is not null or undefined
314
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerGetAllGuardrails', 'id', id);
315
+ const localVarPath = `/models/{id}/guardrails`
316
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
318
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
319
+ let baseOptions;
320
+ if (configuration) {
321
+ baseOptions = configuration.baseOptions;
322
+ }
323
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
324
+ const localVarHeaderParameter = {};
325
+ const localVarQueryParameter = {};
326
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
327
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
328
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
329
+ return {
330
+ url: (0, common_1.toPathString)(localVarUrlObj),
331
+ options: localVarRequestOptions,
332
+ };
333
+ }),
334
+ /**
335
+ *
336
+ * @param {string} id ID of the model.
337
+ * @param {string} guardrailsId ID of the guardrails.
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ modelOperationsGuardrailsControllerGetGuardrails: (id_1, guardrailsId_1, ...args_1) => __awaiter(this, [id_1, guardrailsId_1, ...args_1], void 0, function* (id, guardrailsId, options = {}) {
342
+ // verify required parameter 'id' is not null or undefined
343
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerGetGuardrails', 'id', id);
344
+ // verify required parameter 'guardrailsId' is not null or undefined
345
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerGetGuardrails', 'guardrailsId', guardrailsId);
346
+ const localVarPath = `/models/{id}/guardrails/{guardrailsId}`
347
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
348
+ .replace(`{${"guardrailsId"}}`, encodeURIComponent(String(guardrailsId)));
349
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
350
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
351
+ let baseOptions;
352
+ if (configuration) {
353
+ baseOptions = configuration.baseOptions;
354
+ }
355
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
356
+ const localVarHeaderParameter = {};
357
+ const localVarQueryParameter = {};
358
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
359
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
361
+ return {
362
+ url: (0, common_1.toPathString)(localVarUrlObj),
363
+ options: localVarRequestOptions,
364
+ };
365
+ }),
366
+ /**
367
+ *
368
+ * @param {string} id ID of the model.
369
+ * @param {string} guardrailsId ID of the guardrails.
370
+ * @param {CreateGuardrailDto} createGuardrailDto
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ modelOperationsGuardrailsControllerUpdateGuardrails: (id_1, guardrailsId_1, createGuardrailDto_1, ...args_1) => __awaiter(this, [id_1, guardrailsId_1, createGuardrailDto_1, ...args_1], void 0, function* (id, guardrailsId, createGuardrailDto, options = {}) {
375
+ // verify required parameter 'id' is not null or undefined
376
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerUpdateGuardrails', 'id', id);
377
+ // verify required parameter 'guardrailsId' is not null or undefined
378
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerUpdateGuardrails', 'guardrailsId', guardrailsId);
379
+ // verify required parameter 'createGuardrailDto' is not null or undefined
380
+ (0, common_1.assertParamExists)('modelOperationsGuardrailsControllerUpdateGuardrails', 'createGuardrailDto', createGuardrailDto);
381
+ const localVarPath = `/models/{id}/guardrails/{guardrailsId}`
382
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
383
+ .replace(`{${"guardrailsId"}}`, encodeURIComponent(String(guardrailsId)));
384
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
385
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
386
+ let baseOptions;
387
+ if (configuration) {
388
+ baseOptions = configuration.baseOptions;
389
+ }
390
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
391
+ const localVarHeaderParameter = {};
392
+ const localVarQueryParameter = {};
393
+ localVarHeaderParameter['Content-Type'] = 'application/json';
394
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
395
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
396
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
397
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGuardrailDto, localVarRequestOptions, configuration);
398
+ return {
399
+ url: (0, common_1.toPathString)(localVarUrlObj),
400
+ options: localVarRequestOptions,
401
+ };
402
+ }),
403
+ };
404
+ };
405
+ exports.GuardrailsApiAxiosParamCreator = GuardrailsApiAxiosParamCreator;
406
+ /**
407
+ * GuardrailsApi - functional programming interface
408
+ * @export
409
+ */
410
+ const GuardrailsApiFp = function (configuration) {
411
+ const localVarAxiosParamCreator = (0, exports.GuardrailsApiAxiosParamCreator)(configuration);
412
+ return {
413
+ /**
414
+ *
415
+ * @param {string} id ID of the model.
416
+ * @param {CreateGuardrailDto} createGuardrailDto
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ modelOperationsGuardrailsControllerCreateGuardrails(id, createGuardrailDto, options) {
421
+ return __awaiter(this, void 0, void 0, function* () {
422
+ var _a, _b, _c;
423
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsGuardrailsControllerCreateGuardrails(id, createGuardrailDto, options);
424
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
425
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GuardrailsApi.modelOperationsGuardrailsControllerCreateGuardrails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
426
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
427
+ });
428
+ },
429
+ /**
430
+ *
431
+ * @param {string} id ID of the model.
432
+ * @param {string} guardrailsId ID of the guardrails.
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ modelOperationsGuardrailsControllerDeleteGuardrails(id, guardrailsId, options) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ var _a, _b, _c;
439
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsGuardrailsControllerDeleteGuardrails(id, guardrailsId, options);
440
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
441
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GuardrailsApi.modelOperationsGuardrailsControllerDeleteGuardrails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
442
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
443
+ });
444
+ },
445
+ /**
446
+ *
447
+ * @param {string} id ID of the model.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ modelOperationsGuardrailsControllerGetAllGuardrails(id, options) {
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ var _a, _b, _c;
454
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsGuardrailsControllerGetAllGuardrails(id, options);
455
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
456
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GuardrailsApi.modelOperationsGuardrailsControllerGetAllGuardrails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
457
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
458
+ });
459
+ },
460
+ /**
461
+ *
462
+ * @param {string} id ID of the model.
463
+ * @param {string} guardrailsId ID of the guardrails.
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ modelOperationsGuardrailsControllerGetGuardrails(id, guardrailsId, options) {
468
+ return __awaiter(this, void 0, void 0, function* () {
469
+ var _a, _b, _c;
470
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsGuardrailsControllerGetGuardrails(id, guardrailsId, options);
471
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
472
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GuardrailsApi.modelOperationsGuardrailsControllerGetGuardrails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
473
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
474
+ });
475
+ },
476
+ /**
477
+ *
478
+ * @param {string} id ID of the model.
479
+ * @param {string} guardrailsId ID of the guardrails.
480
+ * @param {CreateGuardrailDto} createGuardrailDto
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ modelOperationsGuardrailsControllerUpdateGuardrails(id, guardrailsId, createGuardrailDto, options) {
485
+ return __awaiter(this, void 0, void 0, function* () {
486
+ var _a, _b, _c;
487
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsGuardrailsControllerUpdateGuardrails(id, guardrailsId, createGuardrailDto, options);
488
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
489
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GuardrailsApi.modelOperationsGuardrailsControllerUpdateGuardrails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
490
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
491
+ });
492
+ },
493
+ };
494
+ };
495
+ exports.GuardrailsApiFp = GuardrailsApiFp;
496
+ /**
497
+ * GuardrailsApi - factory interface
498
+ * @export
499
+ */
500
+ const GuardrailsApiFactory = function (configuration, basePath, axios) {
501
+ const localVarFp = (0, exports.GuardrailsApiFp)(configuration);
502
+ return {
503
+ /**
504
+ *
505
+ * @param {string} id ID of the model.
506
+ * @param {CreateGuardrailDto} createGuardrailDto
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ modelOperationsGuardrailsControllerCreateGuardrails(id, createGuardrailDto, options) {
511
+ return localVarFp.modelOperationsGuardrailsControllerCreateGuardrails(id, createGuardrailDto, options).then((request) => request(axios, basePath));
512
+ },
513
+ /**
514
+ *
515
+ * @param {string} id ID of the model.
516
+ * @param {string} guardrailsId ID of the guardrails.
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ */
520
+ modelOperationsGuardrailsControllerDeleteGuardrails(id, guardrailsId, options) {
521
+ return localVarFp.modelOperationsGuardrailsControllerDeleteGuardrails(id, guardrailsId, options).then((request) => request(axios, basePath));
522
+ },
523
+ /**
524
+ *
525
+ * @param {string} id ID of the model.
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ modelOperationsGuardrailsControllerGetAllGuardrails(id, options) {
530
+ return localVarFp.modelOperationsGuardrailsControllerGetAllGuardrails(id, options).then((request) => request(axios, basePath));
531
+ },
532
+ /**
533
+ *
534
+ * @param {string} id ID of the model.
535
+ * @param {string} guardrailsId ID of the guardrails.
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ modelOperationsGuardrailsControllerGetGuardrails(id, guardrailsId, options) {
540
+ return localVarFp.modelOperationsGuardrailsControllerGetGuardrails(id, guardrailsId, options).then((request) => request(axios, basePath));
541
+ },
542
+ /**
543
+ *
544
+ * @param {string} id ID of the model.
545
+ * @param {string} guardrailsId ID of the guardrails.
546
+ * @param {CreateGuardrailDto} createGuardrailDto
547
+ * @param {*} [options] Override http request option.
548
+ * @throws {RequiredError}
549
+ */
550
+ modelOperationsGuardrailsControllerUpdateGuardrails(id, guardrailsId, createGuardrailDto, options) {
551
+ return localVarFp.modelOperationsGuardrailsControllerUpdateGuardrails(id, guardrailsId, createGuardrailDto, options).then((request) => request(axios, basePath));
552
+ },
553
+ };
554
+ };
555
+ exports.GuardrailsApiFactory = GuardrailsApiFactory;
556
+ /**
557
+ * GuardrailsApi - object-oriented interface
558
+ * @export
559
+ * @class GuardrailsApi
560
+ * @extends {BaseAPI}
561
+ */
562
+ class GuardrailsApi extends base_1.BaseAPI {
563
+ /**
564
+ *
565
+ * @param {string} id ID of the model.
566
+ * @param {CreateGuardrailDto} createGuardrailDto
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ * @memberof GuardrailsApi
570
+ */
571
+ modelOperationsGuardrailsControllerCreateGuardrails(id, createGuardrailDto, options) {
572
+ return (0, exports.GuardrailsApiFp)(this.configuration).modelOperationsGuardrailsControllerCreateGuardrails(id, createGuardrailDto, options).then((request) => request(this.axios, this.basePath));
573
+ }
574
+ /**
575
+ *
576
+ * @param {string} id ID of the model.
577
+ * @param {string} guardrailsId ID of the guardrails.
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ * @memberof GuardrailsApi
581
+ */
582
+ modelOperationsGuardrailsControllerDeleteGuardrails(id, guardrailsId, options) {
583
+ return (0, exports.GuardrailsApiFp)(this.configuration).modelOperationsGuardrailsControllerDeleteGuardrails(id, guardrailsId, options).then((request) => request(this.axios, this.basePath));
584
+ }
585
+ /**
586
+ *
587
+ * @param {string} id ID of the model.
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ * @memberof GuardrailsApi
591
+ */
592
+ modelOperationsGuardrailsControllerGetAllGuardrails(id, options) {
593
+ return (0, exports.GuardrailsApiFp)(this.configuration).modelOperationsGuardrailsControllerGetAllGuardrails(id, options).then((request) => request(this.axios, this.basePath));
594
+ }
595
+ /**
596
+ *
597
+ * @param {string} id ID of the model.
598
+ * @param {string} guardrailsId ID of the guardrails.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ * @memberof GuardrailsApi
602
+ */
603
+ modelOperationsGuardrailsControllerGetGuardrails(id, guardrailsId, options) {
604
+ return (0, exports.GuardrailsApiFp)(this.configuration).modelOperationsGuardrailsControllerGetGuardrails(id, guardrailsId, options).then((request) => request(this.axios, this.basePath));
605
+ }
606
+ /**
607
+ *
608
+ * @param {string} id ID of the model.
609
+ * @param {string} guardrailsId ID of the guardrails.
610
+ * @param {CreateGuardrailDto} createGuardrailDto
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof GuardrailsApi
614
+ */
615
+ modelOperationsGuardrailsControllerUpdateGuardrails(id, guardrailsId, createGuardrailDto, options) {
616
+ return (0, exports.GuardrailsApiFp)(this.configuration).modelOperationsGuardrailsControllerUpdateGuardrails(id, guardrailsId, createGuardrailDto, options).then((request) => request(this.axios, this.basePath));
617
+ }
618
+ }
619
+ exports.GuardrailsApi = GuardrailsApi;
620
+ /**
621
+ * QueryApi - axios parameter creator
622
+ * @export
623
+ */
624
+ const QueryApiAxiosParamCreator = function (configuration) {
625
+ return {
626
+ /**
627
+ *
628
+ * @param {string} id ID of the model.
629
+ * @param {QueryHandlerDto} queryHandlerDto
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ */
633
+ modelOperationsQueryControllerCreateQuery: (id_1, queryHandlerDto_1, ...args_1) => __awaiter(this, [id_1, queryHandlerDto_1, ...args_1], void 0, function* (id, queryHandlerDto, options = {}) {
634
+ // verify required parameter 'id' is not null or undefined
635
+ (0, common_1.assertParamExists)('modelOperationsQueryControllerCreateQuery', 'id', id);
636
+ // verify required parameter 'queryHandlerDto' is not null or undefined
637
+ (0, common_1.assertParamExists)('modelOperationsQueryControllerCreateQuery', 'queryHandlerDto', queryHandlerDto);
638
+ const localVarPath = `/models/{id}/query`
639
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
640
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
641
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
642
+ let baseOptions;
643
+ if (configuration) {
644
+ baseOptions = configuration.baseOptions;
645
+ }
646
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
647
+ const localVarHeaderParameter = {};
648
+ const localVarQueryParameter = {};
649
+ localVarHeaderParameter['Content-Type'] = 'application/json';
650
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
651
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
652
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
653
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(queryHandlerDto, localVarRequestOptions, configuration);
654
+ return {
655
+ url: (0, common_1.toPathString)(localVarUrlObj),
656
+ options: localVarRequestOptions,
657
+ };
658
+ }),
659
+ };
660
+ };
661
+ exports.QueryApiAxiosParamCreator = QueryApiAxiosParamCreator;
662
+ /**
663
+ * QueryApi - functional programming interface
664
+ * @export
665
+ */
666
+ const QueryApiFp = function (configuration) {
667
+ const localVarAxiosParamCreator = (0, exports.QueryApiAxiosParamCreator)(configuration);
668
+ return {
669
+ /**
670
+ *
671
+ * @param {string} id ID of the model.
672
+ * @param {QueryHandlerDto} queryHandlerDto
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ modelOperationsQueryControllerCreateQuery(id, queryHandlerDto, options) {
677
+ return __awaiter(this, void 0, void 0, function* () {
678
+ var _a, _b, _c;
679
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsQueryControllerCreateQuery(id, queryHandlerDto, options);
680
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
681
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QueryApi.modelOperationsQueryControllerCreateQuery']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
682
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
683
+ });
684
+ },
685
+ };
686
+ };
687
+ exports.QueryApiFp = QueryApiFp;
688
+ /**
689
+ * QueryApi - factory interface
690
+ * @export
691
+ */
692
+ const QueryApiFactory = function (configuration, basePath, axios) {
693
+ const localVarFp = (0, exports.QueryApiFp)(configuration);
694
+ return {
695
+ /**
696
+ *
697
+ * @param {string} id ID of the model.
698
+ * @param {QueryHandlerDto} queryHandlerDto
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ */
702
+ modelOperationsQueryControllerCreateQuery(id, queryHandlerDto, options) {
703
+ return localVarFp.modelOperationsQueryControllerCreateQuery(id, queryHandlerDto, options).then((request) => request(axios, basePath));
704
+ },
705
+ };
706
+ };
707
+ exports.QueryApiFactory = QueryApiFactory;
708
+ /**
709
+ * QueryApi - object-oriented interface
710
+ * @export
711
+ * @class QueryApi
712
+ * @extends {BaseAPI}
713
+ */
714
+ class QueryApi extends base_1.BaseAPI {
715
+ /**
716
+ *
717
+ * @param {string} id ID of the model.
718
+ * @param {QueryHandlerDto} queryHandlerDto
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ * @memberof QueryApi
722
+ */
723
+ modelOperationsQueryControllerCreateQuery(id, queryHandlerDto, options) {
724
+ return (0, exports.QueryApiFp)(this.configuration).modelOperationsQueryControllerCreateQuery(id, queryHandlerDto, options).then((request) => request(this.axios, this.basePath));
725
+ }
726
+ }
727
+ exports.QueryApi = QueryApi;
728
+ /**
729
+ * ServerLiveStatusApi - axios parameter creator
730
+ * @export
731
+ */
732
+ const ServerLiveStatusApiAxiosParamCreator = function (configuration) {
733
+ return {
734
+ /**
735
+ *
736
+ * @param {*} [options] Override http request option.
737
+ * @throws {RequiredError}
738
+ */
739
+ appControllerGetStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
740
+ const localVarPath = `/`;
741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
742
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
743
+ let baseOptions;
744
+ if (configuration) {
745
+ baseOptions = configuration.baseOptions;
746
+ }
747
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
748
+ const localVarHeaderParameter = {};
749
+ const localVarQueryParameter = {};
750
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
751
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
752
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
753
+ return {
754
+ url: (0, common_1.toPathString)(localVarUrlObj),
755
+ options: localVarRequestOptions,
756
+ };
757
+ }),
758
+ };
759
+ };
760
+ exports.ServerLiveStatusApiAxiosParamCreator = ServerLiveStatusApiAxiosParamCreator;
761
+ /**
762
+ * ServerLiveStatusApi - functional programming interface
763
+ * @export
764
+ */
765
+ const ServerLiveStatusApiFp = function (configuration) {
766
+ const localVarAxiosParamCreator = (0, exports.ServerLiveStatusApiAxiosParamCreator)(configuration);
767
+ return {
768
+ /**
769
+ *
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ */
773
+ appControllerGetStatus(options) {
774
+ return __awaiter(this, void 0, void 0, function* () {
775
+ var _a, _b, _c;
776
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.appControllerGetStatus(options);
777
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
778
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerLiveStatusApi.appControllerGetStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
779
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
780
+ });
781
+ },
782
+ };
783
+ };
784
+ exports.ServerLiveStatusApiFp = ServerLiveStatusApiFp;
785
+ /**
786
+ * ServerLiveStatusApi - factory interface
787
+ * @export
788
+ */
789
+ const ServerLiveStatusApiFactory = function (configuration, basePath, axios) {
790
+ const localVarFp = (0, exports.ServerLiveStatusApiFp)(configuration);
791
+ return {
792
+ /**
793
+ *
794
+ * @param {*} [options] Override http request option.
795
+ * @throws {RequiredError}
796
+ */
797
+ appControllerGetStatus(options) {
798
+ return localVarFp.appControllerGetStatus(options).then((request) => request(axios, basePath));
799
+ },
800
+ };
801
+ };
802
+ exports.ServerLiveStatusApiFactory = ServerLiveStatusApiFactory;
803
+ /**
804
+ * ServerLiveStatusApi - object-oriented interface
805
+ * @export
806
+ * @class ServerLiveStatusApi
807
+ * @extends {BaseAPI}
808
+ */
809
+ class ServerLiveStatusApi extends base_1.BaseAPI {
810
+ /**
811
+ *
812
+ * @param {*} [options] Override http request option.
813
+ * @throws {RequiredError}
814
+ * @memberof ServerLiveStatusApi
815
+ */
816
+ appControllerGetStatus(options) {
817
+ return (0, exports.ServerLiveStatusApiFp)(this.configuration).appControllerGetStatus(options).then((request) => request(this.axios, this.basePath));
818
+ }
819
+ }
820
+ exports.ServerLiveStatusApi = ServerLiveStatusApi;
821
+ /**
822
+ * WebhooksApi - axios parameter creator
823
+ * @export
824
+ */
825
+ const WebhooksApiAxiosParamCreator = function (configuration) {
826
+ return {
827
+ /**
828
+ *
829
+ * @param {string} id ID of the model.
830
+ * @param {CreateWebhookDto} createWebhookDto
831
+ * @param {*} [options] Override http request option.
832
+ * @throws {RequiredError}
833
+ */
834
+ modelOperationsWebhooksControllerCreateWebhook: (id_1, createWebhookDto_1, ...args_1) => __awaiter(this, [id_1, createWebhookDto_1, ...args_1], void 0, function* (id, createWebhookDto, options = {}) {
835
+ // verify required parameter 'id' is not null or undefined
836
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerCreateWebhook', 'id', id);
837
+ // verify required parameter 'createWebhookDto' is not null or undefined
838
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerCreateWebhook', 'createWebhookDto', createWebhookDto);
839
+ const localVarPath = `/models/{id}/webhooks`
840
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
841
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
842
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
843
+ let baseOptions;
844
+ if (configuration) {
845
+ baseOptions = configuration.baseOptions;
846
+ }
847
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
848
+ const localVarHeaderParameter = {};
849
+ const localVarQueryParameter = {};
850
+ localVarHeaderParameter['Content-Type'] = 'application/json';
851
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
852
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
853
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
854
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWebhookDto, localVarRequestOptions, configuration);
855
+ return {
856
+ url: (0, common_1.toPathString)(localVarUrlObj),
857
+ options: localVarRequestOptions,
858
+ };
859
+ }),
860
+ /**
861
+ *
862
+ * @param {string} id ID of the model.
863
+ * @param {string} webhookId ID of the webhook.
864
+ * @param {*} [options] Override http request option.
865
+ * @throws {RequiredError}
866
+ */
867
+ modelOperationsWebhooksControllerDeleteWebhook: (id_1, webhookId_1, ...args_1) => __awaiter(this, [id_1, webhookId_1, ...args_1], void 0, function* (id, webhookId, options = {}) {
868
+ // verify required parameter 'id' is not null or undefined
869
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerDeleteWebhook', 'id', id);
870
+ // verify required parameter 'webhookId' is not null or undefined
871
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerDeleteWebhook', 'webhookId', webhookId);
872
+ const localVarPath = `/models/{id}/webhooks/{webhookId}`
873
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
874
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
875
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
876
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
877
+ let baseOptions;
878
+ if (configuration) {
879
+ baseOptions = configuration.baseOptions;
880
+ }
881
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
882
+ const localVarHeaderParameter = {};
883
+ const localVarQueryParameter = {};
884
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
885
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
886
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
887
+ return {
888
+ url: (0, common_1.toPathString)(localVarUrlObj),
889
+ options: localVarRequestOptions,
890
+ };
891
+ }),
892
+ /**
893
+ *
894
+ * @param {string} id ID of the model.
895
+ * @param {*} [options] Override http request option.
896
+ * @throws {RequiredError}
897
+ */
898
+ modelOperationsWebhooksControllerGetAllWebhooks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
899
+ // verify required parameter 'id' is not null or undefined
900
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerGetAllWebhooks', 'id', id);
901
+ const localVarPath = `/models/{id}/webhooks`
902
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
903
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
904
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
905
+ let baseOptions;
906
+ if (configuration) {
907
+ baseOptions = configuration.baseOptions;
908
+ }
909
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
910
+ const localVarHeaderParameter = {};
911
+ const localVarQueryParameter = {};
912
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
913
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
914
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
915
+ return {
916
+ url: (0, common_1.toPathString)(localVarUrlObj),
917
+ options: localVarRequestOptions,
918
+ };
919
+ }),
920
+ /**
921
+ *
922
+ * @param {string} id ID of the model.
923
+ * @param {string} webhookId ID of the webhook.
924
+ * @param {*} [options] Override http request option.
925
+ * @throws {RequiredError}
926
+ */
927
+ modelOperationsWebhooksControllerGetWebhook: (id_1, webhookId_1, ...args_1) => __awaiter(this, [id_1, webhookId_1, ...args_1], void 0, function* (id, webhookId, options = {}) {
928
+ // verify required parameter 'id' is not null or undefined
929
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerGetWebhook', 'id', id);
930
+ // verify required parameter 'webhookId' is not null or undefined
931
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerGetWebhook', 'webhookId', webhookId);
932
+ const localVarPath = `/models/{id}/webhooks/{webhookId}`
933
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
934
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
935
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
936
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
937
+ let baseOptions;
938
+ if (configuration) {
939
+ baseOptions = configuration.baseOptions;
940
+ }
941
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
942
+ const localVarHeaderParameter = {};
943
+ const localVarQueryParameter = {};
944
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
945
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
946
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
947
+ return {
948
+ url: (0, common_1.toPathString)(localVarUrlObj),
949
+ options: localVarRequestOptions,
950
+ };
951
+ }),
952
+ /**
953
+ *
954
+ * @param {string} id ID of the model.
955
+ * @param {string} webhookId ID of the webhook.
956
+ * @param {UpdateWebhookDto} updateWebhookDto
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ */
960
+ modelOperationsWebhooksControllerUpdateWebhook: (id_1, webhookId_1, updateWebhookDto_1, ...args_1) => __awaiter(this, [id_1, webhookId_1, updateWebhookDto_1, ...args_1], void 0, function* (id, webhookId, updateWebhookDto, options = {}) {
961
+ // verify required parameter 'id' is not null or undefined
962
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerUpdateWebhook', 'id', id);
963
+ // verify required parameter 'webhookId' is not null or undefined
964
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerUpdateWebhook', 'webhookId', webhookId);
965
+ // verify required parameter 'updateWebhookDto' is not null or undefined
966
+ (0, common_1.assertParamExists)('modelOperationsWebhooksControllerUpdateWebhook', 'updateWebhookDto', updateWebhookDto);
967
+ const localVarPath = `/models/{id}/webhooks/{webhookId}`
968
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
969
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
970
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
971
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
972
+ let baseOptions;
973
+ if (configuration) {
974
+ baseOptions = configuration.baseOptions;
975
+ }
976
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
977
+ const localVarHeaderParameter = {};
978
+ const localVarQueryParameter = {};
979
+ localVarHeaderParameter['Content-Type'] = 'application/json';
980
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
981
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
982
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
983
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWebhookDto, localVarRequestOptions, configuration);
984
+ return {
985
+ url: (0, common_1.toPathString)(localVarUrlObj),
986
+ options: localVarRequestOptions,
987
+ };
988
+ }),
989
+ };
990
+ };
991
+ exports.WebhooksApiAxiosParamCreator = WebhooksApiAxiosParamCreator;
992
+ /**
993
+ * WebhooksApi - functional programming interface
994
+ * @export
995
+ */
996
+ const WebhooksApiFp = function (configuration) {
997
+ const localVarAxiosParamCreator = (0, exports.WebhooksApiAxiosParamCreator)(configuration);
998
+ return {
999
+ /**
1000
+ *
1001
+ * @param {string} id ID of the model.
1002
+ * @param {CreateWebhookDto} createWebhookDto
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ modelOperationsWebhooksControllerCreateWebhook(id, createWebhookDto, options) {
1007
+ return __awaiter(this, void 0, void 0, function* () {
1008
+ var _a, _b, _c;
1009
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsWebhooksControllerCreateWebhook(id, createWebhookDto, options);
1010
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1011
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.modelOperationsWebhooksControllerCreateWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1012
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1013
+ });
1014
+ },
1015
+ /**
1016
+ *
1017
+ * @param {string} id ID of the model.
1018
+ * @param {string} webhookId ID of the webhook.
1019
+ * @param {*} [options] Override http request option.
1020
+ * @throws {RequiredError}
1021
+ */
1022
+ modelOperationsWebhooksControllerDeleteWebhook(id, webhookId, options) {
1023
+ return __awaiter(this, void 0, void 0, function* () {
1024
+ var _a, _b, _c;
1025
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsWebhooksControllerDeleteWebhook(id, webhookId, options);
1026
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1027
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.modelOperationsWebhooksControllerDeleteWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1028
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1029
+ });
1030
+ },
1031
+ /**
1032
+ *
1033
+ * @param {string} id ID of the model.
1034
+ * @param {*} [options] Override http request option.
1035
+ * @throws {RequiredError}
1036
+ */
1037
+ modelOperationsWebhooksControllerGetAllWebhooks(id, options) {
1038
+ return __awaiter(this, void 0, void 0, function* () {
1039
+ var _a, _b, _c;
1040
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsWebhooksControllerGetAllWebhooks(id, options);
1041
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1042
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.modelOperationsWebhooksControllerGetAllWebhooks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1043
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1044
+ });
1045
+ },
1046
+ /**
1047
+ *
1048
+ * @param {string} id ID of the model.
1049
+ * @param {string} webhookId ID of the webhook.
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ modelOperationsWebhooksControllerGetWebhook(id, webhookId, options) {
1054
+ return __awaiter(this, void 0, void 0, function* () {
1055
+ var _a, _b, _c;
1056
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsWebhooksControllerGetWebhook(id, webhookId, options);
1057
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1058
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.modelOperationsWebhooksControllerGetWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1059
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1060
+ });
1061
+ },
1062
+ /**
1063
+ *
1064
+ * @param {string} id ID of the model.
1065
+ * @param {string} webhookId ID of the webhook.
1066
+ * @param {UpdateWebhookDto} updateWebhookDto
1067
+ * @param {*} [options] Override http request option.
1068
+ * @throws {RequiredError}
1069
+ */
1070
+ modelOperationsWebhooksControllerUpdateWebhook(id, webhookId, updateWebhookDto, options) {
1071
+ return __awaiter(this, void 0, void 0, function* () {
1072
+ var _a, _b, _c;
1073
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.modelOperationsWebhooksControllerUpdateWebhook(id, webhookId, updateWebhookDto, options);
1074
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1075
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.modelOperationsWebhooksControllerUpdateWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1076
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1077
+ });
1078
+ },
1079
+ };
1080
+ };
1081
+ exports.WebhooksApiFp = WebhooksApiFp;
1082
+ /**
1083
+ * WebhooksApi - factory interface
1084
+ * @export
1085
+ */
1086
+ const WebhooksApiFactory = function (configuration, basePath, axios) {
1087
+ const localVarFp = (0, exports.WebhooksApiFp)(configuration);
1088
+ return {
1089
+ /**
1090
+ *
1091
+ * @param {string} id ID of the model.
1092
+ * @param {CreateWebhookDto} createWebhookDto
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ */
1096
+ modelOperationsWebhooksControllerCreateWebhook(id, createWebhookDto, options) {
1097
+ return localVarFp.modelOperationsWebhooksControllerCreateWebhook(id, createWebhookDto, options).then((request) => request(axios, basePath));
1098
+ },
1099
+ /**
1100
+ *
1101
+ * @param {string} id ID of the model.
1102
+ * @param {string} webhookId ID of the webhook.
1103
+ * @param {*} [options] Override http request option.
1104
+ * @throws {RequiredError}
1105
+ */
1106
+ modelOperationsWebhooksControllerDeleteWebhook(id, webhookId, options) {
1107
+ return localVarFp.modelOperationsWebhooksControllerDeleteWebhook(id, webhookId, options).then((request) => request(axios, basePath));
1108
+ },
1109
+ /**
1110
+ *
1111
+ * @param {string} id ID of the model.
1112
+ * @param {*} [options] Override http request option.
1113
+ * @throws {RequiredError}
1114
+ */
1115
+ modelOperationsWebhooksControllerGetAllWebhooks(id, options) {
1116
+ return localVarFp.modelOperationsWebhooksControllerGetAllWebhooks(id, options).then((request) => request(axios, basePath));
1117
+ },
1118
+ /**
1119
+ *
1120
+ * @param {string} id ID of the model.
1121
+ * @param {string} webhookId ID of the webhook.
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ modelOperationsWebhooksControllerGetWebhook(id, webhookId, options) {
1126
+ return localVarFp.modelOperationsWebhooksControllerGetWebhook(id, webhookId, options).then((request) => request(axios, basePath));
1127
+ },
1128
+ /**
1129
+ *
1130
+ * @param {string} id ID of the model.
1131
+ * @param {string} webhookId ID of the webhook.
1132
+ * @param {UpdateWebhookDto} updateWebhookDto
1133
+ * @param {*} [options] Override http request option.
1134
+ * @throws {RequiredError}
1135
+ */
1136
+ modelOperationsWebhooksControllerUpdateWebhook(id, webhookId, updateWebhookDto, options) {
1137
+ return localVarFp.modelOperationsWebhooksControllerUpdateWebhook(id, webhookId, updateWebhookDto, options).then((request) => request(axios, basePath));
1138
+ },
1139
+ };
1140
+ };
1141
+ exports.WebhooksApiFactory = WebhooksApiFactory;
1142
+ /**
1143
+ * WebhooksApi - object-oriented interface
1144
+ * @export
1145
+ * @class WebhooksApi
1146
+ * @extends {BaseAPI}
1147
+ */
1148
+ class WebhooksApi extends base_1.BaseAPI {
1149
+ /**
1150
+ *
1151
+ * @param {string} id ID of the model.
1152
+ * @param {CreateWebhookDto} createWebhookDto
1153
+ * @param {*} [options] Override http request option.
1154
+ * @throws {RequiredError}
1155
+ * @memberof WebhooksApi
1156
+ */
1157
+ modelOperationsWebhooksControllerCreateWebhook(id, createWebhookDto, options) {
1158
+ return (0, exports.WebhooksApiFp)(this.configuration).modelOperationsWebhooksControllerCreateWebhook(id, createWebhookDto, options).then((request) => request(this.axios, this.basePath));
1159
+ }
1160
+ /**
1161
+ *
1162
+ * @param {string} id ID of the model.
1163
+ * @param {string} webhookId ID of the webhook.
1164
+ * @param {*} [options] Override http request option.
1165
+ * @throws {RequiredError}
1166
+ * @memberof WebhooksApi
1167
+ */
1168
+ modelOperationsWebhooksControllerDeleteWebhook(id, webhookId, options) {
1169
+ return (0, exports.WebhooksApiFp)(this.configuration).modelOperationsWebhooksControllerDeleteWebhook(id, webhookId, options).then((request) => request(this.axios, this.basePath));
1170
+ }
1171
+ /**
1172
+ *
1173
+ * @param {string} id ID of the model.
1174
+ * @param {*} [options] Override http request option.
1175
+ * @throws {RequiredError}
1176
+ * @memberof WebhooksApi
1177
+ */
1178
+ modelOperationsWebhooksControllerGetAllWebhooks(id, options) {
1179
+ return (0, exports.WebhooksApiFp)(this.configuration).modelOperationsWebhooksControllerGetAllWebhooks(id, options).then((request) => request(this.axios, this.basePath));
1180
+ }
1181
+ /**
1182
+ *
1183
+ * @param {string} id ID of the model.
1184
+ * @param {string} webhookId ID of the webhook.
1185
+ * @param {*} [options] Override http request option.
1186
+ * @throws {RequiredError}
1187
+ * @memberof WebhooksApi
1188
+ */
1189
+ modelOperationsWebhooksControllerGetWebhook(id, webhookId, options) {
1190
+ return (0, exports.WebhooksApiFp)(this.configuration).modelOperationsWebhooksControllerGetWebhook(id, webhookId, options).then((request) => request(this.axios, this.basePath));
1191
+ }
1192
+ /**
1193
+ *
1194
+ * @param {string} id ID of the model.
1195
+ * @param {string} webhookId ID of the webhook.
1196
+ * @param {UpdateWebhookDto} updateWebhookDto
1197
+ * @param {*} [options] Override http request option.
1198
+ * @throws {RequiredError}
1199
+ * @memberof WebhooksApi
1200
+ */
1201
+ modelOperationsWebhooksControllerUpdateWebhook(id, webhookId, updateWebhookDto, options) {
1202
+ return (0, exports.WebhooksApiFp)(this.configuration).modelOperationsWebhooksControllerUpdateWebhook(id, webhookId, updateWebhookDto, options).then((request) => request(this.axios, this.basePath));
1203
+ }
1204
+ }
1205
+ exports.WebhooksApi = WebhooksApi;