@roarkanalytics/sdk 2.9.1 → 2.11.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 +38 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +4 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/call.d.ts +180 -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.ts +12 -10
- package/resources/evaluation.d.ts.map +1 -1
- package/resources/index.d.ts +2 -1
- 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 +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metric.d.ts +74 -0
- package/resources/metric.d.ts.map +1 -0
- package/resources/metric.js +17 -0
- package/resources/metric.js.map +1 -0
- package/resources/metric.mjs +13 -0
- package/resources/metric.mjs.map +1 -0
- package/resources/persona.d.ts +105 -119
- package/resources/persona.d.ts.map +1 -1
- package/resources/persona.js +5 -31
- package/resources/persona.js.map +1 -1
- package/resources/persona.mjs +5 -31
- package/resources/persona.mjs.map +1 -1
- package/resources/simulation.d.ts +99 -64
- package/resources/simulation.d.ts.map +1 -1
- package/resources/simulation.js +3 -2
- package/resources/simulation.js.map +1 -1
- package/resources/simulation.mjs +3 -2
- package/resources/simulation.mjs.map +1 -1
- package/src/index.ts +14 -1
- package/src/resources/call.ts +230 -0
- package/src/resources/evaluation.ts +26 -8
- package/src/resources/index.ts +8 -1
- package/src/resources/metric.ts +90 -0
- package/src/resources/persona.ts +156 -114
- package/src/resources/simulation.ts +121 -64
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -2,7 +2,8 @@ import { APIResource } from "../resource.js";
|
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
3
|
export declare class Simulation extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
6
|
+
* larger simulation run plan job.
|
|
6
7
|
*
|
|
7
8
|
* @example
|
|
8
9
|
* ```ts
|
|
@@ -13,7 +14,7 @@ export declare class Simulation extends APIResource {
|
|
|
13
14
|
*/
|
|
14
15
|
getJobById(jobId: unknown, options?: Core.RequestOptions): Core.APIPromise<SimulationGetJobByIDResponse>;
|
|
15
16
|
/**
|
|
16
|
-
* Find the matching simulation
|
|
17
|
+
* Find the matching simulation using the number used by the Roark simulation
|
|
17
18
|
* agent.
|
|
18
19
|
*
|
|
19
20
|
* @example
|
|
@@ -37,23 +38,20 @@ export declare namespace SimulationGetJobByIDResponse {
|
|
|
37
38
|
*/
|
|
38
39
|
interface Data {
|
|
39
40
|
/**
|
|
40
|
-
* Agent endpoint used in
|
|
41
|
+
* Agent endpoint used in a simulation
|
|
41
42
|
*/
|
|
42
43
|
agentEndpoint: Data.AgentEndpoint;
|
|
43
44
|
/**
|
|
44
45
|
* When the job was created
|
|
45
46
|
*/
|
|
46
47
|
createdAt: string;
|
|
47
|
-
/**
|
|
48
|
-
* Persona used in the simulation
|
|
49
|
-
*/
|
|
50
48
|
persona: Data.Persona;
|
|
51
49
|
/**
|
|
52
50
|
* Processing status
|
|
53
51
|
*/
|
|
54
52
|
processingStatus: string;
|
|
55
53
|
/**
|
|
56
|
-
* Scenario used in
|
|
54
|
+
* Scenario used in a simulation
|
|
57
55
|
*/
|
|
58
56
|
scenario: Data.Scenario;
|
|
59
57
|
/**
|
|
@@ -75,7 +73,7 @@ export declare namespace SimulationGetJobByIDResponse {
|
|
|
75
73
|
}
|
|
76
74
|
namespace Data {
|
|
77
75
|
/**
|
|
78
|
-
* Agent endpoint used in
|
|
76
|
+
* Agent endpoint used in a simulation
|
|
79
77
|
*/
|
|
80
78
|
interface AgentEndpoint {
|
|
81
79
|
/**
|
|
@@ -95,65 +93,85 @@ export declare namespace SimulationGetJobByIDResponse {
|
|
|
95
93
|
*/
|
|
96
94
|
phoneNumber: string | null;
|
|
97
95
|
}
|
|
98
|
-
/**
|
|
99
|
-
* Persona used in the simulation
|
|
100
|
-
*/
|
|
101
96
|
interface Persona {
|
|
102
97
|
/**
|
|
103
|
-
*
|
|
98
|
+
* Unique identifier of the persona
|
|
104
99
|
*/
|
|
105
100
|
id: string;
|
|
106
101
|
/**
|
|
107
|
-
* Accent of the persona
|
|
102
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
103
|
+
* optional variants
|
|
108
104
|
*/
|
|
109
|
-
accent:
|
|
105
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
110
106
|
/**
|
|
111
107
|
* Background noise setting
|
|
112
108
|
*/
|
|
113
|
-
backgroundNoise:
|
|
109
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
114
110
|
/**
|
|
115
|
-
* Base
|
|
111
|
+
* Base emotional state of the persona
|
|
116
112
|
*/
|
|
117
|
-
baseEmotion:
|
|
113
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
118
114
|
/**
|
|
119
115
|
* How the persona confirms information
|
|
120
116
|
*/
|
|
121
|
-
confirmationStyle:
|
|
117
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
122
118
|
/**
|
|
123
|
-
*
|
|
119
|
+
* Creation timestamp
|
|
124
120
|
*/
|
|
125
|
-
|
|
121
|
+
createdAt: string;
|
|
126
122
|
/**
|
|
127
123
|
* Gender of the persona
|
|
128
124
|
*/
|
|
129
|
-
gender:
|
|
125
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
130
126
|
/**
|
|
131
|
-
*
|
|
127
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
132
128
|
*/
|
|
133
|
-
|
|
129
|
+
hasDisfluencies: boolean;
|
|
134
130
|
/**
|
|
135
|
-
*
|
|
131
|
+
* How clearly the persona expresses their intentions
|
|
136
132
|
*/
|
|
137
|
-
|
|
133
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
138
134
|
/**
|
|
139
|
-
*
|
|
135
|
+
* Primary language ISO 639-1 code for the persona
|
|
140
136
|
*/
|
|
141
|
-
|
|
137
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
142
138
|
/**
|
|
143
|
-
*
|
|
139
|
+
* How reliable the persona's memory is
|
|
140
|
+
*/
|
|
141
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
142
|
+
/**
|
|
143
|
+
* The name the agent will identify as during conversations
|
|
144
144
|
*/
|
|
145
145
|
name: string;
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
147
|
+
* Additional custom properties about the persona
|
|
148
|
+
*/
|
|
149
|
+
properties: {
|
|
150
|
+
[key: string]: unknown;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Speech clarity of the persona
|
|
154
|
+
*/
|
|
155
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
156
|
+
/**
|
|
157
|
+
* Speech pace of the persona
|
|
158
|
+
*/
|
|
159
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
160
|
+
/**
|
|
161
|
+
* Last update timestamp
|
|
162
|
+
*/
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
/**
|
|
165
|
+
* Background story and behavioral patterns for the persona
|
|
148
166
|
*/
|
|
149
|
-
|
|
167
|
+
backstoryPrompt?: string | null;
|
|
150
168
|
/**
|
|
151
|
-
*
|
|
169
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
152
170
|
*/
|
|
153
|
-
|
|
171
|
+
secondaryLanguage?: 'EN' | null;
|
|
154
172
|
}
|
|
155
173
|
/**
|
|
156
|
-
* Scenario used in
|
|
174
|
+
* Scenario used in a simulation
|
|
157
175
|
*/
|
|
158
176
|
interface Scenario {
|
|
159
177
|
/**
|
|
@@ -179,23 +197,20 @@ export declare namespace SimulationLookupJobResponse {
|
|
|
179
197
|
*/
|
|
180
198
|
interface Data {
|
|
181
199
|
/**
|
|
182
|
-
* Agent endpoint used in
|
|
200
|
+
* Agent endpoint used in a simulation
|
|
183
201
|
*/
|
|
184
202
|
agentEndpoint: Data.AgentEndpoint;
|
|
185
203
|
/**
|
|
186
204
|
* When the job was created
|
|
187
205
|
*/
|
|
188
206
|
createdAt: string;
|
|
189
|
-
/**
|
|
190
|
-
* Persona used in the simulation
|
|
191
|
-
*/
|
|
192
207
|
persona: Data.Persona;
|
|
193
208
|
/**
|
|
194
209
|
* Processing status
|
|
195
210
|
*/
|
|
196
211
|
processingStatus: string;
|
|
197
212
|
/**
|
|
198
|
-
* Scenario used in
|
|
213
|
+
* Scenario used in a simulation
|
|
199
214
|
*/
|
|
200
215
|
scenario: Data.Scenario;
|
|
201
216
|
/**
|
|
@@ -217,7 +232,7 @@ export declare namespace SimulationLookupJobResponse {
|
|
|
217
232
|
}
|
|
218
233
|
namespace Data {
|
|
219
234
|
/**
|
|
220
|
-
* Agent endpoint used in
|
|
235
|
+
* Agent endpoint used in a simulation
|
|
221
236
|
*/
|
|
222
237
|
interface AgentEndpoint {
|
|
223
238
|
/**
|
|
@@ -237,65 +252,85 @@ export declare namespace SimulationLookupJobResponse {
|
|
|
237
252
|
*/
|
|
238
253
|
phoneNumber: string | null;
|
|
239
254
|
}
|
|
240
|
-
/**
|
|
241
|
-
* Persona used in the simulation
|
|
242
|
-
*/
|
|
243
255
|
interface Persona {
|
|
244
256
|
/**
|
|
245
|
-
*
|
|
257
|
+
* Unique identifier of the persona
|
|
246
258
|
*/
|
|
247
259
|
id: string;
|
|
248
260
|
/**
|
|
249
|
-
* Accent of the persona
|
|
261
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
262
|
+
* optional variants
|
|
250
263
|
*/
|
|
251
|
-
accent:
|
|
264
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
252
265
|
/**
|
|
253
266
|
* Background noise setting
|
|
254
267
|
*/
|
|
255
|
-
backgroundNoise:
|
|
268
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
256
269
|
/**
|
|
257
|
-
* Base
|
|
270
|
+
* Base emotional state of the persona
|
|
258
271
|
*/
|
|
259
|
-
baseEmotion:
|
|
272
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
260
273
|
/**
|
|
261
274
|
* How the persona confirms information
|
|
262
275
|
*/
|
|
263
|
-
confirmationStyle:
|
|
276
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
264
277
|
/**
|
|
265
|
-
*
|
|
278
|
+
* Creation timestamp
|
|
266
279
|
*/
|
|
267
|
-
|
|
280
|
+
createdAt: string;
|
|
268
281
|
/**
|
|
269
282
|
* Gender of the persona
|
|
270
283
|
*/
|
|
271
|
-
gender:
|
|
284
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
272
285
|
/**
|
|
273
|
-
*
|
|
286
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
274
287
|
*/
|
|
275
|
-
|
|
288
|
+
hasDisfluencies: boolean;
|
|
276
289
|
/**
|
|
277
|
-
*
|
|
290
|
+
* How clearly the persona expresses their intentions
|
|
278
291
|
*/
|
|
279
|
-
|
|
292
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
280
293
|
/**
|
|
281
|
-
*
|
|
294
|
+
* Primary language ISO 639-1 code for the persona
|
|
282
295
|
*/
|
|
283
|
-
|
|
296
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
284
297
|
/**
|
|
285
|
-
*
|
|
298
|
+
* How reliable the persona's memory is
|
|
299
|
+
*/
|
|
300
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
301
|
+
/**
|
|
302
|
+
* The name the agent will identify as during conversations
|
|
286
303
|
*/
|
|
287
304
|
name: string;
|
|
288
305
|
/**
|
|
289
|
-
*
|
|
306
|
+
* Additional custom properties about the persona
|
|
307
|
+
*/
|
|
308
|
+
properties: {
|
|
309
|
+
[key: string]: unknown;
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* Speech clarity of the persona
|
|
313
|
+
*/
|
|
314
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
315
|
+
/**
|
|
316
|
+
* Speech pace of the persona
|
|
317
|
+
*/
|
|
318
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
319
|
+
/**
|
|
320
|
+
* Last update timestamp
|
|
321
|
+
*/
|
|
322
|
+
updatedAt: string;
|
|
323
|
+
/**
|
|
324
|
+
* Background story and behavioral patterns for the persona
|
|
290
325
|
*/
|
|
291
|
-
|
|
326
|
+
backstoryPrompt?: string | null;
|
|
292
327
|
/**
|
|
293
|
-
*
|
|
328
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
294
329
|
*/
|
|
295
|
-
|
|
330
|
+
secondaryLanguage?: 'EN' | null;
|
|
296
331
|
}
|
|
297
332
|
/**
|
|
298
|
-
* Scenario used in
|
|
333
|
+
* Scenario used in a simulation
|
|
299
334
|
*/
|
|
300
335
|
interface Scenario {
|
|
301
336
|
/**
|
|
@@ -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
|
|
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,GAAG,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,SAAS,CACP,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAGhD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;CACzC;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAElC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QAEtB;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC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AiB,EAAE,MAAM,GAAG,KAAK,CAAC;YAElC;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,UAAU,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;YAEvC;;eAEG;YACH,aAAa,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;YAE9C;;eAEG;YACH,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;YAEvC;;eAEG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEhC;;eAEG;YACH,iBAAiB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;SACjC;QAED;;WAEG;QACH,UAAiB,QAAQ;YACvB;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC7B;KACF;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;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,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
package/resources/simulation.js
CHANGED
|
@@ -5,7 +5,8 @@ exports.Simulation = void 0;
|
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
class Simulation extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
9
|
+
* larger simulation run plan job.
|
|
9
10
|
*
|
|
10
11
|
* @example
|
|
11
12
|
* ```ts
|
|
@@ -18,7 +19,7 @@ class Simulation extends resource_1.APIResource {
|
|
|
18
19
|
return this._client.get(`/v1/simulation/job/${jobId}`, options);
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
|
-
* Find the matching simulation
|
|
22
|
+
* Find the matching simulation using the number used by the Roark simulation
|
|
22
23
|
* agent.
|
|
23
24
|
*
|
|
24
25
|
* @example
|
|
@@ -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
|
|
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,UAAU,CAAC,KAAc,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CACP,KAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AAjCD,gCAiCC"}
|
package/resources/simulation.mjs
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
export class Simulation extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
6
|
+
* larger simulation run plan job.
|
|
6
7
|
*
|
|
7
8
|
* @example
|
|
8
9
|
* ```ts
|
|
@@ -15,7 +16,7 @@ export class Simulation extends APIResource {
|
|
|
15
16
|
return this._client.get(`/v1/simulation/job/${jobId}`, options);
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
|
-
* Find the matching simulation
|
|
19
|
+
* Find the matching simulation using the number used by the Roark simulation
|
|
19
20
|
* agent.
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
@@ -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
|
|
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,UAAU,CAAC,KAAc,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CACP,KAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,13 @@ import * as Core from './core';
|
|
|
6
6
|
import * as Errors from './error';
|
|
7
7
|
import * as Uploads from './uploads';
|
|
8
8
|
import * as API from './resources/index';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
Call,
|
|
11
|
+
CallGetEvaluationRunsResponse,
|
|
12
|
+
CallGetMetricsParams,
|
|
13
|
+
CallGetMetricsResponse,
|
|
14
|
+
CallGetSentimentRunsResponse,
|
|
15
|
+
} from './resources/call';
|
|
10
16
|
import {
|
|
11
17
|
Evaluation,
|
|
12
18
|
EvaluationCreateJobParams,
|
|
@@ -26,6 +32,7 @@ import {
|
|
|
26
32
|
IntegrationCreateVapiCallResponse,
|
|
27
33
|
Integrations,
|
|
28
34
|
} from './resources/integrations';
|
|
35
|
+
import { Metric, MetricGetDefinitionsResponse } from './resources/metric';
|
|
29
36
|
import {
|
|
30
37
|
Persona,
|
|
31
38
|
PersonaCreateParams,
|
|
@@ -162,6 +169,7 @@ export class Roark extends Core.APIClient {
|
|
|
162
169
|
health: API.Health = new API.Health(this);
|
|
163
170
|
evaluation: API.Evaluation = new API.Evaluation(this);
|
|
164
171
|
call: API.Call = new API.Call(this);
|
|
172
|
+
metric: API.Metric = new API.Metric(this);
|
|
165
173
|
integrations: API.Integrations = new API.Integrations(this);
|
|
166
174
|
simulation: API.Simulation = new API.Simulation(this);
|
|
167
175
|
persona: API.Persona = new API.Persona(this);
|
|
@@ -216,6 +224,7 @@ export class Roark extends Core.APIClient {
|
|
|
216
224
|
Roark.Health = Health;
|
|
217
225
|
Roark.Evaluation = Evaluation;
|
|
218
226
|
Roark.Call = Call;
|
|
227
|
+
Roark.Metric = Metric;
|
|
219
228
|
Roark.Integrations = Integrations;
|
|
220
229
|
Roark.Simulation = Simulation;
|
|
221
230
|
Roark.Persona = Persona;
|
|
@@ -240,9 +249,13 @@ export declare namespace Roark {
|
|
|
240
249
|
export {
|
|
241
250
|
Call as Call,
|
|
242
251
|
type CallGetEvaluationRunsResponse as CallGetEvaluationRunsResponse,
|
|
252
|
+
type CallGetMetricsResponse as CallGetMetricsResponse,
|
|
243
253
|
type CallGetSentimentRunsResponse as CallGetSentimentRunsResponse,
|
|
254
|
+
type CallGetMetricsParams as CallGetMetricsParams,
|
|
244
255
|
};
|
|
245
256
|
|
|
257
|
+
export { Metric as Metric, type MetricGetDefinitionsResponse as MetricGetDefinitionsResponse };
|
|
258
|
+
|
|
246
259
|
export {
|
|
247
260
|
Integrations as Integrations,
|
|
248
261
|
type IntegrationCreateRetellCallResponse as IntegrationCreateRetellCallResponse,
|