@debugbundle/shared-types 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/browser-resource-providers.d.ts +9 -0
  2. package/dist/browser-resource-providers.d.ts.map +1 -0
  3. package/dist/browser-resource-providers.js +129 -0
  4. package/dist/browser-resource-providers.js.map +1 -0
  5. package/dist/browser-resource-suggestions.d.ts.map +1 -1
  6. package/dist/browser-resource-suggestions.js +99 -63
  7. package/dist/browser-resource-suggestions.js.map +1 -1
  8. package/dist/browser-resource.d.ts.map +1 -1
  9. package/dist/browser-resource.js +5 -16
  10. package/dist/browser-resource.js.map +1 -1
  11. package/dist/capture-rule-suggestion-matching.d.ts +3 -0
  12. package/dist/capture-rule-suggestion-matching.d.ts.map +1 -0
  13. package/dist/capture-rule-suggestion-matching.js +49 -0
  14. package/dist/capture-rule-suggestion-matching.js.map +1 -0
  15. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  16. package/dist/capture-rule-suggestions.js +2 -1
  17. package/dist/capture-rule-suggestions.js.map +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +1 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/notification-preferences.d.ts +1259 -0
  23. package/dist/notification-preferences.d.ts.map +1 -0
  24. package/dist/notification-preferences.js +206 -0
  25. package/dist/notification-preferences.js.map +1 -0
  26. package/dist/notification-schedule.d.ts +4 -0
  27. package/dist/notification-schedule.d.ts.map +1 -0
  28. package/dist/notification-schedule.js +36 -0
  29. package/dist/notification-schedule.js.map +1 -0
  30. package/dist/weekly-notification-groups.d.ts +8 -0
  31. package/dist/weekly-notification-groups.d.ts.map +1 -0
  32. package/dist/weekly-notification-groups.js +23 -0
  33. package/dist/weekly-notification-groups.js.map +1 -0
  34. package/package.json +1 -1
@@ -0,0 +1,1259 @@
1
+ import { z } from "zod";
2
+ export { nextDailyNotificationAt } from "./notification-schedule.js";
3
+ export declare const NOTIFICATION_CHANNELS: readonly ["email", "slack", "discord", "webhook"];
4
+ export declare const NotificationChannelSchema: z.ZodEnum<["email", "slack", "discord", "webhook"]>;
5
+ export type NotificationChannel = z.infer<typeof NotificationChannelSchema>;
6
+ export declare const NotificationChannelsSchema: z.ZodObject<{
7
+ email: z.ZodEnum<["inherit", "immediate", "daily", "off"]>;
8
+ slack: z.ZodEnum<["inherit", "immediate", "off"]>;
9
+ discord: z.ZodEnum<["inherit", "immediate", "off"]>;
10
+ webhook: z.ZodEnum<["inherit", "immediate", "off"]>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ email: "off" | "inherit" | "immediate" | "daily";
13
+ slack: "off" | "inherit" | "immediate";
14
+ discord: "off" | "inherit" | "immediate";
15
+ webhook: "off" | "inherit" | "immediate";
16
+ }, {
17
+ email: "off" | "inherit" | "immediate" | "daily";
18
+ slack: "off" | "inherit" | "immediate";
19
+ discord: "off" | "inherit" | "immediate";
20
+ webhook: "off" | "inherit" | "immediate";
21
+ }>;
22
+ export declare const NotificationScheduleSchema: z.ZodObject<{
23
+ time: z.ZodString;
24
+ timezone: z.ZodEffects<z.ZodString, string, string>;
25
+ }, "strict", z.ZodTypeAny, {
26
+ time: string;
27
+ timezone: string;
28
+ }, {
29
+ time: string;
30
+ timezone: string;
31
+ }>;
32
+ export type NotificationSchedule = z.infer<typeof NotificationScheduleSchema>;
33
+ export declare const NotificationPreferencesSchema: z.ZodObject<{
34
+ channels: z.ZodObject<{
35
+ email: z.ZodEnum<["inherit", "immediate", "daily", "off"]>;
36
+ slack: z.ZodEnum<["inherit", "immediate", "off"]>;
37
+ discord: z.ZodEnum<["inherit", "immediate", "off"]>;
38
+ webhook: z.ZodEnum<["inherit", "immediate", "off"]>;
39
+ }, "strict", z.ZodTypeAny, {
40
+ email: "off" | "inherit" | "immediate" | "daily";
41
+ slack: "off" | "inherit" | "immediate";
42
+ discord: "off" | "inherit" | "immediate";
43
+ webhook: "off" | "inherit" | "immediate";
44
+ }, {
45
+ email: "off" | "inherit" | "immediate" | "daily";
46
+ slack: "off" | "inherit" | "immediate";
47
+ discord: "off" | "inherit" | "immediate";
48
+ webhook: "off" | "inherit" | "immediate";
49
+ }>;
50
+ daily: z.ZodNullable<z.ZodObject<{
51
+ time: z.ZodString;
52
+ timezone: z.ZodEffects<z.ZodString, string, string>;
53
+ }, "strict", z.ZodTypeAny, {
54
+ time: string;
55
+ timezone: string;
56
+ }, {
57
+ time: string;
58
+ timezone: string;
59
+ }>>;
60
+ pauses: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
61
+ until: z.ZodNullable<z.ZodString>;
62
+ allow_health_checks: z.ZodBoolean;
63
+ }, "strict", z.ZodTypeAny, {
64
+ until: string | null;
65
+ allow_health_checks: boolean;
66
+ }, {
67
+ until: string | null;
68
+ allow_health_checks: boolean;
69
+ }>>;
70
+ discard_before: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
71
+ ordinary: z.ZodNullable<z.ZodString>;
72
+ health: z.ZodNullable<z.ZodString>;
73
+ }, "strict", z.ZodTypeAny, {
74
+ ordinary: string | null;
75
+ health: string | null;
76
+ }, {
77
+ ordinary: string | null;
78
+ health: string | null;
79
+ }>>;
80
+ }, "strict", z.ZodTypeAny, {
81
+ daily: {
82
+ time: string;
83
+ timezone: string;
84
+ } | null;
85
+ channels: {
86
+ email: "off" | "inherit" | "immediate" | "daily";
87
+ slack: "off" | "inherit" | "immediate";
88
+ discord: "off" | "inherit" | "immediate";
89
+ webhook: "off" | "inherit" | "immediate";
90
+ };
91
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
92
+ until: string | null;
93
+ allow_health_checks: boolean;
94
+ }>>;
95
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
96
+ ordinary: string | null;
97
+ health: string | null;
98
+ }>>;
99
+ }, {
100
+ daily: {
101
+ time: string;
102
+ timezone: string;
103
+ } | null;
104
+ channels: {
105
+ email: "off" | "inherit" | "immediate" | "daily";
106
+ slack: "off" | "inherit" | "immediate";
107
+ discord: "off" | "inherit" | "immediate";
108
+ webhook: "off" | "inherit" | "immediate";
109
+ };
110
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
111
+ until: string | null;
112
+ allow_health_checks: boolean;
113
+ }>>;
114
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
115
+ ordinary: string | null;
116
+ health: string | null;
117
+ }>>;
118
+ }>;
119
+ export type NotificationPreferences = z.infer<typeof NotificationPreferencesSchema>;
120
+ export declare const NotificationUpdateSchema: z.ZodEffects<z.ZodObject<{
121
+ channels: z.ZodOptional<z.ZodObject<{
122
+ email: z.ZodOptional<z.ZodEnum<["inherit", "immediate", "daily", "off"]>>;
123
+ slack: z.ZodOptional<z.ZodEnum<["inherit", "immediate", "off"]>>;
124
+ discord: z.ZodOptional<z.ZodEnum<["inherit", "immediate", "off"]>>;
125
+ webhook: z.ZodOptional<z.ZodEnum<["inherit", "immediate", "off"]>>;
126
+ }, "strict", z.ZodTypeAny, {
127
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
128
+ slack?: "off" | "inherit" | "immediate" | undefined;
129
+ discord?: "off" | "inherit" | "immediate" | undefined;
130
+ webhook?: "off" | "inherit" | "immediate" | undefined;
131
+ }, {
132
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
133
+ slack?: "off" | "inherit" | "immediate" | undefined;
134
+ discord?: "off" | "inherit" | "immediate" | undefined;
135
+ webhook?: "off" | "inherit" | "immediate" | undefined;
136
+ }>>;
137
+ daily: z.ZodOptional<z.ZodNullable<z.ZodObject<{
138
+ time: z.ZodString;
139
+ timezone: z.ZodEffects<z.ZodString, string, string>;
140
+ }, "strict", z.ZodTypeAny, {
141
+ time: string;
142
+ timezone: string;
143
+ }, {
144
+ time: string;
145
+ timezone: string;
146
+ }>>>;
147
+ }, "strict", z.ZodTypeAny, {
148
+ daily?: {
149
+ time: string;
150
+ timezone: string;
151
+ } | null | undefined;
152
+ channels?: {
153
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
154
+ slack?: "off" | "inherit" | "immediate" | undefined;
155
+ discord?: "off" | "inherit" | "immediate" | undefined;
156
+ webhook?: "off" | "inherit" | "immediate" | undefined;
157
+ } | undefined;
158
+ }, {
159
+ daily?: {
160
+ time: string;
161
+ timezone: string;
162
+ } | null | undefined;
163
+ channels?: {
164
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
165
+ slack?: "off" | "inherit" | "immediate" | undefined;
166
+ discord?: "off" | "inherit" | "immediate" | undefined;
167
+ webhook?: "off" | "inherit" | "immediate" | undefined;
168
+ } | undefined;
169
+ }>, {
170
+ daily?: {
171
+ time: string;
172
+ timezone: string;
173
+ } | null | undefined;
174
+ channels?: {
175
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
176
+ slack?: "off" | "inherit" | "immediate" | undefined;
177
+ discord?: "off" | "inherit" | "immediate" | undefined;
178
+ webhook?: "off" | "inherit" | "immediate" | undefined;
179
+ } | undefined;
180
+ }, {
181
+ daily?: {
182
+ time: string;
183
+ timezone: string;
184
+ } | null | undefined;
185
+ channels?: {
186
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
187
+ slack?: "off" | "inherit" | "immediate" | undefined;
188
+ discord?: "off" | "inherit" | "immediate" | undefined;
189
+ webhook?: "off" | "inherit" | "immediate" | undefined;
190
+ } | undefined;
191
+ }>;
192
+ export declare const NotificationResumeSchema: z.ZodObject<{
193
+ channels: z.ZodArray<z.ZodEnum<["email", "slack", "discord", "webhook"]>, "many">;
194
+ }, "strict", z.ZodTypeAny, {
195
+ channels: ("email" | "slack" | "discord" | "webhook")[];
196
+ }, {
197
+ channels: ("email" | "slack" | "discord" | "webhook")[];
198
+ }>;
199
+ export declare const NotificationPauseSchema: z.ZodObject<{
200
+ channels: z.ZodArray<z.ZodEnum<["email", "slack", "discord", "webhook"]>, "many">;
201
+ } & {
202
+ until: z.ZodNullable<z.ZodString>;
203
+ allow_health_checks: z.ZodDefault<z.ZodBoolean>;
204
+ }, "strict", z.ZodTypeAny, {
205
+ until: string | null;
206
+ allow_health_checks: boolean;
207
+ channels: ("email" | "slack" | "discord" | "webhook")[];
208
+ }, {
209
+ until: string | null;
210
+ channels: ("email" | "slack" | "discord" | "webhook")[];
211
+ allow_health_checks?: boolean | undefined;
212
+ }>;
213
+ export declare const NotificationChangeSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
214
+ channels: z.ZodOptional<z.ZodObject<{
215
+ email: z.ZodOptional<z.ZodEnum<["inherit", "immediate", "daily", "off"]>>;
216
+ slack: z.ZodOptional<z.ZodEnum<["inherit", "immediate", "off"]>>;
217
+ discord: z.ZodOptional<z.ZodEnum<["inherit", "immediate", "off"]>>;
218
+ webhook: z.ZodOptional<z.ZodEnum<["inherit", "immediate", "off"]>>;
219
+ }, "strict", z.ZodTypeAny, {
220
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
221
+ slack?: "off" | "inherit" | "immediate" | undefined;
222
+ discord?: "off" | "inherit" | "immediate" | undefined;
223
+ webhook?: "off" | "inherit" | "immediate" | undefined;
224
+ }, {
225
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
226
+ slack?: "off" | "inherit" | "immediate" | undefined;
227
+ discord?: "off" | "inherit" | "immediate" | undefined;
228
+ webhook?: "off" | "inherit" | "immediate" | undefined;
229
+ }>>;
230
+ daily: z.ZodOptional<z.ZodNullable<z.ZodObject<{
231
+ time: z.ZodString;
232
+ timezone: z.ZodEffects<z.ZodString, string, string>;
233
+ }, "strict", z.ZodTypeAny, {
234
+ time: string;
235
+ timezone: string;
236
+ }, {
237
+ time: string;
238
+ timezone: string;
239
+ }>>>;
240
+ }, "strict", z.ZodTypeAny, {
241
+ daily?: {
242
+ time: string;
243
+ timezone: string;
244
+ } | null | undefined;
245
+ channels?: {
246
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
247
+ slack?: "off" | "inherit" | "immediate" | undefined;
248
+ discord?: "off" | "inherit" | "immediate" | undefined;
249
+ webhook?: "off" | "inherit" | "immediate" | undefined;
250
+ } | undefined;
251
+ }, {
252
+ daily?: {
253
+ time: string;
254
+ timezone: string;
255
+ } | null | undefined;
256
+ channels?: {
257
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
258
+ slack?: "off" | "inherit" | "immediate" | undefined;
259
+ discord?: "off" | "inherit" | "immediate" | undefined;
260
+ webhook?: "off" | "inherit" | "immediate" | undefined;
261
+ } | undefined;
262
+ }>, {
263
+ daily?: {
264
+ time: string;
265
+ timezone: string;
266
+ } | null | undefined;
267
+ channels?: {
268
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
269
+ slack?: "off" | "inherit" | "immediate" | undefined;
270
+ discord?: "off" | "inherit" | "immediate" | undefined;
271
+ webhook?: "off" | "inherit" | "immediate" | undefined;
272
+ } | undefined;
273
+ }, {
274
+ daily?: {
275
+ time: string;
276
+ timezone: string;
277
+ } | null | undefined;
278
+ channels?: {
279
+ email?: "off" | "inherit" | "immediate" | "daily" | undefined;
280
+ slack?: "off" | "inherit" | "immediate" | undefined;
281
+ discord?: "off" | "inherit" | "immediate" | undefined;
282
+ webhook?: "off" | "inherit" | "immediate" | undefined;
283
+ } | undefined;
284
+ }>, z.ZodObject<{
285
+ pause: z.ZodObject<{
286
+ channels: z.ZodArray<z.ZodEnum<["email", "slack", "discord", "webhook"]>, "many">;
287
+ } & {
288
+ until: z.ZodNullable<z.ZodString>;
289
+ allow_health_checks: z.ZodDefault<z.ZodBoolean>;
290
+ }, "strict", z.ZodTypeAny, {
291
+ until: string | null;
292
+ allow_health_checks: boolean;
293
+ channels: ("email" | "slack" | "discord" | "webhook")[];
294
+ }, {
295
+ until: string | null;
296
+ channels: ("email" | "slack" | "discord" | "webhook")[];
297
+ allow_health_checks?: boolean | undefined;
298
+ }>;
299
+ }, "strict", z.ZodTypeAny, {
300
+ pause: {
301
+ until: string | null;
302
+ allow_health_checks: boolean;
303
+ channels: ("email" | "slack" | "discord" | "webhook")[];
304
+ };
305
+ }, {
306
+ pause: {
307
+ until: string | null;
308
+ channels: ("email" | "slack" | "discord" | "webhook")[];
309
+ allow_health_checks?: boolean | undefined;
310
+ };
311
+ }>, z.ZodObject<{
312
+ resume: z.ZodObject<{
313
+ channels: z.ZodArray<z.ZodEnum<["email", "slack", "discord", "webhook"]>, "many">;
314
+ }, "strict", z.ZodTypeAny, {
315
+ channels: ("email" | "slack" | "discord" | "webhook")[];
316
+ }, {
317
+ channels: ("email" | "slack" | "discord" | "webhook")[];
318
+ }>;
319
+ }, "strict", z.ZodTypeAny, {
320
+ resume: {
321
+ channels: ("email" | "slack" | "discord" | "webhook")[];
322
+ };
323
+ }, {
324
+ resume: {
325
+ channels: ("email" | "slack" | "discord" | "webhook")[];
326
+ };
327
+ }>]>;
328
+ export type NotificationChange = z.infer<typeof NotificationChangeSchema>;
329
+ export type NotificationAudience = "personal" | "shared";
330
+ export declare const NotificationAudienceSchema: z.ZodEnum<["personal", "shared"]>;
331
+ export declare function defaultNotificationPreferences(project?: boolean): NotificationPreferences;
332
+ /** Keep cutoffs when a pause ends or off is lifted so old jobs cannot flood a resumed channel. */
333
+ export declare function applyNotificationChange(previous: NotificationPreferences, change: NotificationChange, now: Date): NotificationPreferences;
334
+ export declare const EffectiveNotificationSchema: z.ZodObject<{
335
+ mode: z.ZodEnum<["immediate", "daily", "off"]>;
336
+ reason: z.ZodEnum<["account_default", "project_override", "account_paused", "project_paused", "suppressed_history", "health_priority"]>;
337
+ paused_until: z.ZodNullable<z.ZodString>;
338
+ daily: z.ZodObject<{
339
+ time: z.ZodString;
340
+ timezone: z.ZodEffects<z.ZodString, string, string>;
341
+ }, "strict", z.ZodTypeAny, {
342
+ time: string;
343
+ timezone: string;
344
+ }, {
345
+ time: string;
346
+ timezone: string;
347
+ }>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ mode: "off" | "immediate" | "daily";
350
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
351
+ daily: {
352
+ time: string;
353
+ timezone: string;
354
+ };
355
+ paused_until: string | null;
356
+ }, {
357
+ mode: "off" | "immediate" | "daily";
358
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
359
+ daily: {
360
+ time: string;
361
+ timezone: string;
362
+ };
363
+ paused_until: string | null;
364
+ }>;
365
+ export type EffectiveNotification = z.infer<typeof EffectiveNotificationSchema>;
366
+ export declare function resolveNotificationPolicy(input: {
367
+ account: NotificationPreferences;
368
+ project?: NotificationPreferences;
369
+ channel: NotificationChannel;
370
+ now: Date;
371
+ health?: boolean;
372
+ occurredAt?: string;
373
+ }): EffectiveNotification;
374
+ export declare const NotificationSettingsResponseSchema: z.ZodObject<{
375
+ audience: z.ZodEnum<["personal", "shared"]>;
376
+ project_id: z.ZodNullable<z.ZodString>;
377
+ can_manage: z.ZodBoolean;
378
+ settings: z.ZodObject<{
379
+ channels: z.ZodObject<{
380
+ email: z.ZodEnum<["inherit", "immediate", "daily", "off"]>;
381
+ slack: z.ZodEnum<["inherit", "immediate", "off"]>;
382
+ discord: z.ZodEnum<["inherit", "immediate", "off"]>;
383
+ webhook: z.ZodEnum<["inherit", "immediate", "off"]>;
384
+ }, "strict", z.ZodTypeAny, {
385
+ email: "off" | "inherit" | "immediate" | "daily";
386
+ slack: "off" | "inherit" | "immediate";
387
+ discord: "off" | "inherit" | "immediate";
388
+ webhook: "off" | "inherit" | "immediate";
389
+ }, {
390
+ email: "off" | "inherit" | "immediate" | "daily";
391
+ slack: "off" | "inherit" | "immediate";
392
+ discord: "off" | "inherit" | "immediate";
393
+ webhook: "off" | "inherit" | "immediate";
394
+ }>;
395
+ daily: z.ZodNullable<z.ZodObject<{
396
+ time: z.ZodString;
397
+ timezone: z.ZodEffects<z.ZodString, string, string>;
398
+ }, "strict", z.ZodTypeAny, {
399
+ time: string;
400
+ timezone: string;
401
+ }, {
402
+ time: string;
403
+ timezone: string;
404
+ }>>;
405
+ pauses: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
406
+ until: z.ZodNullable<z.ZodString>;
407
+ allow_health_checks: z.ZodBoolean;
408
+ }, "strict", z.ZodTypeAny, {
409
+ until: string | null;
410
+ allow_health_checks: boolean;
411
+ }, {
412
+ until: string | null;
413
+ allow_health_checks: boolean;
414
+ }>>;
415
+ discard_before: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
416
+ ordinary: z.ZodNullable<z.ZodString>;
417
+ health: z.ZodNullable<z.ZodString>;
418
+ }, "strict", z.ZodTypeAny, {
419
+ ordinary: string | null;
420
+ health: string | null;
421
+ }, {
422
+ ordinary: string | null;
423
+ health: string | null;
424
+ }>>;
425
+ }, "strict", z.ZodTypeAny, {
426
+ daily: {
427
+ time: string;
428
+ timezone: string;
429
+ } | null;
430
+ channels: {
431
+ email: "off" | "inherit" | "immediate" | "daily";
432
+ slack: "off" | "inherit" | "immediate";
433
+ discord: "off" | "inherit" | "immediate";
434
+ webhook: "off" | "inherit" | "immediate";
435
+ };
436
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
437
+ until: string | null;
438
+ allow_health_checks: boolean;
439
+ }>>;
440
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
441
+ ordinary: string | null;
442
+ health: string | null;
443
+ }>>;
444
+ }, {
445
+ daily: {
446
+ time: string;
447
+ timezone: string;
448
+ } | null;
449
+ channels: {
450
+ email: "off" | "inherit" | "immediate" | "daily";
451
+ slack: "off" | "inherit" | "immediate";
452
+ discord: "off" | "inherit" | "immediate";
453
+ webhook: "off" | "inherit" | "immediate";
454
+ };
455
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
456
+ until: string | null;
457
+ allow_health_checks: boolean;
458
+ }>>;
459
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
460
+ ordinary: string | null;
461
+ health: string | null;
462
+ }>>;
463
+ }>;
464
+ account: z.ZodObject<{
465
+ channels: z.ZodObject<{
466
+ email: z.ZodEnum<["inherit", "immediate", "daily", "off"]>;
467
+ slack: z.ZodEnum<["inherit", "immediate", "off"]>;
468
+ discord: z.ZodEnum<["inherit", "immediate", "off"]>;
469
+ webhook: z.ZodEnum<["inherit", "immediate", "off"]>;
470
+ }, "strict", z.ZodTypeAny, {
471
+ email: "off" | "inherit" | "immediate" | "daily";
472
+ slack: "off" | "inherit" | "immediate";
473
+ discord: "off" | "inherit" | "immediate";
474
+ webhook: "off" | "inherit" | "immediate";
475
+ }, {
476
+ email: "off" | "inherit" | "immediate" | "daily";
477
+ slack: "off" | "inherit" | "immediate";
478
+ discord: "off" | "inherit" | "immediate";
479
+ webhook: "off" | "inherit" | "immediate";
480
+ }>;
481
+ daily: z.ZodNullable<z.ZodObject<{
482
+ time: z.ZodString;
483
+ timezone: z.ZodEffects<z.ZodString, string, string>;
484
+ }, "strict", z.ZodTypeAny, {
485
+ time: string;
486
+ timezone: string;
487
+ }, {
488
+ time: string;
489
+ timezone: string;
490
+ }>>;
491
+ pauses: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
492
+ until: z.ZodNullable<z.ZodString>;
493
+ allow_health_checks: z.ZodBoolean;
494
+ }, "strict", z.ZodTypeAny, {
495
+ until: string | null;
496
+ allow_health_checks: boolean;
497
+ }, {
498
+ until: string | null;
499
+ allow_health_checks: boolean;
500
+ }>>;
501
+ discard_before: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
502
+ ordinary: z.ZodNullable<z.ZodString>;
503
+ health: z.ZodNullable<z.ZodString>;
504
+ }, "strict", z.ZodTypeAny, {
505
+ ordinary: string | null;
506
+ health: string | null;
507
+ }, {
508
+ ordinary: string | null;
509
+ health: string | null;
510
+ }>>;
511
+ }, "strict", z.ZodTypeAny, {
512
+ daily: {
513
+ time: string;
514
+ timezone: string;
515
+ } | null;
516
+ channels: {
517
+ email: "off" | "inherit" | "immediate" | "daily";
518
+ slack: "off" | "inherit" | "immediate";
519
+ discord: "off" | "inherit" | "immediate";
520
+ webhook: "off" | "inherit" | "immediate";
521
+ };
522
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
523
+ until: string | null;
524
+ allow_health_checks: boolean;
525
+ }>>;
526
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
527
+ ordinary: string | null;
528
+ health: string | null;
529
+ }>>;
530
+ }, {
531
+ daily: {
532
+ time: string;
533
+ timezone: string;
534
+ } | null;
535
+ channels: {
536
+ email: "off" | "inherit" | "immediate" | "daily";
537
+ slack: "off" | "inherit" | "immediate";
538
+ discord: "off" | "inherit" | "immediate";
539
+ webhook: "off" | "inherit" | "immediate";
540
+ };
541
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
542
+ until: string | null;
543
+ allow_health_checks: boolean;
544
+ }>>;
545
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
546
+ ordinary: string | null;
547
+ health: string | null;
548
+ }>>;
549
+ }>;
550
+ shared: z.ZodOptional<z.ZodObject<{
551
+ account: z.ZodObject<{
552
+ channels: z.ZodObject<{
553
+ email: z.ZodEnum<["inherit", "immediate", "daily", "off"]>;
554
+ slack: z.ZodEnum<["inherit", "immediate", "off"]>;
555
+ discord: z.ZodEnum<["inherit", "immediate", "off"]>;
556
+ webhook: z.ZodEnum<["inherit", "immediate", "off"]>;
557
+ }, "strict", z.ZodTypeAny, {
558
+ email: "off" | "inherit" | "immediate" | "daily";
559
+ slack: "off" | "inherit" | "immediate";
560
+ discord: "off" | "inherit" | "immediate";
561
+ webhook: "off" | "inherit" | "immediate";
562
+ }, {
563
+ email: "off" | "inherit" | "immediate" | "daily";
564
+ slack: "off" | "inherit" | "immediate";
565
+ discord: "off" | "inherit" | "immediate";
566
+ webhook: "off" | "inherit" | "immediate";
567
+ }>;
568
+ daily: z.ZodNullable<z.ZodObject<{
569
+ time: z.ZodString;
570
+ timezone: z.ZodEffects<z.ZodString, string, string>;
571
+ }, "strict", z.ZodTypeAny, {
572
+ time: string;
573
+ timezone: string;
574
+ }, {
575
+ time: string;
576
+ timezone: string;
577
+ }>>;
578
+ pauses: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
579
+ until: z.ZodNullable<z.ZodString>;
580
+ allow_health_checks: z.ZodBoolean;
581
+ }, "strict", z.ZodTypeAny, {
582
+ until: string | null;
583
+ allow_health_checks: boolean;
584
+ }, {
585
+ until: string | null;
586
+ allow_health_checks: boolean;
587
+ }>>;
588
+ discard_before: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
589
+ ordinary: z.ZodNullable<z.ZodString>;
590
+ health: z.ZodNullable<z.ZodString>;
591
+ }, "strict", z.ZodTypeAny, {
592
+ ordinary: string | null;
593
+ health: string | null;
594
+ }, {
595
+ ordinary: string | null;
596
+ health: string | null;
597
+ }>>;
598
+ }, "strict", z.ZodTypeAny, {
599
+ daily: {
600
+ time: string;
601
+ timezone: string;
602
+ } | null;
603
+ channels: {
604
+ email: "off" | "inherit" | "immediate" | "daily";
605
+ slack: "off" | "inherit" | "immediate";
606
+ discord: "off" | "inherit" | "immediate";
607
+ webhook: "off" | "inherit" | "immediate";
608
+ };
609
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
610
+ until: string | null;
611
+ allow_health_checks: boolean;
612
+ }>>;
613
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
614
+ ordinary: string | null;
615
+ health: string | null;
616
+ }>>;
617
+ }, {
618
+ daily: {
619
+ time: string;
620
+ timezone: string;
621
+ } | null;
622
+ channels: {
623
+ email: "off" | "inherit" | "immediate" | "daily";
624
+ slack: "off" | "inherit" | "immediate";
625
+ discord: "off" | "inherit" | "immediate";
626
+ webhook: "off" | "inherit" | "immediate";
627
+ };
628
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
629
+ until: string | null;
630
+ allow_health_checks: boolean;
631
+ }>>;
632
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
633
+ ordinary: string | null;
634
+ health: string | null;
635
+ }>>;
636
+ }>;
637
+ project: z.ZodObject<{
638
+ channels: z.ZodObject<{
639
+ email: z.ZodEnum<["inherit", "immediate", "daily", "off"]>;
640
+ slack: z.ZodEnum<["inherit", "immediate", "off"]>;
641
+ discord: z.ZodEnum<["inherit", "immediate", "off"]>;
642
+ webhook: z.ZodEnum<["inherit", "immediate", "off"]>;
643
+ }, "strict", z.ZodTypeAny, {
644
+ email: "off" | "inherit" | "immediate" | "daily";
645
+ slack: "off" | "inherit" | "immediate";
646
+ discord: "off" | "inherit" | "immediate";
647
+ webhook: "off" | "inherit" | "immediate";
648
+ }, {
649
+ email: "off" | "inherit" | "immediate" | "daily";
650
+ slack: "off" | "inherit" | "immediate";
651
+ discord: "off" | "inherit" | "immediate";
652
+ webhook: "off" | "inherit" | "immediate";
653
+ }>;
654
+ daily: z.ZodNullable<z.ZodObject<{
655
+ time: z.ZodString;
656
+ timezone: z.ZodEffects<z.ZodString, string, string>;
657
+ }, "strict", z.ZodTypeAny, {
658
+ time: string;
659
+ timezone: string;
660
+ }, {
661
+ time: string;
662
+ timezone: string;
663
+ }>>;
664
+ pauses: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
665
+ until: z.ZodNullable<z.ZodString>;
666
+ allow_health_checks: z.ZodBoolean;
667
+ }, "strict", z.ZodTypeAny, {
668
+ until: string | null;
669
+ allow_health_checks: boolean;
670
+ }, {
671
+ until: string | null;
672
+ allow_health_checks: boolean;
673
+ }>>;
674
+ discard_before: z.ZodRecord<z.ZodEnum<["email", "slack", "discord", "webhook"]>, z.ZodObject<{
675
+ ordinary: z.ZodNullable<z.ZodString>;
676
+ health: z.ZodNullable<z.ZodString>;
677
+ }, "strict", z.ZodTypeAny, {
678
+ ordinary: string | null;
679
+ health: string | null;
680
+ }, {
681
+ ordinary: string | null;
682
+ health: string | null;
683
+ }>>;
684
+ }, "strict", z.ZodTypeAny, {
685
+ daily: {
686
+ time: string;
687
+ timezone: string;
688
+ } | null;
689
+ channels: {
690
+ email: "off" | "inherit" | "immediate" | "daily";
691
+ slack: "off" | "inherit" | "immediate";
692
+ discord: "off" | "inherit" | "immediate";
693
+ webhook: "off" | "inherit" | "immediate";
694
+ };
695
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
696
+ until: string | null;
697
+ allow_health_checks: boolean;
698
+ }>>;
699
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
700
+ ordinary: string | null;
701
+ health: string | null;
702
+ }>>;
703
+ }, {
704
+ daily: {
705
+ time: string;
706
+ timezone: string;
707
+ } | null;
708
+ channels: {
709
+ email: "off" | "inherit" | "immediate" | "daily";
710
+ slack: "off" | "inherit" | "immediate";
711
+ discord: "off" | "inherit" | "immediate";
712
+ webhook: "off" | "inherit" | "immediate";
713
+ };
714
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
715
+ until: string | null;
716
+ allow_health_checks: boolean;
717
+ }>>;
718
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
719
+ ordinary: string | null;
720
+ health: string | null;
721
+ }>>;
722
+ }>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ project: {
725
+ daily: {
726
+ time: string;
727
+ timezone: string;
728
+ } | null;
729
+ channels: {
730
+ email: "off" | "inherit" | "immediate" | "daily";
731
+ slack: "off" | "inherit" | "immediate";
732
+ discord: "off" | "inherit" | "immediate";
733
+ webhook: "off" | "inherit" | "immediate";
734
+ };
735
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
736
+ until: string | null;
737
+ allow_health_checks: boolean;
738
+ }>>;
739
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
740
+ ordinary: string | null;
741
+ health: string | null;
742
+ }>>;
743
+ };
744
+ account: {
745
+ daily: {
746
+ time: string;
747
+ timezone: string;
748
+ } | null;
749
+ channels: {
750
+ email: "off" | "inherit" | "immediate" | "daily";
751
+ slack: "off" | "inherit" | "immediate";
752
+ discord: "off" | "inherit" | "immediate";
753
+ webhook: "off" | "inherit" | "immediate";
754
+ };
755
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
756
+ until: string | null;
757
+ allow_health_checks: boolean;
758
+ }>>;
759
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
760
+ ordinary: string | null;
761
+ health: string | null;
762
+ }>>;
763
+ };
764
+ }, {
765
+ project: {
766
+ daily: {
767
+ time: string;
768
+ timezone: string;
769
+ } | null;
770
+ channels: {
771
+ email: "off" | "inherit" | "immediate" | "daily";
772
+ slack: "off" | "inherit" | "immediate";
773
+ discord: "off" | "inherit" | "immediate";
774
+ webhook: "off" | "inherit" | "immediate";
775
+ };
776
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
777
+ until: string | null;
778
+ allow_health_checks: boolean;
779
+ }>>;
780
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
781
+ ordinary: string | null;
782
+ health: string | null;
783
+ }>>;
784
+ };
785
+ account: {
786
+ daily: {
787
+ time: string;
788
+ timezone: string;
789
+ } | null;
790
+ channels: {
791
+ email: "off" | "inherit" | "immediate" | "daily";
792
+ slack: "off" | "inherit" | "immediate";
793
+ discord: "off" | "inherit" | "immediate";
794
+ webhook: "off" | "inherit" | "immediate";
795
+ };
796
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
797
+ until: string | null;
798
+ allow_health_checks: boolean;
799
+ }>>;
800
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
801
+ ordinary: string | null;
802
+ health: string | null;
803
+ }>>;
804
+ };
805
+ }>>;
806
+ effective: z.ZodObject<{
807
+ email: z.ZodObject<{
808
+ mode: z.ZodEnum<["immediate", "daily", "off"]>;
809
+ reason: z.ZodEnum<["account_default", "project_override", "account_paused", "project_paused", "suppressed_history", "health_priority"]>;
810
+ paused_until: z.ZodNullable<z.ZodString>;
811
+ daily: z.ZodObject<{
812
+ time: z.ZodString;
813
+ timezone: z.ZodEffects<z.ZodString, string, string>;
814
+ }, "strict", z.ZodTypeAny, {
815
+ time: string;
816
+ timezone: string;
817
+ }, {
818
+ time: string;
819
+ timezone: string;
820
+ }>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ mode: "off" | "immediate" | "daily";
823
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
824
+ daily: {
825
+ time: string;
826
+ timezone: string;
827
+ };
828
+ paused_until: string | null;
829
+ }, {
830
+ mode: "off" | "immediate" | "daily";
831
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
832
+ daily: {
833
+ time: string;
834
+ timezone: string;
835
+ };
836
+ paused_until: string | null;
837
+ }>;
838
+ slack: z.ZodObject<{
839
+ mode: z.ZodEnum<["immediate", "daily", "off"]>;
840
+ reason: z.ZodEnum<["account_default", "project_override", "account_paused", "project_paused", "suppressed_history", "health_priority"]>;
841
+ paused_until: z.ZodNullable<z.ZodString>;
842
+ daily: z.ZodObject<{
843
+ time: z.ZodString;
844
+ timezone: z.ZodEffects<z.ZodString, string, string>;
845
+ }, "strict", z.ZodTypeAny, {
846
+ time: string;
847
+ timezone: string;
848
+ }, {
849
+ time: string;
850
+ timezone: string;
851
+ }>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ mode: "off" | "immediate" | "daily";
854
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
855
+ daily: {
856
+ time: string;
857
+ timezone: string;
858
+ };
859
+ paused_until: string | null;
860
+ }, {
861
+ mode: "off" | "immediate" | "daily";
862
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
863
+ daily: {
864
+ time: string;
865
+ timezone: string;
866
+ };
867
+ paused_until: string | null;
868
+ }>;
869
+ discord: z.ZodObject<{
870
+ mode: z.ZodEnum<["immediate", "daily", "off"]>;
871
+ reason: z.ZodEnum<["account_default", "project_override", "account_paused", "project_paused", "suppressed_history", "health_priority"]>;
872
+ paused_until: z.ZodNullable<z.ZodString>;
873
+ daily: z.ZodObject<{
874
+ time: z.ZodString;
875
+ timezone: z.ZodEffects<z.ZodString, string, string>;
876
+ }, "strict", z.ZodTypeAny, {
877
+ time: string;
878
+ timezone: string;
879
+ }, {
880
+ time: string;
881
+ timezone: string;
882
+ }>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ mode: "off" | "immediate" | "daily";
885
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
886
+ daily: {
887
+ time: string;
888
+ timezone: string;
889
+ };
890
+ paused_until: string | null;
891
+ }, {
892
+ mode: "off" | "immediate" | "daily";
893
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
894
+ daily: {
895
+ time: string;
896
+ timezone: string;
897
+ };
898
+ paused_until: string | null;
899
+ }>;
900
+ webhook: z.ZodObject<{
901
+ mode: z.ZodEnum<["immediate", "daily", "off"]>;
902
+ reason: z.ZodEnum<["account_default", "project_override", "account_paused", "project_paused", "suppressed_history", "health_priority"]>;
903
+ paused_until: z.ZodNullable<z.ZodString>;
904
+ daily: z.ZodObject<{
905
+ time: z.ZodString;
906
+ timezone: z.ZodEffects<z.ZodString, string, string>;
907
+ }, "strict", z.ZodTypeAny, {
908
+ time: string;
909
+ timezone: string;
910
+ }, {
911
+ time: string;
912
+ timezone: string;
913
+ }>;
914
+ }, "strip", z.ZodTypeAny, {
915
+ mode: "off" | "immediate" | "daily";
916
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
917
+ daily: {
918
+ time: string;
919
+ timezone: string;
920
+ };
921
+ paused_until: string | null;
922
+ }, {
923
+ mode: "off" | "immediate" | "daily";
924
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
925
+ daily: {
926
+ time: string;
927
+ timezone: string;
928
+ };
929
+ paused_until: string | null;
930
+ }>;
931
+ }, "strip", z.ZodTypeAny, {
932
+ email: {
933
+ mode: "off" | "immediate" | "daily";
934
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
935
+ daily: {
936
+ time: string;
937
+ timezone: string;
938
+ };
939
+ paused_until: string | null;
940
+ };
941
+ slack: {
942
+ mode: "off" | "immediate" | "daily";
943
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
944
+ daily: {
945
+ time: string;
946
+ timezone: string;
947
+ };
948
+ paused_until: string | null;
949
+ };
950
+ discord: {
951
+ mode: "off" | "immediate" | "daily";
952
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
953
+ daily: {
954
+ time: string;
955
+ timezone: string;
956
+ };
957
+ paused_until: string | null;
958
+ };
959
+ webhook: {
960
+ mode: "off" | "immediate" | "daily";
961
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
962
+ daily: {
963
+ time: string;
964
+ timezone: string;
965
+ };
966
+ paused_until: string | null;
967
+ };
968
+ }, {
969
+ email: {
970
+ mode: "off" | "immediate" | "daily";
971
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
972
+ daily: {
973
+ time: string;
974
+ timezone: string;
975
+ };
976
+ paused_until: string | null;
977
+ };
978
+ slack: {
979
+ mode: "off" | "immediate" | "daily";
980
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
981
+ daily: {
982
+ time: string;
983
+ timezone: string;
984
+ };
985
+ paused_until: string | null;
986
+ };
987
+ discord: {
988
+ mode: "off" | "immediate" | "daily";
989
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
990
+ daily: {
991
+ time: string;
992
+ timezone: string;
993
+ };
994
+ paused_until: string | null;
995
+ };
996
+ webhook: {
997
+ mode: "off" | "immediate" | "daily";
998
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
999
+ daily: {
1000
+ time: string;
1001
+ timezone: string;
1002
+ };
1003
+ paused_until: string | null;
1004
+ };
1005
+ }>;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ project_id: string | null;
1008
+ settings: {
1009
+ daily: {
1010
+ time: string;
1011
+ timezone: string;
1012
+ } | null;
1013
+ channels: {
1014
+ email: "off" | "inherit" | "immediate" | "daily";
1015
+ slack: "off" | "inherit" | "immediate";
1016
+ discord: "off" | "inherit" | "immediate";
1017
+ webhook: "off" | "inherit" | "immediate";
1018
+ };
1019
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1020
+ until: string | null;
1021
+ allow_health_checks: boolean;
1022
+ }>>;
1023
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1024
+ ordinary: string | null;
1025
+ health: string | null;
1026
+ }>>;
1027
+ };
1028
+ account: {
1029
+ daily: {
1030
+ time: string;
1031
+ timezone: string;
1032
+ } | null;
1033
+ channels: {
1034
+ email: "off" | "inherit" | "immediate" | "daily";
1035
+ slack: "off" | "inherit" | "immediate";
1036
+ discord: "off" | "inherit" | "immediate";
1037
+ webhook: "off" | "inherit" | "immediate";
1038
+ };
1039
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1040
+ until: string | null;
1041
+ allow_health_checks: boolean;
1042
+ }>>;
1043
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1044
+ ordinary: string | null;
1045
+ health: string | null;
1046
+ }>>;
1047
+ };
1048
+ audience: "personal" | "shared";
1049
+ can_manage: boolean;
1050
+ effective: {
1051
+ email: {
1052
+ mode: "off" | "immediate" | "daily";
1053
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
1054
+ daily: {
1055
+ time: string;
1056
+ timezone: string;
1057
+ };
1058
+ paused_until: string | null;
1059
+ };
1060
+ slack: {
1061
+ mode: "off" | "immediate" | "daily";
1062
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
1063
+ daily: {
1064
+ time: string;
1065
+ timezone: string;
1066
+ };
1067
+ paused_until: string | null;
1068
+ };
1069
+ discord: {
1070
+ mode: "off" | "immediate" | "daily";
1071
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
1072
+ daily: {
1073
+ time: string;
1074
+ timezone: string;
1075
+ };
1076
+ paused_until: string | null;
1077
+ };
1078
+ webhook: {
1079
+ mode: "off" | "immediate" | "daily";
1080
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
1081
+ daily: {
1082
+ time: string;
1083
+ timezone: string;
1084
+ };
1085
+ paused_until: string | null;
1086
+ };
1087
+ };
1088
+ shared?: {
1089
+ project: {
1090
+ daily: {
1091
+ time: string;
1092
+ timezone: string;
1093
+ } | null;
1094
+ channels: {
1095
+ email: "off" | "inherit" | "immediate" | "daily";
1096
+ slack: "off" | "inherit" | "immediate";
1097
+ discord: "off" | "inherit" | "immediate";
1098
+ webhook: "off" | "inherit" | "immediate";
1099
+ };
1100
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1101
+ until: string | null;
1102
+ allow_health_checks: boolean;
1103
+ }>>;
1104
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1105
+ ordinary: string | null;
1106
+ health: string | null;
1107
+ }>>;
1108
+ };
1109
+ account: {
1110
+ daily: {
1111
+ time: string;
1112
+ timezone: string;
1113
+ } | null;
1114
+ channels: {
1115
+ email: "off" | "inherit" | "immediate" | "daily";
1116
+ slack: "off" | "inherit" | "immediate";
1117
+ discord: "off" | "inherit" | "immediate";
1118
+ webhook: "off" | "inherit" | "immediate";
1119
+ };
1120
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1121
+ until: string | null;
1122
+ allow_health_checks: boolean;
1123
+ }>>;
1124
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1125
+ ordinary: string | null;
1126
+ health: string | null;
1127
+ }>>;
1128
+ };
1129
+ } | undefined;
1130
+ }, {
1131
+ project_id: string | null;
1132
+ settings: {
1133
+ daily: {
1134
+ time: string;
1135
+ timezone: string;
1136
+ } | null;
1137
+ channels: {
1138
+ email: "off" | "inherit" | "immediate" | "daily";
1139
+ slack: "off" | "inherit" | "immediate";
1140
+ discord: "off" | "inherit" | "immediate";
1141
+ webhook: "off" | "inherit" | "immediate";
1142
+ };
1143
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1144
+ until: string | null;
1145
+ allow_health_checks: boolean;
1146
+ }>>;
1147
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1148
+ ordinary: string | null;
1149
+ health: string | null;
1150
+ }>>;
1151
+ };
1152
+ account: {
1153
+ daily: {
1154
+ time: string;
1155
+ timezone: string;
1156
+ } | null;
1157
+ channels: {
1158
+ email: "off" | "inherit" | "immediate" | "daily";
1159
+ slack: "off" | "inherit" | "immediate";
1160
+ discord: "off" | "inherit" | "immediate";
1161
+ webhook: "off" | "inherit" | "immediate";
1162
+ };
1163
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1164
+ until: string | null;
1165
+ allow_health_checks: boolean;
1166
+ }>>;
1167
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1168
+ ordinary: string | null;
1169
+ health: string | null;
1170
+ }>>;
1171
+ };
1172
+ audience: "personal" | "shared";
1173
+ can_manage: boolean;
1174
+ effective: {
1175
+ email: {
1176
+ mode: "off" | "immediate" | "daily";
1177
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
1178
+ daily: {
1179
+ time: string;
1180
+ timezone: string;
1181
+ };
1182
+ paused_until: string | null;
1183
+ };
1184
+ slack: {
1185
+ mode: "off" | "immediate" | "daily";
1186
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
1187
+ daily: {
1188
+ time: string;
1189
+ timezone: string;
1190
+ };
1191
+ paused_until: string | null;
1192
+ };
1193
+ discord: {
1194
+ mode: "off" | "immediate" | "daily";
1195
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
1196
+ daily: {
1197
+ time: string;
1198
+ timezone: string;
1199
+ };
1200
+ paused_until: string | null;
1201
+ };
1202
+ webhook: {
1203
+ mode: "off" | "immediate" | "daily";
1204
+ reason: "account_default" | "project_override" | "account_paused" | "project_paused" | "suppressed_history" | "health_priority";
1205
+ daily: {
1206
+ time: string;
1207
+ timezone: string;
1208
+ };
1209
+ paused_until: string | null;
1210
+ };
1211
+ };
1212
+ shared?: {
1213
+ project: {
1214
+ daily: {
1215
+ time: string;
1216
+ timezone: string;
1217
+ } | null;
1218
+ channels: {
1219
+ email: "off" | "inherit" | "immediate" | "daily";
1220
+ slack: "off" | "inherit" | "immediate";
1221
+ discord: "off" | "inherit" | "immediate";
1222
+ webhook: "off" | "inherit" | "immediate";
1223
+ };
1224
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1225
+ until: string | null;
1226
+ allow_health_checks: boolean;
1227
+ }>>;
1228
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1229
+ ordinary: string | null;
1230
+ health: string | null;
1231
+ }>>;
1232
+ };
1233
+ account: {
1234
+ daily: {
1235
+ time: string;
1236
+ timezone: string;
1237
+ } | null;
1238
+ channels: {
1239
+ email: "off" | "inherit" | "immediate" | "daily";
1240
+ slack: "off" | "inherit" | "immediate";
1241
+ discord: "off" | "inherit" | "immediate";
1242
+ webhook: "off" | "inherit" | "immediate";
1243
+ };
1244
+ pauses: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1245
+ until: string | null;
1246
+ allow_health_checks: boolean;
1247
+ }>>;
1248
+ discard_before: Partial<Record<"email" | "slack" | "discord" | "webhook", {
1249
+ ordinary: string | null;
1250
+ health: string | null;
1251
+ }>>;
1252
+ };
1253
+ } | undefined;
1254
+ }>;
1255
+ export type NotificationSettingsResponse = z.infer<typeof NotificationSettingsResponseSchema>;
1256
+ /** Shared restrictions and the recipient's own preferences both apply. */
1257
+ export declare function combineNotificationPolicies(team: EffectiveNotification, personal: EffectiveNotification): EffectiveNotification;
1258
+ export declare function resolveSettingsNotification(data: Pick<NotificationSettingsResponse, "account" | "settings" | "project_id" | "shared">, channel: NotificationChannel, now: Date): EffectiveNotification;
1259
+ //# sourceMappingURL=notification-preferences.d.ts.map