@scout9/admin 1.0.3 → 1.0.5
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/build/api.d.ts +5318 -0
- package/build/api.js +2992 -0
- package/build/base.d.ts +54 -0
- package/build/base.js +66 -0
- package/build/common.d.ts +65 -0
- package/build/common.js +145 -0
- package/build/configuration.d.ts +83 -0
- package/build/configuration.js +91 -0
- package/build/index.d.ts +13 -0
- package/build/index.js +31 -0
- package/package.json +1 -1
- package/src/api.ts +4207 -939
- package/tsconfig.tsbuildinfo +1 -1
package/build/api.js
ADDED
|
@@ -0,0 +1,2992 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Scout9 API
|
|
6
|
+
* APIs for managing Scout9 users and conversations
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.Scout9Api = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("./common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("./base");
|
|
26
|
+
/**
|
|
27
|
+
* Scout9Api - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Create a new agent
|
|
35
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
createAgent: async (createAgentRequest, options = {}) => {
|
|
40
|
+
// verify required parameter 'createAgentRequest' is not null or undefined
|
|
41
|
+
(0, common_1.assertParamExists)('createAgent', 'createAgentRequest', createAgentRequest);
|
|
42
|
+
const localVarPath = `/v1/agent`;
|
|
43
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
45
|
+
let baseOptions;
|
|
46
|
+
if (configuration) {
|
|
47
|
+
baseOptions = configuration.baseOptions;
|
|
48
|
+
}
|
|
49
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
50
|
+
const localVarHeaderParameter = {};
|
|
51
|
+
const localVarQueryParameter = {};
|
|
52
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
53
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
54
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
56
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAgentRequest, localVarRequestOptions, configuration);
|
|
57
|
+
return {
|
|
58
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
59
|
+
options: localVarRequestOptions,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @summary Creates new agents
|
|
65
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
createAgents: async (createAgentsRequest, options = {}) => {
|
|
70
|
+
// verify required parameter 'createAgentsRequest' is not null or undefined
|
|
71
|
+
(0, common_1.assertParamExists)('createAgents', 'createAgentsRequest', createAgentsRequest);
|
|
72
|
+
const localVarPath = `/v1/agents`;
|
|
73
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
75
|
+
let baseOptions;
|
|
76
|
+
if (configuration) {
|
|
77
|
+
baseOptions = configuration.baseOptions;
|
|
78
|
+
}
|
|
79
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
80
|
+
const localVarHeaderParameter = {};
|
|
81
|
+
const localVarQueryParameter = {};
|
|
82
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
83
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
86
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAgentsRequest, localVarRequestOptions, configuration);
|
|
87
|
+
return {
|
|
88
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @summary Create a new context
|
|
95
|
+
* @param {CreateContextRequest} createContextRequest
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
createContext: async (createContextRequest, options = {}) => {
|
|
100
|
+
// verify required parameter 'createContextRequest' is not null or undefined
|
|
101
|
+
(0, common_1.assertParamExists)('createContext', 'createContextRequest', createContextRequest);
|
|
102
|
+
const localVarPath = `/v1/context`;
|
|
103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
105
|
+
let baseOptions;
|
|
106
|
+
if (configuration) {
|
|
107
|
+
baseOptions = configuration.baseOptions;
|
|
108
|
+
}
|
|
109
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
110
|
+
const localVarHeaderParameter = {};
|
|
111
|
+
const localVarQueryParameter = {};
|
|
112
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
116
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextRequest, localVarRequestOptions, configuration);
|
|
117
|
+
return {
|
|
118
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
119
|
+
options: localVarRequestOptions,
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @summary Creates new contexts
|
|
125
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
createContexts: async (createContextsRequest, options = {}) => {
|
|
130
|
+
// verify required parameter 'createContextsRequest' is not null or undefined
|
|
131
|
+
(0, common_1.assertParamExists)('createContexts', 'createContextsRequest', createContextsRequest);
|
|
132
|
+
const localVarPath = `/v1/contexts`;
|
|
133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
135
|
+
let baseOptions;
|
|
136
|
+
if (configuration) {
|
|
137
|
+
baseOptions = configuration.baseOptions;
|
|
138
|
+
}
|
|
139
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
140
|
+
const localVarHeaderParameter = {};
|
|
141
|
+
const localVarQueryParameter = {};
|
|
142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
146
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextsRequest, localVarRequestOptions, configuration);
|
|
147
|
+
return {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @summary Create a new conversation
|
|
155
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
createConversation: async (conversationCreateRequest, options = {}) => {
|
|
160
|
+
// verify required parameter 'conversationCreateRequest' is not null or undefined
|
|
161
|
+
(0, common_1.assertParamExists)('createConversation', 'conversationCreateRequest', conversationCreateRequest);
|
|
162
|
+
const localVarPath = `/v1/conversation`;
|
|
163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
164
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
165
|
+
let baseOptions;
|
|
166
|
+
if (configuration) {
|
|
167
|
+
baseOptions = configuration.baseOptions;
|
|
168
|
+
}
|
|
169
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
170
|
+
const localVarHeaderParameter = {};
|
|
171
|
+
const localVarQueryParameter = {};
|
|
172
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
173
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
176
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationCreateRequest, localVarRequestOptions, configuration);
|
|
177
|
+
return {
|
|
178
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @summary Creates a new customer
|
|
185
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
createCustomer: async (createCustomerRequest, options = {}) => {
|
|
190
|
+
// verify required parameter 'createCustomerRequest' is not null or undefined
|
|
191
|
+
(0, common_1.assertParamExists)('createCustomer', 'createCustomerRequest', createCustomerRequest);
|
|
192
|
+
const localVarPath = `/v1/customer`;
|
|
193
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
194
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
195
|
+
let baseOptions;
|
|
196
|
+
if (configuration) {
|
|
197
|
+
baseOptions = configuration.baseOptions;
|
|
198
|
+
}
|
|
199
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
200
|
+
const localVarHeaderParameter = {};
|
|
201
|
+
const localVarQueryParameter = {};
|
|
202
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
203
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
204
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
205
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
206
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerRequest, localVarRequestOptions, configuration);
|
|
207
|
+
return {
|
|
208
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
209
|
+
options: localVarRequestOptions,
|
|
210
|
+
};
|
|
211
|
+
},
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @summary Creates new customers
|
|
215
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
createCustomers: async (createCustomersRequest, options = {}) => {
|
|
220
|
+
// verify required parameter 'createCustomersRequest' is not null or undefined
|
|
221
|
+
(0, common_1.assertParamExists)('createCustomers', 'createCustomersRequest', createCustomersRequest);
|
|
222
|
+
const localVarPath = `/v1/customers`;
|
|
223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
224
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
225
|
+
let baseOptions;
|
|
226
|
+
if (configuration) {
|
|
227
|
+
baseOptions = configuration.baseOptions;
|
|
228
|
+
}
|
|
229
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
230
|
+
const localVarHeaderParameter = {};
|
|
231
|
+
const localVarQueryParameter = {};
|
|
232
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
236
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomersRequest, localVarRequestOptions, configuration);
|
|
237
|
+
return {
|
|
238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @summary Create and send message
|
|
245
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
createMessage: async (messageCreateRequest, options = {}) => {
|
|
250
|
+
// verify required parameter 'messageCreateRequest' is not null or undefined
|
|
251
|
+
(0, common_1.assertParamExists)('createMessage', 'messageCreateRequest', messageCreateRequest);
|
|
252
|
+
const localVarPath = `/v1/messages`;
|
|
253
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
255
|
+
let baseOptions;
|
|
256
|
+
if (configuration) {
|
|
257
|
+
baseOptions = configuration.baseOptions;
|
|
258
|
+
}
|
|
259
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
260
|
+
const localVarHeaderParameter = {};
|
|
261
|
+
const localVarQueryParameter = {};
|
|
262
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
263
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
264
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
265
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
266
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(messageCreateRequest, localVarRequestOptions, configuration);
|
|
267
|
+
return {
|
|
268
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
269
|
+
options: localVarRequestOptions,
|
|
270
|
+
};
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @summary Creates a new scheduled conversation
|
|
275
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
createSchedule: async (scheduleCreateRequest, options = {}) => {
|
|
280
|
+
// verify required parameter 'scheduleCreateRequest' is not null or undefined
|
|
281
|
+
(0, common_1.assertParamExists)('createSchedule', 'scheduleCreateRequest', scheduleCreateRequest);
|
|
282
|
+
const localVarPath = `/v1/schedule`;
|
|
283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
285
|
+
let baseOptions;
|
|
286
|
+
if (configuration) {
|
|
287
|
+
baseOptions = configuration.baseOptions;
|
|
288
|
+
}
|
|
289
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
290
|
+
const localVarHeaderParameter = {};
|
|
291
|
+
const localVarQueryParameter = {};
|
|
292
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
293
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
294
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
296
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleCreateRequest, localVarRequestOptions, configuration);
|
|
297
|
+
return {
|
|
298
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
299
|
+
options: localVarRequestOptions,
|
|
300
|
+
};
|
|
301
|
+
},
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @summary Creates a new schedule group
|
|
305
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
createScheduleGroup: async (scheduleGroupCreateRequest, options = {}) => {
|
|
310
|
+
// verify required parameter 'scheduleGroupCreateRequest' is not null or undefined
|
|
311
|
+
(0, common_1.assertParamExists)('createScheduleGroup', 'scheduleGroupCreateRequest', scheduleGroupCreateRequest);
|
|
312
|
+
const localVarPath = `/v1/scheduleGroup`;
|
|
313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
|
+
let baseOptions;
|
|
316
|
+
if (configuration) {
|
|
317
|
+
baseOptions = configuration.baseOptions;
|
|
318
|
+
}
|
|
319
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
320
|
+
const localVarHeaderParameter = {};
|
|
321
|
+
const localVarQueryParameter = {};
|
|
322
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
323
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
324
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
325
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
326
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleGroupCreateRequest, localVarRequestOptions, configuration);
|
|
327
|
+
return {
|
|
328
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
329
|
+
options: localVarRequestOptions,
|
|
330
|
+
};
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @summary Create a new workflow
|
|
335
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
createWorkflow: async (createWorkflowRequest, options = {}) => {
|
|
340
|
+
// verify required parameter 'createWorkflowRequest' is not null or undefined
|
|
341
|
+
(0, common_1.assertParamExists)('createWorkflow', 'createWorkflowRequest', createWorkflowRequest);
|
|
342
|
+
const localVarPath = `/v1/workflow`;
|
|
343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
344
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
|
+
let baseOptions;
|
|
346
|
+
if (configuration) {
|
|
347
|
+
baseOptions = configuration.baseOptions;
|
|
348
|
+
}
|
|
349
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
350
|
+
const localVarHeaderParameter = {};
|
|
351
|
+
const localVarQueryParameter = {};
|
|
352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
353
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
356
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkflowRequest, localVarRequestOptions, configuration);
|
|
357
|
+
return {
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
};
|
|
361
|
+
},
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @summary Creates new workflows
|
|
365
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
createWorkflows: async (createWorkflowsRequest, options = {}) => {
|
|
370
|
+
// verify required parameter 'createWorkflowsRequest' is not null or undefined
|
|
371
|
+
(0, common_1.assertParamExists)('createWorkflows', 'createWorkflowsRequest', createWorkflowsRequest);
|
|
372
|
+
const localVarPath = `/v1/workflows`;
|
|
373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
374
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
|
+
let baseOptions;
|
|
376
|
+
if (configuration) {
|
|
377
|
+
baseOptions = configuration.baseOptions;
|
|
378
|
+
}
|
|
379
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
380
|
+
const localVarHeaderParameter = {};
|
|
381
|
+
const localVarQueryParameter = {};
|
|
382
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
383
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
386
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkflowsRequest, localVarRequestOptions, configuration);
|
|
387
|
+
return {
|
|
388
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
389
|
+
options: localVarRequestOptions,
|
|
390
|
+
};
|
|
391
|
+
},
|
|
392
|
+
/**
|
|
393
|
+
*
|
|
394
|
+
* @summary Deletes a agent
|
|
395
|
+
* @param {string} id Agent ID to delete agent
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
*/
|
|
399
|
+
deleteAgent: async (id, options = {}) => {
|
|
400
|
+
// verify required parameter 'id' is not null or undefined
|
|
401
|
+
(0, common_1.assertParamExists)('deleteAgent', 'id', id);
|
|
402
|
+
const localVarPath = `/v1/agent`;
|
|
403
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
404
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
405
|
+
let baseOptions;
|
|
406
|
+
if (configuration) {
|
|
407
|
+
baseOptions = configuration.baseOptions;
|
|
408
|
+
}
|
|
409
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
410
|
+
const localVarHeaderParameter = {};
|
|
411
|
+
const localVarQueryParameter = {};
|
|
412
|
+
if (id !== undefined) {
|
|
413
|
+
localVarQueryParameter['id'] = id;
|
|
414
|
+
}
|
|
415
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
417
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
418
|
+
return {
|
|
419
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
420
|
+
options: localVarRequestOptions,
|
|
421
|
+
};
|
|
422
|
+
},
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @summary Deletes multiple agents
|
|
426
|
+
* @param {string} id Agent IDs to delete multiple agents
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
deleteAgents: async (id, options = {}) => {
|
|
431
|
+
// verify required parameter 'id' is not null or undefined
|
|
432
|
+
(0, common_1.assertParamExists)('deleteAgents', 'id', id);
|
|
433
|
+
const localVarPath = `/v1/agents`;
|
|
434
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
435
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
436
|
+
let baseOptions;
|
|
437
|
+
if (configuration) {
|
|
438
|
+
baseOptions = configuration.baseOptions;
|
|
439
|
+
}
|
|
440
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
441
|
+
const localVarHeaderParameter = {};
|
|
442
|
+
const localVarQueryParameter = {};
|
|
443
|
+
if (id !== undefined) {
|
|
444
|
+
localVarQueryParameter['id'] = id;
|
|
445
|
+
}
|
|
446
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
447
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
448
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
449
|
+
return {
|
|
450
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
451
|
+
options: localVarRequestOptions,
|
|
452
|
+
};
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @summary Deletes a schedule
|
|
457
|
+
* @param {string} id Context ID to delete context
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
deleteContext: async (id, options = {}) => {
|
|
462
|
+
// verify required parameter 'id' is not null or undefined
|
|
463
|
+
(0, common_1.assertParamExists)('deleteContext', 'id', id);
|
|
464
|
+
const localVarPath = `/v1/context`;
|
|
465
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
466
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
467
|
+
let baseOptions;
|
|
468
|
+
if (configuration) {
|
|
469
|
+
baseOptions = configuration.baseOptions;
|
|
470
|
+
}
|
|
471
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
472
|
+
const localVarHeaderParameter = {};
|
|
473
|
+
const localVarQueryParameter = {};
|
|
474
|
+
if (id !== undefined) {
|
|
475
|
+
localVarQueryParameter['id'] = id;
|
|
476
|
+
}
|
|
477
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
478
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
479
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
480
|
+
return {
|
|
481
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
482
|
+
options: localVarRequestOptions,
|
|
483
|
+
};
|
|
484
|
+
},
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @summary Deletes multiple contexts
|
|
488
|
+
* @param {string} id Context IDs to delete multiple context
|
|
489
|
+
* @param {*} [options] Override http request option.
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
*/
|
|
492
|
+
deleteContexts: async (id, options = {}) => {
|
|
493
|
+
// verify required parameter 'id' is not null or undefined
|
|
494
|
+
(0, common_1.assertParamExists)('deleteContexts', 'id', id);
|
|
495
|
+
const localVarPath = `/v1/contexts`;
|
|
496
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
497
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
498
|
+
let baseOptions;
|
|
499
|
+
if (configuration) {
|
|
500
|
+
baseOptions = configuration.baseOptions;
|
|
501
|
+
}
|
|
502
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
503
|
+
const localVarHeaderParameter = {};
|
|
504
|
+
const localVarQueryParameter = {};
|
|
505
|
+
if (id !== undefined) {
|
|
506
|
+
localVarQueryParameter['id'] = id;
|
|
507
|
+
}
|
|
508
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
510
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
511
|
+
return {
|
|
512
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
513
|
+
options: localVarRequestOptions,
|
|
514
|
+
};
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @summary Deletes a schedule
|
|
519
|
+
* @param {string} id Schedule ID to delete schedule
|
|
520
|
+
* @param {*} [options] Override http request option.
|
|
521
|
+
* @throws {RequiredError}
|
|
522
|
+
*/
|
|
523
|
+
deleteConversation: async (id, options = {}) => {
|
|
524
|
+
// verify required parameter 'id' is not null or undefined
|
|
525
|
+
(0, common_1.assertParamExists)('deleteConversation', 'id', id);
|
|
526
|
+
const localVarPath = `/v1/conversation`;
|
|
527
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
528
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
529
|
+
let baseOptions;
|
|
530
|
+
if (configuration) {
|
|
531
|
+
baseOptions = configuration.baseOptions;
|
|
532
|
+
}
|
|
533
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
534
|
+
const localVarHeaderParameter = {};
|
|
535
|
+
const localVarQueryParameter = {};
|
|
536
|
+
if (id !== undefined) {
|
|
537
|
+
localVarQueryParameter['id'] = id;
|
|
538
|
+
}
|
|
539
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
540
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
541
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
542
|
+
return {
|
|
543
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
544
|
+
options: localVarRequestOptions,
|
|
545
|
+
};
|
|
546
|
+
},
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @summary Deletes a customer
|
|
550
|
+
* @param {string} id Customer ID to delete customer
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
deleteCustomer: async (id, options = {}) => {
|
|
555
|
+
// verify required parameter 'id' is not null or undefined
|
|
556
|
+
(0, common_1.assertParamExists)('deleteCustomer', 'id', id);
|
|
557
|
+
const localVarPath = `/v1/customer`;
|
|
558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
559
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
560
|
+
let baseOptions;
|
|
561
|
+
if (configuration) {
|
|
562
|
+
baseOptions = configuration.baseOptions;
|
|
563
|
+
}
|
|
564
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
565
|
+
const localVarHeaderParameter = {};
|
|
566
|
+
const localVarQueryParameter = {};
|
|
567
|
+
if (id !== undefined) {
|
|
568
|
+
localVarQueryParameter['id'] = id;
|
|
569
|
+
}
|
|
570
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
571
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
572
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
573
|
+
return {
|
|
574
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
575
|
+
options: localVarRequestOptions,
|
|
576
|
+
};
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @summary Deletes multiple customers
|
|
581
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
deleteCustomers: async (id, options = {}) => {
|
|
586
|
+
// verify required parameter 'id' is not null or undefined
|
|
587
|
+
(0, common_1.assertParamExists)('deleteCustomers', 'id', id);
|
|
588
|
+
const localVarPath = `/v1/customers`;
|
|
589
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
590
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
591
|
+
let baseOptions;
|
|
592
|
+
if (configuration) {
|
|
593
|
+
baseOptions = configuration.baseOptions;
|
|
594
|
+
}
|
|
595
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
596
|
+
const localVarHeaderParameter = {};
|
|
597
|
+
const localVarQueryParameter = {};
|
|
598
|
+
if (id !== undefined) {
|
|
599
|
+
localVarQueryParameter['id'] = id;
|
|
600
|
+
}
|
|
601
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
602
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
603
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
604
|
+
return {
|
|
605
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
606
|
+
options: localVarRequestOptions,
|
|
607
|
+
};
|
|
608
|
+
},
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @summary Deletes a schedule
|
|
612
|
+
* @param {string} id Schedule ID to delete schedule
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
deleteSchedule: async (id, options = {}) => {
|
|
617
|
+
// verify required parameter 'id' is not null or undefined
|
|
618
|
+
(0, common_1.assertParamExists)('deleteSchedule', 'id', id);
|
|
619
|
+
const localVarPath = `/v1/schedule`;
|
|
620
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
621
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
622
|
+
let baseOptions;
|
|
623
|
+
if (configuration) {
|
|
624
|
+
baseOptions = configuration.baseOptions;
|
|
625
|
+
}
|
|
626
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
627
|
+
const localVarHeaderParameter = {};
|
|
628
|
+
const localVarQueryParameter = {};
|
|
629
|
+
if (id !== undefined) {
|
|
630
|
+
localVarQueryParameter['id'] = id;
|
|
631
|
+
}
|
|
632
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
633
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
634
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
635
|
+
return {
|
|
636
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
637
|
+
options: localVarRequestOptions,
|
|
638
|
+
};
|
|
639
|
+
},
|
|
640
|
+
/**
|
|
641
|
+
*
|
|
642
|
+
* @summary Deletes a schedule group
|
|
643
|
+
* @param {string} id Schedule group ID to delete schedule group
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
deleteScheduleGroup: async (id, options = {}) => {
|
|
648
|
+
// verify required parameter 'id' is not null or undefined
|
|
649
|
+
(0, common_1.assertParamExists)('deleteScheduleGroup', 'id', id);
|
|
650
|
+
const localVarPath = `/v1/scheduleGroup`;
|
|
651
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
652
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
653
|
+
let baseOptions;
|
|
654
|
+
if (configuration) {
|
|
655
|
+
baseOptions = configuration.baseOptions;
|
|
656
|
+
}
|
|
657
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
658
|
+
const localVarHeaderParameter = {};
|
|
659
|
+
const localVarQueryParameter = {};
|
|
660
|
+
if (id !== undefined) {
|
|
661
|
+
localVarQueryParameter['id'] = id;
|
|
662
|
+
}
|
|
663
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
665
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
666
|
+
return {
|
|
667
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
668
|
+
options: localVarRequestOptions,
|
|
669
|
+
};
|
|
670
|
+
},
|
|
671
|
+
/**
|
|
672
|
+
*
|
|
673
|
+
* @summary Deletes a workflow
|
|
674
|
+
* @param {string} id workflow ID to delete workflow
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
deleteWorkflow: async (id, options = {}) => {
|
|
679
|
+
// verify required parameter 'id' is not null or undefined
|
|
680
|
+
(0, common_1.assertParamExists)('deleteWorkflow', 'id', id);
|
|
681
|
+
const localVarPath = `/v1/workflow`;
|
|
682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
683
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
684
|
+
let baseOptions;
|
|
685
|
+
if (configuration) {
|
|
686
|
+
baseOptions = configuration.baseOptions;
|
|
687
|
+
}
|
|
688
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
689
|
+
const localVarHeaderParameter = {};
|
|
690
|
+
const localVarQueryParameter = {};
|
|
691
|
+
if (id !== undefined) {
|
|
692
|
+
localVarQueryParameter['id'] = id;
|
|
693
|
+
}
|
|
694
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
695
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
696
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
697
|
+
return {
|
|
698
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
699
|
+
options: localVarRequestOptions,
|
|
700
|
+
};
|
|
701
|
+
},
|
|
702
|
+
/**
|
|
703
|
+
*
|
|
704
|
+
* @summary Deletes multiple workflows
|
|
705
|
+
* @param {string} id Workflow IDs to delete multiple workflow
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
deleteWorkflows: async (id, options = {}) => {
|
|
710
|
+
// verify required parameter 'id' is not null or undefined
|
|
711
|
+
(0, common_1.assertParamExists)('deleteWorkflows', 'id', id);
|
|
712
|
+
const localVarPath = `/v1/workflows`;
|
|
713
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
714
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
715
|
+
let baseOptions;
|
|
716
|
+
if (configuration) {
|
|
717
|
+
baseOptions = configuration.baseOptions;
|
|
718
|
+
}
|
|
719
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
720
|
+
const localVarHeaderParameter = {};
|
|
721
|
+
const localVarQueryParameter = {};
|
|
722
|
+
if (id !== undefined) {
|
|
723
|
+
localVarQueryParameter['id'] = id;
|
|
724
|
+
}
|
|
725
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
726
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
727
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
728
|
+
return {
|
|
729
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
730
|
+
options: localVarRequestOptions,
|
|
731
|
+
};
|
|
732
|
+
},
|
|
733
|
+
/**
|
|
734
|
+
*
|
|
735
|
+
* @summary Generate a message from conversation
|
|
736
|
+
* @param {GenerateRequest} generateRequest
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
generate: async (generateRequest, options = {}) => {
|
|
741
|
+
// verify required parameter 'generateRequest' is not null or undefined
|
|
742
|
+
(0, common_1.assertParamExists)('generate', 'generateRequest', generateRequest);
|
|
743
|
+
const localVarPath = `/v1/generate`;
|
|
744
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
745
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
746
|
+
let baseOptions;
|
|
747
|
+
if (configuration) {
|
|
748
|
+
baseOptions = configuration.baseOptions;
|
|
749
|
+
}
|
|
750
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
751
|
+
const localVarHeaderParameter = {};
|
|
752
|
+
const localVarQueryParameter = {};
|
|
753
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
754
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
756
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
757
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generateRequest, localVarRequestOptions, configuration);
|
|
758
|
+
return {
|
|
759
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
760
|
+
options: localVarRequestOptions,
|
|
761
|
+
};
|
|
762
|
+
},
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @summary Gets a agent
|
|
766
|
+
* @param {string} id Agent ID to get agent
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
*/
|
|
770
|
+
getAgent: async (id, options = {}) => {
|
|
771
|
+
// verify required parameter 'id' is not null or undefined
|
|
772
|
+
(0, common_1.assertParamExists)('getAgent', 'id', id);
|
|
773
|
+
const localVarPath = `/v1/agent`;
|
|
774
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
775
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
776
|
+
let baseOptions;
|
|
777
|
+
if (configuration) {
|
|
778
|
+
baseOptions = configuration.baseOptions;
|
|
779
|
+
}
|
|
780
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
781
|
+
const localVarHeaderParameter = {};
|
|
782
|
+
const localVarQueryParameter = {};
|
|
783
|
+
if (id !== undefined) {
|
|
784
|
+
localVarQueryParameter['id'] = id;
|
|
785
|
+
}
|
|
786
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
787
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
788
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
789
|
+
return {
|
|
790
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
791
|
+
options: localVarRequestOptions,
|
|
792
|
+
};
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* @summary Gets all or specific set of agents
|
|
797
|
+
* @param {string} [id] Optional get specific agents
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
getAgents: async (id, options = {}) => {
|
|
802
|
+
const localVarPath = `/v1/agents`;
|
|
803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
804
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
805
|
+
let baseOptions;
|
|
806
|
+
if (configuration) {
|
|
807
|
+
baseOptions = configuration.baseOptions;
|
|
808
|
+
}
|
|
809
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
810
|
+
const localVarHeaderParameter = {};
|
|
811
|
+
const localVarQueryParameter = {};
|
|
812
|
+
if (id !== undefined) {
|
|
813
|
+
localVarQueryParameter['id'] = id;
|
|
814
|
+
}
|
|
815
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
816
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
817
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
818
|
+
return {
|
|
819
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
820
|
+
options: localVarRequestOptions,
|
|
821
|
+
};
|
|
822
|
+
},
|
|
823
|
+
/**
|
|
824
|
+
*
|
|
825
|
+
* @summary Gets a context
|
|
826
|
+
* @param {string} id Context ID to get context
|
|
827
|
+
* @param {*} [options] Override http request option.
|
|
828
|
+
* @throws {RequiredError}
|
|
829
|
+
*/
|
|
830
|
+
getContext: async (id, options = {}) => {
|
|
831
|
+
// verify required parameter 'id' is not null or undefined
|
|
832
|
+
(0, common_1.assertParamExists)('getContext', 'id', id);
|
|
833
|
+
const localVarPath = `/v1/context`;
|
|
834
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
835
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
836
|
+
let baseOptions;
|
|
837
|
+
if (configuration) {
|
|
838
|
+
baseOptions = configuration.baseOptions;
|
|
839
|
+
}
|
|
840
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
841
|
+
const localVarHeaderParameter = {};
|
|
842
|
+
const localVarQueryParameter = {};
|
|
843
|
+
if (id !== undefined) {
|
|
844
|
+
localVarQueryParameter['id'] = id;
|
|
845
|
+
}
|
|
846
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
847
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
848
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
849
|
+
return {
|
|
850
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
851
|
+
options: localVarRequestOptions,
|
|
852
|
+
};
|
|
853
|
+
},
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @summary Gets all or specific set of contexts
|
|
857
|
+
* @param {string} [id] Optional get specific contexts
|
|
858
|
+
* @param {*} [options] Override http request option.
|
|
859
|
+
* @throws {RequiredError}
|
|
860
|
+
*/
|
|
861
|
+
getContexts: async (id, options = {}) => {
|
|
862
|
+
const localVarPath = `/v1/contexts`;
|
|
863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
864
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
865
|
+
let baseOptions;
|
|
866
|
+
if (configuration) {
|
|
867
|
+
baseOptions = configuration.baseOptions;
|
|
868
|
+
}
|
|
869
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
870
|
+
const localVarHeaderParameter = {};
|
|
871
|
+
const localVarQueryParameter = {};
|
|
872
|
+
if (id !== undefined) {
|
|
873
|
+
localVarQueryParameter['id'] = id;
|
|
874
|
+
}
|
|
875
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
877
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
878
|
+
return {
|
|
879
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
880
|
+
options: localVarRequestOptions,
|
|
881
|
+
};
|
|
882
|
+
},
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @summary Gets a conversation
|
|
886
|
+
* @param {string} id Conversation ID to get conversation
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
*/
|
|
890
|
+
getConversation: async (id, options = {}) => {
|
|
891
|
+
// verify required parameter 'id' is not null or undefined
|
|
892
|
+
(0, common_1.assertParamExists)('getConversation', 'id', id);
|
|
893
|
+
const localVarPath = `/v1/conversation`;
|
|
894
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
895
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
896
|
+
let baseOptions;
|
|
897
|
+
if (configuration) {
|
|
898
|
+
baseOptions = configuration.baseOptions;
|
|
899
|
+
}
|
|
900
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
901
|
+
const localVarHeaderParameter = {};
|
|
902
|
+
const localVarQueryParameter = {};
|
|
903
|
+
if (id !== undefined) {
|
|
904
|
+
localVarQueryParameter['id'] = id;
|
|
905
|
+
}
|
|
906
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
907
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
908
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
909
|
+
return {
|
|
910
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
911
|
+
options: localVarRequestOptions,
|
|
912
|
+
};
|
|
913
|
+
},
|
|
914
|
+
/**
|
|
915
|
+
*
|
|
916
|
+
* @summary Gets a customer
|
|
917
|
+
* @param {string} id Customer ID to get customer
|
|
918
|
+
* @param {*} [options] Override http request option.
|
|
919
|
+
* @throws {RequiredError}
|
|
920
|
+
*/
|
|
921
|
+
getCustomer: async (id, options = {}) => {
|
|
922
|
+
// verify required parameter 'id' is not null or undefined
|
|
923
|
+
(0, common_1.assertParamExists)('getCustomer', 'id', id);
|
|
924
|
+
const localVarPath = `/v1/customer`;
|
|
925
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
926
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
927
|
+
let baseOptions;
|
|
928
|
+
if (configuration) {
|
|
929
|
+
baseOptions = configuration.baseOptions;
|
|
930
|
+
}
|
|
931
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
932
|
+
const localVarHeaderParameter = {};
|
|
933
|
+
const localVarQueryParameter = {};
|
|
934
|
+
if (id !== undefined) {
|
|
935
|
+
localVarQueryParameter['id'] = id;
|
|
936
|
+
}
|
|
937
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
938
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
939
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
940
|
+
return {
|
|
941
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
942
|
+
options: localVarRequestOptions,
|
|
943
|
+
};
|
|
944
|
+
},
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @summary Gets all or specific set of customers
|
|
948
|
+
* @param {string} [id] Optional get specific customers
|
|
949
|
+
* @param {*} [options] Override http request option.
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
*/
|
|
952
|
+
getCustomers: async (id, options = {}) => {
|
|
953
|
+
const localVarPath = `/v1/customers`;
|
|
954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
955
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
956
|
+
let baseOptions;
|
|
957
|
+
if (configuration) {
|
|
958
|
+
baseOptions = configuration.baseOptions;
|
|
959
|
+
}
|
|
960
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
961
|
+
const localVarHeaderParameter = {};
|
|
962
|
+
const localVarQueryParameter = {};
|
|
963
|
+
if (id !== undefined) {
|
|
964
|
+
localVarQueryParameter['id'] = id;
|
|
965
|
+
}
|
|
966
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
968
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
969
|
+
return {
|
|
970
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
971
|
+
options: localVarRequestOptions,
|
|
972
|
+
};
|
|
973
|
+
},
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @summary Get all messages from a conversation
|
|
977
|
+
* @param {string} id Conversation ID to get messages
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
*/
|
|
981
|
+
getMessage: async (id, options = {}) => {
|
|
982
|
+
// verify required parameter 'id' is not null or undefined
|
|
983
|
+
(0, common_1.assertParamExists)('getMessage', 'id', id);
|
|
984
|
+
const localVarPath = `/v1/messages`;
|
|
985
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
986
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
987
|
+
let baseOptions;
|
|
988
|
+
if (configuration) {
|
|
989
|
+
baseOptions = configuration.baseOptions;
|
|
990
|
+
}
|
|
991
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
992
|
+
const localVarHeaderParameter = {};
|
|
993
|
+
const localVarQueryParameter = {};
|
|
994
|
+
if (id !== undefined) {
|
|
995
|
+
localVarQueryParameter['id'] = id;
|
|
996
|
+
}
|
|
997
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
998
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
999
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1000
|
+
return {
|
|
1001
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1002
|
+
options: localVarRequestOptions,
|
|
1003
|
+
};
|
|
1004
|
+
},
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @summary Gets a schedule
|
|
1008
|
+
* @param {string} id Schedule ID to get schedule
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
getSchedule: async (id, options = {}) => {
|
|
1013
|
+
// verify required parameter 'id' is not null or undefined
|
|
1014
|
+
(0, common_1.assertParamExists)('getSchedule', 'id', id);
|
|
1015
|
+
const localVarPath = `/v1/schedule`;
|
|
1016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1017
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1018
|
+
let baseOptions;
|
|
1019
|
+
if (configuration) {
|
|
1020
|
+
baseOptions = configuration.baseOptions;
|
|
1021
|
+
}
|
|
1022
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1023
|
+
const localVarHeaderParameter = {};
|
|
1024
|
+
const localVarQueryParameter = {};
|
|
1025
|
+
if (id !== undefined) {
|
|
1026
|
+
localVarQueryParameter['id'] = id;
|
|
1027
|
+
}
|
|
1028
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1029
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1030
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1031
|
+
return {
|
|
1032
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1033
|
+
options: localVarRequestOptions,
|
|
1034
|
+
};
|
|
1035
|
+
},
|
|
1036
|
+
/**
|
|
1037
|
+
*
|
|
1038
|
+
* @summary Gets a schedule group
|
|
1039
|
+
* @param {string} id Schedule group ID to get schedule group
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
getScheduleGroup: async (id, options = {}) => {
|
|
1044
|
+
// verify required parameter 'id' is not null or undefined
|
|
1045
|
+
(0, common_1.assertParamExists)('getScheduleGroup', 'id', id);
|
|
1046
|
+
const localVarPath = `/v1/scheduleGroup`;
|
|
1047
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1048
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1049
|
+
let baseOptions;
|
|
1050
|
+
if (configuration) {
|
|
1051
|
+
baseOptions = configuration.baseOptions;
|
|
1052
|
+
}
|
|
1053
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1054
|
+
const localVarHeaderParameter = {};
|
|
1055
|
+
const localVarQueryParameter = {};
|
|
1056
|
+
if (id !== undefined) {
|
|
1057
|
+
localVarQueryParameter['id'] = id;
|
|
1058
|
+
}
|
|
1059
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1060
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1061
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1062
|
+
return {
|
|
1063
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1064
|
+
options: localVarRequestOptions,
|
|
1065
|
+
};
|
|
1066
|
+
},
|
|
1067
|
+
/**
|
|
1068
|
+
*
|
|
1069
|
+
* @summary Gets a workflow
|
|
1070
|
+
* @param {string} id Workflow ID to get workflow
|
|
1071
|
+
* @param {*} [options] Override http request option.
|
|
1072
|
+
* @throws {RequiredError}
|
|
1073
|
+
*/
|
|
1074
|
+
getWorkflow: async (id, options = {}) => {
|
|
1075
|
+
// verify required parameter 'id' is not null or undefined
|
|
1076
|
+
(0, common_1.assertParamExists)('getWorkflow', 'id', id);
|
|
1077
|
+
const localVarPath = `/v1/workflow`;
|
|
1078
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1079
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1080
|
+
let baseOptions;
|
|
1081
|
+
if (configuration) {
|
|
1082
|
+
baseOptions = configuration.baseOptions;
|
|
1083
|
+
}
|
|
1084
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1085
|
+
const localVarHeaderParameter = {};
|
|
1086
|
+
const localVarQueryParameter = {};
|
|
1087
|
+
if (id !== undefined) {
|
|
1088
|
+
localVarQueryParameter['id'] = id;
|
|
1089
|
+
}
|
|
1090
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1092
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1093
|
+
return {
|
|
1094
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1095
|
+
options: localVarRequestOptions,
|
|
1096
|
+
};
|
|
1097
|
+
},
|
|
1098
|
+
/**
|
|
1099
|
+
*
|
|
1100
|
+
* @summary Gets all or specific set of workflows
|
|
1101
|
+
* @param {string} [id] Optional get specific workflows
|
|
1102
|
+
* @param {*} [options] Override http request option.
|
|
1103
|
+
* @throws {RequiredError}
|
|
1104
|
+
*/
|
|
1105
|
+
getWorkflows: async (id, options = {}) => {
|
|
1106
|
+
const localVarPath = `/v1/workflows`;
|
|
1107
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1108
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1109
|
+
let baseOptions;
|
|
1110
|
+
if (configuration) {
|
|
1111
|
+
baseOptions = configuration.baseOptions;
|
|
1112
|
+
}
|
|
1113
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1114
|
+
const localVarHeaderParameter = {};
|
|
1115
|
+
const localVarQueryParameter = {};
|
|
1116
|
+
if (id !== undefined) {
|
|
1117
|
+
localVarQueryParameter['id'] = id;
|
|
1118
|
+
}
|
|
1119
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1120
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1121
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1122
|
+
return {
|
|
1123
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1124
|
+
options: localVarRequestOptions,
|
|
1125
|
+
};
|
|
1126
|
+
},
|
|
1127
|
+
/**
|
|
1128
|
+
*
|
|
1129
|
+
* @summary Update a agent
|
|
1130
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
1131
|
+
* @param {*} [options] Override http request option.
|
|
1132
|
+
* @throws {RequiredError}
|
|
1133
|
+
*/
|
|
1134
|
+
updateAgent: async (updateAgentRequest, options = {}) => {
|
|
1135
|
+
// verify required parameter 'updateAgentRequest' is not null or undefined
|
|
1136
|
+
(0, common_1.assertParamExists)('updateAgent', 'updateAgentRequest', updateAgentRequest);
|
|
1137
|
+
const localVarPath = `/v1/agent`;
|
|
1138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1139
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1140
|
+
let baseOptions;
|
|
1141
|
+
if (configuration) {
|
|
1142
|
+
baseOptions = configuration.baseOptions;
|
|
1143
|
+
}
|
|
1144
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1145
|
+
const localVarHeaderParameter = {};
|
|
1146
|
+
const localVarQueryParameter = {};
|
|
1147
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1148
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1149
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1150
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1151
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAgentRequest, localVarRequestOptions, configuration);
|
|
1152
|
+
return {
|
|
1153
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1154
|
+
options: localVarRequestOptions,
|
|
1155
|
+
};
|
|
1156
|
+
},
|
|
1157
|
+
/**
|
|
1158
|
+
*
|
|
1159
|
+
* @summary Updates multiple agents
|
|
1160
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
1161
|
+
* @param {*} [options] Override http request option.
|
|
1162
|
+
* @throws {RequiredError}
|
|
1163
|
+
*/
|
|
1164
|
+
updateAgents: async (updateAgentsRequest, options = {}) => {
|
|
1165
|
+
// verify required parameter 'updateAgentsRequest' is not null or undefined
|
|
1166
|
+
(0, common_1.assertParamExists)('updateAgents', 'updateAgentsRequest', updateAgentsRequest);
|
|
1167
|
+
const localVarPath = `/v1/agents`;
|
|
1168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1169
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1170
|
+
let baseOptions;
|
|
1171
|
+
if (configuration) {
|
|
1172
|
+
baseOptions = configuration.baseOptions;
|
|
1173
|
+
}
|
|
1174
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1175
|
+
const localVarHeaderParameter = {};
|
|
1176
|
+
const localVarQueryParameter = {};
|
|
1177
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1178
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1180
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1181
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAgentsRequest, localVarRequestOptions, configuration);
|
|
1182
|
+
return {
|
|
1183
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1184
|
+
options: localVarRequestOptions,
|
|
1185
|
+
};
|
|
1186
|
+
},
|
|
1187
|
+
/**
|
|
1188
|
+
*
|
|
1189
|
+
* @summary Update a context
|
|
1190
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
updateContext: async (updateContextRequest, options = {}) => {
|
|
1195
|
+
// verify required parameter 'updateContextRequest' is not null or undefined
|
|
1196
|
+
(0, common_1.assertParamExists)('updateContext', 'updateContextRequest', updateContextRequest);
|
|
1197
|
+
const localVarPath = `/v1/context`;
|
|
1198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1199
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1200
|
+
let baseOptions;
|
|
1201
|
+
if (configuration) {
|
|
1202
|
+
baseOptions = configuration.baseOptions;
|
|
1203
|
+
}
|
|
1204
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1205
|
+
const localVarHeaderParameter = {};
|
|
1206
|
+
const localVarQueryParameter = {};
|
|
1207
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1208
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1209
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1210
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1211
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateContextRequest, localVarRequestOptions, configuration);
|
|
1212
|
+
return {
|
|
1213
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1214
|
+
options: localVarRequestOptions,
|
|
1215
|
+
};
|
|
1216
|
+
},
|
|
1217
|
+
/**
|
|
1218
|
+
*
|
|
1219
|
+
* @summary Updates multiple contexts
|
|
1220
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
1221
|
+
* @param {*} [options] Override http request option.
|
|
1222
|
+
* @throws {RequiredError}
|
|
1223
|
+
*/
|
|
1224
|
+
updateContexts: async (updateContextRequest, options = {}) => {
|
|
1225
|
+
// verify required parameter 'updateContextRequest' is not null or undefined
|
|
1226
|
+
(0, common_1.assertParamExists)('updateContexts', 'updateContextRequest', updateContextRequest);
|
|
1227
|
+
const localVarPath = `/v1/contexts`;
|
|
1228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1229
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1230
|
+
let baseOptions;
|
|
1231
|
+
if (configuration) {
|
|
1232
|
+
baseOptions = configuration.baseOptions;
|
|
1233
|
+
}
|
|
1234
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1235
|
+
const localVarHeaderParameter = {};
|
|
1236
|
+
const localVarQueryParameter = {};
|
|
1237
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1238
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1240
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1241
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateContextRequest, localVarRequestOptions, configuration);
|
|
1242
|
+
return {
|
|
1243
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1244
|
+
options: localVarRequestOptions,
|
|
1245
|
+
};
|
|
1246
|
+
},
|
|
1247
|
+
/**
|
|
1248
|
+
*
|
|
1249
|
+
* @summary Update a conversation
|
|
1250
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
1251
|
+
* @param {*} [options] Override http request option.
|
|
1252
|
+
* @throws {RequiredError}
|
|
1253
|
+
*/
|
|
1254
|
+
updateConversation: async (conversationUpdateRequest, options = {}) => {
|
|
1255
|
+
// verify required parameter 'conversationUpdateRequest' is not null or undefined
|
|
1256
|
+
(0, common_1.assertParamExists)('updateConversation', 'conversationUpdateRequest', conversationUpdateRequest);
|
|
1257
|
+
const localVarPath = `/v1/conversation`;
|
|
1258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1259
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1260
|
+
let baseOptions;
|
|
1261
|
+
if (configuration) {
|
|
1262
|
+
baseOptions = configuration.baseOptions;
|
|
1263
|
+
}
|
|
1264
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1265
|
+
const localVarHeaderParameter = {};
|
|
1266
|
+
const localVarQueryParameter = {};
|
|
1267
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1268
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1269
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1270
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1271
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationUpdateRequest, localVarRequestOptions, configuration);
|
|
1272
|
+
return {
|
|
1273
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1274
|
+
options: localVarRequestOptions,
|
|
1275
|
+
};
|
|
1276
|
+
},
|
|
1277
|
+
/**
|
|
1278
|
+
*
|
|
1279
|
+
* @summary Updates a customer
|
|
1280
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1281
|
+
* @param {*} [options] Override http request option.
|
|
1282
|
+
* @throws {RequiredError}
|
|
1283
|
+
*/
|
|
1284
|
+
updateCustomer: async (updateCustomerRequest, options = {}) => {
|
|
1285
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
1286
|
+
(0, common_1.assertParamExists)('updateCustomer', 'updateCustomerRequest', updateCustomerRequest);
|
|
1287
|
+
const localVarPath = `/v1/customer`;
|
|
1288
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1289
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1290
|
+
let baseOptions;
|
|
1291
|
+
if (configuration) {
|
|
1292
|
+
baseOptions = configuration.baseOptions;
|
|
1293
|
+
}
|
|
1294
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1295
|
+
const localVarHeaderParameter = {};
|
|
1296
|
+
const localVarQueryParameter = {};
|
|
1297
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1298
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1299
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1300
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1301
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
1302
|
+
return {
|
|
1303
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1304
|
+
options: localVarRequestOptions,
|
|
1305
|
+
};
|
|
1306
|
+
},
|
|
1307
|
+
/**
|
|
1308
|
+
*
|
|
1309
|
+
* @summary Updates multiple customers
|
|
1310
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1311
|
+
* @param {*} [options] Override http request option.
|
|
1312
|
+
* @throws {RequiredError}
|
|
1313
|
+
*/
|
|
1314
|
+
updateCustomers: async (updateCustomerRequest, options = {}) => {
|
|
1315
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
1316
|
+
(0, common_1.assertParamExists)('updateCustomers', 'updateCustomerRequest', updateCustomerRequest);
|
|
1317
|
+
const localVarPath = `/v1/customers`;
|
|
1318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1319
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1320
|
+
let baseOptions;
|
|
1321
|
+
if (configuration) {
|
|
1322
|
+
baseOptions = configuration.baseOptions;
|
|
1323
|
+
}
|
|
1324
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1325
|
+
const localVarHeaderParameter = {};
|
|
1326
|
+
const localVarQueryParameter = {};
|
|
1327
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1328
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1330
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1331
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
1332
|
+
return {
|
|
1333
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1334
|
+
options: localVarRequestOptions,
|
|
1335
|
+
};
|
|
1336
|
+
},
|
|
1337
|
+
/**
|
|
1338
|
+
*
|
|
1339
|
+
* @summary Updates a schedule
|
|
1340
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
1341
|
+
* @param {*} [options] Override http request option.
|
|
1342
|
+
* @throws {RequiredError}
|
|
1343
|
+
*/
|
|
1344
|
+
updateSchedule: async (scheduleUpdateRequest, options = {}) => {
|
|
1345
|
+
// verify required parameter 'scheduleUpdateRequest' is not null or undefined
|
|
1346
|
+
(0, common_1.assertParamExists)('updateSchedule', 'scheduleUpdateRequest', scheduleUpdateRequest);
|
|
1347
|
+
const localVarPath = `/v1/schedule`;
|
|
1348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1349
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1350
|
+
let baseOptions;
|
|
1351
|
+
if (configuration) {
|
|
1352
|
+
baseOptions = configuration.baseOptions;
|
|
1353
|
+
}
|
|
1354
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1355
|
+
const localVarHeaderParameter = {};
|
|
1356
|
+
const localVarQueryParameter = {};
|
|
1357
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1358
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1359
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1360
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1361
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleUpdateRequest, localVarRequestOptions, configuration);
|
|
1362
|
+
return {
|
|
1363
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1364
|
+
options: localVarRequestOptions,
|
|
1365
|
+
};
|
|
1366
|
+
},
|
|
1367
|
+
/**
|
|
1368
|
+
*
|
|
1369
|
+
* @summary Updates a schedule group
|
|
1370
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
1371
|
+
* @param {*} [options] Override http request option.
|
|
1372
|
+
* @throws {RequiredError}
|
|
1373
|
+
*/
|
|
1374
|
+
updateScheduleGroup: async (scheduleGroupUpdateRequest, options = {}) => {
|
|
1375
|
+
// verify required parameter 'scheduleGroupUpdateRequest' is not null or undefined
|
|
1376
|
+
(0, common_1.assertParamExists)('updateScheduleGroup', 'scheduleGroupUpdateRequest', scheduleGroupUpdateRequest);
|
|
1377
|
+
const localVarPath = `/v1/scheduleGroup`;
|
|
1378
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1379
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1380
|
+
let baseOptions;
|
|
1381
|
+
if (configuration) {
|
|
1382
|
+
baseOptions = configuration.baseOptions;
|
|
1383
|
+
}
|
|
1384
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1385
|
+
const localVarHeaderParameter = {};
|
|
1386
|
+
const localVarQueryParameter = {};
|
|
1387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1390
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1391
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleGroupUpdateRequest, localVarRequestOptions, configuration);
|
|
1392
|
+
return {
|
|
1393
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1394
|
+
options: localVarRequestOptions,
|
|
1395
|
+
};
|
|
1396
|
+
},
|
|
1397
|
+
/**
|
|
1398
|
+
*
|
|
1399
|
+
* @summary Update a workflow
|
|
1400
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
1401
|
+
* @param {*} [options] Override http request option.
|
|
1402
|
+
* @throws {RequiredError}
|
|
1403
|
+
*/
|
|
1404
|
+
updateWorkflow: async (updateWorkflowRequest, options = {}) => {
|
|
1405
|
+
// verify required parameter 'updateWorkflowRequest' is not null or undefined
|
|
1406
|
+
(0, common_1.assertParamExists)('updateWorkflow', 'updateWorkflowRequest', updateWorkflowRequest);
|
|
1407
|
+
const localVarPath = `/v1/workflow`;
|
|
1408
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1409
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1410
|
+
let baseOptions;
|
|
1411
|
+
if (configuration) {
|
|
1412
|
+
baseOptions = configuration.baseOptions;
|
|
1413
|
+
}
|
|
1414
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1415
|
+
const localVarHeaderParameter = {};
|
|
1416
|
+
const localVarQueryParameter = {};
|
|
1417
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1418
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1419
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1420
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1421
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWorkflowRequest, localVarRequestOptions, configuration);
|
|
1422
|
+
return {
|
|
1423
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1424
|
+
options: localVarRequestOptions,
|
|
1425
|
+
};
|
|
1426
|
+
},
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @summary Updates multiple workflows
|
|
1430
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
1431
|
+
* @param {*} [options] Override http request option.
|
|
1432
|
+
* @throws {RequiredError}
|
|
1433
|
+
*/
|
|
1434
|
+
updateWorkflows: async (updateWorkflowRequest, options = {}) => {
|
|
1435
|
+
// verify required parameter 'updateWorkflowRequest' is not null or undefined
|
|
1436
|
+
(0, common_1.assertParamExists)('updateWorkflows', 'updateWorkflowRequest', updateWorkflowRequest);
|
|
1437
|
+
const localVarPath = `/v1/workflows`;
|
|
1438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1439
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1440
|
+
let baseOptions;
|
|
1441
|
+
if (configuration) {
|
|
1442
|
+
baseOptions = configuration.baseOptions;
|
|
1443
|
+
}
|
|
1444
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1445
|
+
const localVarHeaderParameter = {};
|
|
1446
|
+
const localVarQueryParameter = {};
|
|
1447
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1448
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1450
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1451
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWorkflowRequest, localVarRequestOptions, configuration);
|
|
1452
|
+
return {
|
|
1453
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1454
|
+
options: localVarRequestOptions,
|
|
1455
|
+
};
|
|
1456
|
+
},
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
exports.Scout9ApiAxiosParamCreator = Scout9ApiAxiosParamCreator;
|
|
1460
|
+
/**
|
|
1461
|
+
* Scout9Api - functional programming interface
|
|
1462
|
+
* @export
|
|
1463
|
+
*/
|
|
1464
|
+
const Scout9ApiFp = function (configuration) {
|
|
1465
|
+
const localVarAxiosParamCreator = (0, exports.Scout9ApiAxiosParamCreator)(configuration);
|
|
1466
|
+
return {
|
|
1467
|
+
/**
|
|
1468
|
+
*
|
|
1469
|
+
* @summary Create a new agent
|
|
1470
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
1471
|
+
* @param {*} [options] Override http request option.
|
|
1472
|
+
* @throws {RequiredError}
|
|
1473
|
+
*/
|
|
1474
|
+
async createAgent(createAgentRequest, options) {
|
|
1475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAgent(createAgentRequest, options);
|
|
1476
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1477
|
+
},
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @summary Creates new agents
|
|
1481
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
1482
|
+
* @param {*} [options] Override http request option.
|
|
1483
|
+
* @throws {RequiredError}
|
|
1484
|
+
*/
|
|
1485
|
+
async createAgents(createAgentsRequest, options) {
|
|
1486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAgents(createAgentsRequest, options);
|
|
1487
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1488
|
+
},
|
|
1489
|
+
/**
|
|
1490
|
+
*
|
|
1491
|
+
* @summary Create a new context
|
|
1492
|
+
* @param {CreateContextRequest} createContextRequest
|
|
1493
|
+
* @param {*} [options] Override http request option.
|
|
1494
|
+
* @throws {RequiredError}
|
|
1495
|
+
*/
|
|
1496
|
+
async createContext(createContextRequest, options) {
|
|
1497
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createContext(createContextRequest, options);
|
|
1498
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1499
|
+
},
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @summary Creates new contexts
|
|
1503
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
1504
|
+
* @param {*} [options] Override http request option.
|
|
1505
|
+
* @throws {RequiredError}
|
|
1506
|
+
*/
|
|
1507
|
+
async createContexts(createContextsRequest, options) {
|
|
1508
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createContexts(createContextsRequest, options);
|
|
1509
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1510
|
+
},
|
|
1511
|
+
/**
|
|
1512
|
+
*
|
|
1513
|
+
* @summary Create a new conversation
|
|
1514
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
1515
|
+
* @param {*} [options] Override http request option.
|
|
1516
|
+
* @throws {RequiredError}
|
|
1517
|
+
*/
|
|
1518
|
+
async createConversation(conversationCreateRequest, options) {
|
|
1519
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createConversation(conversationCreateRequest, options);
|
|
1520
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1521
|
+
},
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @summary Creates a new customer
|
|
1525
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
1526
|
+
* @param {*} [options] Override http request option.
|
|
1527
|
+
* @throws {RequiredError}
|
|
1528
|
+
*/
|
|
1529
|
+
async createCustomer(createCustomerRequest, options) {
|
|
1530
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomer(createCustomerRequest, options);
|
|
1531
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1532
|
+
},
|
|
1533
|
+
/**
|
|
1534
|
+
*
|
|
1535
|
+
* @summary Creates new customers
|
|
1536
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
1537
|
+
* @param {*} [options] Override http request option.
|
|
1538
|
+
* @throws {RequiredError}
|
|
1539
|
+
*/
|
|
1540
|
+
async createCustomers(createCustomersRequest, options) {
|
|
1541
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomers(createCustomersRequest, options);
|
|
1542
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1543
|
+
},
|
|
1544
|
+
/**
|
|
1545
|
+
*
|
|
1546
|
+
* @summary Create and send message
|
|
1547
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
1548
|
+
* @param {*} [options] Override http request option.
|
|
1549
|
+
* @throws {RequiredError}
|
|
1550
|
+
*/
|
|
1551
|
+
async createMessage(messageCreateRequest, options) {
|
|
1552
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createMessage(messageCreateRequest, options);
|
|
1553
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1554
|
+
},
|
|
1555
|
+
/**
|
|
1556
|
+
*
|
|
1557
|
+
* @summary Creates a new scheduled conversation
|
|
1558
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
1559
|
+
* @param {*} [options] Override http request option.
|
|
1560
|
+
* @throws {RequiredError}
|
|
1561
|
+
*/
|
|
1562
|
+
async createSchedule(scheduleCreateRequest, options) {
|
|
1563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSchedule(scheduleCreateRequest, options);
|
|
1564
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1565
|
+
},
|
|
1566
|
+
/**
|
|
1567
|
+
*
|
|
1568
|
+
* @summary Creates a new schedule group
|
|
1569
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
1570
|
+
* @param {*} [options] Override http request option.
|
|
1571
|
+
* @throws {RequiredError}
|
|
1572
|
+
*/
|
|
1573
|
+
async createScheduleGroup(scheduleGroupCreateRequest, options) {
|
|
1574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createScheduleGroup(scheduleGroupCreateRequest, options);
|
|
1575
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1576
|
+
},
|
|
1577
|
+
/**
|
|
1578
|
+
*
|
|
1579
|
+
* @summary Create a new workflow
|
|
1580
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
1581
|
+
* @param {*} [options] Override http request option.
|
|
1582
|
+
* @throws {RequiredError}
|
|
1583
|
+
*/
|
|
1584
|
+
async createWorkflow(createWorkflowRequest, options) {
|
|
1585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkflow(createWorkflowRequest, options);
|
|
1586
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1587
|
+
},
|
|
1588
|
+
/**
|
|
1589
|
+
*
|
|
1590
|
+
* @summary Creates new workflows
|
|
1591
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
1592
|
+
* @param {*} [options] Override http request option.
|
|
1593
|
+
* @throws {RequiredError}
|
|
1594
|
+
*/
|
|
1595
|
+
async createWorkflows(createWorkflowsRequest, options) {
|
|
1596
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkflows(createWorkflowsRequest, options);
|
|
1597
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1598
|
+
},
|
|
1599
|
+
/**
|
|
1600
|
+
*
|
|
1601
|
+
* @summary Deletes a agent
|
|
1602
|
+
* @param {string} id Agent ID to delete agent
|
|
1603
|
+
* @param {*} [options] Override http request option.
|
|
1604
|
+
* @throws {RequiredError}
|
|
1605
|
+
*/
|
|
1606
|
+
async deleteAgent(id, options) {
|
|
1607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAgent(id, options);
|
|
1608
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1609
|
+
},
|
|
1610
|
+
/**
|
|
1611
|
+
*
|
|
1612
|
+
* @summary Deletes multiple agents
|
|
1613
|
+
* @param {string} id Agent IDs to delete multiple agents
|
|
1614
|
+
* @param {*} [options] Override http request option.
|
|
1615
|
+
* @throws {RequiredError}
|
|
1616
|
+
*/
|
|
1617
|
+
async deleteAgents(id, options) {
|
|
1618
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAgents(id, options);
|
|
1619
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1620
|
+
},
|
|
1621
|
+
/**
|
|
1622
|
+
*
|
|
1623
|
+
* @summary Deletes a schedule
|
|
1624
|
+
* @param {string} id Context ID to delete context
|
|
1625
|
+
* @param {*} [options] Override http request option.
|
|
1626
|
+
* @throws {RequiredError}
|
|
1627
|
+
*/
|
|
1628
|
+
async deleteContext(id, options) {
|
|
1629
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContext(id, options);
|
|
1630
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1631
|
+
},
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @summary Deletes multiple contexts
|
|
1635
|
+
* @param {string} id Context IDs to delete multiple context
|
|
1636
|
+
* @param {*} [options] Override http request option.
|
|
1637
|
+
* @throws {RequiredError}
|
|
1638
|
+
*/
|
|
1639
|
+
async deleteContexts(id, options) {
|
|
1640
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContexts(id, options);
|
|
1641
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1642
|
+
},
|
|
1643
|
+
/**
|
|
1644
|
+
*
|
|
1645
|
+
* @summary Deletes a schedule
|
|
1646
|
+
* @param {string} id Schedule ID to delete schedule
|
|
1647
|
+
* @param {*} [options] Override http request option.
|
|
1648
|
+
* @throws {RequiredError}
|
|
1649
|
+
*/
|
|
1650
|
+
async deleteConversation(id, options) {
|
|
1651
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConversation(id, options);
|
|
1652
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1653
|
+
},
|
|
1654
|
+
/**
|
|
1655
|
+
*
|
|
1656
|
+
* @summary Deletes a customer
|
|
1657
|
+
* @param {string} id Customer ID to delete customer
|
|
1658
|
+
* @param {*} [options] Override http request option.
|
|
1659
|
+
* @throws {RequiredError}
|
|
1660
|
+
*/
|
|
1661
|
+
async deleteCustomer(id, options) {
|
|
1662
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomer(id, options);
|
|
1663
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1664
|
+
},
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @summary Deletes multiple customers
|
|
1668
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
1669
|
+
* @param {*} [options] Override http request option.
|
|
1670
|
+
* @throws {RequiredError}
|
|
1671
|
+
*/
|
|
1672
|
+
async deleteCustomers(id, options) {
|
|
1673
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomers(id, options);
|
|
1674
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1675
|
+
},
|
|
1676
|
+
/**
|
|
1677
|
+
*
|
|
1678
|
+
* @summary Deletes a schedule
|
|
1679
|
+
* @param {string} id Schedule ID to delete schedule
|
|
1680
|
+
* @param {*} [options] Override http request option.
|
|
1681
|
+
* @throws {RequiredError}
|
|
1682
|
+
*/
|
|
1683
|
+
async deleteSchedule(id, options) {
|
|
1684
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSchedule(id, options);
|
|
1685
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1686
|
+
},
|
|
1687
|
+
/**
|
|
1688
|
+
*
|
|
1689
|
+
* @summary Deletes a schedule group
|
|
1690
|
+
* @param {string} id Schedule group ID to delete schedule group
|
|
1691
|
+
* @param {*} [options] Override http request option.
|
|
1692
|
+
* @throws {RequiredError}
|
|
1693
|
+
*/
|
|
1694
|
+
async deleteScheduleGroup(id, options) {
|
|
1695
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScheduleGroup(id, options);
|
|
1696
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1697
|
+
},
|
|
1698
|
+
/**
|
|
1699
|
+
*
|
|
1700
|
+
* @summary Deletes a workflow
|
|
1701
|
+
* @param {string} id workflow ID to delete workflow
|
|
1702
|
+
* @param {*} [options] Override http request option.
|
|
1703
|
+
* @throws {RequiredError}
|
|
1704
|
+
*/
|
|
1705
|
+
async deleteWorkflow(id, options) {
|
|
1706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkflow(id, options);
|
|
1707
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1708
|
+
},
|
|
1709
|
+
/**
|
|
1710
|
+
*
|
|
1711
|
+
* @summary Deletes multiple workflows
|
|
1712
|
+
* @param {string} id Workflow IDs to delete multiple workflow
|
|
1713
|
+
* @param {*} [options] Override http request option.
|
|
1714
|
+
* @throws {RequiredError}
|
|
1715
|
+
*/
|
|
1716
|
+
async deleteWorkflows(id, options) {
|
|
1717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkflows(id, options);
|
|
1718
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1719
|
+
},
|
|
1720
|
+
/**
|
|
1721
|
+
*
|
|
1722
|
+
* @summary Generate a message from conversation
|
|
1723
|
+
* @param {GenerateRequest} generateRequest
|
|
1724
|
+
* @param {*} [options] Override http request option.
|
|
1725
|
+
* @throws {RequiredError}
|
|
1726
|
+
*/
|
|
1727
|
+
async generate(generateRequest, options) {
|
|
1728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generate(generateRequest, options);
|
|
1729
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1730
|
+
},
|
|
1731
|
+
/**
|
|
1732
|
+
*
|
|
1733
|
+
* @summary Gets a agent
|
|
1734
|
+
* @param {string} id Agent ID to get agent
|
|
1735
|
+
* @param {*} [options] Override http request option.
|
|
1736
|
+
* @throws {RequiredError}
|
|
1737
|
+
*/
|
|
1738
|
+
async getAgent(id, options) {
|
|
1739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgent(id, options);
|
|
1740
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1741
|
+
},
|
|
1742
|
+
/**
|
|
1743
|
+
*
|
|
1744
|
+
* @summary Gets all or specific set of agents
|
|
1745
|
+
* @param {string} [id] Optional get specific agents
|
|
1746
|
+
* @param {*} [options] Override http request option.
|
|
1747
|
+
* @throws {RequiredError}
|
|
1748
|
+
*/
|
|
1749
|
+
async getAgents(id, options) {
|
|
1750
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(id, options);
|
|
1751
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1752
|
+
},
|
|
1753
|
+
/**
|
|
1754
|
+
*
|
|
1755
|
+
* @summary Gets a context
|
|
1756
|
+
* @param {string} id Context ID to get context
|
|
1757
|
+
* @param {*} [options] Override http request option.
|
|
1758
|
+
* @throws {RequiredError}
|
|
1759
|
+
*/
|
|
1760
|
+
async getContext(id, options) {
|
|
1761
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContext(id, options);
|
|
1762
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1763
|
+
},
|
|
1764
|
+
/**
|
|
1765
|
+
*
|
|
1766
|
+
* @summary Gets all or specific set of contexts
|
|
1767
|
+
* @param {string} [id] Optional get specific contexts
|
|
1768
|
+
* @param {*} [options] Override http request option.
|
|
1769
|
+
* @throws {RequiredError}
|
|
1770
|
+
*/
|
|
1771
|
+
async getContexts(id, options) {
|
|
1772
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContexts(id, options);
|
|
1773
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1774
|
+
},
|
|
1775
|
+
/**
|
|
1776
|
+
*
|
|
1777
|
+
* @summary Gets a conversation
|
|
1778
|
+
* @param {string} id Conversation ID to get conversation
|
|
1779
|
+
* @param {*} [options] Override http request option.
|
|
1780
|
+
* @throws {RequiredError}
|
|
1781
|
+
*/
|
|
1782
|
+
async getConversation(id, options) {
|
|
1783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConversation(id, options);
|
|
1784
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1785
|
+
},
|
|
1786
|
+
/**
|
|
1787
|
+
*
|
|
1788
|
+
* @summary Gets a customer
|
|
1789
|
+
* @param {string} id Customer ID to get customer
|
|
1790
|
+
* @param {*} [options] Override http request option.
|
|
1791
|
+
* @throws {RequiredError}
|
|
1792
|
+
*/
|
|
1793
|
+
async getCustomer(id, options) {
|
|
1794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(id, options);
|
|
1795
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1796
|
+
},
|
|
1797
|
+
/**
|
|
1798
|
+
*
|
|
1799
|
+
* @summary Gets all or specific set of customers
|
|
1800
|
+
* @param {string} [id] Optional get specific customers
|
|
1801
|
+
* @param {*} [options] Override http request option.
|
|
1802
|
+
* @throws {RequiredError}
|
|
1803
|
+
*/
|
|
1804
|
+
async getCustomers(id, options) {
|
|
1805
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomers(id, options);
|
|
1806
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1807
|
+
},
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @summary Get all messages from a conversation
|
|
1811
|
+
* @param {string} id Conversation ID to get messages
|
|
1812
|
+
* @param {*} [options] Override http request option.
|
|
1813
|
+
* @throws {RequiredError}
|
|
1814
|
+
*/
|
|
1815
|
+
async getMessage(id, options) {
|
|
1816
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMessage(id, options);
|
|
1817
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1818
|
+
},
|
|
1819
|
+
/**
|
|
1820
|
+
*
|
|
1821
|
+
* @summary Gets a schedule
|
|
1822
|
+
* @param {string} id Schedule ID to get schedule
|
|
1823
|
+
* @param {*} [options] Override http request option.
|
|
1824
|
+
* @throws {RequiredError}
|
|
1825
|
+
*/
|
|
1826
|
+
async getSchedule(id, options) {
|
|
1827
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSchedule(id, options);
|
|
1828
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1829
|
+
},
|
|
1830
|
+
/**
|
|
1831
|
+
*
|
|
1832
|
+
* @summary Gets a schedule group
|
|
1833
|
+
* @param {string} id Schedule group ID to get schedule group
|
|
1834
|
+
* @param {*} [options] Override http request option.
|
|
1835
|
+
* @throws {RequiredError}
|
|
1836
|
+
*/
|
|
1837
|
+
async getScheduleGroup(id, options) {
|
|
1838
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScheduleGroup(id, options);
|
|
1839
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1840
|
+
},
|
|
1841
|
+
/**
|
|
1842
|
+
*
|
|
1843
|
+
* @summary Gets a workflow
|
|
1844
|
+
* @param {string} id Workflow ID to get workflow
|
|
1845
|
+
* @param {*} [options] Override http request option.
|
|
1846
|
+
* @throws {RequiredError}
|
|
1847
|
+
*/
|
|
1848
|
+
async getWorkflow(id, options) {
|
|
1849
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkflow(id, options);
|
|
1850
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1851
|
+
},
|
|
1852
|
+
/**
|
|
1853
|
+
*
|
|
1854
|
+
* @summary Gets all or specific set of workflows
|
|
1855
|
+
* @param {string} [id] Optional get specific workflows
|
|
1856
|
+
* @param {*} [options] Override http request option.
|
|
1857
|
+
* @throws {RequiredError}
|
|
1858
|
+
*/
|
|
1859
|
+
async getWorkflows(id, options) {
|
|
1860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkflows(id, options);
|
|
1861
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1862
|
+
},
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @summary Update a agent
|
|
1866
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
1867
|
+
* @param {*} [options] Override http request option.
|
|
1868
|
+
* @throws {RequiredError}
|
|
1869
|
+
*/
|
|
1870
|
+
async updateAgent(updateAgentRequest, options) {
|
|
1871
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAgent(updateAgentRequest, options);
|
|
1872
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1873
|
+
},
|
|
1874
|
+
/**
|
|
1875
|
+
*
|
|
1876
|
+
* @summary Updates multiple agents
|
|
1877
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
1878
|
+
* @param {*} [options] Override http request option.
|
|
1879
|
+
* @throws {RequiredError}
|
|
1880
|
+
*/
|
|
1881
|
+
async updateAgents(updateAgentsRequest, options) {
|
|
1882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAgents(updateAgentsRequest, options);
|
|
1883
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1884
|
+
},
|
|
1885
|
+
/**
|
|
1886
|
+
*
|
|
1887
|
+
* @summary Update a context
|
|
1888
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
1889
|
+
* @param {*} [options] Override http request option.
|
|
1890
|
+
* @throws {RequiredError}
|
|
1891
|
+
*/
|
|
1892
|
+
async updateContext(updateContextRequest, options) {
|
|
1893
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateContext(updateContextRequest, options);
|
|
1894
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1895
|
+
},
|
|
1896
|
+
/**
|
|
1897
|
+
*
|
|
1898
|
+
* @summary Updates multiple contexts
|
|
1899
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
1900
|
+
* @param {*} [options] Override http request option.
|
|
1901
|
+
* @throws {RequiredError}
|
|
1902
|
+
*/
|
|
1903
|
+
async updateContexts(updateContextRequest, options) {
|
|
1904
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateContexts(updateContextRequest, options);
|
|
1905
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1906
|
+
},
|
|
1907
|
+
/**
|
|
1908
|
+
*
|
|
1909
|
+
* @summary Update a conversation
|
|
1910
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
1911
|
+
* @param {*} [options] Override http request option.
|
|
1912
|
+
* @throws {RequiredError}
|
|
1913
|
+
*/
|
|
1914
|
+
async updateConversation(conversationUpdateRequest, options) {
|
|
1915
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateConversation(conversationUpdateRequest, options);
|
|
1916
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1917
|
+
},
|
|
1918
|
+
/**
|
|
1919
|
+
*
|
|
1920
|
+
* @summary Updates a customer
|
|
1921
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1922
|
+
* @param {*} [options] Override http request option.
|
|
1923
|
+
* @throws {RequiredError}
|
|
1924
|
+
*/
|
|
1925
|
+
async updateCustomer(updateCustomerRequest, options) {
|
|
1926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(updateCustomerRequest, options);
|
|
1927
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1928
|
+
},
|
|
1929
|
+
/**
|
|
1930
|
+
*
|
|
1931
|
+
* @summary Updates multiple customers
|
|
1932
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1933
|
+
* @param {*} [options] Override http request option.
|
|
1934
|
+
* @throws {RequiredError}
|
|
1935
|
+
*/
|
|
1936
|
+
async updateCustomers(updateCustomerRequest, options) {
|
|
1937
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomers(updateCustomerRequest, options);
|
|
1938
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1939
|
+
},
|
|
1940
|
+
/**
|
|
1941
|
+
*
|
|
1942
|
+
* @summary Updates a schedule
|
|
1943
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
*/
|
|
1947
|
+
async updateSchedule(scheduleUpdateRequest, options) {
|
|
1948
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSchedule(scheduleUpdateRequest, options);
|
|
1949
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1950
|
+
},
|
|
1951
|
+
/**
|
|
1952
|
+
*
|
|
1953
|
+
* @summary Updates a schedule group
|
|
1954
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
1955
|
+
* @param {*} [options] Override http request option.
|
|
1956
|
+
* @throws {RequiredError}
|
|
1957
|
+
*/
|
|
1958
|
+
async updateScheduleGroup(scheduleGroupUpdateRequest, options) {
|
|
1959
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateScheduleGroup(scheduleGroupUpdateRequest, options);
|
|
1960
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1961
|
+
},
|
|
1962
|
+
/**
|
|
1963
|
+
*
|
|
1964
|
+
* @summary Update a workflow
|
|
1965
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
1966
|
+
* @param {*} [options] Override http request option.
|
|
1967
|
+
* @throws {RequiredError}
|
|
1968
|
+
*/
|
|
1969
|
+
async updateWorkflow(updateWorkflowRequest, options) {
|
|
1970
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkflow(updateWorkflowRequest, options);
|
|
1971
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1972
|
+
},
|
|
1973
|
+
/**
|
|
1974
|
+
*
|
|
1975
|
+
* @summary Updates multiple workflows
|
|
1976
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
1977
|
+
* @param {*} [options] Override http request option.
|
|
1978
|
+
* @throws {RequiredError}
|
|
1979
|
+
*/
|
|
1980
|
+
async updateWorkflows(updateWorkflowRequest, options) {
|
|
1981
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkflows(updateWorkflowRequest, options);
|
|
1982
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1983
|
+
},
|
|
1984
|
+
};
|
|
1985
|
+
};
|
|
1986
|
+
exports.Scout9ApiFp = Scout9ApiFp;
|
|
1987
|
+
/**
|
|
1988
|
+
* Scout9Api - factory interface
|
|
1989
|
+
* @export
|
|
1990
|
+
*/
|
|
1991
|
+
const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
1992
|
+
const localVarFp = (0, exports.Scout9ApiFp)(configuration);
|
|
1993
|
+
return {
|
|
1994
|
+
/**
|
|
1995
|
+
*
|
|
1996
|
+
* @summary Create a new agent
|
|
1997
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
1998
|
+
* @param {*} [options] Override http request option.
|
|
1999
|
+
* @throws {RequiredError}
|
|
2000
|
+
*/
|
|
2001
|
+
createAgent(createAgentRequest, options) {
|
|
2002
|
+
return localVarFp.createAgent(createAgentRequest, options).then((request) => request(axios, basePath));
|
|
2003
|
+
},
|
|
2004
|
+
/**
|
|
2005
|
+
*
|
|
2006
|
+
* @summary Creates new agents
|
|
2007
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
2008
|
+
* @param {*} [options] Override http request option.
|
|
2009
|
+
* @throws {RequiredError}
|
|
2010
|
+
*/
|
|
2011
|
+
createAgents(createAgentsRequest, options) {
|
|
2012
|
+
return localVarFp.createAgents(createAgentsRequest, options).then((request) => request(axios, basePath));
|
|
2013
|
+
},
|
|
2014
|
+
/**
|
|
2015
|
+
*
|
|
2016
|
+
* @summary Create a new context
|
|
2017
|
+
* @param {CreateContextRequest} createContextRequest
|
|
2018
|
+
* @param {*} [options] Override http request option.
|
|
2019
|
+
* @throws {RequiredError}
|
|
2020
|
+
*/
|
|
2021
|
+
createContext(createContextRequest, options) {
|
|
2022
|
+
return localVarFp.createContext(createContextRequest, options).then((request) => request(axios, basePath));
|
|
2023
|
+
},
|
|
2024
|
+
/**
|
|
2025
|
+
*
|
|
2026
|
+
* @summary Creates new contexts
|
|
2027
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
*/
|
|
2031
|
+
createContexts(createContextsRequest, options) {
|
|
2032
|
+
return localVarFp.createContexts(createContextsRequest, options).then((request) => request(axios, basePath));
|
|
2033
|
+
},
|
|
2034
|
+
/**
|
|
2035
|
+
*
|
|
2036
|
+
* @summary Create a new conversation
|
|
2037
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
2038
|
+
* @param {*} [options] Override http request option.
|
|
2039
|
+
* @throws {RequiredError}
|
|
2040
|
+
*/
|
|
2041
|
+
createConversation(conversationCreateRequest, options) {
|
|
2042
|
+
return localVarFp.createConversation(conversationCreateRequest, options).then((request) => request(axios, basePath));
|
|
2043
|
+
},
|
|
2044
|
+
/**
|
|
2045
|
+
*
|
|
2046
|
+
* @summary Creates a new customer
|
|
2047
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
2048
|
+
* @param {*} [options] Override http request option.
|
|
2049
|
+
* @throws {RequiredError}
|
|
2050
|
+
*/
|
|
2051
|
+
createCustomer(createCustomerRequest, options) {
|
|
2052
|
+
return localVarFp.createCustomer(createCustomerRequest, options).then((request) => request(axios, basePath));
|
|
2053
|
+
},
|
|
2054
|
+
/**
|
|
2055
|
+
*
|
|
2056
|
+
* @summary Creates new customers
|
|
2057
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
2058
|
+
* @param {*} [options] Override http request option.
|
|
2059
|
+
* @throws {RequiredError}
|
|
2060
|
+
*/
|
|
2061
|
+
createCustomers(createCustomersRequest, options) {
|
|
2062
|
+
return localVarFp.createCustomers(createCustomersRequest, options).then((request) => request(axios, basePath));
|
|
2063
|
+
},
|
|
2064
|
+
/**
|
|
2065
|
+
*
|
|
2066
|
+
* @summary Create and send message
|
|
2067
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
2068
|
+
* @param {*} [options] Override http request option.
|
|
2069
|
+
* @throws {RequiredError}
|
|
2070
|
+
*/
|
|
2071
|
+
createMessage(messageCreateRequest, options) {
|
|
2072
|
+
return localVarFp.createMessage(messageCreateRequest, options).then((request) => request(axios, basePath));
|
|
2073
|
+
},
|
|
2074
|
+
/**
|
|
2075
|
+
*
|
|
2076
|
+
* @summary Creates a new scheduled conversation
|
|
2077
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
2078
|
+
* @param {*} [options] Override http request option.
|
|
2079
|
+
* @throws {RequiredError}
|
|
2080
|
+
*/
|
|
2081
|
+
createSchedule(scheduleCreateRequest, options) {
|
|
2082
|
+
return localVarFp.createSchedule(scheduleCreateRequest, options).then((request) => request(axios, basePath));
|
|
2083
|
+
},
|
|
2084
|
+
/**
|
|
2085
|
+
*
|
|
2086
|
+
* @summary Creates a new schedule group
|
|
2087
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
2088
|
+
* @param {*} [options] Override http request option.
|
|
2089
|
+
* @throws {RequiredError}
|
|
2090
|
+
*/
|
|
2091
|
+
createScheduleGroup(scheduleGroupCreateRequest, options) {
|
|
2092
|
+
return localVarFp.createScheduleGroup(scheduleGroupCreateRequest, options).then((request) => request(axios, basePath));
|
|
2093
|
+
},
|
|
2094
|
+
/**
|
|
2095
|
+
*
|
|
2096
|
+
* @summary Create a new workflow
|
|
2097
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
2098
|
+
* @param {*} [options] Override http request option.
|
|
2099
|
+
* @throws {RequiredError}
|
|
2100
|
+
*/
|
|
2101
|
+
createWorkflow(createWorkflowRequest, options) {
|
|
2102
|
+
return localVarFp.createWorkflow(createWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
2103
|
+
},
|
|
2104
|
+
/**
|
|
2105
|
+
*
|
|
2106
|
+
* @summary Creates new workflows
|
|
2107
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
2108
|
+
* @param {*} [options] Override http request option.
|
|
2109
|
+
* @throws {RequiredError}
|
|
2110
|
+
*/
|
|
2111
|
+
createWorkflows(createWorkflowsRequest, options) {
|
|
2112
|
+
return localVarFp.createWorkflows(createWorkflowsRequest, options).then((request) => request(axios, basePath));
|
|
2113
|
+
},
|
|
2114
|
+
/**
|
|
2115
|
+
*
|
|
2116
|
+
* @summary Deletes a agent
|
|
2117
|
+
* @param {string} id Agent ID to delete agent
|
|
2118
|
+
* @param {*} [options] Override http request option.
|
|
2119
|
+
* @throws {RequiredError}
|
|
2120
|
+
*/
|
|
2121
|
+
deleteAgent(id, options) {
|
|
2122
|
+
return localVarFp.deleteAgent(id, options).then((request) => request(axios, basePath));
|
|
2123
|
+
},
|
|
2124
|
+
/**
|
|
2125
|
+
*
|
|
2126
|
+
* @summary Deletes multiple agents
|
|
2127
|
+
* @param {string} id Agent IDs to delete multiple agents
|
|
2128
|
+
* @param {*} [options] Override http request option.
|
|
2129
|
+
* @throws {RequiredError}
|
|
2130
|
+
*/
|
|
2131
|
+
deleteAgents(id, options) {
|
|
2132
|
+
return localVarFp.deleteAgents(id, options).then((request) => request(axios, basePath));
|
|
2133
|
+
},
|
|
2134
|
+
/**
|
|
2135
|
+
*
|
|
2136
|
+
* @summary Deletes a schedule
|
|
2137
|
+
* @param {string} id Context ID to delete context
|
|
2138
|
+
* @param {*} [options] Override http request option.
|
|
2139
|
+
* @throws {RequiredError}
|
|
2140
|
+
*/
|
|
2141
|
+
deleteContext(id, options) {
|
|
2142
|
+
return localVarFp.deleteContext(id, options).then((request) => request(axios, basePath));
|
|
2143
|
+
},
|
|
2144
|
+
/**
|
|
2145
|
+
*
|
|
2146
|
+
* @summary Deletes multiple contexts
|
|
2147
|
+
* @param {string} id Context IDs to delete multiple context
|
|
2148
|
+
* @param {*} [options] Override http request option.
|
|
2149
|
+
* @throws {RequiredError}
|
|
2150
|
+
*/
|
|
2151
|
+
deleteContexts(id, options) {
|
|
2152
|
+
return localVarFp.deleteContexts(id, options).then((request) => request(axios, basePath));
|
|
2153
|
+
},
|
|
2154
|
+
/**
|
|
2155
|
+
*
|
|
2156
|
+
* @summary Deletes a schedule
|
|
2157
|
+
* @param {string} id Schedule ID to delete schedule
|
|
2158
|
+
* @param {*} [options] Override http request option.
|
|
2159
|
+
* @throws {RequiredError}
|
|
2160
|
+
*/
|
|
2161
|
+
deleteConversation(id, options) {
|
|
2162
|
+
return localVarFp.deleteConversation(id, options).then((request) => request(axios, basePath));
|
|
2163
|
+
},
|
|
2164
|
+
/**
|
|
2165
|
+
*
|
|
2166
|
+
* @summary Deletes a customer
|
|
2167
|
+
* @param {string} id Customer ID to delete customer
|
|
2168
|
+
* @param {*} [options] Override http request option.
|
|
2169
|
+
* @throws {RequiredError}
|
|
2170
|
+
*/
|
|
2171
|
+
deleteCustomer(id, options) {
|
|
2172
|
+
return localVarFp.deleteCustomer(id, options).then((request) => request(axios, basePath));
|
|
2173
|
+
},
|
|
2174
|
+
/**
|
|
2175
|
+
*
|
|
2176
|
+
* @summary Deletes multiple customers
|
|
2177
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
2178
|
+
* @param {*} [options] Override http request option.
|
|
2179
|
+
* @throws {RequiredError}
|
|
2180
|
+
*/
|
|
2181
|
+
deleteCustomers(id, options) {
|
|
2182
|
+
return localVarFp.deleteCustomers(id, options).then((request) => request(axios, basePath));
|
|
2183
|
+
},
|
|
2184
|
+
/**
|
|
2185
|
+
*
|
|
2186
|
+
* @summary Deletes a schedule
|
|
2187
|
+
* @param {string} id Schedule ID to delete schedule
|
|
2188
|
+
* @param {*} [options] Override http request option.
|
|
2189
|
+
* @throws {RequiredError}
|
|
2190
|
+
*/
|
|
2191
|
+
deleteSchedule(id, options) {
|
|
2192
|
+
return localVarFp.deleteSchedule(id, options).then((request) => request(axios, basePath));
|
|
2193
|
+
},
|
|
2194
|
+
/**
|
|
2195
|
+
*
|
|
2196
|
+
* @summary Deletes a schedule group
|
|
2197
|
+
* @param {string} id Schedule group ID to delete schedule group
|
|
2198
|
+
* @param {*} [options] Override http request option.
|
|
2199
|
+
* @throws {RequiredError}
|
|
2200
|
+
*/
|
|
2201
|
+
deleteScheduleGroup(id, options) {
|
|
2202
|
+
return localVarFp.deleteScheduleGroup(id, options).then((request) => request(axios, basePath));
|
|
2203
|
+
},
|
|
2204
|
+
/**
|
|
2205
|
+
*
|
|
2206
|
+
* @summary Deletes a workflow
|
|
2207
|
+
* @param {string} id workflow ID to delete workflow
|
|
2208
|
+
* @param {*} [options] Override http request option.
|
|
2209
|
+
* @throws {RequiredError}
|
|
2210
|
+
*/
|
|
2211
|
+
deleteWorkflow(id, options) {
|
|
2212
|
+
return localVarFp.deleteWorkflow(id, options).then((request) => request(axios, basePath));
|
|
2213
|
+
},
|
|
2214
|
+
/**
|
|
2215
|
+
*
|
|
2216
|
+
* @summary Deletes multiple workflows
|
|
2217
|
+
* @param {string} id Workflow IDs to delete multiple workflow
|
|
2218
|
+
* @param {*} [options] Override http request option.
|
|
2219
|
+
* @throws {RequiredError}
|
|
2220
|
+
*/
|
|
2221
|
+
deleteWorkflows(id, options) {
|
|
2222
|
+
return localVarFp.deleteWorkflows(id, options).then((request) => request(axios, basePath));
|
|
2223
|
+
},
|
|
2224
|
+
/**
|
|
2225
|
+
*
|
|
2226
|
+
* @summary Generate a message from conversation
|
|
2227
|
+
* @param {GenerateRequest} generateRequest
|
|
2228
|
+
* @param {*} [options] Override http request option.
|
|
2229
|
+
* @throws {RequiredError}
|
|
2230
|
+
*/
|
|
2231
|
+
generate(generateRequest, options) {
|
|
2232
|
+
return localVarFp.generate(generateRequest, options).then((request) => request(axios, basePath));
|
|
2233
|
+
},
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @summary Gets a agent
|
|
2237
|
+
* @param {string} id Agent ID to get agent
|
|
2238
|
+
* @param {*} [options] Override http request option.
|
|
2239
|
+
* @throws {RequiredError}
|
|
2240
|
+
*/
|
|
2241
|
+
getAgent(id, options) {
|
|
2242
|
+
return localVarFp.getAgent(id, options).then((request) => request(axios, basePath));
|
|
2243
|
+
},
|
|
2244
|
+
/**
|
|
2245
|
+
*
|
|
2246
|
+
* @summary Gets all or specific set of agents
|
|
2247
|
+
* @param {string} [id] Optional get specific agents
|
|
2248
|
+
* @param {*} [options] Override http request option.
|
|
2249
|
+
* @throws {RequiredError}
|
|
2250
|
+
*/
|
|
2251
|
+
getAgents(id, options) {
|
|
2252
|
+
return localVarFp.getAgents(id, options).then((request) => request(axios, basePath));
|
|
2253
|
+
},
|
|
2254
|
+
/**
|
|
2255
|
+
*
|
|
2256
|
+
* @summary Gets a context
|
|
2257
|
+
* @param {string} id Context ID to get context
|
|
2258
|
+
* @param {*} [options] Override http request option.
|
|
2259
|
+
* @throws {RequiredError}
|
|
2260
|
+
*/
|
|
2261
|
+
getContext(id, options) {
|
|
2262
|
+
return localVarFp.getContext(id, options).then((request) => request(axios, basePath));
|
|
2263
|
+
},
|
|
2264
|
+
/**
|
|
2265
|
+
*
|
|
2266
|
+
* @summary Gets all or specific set of contexts
|
|
2267
|
+
* @param {string} [id] Optional get specific contexts
|
|
2268
|
+
* @param {*} [options] Override http request option.
|
|
2269
|
+
* @throws {RequiredError}
|
|
2270
|
+
*/
|
|
2271
|
+
getContexts(id, options) {
|
|
2272
|
+
return localVarFp.getContexts(id, options).then((request) => request(axios, basePath));
|
|
2273
|
+
},
|
|
2274
|
+
/**
|
|
2275
|
+
*
|
|
2276
|
+
* @summary Gets a conversation
|
|
2277
|
+
* @param {string} id Conversation ID to get conversation
|
|
2278
|
+
* @param {*} [options] Override http request option.
|
|
2279
|
+
* @throws {RequiredError}
|
|
2280
|
+
*/
|
|
2281
|
+
getConversation(id, options) {
|
|
2282
|
+
return localVarFp.getConversation(id, options).then((request) => request(axios, basePath));
|
|
2283
|
+
},
|
|
2284
|
+
/**
|
|
2285
|
+
*
|
|
2286
|
+
* @summary Gets a customer
|
|
2287
|
+
* @param {string} id Customer ID to get customer
|
|
2288
|
+
* @param {*} [options] Override http request option.
|
|
2289
|
+
* @throws {RequiredError}
|
|
2290
|
+
*/
|
|
2291
|
+
getCustomer(id, options) {
|
|
2292
|
+
return localVarFp.getCustomer(id, options).then((request) => request(axios, basePath));
|
|
2293
|
+
},
|
|
2294
|
+
/**
|
|
2295
|
+
*
|
|
2296
|
+
* @summary Gets all or specific set of customers
|
|
2297
|
+
* @param {string} [id] Optional get specific customers
|
|
2298
|
+
* @param {*} [options] Override http request option.
|
|
2299
|
+
* @throws {RequiredError}
|
|
2300
|
+
*/
|
|
2301
|
+
getCustomers(id, options) {
|
|
2302
|
+
return localVarFp.getCustomers(id, options).then((request) => request(axios, basePath));
|
|
2303
|
+
},
|
|
2304
|
+
/**
|
|
2305
|
+
*
|
|
2306
|
+
* @summary Get all messages from a conversation
|
|
2307
|
+
* @param {string} id Conversation ID to get messages
|
|
2308
|
+
* @param {*} [options] Override http request option.
|
|
2309
|
+
* @throws {RequiredError}
|
|
2310
|
+
*/
|
|
2311
|
+
getMessage(id, options) {
|
|
2312
|
+
return localVarFp.getMessage(id, options).then((request) => request(axios, basePath));
|
|
2313
|
+
},
|
|
2314
|
+
/**
|
|
2315
|
+
*
|
|
2316
|
+
* @summary Gets a schedule
|
|
2317
|
+
* @param {string} id Schedule ID to get schedule
|
|
2318
|
+
* @param {*} [options] Override http request option.
|
|
2319
|
+
* @throws {RequiredError}
|
|
2320
|
+
*/
|
|
2321
|
+
getSchedule(id, options) {
|
|
2322
|
+
return localVarFp.getSchedule(id, options).then((request) => request(axios, basePath));
|
|
2323
|
+
},
|
|
2324
|
+
/**
|
|
2325
|
+
*
|
|
2326
|
+
* @summary Gets a schedule group
|
|
2327
|
+
* @param {string} id Schedule group ID to get schedule group
|
|
2328
|
+
* @param {*} [options] Override http request option.
|
|
2329
|
+
* @throws {RequiredError}
|
|
2330
|
+
*/
|
|
2331
|
+
getScheduleGroup(id, options) {
|
|
2332
|
+
return localVarFp.getScheduleGroup(id, options).then((request) => request(axios, basePath));
|
|
2333
|
+
},
|
|
2334
|
+
/**
|
|
2335
|
+
*
|
|
2336
|
+
* @summary Gets a workflow
|
|
2337
|
+
* @param {string} id Workflow ID to get workflow
|
|
2338
|
+
* @param {*} [options] Override http request option.
|
|
2339
|
+
* @throws {RequiredError}
|
|
2340
|
+
*/
|
|
2341
|
+
getWorkflow(id, options) {
|
|
2342
|
+
return localVarFp.getWorkflow(id, options).then((request) => request(axios, basePath));
|
|
2343
|
+
},
|
|
2344
|
+
/**
|
|
2345
|
+
*
|
|
2346
|
+
* @summary Gets all or specific set of workflows
|
|
2347
|
+
* @param {string} [id] Optional get specific workflows
|
|
2348
|
+
* @param {*} [options] Override http request option.
|
|
2349
|
+
* @throws {RequiredError}
|
|
2350
|
+
*/
|
|
2351
|
+
getWorkflows(id, options) {
|
|
2352
|
+
return localVarFp.getWorkflows(id, options).then((request) => request(axios, basePath));
|
|
2353
|
+
},
|
|
2354
|
+
/**
|
|
2355
|
+
*
|
|
2356
|
+
* @summary Update a agent
|
|
2357
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
2358
|
+
* @param {*} [options] Override http request option.
|
|
2359
|
+
* @throws {RequiredError}
|
|
2360
|
+
*/
|
|
2361
|
+
updateAgent(updateAgentRequest, options) {
|
|
2362
|
+
return localVarFp.updateAgent(updateAgentRequest, options).then((request) => request(axios, basePath));
|
|
2363
|
+
},
|
|
2364
|
+
/**
|
|
2365
|
+
*
|
|
2366
|
+
* @summary Updates multiple agents
|
|
2367
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
2368
|
+
* @param {*} [options] Override http request option.
|
|
2369
|
+
* @throws {RequiredError}
|
|
2370
|
+
*/
|
|
2371
|
+
updateAgents(updateAgentsRequest, options) {
|
|
2372
|
+
return localVarFp.updateAgents(updateAgentsRequest, options).then((request) => request(axios, basePath));
|
|
2373
|
+
},
|
|
2374
|
+
/**
|
|
2375
|
+
*
|
|
2376
|
+
* @summary Update a context
|
|
2377
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2378
|
+
* @param {*} [options] Override http request option.
|
|
2379
|
+
* @throws {RequiredError}
|
|
2380
|
+
*/
|
|
2381
|
+
updateContext(updateContextRequest, options) {
|
|
2382
|
+
return localVarFp.updateContext(updateContextRequest, options).then((request) => request(axios, basePath));
|
|
2383
|
+
},
|
|
2384
|
+
/**
|
|
2385
|
+
*
|
|
2386
|
+
* @summary Updates multiple contexts
|
|
2387
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2388
|
+
* @param {*} [options] Override http request option.
|
|
2389
|
+
* @throws {RequiredError}
|
|
2390
|
+
*/
|
|
2391
|
+
updateContexts(updateContextRequest, options) {
|
|
2392
|
+
return localVarFp.updateContexts(updateContextRequest, options).then((request) => request(axios, basePath));
|
|
2393
|
+
},
|
|
2394
|
+
/**
|
|
2395
|
+
*
|
|
2396
|
+
* @summary Update a conversation
|
|
2397
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
2398
|
+
* @param {*} [options] Override http request option.
|
|
2399
|
+
* @throws {RequiredError}
|
|
2400
|
+
*/
|
|
2401
|
+
updateConversation(conversationUpdateRequest, options) {
|
|
2402
|
+
return localVarFp.updateConversation(conversationUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2403
|
+
},
|
|
2404
|
+
/**
|
|
2405
|
+
*
|
|
2406
|
+
* @summary Updates a customer
|
|
2407
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2408
|
+
* @param {*} [options] Override http request option.
|
|
2409
|
+
* @throws {RequiredError}
|
|
2410
|
+
*/
|
|
2411
|
+
updateCustomer(updateCustomerRequest, options) {
|
|
2412
|
+
return localVarFp.updateCustomer(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
2413
|
+
},
|
|
2414
|
+
/**
|
|
2415
|
+
*
|
|
2416
|
+
* @summary Updates multiple customers
|
|
2417
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2418
|
+
* @param {*} [options] Override http request option.
|
|
2419
|
+
* @throws {RequiredError}
|
|
2420
|
+
*/
|
|
2421
|
+
updateCustomers(updateCustomerRequest, options) {
|
|
2422
|
+
return localVarFp.updateCustomers(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
2423
|
+
},
|
|
2424
|
+
/**
|
|
2425
|
+
*
|
|
2426
|
+
* @summary Updates a schedule
|
|
2427
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
2428
|
+
* @param {*} [options] Override http request option.
|
|
2429
|
+
* @throws {RequiredError}
|
|
2430
|
+
*/
|
|
2431
|
+
updateSchedule(scheduleUpdateRequest, options) {
|
|
2432
|
+
return localVarFp.updateSchedule(scheduleUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2433
|
+
},
|
|
2434
|
+
/**
|
|
2435
|
+
*
|
|
2436
|
+
* @summary Updates a schedule group
|
|
2437
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
2438
|
+
* @param {*} [options] Override http request option.
|
|
2439
|
+
* @throws {RequiredError}
|
|
2440
|
+
*/
|
|
2441
|
+
updateScheduleGroup(scheduleGroupUpdateRequest, options) {
|
|
2442
|
+
return localVarFp.updateScheduleGroup(scheduleGroupUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2443
|
+
},
|
|
2444
|
+
/**
|
|
2445
|
+
*
|
|
2446
|
+
* @summary Update a workflow
|
|
2447
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
updateWorkflow(updateWorkflowRequest, options) {
|
|
2452
|
+
return localVarFp.updateWorkflow(updateWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
2453
|
+
},
|
|
2454
|
+
/**
|
|
2455
|
+
*
|
|
2456
|
+
* @summary Updates multiple workflows
|
|
2457
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2458
|
+
* @param {*} [options] Override http request option.
|
|
2459
|
+
* @throws {RequiredError}
|
|
2460
|
+
*/
|
|
2461
|
+
updateWorkflows(updateWorkflowRequest, options) {
|
|
2462
|
+
return localVarFp.updateWorkflows(updateWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
2463
|
+
},
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
exports.Scout9ApiFactory = Scout9ApiFactory;
|
|
2467
|
+
/**
|
|
2468
|
+
* Scout9Api - object-oriented interface
|
|
2469
|
+
* @export
|
|
2470
|
+
* @class Scout9Api
|
|
2471
|
+
* @extends {BaseAPI}
|
|
2472
|
+
*/
|
|
2473
|
+
class Scout9Api extends base_1.BaseAPI {
|
|
2474
|
+
/**
|
|
2475
|
+
*
|
|
2476
|
+
* @summary Create a new agent
|
|
2477
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
2478
|
+
* @param {*} [options] Override http request option.
|
|
2479
|
+
* @throws {RequiredError}
|
|
2480
|
+
* @memberof Scout9Api
|
|
2481
|
+
*/
|
|
2482
|
+
createAgent(createAgentRequest, options) {
|
|
2483
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createAgent(createAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2484
|
+
}
|
|
2485
|
+
/**
|
|
2486
|
+
*
|
|
2487
|
+
* @summary Creates new agents
|
|
2488
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
2489
|
+
* @param {*} [options] Override http request option.
|
|
2490
|
+
* @throws {RequiredError}
|
|
2491
|
+
* @memberof Scout9Api
|
|
2492
|
+
*/
|
|
2493
|
+
createAgents(createAgentsRequest, options) {
|
|
2494
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createAgents(createAgentsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2495
|
+
}
|
|
2496
|
+
/**
|
|
2497
|
+
*
|
|
2498
|
+
* @summary Create a new context
|
|
2499
|
+
* @param {CreateContextRequest} createContextRequest
|
|
2500
|
+
* @param {*} [options] Override http request option.
|
|
2501
|
+
* @throws {RequiredError}
|
|
2502
|
+
* @memberof Scout9Api
|
|
2503
|
+
*/
|
|
2504
|
+
createContext(createContextRequest, options) {
|
|
2505
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createContext(createContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2506
|
+
}
|
|
2507
|
+
/**
|
|
2508
|
+
*
|
|
2509
|
+
* @summary Creates new contexts
|
|
2510
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
2511
|
+
* @param {*} [options] Override http request option.
|
|
2512
|
+
* @throws {RequiredError}
|
|
2513
|
+
* @memberof Scout9Api
|
|
2514
|
+
*/
|
|
2515
|
+
createContexts(createContextsRequest, options) {
|
|
2516
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createContexts(createContextsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2517
|
+
}
|
|
2518
|
+
/**
|
|
2519
|
+
*
|
|
2520
|
+
* @summary Create a new conversation
|
|
2521
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
2522
|
+
* @param {*} [options] Override http request option.
|
|
2523
|
+
* @throws {RequiredError}
|
|
2524
|
+
* @memberof Scout9Api
|
|
2525
|
+
*/
|
|
2526
|
+
createConversation(conversationCreateRequest, options) {
|
|
2527
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createConversation(conversationCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2528
|
+
}
|
|
2529
|
+
/**
|
|
2530
|
+
*
|
|
2531
|
+
* @summary Creates a new customer
|
|
2532
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
2533
|
+
* @param {*} [options] Override http request option.
|
|
2534
|
+
* @throws {RequiredError}
|
|
2535
|
+
* @memberof Scout9Api
|
|
2536
|
+
*/
|
|
2537
|
+
createCustomer(createCustomerRequest, options) {
|
|
2538
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createCustomer(createCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2539
|
+
}
|
|
2540
|
+
/**
|
|
2541
|
+
*
|
|
2542
|
+
* @summary Creates new customers
|
|
2543
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
2544
|
+
* @param {*} [options] Override http request option.
|
|
2545
|
+
* @throws {RequiredError}
|
|
2546
|
+
* @memberof Scout9Api
|
|
2547
|
+
*/
|
|
2548
|
+
createCustomers(createCustomersRequest, options) {
|
|
2549
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createCustomers(createCustomersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2550
|
+
}
|
|
2551
|
+
/**
|
|
2552
|
+
*
|
|
2553
|
+
* @summary Create and send message
|
|
2554
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
2555
|
+
* @param {*} [options] Override http request option.
|
|
2556
|
+
* @throws {RequiredError}
|
|
2557
|
+
* @memberof Scout9Api
|
|
2558
|
+
*/
|
|
2559
|
+
createMessage(messageCreateRequest, options) {
|
|
2560
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createMessage(messageCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2561
|
+
}
|
|
2562
|
+
/**
|
|
2563
|
+
*
|
|
2564
|
+
* @summary Creates a new scheduled conversation
|
|
2565
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
2566
|
+
* @param {*} [options] Override http request option.
|
|
2567
|
+
* @throws {RequiredError}
|
|
2568
|
+
* @memberof Scout9Api
|
|
2569
|
+
*/
|
|
2570
|
+
createSchedule(scheduleCreateRequest, options) {
|
|
2571
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createSchedule(scheduleCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2572
|
+
}
|
|
2573
|
+
/**
|
|
2574
|
+
*
|
|
2575
|
+
* @summary Creates a new schedule group
|
|
2576
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
2577
|
+
* @param {*} [options] Override http request option.
|
|
2578
|
+
* @throws {RequiredError}
|
|
2579
|
+
* @memberof Scout9Api
|
|
2580
|
+
*/
|
|
2581
|
+
createScheduleGroup(scheduleGroupCreateRequest, options) {
|
|
2582
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createScheduleGroup(scheduleGroupCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2583
|
+
}
|
|
2584
|
+
/**
|
|
2585
|
+
*
|
|
2586
|
+
* @summary Create a new workflow
|
|
2587
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
2588
|
+
* @param {*} [options] Override http request option.
|
|
2589
|
+
* @throws {RequiredError}
|
|
2590
|
+
* @memberof Scout9Api
|
|
2591
|
+
*/
|
|
2592
|
+
createWorkflow(createWorkflowRequest, options) {
|
|
2593
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createWorkflow(createWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2594
|
+
}
|
|
2595
|
+
/**
|
|
2596
|
+
*
|
|
2597
|
+
* @summary Creates new workflows
|
|
2598
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
2599
|
+
* @param {*} [options] Override http request option.
|
|
2600
|
+
* @throws {RequiredError}
|
|
2601
|
+
* @memberof Scout9Api
|
|
2602
|
+
*/
|
|
2603
|
+
createWorkflows(createWorkflowsRequest, options) {
|
|
2604
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createWorkflows(createWorkflowsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2605
|
+
}
|
|
2606
|
+
/**
|
|
2607
|
+
*
|
|
2608
|
+
* @summary Deletes a agent
|
|
2609
|
+
* @param {string} id Agent ID to delete agent
|
|
2610
|
+
* @param {*} [options] Override http request option.
|
|
2611
|
+
* @throws {RequiredError}
|
|
2612
|
+
* @memberof Scout9Api
|
|
2613
|
+
*/
|
|
2614
|
+
deleteAgent(id, options) {
|
|
2615
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteAgent(id, options).then((request) => request(this.axios, this.basePath));
|
|
2616
|
+
}
|
|
2617
|
+
/**
|
|
2618
|
+
*
|
|
2619
|
+
* @summary Deletes multiple agents
|
|
2620
|
+
* @param {string} id Agent IDs to delete multiple agents
|
|
2621
|
+
* @param {*} [options] Override http request option.
|
|
2622
|
+
* @throws {RequiredError}
|
|
2623
|
+
* @memberof Scout9Api
|
|
2624
|
+
*/
|
|
2625
|
+
deleteAgents(id, options) {
|
|
2626
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteAgents(id, options).then((request) => request(this.axios, this.basePath));
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
*
|
|
2630
|
+
* @summary Deletes a schedule
|
|
2631
|
+
* @param {string} id Context ID to delete context
|
|
2632
|
+
* @param {*} [options] Override http request option.
|
|
2633
|
+
* @throws {RequiredError}
|
|
2634
|
+
* @memberof Scout9Api
|
|
2635
|
+
*/
|
|
2636
|
+
deleteContext(id, options) {
|
|
2637
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteContext(id, options).then((request) => request(this.axios, this.basePath));
|
|
2638
|
+
}
|
|
2639
|
+
/**
|
|
2640
|
+
*
|
|
2641
|
+
* @summary Deletes multiple contexts
|
|
2642
|
+
* @param {string} id Context IDs to delete multiple context
|
|
2643
|
+
* @param {*} [options] Override http request option.
|
|
2644
|
+
* @throws {RequiredError}
|
|
2645
|
+
* @memberof Scout9Api
|
|
2646
|
+
*/
|
|
2647
|
+
deleteContexts(id, options) {
|
|
2648
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteContexts(id, options).then((request) => request(this.axios, this.basePath));
|
|
2649
|
+
}
|
|
2650
|
+
/**
|
|
2651
|
+
*
|
|
2652
|
+
* @summary Deletes a schedule
|
|
2653
|
+
* @param {string} id Schedule ID to delete schedule
|
|
2654
|
+
* @param {*} [options] Override http request option.
|
|
2655
|
+
* @throws {RequiredError}
|
|
2656
|
+
* @memberof Scout9Api
|
|
2657
|
+
*/
|
|
2658
|
+
deleteConversation(id, options) {
|
|
2659
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteConversation(id, options).then((request) => request(this.axios, this.basePath));
|
|
2660
|
+
}
|
|
2661
|
+
/**
|
|
2662
|
+
*
|
|
2663
|
+
* @summary Deletes a customer
|
|
2664
|
+
* @param {string} id Customer ID to delete customer
|
|
2665
|
+
* @param {*} [options] Override http request option.
|
|
2666
|
+
* @throws {RequiredError}
|
|
2667
|
+
* @memberof Scout9Api
|
|
2668
|
+
*/
|
|
2669
|
+
deleteCustomer(id, options) {
|
|
2670
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
2671
|
+
}
|
|
2672
|
+
/**
|
|
2673
|
+
*
|
|
2674
|
+
* @summary Deletes multiple customers
|
|
2675
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
2676
|
+
* @param {*} [options] Override http request option.
|
|
2677
|
+
* @throws {RequiredError}
|
|
2678
|
+
* @memberof Scout9Api
|
|
2679
|
+
*/
|
|
2680
|
+
deleteCustomers(id, options) {
|
|
2681
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteCustomers(id, options).then((request) => request(this.axios, this.basePath));
|
|
2682
|
+
}
|
|
2683
|
+
/**
|
|
2684
|
+
*
|
|
2685
|
+
* @summary Deletes a schedule
|
|
2686
|
+
* @param {string} id Schedule ID to delete schedule
|
|
2687
|
+
* @param {*} [options] Override http request option.
|
|
2688
|
+
* @throws {RequiredError}
|
|
2689
|
+
* @memberof Scout9Api
|
|
2690
|
+
*/
|
|
2691
|
+
deleteSchedule(id, options) {
|
|
2692
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteSchedule(id, options).then((request) => request(this.axios, this.basePath));
|
|
2693
|
+
}
|
|
2694
|
+
/**
|
|
2695
|
+
*
|
|
2696
|
+
* @summary Deletes a schedule group
|
|
2697
|
+
* @param {string} id Schedule group ID to delete schedule group
|
|
2698
|
+
* @param {*} [options] Override http request option.
|
|
2699
|
+
* @throws {RequiredError}
|
|
2700
|
+
* @memberof Scout9Api
|
|
2701
|
+
*/
|
|
2702
|
+
deleteScheduleGroup(id, options) {
|
|
2703
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteScheduleGroup(id, options).then((request) => request(this.axios, this.basePath));
|
|
2704
|
+
}
|
|
2705
|
+
/**
|
|
2706
|
+
*
|
|
2707
|
+
* @summary Deletes a workflow
|
|
2708
|
+
* @param {string} id workflow ID to delete workflow
|
|
2709
|
+
* @param {*} [options] Override http request option.
|
|
2710
|
+
* @throws {RequiredError}
|
|
2711
|
+
* @memberof Scout9Api
|
|
2712
|
+
*/
|
|
2713
|
+
deleteWorkflow(id, options) {
|
|
2714
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteWorkflow(id, options).then((request) => request(this.axios, this.basePath));
|
|
2715
|
+
}
|
|
2716
|
+
/**
|
|
2717
|
+
*
|
|
2718
|
+
* @summary Deletes multiple workflows
|
|
2719
|
+
* @param {string} id Workflow IDs to delete multiple workflow
|
|
2720
|
+
* @param {*} [options] Override http request option.
|
|
2721
|
+
* @throws {RequiredError}
|
|
2722
|
+
* @memberof Scout9Api
|
|
2723
|
+
*/
|
|
2724
|
+
deleteWorkflows(id, options) {
|
|
2725
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteWorkflows(id, options).then((request) => request(this.axios, this.basePath));
|
|
2726
|
+
}
|
|
2727
|
+
/**
|
|
2728
|
+
*
|
|
2729
|
+
* @summary Generate a message from conversation
|
|
2730
|
+
* @param {GenerateRequest} generateRequest
|
|
2731
|
+
* @param {*} [options] Override http request option.
|
|
2732
|
+
* @throws {RequiredError}
|
|
2733
|
+
* @memberof Scout9Api
|
|
2734
|
+
*/
|
|
2735
|
+
generate(generateRequest, options) {
|
|
2736
|
+
return (0, exports.Scout9ApiFp)(this.configuration).generate(generateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2737
|
+
}
|
|
2738
|
+
/**
|
|
2739
|
+
*
|
|
2740
|
+
* @summary Gets a agent
|
|
2741
|
+
* @param {string} id Agent ID to get agent
|
|
2742
|
+
* @param {*} [options] Override http request option.
|
|
2743
|
+
* @throws {RequiredError}
|
|
2744
|
+
* @memberof Scout9Api
|
|
2745
|
+
*/
|
|
2746
|
+
getAgent(id, options) {
|
|
2747
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getAgent(id, options).then((request) => request(this.axios, this.basePath));
|
|
2748
|
+
}
|
|
2749
|
+
/**
|
|
2750
|
+
*
|
|
2751
|
+
* @summary Gets all or specific set of agents
|
|
2752
|
+
* @param {string} [id] Optional get specific agents
|
|
2753
|
+
* @param {*} [options] Override http request option.
|
|
2754
|
+
* @throws {RequiredError}
|
|
2755
|
+
* @memberof Scout9Api
|
|
2756
|
+
*/
|
|
2757
|
+
getAgents(id, options) {
|
|
2758
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getAgents(id, options).then((request) => request(this.axios, this.basePath));
|
|
2759
|
+
}
|
|
2760
|
+
/**
|
|
2761
|
+
*
|
|
2762
|
+
* @summary Gets a context
|
|
2763
|
+
* @param {string} id Context ID to get context
|
|
2764
|
+
* @param {*} [options] Override http request option.
|
|
2765
|
+
* @throws {RequiredError}
|
|
2766
|
+
* @memberof Scout9Api
|
|
2767
|
+
*/
|
|
2768
|
+
getContext(id, options) {
|
|
2769
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getContext(id, options).then((request) => request(this.axios, this.basePath));
|
|
2770
|
+
}
|
|
2771
|
+
/**
|
|
2772
|
+
*
|
|
2773
|
+
* @summary Gets all or specific set of contexts
|
|
2774
|
+
* @param {string} [id] Optional get specific contexts
|
|
2775
|
+
* @param {*} [options] Override http request option.
|
|
2776
|
+
* @throws {RequiredError}
|
|
2777
|
+
* @memberof Scout9Api
|
|
2778
|
+
*/
|
|
2779
|
+
getContexts(id, options) {
|
|
2780
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getContexts(id, options).then((request) => request(this.axios, this.basePath));
|
|
2781
|
+
}
|
|
2782
|
+
/**
|
|
2783
|
+
*
|
|
2784
|
+
* @summary Gets a conversation
|
|
2785
|
+
* @param {string} id Conversation ID to get conversation
|
|
2786
|
+
* @param {*} [options] Override http request option.
|
|
2787
|
+
* @throws {RequiredError}
|
|
2788
|
+
* @memberof Scout9Api
|
|
2789
|
+
*/
|
|
2790
|
+
getConversation(id, options) {
|
|
2791
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getConversation(id, options).then((request) => request(this.axios, this.basePath));
|
|
2792
|
+
}
|
|
2793
|
+
/**
|
|
2794
|
+
*
|
|
2795
|
+
* @summary Gets a customer
|
|
2796
|
+
* @param {string} id Customer ID to get customer
|
|
2797
|
+
* @param {*} [options] Override http request option.
|
|
2798
|
+
* @throws {RequiredError}
|
|
2799
|
+
* @memberof Scout9Api
|
|
2800
|
+
*/
|
|
2801
|
+
getCustomer(id, options) {
|
|
2802
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
2803
|
+
}
|
|
2804
|
+
/**
|
|
2805
|
+
*
|
|
2806
|
+
* @summary Gets all or specific set of customers
|
|
2807
|
+
* @param {string} [id] Optional get specific customers
|
|
2808
|
+
* @param {*} [options] Override http request option.
|
|
2809
|
+
* @throws {RequiredError}
|
|
2810
|
+
* @memberof Scout9Api
|
|
2811
|
+
*/
|
|
2812
|
+
getCustomers(id, options) {
|
|
2813
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getCustomers(id, options).then((request) => request(this.axios, this.basePath));
|
|
2814
|
+
}
|
|
2815
|
+
/**
|
|
2816
|
+
*
|
|
2817
|
+
* @summary Get all messages from a conversation
|
|
2818
|
+
* @param {string} id Conversation ID to get messages
|
|
2819
|
+
* @param {*} [options] Override http request option.
|
|
2820
|
+
* @throws {RequiredError}
|
|
2821
|
+
* @memberof Scout9Api
|
|
2822
|
+
*/
|
|
2823
|
+
getMessage(id, options) {
|
|
2824
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getMessage(id, options).then((request) => request(this.axios, this.basePath));
|
|
2825
|
+
}
|
|
2826
|
+
/**
|
|
2827
|
+
*
|
|
2828
|
+
* @summary Gets a schedule
|
|
2829
|
+
* @param {string} id Schedule ID to get schedule
|
|
2830
|
+
* @param {*} [options] Override http request option.
|
|
2831
|
+
* @throws {RequiredError}
|
|
2832
|
+
* @memberof Scout9Api
|
|
2833
|
+
*/
|
|
2834
|
+
getSchedule(id, options) {
|
|
2835
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getSchedule(id, options).then((request) => request(this.axios, this.basePath));
|
|
2836
|
+
}
|
|
2837
|
+
/**
|
|
2838
|
+
*
|
|
2839
|
+
* @summary Gets a schedule group
|
|
2840
|
+
* @param {string} id Schedule group ID to get schedule group
|
|
2841
|
+
* @param {*} [options] Override http request option.
|
|
2842
|
+
* @throws {RequiredError}
|
|
2843
|
+
* @memberof Scout9Api
|
|
2844
|
+
*/
|
|
2845
|
+
getScheduleGroup(id, options) {
|
|
2846
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getScheduleGroup(id, options).then((request) => request(this.axios, this.basePath));
|
|
2847
|
+
}
|
|
2848
|
+
/**
|
|
2849
|
+
*
|
|
2850
|
+
* @summary Gets a workflow
|
|
2851
|
+
* @param {string} id Workflow ID to get workflow
|
|
2852
|
+
* @param {*} [options] Override http request option.
|
|
2853
|
+
* @throws {RequiredError}
|
|
2854
|
+
* @memberof Scout9Api
|
|
2855
|
+
*/
|
|
2856
|
+
getWorkflow(id, options) {
|
|
2857
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getWorkflow(id, options).then((request) => request(this.axios, this.basePath));
|
|
2858
|
+
}
|
|
2859
|
+
/**
|
|
2860
|
+
*
|
|
2861
|
+
* @summary Gets all or specific set of workflows
|
|
2862
|
+
* @param {string} [id] Optional get specific workflows
|
|
2863
|
+
* @param {*} [options] Override http request option.
|
|
2864
|
+
* @throws {RequiredError}
|
|
2865
|
+
* @memberof Scout9Api
|
|
2866
|
+
*/
|
|
2867
|
+
getWorkflows(id, options) {
|
|
2868
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getWorkflows(id, options).then((request) => request(this.axios, this.basePath));
|
|
2869
|
+
}
|
|
2870
|
+
/**
|
|
2871
|
+
*
|
|
2872
|
+
* @summary Update a agent
|
|
2873
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
2874
|
+
* @param {*} [options] Override http request option.
|
|
2875
|
+
* @throws {RequiredError}
|
|
2876
|
+
* @memberof Scout9Api
|
|
2877
|
+
*/
|
|
2878
|
+
updateAgent(updateAgentRequest, options) {
|
|
2879
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateAgent(updateAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2880
|
+
}
|
|
2881
|
+
/**
|
|
2882
|
+
*
|
|
2883
|
+
* @summary Updates multiple agents
|
|
2884
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
2885
|
+
* @param {*} [options] Override http request option.
|
|
2886
|
+
* @throws {RequiredError}
|
|
2887
|
+
* @memberof Scout9Api
|
|
2888
|
+
*/
|
|
2889
|
+
updateAgents(updateAgentsRequest, options) {
|
|
2890
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateAgents(updateAgentsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2891
|
+
}
|
|
2892
|
+
/**
|
|
2893
|
+
*
|
|
2894
|
+
* @summary Update a context
|
|
2895
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2896
|
+
* @param {*} [options] Override http request option.
|
|
2897
|
+
* @throws {RequiredError}
|
|
2898
|
+
* @memberof Scout9Api
|
|
2899
|
+
*/
|
|
2900
|
+
updateContext(updateContextRequest, options) {
|
|
2901
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateContext(updateContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2902
|
+
}
|
|
2903
|
+
/**
|
|
2904
|
+
*
|
|
2905
|
+
* @summary Updates multiple contexts
|
|
2906
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2907
|
+
* @param {*} [options] Override http request option.
|
|
2908
|
+
* @throws {RequiredError}
|
|
2909
|
+
* @memberof Scout9Api
|
|
2910
|
+
*/
|
|
2911
|
+
updateContexts(updateContextRequest, options) {
|
|
2912
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateContexts(updateContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2913
|
+
}
|
|
2914
|
+
/**
|
|
2915
|
+
*
|
|
2916
|
+
* @summary Update a conversation
|
|
2917
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
2918
|
+
* @param {*} [options] Override http request option.
|
|
2919
|
+
* @throws {RequiredError}
|
|
2920
|
+
* @memberof Scout9Api
|
|
2921
|
+
*/
|
|
2922
|
+
updateConversation(conversationUpdateRequest, options) {
|
|
2923
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateConversation(conversationUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2924
|
+
}
|
|
2925
|
+
/**
|
|
2926
|
+
*
|
|
2927
|
+
* @summary Updates a customer
|
|
2928
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2929
|
+
* @param {*} [options] Override http request option.
|
|
2930
|
+
* @throws {RequiredError}
|
|
2931
|
+
* @memberof Scout9Api
|
|
2932
|
+
*/
|
|
2933
|
+
updateCustomer(updateCustomerRequest, options) {
|
|
2934
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateCustomer(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2935
|
+
}
|
|
2936
|
+
/**
|
|
2937
|
+
*
|
|
2938
|
+
* @summary Updates multiple customers
|
|
2939
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2940
|
+
* @param {*} [options] Override http request option.
|
|
2941
|
+
* @throws {RequiredError}
|
|
2942
|
+
* @memberof Scout9Api
|
|
2943
|
+
*/
|
|
2944
|
+
updateCustomers(updateCustomerRequest, options) {
|
|
2945
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateCustomers(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2946
|
+
}
|
|
2947
|
+
/**
|
|
2948
|
+
*
|
|
2949
|
+
* @summary Updates a schedule
|
|
2950
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
2951
|
+
* @param {*} [options] Override http request option.
|
|
2952
|
+
* @throws {RequiredError}
|
|
2953
|
+
* @memberof Scout9Api
|
|
2954
|
+
*/
|
|
2955
|
+
updateSchedule(scheduleUpdateRequest, options) {
|
|
2956
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateSchedule(scheduleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2957
|
+
}
|
|
2958
|
+
/**
|
|
2959
|
+
*
|
|
2960
|
+
* @summary Updates a schedule group
|
|
2961
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
2962
|
+
* @param {*} [options] Override http request option.
|
|
2963
|
+
* @throws {RequiredError}
|
|
2964
|
+
* @memberof Scout9Api
|
|
2965
|
+
*/
|
|
2966
|
+
updateScheduleGroup(scheduleGroupUpdateRequest, options) {
|
|
2967
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateScheduleGroup(scheduleGroupUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2968
|
+
}
|
|
2969
|
+
/**
|
|
2970
|
+
*
|
|
2971
|
+
* @summary Update a workflow
|
|
2972
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2973
|
+
* @param {*} [options] Override http request option.
|
|
2974
|
+
* @throws {RequiredError}
|
|
2975
|
+
* @memberof Scout9Api
|
|
2976
|
+
*/
|
|
2977
|
+
updateWorkflow(updateWorkflowRequest, options) {
|
|
2978
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateWorkflow(updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
*
|
|
2982
|
+
* @summary Updates multiple workflows
|
|
2983
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2984
|
+
* @param {*} [options] Override http request option.
|
|
2985
|
+
* @throws {RequiredError}
|
|
2986
|
+
* @memberof Scout9Api
|
|
2987
|
+
*/
|
|
2988
|
+
updateWorkflows(updateWorkflowRequest, options) {
|
|
2989
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateWorkflows(updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
exports.Scout9Api = Scout9Api;
|