saasco-sdk 0.1.6 → 0.1.8
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 +126 -90
- package/index.esm.js +124 -89
- 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 +274 -184
package/src/lib/types.d.ts
CHANGED
|
@@ -50,23 +50,125 @@ 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 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>;
|
|
53
155
|
export declare const kpisRequestSchema: z.ZodObject<{
|
|
54
156
|
projectId: z.ZodString;
|
|
55
157
|
dateTo: z.ZodOptional<z.ZodString>;
|
|
56
158
|
dateFrom: z.ZodOptional<z.ZodString>;
|
|
57
|
-
|
|
159
|
+
referrer: z.ZodOptional<z.ZodString>;
|
|
58
160
|
location: z.ZodOptional<z.ZodString>;
|
|
59
161
|
}, "strip", z.ZodTypeAny, {
|
|
60
162
|
projectId: string;
|
|
61
163
|
dateTo?: string | undefined;
|
|
62
164
|
dateFrom?: string | undefined;
|
|
63
|
-
|
|
165
|
+
referrer?: string | undefined;
|
|
64
166
|
location?: string | undefined;
|
|
65
167
|
}, {
|
|
66
168
|
projectId: string;
|
|
67
169
|
dateTo?: string | undefined;
|
|
68
170
|
dateFrom?: string | undefined;
|
|
69
|
-
|
|
171
|
+
referrer?: string | undefined;
|
|
70
172
|
location?: string | undefined;
|
|
71
173
|
}>;
|
|
72
174
|
export type KpisRequest = z.infer<typeof kpisRequestSchema>;
|
|
@@ -97,28 +199,36 @@ export declare const kpisResponseSchema: z.ZodObject<{
|
|
|
97
199
|
rows: z.ZodNumber;
|
|
98
200
|
data: z.ZodArray<z.ZodObject<{
|
|
99
201
|
date: z.ZodString;
|
|
100
|
-
|
|
101
|
-
|
|
202
|
+
users: z.ZodNumber;
|
|
203
|
+
sessions: z.ZodNumber;
|
|
204
|
+
pageViews: z.ZodNumber;
|
|
205
|
+
events: z.ZodNumber;
|
|
102
206
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
103
207
|
avgSessionSec: z.ZodNumber;
|
|
104
208
|
}, "strip", z.ZodTypeAny, {
|
|
105
209
|
date: string;
|
|
106
|
-
|
|
107
|
-
|
|
210
|
+
users: number;
|
|
211
|
+
sessions: number;
|
|
212
|
+
pageViews: number;
|
|
213
|
+
events: number;
|
|
108
214
|
bounceRate: number | null;
|
|
109
215
|
avgSessionSec: number;
|
|
110
216
|
}, {
|
|
111
217
|
date: string;
|
|
112
|
-
|
|
113
|
-
|
|
218
|
+
users: number;
|
|
219
|
+
sessions: number;
|
|
220
|
+
pageViews: number;
|
|
221
|
+
events: number;
|
|
114
222
|
bounceRate: number | null;
|
|
115
223
|
avgSessionSec: number;
|
|
116
224
|
}>, "many">;
|
|
117
225
|
}, "strip", z.ZodTypeAny, {
|
|
118
226
|
data: {
|
|
119
227
|
date: string;
|
|
120
|
-
|
|
121
|
-
|
|
228
|
+
users: number;
|
|
229
|
+
sessions: number;
|
|
230
|
+
pageViews: number;
|
|
231
|
+
events: number;
|
|
122
232
|
bounceRate: number | null;
|
|
123
233
|
avgSessionSec: number;
|
|
124
234
|
}[];
|
|
@@ -135,8 +245,10 @@ export declare const kpisResponseSchema: z.ZodObject<{
|
|
|
135
245
|
}, {
|
|
136
246
|
data: {
|
|
137
247
|
date: string;
|
|
138
|
-
|
|
139
|
-
|
|
248
|
+
users: number;
|
|
249
|
+
sessions: number;
|
|
250
|
+
pageViews: number;
|
|
251
|
+
events: number;
|
|
140
252
|
bounceRate: number | null;
|
|
141
253
|
avgSessionSec: number;
|
|
142
254
|
}[];
|
|
@@ -152,80 +264,13 @@ export declare const kpisResponseSchema: z.ZodObject<{
|
|
|
152
264
|
rows: number;
|
|
153
265
|
}>;
|
|
154
266
|
export type KpisResponse = z.infer<typeof kpisResponseSchema>;
|
|
155
|
-
export declare const eventsKpisResponseSchema: z.ZodObject<{
|
|
156
|
-
meta: z.ZodArray<z.ZodObject<{
|
|
157
|
-
name: z.ZodString;
|
|
158
|
-
type: z.ZodString;
|
|
159
|
-
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
type: string;
|
|
161
|
-
name: string;
|
|
162
|
-
}, {
|
|
163
|
-
type: string;
|
|
164
|
-
name: string;
|
|
165
|
-
}>, "many">;
|
|
166
|
-
statistics: z.ZodObject<{
|
|
167
|
-
elapsed: z.ZodNumber;
|
|
168
|
-
rows_read: z.ZodNumber;
|
|
169
|
-
bytes_read: z.ZodNumber;
|
|
170
|
-
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
elapsed: number;
|
|
172
|
-
rows_read: number;
|
|
173
|
-
bytes_read: number;
|
|
174
|
-
}, {
|
|
175
|
-
elapsed: number;
|
|
176
|
-
rows_read: number;
|
|
177
|
-
bytes_read: number;
|
|
178
|
-
}>;
|
|
179
|
-
rows: z.ZodNumber;
|
|
180
|
-
data: z.ZodArray<z.ZodObject<{
|
|
181
|
-
unique: z.ZodNumber;
|
|
182
|
-
total: z.ZodNumber;
|
|
183
|
-
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
unique: number;
|
|
185
|
-
total: number;
|
|
186
|
-
}, {
|
|
187
|
-
unique: number;
|
|
188
|
-
total: number;
|
|
189
|
-
}>, "many">;
|
|
190
|
-
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
data: {
|
|
192
|
-
unique: number;
|
|
193
|
-
total: number;
|
|
194
|
-
}[];
|
|
195
|
-
meta: {
|
|
196
|
-
type: string;
|
|
197
|
-
name: string;
|
|
198
|
-
}[];
|
|
199
|
-
statistics: {
|
|
200
|
-
elapsed: number;
|
|
201
|
-
rows_read: number;
|
|
202
|
-
bytes_read: number;
|
|
203
|
-
};
|
|
204
|
-
rows: number;
|
|
205
|
-
}, {
|
|
206
|
-
data: {
|
|
207
|
-
unique: number;
|
|
208
|
-
total: number;
|
|
209
|
-
}[];
|
|
210
|
-
meta: {
|
|
211
|
-
type: string;
|
|
212
|
-
name: string;
|
|
213
|
-
}[];
|
|
214
|
-
statistics: {
|
|
215
|
-
elapsed: number;
|
|
216
|
-
rows_read: number;
|
|
217
|
-
bytes_read: number;
|
|
218
|
-
};
|
|
219
|
-
rows: number;
|
|
220
|
-
}>;
|
|
221
|
-
export type EventsKpisResponse = z.infer<typeof eventsKpisResponseSchema>;
|
|
222
267
|
export declare const baseTopRequestSchema: z.ZodObject<{
|
|
223
268
|
projectId: z.ZodString;
|
|
224
269
|
dateTo: z.ZodOptional<z.ZodString>;
|
|
225
270
|
dateFrom: z.ZodOptional<z.ZodString>;
|
|
226
271
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
227
272
|
skip: z.ZodOptional<z.ZodNumber>;
|
|
228
|
-
|
|
273
|
+
referrer: z.ZodOptional<z.ZodString>;
|
|
229
274
|
location: z.ZodOptional<z.ZodString>;
|
|
230
275
|
}, "strip", z.ZodTypeAny, {
|
|
231
276
|
projectId: string;
|
|
@@ -233,7 +278,7 @@ export declare const baseTopRequestSchema: z.ZodObject<{
|
|
|
233
278
|
dateFrom?: string | undefined;
|
|
234
279
|
limit?: number | undefined;
|
|
235
280
|
skip?: number | undefined;
|
|
236
|
-
|
|
281
|
+
referrer?: string | undefined;
|
|
237
282
|
location?: string | undefined;
|
|
238
283
|
}, {
|
|
239
284
|
projectId: string;
|
|
@@ -241,7 +286,7 @@ export declare const baseTopRequestSchema: z.ZodObject<{
|
|
|
241
286
|
dateFrom?: string | undefined;
|
|
242
287
|
limit?: number | undefined;
|
|
243
288
|
skip?: number | undefined;
|
|
244
|
-
|
|
289
|
+
referrer?: string | undefined;
|
|
245
290
|
location?: string | undefined;
|
|
246
291
|
}>;
|
|
247
292
|
export type BaseTopRequest = z.infer<typeof baseTopRequestSchema>;
|
|
@@ -272,22 +317,22 @@ export declare const topPagesResponseSchema: z.ZodObject<{
|
|
|
272
317
|
rows: z.ZodNumber;
|
|
273
318
|
data: z.ZodArray<z.ZodObject<{
|
|
274
319
|
pathname: z.ZodString;
|
|
275
|
-
|
|
276
|
-
|
|
320
|
+
users: z.ZodNumber;
|
|
321
|
+
events: z.ZodNumber;
|
|
277
322
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
|
|
323
|
+
users: number;
|
|
324
|
+
events: number;
|
|
279
325
|
pathname: string;
|
|
280
|
-
hits: number;
|
|
281
326
|
}, {
|
|
282
|
-
|
|
327
|
+
users: number;
|
|
328
|
+
events: number;
|
|
283
329
|
pathname: string;
|
|
284
|
-
hits: number;
|
|
285
330
|
}>, "many">;
|
|
286
331
|
}, "strip", z.ZodTypeAny, {
|
|
287
332
|
data: {
|
|
288
|
-
|
|
333
|
+
users: number;
|
|
334
|
+
events: number;
|
|
289
335
|
pathname: string;
|
|
290
|
-
hits: number;
|
|
291
336
|
}[];
|
|
292
337
|
meta: {
|
|
293
338
|
type: string;
|
|
@@ -301,9 +346,9 @@ export declare const topPagesResponseSchema: z.ZodObject<{
|
|
|
301
346
|
rows: number;
|
|
302
347
|
}, {
|
|
303
348
|
data: {
|
|
304
|
-
|
|
349
|
+
users: number;
|
|
350
|
+
events: number;
|
|
305
351
|
pathname: string;
|
|
306
|
-
hits: number;
|
|
307
352
|
}[];
|
|
308
353
|
meta: {
|
|
309
354
|
type: string;
|
|
@@ -344,30 +389,34 @@ export declare const topLocationsResponseSchema: z.ZodObject<{
|
|
|
344
389
|
rows: z.ZodNumber;
|
|
345
390
|
data: z.ZodArray<z.ZodObject<{
|
|
346
391
|
location: z.ZodString;
|
|
347
|
-
|
|
348
|
-
|
|
392
|
+
users: z.ZodNumber;
|
|
393
|
+
sessions: z.ZodNumber;
|
|
394
|
+
pageViews: z.ZodNumber;
|
|
349
395
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
350
396
|
avgSessionSec: z.ZodNumber;
|
|
351
397
|
}, "strip", z.ZodTypeAny, {
|
|
352
398
|
location: string;
|
|
353
|
-
|
|
399
|
+
users: number;
|
|
400
|
+
sessions: number;
|
|
401
|
+
pageViews: number;
|
|
354
402
|
bounceRate: number | null;
|
|
355
403
|
avgSessionSec: number;
|
|
356
|
-
hits: number;
|
|
357
404
|
}, {
|
|
358
405
|
location: string;
|
|
359
|
-
|
|
406
|
+
users: number;
|
|
407
|
+
sessions: number;
|
|
408
|
+
pageViews: number;
|
|
360
409
|
bounceRate: number | null;
|
|
361
410
|
avgSessionSec: number;
|
|
362
|
-
hits: number;
|
|
363
411
|
}>, "many">;
|
|
364
412
|
}, "strip", z.ZodTypeAny, {
|
|
365
413
|
data: {
|
|
366
414
|
location: string;
|
|
367
|
-
|
|
415
|
+
users: number;
|
|
416
|
+
sessions: number;
|
|
417
|
+
pageViews: number;
|
|
368
418
|
bounceRate: number | null;
|
|
369
419
|
avgSessionSec: number;
|
|
370
|
-
hits: number;
|
|
371
420
|
}[];
|
|
372
421
|
meta: {
|
|
373
422
|
type: string;
|
|
@@ -382,10 +431,11 @@ export declare const topLocationsResponseSchema: z.ZodObject<{
|
|
|
382
431
|
}, {
|
|
383
432
|
data: {
|
|
384
433
|
location: string;
|
|
385
|
-
|
|
434
|
+
users: number;
|
|
435
|
+
sessions: number;
|
|
436
|
+
pageViews: number;
|
|
386
437
|
bounceRate: number | null;
|
|
387
438
|
avgSessionSec: number;
|
|
388
|
-
hits: number;
|
|
389
439
|
}[];
|
|
390
440
|
meta: {
|
|
391
441
|
type: string;
|
|
@@ -431,25 +481,25 @@ export declare const topDevicesResponseSchema: z.ZodObject<{
|
|
|
431
481
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
432
482
|
avgSessionSec: z.ZodNumber;
|
|
433
483
|
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
visits: number;
|
|
435
484
|
bounceRate: number | null;
|
|
436
485
|
avgSessionSec: number;
|
|
437
|
-
hits: number;
|
|
438
486
|
device: string;
|
|
439
|
-
}, {
|
|
440
487
|
visits: number;
|
|
488
|
+
hits: number;
|
|
489
|
+
}, {
|
|
441
490
|
bounceRate: number | null;
|
|
442
491
|
avgSessionSec: number;
|
|
443
|
-
hits: number;
|
|
444
492
|
device: string;
|
|
493
|
+
visits: number;
|
|
494
|
+
hits: number;
|
|
445
495
|
}>, "many">;
|
|
446
496
|
}, "strip", z.ZodTypeAny, {
|
|
447
497
|
data: {
|
|
448
|
-
visits: number;
|
|
449
498
|
bounceRate: number | null;
|
|
450
499
|
avgSessionSec: number;
|
|
451
|
-
hits: number;
|
|
452
500
|
device: string;
|
|
501
|
+
visits: number;
|
|
502
|
+
hits: number;
|
|
453
503
|
}[];
|
|
454
504
|
meta: {
|
|
455
505
|
type: string;
|
|
@@ -463,11 +513,11 @@ export declare const topDevicesResponseSchema: z.ZodObject<{
|
|
|
463
513
|
rows: number;
|
|
464
514
|
}, {
|
|
465
515
|
data: {
|
|
466
|
-
visits: number;
|
|
467
516
|
bounceRate: number | null;
|
|
468
517
|
avgSessionSec: number;
|
|
469
|
-
hits: number;
|
|
470
518
|
device: string;
|
|
519
|
+
visits: number;
|
|
520
|
+
hits: number;
|
|
471
521
|
}[];
|
|
472
522
|
meta: {
|
|
473
523
|
type: string;
|
|
@@ -513,23 +563,23 @@ export declare const topBrowsersResponseSchema: z.ZodObject<{
|
|
|
513
563
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
514
564
|
avgSessionSec: z.ZodNumber;
|
|
515
565
|
}, "strip", z.ZodTypeAny, {
|
|
516
|
-
visits: number;
|
|
517
566
|
bounceRate: number | null;
|
|
518
567
|
avgSessionSec: number;
|
|
568
|
+
visits: number;
|
|
519
569
|
hits: number;
|
|
520
570
|
browser: string;
|
|
521
571
|
}, {
|
|
522
|
-
visits: number;
|
|
523
572
|
bounceRate: number | null;
|
|
524
573
|
avgSessionSec: number;
|
|
574
|
+
visits: number;
|
|
525
575
|
hits: number;
|
|
526
576
|
browser: string;
|
|
527
577
|
}>, "many">;
|
|
528
578
|
}, "strip", z.ZodTypeAny, {
|
|
529
579
|
data: {
|
|
530
|
-
visits: number;
|
|
531
580
|
bounceRate: number | null;
|
|
532
581
|
avgSessionSec: number;
|
|
582
|
+
visits: number;
|
|
533
583
|
hits: number;
|
|
534
584
|
browser: string;
|
|
535
585
|
}[];
|
|
@@ -545,9 +595,9 @@ export declare const topBrowsersResponseSchema: z.ZodObject<{
|
|
|
545
595
|
rows: number;
|
|
546
596
|
}, {
|
|
547
597
|
data: {
|
|
548
|
-
visits: number;
|
|
549
598
|
bounceRate: number | null;
|
|
550
599
|
avgSessionSec: number;
|
|
600
|
+
visits: number;
|
|
551
601
|
hits: number;
|
|
552
602
|
browser: string;
|
|
553
603
|
}[];
|
|
@@ -565,22 +615,25 @@ export declare const topBrowsersResponseSchema: z.ZodObject<{
|
|
|
565
615
|
export type TopBrowsersResponse = z.infer<typeof topBrowsersResponseSchema>;
|
|
566
616
|
export declare const topSourcesSchema: z.ZodObject<{
|
|
567
617
|
referrer: z.ZodString;
|
|
568
|
-
|
|
569
|
-
|
|
618
|
+
users: z.ZodNumber;
|
|
619
|
+
sessions: z.ZodNumber;
|
|
620
|
+
pageViews: z.ZodNumber;
|
|
570
621
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
571
622
|
avgSessionSec: z.ZodNumber;
|
|
572
623
|
}, "strip", z.ZodTypeAny, {
|
|
573
|
-
|
|
624
|
+
referrer: string;
|
|
625
|
+
users: number;
|
|
626
|
+
sessions: number;
|
|
627
|
+
pageViews: number;
|
|
574
628
|
bounceRate: number | null;
|
|
575
629
|
avgSessionSec: number;
|
|
576
|
-
hits: number;
|
|
577
|
-
referrer: string;
|
|
578
630
|
}, {
|
|
579
|
-
|
|
631
|
+
referrer: string;
|
|
632
|
+
users: number;
|
|
633
|
+
sessions: number;
|
|
634
|
+
pageViews: number;
|
|
580
635
|
bounceRate: number | null;
|
|
581
636
|
avgSessionSec: number;
|
|
582
|
-
hits: number;
|
|
583
|
-
referrer: string;
|
|
584
637
|
}>;
|
|
585
638
|
export type TopSources = z.infer<typeof topSourcesSchema>;
|
|
586
639
|
export declare const topSourcesResponseSchema: z.ZodObject<{
|
|
@@ -610,30 +663,34 @@ export declare const topSourcesResponseSchema: z.ZodObject<{
|
|
|
610
663
|
rows: z.ZodNumber;
|
|
611
664
|
data: z.ZodArray<z.ZodObject<{
|
|
612
665
|
referrer: z.ZodString;
|
|
613
|
-
|
|
614
|
-
|
|
666
|
+
users: z.ZodNumber;
|
|
667
|
+
sessions: z.ZodNumber;
|
|
668
|
+
pageViews: z.ZodNumber;
|
|
615
669
|
bounceRate: z.ZodNullable<z.ZodNumber>;
|
|
616
670
|
avgSessionSec: z.ZodNumber;
|
|
617
671
|
}, "strip", z.ZodTypeAny, {
|
|
618
|
-
|
|
672
|
+
referrer: string;
|
|
673
|
+
users: number;
|
|
674
|
+
sessions: number;
|
|
675
|
+
pageViews: number;
|
|
619
676
|
bounceRate: number | null;
|
|
620
677
|
avgSessionSec: number;
|
|
621
|
-
hits: number;
|
|
622
|
-
referrer: string;
|
|
623
678
|
}, {
|
|
624
|
-
|
|
679
|
+
referrer: string;
|
|
680
|
+
users: number;
|
|
681
|
+
sessions: number;
|
|
682
|
+
pageViews: number;
|
|
625
683
|
bounceRate: number | null;
|
|
626
684
|
avgSessionSec: number;
|
|
627
|
-
hits: number;
|
|
628
|
-
referrer: string;
|
|
629
685
|
}>, "many">;
|
|
630
686
|
}, "strip", z.ZodTypeAny, {
|
|
631
687
|
data: {
|
|
632
|
-
|
|
688
|
+
referrer: string;
|
|
689
|
+
users: number;
|
|
690
|
+
sessions: number;
|
|
691
|
+
pageViews: number;
|
|
633
692
|
bounceRate: number | null;
|
|
634
693
|
avgSessionSec: number;
|
|
635
|
-
hits: number;
|
|
636
|
-
referrer: string;
|
|
637
694
|
}[];
|
|
638
695
|
meta: {
|
|
639
696
|
type: string;
|
|
@@ -647,11 +704,12 @@ export declare const topSourcesResponseSchema: z.ZodObject<{
|
|
|
647
704
|
rows: number;
|
|
648
705
|
}, {
|
|
649
706
|
data: {
|
|
650
|
-
|
|
707
|
+
referrer: string;
|
|
708
|
+
users: number;
|
|
709
|
+
sessions: number;
|
|
710
|
+
pageViews: number;
|
|
651
711
|
bounceRate: number | null;
|
|
652
712
|
avgSessionSec: number;
|
|
653
|
-
hits: number;
|
|
654
|
-
referrer: string;
|
|
655
713
|
}[];
|
|
656
714
|
meta: {
|
|
657
715
|
type: string;
|
|
@@ -692,21 +750,21 @@ export declare const topActionsResponseSchema: z.ZodObject<{
|
|
|
692
750
|
rows: z.ZodNumber;
|
|
693
751
|
data: z.ZodArray<z.ZodObject<{
|
|
694
752
|
action: z.ZodString;
|
|
695
|
-
|
|
696
|
-
|
|
753
|
+
users: z.ZodNumber;
|
|
754
|
+
events: z.ZodNumber;
|
|
697
755
|
}, "strip", z.ZodTypeAny, {
|
|
698
|
-
|
|
699
|
-
|
|
756
|
+
users: number;
|
|
757
|
+
events: number;
|
|
700
758
|
action: string;
|
|
701
759
|
}, {
|
|
702
|
-
|
|
703
|
-
|
|
760
|
+
users: number;
|
|
761
|
+
events: number;
|
|
704
762
|
action: string;
|
|
705
763
|
}>, "many">;
|
|
706
764
|
}, "strip", z.ZodTypeAny, {
|
|
707
765
|
data: {
|
|
708
|
-
|
|
709
|
-
|
|
766
|
+
users: number;
|
|
767
|
+
events: number;
|
|
710
768
|
action: string;
|
|
711
769
|
}[];
|
|
712
770
|
meta: {
|
|
@@ -721,8 +779,8 @@ export declare const topActionsResponseSchema: z.ZodObject<{
|
|
|
721
779
|
rows: number;
|
|
722
780
|
}, {
|
|
723
781
|
data: {
|
|
724
|
-
|
|
725
|
-
|
|
782
|
+
users: number;
|
|
783
|
+
events: number;
|
|
726
784
|
action: string;
|
|
727
785
|
}[];
|
|
728
786
|
meta: {
|
|
@@ -747,18 +805,18 @@ export declare const analyticsEventSchema: z.ZodObject<{
|
|
|
747
805
|
action: z.ZodString;
|
|
748
806
|
payload: z.ZodString;
|
|
749
807
|
}, "strip", z.ZodTypeAny, {
|
|
808
|
+
id: string;
|
|
750
809
|
projectId: string;
|
|
751
810
|
action: string;
|
|
752
|
-
id: string;
|
|
753
811
|
timestamp: string;
|
|
754
812
|
anonymousId: string;
|
|
755
813
|
sessionId: string;
|
|
756
814
|
version: string;
|
|
757
815
|
payload: string;
|
|
758
816
|
}, {
|
|
817
|
+
id: string;
|
|
759
818
|
projectId: string;
|
|
760
819
|
action: string;
|
|
761
|
-
id: string;
|
|
762
820
|
timestamp: string;
|
|
763
821
|
anonymousId: string;
|
|
764
822
|
sessionId: string;
|
|
@@ -801,18 +859,18 @@ export declare const userEventsResponseSchema: z.ZodObject<{
|
|
|
801
859
|
action: z.ZodString;
|
|
802
860
|
payload: z.ZodString;
|
|
803
861
|
}, "strip", z.ZodTypeAny, {
|
|
862
|
+
id: string;
|
|
804
863
|
projectId: string;
|
|
805
864
|
action: string;
|
|
806
|
-
id: string;
|
|
807
865
|
timestamp: string;
|
|
808
866
|
anonymousId: string;
|
|
809
867
|
sessionId: string;
|
|
810
868
|
version: string;
|
|
811
869
|
payload: string;
|
|
812
870
|
}, {
|
|
871
|
+
id: string;
|
|
813
872
|
projectId: string;
|
|
814
873
|
action: string;
|
|
815
|
-
id: string;
|
|
816
874
|
timestamp: string;
|
|
817
875
|
anonymousId: string;
|
|
818
876
|
sessionId: string;
|
|
@@ -821,9 +879,9 @@ export declare const userEventsResponseSchema: z.ZodObject<{
|
|
|
821
879
|
}>, "many">;
|
|
822
880
|
}, "strip", z.ZodTypeAny, {
|
|
823
881
|
data: {
|
|
882
|
+
id: string;
|
|
824
883
|
projectId: string;
|
|
825
884
|
action: string;
|
|
826
|
-
id: string;
|
|
827
885
|
timestamp: string;
|
|
828
886
|
anonymousId: string;
|
|
829
887
|
sessionId: string;
|
|
@@ -842,9 +900,9 @@ export declare const userEventsResponseSchema: z.ZodObject<{
|
|
|
842
900
|
rows: number;
|
|
843
901
|
}, {
|
|
844
902
|
data: {
|
|
903
|
+
id: string;
|
|
845
904
|
projectId: string;
|
|
846
905
|
action: string;
|
|
847
|
-
id: string;
|
|
848
906
|
timestamp: string;
|
|
849
907
|
anonymousId: string;
|
|
850
908
|
sessionId: string;
|
|
@@ -866,17 +924,17 @@ export type UserEventsResponse = z.infer<typeof userEventsResponseSchema>;
|
|
|
866
924
|
export declare const currentUsersRequestSchema: z.ZodObject<{
|
|
867
925
|
projectId: z.ZodString;
|
|
868
926
|
minutes: z.ZodOptional<z.ZodNumber>;
|
|
869
|
-
|
|
927
|
+
referrer: z.ZodOptional<z.ZodString>;
|
|
870
928
|
location: z.ZodOptional<z.ZodString>;
|
|
871
929
|
}, "strip", z.ZodTypeAny, {
|
|
872
930
|
projectId: string;
|
|
873
931
|
minutes?: number | undefined;
|
|
874
|
-
|
|
932
|
+
referrer?: string | undefined;
|
|
875
933
|
location?: string | undefined;
|
|
876
934
|
}, {
|
|
877
935
|
projectId: string;
|
|
878
936
|
minutes?: number | undefined;
|
|
879
|
-
|
|
937
|
+
referrer?: string | undefined;
|
|
880
938
|
location?: string | undefined;
|
|
881
939
|
}>;
|
|
882
940
|
export type CurrentUsersRequest = z.infer<typeof currentUsersRequestSchema>;
|
|
@@ -943,7 +1001,7 @@ export declare const currentUsersResponseSchema: z.ZodObject<{
|
|
|
943
1001
|
}>;
|
|
944
1002
|
export type CurrentUsersResponse = z.infer<typeof currentUsersResponseSchema>;
|
|
945
1003
|
export declare const reservedPropertiesSchema: z.ZodObject<{
|
|
946
|
-
age: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1004
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
947
1005
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
948
1006
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
949
1007
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -958,8 +1016,10 @@ export declare const reservedPropertiesSchema: z.ZodObject<{
|
|
|
958
1016
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
959
1017
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
960
1018
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1019
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1020
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
961
1021
|
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
age?: number | null | undefined;
|
|
1022
|
+
age?: string | number | null | undefined;
|
|
963
1023
|
avatar?: string | null | undefined;
|
|
964
1024
|
birthday?: string | null | undefined;
|
|
965
1025
|
createdAt?: string | null | undefined;
|
|
@@ -974,8 +1034,10 @@ export declare const reservedPropertiesSchema: z.ZodObject<{
|
|
|
974
1034
|
title?: string | null | undefined;
|
|
975
1035
|
username?: string | null | undefined;
|
|
976
1036
|
website?: string | null | undefined;
|
|
1037
|
+
$id?: string | null | undefined;
|
|
1038
|
+
$lastSeen?: string | null | undefined;
|
|
977
1039
|
}, {
|
|
978
|
-
age?: number | null | undefined;
|
|
1040
|
+
age?: string | number | null | undefined;
|
|
979
1041
|
avatar?: string | null | undefined;
|
|
980
1042
|
birthday?: string | null | undefined;
|
|
981
1043
|
createdAt?: string | null | undefined;
|
|
@@ -990,10 +1052,12 @@ export declare const reservedPropertiesSchema: z.ZodObject<{
|
|
|
990
1052
|
title?: string | null | undefined;
|
|
991
1053
|
username?: string | null | undefined;
|
|
992
1054
|
website?: string | null | undefined;
|
|
1055
|
+
$id?: string | null | undefined;
|
|
1056
|
+
$lastSeen?: string | null | undefined;
|
|
993
1057
|
}>;
|
|
994
1058
|
export type ReservedProperties = z.infer<typeof reservedPropertiesSchema>;
|
|
995
|
-
export declare const
|
|
996
|
-
age: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1059
|
+
export declare const contactPropertiesSchema: z.ZodIntersection<z.ZodOptional<z.ZodObject<{
|
|
1060
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
997
1061
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
998
1062
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
999
1063
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1008,8 +1072,10 @@ export declare const userPropertiesSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
1008
1072
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1009
1073
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1010
1074
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1075
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1076
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1011
1077
|
}, "strip", z.ZodTypeAny, {
|
|
1012
|
-
age?: number | null | undefined;
|
|
1078
|
+
age?: string | number | null | undefined;
|
|
1013
1079
|
avatar?: string | null | undefined;
|
|
1014
1080
|
birthday?: string | null | undefined;
|
|
1015
1081
|
createdAt?: string | null | undefined;
|
|
@@ -1024,8 +1090,10 @@ export declare const userPropertiesSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
1024
1090
|
title?: string | null | undefined;
|
|
1025
1091
|
username?: string | null | undefined;
|
|
1026
1092
|
website?: string | null | undefined;
|
|
1093
|
+
$id?: string | null | undefined;
|
|
1094
|
+
$lastSeen?: string | null | undefined;
|
|
1027
1095
|
}, {
|
|
1028
|
-
age?: number | null | undefined;
|
|
1096
|
+
age?: string | number | null | undefined;
|
|
1029
1097
|
avatar?: string | null | undefined;
|
|
1030
1098
|
birthday?: string | null | undefined;
|
|
1031
1099
|
createdAt?: string | null | undefined;
|
|
@@ -1040,8 +1108,10 @@ export declare const userPropertiesSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
1040
1108
|
title?: string | null | undefined;
|
|
1041
1109
|
username?: string | null | undefined;
|
|
1042
1110
|
website?: string | null | undefined;
|
|
1043
|
-
|
|
1044
|
-
|
|
1111
|
+
$id?: string | null | undefined;
|
|
1112
|
+
$lastSeen?: string | null | undefined;
|
|
1113
|
+
}>>, 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">]>>>;
|
|
1114
|
+
export type ContactProperties = z.infer<typeof contactPropertiesSchema>;
|
|
1045
1115
|
export declare const analyticsUserRawSchema: z.ZodObject<{
|
|
1046
1116
|
timestamp: z.ZodString;
|
|
1047
1117
|
distinctId: z.ZodString;
|
|
@@ -1073,8 +1143,8 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1073
1143
|
timestamp: string;
|
|
1074
1144
|
distinctId: string;
|
|
1075
1145
|
}>, z.ZodObject<{
|
|
1076
|
-
properties: z.ZodIntersection<z.ZodObject<{
|
|
1077
|
-
age: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1146
|
+
properties: z.ZodIntersection<z.ZodOptional<z.ZodObject<{
|
|
1147
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1078
1148
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1079
1149
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1080
1150
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1089,8 +1159,10 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1089
1159
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1090
1160
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1091
1161
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1162
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1163
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1092
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1093
|
-
age?: number | null | undefined;
|
|
1165
|
+
age?: string | number | null | undefined;
|
|
1094
1166
|
avatar?: string | null | undefined;
|
|
1095
1167
|
birthday?: string | null | undefined;
|
|
1096
1168
|
createdAt?: string | null | undefined;
|
|
@@ -1105,8 +1177,10 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1105
1177
|
title?: string | null | undefined;
|
|
1106
1178
|
username?: string | null | undefined;
|
|
1107
1179
|
website?: string | null | undefined;
|
|
1180
|
+
$id?: string | null | undefined;
|
|
1181
|
+
$lastSeen?: string | null | undefined;
|
|
1108
1182
|
}, {
|
|
1109
|
-
age?: number | null | undefined;
|
|
1183
|
+
age?: string | number | null | undefined;
|
|
1110
1184
|
avatar?: string | null | undefined;
|
|
1111
1185
|
birthday?: string | null | undefined;
|
|
1112
1186
|
createdAt?: string | null | undefined;
|
|
@@ -1121,10 +1195,12 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1121
1195
|
title?: string | null | undefined;
|
|
1122
1196
|
username?: string | null | undefined;
|
|
1123
1197
|
website?: string | null | undefined;
|
|
1124
|
-
|
|
1198
|
+
$id?: string | null | undefined;
|
|
1199
|
+
$lastSeen?: string | null | undefined;
|
|
1200
|
+
}>>, 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
1201
|
}, "strip", z.ZodTypeAny, {
|
|
1126
1202
|
properties: {
|
|
1127
|
-
age?: number | null | undefined;
|
|
1203
|
+
age?: string | number | null | undefined;
|
|
1128
1204
|
avatar?: string | null | undefined;
|
|
1129
1205
|
birthday?: string | null | undefined;
|
|
1130
1206
|
createdAt?: string | null | undefined;
|
|
@@ -1139,10 +1215,12 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1139
1215
|
title?: string | null | undefined;
|
|
1140
1216
|
username?: string | null | undefined;
|
|
1141
1217
|
website?: string | null | undefined;
|
|
1218
|
+
$id?: string | null | undefined;
|
|
1219
|
+
$lastSeen?: string | null | undefined;
|
|
1142
1220
|
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1143
1221
|
}, {
|
|
1144
1222
|
properties: {
|
|
1145
|
-
age?: number | null | undefined;
|
|
1223
|
+
age?: string | number | null | undefined;
|
|
1146
1224
|
avatar?: string | null | undefined;
|
|
1147
1225
|
birthday?: string | null | undefined;
|
|
1148
1226
|
createdAt?: string | null | undefined;
|
|
@@ -1157,6 +1235,8 @@ export declare const analyticsUserSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
1157
1235
|
title?: string | null | undefined;
|
|
1158
1236
|
username?: string | null | undefined;
|
|
1159
1237
|
website?: string | null | undefined;
|
|
1238
|
+
$id?: string | null | undefined;
|
|
1239
|
+
$lastSeen?: string | null | undefined;
|
|
1160
1240
|
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1161
1241
|
}>>;
|
|
1162
1242
|
export type AnalyticsUser = z.infer<typeof analyticsUserSchema>;
|
|
@@ -1189,8 +1269,8 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1189
1269
|
distinctId: z.ZodString;
|
|
1190
1270
|
anonymousId: z.ZodString;
|
|
1191
1271
|
version: z.ZodString;
|
|
1192
|
-
payload: z.ZodIntersection<z.ZodObject<{
|
|
1193
|
-
age: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1272
|
+
payload: z.ZodIntersection<z.ZodOptional<z.ZodObject<{
|
|
1273
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1194
1274
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1195
1275
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1196
1276
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1205,8 +1285,10 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1205
1285
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1206
1286
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1207
1287
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1288
|
+
$id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1289
|
+
$lastSeen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1208
1290
|
}, "strip", z.ZodTypeAny, {
|
|
1209
|
-
age?: number | null | undefined;
|
|
1291
|
+
age?: string | number | null | undefined;
|
|
1210
1292
|
avatar?: string | null | undefined;
|
|
1211
1293
|
birthday?: string | null | undefined;
|
|
1212
1294
|
createdAt?: string | null | undefined;
|
|
@@ -1221,8 +1303,10 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1221
1303
|
title?: string | null | undefined;
|
|
1222
1304
|
username?: string | null | undefined;
|
|
1223
1305
|
website?: string | null | undefined;
|
|
1306
|
+
$id?: string | null | undefined;
|
|
1307
|
+
$lastSeen?: string | null | undefined;
|
|
1224
1308
|
}, {
|
|
1225
|
-
age?: number | null | undefined;
|
|
1309
|
+
age?: string | number | null | undefined;
|
|
1226
1310
|
avatar?: string | null | undefined;
|
|
1227
1311
|
birthday?: string | null | undefined;
|
|
1228
1312
|
createdAt?: string | null | undefined;
|
|
@@ -1237,8 +1321,10 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1237
1321
|
title?: string | null | undefined;
|
|
1238
1322
|
username?: string | null | undefined;
|
|
1239
1323
|
website?: string | null | undefined;
|
|
1240
|
-
|
|
1241
|
-
|
|
1324
|
+
$id?: string | null | undefined;
|
|
1325
|
+
$lastSeen?: string | null | undefined;
|
|
1326
|
+
}>>, 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">]>>>;
|
|
1327
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
1242
1328
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1243
1329
|
}, "strip", z.ZodTypeAny, {
|
|
1244
1330
|
active?: boolean | undefined;
|
|
@@ -1246,13 +1332,13 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1246
1332
|
active?: boolean | undefined;
|
|
1247
1333
|
}>>;
|
|
1248
1334
|
}, "strip", z.ZodTypeAny, {
|
|
1249
|
-
projectId: string;
|
|
1250
1335
|
id: string;
|
|
1336
|
+
projectId: string;
|
|
1251
1337
|
timestamp: string;
|
|
1252
1338
|
anonymousId: string;
|
|
1253
1339
|
version: string;
|
|
1254
1340
|
payload: {
|
|
1255
|
-
age?: number | null | undefined;
|
|
1341
|
+
age?: string | number | null | undefined;
|
|
1256
1342
|
avatar?: string | null | undefined;
|
|
1257
1343
|
birthday?: string | null | undefined;
|
|
1258
1344
|
createdAt?: string | null | undefined;
|
|
@@ -1267,19 +1353,21 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1267
1353
|
title?: string | null | undefined;
|
|
1268
1354
|
username?: string | null | undefined;
|
|
1269
1355
|
website?: string | null | undefined;
|
|
1356
|
+
$id?: string | null | undefined;
|
|
1357
|
+
$lastSeen?: string | null | undefined;
|
|
1270
1358
|
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1271
1359
|
distinctId: string;
|
|
1272
|
-
|
|
1360
|
+
context?: {
|
|
1273
1361
|
active?: boolean | undefined;
|
|
1274
1362
|
} | undefined;
|
|
1275
1363
|
}, {
|
|
1276
|
-
projectId: string;
|
|
1277
1364
|
id: string;
|
|
1365
|
+
projectId: string;
|
|
1278
1366
|
timestamp: string;
|
|
1279
1367
|
anonymousId: string;
|
|
1280
1368
|
version: string;
|
|
1281
1369
|
payload: {
|
|
1282
|
-
age?: number | null | undefined;
|
|
1370
|
+
age?: string | number | null | undefined;
|
|
1283
1371
|
avatar?: string | null | undefined;
|
|
1284
1372
|
birthday?: string | null | undefined;
|
|
1285
1373
|
createdAt?: string | null | undefined;
|
|
@@ -1294,9 +1382,11 @@ export declare const idenfitySchema: z.ZodObject<{
|
|
|
1294
1382
|
title?: string | null | undefined;
|
|
1295
1383
|
username?: string | null | undefined;
|
|
1296
1384
|
website?: string | null | undefined;
|
|
1385
|
+
$id?: string | null | undefined;
|
|
1386
|
+
$lastSeen?: string | null | undefined;
|
|
1297
1387
|
} & Record<string, string | number | boolean | Date | (string | number | boolean | Date | null)[] | null>;
|
|
1298
1388
|
distinctId: string;
|
|
1299
|
-
|
|
1389
|
+
context?: {
|
|
1300
1390
|
active?: boolean | undefined;
|
|
1301
1391
|
} | undefined;
|
|
1302
1392
|
}>;
|