@sentry/api 0.434.0 → 0.436.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.
package/dist/zod.gen.d.ts CHANGED
@@ -182,7 +182,142 @@ export declare const zBaseDetectorTypeValidator: z.ZodObject<{
182
182
  name: z.ZodString;
183
183
  type: z.ZodString;
184
184
  workflow_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
185
- data_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
185
+ data_sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
186
+ query_type: z.ZodOptional<z.ZodLiteral<0>>;
187
+ dataset: z.ZodEnum<["events"]>;
188
+ query: z.ZodString;
189
+ aggregate: z.ZodEnum<["count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])"]>;
190
+ time_window: z.ZodNumber;
191
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
192
+ event_types: z.ZodArray<z.ZodEnum<["error", "default"]>, "many">;
193
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ query: string;
196
+ environment: string | null;
197
+ dataset: "events";
198
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
199
+ time_window: number;
200
+ event_types: ("default" | "error")[];
201
+ query_type?: 0 | undefined;
202
+ extrapolation_mode?: string | null | undefined;
203
+ }, {
204
+ query: string;
205
+ environment: string | null;
206
+ dataset: "events";
207
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
208
+ time_window: number;
209
+ event_types: ("default" | "error")[];
210
+ query_type?: 0 | undefined;
211
+ extrapolation_mode?: string | null | undefined;
212
+ }>, z.ZodObject<{
213
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
214
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
215
+ query: z.ZodString;
216
+ aggregate: z.ZodString;
217
+ time_window: z.ZodNumber;
218
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
219
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_span"]>], null>;
220
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ query: string;
223
+ environment: string | null;
224
+ dataset: "events_analytics_platform";
225
+ aggregate: string;
226
+ time_window: number;
227
+ event_types: ["trace_item_span"];
228
+ query_type?: 1 | undefined;
229
+ extrapolation_mode?: string | null | undefined;
230
+ }, {
231
+ query: string;
232
+ environment: string | null;
233
+ dataset: "events_analytics_platform";
234
+ aggregate: string;
235
+ time_window: number;
236
+ event_types: ["trace_item_span"];
237
+ query_type?: 1 | undefined;
238
+ extrapolation_mode?: string | null | undefined;
239
+ }>, z.ZodObject<{
240
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
241
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
242
+ query: z.ZodString;
243
+ aggregate: z.ZodString;
244
+ time_window: z.ZodNumber;
245
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
246
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_log"]>], null>;
247
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ query: string;
250
+ environment: string | null;
251
+ dataset: "events_analytics_platform";
252
+ aggregate: string;
253
+ time_window: number;
254
+ event_types: ["trace_item_log"];
255
+ query_type?: 1 | undefined;
256
+ extrapolation_mode?: string | null | undefined;
257
+ }, {
258
+ query: string;
259
+ environment: string | null;
260
+ dataset: "events_analytics_platform";
261
+ aggregate: string;
262
+ time_window: number;
263
+ event_types: ["trace_item_log"];
264
+ query_type?: 1 | undefined;
265
+ extrapolation_mode?: string | null | undefined;
266
+ }>, z.ZodObject<{
267
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
268
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
269
+ query: z.ZodString;
270
+ aggregate: z.ZodString;
271
+ time_window: z.ZodNumber;
272
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
273
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_metric"]>], null>;
274
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ query: string;
277
+ environment: string | null;
278
+ dataset: "events_analytics_platform";
279
+ aggregate: string;
280
+ time_window: number;
281
+ event_types: ["trace_item_metric"];
282
+ query_type?: 1 | undefined;
283
+ extrapolation_mode?: string | null | undefined;
284
+ }, {
285
+ query: string;
286
+ environment: string | null;
287
+ dataset: "events_analytics_platform";
288
+ aggregate: string;
289
+ time_window: number;
290
+ event_types: ["trace_item_metric"];
291
+ query_type?: 1 | undefined;
292
+ extrapolation_mode?: string | null | undefined;
293
+ }>, z.ZodObject<{
294
+ query_type: z.ZodOptional<z.ZodLiteral<2>>;
295
+ dataset: z.ZodEnum<["metrics"]>;
296
+ query: z.ZodString;
297
+ aggregate: z.ZodString;
298
+ time_window: z.ZodNumber;
299
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
300
+ event_types: z.ZodArray<z.ZodString, "many">;
301
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ query: string;
304
+ environment: string | null;
305
+ dataset: "metrics";
306
+ aggregate: string;
307
+ time_window: number;
308
+ event_types: string[];
309
+ query_type?: 2 | undefined;
310
+ extrapolation_mode?: string | null | undefined;
311
+ }, {
312
+ query: string;
313
+ environment: string | null;
314
+ dataset: "metrics";
315
+ aggregate: string;
316
+ time_window: number;
317
+ event_types: string[];
318
+ query_type?: 2 | undefined;
319
+ extrapolation_mode?: string | null | undefined;
320
+ }>]>, "many">>;
186
321
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187
322
  condition_group: z.ZodOptional<z.ZodObject<{
188
323
  id: z.ZodOptional<z.ZodNumber>;
@@ -207,7 +342,52 @@ export declare const zBaseDetectorTypeValidator: z.ZodObject<{
207
342
  enabled?: boolean | undefined;
208
343
  description?: string | null | undefined;
209
344
  workflow_ids?: number[] | undefined;
210
- data_sources?: unknown[] | undefined;
345
+ data_sources?: ({
346
+ query: string;
347
+ environment: string | null;
348
+ dataset: "events";
349
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
350
+ time_window: number;
351
+ event_types: ("default" | "error")[];
352
+ query_type?: 0 | undefined;
353
+ extrapolation_mode?: string | null | undefined;
354
+ } | {
355
+ query: string;
356
+ environment: string | null;
357
+ dataset: "events_analytics_platform";
358
+ aggregate: string;
359
+ time_window: number;
360
+ event_types: ["trace_item_span"];
361
+ query_type?: 1 | undefined;
362
+ extrapolation_mode?: string | null | undefined;
363
+ } | {
364
+ query: string;
365
+ environment: string | null;
366
+ dataset: "events_analytics_platform";
367
+ aggregate: string;
368
+ time_window: number;
369
+ event_types: ["trace_item_log"];
370
+ query_type?: 1 | undefined;
371
+ extrapolation_mode?: string | null | undefined;
372
+ } | {
373
+ query: string;
374
+ environment: string | null;
375
+ dataset: "events_analytics_platform";
376
+ aggregate: string;
377
+ time_window: number;
378
+ event_types: ["trace_item_metric"];
379
+ query_type?: 1 | undefined;
380
+ extrapolation_mode?: string | null | undefined;
381
+ } | {
382
+ query: string;
383
+ environment: string | null;
384
+ dataset: "metrics";
385
+ aggregate: string;
386
+ time_window: number;
387
+ event_types: string[];
388
+ query_type?: 2 | undefined;
389
+ extrapolation_mode?: string | null | undefined;
390
+ })[] | undefined;
211
391
  config?: Record<string, unknown> | undefined;
212
392
  condition_group?: {
213
393
  logic_type: "any" | "any-short" | "all" | "none";
@@ -221,7 +401,52 @@ export declare const zBaseDetectorTypeValidator: z.ZodObject<{
221
401
  enabled?: boolean | undefined;
222
402
  description?: string | null | undefined;
223
403
  workflow_ids?: number[] | undefined;
224
- data_sources?: unknown[] | undefined;
404
+ data_sources?: ({
405
+ query: string;
406
+ environment: string | null;
407
+ dataset: "events";
408
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
409
+ time_window: number;
410
+ event_types: ("default" | "error")[];
411
+ query_type?: 0 | undefined;
412
+ extrapolation_mode?: string | null | undefined;
413
+ } | {
414
+ query: string;
415
+ environment: string | null;
416
+ dataset: "events_analytics_platform";
417
+ aggregate: string;
418
+ time_window: number;
419
+ event_types: ["trace_item_span"];
420
+ query_type?: 1 | undefined;
421
+ extrapolation_mode?: string | null | undefined;
422
+ } | {
423
+ query: string;
424
+ environment: string | null;
425
+ dataset: "events_analytics_platform";
426
+ aggregate: string;
427
+ time_window: number;
428
+ event_types: ["trace_item_log"];
429
+ query_type?: 1 | undefined;
430
+ extrapolation_mode?: string | null | undefined;
431
+ } | {
432
+ query: string;
433
+ environment: string | null;
434
+ dataset: "events_analytics_platform";
435
+ aggregate: string;
436
+ time_window: number;
437
+ event_types: ["trace_item_metric"];
438
+ query_type?: 1 | undefined;
439
+ extrapolation_mode?: string | null | undefined;
440
+ } | {
441
+ query: string;
442
+ environment: string | null;
443
+ dataset: "metrics";
444
+ aggregate: string;
445
+ time_window: number;
446
+ event_types: string[];
447
+ query_type?: 2 | undefined;
448
+ extrapolation_mode?: string | null | undefined;
449
+ })[] | undefined;
225
450
  config?: Record<string, unknown> | undefined;
226
451
  condition_group?: {
227
452
  logic_type: "any" | "any-short" | "all" | "none";
@@ -2473,7 +2698,7 @@ export declare const zDashboard: z.ZodObject<{
2473
2698
  field: string;
2474
2699
  }[] | null | undefined;
2475
2700
  }[] | undefined;
2476
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2701
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2477
2702
  layout?: {
2478
2703
  x: number;
2479
2704
  y: number;
@@ -2512,7 +2737,7 @@ export declare const zDashboard: z.ZodObject<{
2512
2737
  field: string;
2513
2738
  }[] | null | undefined;
2514
2739
  }[] | undefined;
2515
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2740
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2516
2741
  layout?: {
2517
2742
  x: number;
2518
2743
  y: number;
@@ -2578,7 +2803,7 @@ export declare const zDashboard: z.ZodObject<{
2578
2803
  field: string;
2579
2804
  }[] | null | undefined;
2580
2805
  }[] | undefined;
2581
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2806
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2582
2807
  layout?: {
2583
2808
  x: number;
2584
2809
  y: number;
@@ -2632,7 +2857,7 @@ export declare const zDashboard: z.ZodObject<{
2632
2857
  field: string;
2633
2858
  }[] | null | undefined;
2634
2859
  }[] | undefined;
2635
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2860
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2636
2861
  layout?: {
2637
2862
  x: number;
2638
2863
  y: number;
@@ -2789,7 +3014,7 @@ export declare const zDashboardCreateWidget: z.ZodObject<{
2789
3014
  field: string;
2790
3015
  }[] | null | undefined;
2791
3016
  }[] | undefined;
2792
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3017
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2793
3018
  layout?: {
2794
3019
  x: number;
2795
3020
  y: number;
@@ -2828,7 +3053,7 @@ export declare const zDashboardCreateWidget: z.ZodObject<{
2828
3053
  field: string;
2829
3054
  }[] | null | undefined;
2830
3055
  }[] | undefined;
2831
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3056
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
2832
3057
  layout?: {
2833
3058
  x: number;
2834
3059
  y: number;
@@ -3004,7 +3229,7 @@ export declare const zDashboardDetails: z.ZodObject<{
3004
3229
  field: string;
3005
3230
  }[] | null | undefined;
3006
3231
  }[] | undefined;
3007
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3232
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3008
3233
  layout?: {
3009
3234
  x: number;
3010
3235
  y: number;
@@ -3044,7 +3269,7 @@ export declare const zDashboardDetails: z.ZodObject<{
3044
3269
  field: string;
3045
3270
  }[] | null | undefined;
3046
3271
  }[] | undefined;
3047
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3272
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3048
3273
  layout?: {
3049
3274
  x: number;
3050
3275
  y: number;
@@ -3109,7 +3334,7 @@ export declare const zDashboardDetails: z.ZodObject<{
3109
3334
  field: string;
3110
3335
  }[] | null | undefined;
3111
3336
  }[] | undefined;
3112
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3337
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3113
3338
  layout?: {
3114
3339
  x: number;
3115
3340
  y: number;
@@ -3164,7 +3389,7 @@ export declare const zDashboardDetails: z.ZodObject<{
3164
3389
  field: string;
3165
3390
  }[] | null | undefined;
3166
3391
  }[] | undefined;
3167
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3392
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
3168
3393
  layout?: {
3169
3394
  x: number;
3170
3395
  y: number;
@@ -4363,7 +4588,7 @@ export declare const zDashboardWidget: z.ZodObject<{
4363
4588
  field: string;
4364
4589
  }[] | null | undefined;
4365
4590
  }[] | undefined;
4366
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
4591
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
4367
4592
  layout?: {
4368
4593
  x: number;
4369
4594
  y: number;
@@ -4403,7 +4628,7 @@ export declare const zDashboardWidget: z.ZodObject<{
4403
4628
  field: string;
4404
4629
  }[] | null | undefined;
4405
4630
  }[] | undefined;
4406
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
4631
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
4407
4632
  layout?: {
4408
4633
  x: number;
4409
4634
  y: number;
@@ -40626,7 +40851,7 @@ export declare const zCreateOrganizationDashboardData: z.ZodObject<{
40626
40851
  field: string;
40627
40852
  }[] | null | undefined;
40628
40853
  }[] | undefined;
40629
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40854
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40630
40855
  layout?: {
40631
40856
  x: number;
40632
40857
  y: number;
@@ -40665,7 +40890,7 @@ export declare const zCreateOrganizationDashboardData: z.ZodObject<{
40665
40890
  field: string;
40666
40891
  }[] | null | undefined;
40667
40892
  }[] | undefined;
40668
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40893
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40669
40894
  layout?: {
40670
40895
  x: number;
40671
40896
  y: number;
@@ -40731,7 +40956,7 @@ export declare const zCreateOrganizationDashboardData: z.ZodObject<{
40731
40956
  field: string;
40732
40957
  }[] | null | undefined;
40733
40958
  }[] | undefined;
40734
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40959
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40735
40960
  layout?: {
40736
40961
  x: number;
40737
40962
  y: number;
@@ -40785,7 +41010,7 @@ export declare const zCreateOrganizationDashboardData: z.ZodObject<{
40785
41010
  field: string;
40786
41011
  }[] | null | undefined;
40787
41012
  }[] | undefined;
40788
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
41013
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40789
41014
  layout?: {
40790
41015
  x: number;
40791
41016
  y: number;
@@ -40851,7 +41076,7 @@ export declare const zCreateOrganizationDashboardData: z.ZodObject<{
40851
41076
  field: string;
40852
41077
  }[] | null | undefined;
40853
41078
  }[] | undefined;
40854
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
41079
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40855
41080
  layout?: {
40856
41081
  x: number;
40857
41082
  y: number;
@@ -40911,7 +41136,7 @@ export declare const zCreateOrganizationDashboardData: z.ZodObject<{
40911
41136
  field: string;
40912
41137
  }[] | null | undefined;
40913
41138
  }[] | undefined;
40914
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
41139
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
40915
41140
  layout?: {
40916
41141
  x: number;
40917
41142
  y: number;
@@ -42489,7 +42714,7 @@ export declare const zUpdateOrganizationDashboardData: z.ZodObject<{
42489
42714
  field: string;
42490
42715
  }[] | null | undefined;
42491
42716
  }[] | undefined;
42492
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42717
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42493
42718
  layout?: {
42494
42719
  x: number;
42495
42720
  y: number;
@@ -42529,7 +42754,7 @@ export declare const zUpdateOrganizationDashboardData: z.ZodObject<{
42529
42754
  field: string;
42530
42755
  }[] | null | undefined;
42531
42756
  }[] | undefined;
42532
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42757
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42533
42758
  layout?: {
42534
42759
  x: number;
42535
42760
  y: number;
@@ -42594,7 +42819,7 @@ export declare const zUpdateOrganizationDashboardData: z.ZodObject<{
42594
42819
  field: string;
42595
42820
  }[] | null | undefined;
42596
42821
  }[] | undefined;
42597
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42822
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42598
42823
  layout?: {
42599
42824
  x: number;
42600
42825
  y: number;
@@ -42649,7 +42874,7 @@ export declare const zUpdateOrganizationDashboardData: z.ZodObject<{
42649
42874
  field: string;
42650
42875
  }[] | null | undefined;
42651
42876
  }[] | undefined;
42652
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42877
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42653
42878
  layout?: {
42654
42879
  x: number;
42655
42880
  y: number;
@@ -42722,7 +42947,7 @@ export declare const zUpdateOrganizationDashboardData: z.ZodObject<{
42722
42947
  field: string;
42723
42948
  }[] | null | undefined;
42724
42949
  }[] | undefined;
42725
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42950
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42726
42951
  layout?: {
42727
42952
  x: number;
42728
42953
  y: number;
@@ -42784,7 +43009,7 @@ export declare const zUpdateOrganizationDashboardData: z.ZodObject<{
42784
43009
  field: string;
42785
43010
  }[] | null | undefined;
42786
43011
  }[] | undefined;
42787
- widget_type?: "discover" | "issue" | "metrics" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
43012
+ widget_type?: "metrics" | "discover" | "issue" | "error-events" | "transaction-like" | "spans" | "logs" | "tracemetrics" | "preprod-app-size" | null | undefined;
42788
43013
  layout?: {
42789
43014
  x: number;
42790
43015
  y: number;
@@ -43938,7 +44163,142 @@ export declare const zUpdateOrganizationDetectorData: z.ZodObject<{
43938
44163
  name: z.ZodString;
43939
44164
  type: z.ZodString;
43940
44165
  workflow_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
43941
- data_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
44166
+ data_sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
44167
+ query_type: z.ZodOptional<z.ZodLiteral<0>>;
44168
+ dataset: z.ZodEnum<["events"]>;
44169
+ query: z.ZodString;
44170
+ aggregate: z.ZodEnum<["count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])"]>;
44171
+ time_window: z.ZodNumber;
44172
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
44173
+ event_types: z.ZodArray<z.ZodEnum<["error", "default"]>, "many">;
44174
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
44175
+ }, "strip", z.ZodTypeAny, {
44176
+ query: string;
44177
+ environment: string | null;
44178
+ dataset: "events";
44179
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
44180
+ time_window: number;
44181
+ event_types: ("default" | "error")[];
44182
+ query_type?: 0 | undefined;
44183
+ extrapolation_mode?: string | null | undefined;
44184
+ }, {
44185
+ query: string;
44186
+ environment: string | null;
44187
+ dataset: "events";
44188
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
44189
+ time_window: number;
44190
+ event_types: ("default" | "error")[];
44191
+ query_type?: 0 | undefined;
44192
+ extrapolation_mode?: string | null | undefined;
44193
+ }>, z.ZodObject<{
44194
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
44195
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
44196
+ query: z.ZodString;
44197
+ aggregate: z.ZodString;
44198
+ time_window: z.ZodNumber;
44199
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
44200
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_span"]>], null>;
44201
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
44202
+ }, "strip", z.ZodTypeAny, {
44203
+ query: string;
44204
+ environment: string | null;
44205
+ dataset: "events_analytics_platform";
44206
+ aggregate: string;
44207
+ time_window: number;
44208
+ event_types: ["trace_item_span"];
44209
+ query_type?: 1 | undefined;
44210
+ extrapolation_mode?: string | null | undefined;
44211
+ }, {
44212
+ query: string;
44213
+ environment: string | null;
44214
+ dataset: "events_analytics_platform";
44215
+ aggregate: string;
44216
+ time_window: number;
44217
+ event_types: ["trace_item_span"];
44218
+ query_type?: 1 | undefined;
44219
+ extrapolation_mode?: string | null | undefined;
44220
+ }>, z.ZodObject<{
44221
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
44222
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
44223
+ query: z.ZodString;
44224
+ aggregate: z.ZodString;
44225
+ time_window: z.ZodNumber;
44226
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
44227
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_log"]>], null>;
44228
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
44229
+ }, "strip", z.ZodTypeAny, {
44230
+ query: string;
44231
+ environment: string | null;
44232
+ dataset: "events_analytics_platform";
44233
+ aggregate: string;
44234
+ time_window: number;
44235
+ event_types: ["trace_item_log"];
44236
+ query_type?: 1 | undefined;
44237
+ extrapolation_mode?: string | null | undefined;
44238
+ }, {
44239
+ query: string;
44240
+ environment: string | null;
44241
+ dataset: "events_analytics_platform";
44242
+ aggregate: string;
44243
+ time_window: number;
44244
+ event_types: ["trace_item_log"];
44245
+ query_type?: 1 | undefined;
44246
+ extrapolation_mode?: string | null | undefined;
44247
+ }>, z.ZodObject<{
44248
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
44249
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
44250
+ query: z.ZodString;
44251
+ aggregate: z.ZodString;
44252
+ time_window: z.ZodNumber;
44253
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
44254
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_metric"]>], null>;
44255
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
44256
+ }, "strip", z.ZodTypeAny, {
44257
+ query: string;
44258
+ environment: string | null;
44259
+ dataset: "events_analytics_platform";
44260
+ aggregate: string;
44261
+ time_window: number;
44262
+ event_types: ["trace_item_metric"];
44263
+ query_type?: 1 | undefined;
44264
+ extrapolation_mode?: string | null | undefined;
44265
+ }, {
44266
+ query: string;
44267
+ environment: string | null;
44268
+ dataset: "events_analytics_platform";
44269
+ aggregate: string;
44270
+ time_window: number;
44271
+ event_types: ["trace_item_metric"];
44272
+ query_type?: 1 | undefined;
44273
+ extrapolation_mode?: string | null | undefined;
44274
+ }>, z.ZodObject<{
44275
+ query_type: z.ZodOptional<z.ZodLiteral<2>>;
44276
+ dataset: z.ZodEnum<["metrics"]>;
44277
+ query: z.ZodString;
44278
+ aggregate: z.ZodString;
44279
+ time_window: z.ZodNumber;
44280
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
44281
+ event_types: z.ZodArray<z.ZodString, "many">;
44282
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
44283
+ }, "strip", z.ZodTypeAny, {
44284
+ query: string;
44285
+ environment: string | null;
44286
+ dataset: "metrics";
44287
+ aggregate: string;
44288
+ time_window: number;
44289
+ event_types: string[];
44290
+ query_type?: 2 | undefined;
44291
+ extrapolation_mode?: string | null | undefined;
44292
+ }, {
44293
+ query: string;
44294
+ environment: string | null;
44295
+ dataset: "metrics";
44296
+ aggregate: string;
44297
+ time_window: number;
44298
+ event_types: string[];
44299
+ query_type?: 2 | undefined;
44300
+ extrapolation_mode?: string | null | undefined;
44301
+ }>]>, "many">>;
43942
44302
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
43943
44303
  condition_group: z.ZodOptional<z.ZodObject<{
43944
44304
  id: z.ZodOptional<z.ZodNumber>;
@@ -43963,7 +44323,52 @@ export declare const zUpdateOrganizationDetectorData: z.ZodObject<{
43963
44323
  enabled?: boolean | undefined;
43964
44324
  description?: string | null | undefined;
43965
44325
  workflow_ids?: number[] | undefined;
43966
- data_sources?: unknown[] | undefined;
44326
+ data_sources?: ({
44327
+ query: string;
44328
+ environment: string | null;
44329
+ dataset: "events";
44330
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
44331
+ time_window: number;
44332
+ event_types: ("default" | "error")[];
44333
+ query_type?: 0 | undefined;
44334
+ extrapolation_mode?: string | null | undefined;
44335
+ } | {
44336
+ query: string;
44337
+ environment: string | null;
44338
+ dataset: "events_analytics_platform";
44339
+ aggregate: string;
44340
+ time_window: number;
44341
+ event_types: ["trace_item_span"];
44342
+ query_type?: 1 | undefined;
44343
+ extrapolation_mode?: string | null | undefined;
44344
+ } | {
44345
+ query: string;
44346
+ environment: string | null;
44347
+ dataset: "events_analytics_platform";
44348
+ aggregate: string;
44349
+ time_window: number;
44350
+ event_types: ["trace_item_log"];
44351
+ query_type?: 1 | undefined;
44352
+ extrapolation_mode?: string | null | undefined;
44353
+ } | {
44354
+ query: string;
44355
+ environment: string | null;
44356
+ dataset: "events_analytics_platform";
44357
+ aggregate: string;
44358
+ time_window: number;
44359
+ event_types: ["trace_item_metric"];
44360
+ query_type?: 1 | undefined;
44361
+ extrapolation_mode?: string | null | undefined;
44362
+ } | {
44363
+ query: string;
44364
+ environment: string | null;
44365
+ dataset: "metrics";
44366
+ aggregate: string;
44367
+ time_window: number;
44368
+ event_types: string[];
44369
+ query_type?: 2 | undefined;
44370
+ extrapolation_mode?: string | null | undefined;
44371
+ })[] | undefined;
43967
44372
  config?: Record<string, unknown> | undefined;
43968
44373
  condition_group?: {
43969
44374
  logic_type: "any" | "any-short" | "all" | "none";
@@ -43977,7 +44382,52 @@ export declare const zUpdateOrganizationDetectorData: z.ZodObject<{
43977
44382
  enabled?: boolean | undefined;
43978
44383
  description?: string | null | undefined;
43979
44384
  workflow_ids?: number[] | undefined;
43980
- data_sources?: unknown[] | undefined;
44385
+ data_sources?: ({
44386
+ query: string;
44387
+ environment: string | null;
44388
+ dataset: "events";
44389
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
44390
+ time_window: number;
44391
+ event_types: ("default" | "error")[];
44392
+ query_type?: 0 | undefined;
44393
+ extrapolation_mode?: string | null | undefined;
44394
+ } | {
44395
+ query: string;
44396
+ environment: string | null;
44397
+ dataset: "events_analytics_platform";
44398
+ aggregate: string;
44399
+ time_window: number;
44400
+ event_types: ["trace_item_span"];
44401
+ query_type?: 1 | undefined;
44402
+ extrapolation_mode?: string | null | undefined;
44403
+ } | {
44404
+ query: string;
44405
+ environment: string | null;
44406
+ dataset: "events_analytics_platform";
44407
+ aggregate: string;
44408
+ time_window: number;
44409
+ event_types: ["trace_item_log"];
44410
+ query_type?: 1 | undefined;
44411
+ extrapolation_mode?: string | null | undefined;
44412
+ } | {
44413
+ query: string;
44414
+ environment: string | null;
44415
+ dataset: "events_analytics_platform";
44416
+ aggregate: string;
44417
+ time_window: number;
44418
+ event_types: ["trace_item_metric"];
44419
+ query_type?: 1 | undefined;
44420
+ extrapolation_mode?: string | null | undefined;
44421
+ } | {
44422
+ query: string;
44423
+ environment: string | null;
44424
+ dataset: "metrics";
44425
+ aggregate: string;
44426
+ time_window: number;
44427
+ event_types: string[];
44428
+ query_type?: 2 | undefined;
44429
+ extrapolation_mode?: string | null | undefined;
44430
+ })[] | undefined;
43981
44431
  config?: Record<string, unknown> | undefined;
43982
44432
  condition_group?: {
43983
44433
  logic_type: "any" | "any-short" | "all" | "none";
@@ -44004,7 +44454,52 @@ export declare const zUpdateOrganizationDetectorData: z.ZodObject<{
44004
44454
  enabled?: boolean | undefined;
44005
44455
  description?: string | null | undefined;
44006
44456
  workflow_ids?: number[] | undefined;
44007
- data_sources?: unknown[] | undefined;
44457
+ data_sources?: ({
44458
+ query: string;
44459
+ environment: string | null;
44460
+ dataset: "events";
44461
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
44462
+ time_window: number;
44463
+ event_types: ("default" | "error")[];
44464
+ query_type?: 0 | undefined;
44465
+ extrapolation_mode?: string | null | undefined;
44466
+ } | {
44467
+ query: string;
44468
+ environment: string | null;
44469
+ dataset: "events_analytics_platform";
44470
+ aggregate: string;
44471
+ time_window: number;
44472
+ event_types: ["trace_item_span"];
44473
+ query_type?: 1 | undefined;
44474
+ extrapolation_mode?: string | null | undefined;
44475
+ } | {
44476
+ query: string;
44477
+ environment: string | null;
44478
+ dataset: "events_analytics_platform";
44479
+ aggregate: string;
44480
+ time_window: number;
44481
+ event_types: ["trace_item_log"];
44482
+ query_type?: 1 | undefined;
44483
+ extrapolation_mode?: string | null | undefined;
44484
+ } | {
44485
+ query: string;
44486
+ environment: string | null;
44487
+ dataset: "events_analytics_platform";
44488
+ aggregate: string;
44489
+ time_window: number;
44490
+ event_types: ["trace_item_metric"];
44491
+ query_type?: 1 | undefined;
44492
+ extrapolation_mode?: string | null | undefined;
44493
+ } | {
44494
+ query: string;
44495
+ environment: string | null;
44496
+ dataset: "metrics";
44497
+ aggregate: string;
44498
+ time_window: number;
44499
+ event_types: string[];
44500
+ query_type?: 2 | undefined;
44501
+ extrapolation_mode?: string | null | undefined;
44502
+ })[] | undefined;
44008
44503
  config?: Record<string, unknown> | undefined;
44009
44504
  condition_group?: {
44010
44505
  logic_type: "any" | "any-short" | "all" | "none";
@@ -44025,7 +44520,52 @@ export declare const zUpdateOrganizationDetectorData: z.ZodObject<{
44025
44520
  enabled?: boolean | undefined;
44026
44521
  description?: string | null | undefined;
44027
44522
  workflow_ids?: number[] | undefined;
44028
- data_sources?: unknown[] | undefined;
44523
+ data_sources?: ({
44524
+ query: string;
44525
+ environment: string | null;
44526
+ dataset: "events";
44527
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
44528
+ time_window: number;
44529
+ event_types: ("default" | "error")[];
44530
+ query_type?: 0 | undefined;
44531
+ extrapolation_mode?: string | null | undefined;
44532
+ } | {
44533
+ query: string;
44534
+ environment: string | null;
44535
+ dataset: "events_analytics_platform";
44536
+ aggregate: string;
44537
+ time_window: number;
44538
+ event_types: ["trace_item_span"];
44539
+ query_type?: 1 | undefined;
44540
+ extrapolation_mode?: string | null | undefined;
44541
+ } | {
44542
+ query: string;
44543
+ environment: string | null;
44544
+ dataset: "events_analytics_platform";
44545
+ aggregate: string;
44546
+ time_window: number;
44547
+ event_types: ["trace_item_log"];
44548
+ query_type?: 1 | undefined;
44549
+ extrapolation_mode?: string | null | undefined;
44550
+ } | {
44551
+ query: string;
44552
+ environment: string | null;
44553
+ dataset: "events_analytics_platform";
44554
+ aggregate: string;
44555
+ time_window: number;
44556
+ event_types: ["trace_item_metric"];
44557
+ query_type?: 1 | undefined;
44558
+ extrapolation_mode?: string | null | undefined;
44559
+ } | {
44560
+ query: string;
44561
+ environment: string | null;
44562
+ dataset: "metrics";
44563
+ aggregate: string;
44564
+ time_window: number;
44565
+ event_types: string[];
44566
+ query_type?: 2 | undefined;
44567
+ extrapolation_mode?: string | null | undefined;
44568
+ })[] | undefined;
44029
44569
  config?: Record<string, unknown> | undefined;
44030
44570
  condition_group?: {
44031
44571
  logic_type: "any" | "any-short" | "all" | "none";
@@ -58708,7 +59248,142 @@ export declare const zCreateOrganizationProjectDetectorData: z.ZodObject<{
58708
59248
  name: z.ZodString;
58709
59249
  type: z.ZodString;
58710
59250
  workflow_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
58711
- data_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
59251
+ data_sources: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
59252
+ query_type: z.ZodOptional<z.ZodLiteral<0>>;
59253
+ dataset: z.ZodEnum<["events"]>;
59254
+ query: z.ZodString;
59255
+ aggregate: z.ZodEnum<["count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])"]>;
59256
+ time_window: z.ZodNumber;
59257
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
59258
+ event_types: z.ZodArray<z.ZodEnum<["error", "default"]>, "many">;
59259
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
59260
+ }, "strip", z.ZodTypeAny, {
59261
+ query: string;
59262
+ environment: string | null;
59263
+ dataset: "events";
59264
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
59265
+ time_window: number;
59266
+ event_types: ("default" | "error")[];
59267
+ query_type?: 0 | undefined;
59268
+ extrapolation_mode?: string | null | undefined;
59269
+ }, {
59270
+ query: string;
59271
+ environment: string | null;
59272
+ dataset: "events";
59273
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
59274
+ time_window: number;
59275
+ event_types: ("default" | "error")[];
59276
+ query_type?: 0 | undefined;
59277
+ extrapolation_mode?: string | null | undefined;
59278
+ }>, z.ZodObject<{
59279
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
59280
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
59281
+ query: z.ZodString;
59282
+ aggregate: z.ZodString;
59283
+ time_window: z.ZodNumber;
59284
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
59285
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_span"]>], null>;
59286
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
59287
+ }, "strip", z.ZodTypeAny, {
59288
+ query: string;
59289
+ environment: string | null;
59290
+ dataset: "events_analytics_platform";
59291
+ aggregate: string;
59292
+ time_window: number;
59293
+ event_types: ["trace_item_span"];
59294
+ query_type?: 1 | undefined;
59295
+ extrapolation_mode?: string | null | undefined;
59296
+ }, {
59297
+ query: string;
59298
+ environment: string | null;
59299
+ dataset: "events_analytics_platform";
59300
+ aggregate: string;
59301
+ time_window: number;
59302
+ event_types: ["trace_item_span"];
59303
+ query_type?: 1 | undefined;
59304
+ extrapolation_mode?: string | null | undefined;
59305
+ }>, z.ZodObject<{
59306
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
59307
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
59308
+ query: z.ZodString;
59309
+ aggregate: z.ZodString;
59310
+ time_window: z.ZodNumber;
59311
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
59312
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_log"]>], null>;
59313
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
59314
+ }, "strip", z.ZodTypeAny, {
59315
+ query: string;
59316
+ environment: string | null;
59317
+ dataset: "events_analytics_platform";
59318
+ aggregate: string;
59319
+ time_window: number;
59320
+ event_types: ["trace_item_log"];
59321
+ query_type?: 1 | undefined;
59322
+ extrapolation_mode?: string | null | undefined;
59323
+ }, {
59324
+ query: string;
59325
+ environment: string | null;
59326
+ dataset: "events_analytics_platform";
59327
+ aggregate: string;
59328
+ time_window: number;
59329
+ event_types: ["trace_item_log"];
59330
+ query_type?: 1 | undefined;
59331
+ extrapolation_mode?: string | null | undefined;
59332
+ }>, z.ZodObject<{
59333
+ query_type: z.ZodOptional<z.ZodLiteral<1>>;
59334
+ dataset: z.ZodEnum<["events_analytics_platform"]>;
59335
+ query: z.ZodString;
59336
+ aggregate: z.ZodString;
59337
+ time_window: z.ZodNumber;
59338
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
59339
+ event_types: z.ZodTuple<[z.ZodEnum<["trace_item_metric"]>], null>;
59340
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
59341
+ }, "strip", z.ZodTypeAny, {
59342
+ query: string;
59343
+ environment: string | null;
59344
+ dataset: "events_analytics_platform";
59345
+ aggregate: string;
59346
+ time_window: number;
59347
+ event_types: ["trace_item_metric"];
59348
+ query_type?: 1 | undefined;
59349
+ extrapolation_mode?: string | null | undefined;
59350
+ }, {
59351
+ query: string;
59352
+ environment: string | null;
59353
+ dataset: "events_analytics_platform";
59354
+ aggregate: string;
59355
+ time_window: number;
59356
+ event_types: ["trace_item_metric"];
59357
+ query_type?: 1 | undefined;
59358
+ extrapolation_mode?: string | null | undefined;
59359
+ }>, z.ZodObject<{
59360
+ query_type: z.ZodOptional<z.ZodLiteral<2>>;
59361
+ dataset: z.ZodEnum<["metrics"]>;
59362
+ query: z.ZodString;
59363
+ aggregate: z.ZodString;
59364
+ time_window: z.ZodNumber;
59365
+ environment: z.ZodUnion<[z.ZodString, z.ZodNull]>;
59366
+ event_types: z.ZodArray<z.ZodString, "many">;
59367
+ extrapolation_mode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
59368
+ }, "strip", z.ZodTypeAny, {
59369
+ query: string;
59370
+ environment: string | null;
59371
+ dataset: "metrics";
59372
+ aggregate: string;
59373
+ time_window: number;
59374
+ event_types: string[];
59375
+ query_type?: 2 | undefined;
59376
+ extrapolation_mode?: string | null | undefined;
59377
+ }, {
59378
+ query: string;
59379
+ environment: string | null;
59380
+ dataset: "metrics";
59381
+ aggregate: string;
59382
+ time_window: number;
59383
+ event_types: string[];
59384
+ query_type?: 2 | undefined;
59385
+ extrapolation_mode?: string | null | undefined;
59386
+ }>]>, "many">>;
58712
59387
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
58713
59388
  condition_group: z.ZodOptional<z.ZodObject<{
58714
59389
  id: z.ZodOptional<z.ZodNumber>;
@@ -58733,7 +59408,52 @@ export declare const zCreateOrganizationProjectDetectorData: z.ZodObject<{
58733
59408
  enabled?: boolean | undefined;
58734
59409
  description?: string | null | undefined;
58735
59410
  workflow_ids?: number[] | undefined;
58736
- data_sources?: unknown[] | undefined;
59411
+ data_sources?: ({
59412
+ query: string;
59413
+ environment: string | null;
59414
+ dataset: "events";
59415
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
59416
+ time_window: number;
59417
+ event_types: ("default" | "error")[];
59418
+ query_type?: 0 | undefined;
59419
+ extrapolation_mode?: string | null | undefined;
59420
+ } | {
59421
+ query: string;
59422
+ environment: string | null;
59423
+ dataset: "events_analytics_platform";
59424
+ aggregate: string;
59425
+ time_window: number;
59426
+ event_types: ["trace_item_span"];
59427
+ query_type?: 1 | undefined;
59428
+ extrapolation_mode?: string | null | undefined;
59429
+ } | {
59430
+ query: string;
59431
+ environment: string | null;
59432
+ dataset: "events_analytics_platform";
59433
+ aggregate: string;
59434
+ time_window: number;
59435
+ event_types: ["trace_item_log"];
59436
+ query_type?: 1 | undefined;
59437
+ extrapolation_mode?: string | null | undefined;
59438
+ } | {
59439
+ query: string;
59440
+ environment: string | null;
59441
+ dataset: "events_analytics_platform";
59442
+ aggregate: string;
59443
+ time_window: number;
59444
+ event_types: ["trace_item_metric"];
59445
+ query_type?: 1 | undefined;
59446
+ extrapolation_mode?: string | null | undefined;
59447
+ } | {
59448
+ query: string;
59449
+ environment: string | null;
59450
+ dataset: "metrics";
59451
+ aggregate: string;
59452
+ time_window: number;
59453
+ event_types: string[];
59454
+ query_type?: 2 | undefined;
59455
+ extrapolation_mode?: string | null | undefined;
59456
+ })[] | undefined;
58737
59457
  config?: Record<string, unknown> | undefined;
58738
59458
  condition_group?: {
58739
59459
  logic_type: "any" | "any-short" | "all" | "none";
@@ -58747,7 +59467,52 @@ export declare const zCreateOrganizationProjectDetectorData: z.ZodObject<{
58747
59467
  enabled?: boolean | undefined;
58748
59468
  description?: string | null | undefined;
58749
59469
  workflow_ids?: number[] | undefined;
58750
- data_sources?: unknown[] | undefined;
59470
+ data_sources?: ({
59471
+ query: string;
59472
+ environment: string | null;
59473
+ dataset: "events";
59474
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
59475
+ time_window: number;
59476
+ event_types: ("default" | "error")[];
59477
+ query_type?: 0 | undefined;
59478
+ extrapolation_mode?: string | null | undefined;
59479
+ } | {
59480
+ query: string;
59481
+ environment: string | null;
59482
+ dataset: "events_analytics_platform";
59483
+ aggregate: string;
59484
+ time_window: number;
59485
+ event_types: ["trace_item_span"];
59486
+ query_type?: 1 | undefined;
59487
+ extrapolation_mode?: string | null | undefined;
59488
+ } | {
59489
+ query: string;
59490
+ environment: string | null;
59491
+ dataset: "events_analytics_platform";
59492
+ aggregate: string;
59493
+ time_window: number;
59494
+ event_types: ["trace_item_log"];
59495
+ query_type?: 1 | undefined;
59496
+ extrapolation_mode?: string | null | undefined;
59497
+ } | {
59498
+ query: string;
59499
+ environment: string | null;
59500
+ dataset: "events_analytics_platform";
59501
+ aggregate: string;
59502
+ time_window: number;
59503
+ event_types: ["trace_item_metric"];
59504
+ query_type?: 1 | undefined;
59505
+ extrapolation_mode?: string | null | undefined;
59506
+ } | {
59507
+ query: string;
59508
+ environment: string | null;
59509
+ dataset: "metrics";
59510
+ aggregate: string;
59511
+ time_window: number;
59512
+ event_types: string[];
59513
+ query_type?: 2 | undefined;
59514
+ extrapolation_mode?: string | null | undefined;
59515
+ })[] | undefined;
58751
59516
  config?: Record<string, unknown> | undefined;
58752
59517
  condition_group?: {
58753
59518
  logic_type: "any" | "any-short" | "all" | "none";
@@ -58774,7 +59539,52 @@ export declare const zCreateOrganizationProjectDetectorData: z.ZodObject<{
58774
59539
  enabled?: boolean | undefined;
58775
59540
  description?: string | null | undefined;
58776
59541
  workflow_ids?: number[] | undefined;
58777
- data_sources?: unknown[] | undefined;
59542
+ data_sources?: ({
59543
+ query: string;
59544
+ environment: string | null;
59545
+ dataset: "events";
59546
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
59547
+ time_window: number;
59548
+ event_types: ("default" | "error")[];
59549
+ query_type?: 0 | undefined;
59550
+ extrapolation_mode?: string | null | undefined;
59551
+ } | {
59552
+ query: string;
59553
+ environment: string | null;
59554
+ dataset: "events_analytics_platform";
59555
+ aggregate: string;
59556
+ time_window: number;
59557
+ event_types: ["trace_item_span"];
59558
+ query_type?: 1 | undefined;
59559
+ extrapolation_mode?: string | null | undefined;
59560
+ } | {
59561
+ query: string;
59562
+ environment: string | null;
59563
+ dataset: "events_analytics_platform";
59564
+ aggregate: string;
59565
+ time_window: number;
59566
+ event_types: ["trace_item_log"];
59567
+ query_type?: 1 | undefined;
59568
+ extrapolation_mode?: string | null | undefined;
59569
+ } | {
59570
+ query: string;
59571
+ environment: string | null;
59572
+ dataset: "events_analytics_platform";
59573
+ aggregate: string;
59574
+ time_window: number;
59575
+ event_types: ["trace_item_metric"];
59576
+ query_type?: 1 | undefined;
59577
+ extrapolation_mode?: string | null | undefined;
59578
+ } | {
59579
+ query: string;
59580
+ environment: string | null;
59581
+ dataset: "metrics";
59582
+ aggregate: string;
59583
+ time_window: number;
59584
+ event_types: string[];
59585
+ query_type?: 2 | undefined;
59586
+ extrapolation_mode?: string | null | undefined;
59587
+ })[] | undefined;
58778
59588
  config?: Record<string, unknown> | undefined;
58779
59589
  condition_group?: {
58780
59590
  logic_type: "any" | "any-short" | "all" | "none";
@@ -58795,7 +59605,52 @@ export declare const zCreateOrganizationProjectDetectorData: z.ZodObject<{
58795
59605
  enabled?: boolean | undefined;
58796
59606
  description?: string | null | undefined;
58797
59607
  workflow_ids?: number[] | undefined;
58798
- data_sources?: unknown[] | undefined;
59608
+ data_sources?: ({
59609
+ query: string;
59610
+ environment: string | null;
59611
+ dataset: "events";
59612
+ aggregate: "count()" | "count_unique(user)" | "count_unique(dist)" | "count_unique(release)" | "count_unique(tags[sentry:user])" | "count_unique(tags[sentry:dist])" | "count_unique(tags[sentry:release])";
59613
+ time_window: number;
59614
+ event_types: ("default" | "error")[];
59615
+ query_type?: 0 | undefined;
59616
+ extrapolation_mode?: string | null | undefined;
59617
+ } | {
59618
+ query: string;
59619
+ environment: string | null;
59620
+ dataset: "events_analytics_platform";
59621
+ aggregate: string;
59622
+ time_window: number;
59623
+ event_types: ["trace_item_span"];
59624
+ query_type?: 1 | undefined;
59625
+ extrapolation_mode?: string | null | undefined;
59626
+ } | {
59627
+ query: string;
59628
+ environment: string | null;
59629
+ dataset: "events_analytics_platform";
59630
+ aggregate: string;
59631
+ time_window: number;
59632
+ event_types: ["trace_item_log"];
59633
+ query_type?: 1 | undefined;
59634
+ extrapolation_mode?: string | null | undefined;
59635
+ } | {
59636
+ query: string;
59637
+ environment: string | null;
59638
+ dataset: "events_analytics_platform";
59639
+ aggregate: string;
59640
+ time_window: number;
59641
+ event_types: ["trace_item_metric"];
59642
+ query_type?: 1 | undefined;
59643
+ extrapolation_mode?: string | null | undefined;
59644
+ } | {
59645
+ query: string;
59646
+ environment: string | null;
59647
+ dataset: "metrics";
59648
+ aggregate: string;
59649
+ time_window: number;
59650
+ event_types: string[];
59651
+ query_type?: 2 | undefined;
59652
+ extrapolation_mode?: string | null | undefined;
59653
+ })[] | undefined;
58799
59654
  config?: Record<string, unknown> | undefined;
58800
59655
  condition_group?: {
58801
59656
  logic_type: "any" | "any-short" | "all" | "none";
@@ -68956,7 +69811,7 @@ export declare const zListOrganizationTagsData: z.ZodObject<{
68956
69811
  statsPeriod?: string | undefined;
68957
69812
  start?: string | undefined;
68958
69813
  end?: string | undefined;
68959
- dataset?: "discover" | "search_issues" | "replays" | "events" | undefined;
69814
+ dataset?: "events" | "discover" | "search_issues" | "replays" | undefined;
68960
69815
  use_cache?: "0" | "1" | undefined;
68961
69816
  useFlagsBackend?: "0" | "1" | undefined;
68962
69817
  }, {
@@ -68965,7 +69820,7 @@ export declare const zListOrganizationTagsData: z.ZodObject<{
68965
69820
  statsPeriod?: string | undefined;
68966
69821
  start?: string | undefined;
68967
69822
  end?: string | undefined;
68968
- dataset?: "discover" | "search_issues" | "replays" | "events" | undefined;
69823
+ dataset?: "events" | "discover" | "search_issues" | "replays" | undefined;
68969
69824
  use_cache?: "0" | "1" | undefined;
68970
69825
  useFlagsBackend?: "0" | "1" | undefined;
68971
69826
  }>>;
@@ -68979,7 +69834,7 @@ export declare const zListOrganizationTagsData: z.ZodObject<{
68979
69834
  statsPeriod?: string | undefined;
68980
69835
  start?: string | undefined;
68981
69836
  end?: string | undefined;
68982
- dataset?: "discover" | "search_issues" | "replays" | "events" | undefined;
69837
+ dataset?: "events" | "discover" | "search_issues" | "replays" | undefined;
68983
69838
  use_cache?: "0" | "1" | undefined;
68984
69839
  useFlagsBackend?: "0" | "1" | undefined;
68985
69840
  } | undefined;
@@ -68994,7 +69849,7 @@ export declare const zListOrganizationTagsData: z.ZodObject<{
68994
69849
  statsPeriod?: string | undefined;
68995
69850
  start?: string | undefined;
68996
69851
  end?: string | undefined;
68997
- dataset?: "discover" | "search_issues" | "replays" | "events" | undefined;
69852
+ dataset?: "events" | "discover" | "search_issues" | "replays" | undefined;
68998
69853
  use_cache?: "0" | "1" | undefined;
68999
69854
  useFlagsBackend?: "0" | "1" | undefined;
69000
69855
  } | undefined;
@@ -91914,15 +92769,15 @@ export declare const zListProjectHooksResponse: z.ZodArray<z.ZodObject<{
91914
92769
  url: z.ZodString;
91915
92770
  }, "strip", z.ZodTypeAny, {
91916
92771
  url: string;
91917
- id: string;
91918
92772
  events: string[];
92773
+ id: string;
91919
92774
  status: string;
91920
92775
  dateCreated: string;
91921
92776
  secret: string;
91922
92777
  }, {
91923
92778
  url: string;
91924
- id: string;
91925
92779
  events: string[];
92780
+ id: string;
91926
92781
  status: string;
91927
92782
  dateCreated: string;
91928
92783
  secret: string;
@@ -91982,15 +92837,15 @@ export declare const zCreateProjectHookResponse: z.ZodObject<{
91982
92837
  url: z.ZodString;
91983
92838
  }, "strip", z.ZodTypeAny, {
91984
92839
  url: string;
91985
- id: string;
91986
92840
  events: string[];
92841
+ id: string;
91987
92842
  status: string;
91988
92843
  dateCreated: string;
91989
92844
  secret: string;
91990
92845
  }, {
91991
92846
  url: string;
91992
- id: string;
91993
92847
  events: string[];
92848
+ id: string;
91994
92849
  status: string;
91995
92850
  dateCreated: string;
91996
92851
  secret: string;
@@ -92077,15 +92932,15 @@ export declare const zGetProjectHookResponse: z.ZodObject<{
92077
92932
  url: z.ZodString;
92078
92933
  }, "strip", z.ZodTypeAny, {
92079
92934
  url: string;
92080
- id: string;
92081
92935
  events: string[];
92936
+ id: string;
92082
92937
  status: string;
92083
92938
  dateCreated: string;
92084
92939
  secret: string;
92085
92940
  }, {
92086
92941
  url: string;
92087
- id: string;
92088
92942
  events: string[];
92943
+ id: string;
92089
92944
  status: string;
92090
92945
  dateCreated: string;
92091
92946
  secret: string;
@@ -92150,15 +93005,15 @@ export declare const zUpdateProjectHookResponse: z.ZodObject<{
92150
93005
  url: z.ZodString;
92151
93006
  }, "strip", z.ZodTypeAny, {
92152
93007
  url: string;
92153
- id: string;
92154
93008
  events: string[];
93009
+ id: string;
92155
93010
  status: string;
92156
93011
  dateCreated: string;
92157
93012
  secret: string;
92158
93013
  }, {
92159
93014
  url: string;
92160
- id: string;
92161
93015
  events: string[];
93016
+ id: string;
92162
93017
  status: string;
92163
93018
  dateCreated: string;
92164
93019
  secret: string;