@roarkanalytics/sdk 8.0.0 → 9.0.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 (108) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/client.d.mts +7 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -4
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-connection.d.mts +0 -88
  12. package/resources/agent-connection.d.mts.map +1 -1
  13. package/resources/agent-connection.d.ts +0 -88
  14. package/resources/agent-connection.d.ts.map +1 -1
  15. package/resources/agent.d.mts +2 -200
  16. package/resources/agent.d.mts.map +1 -1
  17. package/resources/agent.d.ts +2 -200
  18. package/resources/agent.d.ts.map +1 -1
  19. package/resources/conversation.d.mts +6 -95
  20. package/resources/conversation.d.mts.map +1 -1
  21. package/resources/conversation.d.ts +6 -95
  22. package/resources/conversation.d.ts.map +1 -1
  23. package/resources/conversation.js +5 -17
  24. package/resources/conversation.js.map +1 -1
  25. package/resources/conversation.mjs +5 -17
  26. package/resources/conversation.mjs.map +1 -1
  27. package/resources/customer-flow-folder.d.mts +157 -0
  28. package/resources/customer-flow-folder.d.mts.map +1 -0
  29. package/resources/customer-flow-folder.d.ts +157 -0
  30. package/resources/customer-flow-folder.d.ts.map +1 -0
  31. package/resources/customer-flow-folder.js +54 -0
  32. package/resources/customer-flow-folder.js.map +1 -0
  33. package/resources/customer-flow-folder.mjs +50 -0
  34. package/resources/customer-flow-folder.mjs.map +1 -0
  35. package/resources/customer-flow.d.mts +558 -2
  36. package/resources/customer-flow.d.mts.map +1 -1
  37. package/resources/customer-flow.d.ts +558 -2
  38. package/resources/customer-flow.d.ts.map +1 -1
  39. package/resources/customer-flow.js +2 -2
  40. package/resources/customer-flow.mjs +2 -2
  41. package/resources/dashboard.d.mts +3 -3
  42. package/resources/dashboard.d.ts +3 -3
  43. package/resources/dashboard.js +3 -3
  44. package/resources/dashboard.mjs +3 -3
  45. package/resources/index.d.mts +3 -3
  46. package/resources/index.d.mts.map +1 -1
  47. package/resources/index.d.ts +3 -3
  48. package/resources/index.d.ts.map +1 -1
  49. package/resources/index.js +3 -3
  50. package/resources/index.js.map +1 -1
  51. package/resources/index.mjs +2 -2
  52. package/resources/index.mjs.map +1 -1
  53. package/resources/live-report.d.mts +10 -10
  54. package/resources/live-report.d.ts +10 -10
  55. package/resources/me.d.mts +20 -19
  56. package/resources/me.d.mts.map +1 -1
  57. package/resources/me.d.ts +20 -19
  58. package/resources/me.d.ts.map +1 -1
  59. package/resources/me.js +14 -13
  60. package/resources/me.js.map +1 -1
  61. package/resources/me.mjs +14 -13
  62. package/resources/me.mjs.map +1 -1
  63. package/resources/metric.d.mts +60 -60
  64. package/resources/metric.d.ts +60 -60
  65. package/resources/simulation-group.d.mts +13 -13
  66. package/resources/simulation-group.d.ts +13 -13
  67. package/resources/simulation-group.js +5 -5
  68. package/resources/simulation-group.mjs +5 -5
  69. package/resources/simulation-run-group.d.mts +2 -2
  70. package/resources/simulation-run-group.d.ts +2 -2
  71. package/resources/simulation-run-group.js +2 -2
  72. package/resources/simulation-run-group.mjs +2 -2
  73. package/resources/simulation.d.mts +1086 -4
  74. package/resources/simulation.d.mts.map +1 -1
  75. package/resources/simulation.d.ts +1086 -4
  76. package/resources/simulation.d.ts.map +1 -1
  77. package/resources/simulation.js +106 -0
  78. package/resources/simulation.js.map +1 -1
  79. package/resources/simulation.mjs +106 -0
  80. package/resources/simulation.mjs.map +1 -1
  81. package/src/client.ts +42 -43
  82. package/src/resources/agent-connection.ts +0 -103
  83. package/src/resources/agent.ts +2 -317
  84. package/src/resources/conversation.ts +6 -126
  85. package/src/resources/customer-flow-folder.ts +235 -0
  86. package/src/resources/customer-flow.ts +862 -2
  87. package/src/resources/dashboard.ts +3 -3
  88. package/src/resources/index.ts +18 -20
  89. package/src/resources/live-report.ts +10 -10
  90. package/src/resources/me.ts +20 -19
  91. package/src/resources/metric.ts +60 -60
  92. package/src/resources/simulation-group.ts +13 -13
  93. package/src/resources/simulation-run-group.ts +2 -2
  94. package/src/resources/simulation.ts +1759 -52
  95. package/src/version.ts +1 -1
  96. package/version.d.mts +1 -1
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
  99. package/version.mjs +1 -1
  100. package/resources/agent-setup.d.mts +0 -1057
  101. package/resources/agent-setup.d.mts.map +0 -1
  102. package/resources/agent-setup.d.ts +0 -1057
  103. package/resources/agent-setup.d.ts.map +0 -1
  104. package/resources/agent-setup.js +0 -113
  105. package/resources/agent-setup.js.map +0 -1
  106. package/resources/agent-setup.mjs +0 -109
  107. package/resources/agent-setup.mjs.map +0 -1
  108. package/src/resources/agent-setup.ts +0 -1685
@@ -20,8 +20,8 @@ export declare class CustomerFlow extends APIResource {
20
20
  */
21
21
  create(body: CustomerFlowCreateParams, options?: RequestOptions): APIPromise<CustomerFlowCreateResponse>;
22
22
  /**
23
- * Updates a flow's title, description, branching mode, linked agents or flow-level
24
- * expectations. The step graph is replaced through PUT /graph.
23
+ * Updates a flow's title, description, branching mode, linked agents, flow-level
24
+ * expectations or folder. The step graph is replaced through PUT /graph.
25
25
  *
26
26
  * @example
27
27
  * ```ts
@@ -459,6 +459,10 @@ export declare namespace CustomerFlowCreateResponse {
459
459
  * Every other way of running this flow.
460
460
  */
461
461
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
462
+ /**
463
+ * A folder that groups customer flows. A flow sits in at most one folder.
464
+ */
465
+ folder: ScriptedCustomerFlow.Folder | null;
462
466
  /**
463
467
  * One path through a scripted flow. The path engine owns which paths exist, so
464
468
  * editing the graph is what creates and removes these.
@@ -825,6 +829,38 @@ export declare namespace CustomerFlowCreateResponse {
825
829
  secondaryLanguage?: 'EN' | null;
826
830
  }
827
831
  }
832
+ /**
833
+ * A folder that groups customer flows. A flow sits in at most one folder.
834
+ */
835
+ interface Folder {
836
+ id: string;
837
+ /**
838
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
839
+ * your flows filed in them.
840
+ */
841
+ builtIn: boolean;
842
+ /**
843
+ * The color the folder is shown with in the app. Folders share the palette labels
844
+ * use.
845
+ */
846
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
847
+ /**
848
+ * Creation timestamp in ISO 8601 format
849
+ */
850
+ createdAt: string;
851
+ /**
852
+ * What belongs in this folder.
853
+ */
854
+ description: string | null;
855
+ /**
856
+ * The folder name, unique within the project.
857
+ */
858
+ name: string;
859
+ /**
860
+ * Last update timestamp in ISO 8601 format
861
+ */
862
+ updatedAt: string;
863
+ }
828
864
  /**
829
865
  * One path through a scripted flow. The path engine owns which paths exist, so
830
866
  * editing the graph is what creates and removes these.
@@ -1147,6 +1183,10 @@ export declare namespace CustomerFlowCreateResponse {
1147
1183
  * Every other way of running this flow.
1148
1184
  */
1149
1185
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
1186
+ /**
1187
+ * A folder that groups customer flows. A flow sits in at most one folder.
1188
+ */
1189
+ folder: ImprovCustomerFlow.Folder | null;
1150
1190
  /**
1151
1191
  * One brief to run an improv flow with.
1152
1192
  */
@@ -1639,6 +1679,38 @@ export declare namespace CustomerFlowCreateResponse {
1639
1679
  secondaryLanguage?: 'EN' | null;
1640
1680
  }
1641
1681
  }
1682
+ /**
1683
+ * A folder that groups customer flows. A flow sits in at most one folder.
1684
+ */
1685
+ interface Folder {
1686
+ id: string;
1687
+ /**
1688
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
1689
+ * your flows filed in them.
1690
+ */
1691
+ builtIn: boolean;
1692
+ /**
1693
+ * The color the folder is shown with in the app. Folders share the palette labels
1694
+ * use.
1695
+ */
1696
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
1697
+ /**
1698
+ * Creation timestamp in ISO 8601 format
1699
+ */
1700
+ createdAt: string;
1701
+ /**
1702
+ * What belongs in this folder.
1703
+ */
1704
+ description: string | null;
1705
+ /**
1706
+ * The folder name, unique within the project.
1707
+ */
1708
+ name: string;
1709
+ /**
1710
+ * Last update timestamp in ISO 8601 format
1711
+ */
1712
+ updatedAt: string;
1713
+ }
1642
1714
  /**
1643
1715
  * One brief to run an improv flow with.
1644
1716
  */
@@ -2096,6 +2168,10 @@ export declare namespace CustomerFlowCreateResponse {
2096
2168
  * Every other way of running this flow.
2097
2169
  */
2098
2170
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
2171
+ /**
2172
+ * A folder that groups customer flows. A flow sits in at most one folder.
2173
+ */
2174
+ folder: VoicemailCustomerFlow.Folder | null;
2099
2175
  /**
2100
2176
  * One voicemail greeting.
2101
2177
  */
@@ -2427,6 +2503,38 @@ export declare namespace CustomerFlowCreateResponse {
2427
2503
  secondaryLanguage?: 'EN' | null;
2428
2504
  }
2429
2505
  }
2506
+ /**
2507
+ * A folder that groups customer flows. A flow sits in at most one folder.
2508
+ */
2509
+ interface Folder {
2510
+ id: string;
2511
+ /**
2512
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
2513
+ * your flows filed in them.
2514
+ */
2515
+ builtIn: boolean;
2516
+ /**
2517
+ * The color the folder is shown with in the app. Folders share the palette labels
2518
+ * use.
2519
+ */
2520
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
2521
+ /**
2522
+ * Creation timestamp in ISO 8601 format
2523
+ */
2524
+ createdAt: string;
2525
+ /**
2526
+ * What belongs in this folder.
2527
+ */
2528
+ description: string | null;
2529
+ /**
2530
+ * The folder name, unique within the project.
2531
+ */
2532
+ name: string;
2533
+ /**
2534
+ * Last update timestamp in ISO 8601 format
2535
+ */
2536
+ updatedAt: string;
2537
+ }
2430
2538
  /**
2431
2539
  * One voicemail greeting.
2432
2540
  */
@@ -2740,6 +2848,10 @@ export declare namespace CustomerFlowUpdateResponse {
2740
2848
  * Every other way of running this flow.
2741
2849
  */
2742
2850
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
2851
+ /**
2852
+ * A folder that groups customer flows. A flow sits in at most one folder.
2853
+ */
2854
+ folder: ScriptedCustomerFlow.Folder | null;
2743
2855
  /**
2744
2856
  * One path through a scripted flow. The path engine owns which paths exist, so
2745
2857
  * editing the graph is what creates and removes these.
@@ -3106,6 +3218,38 @@ export declare namespace CustomerFlowUpdateResponse {
3106
3218
  secondaryLanguage?: 'EN' | null;
3107
3219
  }
3108
3220
  }
3221
+ /**
3222
+ * A folder that groups customer flows. A flow sits in at most one folder.
3223
+ */
3224
+ interface Folder {
3225
+ id: string;
3226
+ /**
3227
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
3228
+ * your flows filed in them.
3229
+ */
3230
+ builtIn: boolean;
3231
+ /**
3232
+ * The color the folder is shown with in the app. Folders share the palette labels
3233
+ * use.
3234
+ */
3235
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
3236
+ /**
3237
+ * Creation timestamp in ISO 8601 format
3238
+ */
3239
+ createdAt: string;
3240
+ /**
3241
+ * What belongs in this folder.
3242
+ */
3243
+ description: string | null;
3244
+ /**
3245
+ * The folder name, unique within the project.
3246
+ */
3247
+ name: string;
3248
+ /**
3249
+ * Last update timestamp in ISO 8601 format
3250
+ */
3251
+ updatedAt: string;
3252
+ }
3109
3253
  /**
3110
3254
  * One path through a scripted flow. The path engine owns which paths exist, so
3111
3255
  * editing the graph is what creates and removes these.
@@ -3428,6 +3572,10 @@ export declare namespace CustomerFlowUpdateResponse {
3428
3572
  * Every other way of running this flow.
3429
3573
  */
3430
3574
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
3575
+ /**
3576
+ * A folder that groups customer flows. A flow sits in at most one folder.
3577
+ */
3578
+ folder: ImprovCustomerFlow.Folder | null;
3431
3579
  /**
3432
3580
  * One brief to run an improv flow with.
3433
3581
  */
@@ -3920,6 +4068,38 @@ export declare namespace CustomerFlowUpdateResponse {
3920
4068
  secondaryLanguage?: 'EN' | null;
3921
4069
  }
3922
4070
  }
4071
+ /**
4072
+ * A folder that groups customer flows. A flow sits in at most one folder.
4073
+ */
4074
+ interface Folder {
4075
+ id: string;
4076
+ /**
4077
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
4078
+ * your flows filed in them.
4079
+ */
4080
+ builtIn: boolean;
4081
+ /**
4082
+ * The color the folder is shown with in the app. Folders share the palette labels
4083
+ * use.
4084
+ */
4085
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
4086
+ /**
4087
+ * Creation timestamp in ISO 8601 format
4088
+ */
4089
+ createdAt: string;
4090
+ /**
4091
+ * What belongs in this folder.
4092
+ */
4093
+ description: string | null;
4094
+ /**
4095
+ * The folder name, unique within the project.
4096
+ */
4097
+ name: string;
4098
+ /**
4099
+ * Last update timestamp in ISO 8601 format
4100
+ */
4101
+ updatedAt: string;
4102
+ }
3923
4103
  /**
3924
4104
  * One brief to run an improv flow with.
3925
4105
  */
@@ -4377,6 +4557,10 @@ export declare namespace CustomerFlowUpdateResponse {
4377
4557
  * Every other way of running this flow.
4378
4558
  */
4379
4559
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
4560
+ /**
4561
+ * A folder that groups customer flows. A flow sits in at most one folder.
4562
+ */
4563
+ folder: VoicemailCustomerFlow.Folder | null;
4380
4564
  /**
4381
4565
  * One voicemail greeting.
4382
4566
  */
@@ -4708,6 +4892,38 @@ export declare namespace CustomerFlowUpdateResponse {
4708
4892
  secondaryLanguage?: 'EN' | null;
4709
4893
  }
4710
4894
  }
4895
+ /**
4896
+ * A folder that groups customer flows. A flow sits in at most one folder.
4897
+ */
4898
+ interface Folder {
4899
+ id: string;
4900
+ /**
4901
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
4902
+ * your flows filed in them.
4903
+ */
4904
+ builtIn: boolean;
4905
+ /**
4906
+ * The color the folder is shown with in the app. Folders share the palette labels
4907
+ * use.
4908
+ */
4909
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
4910
+ /**
4911
+ * Creation timestamp in ISO 8601 format
4912
+ */
4913
+ createdAt: string;
4914
+ /**
4915
+ * What belongs in this folder.
4916
+ */
4917
+ description: string | null;
4918
+ /**
4919
+ * The folder name, unique within the project.
4920
+ */
4921
+ name: string;
4922
+ /**
4923
+ * Last update timestamp in ISO 8601 format
4924
+ */
4925
+ updatedAt: string;
4926
+ }
4711
4927
  /**
4712
4928
  * One voicemail greeting.
4713
4929
  */
@@ -5022,6 +5238,10 @@ export declare namespace CustomerFlowListResponse {
5022
5238
  * Every other way of running this flow.
5023
5239
  */
5024
5240
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
5241
+ /**
5242
+ * A folder that groups customer flows. A flow sits in at most one folder.
5243
+ */
5244
+ folder: ScriptedCustomerFlow.Folder | null;
5025
5245
  /**
5026
5246
  * One path through a scripted flow. The path engine owns which paths exist, so
5027
5247
  * editing the graph is what creates and removes these.
@@ -5388,6 +5608,38 @@ export declare namespace CustomerFlowListResponse {
5388
5608
  secondaryLanguage?: 'EN' | null;
5389
5609
  }
5390
5610
  }
5611
+ /**
5612
+ * A folder that groups customer flows. A flow sits in at most one folder.
5613
+ */
5614
+ interface Folder {
5615
+ id: string;
5616
+ /**
5617
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
5618
+ * your flows filed in them.
5619
+ */
5620
+ builtIn: boolean;
5621
+ /**
5622
+ * The color the folder is shown with in the app. Folders share the palette labels
5623
+ * use.
5624
+ */
5625
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
5626
+ /**
5627
+ * Creation timestamp in ISO 8601 format
5628
+ */
5629
+ createdAt: string;
5630
+ /**
5631
+ * What belongs in this folder.
5632
+ */
5633
+ description: string | null;
5634
+ /**
5635
+ * The folder name, unique within the project.
5636
+ */
5637
+ name: string;
5638
+ /**
5639
+ * Last update timestamp in ISO 8601 format
5640
+ */
5641
+ updatedAt: string;
5642
+ }
5391
5643
  /**
5392
5644
  * One path through a scripted flow. The path engine owns which paths exist, so
5393
5645
  * editing the graph is what creates and removes these.
@@ -5710,6 +5962,10 @@ export declare namespace CustomerFlowListResponse {
5710
5962
  * Every other way of running this flow.
5711
5963
  */
5712
5964
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
5965
+ /**
5966
+ * A folder that groups customer flows. A flow sits in at most one folder.
5967
+ */
5968
+ folder: ImprovCustomerFlow.Folder | null;
5713
5969
  /**
5714
5970
  * One brief to run an improv flow with.
5715
5971
  */
@@ -6202,6 +6458,38 @@ export declare namespace CustomerFlowListResponse {
6202
6458
  secondaryLanguage?: 'EN' | null;
6203
6459
  }
6204
6460
  }
6461
+ /**
6462
+ * A folder that groups customer flows. A flow sits in at most one folder.
6463
+ */
6464
+ interface Folder {
6465
+ id: string;
6466
+ /**
6467
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
6468
+ * your flows filed in them.
6469
+ */
6470
+ builtIn: boolean;
6471
+ /**
6472
+ * The color the folder is shown with in the app. Folders share the palette labels
6473
+ * use.
6474
+ */
6475
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
6476
+ /**
6477
+ * Creation timestamp in ISO 8601 format
6478
+ */
6479
+ createdAt: string;
6480
+ /**
6481
+ * What belongs in this folder.
6482
+ */
6483
+ description: string | null;
6484
+ /**
6485
+ * The folder name, unique within the project.
6486
+ */
6487
+ name: string;
6488
+ /**
6489
+ * Last update timestamp in ISO 8601 format
6490
+ */
6491
+ updatedAt: string;
6492
+ }
6205
6493
  /**
6206
6494
  * One brief to run an improv flow with.
6207
6495
  */
@@ -6659,6 +6947,10 @@ export declare namespace CustomerFlowListResponse {
6659
6947
  * Every other way of running this flow.
6660
6948
  */
6661
6949
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
6950
+ /**
6951
+ * A folder that groups customer flows. A flow sits in at most one folder.
6952
+ */
6953
+ folder: VoicemailCustomerFlow.Folder | null;
6662
6954
  /**
6663
6955
  * One voicemail greeting.
6664
6956
  */
@@ -6990,6 +7282,38 @@ export declare namespace CustomerFlowListResponse {
6990
7282
  secondaryLanguage?: 'EN' | null;
6991
7283
  }
6992
7284
  }
7285
+ /**
7286
+ * A folder that groups customer flows. A flow sits in at most one folder.
7287
+ */
7288
+ interface Folder {
7289
+ id: string;
7290
+ /**
7291
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
7292
+ * your flows filed in them.
7293
+ */
7294
+ builtIn: boolean;
7295
+ /**
7296
+ * The color the folder is shown with in the app. Folders share the palette labels
7297
+ * use.
7298
+ */
7299
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
7300
+ /**
7301
+ * Creation timestamp in ISO 8601 format
7302
+ */
7303
+ createdAt: string;
7304
+ /**
7305
+ * What belongs in this folder.
7306
+ */
7307
+ description: string | null;
7308
+ /**
7309
+ * The folder name, unique within the project.
7310
+ */
7311
+ name: string;
7312
+ /**
7313
+ * Last update timestamp in ISO 8601 format
7314
+ */
7315
+ updatedAt: string;
7316
+ }
6993
7317
  /**
6994
7318
  * One voicemail greeting.
6995
7319
  */
@@ -7328,6 +7652,10 @@ export declare namespace CustomerFlowDuplicateResponse {
7328
7652
  * Every other way of running this flow.
7329
7653
  */
7330
7654
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
7655
+ /**
7656
+ * A folder that groups customer flows. A flow sits in at most one folder.
7657
+ */
7658
+ folder: ScriptedCustomerFlow.Folder | null;
7331
7659
  /**
7332
7660
  * One path through a scripted flow. The path engine owns which paths exist, so
7333
7661
  * editing the graph is what creates and removes these.
@@ -7694,6 +8022,38 @@ export declare namespace CustomerFlowDuplicateResponse {
7694
8022
  secondaryLanguage?: 'EN' | null;
7695
8023
  }
7696
8024
  }
8025
+ /**
8026
+ * A folder that groups customer flows. A flow sits in at most one folder.
8027
+ */
8028
+ interface Folder {
8029
+ id: string;
8030
+ /**
8031
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
8032
+ * your flows filed in them.
8033
+ */
8034
+ builtIn: boolean;
8035
+ /**
8036
+ * The color the folder is shown with in the app. Folders share the palette labels
8037
+ * use.
8038
+ */
8039
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
8040
+ /**
8041
+ * Creation timestamp in ISO 8601 format
8042
+ */
8043
+ createdAt: string;
8044
+ /**
8045
+ * What belongs in this folder.
8046
+ */
8047
+ description: string | null;
8048
+ /**
8049
+ * The folder name, unique within the project.
8050
+ */
8051
+ name: string;
8052
+ /**
8053
+ * Last update timestamp in ISO 8601 format
8054
+ */
8055
+ updatedAt: string;
8056
+ }
7697
8057
  /**
7698
8058
  * One path through a scripted flow. The path engine owns which paths exist, so
7699
8059
  * editing the graph is what creates and removes these.
@@ -8016,6 +8376,10 @@ export declare namespace CustomerFlowDuplicateResponse {
8016
8376
  * Every other way of running this flow.
8017
8377
  */
8018
8378
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
8379
+ /**
8380
+ * A folder that groups customer flows. A flow sits in at most one folder.
8381
+ */
8382
+ folder: ImprovCustomerFlow.Folder | null;
8019
8383
  /**
8020
8384
  * One brief to run an improv flow with.
8021
8385
  */
@@ -8508,6 +8872,38 @@ export declare namespace CustomerFlowDuplicateResponse {
8508
8872
  secondaryLanguage?: 'EN' | null;
8509
8873
  }
8510
8874
  }
8875
+ /**
8876
+ * A folder that groups customer flows. A flow sits in at most one folder.
8877
+ */
8878
+ interface Folder {
8879
+ id: string;
8880
+ /**
8881
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
8882
+ * your flows filed in them.
8883
+ */
8884
+ builtIn: boolean;
8885
+ /**
8886
+ * The color the folder is shown with in the app. Folders share the palette labels
8887
+ * use.
8888
+ */
8889
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
8890
+ /**
8891
+ * Creation timestamp in ISO 8601 format
8892
+ */
8893
+ createdAt: string;
8894
+ /**
8895
+ * What belongs in this folder.
8896
+ */
8897
+ description: string | null;
8898
+ /**
8899
+ * The folder name, unique within the project.
8900
+ */
8901
+ name: string;
8902
+ /**
8903
+ * Last update timestamp in ISO 8601 format
8904
+ */
8905
+ updatedAt: string;
8906
+ }
8511
8907
  /**
8512
8908
  * One brief to run an improv flow with.
8513
8909
  */
@@ -8965,6 +9361,10 @@ export declare namespace CustomerFlowDuplicateResponse {
8965
9361
  * Every other way of running this flow.
8966
9362
  */
8967
9363
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
9364
+ /**
9365
+ * A folder that groups customer flows. A flow sits in at most one folder.
9366
+ */
9367
+ folder: VoicemailCustomerFlow.Folder | null;
8968
9368
  /**
8969
9369
  * One voicemail greeting.
8970
9370
  */
@@ -9296,6 +9696,38 @@ export declare namespace CustomerFlowDuplicateResponse {
9296
9696
  secondaryLanguage?: 'EN' | null;
9297
9697
  }
9298
9698
  }
9699
+ /**
9700
+ * A folder that groups customer flows. A flow sits in at most one folder.
9701
+ */
9702
+ interface Folder {
9703
+ id: string;
9704
+ /**
9705
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
9706
+ * your flows filed in them.
9707
+ */
9708
+ builtIn: boolean;
9709
+ /**
9710
+ * The color the folder is shown with in the app. Folders share the palette labels
9711
+ * use.
9712
+ */
9713
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
9714
+ /**
9715
+ * Creation timestamp in ISO 8601 format
9716
+ */
9717
+ createdAt: string;
9718
+ /**
9719
+ * What belongs in this folder.
9720
+ */
9721
+ description: string | null;
9722
+ /**
9723
+ * The folder name, unique within the project.
9724
+ */
9725
+ name: string;
9726
+ /**
9727
+ * Last update timestamp in ISO 8601 format
9728
+ */
9729
+ updatedAt: string;
9730
+ }
9299
9731
  /**
9300
9732
  * One voicemail greeting.
9301
9733
  */
@@ -9609,6 +10041,10 @@ export declare namespace CustomerFlowGetByIDResponse {
9609
10041
  * Every other way of running this flow.
9610
10042
  */
9611
10043
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
10044
+ /**
10045
+ * A folder that groups customer flows. A flow sits in at most one folder.
10046
+ */
10047
+ folder: ScriptedCustomerFlow.Folder | null;
9612
10048
  /**
9613
10049
  * One path through a scripted flow. The path engine owns which paths exist, so
9614
10050
  * editing the graph is what creates and removes these.
@@ -9975,6 +10411,38 @@ export declare namespace CustomerFlowGetByIDResponse {
9975
10411
  secondaryLanguage?: 'EN' | null;
9976
10412
  }
9977
10413
  }
10414
+ /**
10415
+ * A folder that groups customer flows. A flow sits in at most one folder.
10416
+ */
10417
+ interface Folder {
10418
+ id: string;
10419
+ /**
10420
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
10421
+ * your flows filed in them.
10422
+ */
10423
+ builtIn: boolean;
10424
+ /**
10425
+ * The color the folder is shown with in the app. Folders share the palette labels
10426
+ * use.
10427
+ */
10428
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
10429
+ /**
10430
+ * Creation timestamp in ISO 8601 format
10431
+ */
10432
+ createdAt: string;
10433
+ /**
10434
+ * What belongs in this folder.
10435
+ */
10436
+ description: string | null;
10437
+ /**
10438
+ * The folder name, unique within the project.
10439
+ */
10440
+ name: string;
10441
+ /**
10442
+ * Last update timestamp in ISO 8601 format
10443
+ */
10444
+ updatedAt: string;
10445
+ }
9978
10446
  /**
9979
10447
  * One path through a scripted flow. The path engine owns which paths exist, so
9980
10448
  * editing the graph is what creates and removes these.
@@ -10297,6 +10765,10 @@ export declare namespace CustomerFlowGetByIDResponse {
10297
10765
  * Every other way of running this flow.
10298
10766
  */
10299
10767
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
10768
+ /**
10769
+ * A folder that groups customer flows. A flow sits in at most one folder.
10770
+ */
10771
+ folder: ImprovCustomerFlow.Folder | null;
10300
10772
  /**
10301
10773
  * One brief to run an improv flow with.
10302
10774
  */
@@ -10789,6 +11261,38 @@ export declare namespace CustomerFlowGetByIDResponse {
10789
11261
  secondaryLanguage?: 'EN' | null;
10790
11262
  }
10791
11263
  }
11264
+ /**
11265
+ * A folder that groups customer flows. A flow sits in at most one folder.
11266
+ */
11267
+ interface Folder {
11268
+ id: string;
11269
+ /**
11270
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
11271
+ * your flows filed in them.
11272
+ */
11273
+ builtIn: boolean;
11274
+ /**
11275
+ * The color the folder is shown with in the app. Folders share the palette labels
11276
+ * use.
11277
+ */
11278
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
11279
+ /**
11280
+ * Creation timestamp in ISO 8601 format
11281
+ */
11282
+ createdAt: string;
11283
+ /**
11284
+ * What belongs in this folder.
11285
+ */
11286
+ description: string | null;
11287
+ /**
11288
+ * The folder name, unique within the project.
11289
+ */
11290
+ name: string;
11291
+ /**
11292
+ * Last update timestamp in ISO 8601 format
11293
+ */
11294
+ updatedAt: string;
11295
+ }
10792
11296
  /**
10793
11297
  * One brief to run an improv flow with.
10794
11298
  */
@@ -11246,6 +11750,10 @@ export declare namespace CustomerFlowGetByIDResponse {
11246
11750
  * Every other way of running this flow.
11247
11751
  */
11248
11752
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
11753
+ /**
11754
+ * A folder that groups customer flows. A flow sits in at most one folder.
11755
+ */
11756
+ folder: VoicemailCustomerFlow.Folder | null;
11249
11757
  /**
11250
11758
  * One voicemail greeting.
11251
11759
  */
@@ -11577,6 +12085,38 @@ export declare namespace CustomerFlowGetByIDResponse {
11577
12085
  secondaryLanguage?: 'EN' | null;
11578
12086
  }
11579
12087
  }
12088
+ /**
12089
+ * A folder that groups customer flows. A flow sits in at most one folder.
12090
+ */
12091
+ interface Folder {
12092
+ id: string;
12093
+ /**
12094
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
12095
+ * your flows filed in them.
12096
+ */
12097
+ builtIn: boolean;
12098
+ /**
12099
+ * The color the folder is shown with in the app. Folders share the palette labels
12100
+ * use.
12101
+ */
12102
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
12103
+ /**
12104
+ * Creation timestamp in ISO 8601 format
12105
+ */
12106
+ createdAt: string;
12107
+ /**
12108
+ * What belongs in this folder.
12109
+ */
12110
+ description: string | null;
12111
+ /**
12112
+ * The folder name, unique within the project.
12113
+ */
12114
+ name: string;
12115
+ /**
12116
+ * Last update timestamp in ISO 8601 format
12117
+ */
12118
+ updatedAt: string;
12119
+ }
11580
12120
  /**
11581
12121
  * One voicemail greeting.
11582
12122
  */
@@ -13911,6 +14451,11 @@ export declare namespace CustomerFlowCreateParams {
13911
14451
  */
13912
14452
  branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
13913
14453
  description?: string | null;
14454
+ /**
14455
+ * A folder to file the flow in, from GET /v1/customer-flow/folder. Omit to leave
14456
+ * it in no folder.
14457
+ */
14458
+ folderId?: string;
13914
14459
  /**
13915
14460
  * STRICT only. What the simulated customer does when your agent does not say the
13916
14461
  * expected line. Each unmatched agent utterance is an attempt: `reaction` runs per
@@ -13980,6 +14525,11 @@ export declare namespace CustomerFlowCreateParams {
13980
14525
  * name.
13981
14526
  */
13982
14527
  edgeCases?: Array<CreateImprovCustomerFlowInput.EdgeCase>;
14528
+ /**
14529
+ * A folder to file the flow in, from GET /v1/customer-flow/folder. Omit to leave
14530
+ * it in no folder.
14531
+ */
14532
+ folderId?: string;
13983
14533
  }
13984
14534
  namespace CreateImprovCustomerFlowInput {
13985
14535
  /**
@@ -14093,6 +14643,11 @@ export interface CustomerFlowUpdateParams {
14093
14643
  */
14094
14644
  branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
14095
14645
  description?: string | null;
14646
+ /**
14647
+ * Moves the flow into this folder. Null takes it out of its folder; omit to leave
14648
+ * it where it is.
14649
+ */
14650
+ folderId?: string | null;
14096
14651
  /**
14097
14652
  * STRICT only. What the simulated customer does when your agent does not say the
14098
14653
  * expected line. Each unmatched agent utterance is an attempt: `reaction` runs per
@@ -14147,6 +14702,7 @@ export declare namespace CustomerFlowUpdateParams {
14147
14702
  }
14148
14703
  export interface CustomerFlowListParams {
14149
14704
  after?: string;
14705
+ folderId?: string;
14150
14706
  includeSystem?: 'true' | 'false';
14151
14707
  limit?: number;
14152
14708
  searchText?: string;