@scout9/admin 1.0.5 → 1.0.7

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