@roarkanalytics/sdk 2.25.0 → 2.26.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 +17 -0
- package/package.json +1 -1
- package/resources/simulation-job.d.mts +32 -0
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +32 -0
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +96 -0
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +96 -0
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +23 -6
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +23 -6
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +31 -1
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +31 -1
- package/resources/simulation-run-plan.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/resources/simulation-job.ts +40 -0
- package/src/resources/simulation-persona.ts +120 -0
- package/src/resources/simulation-run-plan-job.ts +31 -5
- package/src/resources/simulation-run-plan.ts +38 -1
- package/src/resources/webhook.ts +4 -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
|
@@ -145,6 +145,26 @@ export namespace SimulationPersonaCreateResponse {
|
|
|
145
145
|
*/
|
|
146
146
|
hasDisfluencies: boolean;
|
|
147
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
150
|
+
*/
|
|
151
|
+
idleMessageMaxSpokenCount: number;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Whether the idle message counter resets when the agent speaks
|
|
155
|
+
*/
|
|
156
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
160
|
+
*/
|
|
161
|
+
idleMessages: Array<string>;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Seconds of silence before the persona sends an idle message
|
|
165
|
+
*/
|
|
166
|
+
idleTimeoutSeconds: number;
|
|
167
|
+
|
|
148
168
|
/**
|
|
149
169
|
* How clearly the persona expresses their intentions
|
|
150
170
|
*/
|
|
@@ -278,6 +298,26 @@ export namespace SimulationPersonaUpdateResponse {
|
|
|
278
298
|
*/
|
|
279
299
|
hasDisfluencies: boolean;
|
|
280
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
303
|
+
*/
|
|
304
|
+
idleMessageMaxSpokenCount: number;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Whether the idle message counter resets when the agent speaks
|
|
308
|
+
*/
|
|
309
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
313
|
+
*/
|
|
314
|
+
idleMessages: Array<string>;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Seconds of silence before the persona sends an idle message
|
|
318
|
+
*/
|
|
319
|
+
idleTimeoutSeconds: number;
|
|
320
|
+
|
|
281
321
|
/**
|
|
282
322
|
* How clearly the persona expresses their intentions
|
|
283
323
|
*/
|
|
@@ -413,6 +453,26 @@ export namespace SimulationPersonaListResponse {
|
|
|
413
453
|
*/
|
|
414
454
|
hasDisfluencies: boolean;
|
|
415
455
|
|
|
456
|
+
/**
|
|
457
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
458
|
+
*/
|
|
459
|
+
idleMessageMaxSpokenCount: number;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Whether the idle message counter resets when the agent speaks
|
|
463
|
+
*/
|
|
464
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
468
|
+
*/
|
|
469
|
+
idleMessages: Array<string>;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Seconds of silence before the persona sends an idle message
|
|
473
|
+
*/
|
|
474
|
+
idleTimeoutSeconds: number;
|
|
475
|
+
|
|
416
476
|
/**
|
|
417
477
|
* How clearly the persona expresses their intentions
|
|
418
478
|
*/
|
|
@@ -563,6 +623,26 @@ export namespace SimulationPersonaGetByIDResponse {
|
|
|
563
623
|
*/
|
|
564
624
|
hasDisfluencies: boolean;
|
|
565
625
|
|
|
626
|
+
/**
|
|
627
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
628
|
+
*/
|
|
629
|
+
idleMessageMaxSpokenCount: number;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Whether the idle message counter resets when the agent speaks
|
|
633
|
+
*/
|
|
634
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
638
|
+
*/
|
|
639
|
+
idleMessages: Array<string>;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Seconds of silence before the persona sends an idle message
|
|
643
|
+
*/
|
|
644
|
+
idleTimeoutSeconds: number;
|
|
645
|
+
|
|
566
646
|
/**
|
|
567
647
|
* How clearly the persona expresses their intentions
|
|
568
648
|
*/
|
|
@@ -701,6 +781,26 @@ export interface SimulationPersonaCreateParams {
|
|
|
701
781
|
*/
|
|
702
782
|
hasDisfluencies?: boolean;
|
|
703
783
|
|
|
784
|
+
/**
|
|
785
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
786
|
+
*/
|
|
787
|
+
idleMessageMaxSpokenCount?: number;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Whether the idle message counter resets when the agent speaks
|
|
791
|
+
*/
|
|
792
|
+
idleMessageResetCountOnUserSpeechEnabled?: boolean;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
796
|
+
*/
|
|
797
|
+
idleMessages?: Array<string>;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Seconds of silence before the persona sends an idle message
|
|
801
|
+
*/
|
|
802
|
+
idleTimeoutSeconds?: number;
|
|
803
|
+
|
|
704
804
|
/**
|
|
705
805
|
* How clearly the persona expresses their intentions
|
|
706
806
|
*/
|
|
@@ -803,6 +903,26 @@ export interface SimulationPersonaUpdateParams {
|
|
|
803
903
|
*/
|
|
804
904
|
hasDisfluencies?: boolean;
|
|
805
905
|
|
|
906
|
+
/**
|
|
907
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
908
|
+
*/
|
|
909
|
+
idleMessageMaxSpokenCount?: number;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Whether the idle message counter resets when the agent speaks
|
|
913
|
+
*/
|
|
914
|
+
idleMessageResetCountOnUserSpeechEnabled?: boolean;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
918
|
+
*/
|
|
919
|
+
idleMessages?: Array<string>;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Seconds of silence before the persona sends an idle message
|
|
923
|
+
*/
|
|
924
|
+
idleTimeoutSeconds?: number;
|
|
925
|
+
|
|
806
926
|
/**
|
|
807
927
|
* How clearly the persona expresses their intentions
|
|
808
928
|
*/
|
|
@@ -97,7 +97,8 @@ export namespace SimulationRunPlanJobListResponse {
|
|
|
97
97
|
| 'FAILED'
|
|
98
98
|
| 'TIMED_OUT'
|
|
99
99
|
| 'CANCELLED'
|
|
100
|
-
| 'CANCELLING'
|
|
100
|
+
| 'CANCELLING'
|
|
101
|
+
| 'ENDING_SIMULATIONS';
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
104
|
* How the job was triggered (SCHEDULED, USER_TRIGGERED_FROM_UI,
|
|
@@ -179,7 +180,8 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
179
180
|
| 'FAILED'
|
|
180
181
|
| 'TIMED_OUT'
|
|
181
182
|
| 'CANCELLED'
|
|
182
|
-
| 'CANCELLING'
|
|
183
|
+
| 'CANCELLING'
|
|
184
|
+
| 'ENDING_SIMULATIONS';
|
|
183
185
|
|
|
184
186
|
/**
|
|
185
187
|
* When the job ended
|
|
@@ -213,6 +215,7 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
213
215
|
| 'CONNECTING'
|
|
214
216
|
| 'WAITING_FOR_OUTBOUND_CALL'
|
|
215
217
|
| 'SIMULATING'
|
|
218
|
+
| 'ENDING'
|
|
216
219
|
| 'ANALYZING'
|
|
217
220
|
| 'EVALUATING'
|
|
218
221
|
| 'COLLECTING_METRICS'
|
|
@@ -355,6 +358,26 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
355
358
|
*/
|
|
356
359
|
hasDisfluencies: boolean;
|
|
357
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
363
|
+
*/
|
|
364
|
+
idleMessageMaxSpokenCount: number;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Whether the idle message counter resets when the agent speaks
|
|
368
|
+
*/
|
|
369
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
373
|
+
*/
|
|
374
|
+
idleMessages: Array<string>;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Seconds of silence before the persona sends an idle message
|
|
378
|
+
*/
|
|
379
|
+
idleTimeoutSeconds: number;
|
|
380
|
+
|
|
358
381
|
/**
|
|
359
382
|
* How clearly the persona expresses their intentions
|
|
360
383
|
*/
|
|
@@ -475,7 +498,8 @@ export namespace SimulationRunPlanJobStartResponse {
|
|
|
475
498
|
| 'FAILED'
|
|
476
499
|
| 'TIMED_OUT'
|
|
477
500
|
| 'CANCELLED'
|
|
478
|
-
| 'CANCELLING'
|
|
501
|
+
| 'CANCELLING'
|
|
502
|
+
| 'ENDING_SIMULATIONS';
|
|
479
503
|
}
|
|
480
504
|
}
|
|
481
505
|
|
|
@@ -508,7 +532,8 @@ export interface SimulationRunPlanJobListParams {
|
|
|
508
532
|
|
|
509
533
|
/**
|
|
510
534
|
* Filter by plan job status (PENDING, CREATING_SNAPSHOTS, CREATING_SIMULATIONS,
|
|
511
|
-
* RUNNING_SIMULATIONS, COMPLETED, FAILED, TIMED_OUT,
|
|
535
|
+
* RUNNING_SIMULATIONS, ENDING_SIMULATIONS, COMPLETED, FAILED, TIMED_OUT,
|
|
536
|
+
* CANCELLED, CANCELLING)
|
|
512
537
|
*/
|
|
513
538
|
status?:
|
|
514
539
|
| 'PENDING'
|
|
@@ -520,7 +545,8 @@ export interface SimulationRunPlanJobListParams {
|
|
|
520
545
|
| 'FAILED'
|
|
521
546
|
| 'TIMED_OUT'
|
|
522
547
|
| 'CANCELLED'
|
|
523
|
-
| 'CANCELLING'
|
|
548
|
+
| 'CANCELLING'
|
|
549
|
+
| 'ENDING_SIMULATIONS';
|
|
524
550
|
}
|
|
525
551
|
|
|
526
552
|
export interface SimulationRunPlanJobStartParams {
|
|
@@ -158,6 +158,12 @@ export namespace SimulationRunPlanCreateResponse {
|
|
|
158
158
|
*/
|
|
159
159
|
endCallPhrases: Array<string>;
|
|
160
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
163
|
+
* against these conditions. Empty array means disabled.
|
|
164
|
+
*/
|
|
165
|
+
endCallReasons: Array<string>;
|
|
166
|
+
|
|
161
167
|
/**
|
|
162
168
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
163
169
|
*/
|
|
@@ -278,7 +284,8 @@ export namespace SimulationRunPlanCreateResponse {
|
|
|
278
284
|
| 'FAILED'
|
|
279
285
|
| 'TIMED_OUT'
|
|
280
286
|
| 'CANCELLED'
|
|
281
|
-
| 'CANCELLING'
|
|
287
|
+
| 'CANCELLING'
|
|
288
|
+
| 'ENDING_SIMULATIONS';
|
|
282
289
|
}
|
|
283
290
|
}
|
|
284
291
|
}
|
|
@@ -320,6 +327,12 @@ export namespace SimulationRunPlanUpdateResponse {
|
|
|
320
327
|
*/
|
|
321
328
|
endCallPhrases: Array<string>;
|
|
322
329
|
|
|
330
|
+
/**
|
|
331
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
332
|
+
* against these conditions. Empty array means disabled.
|
|
333
|
+
*/
|
|
334
|
+
endCallReasons: Array<string>;
|
|
335
|
+
|
|
323
336
|
/**
|
|
324
337
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
325
338
|
*/
|
|
@@ -448,6 +461,12 @@ export namespace SimulationRunPlanListResponse {
|
|
|
448
461
|
*/
|
|
449
462
|
endCallPhrases: Array<string>;
|
|
450
463
|
|
|
464
|
+
/**
|
|
465
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
466
|
+
* against these conditions. Empty array means disabled.
|
|
467
|
+
*/
|
|
468
|
+
endCallReasons: Array<string>;
|
|
469
|
+
|
|
451
470
|
/**
|
|
452
471
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
453
472
|
*/
|
|
@@ -604,6 +623,12 @@ export namespace SimulationRunPlanGetByIDResponse {
|
|
|
604
623
|
*/
|
|
605
624
|
endCallPhrases: Array<string>;
|
|
606
625
|
|
|
626
|
+
/**
|
|
627
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
628
|
+
* against these conditions. Empty array means disabled.
|
|
629
|
+
*/
|
|
630
|
+
endCallReasons: Array<string>;
|
|
631
|
+
|
|
607
632
|
/**
|
|
608
633
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
609
634
|
*/
|
|
@@ -745,6 +770,12 @@ export interface SimulationRunPlanCreateParams {
|
|
|
745
770
|
*/
|
|
746
771
|
endCallPhrases?: Array<string>;
|
|
747
772
|
|
|
773
|
+
/**
|
|
774
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
775
|
+
* against these conditions. Empty array disables the feature.
|
|
776
|
+
*/
|
|
777
|
+
endCallReasons?: Array<string>;
|
|
778
|
+
|
|
748
779
|
/**
|
|
749
780
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
750
781
|
*/
|
|
@@ -815,6 +846,12 @@ export interface SimulationRunPlanUpdateParams {
|
|
|
815
846
|
*/
|
|
816
847
|
endCallPhrases?: Array<string>;
|
|
817
848
|
|
|
849
|
+
/**
|
|
850
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
851
|
+
* against these conditions. Empty array disables the feature.
|
|
852
|
+
*/
|
|
853
|
+
endCallReasons?: Array<string>;
|
|
854
|
+
|
|
818
855
|
/**
|
|
819
856
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
820
857
|
*/
|
package/src/resources/webhook.ts
CHANGED
|
@@ -72,6 +72,7 @@ export namespace WebhookCreateResponse {
|
|
|
72
72
|
events: Array<
|
|
73
73
|
| 'CALL_ANALYSIS_COMPLETED'
|
|
74
74
|
| 'CALL_ANALYSIS_FAILED'
|
|
75
|
+
| 'CALL_ANALYSIS_CANCELLED'
|
|
75
76
|
| 'CALL_EVALUATION_COMPLETED'
|
|
76
77
|
| 'CALL_EVALUATION_FAILED'
|
|
77
78
|
| 'SIMULATION_RUN_PLAN_JOB_STARTED'
|
|
@@ -138,6 +139,7 @@ export namespace WebhookListResponse {
|
|
|
138
139
|
events: Array<
|
|
139
140
|
| 'CALL_ANALYSIS_COMPLETED'
|
|
140
141
|
| 'CALL_ANALYSIS_FAILED'
|
|
142
|
+
| 'CALL_ANALYSIS_CANCELLED'
|
|
141
143
|
| 'CALL_EVALUATION_COMPLETED'
|
|
142
144
|
| 'CALL_EVALUATION_FAILED'
|
|
143
145
|
| 'SIMULATION_RUN_PLAN_JOB_STARTED'
|
|
@@ -230,6 +232,7 @@ export namespace WebhookGetByIDResponse {
|
|
|
230
232
|
events: Array<
|
|
231
233
|
| 'CALL_ANALYSIS_COMPLETED'
|
|
232
234
|
| 'CALL_ANALYSIS_FAILED'
|
|
235
|
+
| 'CALL_ANALYSIS_CANCELLED'
|
|
233
236
|
| 'CALL_EVALUATION_COMPLETED'
|
|
234
237
|
| 'CALL_EVALUATION_FAILED'
|
|
235
238
|
| 'SIMULATION_RUN_PLAN_JOB_STARTED'
|
|
@@ -266,6 +269,7 @@ export interface WebhookCreateParams {
|
|
|
266
269
|
events: Array<
|
|
267
270
|
| 'CALL_ANALYSIS_COMPLETED'
|
|
268
271
|
| 'CALL_ANALYSIS_FAILED'
|
|
272
|
+
| 'CALL_ANALYSIS_CANCELLED'
|
|
269
273
|
| 'CALL_EVALUATION_COMPLETED'
|
|
270
274
|
| 'CALL_EVALUATION_FAILED'
|
|
271
275
|
| 'SIMULATION_RUN_PLAN_JOB_STARTED'
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.26.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.26.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.26.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.26.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|