@debugbundle/shared-types 2.6.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 (108) 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 +398 -1152
  96. package/dist/notification-preferences.d.ts.map +1 -1
  97. package/dist/notification-preferences.js +3 -3
  98. package/dist/notification-preferences.js.map +1 -1
  99. package/dist/project-color-tags.d.ts +20 -1
  100. package/dist/project-color-tags.d.ts.map +1 -1
  101. package/dist/public-status.d.ts +122 -568
  102. package/dist/public-status.d.ts.map +1 -1
  103. package/dist/public-status.js +8 -8
  104. package/dist/stack-frames.d.ts +11 -0
  105. package/dist/stack-frames.d.ts.map +1 -0
  106. package/dist/stack-frames.js +107 -0
  107. package/dist/stack-frames.js.map +1 -0
  108. package/package.json +2 -2
@@ -1,367 +1,214 @@
1
1
  import { z } from "zod";
2
2
  export { nextDailyNotificationAt } from "./notification-schedule.js";
3
3
  export declare const NOTIFICATION_CHANNELS: readonly ["email", "slack", "discord", "webhook"];
4
- export declare const NotificationChannelSchema: z.ZodEnum<["email", "slack", "discord", "webhook"]>;
4
+ export declare const NotificationChannelSchema: z.ZodEnum<{
5
+ email: "email";
6
+ slack: "slack";
7
+ discord: "discord";
8
+ webhook: "webhook";
9
+ }>;
5
10
  export type NotificationChannel = z.infer<typeof NotificationChannelSchema>;
6
11
  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
- }>;
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>;
22
34
  export declare const NotificationScheduleSchema: z.ZodObject<{
23
35
  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
- }>;
36
+ timezone: z.ZodString;
37
+ }, z.core.$strict>;
32
38
  export type NotificationSchedule = z.infer<typeof NotificationScheduleSchema>;
33
39
  export declare const NotificationPreferencesSchema: z.ZodObject<{
34
40
  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
- }>;
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>;
50
63
  daily: z.ZodNullable<z.ZodObject<{
51
64
  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<{
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<{
61
73
  until: z.ZodNullable<z.ZodString>;
62
74
  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<{
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<{
71
82
  ordinary: z.ZodNullable<z.ZodString>;
72
83
  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
- }>;
84
+ }, z.core.$strict>>;
85
+ }, z.core.$strict>;
119
86
  export type NotificationPreferences = z.infer<typeof NotificationPreferencesSchema>;
120
- export declare const NotificationUpdateSchema: z.ZodEffects<z.ZodObject<{
87
+ export declare const NotificationUpdateSchema: z.ZodObject<{
121
88
  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
- }>>;
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>>;
137
111
  daily: z.ZodOptional<z.ZodNullable<z.ZodObject<{
138
112
  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
- }>;
113
+ timezone: z.ZodString;
114
+ }, z.core.$strict>>>;
115
+ }, z.core.$strict>;
192
116
  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
- }>;
117
+ channels: z.ZodArray<z.ZodEnum<{
118
+ email: "email";
119
+ slack: "slack";
120
+ discord: "discord";
121
+ webhook: "webhook";
122
+ }>>;
123
+ }, z.core.$strict>;
199
124
  export declare const NotificationPauseSchema: z.ZodObject<{
200
- channels: z.ZodArray<z.ZodEnum<["email", "slack", "discord", "webhook"]>, "many">;
201
- } & {
125
+ channels: z.ZodArray<z.ZodEnum<{
126
+ email: "email";
127
+ slack: "slack";
128
+ discord: "discord";
129
+ webhook: "webhook";
130
+ }>>;
202
131
  until: z.ZodNullable<z.ZodString>;
203
132
  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<{
133
+ }, z.core.$strict>;
134
+ export declare const NotificationChangeSchema: z.ZodUnion<readonly [z.ZodObject<{
214
135
  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
- }>>;
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>>;
230
158
  daily: z.ZodOptional<z.ZodNullable<z.ZodObject<{
231
159
  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<{
160
+ timezone: z.ZodString;
161
+ }, z.core.$strict>>>;
162
+ }, z.core.$strict>, z.ZodObject<{
285
163
  pause: z.ZodObject<{
286
- channels: z.ZodArray<z.ZodEnum<["email", "slack", "discord", "webhook"]>, "many">;
287
- } & {
164
+ channels: z.ZodArray<z.ZodEnum<{
165
+ email: "email";
166
+ slack: "slack";
167
+ discord: "discord";
168
+ webhook: "webhook";
169
+ }>>;
288
170
  until: z.ZodNullable<z.ZodString>;
289
171
  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<{
172
+ }, z.core.$strict>;
173
+ }, z.core.$strict>, z.ZodObject<{
312
174
  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
- }>]>;
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>]>;
328
183
  export type NotificationChange = z.infer<typeof NotificationChangeSchema>;
329
184
  export type NotificationAudience = "personal" | "shared";
330
- export declare const NotificationAudienceSchema: z.ZodEnum<["personal", "shared"]>;
185
+ export declare const NotificationAudienceSchema: z.ZodEnum<{
186
+ personal: "personal";
187
+ shared: "shared";
188
+ }>;
331
189
  export declare function defaultNotificationPreferences(project?: boolean): NotificationPreferences;
332
190
  /** Keep cutoffs when a pause ends or off is lifted so old jobs cannot flood a resumed channel. */
333
191
  export declare function applyNotificationChange(previous: NotificationPreferences, change: NotificationChange, now: Date): NotificationPreferences;
334
192
  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"]>;
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
+ }>;
337
206
  paused_until: z.ZodNullable<z.ZodString>;
338
207
  daily: z.ZodObject<{
339
208
  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
- }>;
209
+ timezone: z.ZodString;
210
+ }, z.core.$strict>;
211
+ }, z.core.$strip>;
365
212
  export type EffectiveNotification = z.infer<typeof EffectiveNotificationSchema>;
366
213
  export declare function resolveNotificationPolicy(input: {
367
214
  account: NotificationPreferences;
@@ -372,886 +219,285 @@ export declare function resolveNotificationPolicy(input: {
372
219
  occurredAt?: string;
373
220
  }): EffectiveNotification;
374
221
  export declare const NotificationSettingsResponseSchema: z.ZodObject<{
375
- audience: z.ZodEnum<["personal", "shared"]>;
222
+ audience: z.ZodEnum<{
223
+ personal: "personal";
224
+ shared: "shared";
225
+ }>;
376
226
  project_id: z.ZodNullable<z.ZodString>;
377
227
  can_manage: z.ZodBoolean;
378
228
  settings: z.ZodObject<{
379
229
  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
- }>;
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>;
395
252
  daily: z.ZodNullable<z.ZodObject<{
396
253
  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<{
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<{
406
262
  until: z.ZodNullable<z.ZodString>;
407
263
  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<{
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<{
416
271
  ordinary: z.ZodNullable<z.ZodString>;
417
272
  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
- }>;
273
+ }, z.core.$strict>>;
274
+ }, z.core.$strict>;
464
275
  account: z.ZodObject<{
465
276
  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
- }>;
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>;
481
299
  daily: z.ZodNullable<z.ZodObject<{
482
300
  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<{
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<{
492
309
  until: z.ZodNullable<z.ZodString>;
493
310
  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<{
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<{
502
318
  ordinary: z.ZodNullable<z.ZodString>;
503
319
  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
- }>;
320
+ }, z.core.$strict>>;
321
+ }, z.core.$strict>;
550
322
  shared: z.ZodOptional<z.ZodObject<{
551
323
  account: z.ZodObject<{
552
324
  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
- }>;
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>;
568
347
  daily: z.ZodNullable<z.ZodObject<{
569
348
  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<{
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<{
579
357
  until: z.ZodNullable<z.ZodString>;
580
358
  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<{
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<{
589
366
  ordinary: z.ZodNullable<z.ZodString>;
590
367
  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
- }>;
368
+ }, z.core.$strict>>;
369
+ }, z.core.$strict>;
637
370
  project: z.ZodObject<{
638
371
  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
- }>;
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>;
654
394
  daily: z.ZodNullable<z.ZodObject<{
655
395
  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<{
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<{
665
404
  until: z.ZodNullable<z.ZodString>;
666
405
  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<{
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<{
675
413
  ordinary: z.ZodNullable<z.ZodString>;
676
414
  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
- }>>;
415
+ }, z.core.$strict>>;
416
+ }, z.core.$strict>;
417
+ }, z.core.$strip>>;
806
418
  effective: z.ZodObject<{
807
419
  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"]>;
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
+ }>;
810
433
  paused_until: z.ZodNullable<z.ZodString>;
811
434
  daily: z.ZodObject<{
812
435
  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
- }>;
436
+ timezone: z.ZodString;
437
+ }, z.core.$strict>;
438
+ }, z.core.$strip>;
838
439
  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"]>;
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
+ }>;
841
453
  paused_until: z.ZodNullable<z.ZodString>;
842
454
  daily: z.ZodObject<{
843
455
  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
- }>;
456
+ timezone: z.ZodString;
457
+ }, z.core.$strict>;
458
+ }, z.core.$strip>;
869
459
  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"]>;
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
+ }>;
872
473
  paused_until: z.ZodNullable<z.ZodString>;
873
474
  daily: z.ZodObject<{
874
475
  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
- }>;
476
+ timezone: z.ZodString;
477
+ }, z.core.$strict>;
478
+ }, z.core.$strip>;
900
479
  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"]>;
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
+ }>;
903
493
  paused_until: z.ZodNullable<z.ZodString>;
904
494
  daily: z.ZodObject<{
905
495
  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
- }>;
496
+ timezone: z.ZodString;
497
+ }, z.core.$strict>;
498
+ }, z.core.$strip>;
499
+ }, z.core.$strip>;
500
+ }, z.core.$strip>;
1255
501
  export type NotificationSettingsResponse = z.infer<typeof NotificationSettingsResponseSchema>;
1256
502
  /** Shared restrictions and the recipient's own preferences both apply. */
1257
503
  export declare function combineNotificationPolicies(team: EffectiveNotification, personal: EffectiveNotification): EffectiveNotification;