@nikthegeek/dreamsforlittles-shared 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/access.d.ts +2450 -30
  2. package/dist/access.js +63 -4
  3. package/dist/access.js.map +1 -1
  4. package/dist/admin.d.ts +12635 -1041
  5. package/dist/admin.js +554 -4
  6. package/dist/admin.js.map +1 -1
  7. package/dist/allergy-ladders.d.ts +563 -80
  8. package/dist/allergy-ladders.js +40 -0
  9. package/dist/allergy-ladders.js.map +1 -1
  10. package/dist/analysis.d.ts +68 -46
  11. package/dist/analysis.js +10 -2
  12. package/dist/analysis.js.map +1 -1
  13. package/dist/api.d.ts +12 -5
  14. package/dist/api.js +12 -0
  15. package/dist/api.js.map +1 -1
  16. package/dist/app-feedback.d.ts +322 -0
  17. package/dist/app-feedback.js +58 -0
  18. package/dist/app-feedback.js.map +1 -0
  19. package/dist/auth.d.ts +684 -0
  20. package/dist/auth.js +45 -4
  21. package/dist/auth.js.map +1 -1
  22. package/dist/billing.d.ts +47 -2
  23. package/dist/billing.js +56 -29
  24. package/dist/billing.js.map +1 -1
  25. package/dist/client-notices.d.ts +6114 -0
  26. package/dist/client-notices.js +455 -0
  27. package/dist/client-notices.js.map +1 -0
  28. package/dist/coach.d.ts +20178 -206
  29. package/dist/coach.js +329 -18
  30. package/dist/coach.js.map +1 -1
  31. package/dist/communication-preferences.d.ts +61 -0
  32. package/dist/communication-preferences.js +30 -0
  33. package/dist/communication-preferences.js.map +1 -0
  34. package/dist/enums.d.ts +6 -2
  35. package/dist/enums.js +27 -1
  36. package/dist/enums.js.map +1 -1
  37. package/dist/errors.d.ts +9 -4
  38. package/dist/errors.js +9 -2
  39. package/dist/errors.js.map +1 -1
  40. package/dist/family-invitations.d.ts +2289 -0
  41. package/dist/family-invitations.js +77 -0
  42. package/dist/family-invitations.js.map +1 -0
  43. package/dist/family-profile-artifacts.d.ts +4433 -0
  44. package/dist/family-profile-artifacts.js +192 -0
  45. package/dist/family-profile-artifacts.js.map +1 -0
  46. package/dist/family.d.ts +7902 -294
  47. package/dist/family.js +170 -5
  48. package/dist/family.js.map +1 -1
  49. package/dist/files.d.ts +17 -14
  50. package/dist/files.js +5 -1
  51. package/dist/files.js.map +1 -1
  52. package/dist/getting-started-guides.d.ts +117 -0
  53. package/dist/getting-started-guides.js +25 -0
  54. package/dist/getting-started-guides.js.map +1 -0
  55. package/dist/index.d.ts +14 -0
  56. package/dist/index.js +14 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/invites.d.ts +252 -0
  59. package/dist/invites.js +2 -0
  60. package/dist/invites.js.map +1 -1
  61. package/dist/mobile-web-releases.d.ts +389 -0
  62. package/dist/mobile-web-releases.js +71 -0
  63. package/dist/mobile-web-releases.js.map +1 -0
  64. package/dist/notification-banners.d.ts +694 -0
  65. package/dist/notification-banners.js +132 -0
  66. package/dist/notification-banners.js.map +1 -0
  67. package/dist/product-analytics.d.ts +5984 -0
  68. package/dist/product-analytics.js +791 -0
  69. package/dist/product-analytics.js.map +1 -0
  70. package/dist/push-devices.d.ts +175 -0
  71. package/dist/push-devices.js +56 -0
  72. package/dist/push-devices.js.map +1 -0
  73. package/dist/realtime.d.ts +604 -0
  74. package/dist/realtime.js +152 -0
  75. package/dist/realtime.js.map +1 -0
  76. package/dist/review-prompt.d.ts +192 -0
  77. package/dist/review-prompt.js +72 -0
  78. package/dist/review-prompt.js.map +1 -0
  79. package/dist/support-faqs.d.ts +103 -0
  80. package/dist/support-faqs.js +24 -0
  81. package/dist/support-faqs.js.map +1 -0
  82. package/dist/support-tickets.d.ts +605 -0
  83. package/dist/support-tickets.js +100 -0
  84. package/dist/support-tickets.js.map +1 -0
  85. package/package.json +6 -1
package/dist/access.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ export declare const coachInvitePremiumGracePeriodDays = 7;
2
3
  export declare const actorRolesSchema: z.ZodObject<{
3
4
  family: z.ZodBoolean;
4
5
  coach: z.ZodBoolean;
@@ -12,11 +13,29 @@ export declare const actorRolesSchema: z.ZodObject<{
12
13
  coach: boolean;
13
14
  superAdmin: boolean;
14
15
  }>;
16
+ export declare const profileRelationshipSchema: z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>;
15
17
  export declare const publicUserSchema: z.ZodObject<{
16
18
  id: z.ZodString;
17
19
  authUserId: z.ZodString;
18
20
  email: z.ZodString;
19
21
  name: z.ZodString;
22
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
24
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
25
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
26
+ hintsTips: z.ZodBoolean;
27
+ appUpdatesNewFeatures: z.ZodBoolean;
28
+ promotionsOffers: z.ZodBoolean;
29
+ }, "strict", z.ZodTypeAny, {
30
+ hintsTips: boolean;
31
+ appUpdatesNewFeatures: boolean;
32
+ promotionsOffers: boolean;
33
+ }, {
34
+ hintsTips: boolean;
35
+ appUpdatesNewFeatures: boolean;
36
+ promotionsOffers: boolean;
37
+ }>>;
38
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
39
  defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
21
40
  roles: z.ZodObject<{
22
41
  family: z.ZodBoolean;
@@ -31,6 +50,7 @@ export declare const publicUserSchema: z.ZodObject<{
31
50
  coach: boolean;
32
51
  superAdmin: boolean;
33
52
  }>;
53
+ createdAt: z.ZodString;
34
54
  }, "strip", z.ZodTypeAny, {
35
55
  id: string;
36
56
  authUserId: string;
@@ -42,6 +62,16 @@ export declare const publicUserSchema: z.ZodObject<{
42
62
  coach: boolean;
43
63
  superAdmin: boolean;
44
64
  };
65
+ createdAt: string;
66
+ profileAssetId?: string | null | undefined;
67
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
68
+ timeZone?: string | null | undefined;
69
+ communicationPreferences?: {
70
+ hintsTips: boolean;
71
+ appUpdatesNewFeatures: boolean;
72
+ promotionsOffers: boolean;
73
+ } | undefined;
74
+ communicationPreferencesUpdatedAt?: string | null | undefined;
45
75
  }, {
46
76
  id: string;
47
77
  authUserId: string;
@@ -53,6 +83,16 @@ export declare const publicUserSchema: z.ZodObject<{
53
83
  coach: boolean;
54
84
  superAdmin: boolean;
55
85
  };
86
+ createdAt: string;
87
+ profileAssetId?: string | null | undefined;
88
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
89
+ timeZone?: string | null | undefined;
90
+ communicationPreferences?: {
91
+ hintsTips: boolean;
92
+ appUpdatesNewFeatures: boolean;
93
+ promotionsOffers: boolean;
94
+ } | undefined;
95
+ communicationPreferencesUpdatedAt?: string | null | undefined;
56
96
  }>;
57
97
  export declare const authenticatedIdentitySchema: z.ZodObject<{
58
98
  state: z.ZodLiteral<"authenticated">;
@@ -139,6 +179,23 @@ export declare const sessionContextSchema: z.ZodObject<{
139
179
  authUserId: z.ZodString;
140
180
  email: z.ZodString;
141
181
  name: z.ZodString;
182
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
184
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
185
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
186
+ hintsTips: z.ZodBoolean;
187
+ appUpdatesNewFeatures: z.ZodBoolean;
188
+ promotionsOffers: z.ZodBoolean;
189
+ }, "strict", z.ZodTypeAny, {
190
+ hintsTips: boolean;
191
+ appUpdatesNewFeatures: boolean;
192
+ promotionsOffers: boolean;
193
+ }, {
194
+ hintsTips: boolean;
195
+ appUpdatesNewFeatures: boolean;
196
+ promotionsOffers: boolean;
197
+ }>>;
198
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
199
  defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
143
200
  roles: z.ZodObject<{
144
201
  family: z.ZodBoolean;
@@ -153,6 +210,7 @@ export declare const sessionContextSchema: z.ZodObject<{
153
210
  coach: boolean;
154
211
  superAdmin: boolean;
155
212
  }>;
213
+ createdAt: z.ZodString;
156
214
  }, "strip", z.ZodTypeAny, {
157
215
  id: string;
158
216
  authUserId: string;
@@ -164,6 +222,16 @@ export declare const sessionContextSchema: z.ZodObject<{
164
222
  coach: boolean;
165
223
  superAdmin: boolean;
166
224
  };
225
+ createdAt: string;
226
+ profileAssetId?: string | null | undefined;
227
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
228
+ timeZone?: string | null | undefined;
229
+ communicationPreferences?: {
230
+ hintsTips: boolean;
231
+ appUpdatesNewFeatures: boolean;
232
+ promotionsOffers: boolean;
233
+ } | undefined;
234
+ communicationPreferencesUpdatedAt?: string | null | undefined;
167
235
  }, {
168
236
  id: string;
169
237
  authUserId: string;
@@ -175,6 +243,16 @@ export declare const sessionContextSchema: z.ZodObject<{
175
243
  coach: boolean;
176
244
  superAdmin: boolean;
177
245
  };
246
+ createdAt: string;
247
+ profileAssetId?: string | null | undefined;
248
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
249
+ timeZone?: string | null | undefined;
250
+ communicationPreferences?: {
251
+ hintsTips: boolean;
252
+ appUpdatesNewFeatures: boolean;
253
+ promotionsOffers: boolean;
254
+ } | undefined;
255
+ communicationPreferencesUpdatedAt?: string | null | undefined;
178
256
  }>;
179
257
  actorRoles: z.ZodObject<{
180
258
  family: z.ZodBoolean;
@@ -189,6 +267,267 @@ export declare const sessionContextSchema: z.ZodObject<{
189
267
  coach: boolean;
190
268
  superAdmin: boolean;
191
269
  }>;
270
+ ownerViewAsCoach: z.ZodOptional<z.ZodObject<{
271
+ ownerUser: z.ZodObject<{
272
+ id: z.ZodString;
273
+ authUserId: z.ZodString;
274
+ email: z.ZodString;
275
+ name: z.ZodString;
276
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
278
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
279
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
280
+ hintsTips: z.ZodBoolean;
281
+ appUpdatesNewFeatures: z.ZodBoolean;
282
+ promotionsOffers: z.ZodBoolean;
283
+ }, "strict", z.ZodTypeAny, {
284
+ hintsTips: boolean;
285
+ appUpdatesNewFeatures: boolean;
286
+ promotionsOffers: boolean;
287
+ }, {
288
+ hintsTips: boolean;
289
+ appUpdatesNewFeatures: boolean;
290
+ promotionsOffers: boolean;
291
+ }>>;
292
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
294
+ roles: z.ZodObject<{
295
+ family: z.ZodBoolean;
296
+ coach: z.ZodBoolean;
297
+ superAdmin: z.ZodBoolean;
298
+ }, "strip", z.ZodTypeAny, {
299
+ family: boolean;
300
+ coach: boolean;
301
+ superAdmin: boolean;
302
+ }, {
303
+ family: boolean;
304
+ coach: boolean;
305
+ superAdmin: boolean;
306
+ }>;
307
+ createdAt: z.ZodString;
308
+ }, "strip", z.ZodTypeAny, {
309
+ id: string;
310
+ authUserId: string;
311
+ email: string;
312
+ name: string;
313
+ defaultRole: "family" | "coach" | "superAdmin";
314
+ roles: {
315
+ family: boolean;
316
+ coach: boolean;
317
+ superAdmin: boolean;
318
+ };
319
+ createdAt: string;
320
+ profileAssetId?: string | null | undefined;
321
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
322
+ timeZone?: string | null | undefined;
323
+ communicationPreferences?: {
324
+ hintsTips: boolean;
325
+ appUpdatesNewFeatures: boolean;
326
+ promotionsOffers: boolean;
327
+ } | undefined;
328
+ communicationPreferencesUpdatedAt?: string | null | undefined;
329
+ }, {
330
+ id: string;
331
+ authUserId: string;
332
+ email: string;
333
+ name: string;
334
+ defaultRole: "family" | "coach" | "superAdmin";
335
+ roles: {
336
+ family: boolean;
337
+ coach: boolean;
338
+ superAdmin: boolean;
339
+ };
340
+ createdAt: string;
341
+ profileAssetId?: string | null | undefined;
342
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
343
+ timeZone?: string | null | undefined;
344
+ communicationPreferences?: {
345
+ hintsTips: boolean;
346
+ appUpdatesNewFeatures: boolean;
347
+ promotionsOffers: boolean;
348
+ } | undefined;
349
+ communicationPreferencesUpdatedAt?: string | null | undefined;
350
+ }>;
351
+ coachUser: z.ZodObject<{
352
+ id: z.ZodString;
353
+ authUserId: z.ZodString;
354
+ email: z.ZodString;
355
+ name: z.ZodString;
356
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
358
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
359
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
360
+ hintsTips: z.ZodBoolean;
361
+ appUpdatesNewFeatures: z.ZodBoolean;
362
+ promotionsOffers: z.ZodBoolean;
363
+ }, "strict", z.ZodTypeAny, {
364
+ hintsTips: boolean;
365
+ appUpdatesNewFeatures: boolean;
366
+ promotionsOffers: boolean;
367
+ }, {
368
+ hintsTips: boolean;
369
+ appUpdatesNewFeatures: boolean;
370
+ promotionsOffers: boolean;
371
+ }>>;
372
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
374
+ roles: z.ZodObject<{
375
+ family: z.ZodBoolean;
376
+ coach: z.ZodBoolean;
377
+ superAdmin: z.ZodBoolean;
378
+ }, "strip", z.ZodTypeAny, {
379
+ family: boolean;
380
+ coach: boolean;
381
+ superAdmin: boolean;
382
+ }, {
383
+ family: boolean;
384
+ coach: boolean;
385
+ superAdmin: boolean;
386
+ }>;
387
+ createdAt: z.ZodString;
388
+ }, "strip", z.ZodTypeAny, {
389
+ id: string;
390
+ authUserId: string;
391
+ email: string;
392
+ name: string;
393
+ defaultRole: "family" | "coach" | "superAdmin";
394
+ roles: {
395
+ family: boolean;
396
+ coach: boolean;
397
+ superAdmin: boolean;
398
+ };
399
+ createdAt: string;
400
+ profileAssetId?: string | null | undefined;
401
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
402
+ timeZone?: string | null | undefined;
403
+ communicationPreferences?: {
404
+ hintsTips: boolean;
405
+ appUpdatesNewFeatures: boolean;
406
+ promotionsOffers: boolean;
407
+ } | undefined;
408
+ communicationPreferencesUpdatedAt?: string | null | undefined;
409
+ }, {
410
+ id: string;
411
+ authUserId: string;
412
+ email: string;
413
+ name: string;
414
+ defaultRole: "family" | "coach" | "superAdmin";
415
+ roles: {
416
+ family: boolean;
417
+ coach: boolean;
418
+ superAdmin: boolean;
419
+ };
420
+ createdAt: string;
421
+ profileAssetId?: string | null | undefined;
422
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
423
+ timeZone?: string | null | undefined;
424
+ communicationPreferences?: {
425
+ hintsTips: boolean;
426
+ appUpdatesNewFeatures: boolean;
427
+ promotionsOffers: boolean;
428
+ } | undefined;
429
+ communicationPreferencesUpdatedAt?: string | null | undefined;
430
+ }>;
431
+ startedAt: z.ZodString;
432
+ expiresAt: z.ZodString;
433
+ readOnly: z.ZodBoolean;
434
+ }, "strip", z.ZodTypeAny, {
435
+ ownerUser: {
436
+ id: string;
437
+ authUserId: string;
438
+ email: string;
439
+ name: string;
440
+ defaultRole: "family" | "coach" | "superAdmin";
441
+ roles: {
442
+ family: boolean;
443
+ coach: boolean;
444
+ superAdmin: boolean;
445
+ };
446
+ createdAt: string;
447
+ profileAssetId?: string | null | undefined;
448
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
449
+ timeZone?: string | null | undefined;
450
+ communicationPreferences?: {
451
+ hintsTips: boolean;
452
+ appUpdatesNewFeatures: boolean;
453
+ promotionsOffers: boolean;
454
+ } | undefined;
455
+ communicationPreferencesUpdatedAt?: string | null | undefined;
456
+ };
457
+ coachUser: {
458
+ id: string;
459
+ authUserId: string;
460
+ email: string;
461
+ name: string;
462
+ defaultRole: "family" | "coach" | "superAdmin";
463
+ roles: {
464
+ family: boolean;
465
+ coach: boolean;
466
+ superAdmin: boolean;
467
+ };
468
+ createdAt: string;
469
+ profileAssetId?: string | null | undefined;
470
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
471
+ timeZone?: string | null | undefined;
472
+ communicationPreferences?: {
473
+ hintsTips: boolean;
474
+ appUpdatesNewFeatures: boolean;
475
+ promotionsOffers: boolean;
476
+ } | undefined;
477
+ communicationPreferencesUpdatedAt?: string | null | undefined;
478
+ };
479
+ startedAt: string;
480
+ expiresAt: string;
481
+ readOnly: boolean;
482
+ }, {
483
+ ownerUser: {
484
+ id: string;
485
+ authUserId: string;
486
+ email: string;
487
+ name: string;
488
+ defaultRole: "family" | "coach" | "superAdmin";
489
+ roles: {
490
+ family: boolean;
491
+ coach: boolean;
492
+ superAdmin: boolean;
493
+ };
494
+ createdAt: string;
495
+ profileAssetId?: string | null | undefined;
496
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
497
+ timeZone?: string | null | undefined;
498
+ communicationPreferences?: {
499
+ hintsTips: boolean;
500
+ appUpdatesNewFeatures: boolean;
501
+ promotionsOffers: boolean;
502
+ } | undefined;
503
+ communicationPreferencesUpdatedAt?: string | null | undefined;
504
+ };
505
+ coachUser: {
506
+ id: string;
507
+ authUserId: string;
508
+ email: string;
509
+ name: string;
510
+ defaultRole: "family" | "coach" | "superAdmin";
511
+ roles: {
512
+ family: boolean;
513
+ coach: boolean;
514
+ superAdmin: boolean;
515
+ };
516
+ createdAt: string;
517
+ profileAssetId?: string | null | undefined;
518
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
519
+ timeZone?: string | null | undefined;
520
+ communicationPreferences?: {
521
+ hintsTips: boolean;
522
+ appUpdatesNewFeatures: boolean;
523
+ promotionsOffers: boolean;
524
+ } | undefined;
525
+ communicationPreferencesUpdatedAt?: string | null | undefined;
526
+ };
527
+ startedAt: string;
528
+ expiresAt: string;
529
+ readOnly: boolean;
530
+ }>>;
192
531
  }, "strip", z.ZodTypeAny, {
193
532
  auth: {
194
533
  authUserId: string;
@@ -207,12 +546,71 @@ export declare const sessionContextSchema: z.ZodObject<{
207
546
  coach: boolean;
208
547
  superAdmin: boolean;
209
548
  };
549
+ createdAt: string;
550
+ profileAssetId?: string | null | undefined;
551
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
552
+ timeZone?: string | null | undefined;
553
+ communicationPreferences?: {
554
+ hintsTips: boolean;
555
+ appUpdatesNewFeatures: boolean;
556
+ promotionsOffers: boolean;
557
+ } | undefined;
558
+ communicationPreferencesUpdatedAt?: string | null | undefined;
210
559
  };
211
560
  actorRoles: {
212
561
  family: boolean;
213
562
  coach: boolean;
214
563
  superAdmin: boolean;
215
564
  };
565
+ ownerViewAsCoach?: {
566
+ ownerUser: {
567
+ id: string;
568
+ authUserId: string;
569
+ email: string;
570
+ name: string;
571
+ defaultRole: "family" | "coach" | "superAdmin";
572
+ roles: {
573
+ family: boolean;
574
+ coach: boolean;
575
+ superAdmin: boolean;
576
+ };
577
+ createdAt: string;
578
+ profileAssetId?: string | null | undefined;
579
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
580
+ timeZone?: string | null | undefined;
581
+ communicationPreferences?: {
582
+ hintsTips: boolean;
583
+ appUpdatesNewFeatures: boolean;
584
+ promotionsOffers: boolean;
585
+ } | undefined;
586
+ communicationPreferencesUpdatedAt?: string | null | undefined;
587
+ };
588
+ coachUser: {
589
+ id: string;
590
+ authUserId: string;
591
+ email: string;
592
+ name: string;
593
+ defaultRole: "family" | "coach" | "superAdmin";
594
+ roles: {
595
+ family: boolean;
596
+ coach: boolean;
597
+ superAdmin: boolean;
598
+ };
599
+ createdAt: string;
600
+ profileAssetId?: string | null | undefined;
601
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
602
+ timeZone?: string | null | undefined;
603
+ communicationPreferences?: {
604
+ hintsTips: boolean;
605
+ appUpdatesNewFeatures: boolean;
606
+ promotionsOffers: boolean;
607
+ } | undefined;
608
+ communicationPreferencesUpdatedAt?: string | null | undefined;
609
+ };
610
+ startedAt: string;
611
+ expiresAt: string;
612
+ readOnly: boolean;
613
+ } | undefined;
216
614
  }, {
217
615
  auth: {
218
616
  authUserId: string;
@@ -231,12 +629,71 @@ export declare const sessionContextSchema: z.ZodObject<{
231
629
  coach: boolean;
232
630
  superAdmin: boolean;
233
631
  };
632
+ createdAt: string;
633
+ profileAssetId?: string | null | undefined;
634
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
635
+ timeZone?: string | null | undefined;
636
+ communicationPreferences?: {
637
+ hintsTips: boolean;
638
+ appUpdatesNewFeatures: boolean;
639
+ promotionsOffers: boolean;
640
+ } | undefined;
641
+ communicationPreferencesUpdatedAt?: string | null | undefined;
234
642
  };
235
643
  actorRoles: {
236
644
  family: boolean;
237
645
  coach: boolean;
238
646
  superAdmin: boolean;
239
647
  };
648
+ ownerViewAsCoach?: {
649
+ ownerUser: {
650
+ id: string;
651
+ authUserId: string;
652
+ email: string;
653
+ name: string;
654
+ defaultRole: "family" | "coach" | "superAdmin";
655
+ roles: {
656
+ family: boolean;
657
+ coach: boolean;
658
+ superAdmin: boolean;
659
+ };
660
+ createdAt: string;
661
+ profileAssetId?: string | null | undefined;
662
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
663
+ timeZone?: string | null | undefined;
664
+ communicationPreferences?: {
665
+ hintsTips: boolean;
666
+ appUpdatesNewFeatures: boolean;
667
+ promotionsOffers: boolean;
668
+ } | undefined;
669
+ communicationPreferencesUpdatedAt?: string | null | undefined;
670
+ };
671
+ coachUser: {
672
+ id: string;
673
+ authUserId: string;
674
+ email: string;
675
+ name: string;
676
+ defaultRole: "family" | "coach" | "superAdmin";
677
+ roles: {
678
+ family: boolean;
679
+ coach: boolean;
680
+ superAdmin: boolean;
681
+ };
682
+ createdAt: string;
683
+ profileAssetId?: string | null | undefined;
684
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
685
+ timeZone?: string | null | undefined;
686
+ communicationPreferences?: {
687
+ hintsTips: boolean;
688
+ appUpdatesNewFeatures: boolean;
689
+ promotionsOffers: boolean;
690
+ } | undefined;
691
+ communicationPreferencesUpdatedAt?: string | null | undefined;
692
+ };
693
+ startedAt: string;
694
+ expiresAt: string;
695
+ readOnly: boolean;
696
+ } | undefined;
240
697
  }>;
241
698
  export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
242
699
  state: z.ZodLiteral<"authenticated">;
@@ -278,6 +735,23 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
278
735
  authUserId: z.ZodString;
279
736
  email: z.ZodString;
280
737
  name: z.ZodString;
738
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
740
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
741
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
742
+ hintsTips: z.ZodBoolean;
743
+ appUpdatesNewFeatures: z.ZodBoolean;
744
+ promotionsOffers: z.ZodBoolean;
745
+ }, "strict", z.ZodTypeAny, {
746
+ hintsTips: boolean;
747
+ appUpdatesNewFeatures: boolean;
748
+ promotionsOffers: boolean;
749
+ }, {
750
+ hintsTips: boolean;
751
+ appUpdatesNewFeatures: boolean;
752
+ promotionsOffers: boolean;
753
+ }>>;
754
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
755
  defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
282
756
  roles: z.ZodObject<{
283
757
  family: z.ZodBoolean;
@@ -292,6 +766,7 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
292
766
  coach: boolean;
293
767
  superAdmin: boolean;
294
768
  }>;
769
+ createdAt: z.ZodString;
295
770
  }, "strip", z.ZodTypeAny, {
296
771
  id: string;
297
772
  authUserId: string;
@@ -303,6 +778,16 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
303
778
  coach: boolean;
304
779
  superAdmin: boolean;
305
780
  };
781
+ createdAt: string;
782
+ profileAssetId?: string | null | undefined;
783
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
784
+ timeZone?: string | null | undefined;
785
+ communicationPreferences?: {
786
+ hintsTips: boolean;
787
+ appUpdatesNewFeatures: boolean;
788
+ promotionsOffers: boolean;
789
+ } | undefined;
790
+ communicationPreferencesUpdatedAt?: string | null | undefined;
306
791
  }, {
307
792
  id: string;
308
793
  authUserId: string;
@@ -314,6 +799,16 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
314
799
  coach: boolean;
315
800
  superAdmin: boolean;
316
801
  };
802
+ createdAt: string;
803
+ profileAssetId?: string | null | undefined;
804
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
805
+ timeZone?: string | null | undefined;
806
+ communicationPreferences?: {
807
+ hintsTips: boolean;
808
+ appUpdatesNewFeatures: boolean;
809
+ promotionsOffers: boolean;
810
+ } | undefined;
811
+ communicationPreferencesUpdatedAt?: string | null | undefined;
317
812
  }>;
318
813
  actorRoles: z.ZodObject<{
319
814
  family: z.ZodBoolean;
@@ -328,6 +823,267 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
328
823
  coach: boolean;
329
824
  superAdmin: boolean;
330
825
  }>;
826
+ ownerViewAsCoach: z.ZodOptional<z.ZodObject<{
827
+ ownerUser: z.ZodObject<{
828
+ id: z.ZodString;
829
+ authUserId: z.ZodString;
830
+ email: z.ZodString;
831
+ name: z.ZodString;
832
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
833
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
834
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
835
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
836
+ hintsTips: z.ZodBoolean;
837
+ appUpdatesNewFeatures: z.ZodBoolean;
838
+ promotionsOffers: z.ZodBoolean;
839
+ }, "strict", z.ZodTypeAny, {
840
+ hintsTips: boolean;
841
+ appUpdatesNewFeatures: boolean;
842
+ promotionsOffers: boolean;
843
+ }, {
844
+ hintsTips: boolean;
845
+ appUpdatesNewFeatures: boolean;
846
+ promotionsOffers: boolean;
847
+ }>>;
848
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
849
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
850
+ roles: z.ZodObject<{
851
+ family: z.ZodBoolean;
852
+ coach: z.ZodBoolean;
853
+ superAdmin: z.ZodBoolean;
854
+ }, "strip", z.ZodTypeAny, {
855
+ family: boolean;
856
+ coach: boolean;
857
+ superAdmin: boolean;
858
+ }, {
859
+ family: boolean;
860
+ coach: boolean;
861
+ superAdmin: boolean;
862
+ }>;
863
+ createdAt: z.ZodString;
864
+ }, "strip", z.ZodTypeAny, {
865
+ id: string;
866
+ authUserId: string;
867
+ email: string;
868
+ name: string;
869
+ defaultRole: "family" | "coach" | "superAdmin";
870
+ roles: {
871
+ family: boolean;
872
+ coach: boolean;
873
+ superAdmin: boolean;
874
+ };
875
+ createdAt: string;
876
+ profileAssetId?: string | null | undefined;
877
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
878
+ timeZone?: string | null | undefined;
879
+ communicationPreferences?: {
880
+ hintsTips: boolean;
881
+ appUpdatesNewFeatures: boolean;
882
+ promotionsOffers: boolean;
883
+ } | undefined;
884
+ communicationPreferencesUpdatedAt?: string | null | undefined;
885
+ }, {
886
+ id: string;
887
+ authUserId: string;
888
+ email: string;
889
+ name: string;
890
+ defaultRole: "family" | "coach" | "superAdmin";
891
+ roles: {
892
+ family: boolean;
893
+ coach: boolean;
894
+ superAdmin: boolean;
895
+ };
896
+ createdAt: string;
897
+ profileAssetId?: string | null | undefined;
898
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
899
+ timeZone?: string | null | undefined;
900
+ communicationPreferences?: {
901
+ hintsTips: boolean;
902
+ appUpdatesNewFeatures: boolean;
903
+ promotionsOffers: boolean;
904
+ } | undefined;
905
+ communicationPreferencesUpdatedAt?: string | null | undefined;
906
+ }>;
907
+ coachUser: z.ZodObject<{
908
+ id: z.ZodString;
909
+ authUserId: z.ZodString;
910
+ email: z.ZodString;
911
+ name: z.ZodString;
912
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
913
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
914
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
915
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
916
+ hintsTips: z.ZodBoolean;
917
+ appUpdatesNewFeatures: z.ZodBoolean;
918
+ promotionsOffers: z.ZodBoolean;
919
+ }, "strict", z.ZodTypeAny, {
920
+ hintsTips: boolean;
921
+ appUpdatesNewFeatures: boolean;
922
+ promotionsOffers: boolean;
923
+ }, {
924
+ hintsTips: boolean;
925
+ appUpdatesNewFeatures: boolean;
926
+ promotionsOffers: boolean;
927
+ }>>;
928
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
930
+ roles: z.ZodObject<{
931
+ family: z.ZodBoolean;
932
+ coach: z.ZodBoolean;
933
+ superAdmin: z.ZodBoolean;
934
+ }, "strip", z.ZodTypeAny, {
935
+ family: boolean;
936
+ coach: boolean;
937
+ superAdmin: boolean;
938
+ }, {
939
+ family: boolean;
940
+ coach: boolean;
941
+ superAdmin: boolean;
942
+ }>;
943
+ createdAt: z.ZodString;
944
+ }, "strip", z.ZodTypeAny, {
945
+ id: string;
946
+ authUserId: string;
947
+ email: string;
948
+ name: string;
949
+ defaultRole: "family" | "coach" | "superAdmin";
950
+ roles: {
951
+ family: boolean;
952
+ coach: boolean;
953
+ superAdmin: boolean;
954
+ };
955
+ createdAt: string;
956
+ profileAssetId?: string | null | undefined;
957
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
958
+ timeZone?: string | null | undefined;
959
+ communicationPreferences?: {
960
+ hintsTips: boolean;
961
+ appUpdatesNewFeatures: boolean;
962
+ promotionsOffers: boolean;
963
+ } | undefined;
964
+ communicationPreferencesUpdatedAt?: string | null | undefined;
965
+ }, {
966
+ id: string;
967
+ authUserId: string;
968
+ email: string;
969
+ name: string;
970
+ defaultRole: "family" | "coach" | "superAdmin";
971
+ roles: {
972
+ family: boolean;
973
+ coach: boolean;
974
+ superAdmin: boolean;
975
+ };
976
+ createdAt: string;
977
+ profileAssetId?: string | null | undefined;
978
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
979
+ timeZone?: string | null | undefined;
980
+ communicationPreferences?: {
981
+ hintsTips: boolean;
982
+ appUpdatesNewFeatures: boolean;
983
+ promotionsOffers: boolean;
984
+ } | undefined;
985
+ communicationPreferencesUpdatedAt?: string | null | undefined;
986
+ }>;
987
+ startedAt: z.ZodString;
988
+ expiresAt: z.ZodString;
989
+ readOnly: z.ZodBoolean;
990
+ }, "strip", z.ZodTypeAny, {
991
+ ownerUser: {
992
+ id: string;
993
+ authUserId: string;
994
+ email: string;
995
+ name: string;
996
+ defaultRole: "family" | "coach" | "superAdmin";
997
+ roles: {
998
+ family: boolean;
999
+ coach: boolean;
1000
+ superAdmin: boolean;
1001
+ };
1002
+ createdAt: string;
1003
+ profileAssetId?: string | null | undefined;
1004
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1005
+ timeZone?: string | null | undefined;
1006
+ communicationPreferences?: {
1007
+ hintsTips: boolean;
1008
+ appUpdatesNewFeatures: boolean;
1009
+ promotionsOffers: boolean;
1010
+ } | undefined;
1011
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1012
+ };
1013
+ coachUser: {
1014
+ id: string;
1015
+ authUserId: string;
1016
+ email: string;
1017
+ name: string;
1018
+ defaultRole: "family" | "coach" | "superAdmin";
1019
+ roles: {
1020
+ family: boolean;
1021
+ coach: boolean;
1022
+ superAdmin: boolean;
1023
+ };
1024
+ createdAt: string;
1025
+ profileAssetId?: string | null | undefined;
1026
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1027
+ timeZone?: string | null | undefined;
1028
+ communicationPreferences?: {
1029
+ hintsTips: boolean;
1030
+ appUpdatesNewFeatures: boolean;
1031
+ promotionsOffers: boolean;
1032
+ } | undefined;
1033
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1034
+ };
1035
+ startedAt: string;
1036
+ expiresAt: string;
1037
+ readOnly: boolean;
1038
+ }, {
1039
+ ownerUser: {
1040
+ id: string;
1041
+ authUserId: string;
1042
+ email: string;
1043
+ name: string;
1044
+ defaultRole: "family" | "coach" | "superAdmin";
1045
+ roles: {
1046
+ family: boolean;
1047
+ coach: boolean;
1048
+ superAdmin: boolean;
1049
+ };
1050
+ createdAt: string;
1051
+ profileAssetId?: string | null | undefined;
1052
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1053
+ timeZone?: string | null | undefined;
1054
+ communicationPreferences?: {
1055
+ hintsTips: boolean;
1056
+ appUpdatesNewFeatures: boolean;
1057
+ promotionsOffers: boolean;
1058
+ } | undefined;
1059
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1060
+ };
1061
+ coachUser: {
1062
+ id: string;
1063
+ authUserId: string;
1064
+ email: string;
1065
+ name: string;
1066
+ defaultRole: "family" | "coach" | "superAdmin";
1067
+ roles: {
1068
+ family: boolean;
1069
+ coach: boolean;
1070
+ superAdmin: boolean;
1071
+ };
1072
+ createdAt: string;
1073
+ profileAssetId?: string | null | undefined;
1074
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1075
+ timeZone?: string | null | undefined;
1076
+ communicationPreferences?: {
1077
+ hintsTips: boolean;
1078
+ appUpdatesNewFeatures: boolean;
1079
+ promotionsOffers: boolean;
1080
+ } | undefined;
1081
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1082
+ };
1083
+ startedAt: string;
1084
+ expiresAt: string;
1085
+ readOnly: boolean;
1086
+ }>>;
331
1087
  }, "strip", z.ZodTypeAny, {
332
1088
  auth: {
333
1089
  authUserId: string;
@@ -346,12 +1102,71 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
346
1102
  coach: boolean;
347
1103
  superAdmin: boolean;
348
1104
  };
1105
+ createdAt: string;
1106
+ profileAssetId?: string | null | undefined;
1107
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1108
+ timeZone?: string | null | undefined;
1109
+ communicationPreferences?: {
1110
+ hintsTips: boolean;
1111
+ appUpdatesNewFeatures: boolean;
1112
+ promotionsOffers: boolean;
1113
+ } | undefined;
1114
+ communicationPreferencesUpdatedAt?: string | null | undefined;
349
1115
  };
350
1116
  actorRoles: {
351
1117
  family: boolean;
352
1118
  coach: boolean;
353
1119
  superAdmin: boolean;
354
1120
  };
1121
+ ownerViewAsCoach?: {
1122
+ ownerUser: {
1123
+ id: string;
1124
+ authUserId: string;
1125
+ email: string;
1126
+ name: string;
1127
+ defaultRole: "family" | "coach" | "superAdmin";
1128
+ roles: {
1129
+ family: boolean;
1130
+ coach: boolean;
1131
+ superAdmin: boolean;
1132
+ };
1133
+ createdAt: string;
1134
+ profileAssetId?: string | null | undefined;
1135
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1136
+ timeZone?: string | null | undefined;
1137
+ communicationPreferences?: {
1138
+ hintsTips: boolean;
1139
+ appUpdatesNewFeatures: boolean;
1140
+ promotionsOffers: boolean;
1141
+ } | undefined;
1142
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1143
+ };
1144
+ coachUser: {
1145
+ id: string;
1146
+ authUserId: string;
1147
+ email: string;
1148
+ name: string;
1149
+ defaultRole: "family" | "coach" | "superAdmin";
1150
+ roles: {
1151
+ family: boolean;
1152
+ coach: boolean;
1153
+ superAdmin: boolean;
1154
+ };
1155
+ createdAt: string;
1156
+ profileAssetId?: string | null | undefined;
1157
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1158
+ timeZone?: string | null | undefined;
1159
+ communicationPreferences?: {
1160
+ hintsTips: boolean;
1161
+ appUpdatesNewFeatures: boolean;
1162
+ promotionsOffers: boolean;
1163
+ } | undefined;
1164
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1165
+ };
1166
+ startedAt: string;
1167
+ expiresAt: string;
1168
+ readOnly: boolean;
1169
+ } | undefined;
355
1170
  }, {
356
1171
  auth: {
357
1172
  authUserId: string;
@@ -370,12 +1185,71 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
370
1185
  coach: boolean;
371
1186
  superAdmin: boolean;
372
1187
  };
1188
+ createdAt: string;
1189
+ profileAssetId?: string | null | undefined;
1190
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1191
+ timeZone?: string | null | undefined;
1192
+ communicationPreferences?: {
1193
+ hintsTips: boolean;
1194
+ appUpdatesNewFeatures: boolean;
1195
+ promotionsOffers: boolean;
1196
+ } | undefined;
1197
+ communicationPreferencesUpdatedAt?: string | null | undefined;
373
1198
  };
374
1199
  actorRoles: {
375
1200
  family: boolean;
376
1201
  coach: boolean;
377
1202
  superAdmin: boolean;
378
1203
  };
1204
+ ownerViewAsCoach?: {
1205
+ ownerUser: {
1206
+ id: string;
1207
+ authUserId: string;
1208
+ email: string;
1209
+ name: string;
1210
+ defaultRole: "family" | "coach" | "superAdmin";
1211
+ roles: {
1212
+ family: boolean;
1213
+ coach: boolean;
1214
+ superAdmin: boolean;
1215
+ };
1216
+ createdAt: string;
1217
+ profileAssetId?: string | null | undefined;
1218
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1219
+ timeZone?: string | null | undefined;
1220
+ communicationPreferences?: {
1221
+ hintsTips: boolean;
1222
+ appUpdatesNewFeatures: boolean;
1223
+ promotionsOffers: boolean;
1224
+ } | undefined;
1225
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1226
+ };
1227
+ coachUser: {
1228
+ id: string;
1229
+ authUserId: string;
1230
+ email: string;
1231
+ name: string;
1232
+ defaultRole: "family" | "coach" | "superAdmin";
1233
+ roles: {
1234
+ family: boolean;
1235
+ coach: boolean;
1236
+ superAdmin: boolean;
1237
+ };
1238
+ createdAt: string;
1239
+ profileAssetId?: string | null | undefined;
1240
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1241
+ timeZone?: string | null | undefined;
1242
+ communicationPreferences?: {
1243
+ hintsTips: boolean;
1244
+ appUpdatesNewFeatures: boolean;
1245
+ promotionsOffers: boolean;
1246
+ } | undefined;
1247
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1248
+ };
1249
+ startedAt: string;
1250
+ expiresAt: string;
1251
+ readOnly: boolean;
1252
+ } | undefined;
379
1253
  }>;
380
1254
  onboardingNeeded: z.ZodLiteral<false>;
381
1255
  }, "strip", z.ZodTypeAny, {
@@ -405,12 +1279,71 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
405
1279
  coach: boolean;
406
1280
  superAdmin: boolean;
407
1281
  };
1282
+ createdAt: string;
1283
+ profileAssetId?: string | null | undefined;
1284
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1285
+ timeZone?: string | null | undefined;
1286
+ communicationPreferences?: {
1287
+ hintsTips: boolean;
1288
+ appUpdatesNewFeatures: boolean;
1289
+ promotionsOffers: boolean;
1290
+ } | undefined;
1291
+ communicationPreferencesUpdatedAt?: string | null | undefined;
408
1292
  };
409
1293
  actorRoles: {
410
1294
  family: boolean;
411
1295
  coach: boolean;
412
1296
  superAdmin: boolean;
413
1297
  };
1298
+ ownerViewAsCoach?: {
1299
+ ownerUser: {
1300
+ id: string;
1301
+ authUserId: string;
1302
+ email: string;
1303
+ name: string;
1304
+ defaultRole: "family" | "coach" | "superAdmin";
1305
+ roles: {
1306
+ family: boolean;
1307
+ coach: boolean;
1308
+ superAdmin: boolean;
1309
+ };
1310
+ createdAt: string;
1311
+ profileAssetId?: string | null | undefined;
1312
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1313
+ timeZone?: string | null | undefined;
1314
+ communicationPreferences?: {
1315
+ hintsTips: boolean;
1316
+ appUpdatesNewFeatures: boolean;
1317
+ promotionsOffers: boolean;
1318
+ } | undefined;
1319
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1320
+ };
1321
+ coachUser: {
1322
+ id: string;
1323
+ authUserId: string;
1324
+ email: string;
1325
+ name: string;
1326
+ defaultRole: "family" | "coach" | "superAdmin";
1327
+ roles: {
1328
+ family: boolean;
1329
+ coach: boolean;
1330
+ superAdmin: boolean;
1331
+ };
1332
+ createdAt: string;
1333
+ profileAssetId?: string | null | undefined;
1334
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1335
+ timeZone?: string | null | undefined;
1336
+ communicationPreferences?: {
1337
+ hintsTips: boolean;
1338
+ appUpdatesNewFeatures: boolean;
1339
+ promotionsOffers: boolean;
1340
+ } | undefined;
1341
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1342
+ };
1343
+ startedAt: string;
1344
+ expiresAt: string;
1345
+ readOnly: boolean;
1346
+ } | undefined;
414
1347
  };
415
1348
  }, {
416
1349
  state: "authenticated";
@@ -439,12 +1372,71 @@ export declare const authMeResponseSchema: z.ZodDiscriminatedUnion<"state", [z.Z
439
1372
  coach: boolean;
440
1373
  superAdmin: boolean;
441
1374
  };
1375
+ createdAt: string;
1376
+ profileAssetId?: string | null | undefined;
1377
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1378
+ timeZone?: string | null | undefined;
1379
+ communicationPreferences?: {
1380
+ hintsTips: boolean;
1381
+ appUpdatesNewFeatures: boolean;
1382
+ promotionsOffers: boolean;
1383
+ } | undefined;
1384
+ communicationPreferencesUpdatedAt?: string | null | undefined;
442
1385
  };
443
1386
  actorRoles: {
444
1387
  family: boolean;
445
1388
  coach: boolean;
446
1389
  superAdmin: boolean;
447
1390
  };
1391
+ ownerViewAsCoach?: {
1392
+ ownerUser: {
1393
+ id: string;
1394
+ authUserId: string;
1395
+ email: string;
1396
+ name: string;
1397
+ defaultRole: "family" | "coach" | "superAdmin";
1398
+ roles: {
1399
+ family: boolean;
1400
+ coach: boolean;
1401
+ superAdmin: boolean;
1402
+ };
1403
+ createdAt: string;
1404
+ profileAssetId?: string | null | undefined;
1405
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1406
+ timeZone?: string | null | undefined;
1407
+ communicationPreferences?: {
1408
+ hintsTips: boolean;
1409
+ appUpdatesNewFeatures: boolean;
1410
+ promotionsOffers: boolean;
1411
+ } | undefined;
1412
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1413
+ };
1414
+ coachUser: {
1415
+ id: string;
1416
+ authUserId: string;
1417
+ email: string;
1418
+ name: string;
1419
+ defaultRole: "family" | "coach" | "superAdmin";
1420
+ roles: {
1421
+ family: boolean;
1422
+ coach: boolean;
1423
+ superAdmin: boolean;
1424
+ };
1425
+ createdAt: string;
1426
+ profileAssetId?: string | null | undefined;
1427
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1428
+ timeZone?: string | null | undefined;
1429
+ communicationPreferences?: {
1430
+ hintsTips: boolean;
1431
+ appUpdatesNewFeatures: boolean;
1432
+ promotionsOffers: boolean;
1433
+ } | undefined;
1434
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1435
+ };
1436
+ startedAt: string;
1437
+ expiresAt: string;
1438
+ readOnly: boolean;
1439
+ } | undefined;
448
1440
  };
449
1441
  }>, z.ZodObject<{
450
1442
  state: z.ZodLiteral<"onboardingNeeded">;
@@ -507,21 +1499,285 @@ export declare const subjectPermissionsSchema: z.ZodObject<{
507
1499
  canRevokeAssignment: boolean;
508
1500
  canViewAnalysis: boolean;
509
1501
  }>;
1502
+ export declare const organizationBrandingThemeSchema: z.ZodObject<{
1503
+ documentBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
+ screenBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
+ surfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1506
+ mutedSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1507
+ softSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1508
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1509
+ greenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1510
+ lavenderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1511
+ yellowColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1512
+ pinkColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1513
+ deepGreenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
+ blueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1515
+ }, "strict", z.ZodTypeAny, {
1516
+ documentBackgroundColor?: string | null | undefined;
1517
+ screenBackgroundColor?: string | null | undefined;
1518
+ surfaceColor?: string | null | undefined;
1519
+ mutedSurfaceColor?: string | null | undefined;
1520
+ softSurfaceColor?: string | null | undefined;
1521
+ textColor?: string | null | undefined;
1522
+ greenColor?: string | null | undefined;
1523
+ lavenderColor?: string | null | undefined;
1524
+ yellowColor?: string | null | undefined;
1525
+ pinkColor?: string | null | undefined;
1526
+ deepGreenColor?: string | null | undefined;
1527
+ blueColor?: string | null | undefined;
1528
+ }, {
1529
+ documentBackgroundColor?: string | null | undefined;
1530
+ screenBackgroundColor?: string | null | undefined;
1531
+ surfaceColor?: string | null | undefined;
1532
+ mutedSurfaceColor?: string | null | undefined;
1533
+ softSurfaceColor?: string | null | undefined;
1534
+ textColor?: string | null | undefined;
1535
+ greenColor?: string | null | undefined;
1536
+ lavenderColor?: string | null | undefined;
1537
+ yellowColor?: string | null | undefined;
1538
+ pinkColor?: string | null | undefined;
1539
+ deepGreenColor?: string | null | undefined;
1540
+ blueColor?: string | null | undefined;
1541
+ }>;
1542
+ export declare const organizationBrandingSchema: z.ZodObject<{
1543
+ primaryColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1544
+ accentColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1545
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1546
+ theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1547
+ documentBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1548
+ screenBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1549
+ surfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1550
+ mutedSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1551
+ softSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1552
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1553
+ greenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
+ lavenderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1555
+ yellowColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1556
+ pinkColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1557
+ deepGreenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1558
+ blueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1559
+ }, "strict", z.ZodTypeAny, {
1560
+ documentBackgroundColor?: string | null | undefined;
1561
+ screenBackgroundColor?: string | null | undefined;
1562
+ surfaceColor?: string | null | undefined;
1563
+ mutedSurfaceColor?: string | null | undefined;
1564
+ softSurfaceColor?: string | null | undefined;
1565
+ textColor?: string | null | undefined;
1566
+ greenColor?: string | null | undefined;
1567
+ lavenderColor?: string | null | undefined;
1568
+ yellowColor?: string | null | undefined;
1569
+ pinkColor?: string | null | undefined;
1570
+ deepGreenColor?: string | null | undefined;
1571
+ blueColor?: string | null | undefined;
1572
+ }, {
1573
+ documentBackgroundColor?: string | null | undefined;
1574
+ screenBackgroundColor?: string | null | undefined;
1575
+ surfaceColor?: string | null | undefined;
1576
+ mutedSurfaceColor?: string | null | undefined;
1577
+ softSurfaceColor?: string | null | undefined;
1578
+ textColor?: string | null | undefined;
1579
+ greenColor?: string | null | undefined;
1580
+ lavenderColor?: string | null | undefined;
1581
+ yellowColor?: string | null | undefined;
1582
+ pinkColor?: string | null | undefined;
1583
+ deepGreenColor?: string | null | undefined;
1584
+ blueColor?: string | null | undefined;
1585
+ }>>>;
1586
+ logoAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1587
+ welcomeMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1588
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1589
+ }, "strip", z.ZodTypeAny, {
1590
+ primaryColor?: string | null | undefined;
1591
+ accentColor?: string | null | undefined;
1592
+ backgroundColor?: string | null | undefined;
1593
+ theme?: {
1594
+ documentBackgroundColor?: string | null | undefined;
1595
+ screenBackgroundColor?: string | null | undefined;
1596
+ surfaceColor?: string | null | undefined;
1597
+ mutedSurfaceColor?: string | null | undefined;
1598
+ softSurfaceColor?: string | null | undefined;
1599
+ textColor?: string | null | undefined;
1600
+ greenColor?: string | null | undefined;
1601
+ lavenderColor?: string | null | undefined;
1602
+ yellowColor?: string | null | undefined;
1603
+ pinkColor?: string | null | undefined;
1604
+ deepGreenColor?: string | null | undefined;
1605
+ blueColor?: string | null | undefined;
1606
+ } | null | undefined;
1607
+ logoAssetId?: string | null | undefined;
1608
+ welcomeMessage?: string | null | undefined;
1609
+ updatedAt?: string | null | undefined;
1610
+ }, {
1611
+ primaryColor?: string | null | undefined;
1612
+ accentColor?: string | null | undefined;
1613
+ backgroundColor?: string | null | undefined;
1614
+ theme?: {
1615
+ documentBackgroundColor?: string | null | undefined;
1616
+ screenBackgroundColor?: string | null | undefined;
1617
+ surfaceColor?: string | null | undefined;
1618
+ mutedSurfaceColor?: string | null | undefined;
1619
+ softSurfaceColor?: string | null | undefined;
1620
+ textColor?: string | null | undefined;
1621
+ greenColor?: string | null | undefined;
1622
+ lavenderColor?: string | null | undefined;
1623
+ yellowColor?: string | null | undefined;
1624
+ pinkColor?: string | null | undefined;
1625
+ deepGreenColor?: string | null | undefined;
1626
+ blueColor?: string | null | undefined;
1627
+ } | null | undefined;
1628
+ logoAssetId?: string | null | undefined;
1629
+ welcomeMessage?: string | null | undefined;
1630
+ updatedAt?: string | null | undefined;
1631
+ }>;
510
1632
  export declare const organizationSummarySchema: z.ZodObject<{
511
1633
  id: z.ZodString;
512
1634
  name: z.ZodString;
513
1635
  type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
514
1636
  status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
1637
+ branding: z.ZodOptional<z.ZodObject<{
1638
+ primaryColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1639
+ accentColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1640
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1641
+ theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1642
+ documentBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1643
+ screenBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1644
+ surfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1645
+ mutedSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1646
+ softSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1647
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ greenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1649
+ lavenderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1650
+ yellowColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1651
+ pinkColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1652
+ deepGreenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1653
+ blueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1654
+ }, "strict", z.ZodTypeAny, {
1655
+ documentBackgroundColor?: string | null | undefined;
1656
+ screenBackgroundColor?: string | null | undefined;
1657
+ surfaceColor?: string | null | undefined;
1658
+ mutedSurfaceColor?: string | null | undefined;
1659
+ softSurfaceColor?: string | null | undefined;
1660
+ textColor?: string | null | undefined;
1661
+ greenColor?: string | null | undefined;
1662
+ lavenderColor?: string | null | undefined;
1663
+ yellowColor?: string | null | undefined;
1664
+ pinkColor?: string | null | undefined;
1665
+ deepGreenColor?: string | null | undefined;
1666
+ blueColor?: string | null | undefined;
1667
+ }, {
1668
+ documentBackgroundColor?: string | null | undefined;
1669
+ screenBackgroundColor?: string | null | undefined;
1670
+ surfaceColor?: string | null | undefined;
1671
+ mutedSurfaceColor?: string | null | undefined;
1672
+ softSurfaceColor?: string | null | undefined;
1673
+ textColor?: string | null | undefined;
1674
+ greenColor?: string | null | undefined;
1675
+ lavenderColor?: string | null | undefined;
1676
+ yellowColor?: string | null | undefined;
1677
+ pinkColor?: string | null | undefined;
1678
+ deepGreenColor?: string | null | undefined;
1679
+ blueColor?: string | null | undefined;
1680
+ }>>>;
1681
+ logoAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1682
+ welcomeMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1683
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ primaryColor?: string | null | undefined;
1686
+ accentColor?: string | null | undefined;
1687
+ backgroundColor?: string | null | undefined;
1688
+ theme?: {
1689
+ documentBackgroundColor?: string | null | undefined;
1690
+ screenBackgroundColor?: string | null | undefined;
1691
+ surfaceColor?: string | null | undefined;
1692
+ mutedSurfaceColor?: string | null | undefined;
1693
+ softSurfaceColor?: string | null | undefined;
1694
+ textColor?: string | null | undefined;
1695
+ greenColor?: string | null | undefined;
1696
+ lavenderColor?: string | null | undefined;
1697
+ yellowColor?: string | null | undefined;
1698
+ pinkColor?: string | null | undefined;
1699
+ deepGreenColor?: string | null | undefined;
1700
+ blueColor?: string | null | undefined;
1701
+ } | null | undefined;
1702
+ logoAssetId?: string | null | undefined;
1703
+ welcomeMessage?: string | null | undefined;
1704
+ updatedAt?: string | null | undefined;
1705
+ }, {
1706
+ primaryColor?: string | null | undefined;
1707
+ accentColor?: string | null | undefined;
1708
+ backgroundColor?: string | null | undefined;
1709
+ theme?: {
1710
+ documentBackgroundColor?: string | null | undefined;
1711
+ screenBackgroundColor?: string | null | undefined;
1712
+ surfaceColor?: string | null | undefined;
1713
+ mutedSurfaceColor?: string | null | undefined;
1714
+ softSurfaceColor?: string | null | undefined;
1715
+ textColor?: string | null | undefined;
1716
+ greenColor?: string | null | undefined;
1717
+ lavenderColor?: string | null | undefined;
1718
+ yellowColor?: string | null | undefined;
1719
+ pinkColor?: string | null | undefined;
1720
+ deepGreenColor?: string | null | undefined;
1721
+ blueColor?: string | null | undefined;
1722
+ } | null | undefined;
1723
+ logoAssetId?: string | null | undefined;
1724
+ welcomeMessage?: string | null | undefined;
1725
+ updatedAt?: string | null | undefined;
1726
+ }>>;
515
1727
  }, "strip", z.ZodTypeAny, {
516
1728
  type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
517
1729
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
518
1730
  id: string;
519
1731
  name: string;
1732
+ branding?: {
1733
+ primaryColor?: string | null | undefined;
1734
+ accentColor?: string | null | undefined;
1735
+ backgroundColor?: string | null | undefined;
1736
+ theme?: {
1737
+ documentBackgroundColor?: string | null | undefined;
1738
+ screenBackgroundColor?: string | null | undefined;
1739
+ surfaceColor?: string | null | undefined;
1740
+ mutedSurfaceColor?: string | null | undefined;
1741
+ softSurfaceColor?: string | null | undefined;
1742
+ textColor?: string | null | undefined;
1743
+ greenColor?: string | null | undefined;
1744
+ lavenderColor?: string | null | undefined;
1745
+ yellowColor?: string | null | undefined;
1746
+ pinkColor?: string | null | undefined;
1747
+ deepGreenColor?: string | null | undefined;
1748
+ blueColor?: string | null | undefined;
1749
+ } | null | undefined;
1750
+ logoAssetId?: string | null | undefined;
1751
+ welcomeMessage?: string | null | undefined;
1752
+ updatedAt?: string | null | undefined;
1753
+ } | undefined;
520
1754
  }, {
521
1755
  type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
522
1756
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
523
1757
  id: string;
524
1758
  name: string;
1759
+ branding?: {
1760
+ primaryColor?: string | null | undefined;
1761
+ accentColor?: string | null | undefined;
1762
+ backgroundColor?: string | null | undefined;
1763
+ theme?: {
1764
+ documentBackgroundColor?: string | null | undefined;
1765
+ screenBackgroundColor?: string | null | undefined;
1766
+ surfaceColor?: string | null | undefined;
1767
+ mutedSurfaceColor?: string | null | undefined;
1768
+ softSurfaceColor?: string | null | undefined;
1769
+ textColor?: string | null | undefined;
1770
+ greenColor?: string | null | undefined;
1771
+ lavenderColor?: string | null | undefined;
1772
+ yellowColor?: string | null | undefined;
1773
+ pinkColor?: string | null | undefined;
1774
+ deepGreenColor?: string | null | undefined;
1775
+ blueColor?: string | null | undefined;
1776
+ } | null | undefined;
1777
+ logoAssetId?: string | null | undefined;
1778
+ welcomeMessage?: string | null | undefined;
1779
+ updatedAt?: string | null | undefined;
1780
+ } | undefined;
525
1781
  }>;
526
1782
  export declare const assignmentSummarySchema: z.ZodObject<{
527
1783
  id: z.ZodString;
@@ -532,6 +1788,7 @@ export declare const assignmentSummarySchema: z.ZodObject<{
532
1788
  canViewLogs: z.ZodBoolean;
533
1789
  canEditLogs: z.ZodBoolean;
534
1790
  canViewAnalysis: z.ZodBoolean;
1791
+ canManageSupportDates: z.ZodOptional<z.ZodBoolean>;
535
1792
  revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
536
1793
  }, "strip", z.ZodTypeAny, {
537
1794
  status: "active" | "revoked" | "transferred" | "expired";
@@ -541,6 +1798,7 @@ export declare const assignmentSummarySchema: z.ZodObject<{
541
1798
  coachUserId: string;
542
1799
  canViewLogs: boolean;
543
1800
  canEditLogs: boolean;
1801
+ canManageSupportDates?: boolean | undefined;
544
1802
  familyUserId?: string | undefined;
545
1803
  revokedAt?: string | null | undefined;
546
1804
  }, {
@@ -551,31 +1809,47 @@ export declare const assignmentSummarySchema: z.ZodObject<{
551
1809
  coachUserId: string;
552
1810
  canViewLogs: boolean;
553
1811
  canEditLogs: boolean;
1812
+ canManageSupportDates?: boolean | undefined;
554
1813
  familyUserId?: string | undefined;
555
1814
  revokedAt?: string | null | undefined;
556
1815
  }>;
557
- export declare const premiumDisabledReasonSchema: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
1816
+ export declare const premiumDisabledReasonSchema: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
558
1817
  export declare const premiumAccessResultSchema: z.ZodObject<{
559
1818
  active: z.ZodBoolean;
560
1819
  source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
561
1820
  entitlementId: z.ZodOptional<z.ZodString>;
562
1821
  organizationId: z.ZodOptional<z.ZodString>;
1822
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
1823
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
- disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
1824
+ supportEndedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1825
+ premiumGraceEndsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1826
+ premiumGraceDaysRemaining: z.ZodOptional<z.ZodNumber>;
1827
+ premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
1828
+ disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
565
1829
  }, "strip", z.ZodTypeAny, {
566
1830
  active: boolean;
567
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1831
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1832
+ expiresAt?: string | null | undefined;
568
1833
  organizationId?: string | undefined;
569
1834
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
570
1835
  entitlementId?: string | undefined;
571
- expiresAt?: string | null | undefined;
1836
+ startsAt?: string | null | undefined;
1837
+ supportEndedAt?: string | null | undefined;
1838
+ premiumGraceEndsAt?: string | null | undefined;
1839
+ premiumGraceDaysRemaining?: number | undefined;
1840
+ premiumGraceActive?: boolean | undefined;
572
1841
  }, {
573
1842
  active: boolean;
574
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1843
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
1844
+ expiresAt?: string | null | undefined;
575
1845
  organizationId?: string | undefined;
576
1846
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
577
1847
  entitlementId?: string | undefined;
578
- expiresAt?: string | null | undefined;
1848
+ startsAt?: string | null | undefined;
1849
+ supportEndedAt?: string | null | undefined;
1850
+ premiumGraceEndsAt?: string | null | undefined;
1851
+ premiumGraceDaysRemaining?: number | undefined;
1852
+ premiumGraceActive?: boolean | undefined;
579
1853
  }>;
580
1854
  export declare const subjectContextSchema: z.ZodObject<{
581
1855
  subjectUser: z.ZodNullable<z.ZodObject<{
@@ -583,6 +1857,23 @@ export declare const subjectContextSchema: z.ZodObject<{
583
1857
  authUserId: z.ZodString;
584
1858
  email: z.ZodString;
585
1859
  name: z.ZodString;
1860
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
1862
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1863
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
1864
+ hintsTips: z.ZodBoolean;
1865
+ appUpdatesNewFeatures: z.ZodBoolean;
1866
+ promotionsOffers: z.ZodBoolean;
1867
+ }, "strict", z.ZodTypeAny, {
1868
+ hintsTips: boolean;
1869
+ appUpdatesNewFeatures: boolean;
1870
+ promotionsOffers: boolean;
1871
+ }, {
1872
+ hintsTips: boolean;
1873
+ appUpdatesNewFeatures: boolean;
1874
+ promotionsOffers: boolean;
1875
+ }>>;
1876
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
586
1877
  defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
587
1878
  roles: z.ZodObject<{
588
1879
  family: z.ZodBoolean;
@@ -597,6 +1888,7 @@ export declare const subjectContextSchema: z.ZodObject<{
597
1888
  coach: boolean;
598
1889
  superAdmin: boolean;
599
1890
  }>;
1891
+ createdAt: z.ZodString;
600
1892
  }, "strip", z.ZodTypeAny, {
601
1893
  id: string;
602
1894
  authUserId: string;
@@ -608,6 +1900,16 @@ export declare const subjectContextSchema: z.ZodObject<{
608
1900
  coach: boolean;
609
1901
  superAdmin: boolean;
610
1902
  };
1903
+ createdAt: string;
1904
+ profileAssetId?: string | null | undefined;
1905
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1906
+ timeZone?: string | null | undefined;
1907
+ communicationPreferences?: {
1908
+ hintsTips: boolean;
1909
+ appUpdatesNewFeatures: boolean;
1910
+ promotionsOffers: boolean;
1911
+ } | undefined;
1912
+ communicationPreferencesUpdatedAt?: string | null | undefined;
611
1913
  }, {
612
1914
  id: string;
613
1915
  authUserId: string;
@@ -619,6 +1921,16 @@ export declare const subjectContextSchema: z.ZodObject<{
619
1921
  coach: boolean;
620
1922
  superAdmin: boolean;
621
1923
  };
1924
+ createdAt: string;
1925
+ profileAssetId?: string | null | undefined;
1926
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
1927
+ timeZone?: string | null | undefined;
1928
+ communicationPreferences?: {
1929
+ hintsTips: boolean;
1930
+ appUpdatesNewFeatures: boolean;
1931
+ promotionsOffers: boolean;
1932
+ } | undefined;
1933
+ communicationPreferencesUpdatedAt?: string | null | undefined;
622
1934
  }>>;
623
1935
  mode: z.ZodEnum<["self", "coachView", "coachAdminView", "superAdminView"]>;
624
1936
  permissions: z.ZodObject<{
@@ -649,6 +1961,7 @@ export declare const subjectContextSchema: z.ZodObject<{
649
1961
  canViewLogs: z.ZodBoolean;
650
1962
  canEditLogs: z.ZodBoolean;
651
1963
  canViewAnalysis: z.ZodBoolean;
1964
+ canManageSupportDates: z.ZodOptional<z.ZodBoolean>;
652
1965
  revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
1966
  }, "strip", z.ZodTypeAny, {
654
1967
  status: "active" | "revoked" | "transferred" | "expired";
@@ -658,6 +1971,7 @@ export declare const subjectContextSchema: z.ZodObject<{
658
1971
  coachUserId: string;
659
1972
  canViewLogs: boolean;
660
1973
  canEditLogs: boolean;
1974
+ canManageSupportDates?: boolean | undefined;
661
1975
  familyUserId?: string | undefined;
662
1976
  revokedAt?: string | null | undefined;
663
1977
  }, {
@@ -668,6 +1982,7 @@ export declare const subjectContextSchema: z.ZodObject<{
668
1982
  coachUserId: string;
669
1983
  canViewLogs: boolean;
670
1984
  canEditLogs: boolean;
1985
+ canManageSupportDates?: boolean | undefined;
671
1986
  familyUserId?: string | undefined;
672
1987
  revokedAt?: string | null | undefined;
673
1988
  }>>;
@@ -676,38 +1991,187 @@ export declare const subjectContextSchema: z.ZodObject<{
676
1991
  name: z.ZodString;
677
1992
  type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
678
1993
  status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
1994
+ branding: z.ZodOptional<z.ZodObject<{
1995
+ primaryColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1996
+ accentColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1997
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1998
+ theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1999
+ documentBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2000
+ screenBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2001
+ surfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2002
+ mutedSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2003
+ softSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2004
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2005
+ greenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2006
+ lavenderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2007
+ yellowColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2008
+ pinkColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2009
+ deepGreenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2010
+ blueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2011
+ }, "strict", z.ZodTypeAny, {
2012
+ documentBackgroundColor?: string | null | undefined;
2013
+ screenBackgroundColor?: string | null | undefined;
2014
+ surfaceColor?: string | null | undefined;
2015
+ mutedSurfaceColor?: string | null | undefined;
2016
+ softSurfaceColor?: string | null | undefined;
2017
+ textColor?: string | null | undefined;
2018
+ greenColor?: string | null | undefined;
2019
+ lavenderColor?: string | null | undefined;
2020
+ yellowColor?: string | null | undefined;
2021
+ pinkColor?: string | null | undefined;
2022
+ deepGreenColor?: string | null | undefined;
2023
+ blueColor?: string | null | undefined;
2024
+ }, {
2025
+ documentBackgroundColor?: string | null | undefined;
2026
+ screenBackgroundColor?: string | null | undefined;
2027
+ surfaceColor?: string | null | undefined;
2028
+ mutedSurfaceColor?: string | null | undefined;
2029
+ softSurfaceColor?: string | null | undefined;
2030
+ textColor?: string | null | undefined;
2031
+ greenColor?: string | null | undefined;
2032
+ lavenderColor?: string | null | undefined;
2033
+ yellowColor?: string | null | undefined;
2034
+ pinkColor?: string | null | undefined;
2035
+ deepGreenColor?: string | null | undefined;
2036
+ blueColor?: string | null | undefined;
2037
+ }>>>;
2038
+ logoAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2039
+ welcomeMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2040
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2041
+ }, "strip", z.ZodTypeAny, {
2042
+ primaryColor?: string | null | undefined;
2043
+ accentColor?: string | null | undefined;
2044
+ backgroundColor?: string | null | undefined;
2045
+ theme?: {
2046
+ documentBackgroundColor?: string | null | undefined;
2047
+ screenBackgroundColor?: string | null | undefined;
2048
+ surfaceColor?: string | null | undefined;
2049
+ mutedSurfaceColor?: string | null | undefined;
2050
+ softSurfaceColor?: string | null | undefined;
2051
+ textColor?: string | null | undefined;
2052
+ greenColor?: string | null | undefined;
2053
+ lavenderColor?: string | null | undefined;
2054
+ yellowColor?: string | null | undefined;
2055
+ pinkColor?: string | null | undefined;
2056
+ deepGreenColor?: string | null | undefined;
2057
+ blueColor?: string | null | undefined;
2058
+ } | null | undefined;
2059
+ logoAssetId?: string | null | undefined;
2060
+ welcomeMessage?: string | null | undefined;
2061
+ updatedAt?: string | null | undefined;
2062
+ }, {
2063
+ primaryColor?: string | null | undefined;
2064
+ accentColor?: string | null | undefined;
2065
+ backgroundColor?: string | null | undefined;
2066
+ theme?: {
2067
+ documentBackgroundColor?: string | null | undefined;
2068
+ screenBackgroundColor?: string | null | undefined;
2069
+ surfaceColor?: string | null | undefined;
2070
+ mutedSurfaceColor?: string | null | undefined;
2071
+ softSurfaceColor?: string | null | undefined;
2072
+ textColor?: string | null | undefined;
2073
+ greenColor?: string | null | undefined;
2074
+ lavenderColor?: string | null | undefined;
2075
+ yellowColor?: string | null | undefined;
2076
+ pinkColor?: string | null | undefined;
2077
+ deepGreenColor?: string | null | undefined;
2078
+ blueColor?: string | null | undefined;
2079
+ } | null | undefined;
2080
+ logoAssetId?: string | null | undefined;
2081
+ welcomeMessage?: string | null | undefined;
2082
+ updatedAt?: string | null | undefined;
2083
+ }>>;
679
2084
  }, "strip", z.ZodTypeAny, {
680
2085
  type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
681
2086
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
682
2087
  id: string;
683
2088
  name: string;
2089
+ branding?: {
2090
+ primaryColor?: string | null | undefined;
2091
+ accentColor?: string | null | undefined;
2092
+ backgroundColor?: string | null | undefined;
2093
+ theme?: {
2094
+ documentBackgroundColor?: string | null | undefined;
2095
+ screenBackgroundColor?: string | null | undefined;
2096
+ surfaceColor?: string | null | undefined;
2097
+ mutedSurfaceColor?: string | null | undefined;
2098
+ softSurfaceColor?: string | null | undefined;
2099
+ textColor?: string | null | undefined;
2100
+ greenColor?: string | null | undefined;
2101
+ lavenderColor?: string | null | undefined;
2102
+ yellowColor?: string | null | undefined;
2103
+ pinkColor?: string | null | undefined;
2104
+ deepGreenColor?: string | null | undefined;
2105
+ blueColor?: string | null | undefined;
2106
+ } | null | undefined;
2107
+ logoAssetId?: string | null | undefined;
2108
+ welcomeMessage?: string | null | undefined;
2109
+ updatedAt?: string | null | undefined;
2110
+ } | undefined;
684
2111
  }, {
685
2112
  type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
686
2113
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
687
2114
  id: string;
688
2115
  name: string;
2116
+ branding?: {
2117
+ primaryColor?: string | null | undefined;
2118
+ accentColor?: string | null | undefined;
2119
+ backgroundColor?: string | null | undefined;
2120
+ theme?: {
2121
+ documentBackgroundColor?: string | null | undefined;
2122
+ screenBackgroundColor?: string | null | undefined;
2123
+ surfaceColor?: string | null | undefined;
2124
+ mutedSurfaceColor?: string | null | undefined;
2125
+ softSurfaceColor?: string | null | undefined;
2126
+ textColor?: string | null | undefined;
2127
+ greenColor?: string | null | undefined;
2128
+ lavenderColor?: string | null | undefined;
2129
+ yellowColor?: string | null | undefined;
2130
+ pinkColor?: string | null | undefined;
2131
+ deepGreenColor?: string | null | undefined;
2132
+ blueColor?: string | null | undefined;
2133
+ } | null | undefined;
2134
+ logoAssetId?: string | null | undefined;
2135
+ welcomeMessage?: string | null | undefined;
2136
+ updatedAt?: string | null | undefined;
2137
+ } | undefined;
689
2138
  }>>;
690
2139
  premium: z.ZodObject<{
691
2140
  active: z.ZodBoolean;
692
2141
  source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
693
2142
  entitlementId: z.ZodOptional<z.ZodString>;
694
2143
  organizationId: z.ZodOptional<z.ZodString>;
2144
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
695
2145
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
- disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
2146
+ supportEndedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2147
+ premiumGraceEndsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2148
+ premiumGraceDaysRemaining: z.ZodOptional<z.ZodNumber>;
2149
+ premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
2150
+ disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
697
2151
  }, "strip", z.ZodTypeAny, {
698
2152
  active: boolean;
699
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2153
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2154
+ expiresAt?: string | null | undefined;
700
2155
  organizationId?: string | undefined;
701
2156
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
702
2157
  entitlementId?: string | undefined;
703
- expiresAt?: string | null | undefined;
2158
+ startsAt?: string | null | undefined;
2159
+ supportEndedAt?: string | null | undefined;
2160
+ premiumGraceEndsAt?: string | null | undefined;
2161
+ premiumGraceDaysRemaining?: number | undefined;
2162
+ premiumGraceActive?: boolean | undefined;
704
2163
  }, {
705
2164
  active: boolean;
706
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2165
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2166
+ expiresAt?: string | null | undefined;
707
2167
  organizationId?: string | undefined;
708
2168
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
709
2169
  entitlementId?: string | undefined;
710
- expiresAt?: string | null | undefined;
2170
+ startsAt?: string | null | undefined;
2171
+ supportEndedAt?: string | null | undefined;
2172
+ premiumGraceEndsAt?: string | null | undefined;
2173
+ premiumGraceDaysRemaining?: number | undefined;
2174
+ premiumGraceActive?: boolean | undefined;
711
2175
  }>;
712
2176
  }, "strip", z.ZodTypeAny, {
713
2177
  subjectUser: {
@@ -721,6 +2185,16 @@ export declare const subjectContextSchema: z.ZodObject<{
721
2185
  coach: boolean;
722
2186
  superAdmin: boolean;
723
2187
  };
2188
+ createdAt: string;
2189
+ profileAssetId?: string | null | undefined;
2190
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2191
+ timeZone?: string | null | undefined;
2192
+ communicationPreferences?: {
2193
+ hintsTips: boolean;
2194
+ appUpdatesNewFeatures: boolean;
2195
+ promotionsOffers: boolean;
2196
+ } | undefined;
2197
+ communicationPreferencesUpdatedAt?: string | null | undefined;
724
2198
  } | null;
725
2199
  mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
726
2200
  permissions: {
@@ -738,6 +2212,7 @@ export declare const subjectContextSchema: z.ZodObject<{
738
2212
  coachUserId: string;
739
2213
  canViewLogs: boolean;
740
2214
  canEditLogs: boolean;
2215
+ canManageSupportDates?: boolean | undefined;
741
2216
  familyUserId?: string | undefined;
742
2217
  revokedAt?: string | null | undefined;
743
2218
  } | null;
@@ -746,14 +2221,41 @@ export declare const subjectContextSchema: z.ZodObject<{
746
2221
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
747
2222
  id: string;
748
2223
  name: string;
2224
+ branding?: {
2225
+ primaryColor?: string | null | undefined;
2226
+ accentColor?: string | null | undefined;
2227
+ backgroundColor?: string | null | undefined;
2228
+ theme?: {
2229
+ documentBackgroundColor?: string | null | undefined;
2230
+ screenBackgroundColor?: string | null | undefined;
2231
+ surfaceColor?: string | null | undefined;
2232
+ mutedSurfaceColor?: string | null | undefined;
2233
+ softSurfaceColor?: string | null | undefined;
2234
+ textColor?: string | null | undefined;
2235
+ greenColor?: string | null | undefined;
2236
+ lavenderColor?: string | null | undefined;
2237
+ yellowColor?: string | null | undefined;
2238
+ pinkColor?: string | null | undefined;
2239
+ deepGreenColor?: string | null | undefined;
2240
+ blueColor?: string | null | undefined;
2241
+ } | null | undefined;
2242
+ logoAssetId?: string | null | undefined;
2243
+ welcomeMessage?: string | null | undefined;
2244
+ updatedAt?: string | null | undefined;
2245
+ } | undefined;
749
2246
  } | null;
750
2247
  premium: {
751
2248
  active: boolean;
752
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2249
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2250
+ expiresAt?: string | null | undefined;
753
2251
  organizationId?: string | undefined;
754
2252
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
755
2253
  entitlementId?: string | undefined;
756
- expiresAt?: string | null | undefined;
2254
+ startsAt?: string | null | undefined;
2255
+ supportEndedAt?: string | null | undefined;
2256
+ premiumGraceEndsAt?: string | null | undefined;
2257
+ premiumGraceDaysRemaining?: number | undefined;
2258
+ premiumGraceActive?: boolean | undefined;
757
2259
  };
758
2260
  }, {
759
2261
  subjectUser: {
@@ -767,6 +2269,16 @@ export declare const subjectContextSchema: z.ZodObject<{
767
2269
  coach: boolean;
768
2270
  superAdmin: boolean;
769
2271
  };
2272
+ createdAt: string;
2273
+ profileAssetId?: string | null | undefined;
2274
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2275
+ timeZone?: string | null | undefined;
2276
+ communicationPreferences?: {
2277
+ hintsTips: boolean;
2278
+ appUpdatesNewFeatures: boolean;
2279
+ promotionsOffers: boolean;
2280
+ } | undefined;
2281
+ communicationPreferencesUpdatedAt?: string | null | undefined;
770
2282
  } | null;
771
2283
  mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
772
2284
  permissions: {
@@ -784,6 +2296,7 @@ export declare const subjectContextSchema: z.ZodObject<{
784
2296
  coachUserId: string;
785
2297
  canViewLogs: boolean;
786
2298
  canEditLogs: boolean;
2299
+ canManageSupportDates?: boolean | undefined;
787
2300
  familyUserId?: string | undefined;
788
2301
  revokedAt?: string | null | undefined;
789
2302
  } | null;
@@ -792,14 +2305,41 @@ export declare const subjectContextSchema: z.ZodObject<{
792
2305
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
793
2306
  id: string;
794
2307
  name: string;
2308
+ branding?: {
2309
+ primaryColor?: string | null | undefined;
2310
+ accentColor?: string | null | undefined;
2311
+ backgroundColor?: string | null | undefined;
2312
+ theme?: {
2313
+ documentBackgroundColor?: string | null | undefined;
2314
+ screenBackgroundColor?: string | null | undefined;
2315
+ surfaceColor?: string | null | undefined;
2316
+ mutedSurfaceColor?: string | null | undefined;
2317
+ softSurfaceColor?: string | null | undefined;
2318
+ textColor?: string | null | undefined;
2319
+ greenColor?: string | null | undefined;
2320
+ lavenderColor?: string | null | undefined;
2321
+ yellowColor?: string | null | undefined;
2322
+ pinkColor?: string | null | undefined;
2323
+ deepGreenColor?: string | null | undefined;
2324
+ blueColor?: string | null | undefined;
2325
+ } | null | undefined;
2326
+ logoAssetId?: string | null | undefined;
2327
+ welcomeMessage?: string | null | undefined;
2328
+ updatedAt?: string | null | undefined;
2329
+ } | undefined;
795
2330
  } | null;
796
2331
  premium: {
797
2332
  active: boolean;
798
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2333
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
2334
+ expiresAt?: string | null | undefined;
799
2335
  organizationId?: string | undefined;
800
2336
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
801
2337
  entitlementId?: string | undefined;
802
- expiresAt?: string | null | undefined;
2338
+ startsAt?: string | null | undefined;
2339
+ supportEndedAt?: string | null | undefined;
2340
+ premiumGraceEndsAt?: string | null | undefined;
2341
+ premiumGraceDaysRemaining?: number | undefined;
2342
+ premiumGraceActive?: boolean | undefined;
803
2343
  };
804
2344
  }>;
805
2345
  export declare const resolvedAccessContextSchema: z.ZodObject<{
@@ -825,6 +2365,23 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
825
2365
  authUserId: z.ZodString;
826
2366
  email: z.ZodString;
827
2367
  name: z.ZodString;
2368
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2369
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
2370
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
2371
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
2372
+ hintsTips: z.ZodBoolean;
2373
+ appUpdatesNewFeatures: z.ZodBoolean;
2374
+ promotionsOffers: z.ZodBoolean;
2375
+ }, "strict", z.ZodTypeAny, {
2376
+ hintsTips: boolean;
2377
+ appUpdatesNewFeatures: boolean;
2378
+ promotionsOffers: boolean;
2379
+ }, {
2380
+ hintsTips: boolean;
2381
+ appUpdatesNewFeatures: boolean;
2382
+ promotionsOffers: boolean;
2383
+ }>>;
2384
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
2385
  defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
829
2386
  roles: z.ZodObject<{
830
2387
  family: z.ZodBoolean;
@@ -839,6 +2396,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
839
2396
  coach: boolean;
840
2397
  superAdmin: boolean;
841
2398
  }>;
2399
+ createdAt: z.ZodString;
842
2400
  }, "strip", z.ZodTypeAny, {
843
2401
  id: string;
844
2402
  authUserId: string;
@@ -850,6 +2408,16 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
850
2408
  coach: boolean;
851
2409
  superAdmin: boolean;
852
2410
  };
2411
+ createdAt: string;
2412
+ profileAssetId?: string | null | undefined;
2413
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2414
+ timeZone?: string | null | undefined;
2415
+ communicationPreferences?: {
2416
+ hintsTips: boolean;
2417
+ appUpdatesNewFeatures: boolean;
2418
+ promotionsOffers: boolean;
2419
+ } | undefined;
2420
+ communicationPreferencesUpdatedAt?: string | null | undefined;
853
2421
  }, {
854
2422
  id: string;
855
2423
  authUserId: string;
@@ -861,6 +2429,16 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
861
2429
  coach: boolean;
862
2430
  superAdmin: boolean;
863
2431
  };
2432
+ createdAt: string;
2433
+ profileAssetId?: string | null | undefined;
2434
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2435
+ timeZone?: string | null | undefined;
2436
+ communicationPreferences?: {
2437
+ hintsTips: boolean;
2438
+ appUpdatesNewFeatures: boolean;
2439
+ promotionsOffers: boolean;
2440
+ } | undefined;
2441
+ communicationPreferencesUpdatedAt?: string | null | undefined;
864
2442
  }>;
865
2443
  actorRoles: z.ZodObject<{
866
2444
  family: z.ZodBoolean;
@@ -875,6 +2453,267 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
875
2453
  coach: boolean;
876
2454
  superAdmin: boolean;
877
2455
  }>;
2456
+ ownerViewAsCoach: z.ZodOptional<z.ZodObject<{
2457
+ ownerUser: z.ZodObject<{
2458
+ id: z.ZodString;
2459
+ authUserId: z.ZodString;
2460
+ email: z.ZodString;
2461
+ name: z.ZodString;
2462
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2463
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
2464
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
2465
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
2466
+ hintsTips: z.ZodBoolean;
2467
+ appUpdatesNewFeatures: z.ZodBoolean;
2468
+ promotionsOffers: z.ZodBoolean;
2469
+ }, "strict", z.ZodTypeAny, {
2470
+ hintsTips: boolean;
2471
+ appUpdatesNewFeatures: boolean;
2472
+ promotionsOffers: boolean;
2473
+ }, {
2474
+ hintsTips: boolean;
2475
+ appUpdatesNewFeatures: boolean;
2476
+ promotionsOffers: boolean;
2477
+ }>>;
2478
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
2480
+ roles: z.ZodObject<{
2481
+ family: z.ZodBoolean;
2482
+ coach: z.ZodBoolean;
2483
+ superAdmin: z.ZodBoolean;
2484
+ }, "strip", z.ZodTypeAny, {
2485
+ family: boolean;
2486
+ coach: boolean;
2487
+ superAdmin: boolean;
2488
+ }, {
2489
+ family: boolean;
2490
+ coach: boolean;
2491
+ superAdmin: boolean;
2492
+ }>;
2493
+ createdAt: z.ZodString;
2494
+ }, "strip", z.ZodTypeAny, {
2495
+ id: string;
2496
+ authUserId: string;
2497
+ email: string;
2498
+ name: string;
2499
+ defaultRole: "family" | "coach" | "superAdmin";
2500
+ roles: {
2501
+ family: boolean;
2502
+ coach: boolean;
2503
+ superAdmin: boolean;
2504
+ };
2505
+ createdAt: string;
2506
+ profileAssetId?: string | null | undefined;
2507
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2508
+ timeZone?: string | null | undefined;
2509
+ communicationPreferences?: {
2510
+ hintsTips: boolean;
2511
+ appUpdatesNewFeatures: boolean;
2512
+ promotionsOffers: boolean;
2513
+ } | undefined;
2514
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2515
+ }, {
2516
+ id: string;
2517
+ authUserId: string;
2518
+ email: string;
2519
+ name: string;
2520
+ defaultRole: "family" | "coach" | "superAdmin";
2521
+ roles: {
2522
+ family: boolean;
2523
+ coach: boolean;
2524
+ superAdmin: boolean;
2525
+ };
2526
+ createdAt: string;
2527
+ profileAssetId?: string | null | undefined;
2528
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2529
+ timeZone?: string | null | undefined;
2530
+ communicationPreferences?: {
2531
+ hintsTips: boolean;
2532
+ appUpdatesNewFeatures: boolean;
2533
+ promotionsOffers: boolean;
2534
+ } | undefined;
2535
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2536
+ }>;
2537
+ coachUser: z.ZodObject<{
2538
+ id: z.ZodString;
2539
+ authUserId: z.ZodString;
2540
+ email: z.ZodString;
2541
+ name: z.ZodString;
2542
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2543
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
2544
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
2545
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
2546
+ hintsTips: z.ZodBoolean;
2547
+ appUpdatesNewFeatures: z.ZodBoolean;
2548
+ promotionsOffers: z.ZodBoolean;
2549
+ }, "strict", z.ZodTypeAny, {
2550
+ hintsTips: boolean;
2551
+ appUpdatesNewFeatures: boolean;
2552
+ promotionsOffers: boolean;
2553
+ }, {
2554
+ hintsTips: boolean;
2555
+ appUpdatesNewFeatures: boolean;
2556
+ promotionsOffers: boolean;
2557
+ }>>;
2558
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2559
+ defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
2560
+ roles: z.ZodObject<{
2561
+ family: z.ZodBoolean;
2562
+ coach: z.ZodBoolean;
2563
+ superAdmin: z.ZodBoolean;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ family: boolean;
2566
+ coach: boolean;
2567
+ superAdmin: boolean;
2568
+ }, {
2569
+ family: boolean;
2570
+ coach: boolean;
2571
+ superAdmin: boolean;
2572
+ }>;
2573
+ createdAt: z.ZodString;
2574
+ }, "strip", z.ZodTypeAny, {
2575
+ id: string;
2576
+ authUserId: string;
2577
+ email: string;
2578
+ name: string;
2579
+ defaultRole: "family" | "coach" | "superAdmin";
2580
+ roles: {
2581
+ family: boolean;
2582
+ coach: boolean;
2583
+ superAdmin: boolean;
2584
+ };
2585
+ createdAt: string;
2586
+ profileAssetId?: string | null | undefined;
2587
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2588
+ timeZone?: string | null | undefined;
2589
+ communicationPreferences?: {
2590
+ hintsTips: boolean;
2591
+ appUpdatesNewFeatures: boolean;
2592
+ promotionsOffers: boolean;
2593
+ } | undefined;
2594
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2595
+ }, {
2596
+ id: string;
2597
+ authUserId: string;
2598
+ email: string;
2599
+ name: string;
2600
+ defaultRole: "family" | "coach" | "superAdmin";
2601
+ roles: {
2602
+ family: boolean;
2603
+ coach: boolean;
2604
+ superAdmin: boolean;
2605
+ };
2606
+ createdAt: string;
2607
+ profileAssetId?: string | null | undefined;
2608
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2609
+ timeZone?: string | null | undefined;
2610
+ communicationPreferences?: {
2611
+ hintsTips: boolean;
2612
+ appUpdatesNewFeatures: boolean;
2613
+ promotionsOffers: boolean;
2614
+ } | undefined;
2615
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2616
+ }>;
2617
+ startedAt: z.ZodString;
2618
+ expiresAt: z.ZodString;
2619
+ readOnly: z.ZodBoolean;
2620
+ }, "strip", z.ZodTypeAny, {
2621
+ ownerUser: {
2622
+ id: string;
2623
+ authUserId: string;
2624
+ email: string;
2625
+ name: string;
2626
+ defaultRole: "family" | "coach" | "superAdmin";
2627
+ roles: {
2628
+ family: boolean;
2629
+ coach: boolean;
2630
+ superAdmin: boolean;
2631
+ };
2632
+ createdAt: string;
2633
+ profileAssetId?: string | null | undefined;
2634
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2635
+ timeZone?: string | null | undefined;
2636
+ communicationPreferences?: {
2637
+ hintsTips: boolean;
2638
+ appUpdatesNewFeatures: boolean;
2639
+ promotionsOffers: boolean;
2640
+ } | undefined;
2641
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2642
+ };
2643
+ coachUser: {
2644
+ id: string;
2645
+ authUserId: string;
2646
+ email: string;
2647
+ name: string;
2648
+ defaultRole: "family" | "coach" | "superAdmin";
2649
+ roles: {
2650
+ family: boolean;
2651
+ coach: boolean;
2652
+ superAdmin: boolean;
2653
+ };
2654
+ createdAt: string;
2655
+ profileAssetId?: string | null | undefined;
2656
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2657
+ timeZone?: string | null | undefined;
2658
+ communicationPreferences?: {
2659
+ hintsTips: boolean;
2660
+ appUpdatesNewFeatures: boolean;
2661
+ promotionsOffers: boolean;
2662
+ } | undefined;
2663
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2664
+ };
2665
+ startedAt: string;
2666
+ expiresAt: string;
2667
+ readOnly: boolean;
2668
+ }, {
2669
+ ownerUser: {
2670
+ id: string;
2671
+ authUserId: string;
2672
+ email: string;
2673
+ name: string;
2674
+ defaultRole: "family" | "coach" | "superAdmin";
2675
+ roles: {
2676
+ family: boolean;
2677
+ coach: boolean;
2678
+ superAdmin: boolean;
2679
+ };
2680
+ createdAt: string;
2681
+ profileAssetId?: string | null | undefined;
2682
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2683
+ timeZone?: string | null | undefined;
2684
+ communicationPreferences?: {
2685
+ hintsTips: boolean;
2686
+ appUpdatesNewFeatures: boolean;
2687
+ promotionsOffers: boolean;
2688
+ } | undefined;
2689
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2690
+ };
2691
+ coachUser: {
2692
+ id: string;
2693
+ authUserId: string;
2694
+ email: string;
2695
+ name: string;
2696
+ defaultRole: "family" | "coach" | "superAdmin";
2697
+ roles: {
2698
+ family: boolean;
2699
+ coach: boolean;
2700
+ superAdmin: boolean;
2701
+ };
2702
+ createdAt: string;
2703
+ profileAssetId?: string | null | undefined;
2704
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2705
+ timeZone?: string | null | undefined;
2706
+ communicationPreferences?: {
2707
+ hintsTips: boolean;
2708
+ appUpdatesNewFeatures: boolean;
2709
+ promotionsOffers: boolean;
2710
+ } | undefined;
2711
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2712
+ };
2713
+ startedAt: string;
2714
+ expiresAt: string;
2715
+ readOnly: boolean;
2716
+ }>>;
878
2717
  }, "strip", z.ZodTypeAny, {
879
2718
  auth: {
880
2719
  authUserId: string;
@@ -893,12 +2732,71 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
893
2732
  coach: boolean;
894
2733
  superAdmin: boolean;
895
2734
  };
2735
+ createdAt: string;
2736
+ profileAssetId?: string | null | undefined;
2737
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2738
+ timeZone?: string | null | undefined;
2739
+ communicationPreferences?: {
2740
+ hintsTips: boolean;
2741
+ appUpdatesNewFeatures: boolean;
2742
+ promotionsOffers: boolean;
2743
+ } | undefined;
2744
+ communicationPreferencesUpdatedAt?: string | null | undefined;
896
2745
  };
897
2746
  actorRoles: {
898
2747
  family: boolean;
899
2748
  coach: boolean;
900
2749
  superAdmin: boolean;
901
2750
  };
2751
+ ownerViewAsCoach?: {
2752
+ ownerUser: {
2753
+ id: string;
2754
+ authUserId: string;
2755
+ email: string;
2756
+ name: string;
2757
+ defaultRole: "family" | "coach" | "superAdmin";
2758
+ roles: {
2759
+ family: boolean;
2760
+ coach: boolean;
2761
+ superAdmin: boolean;
2762
+ };
2763
+ createdAt: string;
2764
+ profileAssetId?: string | null | undefined;
2765
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2766
+ timeZone?: string | null | undefined;
2767
+ communicationPreferences?: {
2768
+ hintsTips: boolean;
2769
+ appUpdatesNewFeatures: boolean;
2770
+ promotionsOffers: boolean;
2771
+ } | undefined;
2772
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2773
+ };
2774
+ coachUser: {
2775
+ id: string;
2776
+ authUserId: string;
2777
+ email: string;
2778
+ name: string;
2779
+ defaultRole: "family" | "coach" | "superAdmin";
2780
+ roles: {
2781
+ family: boolean;
2782
+ coach: boolean;
2783
+ superAdmin: boolean;
2784
+ };
2785
+ createdAt: string;
2786
+ profileAssetId?: string | null | undefined;
2787
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2788
+ timeZone?: string | null | undefined;
2789
+ communicationPreferences?: {
2790
+ hintsTips: boolean;
2791
+ appUpdatesNewFeatures: boolean;
2792
+ promotionsOffers: boolean;
2793
+ } | undefined;
2794
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2795
+ };
2796
+ startedAt: string;
2797
+ expiresAt: string;
2798
+ readOnly: boolean;
2799
+ } | undefined;
902
2800
  }, {
903
2801
  auth: {
904
2802
  authUserId: string;
@@ -917,12 +2815,71 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
917
2815
  coach: boolean;
918
2816
  superAdmin: boolean;
919
2817
  };
2818
+ createdAt: string;
2819
+ profileAssetId?: string | null | undefined;
2820
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2821
+ timeZone?: string | null | undefined;
2822
+ communicationPreferences?: {
2823
+ hintsTips: boolean;
2824
+ appUpdatesNewFeatures: boolean;
2825
+ promotionsOffers: boolean;
2826
+ } | undefined;
2827
+ communicationPreferencesUpdatedAt?: string | null | undefined;
920
2828
  };
921
2829
  actorRoles: {
922
2830
  family: boolean;
923
2831
  coach: boolean;
924
2832
  superAdmin: boolean;
925
2833
  };
2834
+ ownerViewAsCoach?: {
2835
+ ownerUser: {
2836
+ id: string;
2837
+ authUserId: string;
2838
+ email: string;
2839
+ name: string;
2840
+ defaultRole: "family" | "coach" | "superAdmin";
2841
+ roles: {
2842
+ family: boolean;
2843
+ coach: boolean;
2844
+ superAdmin: boolean;
2845
+ };
2846
+ createdAt: string;
2847
+ profileAssetId?: string | null | undefined;
2848
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2849
+ timeZone?: string | null | undefined;
2850
+ communicationPreferences?: {
2851
+ hintsTips: boolean;
2852
+ appUpdatesNewFeatures: boolean;
2853
+ promotionsOffers: boolean;
2854
+ } | undefined;
2855
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2856
+ };
2857
+ coachUser: {
2858
+ id: string;
2859
+ authUserId: string;
2860
+ email: string;
2861
+ name: string;
2862
+ defaultRole: "family" | "coach" | "superAdmin";
2863
+ roles: {
2864
+ family: boolean;
2865
+ coach: boolean;
2866
+ superAdmin: boolean;
2867
+ };
2868
+ createdAt: string;
2869
+ profileAssetId?: string | null | undefined;
2870
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2871
+ timeZone?: string | null | undefined;
2872
+ communicationPreferences?: {
2873
+ hintsTips: boolean;
2874
+ appUpdatesNewFeatures: boolean;
2875
+ promotionsOffers: boolean;
2876
+ } | undefined;
2877
+ communicationPreferencesUpdatedAt?: string | null | undefined;
2878
+ };
2879
+ startedAt: string;
2880
+ expiresAt: string;
2881
+ readOnly: boolean;
2882
+ } | undefined;
926
2883
  }>;
927
2884
  subject: z.ZodObject<{
928
2885
  subjectUser: z.ZodNullable<z.ZodObject<{
@@ -930,6 +2887,23 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
930
2887
  authUserId: z.ZodString;
931
2888
  email: z.ZodString;
932
2889
  name: z.ZodString;
2890
+ profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2891
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
2892
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
2893
+ communicationPreferences: z.ZodOptional<z.ZodObject<{
2894
+ hintsTips: z.ZodBoolean;
2895
+ appUpdatesNewFeatures: z.ZodBoolean;
2896
+ promotionsOffers: z.ZodBoolean;
2897
+ }, "strict", z.ZodTypeAny, {
2898
+ hintsTips: boolean;
2899
+ appUpdatesNewFeatures: boolean;
2900
+ promotionsOffers: boolean;
2901
+ }, {
2902
+ hintsTips: boolean;
2903
+ appUpdatesNewFeatures: boolean;
2904
+ promotionsOffers: boolean;
2905
+ }>>;
2906
+ communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
2907
  defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
934
2908
  roles: z.ZodObject<{
935
2909
  family: z.ZodBoolean;
@@ -944,6 +2918,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
944
2918
  coach: boolean;
945
2919
  superAdmin: boolean;
946
2920
  }>;
2921
+ createdAt: z.ZodString;
947
2922
  }, "strip", z.ZodTypeAny, {
948
2923
  id: string;
949
2924
  authUserId: string;
@@ -955,6 +2930,16 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
955
2930
  coach: boolean;
956
2931
  superAdmin: boolean;
957
2932
  };
2933
+ createdAt: string;
2934
+ profileAssetId?: string | null | undefined;
2935
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2936
+ timeZone?: string | null | undefined;
2937
+ communicationPreferences?: {
2938
+ hintsTips: boolean;
2939
+ appUpdatesNewFeatures: boolean;
2940
+ promotionsOffers: boolean;
2941
+ } | undefined;
2942
+ communicationPreferencesUpdatedAt?: string | null | undefined;
958
2943
  }, {
959
2944
  id: string;
960
2945
  authUserId: string;
@@ -966,6 +2951,16 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
966
2951
  coach: boolean;
967
2952
  superAdmin: boolean;
968
2953
  };
2954
+ createdAt: string;
2955
+ profileAssetId?: string | null | undefined;
2956
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
2957
+ timeZone?: string | null | undefined;
2958
+ communicationPreferences?: {
2959
+ hintsTips: boolean;
2960
+ appUpdatesNewFeatures: boolean;
2961
+ promotionsOffers: boolean;
2962
+ } | undefined;
2963
+ communicationPreferencesUpdatedAt?: string | null | undefined;
969
2964
  }>>;
970
2965
  mode: z.ZodEnum<["self", "coachView", "coachAdminView", "superAdminView"]>;
971
2966
  permissions: z.ZodObject<{
@@ -996,6 +2991,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
996
2991
  canViewLogs: z.ZodBoolean;
997
2992
  canEditLogs: z.ZodBoolean;
998
2993
  canViewAnalysis: z.ZodBoolean;
2994
+ canManageSupportDates: z.ZodOptional<z.ZodBoolean>;
999
2995
  revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1000
2996
  }, "strip", z.ZodTypeAny, {
1001
2997
  status: "active" | "revoked" | "transferred" | "expired";
@@ -1005,6 +3001,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1005
3001
  coachUserId: string;
1006
3002
  canViewLogs: boolean;
1007
3003
  canEditLogs: boolean;
3004
+ canManageSupportDates?: boolean | undefined;
1008
3005
  familyUserId?: string | undefined;
1009
3006
  revokedAt?: string | null | undefined;
1010
3007
  }, {
@@ -1015,6 +3012,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1015
3012
  coachUserId: string;
1016
3013
  canViewLogs: boolean;
1017
3014
  canEditLogs: boolean;
3015
+ canManageSupportDates?: boolean | undefined;
1018
3016
  familyUserId?: string | undefined;
1019
3017
  revokedAt?: string | null | undefined;
1020
3018
  }>>;
@@ -1023,38 +3021,187 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1023
3021
  name: z.ZodString;
1024
3022
  type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
1025
3023
  status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
3024
+ branding: z.ZodOptional<z.ZodObject<{
3025
+ primaryColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3026
+ accentColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3027
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3028
+ theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3029
+ documentBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3030
+ screenBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3031
+ surfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3032
+ mutedSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3033
+ softSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3034
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3035
+ greenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3036
+ lavenderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3037
+ yellowColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3038
+ pinkColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3039
+ deepGreenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3040
+ blueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3041
+ }, "strict", z.ZodTypeAny, {
3042
+ documentBackgroundColor?: string | null | undefined;
3043
+ screenBackgroundColor?: string | null | undefined;
3044
+ surfaceColor?: string | null | undefined;
3045
+ mutedSurfaceColor?: string | null | undefined;
3046
+ softSurfaceColor?: string | null | undefined;
3047
+ textColor?: string | null | undefined;
3048
+ greenColor?: string | null | undefined;
3049
+ lavenderColor?: string | null | undefined;
3050
+ yellowColor?: string | null | undefined;
3051
+ pinkColor?: string | null | undefined;
3052
+ deepGreenColor?: string | null | undefined;
3053
+ blueColor?: string | null | undefined;
3054
+ }, {
3055
+ documentBackgroundColor?: string | null | undefined;
3056
+ screenBackgroundColor?: string | null | undefined;
3057
+ surfaceColor?: string | null | undefined;
3058
+ mutedSurfaceColor?: string | null | undefined;
3059
+ softSurfaceColor?: string | null | undefined;
3060
+ textColor?: string | null | undefined;
3061
+ greenColor?: string | null | undefined;
3062
+ lavenderColor?: string | null | undefined;
3063
+ yellowColor?: string | null | undefined;
3064
+ pinkColor?: string | null | undefined;
3065
+ deepGreenColor?: string | null | undefined;
3066
+ blueColor?: string | null | undefined;
3067
+ }>>>;
3068
+ logoAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3069
+ welcomeMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3070
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3071
+ }, "strip", z.ZodTypeAny, {
3072
+ primaryColor?: string | null | undefined;
3073
+ accentColor?: string | null | undefined;
3074
+ backgroundColor?: string | null | undefined;
3075
+ theme?: {
3076
+ documentBackgroundColor?: string | null | undefined;
3077
+ screenBackgroundColor?: string | null | undefined;
3078
+ surfaceColor?: string | null | undefined;
3079
+ mutedSurfaceColor?: string | null | undefined;
3080
+ softSurfaceColor?: string | null | undefined;
3081
+ textColor?: string | null | undefined;
3082
+ greenColor?: string | null | undefined;
3083
+ lavenderColor?: string | null | undefined;
3084
+ yellowColor?: string | null | undefined;
3085
+ pinkColor?: string | null | undefined;
3086
+ deepGreenColor?: string | null | undefined;
3087
+ blueColor?: string | null | undefined;
3088
+ } | null | undefined;
3089
+ logoAssetId?: string | null | undefined;
3090
+ welcomeMessage?: string | null | undefined;
3091
+ updatedAt?: string | null | undefined;
3092
+ }, {
3093
+ primaryColor?: string | null | undefined;
3094
+ accentColor?: string | null | undefined;
3095
+ backgroundColor?: string | null | undefined;
3096
+ theme?: {
3097
+ documentBackgroundColor?: string | null | undefined;
3098
+ screenBackgroundColor?: string | null | undefined;
3099
+ surfaceColor?: string | null | undefined;
3100
+ mutedSurfaceColor?: string | null | undefined;
3101
+ softSurfaceColor?: string | null | undefined;
3102
+ textColor?: string | null | undefined;
3103
+ greenColor?: string | null | undefined;
3104
+ lavenderColor?: string | null | undefined;
3105
+ yellowColor?: string | null | undefined;
3106
+ pinkColor?: string | null | undefined;
3107
+ deepGreenColor?: string | null | undefined;
3108
+ blueColor?: string | null | undefined;
3109
+ } | null | undefined;
3110
+ logoAssetId?: string | null | undefined;
3111
+ welcomeMessage?: string | null | undefined;
3112
+ updatedAt?: string | null | undefined;
3113
+ }>>;
1026
3114
  }, "strip", z.ZodTypeAny, {
1027
3115
  type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1028
3116
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1029
3117
  id: string;
1030
3118
  name: string;
3119
+ branding?: {
3120
+ primaryColor?: string | null | undefined;
3121
+ accentColor?: string | null | undefined;
3122
+ backgroundColor?: string | null | undefined;
3123
+ theme?: {
3124
+ documentBackgroundColor?: string | null | undefined;
3125
+ screenBackgroundColor?: string | null | undefined;
3126
+ surfaceColor?: string | null | undefined;
3127
+ mutedSurfaceColor?: string | null | undefined;
3128
+ softSurfaceColor?: string | null | undefined;
3129
+ textColor?: string | null | undefined;
3130
+ greenColor?: string | null | undefined;
3131
+ lavenderColor?: string | null | undefined;
3132
+ yellowColor?: string | null | undefined;
3133
+ pinkColor?: string | null | undefined;
3134
+ deepGreenColor?: string | null | undefined;
3135
+ blueColor?: string | null | undefined;
3136
+ } | null | undefined;
3137
+ logoAssetId?: string | null | undefined;
3138
+ welcomeMessage?: string | null | undefined;
3139
+ updatedAt?: string | null | undefined;
3140
+ } | undefined;
1031
3141
  }, {
1032
3142
  type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
1033
3143
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1034
3144
  id: string;
1035
3145
  name: string;
3146
+ branding?: {
3147
+ primaryColor?: string | null | undefined;
3148
+ accentColor?: string | null | undefined;
3149
+ backgroundColor?: string | null | undefined;
3150
+ theme?: {
3151
+ documentBackgroundColor?: string | null | undefined;
3152
+ screenBackgroundColor?: string | null | undefined;
3153
+ surfaceColor?: string | null | undefined;
3154
+ mutedSurfaceColor?: string | null | undefined;
3155
+ softSurfaceColor?: string | null | undefined;
3156
+ textColor?: string | null | undefined;
3157
+ greenColor?: string | null | undefined;
3158
+ lavenderColor?: string | null | undefined;
3159
+ yellowColor?: string | null | undefined;
3160
+ pinkColor?: string | null | undefined;
3161
+ deepGreenColor?: string | null | undefined;
3162
+ blueColor?: string | null | undefined;
3163
+ } | null | undefined;
3164
+ logoAssetId?: string | null | undefined;
3165
+ welcomeMessage?: string | null | undefined;
3166
+ updatedAt?: string | null | undefined;
3167
+ } | undefined;
1036
3168
  }>>;
1037
3169
  premium: z.ZodObject<{
1038
3170
  active: z.ZodBoolean;
1039
3171
  source: z.ZodOptional<z.ZodEnum<["directSubscription", "platformPractice", "coachInvite", "manualComp"]>>;
1040
3172
  entitlementId: z.ZodOptional<z.ZodString>;
1041
3173
  organizationId: z.ZodOptional<z.ZodString>;
3174
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1042
3175
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1043
- disabledReason: z.ZodEnum<["none", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
3176
+ supportEndedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3177
+ premiumGraceEndsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3178
+ premiumGraceDaysRemaining: z.ZodOptional<z.ZodNumber>;
3179
+ premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
3180
+ disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
1044
3181
  }, "strip", z.ZodTypeAny, {
1045
3182
  active: boolean;
1046
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3183
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3184
+ expiresAt?: string | null | undefined;
1047
3185
  organizationId?: string | undefined;
1048
3186
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1049
3187
  entitlementId?: string | undefined;
1050
- expiresAt?: string | null | undefined;
3188
+ startsAt?: string | null | undefined;
3189
+ supportEndedAt?: string | null | undefined;
3190
+ premiumGraceEndsAt?: string | null | undefined;
3191
+ premiumGraceDaysRemaining?: number | undefined;
3192
+ premiumGraceActive?: boolean | undefined;
1051
3193
  }, {
1052
3194
  active: boolean;
1053
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3195
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3196
+ expiresAt?: string | null | undefined;
1054
3197
  organizationId?: string | undefined;
1055
3198
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1056
3199
  entitlementId?: string | undefined;
1057
- expiresAt?: string | null | undefined;
3200
+ startsAt?: string | null | undefined;
3201
+ supportEndedAt?: string | null | undefined;
3202
+ premiumGraceEndsAt?: string | null | undefined;
3203
+ premiumGraceDaysRemaining?: number | undefined;
3204
+ premiumGraceActive?: boolean | undefined;
1058
3205
  }>;
1059
3206
  }, "strip", z.ZodTypeAny, {
1060
3207
  subjectUser: {
@@ -1068,6 +3215,16 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1068
3215
  coach: boolean;
1069
3216
  superAdmin: boolean;
1070
3217
  };
3218
+ createdAt: string;
3219
+ profileAssetId?: string | null | undefined;
3220
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3221
+ timeZone?: string | null | undefined;
3222
+ communicationPreferences?: {
3223
+ hintsTips: boolean;
3224
+ appUpdatesNewFeatures: boolean;
3225
+ promotionsOffers: boolean;
3226
+ } | undefined;
3227
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1071
3228
  } | null;
1072
3229
  mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1073
3230
  permissions: {
@@ -1085,6 +3242,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1085
3242
  coachUserId: string;
1086
3243
  canViewLogs: boolean;
1087
3244
  canEditLogs: boolean;
3245
+ canManageSupportDates?: boolean | undefined;
1088
3246
  familyUserId?: string | undefined;
1089
3247
  revokedAt?: string | null | undefined;
1090
3248
  } | null;
@@ -1093,14 +3251,41 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1093
3251
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1094
3252
  id: string;
1095
3253
  name: string;
3254
+ branding?: {
3255
+ primaryColor?: string | null | undefined;
3256
+ accentColor?: string | null | undefined;
3257
+ backgroundColor?: string | null | undefined;
3258
+ theme?: {
3259
+ documentBackgroundColor?: string | null | undefined;
3260
+ screenBackgroundColor?: string | null | undefined;
3261
+ surfaceColor?: string | null | undefined;
3262
+ mutedSurfaceColor?: string | null | undefined;
3263
+ softSurfaceColor?: string | null | undefined;
3264
+ textColor?: string | null | undefined;
3265
+ greenColor?: string | null | undefined;
3266
+ lavenderColor?: string | null | undefined;
3267
+ yellowColor?: string | null | undefined;
3268
+ pinkColor?: string | null | undefined;
3269
+ deepGreenColor?: string | null | undefined;
3270
+ blueColor?: string | null | undefined;
3271
+ } | null | undefined;
3272
+ logoAssetId?: string | null | undefined;
3273
+ welcomeMessage?: string | null | undefined;
3274
+ updatedAt?: string | null | undefined;
3275
+ } | undefined;
1096
3276
  } | null;
1097
3277
  premium: {
1098
3278
  active: boolean;
1099
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3279
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3280
+ expiresAt?: string | null | undefined;
1100
3281
  organizationId?: string | undefined;
1101
3282
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1102
3283
  entitlementId?: string | undefined;
1103
- expiresAt?: string | null | undefined;
3284
+ startsAt?: string | null | undefined;
3285
+ supportEndedAt?: string | null | undefined;
3286
+ premiumGraceEndsAt?: string | null | undefined;
3287
+ premiumGraceDaysRemaining?: number | undefined;
3288
+ premiumGraceActive?: boolean | undefined;
1104
3289
  };
1105
3290
  }, {
1106
3291
  subjectUser: {
@@ -1114,6 +3299,16 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1114
3299
  coach: boolean;
1115
3300
  superAdmin: boolean;
1116
3301
  };
3302
+ createdAt: string;
3303
+ profileAssetId?: string | null | undefined;
3304
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3305
+ timeZone?: string | null | undefined;
3306
+ communicationPreferences?: {
3307
+ hintsTips: boolean;
3308
+ appUpdatesNewFeatures: boolean;
3309
+ promotionsOffers: boolean;
3310
+ } | undefined;
3311
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1117
3312
  } | null;
1118
3313
  mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1119
3314
  permissions: {
@@ -1131,6 +3326,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1131
3326
  coachUserId: string;
1132
3327
  canViewLogs: boolean;
1133
3328
  canEditLogs: boolean;
3329
+ canManageSupportDates?: boolean | undefined;
1134
3330
  familyUserId?: string | undefined;
1135
3331
  revokedAt?: string | null | undefined;
1136
3332
  } | null;
@@ -1139,14 +3335,41 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1139
3335
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1140
3336
  id: string;
1141
3337
  name: string;
3338
+ branding?: {
3339
+ primaryColor?: string | null | undefined;
3340
+ accentColor?: string | null | undefined;
3341
+ backgroundColor?: string | null | undefined;
3342
+ theme?: {
3343
+ documentBackgroundColor?: string | null | undefined;
3344
+ screenBackgroundColor?: string | null | undefined;
3345
+ surfaceColor?: string | null | undefined;
3346
+ mutedSurfaceColor?: string | null | undefined;
3347
+ softSurfaceColor?: string | null | undefined;
3348
+ textColor?: string | null | undefined;
3349
+ greenColor?: string | null | undefined;
3350
+ lavenderColor?: string | null | undefined;
3351
+ yellowColor?: string | null | undefined;
3352
+ pinkColor?: string | null | undefined;
3353
+ deepGreenColor?: string | null | undefined;
3354
+ blueColor?: string | null | undefined;
3355
+ } | null | undefined;
3356
+ logoAssetId?: string | null | undefined;
3357
+ welcomeMessage?: string | null | undefined;
3358
+ updatedAt?: string | null | undefined;
3359
+ } | undefined;
1142
3360
  } | null;
1143
3361
  premium: {
1144
3362
  active: boolean;
1145
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3363
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3364
+ expiresAt?: string | null | undefined;
1146
3365
  organizationId?: string | undefined;
1147
3366
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1148
3367
  entitlementId?: string | undefined;
1149
- expiresAt?: string | null | undefined;
3368
+ startsAt?: string | null | undefined;
3369
+ supportEndedAt?: string | null | undefined;
3370
+ premiumGraceEndsAt?: string | null | undefined;
3371
+ premiumGraceDaysRemaining?: number | undefined;
3372
+ premiumGraceActive?: boolean | undefined;
1150
3373
  };
1151
3374
  }>;
1152
3375
  }, "strip", z.ZodTypeAny, {
@@ -1168,12 +3391,71 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1168
3391
  coach: boolean;
1169
3392
  superAdmin: boolean;
1170
3393
  };
3394
+ createdAt: string;
3395
+ profileAssetId?: string | null | undefined;
3396
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3397
+ timeZone?: string | null | undefined;
3398
+ communicationPreferences?: {
3399
+ hintsTips: boolean;
3400
+ appUpdatesNewFeatures: boolean;
3401
+ promotionsOffers: boolean;
3402
+ } | undefined;
3403
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1171
3404
  };
1172
3405
  actorRoles: {
1173
3406
  family: boolean;
1174
3407
  coach: boolean;
1175
3408
  superAdmin: boolean;
1176
3409
  };
3410
+ ownerViewAsCoach?: {
3411
+ ownerUser: {
3412
+ id: string;
3413
+ authUserId: string;
3414
+ email: string;
3415
+ name: string;
3416
+ defaultRole: "family" | "coach" | "superAdmin";
3417
+ roles: {
3418
+ family: boolean;
3419
+ coach: boolean;
3420
+ superAdmin: boolean;
3421
+ };
3422
+ createdAt: string;
3423
+ profileAssetId?: string | null | undefined;
3424
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3425
+ timeZone?: string | null | undefined;
3426
+ communicationPreferences?: {
3427
+ hintsTips: boolean;
3428
+ appUpdatesNewFeatures: boolean;
3429
+ promotionsOffers: boolean;
3430
+ } | undefined;
3431
+ communicationPreferencesUpdatedAt?: string | null | undefined;
3432
+ };
3433
+ coachUser: {
3434
+ id: string;
3435
+ authUserId: string;
3436
+ email: string;
3437
+ name: string;
3438
+ defaultRole: "family" | "coach" | "superAdmin";
3439
+ roles: {
3440
+ family: boolean;
3441
+ coach: boolean;
3442
+ superAdmin: boolean;
3443
+ };
3444
+ createdAt: string;
3445
+ profileAssetId?: string | null | undefined;
3446
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3447
+ timeZone?: string | null | undefined;
3448
+ communicationPreferences?: {
3449
+ hintsTips: boolean;
3450
+ appUpdatesNewFeatures: boolean;
3451
+ promotionsOffers: boolean;
3452
+ } | undefined;
3453
+ communicationPreferencesUpdatedAt?: string | null | undefined;
3454
+ };
3455
+ startedAt: string;
3456
+ expiresAt: string;
3457
+ readOnly: boolean;
3458
+ } | undefined;
1177
3459
  };
1178
3460
  subject: {
1179
3461
  subjectUser: {
@@ -1187,6 +3469,16 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1187
3469
  coach: boolean;
1188
3470
  superAdmin: boolean;
1189
3471
  };
3472
+ createdAt: string;
3473
+ profileAssetId?: string | null | undefined;
3474
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3475
+ timeZone?: string | null | undefined;
3476
+ communicationPreferences?: {
3477
+ hintsTips: boolean;
3478
+ appUpdatesNewFeatures: boolean;
3479
+ promotionsOffers: boolean;
3480
+ } | undefined;
3481
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1190
3482
  } | null;
1191
3483
  mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1192
3484
  permissions: {
@@ -1204,6 +3496,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1204
3496
  coachUserId: string;
1205
3497
  canViewLogs: boolean;
1206
3498
  canEditLogs: boolean;
3499
+ canManageSupportDates?: boolean | undefined;
1207
3500
  familyUserId?: string | undefined;
1208
3501
  revokedAt?: string | null | undefined;
1209
3502
  } | null;
@@ -1212,14 +3505,41 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1212
3505
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1213
3506
  id: string;
1214
3507
  name: string;
3508
+ branding?: {
3509
+ primaryColor?: string | null | undefined;
3510
+ accentColor?: string | null | undefined;
3511
+ backgroundColor?: string | null | undefined;
3512
+ theme?: {
3513
+ documentBackgroundColor?: string | null | undefined;
3514
+ screenBackgroundColor?: string | null | undefined;
3515
+ surfaceColor?: string | null | undefined;
3516
+ mutedSurfaceColor?: string | null | undefined;
3517
+ softSurfaceColor?: string | null | undefined;
3518
+ textColor?: string | null | undefined;
3519
+ greenColor?: string | null | undefined;
3520
+ lavenderColor?: string | null | undefined;
3521
+ yellowColor?: string | null | undefined;
3522
+ pinkColor?: string | null | undefined;
3523
+ deepGreenColor?: string | null | undefined;
3524
+ blueColor?: string | null | undefined;
3525
+ } | null | undefined;
3526
+ logoAssetId?: string | null | undefined;
3527
+ welcomeMessage?: string | null | undefined;
3528
+ updatedAt?: string | null | undefined;
3529
+ } | undefined;
1215
3530
  } | null;
1216
3531
  premium: {
1217
3532
  active: boolean;
1218
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3533
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3534
+ expiresAt?: string | null | undefined;
1219
3535
  organizationId?: string | undefined;
1220
3536
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1221
3537
  entitlementId?: string | undefined;
1222
- expiresAt?: string | null | undefined;
3538
+ startsAt?: string | null | undefined;
3539
+ supportEndedAt?: string | null | undefined;
3540
+ premiumGraceEndsAt?: string | null | undefined;
3541
+ premiumGraceDaysRemaining?: number | undefined;
3542
+ premiumGraceActive?: boolean | undefined;
1223
3543
  };
1224
3544
  };
1225
3545
  }, {
@@ -1241,12 +3561,71 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1241
3561
  coach: boolean;
1242
3562
  superAdmin: boolean;
1243
3563
  };
3564
+ createdAt: string;
3565
+ profileAssetId?: string | null | undefined;
3566
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3567
+ timeZone?: string | null | undefined;
3568
+ communicationPreferences?: {
3569
+ hintsTips: boolean;
3570
+ appUpdatesNewFeatures: boolean;
3571
+ promotionsOffers: boolean;
3572
+ } | undefined;
3573
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1244
3574
  };
1245
3575
  actorRoles: {
1246
3576
  family: boolean;
1247
3577
  coach: boolean;
1248
3578
  superAdmin: boolean;
1249
3579
  };
3580
+ ownerViewAsCoach?: {
3581
+ ownerUser: {
3582
+ id: string;
3583
+ authUserId: string;
3584
+ email: string;
3585
+ name: string;
3586
+ defaultRole: "family" | "coach" | "superAdmin";
3587
+ roles: {
3588
+ family: boolean;
3589
+ coach: boolean;
3590
+ superAdmin: boolean;
3591
+ };
3592
+ createdAt: string;
3593
+ profileAssetId?: string | null | undefined;
3594
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3595
+ timeZone?: string | null | undefined;
3596
+ communicationPreferences?: {
3597
+ hintsTips: boolean;
3598
+ appUpdatesNewFeatures: boolean;
3599
+ promotionsOffers: boolean;
3600
+ } | undefined;
3601
+ communicationPreferencesUpdatedAt?: string | null | undefined;
3602
+ };
3603
+ coachUser: {
3604
+ id: string;
3605
+ authUserId: string;
3606
+ email: string;
3607
+ name: string;
3608
+ defaultRole: "family" | "coach" | "superAdmin";
3609
+ roles: {
3610
+ family: boolean;
3611
+ coach: boolean;
3612
+ superAdmin: boolean;
3613
+ };
3614
+ createdAt: string;
3615
+ profileAssetId?: string | null | undefined;
3616
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3617
+ timeZone?: string | null | undefined;
3618
+ communicationPreferences?: {
3619
+ hintsTips: boolean;
3620
+ appUpdatesNewFeatures: boolean;
3621
+ promotionsOffers: boolean;
3622
+ } | undefined;
3623
+ communicationPreferencesUpdatedAt?: string | null | undefined;
3624
+ };
3625
+ startedAt: string;
3626
+ expiresAt: string;
3627
+ readOnly: boolean;
3628
+ } | undefined;
1250
3629
  };
1251
3630
  subject: {
1252
3631
  subjectUser: {
@@ -1260,6 +3639,16 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1260
3639
  coach: boolean;
1261
3640
  superAdmin: boolean;
1262
3641
  };
3642
+ createdAt: string;
3643
+ profileAssetId?: string | null | undefined;
3644
+ relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
3645
+ timeZone?: string | null | undefined;
3646
+ communicationPreferences?: {
3647
+ hintsTips: boolean;
3648
+ appUpdatesNewFeatures: boolean;
3649
+ promotionsOffers: boolean;
3650
+ } | undefined;
3651
+ communicationPreferencesUpdatedAt?: string | null | undefined;
1263
3652
  } | null;
1264
3653
  mode: "self" | "coachView" | "coachAdminView" | "superAdminView";
1265
3654
  permissions: {
@@ -1277,6 +3666,7 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1277
3666
  coachUserId: string;
1278
3667
  canViewLogs: boolean;
1279
3668
  canEditLogs: boolean;
3669
+ canManageSupportDates?: boolean | undefined;
1280
3670
  familyUserId?: string | undefined;
1281
3671
  revokedAt?: string | null | undefined;
1282
3672
  } | null;
@@ -1285,14 +3675,41 @@ export declare const resolvedAccessContextSchema: z.ZodObject<{
1285
3675
  status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
1286
3676
  id: string;
1287
3677
  name: string;
3678
+ branding?: {
3679
+ primaryColor?: string | null | undefined;
3680
+ accentColor?: string | null | undefined;
3681
+ backgroundColor?: string | null | undefined;
3682
+ theme?: {
3683
+ documentBackgroundColor?: string | null | undefined;
3684
+ screenBackgroundColor?: string | null | undefined;
3685
+ surfaceColor?: string | null | undefined;
3686
+ mutedSurfaceColor?: string | null | undefined;
3687
+ softSurfaceColor?: string | null | undefined;
3688
+ textColor?: string | null | undefined;
3689
+ greenColor?: string | null | undefined;
3690
+ lavenderColor?: string | null | undefined;
3691
+ yellowColor?: string | null | undefined;
3692
+ pinkColor?: string | null | undefined;
3693
+ deepGreenColor?: string | null | undefined;
3694
+ blueColor?: string | null | undefined;
3695
+ } | null | undefined;
3696
+ logoAssetId?: string | null | undefined;
3697
+ welcomeMessage?: string | null | undefined;
3698
+ updatedAt?: string | null | undefined;
3699
+ } | undefined;
1288
3700
  } | null;
1289
3701
  premium: {
1290
3702
  active: boolean;
1291
- disabledReason: "revoked" | "expired" | "none" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3703
+ disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
3704
+ expiresAt?: string | null | undefined;
1292
3705
  organizationId?: string | undefined;
1293
3706
  source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
1294
3707
  entitlementId?: string | undefined;
1295
- expiresAt?: string | null | undefined;
3708
+ startsAt?: string | null | undefined;
3709
+ supportEndedAt?: string | null | undefined;
3710
+ premiumGraceEndsAt?: string | null | undefined;
3711
+ premiumGraceDaysRemaining?: number | undefined;
3712
+ premiumGraceActive?: boolean | undefined;
1296
3713
  };
1297
3714
  };
1298
3715
  }>;
@@ -1308,23 +3725,24 @@ export declare const auditEventSchema: z.ZodObject<{
1308
3725
  }, "strip", z.ZodTypeAny, {
1309
3726
  type: string;
1310
3727
  id: string;
3728
+ createdAt: string;
1311
3729
  actorUserId: string;
1312
3730
  actorRole: "family" | "coach" | "superAdmin" | "system";
1313
- createdAt: string;
1314
3731
  organizationId?: string | null | undefined;
1315
3732
  targetUserId?: string | null | undefined;
1316
3733
  metadata?: Record<string, unknown> | undefined;
1317
3734
  }, {
1318
3735
  type: string;
1319
3736
  id: string;
3737
+ createdAt: string;
1320
3738
  actorUserId: string;
1321
3739
  actorRole: "family" | "coach" | "superAdmin" | "system";
1322
- createdAt: string;
1323
3740
  organizationId?: string | null | undefined;
1324
3741
  targetUserId?: string | null | undefined;
1325
3742
  metadata?: Record<string, unknown> | undefined;
1326
3743
  }>;
1327
3744
  export type ActorRoles = z.infer<typeof actorRolesSchema>;
3745
+ export type ProfileRelationship = z.infer<typeof profileRelationshipSchema>;
1328
3746
  export type PublicUser = z.infer<typeof publicUserSchema>;
1329
3747
  export type AuthenticatedIdentity = z.infer<typeof authenticatedIdentitySchema>;
1330
3748
  export type OnboardingIdentity = z.infer<typeof onboardingIdentitySchema>;
@@ -1333,6 +3751,8 @@ export type SessionContext = z.infer<typeof sessionContextSchema>;
1333
3751
  export type AuthMeResponse = z.infer<typeof authMeResponseSchema>;
1334
3752
  export type SubjectMode = z.infer<typeof subjectModeSchema>;
1335
3753
  export type SubjectPermissions = z.infer<typeof subjectPermissionsSchema>;
3754
+ export type OrganizationBrandingTheme = z.infer<typeof organizationBrandingThemeSchema>;
3755
+ export type OrganizationBranding = z.infer<typeof organizationBrandingSchema>;
1336
3756
  export type OrganizationSummary = z.infer<typeof organizationSummarySchema>;
1337
3757
  export type AssignmentSummary = z.infer<typeof assignmentSummarySchema>;
1338
3758
  export type PremiumDisabledReason = z.infer<typeof premiumDisabledReasonSchema>;