@sentry/api 0.435.0 → 0.437.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.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.unknown()).optional(),
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(),
@@ -2978,13 +3067,11 @@ var zEventIdLookupResponse = /* @__PURE__ */ z.object({
2978
3067
  /* @__PURE__ */ z.string(),
2979
3068
  /* @__PURE__ */ z.null()
2980
3069
  ]),
2981
- evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
2982
3070
  evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
2983
3071
  name: /* @__PURE__ */ z.string(),
2984
3072
  value: /* @__PURE__ */ z.string(),
2985
3073
  important: /* @__PURE__ */ z.boolean()
2986
3074
  })),
2987
- type: /* @__PURE__ */ z.number().int(),
2988
3075
  detectionTime: /* @__PURE__ */ z.number(),
2989
3076
  level: /* @__PURE__ */ z.union([
2990
3077
  /* @__PURE__ */ z.string(),
@@ -3001,9 +3088,120 @@ var zEventIdLookupResponse = /* @__PURE__ */ z.object({
3001
3088
  priority: /* @__PURE__ */ z.union([
3002
3089
  /* @__PURE__ */ z.number().int(),
3003
3090
  /* @__PURE__ */ z.null()
3004
- ])
3091
+ ]),
3092
+ type: /* @__PURE__ */ z.literal(8001),
3093
+ evidenceData: /* @__PURE__ */ z.object({
3094
+ detectorId: /* @__PURE__ */ z.number().int(),
3095
+ alertId: /* @__PURE__ */ z.union([
3096
+ /* @__PURE__ */ z.number().int(),
3097
+ /* @__PURE__ */ z.null()
3098
+ ]),
3099
+ value: /* @__PURE__ */ z.union([
3100
+ /* @__PURE__ */ z.number(),
3101
+ /* @__PURE__ */ z.object({
3102
+ value: /* @__PURE__ */ z.number(),
3103
+ sourceId: /* @__PURE__ */ z.string(),
3104
+ subscriptionId: /* @__PURE__ */ z.string(),
3105
+ timestamp: /* @__PURE__ */ z.string()
3106
+ }),
3107
+ /* @__PURE__ */ z.union([
3108
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
3109
+ /* @__PURE__ */ z.null()
3110
+ ])
3111
+ ]),
3112
+ dataPacketSourceId: /* @__PURE__ */ z.string(),
3113
+ conditions: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
3114
+ id: /* @__PURE__ */ z.number().int(),
3115
+ type: /* @__PURE__ */ z.string(),
3116
+ comparison: /* @__PURE__ */ z.union([
3117
+ /* @__PURE__ */ z.number(),
3118
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
3119
+ ]),
3120
+ conditionResult: /* @__PURE__ */ z.number().int()
3121
+ })),
3122
+ config: /* @__PURE__ */ z.object({
3123
+ detectionType: /* @__PURE__ */ z.enum([
3124
+ "static",
3125
+ "percent",
3126
+ "dynamic"
3127
+ ]),
3128
+ comparisonDelta: /* @__PURE__ */ z.union([
3129
+ /* @__PURE__ */ z.number().int(),
3130
+ /* @__PURE__ */ z.null()
3131
+ ]).optional()
3132
+ }),
3133
+ dataSources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
3134
+ id: /* @__PURE__ */ z.string(),
3135
+ organizationId: /* @__PURE__ */ z.string(),
3136
+ type: /* @__PURE__ */ z.string(),
3137
+ sourceId: /* @__PURE__ */ z.string(),
3138
+ queryObj: /* @__PURE__ */ z.object({
3139
+ id: /* @__PURE__ */ z.string(),
3140
+ status: /* @__PURE__ */ z.number().int(),
3141
+ subscription: /* @__PURE__ */ z.union([
3142
+ /* @__PURE__ */ z.string(),
3143
+ /* @__PURE__ */ z.null()
3144
+ ]),
3145
+ snubaQuery: /* @__PURE__ */ z.object({
3146
+ id: /* @__PURE__ */ z.string(),
3147
+ dataset: /* @__PURE__ */ z.string(),
3148
+ query: /* @__PURE__ */ z.string(),
3149
+ aggregate: /* @__PURE__ */ z.string(),
3150
+ timeWindow: /* @__PURE__ */ z.number().int(),
3151
+ environment: /* @__PURE__ */ z.union([
3152
+ /* @__PURE__ */ z.string(),
3153
+ /* @__PURE__ */ z.null()
3154
+ ]),
3155
+ eventTypes: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
3156
+ extrapolationMode: /* @__PURE__ */ z.union([
3157
+ /* @__PURE__ */ z.string(),
3158
+ /* @__PURE__ */ z.null()
3159
+ ])
3160
+ })
3161
+ })
3162
+ }))
3163
+ })
3005
3164
  }),
3006
- /* @__PURE__ */ z.null()
3165
+ /* @__PURE__ */ z.object({
3166
+ id: /* @__PURE__ */ z.string(),
3167
+ projectId: /* @__PURE__ */ z.number().int(),
3168
+ eventId: /* @__PURE__ */ z.string(),
3169
+ fingerprint: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
3170
+ issueTitle: /* @__PURE__ */ z.string(),
3171
+ subtitle: /* @__PURE__ */ z.string(),
3172
+ resourceId: /* @__PURE__ */ z.union([
3173
+ /* @__PURE__ */ z.string(),
3174
+ /* @__PURE__ */ z.null()
3175
+ ]),
3176
+ evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
3177
+ name: /* @__PURE__ */ z.string(),
3178
+ value: /* @__PURE__ */ z.string(),
3179
+ important: /* @__PURE__ */ z.boolean()
3180
+ })),
3181
+ detectionTime: /* @__PURE__ */ z.number(),
3182
+ level: /* @__PURE__ */ z.union([
3183
+ /* @__PURE__ */ z.string(),
3184
+ /* @__PURE__ */ z.null()
3185
+ ]),
3186
+ culprit: /* @__PURE__ */ z.union([
3187
+ /* @__PURE__ */ z.string(),
3188
+ /* @__PURE__ */ z.null()
3189
+ ]),
3190
+ assignee: /* @__PURE__ */ z.union([
3191
+ /* @__PURE__ */ z.string(),
3192
+ /* @__PURE__ */ z.null()
3193
+ ]),
3194
+ priority: /* @__PURE__ */ z.union([
3195
+ /* @__PURE__ */ z.number().int(),
3196
+ /* @__PURE__ */ z.null()
3197
+ ]),
3198
+ type: /* @__PURE__ */ z.number().int(),
3199
+ evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
3200
+ }),
3201
+ /* @__PURE__ */ z.union([
3202
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
3203
+ /* @__PURE__ */ z.null()
3204
+ ])
3007
3205
  ]),
3008
3206
  _meta: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
3009
3207
  crashFile: /* @__PURE__ */ z.union([
@@ -3875,13 +4073,11 @@ var zGroupHashesResponse = /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
3875
4073
  /* @__PURE__ */ z.string(),
3876
4074
  /* @__PURE__ */ z.null()
3877
4075
  ]),
3878
- evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
3879
4076
  evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
3880
4077
  name: /* @__PURE__ */ z.string(),
3881
4078
  value: /* @__PURE__ */ z.string(),
3882
4079
  important: /* @__PURE__ */ z.boolean()
3883
4080
  })),
3884
- type: /* @__PURE__ */ z.number().int(),
3885
4081
  detectionTime: /* @__PURE__ */ z.number(),
3886
4082
  level: /* @__PURE__ */ z.union([
3887
4083
  /* @__PURE__ */ z.string(),
@@ -3898,9 +4094,120 @@ var zGroupHashesResponse = /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
3898
4094
  priority: /* @__PURE__ */ z.union([
3899
4095
  /* @__PURE__ */ z.number().int(),
3900
4096
  /* @__PURE__ */ z.null()
3901
- ])
4097
+ ]),
4098
+ type: /* @__PURE__ */ z.literal(8001),
4099
+ evidenceData: /* @__PURE__ */ z.object({
4100
+ detectorId: /* @__PURE__ */ z.number().int(),
4101
+ alertId: /* @__PURE__ */ z.union([
4102
+ /* @__PURE__ */ z.number().int(),
4103
+ /* @__PURE__ */ z.null()
4104
+ ]),
4105
+ value: /* @__PURE__ */ z.union([
4106
+ /* @__PURE__ */ z.number(),
4107
+ /* @__PURE__ */ z.object({
4108
+ value: /* @__PURE__ */ z.number(),
4109
+ sourceId: /* @__PURE__ */ z.string(),
4110
+ subscriptionId: /* @__PURE__ */ z.string(),
4111
+ timestamp: /* @__PURE__ */ z.string()
4112
+ }),
4113
+ /* @__PURE__ */ z.union([
4114
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
4115
+ /* @__PURE__ */ z.null()
4116
+ ])
4117
+ ]),
4118
+ dataPacketSourceId: /* @__PURE__ */ z.string(),
4119
+ conditions: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
4120
+ id: /* @__PURE__ */ z.number().int(),
4121
+ type: /* @__PURE__ */ z.string(),
4122
+ comparison: /* @__PURE__ */ z.union([
4123
+ /* @__PURE__ */ z.number(),
4124
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
4125
+ ]),
4126
+ conditionResult: /* @__PURE__ */ z.number().int()
4127
+ })),
4128
+ config: /* @__PURE__ */ z.object({
4129
+ detectionType: /* @__PURE__ */ z.enum([
4130
+ "static",
4131
+ "percent",
4132
+ "dynamic"
4133
+ ]),
4134
+ comparisonDelta: /* @__PURE__ */ z.union([
4135
+ /* @__PURE__ */ z.number().int(),
4136
+ /* @__PURE__ */ z.null()
4137
+ ]).optional()
4138
+ }),
4139
+ dataSources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
4140
+ id: /* @__PURE__ */ z.string(),
4141
+ organizationId: /* @__PURE__ */ z.string(),
4142
+ type: /* @__PURE__ */ z.string(),
4143
+ sourceId: /* @__PURE__ */ z.string(),
4144
+ queryObj: /* @__PURE__ */ z.object({
4145
+ id: /* @__PURE__ */ z.string(),
4146
+ status: /* @__PURE__ */ z.number().int(),
4147
+ subscription: /* @__PURE__ */ z.union([
4148
+ /* @__PURE__ */ z.string(),
4149
+ /* @__PURE__ */ z.null()
4150
+ ]),
4151
+ snubaQuery: /* @__PURE__ */ z.object({
4152
+ id: /* @__PURE__ */ z.string(),
4153
+ dataset: /* @__PURE__ */ z.string(),
4154
+ query: /* @__PURE__ */ z.string(),
4155
+ aggregate: /* @__PURE__ */ z.string(),
4156
+ timeWindow: /* @__PURE__ */ z.number().int(),
4157
+ environment: /* @__PURE__ */ z.union([
4158
+ /* @__PURE__ */ z.string(),
4159
+ /* @__PURE__ */ z.null()
4160
+ ]),
4161
+ eventTypes: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
4162
+ extrapolationMode: /* @__PURE__ */ z.union([
4163
+ /* @__PURE__ */ z.string(),
4164
+ /* @__PURE__ */ z.null()
4165
+ ])
4166
+ })
4167
+ })
4168
+ }))
4169
+ })
3902
4170
  }),
3903
- /* @__PURE__ */ z.null()
4171
+ /* @__PURE__ */ z.object({
4172
+ id: /* @__PURE__ */ z.string(),
4173
+ projectId: /* @__PURE__ */ z.number().int(),
4174
+ eventId: /* @__PURE__ */ z.string(),
4175
+ fingerprint: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
4176
+ issueTitle: /* @__PURE__ */ z.string(),
4177
+ subtitle: /* @__PURE__ */ z.string(),
4178
+ resourceId: /* @__PURE__ */ z.union([
4179
+ /* @__PURE__ */ z.string(),
4180
+ /* @__PURE__ */ z.null()
4181
+ ]),
4182
+ evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
4183
+ name: /* @__PURE__ */ z.string(),
4184
+ value: /* @__PURE__ */ z.string(),
4185
+ important: /* @__PURE__ */ z.boolean()
4186
+ })),
4187
+ detectionTime: /* @__PURE__ */ z.number(),
4188
+ level: /* @__PURE__ */ z.union([
4189
+ /* @__PURE__ */ z.string(),
4190
+ /* @__PURE__ */ z.null()
4191
+ ]),
4192
+ culprit: /* @__PURE__ */ z.union([
4193
+ /* @__PURE__ */ z.string(),
4194
+ /* @__PURE__ */ z.null()
4195
+ ]),
4196
+ assignee: /* @__PURE__ */ z.union([
4197
+ /* @__PURE__ */ z.string(),
4198
+ /* @__PURE__ */ z.null()
4199
+ ]),
4200
+ priority: /* @__PURE__ */ z.union([
4201
+ /* @__PURE__ */ z.number().int(),
4202
+ /* @__PURE__ */ z.null()
4203
+ ]),
4204
+ type: /* @__PURE__ */ z.number().int(),
4205
+ evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
4206
+ }),
4207
+ /* @__PURE__ */ z.union([
4208
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
4209
+ /* @__PURE__ */ z.null()
4210
+ ])
3904
4211
  ]),
3905
4212
  _meta: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
3906
4213
  crashFile: /* @__PURE__ */ z.union([
@@ -4651,13 +4958,11 @@ var zIssueEventDetailsResponse = /* @__PURE__ */ z.object({
4651
4958
  /* @__PURE__ */ z.string(),
4652
4959
  /* @__PURE__ */ z.null()
4653
4960
  ]),
4654
- evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
4655
4961
  evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
4656
4962
  name: /* @__PURE__ */ z.string(),
4657
4963
  value: /* @__PURE__ */ z.string(),
4658
4964
  important: /* @__PURE__ */ z.boolean()
4659
4965
  })),
4660
- type: /* @__PURE__ */ z.number().int(),
4661
4966
  detectionTime: /* @__PURE__ */ z.number(),
4662
4967
  level: /* @__PURE__ */ z.union([
4663
4968
  /* @__PURE__ */ z.string(),
@@ -4674,9 +4979,120 @@ var zIssueEventDetailsResponse = /* @__PURE__ */ z.object({
4674
4979
  priority: /* @__PURE__ */ z.union([
4675
4980
  /* @__PURE__ */ z.number().int(),
4676
4981
  /* @__PURE__ */ z.null()
4677
- ])
4982
+ ]),
4983
+ type: /* @__PURE__ */ z.literal(8001),
4984
+ evidenceData: /* @__PURE__ */ z.object({
4985
+ detectorId: /* @__PURE__ */ z.number().int(),
4986
+ alertId: /* @__PURE__ */ z.union([
4987
+ /* @__PURE__ */ z.number().int(),
4988
+ /* @__PURE__ */ z.null()
4989
+ ]),
4990
+ value: /* @__PURE__ */ z.union([
4991
+ /* @__PURE__ */ z.number(),
4992
+ /* @__PURE__ */ z.object({
4993
+ value: /* @__PURE__ */ z.number(),
4994
+ sourceId: /* @__PURE__ */ z.string(),
4995
+ subscriptionId: /* @__PURE__ */ z.string(),
4996
+ timestamp: /* @__PURE__ */ z.string()
4997
+ }),
4998
+ /* @__PURE__ */ z.union([
4999
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
5000
+ /* @__PURE__ */ z.null()
5001
+ ])
5002
+ ]),
5003
+ dataPacketSourceId: /* @__PURE__ */ z.string(),
5004
+ conditions: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
5005
+ id: /* @__PURE__ */ z.number().int(),
5006
+ type: /* @__PURE__ */ z.string(),
5007
+ comparison: /* @__PURE__ */ z.union([
5008
+ /* @__PURE__ */ z.number(),
5009
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
5010
+ ]),
5011
+ conditionResult: /* @__PURE__ */ z.number().int()
5012
+ })),
5013
+ config: /* @__PURE__ */ z.object({
5014
+ detectionType: /* @__PURE__ */ z.enum([
5015
+ "static",
5016
+ "percent",
5017
+ "dynamic"
5018
+ ]),
5019
+ comparisonDelta: /* @__PURE__ */ z.union([
5020
+ /* @__PURE__ */ z.number().int(),
5021
+ /* @__PURE__ */ z.null()
5022
+ ]).optional()
5023
+ }),
5024
+ dataSources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
5025
+ id: /* @__PURE__ */ z.string(),
5026
+ organizationId: /* @__PURE__ */ z.string(),
5027
+ type: /* @__PURE__ */ z.string(),
5028
+ sourceId: /* @__PURE__ */ z.string(),
5029
+ queryObj: /* @__PURE__ */ z.object({
5030
+ id: /* @__PURE__ */ z.string(),
5031
+ status: /* @__PURE__ */ z.number().int(),
5032
+ subscription: /* @__PURE__ */ z.union([
5033
+ /* @__PURE__ */ z.string(),
5034
+ /* @__PURE__ */ z.null()
5035
+ ]),
5036
+ snubaQuery: /* @__PURE__ */ z.object({
5037
+ id: /* @__PURE__ */ z.string(),
5038
+ dataset: /* @__PURE__ */ z.string(),
5039
+ query: /* @__PURE__ */ z.string(),
5040
+ aggregate: /* @__PURE__ */ z.string(),
5041
+ timeWindow: /* @__PURE__ */ z.number().int(),
5042
+ environment: /* @__PURE__ */ z.union([
5043
+ /* @__PURE__ */ z.string(),
5044
+ /* @__PURE__ */ z.null()
5045
+ ]),
5046
+ eventTypes: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
5047
+ extrapolationMode: /* @__PURE__ */ z.union([
5048
+ /* @__PURE__ */ z.string(),
5049
+ /* @__PURE__ */ z.null()
5050
+ ])
5051
+ })
5052
+ })
5053
+ }))
5054
+ })
4678
5055
  }),
4679
- /* @__PURE__ */ z.null()
5056
+ /* @__PURE__ */ z.object({
5057
+ id: /* @__PURE__ */ z.string(),
5058
+ projectId: /* @__PURE__ */ z.number().int(),
5059
+ eventId: /* @__PURE__ */ z.string(),
5060
+ fingerprint: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
5061
+ issueTitle: /* @__PURE__ */ z.string(),
5062
+ subtitle: /* @__PURE__ */ z.string(),
5063
+ resourceId: /* @__PURE__ */ z.union([
5064
+ /* @__PURE__ */ z.string(),
5065
+ /* @__PURE__ */ z.null()
5066
+ ]),
5067
+ evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
5068
+ name: /* @__PURE__ */ z.string(),
5069
+ value: /* @__PURE__ */ z.string(),
5070
+ important: /* @__PURE__ */ z.boolean()
5071
+ })),
5072
+ detectionTime: /* @__PURE__ */ z.number(),
5073
+ level: /* @__PURE__ */ z.union([
5074
+ /* @__PURE__ */ z.string(),
5075
+ /* @__PURE__ */ z.null()
5076
+ ]),
5077
+ culprit: /* @__PURE__ */ z.union([
5078
+ /* @__PURE__ */ z.string(),
5079
+ /* @__PURE__ */ z.null()
5080
+ ]),
5081
+ assignee: /* @__PURE__ */ z.union([
5082
+ /* @__PURE__ */ z.string(),
5083
+ /* @__PURE__ */ z.null()
5084
+ ]),
5085
+ priority: /* @__PURE__ */ z.union([
5086
+ /* @__PURE__ */ z.number().int(),
5087
+ /* @__PURE__ */ z.null()
5088
+ ]),
5089
+ type: /* @__PURE__ */ z.number().int(),
5090
+ evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
5091
+ }),
5092
+ /* @__PURE__ */ z.union([
5093
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
5094
+ /* @__PURE__ */ z.null()
5095
+ ])
4680
5096
  ]),
4681
5097
  _meta: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
4682
5098
  crashFile: /* @__PURE__ */ z.union([
@@ -11067,13 +11483,11 @@ var zProjectEventDetailsResponse = /* @__PURE__ */ z.object({
11067
11483
  /* @__PURE__ */ z.string(),
11068
11484
  /* @__PURE__ */ z.null()
11069
11485
  ]),
11070
- evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
11071
11486
  evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
11072
11487
  name: /* @__PURE__ */ z.string(),
11073
11488
  value: /* @__PURE__ */ z.string(),
11074
11489
  important: /* @__PURE__ */ z.boolean()
11075
11490
  })),
11076
- type: /* @__PURE__ */ z.number().int(),
11077
11491
  detectionTime: /* @__PURE__ */ z.number(),
11078
11492
  level: /* @__PURE__ */ z.union([
11079
11493
  /* @__PURE__ */ z.string(),
@@ -11090,9 +11504,120 @@ var zProjectEventDetailsResponse = /* @__PURE__ */ z.object({
11090
11504
  priority: /* @__PURE__ */ z.union([
11091
11505
  /* @__PURE__ */ z.number().int(),
11092
11506
  /* @__PURE__ */ z.null()
11093
- ])
11507
+ ]),
11508
+ type: /* @__PURE__ */ z.literal(8001),
11509
+ evidenceData: /* @__PURE__ */ z.object({
11510
+ detectorId: /* @__PURE__ */ z.number().int(),
11511
+ alertId: /* @__PURE__ */ z.union([
11512
+ /* @__PURE__ */ z.number().int(),
11513
+ /* @__PURE__ */ z.null()
11514
+ ]),
11515
+ value: /* @__PURE__ */ z.union([
11516
+ /* @__PURE__ */ z.number(),
11517
+ /* @__PURE__ */ z.object({
11518
+ value: /* @__PURE__ */ z.number(),
11519
+ sourceId: /* @__PURE__ */ z.string(),
11520
+ subscriptionId: /* @__PURE__ */ z.string(),
11521
+ timestamp: /* @__PURE__ */ z.string()
11522
+ }),
11523
+ /* @__PURE__ */ z.union([
11524
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
11525
+ /* @__PURE__ */ z.null()
11526
+ ])
11527
+ ]),
11528
+ dataPacketSourceId: /* @__PURE__ */ z.string(),
11529
+ conditions: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
11530
+ id: /* @__PURE__ */ z.number().int(),
11531
+ type: /* @__PURE__ */ z.string(),
11532
+ comparison: /* @__PURE__ */ z.union([
11533
+ /* @__PURE__ */ z.number(),
11534
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
11535
+ ]),
11536
+ conditionResult: /* @__PURE__ */ z.number().int()
11537
+ })),
11538
+ config: /* @__PURE__ */ z.object({
11539
+ detectionType: /* @__PURE__ */ z.enum([
11540
+ "static",
11541
+ "percent",
11542
+ "dynamic"
11543
+ ]),
11544
+ comparisonDelta: /* @__PURE__ */ z.union([
11545
+ /* @__PURE__ */ z.number().int(),
11546
+ /* @__PURE__ */ z.null()
11547
+ ]).optional()
11548
+ }),
11549
+ dataSources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
11550
+ id: /* @__PURE__ */ z.string(),
11551
+ organizationId: /* @__PURE__ */ z.string(),
11552
+ type: /* @__PURE__ */ z.string(),
11553
+ sourceId: /* @__PURE__ */ z.string(),
11554
+ queryObj: /* @__PURE__ */ z.object({
11555
+ id: /* @__PURE__ */ z.string(),
11556
+ status: /* @__PURE__ */ z.number().int(),
11557
+ subscription: /* @__PURE__ */ z.union([
11558
+ /* @__PURE__ */ z.string(),
11559
+ /* @__PURE__ */ z.null()
11560
+ ]),
11561
+ snubaQuery: /* @__PURE__ */ z.object({
11562
+ id: /* @__PURE__ */ z.string(),
11563
+ dataset: /* @__PURE__ */ z.string(),
11564
+ query: /* @__PURE__ */ z.string(),
11565
+ aggregate: /* @__PURE__ */ z.string(),
11566
+ timeWindow: /* @__PURE__ */ z.number().int(),
11567
+ environment: /* @__PURE__ */ z.union([
11568
+ /* @__PURE__ */ z.string(),
11569
+ /* @__PURE__ */ z.null()
11570
+ ]),
11571
+ eventTypes: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
11572
+ extrapolationMode: /* @__PURE__ */ z.union([
11573
+ /* @__PURE__ */ z.string(),
11574
+ /* @__PURE__ */ z.null()
11575
+ ])
11576
+ })
11577
+ })
11578
+ }))
11579
+ })
11094
11580
  }),
11095
- /* @__PURE__ */ z.null()
11581
+ /* @__PURE__ */ z.object({
11582
+ id: /* @__PURE__ */ z.string(),
11583
+ projectId: /* @__PURE__ */ z.number().int(),
11584
+ eventId: /* @__PURE__ */ z.string(),
11585
+ fingerprint: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
11586
+ issueTitle: /* @__PURE__ */ z.string(),
11587
+ subtitle: /* @__PURE__ */ z.string(),
11588
+ resourceId: /* @__PURE__ */ z.union([
11589
+ /* @__PURE__ */ z.string(),
11590
+ /* @__PURE__ */ z.null()
11591
+ ]),
11592
+ evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
11593
+ name: /* @__PURE__ */ z.string(),
11594
+ value: /* @__PURE__ */ z.string(),
11595
+ important: /* @__PURE__ */ z.boolean()
11596
+ })),
11597
+ detectionTime: /* @__PURE__ */ z.number(),
11598
+ level: /* @__PURE__ */ z.union([
11599
+ /* @__PURE__ */ z.string(),
11600
+ /* @__PURE__ */ z.null()
11601
+ ]),
11602
+ culprit: /* @__PURE__ */ z.union([
11603
+ /* @__PURE__ */ z.string(),
11604
+ /* @__PURE__ */ z.null()
11605
+ ]),
11606
+ assignee: /* @__PURE__ */ z.union([
11607
+ /* @__PURE__ */ z.string(),
11608
+ /* @__PURE__ */ z.null()
11609
+ ]),
11610
+ priority: /* @__PURE__ */ z.union([
11611
+ /* @__PURE__ */ z.number().int(),
11612
+ /* @__PURE__ */ z.null()
11613
+ ]),
11614
+ type: /* @__PURE__ */ z.number().int(),
11615
+ evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
11616
+ }),
11617
+ /* @__PURE__ */ z.union([
11618
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
11619
+ /* @__PURE__ */ z.null()
11620
+ ])
11096
11621
  ]),
11097
11622
  _meta: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
11098
11623
  crashFile: /* @__PURE__ */ z.union([
@@ -16321,7 +16846,96 @@ var zUpdateOrganizationDetectorData = /* @__PURE__ */ z.object({
16321
16846
  name: /* @__PURE__ */ z.string().max(200),
16322
16847
  type: /* @__PURE__ */ z.string(),
16323
16848
  workflow_ids: /* @__PURE__ */ z.array(/* @__PURE__ */ z.number().int()).optional(),
16324
- data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.unknown()).optional(),
16849
+ data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.union([
16850
+ /* @__PURE__ */ z.object({
16851
+ query_type: /* @__PURE__ */ z.literal(0).optional(),
16852
+ dataset: /* @__PURE__ */ z.enum(["events"]),
16853
+ query: /* @__PURE__ */ z.string(),
16854
+ aggregate: /* @__PURE__ */ z.enum([
16855
+ "count()",
16856
+ "count_unique(user)",
16857
+ "count_unique(dist)",
16858
+ "count_unique(release)",
16859
+ "count_unique(tags[sentry:user])",
16860
+ "count_unique(tags[sentry:dist])",
16861
+ "count_unique(tags[sentry:release])"
16862
+ ]),
16863
+ time_window: /* @__PURE__ */ z.number().int(),
16864
+ environment: /* @__PURE__ */ z.union([
16865
+ /* @__PURE__ */ z.string(),
16866
+ /* @__PURE__ */ z.null()
16867
+ ]),
16868
+ event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["error", "default"])).min(1).max(2),
16869
+ extrapolation_mode: /* @__PURE__ */ z.union([
16870
+ /* @__PURE__ */ z.string(),
16871
+ /* @__PURE__ */ z.null()
16872
+ ]).optional()
16873
+ }),
16874
+ /* @__PURE__ */ z.object({
16875
+ query_type: /* @__PURE__ */ z.literal(1).optional(),
16876
+ dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
16877
+ query: /* @__PURE__ */ z.string(),
16878
+ 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)\(.*\)$/),
16879
+ time_window: /* @__PURE__ */ z.number().int(),
16880
+ environment: /* @__PURE__ */ z.union([
16881
+ /* @__PURE__ */ z.string(),
16882
+ /* @__PURE__ */ z.null()
16883
+ ]),
16884
+ event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_span"])]),
16885
+ extrapolation_mode: /* @__PURE__ */ z.union([
16886
+ /* @__PURE__ */ z.string(),
16887
+ /* @__PURE__ */ z.null()
16888
+ ]).optional()
16889
+ }),
16890
+ /* @__PURE__ */ z.object({
16891
+ query_type: /* @__PURE__ */ z.literal(1).optional(),
16892
+ dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
16893
+ query: /* @__PURE__ */ z.string(),
16894
+ aggregate: /* @__PURE__ */ z.string().regex(/^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\(.*\)$/),
16895
+ time_window: /* @__PURE__ */ z.number().int(),
16896
+ environment: /* @__PURE__ */ z.union([
16897
+ /* @__PURE__ */ z.string(),
16898
+ /* @__PURE__ */ z.null()
16899
+ ]),
16900
+ event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_log"])]),
16901
+ extrapolation_mode: /* @__PURE__ */ z.union([
16902
+ /* @__PURE__ */ z.string(),
16903
+ /* @__PURE__ */ z.null()
16904
+ ]).optional()
16905
+ }),
16906
+ /* @__PURE__ */ z.object({
16907
+ query_type: /* @__PURE__ */ z.literal(1).optional(),
16908
+ dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
16909
+ query: /* @__PURE__ */ z.string(),
16910
+ 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\|.+)$/),
16911
+ time_window: /* @__PURE__ */ z.number().int(),
16912
+ environment: /* @__PURE__ */ z.union([
16913
+ /* @__PURE__ */ z.string(),
16914
+ /* @__PURE__ */ z.null()
16915
+ ]),
16916
+ event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_metric"])]),
16917
+ extrapolation_mode: /* @__PURE__ */ z.union([
16918
+ /* @__PURE__ */ z.string(),
16919
+ /* @__PURE__ */ z.null()
16920
+ ]).optional()
16921
+ }),
16922
+ /* @__PURE__ */ z.object({
16923
+ query_type: /* @__PURE__ */ z.literal(2).optional(),
16924
+ dataset: /* @__PURE__ */ z.enum(["metrics"]),
16925
+ query: /* @__PURE__ */ z.string(),
16926
+ aggregate: /* @__PURE__ */ z.string().regex(/^percentage\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\)/),
16927
+ time_window: /* @__PURE__ */ z.number().int(),
16928
+ environment: /* @__PURE__ */ z.union([
16929
+ /* @__PURE__ */ z.string(),
16930
+ /* @__PURE__ */ z.null()
16931
+ ]),
16932
+ event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
16933
+ extrapolation_mode: /* @__PURE__ */ z.union([
16934
+ /* @__PURE__ */ z.string(),
16935
+ /* @__PURE__ */ z.null()
16936
+ ]).optional()
16937
+ })
16938
+ ])).optional(),
16325
16939
  config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()).optional(),
16326
16940
  condition_group: /* @__PURE__ */ z.object({
16327
16941
  id: /* @__PURE__ */ z.number().int().optional(),
@@ -17106,13 +17720,11 @@ var zResolveOrganizationEventIdResponse = /* @__PURE__ */ z.object({
17106
17720
  /* @__PURE__ */ z.string(),
17107
17721
  /* @__PURE__ */ z.null()
17108
17722
  ]),
17109
- evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
17110
17723
  evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
17111
17724
  name: /* @__PURE__ */ z.string(),
17112
17725
  value: /* @__PURE__ */ z.string(),
17113
17726
  important: /* @__PURE__ */ z.boolean()
17114
17727
  })),
17115
- type: /* @__PURE__ */ z.number().int(),
17116
17728
  detectionTime: /* @__PURE__ */ z.number(),
17117
17729
  level: /* @__PURE__ */ z.union([
17118
17730
  /* @__PURE__ */ z.string(),
@@ -17129,9 +17741,120 @@ var zResolveOrganizationEventIdResponse = /* @__PURE__ */ z.object({
17129
17741
  priority: /* @__PURE__ */ z.union([
17130
17742
  /* @__PURE__ */ z.number().int(),
17131
17743
  /* @__PURE__ */ z.null()
17132
- ])
17744
+ ]),
17745
+ type: /* @__PURE__ */ z.literal(8001),
17746
+ evidenceData: /* @__PURE__ */ z.object({
17747
+ detectorId: /* @__PURE__ */ z.number().int(),
17748
+ alertId: /* @__PURE__ */ z.union([
17749
+ /* @__PURE__ */ z.number().int(),
17750
+ /* @__PURE__ */ z.null()
17751
+ ]),
17752
+ value: /* @__PURE__ */ z.union([
17753
+ /* @__PURE__ */ z.number(),
17754
+ /* @__PURE__ */ z.object({
17755
+ value: /* @__PURE__ */ z.number(),
17756
+ sourceId: /* @__PURE__ */ z.string(),
17757
+ subscriptionId: /* @__PURE__ */ z.string(),
17758
+ timestamp: /* @__PURE__ */ z.string()
17759
+ }),
17760
+ /* @__PURE__ */ z.union([
17761
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
17762
+ /* @__PURE__ */ z.null()
17763
+ ])
17764
+ ]),
17765
+ dataPacketSourceId: /* @__PURE__ */ z.string(),
17766
+ conditions: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
17767
+ id: /* @__PURE__ */ z.number().int(),
17768
+ type: /* @__PURE__ */ z.string(),
17769
+ comparison: /* @__PURE__ */ z.union([
17770
+ /* @__PURE__ */ z.number(),
17771
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
17772
+ ]),
17773
+ conditionResult: /* @__PURE__ */ z.number().int()
17774
+ })),
17775
+ config: /* @__PURE__ */ z.object({
17776
+ detectionType: /* @__PURE__ */ z.enum([
17777
+ "static",
17778
+ "percent",
17779
+ "dynamic"
17780
+ ]),
17781
+ comparisonDelta: /* @__PURE__ */ z.union([
17782
+ /* @__PURE__ */ z.number().int(),
17783
+ /* @__PURE__ */ z.null()
17784
+ ]).optional()
17785
+ }),
17786
+ dataSources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
17787
+ id: /* @__PURE__ */ z.string(),
17788
+ organizationId: /* @__PURE__ */ z.string(),
17789
+ type: /* @__PURE__ */ z.string(),
17790
+ sourceId: /* @__PURE__ */ z.string(),
17791
+ queryObj: /* @__PURE__ */ z.object({
17792
+ id: /* @__PURE__ */ z.string(),
17793
+ status: /* @__PURE__ */ z.number().int(),
17794
+ subscription: /* @__PURE__ */ z.union([
17795
+ /* @__PURE__ */ z.string(),
17796
+ /* @__PURE__ */ z.null()
17797
+ ]),
17798
+ snubaQuery: /* @__PURE__ */ z.object({
17799
+ id: /* @__PURE__ */ z.string(),
17800
+ dataset: /* @__PURE__ */ z.string(),
17801
+ query: /* @__PURE__ */ z.string(),
17802
+ aggregate: /* @__PURE__ */ z.string(),
17803
+ timeWindow: /* @__PURE__ */ z.number().int(),
17804
+ environment: /* @__PURE__ */ z.union([
17805
+ /* @__PURE__ */ z.string(),
17806
+ /* @__PURE__ */ z.null()
17807
+ ]),
17808
+ eventTypes: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
17809
+ extrapolationMode: /* @__PURE__ */ z.union([
17810
+ /* @__PURE__ */ z.string(),
17811
+ /* @__PURE__ */ z.null()
17812
+ ])
17813
+ })
17814
+ })
17815
+ }))
17816
+ })
17133
17817
  }),
17134
- /* @__PURE__ */ z.null()
17818
+ /* @__PURE__ */ z.object({
17819
+ id: /* @__PURE__ */ z.string(),
17820
+ projectId: /* @__PURE__ */ z.number().int(),
17821
+ eventId: /* @__PURE__ */ z.string(),
17822
+ fingerprint: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
17823
+ issueTitle: /* @__PURE__ */ z.string(),
17824
+ subtitle: /* @__PURE__ */ z.string(),
17825
+ resourceId: /* @__PURE__ */ z.union([
17826
+ /* @__PURE__ */ z.string(),
17827
+ /* @__PURE__ */ z.null()
17828
+ ]),
17829
+ evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
17830
+ name: /* @__PURE__ */ z.string(),
17831
+ value: /* @__PURE__ */ z.string(),
17832
+ important: /* @__PURE__ */ z.boolean()
17833
+ })),
17834
+ detectionTime: /* @__PURE__ */ z.number(),
17835
+ level: /* @__PURE__ */ z.union([
17836
+ /* @__PURE__ */ z.string(),
17837
+ /* @__PURE__ */ z.null()
17838
+ ]),
17839
+ culprit: /* @__PURE__ */ z.union([
17840
+ /* @__PURE__ */ z.string(),
17841
+ /* @__PURE__ */ z.null()
17842
+ ]),
17843
+ assignee: /* @__PURE__ */ z.union([
17844
+ /* @__PURE__ */ z.string(),
17845
+ /* @__PURE__ */ z.null()
17846
+ ]),
17847
+ priority: /* @__PURE__ */ z.union([
17848
+ /* @__PURE__ */ z.number().int(),
17849
+ /* @__PURE__ */ z.null()
17850
+ ]),
17851
+ type: /* @__PURE__ */ z.number().int(),
17852
+ evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
17853
+ }),
17854
+ /* @__PURE__ */ z.union([
17855
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
17856
+ /* @__PURE__ */ z.null()
17857
+ ])
17135
17858
  ]),
17136
17859
  _meta: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
17137
17860
  crashFile: /* @__PURE__ */ z.union([
@@ -22460,7 +23183,96 @@ var zCreateOrganizationProjectDetectorData = /* @__PURE__ */ z.object({
22460
23183
  name: /* @__PURE__ */ z.string().max(200),
22461
23184
  type: /* @__PURE__ */ z.string(),
22462
23185
  workflow_ids: /* @__PURE__ */ z.array(/* @__PURE__ */ z.number().int()).optional(),
22463
- data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.unknown()).optional(),
23186
+ data_sources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.union([
23187
+ /* @__PURE__ */ z.object({
23188
+ query_type: /* @__PURE__ */ z.literal(0).optional(),
23189
+ dataset: /* @__PURE__ */ z.enum(["events"]),
23190
+ query: /* @__PURE__ */ z.string(),
23191
+ aggregate: /* @__PURE__ */ z.enum([
23192
+ "count()",
23193
+ "count_unique(user)",
23194
+ "count_unique(dist)",
23195
+ "count_unique(release)",
23196
+ "count_unique(tags[sentry:user])",
23197
+ "count_unique(tags[sentry:dist])",
23198
+ "count_unique(tags[sentry:release])"
23199
+ ]),
23200
+ time_window: /* @__PURE__ */ z.number().int(),
23201
+ environment: /* @__PURE__ */ z.union([
23202
+ /* @__PURE__ */ z.string(),
23203
+ /* @__PURE__ */ z.null()
23204
+ ]),
23205
+ event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["error", "default"])).min(1).max(2),
23206
+ extrapolation_mode: /* @__PURE__ */ z.union([
23207
+ /* @__PURE__ */ z.string(),
23208
+ /* @__PURE__ */ z.null()
23209
+ ]).optional()
23210
+ }),
23211
+ /* @__PURE__ */ z.object({
23212
+ query_type: /* @__PURE__ */ z.literal(1).optional(),
23213
+ dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
23214
+ query: /* @__PURE__ */ z.string(),
23215
+ 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)\(.*\)$/),
23216
+ time_window: /* @__PURE__ */ z.number().int(),
23217
+ environment: /* @__PURE__ */ z.union([
23218
+ /* @__PURE__ */ z.string(),
23219
+ /* @__PURE__ */ z.null()
23220
+ ]),
23221
+ event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_span"])]),
23222
+ extrapolation_mode: /* @__PURE__ */ z.union([
23223
+ /* @__PURE__ */ z.string(),
23224
+ /* @__PURE__ */ z.null()
23225
+ ]).optional()
23226
+ }),
23227
+ /* @__PURE__ */ z.object({
23228
+ query_type: /* @__PURE__ */ z.literal(1).optional(),
23229
+ dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
23230
+ query: /* @__PURE__ */ z.string(),
23231
+ aggregate: /* @__PURE__ */ z.string().regex(/^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\(.*\)$/),
23232
+ time_window: /* @__PURE__ */ z.number().int(),
23233
+ environment: /* @__PURE__ */ z.union([
23234
+ /* @__PURE__ */ z.string(),
23235
+ /* @__PURE__ */ z.null()
23236
+ ]),
23237
+ event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_log"])]),
23238
+ extrapolation_mode: /* @__PURE__ */ z.union([
23239
+ /* @__PURE__ */ z.string(),
23240
+ /* @__PURE__ */ z.null()
23241
+ ]).optional()
23242
+ }),
23243
+ /* @__PURE__ */ z.object({
23244
+ query_type: /* @__PURE__ */ z.literal(1).optional(),
23245
+ dataset: /* @__PURE__ */ z.enum(["events_analytics_platform"]),
23246
+ query: /* @__PURE__ */ z.string(),
23247
+ 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\|.+)$/),
23248
+ time_window: /* @__PURE__ */ z.number().int(),
23249
+ environment: /* @__PURE__ */ z.union([
23250
+ /* @__PURE__ */ z.string(),
23251
+ /* @__PURE__ */ z.null()
23252
+ ]),
23253
+ event_types: /* @__PURE__ */ z.tuple([/* @__PURE__ */ z.enum(["trace_item_metric"])]),
23254
+ extrapolation_mode: /* @__PURE__ */ z.union([
23255
+ /* @__PURE__ */ z.string(),
23256
+ /* @__PURE__ */ z.null()
23257
+ ]).optional()
23258
+ }),
23259
+ /* @__PURE__ */ z.object({
23260
+ query_type: /* @__PURE__ */ z.literal(2).optional(),
23261
+ dataset: /* @__PURE__ */ z.enum(["metrics"]),
23262
+ query: /* @__PURE__ */ z.string(),
23263
+ aggregate: /* @__PURE__ */ z.string().regex(/^percentage\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\)/),
23264
+ time_window: /* @__PURE__ */ z.number().int(),
23265
+ environment: /* @__PURE__ */ z.union([
23266
+ /* @__PURE__ */ z.string(),
23267
+ /* @__PURE__ */ z.null()
23268
+ ]),
23269
+ event_types: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
23270
+ extrapolation_mode: /* @__PURE__ */ z.union([
23271
+ /* @__PURE__ */ z.string(),
23272
+ /* @__PURE__ */ z.null()
23273
+ ]).optional()
23274
+ })
23275
+ ])).optional(),
22464
23276
  config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()).optional(),
22465
23277
  condition_group: /* @__PURE__ */ z.object({
22466
23278
  id: /* @__PURE__ */ z.number().int().optional(),
@@ -28885,13 +29697,11 @@ var zGetProjectEventResponse = /* @__PURE__ */ z.object({
28885
29697
  /* @__PURE__ */ z.string(),
28886
29698
  /* @__PURE__ */ z.null()
28887
29699
  ]),
28888
- evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
28889
29700
  evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
28890
29701
  name: /* @__PURE__ */ z.string(),
28891
29702
  value: /* @__PURE__ */ z.string(),
28892
29703
  important: /* @__PURE__ */ z.boolean()
28893
29704
  })),
28894
- type: /* @__PURE__ */ z.number().int(),
28895
29705
  detectionTime: /* @__PURE__ */ z.number(),
28896
29706
  level: /* @__PURE__ */ z.union([
28897
29707
  /* @__PURE__ */ z.string(),
@@ -28908,9 +29718,120 @@ var zGetProjectEventResponse = /* @__PURE__ */ z.object({
28908
29718
  priority: /* @__PURE__ */ z.union([
28909
29719
  /* @__PURE__ */ z.number().int(),
28910
29720
  /* @__PURE__ */ z.null()
28911
- ])
29721
+ ]),
29722
+ type: /* @__PURE__ */ z.literal(8001),
29723
+ evidenceData: /* @__PURE__ */ z.object({
29724
+ detectorId: /* @__PURE__ */ z.number().int(),
29725
+ alertId: /* @__PURE__ */ z.union([
29726
+ /* @__PURE__ */ z.number().int(),
29727
+ /* @__PURE__ */ z.null()
29728
+ ]),
29729
+ value: /* @__PURE__ */ z.union([
29730
+ /* @__PURE__ */ z.number(),
29731
+ /* @__PURE__ */ z.object({
29732
+ value: /* @__PURE__ */ z.number(),
29733
+ sourceId: /* @__PURE__ */ z.string(),
29734
+ subscriptionId: /* @__PURE__ */ z.string(),
29735
+ timestamp: /* @__PURE__ */ z.string()
29736
+ }),
29737
+ /* @__PURE__ */ z.union([
29738
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
29739
+ /* @__PURE__ */ z.null()
29740
+ ])
29741
+ ]),
29742
+ dataPacketSourceId: /* @__PURE__ */ z.string(),
29743
+ conditions: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
29744
+ id: /* @__PURE__ */ z.number().int(),
29745
+ type: /* @__PURE__ */ z.string(),
29746
+ comparison: /* @__PURE__ */ z.union([
29747
+ /* @__PURE__ */ z.number(),
29748
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
29749
+ ]),
29750
+ conditionResult: /* @__PURE__ */ z.number().int()
29751
+ })),
29752
+ config: /* @__PURE__ */ z.object({
29753
+ detectionType: /* @__PURE__ */ z.enum([
29754
+ "static",
29755
+ "percent",
29756
+ "dynamic"
29757
+ ]),
29758
+ comparisonDelta: /* @__PURE__ */ z.union([
29759
+ /* @__PURE__ */ z.number().int(),
29760
+ /* @__PURE__ */ z.null()
29761
+ ]).optional()
29762
+ }),
29763
+ dataSources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
29764
+ id: /* @__PURE__ */ z.string(),
29765
+ organizationId: /* @__PURE__ */ z.string(),
29766
+ type: /* @__PURE__ */ z.string(),
29767
+ sourceId: /* @__PURE__ */ z.string(),
29768
+ queryObj: /* @__PURE__ */ z.object({
29769
+ id: /* @__PURE__ */ z.string(),
29770
+ status: /* @__PURE__ */ z.number().int(),
29771
+ subscription: /* @__PURE__ */ z.union([
29772
+ /* @__PURE__ */ z.string(),
29773
+ /* @__PURE__ */ z.null()
29774
+ ]),
29775
+ snubaQuery: /* @__PURE__ */ z.object({
29776
+ id: /* @__PURE__ */ z.string(),
29777
+ dataset: /* @__PURE__ */ z.string(),
29778
+ query: /* @__PURE__ */ z.string(),
29779
+ aggregate: /* @__PURE__ */ z.string(),
29780
+ timeWindow: /* @__PURE__ */ z.number().int(),
29781
+ environment: /* @__PURE__ */ z.union([
29782
+ /* @__PURE__ */ z.string(),
29783
+ /* @__PURE__ */ z.null()
29784
+ ]),
29785
+ eventTypes: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
29786
+ extrapolationMode: /* @__PURE__ */ z.union([
29787
+ /* @__PURE__ */ z.string(),
29788
+ /* @__PURE__ */ z.null()
29789
+ ])
29790
+ })
29791
+ })
29792
+ }))
29793
+ })
28912
29794
  }),
28913
- /* @__PURE__ */ z.null()
29795
+ /* @__PURE__ */ z.object({
29796
+ id: /* @__PURE__ */ z.string(),
29797
+ projectId: /* @__PURE__ */ z.number().int(),
29798
+ eventId: /* @__PURE__ */ z.string(),
29799
+ fingerprint: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
29800
+ issueTitle: /* @__PURE__ */ z.string(),
29801
+ subtitle: /* @__PURE__ */ z.string(),
29802
+ resourceId: /* @__PURE__ */ z.union([
29803
+ /* @__PURE__ */ z.string(),
29804
+ /* @__PURE__ */ z.null()
29805
+ ]),
29806
+ evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
29807
+ name: /* @__PURE__ */ z.string(),
29808
+ value: /* @__PURE__ */ z.string(),
29809
+ important: /* @__PURE__ */ z.boolean()
29810
+ })),
29811
+ detectionTime: /* @__PURE__ */ z.number(),
29812
+ level: /* @__PURE__ */ z.union([
29813
+ /* @__PURE__ */ z.string(),
29814
+ /* @__PURE__ */ z.null()
29815
+ ]),
29816
+ culprit: /* @__PURE__ */ z.union([
29817
+ /* @__PURE__ */ z.string(),
29818
+ /* @__PURE__ */ z.null()
29819
+ ]),
29820
+ assignee: /* @__PURE__ */ z.union([
29821
+ /* @__PURE__ */ z.string(),
29822
+ /* @__PURE__ */ z.null()
29823
+ ]),
29824
+ priority: /* @__PURE__ */ z.union([
29825
+ /* @__PURE__ */ z.number().int(),
29826
+ /* @__PURE__ */ z.null()
29827
+ ]),
29828
+ type: /* @__PURE__ */ z.number().int(),
29829
+ evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
29830
+ }),
29831
+ /* @__PURE__ */ z.union([
29832
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
29833
+ /* @__PURE__ */ z.null()
29834
+ ])
28914
29835
  ]),
28915
29836
  _meta: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
28916
29837
  crashFile: /* @__PURE__ */ z.union([
@@ -35613,13 +36534,11 @@ var zGetOrganizationIssueEventResponse = /* @__PURE__ */ z.object({
35613
36534
  /* @__PURE__ */ z.string(),
35614
36535
  /* @__PURE__ */ z.null()
35615
36536
  ]),
35616
- evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
35617
36537
  evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
35618
36538
  name: /* @__PURE__ */ z.string(),
35619
36539
  value: /* @__PURE__ */ z.string(),
35620
36540
  important: /* @__PURE__ */ z.boolean()
35621
36541
  })),
35622
- type: /* @__PURE__ */ z.number().int(),
35623
36542
  detectionTime: /* @__PURE__ */ z.number(),
35624
36543
  level: /* @__PURE__ */ z.union([
35625
36544
  /* @__PURE__ */ z.string(),
@@ -35636,9 +36555,120 @@ var zGetOrganizationIssueEventResponse = /* @__PURE__ */ z.object({
35636
36555
  priority: /* @__PURE__ */ z.union([
35637
36556
  /* @__PURE__ */ z.number().int(),
35638
36557
  /* @__PURE__ */ z.null()
35639
- ])
36558
+ ]),
36559
+ type: /* @__PURE__ */ z.literal(8001),
36560
+ evidenceData: /* @__PURE__ */ z.object({
36561
+ detectorId: /* @__PURE__ */ z.number().int(),
36562
+ alertId: /* @__PURE__ */ z.union([
36563
+ /* @__PURE__ */ z.number().int(),
36564
+ /* @__PURE__ */ z.null()
36565
+ ]),
36566
+ value: /* @__PURE__ */ z.union([
36567
+ /* @__PURE__ */ z.number(),
36568
+ /* @__PURE__ */ z.object({
36569
+ value: /* @__PURE__ */ z.number(),
36570
+ sourceId: /* @__PURE__ */ z.string(),
36571
+ subscriptionId: /* @__PURE__ */ z.string(),
36572
+ timestamp: /* @__PURE__ */ z.string()
36573
+ }),
36574
+ /* @__PURE__ */ z.union([
36575
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
36576
+ /* @__PURE__ */ z.null()
36577
+ ])
36578
+ ]),
36579
+ dataPacketSourceId: /* @__PURE__ */ z.string(),
36580
+ conditions: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
36581
+ id: /* @__PURE__ */ z.number().int(),
36582
+ type: /* @__PURE__ */ z.string(),
36583
+ comparison: /* @__PURE__ */ z.union([
36584
+ /* @__PURE__ */ z.number(),
36585
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
36586
+ ]),
36587
+ conditionResult: /* @__PURE__ */ z.number().int()
36588
+ })),
36589
+ config: /* @__PURE__ */ z.object({
36590
+ detectionType: /* @__PURE__ */ z.enum([
36591
+ "static",
36592
+ "percent",
36593
+ "dynamic"
36594
+ ]),
36595
+ comparisonDelta: /* @__PURE__ */ z.union([
36596
+ /* @__PURE__ */ z.number().int(),
36597
+ /* @__PURE__ */ z.null()
36598
+ ]).optional()
36599
+ }),
36600
+ dataSources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
36601
+ id: /* @__PURE__ */ z.string(),
36602
+ organizationId: /* @__PURE__ */ z.string(),
36603
+ type: /* @__PURE__ */ z.string(),
36604
+ sourceId: /* @__PURE__ */ z.string(),
36605
+ queryObj: /* @__PURE__ */ z.object({
36606
+ id: /* @__PURE__ */ z.string(),
36607
+ status: /* @__PURE__ */ z.number().int(),
36608
+ subscription: /* @__PURE__ */ z.union([
36609
+ /* @__PURE__ */ z.string(),
36610
+ /* @__PURE__ */ z.null()
36611
+ ]),
36612
+ snubaQuery: /* @__PURE__ */ z.object({
36613
+ id: /* @__PURE__ */ z.string(),
36614
+ dataset: /* @__PURE__ */ z.string(),
36615
+ query: /* @__PURE__ */ z.string(),
36616
+ aggregate: /* @__PURE__ */ z.string(),
36617
+ timeWindow: /* @__PURE__ */ z.number().int(),
36618
+ environment: /* @__PURE__ */ z.union([
36619
+ /* @__PURE__ */ z.string(),
36620
+ /* @__PURE__ */ z.null()
36621
+ ]),
36622
+ eventTypes: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
36623
+ extrapolationMode: /* @__PURE__ */ z.union([
36624
+ /* @__PURE__ */ z.string(),
36625
+ /* @__PURE__ */ z.null()
36626
+ ])
36627
+ })
36628
+ })
36629
+ }))
36630
+ })
35640
36631
  }),
35641
- /* @__PURE__ */ z.null()
36632
+ /* @__PURE__ */ z.object({
36633
+ id: /* @__PURE__ */ z.string(),
36634
+ projectId: /* @__PURE__ */ z.number().int(),
36635
+ eventId: /* @__PURE__ */ z.string(),
36636
+ fingerprint: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
36637
+ issueTitle: /* @__PURE__ */ z.string(),
36638
+ subtitle: /* @__PURE__ */ z.string(),
36639
+ resourceId: /* @__PURE__ */ z.union([
36640
+ /* @__PURE__ */ z.string(),
36641
+ /* @__PURE__ */ z.null()
36642
+ ]),
36643
+ evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
36644
+ name: /* @__PURE__ */ z.string(),
36645
+ value: /* @__PURE__ */ z.string(),
36646
+ important: /* @__PURE__ */ z.boolean()
36647
+ })),
36648
+ detectionTime: /* @__PURE__ */ z.number(),
36649
+ level: /* @__PURE__ */ z.union([
36650
+ /* @__PURE__ */ z.string(),
36651
+ /* @__PURE__ */ z.null()
36652
+ ]),
36653
+ culprit: /* @__PURE__ */ z.union([
36654
+ /* @__PURE__ */ z.string(),
36655
+ /* @__PURE__ */ z.null()
36656
+ ]),
36657
+ assignee: /* @__PURE__ */ z.union([
36658
+ /* @__PURE__ */ z.string(),
36659
+ /* @__PURE__ */ z.null()
36660
+ ]),
36661
+ priority: /* @__PURE__ */ z.union([
36662
+ /* @__PURE__ */ z.number().int(),
36663
+ /* @__PURE__ */ z.null()
36664
+ ]),
36665
+ type: /* @__PURE__ */ z.number().int(),
36666
+ evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
36667
+ }),
36668
+ /* @__PURE__ */ z.union([
36669
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
36670
+ /* @__PURE__ */ z.null()
36671
+ ])
35642
36672
  ]),
35643
36673
  _meta: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
35644
36674
  crashFile: /* @__PURE__ */ z.union([
@@ -35972,13 +37002,11 @@ var zListOrganizationIssueHashesResponse = /* @__PURE__ */ z.array(/* @__PURE__
35972
37002
  /* @__PURE__ */ z.string(),
35973
37003
  /* @__PURE__ */ z.null()
35974
37004
  ]),
35975
- evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
35976
37005
  evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
35977
37006
  name: /* @__PURE__ */ z.string(),
35978
37007
  value: /* @__PURE__ */ z.string(),
35979
37008
  important: /* @__PURE__ */ z.boolean()
35980
37009
  })),
35981
- type: /* @__PURE__ */ z.number().int(),
35982
37010
  detectionTime: /* @__PURE__ */ z.number(),
35983
37011
  level: /* @__PURE__ */ z.union([
35984
37012
  /* @__PURE__ */ z.string(),
@@ -35995,9 +37023,120 @@ var zListOrganizationIssueHashesResponse = /* @__PURE__ */ z.array(/* @__PURE__
35995
37023
  priority: /* @__PURE__ */ z.union([
35996
37024
  /* @__PURE__ */ z.number().int(),
35997
37025
  /* @__PURE__ */ z.null()
35998
- ])
37026
+ ]),
37027
+ type: /* @__PURE__ */ z.literal(8001),
37028
+ evidenceData: /* @__PURE__ */ z.object({
37029
+ detectorId: /* @__PURE__ */ z.number().int(),
37030
+ alertId: /* @__PURE__ */ z.union([
37031
+ /* @__PURE__ */ z.number().int(),
37032
+ /* @__PURE__ */ z.null()
37033
+ ]),
37034
+ value: /* @__PURE__ */ z.union([
37035
+ /* @__PURE__ */ z.number(),
37036
+ /* @__PURE__ */ z.object({
37037
+ value: /* @__PURE__ */ z.number(),
37038
+ sourceId: /* @__PURE__ */ z.string(),
37039
+ subscriptionId: /* @__PURE__ */ z.string(),
37040
+ timestamp: /* @__PURE__ */ z.string()
37041
+ }),
37042
+ /* @__PURE__ */ z.union([
37043
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
37044
+ /* @__PURE__ */ z.null()
37045
+ ])
37046
+ ]),
37047
+ dataPacketSourceId: /* @__PURE__ */ z.string(),
37048
+ conditions: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
37049
+ id: /* @__PURE__ */ z.number().int(),
37050
+ type: /* @__PURE__ */ z.string(),
37051
+ comparison: /* @__PURE__ */ z.union([
37052
+ /* @__PURE__ */ z.number(),
37053
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
37054
+ ]),
37055
+ conditionResult: /* @__PURE__ */ z.number().int()
37056
+ })),
37057
+ config: /* @__PURE__ */ z.object({
37058
+ detectionType: /* @__PURE__ */ z.enum([
37059
+ "static",
37060
+ "percent",
37061
+ "dynamic"
37062
+ ]),
37063
+ comparisonDelta: /* @__PURE__ */ z.union([
37064
+ /* @__PURE__ */ z.number().int(),
37065
+ /* @__PURE__ */ z.null()
37066
+ ]).optional()
37067
+ }),
37068
+ dataSources: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
37069
+ id: /* @__PURE__ */ z.string(),
37070
+ organizationId: /* @__PURE__ */ z.string(),
37071
+ type: /* @__PURE__ */ z.string(),
37072
+ sourceId: /* @__PURE__ */ z.string(),
37073
+ queryObj: /* @__PURE__ */ z.object({
37074
+ id: /* @__PURE__ */ z.string(),
37075
+ status: /* @__PURE__ */ z.number().int(),
37076
+ subscription: /* @__PURE__ */ z.union([
37077
+ /* @__PURE__ */ z.string(),
37078
+ /* @__PURE__ */ z.null()
37079
+ ]),
37080
+ snubaQuery: /* @__PURE__ */ z.object({
37081
+ id: /* @__PURE__ */ z.string(),
37082
+ dataset: /* @__PURE__ */ z.string(),
37083
+ query: /* @__PURE__ */ z.string(),
37084
+ aggregate: /* @__PURE__ */ z.string(),
37085
+ timeWindow: /* @__PURE__ */ z.number().int(),
37086
+ environment: /* @__PURE__ */ z.union([
37087
+ /* @__PURE__ */ z.string(),
37088
+ /* @__PURE__ */ z.null()
37089
+ ]),
37090
+ eventTypes: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
37091
+ extrapolationMode: /* @__PURE__ */ z.union([
37092
+ /* @__PURE__ */ z.string(),
37093
+ /* @__PURE__ */ z.null()
37094
+ ])
37095
+ })
37096
+ })
37097
+ }))
37098
+ })
35999
37099
  }),
36000
- /* @__PURE__ */ z.null()
37100
+ /* @__PURE__ */ z.object({
37101
+ id: /* @__PURE__ */ z.string(),
37102
+ projectId: /* @__PURE__ */ z.number().int(),
37103
+ eventId: /* @__PURE__ */ z.string(),
37104
+ fingerprint: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
37105
+ issueTitle: /* @__PURE__ */ z.string(),
37106
+ subtitle: /* @__PURE__ */ z.string(),
37107
+ resourceId: /* @__PURE__ */ z.union([
37108
+ /* @__PURE__ */ z.string(),
37109
+ /* @__PURE__ */ z.null()
37110
+ ]),
37111
+ evidenceDisplay: /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
37112
+ name: /* @__PURE__ */ z.string(),
37113
+ value: /* @__PURE__ */ z.string(),
37114
+ important: /* @__PURE__ */ z.boolean()
37115
+ })),
37116
+ detectionTime: /* @__PURE__ */ z.number(),
37117
+ level: /* @__PURE__ */ z.union([
37118
+ /* @__PURE__ */ z.string(),
37119
+ /* @__PURE__ */ z.null()
37120
+ ]),
37121
+ culprit: /* @__PURE__ */ z.union([
37122
+ /* @__PURE__ */ z.string(),
37123
+ /* @__PURE__ */ z.null()
37124
+ ]),
37125
+ assignee: /* @__PURE__ */ z.union([
37126
+ /* @__PURE__ */ z.string(),
37127
+ /* @__PURE__ */ z.null()
37128
+ ]),
37129
+ priority: /* @__PURE__ */ z.union([
37130
+ /* @__PURE__ */ z.number().int(),
37131
+ /* @__PURE__ */ z.null()
37132
+ ]),
37133
+ type: /* @__PURE__ */ z.number().int(),
37134
+ evidenceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown())
37135
+ }),
37136
+ /* @__PURE__ */ z.union([
37137
+ /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
37138
+ /* @__PURE__ */ z.null()
37139
+ ])
36001
37140
  ]),
36002
37141
  _meta: /* @__PURE__ */ z.record(/* @__PURE__ */ z.unknown()),
36003
37142
  crashFile: /* @__PURE__ */ z.union([