@roarkanalytics/sdk 5.7.0 → 5.9.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 +26 -0
- package/client.d.mts +9 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -0
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +354 -0
- package/resources/analytics.d.mts.map +1 -0
- package/resources/analytics.d.ts +354 -0
- package/resources/analytics.d.ts.map +1 -0
- package/resources/analytics.js +55 -0
- package/resources/analytics.js.map +1 -0
- package/resources/analytics.mjs +51 -0
- package/resources/analytics.mjs.map +1 -0
- package/resources/config.d.mts +626 -14
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +626 -14
- package/resources/config.d.ts.map +1 -1
- package/resources/dashboard.d.mts +2280 -0
- package/resources/dashboard.d.mts.map +1 -0
- package/resources/dashboard.d.ts +2280 -0
- package/resources/dashboard.d.ts.map +1 -0
- package/resources/dashboard.js +170 -0
- package/resources/dashboard.js.map +1 -0
- package/resources/dashboard.mjs +166 -0
- package/resources/dashboard.mjs.map +1 -0
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/metric-policy.d.mts +311 -2
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +311 -2
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/usage.d.mts +114 -0
- package/resources/usage.d.mts.map +1 -0
- package/resources/usage.d.ts +114 -0
- package/resources/usage.d.ts.map +1 -0
- package/resources/usage.js +27 -0
- package/resources/usage.js.map +1 -0
- package/resources/usage.mjs +23 -0
- package/resources/usage.mjs.map +1 -0
- package/src/client.ts +63 -0
- package/src/resources/analytics.ts +573 -0
- package/src/resources/config.ts +1498 -26
- package/src/resources/dashboard.ts +3752 -0
- package/src/resources/index.ts +27 -0
- package/src/resources/metric-policy.ts +353 -2
- package/src/resources/usage.ts +147 -0
- 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
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Analytics extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Lists what can go into an analytics query for this project: every metric by slug
|
|
7
|
+
* with its output type, default aggregation and the aggregations it supports; the
|
|
8
|
+
* measure types; the filter and breakdown types with the properties each accepts;
|
|
9
|
+
* and the custom call properties seen in the project. Read this first when
|
|
10
|
+
* building a query.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.analytics.getSchema();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
getSchema(options?: RequestOptions): APIPromise<AnalyticsGetSchemaResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Aggregates metric values and conversation counts over a time window and returns
|
|
20
|
+
* one series per measure, with a total for the window and per-interval buckets.
|
|
21
|
+
* The same query a dashboard widget runs, without saving anything.
|
|
22
|
+
*
|
|
23
|
+
* - `measures`: what to aggregate. A METRIC measure names its metric by slug;
|
|
24
|
+
* CONVERSATION counts conversations; UPTIME reads health checks. The aggregation
|
|
25
|
+
* defaults by the metric's output type.
|
|
26
|
+
* - `timeRange`: LAST n DAYS/WEEKS/MONTHS, a CALENDAR_ALIGNED period (TODAY,
|
|
27
|
+
* THIS_MONTH, ...), FIXED from/to, or SINCE. Defaults to the last 30 days; at
|
|
28
|
+
* most 731 days. Calendar periods and buckets align to `timezone` (IANA, default
|
|
29
|
+
* UTC).
|
|
30
|
+
* - `filters` apply to every measure; a measure's own `filters` add to them.
|
|
31
|
+
* - `breakdown` on a measure returns one series per value (largest 50 kept).
|
|
32
|
+
* - `comparisonGroups` (2 to 5) run every measure once per named filter set;
|
|
33
|
+
* `comparisonMode: PREVIOUS_PERIOD` adds the preceding window's values.
|
|
34
|
+
*
|
|
35
|
+
* Values are in the metric's display units. A PASS_RATE is a 0 to 1 share;
|
|
36
|
+
* `sampleSize` 0 means no data. A query the analytics store cannot answer returns
|
|
37
|
+
* 400 naming the unsupported part.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const response = await client.analytics.query({
|
|
42
|
+
* measures: [{}],
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
query(body: AnalyticsQueryParams, options?: RequestOptions): APIPromise<AnalyticsQueryResponse>;
|
|
47
|
+
}
|
|
48
|
+
export interface AnalyticsGetSchemaResponse {
|
|
49
|
+
/**
|
|
50
|
+
* What can be queried in this project: metrics (by slug), measure types, filters,
|
|
51
|
+
* breakdowns.
|
|
52
|
+
*/
|
|
53
|
+
data: AnalyticsGetSchemaResponse.Data;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace AnalyticsGetSchemaResponse {
|
|
56
|
+
/**
|
|
57
|
+
* What can be queried in this project: metrics (by slug), measure types, filters,
|
|
58
|
+
* breakdowns.
|
|
59
|
+
*/
|
|
60
|
+
interface Data {
|
|
61
|
+
breakdowns: Array<Data.Breakdown>;
|
|
62
|
+
callProperties: Array<Data.CallProperty>;
|
|
63
|
+
displayTypes: Array<'LINE' | 'NUMBER' | 'RADAR' | 'STACKED_BAR' | 'TABLE'>;
|
|
64
|
+
filters: Array<Data.Filter>;
|
|
65
|
+
intervals: Array<'HOUR' | 'DAY' | 'WEEK' | 'MONTH'>;
|
|
66
|
+
measureTypes: Array<Data.MeasureType>;
|
|
67
|
+
metrics: Array<Data.Metric>;
|
|
68
|
+
operators: Array<'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH'>;
|
|
69
|
+
}
|
|
70
|
+
namespace Data {
|
|
71
|
+
interface Breakdown {
|
|
72
|
+
description: string;
|
|
73
|
+
type: 'METRIC_PROPERTY' | 'CALL_PROPERTY' | 'AGENT_PROPERTY' | 'DATASET';
|
|
74
|
+
}
|
|
75
|
+
interface CallProperty {
|
|
76
|
+
isSystem: boolean;
|
|
77
|
+
name: string;
|
|
78
|
+
valueType: string;
|
|
79
|
+
}
|
|
80
|
+
interface Filter {
|
|
81
|
+
description: string;
|
|
82
|
+
properties: Array<Filter.Property>;
|
|
83
|
+
type: 'METRIC_PROPERTY' | 'CALL_PROPERTY' | 'AGENT_PROPERTY' | 'CALL_ID' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
84
|
+
}
|
|
85
|
+
namespace Filter {
|
|
86
|
+
interface Property {
|
|
87
|
+
description: string;
|
|
88
|
+
property: string;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
interface MeasureType {
|
|
92
|
+
aggregations: Array<'COUNT' | 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'MEDIAN' | 'PERCENTILE' | 'PASS_RATE'>;
|
|
93
|
+
description: string;
|
|
94
|
+
type: 'METRIC' | 'CONVERSATION' | 'UPTIME';
|
|
95
|
+
}
|
|
96
|
+
interface Metric {
|
|
97
|
+
id: string;
|
|
98
|
+
aggregations: Array<'COUNT' | 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'MEDIAN' | 'PERCENTILE' | 'PASS_RATE'>;
|
|
99
|
+
defaultAggregation: 'COUNT' | 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'MEDIAN' | 'PERCENTILE' | 'PASS_RATE';
|
|
100
|
+
isThreshold: boolean;
|
|
101
|
+
name: string;
|
|
102
|
+
outputType: string;
|
|
103
|
+
slug: string;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export interface AnalyticsQueryResponse {
|
|
108
|
+
/**
|
|
109
|
+
* One series per measure (or per breakdown value / comparison group). `value` is
|
|
110
|
+
* the aggregate over the whole window; `buckets` hold the per-interval values.
|
|
111
|
+
*/
|
|
112
|
+
data: AnalyticsQueryResponse.Data;
|
|
113
|
+
}
|
|
114
|
+
export declare namespace AnalyticsQueryResponse {
|
|
115
|
+
/**
|
|
116
|
+
* One series per measure (or per breakdown value / comparison group). `value` is
|
|
117
|
+
* the aggregate over the whole window; `buckets` hold the per-interval values.
|
|
118
|
+
*/
|
|
119
|
+
interface Data {
|
|
120
|
+
from: string;
|
|
121
|
+
interval: 'HOUR' | 'DAY' | 'WEEK' | 'MONTH';
|
|
122
|
+
omittedSeries: number;
|
|
123
|
+
series: Array<Data.Sery>;
|
|
124
|
+
timezone: string;
|
|
125
|
+
to: string;
|
|
126
|
+
}
|
|
127
|
+
namespace Data {
|
|
128
|
+
interface Sery {
|
|
129
|
+
aggregation: 'COUNT' | 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'MEDIAN' | 'PERCENTILE' | 'PASS_RATE';
|
|
130
|
+
breakdownValue: string | null;
|
|
131
|
+
buckets: Array<Sery.Bucket>;
|
|
132
|
+
comparisonGroup: string | null;
|
|
133
|
+
comparisonValue: number | null;
|
|
134
|
+
measureIndex: number;
|
|
135
|
+
metric: string | null;
|
|
136
|
+
percentageOfBaseline: number | null;
|
|
137
|
+
sampleSize: number | null;
|
|
138
|
+
type: 'METRIC' | 'CONVERSATION' | 'UPTIME';
|
|
139
|
+
value: number;
|
|
140
|
+
}
|
|
141
|
+
namespace Sery {
|
|
142
|
+
interface Bucket {
|
|
143
|
+
date: string;
|
|
144
|
+
value: number;
|
|
145
|
+
comparisonDate?: string;
|
|
146
|
+
comparisonValue?: number;
|
|
147
|
+
passed?: number;
|
|
148
|
+
percentageOfBaseline?: number;
|
|
149
|
+
sampleSize?: number;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
export interface AnalyticsQueryParams {
|
|
155
|
+
/**
|
|
156
|
+
* What to aggregate: 1 to 10 measures.
|
|
157
|
+
*/
|
|
158
|
+
measures: Array<AnalyticsQueryParams.Measure>;
|
|
159
|
+
/**
|
|
160
|
+
* Run every measure once per named filter set, e.g. one group per agent.
|
|
161
|
+
*/
|
|
162
|
+
comparisonGroups?: Array<AnalyticsQueryParams.ComparisonGroup>;
|
|
163
|
+
/**
|
|
164
|
+
* PREVIOUS_PERIOD adds the preceding window of the same length to every series.
|
|
165
|
+
*/
|
|
166
|
+
comparisonMode?: 'NONE' | 'PREVIOUS_PERIOD';
|
|
167
|
+
/**
|
|
168
|
+
* Applied to every measure, on top of each measure's own filters.
|
|
169
|
+
*/
|
|
170
|
+
filters?: Array<AnalyticsQueryParams.Filter>;
|
|
171
|
+
/**
|
|
172
|
+
* Set false to return only the window totals.
|
|
173
|
+
*/
|
|
174
|
+
includeBuckets?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Bucket size. Defaults from the window's length and steps coarser when the window
|
|
177
|
+
* would exceed 500 buckets.
|
|
178
|
+
*/
|
|
179
|
+
interval?: 'HOUR' | 'DAY' | 'WEEK' | 'MONTH';
|
|
180
|
+
/**
|
|
181
|
+
* Defaults to the last 30 days.
|
|
182
|
+
*/
|
|
183
|
+
timeRange?: AnalyticsQueryParams.UnionMember0 | AnalyticsQueryParams.UnionMember1 | AnalyticsQueryParams.UnionMember2 | AnalyticsQueryParams.UnionMember3;
|
|
184
|
+
/**
|
|
185
|
+
* IANA zone that buckets and calendar periods align to, e.g. America/New_York.
|
|
186
|
+
* Defaults to UTC.
|
|
187
|
+
*/
|
|
188
|
+
timezone?: string;
|
|
189
|
+
}
|
|
190
|
+
export declare namespace AnalyticsQueryParams {
|
|
191
|
+
interface Measure {
|
|
192
|
+
/**
|
|
193
|
+
* Defaults by output type: AVG for numeric metrics, COUNT (split by value) for
|
|
194
|
+
* classification and text, PASS_RATE for thresholds and uptime, COUNT for
|
|
195
|
+
* conversations.
|
|
196
|
+
*/
|
|
197
|
+
aggregation?: 'COUNT' | 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'MEDIAN' | 'PERCENTILE' | 'PASS_RATE';
|
|
198
|
+
/**
|
|
199
|
+
* Split the measure into one series per value of this dimension (the largest 50
|
|
200
|
+
* are returned). Ignored while comparisonGroups are set: each group is then one
|
|
201
|
+
* series.
|
|
202
|
+
*/
|
|
203
|
+
breakdown?: Measure.Breakdown;
|
|
204
|
+
/**
|
|
205
|
+
* Chart color on a dashboard.
|
|
206
|
+
*/
|
|
207
|
+
color?: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
|
|
208
|
+
/**
|
|
209
|
+
* CALL (default for metrics) folds each conversation to one value first, so a long
|
|
210
|
+
* call does not outweigh a short one. NONE aggregates every value.
|
|
211
|
+
*/
|
|
212
|
+
distinctBy?: 'NONE' | 'CALL';
|
|
213
|
+
/**
|
|
214
|
+
* Filters for this measure only, on top of the query's filters.
|
|
215
|
+
*/
|
|
216
|
+
filters?: Array<Measure.Filter>;
|
|
217
|
+
/**
|
|
218
|
+
* Mark one measure as the baseline: every series also reports its value as a
|
|
219
|
+
* percentage of it.
|
|
220
|
+
*/
|
|
221
|
+
isBaseline?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* The metric's slug (e.g. `task_completion`) or id. Required for METRIC.
|
|
224
|
+
*/
|
|
225
|
+
metric?: string;
|
|
226
|
+
/**
|
|
227
|
+
* How each conversation is folded when distinctBy is CALL. Defaults to SUM under
|
|
228
|
+
* SUM, else AVG.
|
|
229
|
+
*/
|
|
230
|
+
nestedAggregation?: 'COUNT' | 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'MEDIAN' | 'PERCENTILE' | 'PASS_RATE';
|
|
231
|
+
nestedAggregationPercentile?: number;
|
|
232
|
+
/**
|
|
233
|
+
* PASS_RATE condition operator. Omit for a threshold metric: its own condition is
|
|
234
|
+
* used.
|
|
235
|
+
*/
|
|
236
|
+
passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH';
|
|
237
|
+
/**
|
|
238
|
+
* PASS_RATE condition value, e.g. 4 or "resolved".
|
|
239
|
+
*/
|
|
240
|
+
passValue?: string | number | boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Required with PERCENTILE, e.g. 95.
|
|
243
|
+
*/
|
|
244
|
+
percentile?: number;
|
|
245
|
+
/**
|
|
246
|
+
* METRIC (default): a metric's values. CONVERSATION: conversation counts. UPTIME:
|
|
247
|
+
* health-check outcomes.
|
|
248
|
+
*/
|
|
249
|
+
type?: 'METRIC' | 'CONVERSATION' | 'UPTIME';
|
|
250
|
+
}
|
|
251
|
+
namespace Measure {
|
|
252
|
+
/**
|
|
253
|
+
* Split the measure into one series per value of this dimension (the largest 50
|
|
254
|
+
* are returned). Ignored while comparisonGroups are set: each group is then one
|
|
255
|
+
* series.
|
|
256
|
+
*/
|
|
257
|
+
interface Breakdown {
|
|
258
|
+
type: 'METRIC_PROPERTY' | 'CALL_PROPERTY' | 'AGENT_PROPERTY' | 'DATASET';
|
|
259
|
+
/**
|
|
260
|
+
* The property to split by. Required for CALL_PROPERTY and METRIC_PROPERTY.
|
|
261
|
+
*/
|
|
262
|
+
property?: string;
|
|
263
|
+
}
|
|
264
|
+
interface Filter {
|
|
265
|
+
/**
|
|
266
|
+
* What the filter narrows on. GET /v1/analytics/schema lists each type.
|
|
267
|
+
*/
|
|
268
|
+
type: 'METRIC_PROPERTY' | 'CALL_PROPERTY' | 'AGENT_PROPERTY' | 'CALL_ID' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
269
|
+
/**
|
|
270
|
+
* The value to compare against (an agent id, "call" / "chat", a property value).
|
|
271
|
+
*/
|
|
272
|
+
value: string | number | boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Defaults to EQUALS.
|
|
275
|
+
*/
|
|
276
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH';
|
|
277
|
+
/**
|
|
278
|
+
* The property to compare. Required for CALL_PROPERTY and METRIC_PROPERTY; may be
|
|
279
|
+
* omitted for AGENT_PROPERTY, DATASET, MODALITY and CALL_ID.
|
|
280
|
+
*/
|
|
281
|
+
property?: string;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
interface ComparisonGroup {
|
|
285
|
+
filters: Array<ComparisonGroup.Filter>;
|
|
286
|
+
/**
|
|
287
|
+
* The series label; unique within the query.
|
|
288
|
+
*/
|
|
289
|
+
name: string;
|
|
290
|
+
color?: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
|
|
291
|
+
}
|
|
292
|
+
namespace ComparisonGroup {
|
|
293
|
+
interface Filter {
|
|
294
|
+
/**
|
|
295
|
+
* What the filter narrows on. GET /v1/analytics/schema lists each type.
|
|
296
|
+
*/
|
|
297
|
+
type: 'METRIC_PROPERTY' | 'CALL_PROPERTY' | 'AGENT_PROPERTY' | 'CALL_ID' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
298
|
+
/**
|
|
299
|
+
* The value to compare against (an agent id, "call" / "chat", a property value).
|
|
300
|
+
*/
|
|
301
|
+
value: string | number | boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Defaults to EQUALS.
|
|
304
|
+
*/
|
|
305
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH';
|
|
306
|
+
/**
|
|
307
|
+
* The property to compare. Required for CALL_PROPERTY and METRIC_PROPERTY; may be
|
|
308
|
+
* omitted for AGENT_PROPERTY, DATASET, MODALITY and CALL_ID.
|
|
309
|
+
*/
|
|
310
|
+
property?: string;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
interface Filter {
|
|
314
|
+
/**
|
|
315
|
+
* What the filter narrows on. GET /v1/analytics/schema lists each type.
|
|
316
|
+
*/
|
|
317
|
+
type: 'METRIC_PROPERTY' | 'CALL_PROPERTY' | 'AGENT_PROPERTY' | 'CALL_ID' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
318
|
+
/**
|
|
319
|
+
* The value to compare against (an agent id, "call" / "chat", a property value).
|
|
320
|
+
*/
|
|
321
|
+
value: string | number | boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Defaults to EQUALS.
|
|
324
|
+
*/
|
|
325
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH';
|
|
326
|
+
/**
|
|
327
|
+
* The property to compare. Required for CALL_PROPERTY and METRIC_PROPERTY; may be
|
|
328
|
+
* omitted for AGENT_PROPERTY, DATASET, MODALITY and CALL_ID.
|
|
329
|
+
*/
|
|
330
|
+
property?: string;
|
|
331
|
+
}
|
|
332
|
+
interface UnionMember0 {
|
|
333
|
+
type: 'LAST';
|
|
334
|
+
unit: 'DAYS' | 'WEEKS' | 'MONTHS';
|
|
335
|
+
value: number;
|
|
336
|
+
}
|
|
337
|
+
interface UnionMember1 {
|
|
338
|
+
period: 'TODAY' | 'YESTERDAY' | 'THIS_WEEK' | 'LAST_WEEK' | 'THIS_MONTH' | 'LAST_MONTH' | 'THIS_YEAR' | 'LAST_YEAR';
|
|
339
|
+
type: 'CALENDAR_ALIGNED';
|
|
340
|
+
}
|
|
341
|
+
interface UnionMember2 {
|
|
342
|
+
from: string;
|
|
343
|
+
to: string;
|
|
344
|
+
type: 'FIXED';
|
|
345
|
+
}
|
|
346
|
+
interface UnionMember3 {
|
|
347
|
+
from: string;
|
|
348
|
+
type: 'SINCE';
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
export declare namespace Analytics {
|
|
352
|
+
export { type AnalyticsGetSchemaResponse as AnalyticsGetSchemaResponse, type AnalyticsQueryResponse as AnalyticsQueryResponse, type AnalyticsQueryParams as AnalyticsQueryParams, };
|
|
353
|
+
}
|
|
354
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI3E;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGhG;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,IAAI,EAAE,0BAA0B,CAAC,IAAI,CAAC;CACvC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,IAAI;QACnB,UAAU,EAAE,KAAK,CAAC,I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K,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.Analytics = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Analytics extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Lists what can go into an analytics query for this project: every metric by slug
|
|
9
|
+
* with its output type, default aggregation and the aggregations it supports; the
|
|
10
|
+
* measure types; the filter and breakdown types with the properties each accepts;
|
|
11
|
+
* and the custom call properties seen in the project. Read this first when
|
|
12
|
+
* building a query.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.analytics.getSchema();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
getSchema(options) {
|
|
20
|
+
return this._client.get('/v1/analytics/schema', options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Aggregates metric values and conversation counts over a time window and returns
|
|
24
|
+
* one series per measure, with a total for the window and per-interval buckets.
|
|
25
|
+
* The same query a dashboard widget runs, without saving anything.
|
|
26
|
+
*
|
|
27
|
+
* - `measures`: what to aggregate. A METRIC measure names its metric by slug;
|
|
28
|
+
* CONVERSATION counts conversations; UPTIME reads health checks. The aggregation
|
|
29
|
+
* defaults by the metric's output type.
|
|
30
|
+
* - `timeRange`: LAST n DAYS/WEEKS/MONTHS, a CALENDAR_ALIGNED period (TODAY,
|
|
31
|
+
* THIS_MONTH, ...), FIXED from/to, or SINCE. Defaults to the last 30 days; at
|
|
32
|
+
* most 731 days. Calendar periods and buckets align to `timezone` (IANA, default
|
|
33
|
+
* UTC).
|
|
34
|
+
* - `filters` apply to every measure; a measure's own `filters` add to them.
|
|
35
|
+
* - `breakdown` on a measure returns one series per value (largest 50 kept).
|
|
36
|
+
* - `comparisonGroups` (2 to 5) run every measure once per named filter set;
|
|
37
|
+
* `comparisonMode: PREVIOUS_PERIOD` adds the preceding window's values.
|
|
38
|
+
*
|
|
39
|
+
* Values are in the metric's display units. A PASS_RATE is a 0 to 1 share;
|
|
40
|
+
* `sampleSize` 0 means no data. A query the analytics store cannot answer returns
|
|
41
|
+
* 400 naming the unsupported part.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const response = await client.analytics.query({
|
|
46
|
+
* measures: [{}],
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
query(body, options) {
|
|
51
|
+
return this._client.post('/v1/analytics/query', { body, ...options });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.Analytics = Analytics;
|
|
55
|
+
//# sourceMappingURL=analytics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,IAA0B,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAhDD,8BAgDC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Analytics extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Lists what can go into an analytics query for this project: every metric by slug
|
|
6
|
+
* with its output type, default aggregation and the aggregations it supports; the
|
|
7
|
+
* measure types; the filter and breakdown types with the properties each accepts;
|
|
8
|
+
* and the custom call properties seen in the project. Read this first when
|
|
9
|
+
* building a query.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response = await client.analytics.getSchema();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
getSchema(options) {
|
|
17
|
+
return this._client.get('/v1/analytics/schema', options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Aggregates metric values and conversation counts over a time window and returns
|
|
21
|
+
* one series per measure, with a total for the window and per-interval buckets.
|
|
22
|
+
* The same query a dashboard widget runs, without saving anything.
|
|
23
|
+
*
|
|
24
|
+
* - `measures`: what to aggregate. A METRIC measure names its metric by slug;
|
|
25
|
+
* CONVERSATION counts conversations; UPTIME reads health checks. The aggregation
|
|
26
|
+
* defaults by the metric's output type.
|
|
27
|
+
* - `timeRange`: LAST n DAYS/WEEKS/MONTHS, a CALENDAR_ALIGNED period (TODAY,
|
|
28
|
+
* THIS_MONTH, ...), FIXED from/to, or SINCE. Defaults to the last 30 days; at
|
|
29
|
+
* most 731 days. Calendar periods and buckets align to `timezone` (IANA, default
|
|
30
|
+
* UTC).
|
|
31
|
+
* - `filters` apply to every measure; a measure's own `filters` add to them.
|
|
32
|
+
* - `breakdown` on a measure returns one series per value (largest 50 kept).
|
|
33
|
+
* - `comparisonGroups` (2 to 5) run every measure once per named filter set;
|
|
34
|
+
* `comparisonMode: PREVIOUS_PERIOD` adds the preceding window's values.
|
|
35
|
+
*
|
|
36
|
+
* Values are in the metric's display units. A PASS_RATE is a 0 to 1 share;
|
|
37
|
+
* `sampleSize` 0 means no data. A query the analytics store cannot answer returns
|
|
38
|
+
* 400 naming the unsupported part.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const response = await client.analytics.query({
|
|
43
|
+
* measures: [{}],
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
query(body, options) {
|
|
48
|
+
return this._client.post('/v1/analytics/query', { body, ...options });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=analytics.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.mjs","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,IAA0B,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|