@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,527 @@
|
|
|
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 SimulationJob extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
11
|
+
* larger simulation run plan job.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response = await client.simulationJob.getByID(
|
|
16
|
+
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
getByID(jobID: unknown, options?: RequestOptions): APIPromise<SimulationJobGetByIDResponse> {
|
|
21
|
+
return this._client.get(path`/v1/simulation/job/${jobID}`, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Find the matching simulation using the number used by the Roark simulation
|
|
26
|
+
* agent.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response = await client.simulationJob.lookup({
|
|
31
|
+
* roarkPhoneNumber: {},
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
lookup(
|
|
36
|
+
query: SimulationJobLookupParams,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<SimulationJobLookupResponse> {
|
|
39
|
+
return this._client.get('/v1/simulation/job/lookup', { query, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface SimulationJobGetByIDResponse {
|
|
44
|
+
/**
|
|
45
|
+
* Simulation job with related entities
|
|
46
|
+
*/
|
|
47
|
+
data: SimulationJobGetByIDResponse.Data;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace SimulationJobGetByIDResponse {
|
|
51
|
+
/**
|
|
52
|
+
* Simulation job with related entities
|
|
53
|
+
*/
|
|
54
|
+
export interface Data {
|
|
55
|
+
/**
|
|
56
|
+
* Agent endpoint used in a simulation
|
|
57
|
+
*/
|
|
58
|
+
agentEndpoint: Data.AgentEndpoint;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* When the job was created
|
|
62
|
+
*/
|
|
63
|
+
createdAt: string;
|
|
64
|
+
|
|
65
|
+
persona: Data.Persona;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Processing status
|
|
69
|
+
*/
|
|
70
|
+
processingStatus: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Scenario used in a simulation
|
|
74
|
+
*/
|
|
75
|
+
scenario: Data.Scenario;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Simulation job ID
|
|
79
|
+
*/
|
|
80
|
+
simulationJobId: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Job status
|
|
84
|
+
*/
|
|
85
|
+
status: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* ID of the call created for this simulation job. Null if the call has not been
|
|
89
|
+
* created yet.
|
|
90
|
+
*/
|
|
91
|
+
callId?: string | null;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* When the job completed
|
|
95
|
+
*/
|
|
96
|
+
completedAt?: string | null;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Phone number provisioned by Roark for this simulation job in E.164 format. Null
|
|
100
|
+
* if the simulation job is queued and has not been assigned a phone number yet.
|
|
101
|
+
*/
|
|
102
|
+
roarkPhoneNumber?: string | null;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* When the job started
|
|
106
|
+
*/
|
|
107
|
+
startedAt?: string | null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export namespace Data {
|
|
111
|
+
/**
|
|
112
|
+
* Agent endpoint used in a simulation
|
|
113
|
+
*/
|
|
114
|
+
export interface AgentEndpoint {
|
|
115
|
+
/**
|
|
116
|
+
* Agent endpoint ID
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Agent endpoint name
|
|
122
|
+
*/
|
|
123
|
+
name: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Agent endpoint phone number
|
|
127
|
+
*/
|
|
128
|
+
phoneNumber: string | null;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Agent endpoint type
|
|
132
|
+
*/
|
|
133
|
+
type: 'PHONE' | 'WEBSOCKET';
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface Persona {
|
|
137
|
+
/**
|
|
138
|
+
* Unique identifier of the persona
|
|
139
|
+
*/
|
|
140
|
+
id: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
144
|
+
* optional variants
|
|
145
|
+
*/
|
|
146
|
+
accent:
|
|
147
|
+
| 'US'
|
|
148
|
+
| 'US_X_SOUTH'
|
|
149
|
+
| 'GB'
|
|
150
|
+
| 'ES'
|
|
151
|
+
| 'DE'
|
|
152
|
+
| 'IN'
|
|
153
|
+
| 'FR'
|
|
154
|
+
| 'NL'
|
|
155
|
+
| 'SA'
|
|
156
|
+
| 'GR'
|
|
157
|
+
| 'AU'
|
|
158
|
+
| 'IT'
|
|
159
|
+
| 'ID'
|
|
160
|
+
| 'TH'
|
|
161
|
+
| 'JP';
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Background noise setting
|
|
165
|
+
*/
|
|
166
|
+
backgroundNoise:
|
|
167
|
+
| 'NONE'
|
|
168
|
+
| 'AIRPORT'
|
|
169
|
+
| 'CHILDREN_PLAYING'
|
|
170
|
+
| 'CITY'
|
|
171
|
+
| 'COFFEE_SHOP'
|
|
172
|
+
| 'DRIVING'
|
|
173
|
+
| 'OFFICE'
|
|
174
|
+
| 'THUNDERSTORM';
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Base emotional state of the persona
|
|
178
|
+
*/
|
|
179
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* How the persona confirms information
|
|
183
|
+
*/
|
|
184
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Creation timestamp
|
|
188
|
+
*/
|
|
189
|
+
createdAt: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Gender of the persona
|
|
193
|
+
*/
|
|
194
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
198
|
+
*/
|
|
199
|
+
hasDisfluencies: boolean;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* How clearly the persona expresses their intentions
|
|
203
|
+
*/
|
|
204
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Primary language ISO 639-1 code for the persona
|
|
208
|
+
*/
|
|
209
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* How reliable the persona's memory is
|
|
213
|
+
*/
|
|
214
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The name the agent will identify as during conversations
|
|
218
|
+
*/
|
|
219
|
+
name: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Additional custom properties about the persona
|
|
223
|
+
*/
|
|
224
|
+
properties: { [key: string]: unknown };
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Speech clarity of the persona
|
|
228
|
+
*/
|
|
229
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Speech pace of the persona
|
|
233
|
+
*/
|
|
234
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Last update timestamp
|
|
238
|
+
*/
|
|
239
|
+
updatedAt: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Background story and behavioral patterns for the persona
|
|
243
|
+
*/
|
|
244
|
+
backstoryPrompt?: string | null;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Human-readable description of the persona
|
|
248
|
+
*/
|
|
249
|
+
description?: string | null;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
253
|
+
*/
|
|
254
|
+
secondaryLanguage?: 'EN' | null;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Scenario used in a simulation
|
|
259
|
+
*/
|
|
260
|
+
export interface Scenario {
|
|
261
|
+
/**
|
|
262
|
+
* Scenario ID
|
|
263
|
+
*/
|
|
264
|
+
id: string;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Scenario description
|
|
268
|
+
*/
|
|
269
|
+
description?: string | null;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface SimulationJobLookupResponse {
|
|
275
|
+
/**
|
|
276
|
+
* Simulation job with related entities
|
|
277
|
+
*/
|
|
278
|
+
data: SimulationJobLookupResponse.Data;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export namespace SimulationJobLookupResponse {
|
|
282
|
+
/**
|
|
283
|
+
* Simulation job with related entities
|
|
284
|
+
*/
|
|
285
|
+
export interface Data {
|
|
286
|
+
/**
|
|
287
|
+
* Agent endpoint used in a simulation
|
|
288
|
+
*/
|
|
289
|
+
agentEndpoint: Data.AgentEndpoint;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* When the job was created
|
|
293
|
+
*/
|
|
294
|
+
createdAt: string;
|
|
295
|
+
|
|
296
|
+
persona: Data.Persona;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Processing status
|
|
300
|
+
*/
|
|
301
|
+
processingStatus: string;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Scenario used in a simulation
|
|
305
|
+
*/
|
|
306
|
+
scenario: Data.Scenario;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Simulation job ID
|
|
310
|
+
*/
|
|
311
|
+
simulationJobId: string;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Job status
|
|
315
|
+
*/
|
|
316
|
+
status: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* ID of the call created for this simulation job. Null if the call has not been
|
|
320
|
+
* created yet.
|
|
321
|
+
*/
|
|
322
|
+
callId?: string | null;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* When the job completed
|
|
326
|
+
*/
|
|
327
|
+
completedAt?: string | null;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Phone number provisioned by Roark for this simulation job in E.164 format. Null
|
|
331
|
+
* if the simulation job is queued and has not been assigned a phone number yet.
|
|
332
|
+
*/
|
|
333
|
+
roarkPhoneNumber?: string | null;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* When the job started
|
|
337
|
+
*/
|
|
338
|
+
startedAt?: string | null;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export namespace Data {
|
|
342
|
+
/**
|
|
343
|
+
* Agent endpoint used in a simulation
|
|
344
|
+
*/
|
|
345
|
+
export interface AgentEndpoint {
|
|
346
|
+
/**
|
|
347
|
+
* Agent endpoint ID
|
|
348
|
+
*/
|
|
349
|
+
id: string;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Agent endpoint name
|
|
353
|
+
*/
|
|
354
|
+
name: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Agent endpoint phone number
|
|
358
|
+
*/
|
|
359
|
+
phoneNumber: string | null;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Agent endpoint type
|
|
363
|
+
*/
|
|
364
|
+
type: 'PHONE' | 'WEBSOCKET';
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export interface Persona {
|
|
368
|
+
/**
|
|
369
|
+
* Unique identifier of the persona
|
|
370
|
+
*/
|
|
371
|
+
id: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
375
|
+
* optional variants
|
|
376
|
+
*/
|
|
377
|
+
accent:
|
|
378
|
+
| 'US'
|
|
379
|
+
| 'US_X_SOUTH'
|
|
380
|
+
| 'GB'
|
|
381
|
+
| 'ES'
|
|
382
|
+
| 'DE'
|
|
383
|
+
| 'IN'
|
|
384
|
+
| 'FR'
|
|
385
|
+
| 'NL'
|
|
386
|
+
| 'SA'
|
|
387
|
+
| 'GR'
|
|
388
|
+
| 'AU'
|
|
389
|
+
| 'IT'
|
|
390
|
+
| 'ID'
|
|
391
|
+
| 'TH'
|
|
392
|
+
| 'JP';
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Background noise setting
|
|
396
|
+
*/
|
|
397
|
+
backgroundNoise:
|
|
398
|
+
| 'NONE'
|
|
399
|
+
| 'AIRPORT'
|
|
400
|
+
| 'CHILDREN_PLAYING'
|
|
401
|
+
| 'CITY'
|
|
402
|
+
| 'COFFEE_SHOP'
|
|
403
|
+
| 'DRIVING'
|
|
404
|
+
| 'OFFICE'
|
|
405
|
+
| 'THUNDERSTORM';
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Base emotional state of the persona
|
|
409
|
+
*/
|
|
410
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* How the persona confirms information
|
|
414
|
+
*/
|
|
415
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Creation timestamp
|
|
419
|
+
*/
|
|
420
|
+
createdAt: string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Gender of the persona
|
|
424
|
+
*/
|
|
425
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
429
|
+
*/
|
|
430
|
+
hasDisfluencies: boolean;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* How clearly the persona expresses their intentions
|
|
434
|
+
*/
|
|
435
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Primary language ISO 639-1 code for the persona
|
|
439
|
+
*/
|
|
440
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* How reliable the persona's memory is
|
|
444
|
+
*/
|
|
445
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* The name the agent will identify as during conversations
|
|
449
|
+
*/
|
|
450
|
+
name: string;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Additional custom properties about the persona
|
|
454
|
+
*/
|
|
455
|
+
properties: { [key: string]: unknown };
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Speech clarity of the persona
|
|
459
|
+
*/
|
|
460
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Speech pace of the persona
|
|
464
|
+
*/
|
|
465
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Last update timestamp
|
|
469
|
+
*/
|
|
470
|
+
updatedAt: string;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Background story and behavioral patterns for the persona
|
|
474
|
+
*/
|
|
475
|
+
backstoryPrompt?: string | null;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Human-readable description of the persona
|
|
479
|
+
*/
|
|
480
|
+
description?: string | null;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
484
|
+
*/
|
|
485
|
+
secondaryLanguage?: 'EN' | null;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Scenario used in a simulation
|
|
490
|
+
*/
|
|
491
|
+
export interface Scenario {
|
|
492
|
+
/**
|
|
493
|
+
* Scenario ID
|
|
494
|
+
*/
|
|
495
|
+
id: string;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Scenario description
|
|
499
|
+
*/
|
|
500
|
+
description?: string | null;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export interface SimulationJobLookupParams {
|
|
506
|
+
/**
|
|
507
|
+
* Phone number provisioned by Roark for the simulation job in E.164 format. In the
|
|
508
|
+
* case of an inbound simulation, this is the number that calls your agent; in the
|
|
509
|
+
* case of an outbound simulation, this is the number you call from your agent.
|
|
510
|
+
*/
|
|
511
|
+
roarkPhoneNumber: unknown;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* ISO 8601 timestamp of when the call was received. Alternatively, any time
|
|
515
|
+
* between the start and end of the call is valid. Defaults to the current time,
|
|
516
|
+
* which fetches any jobs that are currently ongoing.
|
|
517
|
+
*/
|
|
518
|
+
callReceivedAt?: unknown;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export declare namespace SimulationJob {
|
|
522
|
+
export {
|
|
523
|
+
type SimulationJobGetByIDResponse as SimulationJobGetByIDResponse,
|
|
524
|
+
type SimulationJobLookupResponse as SimulationJobLookupResponse,
|
|
525
|
+
type SimulationJobLookupParams as SimulationJobLookupParams,
|
|
526
|
+
};
|
|
527
|
+
}
|