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