@roarkanalytics/sdk 5.10.0 → 5.12.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 +24 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +29 -20
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +29 -20
- package/resources/analytics.d.ts.map +1 -1
- package/resources/call.d.mts +110 -7
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +110 -7
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +35 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +35 -0
- package/resources/call.mjs.map +1 -1
- package/resources/config.d.mts +48 -48
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +48 -48
- package/resources/config.d.ts.map +1 -1
- package/resources/dashboard.d.mts +297 -201
- package/resources/dashboard.d.mts.map +1 -1
- package/resources/dashboard.d.ts +297 -201
- package/resources/dashboard.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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-collection-job.d.mts +102 -10
- package/resources/metric-collection-job.d.mts.map +1 -1
- package/resources/metric-collection-job.d.ts +102 -10
- package/resources/metric-collection-job.d.ts.map +1 -1
- package/resources/metric-collection-job.js +21 -0
- package/resources/metric-collection-job.js.map +1 -1
- package/resources/metric-collection-job.mjs +21 -0
- package/resources/metric-collection-job.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/resources/analytics.ts +41 -22
- package/src/resources/call.ts +125 -6
- package/src/resources/config.ts +120 -72
- package/src/resources/dashboard.ts +411 -233
- package/src/resources/index.ts +4 -0
- package/src/resources/metric-collection-job.ts +118 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/index.ts
CHANGED
|
@@ -81,7 +81,9 @@ export {
|
|
|
81
81
|
Call,
|
|
82
82
|
type CallCreateResponse,
|
|
83
83
|
type CallListResponse,
|
|
84
|
+
type CallDeleteResponse,
|
|
84
85
|
type CallAppendToolInvocationsResponse,
|
|
86
|
+
type CallBatchDeleteResponse,
|
|
85
87
|
type CallGetByIDResponse,
|
|
86
88
|
type CallGetCostResponse,
|
|
87
89
|
type CallGetTranscriptResponse,
|
|
@@ -91,6 +93,7 @@ export {
|
|
|
91
93
|
type CallCreateParams,
|
|
92
94
|
type CallListParams,
|
|
93
95
|
type CallAppendToolInvocationsParams,
|
|
96
|
+
type CallBatchDeleteParams,
|
|
94
97
|
type CallGetTranscriptParams,
|
|
95
98
|
type CallListMetricsParams,
|
|
96
99
|
type CallUpdatePropertiesParams,
|
|
@@ -186,6 +189,7 @@ export {
|
|
|
186
189
|
MetricCollectionJob,
|
|
187
190
|
type MetricCollectionJobCreateResponse,
|
|
188
191
|
type MetricCollectionJobListResponse,
|
|
192
|
+
type MetricCollectionJobCancelResponse,
|
|
189
193
|
type MetricCollectionJobGetByIDResponse,
|
|
190
194
|
type MetricCollectionJobCreateParams,
|
|
191
195
|
type MetricCollectionJobListParams,
|
|
@@ -42,6 +42,28 @@ export class MetricCollectionJob extends APIResource {
|
|
|
42
42
|
return this._client.get('/v1/metric/collection-jobs', { query, ...options });
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Stops a metric collection job that has not finished. No further conversations
|
|
47
|
+
* are processed and the job ends in CANCELED.
|
|
48
|
+
*
|
|
49
|
+
* Items the job had not reached are marked SKIPPED. Metric values already produced
|
|
50
|
+
* are kept, and items that were mid-computation when the cancel arrived may still
|
|
51
|
+
* complete. Only the items that completed are billed.
|
|
52
|
+
*
|
|
53
|
+
* Safe to call more than once: a job that has already finished (COMPLETED, FAILED,
|
|
54
|
+
* or CANCELED) is returned unchanged.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const response = await client.metricCollectionJob.cancel(
|
|
59
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
cancel(jobID: string, options?: RequestOptions): APIPromise<MetricCollectionJobCancelResponse> {
|
|
64
|
+
return this._client.post(path`/v1/metric/collection-jobs/${jobID}/cancel`, options);
|
|
65
|
+
}
|
|
66
|
+
|
|
45
67
|
/**
|
|
46
68
|
* Returns a specific metric collection job with progress information.
|
|
47
69
|
*
|
|
@@ -80,7 +102,8 @@ export namespace MetricCollectionJobCreateResponse {
|
|
|
80
102
|
completedAt: string | null;
|
|
81
103
|
|
|
82
104
|
/**
|
|
83
|
-
* Number of
|
|
105
|
+
* Number of items that finished without failing: a value was written, or the
|
|
106
|
+
* metric did not apply to the conversation
|
|
84
107
|
*/
|
|
85
108
|
completedItems: number;
|
|
86
109
|
|
|
@@ -90,12 +113,14 @@ export namespace MetricCollectionJobCreateResponse {
|
|
|
90
113
|
createdAt: string;
|
|
91
114
|
|
|
92
115
|
/**
|
|
93
|
-
*
|
|
116
|
+
* Why the job failed or, on a COMPLETED job with failedItems above 0, why those
|
|
117
|
+
* items failed
|
|
94
118
|
*/
|
|
95
119
|
errorMessage: string | null;
|
|
96
120
|
|
|
97
121
|
/**
|
|
98
|
-
* Number of
|
|
122
|
+
* Number of items that could not be computed, for example because an artifact the
|
|
123
|
+
* metric reads (such as diarization) failed to generate
|
|
99
124
|
*/
|
|
100
125
|
failedItems: number;
|
|
101
126
|
|
|
@@ -156,7 +181,8 @@ export namespace MetricCollectionJobListResponse {
|
|
|
156
181
|
completedAt: string | null;
|
|
157
182
|
|
|
158
183
|
/**
|
|
159
|
-
* Number of
|
|
184
|
+
* Number of items that finished without failing: a value was written, or the
|
|
185
|
+
* metric did not apply to the conversation
|
|
160
186
|
*/
|
|
161
187
|
completedItems: number;
|
|
162
188
|
|
|
@@ -166,12 +192,14 @@ export namespace MetricCollectionJobListResponse {
|
|
|
166
192
|
createdAt: string;
|
|
167
193
|
|
|
168
194
|
/**
|
|
169
|
-
*
|
|
195
|
+
* Why the job failed or, on a COMPLETED job with failedItems above 0, why those
|
|
196
|
+
* items failed
|
|
170
197
|
*/
|
|
171
198
|
errorMessage: string | null;
|
|
172
199
|
|
|
173
200
|
/**
|
|
174
|
-
* Number of
|
|
201
|
+
* Number of items that could not be computed, for example because an artifact the
|
|
202
|
+
* metric reads (such as diarization) failed to generate
|
|
175
203
|
*/
|
|
176
204
|
failedItems: number;
|
|
177
205
|
|
|
@@ -224,6 +252,83 @@ export namespace MetricCollectionJobListResponse {
|
|
|
224
252
|
}
|
|
225
253
|
}
|
|
226
254
|
|
|
255
|
+
export interface MetricCollectionJobCancelResponse {
|
|
256
|
+
/**
|
|
257
|
+
* A metric collection job that processes metrics for calls or chats
|
|
258
|
+
*/
|
|
259
|
+
data: MetricCollectionJobCancelResponse.Data;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export namespace MetricCollectionJobCancelResponse {
|
|
263
|
+
/**
|
|
264
|
+
* A metric collection job that processes metrics for calls or chats
|
|
265
|
+
*/
|
|
266
|
+
export interface Data {
|
|
267
|
+
/**
|
|
268
|
+
* Unique identifier of the metric collection job
|
|
269
|
+
*/
|
|
270
|
+
id: string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* When the job completed
|
|
274
|
+
*/
|
|
275
|
+
completedAt: string | null;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Number of items that finished without failing: a value was written, or the
|
|
279
|
+
* metric did not apply to the conversation
|
|
280
|
+
*/
|
|
281
|
+
completedItems: number;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* When the job was created
|
|
285
|
+
*/
|
|
286
|
+
createdAt: string;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Why the job failed or, on a COMPLETED job with failedItems above 0, why those
|
|
290
|
+
* items failed
|
|
291
|
+
*/
|
|
292
|
+
errorMessage: string | null;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Number of items that could not be computed, for example because an artifact the
|
|
296
|
+
* metric reads (such as diarization) failed to generate
|
|
297
|
+
*/
|
|
298
|
+
failedItems: number;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* IDs of the metric policies that triggered this job
|
|
302
|
+
*/
|
|
303
|
+
policyIds: Array<string>;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* When the job started processing
|
|
307
|
+
*/
|
|
308
|
+
startedAt: string | null;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Current status of the job
|
|
312
|
+
*/
|
|
313
|
+
status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED';
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Total number of call-metric pairs to process
|
|
317
|
+
*/
|
|
318
|
+
totalItems: number;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* What triggered this job
|
|
322
|
+
*/
|
|
323
|
+
triggeredBy: 'USER_MANUAL' | 'USER_API' | 'METRIC_POLICY' | 'SIMULATION';
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* When the job was last updated
|
|
327
|
+
*/
|
|
328
|
+
updatedAt: string;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
227
332
|
export interface MetricCollectionJobGetByIDResponse {
|
|
228
333
|
/**
|
|
229
334
|
* A metric collection job that processes metrics for calls or chats
|
|
@@ -247,7 +352,8 @@ export namespace MetricCollectionJobGetByIDResponse {
|
|
|
247
352
|
completedAt: string | null;
|
|
248
353
|
|
|
249
354
|
/**
|
|
250
|
-
* Number of
|
|
355
|
+
* Number of items that finished without failing: a value was written, or the
|
|
356
|
+
* metric did not apply to the conversation
|
|
251
357
|
*/
|
|
252
358
|
completedItems: number;
|
|
253
359
|
|
|
@@ -257,12 +363,14 @@ export namespace MetricCollectionJobGetByIDResponse {
|
|
|
257
363
|
createdAt: string;
|
|
258
364
|
|
|
259
365
|
/**
|
|
260
|
-
*
|
|
366
|
+
* Why the job failed or, on a COMPLETED job with failedItems above 0, why those
|
|
367
|
+
* items failed
|
|
261
368
|
*/
|
|
262
369
|
errorMessage: string | null;
|
|
263
370
|
|
|
264
371
|
/**
|
|
265
|
-
* Number of
|
|
372
|
+
* Number of items that could not be computed, for example because an artifact the
|
|
373
|
+
* metric reads (such as diarization) failed to generate
|
|
266
374
|
*/
|
|
267
375
|
failedItems: number;
|
|
268
376
|
|
|
@@ -356,6 +464,7 @@ export declare namespace MetricCollectionJob {
|
|
|
356
464
|
export {
|
|
357
465
|
type MetricCollectionJobCreateResponse as MetricCollectionJobCreateResponse,
|
|
358
466
|
type MetricCollectionJobListResponse as MetricCollectionJobListResponse,
|
|
467
|
+
type MetricCollectionJobCancelResponse as MetricCollectionJobCancelResponse,
|
|
359
468
|
type MetricCollectionJobGetByIDResponse as MetricCollectionJobGetByIDResponse,
|
|
360
469
|
type MetricCollectionJobCreateParams as MetricCollectionJobCreateParams,
|
|
361
470
|
type MetricCollectionJobListParams as MetricCollectionJobListParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.12.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.12.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|