@roarkanalytics/sdk 2.31.0 → 2.33.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 +61 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +17 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -5
- package/client.d.ts.map +1 -1
- package/client.js +35 -4
- package/client.js.map +1 -1
- package/client.mjs +35 -4
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/agent-endpoint.d.mts +4 -4
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +4 -4
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-endpoint.mjs.map +1 -1
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.mts +303 -155
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +303 -155
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +6 -7
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +6 -7
- package/resources/call.mjs.map +1 -1
- package/resources/config.d.mts +535 -0
- package/resources/config.d.mts.map +1 -0
- package/resources/config.d.ts +535 -0
- package/resources/config.d.ts.map +1 -0
- package/resources/config.js +28 -0
- package/resources/config.js.map +1 -0
- package/resources/config.mjs +24 -0
- package/resources/config.mjs.map +1 -0
- package/resources/customer-flow-edge-case.d.mts +1742 -0
- package/resources/customer-flow-edge-case.d.mts.map +1 -0
- package/resources/customer-flow-edge-case.d.ts +1742 -0
- package/resources/customer-flow-edge-case.d.ts.map +1 -0
- package/resources/customer-flow-edge-case.js +50 -0
- package/resources/customer-flow-edge-case.js.map +1 -0
- package/resources/customer-flow-edge-case.mjs +46 -0
- package/resources/customer-flow-edge-case.mjs.map +1 -0
- package/resources/customer-flow.d.mts +7163 -0
- package/resources/customer-flow.d.mts.map +1 -0
- package/resources/customer-flow.d.ts +7163 -0
- package/resources/customer-flow.d.ts.map +1 -0
- package/resources/customer-flow.js +87 -0
- package/resources/customer-flow.js.map +1 -0
- package/resources/customer-flow.mjs +83 -0
- package/resources/customer-flow.mjs.map +1 -0
- package/resources/health.d.mts.map +1 -1
- package/resources/health.d.ts.map +1 -1
- package/resources/health.mjs.map +1 -1
- package/resources/http-request-definition.d.mts.map +1 -1
- package/resources/http-request-definition.d.ts.map +1 -1
- package/resources/http-request-definition.mjs.map +1 -1
- package/resources/index.d.mts +6 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metric-collection-job.d.mts +5 -3
- package/resources/metric-collection-job.d.mts.map +1 -1
- package/resources/metric-collection-job.d.ts +5 -3
- package/resources/metric-collection-job.d.ts.map +1 -1
- package/resources/metric-collection-job.mjs.map +1 -1
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/metric-policy.mjs.map +1 -1
- package/resources/metric.d.mts +804 -109
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +804 -109
- package/resources/metric.d.ts.map +1 -1
- package/resources/metric.js +6 -7
- package/resources/metric.js.map +1 -1
- package/resources/metric.mjs +6 -7
- package/resources/metric.mjs.map +1 -1
- package/resources/simulation-environment.d.mts +95 -0
- package/resources/simulation-environment.d.mts.map +1 -0
- package/resources/simulation-environment.d.ts +95 -0
- package/resources/simulation-environment.d.ts.map +1 -0
- package/resources/simulation-environment.js +24 -0
- package/resources/simulation-environment.js.map +1 -0
- package/resources/simulation-environment.mjs +20 -0
- package/resources/simulation-environment.mjs.map +1 -0
- package/resources/simulation-job.d.mts +58 -10
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +58 -10
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-job.mjs.map +1 -1
- package/resources/simulation-persona.d.mts +60 -24
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +60 -24
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-persona.mjs.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +73 -32
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +73 -32
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.js +7 -8
- package/resources/simulation-run-plan-job.js.map +1 -1
- package/resources/simulation-run-plan-job.mjs +7 -8
- package/resources/simulation-run-plan-job.mjs.map +1 -1
- package/resources/simulation-run-plan.d.mts +408 -39
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +408 -39
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-run-plan.js +6 -11
- package/resources/simulation-run-plan.js.map +1 -1
- package/resources/simulation-run-plan.mjs +6 -11
- package/resources/simulation-run-plan.mjs.map +1 -1
- package/resources/simulation.d.mts +379 -0
- package/resources/simulation.d.mts.map +1 -0
- package/resources/simulation.d.ts +379 -0
- package/resources/simulation.d.ts.map +1 -0
- package/resources/simulation.js +33 -0
- package/resources/simulation.js.map +1 -0
- package/resources/simulation.mjs +29 -0
- package/resources/simulation.mjs.map +1 -0
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/resources/webhook.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +124 -28
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/agent-endpoint.ts +36 -4
- package/src/resources/call.ts +326 -169
- package/src/resources/config.ts +1162 -0
- package/src/resources/customer-flow-edge-case.ts +2884 -0
- package/src/resources/customer-flow.ts +11713 -0
- package/src/resources/index.ts +42 -12
- package/src/resources/metric-collection-job.ts +5 -3
- package/src/resources/metric.ts +1057 -115
- package/src/resources/simulation-environment.ts +147 -0
- package/src/resources/simulation-job.ts +122 -10
- package/src/resources/simulation-persona.ts +192 -24
- package/src/resources/simulation-run-plan-job.ts +109 -27
- package/src/resources/simulation-run-plan.ts +445 -40
- package/src/resources/simulation.ts +444 -0
- package/src/resources/webhook.ts +8 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +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/simulation-scenario.d.mts +0 -424
- package/resources/simulation-scenario.d.mts.map +0 -1
- package/resources/simulation-scenario.d.ts +0 -424
- package/resources/simulation-scenario.d.ts.map +0 -1
- package/resources/simulation-scenario.js +0 -40
- package/resources/simulation-scenario.js.map +0 -1
- package/resources/simulation-scenario.mjs +0 -36
- package/resources/simulation-scenario.mjs.map +0 -1
- package/src/resources/simulation-scenario.ts +0 -602
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class SimulationScenario extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Creates a new simulation scenario for the authenticated project.
|
|
7
|
-
*/
|
|
8
|
-
create(body: SimulationScenarioCreateParams, options?: RequestOptions): APIPromise<SimulationScenarioCreateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Updates an existing simulation scenario by its ID.
|
|
11
|
-
*/
|
|
12
|
-
update(scenarioID: string, body: SimulationScenarioUpdateParams, options?: RequestOptions): APIPromise<SimulationScenarioUpdateResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Returns a paginated list of simulation scenarios for the authenticated project.
|
|
15
|
-
*/
|
|
16
|
-
list(query?: SimulationScenarioListParams | null | undefined, options?: RequestOptions): APIPromise<SimulationScenarioListResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Deletes a simulation scenario by its ID.
|
|
19
|
-
*/
|
|
20
|
-
delete(scenarioID: string, options?: RequestOptions): APIPromise<SimulationScenarioDeleteResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Returns a specific simulation scenario by its ID.
|
|
23
|
-
*/
|
|
24
|
-
getByID(scenarioID: string, options?: RequestOptions): APIPromise<SimulationScenarioGetByIDResponse>;
|
|
25
|
-
}
|
|
26
|
-
export interface SimulationScenarioCreateResponse {
|
|
27
|
-
data: SimulationScenarioCreateResponse.Data;
|
|
28
|
-
}
|
|
29
|
-
export declare namespace SimulationScenarioCreateResponse {
|
|
30
|
-
interface Data {
|
|
31
|
-
/**
|
|
32
|
-
* Unique identifier of the scenario
|
|
33
|
-
*/
|
|
34
|
-
id: string;
|
|
35
|
-
/**
|
|
36
|
-
* Creation timestamp in ISO 8601 format
|
|
37
|
-
*/
|
|
38
|
-
createdAt: string;
|
|
39
|
-
/**
|
|
40
|
-
* Description of the scenario
|
|
41
|
-
*/
|
|
42
|
-
description: string | null;
|
|
43
|
-
/**
|
|
44
|
-
* Name of the scenario (from the start node content)
|
|
45
|
-
*/
|
|
46
|
-
name: string | null;
|
|
47
|
-
/**
|
|
48
|
-
* Ordered list of steps in the scenario (excludes the START node)
|
|
49
|
-
*/
|
|
50
|
-
steps: Array<Data.Step>;
|
|
51
|
-
/**
|
|
52
|
-
* Last update timestamp in ISO 8601 format
|
|
53
|
-
*/
|
|
54
|
-
updatedAt: string;
|
|
55
|
-
}
|
|
56
|
-
namespace Data {
|
|
57
|
-
interface Step {
|
|
58
|
-
/**
|
|
59
|
-
* Content/text of the step
|
|
60
|
-
*/
|
|
61
|
-
content: string | null;
|
|
62
|
-
/**
|
|
63
|
-
* Unique identifier of the step node (use this for update/delete operations)
|
|
64
|
-
*/
|
|
65
|
-
nodeId: string;
|
|
66
|
-
/**
|
|
67
|
-
* Type of step in the scenario
|
|
68
|
-
*/
|
|
69
|
-
type: 'START' | 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'CUSTOMER_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK';
|
|
70
|
-
/**
|
|
71
|
-
* DTMF digits to send during this step (e.g. 1w2w3#). Valid characters: 0-9, \*,
|
|
72
|
-
* #, w/W for pauses.
|
|
73
|
-
*/
|
|
74
|
-
dtmfDigits?: string | null;
|
|
75
|
-
/**
|
|
76
|
-
* ID of the linked scenario (only for SCENARIO_LINK type steps)
|
|
77
|
-
*/
|
|
78
|
-
linkedScenarioId?: string | null;
|
|
79
|
-
/**
|
|
80
|
-
* Duration of silence in seconds (only for CUSTOMER_SILENCE type steps)
|
|
81
|
-
*/
|
|
82
|
-
silenceDurationSeconds?: number | null;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
export interface SimulationScenarioUpdateResponse {
|
|
87
|
-
data: SimulationScenarioUpdateResponse.Data;
|
|
88
|
-
}
|
|
89
|
-
export declare namespace SimulationScenarioUpdateResponse {
|
|
90
|
-
interface Data {
|
|
91
|
-
/**
|
|
92
|
-
* Unique identifier of the scenario
|
|
93
|
-
*/
|
|
94
|
-
id: string;
|
|
95
|
-
/**
|
|
96
|
-
* Creation timestamp in ISO 8601 format
|
|
97
|
-
*/
|
|
98
|
-
createdAt: string;
|
|
99
|
-
/**
|
|
100
|
-
* Description of the scenario
|
|
101
|
-
*/
|
|
102
|
-
description: string | null;
|
|
103
|
-
/**
|
|
104
|
-
* Name of the scenario (from the start node content)
|
|
105
|
-
*/
|
|
106
|
-
name: string | null;
|
|
107
|
-
/**
|
|
108
|
-
* Ordered list of steps in the scenario (excludes the START node)
|
|
109
|
-
*/
|
|
110
|
-
steps: Array<Data.Step>;
|
|
111
|
-
/**
|
|
112
|
-
* Last update timestamp in ISO 8601 format
|
|
113
|
-
*/
|
|
114
|
-
updatedAt: string;
|
|
115
|
-
}
|
|
116
|
-
namespace Data {
|
|
117
|
-
interface Step {
|
|
118
|
-
/**
|
|
119
|
-
* Content/text of the step
|
|
120
|
-
*/
|
|
121
|
-
content: string | null;
|
|
122
|
-
/**
|
|
123
|
-
* Unique identifier of the step node (use this for update/delete operations)
|
|
124
|
-
*/
|
|
125
|
-
nodeId: string;
|
|
126
|
-
/**
|
|
127
|
-
* Type of step in the scenario
|
|
128
|
-
*/
|
|
129
|
-
type: 'START' | 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'CUSTOMER_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK';
|
|
130
|
-
/**
|
|
131
|
-
* DTMF digits to send during this step (e.g. 1w2w3#). Valid characters: 0-9, \*,
|
|
132
|
-
* #, w/W for pauses.
|
|
133
|
-
*/
|
|
134
|
-
dtmfDigits?: string | null;
|
|
135
|
-
/**
|
|
136
|
-
* ID of the linked scenario (only for SCENARIO_LINK type steps)
|
|
137
|
-
*/
|
|
138
|
-
linkedScenarioId?: string | null;
|
|
139
|
-
/**
|
|
140
|
-
* Duration of silence in seconds (only for CUSTOMER_SILENCE type steps)
|
|
141
|
-
*/
|
|
142
|
-
silenceDurationSeconds?: number | null;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
export interface SimulationScenarioListResponse {
|
|
147
|
-
data: Array<SimulationScenarioListResponse.Data>;
|
|
148
|
-
pagination: SimulationScenarioListResponse.Pagination;
|
|
149
|
-
}
|
|
150
|
-
export declare namespace SimulationScenarioListResponse {
|
|
151
|
-
interface Data {
|
|
152
|
-
/**
|
|
153
|
-
* Unique identifier of the scenario
|
|
154
|
-
*/
|
|
155
|
-
id: string;
|
|
156
|
-
/**
|
|
157
|
-
* Creation timestamp in ISO 8601 format
|
|
158
|
-
*/
|
|
159
|
-
createdAt: string;
|
|
160
|
-
/**
|
|
161
|
-
* Description of the scenario
|
|
162
|
-
*/
|
|
163
|
-
description: string | null;
|
|
164
|
-
/**
|
|
165
|
-
* Name of the scenario (from the start node content)
|
|
166
|
-
*/
|
|
167
|
-
name: string | null;
|
|
168
|
-
/**
|
|
169
|
-
* Ordered list of steps in the scenario (excludes the START node)
|
|
170
|
-
*/
|
|
171
|
-
steps: Array<Data.Step>;
|
|
172
|
-
/**
|
|
173
|
-
* Last update timestamp in ISO 8601 format
|
|
174
|
-
*/
|
|
175
|
-
updatedAt: string;
|
|
176
|
-
}
|
|
177
|
-
namespace Data {
|
|
178
|
-
interface Step {
|
|
179
|
-
/**
|
|
180
|
-
* Content/text of the step
|
|
181
|
-
*/
|
|
182
|
-
content: string | null;
|
|
183
|
-
/**
|
|
184
|
-
* Unique identifier of the step node (use this for update/delete operations)
|
|
185
|
-
*/
|
|
186
|
-
nodeId: string;
|
|
187
|
-
/**
|
|
188
|
-
* Type of step in the scenario
|
|
189
|
-
*/
|
|
190
|
-
type: 'START' | 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'CUSTOMER_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK';
|
|
191
|
-
/**
|
|
192
|
-
* DTMF digits to send during this step (e.g. 1w2w3#). Valid characters: 0-9, \*,
|
|
193
|
-
* #, w/W for pauses.
|
|
194
|
-
*/
|
|
195
|
-
dtmfDigits?: string | null;
|
|
196
|
-
/**
|
|
197
|
-
* ID of the linked scenario (only for SCENARIO_LINK type steps)
|
|
198
|
-
*/
|
|
199
|
-
linkedScenarioId?: string | null;
|
|
200
|
-
/**
|
|
201
|
-
* Duration of silence in seconds (only for CUSTOMER_SILENCE type steps)
|
|
202
|
-
*/
|
|
203
|
-
silenceDurationSeconds?: number | null;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
interface Pagination {
|
|
207
|
-
/**
|
|
208
|
-
* Whether there are more items to fetch
|
|
209
|
-
*/
|
|
210
|
-
hasMore: boolean;
|
|
211
|
-
/**
|
|
212
|
-
* Cursor for the next page of items
|
|
213
|
-
*/
|
|
214
|
-
nextCursor: string | null;
|
|
215
|
-
/**
|
|
216
|
-
* Total number of items
|
|
217
|
-
*/
|
|
218
|
-
total: number;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
export interface SimulationScenarioDeleteResponse {
|
|
222
|
-
data: SimulationScenarioDeleteResponse.Data;
|
|
223
|
-
}
|
|
224
|
-
export declare namespace SimulationScenarioDeleteResponse {
|
|
225
|
-
interface Data {
|
|
226
|
-
/**
|
|
227
|
-
* Whether the scenario was deleted
|
|
228
|
-
*/
|
|
229
|
-
deleted: boolean;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
export interface SimulationScenarioGetByIDResponse {
|
|
233
|
-
data: SimulationScenarioGetByIDResponse.Data;
|
|
234
|
-
}
|
|
235
|
-
export declare namespace SimulationScenarioGetByIDResponse {
|
|
236
|
-
interface Data {
|
|
237
|
-
/**
|
|
238
|
-
* Unique identifier of the scenario
|
|
239
|
-
*/
|
|
240
|
-
id: string;
|
|
241
|
-
/**
|
|
242
|
-
* Creation timestamp in ISO 8601 format
|
|
243
|
-
*/
|
|
244
|
-
createdAt: string;
|
|
245
|
-
/**
|
|
246
|
-
* Description of the scenario
|
|
247
|
-
*/
|
|
248
|
-
description: string | null;
|
|
249
|
-
/**
|
|
250
|
-
* Name of the scenario (from the start node content)
|
|
251
|
-
*/
|
|
252
|
-
name: string | null;
|
|
253
|
-
/**
|
|
254
|
-
* Ordered list of steps in the scenario (excludes the START node)
|
|
255
|
-
*/
|
|
256
|
-
steps: Array<Data.Step>;
|
|
257
|
-
/**
|
|
258
|
-
* Last update timestamp in ISO 8601 format
|
|
259
|
-
*/
|
|
260
|
-
updatedAt: string;
|
|
261
|
-
}
|
|
262
|
-
namespace Data {
|
|
263
|
-
interface Step {
|
|
264
|
-
/**
|
|
265
|
-
* Content/text of the step
|
|
266
|
-
*/
|
|
267
|
-
content: string | null;
|
|
268
|
-
/**
|
|
269
|
-
* Unique identifier of the step node (use this for update/delete operations)
|
|
270
|
-
*/
|
|
271
|
-
nodeId: string;
|
|
272
|
-
/**
|
|
273
|
-
* Type of step in the scenario
|
|
274
|
-
*/
|
|
275
|
-
type: 'START' | 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'CUSTOMER_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK';
|
|
276
|
-
/**
|
|
277
|
-
* DTMF digits to send during this step (e.g. 1w2w3#). Valid characters: 0-9, \*,
|
|
278
|
-
* #, w/W for pauses.
|
|
279
|
-
*/
|
|
280
|
-
dtmfDigits?: string | null;
|
|
281
|
-
/**
|
|
282
|
-
* ID of the linked scenario (only for SCENARIO_LINK type steps)
|
|
283
|
-
*/
|
|
284
|
-
linkedScenarioId?: string | null;
|
|
285
|
-
/**
|
|
286
|
-
* Duration of silence in seconds (only for CUSTOMER_SILENCE type steps)
|
|
287
|
-
*/
|
|
288
|
-
silenceDurationSeconds?: number | null;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
export interface SimulationScenarioCreateParams {
|
|
293
|
-
/**
|
|
294
|
-
* Name of the scenario (used as the START node content)
|
|
295
|
-
*/
|
|
296
|
-
name: string;
|
|
297
|
-
/**
|
|
298
|
-
* Ordered list of steps for the scenario (at least one step is required)
|
|
299
|
-
*/
|
|
300
|
-
steps: Array<SimulationScenarioCreateParams.Step>;
|
|
301
|
-
}
|
|
302
|
-
export declare namespace SimulationScenarioCreateParams {
|
|
303
|
-
/**
|
|
304
|
-
* A step to include when creating a scenario
|
|
305
|
-
*/
|
|
306
|
-
interface Step {
|
|
307
|
-
/**
|
|
308
|
-
* The content/text of the step
|
|
309
|
-
*/
|
|
310
|
-
content: string;
|
|
311
|
-
/**
|
|
312
|
-
* The type of this step
|
|
313
|
-
*/
|
|
314
|
-
type: 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'CUSTOMER_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK';
|
|
315
|
-
/**
|
|
316
|
-
* DTMF digits to send (for CUSTOMER_DTMF type steps, e.g. 1w2w3#). Valid
|
|
317
|
-
* characters: 0-9, \*, #, w/W for pauses.
|
|
318
|
-
*/
|
|
319
|
-
dtmfDigits?: string;
|
|
320
|
-
/**
|
|
321
|
-
* ID of the scenario to link to (required for SCENARIO_LINK type steps)
|
|
322
|
-
*/
|
|
323
|
-
linkedScenarioId?: string;
|
|
324
|
-
/**
|
|
325
|
-
* Duration of silence in seconds (for CUSTOMER_SILENCE type steps)
|
|
326
|
-
*/
|
|
327
|
-
silenceDurationSeconds?: number;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
export interface SimulationScenarioUpdateParams {
|
|
331
|
-
/**
|
|
332
|
-
* List of step changes to apply to the scenario
|
|
333
|
-
*/
|
|
334
|
-
stepChanges: Array<SimulationScenarioUpdateParams.CreateStepChange | SimulationScenarioUpdateParams.UpdateStepChange | SimulationScenarioUpdateParams.DeleteStepChange>;
|
|
335
|
-
/**
|
|
336
|
-
* New name for the scenario (updates the START node content)
|
|
337
|
-
*/
|
|
338
|
-
name?: string;
|
|
339
|
-
}
|
|
340
|
-
export declare namespace SimulationScenarioUpdateParams {
|
|
341
|
-
/**
|
|
342
|
-
* Create a new step in the scenario
|
|
343
|
-
*/
|
|
344
|
-
interface CreateStepChange {
|
|
345
|
-
/**
|
|
346
|
-
* Create a new step
|
|
347
|
-
*/
|
|
348
|
-
action: 'create';
|
|
349
|
-
/**
|
|
350
|
-
* The content/text of the new step
|
|
351
|
-
*/
|
|
352
|
-
content: string;
|
|
353
|
-
/**
|
|
354
|
-
* The type of the new step
|
|
355
|
-
*/
|
|
356
|
-
type: 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'CUSTOMER_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK';
|
|
357
|
-
/**
|
|
358
|
-
* DTMF digits to send (for CUSTOMER_DTMF type steps)
|
|
359
|
-
*/
|
|
360
|
-
dtmfDigits?: string;
|
|
361
|
-
/**
|
|
362
|
-
* ID of the scenario to link to (for SCENARIO_LINK type steps)
|
|
363
|
-
*/
|
|
364
|
-
linkedScenarioId?: string;
|
|
365
|
-
/**
|
|
366
|
-
* Duration of silence in seconds (for CUSTOMER_SILENCE type steps)
|
|
367
|
-
*/
|
|
368
|
-
silenceDurationSeconds?: number;
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* Update an existing step in the scenario
|
|
372
|
-
*/
|
|
373
|
-
interface UpdateStepChange {
|
|
374
|
-
/**
|
|
375
|
-
* Update an existing step
|
|
376
|
-
*/
|
|
377
|
-
action: 'update';
|
|
378
|
-
/**
|
|
379
|
-
* The ID of the step node to update
|
|
380
|
-
*/
|
|
381
|
-
nodeId: string;
|
|
382
|
-
/**
|
|
383
|
-
* The new content/text of the step (optional)
|
|
384
|
-
*/
|
|
385
|
-
content?: string;
|
|
386
|
-
/**
|
|
387
|
-
* DTMF digits to send (for CUSTOMER_DTMF type steps)
|
|
388
|
-
*/
|
|
389
|
-
dtmfDigits?: string;
|
|
390
|
-
/**
|
|
391
|
-
* ID of the scenario to link to (for SCENARIO_LINK type steps)
|
|
392
|
-
*/
|
|
393
|
-
linkedScenarioId?: string;
|
|
394
|
-
/**
|
|
395
|
-
* Duration of silence in seconds (for CUSTOMER_SILENCE type steps)
|
|
396
|
-
*/
|
|
397
|
-
silenceDurationSeconds?: number;
|
|
398
|
-
/**
|
|
399
|
-
* The new type of the step (optional)
|
|
400
|
-
*/
|
|
401
|
-
type?: 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'CUSTOMER_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK';
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* Delete a step from the scenario
|
|
405
|
-
*/
|
|
406
|
-
interface DeleteStepChange {
|
|
407
|
-
/**
|
|
408
|
-
* Delete an existing step
|
|
409
|
-
*/
|
|
410
|
-
action: 'delete';
|
|
411
|
-
/**
|
|
412
|
-
* The ID of the step node to delete
|
|
413
|
-
*/
|
|
414
|
-
nodeId: string;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
export interface SimulationScenarioListParams {
|
|
418
|
-
after?: string;
|
|
419
|
-
limit?: number;
|
|
420
|
-
}
|
|
421
|
-
export declare namespace SimulationScenario {
|
|
422
|
-
export { type SimulationScenarioCreateResponse as SimulationScenarioCreateResponse, type SimulationScenarioUpdateResponse as SimulationScenarioUpdateResponse, type SimulationScenarioListResponse as SimulationScenarioListResponse, type SimulationScenarioDeleteResponse as SimulationScenarioDeleteResponse, type SimulationScenarioGetByIDResponse as SimulationScenarioGetByIDResponse, type SimulationScenarioCreateParams as SimulationScenarioCreateParams, type SimulationScenarioUpdateParams as SimulationScenarioUpdateParams, type SimulationScenarioListParams as SimulationScenarioListParams, };
|
|
423
|
-
}
|
|
424
|
-
//# sourceMappingURL=simulation-scenario.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simulation-scenario.d.mts","sourceRoot":"","sources":["../src/resources/simulation-scenario.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;IAI/C;;OAEG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;IAI/C;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;IAIlG;;OAEG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;CAGrG;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,gCAAgC,CAAC,IAAI,CAAC;CAC7C;AAED,yBAAiB,gCAAgC,CAAC;IAChD,UAAiB,IAAI;QACnB;;WAEG;QACH,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