@roarkanalytics/sdk 2.9.1 → 2.10.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.
@@ -5,7 +5,8 @@ import * as Core from '../core';
5
5
 
6
6
  export class Simulation extends APIResource {
7
7
  /**
8
- * Find a simulation job directly by its ID
8
+ * Get a individual simulation run directly by its ID. This is generally part of a
9
+ * larger simulation run plan job.
9
10
  *
10
11
  * @example
11
12
  * ```ts
@@ -19,7 +20,7 @@ export class Simulation extends APIResource {
19
20
  }
20
21
 
21
22
  /**
22
- * Find the matching simulation job using the number used by the Roark simulation
23
+ * Find the matching simulation using the number used by the Roark simulation
23
24
  * agent.
24
25
  *
25
26
  * @example
@@ -50,7 +51,7 @@ export namespace SimulationGetJobByIDResponse {
50
51
  */
51
52
  export interface Data {
52
53
  /**
53
- * Agent endpoint used in the simulation
54
+ * Agent endpoint used in a simulation
54
55
  */
55
56
  agentEndpoint: Data.AgentEndpoint;
56
57
 
@@ -59,9 +60,6 @@ export namespace SimulationGetJobByIDResponse {
59
60
  */
60
61
  createdAt: string;
61
62
 
62
- /**
63
- * Persona used in the simulation
64
- */
65
63
  persona: Data.Persona;
66
64
 
67
65
  /**
@@ -70,7 +68,7 @@ export namespace SimulationGetJobByIDResponse {
70
68
  processingStatus: string;
71
69
 
72
70
  /**
73
- * Scenario used in the simulation
71
+ * Scenario used in a simulation
74
72
  */
75
73
  scenario: Data.Scenario;
76
74
 
@@ -97,7 +95,7 @@ export namespace SimulationGetJobByIDResponse {
97
95
 
98
96
  export namespace Data {
99
97
  /**
100
- * Agent endpoint used in the simulation
98
+ * Agent endpoint used in a simulation
101
99
  */
102
100
  export interface AgentEndpoint {
103
101
  /**
@@ -121,78 +119,109 @@ export namespace SimulationGetJobByIDResponse {
121
119
  phoneNumber: string | null;
122
120
  }
123
121
 
124
- /**
125
- * Persona used in the simulation
126
- */
127
122
  export interface Persona {
128
123
  /**
129
- * Persona ID
124
+ * Unique identifier of the persona
130
125
  */
131
126
  id: string;
132
127
 
133
128
  /**
134
- * Accent of the persona
129
+ * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
130
+ * optional variants
135
131
  */
136
- accent: string;
132
+ accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
137
133
 
138
134
  /**
139
135
  * Background noise setting
140
136
  */
141
- backgroundNoise: string;
137
+ backgroundNoise:
138
+ | 'NONE'
139
+ | 'AIRPORT'
140
+ | 'CHILDREN_PLAYING'
141
+ | 'CITY'
142
+ | 'COFFEE_SHOP'
143
+ | 'DRIVING'
144
+ | 'OFFICE'
145
+ | 'THUNDERSTORM';
142
146
 
143
147
  /**
144
- * Base emotion of the persona
148
+ * Base emotional state of the persona
145
149
  */
146
- baseEmotion: string;
150
+ baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
147
151
 
148
152
  /**
149
153
  * How the persona confirms information
150
154
  */
151
- confirmationStyle: string;
155
+ confirmationStyle: 'EXPLICIT' | 'VAGUE';
152
156
 
153
157
  /**
154
- * Whether persona has speech disfluencies
158
+ * Creation timestamp
155
159
  */
156
- disfluencies: boolean;
160
+ createdAt: string;
157
161
 
158
162
  /**
159
163
  * Gender of the persona
160
164
  */
161
- gender: string;
165
+ gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
166
+
167
+ /**
168
+ * Whether the persona uses filler words like "um" and "uh"
169
+ */
170
+ hasDisfluencies: boolean;
162
171
 
163
172
  /**
164
- * How clearly the persona expresses intent
173
+ * How clearly the persona expresses their intentions
165
174
  */
166
- intentClarity: string;
175
+ intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
167
176
 
168
177
  /**
169
- * Language of the persona
178
+ * Primary language ISO 639-1 code for the persona
170
179
  */
171
- language: string;
180
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
172
181
 
173
182
  /**
174
- * Reliability of persona memory
183
+ * How reliable the persona's memory is
175
184
  */
176
- memoryReliability: string;
185
+ memoryReliability: 'HIGH' | 'LOW';
177
186
 
178
187
  /**
179
- * Persona name
188
+ * The name the agent will identify as during conversations
180
189
  */
181
190
  name: string;
182
191
 
183
192
  /**
184
- * Speech clarity
193
+ * Additional custom properties about the persona
194
+ */
195
+ properties: { [key: string]: unknown };
196
+
197
+ /**
198
+ * Speech clarity of the persona
199
+ */
200
+ speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
201
+
202
+ /**
203
+ * Speech pace of the persona
204
+ */
205
+ speechPace: 'SLOW' | 'NORMAL' | 'FAST';
206
+
207
+ /**
208
+ * Last update timestamp
209
+ */
210
+ updatedAt: string;
211
+
212
+ /**
213
+ * Background story and behavioral patterns for the persona
185
214
  */
186
- speechClarity: string;
215
+ backstoryPrompt?: string | null;
187
216
 
188
217
  /**
189
- * Speech pace
218
+ * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
190
219
  */
191
- speechPace: string;
220
+ secondaryLanguage?: 'EN' | null;
192
221
  }
193
222
 
194
223
  /**
195
- * Scenario used in the simulation
224
+ * Scenario used in a simulation
196
225
  */
197
226
  export interface Scenario {
198
227
  /**
@@ -221,7 +250,7 @@ export namespace SimulationLookupJobResponse {
221
250
  */
222
251
  export interface Data {
223
252
  /**
224
- * Agent endpoint used in the simulation
253
+ * Agent endpoint used in a simulation
225
254
  */
226
255
  agentEndpoint: Data.AgentEndpoint;
227
256
 
@@ -230,9 +259,6 @@ export namespace SimulationLookupJobResponse {
230
259
  */
231
260
  createdAt: string;
232
261
 
233
- /**
234
- * Persona used in the simulation
235
- */
236
262
  persona: Data.Persona;
237
263
 
238
264
  /**
@@ -241,7 +267,7 @@ export namespace SimulationLookupJobResponse {
241
267
  processingStatus: string;
242
268
 
243
269
  /**
244
- * Scenario used in the simulation
270
+ * Scenario used in a simulation
245
271
  */
246
272
  scenario: Data.Scenario;
247
273
 
@@ -268,7 +294,7 @@ export namespace SimulationLookupJobResponse {
268
294
 
269
295
  export namespace Data {
270
296
  /**
271
- * Agent endpoint used in the simulation
297
+ * Agent endpoint used in a simulation
272
298
  */
273
299
  export interface AgentEndpoint {
274
300
  /**
@@ -292,78 +318,109 @@ export namespace SimulationLookupJobResponse {
292
318
  phoneNumber: string | null;
293
319
  }
294
320
 
295
- /**
296
- * Persona used in the simulation
297
- */
298
321
  export interface Persona {
299
322
  /**
300
- * Persona ID
323
+ * Unique identifier of the persona
301
324
  */
302
325
  id: string;
303
326
 
304
327
  /**
305
- * Accent of the persona
328
+ * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
329
+ * optional variants
306
330
  */
307
- accent: string;
331
+ accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
308
332
 
309
333
  /**
310
334
  * Background noise setting
311
335
  */
312
- backgroundNoise: string;
336
+ backgroundNoise:
337
+ | 'NONE'
338
+ | 'AIRPORT'
339
+ | 'CHILDREN_PLAYING'
340
+ | 'CITY'
341
+ | 'COFFEE_SHOP'
342
+ | 'DRIVING'
343
+ | 'OFFICE'
344
+ | 'THUNDERSTORM';
313
345
 
314
346
  /**
315
- * Base emotion of the persona
347
+ * Base emotional state of the persona
316
348
  */
317
- baseEmotion: string;
349
+ baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
318
350
 
319
351
  /**
320
352
  * How the persona confirms information
321
353
  */
322
- confirmationStyle: string;
354
+ confirmationStyle: 'EXPLICIT' | 'VAGUE';
323
355
 
324
356
  /**
325
- * Whether persona has speech disfluencies
357
+ * Creation timestamp
326
358
  */
327
- disfluencies: boolean;
359
+ createdAt: string;
328
360
 
329
361
  /**
330
362
  * Gender of the persona
331
363
  */
332
- gender: string;
364
+ gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
365
+
366
+ /**
367
+ * Whether the persona uses filler words like "um" and "uh"
368
+ */
369
+ hasDisfluencies: boolean;
333
370
 
334
371
  /**
335
- * How clearly the persona expresses intent
372
+ * How clearly the persona expresses their intentions
336
373
  */
337
- intentClarity: string;
374
+ intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
338
375
 
339
376
  /**
340
- * Language of the persona
377
+ * Primary language ISO 639-1 code for the persona
341
378
  */
342
- language: string;
379
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
343
380
 
344
381
  /**
345
- * Reliability of persona memory
382
+ * How reliable the persona's memory is
346
383
  */
347
- memoryReliability: string;
384
+ memoryReliability: 'HIGH' | 'LOW';
348
385
 
349
386
  /**
350
- * Persona name
387
+ * The name the agent will identify as during conversations
351
388
  */
352
389
  name: string;
353
390
 
354
391
  /**
355
- * Speech clarity
392
+ * Additional custom properties about the persona
393
+ */
394
+ properties: { [key: string]: unknown };
395
+
396
+ /**
397
+ * Speech clarity of the persona
398
+ */
399
+ speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
400
+
401
+ /**
402
+ * Speech pace of the persona
403
+ */
404
+ speechPace: 'SLOW' | 'NORMAL' | 'FAST';
405
+
406
+ /**
407
+ * Last update timestamp
408
+ */
409
+ updatedAt: string;
410
+
411
+ /**
412
+ * Background story and behavioral patterns for the persona
356
413
  */
357
- speechClarity: string;
414
+ backstoryPrompt?: string | null;
358
415
 
359
416
  /**
360
- * Speech pace
417
+ * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
361
418
  */
362
- speechPace: string;
419
+ secondaryLanguage?: 'EN' | null;
363
420
  }
364
421
 
365
422
  /**
366
- * Scenario used in the simulation
423
+ * Scenario used in a simulation
367
424
  */
368
425
  export interface Scenario {
369
426
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.9.1'; // x-release-please-version
1
+ export const VERSION = '2.10.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.9.1";
1
+ export declare const VERSION = "2.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '2.9.1'; // x-release-please-version
4
+ exports.VERSION = '2.10.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.9.1'; // x-release-please-version
1
+ export const VERSION = '2.10.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}