@roarkanalytics/sdk 2.31.0 → 2.33.1

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 (245) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +17 -5
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +17 -5
  11. package/client.d.ts.map +1 -1
  12. package/client.js +35 -4
  13. package/client.js.map +1 -1
  14. package/client.mjs +35 -4
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/resource.d.mts.map +1 -1
  21. package/core/resource.d.ts.map +1 -1
  22. package/core/uploads.d.mts.map +1 -1
  23. package/core/uploads.d.ts.map +1 -1
  24. package/core/uploads.mjs.map +1 -1
  25. package/error.d.mts +1 -0
  26. package/error.d.mts.map +1 -1
  27. package/error.d.ts +1 -0
  28. package/error.d.ts.map +1 -1
  29. package/error.mjs +1 -0
  30. package/error.mjs.map +1 -1
  31. package/index.d.mts.map +1 -1
  32. package/index.d.ts.map +1 -1
  33. package/index.mjs.map +1 -1
  34. package/internal/detect-platform.mjs.map +1 -1
  35. package/internal/headers.mjs.map +1 -1
  36. package/internal/parse.d.mts.map +1 -1
  37. package/internal/parse.d.ts.map +1 -1
  38. package/internal/parse.mjs.map +1 -1
  39. package/internal/qs/formats.d.mts.map +1 -1
  40. package/internal/qs/formats.d.ts.map +1 -1
  41. package/internal/qs/index.d.mts +2 -2
  42. package/internal/qs/index.d.mts.map +1 -1
  43. package/internal/qs/index.d.ts +2 -2
  44. package/internal/qs/index.d.ts.map +1 -1
  45. package/internal/qs/index.mjs.map +1 -1
  46. package/internal/qs/stringify.d.mts.map +1 -1
  47. package/internal/qs/stringify.d.ts.map +1 -1
  48. package/internal/qs/stringify.mjs.map +1 -1
  49. package/internal/qs/utils.d.mts.map +1 -1
  50. package/internal/qs/utils.d.ts.map +1 -1
  51. package/internal/qs/utils.mjs.map +1 -1
  52. package/internal/request-options.d.mts.map +1 -1
  53. package/internal/request-options.d.ts.map +1 -1
  54. package/internal/shims.d.mts +6 -0
  55. package/internal/shims.d.mts.map +1 -1
  56. package/internal/shims.d.ts +6 -0
  57. package/internal/shims.d.ts.map +1 -1
  58. package/internal/to-file.d.mts.map +1 -1
  59. package/internal/to-file.d.ts.map +1 -1
  60. package/internal/to-file.mjs.map +1 -1
  61. package/internal/types.d.mts +10 -10
  62. package/internal/types.d.mts.map +1 -1
  63. package/internal/types.d.ts +10 -10
  64. package/internal/types.d.ts.map +1 -1
  65. package/internal/uploads.d.mts.map +1 -1
  66. package/internal/uploads.d.ts.map +1 -1
  67. package/internal/uploads.mjs.map +1 -1
  68. package/internal/utils/base64.mjs.map +1 -1
  69. package/internal/utils/log.d.mts.map +1 -1
  70. package/internal/utils/log.d.ts.map +1 -1
  71. package/internal/utils/log.js +2 -0
  72. package/internal/utils/log.js.map +1 -1
  73. package/internal/utils/log.mjs +2 -0
  74. package/internal/utils/log.mjs.map +1 -1
  75. package/internal/utils/path.mjs.map +1 -1
  76. package/internal/utils/query.mjs.map +1 -1
  77. package/internal/utils/values.mjs.map +1 -1
  78. package/internal/utils.d.mts.map +1 -1
  79. package/internal/utils.d.ts.map +1 -1
  80. package/internal/utils.mjs.map +1 -1
  81. package/package.json +1 -1
  82. package/resource.d.mts +1 -0
  83. package/resource.d.mts.map +1 -1
  84. package/resource.d.ts +1 -0
  85. package/resource.d.ts.map +1 -1
  86. package/resource.mjs +1 -0
  87. package/resource.mjs.map +1 -1
  88. package/resources/agent-endpoint.d.mts +4 -4
  89. package/resources/agent-endpoint.d.mts.map +1 -1
  90. package/resources/agent-endpoint.d.ts +4 -4
  91. package/resources/agent-endpoint.d.ts.map +1 -1
  92. package/resources/agent-endpoint.mjs.map +1 -1
  93. package/resources/agent.d.mts.map +1 -1
  94. package/resources/agent.d.ts.map +1 -1
  95. package/resources/agent.mjs.map +1 -1
  96. package/resources/call.d.mts +303 -155
  97. package/resources/call.d.mts.map +1 -1
  98. package/resources/call.d.ts +303 -155
  99. package/resources/call.d.ts.map +1 -1
  100. package/resources/call.js +6 -7
  101. package/resources/call.js.map +1 -1
  102. package/resources/call.mjs +6 -7
  103. package/resources/call.mjs.map +1 -1
  104. package/resources/config.d.mts +535 -0
  105. package/resources/config.d.mts.map +1 -0
  106. package/resources/config.d.ts +535 -0
  107. package/resources/config.d.ts.map +1 -0
  108. package/resources/config.js +28 -0
  109. package/resources/config.js.map +1 -0
  110. package/resources/config.mjs +24 -0
  111. package/resources/config.mjs.map +1 -0
  112. package/resources/customer-flow-edge-case.d.mts +1742 -0
  113. package/resources/customer-flow-edge-case.d.mts.map +1 -0
  114. package/resources/customer-flow-edge-case.d.ts +1742 -0
  115. package/resources/customer-flow-edge-case.d.ts.map +1 -0
  116. package/resources/customer-flow-edge-case.js +50 -0
  117. package/resources/customer-flow-edge-case.js.map +1 -0
  118. package/resources/customer-flow-edge-case.mjs +46 -0
  119. package/resources/customer-flow-edge-case.mjs.map +1 -0
  120. package/resources/customer-flow.d.mts +7163 -0
  121. package/resources/customer-flow.d.mts.map +1 -0
  122. package/resources/customer-flow.d.ts +7163 -0
  123. package/resources/customer-flow.d.ts.map +1 -0
  124. package/resources/customer-flow.js +87 -0
  125. package/resources/customer-flow.js.map +1 -0
  126. package/resources/customer-flow.mjs +83 -0
  127. package/resources/customer-flow.mjs.map +1 -0
  128. package/resources/health.d.mts.map +1 -1
  129. package/resources/health.d.ts.map +1 -1
  130. package/resources/health.mjs.map +1 -1
  131. package/resources/http-request-definition.d.mts.map +1 -1
  132. package/resources/http-request-definition.d.ts.map +1 -1
  133. package/resources/http-request-definition.mjs.map +1 -1
  134. package/resources/index.d.mts +6 -2
  135. package/resources/index.d.mts.map +1 -1
  136. package/resources/index.d.ts +6 -2
  137. package/resources/index.d.ts.map +1 -1
  138. package/resources/index.js +11 -3
  139. package/resources/index.js.map +1 -1
  140. package/resources/index.mjs +5 -1
  141. package/resources/index.mjs.map +1 -1
  142. package/resources/metric-collection-job.d.mts +5 -3
  143. package/resources/metric-collection-job.d.mts.map +1 -1
  144. package/resources/metric-collection-job.d.ts +5 -3
  145. package/resources/metric-collection-job.d.ts.map +1 -1
  146. package/resources/metric-collection-job.mjs.map +1 -1
  147. package/resources/metric-policy.d.mts.map +1 -1
  148. package/resources/metric-policy.d.ts.map +1 -1
  149. package/resources/metric-policy.mjs.map +1 -1
  150. package/resources/metric.d.mts +804 -109
  151. package/resources/metric.d.mts.map +1 -1
  152. package/resources/metric.d.ts +804 -109
  153. package/resources/metric.d.ts.map +1 -1
  154. package/resources/metric.js +6 -7
  155. package/resources/metric.js.map +1 -1
  156. package/resources/metric.mjs +6 -7
  157. package/resources/metric.mjs.map +1 -1
  158. package/resources/simulation-environment.d.mts +95 -0
  159. package/resources/simulation-environment.d.mts.map +1 -0
  160. package/resources/simulation-environment.d.ts +95 -0
  161. package/resources/simulation-environment.d.ts.map +1 -0
  162. package/resources/simulation-environment.js +24 -0
  163. package/resources/simulation-environment.js.map +1 -0
  164. package/resources/simulation-environment.mjs +20 -0
  165. package/resources/simulation-environment.mjs.map +1 -0
  166. package/resources/simulation-job.d.mts +58 -10
  167. package/resources/simulation-job.d.mts.map +1 -1
  168. package/resources/simulation-job.d.ts +58 -10
  169. package/resources/simulation-job.d.ts.map +1 -1
  170. package/resources/simulation-job.mjs.map +1 -1
  171. package/resources/simulation-persona.d.mts +60 -24
  172. package/resources/simulation-persona.d.mts.map +1 -1
  173. package/resources/simulation-persona.d.ts +60 -24
  174. package/resources/simulation-persona.d.ts.map +1 -1
  175. package/resources/simulation-persona.mjs.map +1 -1
  176. package/resources/simulation-run-plan-job.d.mts +73 -32
  177. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  178. package/resources/simulation-run-plan-job.d.ts +73 -32
  179. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  180. package/resources/simulation-run-plan-job.js +7 -8
  181. package/resources/simulation-run-plan-job.js.map +1 -1
  182. package/resources/simulation-run-plan-job.mjs +7 -8
  183. package/resources/simulation-run-plan-job.mjs.map +1 -1
  184. package/resources/simulation-run-plan.d.mts +408 -39
  185. package/resources/simulation-run-plan.d.mts.map +1 -1
  186. package/resources/simulation-run-plan.d.ts +408 -39
  187. package/resources/simulation-run-plan.d.ts.map +1 -1
  188. package/resources/simulation-run-plan.js +6 -11
  189. package/resources/simulation-run-plan.js.map +1 -1
  190. package/resources/simulation-run-plan.mjs +6 -11
  191. package/resources/simulation-run-plan.mjs.map +1 -1
  192. package/resources/simulation.d.mts +379 -0
  193. package/resources/simulation.d.mts.map +1 -0
  194. package/resources/simulation.d.ts +379 -0
  195. package/resources/simulation.d.ts.map +1 -0
  196. package/resources/simulation.js +33 -0
  197. package/resources/simulation.js.map +1 -0
  198. package/resources/simulation.mjs +29 -0
  199. package/resources/simulation.mjs.map +1 -0
  200. package/resources/webhook.d.mts +4 -4
  201. package/resources/webhook.d.mts.map +1 -1
  202. package/resources/webhook.d.ts +4 -4
  203. package/resources/webhook.d.ts.map +1 -1
  204. package/resources/webhook.mjs.map +1 -1
  205. package/resources.d.mts.map +1 -1
  206. package/resources.d.ts.map +1 -1
  207. package/resources.mjs.map +1 -1
  208. package/src/client.ts +124 -28
  209. package/src/internal/types.ts +6 -8
  210. package/src/internal/utils/log.ts +2 -0
  211. package/src/resources/agent-endpoint.ts +36 -4
  212. package/src/resources/call.ts +326 -169
  213. package/src/resources/config.ts +1162 -0
  214. package/src/resources/customer-flow-edge-case.ts +2884 -0
  215. package/src/resources/customer-flow.ts +11713 -0
  216. package/src/resources/index.ts +42 -12
  217. package/src/resources/metric-collection-job.ts +5 -3
  218. package/src/resources/metric.ts +1057 -115
  219. package/src/resources/simulation-environment.ts +147 -0
  220. package/src/resources/simulation-job.ts +122 -10
  221. package/src/resources/simulation-persona.ts +192 -24
  222. package/src/resources/simulation-run-plan-job.ts +109 -27
  223. package/src/resources/simulation-run-plan.ts +445 -40
  224. package/src/resources/simulation.ts +444 -0
  225. package/src/resources/webhook.ts +8 -0
  226. package/src/version.ts +1 -1
  227. package/uploads.d.mts +1 -0
  228. package/uploads.d.mts.map +1 -1
  229. package/uploads.d.ts +1 -0
  230. package/uploads.d.ts.map +1 -1
  231. package/uploads.mjs +1 -0
  232. package/uploads.mjs.map +1 -1
  233. package/version.d.mts +1 -1
  234. package/version.d.ts +1 -1
  235. package/version.js +1 -1
  236. package/version.mjs +1 -1
  237. package/resources/simulation-scenario.d.mts +0 -424
  238. package/resources/simulation-scenario.d.mts.map +0 -1
  239. package/resources/simulation-scenario.d.ts +0 -424
  240. package/resources/simulation-scenario.d.ts.map +0 -1
  241. package/resources/simulation-scenario.js +0 -40
  242. package/resources/simulation-scenario.js.map +0 -1
  243. package/resources/simulation-scenario.mjs +0 -36
  244. package/resources/simulation-scenario.mjs.map +0 -1
  245. package/src/resources/simulation-scenario.ts +0 -602
package/src/client.ts CHANGED
@@ -44,13 +44,47 @@ import {
44
44
  CallGetByIDResponse,
45
45
  CallGetTranscriptParams,
46
46
  CallGetTranscriptResponse,
47
- CallListEvaluationRunsResponse,
48
47
  CallListMetricsParams,
49
48
  CallListMetricsResponse,
50
49
  CallListParams,
51
50
  CallListResponse,
52
51
  CallListSentimentRunsResponse,
53
52
  } from './resources/call';
53
+ import {
54
+ Bundle,
55
+ Config,
56
+ ConfigApplyParams,
57
+ ConfigApplyResponse,
58
+ ConfigDiffParams,
59
+ ConfigDiffResponse,
60
+ } from './resources/config';
61
+ import {
62
+ CustomerFlow,
63
+ CustomerFlowCreateParams,
64
+ CustomerFlowCreateResponse,
65
+ CustomerFlowDeleteResponse,
66
+ CustomerFlowGetByIDResponse,
67
+ CustomerFlowListParams,
68
+ CustomerFlowListResponse,
69
+ CustomerFlowReplaceGraphParams,
70
+ CustomerFlowReplaceGraphResponse,
71
+ CustomerFlowUpdateHappyPathParams,
72
+ CustomerFlowUpdateHappyPathResponse,
73
+ CustomerFlowUpdateParams,
74
+ CustomerFlowUpdateResponse,
75
+ FlowStep,
76
+ } from './resources/customer-flow';
77
+ import {
78
+ CustomerFlowEdgeCase,
79
+ CustomerFlowEdgeCaseAddParams,
80
+ CustomerFlowEdgeCaseAddResponse,
81
+ CustomerFlowEdgeCasePromoteParams,
82
+ CustomerFlowEdgeCasePromoteResponse,
83
+ CustomerFlowEdgeCaseRemoveParams,
84
+ CustomerFlowEdgeCaseRemoveResponse,
85
+ CustomerFlowEdgeCaseUpdateParams,
86
+ CustomerFlowEdgeCaseUpdateResponse,
87
+ } from './resources/customer-flow-edge-case';
54
88
  import { Health, HealthGetResponse } from './resources/health';
55
89
  import {
56
90
  HTTPRequestDefinition,
@@ -87,6 +121,13 @@ import {
87
121
  MetricPolicyUpdateParams,
88
122
  MetricPolicyUpdateResponse,
89
123
  } from './resources/metric-policy';
124
+ import { Simulation, SimulationRunParams, SimulationRunResponse } from './resources/simulation';
125
+ import {
126
+ SimulationEnvironment,
127
+ SimulationEnvironmentGetByIDResponse,
128
+ SimulationEnvironmentListParams,
129
+ SimulationEnvironmentListResponse,
130
+ } from './resources/simulation-environment';
90
131
  import {
91
132
  SimulationJob,
92
133
  SimulationJobGetByIDResponse,
@@ -122,17 +163,6 @@ import {
122
163
  SimulationRunPlanJobStartParams,
123
164
  SimulationRunPlanJobStartResponse,
124
165
  } from './resources/simulation-run-plan-job';
125
- import {
126
- SimulationScenario,
127
- SimulationScenarioCreateParams,
128
- SimulationScenarioCreateResponse,
129
- SimulationScenarioDeleteResponse,
130
- SimulationScenarioGetByIDResponse,
131
- SimulationScenarioListParams,
132
- SimulationScenarioListResponse,
133
- SimulationScenarioUpdateParams,
134
- SimulationScenarioUpdateResponse,
135
- } from './resources/simulation-scenario';
136
166
  import {
137
167
  Webhook,
138
168
  WebhookCreateParams,
@@ -292,6 +322,18 @@ export class Roark {
292
322
  this.fetch = options.fetch ?? Shims.getDefaultFetch();
293
323
  this.#encoder = Opts.FallbackEncoder;
294
324
 
325
+ const customHeadersEnv = readEnv('ROARK_CUSTOM_HEADERS');
326
+ if (customHeadersEnv) {
327
+ const parsed: Record<string, string> = {};
328
+ for (const line of customHeadersEnv.split('\n')) {
329
+ const colon = line.indexOf(':');
330
+ if (colon >= 0) {
331
+ parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
332
+ }
333
+ }
334
+ options.defaultHeaders = { ...parsed, ...options.defaultHeaders };
335
+ }
336
+
295
337
  this._options = options;
296
338
 
297
339
  this.bearerToken = bearerToken;
@@ -775,11 +817,19 @@ export class Roark {
775
817
  return () => controller.abort();
776
818
  }
777
819
 
778
- private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
820
+ private buildBody({ options }: { options: FinalRequestOptions }): {
779
821
  bodyHeaders: HeadersLike;
780
822
  body: BodyInit | undefined;
781
823
  } {
824
+ const { body, headers: rawHeaders } = options;
782
825
  if (!body) {
826
+ // A resource method always passes a `body` key when its operation defines a
827
+ // request body, even if the caller omitted an optional body param. Keep the
828
+ // content-type for those, and only elide it for operations with no body at
829
+ // all (e.g. GET/DELETE).
830
+ if (body == null && 'body' in options) {
831
+ return this.#encoder({ body, headers: buildHeaders([rawHeaders]) });
832
+ }
783
833
  return { bodyHeaders: undefined, body: undefined };
784
834
  }
785
835
  const headers = buildHeaders([rawHeaders]);
@@ -844,15 +894,19 @@ export class Roark {
844
894
  metric: API.Metric = new API.Metric(this);
845
895
  metricPolicy: API.MetricPolicy = new API.MetricPolicy(this);
846
896
  metricCollectionJob: API.MetricCollectionJob = new API.MetricCollectionJob(this);
897
+ simulation: API.Simulation = new API.Simulation(this);
847
898
  simulationJob: API.SimulationJob = new API.SimulationJob(this);
848
899
  simulationRunPlan: API.SimulationRunPlan = new API.SimulationRunPlan(this);
849
900
  simulationRunPlanJob: API.SimulationRunPlanJob = new API.SimulationRunPlanJob(this);
850
- simulationScenario: API.SimulationScenario = new API.SimulationScenario(this);
851
901
  simulationPersona: API.SimulationPersona = new API.SimulationPersona(this);
902
+ simulationEnvironment: API.SimulationEnvironment = new API.SimulationEnvironment(this);
903
+ customerFlow: API.CustomerFlow = new API.CustomerFlow(this);
904
+ customerFlowEdgeCase: API.CustomerFlowEdgeCase = new API.CustomerFlowEdgeCase(this);
852
905
  agent: API.Agent = new API.Agent(this);
853
906
  agentEndpoint: API.AgentEndpoint = new API.AgentEndpoint(this);
854
907
  httpRequestDefinition: API.HTTPRequestDefinition = new API.HTTPRequestDefinition(this);
855
908
  webhook: API.Webhook = new API.Webhook(this);
909
+ config: API.Config = new API.Config(this);
856
910
  }
857
911
 
858
912
  Roark.Health = Health;
@@ -860,15 +914,19 @@ Roark.Call = Call;
860
914
  Roark.Metric = Metric;
861
915
  Roark.MetricPolicy = MetricPolicy;
862
916
  Roark.MetricCollectionJob = MetricCollectionJob;
917
+ Roark.Simulation = Simulation;
863
918
  Roark.SimulationJob = SimulationJob;
864
919
  Roark.SimulationRunPlan = SimulationRunPlan;
865
920
  Roark.SimulationRunPlanJob = SimulationRunPlanJob;
866
- Roark.SimulationScenario = SimulationScenario;
867
921
  Roark.SimulationPersona = SimulationPersona;
922
+ Roark.SimulationEnvironment = SimulationEnvironment;
923
+ Roark.CustomerFlow = CustomerFlow;
924
+ Roark.CustomerFlowEdgeCase = CustomerFlowEdgeCase;
868
925
  Roark.Agent = Agent;
869
926
  Roark.AgentEndpoint = AgentEndpoint;
870
927
  Roark.HTTPRequestDefinition = HTTPRequestDefinition;
871
928
  Roark.Webhook = Webhook;
929
+ Roark.Config = Config;
872
930
 
873
931
  export declare namespace Roark {
874
932
  export type RequestOptions = Opts.RequestOptions;
@@ -881,7 +939,6 @@ export declare namespace Roark {
881
939
  type CallListResponse as CallListResponse,
882
940
  type CallGetByIDResponse as CallGetByIDResponse,
883
941
  type CallGetTranscriptResponse as CallGetTranscriptResponse,
884
- type CallListEvaluationRunsResponse as CallListEvaluationRunsResponse,
885
942
  type CallListMetricsResponse as CallListMetricsResponse,
886
943
  type CallListSentimentRunsResponse as CallListSentimentRunsResponse,
887
944
  type CallCreateParams as CallCreateParams,
@@ -918,6 +975,12 @@ export declare namespace Roark {
918
975
  type MetricCollectionJobListParams as MetricCollectionJobListParams,
919
976
  };
920
977
 
978
+ export {
979
+ Simulation as Simulation,
980
+ type SimulationRunResponse as SimulationRunResponse,
981
+ type SimulationRunParams as SimulationRunParams,
982
+ };
983
+
921
984
  export {
922
985
  SimulationJob as SimulationJob,
923
986
  type SimulationJobGetByIDResponse as SimulationJobGetByIDResponse,
@@ -946,18 +1009,6 @@ export declare namespace Roark {
946
1009
  type SimulationRunPlanJobStartParams as SimulationRunPlanJobStartParams,
947
1010
  };
948
1011
 
949
- export {
950
- SimulationScenario as SimulationScenario,
951
- type SimulationScenarioCreateResponse as SimulationScenarioCreateResponse,
952
- type SimulationScenarioUpdateResponse as SimulationScenarioUpdateResponse,
953
- type SimulationScenarioListResponse as SimulationScenarioListResponse,
954
- type SimulationScenarioDeleteResponse as SimulationScenarioDeleteResponse,
955
- type SimulationScenarioGetByIDResponse as SimulationScenarioGetByIDResponse,
956
- type SimulationScenarioCreateParams as SimulationScenarioCreateParams,
957
- type SimulationScenarioUpdateParams as SimulationScenarioUpdateParams,
958
- type SimulationScenarioListParams as SimulationScenarioListParams,
959
- };
960
-
961
1012
  export {
962
1013
  SimulationPersona as SimulationPersona,
963
1014
  type SimulationPersonaCreateResponse as SimulationPersonaCreateResponse,
@@ -969,6 +1020,42 @@ export declare namespace Roark {
969
1020
  type SimulationPersonaListParams as SimulationPersonaListParams,
970
1021
  };
971
1022
 
1023
+ export {
1024
+ SimulationEnvironment as SimulationEnvironment,
1025
+ type SimulationEnvironmentListResponse as SimulationEnvironmentListResponse,
1026
+ type SimulationEnvironmentGetByIDResponse as SimulationEnvironmentGetByIDResponse,
1027
+ type SimulationEnvironmentListParams as SimulationEnvironmentListParams,
1028
+ };
1029
+
1030
+ export {
1031
+ CustomerFlow as CustomerFlow,
1032
+ type FlowStep as FlowStep,
1033
+ type CustomerFlowCreateResponse as CustomerFlowCreateResponse,
1034
+ type CustomerFlowUpdateResponse as CustomerFlowUpdateResponse,
1035
+ type CustomerFlowListResponse as CustomerFlowListResponse,
1036
+ type CustomerFlowDeleteResponse as CustomerFlowDeleteResponse,
1037
+ type CustomerFlowGetByIDResponse as CustomerFlowGetByIDResponse,
1038
+ type CustomerFlowReplaceGraphResponse as CustomerFlowReplaceGraphResponse,
1039
+ type CustomerFlowUpdateHappyPathResponse as CustomerFlowUpdateHappyPathResponse,
1040
+ type CustomerFlowCreateParams as CustomerFlowCreateParams,
1041
+ type CustomerFlowUpdateParams as CustomerFlowUpdateParams,
1042
+ type CustomerFlowListParams as CustomerFlowListParams,
1043
+ type CustomerFlowReplaceGraphParams as CustomerFlowReplaceGraphParams,
1044
+ type CustomerFlowUpdateHappyPathParams as CustomerFlowUpdateHappyPathParams,
1045
+ };
1046
+
1047
+ export {
1048
+ CustomerFlowEdgeCase as CustomerFlowEdgeCase,
1049
+ type CustomerFlowEdgeCaseUpdateResponse as CustomerFlowEdgeCaseUpdateResponse,
1050
+ type CustomerFlowEdgeCaseAddResponse as CustomerFlowEdgeCaseAddResponse,
1051
+ type CustomerFlowEdgeCasePromoteResponse as CustomerFlowEdgeCasePromoteResponse,
1052
+ type CustomerFlowEdgeCaseRemoveResponse as CustomerFlowEdgeCaseRemoveResponse,
1053
+ type CustomerFlowEdgeCaseUpdateParams as CustomerFlowEdgeCaseUpdateParams,
1054
+ type CustomerFlowEdgeCaseAddParams as CustomerFlowEdgeCaseAddParams,
1055
+ type CustomerFlowEdgeCasePromoteParams as CustomerFlowEdgeCasePromoteParams,
1056
+ type CustomerFlowEdgeCaseRemoveParams as CustomerFlowEdgeCaseRemoveParams,
1057
+ };
1058
+
972
1059
  export {
973
1060
  Agent as Agent,
974
1061
  type AgentCreateResponse as AgentCreateResponse,
@@ -1011,4 +1098,13 @@ export declare namespace Roark {
1011
1098
  type WebhookCreateParams as WebhookCreateParams,
1012
1099
  type WebhookListParams as WebhookListParams,
1013
1100
  };
1101
+
1102
+ export {
1103
+ Config as Config,
1104
+ type Bundle as Bundle,
1105
+ type ConfigApplyResponse as ConfigApplyResponse,
1106
+ type ConfigDiffResponse as ConfigDiffResponse,
1107
+ type ConfigApplyParams as ConfigApplyParams,
1108
+ type ConfigDiffParams as ConfigDiffParams,
1109
+ };
1014
1110
  }
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
40
40
  : T extends (...args: infer A) => unknown ? A
41
41
  : never;
42
42
 
43
- /* eslint-disable */
44
43
  /**
45
44
  * These imports attempt to get types from a parent package's dependencies.
46
45
  * Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
63
62
  *
64
63
  * [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
65
64
  */
66
- /** @ts-ignore For users with \@types/node */
65
+ /** @ts-ignore For users with \@types/node */ /* prettier-ignore */
67
66
  type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
68
- /** @ts-ignore For users with undici */
67
+ /** @ts-ignore For users with undici */ /* prettier-ignore */
69
68
  type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
70
- /** @ts-ignore For users with \@types/bun */
69
+ /** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
71
70
  type BunRequestInit = globalThis.FetchRequestInit;
72
- /** @ts-ignore For users with node-fetch@2 */
71
+ /** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
73
72
  type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
74
- /** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
73
+ /** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
75
74
  type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
76
- /** @ts-ignore For users who use Deno */
75
+ /** @ts-ignore For users who use Deno */ /* prettier-ignore */
77
76
  type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
78
- /* eslint-enable */
79
77
 
80
78
  type RequestInits =
81
79
  | NotAny<UndiciTypesRequestInit>
@@ -107,6 +107,8 @@ export const formatRequestDetails = (details: {
107
107
  name,
108
108
  (
109
109
  name.toLowerCase() === 'authorization' ||
110
+ name.toLowerCase() === 'api-key' ||
111
+ name.toLowerCase() === 'x-api-key' ||
110
112
  name.toLowerCase() === 'cookie' ||
111
113
  name.toLowerCase() === 'set-cookie'
112
114
  ) ?
@@ -93,7 +93,15 @@ export namespace AgentEndpointCreateResponse {
93
93
  /**
94
94
  * Agent endpoint type (PHONE, WEBSOCKET, LIVEKIT, SMALL_WEBRTC, or ELEVENLABS_WS)
95
95
  */
96
- type: 'PHONE' | 'WEBSOCKET' | 'LIVEKIT' | 'SMALL_WEBRTC' | 'ELEVENLABS_WS' | 'KORE' | 'GOOGLE_CES';
96
+ type:
97
+ | 'PHONE'
98
+ | 'WEBSOCKET'
99
+ | 'LIVEKIT'
100
+ | 'SMALL_WEBRTC'
101
+ | 'ELEVENLABS_WS'
102
+ | 'KORE'
103
+ | 'GOOGLE_CES'
104
+ | 'DAILY';
97
105
 
98
106
  /**
99
107
  * Last update timestamp
@@ -157,7 +165,15 @@ export namespace AgentEndpointUpdateResponse {
157
165
  /**
158
166
  * Agent endpoint type (PHONE, WEBSOCKET, LIVEKIT, SMALL_WEBRTC, or ELEVENLABS_WS)
159
167
  */
160
- type: 'PHONE' | 'WEBSOCKET' | 'LIVEKIT' | 'SMALL_WEBRTC' | 'ELEVENLABS_WS' | 'KORE' | 'GOOGLE_CES';
168
+ type:
169
+ | 'PHONE'
170
+ | 'WEBSOCKET'
171
+ | 'LIVEKIT'
172
+ | 'SMALL_WEBRTC'
173
+ | 'ELEVENLABS_WS'
174
+ | 'KORE'
175
+ | 'GOOGLE_CES'
176
+ | 'DAILY';
161
177
 
162
178
  /**
163
179
  * Last update timestamp
@@ -220,7 +236,15 @@ export namespace AgentEndpointListResponse {
220
236
  /**
221
237
  * Agent endpoint type (PHONE, WEBSOCKET, LIVEKIT, SMALL_WEBRTC, or ELEVENLABS_WS)
222
238
  */
223
- type: 'PHONE' | 'WEBSOCKET' | 'LIVEKIT' | 'SMALL_WEBRTC' | 'ELEVENLABS_WS' | 'KORE' | 'GOOGLE_CES';
239
+ type:
240
+ | 'PHONE'
241
+ | 'WEBSOCKET'
242
+ | 'LIVEKIT'
243
+ | 'SMALL_WEBRTC'
244
+ | 'ELEVENLABS_WS'
245
+ | 'KORE'
246
+ | 'GOOGLE_CES'
247
+ | 'DAILY';
224
248
 
225
249
  /**
226
250
  * Last update timestamp
@@ -301,7 +325,15 @@ export namespace AgentEndpointGetByIDResponse {
301
325
  /**
302
326
  * Agent endpoint type (PHONE, WEBSOCKET, LIVEKIT, SMALL_WEBRTC, or ELEVENLABS_WS)
303
327
  */
304
- type: 'PHONE' | 'WEBSOCKET' | 'LIVEKIT' | 'SMALL_WEBRTC' | 'ELEVENLABS_WS' | 'KORE' | 'GOOGLE_CES';
328
+ type:
329
+ | 'PHONE'
330
+ | 'WEBSOCKET'
331
+ | 'LIVEKIT'
332
+ | 'SMALL_WEBRTC'
333
+ | 'ELEVENLABS_WS'
334
+ | 'KORE'
335
+ | 'GOOGLE_CES'
336
+ | 'DAILY';
305
337
 
306
338
  /**
307
339
  * Last update timestamp