@roarkanalytics/sdk 2.0.0 → 2.2.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 +16 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- 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 +194 -0
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +13 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +13 -0
- package/resources/call.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/src/index.ts +6 -2
- package/src/resources/call.ts +252 -1
- package/src/resources/index.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.2.0 (2025-07-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.1.0...v2.2.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v2.1.0...v2.2.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([519db50](https://github.com/roarkhq/sdk-roark-analytics-node/commit/519db506f8e064510b77b1e11e48fb105a5190ba))
|
|
10
|
+
|
|
11
|
+
## 2.1.0 (2025-07-25)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v2.0.0...v2.1.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v2.0.0...v2.1.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([9ea4dca](https://github.com/roarkhq/sdk-roark-analytics-node/commit/9ea4dca84f0feb1fa81edac4919f009452938994))
|
|
18
|
+
|
|
3
19
|
## 2.0.0 (2025-07-25)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.333.0...v2.0.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.333.0...v2.0.0)
|
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 { Call } from "./resources/call.js";
|
|
6
|
+
import { Call, CallGetEvaluationRunsResponse, CallGetSentimentRunsResponse } from "./resources/call.js";
|
|
7
7
|
import { Evaluation, EvaluationCreateJobParams, EvaluationCreateJobResponse, EvaluationGetEvaluatorByIDResponse, EvaluationGetEvaluatorsParams, EvaluationGetEvaluatorsResponse, EvaluationGetJobResponse, EvaluationGetJobRunsParams, EvaluationGetJobRunsResponse } from "./resources/evaluation.js";
|
|
8
8
|
import { Health, HealthGetResponse } from "./resources/health.js";
|
|
9
9
|
import { IntegrationCreateRetellCallParams, IntegrationCreateRetellCallResponse, IntegrationCreateVapiCallParams, IntegrationCreateVapiCallResponse, Integrations } from "./resources/integrations.js";
|
|
@@ -113,7 +113,7 @@ export declare namespace Roark {
|
|
|
113
113
|
export type RequestOptions = Core.RequestOptions;
|
|
114
114
|
export { Health as Health, type HealthGetResponse as HealthGetResponse };
|
|
115
115
|
export { Evaluation as Evaluation, type EvaluationCreateJobResponse as EvaluationCreateJobResponse, type EvaluationGetEvaluatorByIDResponse as EvaluationGetEvaluatorByIDResponse, type EvaluationGetEvaluatorsResponse as EvaluationGetEvaluatorsResponse, type EvaluationGetJobResponse as EvaluationGetJobResponse, type EvaluationGetJobRunsResponse as EvaluationGetJobRunsResponse, type EvaluationCreateJobParams as EvaluationCreateJobParams, type EvaluationGetEvaluatorsParams as EvaluationGetEvaluatorsParams, type EvaluationGetJobRunsParams as EvaluationGetJobRunsParams, };
|
|
116
|
-
export { Call as Call };
|
|
116
|
+
export { Call as Call, type CallGetEvaluationRunsResponse as CallGetEvaluationRunsResponse, type CallGetSentimentRunsResponse as CallGetSentimentRunsResponse, };
|
|
117
117
|
export { Integrations as Integrations, type IntegrationCreateRetellCallResponse as IntegrationCreateRetellCallResponse, type IntegrationCreateVapiCallResponse as IntegrationCreateVapiCallResponse, type IntegrationCreateRetellCallParams as IntegrationCreateRetellCallParams, type IntegrationCreateVapiCallParams as IntegrationCreateVapiCallParams, };
|
|
118
118
|
}
|
|
119
119
|
export { toFile, fileFromPath } from "./uploads.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 { Call } from "./resources/call.js";
|
|
6
|
+
import { Call, CallGetEvaluationRunsResponse, CallGetSentimentRunsResponse } from "./resources/call.js";
|
|
7
7
|
import { Evaluation, EvaluationCreateJobParams, EvaluationCreateJobResponse, EvaluationGetEvaluatorByIDResponse, EvaluationGetEvaluatorsParams, EvaluationGetEvaluatorsResponse, EvaluationGetJobResponse, EvaluationGetJobRunsParams, EvaluationGetJobRunsResponse } from "./resources/evaluation.js";
|
|
8
8
|
import { Health, HealthGetResponse } from "./resources/health.js";
|
|
9
9
|
import { IntegrationCreateRetellCallParams, IntegrationCreateRetellCallResponse, IntegrationCreateVapiCallParams, IntegrationCreateVapiCallResponse, Integrations } from "./resources/integrations.js";
|
|
@@ -113,7 +113,7 @@ export declare namespace Roark {
|
|
|
113
113
|
export type RequestOptions = Core.RequestOptions;
|
|
114
114
|
export { Health as Health, type HealthGetResponse as HealthGetResponse };
|
|
115
115
|
export { Evaluation as Evaluation, type EvaluationCreateJobResponse as EvaluationCreateJobResponse, type EvaluationGetEvaluatorByIDResponse as EvaluationGetEvaluatorByIDResponse, type EvaluationGetEvaluatorsResponse as EvaluationGetEvaluatorsResponse, type EvaluationGetJobResponse as EvaluationGetJobResponse, type EvaluationGetJobRunsResponse as EvaluationGetJobRunsResponse, type EvaluationCreateJobParams as EvaluationCreateJobParams, type EvaluationGetEvaluatorsParams as EvaluationGetEvaluatorsParams, type EvaluationGetJobRunsParams as EvaluationGetJobRunsParams, };
|
|
116
|
-
export { Call as Call };
|
|
116
|
+
export { Call as Call, type CallGetEvaluationRunsResponse as CallGetEvaluationRunsResponse, type CallGetSentimentRunsResponse as CallGetSentimentRunsResponse, };
|
|
117
117
|
export { Integrations as Integrations, type IntegrationCreateRetellCallResponse as IntegrationCreateRetellCallResponse, type IntegrationCreateVapiCallResponse as IntegrationCreateVapiCallResponse, type IntegrationCreateRetellCallParams as IntegrationCreateRetellCallParams, type IntegrationCreateVapiCallParams as IntegrationCreateVapiCallParams, };
|
|
118
118
|
}
|
|
119
119
|
export { toFile, fileFromPath } from "./uploads.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,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
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,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kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,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.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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AG,uBAAU,CAAC;AAC9B,KAAK,CAAC,IAAI,GAAG,WAAI,CAAC;AAClB,KAAK,CAAC,YAAY,GAAG,2BAAY,CAAC;AAiClC,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,mGAAA,UAAU,OAAA;AACV,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,KAAK,CAAC"}
|
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,EAAE,IAAI,
|
|
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,EAAE,IAAI,EAA+D;OACrE,EACL,UAAU,GASX;OACM,EAAE,MAAM,EAAqB;OAC7B,EAKL,YAAY,GACb;AAmED;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,SAAS;IAKvC;;;;;;;;;;;OAWG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EACxC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,EACp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AAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,KAAK,CAAC"}
|
package/package.json
CHANGED
package/resources/call.d.ts
CHANGED
|
@@ -1,4 +1,198 @@
|
|
|
1
1
|
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
2
3
|
export declare class Call extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Fetch all evaluation run results for a specific call.
|
|
6
|
+
*/
|
|
7
|
+
getEvaluationRuns(callId: string, options?: Core.RequestOptions): Core.APIPromise<CallGetEvaluationRunsResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Fetch detailed sentiment analysis results for a specific call, including
|
|
10
|
+
* emotional tone, key phrases, and sentiment scores.
|
|
11
|
+
*/
|
|
12
|
+
getSentimentRuns(callId: string, options?: Core.RequestOptions): Core.APIPromise<CallGetSentimentRunsResponse>;
|
|
13
|
+
}
|
|
14
|
+
export interface CallGetEvaluationRunsResponse {
|
|
15
|
+
/**
|
|
16
|
+
* Evaluation run response payload
|
|
17
|
+
*/
|
|
18
|
+
data: Array<CallGetEvaluationRunsResponse.Data>;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace CallGetEvaluationRunsResponse {
|
|
21
|
+
interface Data {
|
|
22
|
+
/**
|
|
23
|
+
* All block runs for this evaluator, including skipped ones
|
|
24
|
+
*/
|
|
25
|
+
blockRuns: Array<Data.BlockRun>;
|
|
26
|
+
evaluator: Data.Evaluator;
|
|
27
|
+
evidence: Array<Data.Evidence>;
|
|
28
|
+
metrics: Array<Data.Metric>;
|
|
29
|
+
/**
|
|
30
|
+
* Status of the evaluator run
|
|
31
|
+
*/
|
|
32
|
+
status: 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
|
|
33
|
+
/**
|
|
34
|
+
* ID of the evaluator run
|
|
35
|
+
*/
|
|
36
|
+
id?: string;
|
|
37
|
+
/**
|
|
38
|
+
* When the evaluator run completed
|
|
39
|
+
*/
|
|
40
|
+
completedAt?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Score of the evaluation run (0-1)
|
|
43
|
+
*/
|
|
44
|
+
score?: number | null;
|
|
45
|
+
/**
|
|
46
|
+
* Score classification of the evaluator run based on score threshold (IRRELEVANT
|
|
47
|
+
* is mapped to SKIPPED)
|
|
48
|
+
*/
|
|
49
|
+
scoreClassification?: 'SUCCESS' | 'FAILURE' | 'SKIPPED' | null;
|
|
50
|
+
/**
|
|
51
|
+
* When the evaluator run started
|
|
52
|
+
*/
|
|
53
|
+
startedAt?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Summary of the evaluation run
|
|
56
|
+
*/
|
|
57
|
+
summary?: string | null;
|
|
58
|
+
}
|
|
59
|
+
namespace Data {
|
|
60
|
+
interface BlockRun {
|
|
61
|
+
/**
|
|
62
|
+
* ID of the block definition
|
|
63
|
+
*/
|
|
64
|
+
blockDefinitionId: string;
|
|
65
|
+
/**
|
|
66
|
+
* Name of the evaluation block
|
|
67
|
+
*/
|
|
68
|
+
blockName: string;
|
|
69
|
+
/**
|
|
70
|
+
* ID of the block run instance
|
|
71
|
+
*/
|
|
72
|
+
blockRunId: string;
|
|
73
|
+
/**
|
|
74
|
+
* When the block run was created
|
|
75
|
+
*/
|
|
76
|
+
createdAt: string;
|
|
77
|
+
/**
|
|
78
|
+
* Reason for the outcome (pass/fail explanation or skip reason)
|
|
79
|
+
*/
|
|
80
|
+
reason: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Result of the block run
|
|
83
|
+
*/
|
|
84
|
+
result: 'PASSED' | 'FAILED' | 'SKIPPED' | null;
|
|
85
|
+
/**
|
|
86
|
+
* Score of the block run (0-1)
|
|
87
|
+
*/
|
|
88
|
+
score: number | null;
|
|
89
|
+
/**
|
|
90
|
+
* Status of the block run
|
|
91
|
+
*/
|
|
92
|
+
status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
|
|
93
|
+
}
|
|
94
|
+
interface Evaluator {
|
|
95
|
+
/**
|
|
96
|
+
* ID of the evaluator
|
|
97
|
+
*/
|
|
98
|
+
id: string;
|
|
99
|
+
/**
|
|
100
|
+
* Name of the evaluator
|
|
101
|
+
*/
|
|
102
|
+
name: string;
|
|
103
|
+
/**
|
|
104
|
+
* Weight of the evaluator
|
|
105
|
+
*/
|
|
106
|
+
weight?: number;
|
|
107
|
+
}
|
|
108
|
+
interface Evidence {
|
|
109
|
+
/**
|
|
110
|
+
* Comment text of the evidence
|
|
111
|
+
*/
|
|
112
|
+
commentText: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* Created at of the evidence
|
|
115
|
+
*/
|
|
116
|
+
createdAt: string;
|
|
117
|
+
/**
|
|
118
|
+
* Is positive of the evidence
|
|
119
|
+
*/
|
|
120
|
+
isPositive: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Snippet text of the evidence
|
|
123
|
+
*/
|
|
124
|
+
snippetText: string;
|
|
125
|
+
}
|
|
126
|
+
interface Metric {
|
|
127
|
+
/**
|
|
128
|
+
* Boolean value of the metric
|
|
129
|
+
*/
|
|
130
|
+
booleanValue: boolean | null;
|
|
131
|
+
/**
|
|
132
|
+
* Confidence level of the metric (0-1)
|
|
133
|
+
*/
|
|
134
|
+
confidence: number | null;
|
|
135
|
+
/**
|
|
136
|
+
* Created at of the metric
|
|
137
|
+
*/
|
|
138
|
+
createdAt: string;
|
|
139
|
+
/**
|
|
140
|
+
* Name of the metric
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
/**
|
|
144
|
+
* Numeric value of the metric
|
|
145
|
+
*/
|
|
146
|
+
numericValue: number | null;
|
|
147
|
+
/**
|
|
148
|
+
* Reasoning of the metric
|
|
149
|
+
*/
|
|
150
|
+
reasoning: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* Role of the metric
|
|
153
|
+
*/
|
|
154
|
+
role: string;
|
|
155
|
+
/**
|
|
156
|
+
* Text value of the metric
|
|
157
|
+
*/
|
|
158
|
+
textValue: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Value type of the metric
|
|
161
|
+
*/
|
|
162
|
+
valueType: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
export interface CallGetSentimentRunsResponse {
|
|
167
|
+
/**
|
|
168
|
+
* Sentiment run response payload
|
|
169
|
+
*/
|
|
170
|
+
data: CallGetSentimentRunsResponse.Data;
|
|
171
|
+
}
|
|
172
|
+
export declare namespace CallGetSentimentRunsResponse {
|
|
173
|
+
/**
|
|
174
|
+
* Sentiment run response payload
|
|
175
|
+
*/
|
|
176
|
+
interface Data {
|
|
177
|
+
/**
|
|
178
|
+
* Status of the sentiment run
|
|
179
|
+
*/
|
|
180
|
+
status: string;
|
|
181
|
+
/**
|
|
182
|
+
* NEUTRAL / NEGATIVE / POSITIVE
|
|
183
|
+
*/
|
|
184
|
+
averageCategoricalSentiment?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Average sentiment score between 0-1 of the call
|
|
187
|
+
*/
|
|
188
|
+
averageSentiment?: number;
|
|
189
|
+
/**
|
|
190
|
+
* Common emotion of the call
|
|
191
|
+
*/
|
|
192
|
+
commonEmotion?: string;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
export declare namespace Call {
|
|
196
|
+
export { type CallGetEvaluationRunsResponse as CallGetEvaluationRunsResponse, type CallGetSentimentRunsResponse as CallGetSentimentRunsResponse, };
|
|
3
197
|
}
|
|
4
198
|
//# sourceMappingURL=call.d.ts.map
|
package/resources/call.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../src/resources/call.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../src/resources/call.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;A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zB;;eAEG;YACH,SAAS,EAAE,MAAM,CAAC;SACnB;KACF;CACF;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,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;QAErC;;WAEG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
package/resources/call.js
CHANGED
|
@@ -4,6 +4,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Call = void 0;
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
class Call extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all evaluation run results for a specific call.
|
|
9
|
+
*/
|
|
10
|
+
getEvaluationRuns(callId, options) {
|
|
11
|
+
return this._client.get(`/v1/call/${callId}/evaluation-run`, options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Fetch detailed sentiment analysis results for a specific call, including
|
|
15
|
+
* emotional tone, key phrases, and sentiment scores.
|
|
16
|
+
*/
|
|
17
|
+
getSentimentRuns(callId, options) {
|
|
18
|
+
return this._client.get(`/v1/call/${callId}/sentiment-run`, options);
|
|
19
|
+
}
|
|
7
20
|
}
|
|
8
21
|
exports.Call = Call;
|
|
9
22
|
//# sourceMappingURL=call.js.map
|
package/resources/call.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.js","sourceRoot":"","sources":["../src/resources/call.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;
|
|
1
|
+
{"version":3,"file":"call.js","sourceRoot":"","sources":["../src/resources/call.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,iBAAiB,CACf,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,MAAM,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,MAAM,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AArBD,oBAqBC"}
|
package/resources/call.mjs
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
export class Call extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Fetch all evaluation run results for a specific call.
|
|
6
|
+
*/
|
|
7
|
+
getEvaluationRuns(callId, options) {
|
|
8
|
+
return this._client.get(`/v1/call/${callId}/evaluation-run`, options);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Fetch detailed sentiment analysis results for a specific call, including
|
|
12
|
+
* emotional tone, key phrases, and sentiment scores.
|
|
13
|
+
*/
|
|
14
|
+
getSentimentRuns(callId, options) {
|
|
15
|
+
return this._client.get(`/v1/call/${callId}/sentiment-run`, options);
|
|
16
|
+
}
|
|
4
17
|
}
|
|
5
18
|
//# sourceMappingURL=call.mjs.map
|
package/resources/call.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.mjs","sourceRoot":"","sources":["../src/resources/call.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"call.mjs","sourceRoot":"","sources":["../src/resources/call.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,iBAAiB,CACf,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,MAAM,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,MAAM,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Call } from "./call.js";
|
|
1
|
+
export { Call, type CallGetEvaluationRunsResponse, type CallGetSentimentRunsResponse } from "./call.js";
|
|
2
2
|
export { Evaluation, type EvaluationCreateJobResponse, type EvaluationGetEvaluatorByIDResponse, type EvaluationGetEvaluatorsResponse, type EvaluationGetJobResponse, type EvaluationGetJobRunsResponse, type EvaluationCreateJobParams, type EvaluationGetEvaluatorsParams, type EvaluationGetJobRunsParams, } from "./evaluation.js";
|
|
3
3
|
export { Health, type HealthGetResponse } from "./health.js";
|
|
4
4
|
export { Integrations, type IntegrationCreateRetellCallResponse, type IntegrationCreateVapiCallResponse, type IntegrationCreateRetellCallParams, type IntegrationCreateVapiCallParams, } from "./integrations.js";
|
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,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,6BAA6B,EAAE,KAAK,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AACrG,OAAO,EACL,UAAU,EACV,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EACL,YAAY,EACZ,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,MAAM,gBAAgB,CAAC"}
|
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,kCAAqG;AAA5F,4FAAA,IAAI,OAAA;AACb,8CAUsB;AATpB,wGAAA,UAAU,OAAA;AAUZ,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,kDAMwB;AALtB,4GAAA,YAAY,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAyE;OAC/E,EACL,UAAU,GASX;OACM,EAAE,MAAM,EAA0B;OAClC,EACL,YAAY,GAKb"}
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as Core from './core';
|
|
|
5
5
|
import * as Errors from './error';
|
|
6
6
|
import * as Uploads from './uploads';
|
|
7
7
|
import * as API from './resources/index';
|
|
8
|
-
import { Call } from './resources/call';
|
|
8
|
+
import { Call, CallGetEvaluationRunsResponse, CallGetSentimentRunsResponse } from './resources/call';
|
|
9
9
|
import {
|
|
10
10
|
Evaluation,
|
|
11
11
|
EvaluationCreateJobParams,
|
|
@@ -211,7 +211,11 @@ export declare namespace Roark {
|
|
|
211
211
|
type EvaluationGetJobRunsParams as EvaluationGetJobRunsParams,
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export {
|
|
215
|
+
Call as Call,
|
|
216
|
+
type CallGetEvaluationRunsResponse as CallGetEvaluationRunsResponse,
|
|
217
|
+
type CallGetSentimentRunsResponse as CallGetSentimentRunsResponse,
|
|
218
|
+
};
|
|
215
219
|
|
|
216
220
|
export {
|
|
217
221
|
Integrations as Integrations,
|
package/src/resources/call.ts
CHANGED
|
@@ -1,5 +1,256 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
4
5
|
|
|
5
|
-
export class Call extends APIResource {
|
|
6
|
+
export class Call extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all evaluation run results for a specific call.
|
|
9
|
+
*/
|
|
10
|
+
getEvaluationRuns(
|
|
11
|
+
callId: string,
|
|
12
|
+
options?: Core.RequestOptions,
|
|
13
|
+
): Core.APIPromise<CallGetEvaluationRunsResponse> {
|
|
14
|
+
return this._client.get(`/v1/call/${callId}/evaluation-run`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Fetch detailed sentiment analysis results for a specific call, including
|
|
19
|
+
* emotional tone, key phrases, and sentiment scores.
|
|
20
|
+
*/
|
|
21
|
+
getSentimentRuns(
|
|
22
|
+
callId: string,
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<CallGetSentimentRunsResponse> {
|
|
25
|
+
return this._client.get(`/v1/call/${callId}/sentiment-run`, options);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface CallGetEvaluationRunsResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Evaluation run response payload
|
|
32
|
+
*/
|
|
33
|
+
data: Array<CallGetEvaluationRunsResponse.Data>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace CallGetEvaluationRunsResponse {
|
|
37
|
+
export interface Data {
|
|
38
|
+
/**
|
|
39
|
+
* All block runs for this evaluator, including skipped ones
|
|
40
|
+
*/
|
|
41
|
+
blockRuns: Array<Data.BlockRun>;
|
|
42
|
+
|
|
43
|
+
evaluator: Data.Evaluator;
|
|
44
|
+
|
|
45
|
+
evidence: Array<Data.Evidence>;
|
|
46
|
+
|
|
47
|
+
metrics: Array<Data.Metric>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Status of the evaluator run
|
|
51
|
+
*/
|
|
52
|
+
status: 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* ID of the evaluator run
|
|
56
|
+
*/
|
|
57
|
+
id?: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* When the evaluator run completed
|
|
61
|
+
*/
|
|
62
|
+
completedAt?: string | null;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Score of the evaluation run (0-1)
|
|
66
|
+
*/
|
|
67
|
+
score?: number | null;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Score classification of the evaluator run based on score threshold (IRRELEVANT
|
|
71
|
+
* is mapped to SKIPPED)
|
|
72
|
+
*/
|
|
73
|
+
scoreClassification?: 'SUCCESS' | 'FAILURE' | 'SKIPPED' | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* When the evaluator run started
|
|
77
|
+
*/
|
|
78
|
+
startedAt?: string | null;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Summary of the evaluation run
|
|
82
|
+
*/
|
|
83
|
+
summary?: string | null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export namespace Data {
|
|
87
|
+
export interface BlockRun {
|
|
88
|
+
/**
|
|
89
|
+
* ID of the block definition
|
|
90
|
+
*/
|
|
91
|
+
blockDefinitionId: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Name of the evaluation block
|
|
95
|
+
*/
|
|
96
|
+
blockName: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* ID of the block run instance
|
|
100
|
+
*/
|
|
101
|
+
blockRunId: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* When the block run was created
|
|
105
|
+
*/
|
|
106
|
+
createdAt: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Reason for the outcome (pass/fail explanation or skip reason)
|
|
110
|
+
*/
|
|
111
|
+
reason: string | null;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Result of the block run
|
|
115
|
+
*/
|
|
116
|
+
result: 'PASSED' | 'FAILED' | 'SKIPPED' | null;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Score of the block run (0-1)
|
|
120
|
+
*/
|
|
121
|
+
score: number | null;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Status of the block run
|
|
125
|
+
*/
|
|
126
|
+
status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface Evaluator {
|
|
130
|
+
/**
|
|
131
|
+
* ID of the evaluator
|
|
132
|
+
*/
|
|
133
|
+
id: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Name of the evaluator
|
|
137
|
+
*/
|
|
138
|
+
name: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Weight of the evaluator
|
|
142
|
+
*/
|
|
143
|
+
weight?: number;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface Evidence {
|
|
147
|
+
/**
|
|
148
|
+
* Comment text of the evidence
|
|
149
|
+
*/
|
|
150
|
+
commentText: string | null;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Created at of the evidence
|
|
154
|
+
*/
|
|
155
|
+
createdAt: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Is positive of the evidence
|
|
159
|
+
*/
|
|
160
|
+
isPositive: boolean;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Snippet text of the evidence
|
|
164
|
+
*/
|
|
165
|
+
snippetText: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface Metric {
|
|
169
|
+
/**
|
|
170
|
+
* Boolean value of the metric
|
|
171
|
+
*/
|
|
172
|
+
booleanValue: boolean | null;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Confidence level of the metric (0-1)
|
|
176
|
+
*/
|
|
177
|
+
confidence: number | null;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Created at of the metric
|
|
181
|
+
*/
|
|
182
|
+
createdAt: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Name of the metric
|
|
186
|
+
*/
|
|
187
|
+
name: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Numeric value of the metric
|
|
191
|
+
*/
|
|
192
|
+
numericValue: number | null;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Reasoning of the metric
|
|
196
|
+
*/
|
|
197
|
+
reasoning: string | null;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Role of the metric
|
|
201
|
+
*/
|
|
202
|
+
role: string;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Text value of the metric
|
|
206
|
+
*/
|
|
207
|
+
textValue: string | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Value type of the metric
|
|
211
|
+
*/
|
|
212
|
+
valueType: string;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface CallGetSentimentRunsResponse {
|
|
218
|
+
/**
|
|
219
|
+
* Sentiment run response payload
|
|
220
|
+
*/
|
|
221
|
+
data: CallGetSentimentRunsResponse.Data;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export namespace CallGetSentimentRunsResponse {
|
|
225
|
+
/**
|
|
226
|
+
* Sentiment run response payload
|
|
227
|
+
*/
|
|
228
|
+
export interface Data {
|
|
229
|
+
/**
|
|
230
|
+
* Status of the sentiment run
|
|
231
|
+
*/
|
|
232
|
+
status: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* NEUTRAL / NEGATIVE / POSITIVE
|
|
236
|
+
*/
|
|
237
|
+
averageCategoricalSentiment?: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Average sentiment score between 0-1 of the call
|
|
241
|
+
*/
|
|
242
|
+
averageSentiment?: number;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Common emotion of the call
|
|
246
|
+
*/
|
|
247
|
+
commonEmotion?: string;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export declare namespace Call {
|
|
252
|
+
export {
|
|
253
|
+
type CallGetEvaluationRunsResponse as CallGetEvaluationRunsResponse,
|
|
254
|
+
type CallGetSentimentRunsResponse as CallGetSentimentRunsResponse,
|
|
255
|
+
};
|
|
256
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Call } from './call';
|
|
3
|
+
export { Call, type CallGetEvaluationRunsResponse, type CallGetSentimentRunsResponse } from './call';
|
|
4
4
|
export {
|
|
5
5
|
Evaluation,
|
|
6
6
|
type EvaluationCreateJobResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.2.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.2.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|