@roarkanalytics/sdk 3.14.0 → 3.16.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 (37) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
  3. package/resources/config.d.mts +47 -6
  4. package/resources/config.d.mts.map +1 -1
  5. package/resources/config.d.ts +47 -6
  6. package/resources/config.d.ts.map +1 -1
  7. package/resources/customer-flow-edge-case.d.mts +384 -3
  8. package/resources/customer-flow-edge-case.d.mts.map +1 -1
  9. package/resources/customer-flow-edge-case.d.ts +384 -3
  10. package/resources/customer-flow-edge-case.d.ts.map +1 -1
  11. package/resources/customer-flow.d.mts +1576 -39
  12. package/resources/customer-flow.d.mts.map +1 -1
  13. package/resources/customer-flow.d.ts +1576 -39
  14. package/resources/customer-flow.d.ts.map +1 -1
  15. package/resources/http-request-definition.d.mts +24 -0
  16. package/resources/http-request-definition.d.mts.map +1 -1
  17. package/resources/http-request-definition.d.ts +24 -0
  18. package/resources/http-request-definition.d.ts.map +1 -1
  19. package/resources/simulation-run-plan.d.mts +44 -0
  20. package/resources/simulation-run-plan.d.mts.map +1 -1
  21. package/resources/simulation-run-plan.d.ts +44 -0
  22. package/resources/simulation-run-plan.d.ts.map +1 -1
  23. package/resources/simulation.d.mts +14 -0
  24. package/resources/simulation.d.mts.map +1 -1
  25. package/resources/simulation.d.ts +14 -0
  26. package/resources/simulation.d.ts.map +1 -1
  27. package/src/resources/config.ts +87 -3
  28. package/src/resources/customer-flow-edge-case.ts +909 -204
  29. package/src/resources/customer-flow.ts +4334 -1494
  30. package/src/resources/http-request-definition.ts +28 -0
  31. package/src/resources/simulation-run-plan.ts +50 -0
  32. package/src/resources/simulation.ts +15 -0
  33. package/src/version.ts +1 -1
  34. package/version.d.mts +1 -1
  35. package/version.d.ts +1 -1
  36. package/version.js +1 -1
  37. package/version.mjs +1 -1
@@ -44,6 +44,7 @@ export class Config extends APIResource {
44
44
  export interface Bundle {
45
45
  resources: Array<
46
46
  | Bundle.AgentConfig
47
+ | Bundle.HTTPRequestDefinitionConfig
47
48
  | Bundle.PersonaConfig
48
49
  | Bundle.ImprovFlowConfig
49
50
  | Bundle.ScriptedFlowConfig
@@ -81,10 +82,30 @@ export namespace Bundle {
81
82
 
82
83
  environment?: string;
83
84
 
85
+ outboundDialHttpRequestDefinition?: string;
86
+
87
+ outboundDialType?: 'NONE' | 'HTTP_REQUEST';
88
+
84
89
  type?: 'PHONE' | 'WEBSOCKET';
85
90
  }
86
91
  }
87
92
 
93
+ export interface HTTPRequestDefinitionConfig {
94
+ kind: 'httpRequestDefinition';
95
+
96
+ name: string;
97
+
98
+ url: string;
99
+
100
+ body?: string;
101
+
102
+ description?: string | null;
103
+
104
+ headers?: { [key: string]: string };
105
+
106
+ method?: 'POST' | 'PUT' | 'PATCH' | 'GET';
107
+ }
108
+
88
109
  export interface PersonaConfig {
89
110
  accent:
90
111
  | 'US'
@@ -559,7 +580,8 @@ export interface ConfigFlowStep {
559
580
  | 'CUSTOMER_DTMF'
560
581
  | 'AGENT_DTMF'
561
582
  | 'VOICEMAIL'
562
- | 'SCENARIO_LINK';
583
+ | 'SCENARIO_LINK'
584
+ | 'CUSTOMER_HANDOFF';
563
585
 
564
586
  content?: string;
565
587
 
@@ -567,6 +589,8 @@ export interface ConfigFlowStep {
567
589
 
568
590
  flow?: string;
569
591
 
592
+ handoffPersona?: string;
593
+
570
594
  mergeInto?: Array<string>;
571
595
 
572
596
  offScript?: ConfigFlowStep.OffScript;
@@ -607,7 +631,15 @@ export namespace ConfigApplyResponse {
607
631
  export interface Change {
608
632
  configKey: string;
609
633
 
610
- kind: 'agent' | 'persona' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'alert';
634
+ kind:
635
+ | 'agent'
636
+ | 'persona'
637
+ | 'httpRequestDefinition'
638
+ | 'flow'
639
+ | 'collector'
640
+ | 'metric'
641
+ | 'simulationPlan'
642
+ | 'alert';
611
643
 
612
644
  name: string;
613
645
 
@@ -620,6 +652,8 @@ export namespace ConfigApplyResponse {
620
652
  detail?: string;
621
653
 
622
654
  error?: string;
655
+
656
+ signingSecret?: string;
623
657
  }
624
658
 
625
659
  export interface Summary {
@@ -651,7 +685,15 @@ export namespace ConfigDiffResponse {
651
685
  export interface Change {
652
686
  configKey: string;
653
687
 
654
- kind: 'agent' | 'persona' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'alert';
688
+ kind:
689
+ | 'agent'
690
+ | 'persona'
691
+ | 'httpRequestDefinition'
692
+ | 'flow'
693
+ | 'collector'
694
+ | 'metric'
695
+ | 'simulationPlan'
696
+ | 'alert';
655
697
 
656
698
  name: string;
657
699
 
@@ -675,6 +717,7 @@ export namespace ConfigDiffResponse {
675
717
  export interface ConfigApplyParams {
676
718
  resources: Array<
677
719
  | ConfigApplyParams.AgentConfig
720
+ | ConfigApplyParams.HTTPRequestDefinitionConfig
678
721
  | ConfigApplyParams.PersonaConfig
679
722
  | ConfigApplyParams.ImprovFlowConfig
680
723
  | ConfigApplyParams.ScriptedFlowConfig
@@ -712,10 +755,30 @@ export namespace ConfigApplyParams {
712
755
 
713
756
  environment?: string;
714
757
 
758
+ outboundDialHttpRequestDefinition?: string;
759
+
760
+ outboundDialType?: 'NONE' | 'HTTP_REQUEST';
761
+
715
762
  type?: 'PHONE' | 'WEBSOCKET';
716
763
  }
717
764
  }
718
765
 
766
+ export interface HTTPRequestDefinitionConfig {
767
+ kind: 'httpRequestDefinition';
768
+
769
+ name: string;
770
+
771
+ url: string;
772
+
773
+ body?: string;
774
+
775
+ description?: string | null;
776
+
777
+ headers?: { [key: string]: string };
778
+
779
+ method?: 'POST' | 'PUT' | 'PATCH' | 'GET';
780
+ }
781
+
719
782
  export interface PersonaConfig {
720
783
  accent:
721
784
  | 'US'
@@ -1183,6 +1246,7 @@ export namespace ConfigApplyParams {
1183
1246
  export interface ConfigDiffParams {
1184
1247
  resources: Array<
1185
1248
  | ConfigDiffParams.AgentConfig
1249
+ | ConfigDiffParams.HTTPRequestDefinitionConfig
1186
1250
  | ConfigDiffParams.PersonaConfig
1187
1251
  | ConfigDiffParams.ImprovFlowConfig
1188
1252
  | ConfigDiffParams.ScriptedFlowConfig
@@ -1220,10 +1284,30 @@ export namespace ConfigDiffParams {
1220
1284
 
1221
1285
  environment?: string;
1222
1286
 
1287
+ outboundDialHttpRequestDefinition?: string;
1288
+
1289
+ outboundDialType?: 'NONE' | 'HTTP_REQUEST';
1290
+
1223
1291
  type?: 'PHONE' | 'WEBSOCKET';
1224
1292
  }
1225
1293
  }
1226
1294
 
1295
+ export interface HTTPRequestDefinitionConfig {
1296
+ kind: 'httpRequestDefinition';
1297
+
1298
+ name: string;
1299
+
1300
+ url: string;
1301
+
1302
+ body?: string;
1303
+
1304
+ description?: string | null;
1305
+
1306
+ headers?: { [key: string]: string };
1307
+
1308
+ method?: 'POST' | 'PUT' | 'PATCH' | 'GET';
1309
+ }
1310
+
1227
1311
  export interface PersonaConfig {
1228
1312
  accent:
1229
1313
  | 'US'