@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
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class SimulationEnvironment extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of environments: the project's own plus the
|
|
11
|
+
* environments Roark curates and shares across every project. Reference one by id
|
|
12
|
+
* when setting a customer flow variant's environment.
|
|
13
|
+
*/
|
|
14
|
+
list(
|
|
15
|
+
query: SimulationEnvironmentListParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<SimulationEnvironmentListResponse> {
|
|
18
|
+
return this._client.get('/v1/simulation/environment', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Returns a single environment by its ID.
|
|
23
|
+
*/
|
|
24
|
+
getByID(environmentID: string, options?: RequestOptions): APIPromise<SimulationEnvironmentGetByIDResponse> {
|
|
25
|
+
return this._client.get(path`/v1/simulation/environment/${environmentID}`, options);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Paginated list of environments: the project's own plus the shared Roark-curated
|
|
31
|
+
* ones
|
|
32
|
+
*/
|
|
33
|
+
export interface SimulationEnvironmentListResponse {
|
|
34
|
+
data: Array<SimulationEnvironmentListResponse.Data>;
|
|
35
|
+
|
|
36
|
+
pagination: SimulationEnvironmentListResponse.Pagination;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace SimulationEnvironmentListResponse {
|
|
40
|
+
/**
|
|
41
|
+
* A simulation environment: the ambient conditions a customer flow variant runs
|
|
42
|
+
* under. The list includes both your own and the ones Roark curates for every
|
|
43
|
+
* project.
|
|
44
|
+
*/
|
|
45
|
+
export interface Data {
|
|
46
|
+
id: string;
|
|
47
|
+
|
|
48
|
+
backgroundNoise:
|
|
49
|
+
| 'NONE'
|
|
50
|
+
| 'AIRPORT'
|
|
51
|
+
| 'CHILDREN_PLAYING'
|
|
52
|
+
| 'CITY'
|
|
53
|
+
| 'COFFEE_SHOP'
|
|
54
|
+
| 'DRIVING'
|
|
55
|
+
| 'OFFICE'
|
|
56
|
+
| 'THUNDERSTORM';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Creation timestamp in ISO 8601 format
|
|
60
|
+
*/
|
|
61
|
+
createdAt: string;
|
|
62
|
+
|
|
63
|
+
name: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Last update timestamp in ISO 8601 format
|
|
67
|
+
*/
|
|
68
|
+
updatedAt: string;
|
|
69
|
+
|
|
70
|
+
description?: string | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Pagination {
|
|
74
|
+
/**
|
|
75
|
+
* Whether there are more items to fetch
|
|
76
|
+
*/
|
|
77
|
+
hasMore: boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Cursor for the next page of items
|
|
81
|
+
*/
|
|
82
|
+
nextCursor: string | null;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Total number of items
|
|
86
|
+
*/
|
|
87
|
+
total: number;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface SimulationEnvironmentGetByIDResponse {
|
|
92
|
+
/**
|
|
93
|
+
* A simulation environment: the ambient conditions a customer flow variant runs
|
|
94
|
+
* under. The list includes both your own and the ones Roark curates for every
|
|
95
|
+
* project.
|
|
96
|
+
*/
|
|
97
|
+
data: SimulationEnvironmentGetByIDResponse.Data;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export namespace SimulationEnvironmentGetByIDResponse {
|
|
101
|
+
/**
|
|
102
|
+
* A simulation environment: the ambient conditions a customer flow variant runs
|
|
103
|
+
* under. The list includes both your own and the ones Roark curates for every
|
|
104
|
+
* project.
|
|
105
|
+
*/
|
|
106
|
+
export interface Data {
|
|
107
|
+
id: string;
|
|
108
|
+
|
|
109
|
+
backgroundNoise:
|
|
110
|
+
| 'NONE'
|
|
111
|
+
| 'AIRPORT'
|
|
112
|
+
| 'CHILDREN_PLAYING'
|
|
113
|
+
| 'CITY'
|
|
114
|
+
| 'COFFEE_SHOP'
|
|
115
|
+
| 'DRIVING'
|
|
116
|
+
| 'OFFICE'
|
|
117
|
+
| 'THUNDERSTORM';
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Creation timestamp in ISO 8601 format
|
|
121
|
+
*/
|
|
122
|
+
createdAt: string;
|
|
123
|
+
|
|
124
|
+
name: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Last update timestamp in ISO 8601 format
|
|
128
|
+
*/
|
|
129
|
+
updatedAt: string;
|
|
130
|
+
|
|
131
|
+
description?: string | null;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface SimulationEnvironmentListParams {
|
|
136
|
+
after?: string;
|
|
137
|
+
|
|
138
|
+
limit?: number;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export declare namespace SimulationEnvironment {
|
|
142
|
+
export {
|
|
143
|
+
type SimulationEnvironmentListResponse as SimulationEnvironmentListResponse,
|
|
144
|
+
type SimulationEnvironmentGetByIDResponse as SimulationEnvironmentGetByIDResponse,
|
|
145
|
+
type SimulationEnvironmentListParams as SimulationEnvironmentListParams,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
@@ -69,6 +69,8 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
69
69
|
*/
|
|
70
70
|
processingStatus: string;
|
|
71
71
|
|
|
72
|
+
runPlan: Data.RunPlan;
|
|
73
|
+
|
|
72
74
|
/**
|
|
73
75
|
* Scenario used in a simulation
|
|
74
76
|
*/
|
|
@@ -130,7 +132,15 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
130
132
|
/**
|
|
131
133
|
* Agent endpoint type
|
|
132
134
|
*/
|
|
133
|
-
type:
|
|
135
|
+
type:
|
|
136
|
+
| 'PHONE'
|
|
137
|
+
| 'WEBSOCKET'
|
|
138
|
+
| 'LIVEKIT'
|
|
139
|
+
| 'SMALL_WEBRTC'
|
|
140
|
+
| 'ELEVENLABS_WS'
|
|
141
|
+
| 'KORE'
|
|
142
|
+
| 'GOOGLE_CES'
|
|
143
|
+
| 'DAILY';
|
|
134
144
|
}
|
|
135
145
|
|
|
136
146
|
export interface Persona {
|
|
@@ -165,7 +175,8 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
165
175
|
| 'MY'
|
|
166
176
|
| 'HK'
|
|
167
177
|
| 'TR'
|
|
168
|
-
| 'PT'
|
|
178
|
+
| 'PT'
|
|
179
|
+
| 'IL';
|
|
169
180
|
|
|
170
181
|
/**
|
|
171
182
|
* Background noise setting
|
|
@@ -216,9 +227,10 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
216
227
|
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
217
228
|
|
|
218
229
|
/**
|
|
219
|
-
* Messages the persona will say when the agent goes silent during a call
|
|
230
|
+
* Messages the persona will say when the agent goes silent during a call. null =
|
|
231
|
+
* "Automatic": language-appropriate defaults are used at call time.
|
|
220
232
|
*/
|
|
221
|
-
idleMessages: Array<string
|
|
233
|
+
idleMessages: Array<string> | null;
|
|
222
234
|
|
|
223
235
|
/**
|
|
224
236
|
* Seconds of silence before the persona sends an idle message
|
|
@@ -250,7 +262,8 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
250
262
|
| 'MS'
|
|
251
263
|
| 'ZH'
|
|
252
264
|
| 'TR'
|
|
253
|
-
| 'PT'
|
|
265
|
+
| 'PT'
|
|
266
|
+
| 'HE';
|
|
254
267
|
|
|
255
268
|
/**
|
|
256
269
|
* How reliable the persona's memory is
|
|
@@ -283,6 +296,31 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
283
296
|
*/
|
|
284
297
|
speechPace: 'SUPER_SLOW' | 'SLOW' | 'NORMAL' | 'FAST' | 'SUPER_FAST';
|
|
285
298
|
|
|
299
|
+
/**
|
|
300
|
+
* Languages the persona can understand. Multilingual combinations are limited by
|
|
301
|
+
* multilingual speech recognition support.
|
|
302
|
+
*/
|
|
303
|
+
understoodLanguages: Array<
|
|
304
|
+
| 'EN'
|
|
305
|
+
| 'ES'
|
|
306
|
+
| 'DE'
|
|
307
|
+
| 'HI'
|
|
308
|
+
| 'FR'
|
|
309
|
+
| 'NL'
|
|
310
|
+
| 'AR'
|
|
311
|
+
| 'EL'
|
|
312
|
+
| 'IT'
|
|
313
|
+
| 'ID'
|
|
314
|
+
| 'TH'
|
|
315
|
+
| 'JA'
|
|
316
|
+
| 'TL'
|
|
317
|
+
| 'MS'
|
|
318
|
+
| 'ZH'
|
|
319
|
+
| 'TR'
|
|
320
|
+
| 'PT'
|
|
321
|
+
| 'HE'
|
|
322
|
+
>;
|
|
323
|
+
|
|
286
324
|
/**
|
|
287
325
|
* Last update timestamp
|
|
288
326
|
*/
|
|
@@ -304,6 +342,24 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
304
342
|
secondaryLanguage?: 'EN' | null;
|
|
305
343
|
}
|
|
306
344
|
|
|
345
|
+
export interface RunPlan {
|
|
346
|
+
/**
|
|
347
|
+
* Run plan ID
|
|
348
|
+
*/
|
|
349
|
+
id: string;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Run plan name
|
|
353
|
+
*/
|
|
354
|
+
name: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Run-plan-level variables resolved for this job, keyed by variable name. Values
|
|
358
|
+
* are stringified by their declared type.
|
|
359
|
+
*/
|
|
360
|
+
variables: { [key: string]: string };
|
|
361
|
+
}
|
|
362
|
+
|
|
307
363
|
/**
|
|
308
364
|
* Scenario used in a simulation
|
|
309
365
|
*/
|
|
@@ -350,6 +406,8 @@ export namespace SimulationJobLookupResponse {
|
|
|
350
406
|
*/
|
|
351
407
|
processingStatus: string;
|
|
352
408
|
|
|
409
|
+
runPlan: Data.RunPlan;
|
|
410
|
+
|
|
353
411
|
/**
|
|
354
412
|
* Scenario used in a simulation
|
|
355
413
|
*/
|
|
@@ -411,7 +469,15 @@ export namespace SimulationJobLookupResponse {
|
|
|
411
469
|
/**
|
|
412
470
|
* Agent endpoint type
|
|
413
471
|
*/
|
|
414
|
-
type:
|
|
472
|
+
type:
|
|
473
|
+
| 'PHONE'
|
|
474
|
+
| 'WEBSOCKET'
|
|
475
|
+
| 'LIVEKIT'
|
|
476
|
+
| 'SMALL_WEBRTC'
|
|
477
|
+
| 'ELEVENLABS_WS'
|
|
478
|
+
| 'KORE'
|
|
479
|
+
| 'GOOGLE_CES'
|
|
480
|
+
| 'DAILY';
|
|
415
481
|
}
|
|
416
482
|
|
|
417
483
|
export interface Persona {
|
|
@@ -446,7 +512,8 @@ export namespace SimulationJobLookupResponse {
|
|
|
446
512
|
| 'MY'
|
|
447
513
|
| 'HK'
|
|
448
514
|
| 'TR'
|
|
449
|
-
| 'PT'
|
|
515
|
+
| 'PT'
|
|
516
|
+
| 'IL';
|
|
450
517
|
|
|
451
518
|
/**
|
|
452
519
|
* Background noise setting
|
|
@@ -497,9 +564,10 @@ export namespace SimulationJobLookupResponse {
|
|
|
497
564
|
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
498
565
|
|
|
499
566
|
/**
|
|
500
|
-
* Messages the persona will say when the agent goes silent during a call
|
|
567
|
+
* Messages the persona will say when the agent goes silent during a call. null =
|
|
568
|
+
* "Automatic": language-appropriate defaults are used at call time.
|
|
501
569
|
*/
|
|
502
|
-
idleMessages: Array<string
|
|
570
|
+
idleMessages: Array<string> | null;
|
|
503
571
|
|
|
504
572
|
/**
|
|
505
573
|
* Seconds of silence before the persona sends an idle message
|
|
@@ -531,7 +599,8 @@ export namespace SimulationJobLookupResponse {
|
|
|
531
599
|
| 'MS'
|
|
532
600
|
| 'ZH'
|
|
533
601
|
| 'TR'
|
|
534
|
-
| 'PT'
|
|
602
|
+
| 'PT'
|
|
603
|
+
| 'HE';
|
|
535
604
|
|
|
536
605
|
/**
|
|
537
606
|
* How reliable the persona's memory is
|
|
@@ -564,6 +633,31 @@ export namespace SimulationJobLookupResponse {
|
|
|
564
633
|
*/
|
|
565
634
|
speechPace: 'SUPER_SLOW' | 'SLOW' | 'NORMAL' | 'FAST' | 'SUPER_FAST';
|
|
566
635
|
|
|
636
|
+
/**
|
|
637
|
+
* Languages the persona can understand. Multilingual combinations are limited by
|
|
638
|
+
* multilingual speech recognition support.
|
|
639
|
+
*/
|
|
640
|
+
understoodLanguages: Array<
|
|
641
|
+
| 'EN'
|
|
642
|
+
| 'ES'
|
|
643
|
+
| 'DE'
|
|
644
|
+
| 'HI'
|
|
645
|
+
| 'FR'
|
|
646
|
+
| 'NL'
|
|
647
|
+
| 'AR'
|
|
648
|
+
| 'EL'
|
|
649
|
+
| 'IT'
|
|
650
|
+
| 'ID'
|
|
651
|
+
| 'TH'
|
|
652
|
+
| 'JA'
|
|
653
|
+
| 'TL'
|
|
654
|
+
| 'MS'
|
|
655
|
+
| 'ZH'
|
|
656
|
+
| 'TR'
|
|
657
|
+
| 'PT'
|
|
658
|
+
| 'HE'
|
|
659
|
+
>;
|
|
660
|
+
|
|
567
661
|
/**
|
|
568
662
|
* Last update timestamp
|
|
569
663
|
*/
|
|
@@ -585,6 +679,24 @@ export namespace SimulationJobLookupResponse {
|
|
|
585
679
|
secondaryLanguage?: 'EN' | null;
|
|
586
680
|
}
|
|
587
681
|
|
|
682
|
+
export interface RunPlan {
|
|
683
|
+
/**
|
|
684
|
+
* Run plan ID
|
|
685
|
+
*/
|
|
686
|
+
id: string;
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Run plan name
|
|
690
|
+
*/
|
|
691
|
+
name: string;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Run-plan-level variables resolved for this job, keyed by variable name. Values
|
|
695
|
+
* are stringified by their declared type.
|
|
696
|
+
*/
|
|
697
|
+
variables: { [key: string]: string };
|
|
698
|
+
}
|
|
699
|
+
|
|
588
700
|
/**
|
|
589
701
|
* Scenario used in a simulation
|
|
590
702
|
*/
|