@roarkanalytics/sdk 2.25.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.d.ts.map +1 -1
  6. package/client.js +8 -7
  7. package/client.js.map +1 -1
  8. package/client.mjs +8 -7
  9. package/client.mjs.map +1 -1
  10. package/internal/tslib.js +17 -17
  11. package/internal/utils/query.d.mts +2 -0
  12. package/internal/utils/query.d.mts.map +1 -0
  13. package/internal/utils/query.d.ts +2 -0
  14. package/internal/utils/query.d.ts.map +1 -0
  15. package/internal/utils/query.js +10 -0
  16. package/internal/utils/query.js.map +1 -0
  17. package/internal/utils/query.mjs +6 -0
  18. package/internal/utils/query.mjs.map +1 -0
  19. package/internal/utils.d.mts +1 -0
  20. package/internal/utils.d.ts +1 -0
  21. package/internal/utils.js +1 -0
  22. package/internal/utils.js.map +1 -1
  23. package/internal/utils.mjs +1 -0
  24. package/package.json +7 -1
  25. package/resources/call.d.mts +32 -0
  26. package/resources/call.d.mts.map +1 -1
  27. package/resources/call.d.ts +32 -0
  28. package/resources/call.d.ts.map +1 -1
  29. package/resources/metric-collection-job.d.mts +12 -0
  30. package/resources/metric-collection-job.d.mts.map +1 -1
  31. package/resources/metric-collection-job.d.ts +12 -0
  32. package/resources/metric-collection-job.d.ts.map +1 -1
  33. package/resources/metric-policy.d.mts +6 -6
  34. package/resources/metric-policy.d.mts.map +1 -1
  35. package/resources/metric-policy.d.ts +6 -6
  36. package/resources/metric-policy.d.ts.map +1 -1
  37. package/resources/simulation-job.d.mts +38 -6
  38. package/resources/simulation-job.d.mts.map +1 -1
  39. package/resources/simulation-job.d.ts +38 -6
  40. package/resources/simulation-job.d.ts.map +1 -1
  41. package/resources/simulation-persona.d.mts +114 -18
  42. package/resources/simulation-persona.d.mts.map +1 -1
  43. package/resources/simulation-persona.d.ts +114 -18
  44. package/resources/simulation-persona.d.ts.map +1 -1
  45. package/resources/simulation-run-plan-job.d.mts +26 -9
  46. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  47. package/resources/simulation-run-plan-job.d.ts +26 -9
  48. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  49. package/resources/simulation-run-plan.d.mts +31 -1
  50. package/resources/simulation-run-plan.d.mts.map +1 -1
  51. package/resources/simulation-run-plan.d.ts +31 -1
  52. package/resources/simulation-run-plan.d.ts.map +1 -1
  53. package/resources/simulation-scenario.d.mts +76 -7
  54. package/resources/simulation-scenario.d.mts.map +1 -1
  55. package/resources/simulation-scenario.d.ts +76 -7
  56. package/resources/simulation-scenario.d.ts.map +1 -1
  57. package/resources/webhook.d.mts +4 -4
  58. package/resources/webhook.d.mts.map +1 -1
  59. package/resources/webhook.d.ts +4 -4
  60. package/resources/webhook.d.ts.map +1 -1
  61. package/src/client.ts +11 -10
  62. package/src/internal/utils/query.ts +7 -0
  63. package/src/internal/utils.ts +1 -0
  64. package/src/resources/call.ts +35 -0
  65. package/src/resources/metric-collection-job.ts +15 -0
  66. package/src/resources/metric-policy.ts +6 -6
  67. package/src/resources/simulation-job.ts +94 -6
  68. package/src/resources/simulation-persona.ts +282 -18
  69. package/src/resources/simulation-run-plan-job.ts +65 -8
  70. package/src/resources/simulation-run-plan.ts +38 -1
  71. package/src/resources/simulation-scenario.ts +100 -7
  72. package/src/resources/webhook.ts +12 -0
  73. package/src/version.ts +1 -1
  74. package/version.d.mts +1 -1
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
  77. package/version.mjs +1 -1
@@ -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
  /**
@@ -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'
@@ -82,6 +83,8 @@ export namespace WebhookCreateResponse {
82
83
  | 'SIMULATION_JOB_COMPLETED'
83
84
  | 'SIMULATION_JOB_FAILED'
84
85
  | 'SIMULATION_JOB_CANCELLED'
86
+ | 'METRIC_COLLECTION_JOB_COMPLETED'
87
+ | 'METRIC_COLLECTION_JOB_FAILED'
85
88
  >;
86
89
 
87
90
  /**
@@ -138,6 +141,7 @@ export namespace WebhookListResponse {
138
141
  events: Array<
139
142
  | 'CALL_ANALYSIS_COMPLETED'
140
143
  | 'CALL_ANALYSIS_FAILED'
144
+ | 'CALL_ANALYSIS_CANCELLED'
141
145
  | 'CALL_EVALUATION_COMPLETED'
142
146
  | 'CALL_EVALUATION_FAILED'
143
147
  | 'SIMULATION_RUN_PLAN_JOB_STARTED'
@@ -148,6 +152,8 @@ export namespace WebhookListResponse {
148
152
  | 'SIMULATION_JOB_COMPLETED'
149
153
  | 'SIMULATION_JOB_FAILED'
150
154
  | 'SIMULATION_JOB_CANCELLED'
155
+ | 'METRIC_COLLECTION_JOB_COMPLETED'
156
+ | 'METRIC_COLLECTION_JOB_FAILED'
151
157
  >;
152
158
 
153
159
  /**
@@ -230,6 +236,7 @@ export namespace WebhookGetByIDResponse {
230
236
  events: Array<
231
237
  | 'CALL_ANALYSIS_COMPLETED'
232
238
  | 'CALL_ANALYSIS_FAILED'
239
+ | 'CALL_ANALYSIS_CANCELLED'
233
240
  | 'CALL_EVALUATION_COMPLETED'
234
241
  | 'CALL_EVALUATION_FAILED'
235
242
  | 'SIMULATION_RUN_PLAN_JOB_STARTED'
@@ -240,6 +247,8 @@ export namespace WebhookGetByIDResponse {
240
247
  | 'SIMULATION_JOB_COMPLETED'
241
248
  | 'SIMULATION_JOB_FAILED'
242
249
  | 'SIMULATION_JOB_CANCELLED'
250
+ | 'METRIC_COLLECTION_JOB_COMPLETED'
251
+ | 'METRIC_COLLECTION_JOB_FAILED'
243
252
  >;
244
253
 
245
254
  /**
@@ -266,6 +275,7 @@ export interface WebhookCreateParams {
266
275
  events: Array<
267
276
  | 'CALL_ANALYSIS_COMPLETED'
268
277
  | 'CALL_ANALYSIS_FAILED'
278
+ | 'CALL_ANALYSIS_CANCELLED'
269
279
  | 'CALL_EVALUATION_COMPLETED'
270
280
  | 'CALL_EVALUATION_FAILED'
271
281
  | 'SIMULATION_RUN_PLAN_JOB_STARTED'
@@ -276,6 +286,8 @@ export interface WebhookCreateParams {
276
286
  | 'SIMULATION_JOB_COMPLETED'
277
287
  | 'SIMULATION_JOB_FAILED'
278
288
  | 'SIMULATION_JOB_CANCELLED'
289
+ | 'METRIC_COLLECTION_JOB_COMPLETED'
290
+ | 'METRIC_COLLECTION_JOB_FAILED'
279
291
  >;
280
292
 
281
293
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.25.0'; // x-release-please-version
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.25.0";
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.25.0";
1
+ export declare const VERSION = "2.27.0";
2
2
  //# sourceMappingURL=version.d.ts.map
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.25.0'; // x-release-please-version
4
+ exports.VERSION = '2.27.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.25.0'; // x-release-please-version
1
+ export const VERSION = '2.27.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map