@roarkanalytics/sdk 2.31.0 → 2.33.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.
- package/CHANGELOG.md +61 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +17 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -5
- package/client.d.ts.map +1 -1
- package/client.js +35 -4
- package/client.js.map +1 -1
- package/client.mjs +35 -4
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/agent-endpoint.d.mts +4 -4
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +4 -4
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-endpoint.mjs.map +1 -1
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.mts +303 -155
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +303 -155
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +6 -7
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +6 -7
- package/resources/call.mjs.map +1 -1
- package/resources/config.d.mts +535 -0
- package/resources/config.d.mts.map +1 -0
- package/resources/config.d.ts +535 -0
- package/resources/config.d.ts.map +1 -0
- package/resources/config.js +28 -0
- package/resources/config.js.map +1 -0
- package/resources/config.mjs +24 -0
- package/resources/config.mjs.map +1 -0
- package/resources/customer-flow-edge-case.d.mts +1742 -0
- package/resources/customer-flow-edge-case.d.mts.map +1 -0
- package/resources/customer-flow-edge-case.d.ts +1742 -0
- package/resources/customer-flow-edge-case.d.ts.map +1 -0
- package/resources/customer-flow-edge-case.js +50 -0
- package/resources/customer-flow-edge-case.js.map +1 -0
- package/resources/customer-flow-edge-case.mjs +46 -0
- package/resources/customer-flow-edge-case.mjs.map +1 -0
- package/resources/customer-flow.d.mts +7163 -0
- package/resources/customer-flow.d.mts.map +1 -0
- package/resources/customer-flow.d.ts +7163 -0
- package/resources/customer-flow.d.ts.map +1 -0
- package/resources/customer-flow.js +87 -0
- package/resources/customer-flow.js.map +1 -0
- package/resources/customer-flow.mjs +83 -0
- package/resources/customer-flow.mjs.map +1 -0
- package/resources/health.d.mts.map +1 -1
- package/resources/health.d.ts.map +1 -1
- package/resources/health.mjs.map +1 -1
- package/resources/http-request-definition.d.mts.map +1 -1
- package/resources/http-request-definition.d.ts.map +1 -1
- package/resources/http-request-definition.mjs.map +1 -1
- package/resources/index.d.mts +6 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metric-collection-job.d.mts +5 -3
- package/resources/metric-collection-job.d.mts.map +1 -1
- package/resources/metric-collection-job.d.ts +5 -3
- package/resources/metric-collection-job.d.ts.map +1 -1
- package/resources/metric-collection-job.mjs.map +1 -1
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/metric-policy.mjs.map +1 -1
- package/resources/metric.d.mts +804 -109
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +804 -109
- package/resources/metric.d.ts.map +1 -1
- package/resources/metric.js +6 -7
- package/resources/metric.js.map +1 -1
- package/resources/metric.mjs +6 -7
- package/resources/metric.mjs.map +1 -1
- package/resources/simulation-environment.d.mts +95 -0
- package/resources/simulation-environment.d.mts.map +1 -0
- package/resources/simulation-environment.d.ts +95 -0
- package/resources/simulation-environment.d.ts.map +1 -0
- package/resources/simulation-environment.js +24 -0
- package/resources/simulation-environment.js.map +1 -0
- package/resources/simulation-environment.mjs +20 -0
- package/resources/simulation-environment.mjs.map +1 -0
- package/resources/simulation-job.d.mts +58 -10
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +58 -10
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-job.mjs.map +1 -1
- package/resources/simulation-persona.d.mts +60 -24
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +60 -24
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-persona.mjs.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +73 -32
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +73 -32
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.js +7 -8
- package/resources/simulation-run-plan-job.js.map +1 -1
- package/resources/simulation-run-plan-job.mjs +7 -8
- package/resources/simulation-run-plan-job.mjs.map +1 -1
- package/resources/simulation-run-plan.d.mts +408 -39
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +408 -39
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-run-plan.js +6 -11
- package/resources/simulation-run-plan.js.map +1 -1
- package/resources/simulation-run-plan.mjs +6 -11
- package/resources/simulation-run-plan.mjs.map +1 -1
- package/resources/simulation.d.mts +379 -0
- package/resources/simulation.d.mts.map +1 -0
- package/resources/simulation.d.ts +379 -0
- package/resources/simulation.d.ts.map +1 -0
- package/resources/simulation.js +33 -0
- package/resources/simulation.js.map +1 -0
- package/resources/simulation.mjs +29 -0
- package/resources/simulation.mjs.map +1 -0
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/resources/webhook.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +124 -28
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/agent-endpoint.ts +36 -4
- package/src/resources/call.ts +326 -169
- package/src/resources/config.ts +1162 -0
- package/src/resources/customer-flow-edge-case.ts +2884 -0
- package/src/resources/customer-flow.ts +11713 -0
- package/src/resources/index.ts +42 -12
- package/src/resources/metric-collection-job.ts +5 -3
- package/src/resources/metric.ts +1057 -115
- package/src/resources/simulation-environment.ts +147 -0
- package/src/resources/simulation-job.ts +122 -10
- package/src/resources/simulation-persona.ts +192 -24
- package/src/resources/simulation-run-plan-job.ts +109 -27
- package/src/resources/simulation-run-plan.ts +445 -40
- package/src/resources/simulation.ts +444 -0
- package/src/resources/webhook.ts +8 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/simulation-scenario.d.mts +0 -424
- package/resources/simulation-scenario.d.mts.map +0 -1
- package/resources/simulation-scenario.d.ts +0 -424
- package/resources/simulation-scenario.d.ts.map +0 -1
- package/resources/simulation-scenario.js +0 -40
- package/resources/simulation-scenario.js.map +0 -1
- package/resources/simulation-scenario.mjs +0 -36
- package/resources/simulation-scenario.mjs.map +0 -1
- 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
|
|
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
|
}
|
package/src/internal/types.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|