@roarkanalytics/sdk 2.22.0 → 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 +19 -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
|
@@ -1,802 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
export declare class Simulation extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieve details of a simulation plan job including all associated simulation
|
|
7
|
-
* jobs (calls)
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const response = await client.simulation.getRunPlanJob(
|
|
12
|
-
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
13
|
-
* );
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
getRunPlanJob(jobID: unknown, options?: RequestOptions): APIPromise<SimulationGetRunPlanJobResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
19
|
-
* larger simulation run plan job.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const response =
|
|
24
|
-
* await client.simulation.getSimulationJobByID(
|
|
25
|
-
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
26
|
-
* );
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
getSimulationJobByID(jobID: unknown, options?: RequestOptions): APIPromise<SimulationGetSimulationJobByIDResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Returns a paginated list of simulation run plan jobs. Filter by status, plan ID,
|
|
32
|
-
* or label to find specific simulation batches.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const response = await client.simulation.listRunPlanJobs();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
listRunPlanJobs(query?: SimulationListRunPlanJobsParams | null | undefined, options?: RequestOptions): APIPromise<SimulationListRunPlanJobsResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* Returns a paginated list of simulation scenarios for the authenticated project.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const response = await client.simulation.listScenarios();
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
listScenarios(query?: SimulationListScenariosParams | null | undefined, options?: RequestOptions): APIPromise<SimulationListScenariosResponse>;
|
|
49
|
-
/**
|
|
50
|
-
* Find the matching simulation using the number used by the Roark simulation
|
|
51
|
-
* agent.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* const response =
|
|
56
|
-
* await client.simulation.lookupSimulationJob({
|
|
57
|
-
* roarkPhoneNumber: {},
|
|
58
|
-
* });
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
lookupSimulationJob(query: SimulationLookupSimulationJobParams, options?: RequestOptions): APIPromise<SimulationLookupSimulationJobResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Create and execute a job for an existing simulation run plan
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```ts
|
|
67
|
-
* const response = await client.simulation.startRunPlanJob(
|
|
68
|
-
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
69
|
-
* );
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
startRunPlanJob(planID: unknown, options?: RequestOptions): APIPromise<SimulationStartRunPlanJobResponse>;
|
|
73
|
-
}
|
|
74
|
-
export interface SimulationGetRunPlanJobResponse {
|
|
75
|
-
/**
|
|
76
|
-
* Simulation run plan job with all associated simulation jobs
|
|
77
|
-
*/
|
|
78
|
-
data: SimulationGetRunPlanJobResponse.Data;
|
|
79
|
-
}
|
|
80
|
-
export declare namespace SimulationGetRunPlanJobResponse {
|
|
81
|
-
/**
|
|
82
|
-
* Simulation run plan job with all associated simulation jobs
|
|
83
|
-
*/
|
|
84
|
-
interface Data {
|
|
85
|
-
/**
|
|
86
|
-
* When the job was created
|
|
87
|
-
*/
|
|
88
|
-
createdAt: string;
|
|
89
|
-
/**
|
|
90
|
-
* List of simulation jobs (calls) in this run plan job
|
|
91
|
-
*/
|
|
92
|
-
simulationJobs: Array<Data.SimulationJob>;
|
|
93
|
-
/**
|
|
94
|
-
* ID of the simulation run plan
|
|
95
|
-
*/
|
|
96
|
-
simulationRunPlanId: string;
|
|
97
|
-
/**
|
|
98
|
-
* ID of the simulation run plan job
|
|
99
|
-
*/
|
|
100
|
-
simulationRunPlanJobId: string;
|
|
101
|
-
/**
|
|
102
|
-
* Job status
|
|
103
|
-
*/
|
|
104
|
-
status: string;
|
|
105
|
-
/**
|
|
106
|
-
* When the job ended
|
|
107
|
-
*/
|
|
108
|
-
endedAt?: string | null;
|
|
109
|
-
/**
|
|
110
|
-
* When the job started
|
|
111
|
-
*/
|
|
112
|
-
startedAt?: string | null;
|
|
113
|
-
}
|
|
114
|
-
namespace Data {
|
|
115
|
-
interface SimulationJob {
|
|
116
|
-
/**
|
|
117
|
-
* Agent endpoint used in a simulation
|
|
118
|
-
*/
|
|
119
|
-
agentEndpoint: SimulationJob.AgentEndpoint;
|
|
120
|
-
/**
|
|
121
|
-
* When the simulation job was created
|
|
122
|
-
*/
|
|
123
|
-
createdAt: string;
|
|
124
|
-
persona: SimulationJob.Persona;
|
|
125
|
-
/**
|
|
126
|
-
* Processing status
|
|
127
|
-
*/
|
|
128
|
-
processingStatus: string;
|
|
129
|
-
/**
|
|
130
|
-
* Scenario used in a simulation
|
|
131
|
-
*/
|
|
132
|
-
scenario: SimulationJob.Scenario;
|
|
133
|
-
/**
|
|
134
|
-
* Simulation job ID
|
|
135
|
-
*/
|
|
136
|
-
simulationJobId: string;
|
|
137
|
-
/**
|
|
138
|
-
* Job status
|
|
139
|
-
*/
|
|
140
|
-
status: string;
|
|
141
|
-
/**
|
|
142
|
-
* ID of the call created for this simulation job. Null if the call has not been
|
|
143
|
-
* created yet.
|
|
144
|
-
*/
|
|
145
|
-
callId?: string | null;
|
|
146
|
-
/**
|
|
147
|
-
* When the simulation job completed
|
|
148
|
-
*/
|
|
149
|
-
completedAt?: string | null;
|
|
150
|
-
/**
|
|
151
|
-
* Phone number provisioned by Roark for this simulation job in E.164 format. Null
|
|
152
|
-
* if the simulation job is queued and has not been assigned a phone number yet.
|
|
153
|
-
*/
|
|
154
|
-
roarkPhoneNumber?: string | null;
|
|
155
|
-
/**
|
|
156
|
-
* When the simulation job started
|
|
157
|
-
*/
|
|
158
|
-
startedAt?: string | null;
|
|
159
|
-
}
|
|
160
|
-
namespace SimulationJob {
|
|
161
|
-
/**
|
|
162
|
-
* Agent endpoint used in a simulation
|
|
163
|
-
*/
|
|
164
|
-
interface AgentEndpoint {
|
|
165
|
-
/**
|
|
166
|
-
* Agent endpoint ID
|
|
167
|
-
*/
|
|
168
|
-
id: string;
|
|
169
|
-
/**
|
|
170
|
-
* Agent endpoint name
|
|
171
|
-
*/
|
|
172
|
-
name: string;
|
|
173
|
-
/**
|
|
174
|
-
* Agent endpoint phone number
|
|
175
|
-
*/
|
|
176
|
-
phoneNumber: string | null;
|
|
177
|
-
/**
|
|
178
|
-
* Agent endpoint type
|
|
179
|
-
*/
|
|
180
|
-
type: string;
|
|
181
|
-
}
|
|
182
|
-
interface Persona {
|
|
183
|
-
/**
|
|
184
|
-
* Unique identifier of the persona
|
|
185
|
-
*/
|
|
186
|
-
id: string;
|
|
187
|
-
/**
|
|
188
|
-
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
189
|
-
* optional variants
|
|
190
|
-
*/
|
|
191
|
-
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
192
|
-
/**
|
|
193
|
-
* Background noise setting
|
|
194
|
-
*/
|
|
195
|
-
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
196
|
-
/**
|
|
197
|
-
* Base emotional state of the persona
|
|
198
|
-
*/
|
|
199
|
-
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
200
|
-
/**
|
|
201
|
-
* How the persona confirms information
|
|
202
|
-
*/
|
|
203
|
-
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
204
|
-
/**
|
|
205
|
-
* Creation timestamp
|
|
206
|
-
*/
|
|
207
|
-
createdAt: string;
|
|
208
|
-
/**
|
|
209
|
-
* Gender of the persona
|
|
210
|
-
*/
|
|
211
|
-
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
212
|
-
/**
|
|
213
|
-
* Whether the persona uses filler words like "um" and "uh"
|
|
214
|
-
*/
|
|
215
|
-
hasDisfluencies: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* How clearly the persona expresses their intentions
|
|
218
|
-
*/
|
|
219
|
-
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
220
|
-
/**
|
|
221
|
-
* Primary language ISO 639-1 code for the persona
|
|
222
|
-
*/
|
|
223
|
-
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
224
|
-
/**
|
|
225
|
-
* How reliable the persona's memory is
|
|
226
|
-
*/
|
|
227
|
-
memoryReliability: 'HIGH' | 'LOW';
|
|
228
|
-
/**
|
|
229
|
-
* The name the agent will identify as during conversations
|
|
230
|
-
*/
|
|
231
|
-
name: string;
|
|
232
|
-
/**
|
|
233
|
-
* Additional custom properties about the persona
|
|
234
|
-
*/
|
|
235
|
-
properties: {
|
|
236
|
-
[key: string]: unknown;
|
|
237
|
-
};
|
|
238
|
-
/**
|
|
239
|
-
* Speech clarity of the persona
|
|
240
|
-
*/
|
|
241
|
-
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
242
|
-
/**
|
|
243
|
-
* Speech pace of the persona
|
|
244
|
-
*/
|
|
245
|
-
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
246
|
-
/**
|
|
247
|
-
* Last update timestamp
|
|
248
|
-
*/
|
|
249
|
-
updatedAt: string;
|
|
250
|
-
/**
|
|
251
|
-
* Background story and behavioral patterns for the persona
|
|
252
|
-
*/
|
|
253
|
-
backstoryPrompt?: string | null;
|
|
254
|
-
/**
|
|
255
|
-
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
256
|
-
*/
|
|
257
|
-
secondaryLanguage?: 'EN' | null;
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Scenario used in a simulation
|
|
261
|
-
*/
|
|
262
|
-
interface Scenario {
|
|
263
|
-
/**
|
|
264
|
-
* Scenario ID
|
|
265
|
-
*/
|
|
266
|
-
id: string;
|
|
267
|
-
/**
|
|
268
|
-
* Scenario description
|
|
269
|
-
*/
|
|
270
|
-
description?: string | null;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
export interface SimulationGetSimulationJobByIDResponse {
|
|
276
|
-
/**
|
|
277
|
-
* Simulation job with related entities
|
|
278
|
-
*/
|
|
279
|
-
data: SimulationGetSimulationJobByIDResponse.Data;
|
|
280
|
-
}
|
|
281
|
-
export declare namespace SimulationGetSimulationJobByIDResponse {
|
|
282
|
-
/**
|
|
283
|
-
* Simulation job with related entities
|
|
284
|
-
*/
|
|
285
|
-
interface Data {
|
|
286
|
-
/**
|
|
287
|
-
* Agent endpoint used in a simulation
|
|
288
|
-
*/
|
|
289
|
-
agentEndpoint: Data.AgentEndpoint;
|
|
290
|
-
/**
|
|
291
|
-
* When the job was created
|
|
292
|
-
*/
|
|
293
|
-
createdAt: string;
|
|
294
|
-
persona: Data.Persona;
|
|
295
|
-
/**
|
|
296
|
-
* Processing status
|
|
297
|
-
*/
|
|
298
|
-
processingStatus: string;
|
|
299
|
-
/**
|
|
300
|
-
* Scenario used in a simulation
|
|
301
|
-
*/
|
|
302
|
-
scenario: Data.Scenario;
|
|
303
|
-
/**
|
|
304
|
-
* Simulation job ID
|
|
305
|
-
*/
|
|
306
|
-
simulationJobId: string;
|
|
307
|
-
/**
|
|
308
|
-
* Job status
|
|
309
|
-
*/
|
|
310
|
-
status: string;
|
|
311
|
-
/**
|
|
312
|
-
* ID of the call created for this simulation job. Null if the call has not been
|
|
313
|
-
* created yet.
|
|
314
|
-
*/
|
|
315
|
-
callId?: string | null;
|
|
316
|
-
/**
|
|
317
|
-
* When the job completed
|
|
318
|
-
*/
|
|
319
|
-
completedAt?: string | null;
|
|
320
|
-
/**
|
|
321
|
-
* Phone number provisioned by Roark for this simulation job in E.164 format. Null
|
|
322
|
-
* if the simulation job is queued and has not been assigned a phone number yet.
|
|
323
|
-
*/
|
|
324
|
-
roarkPhoneNumber?: string | null;
|
|
325
|
-
/**
|
|
326
|
-
* When the job started
|
|
327
|
-
*/
|
|
328
|
-
startedAt?: string | null;
|
|
329
|
-
}
|
|
330
|
-
namespace Data {
|
|
331
|
-
/**
|
|
332
|
-
* Agent endpoint used in a simulation
|
|
333
|
-
*/
|
|
334
|
-
interface AgentEndpoint {
|
|
335
|
-
/**
|
|
336
|
-
* Agent endpoint ID
|
|
337
|
-
*/
|
|
338
|
-
id: string;
|
|
339
|
-
/**
|
|
340
|
-
* Agent endpoint name
|
|
341
|
-
*/
|
|
342
|
-
name: string;
|
|
343
|
-
/**
|
|
344
|
-
* Agent endpoint phone number
|
|
345
|
-
*/
|
|
346
|
-
phoneNumber: string | null;
|
|
347
|
-
/**
|
|
348
|
-
* Agent endpoint type
|
|
349
|
-
*/
|
|
350
|
-
type: string;
|
|
351
|
-
}
|
|
352
|
-
interface Persona {
|
|
353
|
-
/**
|
|
354
|
-
* Unique identifier of the persona
|
|
355
|
-
*/
|
|
356
|
-
id: string;
|
|
357
|
-
/**
|
|
358
|
-
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
359
|
-
* optional variants
|
|
360
|
-
*/
|
|
361
|
-
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
362
|
-
/**
|
|
363
|
-
* Background noise setting
|
|
364
|
-
*/
|
|
365
|
-
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
366
|
-
/**
|
|
367
|
-
* Base emotional state of the persona
|
|
368
|
-
*/
|
|
369
|
-
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
370
|
-
/**
|
|
371
|
-
* How the persona confirms information
|
|
372
|
-
*/
|
|
373
|
-
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
374
|
-
/**
|
|
375
|
-
* Creation timestamp
|
|
376
|
-
*/
|
|
377
|
-
createdAt: string;
|
|
378
|
-
/**
|
|
379
|
-
* Gender of the persona
|
|
380
|
-
*/
|
|
381
|
-
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
382
|
-
/**
|
|
383
|
-
* Whether the persona uses filler words like "um" and "uh"
|
|
384
|
-
*/
|
|
385
|
-
hasDisfluencies: boolean;
|
|
386
|
-
/**
|
|
387
|
-
* How clearly the persona expresses their intentions
|
|
388
|
-
*/
|
|
389
|
-
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
390
|
-
/**
|
|
391
|
-
* Primary language ISO 639-1 code for the persona
|
|
392
|
-
*/
|
|
393
|
-
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
394
|
-
/**
|
|
395
|
-
* How reliable the persona's memory is
|
|
396
|
-
*/
|
|
397
|
-
memoryReliability: 'HIGH' | 'LOW';
|
|
398
|
-
/**
|
|
399
|
-
* The name the agent will identify as during conversations
|
|
400
|
-
*/
|
|
401
|
-
name: string;
|
|
402
|
-
/**
|
|
403
|
-
* Additional custom properties about the persona
|
|
404
|
-
*/
|
|
405
|
-
properties: {
|
|
406
|
-
[key: string]: unknown;
|
|
407
|
-
};
|
|
408
|
-
/**
|
|
409
|
-
* Speech clarity of the persona
|
|
410
|
-
*/
|
|
411
|
-
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
412
|
-
/**
|
|
413
|
-
* Speech pace of the persona
|
|
414
|
-
*/
|
|
415
|
-
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
416
|
-
/**
|
|
417
|
-
* Last update timestamp
|
|
418
|
-
*/
|
|
419
|
-
updatedAt: string;
|
|
420
|
-
/**
|
|
421
|
-
* Background story and behavioral patterns for the persona
|
|
422
|
-
*/
|
|
423
|
-
backstoryPrompt?: string | null;
|
|
424
|
-
/**
|
|
425
|
-
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
426
|
-
*/
|
|
427
|
-
secondaryLanguage?: 'EN' | null;
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Scenario used in a simulation
|
|
431
|
-
*/
|
|
432
|
-
interface Scenario {
|
|
433
|
-
/**
|
|
434
|
-
* Scenario ID
|
|
435
|
-
*/
|
|
436
|
-
id: string;
|
|
437
|
-
/**
|
|
438
|
-
* Scenario description
|
|
439
|
-
*/
|
|
440
|
-
description?: string | null;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Paginated list of simulation run plan jobs
|
|
446
|
-
*/
|
|
447
|
-
export interface SimulationListRunPlanJobsResponse {
|
|
448
|
-
data: Array<SimulationListRunPlanJobsResponse.Data>;
|
|
449
|
-
pagination: SimulationListRunPlanJobsResponse.Pagination;
|
|
450
|
-
}
|
|
451
|
-
export declare namespace SimulationListRunPlanJobsResponse {
|
|
452
|
-
interface Data {
|
|
453
|
-
/**
|
|
454
|
-
* When the job was created
|
|
455
|
-
*/
|
|
456
|
-
createdAt: string;
|
|
457
|
-
/**
|
|
458
|
-
* ID of the simulation run plan
|
|
459
|
-
*/
|
|
460
|
-
simulationRunPlanId: string;
|
|
461
|
-
/**
|
|
462
|
-
* ID of the simulation run plan job
|
|
463
|
-
*/
|
|
464
|
-
simulationRunPlanJobId: string;
|
|
465
|
-
/**
|
|
466
|
-
* Job status
|
|
467
|
-
*/
|
|
468
|
-
status: string;
|
|
469
|
-
/**
|
|
470
|
-
* How the job was triggered (SCHEDULED or USER_TRIGGERED_FROM_UI)
|
|
471
|
-
*/
|
|
472
|
-
triggeredBy: string;
|
|
473
|
-
/**
|
|
474
|
-
* When the job ended
|
|
475
|
-
*/
|
|
476
|
-
endedAt?: string | null;
|
|
477
|
-
/**
|
|
478
|
-
* When the job started
|
|
479
|
-
*/
|
|
480
|
-
startedAt?: string | null;
|
|
481
|
-
}
|
|
482
|
-
interface Pagination {
|
|
483
|
-
/**
|
|
484
|
-
* Whether there are more results available
|
|
485
|
-
*/
|
|
486
|
-
hasMore: boolean;
|
|
487
|
-
/**
|
|
488
|
-
* Total number of matching plan jobs
|
|
489
|
-
*/
|
|
490
|
-
total: number;
|
|
491
|
-
/**
|
|
492
|
-
* Cursor to use for fetching the next page
|
|
493
|
-
*/
|
|
494
|
-
nextCursor?: string | null;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
export interface SimulationListScenariosResponse {
|
|
498
|
-
data: Array<SimulationListScenariosResponse.Data>;
|
|
499
|
-
pagination: SimulationListScenariosResponse.Pagination;
|
|
500
|
-
}
|
|
501
|
-
export declare namespace SimulationListScenariosResponse {
|
|
502
|
-
interface Data {
|
|
503
|
-
/**
|
|
504
|
-
* Unique identifier of the scenario
|
|
505
|
-
*/
|
|
506
|
-
id: string;
|
|
507
|
-
/**
|
|
508
|
-
* Creation timestamp in ISO 8601 format
|
|
509
|
-
*/
|
|
510
|
-
createdAt: string;
|
|
511
|
-
/**
|
|
512
|
-
* Description of the scenario
|
|
513
|
-
*/
|
|
514
|
-
description: string | null;
|
|
515
|
-
/**
|
|
516
|
-
* Name of the scenario (from the start node content)
|
|
517
|
-
*/
|
|
518
|
-
name: string | null;
|
|
519
|
-
/**
|
|
520
|
-
* Ordered list of steps in the scenario (excludes the START node)
|
|
521
|
-
*/
|
|
522
|
-
steps: Array<Data.Step>;
|
|
523
|
-
/**
|
|
524
|
-
* Last update timestamp in ISO 8601 format
|
|
525
|
-
*/
|
|
526
|
-
updatedAt: string;
|
|
527
|
-
}
|
|
528
|
-
namespace Data {
|
|
529
|
-
interface Step {
|
|
530
|
-
/**
|
|
531
|
-
* Content/text of the step
|
|
532
|
-
*/
|
|
533
|
-
content: string | null;
|
|
534
|
-
/**
|
|
535
|
-
* Type of step in the scenario
|
|
536
|
-
*/
|
|
537
|
-
type: 'START' | 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'VOICEMAIL';
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
interface Pagination {
|
|
541
|
-
/**
|
|
542
|
-
* Whether there are more items to fetch
|
|
543
|
-
*/
|
|
544
|
-
hasMore: boolean;
|
|
545
|
-
/**
|
|
546
|
-
* Cursor for the next page of items
|
|
547
|
-
*/
|
|
548
|
-
nextCursor: string | null;
|
|
549
|
-
/**
|
|
550
|
-
* Total number of items
|
|
551
|
-
*/
|
|
552
|
-
total: number;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
export interface SimulationLookupSimulationJobResponse {
|
|
556
|
-
/**
|
|
557
|
-
* Simulation job with related entities
|
|
558
|
-
*/
|
|
559
|
-
data: SimulationLookupSimulationJobResponse.Data;
|
|
560
|
-
}
|
|
561
|
-
export declare namespace SimulationLookupSimulationJobResponse {
|
|
562
|
-
/**
|
|
563
|
-
* Simulation job with related entities
|
|
564
|
-
*/
|
|
565
|
-
interface Data {
|
|
566
|
-
/**
|
|
567
|
-
* Agent endpoint used in a simulation
|
|
568
|
-
*/
|
|
569
|
-
agentEndpoint: Data.AgentEndpoint;
|
|
570
|
-
/**
|
|
571
|
-
* When the job was created
|
|
572
|
-
*/
|
|
573
|
-
createdAt: string;
|
|
574
|
-
persona: Data.Persona;
|
|
575
|
-
/**
|
|
576
|
-
* Processing status
|
|
577
|
-
*/
|
|
578
|
-
processingStatus: string;
|
|
579
|
-
/**
|
|
580
|
-
* Scenario used in a simulation
|
|
581
|
-
*/
|
|
582
|
-
scenario: Data.Scenario;
|
|
583
|
-
/**
|
|
584
|
-
* Simulation job ID
|
|
585
|
-
*/
|
|
586
|
-
simulationJobId: string;
|
|
587
|
-
/**
|
|
588
|
-
* Job status
|
|
589
|
-
*/
|
|
590
|
-
status: string;
|
|
591
|
-
/**
|
|
592
|
-
* ID of the call created for this simulation job. Null if the call has not been
|
|
593
|
-
* created yet.
|
|
594
|
-
*/
|
|
595
|
-
callId?: string | null;
|
|
596
|
-
/**
|
|
597
|
-
* When the job completed
|
|
598
|
-
*/
|
|
599
|
-
completedAt?: string | null;
|
|
600
|
-
/**
|
|
601
|
-
* Phone number provisioned by Roark for this simulation job in E.164 format. Null
|
|
602
|
-
* if the simulation job is queued and has not been assigned a phone number yet.
|
|
603
|
-
*/
|
|
604
|
-
roarkPhoneNumber?: string | null;
|
|
605
|
-
/**
|
|
606
|
-
* When the job started
|
|
607
|
-
*/
|
|
608
|
-
startedAt?: string | null;
|
|
609
|
-
}
|
|
610
|
-
namespace Data {
|
|
611
|
-
/**
|
|
612
|
-
* Agent endpoint used in a simulation
|
|
613
|
-
*/
|
|
614
|
-
interface AgentEndpoint {
|
|
615
|
-
/**
|
|
616
|
-
* Agent endpoint ID
|
|
617
|
-
*/
|
|
618
|
-
id: string;
|
|
619
|
-
/**
|
|
620
|
-
* Agent endpoint name
|
|
621
|
-
*/
|
|
622
|
-
name: string;
|
|
623
|
-
/**
|
|
624
|
-
* Agent endpoint phone number
|
|
625
|
-
*/
|
|
626
|
-
phoneNumber: string | null;
|
|
627
|
-
/**
|
|
628
|
-
* Agent endpoint type
|
|
629
|
-
*/
|
|
630
|
-
type: string;
|
|
631
|
-
}
|
|
632
|
-
interface Persona {
|
|
633
|
-
/**
|
|
634
|
-
* Unique identifier of the persona
|
|
635
|
-
*/
|
|
636
|
-
id: string;
|
|
637
|
-
/**
|
|
638
|
-
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
639
|
-
* optional variants
|
|
640
|
-
*/
|
|
641
|
-
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
642
|
-
/**
|
|
643
|
-
* Background noise setting
|
|
644
|
-
*/
|
|
645
|
-
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
646
|
-
/**
|
|
647
|
-
* Base emotional state of the persona
|
|
648
|
-
*/
|
|
649
|
-
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
650
|
-
/**
|
|
651
|
-
* How the persona confirms information
|
|
652
|
-
*/
|
|
653
|
-
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
654
|
-
/**
|
|
655
|
-
* Creation timestamp
|
|
656
|
-
*/
|
|
657
|
-
createdAt: string;
|
|
658
|
-
/**
|
|
659
|
-
* Gender of the persona
|
|
660
|
-
*/
|
|
661
|
-
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
662
|
-
/**
|
|
663
|
-
* Whether the persona uses filler words like "um" and "uh"
|
|
664
|
-
*/
|
|
665
|
-
hasDisfluencies: boolean;
|
|
666
|
-
/**
|
|
667
|
-
* How clearly the persona expresses their intentions
|
|
668
|
-
*/
|
|
669
|
-
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
670
|
-
/**
|
|
671
|
-
* Primary language ISO 639-1 code for the persona
|
|
672
|
-
*/
|
|
673
|
-
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
674
|
-
/**
|
|
675
|
-
* How reliable the persona's memory is
|
|
676
|
-
*/
|
|
677
|
-
memoryReliability: 'HIGH' | 'LOW';
|
|
678
|
-
/**
|
|
679
|
-
* The name the agent will identify as during conversations
|
|
680
|
-
*/
|
|
681
|
-
name: string;
|
|
682
|
-
/**
|
|
683
|
-
* Additional custom properties about the persona
|
|
684
|
-
*/
|
|
685
|
-
properties: {
|
|
686
|
-
[key: string]: unknown;
|
|
687
|
-
};
|
|
688
|
-
/**
|
|
689
|
-
* Speech clarity of the persona
|
|
690
|
-
*/
|
|
691
|
-
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
692
|
-
/**
|
|
693
|
-
* Speech pace of the persona
|
|
694
|
-
*/
|
|
695
|
-
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
696
|
-
/**
|
|
697
|
-
* Last update timestamp
|
|
698
|
-
*/
|
|
699
|
-
updatedAt: string;
|
|
700
|
-
/**
|
|
701
|
-
* Background story and behavioral patterns for the persona
|
|
702
|
-
*/
|
|
703
|
-
backstoryPrompt?: string | null;
|
|
704
|
-
/**
|
|
705
|
-
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
706
|
-
*/
|
|
707
|
-
secondaryLanguage?: 'EN' | null;
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* Scenario used in a simulation
|
|
711
|
-
*/
|
|
712
|
-
interface Scenario {
|
|
713
|
-
/**
|
|
714
|
-
* Scenario ID
|
|
715
|
-
*/
|
|
716
|
-
id: string;
|
|
717
|
-
/**
|
|
718
|
-
* Scenario description
|
|
719
|
-
*/
|
|
720
|
-
description?: string | null;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
export interface SimulationStartRunPlanJobResponse {
|
|
725
|
-
/**
|
|
726
|
-
* Response when triggering a simulation run plan
|
|
727
|
-
*/
|
|
728
|
-
data: SimulationStartRunPlanJobResponse.Data;
|
|
729
|
-
}
|
|
730
|
-
export declare namespace SimulationStartRunPlanJobResponse {
|
|
731
|
-
/**
|
|
732
|
-
* Response when triggering a simulation run plan
|
|
733
|
-
*/
|
|
734
|
-
interface Data {
|
|
735
|
-
/**
|
|
736
|
-
* When the job was created
|
|
737
|
-
*/
|
|
738
|
-
createdAt: string;
|
|
739
|
-
/**
|
|
740
|
-
* ID of the simulation run plan that was executed
|
|
741
|
-
*/
|
|
742
|
-
simulationRunPlanId: string;
|
|
743
|
-
/**
|
|
744
|
-
* ID of the simulation run plan job that was created
|
|
745
|
-
*/
|
|
746
|
-
simulationRunPlanJobId: string;
|
|
747
|
-
/**
|
|
748
|
-
* Initial status of the job
|
|
749
|
-
*/
|
|
750
|
-
status: string;
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
export interface SimulationListRunPlanJobsParams {
|
|
754
|
-
/**
|
|
755
|
-
* Cursor for pagination - use the nextCursor value from a previous response
|
|
756
|
-
*/
|
|
757
|
-
after?: string;
|
|
758
|
-
/**
|
|
759
|
-
* Filter by label ID attached to the plan job. Use this if you know the label ID.
|
|
760
|
-
*/
|
|
761
|
-
labelId?: string;
|
|
762
|
-
/**
|
|
763
|
-
* Filter by label name attached to the plan job. More user-friendly alternative to
|
|
764
|
-
* labelId. Case-insensitive.
|
|
765
|
-
*/
|
|
766
|
-
labelName?: string;
|
|
767
|
-
/**
|
|
768
|
-
* Maximum number of plan jobs to return (default: 20, max: 50)
|
|
769
|
-
*/
|
|
770
|
-
limit?: number;
|
|
771
|
-
/**
|
|
772
|
-
* Filter by simulation run plan ID
|
|
773
|
-
*/
|
|
774
|
-
simulationRunPlanId?: string;
|
|
775
|
-
/**
|
|
776
|
-
* Filter by plan job status (PENDING, CREATING_SNAPSHOTS, CREATING_SIMULATIONS,
|
|
777
|
-
* RUNNING_SIMULATIONS, COMPLETED, FAILED, TIMED_OUT, CANCELLED, CANCELLING)
|
|
778
|
-
*/
|
|
779
|
-
status?: string;
|
|
780
|
-
}
|
|
781
|
-
export interface SimulationListScenariosParams {
|
|
782
|
-
after?: string;
|
|
783
|
-
limit?: number;
|
|
784
|
-
}
|
|
785
|
-
export interface SimulationLookupSimulationJobParams {
|
|
786
|
-
/**
|
|
787
|
-
* Phone number provisioned by Roark for the simulation job in E.164 format. In the
|
|
788
|
-
* case of an inbound simulation, this is the number that calls your agent; in the
|
|
789
|
-
* case of an outbound simulation, this is the number you call from your agent.
|
|
790
|
-
*/
|
|
791
|
-
roarkPhoneNumber: unknown;
|
|
792
|
-
/**
|
|
793
|
-
* ISO 8601 timestamp of when the call was received. Alternatively, any time
|
|
794
|
-
* between the start and end of the call is valid. Defaults to the current time,
|
|
795
|
-
* which fetches any jobs that are currently ongoing.
|
|
796
|
-
*/
|
|
797
|
-
callReceivedAt?: unknown;
|
|
798
|
-
}
|
|
799
|
-
export declare namespace Simulation {
|
|
800
|
-
export { type SimulationGetRunPlanJobResponse as SimulationGetRunPlanJobResponse, type SimulationGetSimulationJobByIDResponse as SimulationGetSimulationJobByIDResponse, type SimulationListRunPlanJobsResponse as SimulationListRunPlanJobsResponse, type SimulationListScenariosResponse as SimulationListScenariosResponse, type SimulationLookupSimulationJobResponse as SimulationLookupSimulationJobResponse, type SimulationStartRunPlanJobResponse as SimulationStartRunPlanJobResponse, type SimulationListRunPlanJobsParams as SimulationListRunPlanJobsParams, type SimulationListScenariosParams as SimulationListScenariosParams, type SimulationLookupSimulationJobParams as SimulationLookupSimulationJobParams, };
|
|
801
|
-
}
|
|
802
|
-
//# sourceMappingURL=simulation.d.ts.map
|