@sentry/api 0.435.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/types.gen.d.ts +267 -9
- package/dist/zod.gen.d.ts +904 -49
- package/dist/zod.js +270 -3
- package/package.json +1 -1
package/dist/zod.js
CHANGED
|
@@ -79,7 +79,96 @@ var zBaseDetectorTypeValidator = /* @__PURE__ */ z.object({
|
|
|
79
79
|
name: /* @__PURE__ */ z.string().max(200),
|
|
80
80
|
type: /* @__PURE__ */ z.string(),
|
|
81
81
|
workflow_ids: /* @__PURE__ */ z.array(/* @__PURE__ */ z.number().int()).optional(),
|
|
82
|
-
data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.
|
|
82
|
+
data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.union([
|
|
83
|
+
/* @__PURE__ */ z.object({
|
|
84
|
+
query_type: /* @__PURE__ */ z.literal(0).optional(),
|
|
85
|
+
dataset: /* @__PURE__ */ z.enum(["events"]),
|
|
86
|
+
query: /* @__PURE__ */ z.string(),
|
|
87
|
+
aggregate: /* @__PURE__ */ z.enum([
|
|
88
|
+
"count()",
|
|
89
|
+
"count_unique(user)",
|
|
90
|
+
"count_unique(dist)",
|
|
91
|
+
"count_unique(release)",
|
|
92
|
+
"count_unique(tags[sentry:user])",
|
|
93
|
+
"count_unique(tags[sentry:dist])",
|
|
94
|
+
"count_unique(tags[sentry:release])"
|
|
95
|
+
]),
|
|
96
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
97
|
+
environment: /* @__PURE__ */ z.union([
|
|
98
|
+
/* @__PURE__ */ z.string(),
|
|
99
|
+
/* @__PURE__ */ z.null()
|
|
100
|
+
]),
|
|
101
|
+
event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["error", "default"])).min(1).max(2),
|
|
102
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
103
|
+
/* @__PURE__ */ z.string(),
|
|
104
|
+
/* @__PURE__ */ z.null()
|
|
105
|
+
]).optional()
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ z.object({
|
|
108
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
109
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
110
|
+
query: /* @__PURE__ */ z.string(),
|
|
111
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\(.*\)$/),
|
|
112
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
113
|
+
environment: /* @__PURE__ */ z.union([
|
|
114
|
+
/* @__PURE__ */ z.string(),
|
|
115
|
+
/* @__PURE__ */ z.null()
|
|
116
|
+
]),
|
|
117
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_span"])]),
|
|
118
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
119
|
+
/* @__PURE__ */ z.string(),
|
|
120
|
+
/* @__PURE__ */ z.null()
|
|
121
|
+
]).optional()
|
|
122
|
+
}),
|
|
123
|
+
/* @__PURE__ */ z.object({
|
|
124
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
125
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
126
|
+
query: /* @__PURE__ */ z.string(),
|
|
127
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\(.*\)$/),
|
|
128
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
129
|
+
environment: /* @__PURE__ */ z.union([
|
|
130
|
+
/* @__PURE__ */ z.string(),
|
|
131
|
+
/* @__PURE__ */ z.null()
|
|
132
|
+
]),
|
|
133
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_log"])]),
|
|
134
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
135
|
+
/* @__PURE__ */ z.string(),
|
|
136
|
+
/* @__PURE__ */ z.null()
|
|
137
|
+
]).optional()
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ z.object({
|
|
140
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
141
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
142
|
+
query: /* @__PURE__ */ z.string(),
|
|
143
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|sum|sum_if)\(.*\)|equation\|.+)$/),
|
|
144
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
145
|
+
environment: /* @__PURE__ */ z.union([
|
|
146
|
+
/* @__PURE__ */ z.string(),
|
|
147
|
+
/* @__PURE__ */ z.null()
|
|
148
|
+
]),
|
|
149
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_metric"])]),
|
|
150
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
151
|
+
/* @__PURE__ */ z.string(),
|
|
152
|
+
/* @__PURE__ */ z.null()
|
|
153
|
+
]).optional()
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ z.object({
|
|
156
|
+
query_type: /* @__PURE__ */ z.literal(2).optional(),
|
|
157
|
+
dataset: /* @__PURE__ */ z.enum(["metrics"]),
|
|
158
|
+
query: /* @__PURE__ */ z.string(),
|
|
159
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^percentage\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\)/),
|
|
160
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
161
|
+
environment: /* @__PURE__ */ z.union([
|
|
162
|
+
/* @__PURE__ */ z.string(),
|
|
163
|
+
/* @__PURE__ */ z.null()
|
|
164
|
+
]),
|
|
165
|
+
event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
166
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
167
|
+
/* @__PURE__ */ z.string(),
|
|
168
|
+
/* @__PURE__ */ z.null()
|
|
169
|
+
]).optional()
|
|
170
|
+
})
|
|
171
|
+
])).optional(),
|
|
83
172
|
config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()).optional(),
|
|
84
173
|
condition_group: /* @__PURE__ */ z.object({
|
|
85
174
|
id: /* @__PURE__ */ z.number().int().optional(),
|
|
@@ -16321,7 +16410,96 @@ var zUpdateOrganizationDetectorData = /* @__PURE__ */ z.object({
|
|
|
16321
16410
|
name: /* @__PURE__ */ z.string().max(200),
|
|
16322
16411
|
type: /* @__PURE__ */ z.string(),
|
|
16323
16412
|
workflow_ids: /* @__PURE__ */ z.array(/* @__PURE__ */ z.number().int()).optional(),
|
|
16324
|
-
data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.
|
|
16413
|
+
data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.union([
|
|
16414
|
+
/* @__PURE__ */ z.object({
|
|
16415
|
+
query_type: /* @__PURE__ */ z.literal(0).optional(),
|
|
16416
|
+
dataset: /* @__PURE__ */ z.enum(["events"]),
|
|
16417
|
+
query: /* @__PURE__ */ z.string(),
|
|
16418
|
+
aggregate: /* @__PURE__ */ z.enum([
|
|
16419
|
+
"count()",
|
|
16420
|
+
"count_unique(user)",
|
|
16421
|
+
"count_unique(dist)",
|
|
16422
|
+
"count_unique(release)",
|
|
16423
|
+
"count_unique(tags[sentry:user])",
|
|
16424
|
+
"count_unique(tags[sentry:dist])",
|
|
16425
|
+
"count_unique(tags[sentry:release])"
|
|
16426
|
+
]),
|
|
16427
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
16428
|
+
environment: /* @__PURE__ */ z.union([
|
|
16429
|
+
/* @__PURE__ */ z.string(),
|
|
16430
|
+
/* @__PURE__ */ z.null()
|
|
16431
|
+
]),
|
|
16432
|
+
event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["error", "default"])).min(1).max(2),
|
|
16433
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
16434
|
+
/* @__PURE__ */ z.string(),
|
|
16435
|
+
/* @__PURE__ */ z.null()
|
|
16436
|
+
]).optional()
|
|
16437
|
+
}),
|
|
16438
|
+
/* @__PURE__ */ z.object({
|
|
16439
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
16440
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
16441
|
+
query: /* @__PURE__ */ z.string(),
|
|
16442
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\(.*\)$/),
|
|
16443
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
16444
|
+
environment: /* @__PURE__ */ z.union([
|
|
16445
|
+
/* @__PURE__ */ z.string(),
|
|
16446
|
+
/* @__PURE__ */ z.null()
|
|
16447
|
+
]),
|
|
16448
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_span"])]),
|
|
16449
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
16450
|
+
/* @__PURE__ */ z.string(),
|
|
16451
|
+
/* @__PURE__ */ z.null()
|
|
16452
|
+
]).optional()
|
|
16453
|
+
}),
|
|
16454
|
+
/* @__PURE__ */ z.object({
|
|
16455
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
16456
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
16457
|
+
query: /* @__PURE__ */ z.string(),
|
|
16458
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\(.*\)$/),
|
|
16459
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
16460
|
+
environment: /* @__PURE__ */ z.union([
|
|
16461
|
+
/* @__PURE__ */ z.string(),
|
|
16462
|
+
/* @__PURE__ */ z.null()
|
|
16463
|
+
]),
|
|
16464
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_log"])]),
|
|
16465
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
16466
|
+
/* @__PURE__ */ z.string(),
|
|
16467
|
+
/* @__PURE__ */ z.null()
|
|
16468
|
+
]).optional()
|
|
16469
|
+
}),
|
|
16470
|
+
/* @__PURE__ */ z.object({
|
|
16471
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
16472
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
16473
|
+
query: /* @__PURE__ */ z.string(),
|
|
16474
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|sum|sum_if)\(.*\)|equation\|.+)$/),
|
|
16475
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
16476
|
+
environment: /* @__PURE__ */ z.union([
|
|
16477
|
+
/* @__PURE__ */ z.string(),
|
|
16478
|
+
/* @__PURE__ */ z.null()
|
|
16479
|
+
]),
|
|
16480
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_metric"])]),
|
|
16481
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
16482
|
+
/* @__PURE__ */ z.string(),
|
|
16483
|
+
/* @__PURE__ */ z.null()
|
|
16484
|
+
]).optional()
|
|
16485
|
+
}),
|
|
16486
|
+
/* @__PURE__ */ z.object({
|
|
16487
|
+
query_type: /* @__PURE__ */ z.literal(2).optional(),
|
|
16488
|
+
dataset: /* @__PURE__ */ z.enum(["metrics"]),
|
|
16489
|
+
query: /* @__PURE__ */ z.string(),
|
|
16490
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^percentage\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\)/),
|
|
16491
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
16492
|
+
environment: /* @__PURE__ */ z.union([
|
|
16493
|
+
/* @__PURE__ */ z.string(),
|
|
16494
|
+
/* @__PURE__ */ z.null()
|
|
16495
|
+
]),
|
|
16496
|
+
event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
16497
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
16498
|
+
/* @__PURE__ */ z.string(),
|
|
16499
|
+
/* @__PURE__ */ z.null()
|
|
16500
|
+
]).optional()
|
|
16501
|
+
})
|
|
16502
|
+
])).optional(),
|
|
16325
16503
|
config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()).optional(),
|
|
16326
16504
|
condition_group: /* @__PURE__ */ z.object({
|
|
16327
16505
|
id: /* @__PURE__ */ z.number().int().optional(),
|
|
@@ -22460,7 +22638,96 @@ var zCreateOrganizationProjectDetectorData = /* @__PURE__ */ z.object({
|
|
|
22460
22638
|
name: /* @__PURE__ */ z.string().max(200),
|
|
22461
22639
|
type: /* @__PURE__ */ z.string(),
|
|
22462
22640
|
workflow_ids: /* @__PURE__ */ z.array(/* @__PURE__ */ z.number().int()).optional(),
|
|
22463
|
-
data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.
|
|
22641
|
+
data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.union([
|
|
22642
|
+
/* @__PURE__ */ z.object({
|
|
22643
|
+
query_type: /* @__PURE__ */ z.literal(0).optional(),
|
|
22644
|
+
dataset: /* @__PURE__ */ z.enum(["events"]),
|
|
22645
|
+
query: /* @__PURE__ */ z.string(),
|
|
22646
|
+
aggregate: /* @__PURE__ */ z.enum([
|
|
22647
|
+
"count()",
|
|
22648
|
+
"count_unique(user)",
|
|
22649
|
+
"count_unique(dist)",
|
|
22650
|
+
"count_unique(release)",
|
|
22651
|
+
"count_unique(tags[sentry:user])",
|
|
22652
|
+
"count_unique(tags[sentry:dist])",
|
|
22653
|
+
"count_unique(tags[sentry:release])"
|
|
22654
|
+
]),
|
|
22655
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
22656
|
+
environment: /* @__PURE__ */ z.union([
|
|
22657
|
+
/* @__PURE__ */ z.string(),
|
|
22658
|
+
/* @__PURE__ */ z.null()
|
|
22659
|
+
]),
|
|
22660
|
+
event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["error", "default"])).min(1).max(2),
|
|
22661
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
22662
|
+
/* @__PURE__ */ z.string(),
|
|
22663
|
+
/* @__PURE__ */ z.null()
|
|
22664
|
+
]).optional()
|
|
22665
|
+
}),
|
|
22666
|
+
/* @__PURE__ */ z.object({
|
|
22667
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
22668
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
22669
|
+
query: /* @__PURE__ */ z.string(),
|
|
22670
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\(.*\)$/),
|
|
22671
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
22672
|
+
environment: /* @__PURE__ */ z.union([
|
|
22673
|
+
/* @__PURE__ */ z.string(),
|
|
22674
|
+
/* @__PURE__ */ z.null()
|
|
22675
|
+
]),
|
|
22676
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_span"])]),
|
|
22677
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
22678
|
+
/* @__PURE__ */ z.string(),
|
|
22679
|
+
/* @__PURE__ */ z.null()
|
|
22680
|
+
]).optional()
|
|
22681
|
+
}),
|
|
22682
|
+
/* @__PURE__ */ z.object({
|
|
22683
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
22684
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
22685
|
+
query: /* @__PURE__ */ z.string(),
|
|
22686
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\(.*\)$/),
|
|
22687
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
22688
|
+
environment: /* @__PURE__ */ z.union([
|
|
22689
|
+
/* @__PURE__ */ z.string(),
|
|
22690
|
+
/* @__PURE__ */ z.null()
|
|
22691
|
+
]),
|
|
22692
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_log"])]),
|
|
22693
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
22694
|
+
/* @__PURE__ */ z.string(),
|
|
22695
|
+
/* @__PURE__ */ z.null()
|
|
22696
|
+
]).optional()
|
|
22697
|
+
}),
|
|
22698
|
+
/* @__PURE__ */ z.object({
|
|
22699
|
+
query_type: /* @__PURE__ */ z.literal(1).optional(),
|
|
22700
|
+
dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
|
|
22701
|
+
query: /* @__PURE__ */ z.string(),
|
|
22702
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|sum|sum_if)\(.*\)|equation\|.+)$/),
|
|
22703
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
22704
|
+
environment: /* @__PURE__ */ z.union([
|
|
22705
|
+
/* @__PURE__ */ z.string(),
|
|
22706
|
+
/* @__PURE__ */ z.null()
|
|
22707
|
+
]),
|
|
22708
|
+
event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_metric"])]),
|
|
22709
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
22710
|
+
/* @__PURE__ */ z.string(),
|
|
22711
|
+
/* @__PURE__ */ z.null()
|
|
22712
|
+
]).optional()
|
|
22713
|
+
}),
|
|
22714
|
+
/* @__PURE__ */ z.object({
|
|
22715
|
+
query_type: /* @__PURE__ */ z.literal(2).optional(),
|
|
22716
|
+
dataset: /* @__PURE__ */ z.enum(["metrics"]),
|
|
22717
|
+
query: /* @__PURE__ */ z.string(),
|
|
22718
|
+
aggregate: /* @__PURE__ */ z.string().regex(/^percentage\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\)/),
|
|
22719
|
+
time_window: /* @__PURE__ */ z.number().int(),
|
|
22720
|
+
environment: /* @__PURE__ */ z.union([
|
|
22721
|
+
/* @__PURE__ */ z.string(),
|
|
22722
|
+
/* @__PURE__ */ z.null()
|
|
22723
|
+
]),
|
|
22724
|
+
event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
22725
|
+
extrapolation_mode: /* @__PURE__ */ z.union([
|
|
22726
|
+
/* @__PURE__ */ z.string(),
|
|
22727
|
+
/* @__PURE__ */ z.null()
|
|
22728
|
+
]).optional()
|
|
22729
|
+
})
|
|
22730
|
+
])).optional(),
|
|
22464
22731
|
config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()).optional(),
|
|
22465
22732
|
condition_group: /* @__PURE__ */ z.object({
|
|
22466
22733
|
id: /* @__PURE__ */ z.number().int().optional(),
|