@nikthegeek/dreamsforlittles-shared 0.1.2 → 0.4.1

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