@debugbundle/shared-types 2.5.0 → 3.0.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 (116) hide show
  1. package/README.md +17 -0
  2. package/dist/alert-notification-policy.d.ts +22 -40
  3. package/dist/alert-notification-policy.d.ts.map +1 -1
  4. package/dist/alert-notification-policy.js +1 -1
  5. package/dist/analytics-flows.d.ts +53 -588
  6. package/dist/analytics-flows.d.ts.map +1 -1
  7. package/dist/analytics-flows.js +4 -6
  8. package/dist/analytics-flows.js.map +1 -1
  9. package/dist/analytics-journey-samples.d.ts +70 -857
  10. package/dist/analytics-journey-samples.d.ts.map +1 -1
  11. package/dist/analytics-journey-samples.js +4 -4
  12. package/dist/analytics-product.d.ts +222 -853
  13. package/dist/analytics-product.d.ts.map +1 -1
  14. package/dist/analytics-product.js +9 -9
  15. package/dist/analytics-query.d.ts +13 -48
  16. package/dist/analytics-query.d.ts.map +1 -1
  17. package/dist/analytics-query.js +1 -1
  18. package/dist/analytics-saved-funnels.d.ts +21 -258
  19. package/dist/analytics-saved-funnels.d.ts.map +1 -1
  20. package/dist/analytics-saved-funnels.js +1 -1
  21. package/dist/analytics.d.ts +342 -2181
  22. package/dist/analytics.d.ts.map +1 -1
  23. package/dist/analytics.js +9 -9
  24. package/dist/browser-resource-context.d.ts +35 -129
  25. package/dist/browser-resource-context.d.ts.map +1 -1
  26. package/dist/browser-resource-routes.d.ts +6 -27
  27. package/dist/browser-resource-routes.d.ts.map +1 -1
  28. package/dist/bundle-evidence.d.ts +101 -0
  29. package/dist/bundle-evidence.d.ts.map +1 -0
  30. package/dist/bundle-evidence.js +69 -0
  31. package/dist/bundle-evidence.js.map +1 -0
  32. package/dist/capture-policy.d.ts +311 -319
  33. package/dist/capture-policy.d.ts.map +1 -1
  34. package/dist/capture-policy.js +70 -29
  35. package/dist/capture-policy.js.map +1 -1
  36. package/dist/capture-rule-evaluation.d.ts +53 -154
  37. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  38. package/dist/capture-rule-evaluation.js +1 -1
  39. package/dist/capture-rule-schemas.d.ts +788 -3226
  40. package/dist/capture-rule-schemas.d.ts.map +1 -1
  41. package/dist/capture-rule-schemas.js +37 -34
  42. package/dist/capture-rule-schemas.js.map +1 -1
  43. package/dist/capture-rule-suggestions.d.ts +195 -1189
  44. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  45. package/dist/diagnostic-capture-budget.d.ts +22 -0
  46. package/dist/diagnostic-capture-budget.d.ts.map +1 -0
  47. package/dist/diagnostic-capture-budget.js +195 -0
  48. package/dist/diagnostic-capture-budget.js.map +1 -0
  49. package/dist/diagnostic-context.d.ts +163 -0
  50. package/dist/diagnostic-context.d.ts.map +1 -0
  51. package/dist/diagnostic-context.js +117 -0
  52. package/dist/diagnostic-context.js.map +1 -0
  53. package/dist/event-envelope.d.ts +524 -4326
  54. package/dist/event-envelope.d.ts.map +1 -1
  55. package/dist/event-envelope.js +63 -8
  56. package/dist/event-envelope.js.map +1 -1
  57. package/dist/evidence-bounds.d.ts +9 -0
  58. package/dist/evidence-bounds.d.ts.map +1 -0
  59. package/dist/evidence-bounds.js +51 -0
  60. package/dist/evidence-bounds.js.map +1 -0
  61. package/dist/evidence-capabilities.d.ts +15 -0
  62. package/dist/evidence-capabilities.d.ts.map +1 -0
  63. package/dist/evidence-capabilities.js +29 -0
  64. package/dist/evidence-capabilities.js.map +1 -0
  65. package/dist/evidence-emission.d.ts +18 -0
  66. package/dist/evidence-emission.d.ts.map +1 -0
  67. package/dist/evidence-emission.js +83 -0
  68. package/dist/evidence-emission.js.map +1 -0
  69. package/dist/evidence-interpretation.d.ts +68 -0
  70. package/dist/evidence-interpretation.d.ts.map +1 -0
  71. package/dist/evidence-interpretation.js +177 -0
  72. package/dist/evidence-interpretation.js.map +1 -0
  73. package/dist/exception-evidence.d.ts +96 -0
  74. package/dist/exception-evidence.d.ts.map +1 -0
  75. package/dist/exception-evidence.js +145 -0
  76. package/dist/exception-evidence.js.map +1 -0
  77. package/dist/first-purchase-eligibility.d.ts +9 -0
  78. package/dist/first-purchase-eligibility.d.ts.map +1 -0
  79. package/dist/first-purchase-eligibility.js +16 -0
  80. package/dist/first-purchase-eligibility.js.map +1 -0
  81. package/dist/improvement-settings.d.ts +29 -48
  82. package/dist/improvement-settings.d.ts.map +1 -1
  83. package/dist/index.d.ts +323 -1834
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +22 -3
  86. package/dist/index.js.map +1 -1
  87. package/dist/ingestion-wire.d.ts +9 -0
  88. package/dist/ingestion-wire.d.ts.map +1 -0
  89. package/dist/ingestion-wire.js +56 -0
  90. package/dist/ingestion-wire.js.map +1 -0
  91. package/dist/json-schema.d.ts +4 -0
  92. package/dist/json-schema.d.ts.map +1 -0
  93. package/dist/json-schema.js +49 -0
  94. package/dist/json-schema.js.map +1 -0
  95. package/dist/notification-preferences.d.ts +505 -0
  96. package/dist/notification-preferences.d.ts.map +1 -0
  97. package/dist/notification-preferences.js +206 -0
  98. package/dist/notification-preferences.js.map +1 -0
  99. package/dist/notification-schedule.d.ts +4 -0
  100. package/dist/notification-schedule.d.ts.map +1 -0
  101. package/dist/notification-schedule.js +36 -0
  102. package/dist/notification-schedule.js.map +1 -0
  103. package/dist/project-color-tags.d.ts +20 -1
  104. package/dist/project-color-tags.d.ts.map +1 -1
  105. package/dist/public-status.d.ts +122 -568
  106. package/dist/public-status.d.ts.map +1 -1
  107. package/dist/public-status.js +8 -8
  108. package/dist/stack-frames.d.ts +11 -0
  109. package/dist/stack-frames.d.ts.map +1 -0
  110. package/dist/stack-frames.js +107 -0
  111. package/dist/stack-frames.js.map +1 -0
  112. package/dist/weekly-notification-groups.d.ts +8 -0
  113. package/dist/weekly-notification-groups.d.ts.map +1 -0
  114. package/dist/weekly-notification-groups.js +23 -0
  115. package/dist/weekly-notification-groups.js.map +1 -0
  116. package/package.json +2 -2
@@ -0,0 +1,505 @@
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<{
5
+ email: "email";
6
+ slack: "slack";
7
+ discord: "discord";
8
+ webhook: "webhook";
9
+ }>;
10
+ export type NotificationChannel = z.infer<typeof NotificationChannelSchema>;
11
+ export declare const NotificationChannelsSchema: z.ZodObject<{
12
+ email: z.ZodEnum<{
13
+ off: "off";
14
+ inherit: "inherit";
15
+ immediate: "immediate";
16
+ daily: "daily";
17
+ }>;
18
+ slack: z.ZodEnum<{
19
+ off: "off";
20
+ inherit: "inherit";
21
+ immediate: "immediate";
22
+ }>;
23
+ discord: z.ZodEnum<{
24
+ off: "off";
25
+ inherit: "inherit";
26
+ immediate: "immediate";
27
+ }>;
28
+ webhook: z.ZodEnum<{
29
+ off: "off";
30
+ inherit: "inherit";
31
+ immediate: "immediate";
32
+ }>;
33
+ }, z.core.$strict>;
34
+ export declare const NotificationScheduleSchema: z.ZodObject<{
35
+ time: z.ZodString;
36
+ timezone: z.ZodString;
37
+ }, z.core.$strict>;
38
+ export type NotificationSchedule = z.infer<typeof NotificationScheduleSchema>;
39
+ export declare const NotificationPreferencesSchema: z.ZodObject<{
40
+ channels: z.ZodObject<{
41
+ email: z.ZodEnum<{
42
+ off: "off";
43
+ inherit: "inherit";
44
+ immediate: "immediate";
45
+ daily: "daily";
46
+ }>;
47
+ slack: z.ZodEnum<{
48
+ off: "off";
49
+ inherit: "inherit";
50
+ immediate: "immediate";
51
+ }>;
52
+ discord: z.ZodEnum<{
53
+ off: "off";
54
+ inherit: "inherit";
55
+ immediate: "immediate";
56
+ }>;
57
+ webhook: z.ZodEnum<{
58
+ off: "off";
59
+ inherit: "inherit";
60
+ immediate: "immediate";
61
+ }>;
62
+ }, z.core.$strict>;
63
+ daily: z.ZodNullable<z.ZodObject<{
64
+ time: z.ZodString;
65
+ timezone: z.ZodString;
66
+ }, z.core.$strict>>;
67
+ pauses: z.ZodRecord<z.ZodEnum<{
68
+ email: "email";
69
+ slack: "slack";
70
+ discord: "discord";
71
+ webhook: "webhook";
72
+ }> & z.core.$partial, z.ZodObject<{
73
+ until: z.ZodNullable<z.ZodString>;
74
+ allow_health_checks: z.ZodBoolean;
75
+ }, z.core.$strict>>;
76
+ discard_before: z.ZodRecord<z.ZodEnum<{
77
+ email: "email";
78
+ slack: "slack";
79
+ discord: "discord";
80
+ webhook: "webhook";
81
+ }> & z.core.$partial, z.ZodObject<{
82
+ ordinary: z.ZodNullable<z.ZodString>;
83
+ health: z.ZodNullable<z.ZodString>;
84
+ }, z.core.$strict>>;
85
+ }, z.core.$strict>;
86
+ export type NotificationPreferences = z.infer<typeof NotificationPreferencesSchema>;
87
+ export declare const NotificationUpdateSchema: z.ZodObject<{
88
+ channels: z.ZodOptional<z.ZodObject<{
89
+ email: z.ZodOptional<z.ZodEnum<{
90
+ off: "off";
91
+ inherit: "inherit";
92
+ immediate: "immediate";
93
+ daily: "daily";
94
+ }>>;
95
+ slack: z.ZodOptional<z.ZodEnum<{
96
+ off: "off";
97
+ inherit: "inherit";
98
+ immediate: "immediate";
99
+ }>>;
100
+ discord: z.ZodOptional<z.ZodEnum<{
101
+ off: "off";
102
+ inherit: "inherit";
103
+ immediate: "immediate";
104
+ }>>;
105
+ webhook: z.ZodOptional<z.ZodEnum<{
106
+ off: "off";
107
+ inherit: "inherit";
108
+ immediate: "immediate";
109
+ }>>;
110
+ }, z.core.$strict>>;
111
+ daily: z.ZodOptional<z.ZodNullable<z.ZodObject<{
112
+ time: z.ZodString;
113
+ timezone: z.ZodString;
114
+ }, z.core.$strict>>>;
115
+ }, z.core.$strict>;
116
+ export declare const NotificationResumeSchema: z.ZodObject<{
117
+ channels: z.ZodArray<z.ZodEnum<{
118
+ email: "email";
119
+ slack: "slack";
120
+ discord: "discord";
121
+ webhook: "webhook";
122
+ }>>;
123
+ }, z.core.$strict>;
124
+ export declare const NotificationPauseSchema: z.ZodObject<{
125
+ channels: z.ZodArray<z.ZodEnum<{
126
+ email: "email";
127
+ slack: "slack";
128
+ discord: "discord";
129
+ webhook: "webhook";
130
+ }>>;
131
+ until: z.ZodNullable<z.ZodString>;
132
+ allow_health_checks: z.ZodDefault<z.ZodBoolean>;
133
+ }, z.core.$strict>;
134
+ export declare const NotificationChangeSchema: z.ZodUnion<readonly [z.ZodObject<{
135
+ channels: z.ZodOptional<z.ZodObject<{
136
+ email: z.ZodOptional<z.ZodEnum<{
137
+ off: "off";
138
+ inherit: "inherit";
139
+ immediate: "immediate";
140
+ daily: "daily";
141
+ }>>;
142
+ slack: z.ZodOptional<z.ZodEnum<{
143
+ off: "off";
144
+ inherit: "inherit";
145
+ immediate: "immediate";
146
+ }>>;
147
+ discord: z.ZodOptional<z.ZodEnum<{
148
+ off: "off";
149
+ inherit: "inherit";
150
+ immediate: "immediate";
151
+ }>>;
152
+ webhook: z.ZodOptional<z.ZodEnum<{
153
+ off: "off";
154
+ inherit: "inherit";
155
+ immediate: "immediate";
156
+ }>>;
157
+ }, z.core.$strict>>;
158
+ daily: z.ZodOptional<z.ZodNullable<z.ZodObject<{
159
+ time: z.ZodString;
160
+ timezone: z.ZodString;
161
+ }, z.core.$strict>>>;
162
+ }, z.core.$strict>, z.ZodObject<{
163
+ pause: z.ZodObject<{
164
+ channels: z.ZodArray<z.ZodEnum<{
165
+ email: "email";
166
+ slack: "slack";
167
+ discord: "discord";
168
+ webhook: "webhook";
169
+ }>>;
170
+ until: z.ZodNullable<z.ZodString>;
171
+ allow_health_checks: z.ZodDefault<z.ZodBoolean>;
172
+ }, z.core.$strict>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ resume: z.ZodObject<{
175
+ channels: z.ZodArray<z.ZodEnum<{
176
+ email: "email";
177
+ slack: "slack";
178
+ discord: "discord";
179
+ webhook: "webhook";
180
+ }>>;
181
+ }, z.core.$strict>;
182
+ }, z.core.$strict>]>;
183
+ export type NotificationChange = z.infer<typeof NotificationChangeSchema>;
184
+ export type NotificationAudience = "personal" | "shared";
185
+ export declare const NotificationAudienceSchema: z.ZodEnum<{
186
+ personal: "personal";
187
+ shared: "shared";
188
+ }>;
189
+ export declare function defaultNotificationPreferences(project?: boolean): NotificationPreferences;
190
+ /** Keep cutoffs when a pause ends or off is lifted so old jobs cannot flood a resumed channel. */
191
+ export declare function applyNotificationChange(previous: NotificationPreferences, change: NotificationChange, now: Date): NotificationPreferences;
192
+ export declare const EffectiveNotificationSchema: z.ZodObject<{
193
+ mode: z.ZodEnum<{
194
+ off: "off";
195
+ immediate: "immediate";
196
+ daily: "daily";
197
+ }>;
198
+ reason: z.ZodEnum<{
199
+ account_default: "account_default";
200
+ project_override: "project_override";
201
+ account_paused: "account_paused";
202
+ project_paused: "project_paused";
203
+ suppressed_history: "suppressed_history";
204
+ health_priority: "health_priority";
205
+ }>;
206
+ paused_until: z.ZodNullable<z.ZodString>;
207
+ daily: z.ZodObject<{
208
+ time: z.ZodString;
209
+ timezone: z.ZodString;
210
+ }, z.core.$strict>;
211
+ }, z.core.$strip>;
212
+ export type EffectiveNotification = z.infer<typeof EffectiveNotificationSchema>;
213
+ export declare function resolveNotificationPolicy(input: {
214
+ account: NotificationPreferences;
215
+ project?: NotificationPreferences;
216
+ channel: NotificationChannel;
217
+ now: Date;
218
+ health?: boolean;
219
+ occurredAt?: string;
220
+ }): EffectiveNotification;
221
+ export declare const NotificationSettingsResponseSchema: z.ZodObject<{
222
+ audience: z.ZodEnum<{
223
+ personal: "personal";
224
+ shared: "shared";
225
+ }>;
226
+ project_id: z.ZodNullable<z.ZodString>;
227
+ can_manage: z.ZodBoolean;
228
+ settings: z.ZodObject<{
229
+ channels: z.ZodObject<{
230
+ email: z.ZodEnum<{
231
+ off: "off";
232
+ inherit: "inherit";
233
+ immediate: "immediate";
234
+ daily: "daily";
235
+ }>;
236
+ slack: z.ZodEnum<{
237
+ off: "off";
238
+ inherit: "inherit";
239
+ immediate: "immediate";
240
+ }>;
241
+ discord: z.ZodEnum<{
242
+ off: "off";
243
+ inherit: "inherit";
244
+ immediate: "immediate";
245
+ }>;
246
+ webhook: z.ZodEnum<{
247
+ off: "off";
248
+ inherit: "inherit";
249
+ immediate: "immediate";
250
+ }>;
251
+ }, z.core.$strict>;
252
+ daily: z.ZodNullable<z.ZodObject<{
253
+ time: z.ZodString;
254
+ timezone: z.ZodString;
255
+ }, z.core.$strict>>;
256
+ pauses: z.ZodRecord<z.ZodEnum<{
257
+ email: "email";
258
+ slack: "slack";
259
+ discord: "discord";
260
+ webhook: "webhook";
261
+ }> & z.core.$partial, z.ZodObject<{
262
+ until: z.ZodNullable<z.ZodString>;
263
+ allow_health_checks: z.ZodBoolean;
264
+ }, z.core.$strict>>;
265
+ discard_before: z.ZodRecord<z.ZodEnum<{
266
+ email: "email";
267
+ slack: "slack";
268
+ discord: "discord";
269
+ webhook: "webhook";
270
+ }> & z.core.$partial, z.ZodObject<{
271
+ ordinary: z.ZodNullable<z.ZodString>;
272
+ health: z.ZodNullable<z.ZodString>;
273
+ }, z.core.$strict>>;
274
+ }, z.core.$strict>;
275
+ account: z.ZodObject<{
276
+ channels: z.ZodObject<{
277
+ email: z.ZodEnum<{
278
+ off: "off";
279
+ inherit: "inherit";
280
+ immediate: "immediate";
281
+ daily: "daily";
282
+ }>;
283
+ slack: z.ZodEnum<{
284
+ off: "off";
285
+ inherit: "inherit";
286
+ immediate: "immediate";
287
+ }>;
288
+ discord: z.ZodEnum<{
289
+ off: "off";
290
+ inherit: "inherit";
291
+ immediate: "immediate";
292
+ }>;
293
+ webhook: z.ZodEnum<{
294
+ off: "off";
295
+ inherit: "inherit";
296
+ immediate: "immediate";
297
+ }>;
298
+ }, z.core.$strict>;
299
+ daily: z.ZodNullable<z.ZodObject<{
300
+ time: z.ZodString;
301
+ timezone: z.ZodString;
302
+ }, z.core.$strict>>;
303
+ pauses: z.ZodRecord<z.ZodEnum<{
304
+ email: "email";
305
+ slack: "slack";
306
+ discord: "discord";
307
+ webhook: "webhook";
308
+ }> & z.core.$partial, z.ZodObject<{
309
+ until: z.ZodNullable<z.ZodString>;
310
+ allow_health_checks: z.ZodBoolean;
311
+ }, z.core.$strict>>;
312
+ discard_before: z.ZodRecord<z.ZodEnum<{
313
+ email: "email";
314
+ slack: "slack";
315
+ discord: "discord";
316
+ webhook: "webhook";
317
+ }> & z.core.$partial, z.ZodObject<{
318
+ ordinary: z.ZodNullable<z.ZodString>;
319
+ health: z.ZodNullable<z.ZodString>;
320
+ }, z.core.$strict>>;
321
+ }, z.core.$strict>;
322
+ shared: z.ZodOptional<z.ZodObject<{
323
+ account: z.ZodObject<{
324
+ channels: z.ZodObject<{
325
+ email: z.ZodEnum<{
326
+ off: "off";
327
+ inherit: "inherit";
328
+ immediate: "immediate";
329
+ daily: "daily";
330
+ }>;
331
+ slack: z.ZodEnum<{
332
+ off: "off";
333
+ inherit: "inherit";
334
+ immediate: "immediate";
335
+ }>;
336
+ discord: z.ZodEnum<{
337
+ off: "off";
338
+ inherit: "inherit";
339
+ immediate: "immediate";
340
+ }>;
341
+ webhook: z.ZodEnum<{
342
+ off: "off";
343
+ inherit: "inherit";
344
+ immediate: "immediate";
345
+ }>;
346
+ }, z.core.$strict>;
347
+ daily: z.ZodNullable<z.ZodObject<{
348
+ time: z.ZodString;
349
+ timezone: z.ZodString;
350
+ }, z.core.$strict>>;
351
+ pauses: z.ZodRecord<z.ZodEnum<{
352
+ email: "email";
353
+ slack: "slack";
354
+ discord: "discord";
355
+ webhook: "webhook";
356
+ }> & z.core.$partial, z.ZodObject<{
357
+ until: z.ZodNullable<z.ZodString>;
358
+ allow_health_checks: z.ZodBoolean;
359
+ }, z.core.$strict>>;
360
+ discard_before: z.ZodRecord<z.ZodEnum<{
361
+ email: "email";
362
+ slack: "slack";
363
+ discord: "discord";
364
+ webhook: "webhook";
365
+ }> & z.core.$partial, z.ZodObject<{
366
+ ordinary: z.ZodNullable<z.ZodString>;
367
+ health: z.ZodNullable<z.ZodString>;
368
+ }, z.core.$strict>>;
369
+ }, z.core.$strict>;
370
+ project: z.ZodObject<{
371
+ channels: z.ZodObject<{
372
+ email: z.ZodEnum<{
373
+ off: "off";
374
+ inherit: "inherit";
375
+ immediate: "immediate";
376
+ daily: "daily";
377
+ }>;
378
+ slack: z.ZodEnum<{
379
+ off: "off";
380
+ inherit: "inherit";
381
+ immediate: "immediate";
382
+ }>;
383
+ discord: z.ZodEnum<{
384
+ off: "off";
385
+ inherit: "inherit";
386
+ immediate: "immediate";
387
+ }>;
388
+ webhook: z.ZodEnum<{
389
+ off: "off";
390
+ inherit: "inherit";
391
+ immediate: "immediate";
392
+ }>;
393
+ }, z.core.$strict>;
394
+ daily: z.ZodNullable<z.ZodObject<{
395
+ time: z.ZodString;
396
+ timezone: z.ZodString;
397
+ }, z.core.$strict>>;
398
+ pauses: z.ZodRecord<z.ZodEnum<{
399
+ email: "email";
400
+ slack: "slack";
401
+ discord: "discord";
402
+ webhook: "webhook";
403
+ }> & z.core.$partial, z.ZodObject<{
404
+ until: z.ZodNullable<z.ZodString>;
405
+ allow_health_checks: z.ZodBoolean;
406
+ }, z.core.$strict>>;
407
+ discard_before: z.ZodRecord<z.ZodEnum<{
408
+ email: "email";
409
+ slack: "slack";
410
+ discord: "discord";
411
+ webhook: "webhook";
412
+ }> & z.core.$partial, z.ZodObject<{
413
+ ordinary: z.ZodNullable<z.ZodString>;
414
+ health: z.ZodNullable<z.ZodString>;
415
+ }, z.core.$strict>>;
416
+ }, z.core.$strict>;
417
+ }, z.core.$strip>>;
418
+ effective: z.ZodObject<{
419
+ email: z.ZodObject<{
420
+ mode: z.ZodEnum<{
421
+ off: "off";
422
+ immediate: "immediate";
423
+ daily: "daily";
424
+ }>;
425
+ reason: z.ZodEnum<{
426
+ account_default: "account_default";
427
+ project_override: "project_override";
428
+ account_paused: "account_paused";
429
+ project_paused: "project_paused";
430
+ suppressed_history: "suppressed_history";
431
+ health_priority: "health_priority";
432
+ }>;
433
+ paused_until: z.ZodNullable<z.ZodString>;
434
+ daily: z.ZodObject<{
435
+ time: z.ZodString;
436
+ timezone: z.ZodString;
437
+ }, z.core.$strict>;
438
+ }, z.core.$strip>;
439
+ slack: z.ZodObject<{
440
+ mode: z.ZodEnum<{
441
+ off: "off";
442
+ immediate: "immediate";
443
+ daily: "daily";
444
+ }>;
445
+ reason: z.ZodEnum<{
446
+ account_default: "account_default";
447
+ project_override: "project_override";
448
+ account_paused: "account_paused";
449
+ project_paused: "project_paused";
450
+ suppressed_history: "suppressed_history";
451
+ health_priority: "health_priority";
452
+ }>;
453
+ paused_until: z.ZodNullable<z.ZodString>;
454
+ daily: z.ZodObject<{
455
+ time: z.ZodString;
456
+ timezone: z.ZodString;
457
+ }, z.core.$strict>;
458
+ }, z.core.$strip>;
459
+ discord: z.ZodObject<{
460
+ mode: z.ZodEnum<{
461
+ off: "off";
462
+ immediate: "immediate";
463
+ daily: "daily";
464
+ }>;
465
+ reason: z.ZodEnum<{
466
+ account_default: "account_default";
467
+ project_override: "project_override";
468
+ account_paused: "account_paused";
469
+ project_paused: "project_paused";
470
+ suppressed_history: "suppressed_history";
471
+ health_priority: "health_priority";
472
+ }>;
473
+ paused_until: z.ZodNullable<z.ZodString>;
474
+ daily: z.ZodObject<{
475
+ time: z.ZodString;
476
+ timezone: z.ZodString;
477
+ }, z.core.$strict>;
478
+ }, z.core.$strip>;
479
+ webhook: z.ZodObject<{
480
+ mode: z.ZodEnum<{
481
+ off: "off";
482
+ immediate: "immediate";
483
+ daily: "daily";
484
+ }>;
485
+ reason: z.ZodEnum<{
486
+ account_default: "account_default";
487
+ project_override: "project_override";
488
+ account_paused: "account_paused";
489
+ project_paused: "project_paused";
490
+ suppressed_history: "suppressed_history";
491
+ health_priority: "health_priority";
492
+ }>;
493
+ paused_until: z.ZodNullable<z.ZodString>;
494
+ daily: z.ZodObject<{
495
+ time: z.ZodString;
496
+ timezone: z.ZodString;
497
+ }, z.core.$strict>;
498
+ }, z.core.$strip>;
499
+ }, z.core.$strip>;
500
+ }, z.core.$strip>;
501
+ export type NotificationSettingsResponse = z.infer<typeof NotificationSettingsResponseSchema>;
502
+ /** Shared restrictions and the recipient's own preferences both apply. */
503
+ export declare function combineNotificationPolicies(team: EffectiveNotification, personal: EffectiveNotification): EffectiveNotification;
504
+ export declare function resolveSettingsNotification(data: Pick<NotificationSettingsResponse, "account" | "settings" | "project_id" | "shared">, channel: NotificationChannel, now: Date): EffectiveNotification;
505
+ //# sourceMappingURL=notification-preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-preferences.d.ts","sourceRoot":"","sources":["../src/notification-preferences.ts"],"names":[],"mappings":"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"}