@roarkanalytics/sdk 0.321.0 → 0.322.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 +9 -0
- package/README.md +21 -61
- package/index.d.mts +3 -3
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/evaluations.d.ts +255 -0
- package/resources/evaluations.d.ts.map +1 -0
- package/resources/evaluations.js +15 -0
- package/resources/evaluations.js.map +1 -0
- package/resources/evaluations.mjs +11 -0
- package/resources/evaluations.mjs.map +1 -0
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/src/index.ts +6 -12
- package/src/resources/evaluations.ts +352 -0
- package/src/resources/index.ts +1 -6
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/call-analysis.d.ts +0 -220
- package/resources/call-analysis.d.ts.map +0 -1
- package/resources/call-analysis.js +0 -39
- package/resources/call-analysis.js.map +0 -1
- package/resources/call-analysis.mjs +0 -35
- package/resources/call-analysis.mjs.map +0 -1
- package/src/resources/call-analysis.ts +0 -314
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.322.0 (2025-06-03)
|
4
|
+
|
5
|
+
Full Changelog: [v0.321.0...v0.322.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.321.0...v0.322.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([18a662b](https://github.com/roarkhq/sdk-roark-analytics-node/commit/18a662b81c58dc7eac50d17f34fcb96f13ff8d20))
|
10
|
+
* **api:** api update ([17e75c3](https://github.com/roarkhq/sdk-roark-analytics-node/commit/17e75c35c78d26542f28e6664f8d64deff82ba0d))
|
11
|
+
|
3
12
|
## 0.321.0 (2025-06-03)
|
4
13
|
|
5
14
|
Full Changelog: [v0.320.0...v0.321.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.320.0...v0.321.0)
|
package/README.md
CHANGED
@@ -27,15 +27,9 @@ const client = new Roark({
|
|
27
27
|
});
|
28
28
|
|
29
29
|
async function main() {
|
30
|
-
const
|
31
|
-
callDirection: 'INBOUND',
|
32
|
-
interfaceType: 'WEB',
|
33
|
-
participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
|
34
|
-
recordingUrl: 'https://example.com/recording.wav',
|
35
|
-
startedAt: '2025-06-02T16:16:48.075Z',
|
36
|
-
});
|
30
|
+
const evaluation = await client.evaluations.create({ evaluators: ['string'] });
|
37
31
|
|
38
|
-
console.log(
|
32
|
+
console.log(evaluation.data);
|
39
33
|
}
|
40
34
|
|
41
35
|
main();
|
@@ -54,14 +48,8 @@ const client = new Roark({
|
|
54
48
|
});
|
55
49
|
|
56
50
|
async function main() {
|
57
|
-
const params: Roark.
|
58
|
-
|
59
|
-
interfaceType: 'WEB',
|
60
|
-
participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
|
61
|
-
recordingUrl: 'https://example.com/recording.wav',
|
62
|
-
startedAt: '2025-06-02T16:16:48.075Z',
|
63
|
-
};
|
64
|
-
const callAnalysis: Roark.CallAnalysisCreateResponse = await client.callAnalysis.create(params);
|
51
|
+
const params: Roark.EvaluationCreateParams = { evaluators: ['string'] };
|
52
|
+
const evaluation: Roark.EvaluationCreateResponse = await client.evaluations.create(params);
|
65
53
|
}
|
66
54
|
|
67
55
|
main();
|
@@ -78,23 +66,15 @@ a subclass of `APIError` will be thrown:
|
|
78
66
|
<!-- prettier-ignore -->
|
79
67
|
```ts
|
80
68
|
async function main() {
|
81
|
-
const
|
82
|
-
.
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
}
|
89
|
-
|
90
|
-
if (err instanceof Roark.APIError) {
|
91
|
-
console.log(err.status); // 400
|
92
|
-
console.log(err.name); // BadRequestError
|
93
|
-
console.log(err.headers); // {server: 'nginx', ...}
|
94
|
-
} else {
|
95
|
-
throw err;
|
96
|
-
}
|
97
|
-
});
|
69
|
+
const evaluation = await client.evaluations.create({ evaluators: ['string'] }).catch(async (err) => {
|
70
|
+
if (err instanceof Roark.APIError) {
|
71
|
+
console.log(err.status); // 400
|
72
|
+
console.log(err.name); // BadRequestError
|
73
|
+
console.log(err.headers); // {server: 'nginx', ...}
|
74
|
+
} else {
|
75
|
+
throw err;
|
76
|
+
}
|
77
|
+
});
|
98
78
|
}
|
99
79
|
|
100
80
|
main();
|
@@ -129,7 +109,7 @@ const client = new Roark({
|
|
129
109
|
});
|
130
110
|
|
131
111
|
// Or, configure per-request:
|
132
|
-
await client.
|
112
|
+
await client.evaluations.create({ evaluators: ['string'] }, {
|
133
113
|
maxRetries: 5,
|
134
114
|
});
|
135
115
|
```
|
@@ -146,7 +126,7 @@ const client = new Roark({
|
|
146
126
|
});
|
147
127
|
|
148
128
|
// Override per-request:
|
149
|
-
await client.
|
129
|
+
await client.evaluations.create({ evaluators: ['string'] }, {
|
150
130
|
timeout: 5 * 1000,
|
151
131
|
});
|
152
132
|
```
|
@@ -167,29 +147,15 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
|
|
167
147
|
```ts
|
168
148
|
const client = new Roark();
|
169
149
|
|
170
|
-
const response = await client.
|
171
|
-
.create({
|
172
|
-
callDirection: 'INBOUND',
|
173
|
-
interfaceType: 'WEB',
|
174
|
-
participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
|
175
|
-
recordingUrl: 'https://example.com/recording.wav',
|
176
|
-
startedAt: '2025-06-02T16:16:48.075Z',
|
177
|
-
})
|
178
|
-
.asResponse();
|
150
|
+
const response = await client.evaluations.create({ evaluators: ['string'] }).asResponse();
|
179
151
|
console.log(response.headers.get('X-My-Header'));
|
180
152
|
console.log(response.statusText); // access the underlying Response object
|
181
153
|
|
182
|
-
const { data:
|
183
|
-
.create({
|
184
|
-
callDirection: 'INBOUND',
|
185
|
-
interfaceType: 'WEB',
|
186
|
-
participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
|
187
|
-
recordingUrl: 'https://example.com/recording.wav',
|
188
|
-
startedAt: '2025-06-02T16:16:48.075Z',
|
189
|
-
})
|
154
|
+
const { data: evaluation, response: raw } = await client.evaluations
|
155
|
+
.create({ evaluators: ['string'] })
|
190
156
|
.withResponse();
|
191
157
|
console.log(raw.headers.get('X-My-Header'));
|
192
|
-
console.log(
|
158
|
+
console.log(evaluation.data);
|
193
159
|
```
|
194
160
|
|
195
161
|
### Making custom/undocumented requests
|
@@ -293,14 +259,8 @@ const client = new Roark({
|
|
293
259
|
});
|
294
260
|
|
295
261
|
// Override per-request:
|
296
|
-
await client.
|
297
|
-
{
|
298
|
-
callDirection: 'INBOUND',
|
299
|
-
interfaceType: 'WEB',
|
300
|
-
participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
|
301
|
-
recordingUrl: 'https://example.com/recording.wav',
|
302
|
-
startedAt: '2025-06-02T16:16:48.075Z',
|
303
|
-
},
|
262
|
+
await client.evaluations.create(
|
263
|
+
{ evaluators: ['string'] },
|
304
264
|
{
|
305
265
|
httpAgent: new http.Agent({ keepAlive: false }),
|
306
266
|
},
|
package/index.d.mts
CHANGED
@@ -3,7 +3,7 @@ import * as Core from "./core.js";
|
|
3
3
|
import * as Errors from "./error.js";
|
4
4
|
import * as Uploads from "./uploads.js";
|
5
5
|
import * as API from "./resources/index.js";
|
6
|
-
import {
|
6
|
+
import { EvaluationCreateParams, EvaluationCreateResponse, Evaluations } from "./resources/evaluations.js";
|
7
7
|
import { Health, HealthGetResponse } from "./resources/health.js";
|
8
8
|
export interface ClientOptions {
|
9
9
|
/**
|
@@ -80,7 +80,7 @@ export declare class Roark extends Core.APIClient {
|
|
80
80
|
*/
|
81
81
|
constructor({ baseURL, bearerToken, ...opts }?: ClientOptions);
|
82
82
|
health: API.Health;
|
83
|
-
|
83
|
+
evaluations: API.Evaluations;
|
84
84
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
85
85
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
86
86
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
@@ -105,7 +105,7 @@ export declare class Roark extends Core.APIClient {
|
|
105
105
|
export declare namespace Roark {
|
106
106
|
export type RequestOptions = Core.RequestOptions;
|
107
107
|
export { Health as Health, type HealthGetResponse as HealthGetResponse };
|
108
|
-
export {
|
108
|
+
export { Evaluations as Evaluations, type EvaluationCreateResponse as EvaluationCreateResponse, type EvaluationCreateParams as EvaluationCreateParams, };
|
109
109
|
}
|
110
110
|
export { toFile, fileFromPath } from "./uploads.js";
|
111
111
|
export { RoarkError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
package/index.d.ts
CHANGED
@@ -3,7 +3,7 @@ import * as Core from "./core.js";
|
|
3
3
|
import * as Errors from "./error.js";
|
4
4
|
import * as Uploads from "./uploads.js";
|
5
5
|
import * as API from "./resources/index.js";
|
6
|
-
import {
|
6
|
+
import { EvaluationCreateParams, EvaluationCreateResponse, Evaluations } from "./resources/evaluations.js";
|
7
7
|
import { Health, HealthGetResponse } from "./resources/health.js";
|
8
8
|
export interface ClientOptions {
|
9
9
|
/**
|
@@ -80,7 +80,7 @@ export declare class Roark extends Core.APIClient {
|
|
80
80
|
*/
|
81
81
|
constructor({ baseURL, bearerToken, ...opts }?: ClientOptions);
|
82
82
|
health: API.Health;
|
83
|
-
|
83
|
+
evaluations: API.Evaluations;
|
84
84
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
85
85
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
86
86
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
@@ -105,7 +105,7 @@ export declare class Roark extends Core.APIClient {
|
|
105
105
|
export declare namespace Roark {
|
106
106
|
export type RequestOptions = Core.RequestOptions;
|
107
107
|
export { Health as Health, type HealthGetResponse as HealthGetResponse };
|
108
|
-
export {
|
108
|
+
export { Evaluations as Evaluations, type EvaluationCreateResponse as EvaluationCreateResponse, type EvaluationCreateParams as EvaluationCreateParams, };
|
109
109
|
}
|
110
110
|
export { toFile, fileFromPath } from "./uploads.js";
|
111
111
|
export { RoarkError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
package/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,yB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,SAAS;IAE/B,MAAM,CAAC,UAAU,2BAAqB;IACtC,MAAM,CAAC,QAAQ,yBAAmB;IAClC,MAAM,CAAC,kBAAkB,mCAA6B;IACtD,MAAM,CAAC,yBAAyB,0CAAoC;IACpE,MAAM,CAAC,iBAAiB,kCAA4B;IACpD,MAAM,CAAC,aAAa,8BAAwB;IAC5C,MAAM,CAAC,aAAa,8BAAwB;IAC5C,MAAM,CAAC,cAAc,+BAAyB;IAC9C,MAAM,CAAC,eAAe,gCAA0B;IAChD,MAAM,CAAC,mBAAmB,oCAA8B;IACxD,MAAM,CAAC,mBAAmB,oCAA8B;IACxD,MAAM,CAAC,qBAAqB,sCAAgC;IAC5D,MAAM,CAAC,wBAAwB,yCAAmC;IAElE,MAAM,CAAC,MAAM,wBAAkB;IAC/B,MAAM,CAAC,YAAY,8BAAwB;CAC5C;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;IAEjD,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAEzE,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,KAAK,CAAC"}
|
package/index.js
CHANGED
@@ -30,7 +30,7 @@ const Core = __importStar(require("./core.js"));
|
|
30
30
|
const Errors = __importStar(require("./error.js"));
|
31
31
|
const Uploads = __importStar(require("./uploads.js"));
|
32
32
|
const API = __importStar(require("./resources/index.js"));
|
33
|
-
const
|
33
|
+
const evaluations_1 = require("./resources/evaluations.js");
|
34
34
|
const health_1 = require("./resources/health.js");
|
35
35
|
/**
|
36
36
|
* API Client for interfacing with the Roark API.
|
@@ -65,7 +65,7 @@ class Roark extends Core.APIClient {
|
|
65
65
|
fetch: options.fetch,
|
66
66
|
});
|
67
67
|
this.health = new API.Health(this);
|
68
|
-
this.
|
68
|
+
this.evaluations = new API.Evaluations(this);
|
69
69
|
this._options = options;
|
70
70
|
this.bearerToken = bearerToken;
|
71
71
|
}
|
@@ -102,7 +102,7 @@ Roark.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
102
102
|
Roark.toFile = Uploads.toFile;
|
103
103
|
Roark.fileFromPath = Uploads.fileFromPath;
|
104
104
|
Roark.Health = health_1.Health;
|
105
|
-
Roark.
|
105
|
+
Roark.Evaluations = evaluations_1.Evaluations;
|
106
106
|
var uploads_1 = require("./uploads.js");
|
107
107
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
108
108
|
Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
|
package/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,4DAAwG;AACxG,kDAA+D;AAiE/D;;GAEG;AACH,MAAa,KAAM,SAAQ,IAAI,CAAC,SAAS;IAKv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iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,KAAK,CAAC"}
|
package/index.mjs
CHANGED
@@ -4,7 +4,7 @@ import * as Core from "./core.mjs";
|
|
4
4
|
import * as Errors from "./error.mjs";
|
5
5
|
import * as Uploads from "./uploads.mjs";
|
6
6
|
import * as API from "./resources/index.mjs";
|
7
|
-
import {
|
7
|
+
import { Evaluations } from "./resources/evaluations.mjs";
|
8
8
|
import { Health } from "./resources/health.mjs";
|
9
9
|
/**
|
10
10
|
* API Client for interfacing with the Roark API.
|
@@ -39,7 +39,7 @@ export class Roark extends Core.APIClient {
|
|
39
39
|
fetch: options.fetch,
|
40
40
|
});
|
41
41
|
this.health = new API.Health(this);
|
42
|
-
this.
|
42
|
+
this.evaluations = new API.Evaluations(this);
|
43
43
|
this._options = options;
|
44
44
|
this.bearerToken = bearerToken;
|
45
45
|
}
|
@@ -75,7 +75,7 @@ Roark.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
75
75
|
Roark.toFile = Uploads.toFile;
|
76
76
|
Roark.fileFromPath = Uploads.fileFromPath;
|
77
77
|
Roark.Health = Health;
|
78
|
-
Roark.
|
78
|
+
Roark.Evaluations = Evaluations;
|
79
79
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
80
80
|
export { RoarkError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
81
81
|
export default Roark;
|
package/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KA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
|
package/package.json
CHANGED
@@ -0,0 +1,255 @@
|
|
1
|
+
import { APIResource } from "../resource.js";
|
2
|
+
import * as Core from "../core.js";
|
3
|
+
export declare class Evaluations extends APIResource {
|
4
|
+
/**
|
5
|
+
* Create evaluation jobs for a dataset of calls
|
6
|
+
*/
|
7
|
+
create(body: EvaluationCreateParams, options?: Core.RequestOptions): Core.APIPromise<EvaluationCreateResponse>;
|
8
|
+
}
|
9
|
+
export interface EvaluationCreateResponse {
|
10
|
+
data: EvaluationCreateResponse.Data;
|
11
|
+
}
|
12
|
+
export declare namespace EvaluationCreateResponse {
|
13
|
+
interface Data {
|
14
|
+
/**
|
15
|
+
* ID of the evaluation job
|
16
|
+
*/
|
17
|
+
jobId: string;
|
18
|
+
/**
|
19
|
+
* Status of the evaluation job
|
20
|
+
*/
|
21
|
+
status: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILURE';
|
22
|
+
}
|
23
|
+
}
|
24
|
+
export interface EvaluationCreateParams {
|
25
|
+
/**
|
26
|
+
* List of evaluators to evaluate the calls or "all" to evaluate all evaluators
|
27
|
+
*/
|
28
|
+
evaluators: Array<string> | 'all';
|
29
|
+
/**
|
30
|
+
* Call to evaluate
|
31
|
+
*/
|
32
|
+
call?: EvaluationCreateParams.Call;
|
33
|
+
dataset?: EvaluationCreateParams.Dataset;
|
34
|
+
}
|
35
|
+
export declare namespace EvaluationCreateParams {
|
36
|
+
/**
|
37
|
+
* Call to evaluate
|
38
|
+
*/
|
39
|
+
interface Call {
|
40
|
+
/**
|
41
|
+
* Direction of the call (INBOUND or OUTBOUND)
|
42
|
+
*/
|
43
|
+
callDirection: 'INBOUND' | 'OUTBOUND';
|
44
|
+
/**
|
45
|
+
* Interface type of the call (PHONE or WEB)
|
46
|
+
*/
|
47
|
+
interfaceType: 'PHONE' | 'WEB';
|
48
|
+
/**
|
49
|
+
* Exactly two participants in the call
|
50
|
+
*/
|
51
|
+
participants: Array<Call.Participant>;
|
52
|
+
/**
|
53
|
+
* URL of source recording (must be an accessible WAV or MP3 file). Can be a signed
|
54
|
+
* URL.
|
55
|
+
*/
|
56
|
+
recordingUrl: string;
|
57
|
+
/**
|
58
|
+
* When the call started (ISO 8601 format)
|
59
|
+
*/
|
60
|
+
startedAt: string;
|
61
|
+
/**
|
62
|
+
* Additional context on why the call terminated with the endedStatus
|
63
|
+
*/
|
64
|
+
endedReason?: string;
|
65
|
+
/**
|
66
|
+
* High-level call end status, indicating how the call terminated
|
67
|
+
*/
|
68
|
+
endedStatus?: 'AGENT_ENDED_CALL' | 'AGENT_TRANSFERRED_CALL' | 'AGENT_ERROR' | 'CUSTOMER_ENDED_CALL' | 'VOICE_MAIL_REACHED' | 'SILENCE_TIME_OUT' | 'PHONE_CALL_PROVIDER_CONNECTION_ERROR' | 'CUSTOMER_DID_NOT_ANSWER' | 'CUSTOMER_BUSY' | 'DIAL_ERROR' | 'MAX_DURATION_REACHED' | 'UNKNOWN';
|
69
|
+
/**
|
70
|
+
* Whether this is a test call
|
71
|
+
*/
|
72
|
+
isTest?: boolean;
|
73
|
+
/**
|
74
|
+
* Custom properties to include with the call. These can be used for filtering and
|
75
|
+
* will show in the call details page
|
76
|
+
*/
|
77
|
+
properties?: Record<string, unknown>;
|
78
|
+
/**
|
79
|
+
* Retell call ID if call is being imported from Retell
|
80
|
+
*/
|
81
|
+
retellCallId?: string;
|
82
|
+
/**
|
83
|
+
* URL of source stereo recording in WAV format. Must be accessible. Can be a
|
84
|
+
* signed URL. While optional it allows for a richer audio player
|
85
|
+
*/
|
86
|
+
stereoRecordingUrl?: string;
|
87
|
+
/**
|
88
|
+
* List of tool invocations made during the call
|
89
|
+
*/
|
90
|
+
toolInvocations?: Array<Call.ToolInvocation>;
|
91
|
+
/**
|
92
|
+
* Vapi call ID if call is being imported from Vapi
|
93
|
+
*/
|
94
|
+
vapiCallId?: string;
|
95
|
+
}
|
96
|
+
namespace Call {
|
97
|
+
interface Participant {
|
98
|
+
role: 'AGENT' | 'CUSTOMER';
|
99
|
+
isSimulated?: boolean;
|
100
|
+
name?: string | null;
|
101
|
+
phoneNumber?: string | null;
|
102
|
+
spokeFirst?: boolean;
|
103
|
+
}
|
104
|
+
interface ToolInvocation {
|
105
|
+
/**
|
106
|
+
* Name of the tool that was invoked
|
107
|
+
*/
|
108
|
+
name: string;
|
109
|
+
/**
|
110
|
+
* Parameters provided to the tool during invocation
|
111
|
+
*/
|
112
|
+
parameters: Record<string, ToolInvocation.UnionMember0 | unknown>;
|
113
|
+
/**
|
114
|
+
* Result returned by the tool after execution. Can be a string or a JSON object
|
115
|
+
*/
|
116
|
+
result: string | Record<string, unknown>;
|
117
|
+
/**
|
118
|
+
* Offset in milliseconds from the start of the call when the tool was invoked
|
119
|
+
*/
|
120
|
+
startOffsetMs: number;
|
121
|
+
/**
|
122
|
+
* Description of when the tool should be invoked
|
123
|
+
*/
|
124
|
+
description?: string;
|
125
|
+
/**
|
126
|
+
* Offset in milliseconds from the start of the call when the tool execution
|
127
|
+
* completed. Used to calculate duration of the tool execution
|
128
|
+
*/
|
129
|
+
endOffsetMs?: number;
|
130
|
+
}
|
131
|
+
namespace ToolInvocation {
|
132
|
+
interface UnionMember0 {
|
133
|
+
description?: string;
|
134
|
+
type?: 'string' | 'number' | 'boolean';
|
135
|
+
value?: unknown;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
interface Dataset {
|
140
|
+
/**
|
141
|
+
* List of calls to evaluate
|
142
|
+
*/
|
143
|
+
calls: Array<Dataset.Call>;
|
144
|
+
/**
|
145
|
+
* Name of the dataset
|
146
|
+
*/
|
147
|
+
name: string;
|
148
|
+
}
|
149
|
+
namespace Dataset {
|
150
|
+
interface Call {
|
151
|
+
/**
|
152
|
+
* Direction of the call (INBOUND or OUTBOUND)
|
153
|
+
*/
|
154
|
+
callDirection: 'INBOUND' | 'OUTBOUND';
|
155
|
+
/**
|
156
|
+
* Interface type of the call (PHONE or WEB)
|
157
|
+
*/
|
158
|
+
interfaceType: 'PHONE' | 'WEB';
|
159
|
+
/**
|
160
|
+
* Exactly two participants in the call
|
161
|
+
*/
|
162
|
+
participants: Array<Call.Participant>;
|
163
|
+
/**
|
164
|
+
* URL of source recording (must be an accessible WAV or MP3 file). Can be a signed
|
165
|
+
* URL.
|
166
|
+
*/
|
167
|
+
recordingUrl: string;
|
168
|
+
/**
|
169
|
+
* When the call started (ISO 8601 format)
|
170
|
+
*/
|
171
|
+
startedAt: string;
|
172
|
+
/**
|
173
|
+
* Additional context on why the call terminated with the endedStatus
|
174
|
+
*/
|
175
|
+
endedReason?: string;
|
176
|
+
/**
|
177
|
+
* High-level call end status, indicating how the call terminated
|
178
|
+
*/
|
179
|
+
endedStatus?: 'AGENT_ENDED_CALL' | 'AGENT_TRANSFERRED_CALL' | 'AGENT_ERROR' | 'CUSTOMER_ENDED_CALL' | 'VOICE_MAIL_REACHED' | 'SILENCE_TIME_OUT' | 'PHONE_CALL_PROVIDER_CONNECTION_ERROR' | 'CUSTOMER_DID_NOT_ANSWER' | 'CUSTOMER_BUSY' | 'DIAL_ERROR' | 'MAX_DURATION_REACHED' | 'UNKNOWN';
|
180
|
+
/**
|
181
|
+
* Whether this is a test call
|
182
|
+
*/
|
183
|
+
isTest?: boolean;
|
184
|
+
/**
|
185
|
+
* Custom properties to include with the call. These can be used for filtering and
|
186
|
+
* will show in the call details page
|
187
|
+
*/
|
188
|
+
properties?: Record<string, unknown>;
|
189
|
+
/**
|
190
|
+
* Retell call ID if call is being imported from Retell
|
191
|
+
*/
|
192
|
+
retellCallId?: string;
|
193
|
+
/**
|
194
|
+
* URL of source stereo recording in WAV format. Must be accessible. Can be a
|
195
|
+
* signed URL. While optional it allows for a richer audio player
|
196
|
+
*/
|
197
|
+
stereoRecordingUrl?: string;
|
198
|
+
/**
|
199
|
+
* List of tool invocations made during the call
|
200
|
+
*/
|
201
|
+
toolInvocations?: Array<Call.ToolInvocation>;
|
202
|
+
/**
|
203
|
+
* Vapi call ID if call is being imported from Vapi
|
204
|
+
*/
|
205
|
+
vapiCallId?: string;
|
206
|
+
}
|
207
|
+
namespace Call {
|
208
|
+
interface Participant {
|
209
|
+
role: 'AGENT' | 'CUSTOMER';
|
210
|
+
isSimulated?: boolean;
|
211
|
+
name?: string | null;
|
212
|
+
phoneNumber?: string | null;
|
213
|
+
spokeFirst?: boolean;
|
214
|
+
}
|
215
|
+
interface ToolInvocation {
|
216
|
+
/**
|
217
|
+
* Name of the tool that was invoked
|
218
|
+
*/
|
219
|
+
name: string;
|
220
|
+
/**
|
221
|
+
* Parameters provided to the tool during invocation
|
222
|
+
*/
|
223
|
+
parameters: Record<string, ToolInvocation.UnionMember0 | unknown>;
|
224
|
+
/**
|
225
|
+
* Result returned by the tool after execution. Can be a string or a JSON object
|
226
|
+
*/
|
227
|
+
result: string | Record<string, unknown>;
|
228
|
+
/**
|
229
|
+
* Offset in milliseconds from the start of the call when the tool was invoked
|
230
|
+
*/
|
231
|
+
startOffsetMs: number;
|
232
|
+
/**
|
233
|
+
* Description of when the tool should be invoked
|
234
|
+
*/
|
235
|
+
description?: string;
|
236
|
+
/**
|
237
|
+
* Offset in milliseconds from the start of the call when the tool execution
|
238
|
+
* completed. Used to calculate duration of the tool execution
|
239
|
+
*/
|
240
|
+
endOffsetMs?: number;
|
241
|
+
}
|
242
|
+
namespace ToolInvocation {
|
243
|
+
interface UnionMember0 {
|
244
|
+
description?: string;
|
245
|
+
type?: 'string' | 'number' | 'boolean';
|
246
|
+
value?: unknown;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
export declare namespace Evaluations {
|
253
|
+
export { type EvaluationCreateResponse as EvaluationCreateResponse, type EvaluationCreateParams as EvaluationCreateParams, };
|
254
|
+
}
|
255
|
+
//# sourceMappingURL=evaluations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"evaluations.d.ts","sourceRoot":"","sources":["../src/resources/evaluations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE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,OAAO,CAAC;gBAEtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAErB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAE5B,UAAU,CAAC,EAAE,OAAO,CAAC;aACtB;YAED,UAAiB,cAAc;gBAC7B;;mBAEG;gBACH,IAAI,EAAE,MAAM,CAAC;gBAEb;;mBAEG;gBACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,YAAY,GAAG,OAAO,CAAC,CAAC;gBAElE;;mBAEG;gBACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAEzC;;mBAEG;gBACH,aAAa,EAAE,MAAM,CAAC;gBAEtB;;mBAEG;gBACH,WAAW,CAAC,EAAE,MAAM,CAAC;gBAErB;;;mBAGG;gBACH,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB;YAED,UAAiB,cAAc,CAAC;gBAC9B,UAAiB,YAAY;oBAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;oBAErB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;oBAEvC,KAAK,CAAC,EAAE,OAAO,CAAC;iBACjB;aACF;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.Evaluations = void 0;
|
5
|
+
const resource_1 = require("../resource.js");
|
6
|
+
class Evaluations extends resource_1.APIResource {
|
7
|
+
/**
|
8
|
+
* Create evaluation jobs for a dataset of calls
|
9
|
+
*/
|
10
|
+
create(body, options) {
|
11
|
+
return this._client.post('/v1/evaluations', { body, ...options });
|
12
|
+
}
|
13
|
+
}
|
14
|
+
exports.Evaluations = Evaluations;
|
15
|
+
//# sourceMappingURL=evaluations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"evaluations.js","sourceRoot":"","sources":["../src/resources/evaluations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF;AAVD,kCAUC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
import { APIResource } from "../resource.mjs";
|
3
|
+
export class Evaluations extends APIResource {
|
4
|
+
/**
|
5
|
+
* Create evaluation jobs for a dataset of calls
|
6
|
+
*/
|
7
|
+
create(body, options) {
|
8
|
+
return this._client.post('/v1/evaluations', { body, ...options });
|
9
|
+
}
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=evaluations.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"evaluations.mjs","sourceRoot":"","sources":["../src/resources/evaluations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
|
package/resources/index.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export {
|
1
|
+
export { Evaluations, type EvaluationCreateResponse, type EvaluationCreateParams } from "./evaluations.js";
|
2
2
|
export { Health, type HealthGetResponse } from "./health.js";
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC"}
|
package/resources/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.Health = exports.
|
5
|
-
var
|
6
|
-
Object.defineProperty(exports, "
|
4
|
+
exports.Health = exports.Evaluations = void 0;
|
5
|
+
var evaluations_1 = require("./evaluations.js");
|
6
|
+
Object.defineProperty(exports, "Evaluations", { enumerable: true, get: function () { return evaluations_1.Evaluations; } });
|
7
7
|
var health_1 = require("./health.js");
|
8
8
|
Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAAwG;AAA/F,0GAAA,WAAW,OAAA;AACpB,sCAA0D;AAAjD,gGAAA,MAAM,OAAA"}
|