@roarkanalytics/sdk 8.0.1 → 9.1.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 (118) hide show
  1. package/CHANGELOG.md +28 -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 +3 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +4 -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/config.d.mts +6 -6
  20. package/resources/config.d.mts.map +1 -1
  21. package/resources/config.d.ts +6 -6
  22. package/resources/config.d.ts.map +1 -1
  23. package/resources/conversation.d.mts +6 -95
  24. package/resources/conversation.d.mts.map +1 -1
  25. package/resources/conversation.d.ts +6 -95
  26. package/resources/conversation.d.ts.map +1 -1
  27. package/resources/conversation.js +5 -17
  28. package/resources/conversation.js.map +1 -1
  29. package/resources/conversation.mjs +5 -17
  30. package/resources/conversation.mjs.map +1 -1
  31. package/resources/customer-flow-folder.d.mts +157 -0
  32. package/resources/customer-flow-folder.d.mts.map +1 -0
  33. package/resources/customer-flow-folder.d.ts +157 -0
  34. package/resources/customer-flow-folder.d.ts.map +1 -0
  35. package/resources/customer-flow-folder.js +54 -0
  36. package/resources/customer-flow-folder.js.map +1 -0
  37. package/resources/customer-flow-folder.mjs +50 -0
  38. package/resources/customer-flow-folder.mjs.map +1 -0
  39. package/resources/customer-flow.d.mts +558 -2
  40. package/resources/customer-flow.d.mts.map +1 -1
  41. package/resources/customer-flow.d.ts +558 -2
  42. package/resources/customer-flow.d.ts.map +1 -1
  43. package/resources/customer-flow.js +2 -2
  44. package/resources/customer-flow.mjs +2 -2
  45. package/resources/dashboard.d.mts +3 -3
  46. package/resources/dashboard.d.ts +3 -3
  47. package/resources/dashboard.js +3 -3
  48. package/resources/dashboard.mjs +3 -3
  49. package/resources/index.d.mts +3 -3
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +3 -3
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js +3 -3
  54. package/resources/index.js.map +1 -1
  55. package/resources/index.mjs +2 -2
  56. package/resources/index.mjs.map +1 -1
  57. package/resources/live-report.d.mts +10 -10
  58. package/resources/live-report.d.ts +10 -10
  59. package/resources/me.d.mts +20 -19
  60. package/resources/me.d.mts.map +1 -1
  61. package/resources/me.d.ts +20 -19
  62. package/resources/me.d.ts.map +1 -1
  63. package/resources/me.js +14 -13
  64. package/resources/me.js.map +1 -1
  65. package/resources/me.mjs +14 -13
  66. package/resources/me.mjs.map +1 -1
  67. package/resources/metric.d.mts +60 -60
  68. package/resources/metric.d.ts +60 -60
  69. package/resources/simulation-group.d.mts +13 -13
  70. package/resources/simulation-group.d.ts +13 -13
  71. package/resources/simulation-group.js +5 -5
  72. package/resources/simulation-group.mjs +5 -5
  73. package/resources/simulation-run-group.d.mts +2 -2
  74. package/resources/simulation-run-group.d.ts +2 -2
  75. package/resources/simulation-run-group.js +2 -2
  76. package/resources/simulation-run-group.mjs +2 -2
  77. package/resources/simulation.d.mts +1086 -4
  78. package/resources/simulation.d.mts.map +1 -1
  79. package/resources/simulation.d.ts +1086 -4
  80. package/resources/simulation.d.ts.map +1 -1
  81. package/resources/simulation.js +106 -0
  82. package/resources/simulation.js.map +1 -1
  83. package/resources/simulation.mjs +106 -0
  84. package/resources/simulation.mjs.map +1 -1
  85. package/resources/webhook.d.mts +4 -4
  86. package/resources/webhook.d.mts.map +1 -1
  87. package/resources/webhook.d.ts +4 -4
  88. package/resources/webhook.d.ts.map +1 -1
  89. package/src/client.ts +39 -43
  90. package/src/resources/agent-connection.ts +0 -103
  91. package/src/resources/agent.ts +2 -317
  92. package/src/resources/config.ts +12 -12
  93. package/src/resources/conversation.ts +6 -126
  94. package/src/resources/customer-flow-folder.ts +235 -0
  95. package/src/resources/customer-flow.ts +862 -2
  96. package/src/resources/dashboard.ts +3 -3
  97. package/src/resources/index.ts +18 -20
  98. package/src/resources/live-report.ts +10 -10
  99. package/src/resources/me.ts +20 -19
  100. package/src/resources/metric.ts +60 -60
  101. package/src/resources/simulation-group.ts +13 -13
  102. package/src/resources/simulation-run-group.ts +2 -2
  103. package/src/resources/simulation.ts +1759 -52
  104. package/src/resources/webhook.ts +8 -8
  105. package/src/version.ts +1 -1
  106. package/version.d.mts +1 -1
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
  109. package/version.mjs +1 -1
  110. package/resources/agent-setup.d.mts +0 -1057
  111. package/resources/agent-setup.d.mts.map +0 -1
  112. package/resources/agent-setup.d.ts +0 -1057
  113. package/resources/agent-setup.d.ts.map +0 -1
  114. package/resources/agent-setup.js +0 -113
  115. package/resources/agent-setup.js.map +0 -1
  116. package/resources/agent-setup.mjs +0 -109
  117. package/resources/agent-setup.mjs.map +0 -1
  118. package/src/resources/agent-setup.ts +0 -1685
@@ -27,8 +27,8 @@ export class CustomerFlow extends APIResource {
27
27
  }
28
28
 
29
29
  /**
30
- * Updates a flow's title, description, branching mode, linked agents or flow-level
31
- * expectations. The step graph is replaced through PUT /graph.
30
+ * Updates a flow's title, description, branching mode, linked agents, flow-level
31
+ * expectations or folder. The step graph is replaced through PUT /graph.
32
32
  *
33
33
  * @example
34
34
  * ```ts
@@ -672,6 +672,11 @@ export namespace CustomerFlowCreateResponse {
672
672
  */
673
673
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
674
674
 
675
+ /**
676
+ * A folder that groups customer flows. A flow sits in at most one folder.
677
+ */
678
+ folder: ScriptedCustomerFlow.Folder | null;
679
+
675
680
  /**
676
681
  * One path through a scripted flow. The path engine owns which paths exist, so
677
682
  * editing the graph is what creates and removes these.
@@ -1226,6 +1231,57 @@ export namespace CustomerFlowCreateResponse {
1226
1231
  }
1227
1232
  }
1228
1233
 
1234
+ /**
1235
+ * A folder that groups customer flows. A flow sits in at most one folder.
1236
+ */
1237
+ export interface Folder {
1238
+ id: string;
1239
+
1240
+ /**
1241
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
1242
+ * your flows filed in them.
1243
+ */
1244
+ builtIn: boolean;
1245
+
1246
+ /**
1247
+ * The color the folder is shown with in the app. Folders share the palette labels
1248
+ * use.
1249
+ */
1250
+ color:
1251
+ | 'GREEN'
1252
+ | 'RED'
1253
+ | 'ORANGE'
1254
+ | 'PURPLE'
1255
+ | 'GREY'
1256
+ | 'BLUE'
1257
+ | 'PEACH'
1258
+ | 'TEAL'
1259
+ | 'INDIGO'
1260
+ | 'AMBER'
1261
+ | 'ROSE'
1262
+ | 'CYAN';
1263
+
1264
+ /**
1265
+ * Creation timestamp in ISO 8601 format
1266
+ */
1267
+ createdAt: string;
1268
+
1269
+ /**
1270
+ * What belongs in this folder.
1271
+ */
1272
+ description: string | null;
1273
+
1274
+ /**
1275
+ * The folder name, unique within the project.
1276
+ */
1277
+ name: string;
1278
+
1279
+ /**
1280
+ * Last update timestamp in ISO 8601 format
1281
+ */
1282
+ updatedAt: string;
1283
+ }
1284
+
1229
1285
  /**
1230
1286
  * One path through a scripted flow. The path engine owns which paths exist, so
1231
1287
  * editing the graph is what creates and removes these.
@@ -1711,6 +1767,11 @@ export namespace CustomerFlowCreateResponse {
1711
1767
  */
1712
1768
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
1713
1769
 
1770
+ /**
1771
+ * A folder that groups customer flows. A flow sits in at most one folder.
1772
+ */
1773
+ folder: ImprovCustomerFlow.Folder | null;
1774
+
1714
1775
  /**
1715
1776
  * One brief to run an improv flow with.
1716
1777
  */
@@ -2498,6 +2559,57 @@ export namespace CustomerFlowCreateResponse {
2498
2559
  }
2499
2560
  }
2500
2561
 
2562
+ /**
2563
+ * A folder that groups customer flows. A flow sits in at most one folder.
2564
+ */
2565
+ export interface Folder {
2566
+ id: string;
2567
+
2568
+ /**
2569
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
2570
+ * your flows filed in them.
2571
+ */
2572
+ builtIn: boolean;
2573
+
2574
+ /**
2575
+ * The color the folder is shown with in the app. Folders share the palette labels
2576
+ * use.
2577
+ */
2578
+ color:
2579
+ | 'GREEN'
2580
+ | 'RED'
2581
+ | 'ORANGE'
2582
+ | 'PURPLE'
2583
+ | 'GREY'
2584
+ | 'BLUE'
2585
+ | 'PEACH'
2586
+ | 'TEAL'
2587
+ | 'INDIGO'
2588
+ | 'AMBER'
2589
+ | 'ROSE'
2590
+ | 'CYAN';
2591
+
2592
+ /**
2593
+ * Creation timestamp in ISO 8601 format
2594
+ */
2595
+ createdAt: string;
2596
+
2597
+ /**
2598
+ * What belongs in this folder.
2599
+ */
2600
+ description: string | null;
2601
+
2602
+ /**
2603
+ * The folder name, unique within the project.
2604
+ */
2605
+ name: string;
2606
+
2607
+ /**
2608
+ * Last update timestamp in ISO 8601 format
2609
+ */
2610
+ updatedAt: string;
2611
+ }
2612
+
2501
2613
  /**
2502
2614
  * One brief to run an improv flow with.
2503
2615
  */
@@ -3223,6 +3335,11 @@ export namespace CustomerFlowCreateResponse {
3223
3335
  */
3224
3336
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
3225
3337
 
3338
+ /**
3339
+ * A folder that groups customer flows. A flow sits in at most one folder.
3340
+ */
3341
+ folder: VoicemailCustomerFlow.Folder | null;
3342
+
3226
3343
  /**
3227
3344
  * One voicemail greeting.
3228
3345
  */
@@ -3738,6 +3855,57 @@ export namespace CustomerFlowCreateResponse {
3738
3855
  }
3739
3856
  }
3740
3857
 
3858
+ /**
3859
+ * A folder that groups customer flows. A flow sits in at most one folder.
3860
+ */
3861
+ export interface Folder {
3862
+ id: string;
3863
+
3864
+ /**
3865
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
3866
+ * your flows filed in them.
3867
+ */
3868
+ builtIn: boolean;
3869
+
3870
+ /**
3871
+ * The color the folder is shown with in the app. Folders share the palette labels
3872
+ * use.
3873
+ */
3874
+ color:
3875
+ | 'GREEN'
3876
+ | 'RED'
3877
+ | 'ORANGE'
3878
+ | 'PURPLE'
3879
+ | 'GREY'
3880
+ | 'BLUE'
3881
+ | 'PEACH'
3882
+ | 'TEAL'
3883
+ | 'INDIGO'
3884
+ | 'AMBER'
3885
+ | 'ROSE'
3886
+ | 'CYAN';
3887
+
3888
+ /**
3889
+ * Creation timestamp in ISO 8601 format
3890
+ */
3891
+ createdAt: string;
3892
+
3893
+ /**
3894
+ * What belongs in this folder.
3895
+ */
3896
+ description: string | null;
3897
+
3898
+ /**
3899
+ * The folder name, unique within the project.
3900
+ */
3901
+ name: string;
3902
+
3903
+ /**
3904
+ * Last update timestamp in ISO 8601 format
3905
+ */
3906
+ updatedAt: string;
3907
+ }
3908
+
3741
3909
  /**
3742
3910
  * One voicemail greeting.
3743
3911
  */
@@ -4213,6 +4381,11 @@ export namespace CustomerFlowUpdateResponse {
4213
4381
  */
4214
4382
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
4215
4383
 
4384
+ /**
4385
+ * A folder that groups customer flows. A flow sits in at most one folder.
4386
+ */
4387
+ folder: ScriptedCustomerFlow.Folder | null;
4388
+
4216
4389
  /**
4217
4390
  * One path through a scripted flow. The path engine owns which paths exist, so
4218
4391
  * editing the graph is what creates and removes these.
@@ -4767,6 +4940,57 @@ export namespace CustomerFlowUpdateResponse {
4767
4940
  }
4768
4941
  }
4769
4942
 
4943
+ /**
4944
+ * A folder that groups customer flows. A flow sits in at most one folder.
4945
+ */
4946
+ export interface Folder {
4947
+ id: string;
4948
+
4949
+ /**
4950
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
4951
+ * your flows filed in them.
4952
+ */
4953
+ builtIn: boolean;
4954
+
4955
+ /**
4956
+ * The color the folder is shown with in the app. Folders share the palette labels
4957
+ * use.
4958
+ */
4959
+ color:
4960
+ | 'GREEN'
4961
+ | 'RED'
4962
+ | 'ORANGE'
4963
+ | 'PURPLE'
4964
+ | 'GREY'
4965
+ | 'BLUE'
4966
+ | 'PEACH'
4967
+ | 'TEAL'
4968
+ | 'INDIGO'
4969
+ | 'AMBER'
4970
+ | 'ROSE'
4971
+ | 'CYAN';
4972
+
4973
+ /**
4974
+ * Creation timestamp in ISO 8601 format
4975
+ */
4976
+ createdAt: string;
4977
+
4978
+ /**
4979
+ * What belongs in this folder.
4980
+ */
4981
+ description: string | null;
4982
+
4983
+ /**
4984
+ * The folder name, unique within the project.
4985
+ */
4986
+ name: string;
4987
+
4988
+ /**
4989
+ * Last update timestamp in ISO 8601 format
4990
+ */
4991
+ updatedAt: string;
4992
+ }
4993
+
4770
4994
  /**
4771
4995
  * One path through a scripted flow. The path engine owns which paths exist, so
4772
4996
  * editing the graph is what creates and removes these.
@@ -5252,6 +5476,11 @@ export namespace CustomerFlowUpdateResponse {
5252
5476
  */
5253
5477
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
5254
5478
 
5479
+ /**
5480
+ * A folder that groups customer flows. A flow sits in at most one folder.
5481
+ */
5482
+ folder: ImprovCustomerFlow.Folder | null;
5483
+
5255
5484
  /**
5256
5485
  * One brief to run an improv flow with.
5257
5486
  */
@@ -6039,6 +6268,57 @@ export namespace CustomerFlowUpdateResponse {
6039
6268
  }
6040
6269
  }
6041
6270
 
6271
+ /**
6272
+ * A folder that groups customer flows. A flow sits in at most one folder.
6273
+ */
6274
+ export interface Folder {
6275
+ id: string;
6276
+
6277
+ /**
6278
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
6279
+ * your flows filed in them.
6280
+ */
6281
+ builtIn: boolean;
6282
+
6283
+ /**
6284
+ * The color the folder is shown with in the app. Folders share the palette labels
6285
+ * use.
6286
+ */
6287
+ color:
6288
+ | 'GREEN'
6289
+ | 'RED'
6290
+ | 'ORANGE'
6291
+ | 'PURPLE'
6292
+ | 'GREY'
6293
+ | 'BLUE'
6294
+ | 'PEACH'
6295
+ | 'TEAL'
6296
+ | 'INDIGO'
6297
+ | 'AMBER'
6298
+ | 'ROSE'
6299
+ | 'CYAN';
6300
+
6301
+ /**
6302
+ * Creation timestamp in ISO 8601 format
6303
+ */
6304
+ createdAt: string;
6305
+
6306
+ /**
6307
+ * What belongs in this folder.
6308
+ */
6309
+ description: string | null;
6310
+
6311
+ /**
6312
+ * The folder name, unique within the project.
6313
+ */
6314
+ name: string;
6315
+
6316
+ /**
6317
+ * Last update timestamp in ISO 8601 format
6318
+ */
6319
+ updatedAt: string;
6320
+ }
6321
+
6042
6322
  /**
6043
6323
  * One brief to run an improv flow with.
6044
6324
  */
@@ -6764,6 +7044,11 @@ export namespace CustomerFlowUpdateResponse {
6764
7044
  */
6765
7045
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
6766
7046
 
7047
+ /**
7048
+ * A folder that groups customer flows. A flow sits in at most one folder.
7049
+ */
7050
+ folder: VoicemailCustomerFlow.Folder | null;
7051
+
6767
7052
  /**
6768
7053
  * One voicemail greeting.
6769
7054
  */
@@ -7279,6 +7564,57 @@ export namespace CustomerFlowUpdateResponse {
7279
7564
  }
7280
7565
  }
7281
7566
 
7567
+ /**
7568
+ * A folder that groups customer flows. A flow sits in at most one folder.
7569
+ */
7570
+ export interface Folder {
7571
+ id: string;
7572
+
7573
+ /**
7574
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
7575
+ * your flows filed in them.
7576
+ */
7577
+ builtIn: boolean;
7578
+
7579
+ /**
7580
+ * The color the folder is shown with in the app. Folders share the palette labels
7581
+ * use.
7582
+ */
7583
+ color:
7584
+ | 'GREEN'
7585
+ | 'RED'
7586
+ | 'ORANGE'
7587
+ | 'PURPLE'
7588
+ | 'GREY'
7589
+ | 'BLUE'
7590
+ | 'PEACH'
7591
+ | 'TEAL'
7592
+ | 'INDIGO'
7593
+ | 'AMBER'
7594
+ | 'ROSE'
7595
+ | 'CYAN';
7596
+
7597
+ /**
7598
+ * Creation timestamp in ISO 8601 format
7599
+ */
7600
+ createdAt: string;
7601
+
7602
+ /**
7603
+ * What belongs in this folder.
7604
+ */
7605
+ description: string | null;
7606
+
7607
+ /**
7608
+ * The folder name, unique within the project.
7609
+ */
7610
+ name: string;
7611
+
7612
+ /**
7613
+ * Last update timestamp in ISO 8601 format
7614
+ */
7615
+ updatedAt: string;
7616
+ }
7617
+
7282
7618
  /**
7283
7619
  * One voicemail greeting.
7284
7620
  */
@@ -7757,6 +8093,11 @@ export namespace CustomerFlowListResponse {
7757
8093
  */
7758
8094
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
7759
8095
 
8096
+ /**
8097
+ * A folder that groups customer flows. A flow sits in at most one folder.
8098
+ */
8099
+ folder: ScriptedCustomerFlow.Folder | null;
8100
+
7760
8101
  /**
7761
8102
  * One path through a scripted flow. The path engine owns which paths exist, so
7762
8103
  * editing the graph is what creates and removes these.
@@ -8311,6 +8652,57 @@ export namespace CustomerFlowListResponse {
8311
8652
  }
8312
8653
  }
8313
8654
 
8655
+ /**
8656
+ * A folder that groups customer flows. A flow sits in at most one folder.
8657
+ */
8658
+ export interface Folder {
8659
+ id: string;
8660
+
8661
+ /**
8662
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
8663
+ * your flows filed in them.
8664
+ */
8665
+ builtIn: boolean;
8666
+
8667
+ /**
8668
+ * The color the folder is shown with in the app. Folders share the palette labels
8669
+ * use.
8670
+ */
8671
+ color:
8672
+ | 'GREEN'
8673
+ | 'RED'
8674
+ | 'ORANGE'
8675
+ | 'PURPLE'
8676
+ | 'GREY'
8677
+ | 'BLUE'
8678
+ | 'PEACH'
8679
+ | 'TEAL'
8680
+ | 'INDIGO'
8681
+ | 'AMBER'
8682
+ | 'ROSE'
8683
+ | 'CYAN';
8684
+
8685
+ /**
8686
+ * Creation timestamp in ISO 8601 format
8687
+ */
8688
+ createdAt: string;
8689
+
8690
+ /**
8691
+ * What belongs in this folder.
8692
+ */
8693
+ description: string | null;
8694
+
8695
+ /**
8696
+ * The folder name, unique within the project.
8697
+ */
8698
+ name: string;
8699
+
8700
+ /**
8701
+ * Last update timestamp in ISO 8601 format
8702
+ */
8703
+ updatedAt: string;
8704
+ }
8705
+
8314
8706
  /**
8315
8707
  * One path through a scripted flow. The path engine owns which paths exist, so
8316
8708
  * editing the graph is what creates and removes these.
@@ -8796,6 +9188,11 @@ export namespace CustomerFlowListResponse {
8796
9188
  */
8797
9189
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
8798
9190
 
9191
+ /**
9192
+ * A folder that groups customer flows. A flow sits in at most one folder.
9193
+ */
9194
+ folder: ImprovCustomerFlow.Folder | null;
9195
+
8799
9196
  /**
8800
9197
  * One brief to run an improv flow with.
8801
9198
  */
@@ -9583,6 +9980,57 @@ export namespace CustomerFlowListResponse {
9583
9980
  }
9584
9981
  }
9585
9982
 
9983
+ /**
9984
+ * A folder that groups customer flows. A flow sits in at most one folder.
9985
+ */
9986
+ export interface Folder {
9987
+ id: string;
9988
+
9989
+ /**
9990
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
9991
+ * your flows filed in them.
9992
+ */
9993
+ builtIn: boolean;
9994
+
9995
+ /**
9996
+ * The color the folder is shown with in the app. Folders share the palette labels
9997
+ * use.
9998
+ */
9999
+ color:
10000
+ | 'GREEN'
10001
+ | 'RED'
10002
+ | 'ORANGE'
10003
+ | 'PURPLE'
10004
+ | 'GREY'
10005
+ | 'BLUE'
10006
+ | 'PEACH'
10007
+ | 'TEAL'
10008
+ | 'INDIGO'
10009
+ | 'AMBER'
10010
+ | 'ROSE'
10011
+ | 'CYAN';
10012
+
10013
+ /**
10014
+ * Creation timestamp in ISO 8601 format
10015
+ */
10016
+ createdAt: string;
10017
+
10018
+ /**
10019
+ * What belongs in this folder.
10020
+ */
10021
+ description: string | null;
10022
+
10023
+ /**
10024
+ * The folder name, unique within the project.
10025
+ */
10026
+ name: string;
10027
+
10028
+ /**
10029
+ * Last update timestamp in ISO 8601 format
10030
+ */
10031
+ updatedAt: string;
10032
+ }
10033
+
9586
10034
  /**
9587
10035
  * One brief to run an improv flow with.
9588
10036
  */
@@ -10308,6 +10756,11 @@ export namespace CustomerFlowListResponse {
10308
10756
  */
10309
10757
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
10310
10758
 
10759
+ /**
10760
+ * A folder that groups customer flows. A flow sits in at most one folder.
10761
+ */
10762
+ folder: VoicemailCustomerFlow.Folder | null;
10763
+
10311
10764
  /**
10312
10765
  * One voicemail greeting.
10313
10766
  */
@@ -10823,6 +11276,57 @@ export namespace CustomerFlowListResponse {
10823
11276
  }
10824
11277
  }
10825
11278
 
11279
+ /**
11280
+ * A folder that groups customer flows. A flow sits in at most one folder.
11281
+ */
11282
+ export interface Folder {
11283
+ id: string;
11284
+
11285
+ /**
11286
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
11287
+ * your flows filed in them.
11288
+ */
11289
+ builtIn: boolean;
11290
+
11291
+ /**
11292
+ * The color the folder is shown with in the app. Folders share the palette labels
11293
+ * use.
11294
+ */
11295
+ color:
11296
+ | 'GREEN'
11297
+ | 'RED'
11298
+ | 'ORANGE'
11299
+ | 'PURPLE'
11300
+ | 'GREY'
11301
+ | 'BLUE'
11302
+ | 'PEACH'
11303
+ | 'TEAL'
11304
+ | 'INDIGO'
11305
+ | 'AMBER'
11306
+ | 'ROSE'
11307
+ | 'CYAN';
11308
+
11309
+ /**
11310
+ * Creation timestamp in ISO 8601 format
11311
+ */
11312
+ createdAt: string;
11313
+
11314
+ /**
11315
+ * What belongs in this folder.
11316
+ */
11317
+ description: string | null;
11318
+
11319
+ /**
11320
+ * The folder name, unique within the project.
11321
+ */
11322
+ name: string;
11323
+
11324
+ /**
11325
+ * Last update timestamp in ISO 8601 format
11326
+ */
11327
+ updatedAt: string;
11328
+ }
11329
+
10826
11330
  /**
10827
11331
  * One voicemail greeting.
10828
11332
  */
@@ -11328,6 +11832,11 @@ export namespace CustomerFlowDuplicateResponse {
11328
11832
  */
11329
11833
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
11330
11834
 
11835
+ /**
11836
+ * A folder that groups customer flows. A flow sits in at most one folder.
11837
+ */
11838
+ folder: ScriptedCustomerFlow.Folder | null;
11839
+
11331
11840
  /**
11332
11841
  * One path through a scripted flow. The path engine owns which paths exist, so
11333
11842
  * editing the graph is what creates and removes these.
@@ -11882,6 +12391,57 @@ export namespace CustomerFlowDuplicateResponse {
11882
12391
  }
11883
12392
  }
11884
12393
 
12394
+ /**
12395
+ * A folder that groups customer flows. A flow sits in at most one folder.
12396
+ */
12397
+ export interface Folder {
12398
+ id: string;
12399
+
12400
+ /**
12401
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
12402
+ * your flows filed in them.
12403
+ */
12404
+ builtIn: boolean;
12405
+
12406
+ /**
12407
+ * The color the folder is shown with in the app. Folders share the palette labels
12408
+ * use.
12409
+ */
12410
+ color:
12411
+ | 'GREEN'
12412
+ | 'RED'
12413
+ | 'ORANGE'
12414
+ | 'PURPLE'
12415
+ | 'GREY'
12416
+ | 'BLUE'
12417
+ | 'PEACH'
12418
+ | 'TEAL'
12419
+ | 'INDIGO'
12420
+ | 'AMBER'
12421
+ | 'ROSE'
12422
+ | 'CYAN';
12423
+
12424
+ /**
12425
+ * Creation timestamp in ISO 8601 format
12426
+ */
12427
+ createdAt: string;
12428
+
12429
+ /**
12430
+ * What belongs in this folder.
12431
+ */
12432
+ description: string | null;
12433
+
12434
+ /**
12435
+ * The folder name, unique within the project.
12436
+ */
12437
+ name: string;
12438
+
12439
+ /**
12440
+ * Last update timestamp in ISO 8601 format
12441
+ */
12442
+ updatedAt: string;
12443
+ }
12444
+
11885
12445
  /**
11886
12446
  * One path through a scripted flow. The path engine owns which paths exist, so
11887
12447
  * editing the graph is what creates and removes these.
@@ -12367,6 +12927,11 @@ export namespace CustomerFlowDuplicateResponse {
12367
12927
  */
12368
12928
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
12369
12929
 
12930
+ /**
12931
+ * A folder that groups customer flows. A flow sits in at most one folder.
12932
+ */
12933
+ folder: ImprovCustomerFlow.Folder | null;
12934
+
12370
12935
  /**
12371
12936
  * One brief to run an improv flow with.
12372
12937
  */
@@ -13154,6 +13719,57 @@ export namespace CustomerFlowDuplicateResponse {
13154
13719
  }
13155
13720
  }
13156
13721
 
13722
+ /**
13723
+ * A folder that groups customer flows. A flow sits in at most one folder.
13724
+ */
13725
+ export interface Folder {
13726
+ id: string;
13727
+
13728
+ /**
13729
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
13730
+ * your flows filed in them.
13731
+ */
13732
+ builtIn: boolean;
13733
+
13734
+ /**
13735
+ * The color the folder is shown with in the app. Folders share the palette labels
13736
+ * use.
13737
+ */
13738
+ color:
13739
+ | 'GREEN'
13740
+ | 'RED'
13741
+ | 'ORANGE'
13742
+ | 'PURPLE'
13743
+ | 'GREY'
13744
+ | 'BLUE'
13745
+ | 'PEACH'
13746
+ | 'TEAL'
13747
+ | 'INDIGO'
13748
+ | 'AMBER'
13749
+ | 'ROSE'
13750
+ | 'CYAN';
13751
+
13752
+ /**
13753
+ * Creation timestamp in ISO 8601 format
13754
+ */
13755
+ createdAt: string;
13756
+
13757
+ /**
13758
+ * What belongs in this folder.
13759
+ */
13760
+ description: string | null;
13761
+
13762
+ /**
13763
+ * The folder name, unique within the project.
13764
+ */
13765
+ name: string;
13766
+
13767
+ /**
13768
+ * Last update timestamp in ISO 8601 format
13769
+ */
13770
+ updatedAt: string;
13771
+ }
13772
+
13157
13773
  /**
13158
13774
  * One brief to run an improv flow with.
13159
13775
  */
@@ -13879,6 +14495,11 @@ export namespace CustomerFlowDuplicateResponse {
13879
14495
  */
13880
14496
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
13881
14497
 
14498
+ /**
14499
+ * A folder that groups customer flows. A flow sits in at most one folder.
14500
+ */
14501
+ folder: VoicemailCustomerFlow.Folder | null;
14502
+
13882
14503
  /**
13883
14504
  * One voicemail greeting.
13884
14505
  */
@@ -14394,6 +15015,57 @@ export namespace CustomerFlowDuplicateResponse {
14394
15015
  }
14395
15016
  }
14396
15017
 
15018
+ /**
15019
+ * A folder that groups customer flows. A flow sits in at most one folder.
15020
+ */
15021
+ export interface Folder {
15022
+ id: string;
15023
+
15024
+ /**
15025
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
15026
+ * your flows filed in them.
15027
+ */
15028
+ builtIn: boolean;
15029
+
15030
+ /**
15031
+ * The color the folder is shown with in the app. Folders share the palette labels
15032
+ * use.
15033
+ */
15034
+ color:
15035
+ | 'GREEN'
15036
+ | 'RED'
15037
+ | 'ORANGE'
15038
+ | 'PURPLE'
15039
+ | 'GREY'
15040
+ | 'BLUE'
15041
+ | 'PEACH'
15042
+ | 'TEAL'
15043
+ | 'INDIGO'
15044
+ | 'AMBER'
15045
+ | 'ROSE'
15046
+ | 'CYAN';
15047
+
15048
+ /**
15049
+ * Creation timestamp in ISO 8601 format
15050
+ */
15051
+ createdAt: string;
15052
+
15053
+ /**
15054
+ * What belongs in this folder.
15055
+ */
15056
+ description: string | null;
15057
+
15058
+ /**
15059
+ * The folder name, unique within the project.
15060
+ */
15061
+ name: string;
15062
+
15063
+ /**
15064
+ * Last update timestamp in ISO 8601 format
15065
+ */
15066
+ updatedAt: string;
15067
+ }
15068
+
14397
15069
  /**
14398
15070
  * One voicemail greeting.
14399
15071
  */
@@ -14869,6 +15541,11 @@ export namespace CustomerFlowGetByIDResponse {
14869
15541
  */
14870
15542
  edgeCases: Array<ScriptedCustomerFlow.EdgeCase>;
14871
15543
 
15544
+ /**
15545
+ * A folder that groups customer flows. A flow sits in at most one folder.
15546
+ */
15547
+ folder: ScriptedCustomerFlow.Folder | null;
15548
+
14872
15549
  /**
14873
15550
  * One path through a scripted flow. The path engine owns which paths exist, so
14874
15551
  * editing the graph is what creates and removes these.
@@ -15423,6 +16100,57 @@ export namespace CustomerFlowGetByIDResponse {
15423
16100
  }
15424
16101
  }
15425
16102
 
16103
+ /**
16104
+ * A folder that groups customer flows. A flow sits in at most one folder.
16105
+ */
16106
+ export interface Folder {
16107
+ id: string;
16108
+
16109
+ /**
16110
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
16111
+ * your flows filed in them.
16112
+ */
16113
+ builtIn: boolean;
16114
+
16115
+ /**
16116
+ * The color the folder is shown with in the app. Folders share the palette labels
16117
+ * use.
16118
+ */
16119
+ color:
16120
+ | 'GREEN'
16121
+ | 'RED'
16122
+ | 'ORANGE'
16123
+ | 'PURPLE'
16124
+ | 'GREY'
16125
+ | 'BLUE'
16126
+ | 'PEACH'
16127
+ | 'TEAL'
16128
+ | 'INDIGO'
16129
+ | 'AMBER'
16130
+ | 'ROSE'
16131
+ | 'CYAN';
16132
+
16133
+ /**
16134
+ * Creation timestamp in ISO 8601 format
16135
+ */
16136
+ createdAt: string;
16137
+
16138
+ /**
16139
+ * What belongs in this folder.
16140
+ */
16141
+ description: string | null;
16142
+
16143
+ /**
16144
+ * The folder name, unique within the project.
16145
+ */
16146
+ name: string;
16147
+
16148
+ /**
16149
+ * Last update timestamp in ISO 8601 format
16150
+ */
16151
+ updatedAt: string;
16152
+ }
16153
+
15426
16154
  /**
15427
16155
  * One path through a scripted flow. The path engine owns which paths exist, so
15428
16156
  * editing the graph is what creates and removes these.
@@ -15908,6 +16636,11 @@ export namespace CustomerFlowGetByIDResponse {
15908
16636
  */
15909
16637
  edgeCases: Array<ImprovCustomerFlow.EdgeCase>;
15910
16638
 
16639
+ /**
16640
+ * A folder that groups customer flows. A flow sits in at most one folder.
16641
+ */
16642
+ folder: ImprovCustomerFlow.Folder | null;
16643
+
15911
16644
  /**
15912
16645
  * One brief to run an improv flow with.
15913
16646
  */
@@ -16695,6 +17428,57 @@ export namespace CustomerFlowGetByIDResponse {
16695
17428
  }
16696
17429
  }
16697
17430
 
17431
+ /**
17432
+ * A folder that groups customer flows. A flow sits in at most one folder.
17433
+ */
17434
+ export interface Folder {
17435
+ id: string;
17436
+
17437
+ /**
17438
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
17439
+ * your flows filed in them.
17440
+ */
17441
+ builtIn: boolean;
17442
+
17443
+ /**
17444
+ * The color the folder is shown with in the app. Folders share the palette labels
17445
+ * use.
17446
+ */
17447
+ color:
17448
+ | 'GREEN'
17449
+ | 'RED'
17450
+ | 'ORANGE'
17451
+ | 'PURPLE'
17452
+ | 'GREY'
17453
+ | 'BLUE'
17454
+ | 'PEACH'
17455
+ | 'TEAL'
17456
+ | 'INDIGO'
17457
+ | 'AMBER'
17458
+ | 'ROSE'
17459
+ | 'CYAN';
17460
+
17461
+ /**
17462
+ * Creation timestamp in ISO 8601 format
17463
+ */
17464
+ createdAt: string;
17465
+
17466
+ /**
17467
+ * What belongs in this folder.
17468
+ */
17469
+ description: string | null;
17470
+
17471
+ /**
17472
+ * The folder name, unique within the project.
17473
+ */
17474
+ name: string;
17475
+
17476
+ /**
17477
+ * Last update timestamp in ISO 8601 format
17478
+ */
17479
+ updatedAt: string;
17480
+ }
17481
+
16698
17482
  /**
16699
17483
  * One brief to run an improv flow with.
16700
17484
  */
@@ -17420,6 +18204,11 @@ export namespace CustomerFlowGetByIDResponse {
17420
18204
  */
17421
18205
  edgeCases: Array<VoicemailCustomerFlow.EdgeCase>;
17422
18206
 
18207
+ /**
18208
+ * A folder that groups customer flows. A flow sits in at most one folder.
18209
+ */
18210
+ folder: VoicemailCustomerFlow.Folder | null;
18211
+
17423
18212
  /**
17424
18213
  * One voicemail greeting.
17425
18214
  */
@@ -17935,6 +18724,57 @@ export namespace CustomerFlowGetByIDResponse {
17935
18724
  }
17936
18725
  }
17937
18726
 
18727
+ /**
18728
+ * A folder that groups customer flows. A flow sits in at most one folder.
18729
+ */
18730
+ export interface Folder {
18731
+ id: string;
18732
+
18733
+ /**
18734
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
18735
+ * your flows filed in them.
18736
+ */
18737
+ builtIn: boolean;
18738
+
18739
+ /**
18740
+ * The color the folder is shown with in the app. Folders share the palette labels
18741
+ * use.
18742
+ */
18743
+ color:
18744
+ | 'GREEN'
18745
+ | 'RED'
18746
+ | 'ORANGE'
18747
+ | 'PURPLE'
18748
+ | 'GREY'
18749
+ | 'BLUE'
18750
+ | 'PEACH'
18751
+ | 'TEAL'
18752
+ | 'INDIGO'
18753
+ | 'AMBER'
18754
+ | 'ROSE'
18755
+ | 'CYAN';
18756
+
18757
+ /**
18758
+ * Creation timestamp in ISO 8601 format
18759
+ */
18760
+ createdAt: string;
18761
+
18762
+ /**
18763
+ * What belongs in this folder.
18764
+ */
18765
+ description: string | null;
18766
+
18767
+ /**
18768
+ * The folder name, unique within the project.
18769
+ */
18770
+ name: string;
18771
+
18772
+ /**
18773
+ * Last update timestamp in ISO 8601 format
18774
+ */
18775
+ updatedAt: string;
18776
+ }
18777
+
17938
18778
  /**
17939
18779
  * One voicemail greeting.
17940
18780
  */
@@ -21577,6 +22417,12 @@ export declare namespace CustomerFlowCreateParams {
21577
22417
 
21578
22418
  description?: string | null;
21579
22419
 
22420
+ /**
22421
+ * A folder to file the flow in, from GET /v1/customer-flow/folder. Omit to leave
22422
+ * it in no folder.
22423
+ */
22424
+ folderId?: string;
22425
+
21580
22426
  /**
21581
22427
  * STRICT only. What the simulated customer does when your agent does not say the
21582
22428
  * expected line. Each unmatched agent utterance is an attempt: `reaction` runs per
@@ -21660,6 +22506,12 @@ export declare namespace CustomerFlowCreateParams {
21660
22506
  * name.
21661
22507
  */
21662
22508
  edgeCases?: Array<CreateImprovCustomerFlowInput.EdgeCase>;
22509
+
22510
+ /**
22511
+ * A folder to file the flow in, from GET /v1/customer-flow/folder. Omit to leave
22512
+ * it in no folder.
22513
+ */
22514
+ folderId?: string;
21663
22515
  }
21664
22516
 
21665
22517
  export namespace CreateImprovCustomerFlowInput {
@@ -21798,6 +22650,12 @@ export interface CustomerFlowUpdateParams {
21798
22650
 
21799
22651
  description?: string | null;
21800
22652
 
22653
+ /**
22654
+ * Moves the flow into this folder. Null takes it out of its folder; omit to leave
22655
+ * it where it is.
22656
+ */
22657
+ folderId?: string | null;
22658
+
21801
22659
  /**
21802
22660
  * STRICT only. What the simulated customer does when your agent does not say the
21803
22661
  * expected line. Each unmatched agent utterance is an attempt: `reaction` runs per
@@ -21862,6 +22720,8 @@ export namespace CustomerFlowUpdateParams {
21862
22720
  export interface CustomerFlowListParams {
21863
22721
  after?: string;
21864
22722
 
22723
+ folderId?: string;
22724
+
21865
22725
  includeSystem?: 'true' | 'false';
21866
22726
 
21867
22727
  limit?: number;