@roarkanalytics/sdk 2.13.0 → 2.14.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 +33 -0
- package/LICENSE +1 -1
- package/index.d.mts +10 -10
- package/index.d.ts +10 -10
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/call.d.ts +729 -16
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +16 -4
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +16 -4
- package/resources/call.mjs.map +1 -1
- package/resources/evaluation.d.ts +85 -81
- package/resources/evaluation.d.ts.map +1 -1
- package/resources/evaluation.js +8 -8
- package/resources/evaluation.js.map +1 -1
- package/resources/evaluation.mjs +8 -8
- package/resources/evaluation.mjs.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metric.d.ts +5 -5
- package/resources/metric.d.ts.map +1 -1
- package/resources/metric.js +1 -1
- package/resources/metric.js.map +1 -1
- package/resources/metric.mjs +1 -1
- package/resources/metric.mjs.map +1 -1
- package/resources/persona.d.ts +21 -21
- package/resources/persona.d.ts.map +1 -1
- package/resources/persona.js +2 -2
- package/resources/persona.js.map +1 -1
- package/resources/persona.mjs +2 -2
- package/resources/persona.mjs.map +1 -1
- package/resources/simulation.d.ts +273 -28
- package/resources/simulation.d.ts.map +1 -1
- package/resources/simulation.js +37 -8
- package/resources/simulation.js.map +1 -1
- package/resources/simulation.mjs +37 -8
- package/resources/simulation.mjs.map +1 -1
- package/src/index.ts +40 -28
- package/src/resources/call.ts +954 -27
- package/src/resources/evaluation.ts +113 -108
- package/src/resources/index.ts +20 -14
- package/src/resources/metric.ts +5 -5
- package/src/resources/persona.ts +110 -29
- package/src/resources/simulation.ts +390 -34
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,37 +2,253 @@ import { APIResource } from "../resource.js";
|
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
3
|
export declare class Simulation extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Retrieve details of a simulation plan job including all associated simulation
|
|
6
|
+
* jobs (calls)
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* const response = await client.simulation.
|
|
10
|
+
* const response = await client.simulation.getRunPlanJob(
|
|
11
11
|
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
12
12
|
* );
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
getRunPlanJob(jobId: unknown, options?: Core.RequestOptions): Core.APIPromise<SimulationGetRunPlanJobResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
18
|
+
* larger simulation run plan job.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response =
|
|
23
|
+
* await client.simulation.getSimulationJobById(
|
|
24
|
+
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
getSimulationJobById(jobId: unknown, options?: Core.RequestOptions): Core.APIPromise<SimulationGetSimulationJobByIDResponse>;
|
|
16
29
|
/**
|
|
17
30
|
* Find the matching simulation using the number used by the Roark simulation
|
|
18
31
|
* agent.
|
|
19
32
|
*
|
|
20
33
|
* @example
|
|
21
34
|
* ```ts
|
|
22
|
-
* const response =
|
|
23
|
-
*
|
|
24
|
-
* }
|
|
35
|
+
* const response =
|
|
36
|
+
* await client.simulation.lookupSimulationJob({
|
|
37
|
+
* roarkPhoneNumber: {},
|
|
38
|
+
* });
|
|
25
39
|
* ```
|
|
26
40
|
*/
|
|
27
|
-
|
|
41
|
+
lookupSimulationJob(query: SimulationLookupSimulationJobParams, options?: Core.RequestOptions): Core.APIPromise<SimulationLookupSimulationJobResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Create and execute a job for an existing simulation run plan
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const response = await client.simulation.startRunPlanJob(
|
|
48
|
+
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
startRunPlanJob(planId: unknown, options?: Core.RequestOptions): Core.APIPromise<SimulationStartRunPlanJobResponse>;
|
|
53
|
+
}
|
|
54
|
+
export interface SimulationGetRunPlanJobResponse {
|
|
55
|
+
/**
|
|
56
|
+
* Simulation run plan job with all associated simulation jobs
|
|
57
|
+
*/
|
|
58
|
+
data: SimulationGetRunPlanJobResponse.Data;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace SimulationGetRunPlanJobResponse {
|
|
61
|
+
/**
|
|
62
|
+
* Simulation run plan job with all associated simulation jobs
|
|
63
|
+
*/
|
|
64
|
+
interface Data {
|
|
65
|
+
/**
|
|
66
|
+
* When the job was created
|
|
67
|
+
*/
|
|
68
|
+
createdAt: string;
|
|
69
|
+
/**
|
|
70
|
+
* List of simulation jobs (calls) in this run plan job
|
|
71
|
+
*/
|
|
72
|
+
simulationJobs: Array<Data.SimulationJob>;
|
|
73
|
+
/**
|
|
74
|
+
* ID of the simulation run plan
|
|
75
|
+
*/
|
|
76
|
+
simulationRunPlanId: string;
|
|
77
|
+
/**
|
|
78
|
+
* ID of the simulation run plan job
|
|
79
|
+
*/
|
|
80
|
+
simulationRunPlanJobId: string;
|
|
81
|
+
/**
|
|
82
|
+
* Job status
|
|
83
|
+
*/
|
|
84
|
+
status: string;
|
|
85
|
+
/**
|
|
86
|
+
* When the job ended
|
|
87
|
+
*/
|
|
88
|
+
endedAt?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* When the job started
|
|
91
|
+
*/
|
|
92
|
+
startedAt?: string | null;
|
|
93
|
+
}
|
|
94
|
+
namespace Data {
|
|
95
|
+
interface SimulationJob {
|
|
96
|
+
/**
|
|
97
|
+
* Agent endpoint used in a simulation
|
|
98
|
+
*/
|
|
99
|
+
agentEndpoint: SimulationJob.AgentEndpoint;
|
|
100
|
+
/**
|
|
101
|
+
* When the simulation job was created
|
|
102
|
+
*/
|
|
103
|
+
createdAt: string;
|
|
104
|
+
persona: SimulationJob.Persona;
|
|
105
|
+
/**
|
|
106
|
+
* Processing status
|
|
107
|
+
*/
|
|
108
|
+
processingStatus: string;
|
|
109
|
+
/**
|
|
110
|
+
* Scenario used in a simulation
|
|
111
|
+
*/
|
|
112
|
+
scenario: SimulationJob.Scenario;
|
|
113
|
+
/**
|
|
114
|
+
* Simulation job ID
|
|
115
|
+
*/
|
|
116
|
+
simulationJobId: string;
|
|
117
|
+
/**
|
|
118
|
+
* Job status
|
|
119
|
+
*/
|
|
120
|
+
status: string;
|
|
121
|
+
/**
|
|
122
|
+
* When the simulation job completed
|
|
123
|
+
*/
|
|
124
|
+
completedAt?: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* When the simulation job started
|
|
127
|
+
*/
|
|
128
|
+
startedAt?: string | null;
|
|
129
|
+
}
|
|
130
|
+
namespace SimulationJob {
|
|
131
|
+
/**
|
|
132
|
+
* Agent endpoint used in a simulation
|
|
133
|
+
*/
|
|
134
|
+
interface AgentEndpoint {
|
|
135
|
+
/**
|
|
136
|
+
* Agent endpoint ID
|
|
137
|
+
*/
|
|
138
|
+
id: string;
|
|
139
|
+
/**
|
|
140
|
+
* Agent endpoint name
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
/**
|
|
144
|
+
* Agent endpoint phone number
|
|
145
|
+
*/
|
|
146
|
+
phoneNumber: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Agent endpoint type
|
|
149
|
+
*/
|
|
150
|
+
type: string;
|
|
151
|
+
}
|
|
152
|
+
interface Persona {
|
|
153
|
+
/**
|
|
154
|
+
* Unique identifier of the persona
|
|
155
|
+
*/
|
|
156
|
+
id: string;
|
|
157
|
+
/**
|
|
158
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
159
|
+
* optional variants
|
|
160
|
+
*/
|
|
161
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH';
|
|
162
|
+
/**
|
|
163
|
+
* Background noise setting
|
|
164
|
+
*/
|
|
165
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
166
|
+
/**
|
|
167
|
+
* Base emotional state of the persona
|
|
168
|
+
*/
|
|
169
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
170
|
+
/**
|
|
171
|
+
* How the persona confirms information
|
|
172
|
+
*/
|
|
173
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
174
|
+
/**
|
|
175
|
+
* Creation timestamp
|
|
176
|
+
*/
|
|
177
|
+
createdAt: string;
|
|
178
|
+
/**
|
|
179
|
+
* Gender of the persona
|
|
180
|
+
*/
|
|
181
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
182
|
+
/**
|
|
183
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
184
|
+
*/
|
|
185
|
+
hasDisfluencies: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* How clearly the persona expresses their intentions
|
|
188
|
+
*/
|
|
189
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
190
|
+
/**
|
|
191
|
+
* Primary language ISO 639-1 code for the persona
|
|
192
|
+
*/
|
|
193
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
|
|
194
|
+
/**
|
|
195
|
+
* How reliable the persona's memory is
|
|
196
|
+
*/
|
|
197
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
198
|
+
/**
|
|
199
|
+
* The name the agent will identify as during conversations
|
|
200
|
+
*/
|
|
201
|
+
name: string;
|
|
202
|
+
/**
|
|
203
|
+
* Additional custom properties about the persona
|
|
204
|
+
*/
|
|
205
|
+
properties: {
|
|
206
|
+
[key: string]: unknown;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Speech clarity of the persona
|
|
210
|
+
*/
|
|
211
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
212
|
+
/**
|
|
213
|
+
* Speech pace of the persona
|
|
214
|
+
*/
|
|
215
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
216
|
+
/**
|
|
217
|
+
* Last update timestamp
|
|
218
|
+
*/
|
|
219
|
+
updatedAt: string;
|
|
220
|
+
/**
|
|
221
|
+
* Background story and behavioral patterns for the persona
|
|
222
|
+
*/
|
|
223
|
+
backstoryPrompt?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
226
|
+
*/
|
|
227
|
+
secondaryLanguage?: 'EN' | null;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Scenario used in a simulation
|
|
231
|
+
*/
|
|
232
|
+
interface Scenario {
|
|
233
|
+
/**
|
|
234
|
+
* Scenario ID
|
|
235
|
+
*/
|
|
236
|
+
id: string;
|
|
237
|
+
/**
|
|
238
|
+
* Scenario description
|
|
239
|
+
*/
|
|
240
|
+
description?: string | null;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
28
244
|
}
|
|
29
|
-
export interface
|
|
245
|
+
export interface SimulationGetSimulationJobByIDResponse {
|
|
30
246
|
/**
|
|
31
247
|
* Simulation job with related entities
|
|
32
248
|
*/
|
|
33
|
-
data:
|
|
249
|
+
data: SimulationGetSimulationJobByIDResponse.Data;
|
|
34
250
|
}
|
|
35
|
-
export declare namespace
|
|
251
|
+
export declare namespace SimulationGetSimulationJobByIDResponse {
|
|
36
252
|
/**
|
|
37
253
|
* Simulation job with related entities
|
|
38
254
|
*/
|
|
@@ -80,10 +296,6 @@ export declare namespace SimulationGetJobByIDResponse {
|
|
|
80
296
|
* Agent endpoint ID
|
|
81
297
|
*/
|
|
82
298
|
id: string;
|
|
83
|
-
/**
|
|
84
|
-
* Agent endpoint type
|
|
85
|
-
*/
|
|
86
|
-
endpointType: string;
|
|
87
299
|
/**
|
|
88
300
|
* Agent endpoint name
|
|
89
301
|
*/
|
|
@@ -92,6 +304,10 @@ export declare namespace SimulationGetJobByIDResponse {
|
|
|
92
304
|
* Agent endpoint phone number
|
|
93
305
|
*/
|
|
94
306
|
phoneNumber: string | null;
|
|
307
|
+
/**
|
|
308
|
+
* Agent endpoint type
|
|
309
|
+
*/
|
|
310
|
+
type: string;
|
|
95
311
|
}
|
|
96
312
|
interface Persona {
|
|
97
313
|
/**
|
|
@@ -102,7 +318,7 @@ export declare namespace SimulationGetJobByIDResponse {
|
|
|
102
318
|
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
103
319
|
* optional variants
|
|
104
320
|
*/
|
|
105
|
-
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT';
|
|
321
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH';
|
|
106
322
|
/**
|
|
107
323
|
* Background noise setting
|
|
108
324
|
*/
|
|
@@ -134,7 +350,7 @@ export declare namespace SimulationGetJobByIDResponse {
|
|
|
134
350
|
/**
|
|
135
351
|
* Primary language ISO 639-1 code for the persona
|
|
136
352
|
*/
|
|
137
|
-
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT';
|
|
353
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
|
|
138
354
|
/**
|
|
139
355
|
* How reliable the persona's memory is
|
|
140
356
|
*/
|
|
@@ -185,13 +401,13 @@ export declare namespace SimulationGetJobByIDResponse {
|
|
|
185
401
|
}
|
|
186
402
|
}
|
|
187
403
|
}
|
|
188
|
-
export interface
|
|
404
|
+
export interface SimulationLookupSimulationJobResponse {
|
|
189
405
|
/**
|
|
190
406
|
* Simulation job with related entities
|
|
191
407
|
*/
|
|
192
|
-
data:
|
|
408
|
+
data: SimulationLookupSimulationJobResponse.Data;
|
|
193
409
|
}
|
|
194
|
-
export declare namespace
|
|
410
|
+
export declare namespace SimulationLookupSimulationJobResponse {
|
|
195
411
|
/**
|
|
196
412
|
* Simulation job with related entities
|
|
197
413
|
*/
|
|
@@ -239,10 +455,6 @@ export declare namespace SimulationLookupJobResponse {
|
|
|
239
455
|
* Agent endpoint ID
|
|
240
456
|
*/
|
|
241
457
|
id: string;
|
|
242
|
-
/**
|
|
243
|
-
* Agent endpoint type
|
|
244
|
-
*/
|
|
245
|
-
endpointType: string;
|
|
246
458
|
/**
|
|
247
459
|
* Agent endpoint name
|
|
248
460
|
*/
|
|
@@ -251,6 +463,10 @@ export declare namespace SimulationLookupJobResponse {
|
|
|
251
463
|
* Agent endpoint phone number
|
|
252
464
|
*/
|
|
253
465
|
phoneNumber: string | null;
|
|
466
|
+
/**
|
|
467
|
+
* Agent endpoint type
|
|
468
|
+
*/
|
|
469
|
+
type: string;
|
|
254
470
|
}
|
|
255
471
|
interface Persona {
|
|
256
472
|
/**
|
|
@@ -261,7 +477,7 @@ export declare namespace SimulationLookupJobResponse {
|
|
|
261
477
|
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
262
478
|
* optional variants
|
|
263
479
|
*/
|
|
264
|
-
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT';
|
|
480
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH';
|
|
265
481
|
/**
|
|
266
482
|
* Background noise setting
|
|
267
483
|
*/
|
|
@@ -293,7 +509,7 @@ export declare namespace SimulationLookupJobResponse {
|
|
|
293
509
|
/**
|
|
294
510
|
* Primary language ISO 639-1 code for the persona
|
|
295
511
|
*/
|
|
296
|
-
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT';
|
|
512
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
|
|
297
513
|
/**
|
|
298
514
|
* How reliable the persona's memory is
|
|
299
515
|
*/
|
|
@@ -344,7 +560,36 @@ export declare namespace SimulationLookupJobResponse {
|
|
|
344
560
|
}
|
|
345
561
|
}
|
|
346
562
|
}
|
|
347
|
-
export interface
|
|
563
|
+
export interface SimulationStartRunPlanJobResponse {
|
|
564
|
+
/**
|
|
565
|
+
* Response when triggering a simulation run plan
|
|
566
|
+
*/
|
|
567
|
+
data: SimulationStartRunPlanJobResponse.Data;
|
|
568
|
+
}
|
|
569
|
+
export declare namespace SimulationStartRunPlanJobResponse {
|
|
570
|
+
/**
|
|
571
|
+
* Response when triggering a simulation run plan
|
|
572
|
+
*/
|
|
573
|
+
interface Data {
|
|
574
|
+
/**
|
|
575
|
+
* When the job was created
|
|
576
|
+
*/
|
|
577
|
+
createdAt: string;
|
|
578
|
+
/**
|
|
579
|
+
* ID of the simulation run plan that was executed
|
|
580
|
+
*/
|
|
581
|
+
simulationRunPlanId: string;
|
|
582
|
+
/**
|
|
583
|
+
* ID of the simulation run plan job that was created
|
|
584
|
+
*/
|
|
585
|
+
simulationRunPlanJobId: string;
|
|
586
|
+
/**
|
|
587
|
+
* Initial status of the job
|
|
588
|
+
*/
|
|
589
|
+
status: string;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
export interface SimulationLookupSimulationJobParams {
|
|
348
593
|
/**
|
|
349
594
|
* Phone number provisioned by Roark for the simulation job in E.164 format. In the
|
|
350
595
|
* case of an inbound simulation, this is the number that calls your agent; in the
|
|
@@ -359,6 +604,6 @@ export interface SimulationLookupJobParams {
|
|
|
359
604
|
callReceivedAt?: unknown;
|
|
360
605
|
}
|
|
361
606
|
export declare namespace Simulation {
|
|
362
|
-
export { type
|
|
607
|
+
export { type SimulationGetRunPlanJobResponse as SimulationGetRunPlanJobResponse, type SimulationGetSimulationJobByIDResponse as SimulationGetSimulationJobByIDResponse, type SimulationLookupSimulationJobResponse as SimulationLookupSimulationJobResponse, type SimulationStartRunPlanJobResponse as SimulationStartRunPlanJobResponse, type SimulationLookupSimulationJobParams as SimulationLookupSimulationJobParams, };
|
|
363
608
|
}
|
|
364
609
|
//# sourceMappingURL=simulation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,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I;QACnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,mCAAmC;IAClD;;;;OAIG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
package/resources/simulation.js
CHANGED
|
@@ -5,17 +5,32 @@ exports.Simulation = void 0;
|
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
class Simulation extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Retrieve details of a simulation plan job including all associated simulation
|
|
9
|
+
* jobs (calls)
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const response = await client.simulation.
|
|
13
|
+
* const response = await client.simulation.getRunPlanJob(
|
|
14
14
|
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
15
15
|
* );
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
getRunPlanJob(jobId, options) {
|
|
19
|
+
return this._client.get(`/v1/simulation/plan/job/${jobId}`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
23
|
+
* larger simulation run plan job.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const response =
|
|
28
|
+
* await client.simulation.getSimulationJobById(
|
|
29
|
+
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
getSimulationJobById(jobId, options) {
|
|
19
34
|
return this._client.get(`/v1/simulation/job/${jobId}`, options);
|
|
20
35
|
}
|
|
21
36
|
/**
|
|
@@ -24,14 +39,28 @@ class Simulation extends resource_1.APIResource {
|
|
|
24
39
|
*
|
|
25
40
|
* @example
|
|
26
41
|
* ```ts
|
|
27
|
-
* const response =
|
|
28
|
-
*
|
|
29
|
-
* }
|
|
42
|
+
* const response =
|
|
43
|
+
* await client.simulation.lookupSimulationJob({
|
|
44
|
+
* roarkPhoneNumber: {},
|
|
45
|
+
* });
|
|
30
46
|
* ```
|
|
31
47
|
*/
|
|
32
|
-
|
|
48
|
+
lookupSimulationJob(query, options) {
|
|
33
49
|
return this._client.get('/v1/simulation/job/lookup', { query, ...options });
|
|
34
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Create and execute a job for an existing simulation run plan
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.simulation.startRunPlanJob(
|
|
57
|
+
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
startRunPlanJob(planId, options) {
|
|
62
|
+
return this._client.post(`/v1/simulation/plan/${planId}/job`, options);
|
|
63
|
+
}
|
|
35
64
|
}
|
|
36
65
|
exports.Simulation = Simulation;
|
|
37
66
|
//# sourceMappingURL=simulation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation.js","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;OAUG;IACH,
|
|
1
|
+
{"version":3,"file":"simulation.js","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,KAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,mBAAmB,CACjB,KAA0C,EAC1C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,eAAe,CACb,MAAe,EACf,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,MAAM,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAzED,gCAyEC"}
|
package/resources/simulation.mjs
CHANGED
|
@@ -2,17 +2,32 @@
|
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
export class Simulation extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Retrieve details of a simulation plan job including all associated simulation
|
|
6
|
+
* jobs (calls)
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* const response = await client.simulation.
|
|
10
|
+
* const response = await client.simulation.getRunPlanJob(
|
|
11
11
|
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
12
12
|
* );
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
getRunPlanJob(jobId, options) {
|
|
16
|
+
return this._client.get(`/v1/simulation/plan/job/${jobId}`, options);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
20
|
+
* larger simulation run plan job.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response =
|
|
25
|
+
* await client.simulation.getSimulationJobById(
|
|
26
|
+
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
getSimulationJobById(jobId, options) {
|
|
16
31
|
return this._client.get(`/v1/simulation/job/${jobId}`, options);
|
|
17
32
|
}
|
|
18
33
|
/**
|
|
@@ -21,13 +36,27 @@ export class Simulation extends APIResource {
|
|
|
21
36
|
*
|
|
22
37
|
* @example
|
|
23
38
|
* ```ts
|
|
24
|
-
* const response =
|
|
25
|
-
*
|
|
26
|
-
* }
|
|
39
|
+
* const response =
|
|
40
|
+
* await client.simulation.lookupSimulationJob({
|
|
41
|
+
* roarkPhoneNumber: {},
|
|
42
|
+
* });
|
|
27
43
|
* ```
|
|
28
44
|
*/
|
|
29
|
-
|
|
45
|
+
lookupSimulationJob(query, options) {
|
|
30
46
|
return this._client.get('/v1/simulation/job/lookup', { query, ...options });
|
|
31
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Create and execute a job for an existing simulation run plan
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response = await client.simulation.startRunPlanJob(
|
|
54
|
+
* '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
startRunPlanJob(planId, options) {
|
|
59
|
+
return this._client.post(`/v1/simulation/plan/${planId}/job`, options);
|
|
60
|
+
}
|
|
32
61
|
}
|
|
33
62
|
//# sourceMappingURL=simulation.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation.mjs","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,
|
|
1
|
+
{"version":3,"file":"simulation.mjs","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,KAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,mBAAmB,CACjB,KAA0C,EAC1C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,eAAe,CACb,MAAe,EACf,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,MAAM,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|