@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,1689 @@
1
+ import { z } from "zod";
2
+ export declare const createOrganizationRequestSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
5
+ status: z.ZodDefault<z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>>;
6
+ ownerUserId: z.ZodOptional<z.ZodString>;
7
+ maxFamilies: z.ZodDefault<z.ZodNumber>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
10
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
11
+ name: string;
12
+ maxFamilies: number;
13
+ ownerUserId?: string | undefined;
14
+ }, {
15
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
16
+ name: string;
17
+ status?: "active" | "trialing" | "pastDue" | "suspended" | "archived" | undefined;
18
+ ownerUserId?: string | undefined;
19
+ maxFamilies?: number | undefined;
20
+ }>;
21
+ export declare const createCoachRequestSchema: z.ZodObject<{
22
+ authUserId: z.ZodString;
23
+ email: z.ZodString;
24
+ name: z.ZodString;
25
+ organizationId: z.ZodString;
26
+ subscriptionStatus: z.ZodDefault<z.ZodEnum<["active", "trialing", "pastDue", "canceled", "suspended"]>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ authUserId: string;
29
+ email: string;
30
+ name: string;
31
+ organizationId: string;
32
+ subscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled";
33
+ }, {
34
+ authUserId: string;
35
+ email: string;
36
+ name: string;
37
+ organizationId: string;
38
+ subscriptionStatus?: "active" | "trialing" | "pastDue" | "suspended" | "canceled" | undefined;
39
+ }>;
40
+ export declare const createInviteCodeRequestSchema: z.ZodObject<{
41
+ code: z.ZodString;
42
+ organizationId: z.ZodString;
43
+ coachUserId: z.ZodString;
44
+ maxUses: z.ZodDefault<z.ZodNumber>;
45
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ code: string;
48
+ organizationId: string;
49
+ coachUserId: string;
50
+ maxUses: number;
51
+ expiresAt?: string | null | undefined;
52
+ }, {
53
+ code: string;
54
+ organizationId: string;
55
+ coachUserId: string;
56
+ expiresAt?: string | null | undefined;
57
+ maxUses?: number | undefined;
58
+ }>;
59
+ export declare const updateInviteCodeRequestSchema: z.ZodObject<{
60
+ status: z.ZodOptional<z.ZodEnum<["active", "paused", "expired", "revoked"]>>;
61
+ maxUses: z.ZodOptional<z.ZodNumber>;
62
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ status?: "active" | "revoked" | "expired" | "paused" | undefined;
65
+ expiresAt?: string | null | undefined;
66
+ maxUses?: number | undefined;
67
+ }, {
68
+ status?: "active" | "revoked" | "expired" | "paused" | undefined;
69
+ expiresAt?: string | null | undefined;
70
+ maxUses?: number | undefined;
71
+ }>;
72
+ export declare const createFamilyAssignmentRequestSchema: z.ZodObject<{
73
+ familyUserId: z.ZodString;
74
+ organizationId: z.ZodString;
75
+ coachUserId: z.ZodString;
76
+ canEditLogs: z.ZodDefault<z.ZodBoolean>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ organizationId: string;
79
+ coachUserId: string;
80
+ familyUserId: string;
81
+ canEditLogs: boolean;
82
+ }, {
83
+ organizationId: string;
84
+ coachUserId: string;
85
+ familyUserId: string;
86
+ canEditLogs?: boolean | undefined;
87
+ }>;
88
+ export declare const adminAssignmentResponseSchema: z.ZodObject<{
89
+ assignment: z.ZodObject<{
90
+ id: z.ZodString;
91
+ status: z.ZodEnum<["active", "revoked", "transferred", "expired"]>;
92
+ organizationId: z.ZodString;
93
+ coachUserId: z.ZodString;
94
+ familyUserId: z.ZodOptional<z.ZodString>;
95
+ canViewLogs: z.ZodBoolean;
96
+ canEditLogs: z.ZodBoolean;
97
+ canViewAnalysis: z.ZodBoolean;
98
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ status: "active" | "revoked" | "transferred" | "expired";
101
+ id: string;
102
+ canViewAnalysis: boolean;
103
+ organizationId: string;
104
+ coachUserId: string;
105
+ canViewLogs: boolean;
106
+ canEditLogs: boolean;
107
+ familyUserId?: string | undefined;
108
+ revokedAt?: string | null | undefined;
109
+ }, {
110
+ status: "active" | "revoked" | "transferred" | "expired";
111
+ id: string;
112
+ canViewAnalysis: boolean;
113
+ organizationId: string;
114
+ coachUserId: string;
115
+ canViewLogs: boolean;
116
+ canEditLogs: boolean;
117
+ familyUserId?: string | undefined;
118
+ revokedAt?: string | null | undefined;
119
+ }>;
120
+ organization: z.ZodObject<{
121
+ id: z.ZodString;
122
+ name: z.ZodString;
123
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
124
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
127
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
128
+ id: string;
129
+ name: string;
130
+ }, {
131
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
132
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
133
+ id: string;
134
+ name: string;
135
+ }>;
136
+ premium: z.ZodObject<{
137
+ active: z.ZodBoolean;
138
+ source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
139
+ entitlementId: z.ZodOptional<z.ZodString>;
140
+ organizationId: z.ZodOptional<z.ZodString>;
141
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ active: boolean;
145
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
146
+ organizationId?: string | undefined;
147
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
148
+ entitlementId?: string | undefined;
149
+ expiresAt?: string | null | undefined;
150
+ }, {
151
+ active: boolean;
152
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
153
+ organizationId?: string | undefined;
154
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
155
+ entitlementId?: string | undefined;
156
+ expiresAt?: string | null | undefined;
157
+ }>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ assignment: {
160
+ status: "active" | "revoked" | "transferred" | "expired";
161
+ id: string;
162
+ canViewAnalysis: boolean;
163
+ organizationId: string;
164
+ coachUserId: string;
165
+ canViewLogs: boolean;
166
+ canEditLogs: boolean;
167
+ familyUserId?: string | undefined;
168
+ revokedAt?: string | null | undefined;
169
+ };
170
+ organization: {
171
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
172
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
173
+ id: string;
174
+ name: string;
175
+ };
176
+ premium: {
177
+ active: boolean;
178
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
179
+ organizationId?: string | undefined;
180
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
181
+ entitlementId?: string | undefined;
182
+ expiresAt?: string | null | undefined;
183
+ };
184
+ }, {
185
+ assignment: {
186
+ status: "active" | "revoked" | "transferred" | "expired";
187
+ id: string;
188
+ canViewAnalysis: boolean;
189
+ organizationId: string;
190
+ coachUserId: string;
191
+ canViewLogs: boolean;
192
+ canEditLogs: boolean;
193
+ familyUserId?: string | undefined;
194
+ revokedAt?: string | null | undefined;
195
+ };
196
+ organization: {
197
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
198
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
199
+ id: string;
200
+ name: string;
201
+ };
202
+ premium: {
203
+ active: boolean;
204
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
205
+ organizationId?: string | undefined;
206
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
207
+ entitlementId?: string | undefined;
208
+ expiresAt?: string | null | undefined;
209
+ };
210
+ }>;
211
+ export declare const inviteCodeSummarySchema: z.ZodObject<{
212
+ id: z.ZodString;
213
+ code: z.ZodString;
214
+ organizationId: z.ZodString;
215
+ coachUserId: z.ZodString;
216
+ status: z.ZodEnum<["active", "paused", "expired", "revoked"]>;
217
+ maxUses: z.ZodNumber;
218
+ usedCount: z.ZodNumber;
219
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ createdBy: z.ZodString;
221
+ createdAt: z.ZodString;
222
+ updatedAt: z.ZodString;
223
+ lastRedeemedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ code: string;
226
+ status: "active" | "revoked" | "expired" | "paused";
227
+ id: string;
228
+ organizationId: string;
229
+ coachUserId: string;
230
+ createdAt: string;
231
+ maxUses: number;
232
+ usedCount: number;
233
+ createdBy: string;
234
+ updatedAt: string;
235
+ expiresAt?: string | null | undefined;
236
+ lastRedeemedAt?: string | null | undefined;
237
+ }, {
238
+ code: string;
239
+ status: "active" | "revoked" | "expired" | "paused";
240
+ id: string;
241
+ organizationId: string;
242
+ coachUserId: string;
243
+ createdAt: string;
244
+ maxUses: number;
245
+ usedCount: number;
246
+ createdBy: string;
247
+ updatedAt: string;
248
+ expiresAt?: string | null | undefined;
249
+ lastRedeemedAt?: string | null | undefined;
250
+ }>;
251
+ export declare const adminOrganizationResponseSchema: z.ZodObject<{
252
+ organization: z.ZodObject<{
253
+ id: z.ZodString;
254
+ name: z.ZodString;
255
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
256
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
259
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
260
+ id: string;
261
+ name: string;
262
+ }, {
263
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
264
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
265
+ id: string;
266
+ name: string;
267
+ }>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ organization: {
270
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
271
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
272
+ id: string;
273
+ name: string;
274
+ };
275
+ }, {
276
+ organization: {
277
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
278
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
279
+ id: string;
280
+ name: string;
281
+ };
282
+ }>;
283
+ export declare const adminOrganizationsResponseSchema: z.ZodObject<{
284
+ organizations: z.ZodArray<z.ZodObject<{
285
+ id: z.ZodString;
286
+ name: z.ZodString;
287
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
288
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
291
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
292
+ id: string;
293
+ name: string;
294
+ }, {
295
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
296
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
297
+ id: string;
298
+ name: string;
299
+ }>, "many">;
300
+ }, "strip", z.ZodTypeAny, {
301
+ organizations: {
302
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
303
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
304
+ id: string;
305
+ name: string;
306
+ }[];
307
+ }, {
308
+ organizations: {
309
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
310
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
311
+ id: string;
312
+ name: string;
313
+ }[];
314
+ }>;
315
+ export declare const adminCoachResponseSchema: z.ZodObject<{
316
+ coach: z.ZodObject<{
317
+ id: z.ZodString;
318
+ authUserId: z.ZodString;
319
+ email: z.ZodString;
320
+ name: z.ZodString;
321
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
322
+ roles: z.ZodObject<{
323
+ family: z.ZodBoolean;
324
+ coach: z.ZodBoolean;
325
+ superAdmin: z.ZodBoolean;
326
+ }, "strip", z.ZodTypeAny, {
327
+ family: boolean;
328
+ coach: boolean;
329
+ superAdmin: boolean;
330
+ }, {
331
+ family: boolean;
332
+ coach: boolean;
333
+ superAdmin: boolean;
334
+ }>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ id: string;
337
+ authUserId: string;
338
+ email: string;
339
+ name: string;
340
+ defaultRole: "family" | "coach" | "superAdmin";
341
+ roles: {
342
+ family: boolean;
343
+ coach: boolean;
344
+ superAdmin: boolean;
345
+ };
346
+ }, {
347
+ id: string;
348
+ authUserId: string;
349
+ email: string;
350
+ name: string;
351
+ defaultRole: "family" | "coach" | "superAdmin";
352
+ roles: {
353
+ family: boolean;
354
+ coach: boolean;
355
+ superAdmin: boolean;
356
+ };
357
+ }>;
358
+ organization: z.ZodObject<{
359
+ id: z.ZodString;
360
+ name: z.ZodString;
361
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
362
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
365
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
366
+ id: string;
367
+ name: string;
368
+ }, {
369
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
370
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
371
+ id: string;
372
+ name: string;
373
+ }>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ coach: {
376
+ id: string;
377
+ authUserId: string;
378
+ email: string;
379
+ name: string;
380
+ defaultRole: "family" | "coach" | "superAdmin";
381
+ roles: {
382
+ family: boolean;
383
+ coach: boolean;
384
+ superAdmin: boolean;
385
+ };
386
+ };
387
+ organization: {
388
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
389
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
390
+ id: string;
391
+ name: string;
392
+ };
393
+ }, {
394
+ coach: {
395
+ id: string;
396
+ authUserId: string;
397
+ email: string;
398
+ name: string;
399
+ defaultRole: "family" | "coach" | "superAdmin";
400
+ roles: {
401
+ family: boolean;
402
+ coach: boolean;
403
+ superAdmin: boolean;
404
+ };
405
+ };
406
+ organization: {
407
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
408
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
409
+ id: string;
410
+ name: string;
411
+ };
412
+ }>;
413
+ export declare const adminCoachListItemSchema: z.ZodObject<{
414
+ coach: z.ZodObject<{
415
+ id: z.ZodString;
416
+ authUserId: z.ZodString;
417
+ email: z.ZodString;
418
+ name: z.ZodString;
419
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
420
+ roles: z.ZodObject<{
421
+ family: z.ZodBoolean;
422
+ coach: z.ZodBoolean;
423
+ superAdmin: z.ZodBoolean;
424
+ }, "strip", z.ZodTypeAny, {
425
+ family: boolean;
426
+ coach: boolean;
427
+ superAdmin: boolean;
428
+ }, {
429
+ family: boolean;
430
+ coach: boolean;
431
+ superAdmin: boolean;
432
+ }>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ id: string;
435
+ authUserId: string;
436
+ email: string;
437
+ name: string;
438
+ defaultRole: "family" | "coach" | "superAdmin";
439
+ roles: {
440
+ family: boolean;
441
+ coach: boolean;
442
+ superAdmin: boolean;
443
+ };
444
+ }, {
445
+ id: string;
446
+ authUserId: string;
447
+ email: string;
448
+ name: string;
449
+ defaultRole: "family" | "coach" | "superAdmin";
450
+ roles: {
451
+ family: boolean;
452
+ coach: boolean;
453
+ superAdmin: boolean;
454
+ };
455
+ }>;
456
+ organization: z.ZodObject<{
457
+ id: z.ZodString;
458
+ name: z.ZodString;
459
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
460
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
463
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
464
+ id: string;
465
+ name: string;
466
+ }, {
467
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
468
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
469
+ id: string;
470
+ name: string;
471
+ }>;
472
+ } & {
473
+ submittedSubscriptionStatus: z.ZodEnum<["active", "trialing", "pastDue", "canceled", "suspended"]>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ coach: {
476
+ id: string;
477
+ authUserId: string;
478
+ email: string;
479
+ name: string;
480
+ defaultRole: "family" | "coach" | "superAdmin";
481
+ roles: {
482
+ family: boolean;
483
+ coach: boolean;
484
+ superAdmin: boolean;
485
+ };
486
+ };
487
+ organization: {
488
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
489
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
490
+ id: string;
491
+ name: string;
492
+ };
493
+ submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled";
494
+ }, {
495
+ coach: {
496
+ id: string;
497
+ authUserId: string;
498
+ email: string;
499
+ name: string;
500
+ defaultRole: "family" | "coach" | "superAdmin";
501
+ roles: {
502
+ family: boolean;
503
+ coach: boolean;
504
+ superAdmin: boolean;
505
+ };
506
+ };
507
+ organization: {
508
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
509
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
510
+ id: string;
511
+ name: string;
512
+ };
513
+ submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled";
514
+ }>;
515
+ export declare const adminCoachesResponseSchema: z.ZodObject<{
516
+ coaches: z.ZodArray<z.ZodObject<{
517
+ coach: z.ZodObject<{
518
+ id: z.ZodString;
519
+ authUserId: z.ZodString;
520
+ email: z.ZodString;
521
+ name: z.ZodString;
522
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
523
+ roles: z.ZodObject<{
524
+ family: z.ZodBoolean;
525
+ coach: z.ZodBoolean;
526
+ superAdmin: z.ZodBoolean;
527
+ }, "strip", z.ZodTypeAny, {
528
+ family: boolean;
529
+ coach: boolean;
530
+ superAdmin: boolean;
531
+ }, {
532
+ family: boolean;
533
+ coach: boolean;
534
+ superAdmin: boolean;
535
+ }>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ id: string;
538
+ authUserId: string;
539
+ email: string;
540
+ name: string;
541
+ defaultRole: "family" | "coach" | "superAdmin";
542
+ roles: {
543
+ family: boolean;
544
+ coach: boolean;
545
+ superAdmin: boolean;
546
+ };
547
+ }, {
548
+ id: string;
549
+ authUserId: string;
550
+ email: string;
551
+ name: string;
552
+ defaultRole: "family" | "coach" | "superAdmin";
553
+ roles: {
554
+ family: boolean;
555
+ coach: boolean;
556
+ superAdmin: boolean;
557
+ };
558
+ }>;
559
+ organization: z.ZodObject<{
560
+ id: z.ZodString;
561
+ name: z.ZodString;
562
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
563
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
566
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
567
+ id: string;
568
+ name: string;
569
+ }, {
570
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
571
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
572
+ id: string;
573
+ name: string;
574
+ }>;
575
+ } & {
576
+ submittedSubscriptionStatus: z.ZodEnum<["active", "trialing", "pastDue", "canceled", "suspended"]>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ coach: {
579
+ id: string;
580
+ authUserId: string;
581
+ email: string;
582
+ name: string;
583
+ defaultRole: "family" | "coach" | "superAdmin";
584
+ roles: {
585
+ family: boolean;
586
+ coach: boolean;
587
+ superAdmin: boolean;
588
+ };
589
+ };
590
+ organization: {
591
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
592
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
593
+ id: string;
594
+ name: string;
595
+ };
596
+ submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled";
597
+ }, {
598
+ coach: {
599
+ id: string;
600
+ authUserId: string;
601
+ email: string;
602
+ name: string;
603
+ defaultRole: "family" | "coach" | "superAdmin";
604
+ roles: {
605
+ family: boolean;
606
+ coach: boolean;
607
+ superAdmin: boolean;
608
+ };
609
+ };
610
+ organization: {
611
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
612
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
613
+ id: string;
614
+ name: string;
615
+ };
616
+ submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled";
617
+ }>, "many">;
618
+ }, "strip", z.ZodTypeAny, {
619
+ coaches: {
620
+ coach: {
621
+ id: string;
622
+ authUserId: string;
623
+ email: string;
624
+ name: string;
625
+ defaultRole: "family" | "coach" | "superAdmin";
626
+ roles: {
627
+ family: boolean;
628
+ coach: boolean;
629
+ superAdmin: boolean;
630
+ };
631
+ };
632
+ organization: {
633
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
634
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
635
+ id: string;
636
+ name: string;
637
+ };
638
+ submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled";
639
+ }[];
640
+ }, {
641
+ coaches: {
642
+ coach: {
643
+ id: string;
644
+ authUserId: string;
645
+ email: string;
646
+ name: string;
647
+ defaultRole: "family" | "coach" | "superAdmin";
648
+ roles: {
649
+ family: boolean;
650
+ coach: boolean;
651
+ superAdmin: boolean;
652
+ };
653
+ };
654
+ organization: {
655
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
656
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
657
+ id: string;
658
+ name: string;
659
+ };
660
+ submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled";
661
+ }[];
662
+ }>;
663
+ export declare const adminInviteCodeResponseSchema: z.ZodObject<{
664
+ inviteCode: z.ZodObject<{
665
+ id: z.ZodString;
666
+ code: z.ZodString;
667
+ organizationId: z.ZodString;
668
+ coachUserId: z.ZodString;
669
+ status: z.ZodEnum<["active", "paused", "expired", "revoked"]>;
670
+ maxUses: z.ZodNumber;
671
+ usedCount: z.ZodNumber;
672
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
+ createdBy: z.ZodString;
674
+ createdAt: z.ZodString;
675
+ updatedAt: z.ZodString;
676
+ lastRedeemedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ code: string;
679
+ status: "active" | "revoked" | "expired" | "paused";
680
+ id: string;
681
+ organizationId: string;
682
+ coachUserId: string;
683
+ createdAt: string;
684
+ maxUses: number;
685
+ usedCount: number;
686
+ createdBy: string;
687
+ updatedAt: string;
688
+ expiresAt?: string | null | undefined;
689
+ lastRedeemedAt?: string | null | undefined;
690
+ }, {
691
+ code: string;
692
+ status: "active" | "revoked" | "expired" | "paused";
693
+ id: string;
694
+ organizationId: string;
695
+ coachUserId: string;
696
+ createdAt: string;
697
+ maxUses: number;
698
+ usedCount: number;
699
+ createdBy: string;
700
+ updatedAt: string;
701
+ expiresAt?: string | null | undefined;
702
+ lastRedeemedAt?: string | null | undefined;
703
+ }>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ inviteCode: {
706
+ code: string;
707
+ status: "active" | "revoked" | "expired" | "paused";
708
+ id: string;
709
+ organizationId: string;
710
+ coachUserId: string;
711
+ createdAt: string;
712
+ maxUses: number;
713
+ usedCount: number;
714
+ createdBy: string;
715
+ updatedAt: string;
716
+ expiresAt?: string | null | undefined;
717
+ lastRedeemedAt?: string | null | undefined;
718
+ };
719
+ }, {
720
+ inviteCode: {
721
+ code: string;
722
+ status: "active" | "revoked" | "expired" | "paused";
723
+ id: string;
724
+ organizationId: string;
725
+ coachUserId: string;
726
+ createdAt: string;
727
+ maxUses: number;
728
+ usedCount: number;
729
+ createdBy: string;
730
+ updatedAt: string;
731
+ expiresAt?: string | null | undefined;
732
+ lastRedeemedAt?: string | null | undefined;
733
+ };
734
+ }>;
735
+ export declare const adminInviteCodesResponseSchema: z.ZodObject<{
736
+ inviteCodes: z.ZodArray<z.ZodObject<{
737
+ id: z.ZodString;
738
+ code: z.ZodString;
739
+ organizationId: z.ZodString;
740
+ coachUserId: z.ZodString;
741
+ status: z.ZodEnum<["active", "paused", "expired", "revoked"]>;
742
+ maxUses: z.ZodNumber;
743
+ usedCount: z.ZodNumber;
744
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
745
+ createdBy: z.ZodString;
746
+ createdAt: z.ZodString;
747
+ updatedAt: z.ZodString;
748
+ lastRedeemedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ code: string;
751
+ status: "active" | "revoked" | "expired" | "paused";
752
+ id: string;
753
+ organizationId: string;
754
+ coachUserId: string;
755
+ createdAt: string;
756
+ maxUses: number;
757
+ usedCount: number;
758
+ createdBy: string;
759
+ updatedAt: string;
760
+ expiresAt?: string | null | undefined;
761
+ lastRedeemedAt?: string | null | undefined;
762
+ }, {
763
+ code: string;
764
+ status: "active" | "revoked" | "expired" | "paused";
765
+ id: string;
766
+ organizationId: string;
767
+ coachUserId: string;
768
+ createdAt: string;
769
+ maxUses: number;
770
+ usedCount: number;
771
+ createdBy: string;
772
+ updatedAt: string;
773
+ expiresAt?: string | null | undefined;
774
+ lastRedeemedAt?: string | null | undefined;
775
+ }>, "many">;
776
+ }, "strip", z.ZodTypeAny, {
777
+ inviteCodes: {
778
+ code: string;
779
+ status: "active" | "revoked" | "expired" | "paused";
780
+ id: string;
781
+ organizationId: string;
782
+ coachUserId: string;
783
+ createdAt: string;
784
+ maxUses: number;
785
+ usedCount: number;
786
+ createdBy: string;
787
+ updatedAt: string;
788
+ expiresAt?: string | null | undefined;
789
+ lastRedeemedAt?: string | null | undefined;
790
+ }[];
791
+ }, {
792
+ inviteCodes: {
793
+ code: string;
794
+ status: "active" | "revoked" | "expired" | "paused";
795
+ id: string;
796
+ organizationId: string;
797
+ coachUserId: string;
798
+ createdAt: string;
799
+ maxUses: number;
800
+ usedCount: number;
801
+ createdBy: string;
802
+ updatedAt: string;
803
+ expiresAt?: string | null | undefined;
804
+ lastRedeemedAt?: string | null | undefined;
805
+ }[];
806
+ }>;
807
+ export declare const adminFamilyListItemSchema: z.ZodObject<{
808
+ family: z.ZodObject<{
809
+ id: z.ZodString;
810
+ authUserId: z.ZodString;
811
+ email: z.ZodString;
812
+ name: z.ZodString;
813
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
814
+ roles: z.ZodObject<{
815
+ family: z.ZodBoolean;
816
+ coach: z.ZodBoolean;
817
+ superAdmin: z.ZodBoolean;
818
+ }, "strip", z.ZodTypeAny, {
819
+ family: boolean;
820
+ coach: boolean;
821
+ superAdmin: boolean;
822
+ }, {
823
+ family: boolean;
824
+ coach: boolean;
825
+ superAdmin: boolean;
826
+ }>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ id: string;
829
+ authUserId: string;
830
+ email: string;
831
+ name: string;
832
+ defaultRole: "family" | "coach" | "superAdmin";
833
+ roles: {
834
+ family: boolean;
835
+ coach: boolean;
836
+ superAdmin: boolean;
837
+ };
838
+ }, {
839
+ id: string;
840
+ authUserId: string;
841
+ email: string;
842
+ name: string;
843
+ defaultRole: "family" | "coach" | "superAdmin";
844
+ roles: {
845
+ family: boolean;
846
+ coach: boolean;
847
+ superAdmin: boolean;
848
+ };
849
+ }>;
850
+ babyCount: z.ZodNumber;
851
+ lastActivityAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
852
+ assignment: z.ZodNullable<z.ZodObject<{
853
+ id: z.ZodString;
854
+ status: z.ZodEnum<["active", "revoked", "transferred", "expired"]>;
855
+ organizationId: z.ZodString;
856
+ coachUserId: z.ZodString;
857
+ familyUserId: z.ZodOptional<z.ZodString>;
858
+ canViewLogs: z.ZodBoolean;
859
+ canEditLogs: z.ZodBoolean;
860
+ canViewAnalysis: z.ZodBoolean;
861
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
862
+ }, "strip", z.ZodTypeAny, {
863
+ status: "active" | "revoked" | "transferred" | "expired";
864
+ id: string;
865
+ canViewAnalysis: boolean;
866
+ organizationId: string;
867
+ coachUserId: string;
868
+ canViewLogs: boolean;
869
+ canEditLogs: boolean;
870
+ familyUserId?: string | undefined;
871
+ revokedAt?: string | null | undefined;
872
+ }, {
873
+ status: "active" | "revoked" | "transferred" | "expired";
874
+ id: string;
875
+ canViewAnalysis: boolean;
876
+ organizationId: string;
877
+ coachUserId: string;
878
+ canViewLogs: boolean;
879
+ canEditLogs: boolean;
880
+ familyUserId?: string | undefined;
881
+ revokedAt?: string | null | undefined;
882
+ }>>;
883
+ organization: z.ZodNullable<z.ZodObject<{
884
+ id: z.ZodString;
885
+ name: z.ZodString;
886
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
887
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
890
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
891
+ id: string;
892
+ name: string;
893
+ }, {
894
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
895
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
896
+ id: string;
897
+ name: string;
898
+ }>>;
899
+ coach: z.ZodNullable<z.ZodObject<{
900
+ id: z.ZodString;
901
+ authUserId: z.ZodString;
902
+ email: z.ZodString;
903
+ name: z.ZodString;
904
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
905
+ roles: z.ZodObject<{
906
+ family: z.ZodBoolean;
907
+ coach: z.ZodBoolean;
908
+ superAdmin: z.ZodBoolean;
909
+ }, "strip", z.ZodTypeAny, {
910
+ family: boolean;
911
+ coach: boolean;
912
+ superAdmin: boolean;
913
+ }, {
914
+ family: boolean;
915
+ coach: boolean;
916
+ superAdmin: boolean;
917
+ }>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ id: string;
920
+ authUserId: string;
921
+ email: string;
922
+ name: string;
923
+ defaultRole: "family" | "coach" | "superAdmin";
924
+ roles: {
925
+ family: boolean;
926
+ coach: boolean;
927
+ superAdmin: boolean;
928
+ };
929
+ }, {
930
+ id: string;
931
+ authUserId: string;
932
+ email: string;
933
+ name: string;
934
+ defaultRole: "family" | "coach" | "superAdmin";
935
+ roles: {
936
+ family: boolean;
937
+ coach: boolean;
938
+ superAdmin: boolean;
939
+ };
940
+ }>>;
941
+ premium: z.ZodObject<{
942
+ active: z.ZodBoolean;
943
+ source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
944
+ entitlementId: z.ZodOptional<z.ZodString>;
945
+ organizationId: z.ZodOptional<z.ZodString>;
946
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
947
+ disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
948
+ }, "strip", z.ZodTypeAny, {
949
+ active: boolean;
950
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
951
+ organizationId?: string | undefined;
952
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
953
+ entitlementId?: string | undefined;
954
+ expiresAt?: string | null | undefined;
955
+ }, {
956
+ active: boolean;
957
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
958
+ organizationId?: string | undefined;
959
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
960
+ entitlementId?: string | undefined;
961
+ expiresAt?: string | null | undefined;
962
+ }>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ family: {
965
+ id: string;
966
+ authUserId: string;
967
+ email: string;
968
+ name: string;
969
+ defaultRole: "family" | "coach" | "superAdmin";
970
+ roles: {
971
+ family: boolean;
972
+ coach: boolean;
973
+ superAdmin: boolean;
974
+ };
975
+ };
976
+ coach: {
977
+ id: string;
978
+ authUserId: string;
979
+ email: string;
980
+ name: string;
981
+ defaultRole: "family" | "coach" | "superAdmin";
982
+ roles: {
983
+ family: boolean;
984
+ coach: boolean;
985
+ superAdmin: boolean;
986
+ };
987
+ } | null;
988
+ assignment: {
989
+ status: "active" | "revoked" | "transferred" | "expired";
990
+ id: string;
991
+ canViewAnalysis: boolean;
992
+ organizationId: string;
993
+ coachUserId: string;
994
+ canViewLogs: boolean;
995
+ canEditLogs: boolean;
996
+ familyUserId?: string | undefined;
997
+ revokedAt?: string | null | undefined;
998
+ } | null;
999
+ organization: {
1000
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1001
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1002
+ id: string;
1003
+ name: string;
1004
+ } | null;
1005
+ premium: {
1006
+ active: boolean;
1007
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1008
+ organizationId?: string | undefined;
1009
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1010
+ entitlementId?: string | undefined;
1011
+ expiresAt?: string | null | undefined;
1012
+ };
1013
+ babyCount: number;
1014
+ lastActivityAt?: string | null | undefined;
1015
+ }, {
1016
+ family: {
1017
+ id: string;
1018
+ authUserId: string;
1019
+ email: string;
1020
+ name: string;
1021
+ defaultRole: "family" | "coach" | "superAdmin";
1022
+ roles: {
1023
+ family: boolean;
1024
+ coach: boolean;
1025
+ superAdmin: boolean;
1026
+ };
1027
+ };
1028
+ coach: {
1029
+ id: string;
1030
+ authUserId: string;
1031
+ email: string;
1032
+ name: string;
1033
+ defaultRole: "family" | "coach" | "superAdmin";
1034
+ roles: {
1035
+ family: boolean;
1036
+ coach: boolean;
1037
+ superAdmin: boolean;
1038
+ };
1039
+ } | null;
1040
+ assignment: {
1041
+ status: "active" | "revoked" | "transferred" | "expired";
1042
+ id: string;
1043
+ canViewAnalysis: boolean;
1044
+ organizationId: string;
1045
+ coachUserId: string;
1046
+ canViewLogs: boolean;
1047
+ canEditLogs: boolean;
1048
+ familyUserId?: string | undefined;
1049
+ revokedAt?: string | null | undefined;
1050
+ } | null;
1051
+ organization: {
1052
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1053
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1054
+ id: string;
1055
+ name: string;
1056
+ } | null;
1057
+ premium: {
1058
+ active: boolean;
1059
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1060
+ organizationId?: string | undefined;
1061
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1062
+ entitlementId?: string | undefined;
1063
+ expiresAt?: string | null | undefined;
1064
+ };
1065
+ babyCount: number;
1066
+ lastActivityAt?: string | null | undefined;
1067
+ }>;
1068
+ export declare const adminFamiliesResponseSchema: z.ZodObject<{
1069
+ families: z.ZodArray<z.ZodObject<{
1070
+ family: z.ZodObject<{
1071
+ id: z.ZodString;
1072
+ authUserId: z.ZodString;
1073
+ email: z.ZodString;
1074
+ name: z.ZodString;
1075
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
1076
+ roles: z.ZodObject<{
1077
+ family: z.ZodBoolean;
1078
+ coach: z.ZodBoolean;
1079
+ superAdmin: z.ZodBoolean;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ family: boolean;
1082
+ coach: boolean;
1083
+ superAdmin: boolean;
1084
+ }, {
1085
+ family: boolean;
1086
+ coach: boolean;
1087
+ superAdmin: boolean;
1088
+ }>;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ id: string;
1091
+ authUserId: string;
1092
+ email: string;
1093
+ name: string;
1094
+ defaultRole: "family" | "coach" | "superAdmin";
1095
+ roles: {
1096
+ family: boolean;
1097
+ coach: boolean;
1098
+ superAdmin: boolean;
1099
+ };
1100
+ }, {
1101
+ id: string;
1102
+ authUserId: string;
1103
+ email: string;
1104
+ name: string;
1105
+ defaultRole: "family" | "coach" | "superAdmin";
1106
+ roles: {
1107
+ family: boolean;
1108
+ coach: boolean;
1109
+ superAdmin: boolean;
1110
+ };
1111
+ }>;
1112
+ babyCount: z.ZodNumber;
1113
+ lastActivityAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1114
+ assignment: z.ZodNullable<z.ZodObject<{
1115
+ id: z.ZodString;
1116
+ status: z.ZodEnum<["active", "revoked", "transferred", "expired"]>;
1117
+ organizationId: z.ZodString;
1118
+ coachUserId: z.ZodString;
1119
+ familyUserId: z.ZodOptional<z.ZodString>;
1120
+ canViewLogs: z.ZodBoolean;
1121
+ canEditLogs: z.ZodBoolean;
1122
+ canViewAnalysis: z.ZodBoolean;
1123
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ status: "active" | "revoked" | "transferred" | "expired";
1126
+ id: string;
1127
+ canViewAnalysis: boolean;
1128
+ organizationId: string;
1129
+ coachUserId: string;
1130
+ canViewLogs: boolean;
1131
+ canEditLogs: boolean;
1132
+ familyUserId?: string | undefined;
1133
+ revokedAt?: string | null | undefined;
1134
+ }, {
1135
+ status: "active" | "revoked" | "transferred" | "expired";
1136
+ id: string;
1137
+ canViewAnalysis: boolean;
1138
+ organizationId: string;
1139
+ coachUserId: string;
1140
+ canViewLogs: boolean;
1141
+ canEditLogs: boolean;
1142
+ familyUserId?: string | undefined;
1143
+ revokedAt?: string | null | undefined;
1144
+ }>>;
1145
+ organization: z.ZodNullable<z.ZodObject<{
1146
+ id: z.ZodString;
1147
+ name: z.ZodString;
1148
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
1149
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1152
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1153
+ id: string;
1154
+ name: string;
1155
+ }, {
1156
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1157
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1158
+ id: string;
1159
+ name: string;
1160
+ }>>;
1161
+ coach: z.ZodNullable<z.ZodObject<{
1162
+ id: z.ZodString;
1163
+ authUserId: z.ZodString;
1164
+ email: z.ZodString;
1165
+ name: z.ZodString;
1166
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
1167
+ roles: z.ZodObject<{
1168
+ family: z.ZodBoolean;
1169
+ coach: z.ZodBoolean;
1170
+ superAdmin: z.ZodBoolean;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ family: boolean;
1173
+ coach: boolean;
1174
+ superAdmin: boolean;
1175
+ }, {
1176
+ family: boolean;
1177
+ coach: boolean;
1178
+ superAdmin: boolean;
1179
+ }>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ id: string;
1182
+ authUserId: string;
1183
+ email: string;
1184
+ name: string;
1185
+ defaultRole: "family" | "coach" | "superAdmin";
1186
+ roles: {
1187
+ family: boolean;
1188
+ coach: boolean;
1189
+ superAdmin: boolean;
1190
+ };
1191
+ }, {
1192
+ id: string;
1193
+ authUserId: string;
1194
+ email: string;
1195
+ name: string;
1196
+ defaultRole: "family" | "coach" | "superAdmin";
1197
+ roles: {
1198
+ family: boolean;
1199
+ coach: boolean;
1200
+ superAdmin: boolean;
1201
+ };
1202
+ }>>;
1203
+ premium: z.ZodObject<{
1204
+ active: z.ZodBoolean;
1205
+ source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
1206
+ entitlementId: z.ZodOptional<z.ZodString>;
1207
+ organizationId: z.ZodOptional<z.ZodString>;
1208
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1209
+ disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
1210
+ }, "strip", z.ZodTypeAny, {
1211
+ active: boolean;
1212
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1213
+ organizationId?: string | undefined;
1214
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1215
+ entitlementId?: string | undefined;
1216
+ expiresAt?: string | null | undefined;
1217
+ }, {
1218
+ active: boolean;
1219
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1220
+ organizationId?: string | undefined;
1221
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1222
+ entitlementId?: string | undefined;
1223
+ expiresAt?: string | null | undefined;
1224
+ }>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ family: {
1227
+ id: string;
1228
+ authUserId: string;
1229
+ email: string;
1230
+ name: string;
1231
+ defaultRole: "family" | "coach" | "superAdmin";
1232
+ roles: {
1233
+ family: boolean;
1234
+ coach: boolean;
1235
+ superAdmin: boolean;
1236
+ };
1237
+ };
1238
+ coach: {
1239
+ id: string;
1240
+ authUserId: string;
1241
+ email: string;
1242
+ name: string;
1243
+ defaultRole: "family" | "coach" | "superAdmin";
1244
+ roles: {
1245
+ family: boolean;
1246
+ coach: boolean;
1247
+ superAdmin: boolean;
1248
+ };
1249
+ } | null;
1250
+ assignment: {
1251
+ status: "active" | "revoked" | "transferred" | "expired";
1252
+ id: string;
1253
+ canViewAnalysis: boolean;
1254
+ organizationId: string;
1255
+ coachUserId: string;
1256
+ canViewLogs: boolean;
1257
+ canEditLogs: boolean;
1258
+ familyUserId?: string | undefined;
1259
+ revokedAt?: string | null | undefined;
1260
+ } | null;
1261
+ organization: {
1262
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1263
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1264
+ id: string;
1265
+ name: string;
1266
+ } | null;
1267
+ premium: {
1268
+ active: boolean;
1269
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1270
+ organizationId?: string | undefined;
1271
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1272
+ entitlementId?: string | undefined;
1273
+ expiresAt?: string | null | undefined;
1274
+ };
1275
+ babyCount: number;
1276
+ lastActivityAt?: string | null | undefined;
1277
+ }, {
1278
+ family: {
1279
+ id: string;
1280
+ authUserId: string;
1281
+ email: string;
1282
+ name: string;
1283
+ defaultRole: "family" | "coach" | "superAdmin";
1284
+ roles: {
1285
+ family: boolean;
1286
+ coach: boolean;
1287
+ superAdmin: boolean;
1288
+ };
1289
+ };
1290
+ coach: {
1291
+ id: string;
1292
+ authUserId: string;
1293
+ email: string;
1294
+ name: string;
1295
+ defaultRole: "family" | "coach" | "superAdmin";
1296
+ roles: {
1297
+ family: boolean;
1298
+ coach: boolean;
1299
+ superAdmin: boolean;
1300
+ };
1301
+ } | null;
1302
+ assignment: {
1303
+ status: "active" | "revoked" | "transferred" | "expired";
1304
+ id: string;
1305
+ canViewAnalysis: boolean;
1306
+ organizationId: string;
1307
+ coachUserId: string;
1308
+ canViewLogs: boolean;
1309
+ canEditLogs: boolean;
1310
+ familyUserId?: string | undefined;
1311
+ revokedAt?: string | null | undefined;
1312
+ } | null;
1313
+ organization: {
1314
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1315
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1316
+ id: string;
1317
+ name: string;
1318
+ } | null;
1319
+ premium: {
1320
+ active: boolean;
1321
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1322
+ organizationId?: string | undefined;
1323
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1324
+ entitlementId?: string | undefined;
1325
+ expiresAt?: string | null | undefined;
1326
+ };
1327
+ babyCount: number;
1328
+ lastActivityAt?: string | null | undefined;
1329
+ }>, "many">;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ families: {
1332
+ family: {
1333
+ id: string;
1334
+ authUserId: string;
1335
+ email: string;
1336
+ name: string;
1337
+ defaultRole: "family" | "coach" | "superAdmin";
1338
+ roles: {
1339
+ family: boolean;
1340
+ coach: boolean;
1341
+ superAdmin: boolean;
1342
+ };
1343
+ };
1344
+ coach: {
1345
+ id: string;
1346
+ authUserId: string;
1347
+ email: string;
1348
+ name: string;
1349
+ defaultRole: "family" | "coach" | "superAdmin";
1350
+ roles: {
1351
+ family: boolean;
1352
+ coach: boolean;
1353
+ superAdmin: boolean;
1354
+ };
1355
+ } | null;
1356
+ assignment: {
1357
+ status: "active" | "revoked" | "transferred" | "expired";
1358
+ id: string;
1359
+ canViewAnalysis: boolean;
1360
+ organizationId: string;
1361
+ coachUserId: string;
1362
+ canViewLogs: boolean;
1363
+ canEditLogs: boolean;
1364
+ familyUserId?: string | undefined;
1365
+ revokedAt?: string | null | undefined;
1366
+ } | null;
1367
+ organization: {
1368
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1369
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1370
+ id: string;
1371
+ name: string;
1372
+ } | null;
1373
+ premium: {
1374
+ active: boolean;
1375
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1376
+ organizationId?: string | undefined;
1377
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1378
+ entitlementId?: string | undefined;
1379
+ expiresAt?: string | null | undefined;
1380
+ };
1381
+ babyCount: number;
1382
+ lastActivityAt?: string | null | undefined;
1383
+ }[];
1384
+ }, {
1385
+ families: {
1386
+ family: {
1387
+ id: string;
1388
+ authUserId: string;
1389
+ email: string;
1390
+ name: string;
1391
+ defaultRole: "family" | "coach" | "superAdmin";
1392
+ roles: {
1393
+ family: boolean;
1394
+ coach: boolean;
1395
+ superAdmin: boolean;
1396
+ };
1397
+ };
1398
+ coach: {
1399
+ id: string;
1400
+ authUserId: string;
1401
+ email: string;
1402
+ name: string;
1403
+ defaultRole: "family" | "coach" | "superAdmin";
1404
+ roles: {
1405
+ family: boolean;
1406
+ coach: boolean;
1407
+ superAdmin: boolean;
1408
+ };
1409
+ } | null;
1410
+ assignment: {
1411
+ status: "active" | "revoked" | "transferred" | "expired";
1412
+ id: string;
1413
+ canViewAnalysis: boolean;
1414
+ organizationId: string;
1415
+ coachUserId: string;
1416
+ canViewLogs: boolean;
1417
+ canEditLogs: boolean;
1418
+ familyUserId?: string | undefined;
1419
+ revokedAt?: string | null | undefined;
1420
+ } | null;
1421
+ organization: {
1422
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1423
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1424
+ id: string;
1425
+ name: string;
1426
+ } | null;
1427
+ premium: {
1428
+ active: boolean;
1429
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1430
+ organizationId?: string | undefined;
1431
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1432
+ entitlementId?: string | undefined;
1433
+ expiresAt?: string | null | undefined;
1434
+ };
1435
+ babyCount: number;
1436
+ lastActivityAt?: string | null | undefined;
1437
+ }[];
1438
+ }>;
1439
+ export declare const adminFamilyAssignmentsResponseSchema: z.ZodObject<{
1440
+ assignments: z.ZodArray<z.ZodObject<{
1441
+ assignment: z.ZodObject<{
1442
+ id: z.ZodString;
1443
+ status: z.ZodEnum<["active", "revoked", "transferred", "expired"]>;
1444
+ organizationId: z.ZodString;
1445
+ coachUserId: z.ZodString;
1446
+ familyUserId: z.ZodOptional<z.ZodString>;
1447
+ canViewLogs: z.ZodBoolean;
1448
+ canEditLogs: z.ZodBoolean;
1449
+ canViewAnalysis: z.ZodBoolean;
1450
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ status: "active" | "revoked" | "transferred" | "expired";
1453
+ id: string;
1454
+ canViewAnalysis: boolean;
1455
+ organizationId: string;
1456
+ coachUserId: string;
1457
+ canViewLogs: boolean;
1458
+ canEditLogs: boolean;
1459
+ familyUserId?: string | undefined;
1460
+ revokedAt?: string | null | undefined;
1461
+ }, {
1462
+ status: "active" | "revoked" | "transferred" | "expired";
1463
+ id: string;
1464
+ canViewAnalysis: boolean;
1465
+ organizationId: string;
1466
+ coachUserId: string;
1467
+ canViewLogs: boolean;
1468
+ canEditLogs: boolean;
1469
+ familyUserId?: string | undefined;
1470
+ revokedAt?: string | null | undefined;
1471
+ }>;
1472
+ organization: z.ZodObject<{
1473
+ id: z.ZodString;
1474
+ name: z.ZodString;
1475
+ type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
1476
+ status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1479
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1480
+ id: string;
1481
+ name: string;
1482
+ }, {
1483
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1484
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1485
+ id: string;
1486
+ name: string;
1487
+ }>;
1488
+ premium: z.ZodObject<{
1489
+ active: z.ZodBoolean;
1490
+ source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
1491
+ entitlementId: z.ZodOptional<z.ZodString>;
1492
+ organizationId: z.ZodOptional<z.ZodString>;
1493
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1494
+ disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ active: boolean;
1497
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1498
+ organizationId?: string | undefined;
1499
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1500
+ entitlementId?: string | undefined;
1501
+ expiresAt?: string | null | undefined;
1502
+ }, {
1503
+ active: boolean;
1504
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1505
+ organizationId?: string | undefined;
1506
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1507
+ entitlementId?: string | undefined;
1508
+ expiresAt?: string | null | undefined;
1509
+ }>;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ assignment: {
1512
+ status: "active" | "revoked" | "transferred" | "expired";
1513
+ id: string;
1514
+ canViewAnalysis: boolean;
1515
+ organizationId: string;
1516
+ coachUserId: string;
1517
+ canViewLogs: boolean;
1518
+ canEditLogs: boolean;
1519
+ familyUserId?: string | undefined;
1520
+ revokedAt?: string | null | undefined;
1521
+ };
1522
+ organization: {
1523
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1524
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1525
+ id: string;
1526
+ name: string;
1527
+ };
1528
+ premium: {
1529
+ active: boolean;
1530
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1531
+ organizationId?: string | undefined;
1532
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1533
+ entitlementId?: string | undefined;
1534
+ expiresAt?: string | null | undefined;
1535
+ };
1536
+ }, {
1537
+ assignment: {
1538
+ status: "active" | "revoked" | "transferred" | "expired";
1539
+ id: string;
1540
+ canViewAnalysis: boolean;
1541
+ organizationId: string;
1542
+ coachUserId: string;
1543
+ canViewLogs: boolean;
1544
+ canEditLogs: boolean;
1545
+ familyUserId?: string | undefined;
1546
+ revokedAt?: string | null | undefined;
1547
+ };
1548
+ organization: {
1549
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1550
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1551
+ id: string;
1552
+ name: string;
1553
+ };
1554
+ premium: {
1555
+ active: boolean;
1556
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1557
+ organizationId?: string | undefined;
1558
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1559
+ entitlementId?: string | undefined;
1560
+ expiresAt?: string | null | undefined;
1561
+ };
1562
+ }>, "many">;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ assignments: {
1565
+ assignment: {
1566
+ status: "active" | "revoked" | "transferred" | "expired";
1567
+ id: string;
1568
+ canViewAnalysis: boolean;
1569
+ organizationId: string;
1570
+ coachUserId: string;
1571
+ canViewLogs: boolean;
1572
+ canEditLogs: boolean;
1573
+ familyUserId?: string | undefined;
1574
+ revokedAt?: string | null | undefined;
1575
+ };
1576
+ organization: {
1577
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1578
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1579
+ id: string;
1580
+ name: string;
1581
+ };
1582
+ premium: {
1583
+ active: boolean;
1584
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1585
+ organizationId?: string | undefined;
1586
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1587
+ entitlementId?: string | undefined;
1588
+ expiresAt?: string | null | undefined;
1589
+ };
1590
+ }[];
1591
+ }, {
1592
+ assignments: {
1593
+ assignment: {
1594
+ status: "active" | "revoked" | "transferred" | "expired";
1595
+ id: string;
1596
+ canViewAnalysis: boolean;
1597
+ organizationId: string;
1598
+ coachUserId: string;
1599
+ canViewLogs: boolean;
1600
+ canEditLogs: boolean;
1601
+ familyUserId?: string | undefined;
1602
+ revokedAt?: string | null | undefined;
1603
+ };
1604
+ organization: {
1605
+ type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1606
+ status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1607
+ id: string;
1608
+ name: string;
1609
+ };
1610
+ premium: {
1611
+ active: boolean;
1612
+ disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1613
+ organizationId?: string | undefined;
1614
+ source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1615
+ entitlementId?: string | undefined;
1616
+ expiresAt?: string | null | undefined;
1617
+ };
1618
+ }[];
1619
+ }>;
1620
+ export declare const adminAuditEventsResponseSchema: z.ZodObject<{
1621
+ auditEvents: z.ZodArray<z.ZodObject<{
1622
+ id: z.ZodString;
1623
+ actorUserId: z.ZodString;
1624
+ actorRole: z.ZodUnion<[z.ZodEnum<["family", "coach", "superAdmin"]>, z.ZodLiteral<"system">]>;
1625
+ type: z.ZodString;
1626
+ targetUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1627
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1628
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1629
+ createdAt: z.ZodString;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ type: string;
1632
+ id: string;
1633
+ actorUserId: string;
1634
+ actorRole: "family" | "coach" | "superAdmin" | "system";
1635
+ createdAt: string;
1636
+ organizationId?: string | null | undefined;
1637
+ targetUserId?: string | null | undefined;
1638
+ metadata?: Record<string, unknown> | undefined;
1639
+ }, {
1640
+ type: string;
1641
+ id: string;
1642
+ actorUserId: string;
1643
+ actorRole: "family" | "coach" | "superAdmin" | "system";
1644
+ createdAt: string;
1645
+ organizationId?: string | null | undefined;
1646
+ targetUserId?: string | null | undefined;
1647
+ metadata?: Record<string, unknown> | undefined;
1648
+ }>, "many">;
1649
+ }, "strip", z.ZodTypeAny, {
1650
+ auditEvents: {
1651
+ type: string;
1652
+ id: string;
1653
+ actorUserId: string;
1654
+ actorRole: "family" | "coach" | "superAdmin" | "system";
1655
+ createdAt: string;
1656
+ organizationId?: string | null | undefined;
1657
+ targetUserId?: string | null | undefined;
1658
+ metadata?: Record<string, unknown> | undefined;
1659
+ }[];
1660
+ }, {
1661
+ auditEvents: {
1662
+ type: string;
1663
+ id: string;
1664
+ actorUserId: string;
1665
+ actorRole: "family" | "coach" | "superAdmin" | "system";
1666
+ createdAt: string;
1667
+ organizationId?: string | null | undefined;
1668
+ targetUserId?: string | null | undefined;
1669
+ metadata?: Record<string, unknown> | undefined;
1670
+ }[];
1671
+ }>;
1672
+ export type CreateOrganizationRequest = z.infer<typeof createOrganizationRequestSchema>;
1673
+ export type CreateCoachRequest = z.infer<typeof createCoachRequestSchema>;
1674
+ export type CreateInviteCodeRequest = z.infer<typeof createInviteCodeRequestSchema>;
1675
+ export type UpdateInviteCodeRequest = z.infer<typeof updateInviteCodeRequestSchema>;
1676
+ export type CreateFamilyAssignmentRequest = z.infer<typeof createFamilyAssignmentRequestSchema>;
1677
+ export type AdminAssignmentResponse = z.infer<typeof adminAssignmentResponseSchema>;
1678
+ export type InviteCodeSummary = z.infer<typeof inviteCodeSummarySchema>;
1679
+ export type AdminOrganizationResponse = z.infer<typeof adminOrganizationResponseSchema>;
1680
+ export type AdminOrganizationsResponse = z.infer<typeof adminOrganizationsResponseSchema>;
1681
+ export type AdminCoachResponse = z.infer<typeof adminCoachResponseSchema>;
1682
+ export type AdminCoachListItem = z.infer<typeof adminCoachListItemSchema>;
1683
+ export type AdminCoachesResponse = z.infer<typeof adminCoachesResponseSchema>;
1684
+ export type AdminInviteCodeResponse = z.infer<typeof adminInviteCodeResponseSchema>;
1685
+ export type AdminInviteCodesResponse = z.infer<typeof adminInviteCodesResponseSchema>;
1686
+ export type AdminFamilyListItem = z.infer<typeof adminFamilyListItemSchema>;
1687
+ export type AdminFamiliesResponse = z.infer<typeof adminFamiliesResponseSchema>;
1688
+ export type AdminFamilyAssignmentsResponse = z.infer<typeof adminFamilyAssignmentsResponseSchema>;
1689
+ export type AdminAuditEventsResponse = z.infer<typeof adminAuditEventsResponseSchema>;