zorihq 0.15.0 → 0.17.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -9
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/v1/analytics/analytics.d.mts +112 -27
  12. package/resources/v1/analytics/analytics.d.mts.map +1 -1
  13. package/resources/v1/analytics/analytics.d.ts +112 -27
  14. package/resources/v1/analytics/analytics.d.ts.map +1 -1
  15. package/resources/v1/analytics/analytics.js +8 -14
  16. package/resources/v1/analytics/analytics.js.map +1 -1
  17. package/resources/v1/analytics/analytics.mjs +8 -14
  18. package/resources/v1/analytics/analytics.mjs.map +1 -1
  19. package/resources/v1/analytics/index.d.mts +2 -4
  20. package/resources/v1/analytics/index.d.mts.map +1 -1
  21. package/resources/v1/analytics/index.d.ts +2 -4
  22. package/resources/v1/analytics/index.d.ts.map +1 -1
  23. package/resources/v1/analytics/index.js +1 -5
  24. package/resources/v1/analytics/index.js.map +1 -1
  25. package/resources/v1/analytics/index.mjs +0 -2
  26. package/resources/v1/analytics/index.mjs.map +1 -1
  27. package/resources/v1/analytics/tiles.d.mts +105 -134
  28. package/resources/v1/analytics/tiles.d.mts.map +1 -1
  29. package/resources/v1/analytics/tiles.d.ts +105 -134
  30. package/resources/v1/analytics/tiles.d.ts.map +1 -1
  31. package/resources/v1/analytics/tiles.js +74 -46
  32. package/resources/v1/analytics/tiles.js.map +1 -1
  33. package/resources/v1/analytics/tiles.mjs +74 -46
  34. package/resources/v1/analytics/tiles.mjs.map +1 -1
  35. package/resources/v1/index.d.mts +1 -1
  36. package/resources/v1/index.d.mts.map +1 -1
  37. package/resources/v1/index.d.ts +1 -1
  38. package/resources/v1/index.d.ts.map +1 -1
  39. package/resources/v1/index.js.map +1 -1
  40. package/resources/v1/index.mjs.map +1 -1
  41. package/resources/v1/v1.d.mts +2 -2
  42. package/resources/v1/v1.d.mts.map +1 -1
  43. package/resources/v1/v1.d.ts +2 -2
  44. package/resources/v1/v1.d.ts.map +1 -1
  45. package/resources/v1/v1.js.map +1 -1
  46. package/resources/v1/v1.mjs.map +1 -1
  47. package/src/client.ts +20 -14
  48. package/src/resources/v1/analytics/analytics.ts +214 -92
  49. package/src/resources/v1/analytics/index.ts +36 -30
  50. package/src/resources/v1/analytics/tiles.ts +149 -206
  51. package/src/resources/v1/index.ts +21 -2
  52. package/src/resources/v1/v1.ts +42 -4
  53. package/src/version.ts +1 -1
  54. package/version.d.mts +1 -1
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
  57. package/version.mjs +1 -1
  58. package/resources/v1/analytics/sessions.d.mts +0 -4
  59. package/resources/v1/analytics/sessions.d.mts.map +0 -1
  60. package/resources/v1/analytics/sessions.d.ts +0 -4
  61. package/resources/v1/analytics/sessions.d.ts.map +0 -1
  62. package/resources/v1/analytics/sessions.js +0 -9
  63. package/resources/v1/analytics/sessions.js.map +0 -1
  64. package/resources/v1/analytics/sessions.mjs +0 -5
  65. package/resources/v1/analytics/sessions.mjs.map +0 -1
  66. package/resources/v1/analytics/users.d.mts +0 -4
  67. package/resources/v1/analytics/users.d.mts.map +0 -1
  68. package/resources/v1/analytics/users.d.ts +0 -4
  69. package/resources/v1/analytics/users.d.ts.map +0 -1
  70. package/resources/v1/analytics/users.js +0 -9
  71. package/resources/v1/analytics/users.js.map +0 -1
  72. package/resources/v1/analytics/users.mjs +0 -5
  73. package/resources/v1/analytics/users.mjs.map +0 -1
  74. package/src/resources/v1/analytics/sessions.ts +0 -5
  75. package/src/resources/v1/analytics/users.ts +0 -5
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
+ import * as AnalyticsAPI from './analytics';
4
5
  import { APIPromise } from '../../../core/api-promise';
5
6
  import { RequestOptions } from '../../../internal/request-options';
6
7
 
@@ -10,17 +11,17 @@ export class Tiles extends APIResource {
10
11
  *
11
12
  * @example
12
13
  * ```ts
13
- * const response =
14
- * await client.v1.analytics.tiles.getBounceRate({
14
+ * const bounceRateResponse =
15
+ * await client.v1.analytics.tiles.bounceRate({
15
16
  * project_id: 'project_id',
16
17
  * time_range: 'last_hour',
17
18
  * });
18
19
  * ```
19
20
  */
20
- getBounceRate(
21
- query: TileGetBounceRateParams,
21
+ bounceRate(
22
+ query: TileBounceRateParams,
22
23
  options?: RequestOptions,
23
- ): APIPromise<TileGetBounceRateResponse> {
24
+ ): APIPromise<AnalyticsAPI.BounceRateResponse> {
24
25
  return this._client.get('/api/v1/analytics/tiles/bounce-rate', { query, ...options });
25
26
  }
26
27
 
@@ -29,17 +30,13 @@ export class Tiles extends APIResource {
29
30
  *
30
31
  * @example
31
32
  * ```ts
32
- * const response =
33
- * await client.v1.analytics.tiles.getDailyActiveUsers({
34
- * project_id: 'project_id',
35
- * time_range: 'last_hour',
36
- * });
33
+ * const dauResponse = await client.v1.analytics.tiles.dau({
34
+ * project_id: 'project_id',
35
+ * time_range: 'last_hour',
36
+ * });
37
37
  * ```
38
38
  */
39
- getDailyActiveUsers(
40
- query: TileGetDailyActiveUsersParams,
41
- options?: RequestOptions,
42
- ): APIPromise<TileGetDailyActiveUsersResponse> {
39
+ dau(query: TileDauParams, options?: RequestOptions): APIPromise<AnalyticsAPI.DauResponse> {
43
40
  return this._client.get('/api/v1/analytics/tiles/dau', { query, ...options });
44
41
  }
45
42
 
@@ -48,17 +45,13 @@ export class Tiles extends APIResource {
48
45
  *
49
46
  * @example
50
47
  * ```ts
51
- * const response =
52
- * await client.v1.analytics.tiles.getMonthlyActiveUsers({
53
- * project_id: 'project_id',
54
- * time_range: 'last_hour',
55
- * });
48
+ * const mauResponse = await client.v1.analytics.tiles.mau({
49
+ * project_id: 'project_id',
50
+ * time_range: 'last_hour',
51
+ * });
56
52
  * ```
57
53
  */
58
- getMonthlyActiveUsers(
59
- query: TileGetMonthlyActiveUsersParams,
60
- options?: RequestOptions,
61
- ): APIPromise<TileGetMonthlyActiveUsersResponse> {
54
+ mau(query: TileMauParams, options?: RequestOptions): APIPromise<AnalyticsAPI.MauResponse> {
62
55
  return this._client.get('/api/v1/analytics/tiles/mau', { query, ...options });
63
56
  }
64
57
 
@@ -68,17 +61,17 @@ export class Tiles extends APIResource {
68
61
  *
69
62
  * @example
70
63
  * ```ts
71
- * const response =
72
- * await client.v1.analytics.tiles.getPagesPerSession({
64
+ * const pagesPerSessionResponse =
65
+ * await client.v1.analytics.tiles.pagesPerSession({
73
66
  * project_id: 'project_id',
74
67
  * time_range: 'last_hour',
75
68
  * });
76
69
  * ```
77
70
  */
78
- getPagesPerSession(
79
- query: TileGetPagesPerSessionParams,
71
+ pagesPerSession(
72
+ query: TilePagesPerSessionParams,
80
73
  options?: RequestOptions,
81
- ): APIPromise<TileGetPagesPerSessionResponse> {
74
+ ): APIPromise<AnalyticsAPI.PagesPerSessionResponse> {
82
75
  return this._client.get('/api/v1/analytics/tiles/pages-per-session', { query, ...options });
83
76
  }
84
77
 
@@ -88,17 +81,17 @@ export class Tiles extends APIResource {
88
81
  *
89
82
  * @example
90
83
  * ```ts
91
- * const response =
92
- * await client.v1.analytics.tiles.getReturnRate({
84
+ * const returnRateResponse =
85
+ * await client.v1.analytics.tiles.returnRate({
93
86
  * project_id: 'project_id',
94
87
  * time_range: 'last_hour',
95
88
  * });
96
89
  * ```
97
90
  */
98
- getReturnRate(
99
- query: TileGetReturnRateParams,
91
+ returnRate(
92
+ query: TileReturnRateParams,
100
93
  options?: RequestOptions,
101
- ): APIPromise<TileGetReturnRateResponse> {
94
+ ): APIPromise<AnalyticsAPI.ReturnRateResponse> {
102
95
  return this._client.get('/api/v1/analytics/tiles/return-rate', { query, ...options });
103
96
  }
104
97
 
@@ -108,17 +101,17 @@ export class Tiles extends APIResource {
108
101
  *
109
102
  * @example
110
103
  * ```ts
111
- * const response =
112
- * await client.v1.analytics.tiles.getSessionDuration({
104
+ * const sessionDurationResponse =
105
+ * await client.v1.analytics.tiles.sessionDuration({
113
106
  * project_id: 'project_id',
114
107
  * time_range: 'last_hour',
115
108
  * });
116
109
  * ```
117
110
  */
118
- getSessionDuration(
119
- query: TileGetSessionDurationParams,
111
+ sessionDuration(
112
+ query: TileSessionDurationParams,
120
113
  options?: RequestOptions,
121
- ): APIPromise<TileGetSessionDurationResponse> {
114
+ ): APIPromise<AnalyticsAPI.SessionDurationResponse> {
122
115
  return this._client.get('/api/v1/analytics/tiles/session-duration', { query, ...options });
123
116
  }
124
117
 
@@ -128,17 +121,17 @@ export class Tiles extends APIResource {
128
121
  *
129
122
  * @example
130
123
  * ```ts
131
- * const response =
132
- * await client.v1.analytics.tiles.getTimeBetweenVisits({
124
+ * const timeBetweenVisitsResponse =
125
+ * await client.v1.analytics.tiles.timeBetweenVisits({
133
126
  * project_id: 'project_id',
134
127
  * time_range: 'last_hour',
135
128
  * });
136
129
  * ```
137
130
  */
138
- getTimeBetweenVisits(
139
- query: TileGetTimeBetweenVisitsParams,
131
+ timeBetweenVisits(
132
+ query: TileTimeBetweenVisitsParams,
140
133
  options?: RequestOptions,
141
- ): APIPromise<TileGetTimeBetweenVisitsResponse> {
134
+ ): APIPromise<AnalyticsAPI.TimeBetweenVisitsResponse> {
142
135
  return this._client.get('/api/v1/analytics/tiles/time-between-visits', { query, ...options });
143
136
  }
144
137
 
@@ -147,17 +140,17 @@ export class Tiles extends APIResource {
147
140
  *
148
141
  * @example
149
142
  * ```ts
150
- * const response =
151
- * await client.v1.analytics.tiles.getTrafficByCountry({
143
+ * const countryTrafficSourceResponse =
144
+ * await client.v1.analytics.tiles.trafficByCountry({
152
145
  * project_id: 'project_id',
153
146
  * time_range: 'last_hour',
154
147
  * });
155
148
  * ```
156
149
  */
157
- getTrafficByCountry(
158
- query: TileGetTrafficByCountryParams,
150
+ trafficByCountry(
151
+ query: TileTrafficByCountryParams,
159
152
  options?: RequestOptions,
160
- ): APIPromise<TileGetTrafficByCountryResponse> {
153
+ ): APIPromise<AnalyticsAPI.CountryTrafficSourceResponse> {
161
154
  return this._client.get('/api/v1/analytics/tiles/traffic-by-country', { query, ...options });
162
155
  }
163
156
 
@@ -166,17 +159,17 @@ export class Tiles extends APIResource {
166
159
  *
167
160
  * @example
168
161
  * ```ts
169
- * const response =
170
- * await client.v1.analytics.tiles.getTrafficByReferer({
162
+ * const refererTrafficSourceResponse =
163
+ * await client.v1.analytics.tiles.trafficByReferer({
171
164
  * project_id: 'project_id',
172
165
  * time_range: 'last_hour',
173
166
  * });
174
167
  * ```
175
168
  */
176
- getTrafficByReferer(
177
- query: TileGetTrafficByRefererParams,
169
+ trafficByReferer(
170
+ query: TileTrafficByRefererParams,
178
171
  options?: RequestOptions,
179
- ): APIPromise<TileGetTrafficByRefererResponse> {
172
+ ): APIPromise<AnalyticsAPI.RefererTrafficSourceResponse> {
180
173
  return this._client.get('/api/v1/analytics/tiles/traffic-by-referer', { query, ...options });
181
174
  }
182
175
 
@@ -185,17 +178,17 @@ export class Tiles extends APIResource {
185
178
  *
186
179
  * @example
187
180
  * ```ts
188
- * const response =
189
- * await client.v1.analytics.tiles.getTrafficByUtm({
181
+ * const utmTrafficSourceResponse =
182
+ * await client.v1.analytics.tiles.trafficByUtm({
190
183
  * project_id: 'project_id',
191
184
  * time_range: 'last_hour',
192
185
  * });
193
186
  * ```
194
187
  */
195
- getTrafficByUtm(
196
- query: TileGetTrafficByUtmParams,
188
+ trafficByUtm(
189
+ query: TileTrafficByUtmParams,
197
190
  options?: RequestOptions,
198
- ): APIPromise<TileGetTrafficByUtmResponse> {
191
+ ): APIPromise<AnalyticsAPI.UtmTrafficSourceResponse> {
199
192
  return this._client.get('/api/v1/analytics/tiles/traffic-by-utm', { query, ...options });
200
193
  }
201
194
 
@@ -204,17 +197,17 @@ export class Tiles extends APIResource {
204
197
  *
205
198
  * @example
206
199
  * ```ts
207
- * const response =
208
- * await client.v1.analytics.tiles.getUniqueSessions({
200
+ * const uniqueSessionsResponse =
201
+ * await client.v1.analytics.tiles.uniqueSessions({
209
202
  * project_id: 'project_id',
210
203
  * time_range: 'last_hour',
211
204
  * });
212
205
  * ```
213
206
  */
214
- getUniqueSessions(
215
- query: TileGetUniqueSessionsParams,
207
+ uniqueSessions(
208
+ query: TileUniqueSessionsParams,
216
209
  options?: RequestOptions,
217
- ): APIPromise<TileGetUniqueSessionsResponse> {
210
+ ): APIPromise<AnalyticsAPI.UniqueSessionsResponse> {
218
211
  return this._client.get('/api/v1/analytics/tiles/unique-sessions', { query, ...options });
219
212
  }
220
213
 
@@ -223,155 +216,116 @@ export class Tiles extends APIResource {
223
216
  *
224
217
  * @example
225
218
  * ```ts
226
- * const response =
227
- * await client.v1.analytics.tiles.getUniqueVisitors({
219
+ * const uniqueVisitorsResponse =
220
+ * await client.v1.analytics.tiles.uniqueVisitors({
228
221
  * project_id: 'project_id',
229
222
  * time_range: 'last_hour',
230
223
  * });
231
224
  * ```
232
225
  */
233
- getUniqueVisitors(
234
- query: TileGetUniqueVisitorsParams,
226
+ uniqueVisitors(
227
+ query: TileUniqueVisitorsParams,
235
228
  options?: RequestOptions,
236
- ): APIPromise<TileGetUniqueVisitorsResponse> {
229
+ ): APIPromise<AnalyticsAPI.UniqueVisitorsResponse> {
237
230
  return this._client.get('/api/v1/analytics/tiles/unique-visitors', { query, ...options });
238
231
  }
239
232
 
240
233
  /**
241
- * Get weekly active user count (last 7 days) compared to the previous week
234
+ * Get number of visitors by browser for current period compared to the previous
235
+ * period
242
236
  *
243
237
  * @example
244
238
  * ```ts
245
- * const response =
246
- * await client.v1.analytics.tiles.getWeeklyActiveUsers({
239
+ * const visitorsByBrowserResponse =
240
+ * await client.v1.analytics.tiles.visitorsByBrowser({
247
241
  * project_id: 'project_id',
248
242
  * time_range: 'last_hour',
249
243
  * });
250
244
  * ```
251
245
  */
252
- getWeeklyActiveUsers(
253
- query: TileGetWeeklyActiveUsersParams,
246
+ visitorsByBrowser(
247
+ query: TileVisitorsByBrowserParams,
254
248
  options?: RequestOptions,
255
- ): APIPromise<TileGetWeeklyActiveUsersResponse> {
256
- return this._client.get('/api/v1/analytics/tiles/wau', { query, ...options });
249
+ ): APIPromise<AnalyticsAPI.VisitorsByBrowserResponse> {
250
+ return this._client.get('/api/v1/analytics/tiles/visitors-by-browser', { query, ...options });
257
251
  }
258
- }
259
-
260
- export interface TileGetBounceRateResponse {
261
- previous_rate?: number;
262
-
263
- rate?: number;
264
- }
265
-
266
- export interface TileGetDailyActiveUsersResponse {
267
- count?: number;
268
-
269
- previous_count?: number;
270
- }
271
-
272
- export interface TileGetMonthlyActiveUsersResponse {
273
- count?: number;
274
-
275
- previous_count?: number;
276
- }
277
-
278
- export interface TileGetPagesPerSessionResponse {
279
- avg_pages?: number;
280
252
 
281
- previous_avg_pages?: number;
282
- }
283
-
284
- export interface TileGetReturnRateResponse {
285
- previous_rate?: number;
286
-
287
- rate?: number;
288
- }
289
-
290
- export interface TileGetSessionDurationResponse {
291
- avg_duration?: number;
292
-
293
- previous_avg_duration?: number;
294
- }
295
-
296
- export interface TileGetTimeBetweenVisitsResponse {
297
- avg_hours?: number;
298
-
299
- previous_avg_hours?: number;
300
- }
301
-
302
- export interface TileGetTrafficByCountryResponse {
303
- data?: Array<TileGetTrafficByCountryResponse.Data>;
304
- }
305
-
306
- export namespace TileGetTrafficByCountryResponse {
307
- export interface Data {
308
- count?: number;
309
-
310
- country?: string;
311
-
312
- previous_count?: number;
253
+ /**
254
+ * Get number of visitors by OS for current period compared to the previous period
255
+ *
256
+ * @example
257
+ * ```ts
258
+ * const visitorsByOsResponse =
259
+ * await client.v1.analytics.tiles.visitorsByOs({
260
+ * project_id: 'project_id',
261
+ * time_range: 'last_hour',
262
+ * });
263
+ * ```
264
+ */
265
+ visitorsByOs(
266
+ query: TileVisitorsByOsParams,
267
+ options?: RequestOptions,
268
+ ): APIPromise<AnalyticsAPI.VisitorsByOsResponse> {
269
+ return this._client.get('/api/v1/analytics/tiles/visitors-by-os', { query, ...options });
313
270
  }
314
- }
315
271
 
316
- export interface TileGetTrafficByRefererResponse {
317
- data?: Array<TileGetTrafficByRefererResponse.Data>;
272
+ /**
273
+ * Get weekly active user count (last 7 days) compared to the previous week
274
+ *
275
+ * @example
276
+ * ```ts
277
+ * const wauResponse = await client.v1.analytics.tiles.wau({
278
+ * project_id: 'project_id',
279
+ * time_range: 'last_hour',
280
+ * });
281
+ * ```
282
+ */
283
+ wau(query: TileWauParams, options?: RequestOptions): APIPromise<AnalyticsAPI.WauResponse> {
284
+ return this._client.get('/api/v1/analytics/tiles/wau', { query, ...options });
285
+ }
318
286
  }
319
287
 
320
- export namespace TileGetTrafficByRefererResponse {
321
- export interface Data {
322
- count?: number;
323
-
324
- previous_count?: number;
288
+ export interface TileBounceRateParams {
289
+ project_id: string;
325
290
 
326
- previous_revenue?: number;
291
+ time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
327
292
 
328
- referer_url?: string;
293
+ customer_id?: string;
329
294
 
330
- revenue?: number;
331
- }
332
- }
295
+ limit?: number;
333
296
 
334
- export interface TileGetTrafficByUtmResponse {
335
- data?: Array<TileGetTrafficByUtmResponse.Data>;
336
- }
297
+ offset?: number;
337
298
 
338
- export namespace TileGetTrafficByUtmResponse {
339
- export interface Data {
340
- count?: number;
299
+ referrer?: string;
341
300
 
342
- previous_count?: number;
301
+ utmtag?: string;
343
302
 
344
- previous_revenue?: number;
303
+ utmtagValue?: string;
345
304
 
346
- revenue?: number;
305
+ visitor_id?: string;
306
+ }
347
307
 
348
- utm_campaign?: string;
308
+ export interface TileDauParams {
309
+ project_id: string;
349
310
 
350
- utm_medium?: string;
311
+ time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
351
312
 
352
- utm_source?: string;
353
- }
354
- }
313
+ customer_id?: string;
355
314
 
356
- export interface TileGetUniqueSessionsResponse {
357
- count?: number;
315
+ limit?: number;
358
316
 
359
- previous_count?: number;
360
- }
317
+ offset?: number;
361
318
 
362
- export interface TileGetUniqueVisitorsResponse {
363
- count?: number;
319
+ referrer?: string;
364
320
 
365
- previous_count?: number;
366
- }
321
+ utmtag?: string;
367
322
 
368
- export interface TileGetWeeklyActiveUsersResponse {
369
- count?: number;
323
+ utmtagValue?: string;
370
324
 
371
- previous_count?: number;
325
+ visitor_id?: string;
372
326
  }
373
327
 
374
- export interface TileGetBounceRateParams {
328
+ export interface TileMauParams {
375
329
  project_id: string;
376
330
 
377
331
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -391,7 +345,7 @@ export interface TileGetBounceRateParams {
391
345
  visitor_id?: string;
392
346
  }
393
347
 
394
- export interface TileGetDailyActiveUsersParams {
348
+ export interface TilePagesPerSessionParams {
395
349
  project_id: string;
396
350
 
397
351
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -411,7 +365,7 @@ export interface TileGetDailyActiveUsersParams {
411
365
  visitor_id?: string;
412
366
  }
413
367
 
414
- export interface TileGetMonthlyActiveUsersParams {
368
+ export interface TileReturnRateParams {
415
369
  project_id: string;
416
370
 
417
371
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -431,7 +385,7 @@ export interface TileGetMonthlyActiveUsersParams {
431
385
  visitor_id?: string;
432
386
  }
433
387
 
434
- export interface TileGetPagesPerSessionParams {
388
+ export interface TileSessionDurationParams {
435
389
  project_id: string;
436
390
 
437
391
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -451,7 +405,7 @@ export interface TileGetPagesPerSessionParams {
451
405
  visitor_id?: string;
452
406
  }
453
407
 
454
- export interface TileGetReturnRateParams {
408
+ export interface TileTimeBetweenVisitsParams {
455
409
  project_id: string;
456
410
 
457
411
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -471,7 +425,7 @@ export interface TileGetReturnRateParams {
471
425
  visitor_id?: string;
472
426
  }
473
427
 
474
- export interface TileGetSessionDurationParams {
428
+ export interface TileTrafficByCountryParams {
475
429
  project_id: string;
476
430
 
477
431
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -491,7 +445,7 @@ export interface TileGetSessionDurationParams {
491
445
  visitor_id?: string;
492
446
  }
493
447
 
494
- export interface TileGetTimeBetweenVisitsParams {
448
+ export interface TileTrafficByRefererParams {
495
449
  project_id: string;
496
450
 
497
451
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -511,7 +465,7 @@ export interface TileGetTimeBetweenVisitsParams {
511
465
  visitor_id?: string;
512
466
  }
513
467
 
514
- export interface TileGetTrafficByCountryParams {
468
+ export interface TileTrafficByUtmParams {
515
469
  project_id: string;
516
470
 
517
471
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -531,7 +485,7 @@ export interface TileGetTrafficByCountryParams {
531
485
  visitor_id?: string;
532
486
  }
533
487
 
534
- export interface TileGetTrafficByRefererParams {
488
+ export interface TileUniqueSessionsParams {
535
489
  project_id: string;
536
490
 
537
491
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -551,7 +505,7 @@ export interface TileGetTrafficByRefererParams {
551
505
  visitor_id?: string;
552
506
  }
553
507
 
554
- export interface TileGetTrafficByUtmParams {
508
+ export interface TileUniqueVisitorsParams {
555
509
  project_id: string;
556
510
 
557
511
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -571,7 +525,7 @@ export interface TileGetTrafficByUtmParams {
571
525
  visitor_id?: string;
572
526
  }
573
527
 
574
- export interface TileGetUniqueSessionsParams {
528
+ export interface TileVisitorsByBrowserParams {
575
529
  project_id: string;
576
530
 
577
531
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -591,7 +545,7 @@ export interface TileGetUniqueSessionsParams {
591
545
  visitor_id?: string;
592
546
  }
593
547
 
594
- export interface TileGetUniqueVisitorsParams {
548
+ export interface TileVisitorsByOsParams {
595
549
  project_id: string;
596
550
 
597
551
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -611,7 +565,7 @@ export interface TileGetUniqueVisitorsParams {
611
565
  visitor_id?: string;
612
566
  }
613
567
 
614
- export interface TileGetWeeklyActiveUsersParams {
568
+ export interface TileWauParams {
615
569
  project_id: string;
616
570
 
617
571
  time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
@@ -633,31 +587,20 @@ export interface TileGetWeeklyActiveUsersParams {
633
587
 
634
588
  export declare namespace Tiles {
635
589
  export {
636
- type TileGetBounceRateResponse as TileGetBounceRateResponse,
637
- type TileGetDailyActiveUsersResponse as TileGetDailyActiveUsersResponse,
638
- type TileGetMonthlyActiveUsersResponse as TileGetMonthlyActiveUsersResponse,
639
- type TileGetPagesPerSessionResponse as TileGetPagesPerSessionResponse,
640
- type TileGetReturnRateResponse as TileGetReturnRateResponse,
641
- type TileGetSessionDurationResponse as TileGetSessionDurationResponse,
642
- type TileGetTimeBetweenVisitsResponse as TileGetTimeBetweenVisitsResponse,
643
- type TileGetTrafficByCountryResponse as TileGetTrafficByCountryResponse,
644
- type TileGetTrafficByRefererResponse as TileGetTrafficByRefererResponse,
645
- type TileGetTrafficByUtmResponse as TileGetTrafficByUtmResponse,
646
- type TileGetUniqueSessionsResponse as TileGetUniqueSessionsResponse,
647
- type TileGetUniqueVisitorsResponse as TileGetUniqueVisitorsResponse,
648
- type TileGetWeeklyActiveUsersResponse as TileGetWeeklyActiveUsersResponse,
649
- type TileGetBounceRateParams as TileGetBounceRateParams,
650
- type TileGetDailyActiveUsersParams as TileGetDailyActiveUsersParams,
651
- type TileGetMonthlyActiveUsersParams as TileGetMonthlyActiveUsersParams,
652
- type TileGetPagesPerSessionParams as TileGetPagesPerSessionParams,
653
- type TileGetReturnRateParams as TileGetReturnRateParams,
654
- type TileGetSessionDurationParams as TileGetSessionDurationParams,
655
- type TileGetTimeBetweenVisitsParams as TileGetTimeBetweenVisitsParams,
656
- type TileGetTrafficByCountryParams as TileGetTrafficByCountryParams,
657
- type TileGetTrafficByRefererParams as TileGetTrafficByRefererParams,
658
- type TileGetTrafficByUtmParams as TileGetTrafficByUtmParams,
659
- type TileGetUniqueSessionsParams as TileGetUniqueSessionsParams,
660
- type TileGetUniqueVisitorsParams as TileGetUniqueVisitorsParams,
661
- type TileGetWeeklyActiveUsersParams as TileGetWeeklyActiveUsersParams,
590
+ type TileBounceRateParams as TileBounceRateParams,
591
+ type TileDauParams as TileDauParams,
592
+ type TileMauParams as TileMauParams,
593
+ type TilePagesPerSessionParams as TilePagesPerSessionParams,
594
+ type TileReturnRateParams as TileReturnRateParams,
595
+ type TileSessionDurationParams as TileSessionDurationParams,
596
+ type TileTimeBetweenVisitsParams as TileTimeBetweenVisitsParams,
597
+ type TileTrafficByCountryParams as TileTrafficByCountryParams,
598
+ type TileTrafficByRefererParams as TileTrafficByRefererParams,
599
+ type TileTrafficByUtmParams as TileTrafficByUtmParams,
600
+ type TileUniqueSessionsParams as TileUniqueSessionsParams,
601
+ type TileUniqueVisitorsParams as TileUniqueVisitorsParams,
602
+ type TileVisitorsByBrowserParams as TileVisitorsByBrowserParams,
603
+ type TileVisitorsByOsParams as TileVisitorsByOsParams,
604
+ type TileWauParams as TileWauParams,
662
605
  };
663
606
  }
@@ -2,23 +2,42 @@
2
2
 
3
3
  export {
4
4
  Analytics,
5
+ type BounceRateResponse,
6
+ type CardPrecision,
5
7
  type ChurnRateResponse,
6
8
  type CohortAnalysisResponse,
7
9
  type CohortData,
10
+ type CountryTrafficSourceData,
11
+ type CountryTrafficSourceResponse,
12
+ type DauResponse,
8
13
  type EventFilterOptionsResponse,
9
14
  type EventsOverTimeDataPoint,
10
15
  type ManualIdentifyRequest,
11
16
  type ManualIdentifyResponse,
17
+ type MauResponse,
18
+ type PagesPerSessionResponse,
12
19
  type RecentEvent,
13
20
  type RecentEventsResponse,
21
+ type RefererTrafficSourceData,
22
+ type RefererTrafficSourceResponse,
23
+ type ReturnRateResponse,
24
+ type SessionDurationResponse,
25
+ type TimeBetweenVisitsResponse,
26
+ type TimelineTileData,
27
+ type TimelineTileResponse,
14
28
  type TopVisitor,
15
29
  type TopVisitorsResponse,
30
+ type UniqueSessionsResponse,
31
+ type UniqueVisitorsResponse,
32
+ type UtmTrafficSourceResponse,
16
33
  type VisitorDataPoint,
17
34
  type VisitorEvent,
18
35
  type VisitorProfileResponse,
36
+ type VisitorsByBrowserResponse,
19
37
  type VisitorsByDeviceResponse,
20
- type AnalyticsRetrieveTimelineResponse,
21
- type AnalyticsRetrieveTimelineParams,
38
+ type VisitorsByOsResponse,
39
+ type WauResponse,
40
+ type AnalyticsTimelineParams,
22
41
  } from './analytics/index';
23
42
  export { Auth, type LoginRequest, type LoginResponse, type AuthLoginParams } from './auth';
24
43
  export {