@nikthegeek/dreamsforlittles-shared 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2428 @@
1
+ import { z } from "zod";
2
+ export declare const breastfeedActivityDetailsSchema: z.ZodObject<{
3
+ date: z.ZodString;
4
+ start: z.ZodString;
5
+ end: z.ZodString;
6
+ side: z.ZodEnum<["left", "right"]>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ date: string;
9
+ start: string;
10
+ end: string;
11
+ side: "left" | "right";
12
+ }, {
13
+ date: string;
14
+ start: string;
15
+ end: string;
16
+ side: "left" | "right";
17
+ }>;
18
+ export declare const bottlesActivityDetailsSchema: z.ZodObject<{
19
+ date: z.ZodString;
20
+ time: z.ZodString;
21
+ amount: z.ZodNumber;
22
+ unit: z.ZodEnum<["ml", "oz"]>;
23
+ type: z.ZodEnum<["breastmilk", "formula"]>;
24
+ }, "strict", z.ZodTypeAny, {
25
+ type: "breastmilk" | "formula";
26
+ date: string;
27
+ time: string;
28
+ amount: number;
29
+ unit: "ml" | "oz";
30
+ }, {
31
+ type: "breastmilk" | "formula";
32
+ date: string;
33
+ time: string;
34
+ amount: number;
35
+ unit: "ml" | "oz";
36
+ }>;
37
+ export declare const sleepActivityDetailsSchema: z.ZodObject<{
38
+ date: z.ZodString;
39
+ start: z.ZodString;
40
+ end: z.ZodString;
41
+ type: z.ZodEnum<["day", "night"]>;
42
+ mood: z.ZodEnum<["content", "restless", "unsettled", "wired"]>;
43
+ environment: z.ZodEnum<["co-sleeping", "contact-napping", "baby-cot", "motion-nap", "other"]>;
44
+ timeToSleep: z.ZodEnum<["less-than-10-mins", "10-to-20-mins", "20-to-30-mins", "30-to-40-mins", "more-than-60-mins"]>;
45
+ }, "strict", z.ZodTypeAny, {
46
+ type: "day" | "night";
47
+ date: string;
48
+ start: string;
49
+ end: string;
50
+ mood: "content" | "restless" | "unsettled" | "wired";
51
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
52
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
53
+ }, {
54
+ type: "day" | "night";
55
+ date: string;
56
+ start: string;
57
+ end: string;
58
+ mood: "content" | "restless" | "unsettled" | "wired";
59
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
60
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
61
+ }>;
62
+ export declare const nappiesActivityDetailsSchema: z.ZodObject<{
63
+ date: z.ZodString;
64
+ time: z.ZodString;
65
+ type: z.ZodArray<z.ZodEnum<["wet", "dirty"]>, "many">;
66
+ imageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ type: ("dirty" | "wet")[];
69
+ date: string;
70
+ time: string;
71
+ imageURL?: string | null | undefined;
72
+ }, {
73
+ type: ("dirty" | "wet")[];
74
+ date: string;
75
+ time: string;
76
+ imageURL?: string | null | undefined;
77
+ }>;
78
+ export declare const pumpingActivityDetailsSchema: z.ZodObject<{
79
+ date: z.ZodString;
80
+ start: z.ZodString;
81
+ end: z.ZodString;
82
+ side: z.ZodEnum<["left", "right"]>;
83
+ amount: z.ZodNumber;
84
+ unit: z.ZodEnum<["ml", "oz"]>;
85
+ }, "strict", z.ZodTypeAny, {
86
+ date: string;
87
+ start: string;
88
+ end: string;
89
+ side: "left" | "right";
90
+ amount: number;
91
+ unit: "ml" | "oz";
92
+ }, {
93
+ date: string;
94
+ start: string;
95
+ end: string;
96
+ side: "left" | "right";
97
+ amount: number;
98
+ unit: "ml" | "oz";
99
+ }>;
100
+ export declare const medicationActivityDetailsSchema: z.ZodObject<{
101
+ date: z.ZodString;
102
+ time: z.ZodString;
103
+ medicationName: z.ZodString;
104
+ }, "strict", z.ZodTypeAny, {
105
+ date: string;
106
+ time: string;
107
+ medicationName: string;
108
+ }, {
109
+ date: string;
110
+ time: string;
111
+ medicationName: string;
112
+ }>;
113
+ export declare const solidsActivityDetailsSchema: z.ZodObject<{
114
+ date: z.ZodString;
115
+ time: z.ZodString;
116
+ allergicReaction: z.ZodBoolean;
117
+ allergicReactionNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ accidentalExposure: z.ZodOptional<z.ZodBoolean>;
119
+ accidentalExposureNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ ladderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ ladderStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ }, "strict", z.ZodTypeAny, {
123
+ date: string;
124
+ time: string;
125
+ allergicReaction: boolean;
126
+ allergicReactionNote?: string | null | undefined;
127
+ accidentalExposure?: boolean | undefined;
128
+ accidentalExposureNote?: string | null | undefined;
129
+ ladderId?: string | null | undefined;
130
+ ladderStageId?: string | null | undefined;
131
+ }, {
132
+ date: string;
133
+ time: string;
134
+ allergicReaction: boolean;
135
+ allergicReactionNote?: string | null | undefined;
136
+ accidentalExposure?: boolean | undefined;
137
+ accidentalExposureNote?: string | null | undefined;
138
+ ladderId?: string | null | undefined;
139
+ ladderStageId?: string | null | undefined;
140
+ }>;
141
+ export declare const activityDetailsSchemas: {
142
+ breastfeed: z.ZodObject<{
143
+ date: z.ZodString;
144
+ start: z.ZodString;
145
+ end: z.ZodString;
146
+ side: z.ZodEnum<["left", "right"]>;
147
+ }, "strict", z.ZodTypeAny, {
148
+ date: string;
149
+ start: string;
150
+ end: string;
151
+ side: "left" | "right";
152
+ }, {
153
+ date: string;
154
+ start: string;
155
+ end: string;
156
+ side: "left" | "right";
157
+ }>;
158
+ bottles: z.ZodObject<{
159
+ date: z.ZodString;
160
+ time: z.ZodString;
161
+ amount: z.ZodNumber;
162
+ unit: z.ZodEnum<["ml", "oz"]>;
163
+ type: z.ZodEnum<["breastmilk", "formula"]>;
164
+ }, "strict", z.ZodTypeAny, {
165
+ type: "breastmilk" | "formula";
166
+ date: string;
167
+ time: string;
168
+ amount: number;
169
+ unit: "ml" | "oz";
170
+ }, {
171
+ type: "breastmilk" | "formula";
172
+ date: string;
173
+ time: string;
174
+ amount: number;
175
+ unit: "ml" | "oz";
176
+ }>;
177
+ sleep: z.ZodObject<{
178
+ date: z.ZodString;
179
+ start: z.ZodString;
180
+ end: z.ZodString;
181
+ type: z.ZodEnum<["day", "night"]>;
182
+ mood: z.ZodEnum<["content", "restless", "unsettled", "wired"]>;
183
+ environment: z.ZodEnum<["co-sleeping", "contact-napping", "baby-cot", "motion-nap", "other"]>;
184
+ timeToSleep: z.ZodEnum<["less-than-10-mins", "10-to-20-mins", "20-to-30-mins", "30-to-40-mins", "more-than-60-mins"]>;
185
+ }, "strict", z.ZodTypeAny, {
186
+ type: "day" | "night";
187
+ date: string;
188
+ start: string;
189
+ end: string;
190
+ mood: "content" | "restless" | "unsettled" | "wired";
191
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
192
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
193
+ }, {
194
+ type: "day" | "night";
195
+ date: string;
196
+ start: string;
197
+ end: string;
198
+ mood: "content" | "restless" | "unsettled" | "wired";
199
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
200
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
201
+ }>;
202
+ nappies: z.ZodObject<{
203
+ date: z.ZodString;
204
+ time: z.ZodString;
205
+ type: z.ZodArray<z.ZodEnum<["wet", "dirty"]>, "many">;
206
+ imageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
+ }, "strict", z.ZodTypeAny, {
208
+ type: ("dirty" | "wet")[];
209
+ date: string;
210
+ time: string;
211
+ imageURL?: string | null | undefined;
212
+ }, {
213
+ type: ("dirty" | "wet")[];
214
+ date: string;
215
+ time: string;
216
+ imageURL?: string | null | undefined;
217
+ }>;
218
+ pumping: z.ZodObject<{
219
+ date: z.ZodString;
220
+ start: z.ZodString;
221
+ end: z.ZodString;
222
+ side: z.ZodEnum<["left", "right"]>;
223
+ amount: z.ZodNumber;
224
+ unit: z.ZodEnum<["ml", "oz"]>;
225
+ }, "strict", z.ZodTypeAny, {
226
+ date: string;
227
+ start: string;
228
+ end: string;
229
+ side: "left" | "right";
230
+ amount: number;
231
+ unit: "ml" | "oz";
232
+ }, {
233
+ date: string;
234
+ start: string;
235
+ end: string;
236
+ side: "left" | "right";
237
+ amount: number;
238
+ unit: "ml" | "oz";
239
+ }>;
240
+ medication: z.ZodObject<{
241
+ date: z.ZodString;
242
+ time: z.ZodString;
243
+ medicationName: z.ZodString;
244
+ }, "strict", z.ZodTypeAny, {
245
+ date: string;
246
+ time: string;
247
+ medicationName: string;
248
+ }, {
249
+ date: string;
250
+ time: string;
251
+ medicationName: string;
252
+ }>;
253
+ solids: z.ZodObject<{
254
+ date: z.ZodString;
255
+ time: z.ZodString;
256
+ allergicReaction: z.ZodBoolean;
257
+ allergicReactionNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ accidentalExposure: z.ZodOptional<z.ZodBoolean>;
259
+ accidentalExposureNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
+ ladderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ ladderStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ }, "strict", z.ZodTypeAny, {
263
+ date: string;
264
+ time: string;
265
+ allergicReaction: boolean;
266
+ allergicReactionNote?: string | null | undefined;
267
+ accidentalExposure?: boolean | undefined;
268
+ accidentalExposureNote?: string | null | undefined;
269
+ ladderId?: string | null | undefined;
270
+ ladderStageId?: string | null | undefined;
271
+ }, {
272
+ date: string;
273
+ time: string;
274
+ allergicReaction: boolean;
275
+ allergicReactionNote?: string | null | undefined;
276
+ accidentalExposure?: boolean | undefined;
277
+ accidentalExposureNote?: string | null | undefined;
278
+ ladderId?: string | null | undefined;
279
+ ladderStageId?: string | null | undefined;
280
+ }>;
281
+ };
282
+ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodObject<{
283
+ date: z.ZodString;
284
+ start: z.ZodString;
285
+ end: z.ZodString;
286
+ side: z.ZodEnum<["left", "right"]>;
287
+ }, "strict", z.ZodTypeAny, {
288
+ date: string;
289
+ start: string;
290
+ end: string;
291
+ side: "left" | "right";
292
+ }, {
293
+ date: string;
294
+ start: string;
295
+ end: string;
296
+ side: "left" | "right";
297
+ }>, z.ZodObject<{
298
+ date: z.ZodString;
299
+ time: z.ZodString;
300
+ amount: z.ZodNumber;
301
+ unit: z.ZodEnum<["ml", "oz"]>;
302
+ type: z.ZodEnum<["breastmilk", "formula"]>;
303
+ }, "strict", z.ZodTypeAny, {
304
+ type: "breastmilk" | "formula";
305
+ date: string;
306
+ time: string;
307
+ amount: number;
308
+ unit: "ml" | "oz";
309
+ }, {
310
+ type: "breastmilk" | "formula";
311
+ date: string;
312
+ time: string;
313
+ amount: number;
314
+ unit: "ml" | "oz";
315
+ }>, z.ZodObject<{
316
+ date: z.ZodString;
317
+ start: z.ZodString;
318
+ end: z.ZodString;
319
+ type: z.ZodEnum<["day", "night"]>;
320
+ mood: z.ZodEnum<["content", "restless", "unsettled", "wired"]>;
321
+ environment: z.ZodEnum<["co-sleeping", "contact-napping", "baby-cot", "motion-nap", "other"]>;
322
+ timeToSleep: z.ZodEnum<["less-than-10-mins", "10-to-20-mins", "20-to-30-mins", "30-to-40-mins", "more-than-60-mins"]>;
323
+ }, "strict", z.ZodTypeAny, {
324
+ type: "day" | "night";
325
+ date: string;
326
+ start: string;
327
+ end: string;
328
+ mood: "content" | "restless" | "unsettled" | "wired";
329
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
330
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
331
+ }, {
332
+ type: "day" | "night";
333
+ date: string;
334
+ start: string;
335
+ end: string;
336
+ mood: "content" | "restless" | "unsettled" | "wired";
337
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
338
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
339
+ }>, z.ZodObject<{
340
+ date: z.ZodString;
341
+ time: z.ZodString;
342
+ type: z.ZodArray<z.ZodEnum<["wet", "dirty"]>, "many">;
343
+ imageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
+ }, "strict", z.ZodTypeAny, {
345
+ type: ("dirty" | "wet")[];
346
+ date: string;
347
+ time: string;
348
+ imageURL?: string | null | undefined;
349
+ }, {
350
+ type: ("dirty" | "wet")[];
351
+ date: string;
352
+ time: string;
353
+ imageURL?: string | null | undefined;
354
+ }>, z.ZodObject<{
355
+ date: z.ZodString;
356
+ start: z.ZodString;
357
+ end: z.ZodString;
358
+ side: z.ZodEnum<["left", "right"]>;
359
+ amount: z.ZodNumber;
360
+ unit: z.ZodEnum<["ml", "oz"]>;
361
+ }, "strict", z.ZodTypeAny, {
362
+ date: string;
363
+ start: string;
364
+ end: string;
365
+ side: "left" | "right";
366
+ amount: number;
367
+ unit: "ml" | "oz";
368
+ }, {
369
+ date: string;
370
+ start: string;
371
+ end: string;
372
+ side: "left" | "right";
373
+ amount: number;
374
+ unit: "ml" | "oz";
375
+ }>, z.ZodObject<{
376
+ date: z.ZodString;
377
+ time: z.ZodString;
378
+ medicationName: z.ZodString;
379
+ }, "strict", z.ZodTypeAny, {
380
+ date: string;
381
+ time: string;
382
+ medicationName: string;
383
+ }, {
384
+ date: string;
385
+ time: string;
386
+ medicationName: string;
387
+ }>, z.ZodObject<{
388
+ date: z.ZodString;
389
+ time: z.ZodString;
390
+ allergicReaction: z.ZodBoolean;
391
+ allergicReactionNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ accidentalExposure: z.ZodOptional<z.ZodBoolean>;
393
+ accidentalExposureNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ ladderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
395
+ ladderStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
396
+ }, "strict", z.ZodTypeAny, {
397
+ date: string;
398
+ time: string;
399
+ allergicReaction: boolean;
400
+ allergicReactionNote?: string | null | undefined;
401
+ accidentalExposure?: boolean | undefined;
402
+ accidentalExposureNote?: string | null | undefined;
403
+ ladderId?: string | null | undefined;
404
+ ladderStageId?: string | null | undefined;
405
+ }, {
406
+ date: string;
407
+ time: string;
408
+ allergicReaction: boolean;
409
+ allergicReactionNote?: string | null | undefined;
410
+ accidentalExposure?: boolean | undefined;
411
+ accidentalExposureNote?: string | null | undefined;
412
+ ladderId?: string | null | undefined;
413
+ ladderStageId?: string | null | undefined;
414
+ }>]>;
415
+ export declare const babySchema: z.ZodObject<{
416
+ id: z.ZodString;
417
+ familyUserId: z.ZodString;
418
+ name: z.ZodString;
419
+ birthday: z.ZodString;
420
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<["boy", "girl", "other"]>>>;
421
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ createdAt: z.ZodString;
423
+ updatedAt: z.ZodString;
424
+ updatedByUserId: z.ZodString;
425
+ }, "strip", z.ZodTypeAny, {
426
+ id: string;
427
+ name: string;
428
+ familyUserId: string;
429
+ createdAt: string;
430
+ updatedAt: string;
431
+ birthday: string;
432
+ updatedByUserId: string;
433
+ gender?: "other" | "boy" | "girl" | null | undefined;
434
+ profileAssetId?: string | null | undefined;
435
+ }, {
436
+ id: string;
437
+ name: string;
438
+ familyUserId: string;
439
+ createdAt: string;
440
+ updatedAt: string;
441
+ birthday: string;
442
+ updatedByUserId: string;
443
+ gender?: "other" | "boy" | "girl" | null | undefined;
444
+ profileAssetId?: string | null | undefined;
445
+ }>;
446
+ export declare const babyWriteRequestSchema: z.ZodObject<{
447
+ name: z.ZodOptional<z.ZodString>;
448
+ birthday: z.ZodOptional<z.ZodString>;
449
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<["boy", "girl", "other"]>>>;
450
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ name?: string | undefined;
453
+ birthday?: string | undefined;
454
+ gender?: "other" | "boy" | "girl" | null | undefined;
455
+ profileAssetId?: string | null | undefined;
456
+ }, {
457
+ name?: string | undefined;
458
+ birthday?: string | undefined;
459
+ gender?: "other" | "boy" | "girl" | null | undefined;
460
+ profileAssetId?: string | null | undefined;
461
+ }>;
462
+ export declare const activitySchema: z.ZodObject<{
463
+ id: z.ZodString;
464
+ familyUserId: z.ZodString;
465
+ babyId: z.ZodString;
466
+ activityType: z.ZodEnum<["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"]>;
467
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ details: z.ZodUnion<[z.ZodObject<{
469
+ date: z.ZodString;
470
+ start: z.ZodString;
471
+ end: z.ZodString;
472
+ side: z.ZodEnum<["left", "right"]>;
473
+ }, "strict", z.ZodTypeAny, {
474
+ date: string;
475
+ start: string;
476
+ end: string;
477
+ side: "left" | "right";
478
+ }, {
479
+ date: string;
480
+ start: string;
481
+ end: string;
482
+ side: "left" | "right";
483
+ }>, z.ZodObject<{
484
+ date: z.ZodString;
485
+ time: z.ZodString;
486
+ amount: z.ZodNumber;
487
+ unit: z.ZodEnum<["ml", "oz"]>;
488
+ type: z.ZodEnum<["breastmilk", "formula"]>;
489
+ }, "strict", z.ZodTypeAny, {
490
+ type: "breastmilk" | "formula";
491
+ date: string;
492
+ time: string;
493
+ amount: number;
494
+ unit: "ml" | "oz";
495
+ }, {
496
+ type: "breastmilk" | "formula";
497
+ date: string;
498
+ time: string;
499
+ amount: number;
500
+ unit: "ml" | "oz";
501
+ }>, z.ZodObject<{
502
+ date: z.ZodString;
503
+ start: z.ZodString;
504
+ end: z.ZodString;
505
+ type: z.ZodEnum<["day", "night"]>;
506
+ mood: z.ZodEnum<["content", "restless", "unsettled", "wired"]>;
507
+ environment: z.ZodEnum<["co-sleeping", "contact-napping", "baby-cot", "motion-nap", "other"]>;
508
+ timeToSleep: z.ZodEnum<["less-than-10-mins", "10-to-20-mins", "20-to-30-mins", "30-to-40-mins", "more-than-60-mins"]>;
509
+ }, "strict", z.ZodTypeAny, {
510
+ type: "day" | "night";
511
+ date: string;
512
+ start: string;
513
+ end: string;
514
+ mood: "content" | "restless" | "unsettled" | "wired";
515
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
516
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
517
+ }, {
518
+ type: "day" | "night";
519
+ date: string;
520
+ start: string;
521
+ end: string;
522
+ mood: "content" | "restless" | "unsettled" | "wired";
523
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
524
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
525
+ }>, z.ZodObject<{
526
+ date: z.ZodString;
527
+ time: z.ZodString;
528
+ type: z.ZodArray<z.ZodEnum<["wet", "dirty"]>, "many">;
529
+ imageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
530
+ }, "strict", z.ZodTypeAny, {
531
+ type: ("dirty" | "wet")[];
532
+ date: string;
533
+ time: string;
534
+ imageURL?: string | null | undefined;
535
+ }, {
536
+ type: ("dirty" | "wet")[];
537
+ date: string;
538
+ time: string;
539
+ imageURL?: string | null | undefined;
540
+ }>, z.ZodObject<{
541
+ date: z.ZodString;
542
+ start: z.ZodString;
543
+ end: z.ZodString;
544
+ side: z.ZodEnum<["left", "right"]>;
545
+ amount: z.ZodNumber;
546
+ unit: z.ZodEnum<["ml", "oz"]>;
547
+ }, "strict", z.ZodTypeAny, {
548
+ date: string;
549
+ start: string;
550
+ end: string;
551
+ side: "left" | "right";
552
+ amount: number;
553
+ unit: "ml" | "oz";
554
+ }, {
555
+ date: string;
556
+ start: string;
557
+ end: string;
558
+ side: "left" | "right";
559
+ amount: number;
560
+ unit: "ml" | "oz";
561
+ }>, z.ZodObject<{
562
+ date: z.ZodString;
563
+ time: z.ZodString;
564
+ medicationName: z.ZodString;
565
+ }, "strict", z.ZodTypeAny, {
566
+ date: string;
567
+ time: string;
568
+ medicationName: string;
569
+ }, {
570
+ date: string;
571
+ time: string;
572
+ medicationName: string;
573
+ }>, z.ZodObject<{
574
+ date: z.ZodString;
575
+ time: z.ZodString;
576
+ allergicReaction: z.ZodBoolean;
577
+ allergicReactionNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
+ accidentalExposure: z.ZodOptional<z.ZodBoolean>;
579
+ accidentalExposureNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
+ ladderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
581
+ ladderStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
582
+ }, "strict", z.ZodTypeAny, {
583
+ date: string;
584
+ time: string;
585
+ allergicReaction: boolean;
586
+ allergicReactionNote?: string | null | undefined;
587
+ accidentalExposure?: boolean | undefined;
588
+ accidentalExposureNote?: string | null | undefined;
589
+ ladderId?: string | null | undefined;
590
+ ladderStageId?: string | null | undefined;
591
+ }, {
592
+ date: string;
593
+ time: string;
594
+ allergicReaction: boolean;
595
+ allergicReactionNote?: string | null | undefined;
596
+ accidentalExposure?: boolean | undefined;
597
+ accidentalExposureNote?: string | null | undefined;
598
+ ladderId?: string | null | undefined;
599
+ ladderStageId?: string | null | undefined;
600
+ }>]>;
601
+ occurredAt: z.ZodString;
602
+ createdAt: z.ZodString;
603
+ updatedAt: z.ZodString;
604
+ createdByUserId: z.ZodString;
605
+ updatedByUserId: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ details: {
608
+ date: string;
609
+ start: string;
610
+ end: string;
611
+ side: "left" | "right";
612
+ } | {
613
+ type: "breastmilk" | "formula";
614
+ date: string;
615
+ time: string;
616
+ amount: number;
617
+ unit: "ml" | "oz";
618
+ } | {
619
+ type: "day" | "night";
620
+ date: string;
621
+ start: string;
622
+ end: string;
623
+ mood: "content" | "restless" | "unsettled" | "wired";
624
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
625
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
626
+ } | {
627
+ type: ("dirty" | "wet")[];
628
+ date: string;
629
+ time: string;
630
+ imageURL?: string | null | undefined;
631
+ } | {
632
+ date: string;
633
+ start: string;
634
+ end: string;
635
+ side: "left" | "right";
636
+ amount: number;
637
+ unit: "ml" | "oz";
638
+ } | {
639
+ date: string;
640
+ time: string;
641
+ medicationName: string;
642
+ } | {
643
+ date: string;
644
+ time: string;
645
+ allergicReaction: boolean;
646
+ allergicReactionNote?: string | null | undefined;
647
+ accidentalExposure?: boolean | undefined;
648
+ accidentalExposureNote?: string | null | undefined;
649
+ ladderId?: string | null | undefined;
650
+ ladderStageId?: string | null | undefined;
651
+ };
652
+ id: string;
653
+ familyUserId: string;
654
+ createdAt: string;
655
+ updatedAt: string;
656
+ babyId: string;
657
+ updatedByUserId: string;
658
+ activityType: "breastfeed" | "bottles" | "sleep" | "nappies" | "pumping" | "medication" | "solids";
659
+ occurredAt: string;
660
+ createdByUserId: string;
661
+ note?: string | null | undefined;
662
+ }, {
663
+ details: {
664
+ date: string;
665
+ start: string;
666
+ end: string;
667
+ side: "left" | "right";
668
+ } | {
669
+ type: "breastmilk" | "formula";
670
+ date: string;
671
+ time: string;
672
+ amount: number;
673
+ unit: "ml" | "oz";
674
+ } | {
675
+ type: "day" | "night";
676
+ date: string;
677
+ start: string;
678
+ end: string;
679
+ mood: "content" | "restless" | "unsettled" | "wired";
680
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
681
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
682
+ } | {
683
+ type: ("dirty" | "wet")[];
684
+ date: string;
685
+ time: string;
686
+ imageURL?: string | null | undefined;
687
+ } | {
688
+ date: string;
689
+ start: string;
690
+ end: string;
691
+ side: "left" | "right";
692
+ amount: number;
693
+ unit: "ml" | "oz";
694
+ } | {
695
+ date: string;
696
+ time: string;
697
+ medicationName: string;
698
+ } | {
699
+ date: string;
700
+ time: string;
701
+ allergicReaction: boolean;
702
+ allergicReactionNote?: string | null | undefined;
703
+ accidentalExposure?: boolean | undefined;
704
+ accidentalExposureNote?: string | null | undefined;
705
+ ladderId?: string | null | undefined;
706
+ ladderStageId?: string | null | undefined;
707
+ };
708
+ id: string;
709
+ familyUserId: string;
710
+ createdAt: string;
711
+ updatedAt: string;
712
+ babyId: string;
713
+ updatedByUserId: string;
714
+ activityType: "breastfeed" | "bottles" | "sleep" | "nappies" | "pumping" | "medication" | "solids";
715
+ occurredAt: string;
716
+ createdByUserId: string;
717
+ note?: string | null | undefined;
718
+ }>;
719
+ export declare const activityWriteRequestSchema: z.ZodObject<{
720
+ babyId: z.ZodOptional<z.ZodString>;
721
+ activityType: z.ZodOptional<z.ZodEnum<["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"]>>;
722
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
723
+ details: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
724
+ date: z.ZodString;
725
+ start: z.ZodString;
726
+ end: z.ZodString;
727
+ side: z.ZodEnum<["left", "right"]>;
728
+ }, "strict", z.ZodTypeAny, {
729
+ date: string;
730
+ start: string;
731
+ end: string;
732
+ side: "left" | "right";
733
+ }, {
734
+ date: string;
735
+ start: string;
736
+ end: string;
737
+ side: "left" | "right";
738
+ }>, z.ZodObject<{
739
+ date: z.ZodString;
740
+ time: z.ZodString;
741
+ amount: z.ZodNumber;
742
+ unit: z.ZodEnum<["ml", "oz"]>;
743
+ type: z.ZodEnum<["breastmilk", "formula"]>;
744
+ }, "strict", z.ZodTypeAny, {
745
+ type: "breastmilk" | "formula";
746
+ date: string;
747
+ time: string;
748
+ amount: number;
749
+ unit: "ml" | "oz";
750
+ }, {
751
+ type: "breastmilk" | "formula";
752
+ date: string;
753
+ time: string;
754
+ amount: number;
755
+ unit: "ml" | "oz";
756
+ }>, z.ZodObject<{
757
+ date: z.ZodString;
758
+ start: z.ZodString;
759
+ end: z.ZodString;
760
+ type: z.ZodEnum<["day", "night"]>;
761
+ mood: z.ZodEnum<["content", "restless", "unsettled", "wired"]>;
762
+ environment: z.ZodEnum<["co-sleeping", "contact-napping", "baby-cot", "motion-nap", "other"]>;
763
+ timeToSleep: z.ZodEnum<["less-than-10-mins", "10-to-20-mins", "20-to-30-mins", "30-to-40-mins", "more-than-60-mins"]>;
764
+ }, "strict", z.ZodTypeAny, {
765
+ type: "day" | "night";
766
+ date: string;
767
+ start: string;
768
+ end: string;
769
+ mood: "content" | "restless" | "unsettled" | "wired";
770
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
771
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
772
+ }, {
773
+ type: "day" | "night";
774
+ date: string;
775
+ start: string;
776
+ end: string;
777
+ mood: "content" | "restless" | "unsettled" | "wired";
778
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
779
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
780
+ }>, z.ZodObject<{
781
+ date: z.ZodString;
782
+ time: z.ZodString;
783
+ type: z.ZodArray<z.ZodEnum<["wet", "dirty"]>, "many">;
784
+ imageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ }, "strict", z.ZodTypeAny, {
786
+ type: ("dirty" | "wet")[];
787
+ date: string;
788
+ time: string;
789
+ imageURL?: string | null | undefined;
790
+ }, {
791
+ type: ("dirty" | "wet")[];
792
+ date: string;
793
+ time: string;
794
+ imageURL?: string | null | undefined;
795
+ }>, z.ZodObject<{
796
+ date: z.ZodString;
797
+ start: z.ZodString;
798
+ end: z.ZodString;
799
+ side: z.ZodEnum<["left", "right"]>;
800
+ amount: z.ZodNumber;
801
+ unit: z.ZodEnum<["ml", "oz"]>;
802
+ }, "strict", z.ZodTypeAny, {
803
+ date: string;
804
+ start: string;
805
+ end: string;
806
+ side: "left" | "right";
807
+ amount: number;
808
+ unit: "ml" | "oz";
809
+ }, {
810
+ date: string;
811
+ start: string;
812
+ end: string;
813
+ side: "left" | "right";
814
+ amount: number;
815
+ unit: "ml" | "oz";
816
+ }>, z.ZodObject<{
817
+ date: z.ZodString;
818
+ time: z.ZodString;
819
+ medicationName: z.ZodString;
820
+ }, "strict", z.ZodTypeAny, {
821
+ date: string;
822
+ time: string;
823
+ medicationName: string;
824
+ }, {
825
+ date: string;
826
+ time: string;
827
+ medicationName: string;
828
+ }>, z.ZodObject<{
829
+ date: z.ZodString;
830
+ time: z.ZodString;
831
+ allergicReaction: z.ZodBoolean;
832
+ allergicReactionNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
833
+ accidentalExposure: z.ZodOptional<z.ZodBoolean>;
834
+ accidentalExposureNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
+ ladderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
836
+ ladderStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
+ }, "strict", z.ZodTypeAny, {
838
+ date: string;
839
+ time: string;
840
+ allergicReaction: boolean;
841
+ allergicReactionNote?: string | null | undefined;
842
+ accidentalExposure?: boolean | undefined;
843
+ accidentalExposureNote?: string | null | undefined;
844
+ ladderId?: string | null | undefined;
845
+ ladderStageId?: string | null | undefined;
846
+ }, {
847
+ date: string;
848
+ time: string;
849
+ allergicReaction: boolean;
850
+ allergicReactionNote?: string | null | undefined;
851
+ accidentalExposure?: boolean | undefined;
852
+ accidentalExposureNote?: string | null | undefined;
853
+ ladderId?: string | null | undefined;
854
+ ladderStageId?: string | null | undefined;
855
+ }>]>>;
856
+ occurredAt: z.ZodOptional<z.ZodString>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ details?: {
859
+ date: string;
860
+ start: string;
861
+ end: string;
862
+ side: "left" | "right";
863
+ } | {
864
+ type: "breastmilk" | "formula";
865
+ date: string;
866
+ time: string;
867
+ amount: number;
868
+ unit: "ml" | "oz";
869
+ } | {
870
+ type: "day" | "night";
871
+ date: string;
872
+ start: string;
873
+ end: string;
874
+ mood: "content" | "restless" | "unsettled" | "wired";
875
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
876
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
877
+ } | {
878
+ type: ("dirty" | "wet")[];
879
+ date: string;
880
+ time: string;
881
+ imageURL?: string | null | undefined;
882
+ } | {
883
+ date: string;
884
+ start: string;
885
+ end: string;
886
+ side: "left" | "right";
887
+ amount: number;
888
+ unit: "ml" | "oz";
889
+ } | {
890
+ date: string;
891
+ time: string;
892
+ medicationName: string;
893
+ } | {
894
+ date: string;
895
+ time: string;
896
+ allergicReaction: boolean;
897
+ allergicReactionNote?: string | null | undefined;
898
+ accidentalExposure?: boolean | undefined;
899
+ accidentalExposureNote?: string | null | undefined;
900
+ ladderId?: string | null | undefined;
901
+ ladderStageId?: string | null | undefined;
902
+ } | undefined;
903
+ babyId?: string | undefined;
904
+ activityType?: "breastfeed" | "bottles" | "sleep" | "nappies" | "pumping" | "medication" | "solids" | undefined;
905
+ note?: string | null | undefined;
906
+ occurredAt?: string | undefined;
907
+ }, {
908
+ details?: {
909
+ date: string;
910
+ start: string;
911
+ end: string;
912
+ side: "left" | "right";
913
+ } | {
914
+ type: "breastmilk" | "formula";
915
+ date: string;
916
+ time: string;
917
+ amount: number;
918
+ unit: "ml" | "oz";
919
+ } | {
920
+ type: "day" | "night";
921
+ date: string;
922
+ start: string;
923
+ end: string;
924
+ mood: "content" | "restless" | "unsettled" | "wired";
925
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
926
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
927
+ } | {
928
+ type: ("dirty" | "wet")[];
929
+ date: string;
930
+ time: string;
931
+ imageURL?: string | null | undefined;
932
+ } | {
933
+ date: string;
934
+ start: string;
935
+ end: string;
936
+ side: "left" | "right";
937
+ amount: number;
938
+ unit: "ml" | "oz";
939
+ } | {
940
+ date: string;
941
+ time: string;
942
+ medicationName: string;
943
+ } | {
944
+ date: string;
945
+ time: string;
946
+ allergicReaction: boolean;
947
+ allergicReactionNote?: string | null | undefined;
948
+ accidentalExposure?: boolean | undefined;
949
+ accidentalExposureNote?: string | null | undefined;
950
+ ladderId?: string | null | undefined;
951
+ ladderStageId?: string | null | undefined;
952
+ } | undefined;
953
+ babyId?: string | undefined;
954
+ activityType?: "breastfeed" | "bottles" | "sleep" | "nappies" | "pumping" | "medication" | "solids" | undefined;
955
+ note?: string | null | undefined;
956
+ occurredAt?: string | undefined;
957
+ }>;
958
+ export declare const visibleActivityPreferencesSchema: z.ZodObject<{
959
+ breastfeed: z.ZodBoolean;
960
+ bottles: z.ZodBoolean;
961
+ sleep: z.ZodBoolean;
962
+ nappies: z.ZodBoolean;
963
+ pumping: z.ZodBoolean;
964
+ medication: z.ZodBoolean;
965
+ solids: z.ZodBoolean;
966
+ }, "strict", z.ZodTypeAny, {
967
+ breastfeed: boolean;
968
+ bottles: boolean;
969
+ sleep: boolean;
970
+ nappies: boolean;
971
+ pumping: boolean;
972
+ medication: boolean;
973
+ solids: boolean;
974
+ }, {
975
+ breastfeed: boolean;
976
+ bottles: boolean;
977
+ sleep: boolean;
978
+ nappies: boolean;
979
+ pumping: boolean;
980
+ medication: boolean;
981
+ solids: boolean;
982
+ }>;
983
+ export declare const homeActivityPreferencesSchema: z.ZodObject<{
984
+ visibleActivities: z.ZodObject<{
985
+ breastfeed: z.ZodBoolean;
986
+ bottles: z.ZodBoolean;
987
+ sleep: z.ZodBoolean;
988
+ nappies: z.ZodBoolean;
989
+ pumping: z.ZodBoolean;
990
+ medication: z.ZodBoolean;
991
+ solids: z.ZodBoolean;
992
+ }, "strict", z.ZodTypeAny, {
993
+ breastfeed: boolean;
994
+ bottles: boolean;
995
+ sleep: boolean;
996
+ nappies: boolean;
997
+ pumping: boolean;
998
+ medication: boolean;
999
+ solids: boolean;
1000
+ }, {
1001
+ breastfeed: boolean;
1002
+ bottles: boolean;
1003
+ sleep: boolean;
1004
+ nappies: boolean;
1005
+ pumping: boolean;
1006
+ medication: boolean;
1007
+ solids: boolean;
1008
+ }>;
1009
+ showAllergyLadderBubble: z.ZodBoolean;
1010
+ }, "strict", z.ZodTypeAny, {
1011
+ visibleActivities: {
1012
+ breastfeed: boolean;
1013
+ bottles: boolean;
1014
+ sleep: boolean;
1015
+ nappies: boolean;
1016
+ pumping: boolean;
1017
+ medication: boolean;
1018
+ solids: boolean;
1019
+ };
1020
+ showAllergyLadderBubble: boolean;
1021
+ }, {
1022
+ visibleActivities: {
1023
+ breastfeed: boolean;
1024
+ bottles: boolean;
1025
+ sleep: boolean;
1026
+ nappies: boolean;
1027
+ pumping: boolean;
1028
+ medication: boolean;
1029
+ solids: boolean;
1030
+ };
1031
+ showAllergyLadderBubble: boolean;
1032
+ }>;
1033
+ export declare const updateHomeActivityPreferencesRequestSchema: z.ZodObject<{
1034
+ visibleActivities: z.ZodOptional<z.ZodObject<{
1035
+ breastfeed: z.ZodOptional<z.ZodBoolean>;
1036
+ bottles: z.ZodOptional<z.ZodBoolean>;
1037
+ sleep: z.ZodOptional<z.ZodBoolean>;
1038
+ nappies: z.ZodOptional<z.ZodBoolean>;
1039
+ pumping: z.ZodOptional<z.ZodBoolean>;
1040
+ medication: z.ZodOptional<z.ZodBoolean>;
1041
+ solids: z.ZodOptional<z.ZodBoolean>;
1042
+ }, "strict", z.ZodTypeAny, {
1043
+ breastfeed?: boolean | undefined;
1044
+ bottles?: boolean | undefined;
1045
+ sleep?: boolean | undefined;
1046
+ nappies?: boolean | undefined;
1047
+ pumping?: boolean | undefined;
1048
+ medication?: boolean | undefined;
1049
+ solids?: boolean | undefined;
1050
+ }, {
1051
+ breastfeed?: boolean | undefined;
1052
+ bottles?: boolean | undefined;
1053
+ sleep?: boolean | undefined;
1054
+ nappies?: boolean | undefined;
1055
+ pumping?: boolean | undefined;
1056
+ medication?: boolean | undefined;
1057
+ solids?: boolean | undefined;
1058
+ }>>;
1059
+ showAllergyLadderBubble: z.ZodOptional<z.ZodBoolean>;
1060
+ }, "strict", z.ZodTypeAny, {
1061
+ visibleActivities?: {
1062
+ breastfeed?: boolean | undefined;
1063
+ bottles?: boolean | undefined;
1064
+ sleep?: boolean | undefined;
1065
+ nappies?: boolean | undefined;
1066
+ pumping?: boolean | undefined;
1067
+ medication?: boolean | undefined;
1068
+ solids?: boolean | undefined;
1069
+ } | undefined;
1070
+ showAllergyLadderBubble?: boolean | undefined;
1071
+ }, {
1072
+ visibleActivities?: {
1073
+ breastfeed?: boolean | undefined;
1074
+ bottles?: boolean | undefined;
1075
+ sleep?: boolean | undefined;
1076
+ nappies?: boolean | undefined;
1077
+ pumping?: boolean | undefined;
1078
+ medication?: boolean | undefined;
1079
+ solids?: boolean | undefined;
1080
+ } | undefined;
1081
+ showAllergyLadderBubble?: boolean | undefined;
1082
+ }>;
1083
+ export type HomeActivityPreferences = z.infer<typeof homeActivityPreferencesSchema>;
1084
+ export type UpdateHomeActivityPreferencesRequest = z.infer<typeof updateHomeActivityPreferencesRequestSchema>;
1085
+ export declare const defaultHomeActivityPreferences: HomeActivityPreferences;
1086
+ export declare const normalizeHomeActivityPreferences: (input?: unknown) => HomeActivityPreferences;
1087
+ export declare const familySummarySchema: z.ZodObject<{
1088
+ access: z.ZodObject<{
1089
+ session: z.ZodObject<{
1090
+ auth: z.ZodObject<{
1091
+ state: z.ZodLiteral<"authenticated">;
1092
+ authUserId: z.ZodString;
1093
+ authSessionId: z.ZodOptional<z.ZodString>;
1094
+ email: z.ZodOptional<z.ZodString>;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ authUserId: string;
1097
+ state: "authenticated";
1098
+ email?: string | undefined;
1099
+ authSessionId?: string | undefined;
1100
+ }, {
1101
+ authUserId: string;
1102
+ state: "authenticated";
1103
+ email?: string | undefined;
1104
+ authSessionId?: string | undefined;
1105
+ }>;
1106
+ actorUser: z.ZodObject<{
1107
+ id: z.ZodString;
1108
+ authUserId: z.ZodString;
1109
+ email: z.ZodString;
1110
+ name: z.ZodString;
1111
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
1112
+ roles: z.ZodObject<{
1113
+ family: z.ZodBoolean;
1114
+ coach: z.ZodBoolean;
1115
+ superAdmin: z.ZodBoolean;
1116
+ }, "strip", z.ZodTypeAny, {
1117
+ family: boolean;
1118
+ coach: boolean;
1119
+ superAdmin: boolean;
1120
+ }, {
1121
+ family: boolean;
1122
+ coach: boolean;
1123
+ superAdmin: boolean;
1124
+ }>;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ id: string;
1127
+ authUserId: string;
1128
+ email: string;
1129
+ name: string;
1130
+ defaultRole: "family" | "coach" | "superAdmin";
1131
+ roles: {
1132
+ family: boolean;
1133
+ coach: boolean;
1134
+ superAdmin: boolean;
1135
+ };
1136
+ }, {
1137
+ id: string;
1138
+ authUserId: string;
1139
+ email: string;
1140
+ name: string;
1141
+ defaultRole: "family" | "coach" | "superAdmin";
1142
+ roles: {
1143
+ family: boolean;
1144
+ coach: boolean;
1145
+ superAdmin: boolean;
1146
+ };
1147
+ }>;
1148
+ actorRoles: z.ZodObject<{
1149
+ family: z.ZodBoolean;
1150
+ coach: z.ZodBoolean;
1151
+ superAdmin: z.ZodBoolean;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ family: boolean;
1154
+ coach: boolean;
1155
+ superAdmin: boolean;
1156
+ }, {
1157
+ family: boolean;
1158
+ coach: boolean;
1159
+ superAdmin: boolean;
1160
+ }>;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ auth: {
1163
+ authUserId: string;
1164
+ state: "authenticated";
1165
+ email?: string | undefined;
1166
+ authSessionId?: string | undefined;
1167
+ };
1168
+ actorUser: {
1169
+ id: string;
1170
+ authUserId: string;
1171
+ email: string;
1172
+ name: string;
1173
+ defaultRole: "family" | "coach" | "superAdmin";
1174
+ roles: {
1175
+ family: boolean;
1176
+ coach: boolean;
1177
+ superAdmin: boolean;
1178
+ };
1179
+ };
1180
+ actorRoles: {
1181
+ family: boolean;
1182
+ coach: boolean;
1183
+ superAdmin: boolean;
1184
+ };
1185
+ }, {
1186
+ auth: {
1187
+ authUserId: string;
1188
+ state: "authenticated";
1189
+ email?: string | undefined;
1190
+ authSessionId?: string | undefined;
1191
+ };
1192
+ actorUser: {
1193
+ id: string;
1194
+ authUserId: string;
1195
+ email: string;
1196
+ name: string;
1197
+ defaultRole: "family" | "coach" | "superAdmin";
1198
+ roles: {
1199
+ family: boolean;
1200
+ coach: boolean;
1201
+ superAdmin: boolean;
1202
+ };
1203
+ };
1204
+ actorRoles: {
1205
+ family: boolean;
1206
+ coach: boolean;
1207
+ superAdmin: boolean;
1208
+ };
1209
+ }>;
1210
+ subject: z.ZodObject<{
1211
+ subjectUser: z.ZodNullable<z.ZodObject<{
1212
+ id: z.ZodString;
1213
+ authUserId: z.ZodString;
1214
+ email: z.ZodString;
1215
+ name: z.ZodString;
1216
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
1217
+ roles: z.ZodObject<{
1218
+ family: z.ZodBoolean;
1219
+ coach: z.ZodBoolean;
1220
+ superAdmin: z.ZodBoolean;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ family: boolean;
1223
+ coach: boolean;
1224
+ superAdmin: boolean;
1225
+ }, {
1226
+ family: boolean;
1227
+ coach: boolean;
1228
+ superAdmin: boolean;
1229
+ }>;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ id: string;
1232
+ authUserId: string;
1233
+ email: string;
1234
+ name: string;
1235
+ defaultRole: "family" | "coach" | "superAdmin";
1236
+ roles: {
1237
+ family: boolean;
1238
+ coach: boolean;
1239
+ superAdmin: boolean;
1240
+ };
1241
+ }, {
1242
+ id: string;
1243
+ authUserId: string;
1244
+ email: string;
1245
+ name: string;
1246
+ defaultRole: "family" | "coach" | "superAdmin";
1247
+ roles: {
1248
+ family: boolean;
1249
+ coach: boolean;
1250
+ superAdmin: boolean;
1251
+ };
1252
+ }>>;
1253
+ mode: z.ZodEnum<["self", "coachView", "coachAdminView", "superAdminView"]>;
1254
+ permissions: z.ZodObject<{
1255
+ canReadActivities: z.ZodBoolean;
1256
+ canWriteActivities: z.ZodBoolean;
1257
+ canManageSupportDates: z.ZodBoolean;
1258
+ canRevokeAssignment: z.ZodBoolean;
1259
+ canViewAnalysis: z.ZodBoolean;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ canReadActivities: boolean;
1262
+ canWriteActivities: boolean;
1263
+ canManageSupportDates: boolean;
1264
+ canRevokeAssignment: boolean;
1265
+ canViewAnalysis: boolean;
1266
+ }, {
1267
+ canReadActivities: boolean;
1268
+ canWriteActivities: boolean;
1269
+ canManageSupportDates: boolean;
1270
+ canRevokeAssignment: boolean;
1271
+ canViewAnalysis: boolean;
1272
+ }>;
1273
+ assignment: z.ZodNullable<z.ZodObject<{
1274
+ id: z.ZodString;
1275
+ status: z.ZodEnum<["active", "revoked", "transferred", "expired"]>;
1276
+ organizationId: z.ZodString;
1277
+ coachUserId: z.ZodString;
1278
+ familyUserId: z.ZodOptional<z.ZodString>;
1279
+ canViewLogs: z.ZodBoolean;
1280
+ canEditLogs: z.ZodBoolean;
1281
+ canViewAnalysis: z.ZodBoolean;
1282
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ status: "active" | "revoked" | "transferred" | "expired";
1285
+ id: string;
1286
+ canViewAnalysis: boolean;
1287
+ organizationId: string;
1288
+ coachUserId: string;
1289
+ canViewLogs: boolean;
1290
+ canEditLogs: boolean;
1291
+ familyUserId?: string | undefined;
1292
+ revokedAt?: string | null | undefined;
1293
+ }, {
1294
+ status: "active" | "revoked" | "transferred" | "expired";
1295
+ id: string;
1296
+ canViewAnalysis: boolean;
1297
+ organizationId: string;
1298
+ coachUserId: string;
1299
+ canViewLogs: boolean;
1300
+ canEditLogs: boolean;
1301
+ familyUserId?: string | undefined;
1302
+ revokedAt?: string | null | undefined;
1303
+ }>>;
1304
+ organization: z.ZodNullable<z.ZodObject<{
1305
+ id: z.ZodString;
1306
+ name: z.ZodString;
1307
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
1308
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1311
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1312
+ id: string;
1313
+ name: string;
1314
+ }, {
1315
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1316
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1317
+ id: string;
1318
+ name: string;
1319
+ }>>;
1320
+ premium: z.ZodObject<{
1321
+ active: z.ZodBoolean;
1322
+ source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
1323
+ entitlementId: z.ZodOptional<z.ZodString>;
1324
+ organizationId: z.ZodOptional<z.ZodString>;
1325
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1326
+ disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ active: boolean;
1329
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1330
+ organizationId?: string | undefined;
1331
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1332
+ entitlementId?: string | undefined;
1333
+ expiresAt?: string | null | undefined;
1334
+ }, {
1335
+ active: boolean;
1336
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1337
+ organizationId?: string | undefined;
1338
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1339
+ entitlementId?: string | undefined;
1340
+ expiresAt?: string | null | undefined;
1341
+ }>;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ subjectUser: {
1344
+ id: string;
1345
+ authUserId: string;
1346
+ email: string;
1347
+ name: string;
1348
+ defaultRole: "family" | "coach" | "superAdmin";
1349
+ roles: {
1350
+ family: boolean;
1351
+ coach: boolean;
1352
+ superAdmin: boolean;
1353
+ };
1354
+ } | null;
1355
+ mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1356
+ permissions: {
1357
+ canReadActivities: boolean;
1358
+ canWriteActivities: boolean;
1359
+ canManageSupportDates: boolean;
1360
+ canRevokeAssignment: boolean;
1361
+ canViewAnalysis: boolean;
1362
+ };
1363
+ assignment: {
1364
+ status: "active" | "revoked" | "transferred" | "expired";
1365
+ id: string;
1366
+ canViewAnalysis: boolean;
1367
+ organizationId: string;
1368
+ coachUserId: string;
1369
+ canViewLogs: boolean;
1370
+ canEditLogs: boolean;
1371
+ familyUserId?: string | undefined;
1372
+ revokedAt?: string | null | undefined;
1373
+ } | null;
1374
+ organization: {
1375
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1376
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1377
+ id: string;
1378
+ name: string;
1379
+ } | null;
1380
+ premium: {
1381
+ active: boolean;
1382
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1383
+ organizationId?: string | undefined;
1384
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1385
+ entitlementId?: string | undefined;
1386
+ expiresAt?: string | null | undefined;
1387
+ };
1388
+ }, {
1389
+ subjectUser: {
1390
+ id: string;
1391
+ authUserId: string;
1392
+ email: string;
1393
+ name: string;
1394
+ defaultRole: "family" | "coach" | "superAdmin";
1395
+ roles: {
1396
+ family: boolean;
1397
+ coach: boolean;
1398
+ superAdmin: boolean;
1399
+ };
1400
+ } | null;
1401
+ mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1402
+ permissions: {
1403
+ canReadActivities: boolean;
1404
+ canWriteActivities: boolean;
1405
+ canManageSupportDates: boolean;
1406
+ canRevokeAssignment: boolean;
1407
+ canViewAnalysis: boolean;
1408
+ };
1409
+ assignment: {
1410
+ status: "active" | "revoked" | "transferred" | "expired";
1411
+ id: string;
1412
+ canViewAnalysis: boolean;
1413
+ organizationId: string;
1414
+ coachUserId: string;
1415
+ canViewLogs: boolean;
1416
+ canEditLogs: boolean;
1417
+ familyUserId?: string | undefined;
1418
+ revokedAt?: string | null | undefined;
1419
+ } | null;
1420
+ organization: {
1421
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1422
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1423
+ id: string;
1424
+ name: string;
1425
+ } | null;
1426
+ premium: {
1427
+ active: boolean;
1428
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1429
+ organizationId?: string | undefined;
1430
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1431
+ entitlementId?: string | undefined;
1432
+ expiresAt?: string | null | undefined;
1433
+ };
1434
+ }>;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ session: {
1437
+ auth: {
1438
+ authUserId: string;
1439
+ state: "authenticated";
1440
+ email?: string | undefined;
1441
+ authSessionId?: string | undefined;
1442
+ };
1443
+ actorUser: {
1444
+ id: string;
1445
+ authUserId: string;
1446
+ email: string;
1447
+ name: string;
1448
+ defaultRole: "family" | "coach" | "superAdmin";
1449
+ roles: {
1450
+ family: boolean;
1451
+ coach: boolean;
1452
+ superAdmin: boolean;
1453
+ };
1454
+ };
1455
+ actorRoles: {
1456
+ family: boolean;
1457
+ coach: boolean;
1458
+ superAdmin: boolean;
1459
+ };
1460
+ };
1461
+ subject: {
1462
+ subjectUser: {
1463
+ id: string;
1464
+ authUserId: string;
1465
+ email: string;
1466
+ name: string;
1467
+ defaultRole: "family" | "coach" | "superAdmin";
1468
+ roles: {
1469
+ family: boolean;
1470
+ coach: boolean;
1471
+ superAdmin: boolean;
1472
+ };
1473
+ } | null;
1474
+ mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1475
+ permissions: {
1476
+ canReadActivities: boolean;
1477
+ canWriteActivities: boolean;
1478
+ canManageSupportDates: boolean;
1479
+ canRevokeAssignment: boolean;
1480
+ canViewAnalysis: boolean;
1481
+ };
1482
+ assignment: {
1483
+ status: "active" | "revoked" | "transferred" | "expired";
1484
+ id: string;
1485
+ canViewAnalysis: boolean;
1486
+ organizationId: string;
1487
+ coachUserId: string;
1488
+ canViewLogs: boolean;
1489
+ canEditLogs: boolean;
1490
+ familyUserId?: string | undefined;
1491
+ revokedAt?: string | null | undefined;
1492
+ } | null;
1493
+ organization: {
1494
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1495
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1496
+ id: string;
1497
+ name: string;
1498
+ } | null;
1499
+ premium: {
1500
+ active: boolean;
1501
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1502
+ organizationId?: string | undefined;
1503
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1504
+ entitlementId?: string | undefined;
1505
+ expiresAt?: string | null | undefined;
1506
+ };
1507
+ };
1508
+ }, {
1509
+ session: {
1510
+ auth: {
1511
+ authUserId: string;
1512
+ state: "authenticated";
1513
+ email?: string | undefined;
1514
+ authSessionId?: string | undefined;
1515
+ };
1516
+ actorUser: {
1517
+ id: string;
1518
+ authUserId: string;
1519
+ email: string;
1520
+ name: string;
1521
+ defaultRole: "family" | "coach" | "superAdmin";
1522
+ roles: {
1523
+ family: boolean;
1524
+ coach: boolean;
1525
+ superAdmin: boolean;
1526
+ };
1527
+ };
1528
+ actorRoles: {
1529
+ family: boolean;
1530
+ coach: boolean;
1531
+ superAdmin: boolean;
1532
+ };
1533
+ };
1534
+ subject: {
1535
+ subjectUser: {
1536
+ id: string;
1537
+ authUserId: string;
1538
+ email: string;
1539
+ name: string;
1540
+ defaultRole: "family" | "coach" | "superAdmin";
1541
+ roles: {
1542
+ family: boolean;
1543
+ coach: boolean;
1544
+ superAdmin: boolean;
1545
+ };
1546
+ } | null;
1547
+ mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1548
+ permissions: {
1549
+ canReadActivities: boolean;
1550
+ canWriteActivities: boolean;
1551
+ canManageSupportDates: boolean;
1552
+ canRevokeAssignment: boolean;
1553
+ canViewAnalysis: boolean;
1554
+ };
1555
+ assignment: {
1556
+ status: "active" | "revoked" | "transferred" | "expired";
1557
+ id: string;
1558
+ canViewAnalysis: boolean;
1559
+ organizationId: string;
1560
+ coachUserId: string;
1561
+ canViewLogs: boolean;
1562
+ canEditLogs: boolean;
1563
+ familyUserId?: string | undefined;
1564
+ revokedAt?: string | null | undefined;
1565
+ } | null;
1566
+ organization: {
1567
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1568
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1569
+ id: string;
1570
+ name: string;
1571
+ } | null;
1572
+ premium: {
1573
+ active: boolean;
1574
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1575
+ organizationId?: string | undefined;
1576
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1577
+ entitlementId?: string | undefined;
1578
+ expiresAt?: string | null | undefined;
1579
+ };
1580
+ };
1581
+ }>;
1582
+ babies: z.ZodArray<z.ZodObject<{
1583
+ id: z.ZodString;
1584
+ familyUserId: z.ZodString;
1585
+ name: z.ZodString;
1586
+ birthday: z.ZodString;
1587
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<["boy", "girl", "other"]>>>;
1588
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1589
+ createdAt: z.ZodString;
1590
+ updatedAt: z.ZodString;
1591
+ updatedByUserId: z.ZodString;
1592
+ }, "strip", z.ZodTypeAny, {
1593
+ id: string;
1594
+ name: string;
1595
+ familyUserId: string;
1596
+ createdAt: string;
1597
+ updatedAt: string;
1598
+ birthday: string;
1599
+ updatedByUserId: string;
1600
+ gender?: "other" | "boy" | "girl" | null | undefined;
1601
+ profileAssetId?: string | null | undefined;
1602
+ }, {
1603
+ id: string;
1604
+ name: string;
1605
+ familyUserId: string;
1606
+ createdAt: string;
1607
+ updatedAt: string;
1608
+ birthday: string;
1609
+ updatedByUserId: string;
1610
+ gender?: "other" | "boy" | "girl" | null | undefined;
1611
+ profileAssetId?: string | null | undefined;
1612
+ }>, "many">;
1613
+ recentActivities: z.ZodArray<z.ZodObject<{
1614
+ id: z.ZodString;
1615
+ familyUserId: z.ZodString;
1616
+ babyId: z.ZodString;
1617
+ activityType: z.ZodEnum<["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"]>;
1618
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1619
+ details: z.ZodUnion<[z.ZodObject<{
1620
+ date: z.ZodString;
1621
+ start: z.ZodString;
1622
+ end: z.ZodString;
1623
+ side: z.ZodEnum<["left", "right"]>;
1624
+ }, "strict", z.ZodTypeAny, {
1625
+ date: string;
1626
+ start: string;
1627
+ end: string;
1628
+ side: "left" | "right";
1629
+ }, {
1630
+ date: string;
1631
+ start: string;
1632
+ end: string;
1633
+ side: "left" | "right";
1634
+ }>, z.ZodObject<{
1635
+ date: z.ZodString;
1636
+ time: z.ZodString;
1637
+ amount: z.ZodNumber;
1638
+ unit: z.ZodEnum<["ml", "oz"]>;
1639
+ type: z.ZodEnum<["breastmilk", "formula"]>;
1640
+ }, "strict", z.ZodTypeAny, {
1641
+ type: "breastmilk" | "formula";
1642
+ date: string;
1643
+ time: string;
1644
+ amount: number;
1645
+ unit: "ml" | "oz";
1646
+ }, {
1647
+ type: "breastmilk" | "formula";
1648
+ date: string;
1649
+ time: string;
1650
+ amount: number;
1651
+ unit: "ml" | "oz";
1652
+ }>, z.ZodObject<{
1653
+ date: z.ZodString;
1654
+ start: z.ZodString;
1655
+ end: z.ZodString;
1656
+ type: z.ZodEnum<["day", "night"]>;
1657
+ mood: z.ZodEnum<["content", "restless", "unsettled", "wired"]>;
1658
+ environment: z.ZodEnum<["co-sleeping", "contact-napping", "baby-cot", "motion-nap", "other"]>;
1659
+ timeToSleep: z.ZodEnum<["less-than-10-mins", "10-to-20-mins", "20-to-30-mins", "30-to-40-mins", "more-than-60-mins"]>;
1660
+ }, "strict", z.ZodTypeAny, {
1661
+ type: "day" | "night";
1662
+ date: string;
1663
+ start: string;
1664
+ end: string;
1665
+ mood: "content" | "restless" | "unsettled" | "wired";
1666
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
1667
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
1668
+ }, {
1669
+ type: "day" | "night";
1670
+ date: string;
1671
+ start: string;
1672
+ end: string;
1673
+ mood: "content" | "restless" | "unsettled" | "wired";
1674
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
1675
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
1676
+ }>, z.ZodObject<{
1677
+ date: z.ZodString;
1678
+ time: z.ZodString;
1679
+ type: z.ZodArray<z.ZodEnum<["wet", "dirty"]>, "many">;
1680
+ imageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1681
+ }, "strict", z.ZodTypeAny, {
1682
+ type: ("dirty" | "wet")[];
1683
+ date: string;
1684
+ time: string;
1685
+ imageURL?: string | null | undefined;
1686
+ }, {
1687
+ type: ("dirty" | "wet")[];
1688
+ date: string;
1689
+ time: string;
1690
+ imageURL?: string | null | undefined;
1691
+ }>, z.ZodObject<{
1692
+ date: z.ZodString;
1693
+ start: z.ZodString;
1694
+ end: z.ZodString;
1695
+ side: z.ZodEnum<["left", "right"]>;
1696
+ amount: z.ZodNumber;
1697
+ unit: z.ZodEnum<["ml", "oz"]>;
1698
+ }, "strict", z.ZodTypeAny, {
1699
+ date: string;
1700
+ start: string;
1701
+ end: string;
1702
+ side: "left" | "right";
1703
+ amount: number;
1704
+ unit: "ml" | "oz";
1705
+ }, {
1706
+ date: string;
1707
+ start: string;
1708
+ end: string;
1709
+ side: "left" | "right";
1710
+ amount: number;
1711
+ unit: "ml" | "oz";
1712
+ }>, z.ZodObject<{
1713
+ date: z.ZodString;
1714
+ time: z.ZodString;
1715
+ medicationName: z.ZodString;
1716
+ }, "strict", z.ZodTypeAny, {
1717
+ date: string;
1718
+ time: string;
1719
+ medicationName: string;
1720
+ }, {
1721
+ date: string;
1722
+ time: string;
1723
+ medicationName: string;
1724
+ }>, z.ZodObject<{
1725
+ date: z.ZodString;
1726
+ time: z.ZodString;
1727
+ allergicReaction: z.ZodBoolean;
1728
+ allergicReactionNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1729
+ accidentalExposure: z.ZodOptional<z.ZodBoolean>;
1730
+ accidentalExposureNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1731
+ ladderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1732
+ ladderStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1733
+ }, "strict", z.ZodTypeAny, {
1734
+ date: string;
1735
+ time: string;
1736
+ allergicReaction: boolean;
1737
+ allergicReactionNote?: string | null | undefined;
1738
+ accidentalExposure?: boolean | undefined;
1739
+ accidentalExposureNote?: string | null | undefined;
1740
+ ladderId?: string | null | undefined;
1741
+ ladderStageId?: string | null | undefined;
1742
+ }, {
1743
+ date: string;
1744
+ time: string;
1745
+ allergicReaction: boolean;
1746
+ allergicReactionNote?: string | null | undefined;
1747
+ accidentalExposure?: boolean | undefined;
1748
+ accidentalExposureNote?: string | null | undefined;
1749
+ ladderId?: string | null | undefined;
1750
+ ladderStageId?: string | null | undefined;
1751
+ }>]>;
1752
+ occurredAt: z.ZodString;
1753
+ createdAt: z.ZodString;
1754
+ updatedAt: z.ZodString;
1755
+ createdByUserId: z.ZodString;
1756
+ updatedByUserId: z.ZodString;
1757
+ }, "strip", z.ZodTypeAny, {
1758
+ details: {
1759
+ date: string;
1760
+ start: string;
1761
+ end: string;
1762
+ side: "left" | "right";
1763
+ } | {
1764
+ type: "breastmilk" | "formula";
1765
+ date: string;
1766
+ time: string;
1767
+ amount: number;
1768
+ unit: "ml" | "oz";
1769
+ } | {
1770
+ type: "day" | "night";
1771
+ date: string;
1772
+ start: string;
1773
+ end: string;
1774
+ mood: "content" | "restless" | "unsettled" | "wired";
1775
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
1776
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
1777
+ } | {
1778
+ type: ("dirty" | "wet")[];
1779
+ date: string;
1780
+ time: string;
1781
+ imageURL?: string | null | undefined;
1782
+ } | {
1783
+ date: string;
1784
+ start: string;
1785
+ end: string;
1786
+ side: "left" | "right";
1787
+ amount: number;
1788
+ unit: "ml" | "oz";
1789
+ } | {
1790
+ date: string;
1791
+ time: string;
1792
+ medicationName: string;
1793
+ } | {
1794
+ date: string;
1795
+ time: string;
1796
+ allergicReaction: boolean;
1797
+ allergicReactionNote?: string | null | undefined;
1798
+ accidentalExposure?: boolean | undefined;
1799
+ accidentalExposureNote?: string | null | undefined;
1800
+ ladderId?: string | null | undefined;
1801
+ ladderStageId?: string | null | undefined;
1802
+ };
1803
+ id: string;
1804
+ familyUserId: string;
1805
+ createdAt: string;
1806
+ updatedAt: string;
1807
+ babyId: string;
1808
+ updatedByUserId: string;
1809
+ activityType: "breastfeed" | "bottles" | "sleep" | "nappies" | "pumping" | "medication" | "solids";
1810
+ occurredAt: string;
1811
+ createdByUserId: string;
1812
+ note?: string | null | undefined;
1813
+ }, {
1814
+ details: {
1815
+ date: string;
1816
+ start: string;
1817
+ end: string;
1818
+ side: "left" | "right";
1819
+ } | {
1820
+ type: "breastmilk" | "formula";
1821
+ date: string;
1822
+ time: string;
1823
+ amount: number;
1824
+ unit: "ml" | "oz";
1825
+ } | {
1826
+ type: "day" | "night";
1827
+ date: string;
1828
+ start: string;
1829
+ end: string;
1830
+ mood: "content" | "restless" | "unsettled" | "wired";
1831
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
1832
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
1833
+ } | {
1834
+ type: ("dirty" | "wet")[];
1835
+ date: string;
1836
+ time: string;
1837
+ imageURL?: string | null | undefined;
1838
+ } | {
1839
+ date: string;
1840
+ start: string;
1841
+ end: string;
1842
+ side: "left" | "right";
1843
+ amount: number;
1844
+ unit: "ml" | "oz";
1845
+ } | {
1846
+ date: string;
1847
+ time: string;
1848
+ medicationName: string;
1849
+ } | {
1850
+ date: string;
1851
+ time: string;
1852
+ allergicReaction: boolean;
1853
+ allergicReactionNote?: string | null | undefined;
1854
+ accidentalExposure?: boolean | undefined;
1855
+ accidentalExposureNote?: string | null | undefined;
1856
+ ladderId?: string | null | undefined;
1857
+ ladderStageId?: string | null | undefined;
1858
+ };
1859
+ id: string;
1860
+ familyUserId: string;
1861
+ createdAt: string;
1862
+ updatedAt: string;
1863
+ babyId: string;
1864
+ updatedByUserId: string;
1865
+ activityType: "breastfeed" | "bottles" | "sleep" | "nappies" | "pumping" | "medication" | "solids";
1866
+ occurredAt: string;
1867
+ createdByUserId: string;
1868
+ note?: string | null | undefined;
1869
+ }>, "many">;
1870
+ homePreferences: z.ZodObject<{
1871
+ visibleActivities: z.ZodObject<{
1872
+ breastfeed: z.ZodBoolean;
1873
+ bottles: z.ZodBoolean;
1874
+ sleep: z.ZodBoolean;
1875
+ nappies: z.ZodBoolean;
1876
+ pumping: z.ZodBoolean;
1877
+ medication: z.ZodBoolean;
1878
+ solids: z.ZodBoolean;
1879
+ }, "strict", z.ZodTypeAny, {
1880
+ breastfeed: boolean;
1881
+ bottles: boolean;
1882
+ sleep: boolean;
1883
+ nappies: boolean;
1884
+ pumping: boolean;
1885
+ medication: boolean;
1886
+ solids: boolean;
1887
+ }, {
1888
+ breastfeed: boolean;
1889
+ bottles: boolean;
1890
+ sleep: boolean;
1891
+ nappies: boolean;
1892
+ pumping: boolean;
1893
+ medication: boolean;
1894
+ solids: boolean;
1895
+ }>;
1896
+ showAllergyLadderBubble: z.ZodBoolean;
1897
+ }, "strict", z.ZodTypeAny, {
1898
+ visibleActivities: {
1899
+ breastfeed: boolean;
1900
+ bottles: boolean;
1901
+ sleep: boolean;
1902
+ nappies: boolean;
1903
+ pumping: boolean;
1904
+ medication: boolean;
1905
+ solids: boolean;
1906
+ };
1907
+ showAllergyLadderBubble: boolean;
1908
+ }, {
1909
+ visibleActivities: {
1910
+ breastfeed: boolean;
1911
+ bottles: boolean;
1912
+ sleep: boolean;
1913
+ nappies: boolean;
1914
+ pumping: boolean;
1915
+ medication: boolean;
1916
+ solids: boolean;
1917
+ };
1918
+ showAllergyLadderBubble: boolean;
1919
+ }>;
1920
+ premium: z.ZodObject<{
1921
+ active: z.ZodBoolean;
1922
+ source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
1923
+ entitlementId: z.ZodOptional<z.ZodString>;
1924
+ organizationId: z.ZodOptional<z.ZodString>;
1925
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1926
+ disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ active: boolean;
1929
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1930
+ organizationId?: string | undefined;
1931
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1932
+ entitlementId?: string | undefined;
1933
+ expiresAt?: string | null | undefined;
1934
+ }, {
1935
+ active: boolean;
1936
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1937
+ organizationId?: string | undefined;
1938
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1939
+ entitlementId?: string | undefined;
1940
+ expiresAt?: string | null | undefined;
1941
+ }>;
1942
+ }, "strip", z.ZodTypeAny, {
1943
+ premium: {
1944
+ active: boolean;
1945
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1946
+ organizationId?: string | undefined;
1947
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1948
+ entitlementId?: string | undefined;
1949
+ expiresAt?: string | null | undefined;
1950
+ };
1951
+ access: {
1952
+ session: {
1953
+ auth: {
1954
+ authUserId: string;
1955
+ state: "authenticated";
1956
+ email?: string | undefined;
1957
+ authSessionId?: string | undefined;
1958
+ };
1959
+ actorUser: {
1960
+ id: string;
1961
+ authUserId: string;
1962
+ email: string;
1963
+ name: string;
1964
+ defaultRole: "family" | "coach" | "superAdmin";
1965
+ roles: {
1966
+ family: boolean;
1967
+ coach: boolean;
1968
+ superAdmin: boolean;
1969
+ };
1970
+ };
1971
+ actorRoles: {
1972
+ family: boolean;
1973
+ coach: boolean;
1974
+ superAdmin: boolean;
1975
+ };
1976
+ };
1977
+ subject: {
1978
+ subjectUser: {
1979
+ id: string;
1980
+ authUserId: string;
1981
+ email: string;
1982
+ name: string;
1983
+ defaultRole: "family" | "coach" | "superAdmin";
1984
+ roles: {
1985
+ family: boolean;
1986
+ coach: boolean;
1987
+ superAdmin: boolean;
1988
+ };
1989
+ } | null;
1990
+ mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1991
+ permissions: {
1992
+ canReadActivities: boolean;
1993
+ canWriteActivities: boolean;
1994
+ canManageSupportDates: boolean;
1995
+ canRevokeAssignment: boolean;
1996
+ canViewAnalysis: boolean;
1997
+ };
1998
+ assignment: {
1999
+ status: "active" | "revoked" | "transferred" | "expired";
2000
+ id: string;
2001
+ canViewAnalysis: boolean;
2002
+ organizationId: string;
2003
+ coachUserId: string;
2004
+ canViewLogs: boolean;
2005
+ canEditLogs: boolean;
2006
+ familyUserId?: string | undefined;
2007
+ revokedAt?: string | null | undefined;
2008
+ } | null;
2009
+ organization: {
2010
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
2011
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
2012
+ id: string;
2013
+ name: string;
2014
+ } | null;
2015
+ premium: {
2016
+ active: boolean;
2017
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2018
+ organizationId?: string | undefined;
2019
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
2020
+ entitlementId?: string | undefined;
2021
+ expiresAt?: string | null | undefined;
2022
+ };
2023
+ };
2024
+ };
2025
+ babies: {
2026
+ id: string;
2027
+ name: string;
2028
+ familyUserId: string;
2029
+ createdAt: string;
2030
+ updatedAt: string;
2031
+ birthday: string;
2032
+ updatedByUserId: string;
2033
+ gender?: "other" | "boy" | "girl" | null | undefined;
2034
+ profileAssetId?: string | null | undefined;
2035
+ }[];
2036
+ recentActivities: {
2037
+ details: {
2038
+ date: string;
2039
+ start: string;
2040
+ end: string;
2041
+ side: "left" | "right";
2042
+ } | {
2043
+ type: "breastmilk" | "formula";
2044
+ date: string;
2045
+ time: string;
2046
+ amount: number;
2047
+ unit: "ml" | "oz";
2048
+ } | {
2049
+ type: "day" | "night";
2050
+ date: string;
2051
+ start: string;
2052
+ end: string;
2053
+ mood: "content" | "restless" | "unsettled" | "wired";
2054
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
2055
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
2056
+ } | {
2057
+ type: ("dirty" | "wet")[];
2058
+ date: string;
2059
+ time: string;
2060
+ imageURL?: string | null | undefined;
2061
+ } | {
2062
+ date: string;
2063
+ start: string;
2064
+ end: string;
2065
+ side: "left" | "right";
2066
+ amount: number;
2067
+ unit: "ml" | "oz";
2068
+ } | {
2069
+ date: string;
2070
+ time: string;
2071
+ medicationName: string;
2072
+ } | {
2073
+ date: string;
2074
+ time: string;
2075
+ allergicReaction: boolean;
2076
+ allergicReactionNote?: string | null | undefined;
2077
+ accidentalExposure?: boolean | undefined;
2078
+ accidentalExposureNote?: string | null | undefined;
2079
+ ladderId?: string | null | undefined;
2080
+ ladderStageId?: string | null | undefined;
2081
+ };
2082
+ id: string;
2083
+ familyUserId: string;
2084
+ createdAt: string;
2085
+ updatedAt: string;
2086
+ babyId: string;
2087
+ updatedByUserId: string;
2088
+ activityType: "breastfeed" | "bottles" | "sleep" | "nappies" | "pumping" | "medication" | "solids";
2089
+ occurredAt: string;
2090
+ createdByUserId: string;
2091
+ note?: string | null | undefined;
2092
+ }[];
2093
+ homePreferences: {
2094
+ visibleActivities: {
2095
+ breastfeed: boolean;
2096
+ bottles: boolean;
2097
+ sleep: boolean;
2098
+ nappies: boolean;
2099
+ pumping: boolean;
2100
+ medication: boolean;
2101
+ solids: boolean;
2102
+ };
2103
+ showAllergyLadderBubble: boolean;
2104
+ };
2105
+ }, {
2106
+ premium: {
2107
+ active: boolean;
2108
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2109
+ organizationId?: string | undefined;
2110
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
2111
+ entitlementId?: string | undefined;
2112
+ expiresAt?: string | null | undefined;
2113
+ };
2114
+ access: {
2115
+ session: {
2116
+ auth: {
2117
+ authUserId: string;
2118
+ state: "authenticated";
2119
+ email?: string | undefined;
2120
+ authSessionId?: string | undefined;
2121
+ };
2122
+ actorUser: {
2123
+ id: string;
2124
+ authUserId: string;
2125
+ email: string;
2126
+ name: string;
2127
+ defaultRole: "family" | "coach" | "superAdmin";
2128
+ roles: {
2129
+ family: boolean;
2130
+ coach: boolean;
2131
+ superAdmin: boolean;
2132
+ };
2133
+ };
2134
+ actorRoles: {
2135
+ family: boolean;
2136
+ coach: boolean;
2137
+ superAdmin: boolean;
2138
+ };
2139
+ };
2140
+ subject: {
2141
+ subjectUser: {
2142
+ id: string;
2143
+ authUserId: string;
2144
+ email: string;
2145
+ name: string;
2146
+ defaultRole: "family" | "coach" | "superAdmin";
2147
+ roles: {
2148
+ family: boolean;
2149
+ coach: boolean;
2150
+ superAdmin: boolean;
2151
+ };
2152
+ } | null;
2153
+ mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
2154
+ permissions: {
2155
+ canReadActivities: boolean;
2156
+ canWriteActivities: boolean;
2157
+ canManageSupportDates: boolean;
2158
+ canRevokeAssignment: boolean;
2159
+ canViewAnalysis: boolean;
2160
+ };
2161
+ assignment: {
2162
+ status: "active" | "revoked" | "transferred" | "expired";
2163
+ id: string;
2164
+ canViewAnalysis: boolean;
2165
+ organizationId: string;
2166
+ coachUserId: string;
2167
+ canViewLogs: boolean;
2168
+ canEditLogs: boolean;
2169
+ familyUserId?: string | undefined;
2170
+ revokedAt?: string | null | undefined;
2171
+ } | null;
2172
+ organization: {
2173
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
2174
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
2175
+ id: string;
2176
+ name: string;
2177
+ } | null;
2178
+ premium: {
2179
+ active: boolean;
2180
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2181
+ organizationId?: string | undefined;
2182
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
2183
+ entitlementId?: string | undefined;
2184
+ expiresAt?: string | null | undefined;
2185
+ };
2186
+ };
2187
+ };
2188
+ babies: {
2189
+ id: string;
2190
+ name: string;
2191
+ familyUserId: string;
2192
+ createdAt: string;
2193
+ updatedAt: string;
2194
+ birthday: string;
2195
+ updatedByUserId: string;
2196
+ gender?: "other" | "boy" | "girl" | null | undefined;
2197
+ profileAssetId?: string | null | undefined;
2198
+ }[];
2199
+ recentActivities: {
2200
+ details: {
2201
+ date: string;
2202
+ start: string;
2203
+ end: string;
2204
+ side: "left" | "right";
2205
+ } | {
2206
+ type: "breastmilk" | "formula";
2207
+ date: string;
2208
+ time: string;
2209
+ amount: number;
2210
+ unit: "ml" | "oz";
2211
+ } | {
2212
+ type: "day" | "night";
2213
+ date: string;
2214
+ start: string;
2215
+ end: string;
2216
+ mood: "content" | "restless" | "unsettled" | "wired";
2217
+ environment: "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | "other";
2218
+ timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
2219
+ } | {
2220
+ type: ("dirty" | "wet")[];
2221
+ date: string;
2222
+ time: string;
2223
+ imageURL?: string | null | undefined;
2224
+ } | {
2225
+ date: string;
2226
+ start: string;
2227
+ end: string;
2228
+ side: "left" | "right";
2229
+ amount: number;
2230
+ unit: "ml" | "oz";
2231
+ } | {
2232
+ date: string;
2233
+ time: string;
2234
+ medicationName: string;
2235
+ } | {
2236
+ date: string;
2237
+ time: string;
2238
+ allergicReaction: boolean;
2239
+ allergicReactionNote?: string | null | undefined;
2240
+ accidentalExposure?: boolean | undefined;
2241
+ accidentalExposureNote?: string | null | undefined;
2242
+ ladderId?: string | null | undefined;
2243
+ ladderStageId?: string | null | undefined;
2244
+ };
2245
+ id: string;
2246
+ familyUserId: string;
2247
+ createdAt: string;
2248
+ updatedAt: string;
2249
+ babyId: string;
2250
+ updatedByUserId: string;
2251
+ activityType: "breastfeed" | "bottles" | "sleep" | "nappies" | "pumping" | "medication" | "solids";
2252
+ occurredAt: string;
2253
+ createdByUserId: string;
2254
+ note?: string | null | undefined;
2255
+ }[];
2256
+ homePreferences: {
2257
+ visibleActivities: {
2258
+ breastfeed: boolean;
2259
+ bottles: boolean;
2260
+ sleep: boolean;
2261
+ nappies: boolean;
2262
+ pumping: boolean;
2263
+ medication: boolean;
2264
+ solids: boolean;
2265
+ };
2266
+ showAllergyLadderBubble: boolean;
2267
+ };
2268
+ }>;
2269
+ export declare const coachFamilyInviteCodeAccessSchema: z.ZodObject<{
2270
+ id: z.ZodString;
2271
+ code: z.ZodString;
2272
+ affectedFamilyCount: z.ZodNumber;
2273
+ affectedFamilies: z.ZodArray<z.ZodObject<{
2274
+ familyUserId: z.ZodString;
2275
+ familyName: z.ZodString;
2276
+ }, "strip", z.ZodTypeAny, {
2277
+ familyUserId: string;
2278
+ familyName: string;
2279
+ }, {
2280
+ familyUserId: string;
2281
+ familyName: string;
2282
+ }>, "many">;
2283
+ }, "strip", z.ZodTypeAny, {
2284
+ code: string;
2285
+ id: string;
2286
+ affectedFamilyCount: number;
2287
+ affectedFamilies: {
2288
+ familyUserId: string;
2289
+ familyName: string;
2290
+ }[];
2291
+ }, {
2292
+ code: string;
2293
+ id: string;
2294
+ affectedFamilyCount: number;
2295
+ affectedFamilies: {
2296
+ familyUserId: string;
2297
+ familyName: string;
2298
+ }[];
2299
+ }>;
2300
+ export declare const coachFamilyListItemSchema: z.ZodObject<{
2301
+ familyUserId: z.ZodString;
2302
+ familyName: z.ZodString;
2303
+ babyCount: z.ZodNumber;
2304
+ lastActivityAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2305
+ assignedAt: z.ZodString;
2306
+ redeemedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2307
+ accessExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2308
+ unseenLogCount: z.ZodNumber;
2309
+ premium: z.ZodObject<{
2310
+ active: z.ZodBoolean;
2311
+ source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
2312
+ entitlementId: z.ZodOptional<z.ZodString>;
2313
+ organizationId: z.ZodOptional<z.ZodString>;
2314
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2315
+ disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
2316
+ }, "strip", z.ZodTypeAny, {
2317
+ active: boolean;
2318
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2319
+ organizationId?: string | undefined;
2320
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
2321
+ entitlementId?: string | undefined;
2322
+ expiresAt?: string | null | undefined;
2323
+ }, {
2324
+ active: boolean;
2325
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2326
+ organizationId?: string | undefined;
2327
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
2328
+ entitlementId?: string | undefined;
2329
+ expiresAt?: string | null | undefined;
2330
+ }>;
2331
+ assignmentStatus: z.ZodString;
2332
+ canEditLogs: z.ZodBoolean;
2333
+ inviteCodeAccess: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2334
+ id: z.ZodString;
2335
+ code: z.ZodString;
2336
+ affectedFamilyCount: z.ZodNumber;
2337
+ affectedFamilies: z.ZodArray<z.ZodObject<{
2338
+ familyUserId: z.ZodString;
2339
+ familyName: z.ZodString;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ familyUserId: string;
2342
+ familyName: string;
2343
+ }, {
2344
+ familyUserId: string;
2345
+ familyName: string;
2346
+ }>, "many">;
2347
+ }, "strip", z.ZodTypeAny, {
2348
+ code: string;
2349
+ id: string;
2350
+ affectedFamilyCount: number;
2351
+ affectedFamilies: {
2352
+ familyUserId: string;
2353
+ familyName: string;
2354
+ }[];
2355
+ }, {
2356
+ code: string;
2357
+ id: string;
2358
+ affectedFamilyCount: number;
2359
+ affectedFamilies: {
2360
+ familyUserId: string;
2361
+ familyName: string;
2362
+ }[];
2363
+ }>>>;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ familyUserId: string;
2366
+ canEditLogs: boolean;
2367
+ premium: {
2368
+ active: boolean;
2369
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2370
+ organizationId?: string | undefined;
2371
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
2372
+ entitlementId?: string | undefined;
2373
+ expiresAt?: string | null | undefined;
2374
+ };
2375
+ babyCount: number;
2376
+ familyName: string;
2377
+ assignedAt: string;
2378
+ unseenLogCount: number;
2379
+ assignmentStatus: string;
2380
+ lastActivityAt?: string | null | undefined;
2381
+ redeemedAt?: string | null | undefined;
2382
+ accessExpiresAt?: string | null | undefined;
2383
+ inviteCodeAccess?: {
2384
+ code: string;
2385
+ id: string;
2386
+ affectedFamilyCount: number;
2387
+ affectedFamilies: {
2388
+ familyUserId: string;
2389
+ familyName: string;
2390
+ }[];
2391
+ } | null | undefined;
2392
+ }, {
2393
+ familyUserId: string;
2394
+ canEditLogs: boolean;
2395
+ premium: {
2396
+ active: boolean;
2397
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2398
+ organizationId?: string | undefined;
2399
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
2400
+ entitlementId?: string | undefined;
2401
+ expiresAt?: string | null | undefined;
2402
+ };
2403
+ babyCount: number;
2404
+ familyName: string;
2405
+ assignedAt: string;
2406
+ unseenLogCount: number;
2407
+ assignmentStatus: string;
2408
+ lastActivityAt?: string | null | undefined;
2409
+ redeemedAt?: string | null | undefined;
2410
+ accessExpiresAt?: string | null | undefined;
2411
+ inviteCodeAccess?: {
2412
+ code: string;
2413
+ id: string;
2414
+ affectedFamilyCount: number;
2415
+ affectedFamilies: {
2416
+ familyUserId: string;
2417
+ familyName: string;
2418
+ }[];
2419
+ } | null | undefined;
2420
+ }>;
2421
+ export type Baby = z.infer<typeof babySchema>;
2422
+ export type BabyWriteRequest = z.infer<typeof babyWriteRequestSchema>;
2423
+ export type Activity = z.infer<typeof activitySchema>;
2424
+ export type ActivityDetails = z.infer<typeof activityDetailsSchema>;
2425
+ export type ActivityWriteRequest = z.infer<typeof activityWriteRequestSchema>;
2426
+ export type FamilySummary = z.infer<typeof familySummarySchema>;
2427
+ export type CoachFamilyInviteCodeAccess = z.infer<typeof coachFamilyInviteCodeAccessSchema>;
2428
+ export type CoachFamilyListItem = z.infer<typeof coachFamilyListItemSchema>;