@roarkanalytics/sdk 3.11.0 → 3.12.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 +24 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-prompt.d.mts +129 -0
- package/resources/agent-prompt.d.mts.map +1 -0
- package/resources/agent-prompt.d.ts +129 -0
- package/resources/agent-prompt.d.ts.map +1 -0
- package/resources/agent-prompt.js +58 -0
- package/resources/agent-prompt.js.map +1 -0
- package/resources/agent-prompt.mjs +54 -0
- package/resources/agent-prompt.mjs.map +1 -0
- package/resources/call.d.mts +1 -1
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +1 -1
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +166 -18
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +166 -18
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow-edge-case.d.mts +72 -9
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +72 -9
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +2005 -78
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +2005 -78
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/customer-flow.js +18 -0
- package/resources/customer-flow.js.map +1 -1
- package/resources/customer-flow.mjs +18 -0
- package/resources/customer-flow.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-environment.d.mts +163 -1
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +163 -1
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-environment.js +51 -0
- package/resources/simulation-environment.js.map +1 -1
- package/resources/simulation-environment.mjs +51 -0
- package/resources/simulation-environment.mjs.map +1 -1
- package/resources/simulation-job.d.mts +62 -2
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +62 -2
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +42 -6
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +42 -6
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +31 -1
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +31 -1
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +64 -0
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +64 -0
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +10 -0
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +10 -0
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +17 -1
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +17 -1
- package/resources/simulation.d.ts.map +1 -1
- package/src/client.ts +33 -0
- package/src/resources/agent-prompt.ts +183 -0
- package/src/resources/call.ts +1 -1
- package/src/resources/config.ts +310 -20
- package/src/resources/customer-flow-edge-case.ts +180 -9
- package/src/resources/customer-flow.ts +3091 -63
- package/src/resources/index.ts +15 -0
- package/src/resources/simulation-environment.ts +244 -0
- package/src/resources/simulation-job.ts +92 -2
- package/src/resources/simulation-persona.ts +108 -6
- package/src/resources/simulation-run-plan-job.ts +39 -1
- package/src/resources/simulation-run-plan.ts +74 -0
- package/src/resources/simulation-template.ts +11 -0
- package/src/resources/simulation.ts +18 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -67,6 +67,24 @@ class CustomerFlow extends resource_1.APIResource {
|
|
|
67
67
|
delete(flowID, options) {
|
|
68
68
|
return this._client.delete((0, path_1.path) `/v1/customer-flow/${flowID}`, options);
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Deep-copies a flow into a new project-owned flow. The copy carries the source's
|
|
72
|
+
* description, branching mode, linked agents, flow-level expectations and
|
|
73
|
+
* flow-owned metrics. A scripted flow copies its whole step graph; an improv flow
|
|
74
|
+
* copies its variants (personas, briefs, expectations). Duplicating a
|
|
75
|
+
* Roark-managed flow is how you customise it. Voicemail flows are Roark-managed
|
|
76
|
+
* and cannot be duplicated.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const response = await client.customerFlow.duplicate(
|
|
81
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
82
|
+
* );
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
duplicate(flowID, body = {}, options) {
|
|
86
|
+
return this._client.post((0, path_1.path) `/v1/customer-flow/${flowID}/duplicate`, { body, ...options });
|
|
87
|
+
}
|
|
70
88
|
/**
|
|
71
89
|
* Returns a customer flow with its happy path, edge cases, expectations and linked
|
|
72
90
|
* agents. Scripted flows also carry their step graph.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-flow.js","sourceRoot":"","sources":["../src/resources/customer-flow.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IA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E,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAY,CACV,MAAc,EACd,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,eAAe,CACb,MAAc,EACd,OAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AAnKD,oCAmKC"}
|
|
@@ -64,6 +64,24 @@ export class CustomerFlow extends APIResource {
|
|
|
64
64
|
delete(flowID, options) {
|
|
65
65
|
return this._client.delete(path `/v1/customer-flow/${flowID}`, options);
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Deep-copies a flow into a new project-owned flow. The copy carries the source's
|
|
69
|
+
* description, branching mode, linked agents, flow-level expectations and
|
|
70
|
+
* flow-owned metrics. A scripted flow copies its whole step graph; an improv flow
|
|
71
|
+
* copies its variants (personas, briefs, expectations). Duplicating a
|
|
72
|
+
* Roark-managed flow is how you customise it. Voicemail flows are Roark-managed
|
|
73
|
+
* and cannot be duplicated.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const response = await client.customerFlow.duplicate(
|
|
78
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
79
|
+
* );
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
duplicate(flowID, body = {}, options) {
|
|
83
|
+
return this._client.post(path `/v1/customer-flow/${flowID}/duplicate`, { body, ...options });
|
|
84
|
+
}
|
|
67
85
|
/**
|
|
68
86
|
* Returns a customer flow with its happy path, edge cases, expectations and linked
|
|
69
87
|
* agents. Scripted flows also carry their step graph.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-flow.mjs","sourceRoot":"","sources":["../src/resources/customer-flow.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,OAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAA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AC,GAAG,CAAC,IAAI,CAAA,qBAAqB,MAAM,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { Agent, type AgentCreateResponse, type AgentUpdateResponse, type AgentListResponse, type AgentGetByIDResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, } from "./agent.mjs";
|
|
2
2
|
export { AgentEndpoint, type AgentEndpointCreateResponse, type AgentEndpointUpdateResponse, type AgentEndpointListResponse, type AgentEndpointGetByIDResponse, type AgentEndpointCreateParams, type AgentEndpointUpdateParams, type AgentEndpointListParams, } from "./agent-endpoint.mjs";
|
|
3
|
+
export { AgentPrompt, type AgentPromptUpdateResponse, type AgentPromptListResponse, type AgentPromptListVersionsResponse, type AgentPromptUpdateParams, type AgentPromptListVersionsParams, } from "./agent-prompt.mjs";
|
|
3
4
|
export { Call, type CallCreateResponse, type CallListResponse, type CallAppendToolInvocationsResponse, type CallGetByIDResponse, type CallGetTranscriptResponse, type CallListMetricsResponse, type CallListSentimentRunsResponse, type CallCreateParams, type CallListParams, type CallAppendToolInvocationsParams, type CallGetTranscriptParams, type CallListMetricsParams, } from "./call.mjs";
|
|
4
5
|
export { Config, type Bundle, type ConfigFlowStep, type ConfigApplyResponse, type ConfigDiffResponse, type ConfigApplyParams, type ConfigDiffParams, } from "./config.mjs";
|
|
5
|
-
export { CustomerFlow, type FlowStep, type CustomerFlowCreateResponse, type CustomerFlowUpdateResponse, type CustomerFlowListResponse, type CustomerFlowDeleteResponse, type CustomerFlowGetByIDResponse, type CustomerFlowReplaceGraphResponse, type CustomerFlowUpdateHappyPathResponse, type CustomerFlowCreateParams, type CustomerFlowUpdateParams, type CustomerFlowListParams, type CustomerFlowReplaceGraphParams, type CustomerFlowUpdateHappyPathParams, } from "./customer-flow.mjs";
|
|
6
|
+
export { CustomerFlow, type FlowStep, type CustomerFlowCreateResponse, type CustomerFlowUpdateResponse, type CustomerFlowListResponse, type CustomerFlowDeleteResponse, type CustomerFlowDuplicateResponse, type CustomerFlowGetByIDResponse, type CustomerFlowReplaceGraphResponse, type CustomerFlowUpdateHappyPathResponse, type CustomerFlowCreateParams, type CustomerFlowUpdateParams, type CustomerFlowListParams, type CustomerFlowDuplicateParams, type CustomerFlowReplaceGraphParams, type CustomerFlowUpdateHappyPathParams, } from "./customer-flow.mjs";
|
|
6
7
|
export { CustomerFlowEdgeCase, type CustomerFlowEdgeCaseUpdateResponse, type CustomerFlowEdgeCaseAddResponse, type CustomerFlowEdgeCasePromoteResponse, type CustomerFlowEdgeCaseRemoveResponse, type CustomerFlowEdgeCaseUpdateParams, type CustomerFlowEdgeCaseAddParams, type CustomerFlowEdgeCasePromoteParams, type CustomerFlowEdgeCaseRemoveParams, } from "./customer-flow-edge-case.mjs";
|
|
7
8
|
export { HTTPRequestDefinition, type HTTPRequestDefinitionCreateResponse, type HTTPRequestDefinitionUpdateResponse, type HTTPRequestDefinitionListResponse, type HTTPRequestDefinitionGetByIDResponse, type HTTPRequestDefinitionCreateParams, type HTTPRequestDefinitionUpdateParams, type HTTPRequestDefinitionListParams, } from "./http-request-definition.mjs";
|
|
8
9
|
export { Health, type HealthGetResponse } from "./health.mjs";
|
|
@@ -11,7 +12,7 @@ export { MetricCollectionJob, type MetricCollectionJobCreateResponse, type Metri
|
|
|
11
12
|
export { MetricPolicy, type MetricPolicyCreateResponse, type MetricPolicyUpdateResponse, type MetricPolicyListResponse, type MetricPolicyDeleteResponse, type MetricPolicyGetByIDResponse, type MetricPolicyCreateParams, type MetricPolicyUpdateParams, type MetricPolicyListParams, } from "./metric-policy.mjs";
|
|
12
13
|
export { MetricVariant, type MetricVariantCreateResponse, type MetricVariantUpdateResponse, type MetricVariantListResponse, type MetricVariantDeleteResponse, type MetricVariantGetByIDResponse, type MetricVariantCreateParams, type MetricVariantUpdateParams, type MetricVariantDeleteParams, type MetricVariantGetByIDParams, } from "./metric-variant.mjs";
|
|
13
14
|
export { Simulation, type SimulationRunResponse, type SimulationRunParams } from "./simulation.mjs";
|
|
14
|
-
export { SimulationEnvironment, type SimulationEnvironmentListResponse, type SimulationEnvironmentGetByIDResponse, type SimulationEnvironmentListParams, } from "./simulation-environment.mjs";
|
|
15
|
+
export { SimulationEnvironment, type SimulationEnvironmentCreateResponse, type SimulationEnvironmentUpdateResponse, type SimulationEnvironmentListResponse, type SimulationEnvironmentDeleteResponse, type SimulationEnvironmentGetByIDResponse, type SimulationEnvironmentCreateParams, type SimulationEnvironmentUpdateParams, type SimulationEnvironmentListParams, } from "./simulation-environment.mjs";
|
|
15
16
|
export { SimulationJob, type SimulationJobGetByIDResponse, type SimulationJobLookupResponse, type SimulationJobLookupParams, } from "./simulation-job.mjs";
|
|
16
17
|
export { SimulationPersona, type SimulationPersonaCreateResponse, type SimulationPersonaUpdateResponse, type SimulationPersonaListResponse, type SimulationPersonaGetByIDResponse, type SimulationPersonaCreateParams, type SimulationPersonaUpdateParams, type SimulationPersonaListParams, } from "./simulation-persona.mjs";
|
|
17
18
|
export { SimulationRunPlan, type SimulationRunPlanCreateResponse, type SimulationRunPlanUpdateResponse, type SimulationRunPlanListResponse, type SimulationRunPlanDeleteResponse, type SimulationRunPlanGetByIDResponse, type SimulationRunPlanCreateParams, type SimulationRunPlanUpdateParams, type SimulationRunPlanListParams, } from "./simulation-run-plan.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,oBAAgB;AACjB,OAAO,EACL,aAAa,EACb,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAA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AClC,KAAK,2BAA2B,GACjC,iCAA6B;AAC9B,OAAO,EACL,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,kCAA8B;AAC/B,OAAO,EACL,oBAAoB,EACpB,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,GACrC,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAE,KAAK,8BAA8B,EAAE,kCAA8B;AAChG,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,sBAAkB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,oBAAgB;AACjB,OAAO,EACL,aAAa,EACb,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,6BAAyB;AAC1B,OAAO,EACL,WAAW,EACX,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,GACnC,2BAAuB;AACxB,OAAO,EACL,IAAI,EACJ,KAAK,kBAAkB,E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AK,2BAA2B,GACjC,iCAA6B;AAC9B,OAAO,EACL,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,kCAA8B;AAC/B,OAAO,EACL,oBAAoB,EACpB,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,GACrC,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAE,KAAK,8BAA8B,EAAE,kCAA8B;AAChG,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,sBAAkB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { Agent, type AgentCreateResponse, type AgentUpdateResponse, type AgentListResponse, type AgentGetByIDResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, } from "./agent.js";
|
|
2
2
|
export { AgentEndpoint, type AgentEndpointCreateResponse, type AgentEndpointUpdateResponse, type AgentEndpointListResponse, type AgentEndpointGetByIDResponse, type AgentEndpointCreateParams, type AgentEndpointUpdateParams, type AgentEndpointListParams, } from "./agent-endpoint.js";
|
|
3
|
+
export { AgentPrompt, type AgentPromptUpdateResponse, type AgentPromptListResponse, type AgentPromptListVersionsResponse, type AgentPromptUpdateParams, type AgentPromptListVersionsParams, } from "./agent-prompt.js";
|
|
3
4
|
export { Call, type CallCreateResponse, type CallListResponse, type CallAppendToolInvocationsResponse, type CallGetByIDResponse, type CallGetTranscriptResponse, type CallListMetricsResponse, type CallListSentimentRunsResponse, type CallCreateParams, type CallListParams, type CallAppendToolInvocationsParams, type CallGetTranscriptParams, type CallListMetricsParams, } from "./call.js";
|
|
4
5
|
export { Config, type Bundle, type ConfigFlowStep, type ConfigApplyResponse, type ConfigDiffResponse, type ConfigApplyParams, type ConfigDiffParams, } from "./config.js";
|
|
5
|
-
export { CustomerFlow, type FlowStep, type CustomerFlowCreateResponse, type CustomerFlowUpdateResponse, type CustomerFlowListResponse, type CustomerFlowDeleteResponse, type CustomerFlowGetByIDResponse, type CustomerFlowReplaceGraphResponse, type CustomerFlowUpdateHappyPathResponse, type CustomerFlowCreateParams, type CustomerFlowUpdateParams, type CustomerFlowListParams, type CustomerFlowReplaceGraphParams, type CustomerFlowUpdateHappyPathParams, } from "./customer-flow.js";
|
|
6
|
+
export { CustomerFlow, type FlowStep, type CustomerFlowCreateResponse, type CustomerFlowUpdateResponse, type CustomerFlowListResponse, type CustomerFlowDeleteResponse, type CustomerFlowDuplicateResponse, type CustomerFlowGetByIDResponse, type CustomerFlowReplaceGraphResponse, type CustomerFlowUpdateHappyPathResponse, type CustomerFlowCreateParams, type CustomerFlowUpdateParams, type CustomerFlowListParams, type CustomerFlowDuplicateParams, type CustomerFlowReplaceGraphParams, type CustomerFlowUpdateHappyPathParams, } from "./customer-flow.js";
|
|
6
7
|
export { CustomerFlowEdgeCase, type CustomerFlowEdgeCaseUpdateResponse, type CustomerFlowEdgeCaseAddResponse, type CustomerFlowEdgeCasePromoteResponse, type CustomerFlowEdgeCaseRemoveResponse, type CustomerFlowEdgeCaseUpdateParams, type CustomerFlowEdgeCaseAddParams, type CustomerFlowEdgeCasePromoteParams, type CustomerFlowEdgeCaseRemoveParams, } from "./customer-flow-edge-case.js";
|
|
7
8
|
export { HTTPRequestDefinition, type HTTPRequestDefinitionCreateResponse, type HTTPRequestDefinitionUpdateResponse, type HTTPRequestDefinitionListResponse, type HTTPRequestDefinitionGetByIDResponse, type HTTPRequestDefinitionCreateParams, type HTTPRequestDefinitionUpdateParams, type HTTPRequestDefinitionListParams, } from "./http-request-definition.js";
|
|
8
9
|
export { Health, type HealthGetResponse } from "./health.js";
|
|
@@ -11,7 +12,7 @@ export { MetricCollectionJob, type MetricCollectionJobCreateResponse, type Metri
|
|
|
11
12
|
export { MetricPolicy, type MetricPolicyCreateResponse, type MetricPolicyUpdateResponse, type MetricPolicyListResponse, type MetricPolicyDeleteResponse, type MetricPolicyGetByIDResponse, type MetricPolicyCreateParams, type MetricPolicyUpdateParams, type MetricPolicyListParams, } from "./metric-policy.js";
|
|
12
13
|
export { MetricVariant, type MetricVariantCreateResponse, type MetricVariantUpdateResponse, type MetricVariantListResponse, type MetricVariantDeleteResponse, type MetricVariantGetByIDResponse, type MetricVariantCreateParams, type MetricVariantUpdateParams, type MetricVariantDeleteParams, type MetricVariantGetByIDParams, } from "./metric-variant.js";
|
|
13
14
|
export { Simulation, type SimulationRunResponse, type SimulationRunParams } from "./simulation.js";
|
|
14
|
-
export { SimulationEnvironment, type SimulationEnvironmentListResponse, type SimulationEnvironmentGetByIDResponse, type SimulationEnvironmentListParams, } from "./simulation-environment.js";
|
|
15
|
+
export { SimulationEnvironment, type SimulationEnvironmentCreateResponse, type SimulationEnvironmentUpdateResponse, type SimulationEnvironmentListResponse, type SimulationEnvironmentDeleteResponse, type SimulationEnvironmentGetByIDResponse, type SimulationEnvironmentCreateParams, type SimulationEnvironmentUpdateParams, type SimulationEnvironmentListParams, } from "./simulation-environment.js";
|
|
15
16
|
export { SimulationJob, type SimulationJobGetByIDResponse, type SimulationJobLookupResponse, type SimulationJobLookupParams, } from "./simulation-job.js";
|
|
16
17
|
export { SimulationPersona, type SimulationPersonaCreateResponse, type SimulationPersonaUpdateResponse, type SimulationPersonaListResponse, type SimulationPersonaGetByIDResponse, type SimulationPersonaCreateParams, type SimulationPersonaUpdateParams, type SimulationPersonaListParams, } from "./simulation-persona.js";
|
|
17
18
|
export { SimulationRunPlan, type SimulationRunPlanCreateResponse, type SimulationRunPlanUpdateResponse, type SimulationRunPlanListResponse, type SimulationRunPlanDeleteResponse, type SimulationRunPlanGetByIDResponse, type SimulationRunPlanCreateParams, type SimulationRunPlanUpdateParams, type SimulationRunPlanListParams, } from "./simulation-run-plan.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,mBAAgB;AACjB,OAAO,EACL,aAAa,EACb,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,4BAAyB;AAC1B,OAAO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iCAAiC,EACtC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B,kBAAe;AAChB,OAAO,EACL,MAAM,EACN,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,oBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,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AAK,0BAA0B,GAChC,4BAAyB;AAC1B,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,wBAAqB;AAChG,OAAO,EACL,qBAAqB,EACrB,KAAK,iCAAiC,EACtC,KAAK,oCAAoC,EACzC,KAAK,+BAA+B,GACrC,oCAAiC;AAClC,OAAO,EACL,aAAa,EACb,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B,4BAAyB;AAC1B,OAAO,EACL,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,gCAA6B;AAC9B,OAAO,EACL,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,iCAA8B;AAC/B,OAAO,EACL,oBAAoB,EACpB,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,GACrC,qCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAE,KAAK,8BAA8B,EAAE,iCAA8B;AAChG,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,qBAAkB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,K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AChG,OAAO,EACL,qBAAqB,EACrB,KAAK,mCAAmC,EACxC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,oCAAiC;AAClC,OAAO,EACL,aAAa,EACb,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B,4BAAyB;AAC1B,OAAO,EACL,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,gCAA6B;AAC9B,OAAO,EACL,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,iCAA8B;AAC/B,OAAO,EACL,oBAAoB,EACpB,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,GACrC,qCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAE,KAAK,8BAA8B,EAAE,iCAA8B;AAChG,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,qBAAkB"}
|
package/resources/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Webhook = exports.SimulationTemplate = exports.SimulationRunPlanJob = exports.SimulationRunPlan = exports.SimulationPersona = exports.SimulationJob = exports.SimulationEnvironment = exports.Simulation = exports.MetricVariant = exports.MetricPolicy = exports.MetricCollectionJob = exports.Metric = exports.Health = exports.HTTPRequestDefinition = exports.CustomerFlowEdgeCase = exports.CustomerFlow = exports.Config = exports.Call = exports.AgentEndpoint = exports.Agent = void 0;
|
|
4
|
+
exports.Webhook = exports.SimulationTemplate = exports.SimulationRunPlanJob = exports.SimulationRunPlan = exports.SimulationPersona = exports.SimulationJob = exports.SimulationEnvironment = exports.Simulation = exports.MetricVariant = exports.MetricPolicy = exports.MetricCollectionJob = exports.Metric = exports.Health = exports.HTTPRequestDefinition = exports.CustomerFlowEdgeCase = exports.CustomerFlow = exports.Config = exports.Call = exports.AgentPrompt = exports.AgentEndpoint = exports.Agent = void 0;
|
|
5
5
|
var agent_1 = require("./agent.js");
|
|
6
6
|
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
7
7
|
var agent_endpoint_1 = require("./agent-endpoint.js");
|
|
8
8
|
Object.defineProperty(exports, "AgentEndpoint", { enumerable: true, get: function () { return agent_endpoint_1.AgentEndpoint; } });
|
|
9
|
+
var agent_prompt_1 = require("./agent-prompt.js");
|
|
10
|
+
Object.defineProperty(exports, "AgentPrompt", { enumerable: true, get: function () { return agent_prompt_1.AgentPrompt; } });
|
|
9
11
|
var call_1 = require("./call.js");
|
|
10
12
|
Object.defineProperty(exports, "Call", { enumerable: true, get: function () { return call_1.Call; } });
|
|
11
13
|
var config_1 = require("./config.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,sDAS0B;AARxB,+GAAA,aAAa,OAAA;AASf,kCAcgB;AAbd,4FAAA,IAAI,OAAA;AAcN,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,sDAS0B;AARxB,+GAAA,aAAa,OAAA;AASf,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,kCAcgB;AAbd,4FAAA,IAAI,OAAA;AAcN,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oDAiByB;AAhBvB,6GAAA,YAAY,OAAA;AAiBd,wEAUmC;AATjC,+HAAA,oBAAoB,OAAA;AAUtB,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oEAOiC;AAN/B,4HAAA,mBAAmB,OAAA;AAOrB,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,sDAW0B;AAVxB,+GAAA,aAAa,OAAA;AAWf,8CAAgG;AAAvF,wGAAA,UAAU,OAAA;AACnB,sEAUkC;AAThC,+HAAA,qBAAqB,OAAA;AAUvB,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,8DAS8B;AAR5B,uHAAA,iBAAiB,OAAA;AASnB,gEAU+B;AAT7B,wHAAA,iBAAiB,OAAA;AAUnB,wEAOmC;AANjC,+HAAA,oBAAoB,OAAA;AAOtB,gEAAgG;AAAvF,yHAAA,kBAAkB,OAAA;AAC3B,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Agent, } from "./agent.mjs";
|
|
3
3
|
export { AgentEndpoint, } from "./agent-endpoint.mjs";
|
|
4
|
+
export { AgentPrompt, } from "./agent-prompt.mjs";
|
|
4
5
|
export { Call, } from "./call.mjs";
|
|
5
6
|
export { Config, } from "./config.mjs";
|
|
6
7
|
export { CustomerFlow, } from "./customer-flow.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAQN,oBAAgB;AACjB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,IAAI,GAaL,mBAAe;AAChB,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAQN,oBAAgB;AACjB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,IAAI,GAaL,mBAAe;AAChB,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,YAAY,GAgBb,4BAAwB;AACzB,OAAO,EACL,oBAAoB,GASrB,sCAAkC;AACnC,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EAAE,MAAM,EAA0B,qBAAiB;AAC1D,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,mBAAmB,GAMpB,oCAAgC;AACjC,OAAO,EACL,YAAY,GASb,4BAAwB;AACzB,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,EAAE,UAAU,EAAwD,yBAAqB;AAChG,OAAO,EACL,qBAAqB,GAStB,qCAAiC;AAClC,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,EACL,iBAAiB,GAQlB,iCAA6B;AAC9B,OAAO,EACL,iBAAiB,GASlB,kCAA8B;AAC/B,OAAO,EACL,oBAAoB,GAMrB,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAuC,kCAA8B;AAChG,OAAO,EACL,OAAO,GAOR,sBAAkB"}
|
|
@@ -2,6 +2,36 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class SimulationEnvironment extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates an environment for the project: a noise bed and the level it plays at.
|
|
7
|
+
* Reference it by id when setting a customer flow variant's environment. Roark's
|
|
8
|
+
* curated presets always play at the default level, so this is how a project gets
|
|
9
|
+
* the same bed louder or quieter.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const simulationEnvironment =
|
|
14
|
+
* await client.simulationEnvironment.create({
|
|
15
|
+
* backgroundNoise: 'OFFICE',
|
|
16
|
+
* name: 'Busy call centre',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body: SimulationEnvironmentCreateParams, options?: RequestOptions): APIPromise<SimulationEnvironmentCreateResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Updates one of the project's environments. Only the fields sent are changed.
|
|
23
|
+
* Runs already built keep the snapshot they were built with. Roark-curated
|
|
24
|
+
* environments cannot be edited (403).
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const simulationEnvironment =
|
|
29
|
+
* await client.simulationEnvironment.update(
|
|
30
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
update(environmentID: string, body?: SimulationEnvironmentUpdateParams | null | undefined, options?: RequestOptions): APIPromise<SimulationEnvironmentUpdateResponse>;
|
|
5
35
|
/**
|
|
6
36
|
* Returns a paginated list of environments: the project's own plus the
|
|
7
37
|
* environments Roark curates and shares across every project. Reference one by id
|
|
@@ -14,6 +44,21 @@ export declare class SimulationEnvironment extends APIResource {
|
|
|
14
44
|
* ```
|
|
15
45
|
*/
|
|
16
46
|
list(query?: SimulationEnvironmentListParams | null | undefined, options?: RequestOptions): APIPromise<SimulationEnvironmentListResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Soft-deletes one of the project's environments. It disappears from reads and
|
|
49
|
+
* cannot be picked for new runs; runs already built keep their snapshot. Refused
|
|
50
|
+
* (409) while a live customer flow variant still uses it: move those variants
|
|
51
|
+
* first. Roark-curated environments cannot be deleted (403).
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const simulationEnvironment =
|
|
56
|
+
* await client.simulationEnvironment.delete(
|
|
57
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
delete(environmentID: string, options?: RequestOptions): APIPromise<SimulationEnvironmentDeleteResponse>;
|
|
17
62
|
/**
|
|
18
63
|
* Returns a single environment by its ID.
|
|
19
64
|
*
|
|
@@ -26,6 +71,66 @@ export declare class SimulationEnvironment extends APIResource {
|
|
|
26
71
|
*/
|
|
27
72
|
getByID(environmentID: string, options?: RequestOptions): APIPromise<SimulationEnvironmentGetByIDResponse>;
|
|
28
73
|
}
|
|
74
|
+
export interface SimulationEnvironmentCreateResponse {
|
|
75
|
+
/**
|
|
76
|
+
* A simulation environment: the ambient conditions a customer flow variant runs
|
|
77
|
+
* under. The list includes both your own and the ones Roark curates for every
|
|
78
|
+
* project.
|
|
79
|
+
*/
|
|
80
|
+
data: SimulationEnvironmentCreateResponse.Data;
|
|
81
|
+
}
|
|
82
|
+
export declare namespace SimulationEnvironmentCreateResponse {
|
|
83
|
+
/**
|
|
84
|
+
* A simulation environment: the ambient conditions a customer flow variant runs
|
|
85
|
+
* under. The list includes both your own and the ones Roark curates for every
|
|
86
|
+
* project.
|
|
87
|
+
*/
|
|
88
|
+
interface Data {
|
|
89
|
+
id: string;
|
|
90
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
91
|
+
backgroundNoiseVolume: number;
|
|
92
|
+
/**
|
|
93
|
+
* Creation timestamp in ISO 8601 format
|
|
94
|
+
*/
|
|
95
|
+
createdAt: string;
|
|
96
|
+
name: string;
|
|
97
|
+
/**
|
|
98
|
+
* Last update timestamp in ISO 8601 format
|
|
99
|
+
*/
|
|
100
|
+
updatedAt: string;
|
|
101
|
+
description?: string | null;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
export interface SimulationEnvironmentUpdateResponse {
|
|
105
|
+
/**
|
|
106
|
+
* A simulation environment: the ambient conditions a customer flow variant runs
|
|
107
|
+
* under. The list includes both your own and the ones Roark curates for every
|
|
108
|
+
* project.
|
|
109
|
+
*/
|
|
110
|
+
data: SimulationEnvironmentUpdateResponse.Data;
|
|
111
|
+
}
|
|
112
|
+
export declare namespace SimulationEnvironmentUpdateResponse {
|
|
113
|
+
/**
|
|
114
|
+
* A simulation environment: the ambient conditions a customer flow variant runs
|
|
115
|
+
* under. The list includes both your own and the ones Roark curates for every
|
|
116
|
+
* project.
|
|
117
|
+
*/
|
|
118
|
+
interface Data {
|
|
119
|
+
id: string;
|
|
120
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
121
|
+
backgroundNoiseVolume: number;
|
|
122
|
+
/**
|
|
123
|
+
* Creation timestamp in ISO 8601 format
|
|
124
|
+
*/
|
|
125
|
+
createdAt: string;
|
|
126
|
+
name: string;
|
|
127
|
+
/**
|
|
128
|
+
* Last update timestamp in ISO 8601 format
|
|
129
|
+
*/
|
|
130
|
+
updatedAt: string;
|
|
131
|
+
description?: string | null;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
29
134
|
/**
|
|
30
135
|
* Paginated list of environments: the project's own plus the shared Roark-curated
|
|
31
136
|
* ones
|
|
@@ -43,6 +148,7 @@ export declare namespace SimulationEnvironmentListResponse {
|
|
|
43
148
|
interface Data {
|
|
44
149
|
id: string;
|
|
45
150
|
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
151
|
+
backgroundNoiseVolume: number;
|
|
46
152
|
/**
|
|
47
153
|
* Creation timestamp in ISO 8601 format
|
|
48
154
|
*/
|
|
@@ -69,6 +175,21 @@ export declare namespace SimulationEnvironmentListResponse {
|
|
|
69
175
|
total: number;
|
|
70
176
|
}
|
|
71
177
|
}
|
|
178
|
+
export interface SimulationEnvironmentDeleteResponse {
|
|
179
|
+
data: SimulationEnvironmentDeleteResponse.Data;
|
|
180
|
+
}
|
|
181
|
+
export declare namespace SimulationEnvironmentDeleteResponse {
|
|
182
|
+
interface Data {
|
|
183
|
+
/**
|
|
184
|
+
* Unique identifier of the deleted environment
|
|
185
|
+
*/
|
|
186
|
+
id: string;
|
|
187
|
+
/**
|
|
188
|
+
* Always true when the environment was deleted
|
|
189
|
+
*/
|
|
190
|
+
deleted: true;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
72
193
|
export interface SimulationEnvironmentGetByIDResponse {
|
|
73
194
|
/**
|
|
74
195
|
* A simulation environment: the ambient conditions a customer flow variant runs
|
|
@@ -86,6 +207,7 @@ export declare namespace SimulationEnvironmentGetByIDResponse {
|
|
|
86
207
|
interface Data {
|
|
87
208
|
id: string;
|
|
88
209
|
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
210
|
+
backgroundNoiseVolume: number;
|
|
89
211
|
/**
|
|
90
212
|
* Creation timestamp in ISO 8601 format
|
|
91
213
|
*/
|
|
@@ -98,11 +220,51 @@ export declare namespace SimulationEnvironmentGetByIDResponse {
|
|
|
98
220
|
description?: string | null;
|
|
99
221
|
}
|
|
100
222
|
}
|
|
223
|
+
export interface SimulationEnvironmentCreateParams {
|
|
224
|
+
/**
|
|
225
|
+
* The noise bed played underneath the simulated caller. NONE plays nothing.
|
|
226
|
+
*/
|
|
227
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
228
|
+
/**
|
|
229
|
+
* Display name, shown wherever a flow variant references the environment
|
|
230
|
+
*/
|
|
231
|
+
name: string;
|
|
232
|
+
/**
|
|
233
|
+
* How loud the bed plays, as a gain from 0 (silent) to 1 (as loud as the caller).
|
|
234
|
+
* Defaults to 0.1, which sits well under the caller. Ignored on Vapi endpoints,
|
|
235
|
+
* which have no level control.
|
|
236
|
+
*/
|
|
237
|
+
backgroundNoiseVolume?: number;
|
|
238
|
+
/**
|
|
239
|
+
* Optional note on when to use this environment
|
|
240
|
+
*/
|
|
241
|
+
description?: string | null;
|
|
242
|
+
}
|
|
243
|
+
export interface SimulationEnvironmentUpdateParams {
|
|
244
|
+
/**
|
|
245
|
+
* The noise bed played underneath the simulated caller. NONE plays nothing.
|
|
246
|
+
*/
|
|
247
|
+
backgroundNoise?: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
248
|
+
/**
|
|
249
|
+
* How loud the bed plays, as a gain from 0 (silent) to 1 (as loud as the caller).
|
|
250
|
+
* Defaults to 0.1, which sits well under the caller. Ignored on Vapi endpoints,
|
|
251
|
+
* which have no level control.
|
|
252
|
+
*/
|
|
253
|
+
backgroundNoiseVolume?: number;
|
|
254
|
+
/**
|
|
255
|
+
* Optional note on when to use this environment
|
|
256
|
+
*/
|
|
257
|
+
description?: string | null;
|
|
258
|
+
/**
|
|
259
|
+
* Display name, shown wherever a flow variant references the environment
|
|
260
|
+
*/
|
|
261
|
+
name?: string;
|
|
262
|
+
}
|
|
101
263
|
export interface SimulationEnvironmentListParams {
|
|
102
264
|
after?: string;
|
|
103
265
|
limit?: number;
|
|
104
266
|
}
|
|
105
267
|
export declare namespace SimulationEnvironment {
|
|
106
|
-
export { type SimulationEnvironmentListResponse as SimulationEnvironmentListResponse, type SimulationEnvironmentGetByIDResponse as SimulationEnvironmentGetByIDResponse, type SimulationEnvironmentListParams as SimulationEnvironmentListParams, };
|
|
268
|
+
export { type SimulationEnvironmentCreateResponse as SimulationEnvironmentCreateResponse, type SimulationEnvironmentUpdateResponse as SimulationEnvironmentUpdateResponse, type SimulationEnvironmentListResponse as SimulationEnvironmentListResponse, type SimulationEnvironmentDeleteResponse as SimulationEnvironmentDeleteResponse, type SimulationEnvironmentGetByIDResponse as SimulationEnvironmentGetByIDResponse, type SimulationEnvironmentCreateParams as SimulationEnvironmentCreateParams, type SimulationEnvironmentUpdateParams as SimulationEnvironmentUpdateParams, type SimulationEnvironmentListParams as SimulationEnvironmentListParams, };
|
|
107
269
|
}
|
|
108
270
|
//# sourceMappingURL=simulation-environment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation-environment.d.mts","sourceRoot":"","sources":["../src/resources/simulation-environment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAi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AC;QAElB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"simulation-environment.d.mts","sourceRoot":"","sources":["../src/resources/simulation-environment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,GAAE,iCAAiC,GAAG,IAAI,GAAG,SAAc,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mCAAmC,CAAC;IAIxG;;;;;;;;;OASG;IACH,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,OAA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