@roarkanalytics/sdk 2.21.2 → 2.23.0
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/CHANGELOG.md +27 -0
- package/README.md +9 -0
- package/client.d.mts +31 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +31 -10
- package/client.d.ts.map +1 -1
- package/client.js +34 -6
- package/client.js.map +1 -1
- package/client.mjs +34 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-endpoint.d.mts +309 -0
- package/resources/agent-endpoint.d.mts.map +1 -0
- package/resources/agent-endpoint.d.ts +309 -0
- package/resources/agent-endpoint.d.ts.map +1 -0
- package/resources/agent-endpoint.js +35 -0
- package/resources/agent-endpoint.js.map +1 -0
- package/resources/agent-endpoint.mjs +31 -0
- package/resources/agent-endpoint.mjs.map +1 -0
- package/resources/agent.d.mts +193 -0
- package/resources/agent.d.mts.map +1 -0
- package/resources/agent.d.ts +193 -0
- package/resources/agent.d.ts.map +1 -0
- package/resources/agent.js +34 -0
- package/resources/agent.js.map +1 -0
- package/resources/agent.mjs +30 -0
- package/resources/agent.mjs.map +1 -0
- package/resources/call.d.mts +120 -1
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +120 -1
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +7 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +7 -0
- package/resources/call.mjs.map +1 -1
- package/resources/evaluation.d.mts +2097 -617
- package/resources/evaluation.d.mts.map +1 -1
- package/resources/evaluation.d.ts +2097 -617
- package/resources/evaluation.d.ts.map +1 -1
- package/resources/evaluation.js +14 -0
- package/resources/evaluation.js.map +1 -1
- package/resources/evaluation.mjs +14 -0
- package/resources/evaluation.mjs.map +1 -1
- package/resources/http-request-definition.d.mts +339 -0
- package/resources/http-request-definition.d.mts.map +1 -0
- package/resources/http-request-definition.d.ts +339 -0
- package/resources/http-request-definition.d.ts.map +1 -0
- package/resources/http-request-definition.js +36 -0
- package/resources/http-request-definition.js.map +1 -0
- package/resources/http-request-definition.mjs +32 -0
- package/resources/http-request-definition.mjs.map +1 -0
- package/resources/index.d.mts +11 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +19 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -2
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-job.d.mts +393 -0
- package/resources/simulation-job.d.mts.map +1 -0
- package/resources/simulation-job.d.ts +393 -0
- package/resources/simulation-job.d.ts.map +1 -0
- package/resources/simulation-job.js +38 -0
- package/resources/simulation-job.js.map +1 -0
- package/resources/simulation-job.mjs +34 -0
- package/resources/simulation-job.mjs.map +1 -0
- package/resources/{persona.d.mts → simulation-persona.d.mts} +62 -33
- package/resources/simulation-persona.d.mts.map +1 -0
- package/resources/{persona.d.ts → simulation-persona.d.ts} +62 -33
- package/resources/simulation-persona.d.ts.map +1 -0
- package/resources/{persona.js → simulation-persona.js} +18 -13
- package/resources/simulation-persona.js.map +1 -0
- package/resources/{persona.mjs → simulation-persona.mjs} +16 -11
- package/resources/simulation-persona.mjs.map +1 -0
- package/resources/simulation-run-plan-job.d.mts +359 -0
- package/resources/simulation-run-plan-job.d.mts.map +1 -0
- package/resources/simulation-run-plan-job.d.ts +359 -0
- package/resources/simulation-run-plan-job.d.ts.map +1 -0
- package/resources/simulation-run-plan-job.js +50 -0
- package/resources/simulation-run-plan-job.js.map +1 -0
- package/resources/simulation-run-plan-job.mjs +46 -0
- package/resources/simulation-run-plan-job.mjs.map +1 -0
- package/resources/simulation-run-plan.d.mts +660 -0
- package/resources/simulation-run-plan.d.mts.map +1 -0
- package/resources/simulation-run-plan.d.ts +660 -0
- package/resources/simulation-run-plan.d.ts.map +1 -0
- package/resources/simulation-run-plan.js +93 -0
- package/resources/simulation-run-plan.js.map +1 -0
- package/resources/simulation-run-plan.mjs +89 -0
- package/resources/simulation-run-plan.mjs.map +1 -0
- package/resources/simulation-scenario.d.mts +335 -0
- package/resources/simulation-scenario.d.mts.map +1 -0
- package/resources/simulation-scenario.d.ts +335 -0
- package/resources/simulation-scenario.d.ts.map +1 -0
- package/resources/simulation-scenario.js +40 -0
- package/resources/simulation-scenario.js.map +1 -0
- package/resources/simulation-scenario.mjs +36 -0
- package/resources/simulation-scenario.mjs.map +1 -0
- package/resources/webhook.d.mts +212 -0
- package/resources/webhook.d.mts.map +1 -0
- package/resources/webhook.d.ts +212 -0
- package/resources/webhook.d.ts.map +1 -0
- package/resources/webhook.js +35 -0
- package/resources/webhook.js.map +1 -0
- package/resources/webhook.mjs +31 -0
- package/resources/webhook.mjs.map +1 -0
- package/src/client.ts +208 -43
- package/src/resources/agent-endpoint.ts +400 -0
- package/src/resources/agent.ts +263 -0
- package/src/resources/call.ts +149 -0
- package/src/resources/evaluation.ts +3044 -1154
- package/src/resources/http-request-definition.ts +410 -0
- package/src/resources/index.ts +89 -21
- package/src/resources/simulation-job.ts +527 -0
- package/src/resources/{persona.ts → simulation-persona.ts} +78 -40
- package/src/resources/simulation-run-plan-job.ts +521 -0
- package/src/resources/simulation-run-plan.ts +840 -0
- package/src/resources/simulation-scenario.ts +463 -0
- package/src/resources/webhook.ts +318 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/persona.d.mts.map +0 -1
- package/resources/persona.d.ts.map +0 -1
- package/resources/persona.js.map +0 -1
- package/resources/persona.mjs.map +0 -1
- package/resources/simulation.d.mts +0 -802
- package/resources/simulation.d.mts.map +0 -1
- package/resources/simulation.d.ts +0 -802
- package/resources/simulation.d.ts.map +0 -1
- package/resources/simulation.js +0 -90
- package/resources/simulation.js.map +0 -1
- package/resources/simulation.mjs +0 -86
- package/resources/simulation.mjs.map +0 -1
- package/src/resources/simulation.ts +0 -1069
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class SimulationScenario extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new simulation scenario for the authenticated project.
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: SimulationScenarioCreateParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): APIPromise<SimulationScenarioCreateResponse> {
|
|
16
|
+
return this._client.post('/v1/simulation/scenario', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Updates an existing simulation scenario by its ID.
|
|
21
|
+
*/
|
|
22
|
+
update(
|
|
23
|
+
scenarioID: string,
|
|
24
|
+
body: SimulationScenarioUpdateParams,
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): APIPromise<SimulationScenarioUpdateResponse> {
|
|
27
|
+
return this._client.put(path`/v1/simulation/scenario/${scenarioID}`, { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Returns a paginated list of simulation scenarios for the authenticated project.
|
|
32
|
+
*/
|
|
33
|
+
list(
|
|
34
|
+
query: SimulationScenarioListParams | null | undefined = {},
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<SimulationScenarioListResponse> {
|
|
37
|
+
return this._client.get('/v1/simulation/scenario', { query, ...options });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Deletes a simulation scenario by its ID.
|
|
42
|
+
*/
|
|
43
|
+
delete(scenarioID: string, options?: RequestOptions): APIPromise<SimulationScenarioDeleteResponse> {
|
|
44
|
+
return this._client.delete(path`/v1/simulation/scenario/${scenarioID}`, options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Returns a specific simulation scenario by its ID.
|
|
49
|
+
*/
|
|
50
|
+
getByID(scenarioID: string, options?: RequestOptions): APIPromise<SimulationScenarioGetByIDResponse> {
|
|
51
|
+
return this._client.get(path`/v1/simulation/scenario/${scenarioID}`, options);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface SimulationScenarioCreateResponse {
|
|
56
|
+
data: SimulationScenarioCreateResponse.Data;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export namespace SimulationScenarioCreateResponse {
|
|
60
|
+
export interface Data {
|
|
61
|
+
/**
|
|
62
|
+
* Unique identifier of the scenario
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Creation timestamp in ISO 8601 format
|
|
68
|
+
*/
|
|
69
|
+
createdAt: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Description of the scenario
|
|
73
|
+
*/
|
|
74
|
+
description: string | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Name of the scenario (from the start node content)
|
|
78
|
+
*/
|
|
79
|
+
name: string | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Ordered list of steps in the scenario (excludes the START node)
|
|
83
|
+
*/
|
|
84
|
+
steps: Array<Data.Step>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Last update timestamp in ISO 8601 format
|
|
88
|
+
*/
|
|
89
|
+
updatedAt: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export namespace Data {
|
|
93
|
+
export interface Step {
|
|
94
|
+
/**
|
|
95
|
+
* Content/text of the step
|
|
96
|
+
*/
|
|
97
|
+
content: string | null;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Unique identifier of the step node (use this for update/delete operations)
|
|
101
|
+
*/
|
|
102
|
+
nodeId: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Type of step in the scenario
|
|
106
|
+
*/
|
|
107
|
+
type:
|
|
108
|
+
| 'START'
|
|
109
|
+
| 'AGENT_TURN'
|
|
110
|
+
| 'CUSTOMER_TURN'
|
|
111
|
+
| 'CUSTOMER_FIRST_MESSAGE'
|
|
112
|
+
| 'CUSTOMER_SILENCE'
|
|
113
|
+
| 'VOICEMAIL';
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface SimulationScenarioUpdateResponse {
|
|
119
|
+
data: SimulationScenarioUpdateResponse.Data;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export namespace SimulationScenarioUpdateResponse {
|
|
123
|
+
export interface Data {
|
|
124
|
+
/**
|
|
125
|
+
* Unique identifier of the scenario
|
|
126
|
+
*/
|
|
127
|
+
id: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Creation timestamp in ISO 8601 format
|
|
131
|
+
*/
|
|
132
|
+
createdAt: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Description of the scenario
|
|
136
|
+
*/
|
|
137
|
+
description: string | null;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Name of the scenario (from the start node content)
|
|
141
|
+
*/
|
|
142
|
+
name: string | null;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Ordered list of steps in the scenario (excludes the START node)
|
|
146
|
+
*/
|
|
147
|
+
steps: Array<Data.Step>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Last update timestamp in ISO 8601 format
|
|
151
|
+
*/
|
|
152
|
+
updatedAt: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export namespace Data {
|
|
156
|
+
export interface Step {
|
|
157
|
+
/**
|
|
158
|
+
* Content/text of the step
|
|
159
|
+
*/
|
|
160
|
+
content: string | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Unique identifier of the step node (use this for update/delete operations)
|
|
164
|
+
*/
|
|
165
|
+
nodeId: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Type of step in the scenario
|
|
169
|
+
*/
|
|
170
|
+
type:
|
|
171
|
+
| 'START'
|
|
172
|
+
| 'AGENT_TURN'
|
|
173
|
+
| 'CUSTOMER_TURN'
|
|
174
|
+
| 'CUSTOMER_FIRST_MESSAGE'
|
|
175
|
+
| 'CUSTOMER_SILENCE'
|
|
176
|
+
| 'VOICEMAIL';
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface SimulationScenarioListResponse {
|
|
182
|
+
data: Array<SimulationScenarioListResponse.Data>;
|
|
183
|
+
|
|
184
|
+
pagination: SimulationScenarioListResponse.Pagination;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export namespace SimulationScenarioListResponse {
|
|
188
|
+
export interface Data {
|
|
189
|
+
/**
|
|
190
|
+
* Unique identifier of the scenario
|
|
191
|
+
*/
|
|
192
|
+
id: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Creation timestamp in ISO 8601 format
|
|
196
|
+
*/
|
|
197
|
+
createdAt: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Description of the scenario
|
|
201
|
+
*/
|
|
202
|
+
description: string | null;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Name of the scenario (from the start node content)
|
|
206
|
+
*/
|
|
207
|
+
name: string | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Ordered list of steps in the scenario (excludes the START node)
|
|
211
|
+
*/
|
|
212
|
+
steps: Array<Data.Step>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Last update timestamp in ISO 8601 format
|
|
216
|
+
*/
|
|
217
|
+
updatedAt: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export namespace Data {
|
|
221
|
+
export interface Step {
|
|
222
|
+
/**
|
|
223
|
+
* Content/text of the step
|
|
224
|
+
*/
|
|
225
|
+
content: string | null;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Unique identifier of the step node (use this for update/delete operations)
|
|
229
|
+
*/
|
|
230
|
+
nodeId: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Type of step in the scenario
|
|
234
|
+
*/
|
|
235
|
+
type:
|
|
236
|
+
| 'START'
|
|
237
|
+
| 'AGENT_TURN'
|
|
238
|
+
| 'CUSTOMER_TURN'
|
|
239
|
+
| 'CUSTOMER_FIRST_MESSAGE'
|
|
240
|
+
| 'CUSTOMER_SILENCE'
|
|
241
|
+
| 'VOICEMAIL';
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface Pagination {
|
|
246
|
+
/**
|
|
247
|
+
* Whether there are more items to fetch
|
|
248
|
+
*/
|
|
249
|
+
hasMore: boolean;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Cursor for the next page of items
|
|
253
|
+
*/
|
|
254
|
+
nextCursor: string | null;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Total number of items
|
|
258
|
+
*/
|
|
259
|
+
total: number;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface SimulationScenarioDeleteResponse {
|
|
264
|
+
data: SimulationScenarioDeleteResponse.Data;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export namespace SimulationScenarioDeleteResponse {
|
|
268
|
+
export interface Data {
|
|
269
|
+
/**
|
|
270
|
+
* Whether the scenario was deleted
|
|
271
|
+
*/
|
|
272
|
+
deleted: boolean;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface SimulationScenarioGetByIDResponse {
|
|
277
|
+
data: SimulationScenarioGetByIDResponse.Data;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export namespace SimulationScenarioGetByIDResponse {
|
|
281
|
+
export interface Data {
|
|
282
|
+
/**
|
|
283
|
+
* Unique identifier of the scenario
|
|
284
|
+
*/
|
|
285
|
+
id: string;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Creation timestamp in ISO 8601 format
|
|
289
|
+
*/
|
|
290
|
+
createdAt: string;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Description of the scenario
|
|
294
|
+
*/
|
|
295
|
+
description: string | null;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Name of the scenario (from the start node content)
|
|
299
|
+
*/
|
|
300
|
+
name: string | null;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Ordered list of steps in the scenario (excludes the START node)
|
|
304
|
+
*/
|
|
305
|
+
steps: Array<Data.Step>;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Last update timestamp in ISO 8601 format
|
|
309
|
+
*/
|
|
310
|
+
updatedAt: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export namespace Data {
|
|
314
|
+
export interface Step {
|
|
315
|
+
/**
|
|
316
|
+
* Content/text of the step
|
|
317
|
+
*/
|
|
318
|
+
content: string | null;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Unique identifier of the step node (use this for update/delete operations)
|
|
322
|
+
*/
|
|
323
|
+
nodeId: string;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Type of step in the scenario
|
|
327
|
+
*/
|
|
328
|
+
type:
|
|
329
|
+
| 'START'
|
|
330
|
+
| 'AGENT_TURN'
|
|
331
|
+
| 'CUSTOMER_TURN'
|
|
332
|
+
| 'CUSTOMER_FIRST_MESSAGE'
|
|
333
|
+
| 'CUSTOMER_SILENCE'
|
|
334
|
+
| 'VOICEMAIL';
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface SimulationScenarioCreateParams {
|
|
340
|
+
/**
|
|
341
|
+
* Name of the scenario (used as the START node content)
|
|
342
|
+
*/
|
|
343
|
+
name: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Ordered list of steps for the scenario (at least one step is required)
|
|
347
|
+
*/
|
|
348
|
+
steps: Array<SimulationScenarioCreateParams.Step>;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export namespace SimulationScenarioCreateParams {
|
|
352
|
+
/**
|
|
353
|
+
* A step to include when creating a scenario
|
|
354
|
+
*/
|
|
355
|
+
export interface Step {
|
|
356
|
+
/**
|
|
357
|
+
* The content/text of the step
|
|
358
|
+
*/
|
|
359
|
+
content: string;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* The type of this step
|
|
363
|
+
*/
|
|
364
|
+
type: 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'VOICEMAIL';
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export interface SimulationScenarioUpdateParams {
|
|
369
|
+
/**
|
|
370
|
+
* List of step changes to apply to the scenario
|
|
371
|
+
*/
|
|
372
|
+
stepChanges: Array<
|
|
373
|
+
| SimulationScenarioUpdateParams.CreateStepChange
|
|
374
|
+
| SimulationScenarioUpdateParams.UpdateStepChange
|
|
375
|
+
| SimulationScenarioUpdateParams.DeleteStepChange
|
|
376
|
+
>;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* New name for the scenario (updates the START node content)
|
|
380
|
+
*/
|
|
381
|
+
name?: string;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export namespace SimulationScenarioUpdateParams {
|
|
385
|
+
/**
|
|
386
|
+
* Create a new step in the scenario
|
|
387
|
+
*/
|
|
388
|
+
export interface CreateStepChange {
|
|
389
|
+
/**
|
|
390
|
+
* Create a new step
|
|
391
|
+
*/
|
|
392
|
+
action: 'create';
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* The content/text of the new step
|
|
396
|
+
*/
|
|
397
|
+
content: string;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The type of the new step
|
|
401
|
+
*/
|
|
402
|
+
type: 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'VOICEMAIL';
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Update an existing step in the scenario
|
|
407
|
+
*/
|
|
408
|
+
export interface UpdateStepChange {
|
|
409
|
+
/**
|
|
410
|
+
* Update an existing step
|
|
411
|
+
*/
|
|
412
|
+
action: 'update';
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* The ID of the step node to update
|
|
416
|
+
*/
|
|
417
|
+
nodeId: string;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The new content/text of the step (optional)
|
|
421
|
+
*/
|
|
422
|
+
content?: string;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* The new type of the step (optional)
|
|
426
|
+
*/
|
|
427
|
+
type?: 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'VOICEMAIL';
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Delete a step from the scenario
|
|
432
|
+
*/
|
|
433
|
+
export interface DeleteStepChange {
|
|
434
|
+
/**
|
|
435
|
+
* Delete an existing step
|
|
436
|
+
*/
|
|
437
|
+
action: 'delete';
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* The ID of the step node to delete
|
|
441
|
+
*/
|
|
442
|
+
nodeId: string;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export interface SimulationScenarioListParams {
|
|
447
|
+
after?: string;
|
|
448
|
+
|
|
449
|
+
limit?: number;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export declare namespace SimulationScenario {
|
|
453
|
+
export {
|
|
454
|
+
type SimulationScenarioCreateResponse as SimulationScenarioCreateResponse,
|
|
455
|
+
type SimulationScenarioUpdateResponse as SimulationScenarioUpdateResponse,
|
|
456
|
+
type SimulationScenarioListResponse as SimulationScenarioListResponse,
|
|
457
|
+
type SimulationScenarioDeleteResponse as SimulationScenarioDeleteResponse,
|
|
458
|
+
type SimulationScenarioGetByIDResponse as SimulationScenarioGetByIDResponse,
|
|
459
|
+
type SimulationScenarioCreateParams as SimulationScenarioCreateParams,
|
|
460
|
+
type SimulationScenarioUpdateParams as SimulationScenarioUpdateParams,
|
|
461
|
+
type SimulationScenarioListParams as SimulationScenarioListParams,
|
|
462
|
+
};
|
|
463
|
+
}
|