@roarkanalytics/sdk 2.26.0 → 2.27.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/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +8 -7
- package/client.js.map +1 -1
- package/client.mjs +8 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/call.d.mts +32 -0
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +32 -0
- package/resources/call.d.ts.map +1 -1
- package/resources/metric-collection-job.d.mts +12 -0
- package/resources/metric-collection-job.d.mts.map +1 -1
- package/resources/metric-collection-job.d.ts +12 -0
- package/resources/metric-collection-job.d.ts.map +1 -1
- package/resources/metric-policy.d.mts +6 -6
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +6 -6
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +6 -6
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +6 -6
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +18 -18
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +18 -18
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +3 -3
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +3 -3
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-scenario.d.mts +76 -7
- package/resources/simulation-scenario.d.mts.map +1 -1
- package/resources/simulation-scenario.d.ts +76 -7
- package/resources/simulation-scenario.d.ts.map +1 -1
- 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/src/client.ts +11 -10
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/call.ts +35 -0
- package/src/resources/metric-collection-job.ts +15 -0
- package/src/resources/metric-policy.ts +6 -6
- package/src/resources/simulation-job.ts +54 -6
- package/src/resources/simulation-persona.ts +162 -18
- package/src/resources/simulation-run-plan-job.ts +34 -3
- package/src/resources/simulation-scenario.ts +100 -7
- package/src/resources/webhook.ts +8 -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
|
@@ -318,7 +318,14 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
318
318
|
| 'IT'
|
|
319
319
|
| 'ID'
|
|
320
320
|
| 'TH'
|
|
321
|
-
| 'JP'
|
|
321
|
+
| 'JP'
|
|
322
|
+
| 'NZ'
|
|
323
|
+
| 'PH'
|
|
324
|
+
| 'SG'
|
|
325
|
+
| 'MY'
|
|
326
|
+
| 'HK'
|
|
327
|
+
| 'TR'
|
|
328
|
+
| 'PT';
|
|
322
329
|
|
|
323
330
|
/**
|
|
324
331
|
* Background noise setting
|
|
@@ -336,7 +343,14 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
336
343
|
/**
|
|
337
344
|
* Base emotional state of the persona
|
|
338
345
|
*/
|
|
339
|
-
baseEmotion:
|
|
346
|
+
baseEmotion:
|
|
347
|
+
| 'NEUTRAL'
|
|
348
|
+
| 'CHEERFUL'
|
|
349
|
+
| 'CONFUSED'
|
|
350
|
+
| 'FRUSTRATED'
|
|
351
|
+
| 'SKEPTICAL'
|
|
352
|
+
| 'RUSHED'
|
|
353
|
+
| 'DISTRACTED';
|
|
340
354
|
|
|
341
355
|
/**
|
|
342
356
|
* How the persona confirms information
|
|
@@ -386,7 +400,24 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
386
400
|
/**
|
|
387
401
|
* Primary language ISO 639-1 code for the persona
|
|
388
402
|
*/
|
|
389
|
-
language:
|
|
403
|
+
language:
|
|
404
|
+
| 'EN'
|
|
405
|
+
| 'ES'
|
|
406
|
+
| 'DE'
|
|
407
|
+
| 'HI'
|
|
408
|
+
| 'FR'
|
|
409
|
+
| 'NL'
|
|
410
|
+
| 'AR'
|
|
411
|
+
| 'EL'
|
|
412
|
+
| 'IT'
|
|
413
|
+
| 'ID'
|
|
414
|
+
| 'TH'
|
|
415
|
+
| 'JA'
|
|
416
|
+
| 'TL'
|
|
417
|
+
| 'MS'
|
|
418
|
+
| 'ZH'
|
|
419
|
+
| 'TR'
|
|
420
|
+
| 'PT';
|
|
390
421
|
|
|
391
422
|
/**
|
|
392
423
|
* How reliable the persona's memory is
|
|
@@ -111,13 +111,24 @@ export namespace SimulationScenarioCreateResponse {
|
|
|
111
111
|
| 'CUSTOMER_FIRST_MESSAGE'
|
|
112
112
|
| 'CUSTOMER_SILENCE'
|
|
113
113
|
| 'CUSTOMER_DTMF'
|
|
114
|
-
| 'VOICEMAIL'
|
|
114
|
+
| 'VOICEMAIL'
|
|
115
|
+
| 'SCENARIO_LINK';
|
|
115
116
|
|
|
116
117
|
/**
|
|
117
118
|
* DTMF digits to send during this step (e.g. 1w2w3#). Valid characters: 0-9, \*,
|
|
118
119
|
* #, w/W for pauses.
|
|
119
120
|
*/
|
|
120
121
|
dtmfDigits?: string | null;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* ID of the linked scenario (only for SCENARIO_LINK type steps)
|
|
125
|
+
*/
|
|
126
|
+
linkedScenarioId?: string | null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Duration of silence in seconds (only for CUSTOMER_SILENCE type steps)
|
|
130
|
+
*/
|
|
131
|
+
silenceDurationSeconds?: number | null;
|
|
121
132
|
}
|
|
122
133
|
}
|
|
123
134
|
}
|
|
@@ -181,13 +192,24 @@ export namespace SimulationScenarioUpdateResponse {
|
|
|
181
192
|
| 'CUSTOMER_FIRST_MESSAGE'
|
|
182
193
|
| 'CUSTOMER_SILENCE'
|
|
183
194
|
| 'CUSTOMER_DTMF'
|
|
184
|
-
| 'VOICEMAIL'
|
|
195
|
+
| 'VOICEMAIL'
|
|
196
|
+
| 'SCENARIO_LINK';
|
|
185
197
|
|
|
186
198
|
/**
|
|
187
199
|
* DTMF digits to send during this step (e.g. 1w2w3#). Valid characters: 0-9, \*,
|
|
188
200
|
* #, w/W for pauses.
|
|
189
201
|
*/
|
|
190
202
|
dtmfDigits?: string | null;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* ID of the linked scenario (only for SCENARIO_LINK type steps)
|
|
206
|
+
*/
|
|
207
|
+
linkedScenarioId?: string | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Duration of silence in seconds (only for CUSTOMER_SILENCE type steps)
|
|
211
|
+
*/
|
|
212
|
+
silenceDurationSeconds?: number | null;
|
|
191
213
|
}
|
|
192
214
|
}
|
|
193
215
|
}
|
|
@@ -253,13 +275,24 @@ export namespace SimulationScenarioListResponse {
|
|
|
253
275
|
| 'CUSTOMER_FIRST_MESSAGE'
|
|
254
276
|
| 'CUSTOMER_SILENCE'
|
|
255
277
|
| 'CUSTOMER_DTMF'
|
|
256
|
-
| 'VOICEMAIL'
|
|
278
|
+
| 'VOICEMAIL'
|
|
279
|
+
| 'SCENARIO_LINK';
|
|
257
280
|
|
|
258
281
|
/**
|
|
259
282
|
* DTMF digits to send during this step (e.g. 1w2w3#). Valid characters: 0-9, \*,
|
|
260
283
|
* #, w/W for pauses.
|
|
261
284
|
*/
|
|
262
285
|
dtmfDigits?: string | null;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* ID of the linked scenario (only for SCENARIO_LINK type steps)
|
|
289
|
+
*/
|
|
290
|
+
linkedScenarioId?: string | null;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Duration of silence in seconds (only for CUSTOMER_SILENCE type steps)
|
|
294
|
+
*/
|
|
295
|
+
silenceDurationSeconds?: number | null;
|
|
263
296
|
}
|
|
264
297
|
}
|
|
265
298
|
|
|
@@ -353,13 +386,24 @@ export namespace SimulationScenarioGetByIDResponse {
|
|
|
353
386
|
| 'CUSTOMER_FIRST_MESSAGE'
|
|
354
387
|
| 'CUSTOMER_SILENCE'
|
|
355
388
|
| 'CUSTOMER_DTMF'
|
|
356
|
-
| 'VOICEMAIL'
|
|
389
|
+
| 'VOICEMAIL'
|
|
390
|
+
| 'SCENARIO_LINK';
|
|
357
391
|
|
|
358
392
|
/**
|
|
359
393
|
* DTMF digits to send during this step (e.g. 1w2w3#). Valid characters: 0-9, \*,
|
|
360
394
|
* #, w/W for pauses.
|
|
361
395
|
*/
|
|
362
396
|
dtmfDigits?: string | null;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* ID of the linked scenario (only for SCENARIO_LINK type steps)
|
|
400
|
+
*/
|
|
401
|
+
linkedScenarioId?: string | null;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Duration of silence in seconds (only for CUSTOMER_SILENCE type steps)
|
|
405
|
+
*/
|
|
406
|
+
silenceDurationSeconds?: number | null;
|
|
363
407
|
}
|
|
364
408
|
}
|
|
365
409
|
}
|
|
@@ -395,7 +439,24 @@ export namespace SimulationScenarioCreateParams {
|
|
|
395
439
|
| 'CUSTOMER_FIRST_MESSAGE'
|
|
396
440
|
| 'CUSTOMER_SILENCE'
|
|
397
441
|
| 'CUSTOMER_DTMF'
|
|
398
|
-
| 'VOICEMAIL'
|
|
442
|
+
| 'VOICEMAIL'
|
|
443
|
+
| 'SCENARIO_LINK';
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* DTMF digits to send (for CUSTOMER_DTMF type steps, e.g. 1w2w3#). Valid
|
|
447
|
+
* characters: 0-9, \*, #, w/W for pauses.
|
|
448
|
+
*/
|
|
449
|
+
dtmfDigits?: string;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* ID of the scenario to link to (required for SCENARIO_LINK type steps)
|
|
453
|
+
*/
|
|
454
|
+
linkedScenarioId?: string;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Duration of silence in seconds (for CUSTOMER_SILENCE type steps)
|
|
458
|
+
*/
|
|
459
|
+
silenceDurationSeconds?: number;
|
|
399
460
|
}
|
|
400
461
|
}
|
|
401
462
|
|
|
@@ -439,7 +500,23 @@ export namespace SimulationScenarioUpdateParams {
|
|
|
439
500
|
| 'CUSTOMER_FIRST_MESSAGE'
|
|
440
501
|
| 'CUSTOMER_SILENCE'
|
|
441
502
|
| 'CUSTOMER_DTMF'
|
|
442
|
-
| 'VOICEMAIL'
|
|
503
|
+
| 'VOICEMAIL'
|
|
504
|
+
| 'SCENARIO_LINK';
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* DTMF digits to send (for CUSTOMER_DTMF type steps)
|
|
508
|
+
*/
|
|
509
|
+
dtmfDigits?: string;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* ID of the scenario to link to (for SCENARIO_LINK type steps)
|
|
513
|
+
*/
|
|
514
|
+
linkedScenarioId?: string;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Duration of silence in seconds (for CUSTOMER_SILENCE type steps)
|
|
518
|
+
*/
|
|
519
|
+
silenceDurationSeconds?: number;
|
|
443
520
|
}
|
|
444
521
|
|
|
445
522
|
/**
|
|
@@ -461,6 +538,21 @@ export namespace SimulationScenarioUpdateParams {
|
|
|
461
538
|
*/
|
|
462
539
|
content?: string;
|
|
463
540
|
|
|
541
|
+
/**
|
|
542
|
+
* DTMF digits to send (for CUSTOMER_DTMF type steps)
|
|
543
|
+
*/
|
|
544
|
+
dtmfDigits?: string;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* ID of the scenario to link to (for SCENARIO_LINK type steps)
|
|
548
|
+
*/
|
|
549
|
+
linkedScenarioId?: string;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Duration of silence in seconds (for CUSTOMER_SILENCE type steps)
|
|
553
|
+
*/
|
|
554
|
+
silenceDurationSeconds?: number;
|
|
555
|
+
|
|
464
556
|
/**
|
|
465
557
|
* The new type of the step (optional)
|
|
466
558
|
*/
|
|
@@ -470,7 +562,8 @@ export namespace SimulationScenarioUpdateParams {
|
|
|
470
562
|
| 'CUSTOMER_FIRST_MESSAGE'
|
|
471
563
|
| 'CUSTOMER_SILENCE'
|
|
472
564
|
| 'CUSTOMER_DTMF'
|
|
473
|
-
| 'VOICEMAIL'
|
|
565
|
+
| 'VOICEMAIL'
|
|
566
|
+
| 'SCENARIO_LINK';
|
|
474
567
|
}
|
|
475
568
|
|
|
476
569
|
/**
|
package/src/resources/webhook.ts
CHANGED
|
@@ -83,6 +83,8 @@ export namespace WebhookCreateResponse {
|
|
|
83
83
|
| 'SIMULATION_JOB_COMPLETED'
|
|
84
84
|
| 'SIMULATION_JOB_FAILED'
|
|
85
85
|
| 'SIMULATION_JOB_CANCELLED'
|
|
86
|
+
| 'METRIC_COLLECTION_JOB_COMPLETED'
|
|
87
|
+
| 'METRIC_COLLECTION_JOB_FAILED'
|
|
86
88
|
>;
|
|
87
89
|
|
|
88
90
|
/**
|
|
@@ -150,6 +152,8 @@ export namespace WebhookListResponse {
|
|
|
150
152
|
| 'SIMULATION_JOB_COMPLETED'
|
|
151
153
|
| 'SIMULATION_JOB_FAILED'
|
|
152
154
|
| 'SIMULATION_JOB_CANCELLED'
|
|
155
|
+
| 'METRIC_COLLECTION_JOB_COMPLETED'
|
|
156
|
+
| 'METRIC_COLLECTION_JOB_FAILED'
|
|
153
157
|
>;
|
|
154
158
|
|
|
155
159
|
/**
|
|
@@ -243,6 +247,8 @@ export namespace WebhookGetByIDResponse {
|
|
|
243
247
|
| 'SIMULATION_JOB_COMPLETED'
|
|
244
248
|
| 'SIMULATION_JOB_FAILED'
|
|
245
249
|
| 'SIMULATION_JOB_CANCELLED'
|
|
250
|
+
| 'METRIC_COLLECTION_JOB_COMPLETED'
|
|
251
|
+
| 'METRIC_COLLECTION_JOB_FAILED'
|
|
246
252
|
>;
|
|
247
253
|
|
|
248
254
|
/**
|
|
@@ -280,6 +286,8 @@ export interface WebhookCreateParams {
|
|
|
280
286
|
| 'SIMULATION_JOB_COMPLETED'
|
|
281
287
|
| 'SIMULATION_JOB_FAILED'
|
|
282
288
|
| 'SIMULATION_JOB_CANCELLED'
|
|
289
|
+
| 'METRIC_COLLECTION_JOB_COMPLETED'
|
|
290
|
+
| 'METRIC_COLLECTION_JOB_FAILED'
|
|
283
291
|
>;
|
|
284
292
|
|
|
285
293
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.27.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.27.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.27.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.27.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|