@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
@@ -0,0 +1,605 @@
1
+ import { z } from "zod";
2
+ export declare const SUPPORT_TICKET_CATEGORIES: readonly [{
3
+ readonly key: "general";
4
+ readonly label: "General";
5
+ }, {
6
+ readonly key: "account";
7
+ readonly label: "Account";
8
+ }, {
9
+ readonly key: "billing";
10
+ readonly label: "Billing";
11
+ }, {
12
+ readonly key: "technical";
13
+ readonly label: "Technical";
14
+ }, {
15
+ readonly key: "clientAccess";
16
+ readonly label: "Client access";
17
+ }];
18
+ export declare const MIN_SUPPORT_TICKET_SUBJECT_LENGTH = 3;
19
+ export declare const MAX_SUPPORT_TICKET_SUBJECT_LENGTH = 140;
20
+ export declare const MIN_SUPPORT_TICKET_MESSAGE_LENGTH = 1;
21
+ export declare const MAX_SUPPORT_TICKET_MESSAGE_LENGTH = 4000;
22
+ export declare const supportTicketCategorySchema: z.ZodEnum<["general", "account", "billing", "technical", "clientAccess"]>;
23
+ export declare const supportTicketStatusSchema: z.ZodEnum<["open", "inProgress", "done", "archived"]>;
24
+ export declare const supportTicketSourceRoleSchema: z.ZodEnum<["family", "coach"]>;
25
+ export declare const supportTicketMessageAuthorRoleSchema: z.ZodEnum<["coach", "support", "system"]>;
26
+ export declare const createSupportTicketRequestSchema: z.ZodObject<{
27
+ subject: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
28
+ category: z.ZodDefault<z.ZodEnum<["general", "account", "billing", "technical", "clientAccess"]>>;
29
+ message: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
30
+ }, "strict", z.ZodTypeAny, {
31
+ message: string;
32
+ subject: string;
33
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
34
+ }, {
35
+ message: string;
36
+ subject: string;
37
+ category?: "general" | "billing" | "account" | "technical" | "clientAccess" | undefined;
38
+ }>;
39
+ export declare const supportTicketMessageCreateRequestSchema: z.ZodObject<{
40
+ message: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ message: string;
43
+ }, {
44
+ message: string;
45
+ }>;
46
+ export declare const adminSupportTicketStatusUpdateRequestSchema: z.ZodObject<{
47
+ status: z.ZodEnum<["open", "inProgress", "done", "archived"]>;
48
+ }, "strict", z.ZodTypeAny, {
49
+ status: "archived" | "inProgress" | "open" | "done";
50
+ }, {
51
+ status: "archived" | "inProgress" | "open" | "done";
52
+ }>;
53
+ export declare const supportTicketMessageSchema: z.ZodObject<{
54
+ id: z.ZodString;
55
+ ticketId: z.ZodString;
56
+ authorUserId: z.ZodString;
57
+ authorName: z.ZodString;
58
+ authorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ authorRole: z.ZodEnum<["coach", "support", "system"]>;
60
+ body: z.ZodString;
61
+ internal: z.ZodBoolean;
62
+ createdAt: z.ZodString;
63
+ updatedAt: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ id: string;
66
+ createdAt: string;
67
+ updatedAt: string;
68
+ ticketId: string;
69
+ authorUserId: string;
70
+ authorName: string;
71
+ authorRole: "coach" | "system" | "support";
72
+ body: string;
73
+ internal: boolean;
74
+ authorEmail?: string | null | undefined;
75
+ }, {
76
+ id: string;
77
+ createdAt: string;
78
+ updatedAt: string;
79
+ ticketId: string;
80
+ authorUserId: string;
81
+ authorName: string;
82
+ authorRole: "coach" | "system" | "support";
83
+ body: string;
84
+ internal: boolean;
85
+ authorEmail?: string | null | undefined;
86
+ }>;
87
+ export declare const supportTicketSchema: z.ZodObject<{
88
+ id: z.ZodString;
89
+ subject: z.ZodString;
90
+ category: z.ZodEnum<["general", "account", "billing", "technical", "clientAccess"]>;
91
+ status: z.ZodEnum<["open", "inProgress", "done", "archived"]>;
92
+ sourceRole: z.ZodEnum<["family", "coach"]>;
93
+ createdByUserId: z.ZodString;
94
+ createdByName: z.ZodString;
95
+ createdByEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ organizationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ assignedToUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ lastMessageAt: z.ZodString;
100
+ createdAt: z.ZodString;
101
+ updatedAt: z.ZodString;
102
+ coachLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ coachUnreadMessageCount: z.ZodOptional<z.ZodNumber>;
104
+ hasCoachUnreadMessages: z.ZodOptional<z.ZodBoolean>;
105
+ resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ messages: z.ZodArray<z.ZodObject<{
108
+ id: z.ZodString;
109
+ ticketId: z.ZodString;
110
+ authorUserId: z.ZodString;
111
+ authorName: z.ZodString;
112
+ authorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ authorRole: z.ZodEnum<["coach", "support", "system"]>;
114
+ body: z.ZodString;
115
+ internal: z.ZodBoolean;
116
+ createdAt: z.ZodString;
117
+ updatedAt: z.ZodString;
118
+ }, "strip", z.ZodTypeAny, {
119
+ id: string;
120
+ createdAt: string;
121
+ updatedAt: string;
122
+ ticketId: string;
123
+ authorUserId: string;
124
+ authorName: string;
125
+ authorRole: "coach" | "system" | "support";
126
+ body: string;
127
+ internal: boolean;
128
+ authorEmail?: string | null | undefined;
129
+ }, {
130
+ id: string;
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ ticketId: string;
134
+ authorUserId: string;
135
+ authorName: string;
136
+ authorRole: "coach" | "system" | "support";
137
+ body: string;
138
+ internal: boolean;
139
+ authorEmail?: string | null | undefined;
140
+ }>, "many">;
141
+ }, "strip", z.ZodTypeAny, {
142
+ status: "archived" | "inProgress" | "open" | "done";
143
+ id: string;
144
+ createdAt: string;
145
+ updatedAt: string;
146
+ subject: string;
147
+ createdByUserId: string;
148
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
149
+ sourceRole: "family" | "coach";
150
+ createdByName: string;
151
+ lastMessageAt: string;
152
+ messages: {
153
+ id: string;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ ticketId: string;
157
+ authorUserId: string;
158
+ authorName: string;
159
+ authorRole: "coach" | "system" | "support";
160
+ body: string;
161
+ internal: boolean;
162
+ authorEmail?: string | null | undefined;
163
+ }[];
164
+ organizationId?: string | null | undefined;
165
+ resolvedAt?: string | null | undefined;
166
+ archivedAt?: string | null | undefined;
167
+ organizationName?: string | null | undefined;
168
+ createdByEmail?: string | null | undefined;
169
+ assignedToUserId?: string | null | undefined;
170
+ coachLastSeenAt?: string | null | undefined;
171
+ coachUnreadMessageCount?: number | undefined;
172
+ hasCoachUnreadMessages?: boolean | undefined;
173
+ }, {
174
+ status: "archived" | "inProgress" | "open" | "done";
175
+ id: string;
176
+ createdAt: string;
177
+ updatedAt: string;
178
+ subject: string;
179
+ createdByUserId: string;
180
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
181
+ sourceRole: "family" | "coach";
182
+ createdByName: string;
183
+ lastMessageAt: string;
184
+ messages: {
185
+ id: string;
186
+ createdAt: string;
187
+ updatedAt: string;
188
+ ticketId: string;
189
+ authorUserId: string;
190
+ authorName: string;
191
+ authorRole: "coach" | "system" | "support";
192
+ body: string;
193
+ internal: boolean;
194
+ authorEmail?: string | null | undefined;
195
+ }[];
196
+ organizationId?: string | null | undefined;
197
+ resolvedAt?: string | null | undefined;
198
+ archivedAt?: string | null | undefined;
199
+ organizationName?: string | null | undefined;
200
+ createdByEmail?: string | null | undefined;
201
+ assignedToUserId?: string | null | undefined;
202
+ coachLastSeenAt?: string | null | undefined;
203
+ coachUnreadMessageCount?: number | undefined;
204
+ hasCoachUnreadMessages?: boolean | undefined;
205
+ }>;
206
+ export declare const supportTicketResponseSchema: z.ZodObject<{
207
+ ticket: z.ZodObject<{
208
+ id: z.ZodString;
209
+ subject: z.ZodString;
210
+ category: z.ZodEnum<["general", "account", "billing", "technical", "clientAccess"]>;
211
+ status: z.ZodEnum<["open", "inProgress", "done", "archived"]>;
212
+ sourceRole: z.ZodEnum<["family", "coach"]>;
213
+ createdByUserId: z.ZodString;
214
+ createdByName: z.ZodString;
215
+ createdByEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ organizationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ assignedToUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ lastMessageAt: z.ZodString;
220
+ createdAt: z.ZodString;
221
+ updatedAt: z.ZodString;
222
+ coachLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ coachUnreadMessageCount: z.ZodOptional<z.ZodNumber>;
224
+ hasCoachUnreadMessages: z.ZodOptional<z.ZodBoolean>;
225
+ resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ messages: z.ZodArray<z.ZodObject<{
228
+ id: z.ZodString;
229
+ ticketId: z.ZodString;
230
+ authorUserId: z.ZodString;
231
+ authorName: z.ZodString;
232
+ authorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ authorRole: z.ZodEnum<["coach", "support", "system"]>;
234
+ body: z.ZodString;
235
+ internal: z.ZodBoolean;
236
+ createdAt: z.ZodString;
237
+ updatedAt: z.ZodString;
238
+ }, "strip", z.ZodTypeAny, {
239
+ id: string;
240
+ createdAt: string;
241
+ updatedAt: string;
242
+ ticketId: string;
243
+ authorUserId: string;
244
+ authorName: string;
245
+ authorRole: "coach" | "system" | "support";
246
+ body: string;
247
+ internal: boolean;
248
+ authorEmail?: string | null | undefined;
249
+ }, {
250
+ id: string;
251
+ createdAt: string;
252
+ updatedAt: string;
253
+ ticketId: string;
254
+ authorUserId: string;
255
+ authorName: string;
256
+ authorRole: "coach" | "system" | "support";
257
+ body: string;
258
+ internal: boolean;
259
+ authorEmail?: string | null | undefined;
260
+ }>, "many">;
261
+ }, "strip", z.ZodTypeAny, {
262
+ status: "archived" | "inProgress" | "open" | "done";
263
+ id: string;
264
+ createdAt: string;
265
+ updatedAt: string;
266
+ subject: string;
267
+ createdByUserId: string;
268
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
269
+ sourceRole: "family" | "coach";
270
+ createdByName: string;
271
+ lastMessageAt: string;
272
+ messages: {
273
+ id: string;
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ ticketId: string;
277
+ authorUserId: string;
278
+ authorName: string;
279
+ authorRole: "coach" | "system" | "support";
280
+ body: string;
281
+ internal: boolean;
282
+ authorEmail?: string | null | undefined;
283
+ }[];
284
+ organizationId?: string | null | undefined;
285
+ resolvedAt?: string | null | undefined;
286
+ archivedAt?: string | null | undefined;
287
+ organizationName?: string | null | undefined;
288
+ createdByEmail?: string | null | undefined;
289
+ assignedToUserId?: string | null | undefined;
290
+ coachLastSeenAt?: string | null | undefined;
291
+ coachUnreadMessageCount?: number | undefined;
292
+ hasCoachUnreadMessages?: boolean | undefined;
293
+ }, {
294
+ status: "archived" | "inProgress" | "open" | "done";
295
+ id: string;
296
+ createdAt: string;
297
+ updatedAt: string;
298
+ subject: string;
299
+ createdByUserId: string;
300
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
301
+ sourceRole: "family" | "coach";
302
+ createdByName: string;
303
+ lastMessageAt: string;
304
+ messages: {
305
+ id: string;
306
+ createdAt: string;
307
+ updatedAt: string;
308
+ ticketId: string;
309
+ authorUserId: string;
310
+ authorName: string;
311
+ authorRole: "coach" | "system" | "support";
312
+ body: string;
313
+ internal: boolean;
314
+ authorEmail?: string | null | undefined;
315
+ }[];
316
+ organizationId?: string | null | undefined;
317
+ resolvedAt?: string | null | undefined;
318
+ archivedAt?: string | null | undefined;
319
+ organizationName?: string | null | undefined;
320
+ createdByEmail?: string | null | undefined;
321
+ assignedToUserId?: string | null | undefined;
322
+ coachLastSeenAt?: string | null | undefined;
323
+ coachUnreadMessageCount?: number | undefined;
324
+ hasCoachUnreadMessages?: boolean | undefined;
325
+ }>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ ticket: {
328
+ status: "archived" | "inProgress" | "open" | "done";
329
+ id: string;
330
+ createdAt: string;
331
+ updatedAt: string;
332
+ subject: string;
333
+ createdByUserId: string;
334
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
335
+ sourceRole: "family" | "coach";
336
+ createdByName: string;
337
+ lastMessageAt: string;
338
+ messages: {
339
+ id: string;
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ ticketId: string;
343
+ authorUserId: string;
344
+ authorName: string;
345
+ authorRole: "coach" | "system" | "support";
346
+ body: string;
347
+ internal: boolean;
348
+ authorEmail?: string | null | undefined;
349
+ }[];
350
+ organizationId?: string | null | undefined;
351
+ resolvedAt?: string | null | undefined;
352
+ archivedAt?: string | null | undefined;
353
+ organizationName?: string | null | undefined;
354
+ createdByEmail?: string | null | undefined;
355
+ assignedToUserId?: string | null | undefined;
356
+ coachLastSeenAt?: string | null | undefined;
357
+ coachUnreadMessageCount?: number | undefined;
358
+ hasCoachUnreadMessages?: boolean | undefined;
359
+ };
360
+ }, {
361
+ ticket: {
362
+ status: "archived" | "inProgress" | "open" | "done";
363
+ id: string;
364
+ createdAt: string;
365
+ updatedAt: string;
366
+ subject: string;
367
+ createdByUserId: string;
368
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
369
+ sourceRole: "family" | "coach";
370
+ createdByName: string;
371
+ lastMessageAt: string;
372
+ messages: {
373
+ id: string;
374
+ createdAt: string;
375
+ updatedAt: string;
376
+ ticketId: string;
377
+ authorUserId: string;
378
+ authorName: string;
379
+ authorRole: "coach" | "system" | "support";
380
+ body: string;
381
+ internal: boolean;
382
+ authorEmail?: string | null | undefined;
383
+ }[];
384
+ organizationId?: string | null | undefined;
385
+ resolvedAt?: string | null | undefined;
386
+ archivedAt?: string | null | undefined;
387
+ organizationName?: string | null | undefined;
388
+ createdByEmail?: string | null | undefined;
389
+ assignedToUserId?: string | null | undefined;
390
+ coachLastSeenAt?: string | null | undefined;
391
+ coachUnreadMessageCount?: number | undefined;
392
+ hasCoachUnreadMessages?: boolean | undefined;
393
+ };
394
+ }>;
395
+ export declare const supportTicketsResponseSchema: z.ZodObject<{
396
+ tickets: z.ZodArray<z.ZodObject<{
397
+ id: z.ZodString;
398
+ subject: z.ZodString;
399
+ category: z.ZodEnum<["general", "account", "billing", "technical", "clientAccess"]>;
400
+ status: z.ZodEnum<["open", "inProgress", "done", "archived"]>;
401
+ sourceRole: z.ZodEnum<["family", "coach"]>;
402
+ createdByUserId: z.ZodString;
403
+ createdByName: z.ZodString;
404
+ createdByEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ organizationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
407
+ assignedToUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
+ lastMessageAt: z.ZodString;
409
+ createdAt: z.ZodString;
410
+ updatedAt: z.ZodString;
411
+ coachLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ coachUnreadMessageCount: z.ZodOptional<z.ZodNumber>;
413
+ hasCoachUnreadMessages: z.ZodOptional<z.ZodBoolean>;
414
+ resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ messages: z.ZodArray<z.ZodObject<{
417
+ id: z.ZodString;
418
+ ticketId: z.ZodString;
419
+ authorUserId: z.ZodString;
420
+ authorName: z.ZodString;
421
+ authorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ authorRole: z.ZodEnum<["coach", "support", "system"]>;
423
+ body: z.ZodString;
424
+ internal: z.ZodBoolean;
425
+ createdAt: z.ZodString;
426
+ updatedAt: z.ZodString;
427
+ }, "strip", z.ZodTypeAny, {
428
+ id: string;
429
+ createdAt: string;
430
+ updatedAt: string;
431
+ ticketId: string;
432
+ authorUserId: string;
433
+ authorName: string;
434
+ authorRole: "coach" | "system" | "support";
435
+ body: string;
436
+ internal: boolean;
437
+ authorEmail?: string | null | undefined;
438
+ }, {
439
+ id: string;
440
+ createdAt: string;
441
+ updatedAt: string;
442
+ ticketId: string;
443
+ authorUserId: string;
444
+ authorName: string;
445
+ authorRole: "coach" | "system" | "support";
446
+ body: string;
447
+ internal: boolean;
448
+ authorEmail?: string | null | undefined;
449
+ }>, "many">;
450
+ }, "strip", z.ZodTypeAny, {
451
+ status: "archived" | "inProgress" | "open" | "done";
452
+ id: string;
453
+ createdAt: string;
454
+ updatedAt: string;
455
+ subject: string;
456
+ createdByUserId: string;
457
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
458
+ sourceRole: "family" | "coach";
459
+ createdByName: string;
460
+ lastMessageAt: string;
461
+ messages: {
462
+ id: string;
463
+ createdAt: string;
464
+ updatedAt: string;
465
+ ticketId: string;
466
+ authorUserId: string;
467
+ authorName: string;
468
+ authorRole: "coach" | "system" | "support";
469
+ body: string;
470
+ internal: boolean;
471
+ authorEmail?: string | null | undefined;
472
+ }[];
473
+ organizationId?: string | null | undefined;
474
+ resolvedAt?: string | null | undefined;
475
+ archivedAt?: string | null | undefined;
476
+ organizationName?: string | null | undefined;
477
+ createdByEmail?: string | null | undefined;
478
+ assignedToUserId?: string | null | undefined;
479
+ coachLastSeenAt?: string | null | undefined;
480
+ coachUnreadMessageCount?: number | undefined;
481
+ hasCoachUnreadMessages?: boolean | undefined;
482
+ }, {
483
+ status: "archived" | "inProgress" | "open" | "done";
484
+ id: string;
485
+ createdAt: string;
486
+ updatedAt: string;
487
+ subject: string;
488
+ createdByUserId: string;
489
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
490
+ sourceRole: "family" | "coach";
491
+ createdByName: string;
492
+ lastMessageAt: string;
493
+ messages: {
494
+ id: string;
495
+ createdAt: string;
496
+ updatedAt: string;
497
+ ticketId: string;
498
+ authorUserId: string;
499
+ authorName: string;
500
+ authorRole: "coach" | "system" | "support";
501
+ body: string;
502
+ internal: boolean;
503
+ authorEmail?: string | null | undefined;
504
+ }[];
505
+ organizationId?: string | null | undefined;
506
+ resolvedAt?: string | null | undefined;
507
+ archivedAt?: string | null | undefined;
508
+ organizationName?: string | null | undefined;
509
+ createdByEmail?: string | null | undefined;
510
+ assignedToUserId?: string | null | undefined;
511
+ coachLastSeenAt?: string | null | undefined;
512
+ coachUnreadMessageCount?: number | undefined;
513
+ hasCoachUnreadMessages?: boolean | undefined;
514
+ }>, "many">;
515
+ unreadCount: z.ZodOptional<z.ZodNumber>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ tickets: {
518
+ status: "archived" | "inProgress" | "open" | "done";
519
+ id: string;
520
+ createdAt: string;
521
+ updatedAt: string;
522
+ subject: string;
523
+ createdByUserId: string;
524
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
525
+ sourceRole: "family" | "coach";
526
+ createdByName: string;
527
+ lastMessageAt: string;
528
+ messages: {
529
+ id: string;
530
+ createdAt: string;
531
+ updatedAt: string;
532
+ ticketId: string;
533
+ authorUserId: string;
534
+ authorName: string;
535
+ authorRole: "coach" | "system" | "support";
536
+ body: string;
537
+ internal: boolean;
538
+ authorEmail?: string | null | undefined;
539
+ }[];
540
+ organizationId?: string | null | undefined;
541
+ resolvedAt?: string | null | undefined;
542
+ archivedAt?: string | null | undefined;
543
+ organizationName?: string | null | undefined;
544
+ createdByEmail?: string | null | undefined;
545
+ assignedToUserId?: string | null | undefined;
546
+ coachLastSeenAt?: string | null | undefined;
547
+ coachUnreadMessageCount?: number | undefined;
548
+ hasCoachUnreadMessages?: boolean | undefined;
549
+ }[];
550
+ unreadCount?: number | undefined;
551
+ }, {
552
+ tickets: {
553
+ status: "archived" | "inProgress" | "open" | "done";
554
+ id: string;
555
+ createdAt: string;
556
+ updatedAt: string;
557
+ subject: string;
558
+ createdByUserId: string;
559
+ category: "general" | "billing" | "account" | "technical" | "clientAccess";
560
+ sourceRole: "family" | "coach";
561
+ createdByName: string;
562
+ lastMessageAt: string;
563
+ messages: {
564
+ id: string;
565
+ createdAt: string;
566
+ updatedAt: string;
567
+ ticketId: string;
568
+ authorUserId: string;
569
+ authorName: string;
570
+ authorRole: "coach" | "system" | "support";
571
+ body: string;
572
+ internal: boolean;
573
+ authorEmail?: string | null | undefined;
574
+ }[];
575
+ organizationId?: string | null | undefined;
576
+ resolvedAt?: string | null | undefined;
577
+ archivedAt?: string | null | undefined;
578
+ organizationName?: string | null | undefined;
579
+ createdByEmail?: string | null | undefined;
580
+ assignedToUserId?: string | null | undefined;
581
+ coachLastSeenAt?: string | null | undefined;
582
+ coachUnreadMessageCount?: number | undefined;
583
+ hasCoachUnreadMessages?: boolean | undefined;
584
+ }[];
585
+ unreadCount?: number | undefined;
586
+ }>;
587
+ export declare const supportTicketUnreadSummaryResponseSchema: z.ZodObject<{
588
+ unreadCount: z.ZodNumber;
589
+ }, "strip", z.ZodTypeAny, {
590
+ unreadCount: number;
591
+ }, {
592
+ unreadCount: number;
593
+ }>;
594
+ export type SupportTicketCategory = z.infer<typeof supportTicketCategorySchema>;
595
+ export type SupportTicketStatus = z.infer<typeof supportTicketStatusSchema>;
596
+ export type SupportTicketSourceRole = z.infer<typeof supportTicketSourceRoleSchema>;
597
+ export type SupportTicketMessageAuthorRole = z.infer<typeof supportTicketMessageAuthorRoleSchema>;
598
+ export type CreateSupportTicketRequest = z.infer<typeof createSupportTicketRequestSchema>;
599
+ export type SupportTicketMessageCreateRequest = z.infer<typeof supportTicketMessageCreateRequestSchema>;
600
+ export type AdminSupportTicketStatusUpdateRequest = z.infer<typeof adminSupportTicketStatusUpdateRequestSchema>;
601
+ export type SupportTicketMessage = z.infer<typeof supportTicketMessageSchema>;
602
+ export type SupportTicket = z.infer<typeof supportTicketSchema>;
603
+ export type SupportTicketResponse = z.infer<typeof supportTicketResponseSchema>;
604
+ export type SupportTicketsResponse = z.infer<typeof supportTicketsResponseSchema>;
605
+ export type SupportTicketUnreadSummaryResponse = z.infer<typeof supportTicketUnreadSummaryResponseSchema>;