saasco-sdk 0.1.7 → 0.1.9
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/README.md +3 -4
- package/index.cjs.js +155 -86
- package/index.esm.js +148 -85
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/analytics.d.ts +7 -6
- package/src/lib/types.d.ts +737 -278
package/src/lib/types.d.ts
CHANGED
|
@@ -50,27 +50,155 @@ export declare const tinyBirdBaseSchema: z.ZodObject<{
|
|
|
50
50
|
rows: number;
|
|
51
51
|
}>;
|
|
52
52
|
export type TinyBirdBase = z.infer<typeof tinyBirdBaseSchema>;
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const TinybirdJobResponseSchema: z.ZodObject<{
|
|
54
|
+
id: z.ZodString;
|
|
55
|
+
job_id: z.ZodString;
|
|
56
|
+
job_url: z.ZodString;
|
|
57
|
+
job: z.ZodObject<{
|
|
58
|
+
kind: z.ZodString;
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
job_id: z.ZodString;
|
|
61
|
+
status: z.ZodString;
|
|
62
|
+
created_at: z.ZodString;
|
|
63
|
+
updated_at: z.ZodString;
|
|
64
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
65
|
+
is_cancellable: z.ZodBoolean;
|
|
66
|
+
datasource: z.ZodObject<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
name: string;
|
|
71
|
+
id: string;
|
|
72
|
+
}, {
|
|
73
|
+
name: string;
|
|
74
|
+
id: string;
|
|
75
|
+
}>;
|
|
76
|
+
delete_condition: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
status: string;
|
|
79
|
+
id: string;
|
|
80
|
+
job_id: string;
|
|
81
|
+
kind: string;
|
|
82
|
+
created_at: string;
|
|
83
|
+
updated_at: string;
|
|
84
|
+
started_at: string | null;
|
|
85
|
+
is_cancellable: boolean;
|
|
86
|
+
datasource: {
|
|
87
|
+
name: string;
|
|
88
|
+
id: string;
|
|
89
|
+
};
|
|
90
|
+
delete_condition?: string | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
status: string;
|
|
93
|
+
id: string;
|
|
94
|
+
job_id: string;
|
|
95
|
+
kind: string;
|
|
96
|
+
created_at: string;
|
|
97
|
+
updated_at: string;
|
|
98
|
+
started_at: string | null;
|
|
99
|
+
is_cancellable: boolean;
|
|
100
|
+
datasource: {
|
|
101
|
+
name: string;
|
|
102
|
+
id: string;
|
|
103
|
+
};
|
|
104
|
+
delete_condition?: string | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
status: z.ZodString;
|
|
107
|
+
delete_id: z.ZodOptional<z.ZodString>;
|
|
108
|
+
import_id: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
status: string;
|
|
111
|
+
id: string;
|
|
112
|
+
job_id: string;
|
|
113
|
+
job_url: string;
|
|
114
|
+
job: {
|
|
115
|
+
status: string;
|
|
116
|
+
id: string;
|
|
117
|
+
job_id: string;
|
|
118
|
+
kind: string;
|
|
119
|
+
created_at: string;
|
|
120
|
+
updated_at: string;
|
|
121
|
+
started_at: string | null;
|
|
122
|
+
is_cancellable: boolean;
|
|
123
|
+
datasource: {
|
|
124
|
+
name: string;
|
|
125
|
+
id: string;
|
|
126
|
+
};
|
|
127
|
+
delete_condition?: string | undefined;
|
|
128
|
+
};
|
|
129
|
+
delete_id?: string | undefined;
|
|
130
|
+
import_id?: string | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
status: string;
|
|
133
|
+
id: string;
|
|
134
|
+
job_id: string;
|
|
135
|
+
job_url: string;
|
|
136
|
+
job: {
|
|
137
|
+
status: string;
|
|
138
|
+
id: string;
|
|
139
|
+
job_id: string;
|
|
140
|
+
kind: string;
|
|
141
|
+
created_at: string;
|
|
142
|
+
updated_at: string;
|
|
143
|
+
started_at: string | null;
|
|
144
|
+
is_cancellable: boolean;
|
|
145
|
+
datasource: {
|
|
146
|
+
name: string;
|
|
147
|
+
id: string;
|
|
148
|
+
};
|
|
149
|
+
delete_condition?: string | undefined;
|
|
150
|
+
};
|
|
151
|
+
delete_id?: string | undefined;
|
|
152
|
+
import_id?: string | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
export type TinybirdJobResponse = z.infer<typeof TinybirdJobResponseSchema>;
|
|
155
|
+
export declare const latestEventsRequestSchema: z.ZodObject<{
|
|
54
156
|
projectId: z.ZodString;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
referringDomain: z.ZodOptional<z.ZodString>;
|
|
58
|
-
location: z.ZodOptional<z.ZodString>;
|
|
157
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
payload: z.ZodOptional<z.ZodBoolean>;
|
|
59
159
|
}, "strip", z.ZodTypeAny, {
|
|
60
160
|
projectId: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
referringDomain?: string | undefined;
|
|
64
|
-
location?: string | undefined;
|
|
161
|
+
limit?: number | undefined;
|
|
162
|
+
payload?: boolean | undefined;
|
|
65
163
|
}, {
|
|
66
164
|
projectId: string;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
referringDomain?: string | undefined;
|
|
70
|
-
location?: string | undefined;
|
|
165
|
+
limit?: number | undefined;
|
|
166
|
+
payload?: boolean | undefined;
|
|
71
167
|
}>;
|
|
72
|
-
export type
|
|
73
|
-
export declare const
|
|
168
|
+
export type LatestEventsRequest = z.infer<typeof latestEventsRequestSchema>;
|
|
169
|
+
export declare const latestEventItemSchema: z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
timestamp: z.ZodString;
|
|
172
|
+
action: z.ZodString;
|
|
173
|
+
location: z.ZodString;
|
|
174
|
+
referrer: z.ZodString;
|
|
175
|
+
href: z.ZodString;
|
|
176
|
+
device: z.ZodString;
|
|
177
|
+
browser: z.ZodString;
|
|
178
|
+
payload: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
id: string;
|
|
181
|
+
timestamp: string;
|
|
182
|
+
action: string;
|
|
183
|
+
location: string;
|
|
184
|
+
referrer: string;
|
|
185
|
+
href: string;
|
|
186
|
+
device: string;
|
|
187
|
+
browser: string;
|
|
188
|
+
payload?: string | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
id: string;
|
|
191
|
+
timestamp: string;
|
|
192
|
+
action: string;
|
|
193
|
+
location: string;
|
|
194
|
+
referrer: string;
|
|
195
|
+
href: string;
|
|
196
|
+
device: string;
|
|
197
|
+
browser: string;
|
|
198
|
+
payload?: string | undefined;
|
|
199
|
+
}>;
|
|
200
|
+
export type LatestEventItem = z.infer<typeof latestEventItemSchema>;
|
|
201
|
+
export declare const latestEventsResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
74
202
|
meta: z.ZodArray<z.ZodObject<{
|
|
75
203
|
name: z.ZodString;
|
|
76
204
|
type: z.ZodString;
|
|
@@ -95,33 +223,39 @@ export declare const kpisResponseSchema: z.ZodObject<{
|
|
|
95
223
|
bytes_read: number;
|
|
96
224
|
}>;
|
|
97
225
|
rows: z.ZodNumber;
|
|
226
|
+
}, {
|
|
98
227
|
data: z.ZodArray<z.ZodObject<{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
228
|
+
id: z.ZodString;
|
|
229
|
+
timestamp: z.ZodString;
|
|
230
|
+
action: z.ZodString;
|
|
231
|
+
location: z.ZodString;
|
|
232
|
+
referrer: z.ZodString;
|
|
233
|
+
href: z.ZodString;
|
|
234
|
+
device: z.ZodString;
|
|
235
|
+
browser: z.ZodString;
|
|
236
|
+
payload: z.ZodOptional<z.ZodString>;
|
|
104
237
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
238
|
+
id: string;
|
|
239
|
+
timestamp: string;
|
|
240
|
+
action: string;
|
|
241
|
+
location: string;
|
|
242
|
+
referrer: string;
|
|
243
|
+
href: string;
|
|
244
|
+
device: string;
|
|
245
|
+
browser: string;
|
|
246
|
+
payload?: string | undefined;
|
|
110
247
|
}, {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
248
|
+
id: string;
|
|
249
|
+
timestamp: string;
|
|
250
|
+
action: string;
|
|
251
|
+
location: string;
|
|
252
|
+
referrer: string;
|
|
253
|
+
href: string;
|
|
254
|
+
device: string;
|
|
255
|
+
browser: string;
|
|
256
|
+
payload?: string | undefined;
|
|
116
257
|
}>, "many">;
|
|
117
|
-
}
|
|
118
|
-
data: {
|
|
119
|
-
date: string;
|
|
120
|
-
visits: number;
|
|
121
|
-
pageviews: number;
|
|
122
|
-
bounceRate: number | null;
|
|
123
|
-
avgSessionSec: number;
|
|
124
|
-
}[];
|
|
258
|
+
}>, "strip", z.ZodTypeAny, {
|
|
125
259
|
meta: {
|
|
126
260
|
type: string;
|
|
127
261
|
name: string;
|
|
@@ -132,14 +266,18 @@ export declare const kpisResponseSchema: z.ZodObject<{
|
|
|
132
266
|
bytes_read: number;
|
|
133
267
|
};
|
|
134
268
|
rows: number;
|
|
135
|
-
}, {
|
|
136
269
|
data: {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
270
|
+
id: string;
|
|
271
|
+
timestamp: string;
|
|
272
|
+
action: string;
|
|
273
|
+
location: string;
|
|
274
|
+
referrer: string;
|
|
275
|
+
href: string;
|
|
276
|
+
device: string;
|
|
277
|
+
browser: string;
|
|
278
|
+
payload?: string | undefined;
|
|
142
279
|
}[];
|
|
280
|
+
}, {
|
|
143
281
|
meta: {
|
|
144
282
|
type: string;
|
|
145
283
|
name: string;
|
|
@@ -150,9 +288,40 @@ export declare const kpisResponseSchema: z.ZodObject<{
|
|
|
150
288
|
bytes_read: number;
|
|
151
289
|
};
|
|
152
290
|
rows: number;
|
|
291
|
+
data: {
|
|
292
|
+
id: string;
|
|
293
|
+
timestamp: string;
|
|
294
|
+
action: string;
|
|
295
|
+
location: string;
|
|
296
|
+
referrer: string;
|
|
297
|
+
href: string;
|
|
298
|
+
device: string;
|
|
299
|
+
browser: string;
|
|
300
|
+
payload?: string | undefined;
|
|
301
|
+
}[];
|
|
153
302
|
}>;
|
|
154
|
-
export type
|
|
155
|
-
export declare const
|
|
303
|
+
export type LatestEventsResponse = z.infer<typeof latestEventsResponseSchema>;
|
|
304
|
+
export declare const kpisRequestSchema: z.ZodObject<{
|
|
305
|
+
projectId: z.ZodString;
|
|
306
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
307
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
308
|
+
referrer: z.ZodOptional<z.ZodString>;
|
|
309
|
+
location: z.ZodOptional<z.ZodString>;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
projectId: string;
|
|
312
|
+
location?: string | undefined;
|
|
313
|
+
referrer?: string | undefined;
|
|
314
|
+
dateTo?: string | undefined;
|
|
315
|
+
dateFrom?: string | undefined;
|
|
316
|
+
}, {
|
|
317
|
+
projectId: string;
|
|
318
|
+
location?: string | undefined;
|
|
319
|
+
referrer?: string | undefined;
|
|
320
|
+
dateTo?: string | undefined;
|
|
321
|
+
dateFrom?: string | undefined;
|
|
322
|
+
}>;
|
|
323
|
+
export type KpisRequest = z.infer<typeof kpisRequestSchema>;
|
|
324
|
+
export declare const kpisResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
156
325
|
meta: z.ZodArray<z.ZodObject<{
|
|
157
326
|
name: z.ZodString;
|
|
158
327
|
type: z.ZodString;
|
|
@@ -177,21 +346,33 @@ export declare const eventsKpisResponseSchema: z.ZodObject<{
|
|
|
177
346
|
bytes_read: number;
|
|
178
347
|
}>;
|
|
179
348
|
rows: z.ZodNumber;
|
|
349
|
+
}, {
|
|
180
350
|
data: z.ZodArray<z.ZodObject<{
|
|
181
|
-
|
|
182
|
-
|
|
351
|
+
date: z.ZodString;
|
|
352
|
+
users: z.ZodNumber;
|
|
353
|
+
sessions: z.ZodNumber;
|
|
354
|
+
pageViews: z.ZodNumber;
|
|
355
|
+
events: z.ZodNumber;
|
|
356
|
+
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
357
|
+
avgSessionSec: z.ZodNumber;
|
|
183
358
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
|
|
185
|
-
|
|
359
|
+
date: string;
|
|
360
|
+
users: number;
|
|
361
|
+
sessions: number;
|
|
362
|
+
pageViews: number;
|
|
363
|
+
events: number;
|
|
364
|
+
bounceRate: number | null;
|
|
365
|
+
avgSessionSec: number;
|
|
186
366
|
}, {
|
|
187
|
-
|
|
188
|
-
|
|
367
|
+
date: string;
|
|
368
|
+
users: number;
|
|
369
|
+
sessions: number;
|
|
370
|
+
pageViews: number;
|
|
371
|
+
events: number;
|
|
372
|
+
bounceRate: number | null;
|
|
373
|
+
avgSessionSec: number;
|
|
189
374
|
}>, "many">;
|
|
190
|
-
}
|
|
191
|
-
data: {
|
|
192
|
-
unique: number;
|
|
193
|
-
total: number;
|
|
194
|
-
}[];
|
|
375
|
+
}>, "strip", z.ZodTypeAny, {
|
|
195
376
|
meta: {
|
|
196
377
|
type: string;
|
|
197
378
|
name: string;
|
|
@@ -202,11 +383,16 @@ export declare const eventsKpisResponseSchema: z.ZodObject<{
|
|
|
202
383
|
bytes_read: number;
|
|
203
384
|
};
|
|
204
385
|
rows: number;
|
|
205
|
-
}, {
|
|
206
386
|
data: {
|
|
207
|
-
|
|
208
|
-
|
|
387
|
+
date: string;
|
|
388
|
+
users: number;
|
|
389
|
+
sessions: number;
|
|
390
|
+
pageViews: number;
|
|
391
|
+
events: number;
|
|
392
|
+
bounceRate: number | null;
|
|
393
|
+
avgSessionSec: number;
|
|
209
394
|
}[];
|
|
395
|
+
}, {
|
|
210
396
|
meta: {
|
|
211
397
|
type: string;
|
|
212
398
|
name: string;
|
|
@@ -217,35 +403,44 @@ export declare const eventsKpisResponseSchema: z.ZodObject<{
|
|
|
217
403
|
bytes_read: number;
|
|
218
404
|
};
|
|
219
405
|
rows: number;
|
|
406
|
+
data: {
|
|
407
|
+
date: string;
|
|
408
|
+
users: number;
|
|
409
|
+
sessions: number;
|
|
410
|
+
pageViews: number;
|
|
411
|
+
events: number;
|
|
412
|
+
bounceRate: number | null;
|
|
413
|
+
avgSessionSec: number;
|
|
414
|
+
}[];
|
|
220
415
|
}>;
|
|
221
|
-
export type
|
|
416
|
+
export type KpisResponse = z.infer<typeof kpisResponseSchema>;
|
|
222
417
|
export declare const baseTopRequestSchema: z.ZodObject<{
|
|
223
418
|
projectId: z.ZodString;
|
|
224
419
|
dateTo: z.ZodOptional<z.ZodString>;
|
|
225
420
|
dateFrom: z.ZodOptional<z.ZodString>;
|
|
226
421
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
227
422
|
skip: z.ZodOptional<z.ZodNumber>;
|
|
228
|
-
|
|
423
|
+
referrer: z.ZodOptional<z.ZodString>;
|
|
229
424
|
location: z.ZodOptional<z.ZodString>;
|
|
230
425
|
}, "strip", z.ZodTypeAny, {
|
|
231
426
|
projectId: string;
|
|
427
|
+
limit?: number | undefined;
|
|
428
|
+
location?: string | undefined;
|
|
429
|
+
referrer?: string | undefined;
|
|
232
430
|
dateTo?: string | undefined;
|
|
233
431
|
dateFrom?: string | undefined;
|
|
234
|
-
limit?: number | undefined;
|
|
235
432
|
skip?: number | undefined;
|
|
236
|
-
referringDomain?: string | undefined;
|
|
237
|
-
location?: string | undefined;
|
|
238
433
|
}, {
|
|
239
434
|
projectId: string;
|
|
435
|
+
limit?: number | undefined;
|
|
436
|
+
location?: string | undefined;
|
|
437
|
+
referrer?: string | undefined;
|
|
240
438
|
dateTo?: string | undefined;
|
|
241
439
|
dateFrom?: string | undefined;
|
|
242
|
-
limit?: number | undefined;
|
|
243
440
|
skip?: number | undefined;
|
|
244
|
-
referringDomain?: string | undefined;
|
|
245
|
-
location?: string | undefined;
|
|
246
441
|
}>;
|
|
247
442
|
export type BaseTopRequest = z.infer<typeof baseTopRequestSchema>;
|
|
248
|
-
export declare const topPagesResponseSchema: z.ZodObject<{
|
|
443
|
+
export declare const topPagesResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
249
444
|
meta: z.ZodArray<z.ZodObject<{
|
|
250
445
|
name: z.ZodString;
|
|
251
446
|
type: z.ZodString;
|
|
@@ -270,25 +465,21 @@ export declare const topPagesResponseSchema: z.ZodObject<{
|
|
|
270
465
|
bytes_read: number;
|
|
271
466
|
}>;
|
|
272
467
|
rows: z.ZodNumber;
|
|
468
|
+
}, {
|
|
273
469
|
data: z.ZodArray<z.ZodObject<{
|
|
274
470
|
pathname: z.ZodString;
|
|
275
|
-
|
|
276
|
-
|
|
471
|
+
users: z.ZodNumber;
|
|
472
|
+
events: z.ZodNumber;
|
|
277
473
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
|
|
474
|
+
users: number;
|
|
475
|
+
events: number;
|
|
279
476
|
pathname: string;
|
|
280
|
-
hits: number;
|
|
281
477
|
}, {
|
|
282
|
-
|
|
478
|
+
users: number;
|
|
479
|
+
events: number;
|
|
283
480
|
pathname: string;
|
|
284
|
-
hits: number;
|
|
285
481
|
}>, "many">;
|
|
286
|
-
}
|
|
287
|
-
data: {
|
|
288
|
-
visits: number;
|
|
289
|
-
pathname: string;
|
|
290
|
-
hits: number;
|
|
291
|
-
}[];
|
|
482
|
+
}>, "strip", z.ZodTypeAny, {
|
|
292
483
|
meta: {
|
|
293
484
|
type: string;
|
|
294
485
|
name: string;
|
|
@@ -299,12 +490,12 @@ export declare const topPagesResponseSchema: z.ZodObject<{
|
|
|
299
490
|
bytes_read: number;
|
|
300
491
|
};
|
|
301
492
|
rows: number;
|
|
302
|
-
}, {
|
|
303
493
|
data: {
|
|
304
|
-
|
|
494
|
+
users: number;
|
|
495
|
+
events: number;
|
|
305
496
|
pathname: string;
|
|
306
|
-
hits: number;
|
|
307
497
|
}[];
|
|
498
|
+
}, {
|
|
308
499
|
meta: {
|
|
309
500
|
type: string;
|
|
310
501
|
name: string;
|
|
@@ -315,9 +506,14 @@ export declare const topPagesResponseSchema: z.ZodObject<{
|
|
|
315
506
|
bytes_read: number;
|
|
316
507
|
};
|
|
317
508
|
rows: number;
|
|
509
|
+
data: {
|
|
510
|
+
users: number;
|
|
511
|
+
events: number;
|
|
512
|
+
pathname: string;
|
|
513
|
+
}[];
|
|
318
514
|
}>;
|
|
319
515
|
export type TopPagesResponse = z.infer<typeof topPagesResponseSchema>;
|
|
320
|
-
export declare const topLocationsResponseSchema: z.ZodObject<{
|
|
516
|
+
export declare const topLocationsResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
321
517
|
meta: z.ZodArray<z.ZodObject<{
|
|
322
518
|
name: z.ZodString;
|
|
323
519
|
type: z.ZodString;
|
|
@@ -342,33 +538,30 @@ export declare const topLocationsResponseSchema: z.ZodObject<{
|
|
|
342
538
|
bytes_read: number;
|
|
343
539
|
}>;
|
|
344
540
|
rows: z.ZodNumber;
|
|
541
|
+
}, {
|
|
345
542
|
data: z.ZodArray<z.ZodObject<{
|
|
346
543
|
location: z.ZodString;
|
|
347
|
-
|
|
348
|
-
|
|
544
|
+
users: z.ZodNumber;
|
|
545
|
+
sessions: z.ZodNumber;
|
|
546
|
+
pageViews: z.ZodNumber;
|
|
349
547
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
350
548
|
avgSessionSec: z.ZodNumber;
|
|
351
549
|
}, "strip", z.ZodTypeAny, {
|
|
352
550
|
location: string;
|
|
353
|
-
|
|
551
|
+
users: number;
|
|
552
|
+
sessions: number;
|
|
553
|
+
pageViews: number;
|
|
354
554
|
bounceRate: number | null;
|
|
355
555
|
avgSessionSec: number;
|
|
356
|
-
hits: number;
|
|
357
556
|
}, {
|
|
358
557
|
location: string;
|
|
359
|
-
|
|
558
|
+
users: number;
|
|
559
|
+
sessions: number;
|
|
560
|
+
pageViews: number;
|
|
360
561
|
bounceRate: number | null;
|
|
361
562
|
avgSessionSec: number;
|
|
362
|
-
hits: number;
|
|
363
563
|
}>, "many">;
|
|
364
|
-
}
|
|
365
|
-
data: {
|
|
366
|
-
location: string;
|
|
367
|
-
visits: number;
|
|
368
|
-
bounceRate: number | null;
|
|
369
|
-
avgSessionSec: number;
|
|
370
|
-
hits: number;
|
|
371
|
-
}[];
|
|
564
|
+
}>, "strip", z.ZodTypeAny, {
|
|
372
565
|
meta: {
|
|
373
566
|
type: string;
|
|
374
567
|
name: string;
|
|
@@ -379,14 +572,15 @@ export declare const topLocationsResponseSchema: z.ZodObject<{
|
|
|
379
572
|
bytes_read: number;
|
|
380
573
|
};
|
|
381
574
|
rows: number;
|
|
382
|
-
}, {
|
|
383
575
|
data: {
|
|
384
576
|
location: string;
|
|
385
|
-
|
|
577
|
+
users: number;
|
|
578
|
+
sessions: number;
|
|
579
|
+
pageViews: number;
|
|
386
580
|
bounceRate: number | null;
|
|
387
581
|
avgSessionSec: number;
|
|
388
|
-
hits: number;
|
|
389
582
|
}[];
|
|
583
|
+
}, {
|
|
390
584
|
meta: {
|
|
391
585
|
type: string;
|
|
392
586
|
name: string;
|
|
@@ -397,9 +591,17 @@ export declare const topLocationsResponseSchema: z.ZodObject<{
|
|
|
397
591
|
bytes_read: number;
|
|
398
592
|
};
|
|
399
593
|
rows: number;
|
|
594
|
+
data: {
|
|
595
|
+
location: string;
|
|
596
|
+
users: number;
|
|
597
|
+
sessions: number;
|
|
598
|
+
pageViews: number;
|
|
599
|
+
bounceRate: number | null;
|
|
600
|
+
avgSessionSec: number;
|
|
601
|
+
}[];
|
|
400
602
|
}>;
|
|
401
603
|
export type TopLocationsResponse = z.infer<typeof topLocationsResponseSchema>;
|
|
402
|
-
export declare const topDevicesResponseSchema: z.ZodObject<{
|
|
604
|
+
export declare const topDevicesResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
403
605
|
meta: z.ZodArray<z.ZodObject<{
|
|
404
606
|
name: z.ZodString;
|
|
405
607
|
type: z.ZodString;
|
|
@@ -424,6 +626,7 @@ export declare const topDevicesResponseSchema: z.ZodObject<{
|
|
|
424
626
|
bytes_read: number;
|
|
425
627
|
}>;
|
|
426
628
|
rows: z.ZodNumber;
|
|
629
|
+
}, {
|
|
427
630
|
data: z.ZodArray<z.ZodObject<{
|
|
428
631
|
device: z.ZodString;
|
|
429
632
|
visits: z.ZodNumber;
|
|
@@ -431,26 +634,19 @@ export declare const topDevicesResponseSchema: z.ZodObject<{
|
|
|
431
634
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
432
635
|
avgSessionSec: z.ZodNumber;
|
|
433
636
|
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
visits: number;
|
|
435
|
-
bounceRate: number | null;
|
|
436
|
-
avgSessionSec: number;
|
|
437
|
-
hits: number;
|
|
438
637
|
device: string;
|
|
439
|
-
}, {
|
|
440
|
-
visits: number;
|
|
441
638
|
bounceRate: number | null;
|
|
442
639
|
avgSessionSec: number;
|
|
640
|
+
visits: number;
|
|
443
641
|
hits: number;
|
|
642
|
+
}, {
|
|
444
643
|
device: string;
|
|
445
|
-
}>, "many">;
|
|
446
|
-
}, "strip", z.ZodTypeAny, {
|
|
447
|
-
data: {
|
|
448
|
-
visits: number;
|
|
449
644
|
bounceRate: number | null;
|
|
450
645
|
avgSessionSec: number;
|
|
646
|
+
visits: number;
|
|
451
647
|
hits: number;
|
|
452
|
-
|
|
453
|
-
|
|
648
|
+
}>, "many">;
|
|
649
|
+
}>, "strip", z.ZodTypeAny, {
|
|
454
650
|
meta: {
|
|
455
651
|
type: string;
|
|
456
652
|
name: string;
|
|
@@ -461,14 +657,14 @@ export declare const topDevicesResponseSchema: z.ZodObject<{
|
|
|
461
657
|
bytes_read: number;
|
|
462
658
|
};
|
|
463
659
|
rows: number;
|
|
464
|
-
}, {
|
|
465
660
|
data: {
|
|
466
|
-
|
|
661
|
+
device: string;
|
|
467
662
|
bounceRate: number | null;
|
|
468
663
|
avgSessionSec: number;
|
|
664
|
+
visits: number;
|
|
469
665
|
hits: number;
|
|
470
|
-
device: string;
|
|
471
666
|
}[];
|
|
667
|
+
}, {
|
|
472
668
|
meta: {
|
|
473
669
|
type: string;
|
|
474
670
|
name: string;
|
|
@@ -479,9 +675,16 @@ export declare const topDevicesResponseSchema: z.ZodObject<{
|
|
|
479
675
|
bytes_read: number;
|
|
480
676
|
};
|
|
481
677
|
rows: number;
|
|
678
|
+
data: {
|
|
679
|
+
device: string;
|
|
680
|
+
bounceRate: number | null;
|
|
681
|
+
avgSessionSec: number;
|
|
682
|
+
visits: number;
|
|
683
|
+
hits: number;
|
|
684
|
+
}[];
|
|
482
685
|
}>;
|
|
483
686
|
export type TopDevicesResponse = z.infer<typeof topDevicesResponseSchema>;
|
|
484
|
-
export declare const topBrowsersResponseSchema: z.ZodObject<{
|
|
687
|
+
export declare const topBrowsersResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
485
688
|
meta: z.ZodArray<z.ZodObject<{
|
|
486
689
|
name: z.ZodString;
|
|
487
690
|
type: z.ZodString;
|
|
@@ -506,6 +709,7 @@ export declare const topBrowsersResponseSchema: z.ZodObject<{
|
|
|
506
709
|
bytes_read: number;
|
|
507
710
|
}>;
|
|
508
711
|
rows: z.ZodNumber;
|
|
712
|
+
}, {
|
|
509
713
|
data: z.ZodArray<z.ZodObject<{
|
|
510
714
|
browser: z.ZodString;
|
|
511
715
|
visits: z.ZodNumber;
|
|
@@ -513,26 +717,19 @@ export declare const topBrowsersResponseSchema: z.ZodObject<{
|
|
|
513
717
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
514
718
|
avgSessionSec: z.ZodNumber;
|
|
515
719
|
}, "strip", z.ZodTypeAny, {
|
|
516
|
-
visits: number;
|
|
517
|
-
bounceRate: number | null;
|
|
518
|
-
avgSessionSec: number;
|
|
519
|
-
hits: number;
|
|
520
720
|
browser: string;
|
|
521
|
-
}, {
|
|
522
|
-
visits: number;
|
|
523
721
|
bounceRate: number | null;
|
|
524
722
|
avgSessionSec: number;
|
|
723
|
+
visits: number;
|
|
525
724
|
hits: number;
|
|
725
|
+
}, {
|
|
526
726
|
browser: string;
|
|
527
|
-
}>, "many">;
|
|
528
|
-
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
data: {
|
|
530
|
-
visits: number;
|
|
531
727
|
bounceRate: number | null;
|
|
532
728
|
avgSessionSec: number;
|
|
729
|
+
visits: number;
|
|
533
730
|
hits: number;
|
|
534
|
-
|
|
535
|
-
|
|
731
|
+
}>, "many">;
|
|
732
|
+
}>, "strip", z.ZodTypeAny, {
|
|
536
733
|
meta: {
|
|
537
734
|
type: string;
|
|
538
735
|
name: string;
|
|
@@ -543,14 +740,14 @@ export declare const topBrowsersResponseSchema: z.ZodObject<{
|
|
|
543
740
|
bytes_read: number;
|
|
544
741
|
};
|
|
545
742
|
rows: number;
|
|
546
|
-
}, {
|
|
547
743
|
data: {
|
|
548
|
-
|
|
744
|
+
browser: string;
|
|
549
745
|
bounceRate: number | null;
|
|
550
746
|
avgSessionSec: number;
|
|
747
|
+
visits: number;
|
|
551
748
|
hits: number;
|
|
552
|
-
browser: string;
|
|
553
749
|
}[];
|
|
750
|
+
}, {
|
|
554
751
|
meta: {
|
|
555
752
|
type: string;
|
|
556
753
|
name: string;
|
|
@@ -561,29 +758,39 @@ export declare const topBrowsersResponseSchema: z.ZodObject<{
|
|
|
561
758
|
bytes_read: number;
|
|
562
759
|
};
|
|
563
760
|
rows: number;
|
|
761
|
+
data: {
|
|
762
|
+
browser: string;
|
|
763
|
+
bounceRate: number | null;
|
|
764
|
+
avgSessionSec: number;
|
|
765
|
+
visits: number;
|
|
766
|
+
hits: number;
|
|
767
|
+
}[];
|
|
564
768
|
}>;
|
|
565
769
|
export type TopBrowsersResponse = z.infer<typeof topBrowsersResponseSchema>;
|
|
566
770
|
export declare const topSourcesSchema: z.ZodObject<{
|
|
567
771
|
referrer: z.ZodString;
|
|
568
|
-
|
|
569
|
-
|
|
772
|
+
users: z.ZodNumber;
|
|
773
|
+
sessions: z.ZodNumber;
|
|
774
|
+
pageViews: z.ZodNumber;
|
|
570
775
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
571
776
|
avgSessionSec: z.ZodNumber;
|
|
572
777
|
}, "strip", z.ZodTypeAny, {
|
|
573
|
-
|
|
778
|
+
referrer: string;
|
|
779
|
+
users: number;
|
|
780
|
+
sessions: number;
|
|
781
|
+
pageViews: number;
|
|
574
782
|
bounceRate: number | null;
|
|
575
783
|
avgSessionSec: number;
|
|
576
|
-
hits: number;
|
|
577
|
-
referrer: string;
|
|
578
784
|
}, {
|
|
579
|
-
|
|
785
|
+
referrer: string;
|
|
786
|
+
users: number;
|
|
787
|
+
sessions: number;
|
|
788
|
+
pageViews: number;
|
|
580
789
|
bounceRate: number | null;
|
|
581
790
|
avgSessionSec: number;
|
|
582
|
-
hits: number;
|
|
583
|
-
referrer: string;
|
|
584
791
|
}>;
|
|
585
792
|
export type TopSources = z.infer<typeof topSourcesSchema>;
|
|
586
|
-
export declare const topSourcesResponseSchema: z.ZodObject<{
|
|
793
|
+
export declare const topSourcesResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
587
794
|
meta: z.ZodArray<z.ZodObject<{
|
|
588
795
|
name: z.ZodString;
|
|
589
796
|
type: z.ZodString;
|
|
@@ -608,33 +815,30 @@ export declare const topSourcesResponseSchema: z.ZodObject<{
|
|
|
608
815
|
bytes_read: number;
|
|
609
816
|
}>;
|
|
610
817
|
rows: z.ZodNumber;
|
|
818
|
+
}, {
|
|
611
819
|
data: z.ZodArray<z.ZodObject<{
|
|
612
820
|
referrer: z.ZodString;
|
|
613
|
-
|
|
614
|
-
|
|
821
|
+
users: z.ZodNumber;
|
|
822
|
+
sessions: z.ZodNumber;
|
|
823
|
+
pageViews: z.ZodNumber;
|
|
615
824
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
616
825
|
avgSessionSec: z.ZodNumber;
|
|
617
826
|
}, "strip", z.ZodTypeAny, {
|
|
618
|
-
visits: number;
|
|
619
|
-
bounceRate: number | null;
|
|
620
|
-
avgSessionSec: number;
|
|
621
|
-
hits: number;
|
|
622
827
|
referrer: string;
|
|
623
|
-
|
|
624
|
-
|
|
828
|
+
users: number;
|
|
829
|
+
sessions: number;
|
|
830
|
+
pageViews: number;
|
|
625
831
|
bounceRate: number | null;
|
|
626
832
|
avgSessionSec: number;
|
|
627
|
-
|
|
833
|
+
}, {
|
|
628
834
|
referrer: string;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
visits: number;
|
|
835
|
+
users: number;
|
|
836
|
+
sessions: number;
|
|
837
|
+
pageViews: number;
|
|
633
838
|
bounceRate: number | null;
|
|
634
839
|
avgSessionSec: number;
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
}[];
|
|
840
|
+
}>, "many">;
|
|
841
|
+
}>, "strip", z.ZodTypeAny, {
|
|
638
842
|
meta: {
|
|
639
843
|
type: string;
|
|
640
844
|
name: string;
|
|
@@ -645,14 +849,15 @@ export declare const topSourcesResponseSchema: z.ZodObject<{
|
|
|
645
849
|
bytes_read: number;
|
|
646
850
|
};
|
|
647
851
|
rows: number;
|
|
648
|
-
}, {
|
|
649
852
|
data: {
|
|
650
|
-
|
|
853
|
+
referrer: string;
|
|
854
|
+
users: number;
|
|
855
|
+
sessions: number;
|
|
856
|
+
pageViews: number;
|
|
651
857
|
bounceRate: number | null;
|
|
652
858
|
avgSessionSec: number;
|
|
653
|
-
hits: number;
|
|
654
|
-
referrer: string;
|
|
655
859
|
}[];
|
|
860
|
+
}, {
|
|
656
861
|
meta: {
|
|
657
862
|
type: string;
|
|
658
863
|
name: string;
|
|
@@ -663,9 +868,17 @@ export declare const topSourcesResponseSchema: z.ZodObject<{
|
|
|
663
868
|
bytes_read: number;
|
|
664
869
|
};
|
|
665
870
|
rows: number;
|
|
871
|
+
data: {
|
|
872
|
+
referrer: string;
|
|
873
|
+
users: number;
|
|
874
|
+
sessions: number;
|
|
875
|
+
pageViews: number;
|
|
876
|
+
bounceRate: number | null;
|
|
877
|
+
avgSessionSec: number;
|
|
878
|
+
}[];
|
|
666
879
|
}>;
|
|
667
880
|
export type TopSourcesResponse = z.infer<typeof topSourcesResponseSchema>;
|
|
668
|
-
export declare const topActionsResponseSchema: z.ZodObject<{
|
|
881
|
+
export declare const topActionsResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
669
882
|
meta: z.ZodArray<z.ZodObject<{
|
|
670
883
|
name: z.ZodString;
|
|
671
884
|
type: z.ZodString;
|
|
@@ -690,25 +903,21 @@ export declare const topActionsResponseSchema: z.ZodObject<{
|
|
|
690
903
|
bytes_read: number;
|
|
691
904
|
}>;
|
|
692
905
|
rows: z.ZodNumber;
|
|
906
|
+
}, {
|
|
693
907
|
data: z.ZodArray<z.ZodObject<{
|
|
694
908
|
action: z.ZodString;
|
|
695
|
-
|
|
696
|
-
|
|
909
|
+
users: z.ZodNumber;
|
|
910
|
+
events: z.ZodNumber;
|
|
697
911
|
}, "strip", z.ZodTypeAny, {
|
|
698
|
-
unique: number;
|
|
699
|
-
total: number;
|
|
700
912
|
action: string;
|
|
913
|
+
users: number;
|
|
914
|
+
events: number;
|
|
701
915
|
}, {
|
|
702
|
-
unique: number;
|
|
703
|
-
total: number;
|
|
704
916
|
action: string;
|
|
917
|
+
users: number;
|
|
918
|
+
events: number;
|
|
705
919
|
}>, "many">;
|
|
706
|
-
}
|
|
707
|
-
data: {
|
|
708
|
-
unique: number;
|
|
709
|
-
total: number;
|
|
710
|
-
action: string;
|
|
711
|
-
}[];
|
|
920
|
+
}>, "strip", z.ZodTypeAny, {
|
|
712
921
|
meta: {
|
|
713
922
|
type: string;
|
|
714
923
|
name: string;
|
|
@@ -719,12 +928,12 @@ export declare const topActionsResponseSchema: z.ZodObject<{
|
|
|
719
928
|
bytes_read: number;
|
|
720
929
|
};
|
|
721
930
|
rows: number;
|
|
722
|
-
}, {
|
|
723
931
|
data: {
|
|
724
|
-
unique: number;
|
|
725
|
-
total: number;
|
|
726
932
|
action: string;
|
|
933
|
+
users: number;
|
|
934
|
+
events: number;
|
|
727
935
|
}[];
|
|
936
|
+
}, {
|
|
728
937
|
meta: {
|
|
729
938
|
type: string;
|
|
730
939
|
name: string;
|
|
@@ -735,6 +944,11 @@ export declare const topActionsResponseSchema: z.ZodObject<{
|
|
|
735
944
|
bytes_read: number;
|
|
736
945
|
};
|
|
737
946
|
rows: number;
|
|
947
|
+
data: {
|
|
948
|
+
action: string;
|
|
949
|
+
users: number;
|
|
950
|
+
events: number;
|
|
951
|
+
}[];
|
|
738
952
|
}>;
|
|
739
953
|
export type TopActionsResponse = z.infer<typeof topActionsResponseSchema>;
|
|
740
954
|
export declare const analyticsEventSchema: z.ZodObject<{
|
|
@@ -743,30 +957,33 @@ export declare const analyticsEventSchema: z.ZodObject<{
|
|
|
743
957
|
projectId: z.ZodString;
|
|
744
958
|
anonymousId: z.ZodString;
|
|
745
959
|
sessionId: z.ZodString;
|
|
960
|
+
distinctId: z.ZodOptional<z.ZodString>;
|
|
746
961
|
version: z.ZodString;
|
|
747
962
|
action: z.ZodString;
|
|
748
963
|
payload: z.ZodString;
|
|
749
964
|
}, "strip", z.ZodTypeAny, {
|
|
750
|
-
projectId: string;
|
|
751
|
-
action: string;
|
|
752
965
|
id: string;
|
|
966
|
+
projectId: string;
|
|
967
|
+
payload: string;
|
|
753
968
|
timestamp: string;
|
|
969
|
+
action: string;
|
|
754
970
|
anonymousId: string;
|
|
755
971
|
sessionId: string;
|
|
756
972
|
version: string;
|
|
757
|
-
|
|
973
|
+
distinctId?: string | undefined;
|
|
758
974
|
}, {
|
|
759
|
-
projectId: string;
|
|
760
|
-
action: string;
|
|
761
975
|
id: string;
|
|
976
|
+
projectId: string;
|
|
977
|
+
payload: string;
|
|
762
978
|
timestamp: string;
|
|
979
|
+
action: string;
|
|
763
980
|
anonymousId: string;
|
|
764
981
|
sessionId: string;
|
|
765
982
|
version: string;
|
|
766
|
-
|
|
983
|
+
distinctId?: string | undefined;
|
|
767
984
|
}>;
|
|
768
985
|
export type AnalyticsEvent = z.infer<typeof analyticsEventSchema>;
|
|
769
|
-
export declare const userEventsResponseSchema: z.ZodObject<{
|
|
986
|
+
export declare const userEventsResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
770
987
|
meta: z.ZodArray<z.ZodObject<{
|
|
771
988
|
name: z.ZodString;
|
|
772
989
|
type: z.ZodString;
|
|
@@ -791,45 +1008,39 @@ export declare const userEventsResponseSchema: z.ZodObject<{
|
|
|
791
1008
|
bytes_read: number;
|
|
792
1009
|
}>;
|
|
793
1010
|
rows: z.ZodNumber;
|
|
1011
|
+
}, {
|
|
794
1012
|
data: z.ZodArray<z.ZodObject<{
|
|
795
1013
|
id: z.ZodString;
|
|
796
1014
|
timestamp: z.ZodString;
|
|
797
1015
|
projectId: z.ZodString;
|
|
798
1016
|
anonymousId: z.ZodString;
|
|
799
1017
|
sessionId: z.ZodString;
|
|
1018
|
+
distinctId: z.ZodOptional<z.ZodString>;
|
|
800
1019
|
version: z.ZodString;
|
|
801
1020
|
action: z.ZodString;
|
|
802
1021
|
payload: z.ZodString;
|
|
803
1022
|
}, "strip", z.ZodTypeAny, {
|
|
804
|
-
projectId: string;
|
|
805
|
-
action: string;
|
|
806
1023
|
id: string;
|
|
1024
|
+
projectId: string;
|
|
1025
|
+
payload: string;
|
|
807
1026
|
timestamp: string;
|
|
1027
|
+
action: string;
|
|
808
1028
|
anonymousId: string;
|
|
809
1029
|
sessionId: string;
|
|
810
1030
|
version: string;
|
|
811
|
-
|
|
1031
|
+
distinctId?: string | undefined;
|
|
812
1032
|
}, {
|
|
813
|
-
projectId: string;
|
|
814
|
-
action: string;
|
|
815
1033
|
id: string;
|
|
816
|
-
timestamp: string;
|
|
817
|
-
anonymousId: string;
|
|
818
|
-
sessionId: string;
|
|
819
|
-
version: string;
|
|
820
|
-
payload: string;
|
|
821
|
-
}>, "many">;
|
|
822
|
-
}, "strip", z.ZodTypeAny, {
|
|
823
|
-
data: {
|
|
824
1034
|
projectId: string;
|
|
825
|
-
|
|
826
|
-
id: string;
|
|
1035
|
+
payload: string;
|
|
827
1036
|
timestamp: string;
|
|
1037
|
+
action: string;
|
|
828
1038
|
anonymousId: string;
|
|
829
1039
|
sessionId: string;
|
|
830
1040
|
version: string;
|
|
831
|
-
|
|
832
|
-
}
|
|
1041
|
+
distinctId?: string | undefined;
|
|
1042
|
+
}>, "many">;
|
|
1043
|
+
}>, "strip", z.ZodTypeAny, {
|
|
833
1044
|
meta: {
|
|
834
1045
|
type: string;
|
|
835
1046
|
name: string;
|
|
@@ -840,17 +1051,18 @@ export declare const userEventsResponseSchema: z.ZodObject<{
|
|
|
840
1051
|
bytes_read: number;
|
|
841
1052
|
};
|
|
842
1053
|
rows: number;
|
|
843
|
-
}, {
|
|
844
1054
|
data: {
|
|
845
|
-
projectId: string;
|
|
846
|
-
action: string;
|
|
847
1055
|
id: string;
|
|
1056
|
+
projectId: string;
|
|
1057
|
+
payload: string;
|
|
848
1058
|
timestamp: string;
|
|
1059
|
+
action: string;
|
|
849
1060
|
anonymousId: string;
|
|
850
1061
|
sessionId: string;
|
|
851
1062
|
version: string;
|
|
852
|
-
|
|
1063
|
+
distinctId?: string | undefined;
|
|
853
1064
|
}[];
|
|
1065
|
+
}, {
|
|
854
1066
|
meta: {
|
|
855
1067
|
type: string;
|
|
856
1068
|
name: string;
|
|
@@ -861,26 +1073,37 @@ export declare const userEventsResponseSchema: z.ZodObject<{
|
|
|
861
1073
|
bytes_read: number;
|
|
862
1074
|
};
|
|
863
1075
|
rows: number;
|
|
1076
|
+
data: {
|
|
1077
|
+
id: string;
|
|
1078
|
+
projectId: string;
|
|
1079
|
+
payload: string;
|
|
1080
|
+
timestamp: string;
|
|
1081
|
+
action: string;
|
|
1082
|
+
anonymousId: string;
|
|
1083
|
+
sessionId: string;
|
|
1084
|
+
version: string;
|
|
1085
|
+
distinctId?: string | undefined;
|
|
1086
|
+
}[];
|
|
864
1087
|
}>;
|
|
865
1088
|
export type UserEventsResponse = z.infer<typeof userEventsResponseSchema>;
|
|
866
1089
|
export declare const currentUsersRequestSchema: z.ZodObject<{
|
|
867
1090
|
projectId: z.ZodString;
|
|
868
1091
|
minutes: z.ZodOptional<z.ZodNumber>;
|
|
869
|
-
|
|
1092
|
+
referrer: z.ZodOptional<z.ZodString>;
|
|
870
1093
|
location: z.ZodOptional<z.ZodString>;
|
|
871
1094
|
}, "strip", z.ZodTypeAny, {
|
|
872
1095
|
projectId: string;
|
|
873
|
-
minutes?: number | undefined;
|
|
874
|
-
referringDomain?: string | undefined;
|
|
875
1096
|
location?: string | undefined;
|
|
1097
|
+
referrer?: string | undefined;
|
|
1098
|
+
minutes?: number | undefined;
|
|
876
1099
|
}, {
|
|
877
1100
|
projectId: string;
|
|
878
|
-
minutes?: number | undefined;
|
|
879
|
-
referringDomain?: string | undefined;
|
|
880
1101
|
location?: string | undefined;
|
|
1102
|
+
referrer?: string | undefined;
|
|
1103
|
+
minutes?: number | undefined;
|
|
881
1104
|
}>;
|
|
882
1105
|
export type CurrentUsersRequest = z.infer<typeof currentUsersRequestSchema>;
|
|
883
|
-
export declare const currentUsersResponseSchema: z.ZodObject<{
|
|
1106
|
+
export declare const currentUsersResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
884
1107
|
meta: z.ZodArray<z.ZodObject<{
|
|
885
1108
|
name: z.ZodString;
|
|
886
1109
|
type: z.ZodString;
|
|
@@ -905,6 +1128,7 @@ export declare const currentUsersResponseSchema: z.ZodObject<{
|
|
|
905
1128
|
bytes_read: number;
|
|
906
1129
|
}>;
|
|
907
1130
|
rows: z.ZodNumber;
|
|
1131
|
+
}, {
|
|
908
1132
|
data: z.ZodArray<z.ZodObject<{
|
|
909
1133
|
visits: z.ZodNumber;
|
|
910
1134
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -912,10 +1136,7 @@ export declare const currentUsersResponseSchema: z.ZodObject<{
|
|
|
912
1136
|
}, {
|
|
913
1137
|
visits: number;
|
|
914
1138
|
}>, "many">;
|
|
915
|
-
}
|
|
916
|
-
data: {
|
|
917
|
-
visits: number;
|
|
918
|
-
}[];
|
|
1139
|
+
}>, "strip", z.ZodTypeAny, {
|
|
919
1140
|
meta: {
|
|
920
1141
|
type: string;
|
|
921
1142
|
name: string;
|
|
@@ -926,10 +1147,10 @@ export declare const currentUsersResponseSchema: z.ZodObject<{
|
|
|
926
1147
|
bytes_read: number;
|
|
927
1148
|
};
|
|
928
1149
|
rows: number;
|
|
929
|
-
}, {
|
|
930
1150
|
data: {
|
|
931
1151
|
visits: number;
|
|
932
1152
|
}[];
|
|
1153
|
+
}, {
|
|
933
1154
|
meta: {
|
|
934
1155
|
type: string;
|
|
935
1156
|
name: string;
|
|
@@ -940,10 +1161,13 @@ export declare const currentUsersResponseSchema: z.ZodObject<{
|
|
|
940
1161
|
bytes_read: number;
|
|
941
1162
|
};
|
|
942
1163
|
rows: number;
|
|
1164
|
+
data: {
|
|
1165
|
+
visits: number;
|
|
1166
|
+
}[];
|
|
943
1167
|
}>;
|
|
944
1168
|
export type CurrentUsersResponse = z.infer<typeof currentUsersResponseSchema>;
|
|
945
1169
|
export declare const reservedPropertiesSchema: z.ZodObject<{
|
|
946
|
-
age: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1170
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
947
1171
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
948
1172
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
949
1173
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -958,8 +1182,12 @@ export declare const reservedPropertiesSchema: z.ZodObject<{
|
|
|
958
1182
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
959
1183
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
960
1184
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1185
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1186
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
961
1187
|
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
|
|
1188
|
+
name?: string | null | undefined;
|
|
1189
|
+
id?: string | null | undefined;
|
|
1190
|
+
age?: string | number | null | undefined;
|
|
963
1191
|
avatar?: string | null | undefined;
|
|
964
1192
|
birthday?: string | null | undefined;
|
|
965
1193
|
createdAt?: string | null | undefined;
|
|
@@ -967,15 +1195,17 @@ export declare const reservedPropertiesSchema: z.ZodObject<{
|
|
|
967
1195
|
email?: string | null | undefined;
|
|
968
1196
|
firstName?: string | null | undefined;
|
|
969
1197
|
gender?: string | null | undefined;
|
|
970
|
-
id?: string | null | undefined;
|
|
971
1198
|
lastName?: string | null | undefined;
|
|
972
|
-
name?: string | null | undefined;
|
|
973
1199
|
phone?: string | null | undefined;
|
|
974
1200
|
title?: string | null | undefined;
|
|
975
1201
|
username?: string | null | undefined;
|
|
976
1202
|
website?: string | null | undefined;
|
|
1203
|
+
$id?: string | null | undefined;
|
|
1204
|
+
$lastSeen?: string | null | undefined;
|
|
977
1205
|
}, {
|
|
978
|
-
|
|
1206
|
+
name?: string | null | undefined;
|
|
1207
|
+
id?: string | null | undefined;
|
|
1208
|
+
age?: string | number | null | undefined;
|
|
979
1209
|
avatar?: string | null | undefined;
|
|
980
1210
|
birthday?: string | null | undefined;
|
|
981
1211
|
createdAt?: string | null | undefined;
|
|
@@ -983,17 +1213,17 @@ export declare const reservedPropertiesSchema: z.ZodObject<{
|
|
|
983
1213
|
email?: string | null | undefined;
|
|
984
1214
|
firstName?: string | null | undefined;
|
|
985
1215
|
gender?: string | null | undefined;
|
|
986
|
-
id?: string | null | undefined;
|
|
987
1216
|
lastName?: string | null | undefined;
|
|
988
|
-
name?: string | null | undefined;
|
|
989
1217
|
phone?: string | null | undefined;
|
|
990
1218
|
title?: string | null | undefined;
|
|
991
1219
|
username?: string | null | undefined;
|
|
992
1220
|
website?: string | null | undefined;
|
|
1221
|
+
$id?: string | null | undefined;
|
|
1222
|
+
$lastSeen?: string | null | undefined;
|
|
993
1223
|
}>;
|
|
994
1224
|
export type ReservedProperties = z.infer<typeof reservedPropertiesSchema>;
|
|
995
|
-
export declare const
|
|
996
|
-
age: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1225
|
+
export declare const contactPropertiesSchema: z.ZodIntersection<z.ZodOptional<z.ZodObject<{
|
|
1226
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
997
1227
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
998
1228
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
999
1229
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1008,8 +1238,12 @@ export declare const userPropertiesSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
1008
1238
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1009
1239
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1010
1240
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1241
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1242
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1011
1243
|
}, "strip", z.ZodTypeAny, {
|
|
1012
|
-
|
|
1244
|
+
name?: string | null | undefined;
|
|
1245
|
+
id?: string | null | undefined;
|
|
1246
|
+
age?: string | number | null | undefined;
|
|
1013
1247
|
avatar?: string | null | undefined;
|
|
1014
1248
|
birthday?: string | null | undefined;
|
|
1015
1249
|
createdAt?: string | null | undefined;
|
|
@@ -1017,15 +1251,17 @@ export declare const userPropertiesSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
1017
1251
|
email?: string | null | undefined;
|
|
1018
1252
|
firstName?: string | null | undefined;
|
|
1019
1253
|
gender?: string | null | undefined;
|
|
1020
|
-
id?: string | null | undefined;
|
|
1021
1254
|
lastName?: string | null | undefined;
|
|
1022
|
-
name?: string | null | undefined;
|
|
1023
1255
|
phone?: string | null | undefined;
|
|
1024
1256
|
title?: string | null | undefined;
|
|
1025
1257
|
username?: string | null | undefined;
|
|
1026
1258
|
website?: string | null | undefined;
|
|
1259
|
+
$id?: string | null | undefined;
|
|
1260
|
+
$lastSeen?: string | null | undefined;
|
|
1027
1261
|
}, {
|
|
1028
|
-
|
|
1262
|
+
name?: string | null | undefined;
|
|
1263
|
+
id?: string | null | undefined;
|
|
1264
|
+
age?: string | number | null | undefined;
|
|
1029
1265
|
avatar?: string | null | undefined;
|
|
1030
1266
|
birthday?: string | null | undefined;
|
|
1031
1267
|
createdAt?: string | null | undefined;
|
|
@@ -1033,15 +1269,15 @@ export declare const userPropertiesSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
1033
1269
|
email?: string | null | undefined;
|
|
1034
1270
|
firstName?: string | null | undefined;
|
|
1035
1271
|
gender?: string | null | undefined;
|
|
1036
|
-
id?: string | null | undefined;
|
|
1037
1272
|
lastName?: string | null | undefined;
|
|
1038
|
-
name?: string | null | undefined;
|
|
1039
1273
|
phone?: string | null | undefined;
|
|
1040
1274
|
title?: string | null | undefined;
|
|
1041
1275
|
username?: string | null | undefined;
|
|
1042
1276
|
website?: string | null | undefined;
|
|
1043
|
-
|
|
1044
|
-
|
|
1277
|
+
$id?: string | null | undefined;
|
|
1278
|
+
$lastSeen?: string | null | undefined;
|
|
1279
|
+
}>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>, "many">]>>>;
|
|
1280
|
+
export type ContactProperties = z.infer<typeof contactPropertiesSchema>;
|
|
1045
1281
|
export declare const analyticsUserRawSchema: z.ZodObject<{
|
|
1046
1282
|
timestamp: z.ZodString;
|
|
1047
1283
|
distinctId: z.ZodString;
|
|
@@ -1049,13 +1285,13 @@ export declare const analyticsUserRawSchema: z.ZodObject<{
|
|
|
1049
1285
|
payload: z.ZodString;
|
|
1050
1286
|
}, "strip", z.ZodTypeAny, {
|
|
1051
1287
|
projectId: string;
|
|
1052
|
-
timestamp: string;
|
|
1053
1288
|
payload: string;
|
|
1289
|
+
timestamp: string;
|
|
1054
1290
|
distinctId: string;
|
|
1055
1291
|
}, {
|
|
1056
1292
|
projectId: string;
|
|
1057
|
-
timestamp: string;
|
|
1058
1293
|
payload: string;
|
|
1294
|
+
timestamp: string;
|
|
1059
1295
|
distinctId: string;
|
|
1060
1296
|
}>;
|
|
1061
1297
|
export type AnalyticsUserRaw = z.infer<typeof analyticsUserRawSchema>;
|
|
@@ -1073,8 +1309,8 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1073
1309
|
timestamp: string;
|
|
1074
1310
|
distinctId: string;
|
|
1075
1311
|
}>, z.ZodObject<{
|
|
1076
|
-
properties: z.ZodIntersection<z.ZodObject<{
|
|
1077
|
-
age: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1312
|
+
properties: z.ZodIntersection<z.ZodOptional<z.ZodObject<{
|
|
1313
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1078
1314
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1079
1315
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1080
1316
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1089,8 +1325,12 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1089
1325
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1090
1326
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1091
1327
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1328
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1329
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1092
1330
|
}, "strip", z.ZodTypeAny, {
|
|
1093
|
-
|
|
1331
|
+
name?: string | null | undefined;
|
|
1332
|
+
id?: string | null | undefined;
|
|
1333
|
+
age?: string | number | null | undefined;
|
|
1094
1334
|
avatar?: string | null | undefined;
|
|
1095
1335
|
birthday?: string | null | undefined;
|
|
1096
1336
|
createdAt?: string | null | undefined;
|
|
@@ -1098,15 +1338,17 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1098
1338
|
email?: string | null | undefined;
|
|
1099
1339
|
firstName?: string | null | undefined;
|
|
1100
1340
|
gender?: string | null | undefined;
|
|
1101
|
-
id?: string | null | undefined;
|
|
1102
1341
|
lastName?: string | null | undefined;
|
|
1103
|
-
name?: string | null | undefined;
|
|
1104
1342
|
phone?: string | null | undefined;
|
|
1105
1343
|
title?: string | null | undefined;
|
|
1106
1344
|
username?: string | null | undefined;
|
|
1107
1345
|
website?: string | null | undefined;
|
|
1346
|
+
$id?: string | null | undefined;
|
|
1347
|
+
$lastSeen?: string | null | undefined;
|
|
1108
1348
|
}, {
|
|
1109
|
-
|
|
1349
|
+
name?: string | null | undefined;
|
|
1350
|
+
id?: string | null | undefined;
|
|
1351
|
+
age?: string | number | null | undefined;
|
|
1110
1352
|
avatar?: string | null | undefined;
|
|
1111
1353
|
birthday?: string | null | undefined;
|
|
1112
1354
|
createdAt?: string | null | undefined;
|
|
@@ -1114,17 +1356,19 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1114
1356
|
email?: string | null | undefined;
|
|
1115
1357
|
firstName?: string | null | undefined;
|
|
1116
1358
|
gender?: string | null | undefined;
|
|
1117
|
-
id?: string | null | undefined;
|
|
1118
1359
|
lastName?: string | null | undefined;
|
|
1119
|
-
name?: string | null | undefined;
|
|
1120
1360
|
phone?: string | null | undefined;
|
|
1121
1361
|
title?: string | null | undefined;
|
|
1122
1362
|
username?: string | null | undefined;
|
|
1123
1363
|
website?: string | null | undefined;
|
|
1124
|
-
|
|
1364
|
+
$id?: string | null | undefined;
|
|
1365
|
+
$lastSeen?: string | null | undefined;
|
|
1366
|
+
}>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>, "many">]>>>;
|
|
1125
1367
|
}, "strip", z.ZodTypeAny, {
|
|
1126
1368
|
properties: {
|
|
1127
|
-
|
|
1369
|
+
name?: string | null | undefined;
|
|
1370
|
+
id?: string | null | undefined;
|
|
1371
|
+
age?: string | number | null | undefined;
|
|
1128
1372
|
avatar?: string | null | undefined;
|
|
1129
1373
|
birthday?: string | null | undefined;
|
|
1130
1374
|
createdAt?: string | null | undefined;
|
|
@@ -1132,17 +1376,19 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1132
1376
|
email?: string | null | undefined;
|
|
1133
1377
|
firstName?: string | null | undefined;
|
|
1134
1378
|
gender?: string | null | undefined;
|
|
1135
|
-
id?: string | null | undefined;
|
|
1136
1379
|
lastName?: string | null | undefined;
|
|
1137
|
-
name?: string | null | undefined;
|
|
1138
1380
|
phone?: string | null | undefined;
|
|
1139
1381
|
title?: string | null | undefined;
|
|
1140
1382
|
username?: string | null | undefined;
|
|
1141
1383
|
website?: string | null | undefined;
|
|
1384
|
+
$id?: string | null | undefined;
|
|
1385
|
+
$lastSeen?: string | null | undefined;
|
|
1142
1386
|
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1143
1387
|
}, {
|
|
1144
1388
|
properties: {
|
|
1145
|
-
|
|
1389
|
+
name?: string | null | undefined;
|
|
1390
|
+
id?: string | null | undefined;
|
|
1391
|
+
age?: string | number | null | undefined;
|
|
1146
1392
|
avatar?: string | null | undefined;
|
|
1147
1393
|
birthday?: string | null | undefined;
|
|
1148
1394
|
createdAt?: string | null | undefined;
|
|
@@ -1150,13 +1396,13 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1150
1396
|
email?: string | null | undefined;
|
|
1151
1397
|
firstName?: string | null | undefined;
|
|
1152
1398
|
gender?: string | null | undefined;
|
|
1153
|
-
id?: string | null | undefined;
|
|
1154
1399
|
lastName?: string | null | undefined;
|
|
1155
|
-
name?: string | null | undefined;
|
|
1156
1400
|
phone?: string | null | undefined;
|
|
1157
1401
|
title?: string | null | undefined;
|
|
1158
1402
|
username?: string | null | undefined;
|
|
1159
1403
|
website?: string | null | undefined;
|
|
1404
|
+
$id?: string | null | undefined;
|
|
1405
|
+
$lastSeen?: string | null | undefined;
|
|
1160
1406
|
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1161
1407
|
}>>;
|
|
1162
1408
|
export type AnalyticsUser = z.infer<typeof analyticsUserSchema>;
|
|
@@ -1189,8 +1435,8 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1189
1435
|
distinctId: z.ZodString;
|
|
1190
1436
|
anonymousId: z.ZodString;
|
|
1191
1437
|
version: z.ZodString;
|
|
1192
|
-
payload: z.ZodIntersection<z.ZodObject<{
|
|
1193
|
-
age: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1438
|
+
payload: z.ZodIntersection<z.ZodOptional<z.ZodObject<{
|
|
1439
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1194
1440
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1195
1441
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1196
1442
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1205,8 +1451,12 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1205
1451
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1206
1452
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1207
1453
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1454
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1455
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1208
1456
|
}, "strip", z.ZodTypeAny, {
|
|
1209
|
-
|
|
1457
|
+
name?: string | null | undefined;
|
|
1458
|
+
id?: string | null | undefined;
|
|
1459
|
+
age?: string | number | null | undefined;
|
|
1210
1460
|
avatar?: string | null | undefined;
|
|
1211
1461
|
birthday?: string | null | undefined;
|
|
1212
1462
|
createdAt?: string | null | undefined;
|
|
@@ -1214,15 +1464,17 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1214
1464
|
email?: string | null | undefined;
|
|
1215
1465
|
firstName?: string | null | undefined;
|
|
1216
1466
|
gender?: string | null | undefined;
|
|
1217
|
-
id?: string | null | undefined;
|
|
1218
1467
|
lastName?: string | null | undefined;
|
|
1219
|
-
name?: string | null | undefined;
|
|
1220
1468
|
phone?: string | null | undefined;
|
|
1221
1469
|
title?: string | null | undefined;
|
|
1222
1470
|
username?: string | null | undefined;
|
|
1223
1471
|
website?: string | null | undefined;
|
|
1472
|
+
$id?: string | null | undefined;
|
|
1473
|
+
$lastSeen?: string | null | undefined;
|
|
1224
1474
|
}, {
|
|
1225
|
-
|
|
1475
|
+
name?: string | null | undefined;
|
|
1476
|
+
id?: string | null | undefined;
|
|
1477
|
+
age?: string | number | null | undefined;
|
|
1226
1478
|
avatar?: string | null | undefined;
|
|
1227
1479
|
birthday?: string | null | undefined;
|
|
1228
1480
|
createdAt?: string | null | undefined;
|
|
@@ -1230,15 +1482,15 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1230
1482
|
email?: string | null | undefined;
|
|
1231
1483
|
firstName?: string | null | undefined;
|
|
1232
1484
|
gender?: string | null | undefined;
|
|
1233
|
-
id?: string | null | undefined;
|
|
1234
1485
|
lastName?: string | null | undefined;
|
|
1235
|
-
name?: string | null | undefined;
|
|
1236
1486
|
phone?: string | null | undefined;
|
|
1237
1487
|
title?: string | null | undefined;
|
|
1238
1488
|
username?: string | null | undefined;
|
|
1239
1489
|
website?: string | null | undefined;
|
|
1240
|
-
|
|
1241
|
-
|
|
1490
|
+
$id?: string | null | undefined;
|
|
1491
|
+
$lastSeen?: string | null | undefined;
|
|
1492
|
+
}>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>, "many">]>>>;
|
|
1493
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
1242
1494
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1243
1495
|
}, "strip", z.ZodTypeAny, {
|
|
1244
1496
|
active?: boolean | undefined;
|
|
@@ -1246,13 +1498,12 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1246
1498
|
active?: boolean | undefined;
|
|
1247
1499
|
}>>;
|
|
1248
1500
|
}, "strip", z.ZodTypeAny, {
|
|
1249
|
-
projectId: string;
|
|
1250
1501
|
id: string;
|
|
1251
|
-
|
|
1252
|
-
anonymousId: string;
|
|
1253
|
-
version: string;
|
|
1502
|
+
projectId: string;
|
|
1254
1503
|
payload: {
|
|
1255
|
-
|
|
1504
|
+
name?: string | null | undefined;
|
|
1505
|
+
id?: string | null | undefined;
|
|
1506
|
+
age?: string | number | null | undefined;
|
|
1256
1507
|
avatar?: string | null | undefined;
|
|
1257
1508
|
birthday?: string | null | undefined;
|
|
1258
1509
|
createdAt?: string | null | undefined;
|
|
@@ -1260,26 +1511,28 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1260
1511
|
email?: string | null | undefined;
|
|
1261
1512
|
firstName?: string | null | undefined;
|
|
1262
1513
|
gender?: string | null | undefined;
|
|
1263
|
-
id?: string | null | undefined;
|
|
1264
1514
|
lastName?: string | null | undefined;
|
|
1265
|
-
name?: string | null | undefined;
|
|
1266
1515
|
phone?: string | null | undefined;
|
|
1267
1516
|
title?: string | null | undefined;
|
|
1268
1517
|
username?: string | null | undefined;
|
|
1269
1518
|
website?: string | null | undefined;
|
|
1519
|
+
$id?: string | null | undefined;
|
|
1520
|
+
$lastSeen?: string | null | undefined;
|
|
1270
1521
|
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1522
|
+
timestamp: string;
|
|
1523
|
+
anonymousId: string;
|
|
1271
1524
|
distinctId: string;
|
|
1272
|
-
|
|
1525
|
+
version: string;
|
|
1526
|
+
context?: {
|
|
1273
1527
|
active?: boolean | undefined;
|
|
1274
1528
|
} | undefined;
|
|
1275
1529
|
}, {
|
|
1276
|
-
projectId: string;
|
|
1277
1530
|
id: string;
|
|
1278
|
-
|
|
1279
|
-
anonymousId: string;
|
|
1280
|
-
version: string;
|
|
1531
|
+
projectId: string;
|
|
1281
1532
|
payload: {
|
|
1282
|
-
|
|
1533
|
+
name?: string | null | undefined;
|
|
1534
|
+
id?: string | null | undefined;
|
|
1535
|
+
age?: string | number | null | undefined;
|
|
1283
1536
|
avatar?: string | null | undefined;
|
|
1284
1537
|
birthday?: string | null | undefined;
|
|
1285
1538
|
createdAt?: string | null | undefined;
|
|
@@ -1287,17 +1540,223 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1287
1540
|
email?: string | null | undefined;
|
|
1288
1541
|
firstName?: string | null | undefined;
|
|
1289
1542
|
gender?: string | null | undefined;
|
|
1290
|
-
id?: string | null | undefined;
|
|
1291
1543
|
lastName?: string | null | undefined;
|
|
1292
|
-
name?: string | null | undefined;
|
|
1293
1544
|
phone?: string | null | undefined;
|
|
1294
1545
|
title?: string | null | undefined;
|
|
1295
1546
|
username?: string | null | undefined;
|
|
1296
1547
|
website?: string | null | undefined;
|
|
1548
|
+
$id?: string | null | undefined;
|
|
1549
|
+
$lastSeen?: string | null | undefined;
|
|
1297
1550
|
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1551
|
+
timestamp: string;
|
|
1552
|
+
anonymousId: string;
|
|
1298
1553
|
distinctId: string;
|
|
1299
|
-
|
|
1554
|
+
version: string;
|
|
1555
|
+
context?: {
|
|
1300
1556
|
active?: boolean | undefined;
|
|
1301
1557
|
} | undefined;
|
|
1302
1558
|
}>;
|
|
1303
1559
|
export type Identify = z.infer<typeof idenfitySchema>;
|
|
1560
|
+
export declare const latestIdentifiesRequestSchema: z.ZodObject<{
|
|
1561
|
+
projectId: z.ZodString;
|
|
1562
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1563
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1564
|
+
}, "strip", z.ZodTypeAny, {
|
|
1565
|
+
projectId: string;
|
|
1566
|
+
limit?: number | undefined;
|
|
1567
|
+
fields?: string[] | undefined;
|
|
1568
|
+
}, {
|
|
1569
|
+
projectId: string;
|
|
1570
|
+
limit?: number | undefined;
|
|
1571
|
+
fields?: string[] | undefined;
|
|
1572
|
+
}>;
|
|
1573
|
+
export type LatestIdentifiesRequest = z.infer<typeof latestIdentifiesRequestSchema>;
|
|
1574
|
+
export declare const latestIdentifiesResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1575
|
+
meta: z.ZodArray<z.ZodObject<{
|
|
1576
|
+
name: z.ZodString;
|
|
1577
|
+
type: z.ZodString;
|
|
1578
|
+
}, "strip", z.ZodTypeAny, {
|
|
1579
|
+
type: string;
|
|
1580
|
+
name: string;
|
|
1581
|
+
}, {
|
|
1582
|
+
type: string;
|
|
1583
|
+
name: string;
|
|
1584
|
+
}>, "many">;
|
|
1585
|
+
statistics: z.ZodObject<{
|
|
1586
|
+
elapsed: z.ZodNumber;
|
|
1587
|
+
rows_read: z.ZodNumber;
|
|
1588
|
+
bytes_read: z.ZodNumber;
|
|
1589
|
+
}, "strip", z.ZodTypeAny, {
|
|
1590
|
+
elapsed: number;
|
|
1591
|
+
rows_read: number;
|
|
1592
|
+
bytes_read: number;
|
|
1593
|
+
}, {
|
|
1594
|
+
elapsed: number;
|
|
1595
|
+
rows_read: number;
|
|
1596
|
+
bytes_read: number;
|
|
1597
|
+
}>;
|
|
1598
|
+
rows: z.ZodNumber;
|
|
1599
|
+
}, {
|
|
1600
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1601
|
+
properties: z.ZodIntersection<z.ZodOptional<z.ZodObject<{
|
|
1602
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1603
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1604
|
+
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1605
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1606
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1607
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>>;
|
|
1608
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1609
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1610
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1611
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1612
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1613
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1614
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1615
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1616
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1617
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1618
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1619
|
+
}, "strip", z.ZodTypeAny, {
|
|
1620
|
+
name?: string | null | undefined;
|
|
1621
|
+
id?: string | null | undefined;
|
|
1622
|
+
age?: string | number | null | undefined;
|
|
1623
|
+
avatar?: string | null | undefined;
|
|
1624
|
+
birthday?: string | null | undefined;
|
|
1625
|
+
createdAt?: string | null | undefined;
|
|
1626
|
+
description?: string | null | undefined;
|
|
1627
|
+
email?: string | null | undefined;
|
|
1628
|
+
firstName?: string | null | undefined;
|
|
1629
|
+
gender?: string | null | undefined;
|
|
1630
|
+
lastName?: string | null | undefined;
|
|
1631
|
+
phone?: string | null | undefined;
|
|
1632
|
+
title?: string | null | undefined;
|
|
1633
|
+
username?: string | null | undefined;
|
|
1634
|
+
website?: string | null | undefined;
|
|
1635
|
+
$id?: string | null | undefined;
|
|
1636
|
+
$lastSeen?: string | null | undefined;
|
|
1637
|
+
}, {
|
|
1638
|
+
name?: string | null | undefined;
|
|
1639
|
+
id?: string | null | undefined;
|
|
1640
|
+
age?: string | number | null | undefined;
|
|
1641
|
+
avatar?: string | null | undefined;
|
|
1642
|
+
birthday?: string | null | undefined;
|
|
1643
|
+
createdAt?: string | null | undefined;
|
|
1644
|
+
description?: string | null | undefined;
|
|
1645
|
+
email?: string | null | undefined;
|
|
1646
|
+
firstName?: string | null | undefined;
|
|
1647
|
+
gender?: string | null | undefined;
|
|
1648
|
+
lastName?: string | null | undefined;
|
|
1649
|
+
phone?: string | null | undefined;
|
|
1650
|
+
title?: string | null | undefined;
|
|
1651
|
+
username?: string | null | undefined;
|
|
1652
|
+
website?: string | null | undefined;
|
|
1653
|
+
$id?: string | null | undefined;
|
|
1654
|
+
$lastSeen?: string | null | undefined;
|
|
1655
|
+
}>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>, "many">]>>>;
|
|
1656
|
+
}, "strip", z.ZodTypeAny, {
|
|
1657
|
+
properties: {
|
|
1658
|
+
name?: string | null | undefined;
|
|
1659
|
+
id?: string | null | undefined;
|
|
1660
|
+
age?: string | number | null | undefined;
|
|
1661
|
+
avatar?: string | null | undefined;
|
|
1662
|
+
birthday?: string | null | undefined;
|
|
1663
|
+
createdAt?: string | null | undefined;
|
|
1664
|
+
description?: string | null | undefined;
|
|
1665
|
+
email?: string | null | undefined;
|
|
1666
|
+
firstName?: string | null | undefined;
|
|
1667
|
+
gender?: string | null | undefined;
|
|
1668
|
+
lastName?: string | null | undefined;
|
|
1669
|
+
phone?: string | null | undefined;
|
|
1670
|
+
title?: string | null | undefined;
|
|
1671
|
+
username?: string | null | undefined;
|
|
1672
|
+
website?: string | null | undefined;
|
|
1673
|
+
$id?: string | null | undefined;
|
|
1674
|
+
$lastSeen?: string | null | undefined;
|
|
1675
|
+
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1676
|
+
}, {
|
|
1677
|
+
properties: {
|
|
1678
|
+
name?: string | null | undefined;
|
|
1679
|
+
id?: string | null | undefined;
|
|
1680
|
+
age?: string | number | null | undefined;
|
|
1681
|
+
avatar?: string | null | undefined;
|
|
1682
|
+
birthday?: string | null | undefined;
|
|
1683
|
+
createdAt?: string | null | undefined;
|
|
1684
|
+
description?: string | null | undefined;
|
|
1685
|
+
email?: string | null | undefined;
|
|
1686
|
+
firstName?: string | null | undefined;
|
|
1687
|
+
gender?: string | null | undefined;
|
|
1688
|
+
lastName?: string | null | undefined;
|
|
1689
|
+
phone?: string | null | undefined;
|
|
1690
|
+
title?: string | null | undefined;
|
|
1691
|
+
username?: string | null | undefined;
|
|
1692
|
+
website?: string | null | undefined;
|
|
1693
|
+
$id?: string | null | undefined;
|
|
1694
|
+
$lastSeen?: string | null | undefined;
|
|
1695
|
+
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1696
|
+
}>, "many">;
|
|
1697
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1698
|
+
meta: {
|
|
1699
|
+
type: string;
|
|
1700
|
+
name: string;
|
|
1701
|
+
}[];
|
|
1702
|
+
statistics: {
|
|
1703
|
+
elapsed: number;
|
|
1704
|
+
rows_read: number;
|
|
1705
|
+
bytes_read: number;
|
|
1706
|
+
};
|
|
1707
|
+
rows: number;
|
|
1708
|
+
data: {
|
|
1709
|
+
properties: {
|
|
1710
|
+
name?: string | null | undefined;
|
|
1711
|
+
id?: string | null | undefined;
|
|
1712
|
+
age?: string | number | null | undefined;
|
|
1713
|
+
avatar?: string | null | undefined;
|
|
1714
|
+
birthday?: string | null | undefined;
|
|
1715
|
+
createdAt?: string | null | undefined;
|
|
1716
|
+
description?: string | null | undefined;
|
|
1717
|
+
email?: string | null | undefined;
|
|
1718
|
+
firstName?: string | null | undefined;
|
|
1719
|
+
gender?: string | null | undefined;
|
|
1720
|
+
lastName?: string | null | undefined;
|
|
1721
|
+
phone?: string | null | undefined;
|
|
1722
|
+
title?: string | null | undefined;
|
|
1723
|
+
username?: string | null | undefined;
|
|
1724
|
+
website?: string | null | undefined;
|
|
1725
|
+
$id?: string | null | undefined;
|
|
1726
|
+
$lastSeen?: string | null | undefined;
|
|
1727
|
+
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1728
|
+
}[];
|
|
1729
|
+
}, {
|
|
1730
|
+
meta: {
|
|
1731
|
+
type: string;
|
|
1732
|
+
name: string;
|
|
1733
|
+
}[];
|
|
1734
|
+
statistics: {
|
|
1735
|
+
elapsed: number;
|
|
1736
|
+
rows_read: number;
|
|
1737
|
+
bytes_read: number;
|
|
1738
|
+
};
|
|
1739
|
+
rows: number;
|
|
1740
|
+
data: {
|
|
1741
|
+
properties: {
|
|
1742
|
+
name?: string | null | undefined;
|
|
1743
|
+
id?: string | null | undefined;
|
|
1744
|
+
age?: string | number | null | undefined;
|
|
1745
|
+
avatar?: string | null | undefined;
|
|
1746
|
+
birthday?: string | null | undefined;
|
|
1747
|
+
createdAt?: string | null | undefined;
|
|
1748
|
+
description?: string | null | undefined;
|
|
1749
|
+
email?: string | null | undefined;
|
|
1750
|
+
firstName?: string | null | undefined;
|
|
1751
|
+
gender?: string | null | undefined;
|
|
1752
|
+
lastName?: string | null | undefined;
|
|
1753
|
+
phone?: string | null | undefined;
|
|
1754
|
+
title?: string | null | undefined;
|
|
1755
|
+
username?: string | null | undefined;
|
|
1756
|
+
website?: string | null | undefined;
|
|
1757
|
+
$id?: string | null | undefined;
|
|
1758
|
+
$lastSeen?: string | null | undefined;
|
|
1759
|
+
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1760
|
+
}[];
|
|
1761
|
+
}>;
|
|
1762
|
+
export type LatestIdentifiesResponse = z.infer<typeof latestIdentifiesResponseSchema>;
|