@roarkanalytics/sdk 2.22.0 → 2.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/client.d.mts +31 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +31 -10
- package/client.d.ts.map +1 -1
- package/client.js +34 -6
- package/client.js.map +1 -1
- package/client.mjs +34 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-endpoint.d.mts +309 -0
- package/resources/agent-endpoint.d.mts.map +1 -0
- package/resources/agent-endpoint.d.ts +309 -0
- package/resources/agent-endpoint.d.ts.map +1 -0
- package/resources/agent-endpoint.js +35 -0
- package/resources/agent-endpoint.js.map +1 -0
- package/resources/agent-endpoint.mjs +31 -0
- package/resources/agent-endpoint.mjs.map +1 -0
- package/resources/agent.d.mts +193 -0
- package/resources/agent.d.mts.map +1 -0
- package/resources/agent.d.ts +193 -0
- package/resources/agent.d.ts.map +1 -0
- package/resources/agent.js +34 -0
- package/resources/agent.js.map +1 -0
- package/resources/agent.mjs +30 -0
- package/resources/agent.mjs.map +1 -0
- package/resources/call.d.mts +120 -1
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +120 -1
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +7 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +7 -0
- package/resources/call.mjs.map +1 -1
- package/resources/evaluation.d.mts +2097 -617
- package/resources/evaluation.d.mts.map +1 -1
- package/resources/evaluation.d.ts +2097 -617
- package/resources/evaluation.d.ts.map +1 -1
- package/resources/evaluation.js +14 -0
- package/resources/evaluation.js.map +1 -1
- package/resources/evaluation.mjs +14 -0
- package/resources/evaluation.mjs.map +1 -1
- package/resources/http-request-definition.d.mts +339 -0
- package/resources/http-request-definition.d.mts.map +1 -0
- package/resources/http-request-definition.d.ts +339 -0
- package/resources/http-request-definition.d.ts.map +1 -0
- package/resources/http-request-definition.js +36 -0
- package/resources/http-request-definition.js.map +1 -0
- package/resources/http-request-definition.mjs +32 -0
- package/resources/http-request-definition.mjs.map +1 -0
- package/resources/index.d.mts +11 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +19 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -2
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-job.d.mts +393 -0
- package/resources/simulation-job.d.mts.map +1 -0
- package/resources/simulation-job.d.ts +393 -0
- package/resources/simulation-job.d.ts.map +1 -0
- package/resources/simulation-job.js +38 -0
- package/resources/simulation-job.js.map +1 -0
- package/resources/simulation-job.mjs +34 -0
- package/resources/simulation-job.mjs.map +1 -0
- package/resources/{persona.d.mts → simulation-persona.d.mts} +62 -33
- package/resources/simulation-persona.d.mts.map +1 -0
- package/resources/{persona.d.ts → simulation-persona.d.ts} +62 -33
- package/resources/simulation-persona.d.ts.map +1 -0
- package/resources/{persona.js → simulation-persona.js} +18 -13
- package/resources/simulation-persona.js.map +1 -0
- package/resources/{persona.mjs → simulation-persona.mjs} +16 -11
- package/resources/simulation-persona.mjs.map +1 -0
- package/resources/simulation-run-plan-job.d.mts +359 -0
- package/resources/simulation-run-plan-job.d.mts.map +1 -0
- package/resources/simulation-run-plan-job.d.ts +359 -0
- package/resources/simulation-run-plan-job.d.ts.map +1 -0
- package/resources/simulation-run-plan-job.js +50 -0
- package/resources/simulation-run-plan-job.js.map +1 -0
- package/resources/simulation-run-plan-job.mjs +46 -0
- package/resources/simulation-run-plan-job.mjs.map +1 -0
- package/resources/simulation-run-plan.d.mts +660 -0
- package/resources/simulation-run-plan.d.mts.map +1 -0
- package/resources/simulation-run-plan.d.ts +660 -0
- package/resources/simulation-run-plan.d.ts.map +1 -0
- package/resources/simulation-run-plan.js +93 -0
- package/resources/simulation-run-plan.js.map +1 -0
- package/resources/simulation-run-plan.mjs +89 -0
- package/resources/simulation-run-plan.mjs.map +1 -0
- package/resources/simulation-scenario.d.mts +335 -0
- package/resources/simulation-scenario.d.mts.map +1 -0
- package/resources/simulation-scenario.d.ts +335 -0
- package/resources/simulation-scenario.d.ts.map +1 -0
- package/resources/simulation-scenario.js +40 -0
- package/resources/simulation-scenario.js.map +1 -0
- package/resources/simulation-scenario.mjs +36 -0
- package/resources/simulation-scenario.mjs.map +1 -0
- package/resources/webhook.d.mts +212 -0
- package/resources/webhook.d.mts.map +1 -0
- package/resources/webhook.d.ts +212 -0
- package/resources/webhook.d.ts.map +1 -0
- package/resources/webhook.js +35 -0
- package/resources/webhook.js.map +1 -0
- package/resources/webhook.mjs +31 -0
- package/resources/webhook.mjs.map +1 -0
- package/src/client.ts +208 -43
- package/src/resources/agent-endpoint.ts +400 -0
- package/src/resources/agent.ts +263 -0
- package/src/resources/call.ts +149 -0
- package/src/resources/evaluation.ts +3044 -1154
- package/src/resources/http-request-definition.ts +410 -0
- package/src/resources/index.ts +89 -21
- package/src/resources/simulation-job.ts +527 -0
- package/src/resources/{persona.ts → simulation-persona.ts} +78 -40
- package/src/resources/simulation-run-plan-job.ts +521 -0
- package/src/resources/simulation-run-plan.ts +840 -0
- package/src/resources/simulation-scenario.ts +463 -0
- package/src/resources/webhook.ts +318 -0
- 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
- package/resources/persona.d.mts.map +0 -1
- package/resources/persona.d.ts.map +0 -1
- package/resources/persona.js.map +0 -1
- package/resources/persona.mjs.map +0 -1
- package/resources/simulation.d.mts +0 -802
- package/resources/simulation.d.mts.map +0 -1
- package/resources/simulation.d.ts +0 -802
- package/resources/simulation.d.ts.map +0 -1
- package/resources/simulation.js +0 -90
- package/resources/simulation.js.map +0 -1
- package/resources/simulation.mjs +0 -86
- package/resources/simulation.mjs.map +0 -1
- package/src/resources/simulation.ts +0 -1069
|
@@ -0,0 +1,840 @@
|
|
|
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 SimulationRunPlan extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new simulation run plan. Optionally triggers a job immediately if
|
|
11
|
+
* autoRun is true.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const simulationRunPlan =
|
|
16
|
+
* await client.simulationRunPlan.create({
|
|
17
|
+
* agentEndpoints: [
|
|
18
|
+
* { id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
19
|
+
* ],
|
|
20
|
+
* direction: 'INBOUND',
|
|
21
|
+
* evaluators: [
|
|
22
|
+
* { id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
23
|
+
* ],
|
|
24
|
+
* maxSimulationDurationSeconds: 300,
|
|
25
|
+
* name: 'My Run Plan',
|
|
26
|
+
* personas: [
|
|
27
|
+
* { id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
28
|
+
* ],
|
|
29
|
+
* scenarios: [
|
|
30
|
+
* { id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
31
|
+
* ],
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
create(
|
|
36
|
+
body: SimulationRunPlanCreateParams,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<SimulationRunPlanCreateResponse> {
|
|
39
|
+
return this._client.post('/v1/simulation/plan', { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Updates an existing simulation run plan by its ID.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const simulationRunPlan =
|
|
48
|
+
* await client.simulationRunPlan.update(
|
|
49
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
update(
|
|
54
|
+
planID: string,
|
|
55
|
+
body: SimulationRunPlanUpdateParams | null | undefined = {},
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): APIPromise<SimulationRunPlanUpdateResponse> {
|
|
58
|
+
return this._client.put(path`/v1/simulation/plan/${planID}`, { body, ...options });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Returns a paginated list of simulation run plans. Optionally filter by search
|
|
63
|
+
* text or agent ID.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const simulationRunPlans =
|
|
68
|
+
* await client.simulationRunPlan.list();
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
list(
|
|
72
|
+
query: SimulationRunPlanListParams | null | undefined = {},
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): APIPromise<SimulationRunPlanListResponse> {
|
|
75
|
+
return this._client.get('/v1/simulation/plan', { query, ...options });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Soft-deletes a simulation run plan by its ID.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const simulationRunPlan =
|
|
84
|
+
* await client.simulationRunPlan.delete(
|
|
85
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
86
|
+
* );
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
delete(planID: string, options?: RequestOptions): APIPromise<SimulationRunPlanDeleteResponse> {
|
|
90
|
+
return this._client.delete(path`/v1/simulation/plan/${planID}`, options);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Returns a specific simulation run plan by its ID.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* const response = await client.simulationRunPlan.getByID(
|
|
99
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
100
|
+
* );
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
getByID(planID: string, options?: RequestOptions): APIPromise<SimulationRunPlanGetByIDResponse> {
|
|
104
|
+
return this._client.get(path`/v1/simulation/plan/${planID}`, options);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface SimulationRunPlanCreateResponse {
|
|
109
|
+
/**
|
|
110
|
+
* Response when creating a run plan, optionally including a triggered job
|
|
111
|
+
*/
|
|
112
|
+
data: SimulationRunPlanCreateResponse.Data;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export namespace SimulationRunPlanCreateResponse {
|
|
116
|
+
/**
|
|
117
|
+
* Response when creating a run plan, optionally including a triggered job
|
|
118
|
+
*/
|
|
119
|
+
export interface Data {
|
|
120
|
+
/**
|
|
121
|
+
* A simulation run plan defining the test matrix
|
|
122
|
+
*/
|
|
123
|
+
runPlan: Data.RunPlan;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Response when triggering a simulation run plan
|
|
127
|
+
*/
|
|
128
|
+
runPlanJob?: Data.RunPlanJob | null;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export namespace Data {
|
|
132
|
+
/**
|
|
133
|
+
* A simulation run plan defining the test matrix
|
|
134
|
+
*/
|
|
135
|
+
export interface RunPlan {
|
|
136
|
+
/**
|
|
137
|
+
* Unique identifier of the run plan
|
|
138
|
+
*/
|
|
139
|
+
id: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Agent endpoints included in this run plan
|
|
143
|
+
*/
|
|
144
|
+
agentEndpoints: Array<RunPlan.AgentEndpoint>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* When the run plan was created
|
|
148
|
+
*/
|
|
149
|
+
createdAt: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Direction of the simulation (INBOUND or OUTBOUND)
|
|
153
|
+
*/
|
|
154
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Evaluators included in this run plan
|
|
158
|
+
*/
|
|
159
|
+
evaluators: Array<RunPlan.Evaluator>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
163
|
+
*/
|
|
164
|
+
executionMode: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Number of iterations to run for each test case
|
|
168
|
+
*/
|
|
169
|
+
iterationCount: number;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Maximum number of concurrent simulation jobs
|
|
173
|
+
*/
|
|
174
|
+
maxConcurrentJobs: number;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Maximum duration in seconds for each simulation
|
|
178
|
+
*/
|
|
179
|
+
maxSimulationDurationSeconds: number;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Name of the run plan
|
|
183
|
+
*/
|
|
184
|
+
name: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Personas included in this run plan
|
|
188
|
+
*/
|
|
189
|
+
personas: Array<RunPlan.Persona>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Scenarios included in this run plan
|
|
193
|
+
*/
|
|
194
|
+
scenarios: Array<RunPlan.Scenario>;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Timeout in seconds for silence detection
|
|
198
|
+
*/
|
|
199
|
+
silenceTimeoutSeconds: number;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Total number of test cases generated from the plan configuration
|
|
203
|
+
*/
|
|
204
|
+
testCaseCount: number;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* When the run plan was last updated
|
|
208
|
+
*/
|
|
209
|
+
updatedAt: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Description of the run plan
|
|
213
|
+
*/
|
|
214
|
+
description?: string | null;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export namespace RunPlan {
|
|
218
|
+
export interface AgentEndpoint {
|
|
219
|
+
id: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface Evaluator {
|
|
223
|
+
id: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface Persona {
|
|
227
|
+
id: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface Scenario {
|
|
231
|
+
id: string;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Response when triggering a simulation run plan
|
|
237
|
+
*/
|
|
238
|
+
export interface RunPlanJob {
|
|
239
|
+
/**
|
|
240
|
+
* When the job was created
|
|
241
|
+
*/
|
|
242
|
+
createdAt: string;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* ID of the simulation run plan that was executed
|
|
246
|
+
*/
|
|
247
|
+
simulationRunPlanId: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* ID of the simulation run plan job that was created
|
|
251
|
+
*/
|
|
252
|
+
simulationRunPlanJobId: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Initial status of the job
|
|
256
|
+
*/
|
|
257
|
+
status:
|
|
258
|
+
| 'PENDING'
|
|
259
|
+
| 'QUEUED'
|
|
260
|
+
| 'CREATING_SNAPSHOTS'
|
|
261
|
+
| 'CREATING_SIMULATIONS'
|
|
262
|
+
| 'RUNNING_SIMULATIONS'
|
|
263
|
+
| 'COMPLETED'
|
|
264
|
+
| 'FAILED'
|
|
265
|
+
| 'TIMED_OUT'
|
|
266
|
+
| 'CANCELLED'
|
|
267
|
+
| 'CANCELLING';
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface SimulationRunPlanUpdateResponse {
|
|
273
|
+
/**
|
|
274
|
+
* A simulation run plan defining the test matrix
|
|
275
|
+
*/
|
|
276
|
+
data: SimulationRunPlanUpdateResponse.Data;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export namespace SimulationRunPlanUpdateResponse {
|
|
280
|
+
/**
|
|
281
|
+
* A simulation run plan defining the test matrix
|
|
282
|
+
*/
|
|
283
|
+
export interface Data {
|
|
284
|
+
/**
|
|
285
|
+
* Unique identifier of the run plan
|
|
286
|
+
*/
|
|
287
|
+
id: string;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Agent endpoints included in this run plan
|
|
291
|
+
*/
|
|
292
|
+
agentEndpoints: Array<Data.AgentEndpoint>;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* When the run plan was created
|
|
296
|
+
*/
|
|
297
|
+
createdAt: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Direction of the simulation (INBOUND or OUTBOUND)
|
|
301
|
+
*/
|
|
302
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Evaluators included in this run plan
|
|
306
|
+
*/
|
|
307
|
+
evaluators: Array<Data.Evaluator>;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
311
|
+
*/
|
|
312
|
+
executionMode: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Number of iterations to run for each test case
|
|
316
|
+
*/
|
|
317
|
+
iterationCount: number;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Maximum number of concurrent simulation jobs
|
|
321
|
+
*/
|
|
322
|
+
maxConcurrentJobs: number;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Maximum duration in seconds for each simulation
|
|
326
|
+
*/
|
|
327
|
+
maxSimulationDurationSeconds: number;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Name of the run plan
|
|
331
|
+
*/
|
|
332
|
+
name: string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Personas included in this run plan
|
|
336
|
+
*/
|
|
337
|
+
personas: Array<Data.Persona>;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Scenarios included in this run plan
|
|
341
|
+
*/
|
|
342
|
+
scenarios: Array<Data.Scenario>;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Timeout in seconds for silence detection
|
|
346
|
+
*/
|
|
347
|
+
silenceTimeoutSeconds: number;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Total number of test cases generated from the plan configuration
|
|
351
|
+
*/
|
|
352
|
+
testCaseCount: number;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* When the run plan was last updated
|
|
356
|
+
*/
|
|
357
|
+
updatedAt: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Description of the run plan
|
|
361
|
+
*/
|
|
362
|
+
description?: string | null;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export namespace Data {
|
|
366
|
+
export interface AgentEndpoint {
|
|
367
|
+
id: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export interface Evaluator {
|
|
371
|
+
id: string;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export interface Persona {
|
|
375
|
+
id: string;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export interface Scenario {
|
|
379
|
+
id: string;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Paginated list of simulation run plans
|
|
386
|
+
*/
|
|
387
|
+
export interface SimulationRunPlanListResponse {
|
|
388
|
+
data: Array<SimulationRunPlanListResponse.Data>;
|
|
389
|
+
|
|
390
|
+
pagination: SimulationRunPlanListResponse.Pagination;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export namespace SimulationRunPlanListResponse {
|
|
394
|
+
/**
|
|
395
|
+
* A simulation run plan defining the test matrix
|
|
396
|
+
*/
|
|
397
|
+
export interface Data {
|
|
398
|
+
/**
|
|
399
|
+
* Unique identifier of the run plan
|
|
400
|
+
*/
|
|
401
|
+
id: string;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Agent endpoints included in this run plan
|
|
405
|
+
*/
|
|
406
|
+
agentEndpoints: Array<Data.AgentEndpoint>;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* When the run plan was created
|
|
410
|
+
*/
|
|
411
|
+
createdAt: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Direction of the simulation (INBOUND or OUTBOUND)
|
|
415
|
+
*/
|
|
416
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Evaluators included in this run plan
|
|
420
|
+
*/
|
|
421
|
+
evaluators: Array<Data.Evaluator>;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
425
|
+
*/
|
|
426
|
+
executionMode: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Number of iterations to run for each test case
|
|
430
|
+
*/
|
|
431
|
+
iterationCount: number;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Maximum number of concurrent simulation jobs
|
|
435
|
+
*/
|
|
436
|
+
maxConcurrentJobs: number;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Maximum duration in seconds for each simulation
|
|
440
|
+
*/
|
|
441
|
+
maxSimulationDurationSeconds: number;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Name of the run plan
|
|
445
|
+
*/
|
|
446
|
+
name: string;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Personas included in this run plan
|
|
450
|
+
*/
|
|
451
|
+
personas: Array<Data.Persona>;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Scenarios included in this run plan
|
|
455
|
+
*/
|
|
456
|
+
scenarios: Array<Data.Scenario>;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Timeout in seconds for silence detection
|
|
460
|
+
*/
|
|
461
|
+
silenceTimeoutSeconds: number;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Total number of test cases generated from the plan configuration
|
|
465
|
+
*/
|
|
466
|
+
testCaseCount: number;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* When the run plan was last updated
|
|
470
|
+
*/
|
|
471
|
+
updatedAt: string;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Description of the run plan
|
|
475
|
+
*/
|
|
476
|
+
description?: string | null;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export namespace Data {
|
|
480
|
+
export interface AgentEndpoint {
|
|
481
|
+
id: string;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export interface Evaluator {
|
|
485
|
+
id: string;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export interface Persona {
|
|
489
|
+
id: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface Scenario {
|
|
493
|
+
id: string;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export interface Pagination {
|
|
498
|
+
/**
|
|
499
|
+
* Whether there are more items to fetch
|
|
500
|
+
*/
|
|
501
|
+
hasMore: boolean;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Cursor for the next page of items
|
|
505
|
+
*/
|
|
506
|
+
nextCursor: string | null;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Total number of items
|
|
510
|
+
*/
|
|
511
|
+
total: number;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export interface SimulationRunPlanDeleteResponse {
|
|
516
|
+
data: SimulationRunPlanDeleteResponse.Data;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export namespace SimulationRunPlanDeleteResponse {
|
|
520
|
+
export interface Data {
|
|
521
|
+
/**
|
|
522
|
+
* Whether the run plan was deleted
|
|
523
|
+
*/
|
|
524
|
+
deleted: boolean;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export interface SimulationRunPlanGetByIDResponse {
|
|
529
|
+
/**
|
|
530
|
+
* A simulation run plan defining the test matrix
|
|
531
|
+
*/
|
|
532
|
+
data: SimulationRunPlanGetByIDResponse.Data;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export namespace SimulationRunPlanGetByIDResponse {
|
|
536
|
+
/**
|
|
537
|
+
* A simulation run plan defining the test matrix
|
|
538
|
+
*/
|
|
539
|
+
export interface Data {
|
|
540
|
+
/**
|
|
541
|
+
* Unique identifier of the run plan
|
|
542
|
+
*/
|
|
543
|
+
id: string;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Agent endpoints included in this run plan
|
|
547
|
+
*/
|
|
548
|
+
agentEndpoints: Array<Data.AgentEndpoint>;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* When the run plan was created
|
|
552
|
+
*/
|
|
553
|
+
createdAt: string;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Direction of the simulation (INBOUND or OUTBOUND)
|
|
557
|
+
*/
|
|
558
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Evaluators included in this run plan
|
|
562
|
+
*/
|
|
563
|
+
evaluators: Array<Data.Evaluator>;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
567
|
+
*/
|
|
568
|
+
executionMode: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Number of iterations to run for each test case
|
|
572
|
+
*/
|
|
573
|
+
iterationCount: number;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Maximum number of concurrent simulation jobs
|
|
577
|
+
*/
|
|
578
|
+
maxConcurrentJobs: number;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Maximum duration in seconds for each simulation
|
|
582
|
+
*/
|
|
583
|
+
maxSimulationDurationSeconds: number;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Name of the run plan
|
|
587
|
+
*/
|
|
588
|
+
name: string;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Personas included in this run plan
|
|
592
|
+
*/
|
|
593
|
+
personas: Array<Data.Persona>;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Scenarios included in this run plan
|
|
597
|
+
*/
|
|
598
|
+
scenarios: Array<Data.Scenario>;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Timeout in seconds for silence detection
|
|
602
|
+
*/
|
|
603
|
+
silenceTimeoutSeconds: number;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Total number of test cases generated from the plan configuration
|
|
607
|
+
*/
|
|
608
|
+
testCaseCount: number;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* When the run plan was last updated
|
|
612
|
+
*/
|
|
613
|
+
updatedAt: string;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Description of the run plan
|
|
617
|
+
*/
|
|
618
|
+
description?: string | null;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export namespace Data {
|
|
622
|
+
export interface AgentEndpoint {
|
|
623
|
+
id: string;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export interface Evaluator {
|
|
627
|
+
id: string;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export interface Persona {
|
|
631
|
+
id: string;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export interface Scenario {
|
|
635
|
+
id: string;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export interface SimulationRunPlanCreateParams {
|
|
641
|
+
/**
|
|
642
|
+
* Agent endpoints to include in this run plan
|
|
643
|
+
*/
|
|
644
|
+
agentEndpoints: Array<SimulationRunPlanCreateParams.AgentEndpoint>;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Direction of the simulation (INBOUND or OUTBOUND)
|
|
648
|
+
*/
|
|
649
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Evaluators to include in this run plan
|
|
653
|
+
*/
|
|
654
|
+
evaluators: Array<SimulationRunPlanCreateParams.Evaluator>;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Maximum duration in seconds for each simulation
|
|
658
|
+
*/
|
|
659
|
+
maxSimulationDurationSeconds: number;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Name of the run plan
|
|
663
|
+
*/
|
|
664
|
+
name: string;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Personas to include in this run plan
|
|
668
|
+
*/
|
|
669
|
+
personas: Array<SimulationRunPlanCreateParams.Persona>;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Scenarios to include in this run plan
|
|
673
|
+
*/
|
|
674
|
+
scenarios: Array<SimulationRunPlanCreateParams.Scenario>;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Whether to automatically trigger a job after creating the run plan
|
|
678
|
+
*/
|
|
679
|
+
autoRun?: boolean;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Description of the run plan
|
|
683
|
+
*/
|
|
684
|
+
description?: string;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
688
|
+
*/
|
|
689
|
+
executionMode?: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Number of iterations to run for each test case. Must be 1 for OUTBOUND
|
|
693
|
+
* direction.
|
|
694
|
+
*/
|
|
695
|
+
iterationCount?: number;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Maximum number of concurrent simulation jobs
|
|
699
|
+
*/
|
|
700
|
+
maxConcurrentJobs?: number;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Timeout in seconds for silence detection
|
|
704
|
+
*/
|
|
705
|
+
silenceTimeoutSeconds?: number;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export namespace SimulationRunPlanCreateParams {
|
|
709
|
+
export interface AgentEndpoint {
|
|
710
|
+
id: string;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export interface Evaluator {
|
|
714
|
+
id: string;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export interface Persona {
|
|
718
|
+
id: string;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export interface Scenario {
|
|
722
|
+
id: string;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export interface SimulationRunPlanUpdateParams {
|
|
727
|
+
/**
|
|
728
|
+
* Agent endpoints to include in this run plan
|
|
729
|
+
*/
|
|
730
|
+
agentEndpoints?: Array<SimulationRunPlanUpdateParams.AgentEndpoint>;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Description of the run plan
|
|
734
|
+
*/
|
|
735
|
+
description?: string;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Direction of the simulation (INBOUND or OUTBOUND)
|
|
739
|
+
*/
|
|
740
|
+
direction?: 'INBOUND' | 'OUTBOUND';
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Evaluators to include in this run plan
|
|
744
|
+
*/
|
|
745
|
+
evaluators?: Array<SimulationRunPlanUpdateParams.Evaluator>;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
749
|
+
*/
|
|
750
|
+
executionMode?: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Number of iterations to run for each test case. Must be 1 for OUTBOUND
|
|
754
|
+
* direction.
|
|
755
|
+
*/
|
|
756
|
+
iterationCount?: number;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Maximum number of concurrent simulation jobs
|
|
760
|
+
*/
|
|
761
|
+
maxConcurrentJobs?: number;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Maximum duration in seconds for each simulation
|
|
765
|
+
*/
|
|
766
|
+
maxSimulationDurationSeconds?: number;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Name of the run plan
|
|
770
|
+
*/
|
|
771
|
+
name?: string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Personas to include in this run plan
|
|
775
|
+
*/
|
|
776
|
+
personas?: Array<SimulationRunPlanUpdateParams.Persona>;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Scenarios to include in this run plan
|
|
780
|
+
*/
|
|
781
|
+
scenarios?: Array<SimulationRunPlanUpdateParams.Scenario>;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Timeout in seconds for silence detection
|
|
785
|
+
*/
|
|
786
|
+
silenceTimeoutSeconds?: number;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export namespace SimulationRunPlanUpdateParams {
|
|
790
|
+
export interface AgentEndpoint {
|
|
791
|
+
id: string;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export interface Evaluator {
|
|
795
|
+
id: string;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export interface Persona {
|
|
799
|
+
id: string;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export interface Scenario {
|
|
803
|
+
id: string;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export interface SimulationRunPlanListParams {
|
|
808
|
+
/**
|
|
809
|
+
* Cursor for pagination - use the nextCursor value from a previous response
|
|
810
|
+
*/
|
|
811
|
+
after?: string;
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Filter run plans by agent ID
|
|
815
|
+
*/
|
|
816
|
+
agentId?: string;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Maximum number of run plans to return (default: 20, max: 50)
|
|
820
|
+
*/
|
|
821
|
+
limit?: number;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Search text to filter run plans by name
|
|
825
|
+
*/
|
|
826
|
+
searchText?: string;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
export declare namespace SimulationRunPlan {
|
|
830
|
+
export {
|
|
831
|
+
type SimulationRunPlanCreateResponse as SimulationRunPlanCreateResponse,
|
|
832
|
+
type SimulationRunPlanUpdateResponse as SimulationRunPlanUpdateResponse,
|
|
833
|
+
type SimulationRunPlanListResponse as SimulationRunPlanListResponse,
|
|
834
|
+
type SimulationRunPlanDeleteResponse as SimulationRunPlanDeleteResponse,
|
|
835
|
+
type SimulationRunPlanGetByIDResponse as SimulationRunPlanGetByIDResponse,
|
|
836
|
+
type SimulationRunPlanCreateParams as SimulationRunPlanCreateParams,
|
|
837
|
+
type SimulationRunPlanUpdateParams as SimulationRunPlanUpdateParams,
|
|
838
|
+
type SimulationRunPlanListParams as SimulationRunPlanListParams,
|
|
839
|
+
};
|
|
840
|
+
}
|