@sentry/api 0.354.0 → 0.357.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.
@@ -81,7 +81,12 @@ export type BaseDetectorTypeValidator = {
81
81
  workflow_ids?: Array<number>;
82
82
  /**
83
83
  *
84
- * The data sources for the monitor to use based on what you want to measure.
84
+ * The data sources for the metric monitor to use based on what you want to measure.
85
+ *
86
+ * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.
87
+ * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value
88
+ * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes
89
+ * `"timeWindow": 300`.
85
90
  *
86
91
  * **Number of Errors Metric Monitor**
87
92
  * - `eventTypes`: Any of `error` or `default`.
@@ -94,9 +99,9 @@ export type BaseDetectorTypeValidator = {
94
99
  * "eventTypes": ["default", "error"],
95
100
  * "query": "is:unresolved",
96
101
  * "queryType": 0,
97
- * "timeWindow": 3600,
98
- * },
99
- * ],
102
+ * "timeWindow": 3600
103
+ * }
104
+ * ]
100
105
  * ```
101
106
  *
102
107
  * **Users Experiencing Errors Metric Monitor**
@@ -110,9 +115,9 @@ export type BaseDetectorTypeValidator = {
110
115
  * "eventTypes": ["default", "error"],
111
116
  * "query": "is:unresolved",
112
117
  * "queryType": 0,
113
- * "timeWindow": 3600,
114
- * },
115
- * ],
118
+ * "timeWindow": 3600
119
+ * }
120
+ * ]
116
121
  * ```
117
122
  *
118
123
  *
@@ -123,13 +128,13 @@ export type BaseDetectorTypeValidator = {
123
128
  * "aggregate":"count(span.duration)",
124
129
  * "dataset":"events_analytics_platform",
125
130
  * "environment":"prod",
126
- * "eventTypes":["trace_item_span"]
131
+ * "eventTypes":["trace_item_span"],
127
132
  * "query":"",
128
133
  * "queryType":1,
129
134
  * "timeWindow":3600,
130
- * "extrapolationMode":"unknown",
131
- * },
132
- * ],
135
+ * "extrapolationMode":"unknown"
136
+ * }
137
+ * ]
133
138
  * ```
134
139
  *
135
140
  * **Duration Metric Monitor**
@@ -139,13 +144,13 @@ export type BaseDetectorTypeValidator = {
139
144
  * "aggregate":"p95(span.duration)",
140
145
  * "dataset":"events_analytics_platform",
141
146
  * "environment":"prod",
142
- * "eventTypes":["trace_item_span"]
147
+ * "eventTypes":["trace_item_span"],
143
148
  * "query":"",
144
149
  * "queryType":1,
145
150
  * "timeWindow":3600,
146
- * "extrapolationMode":"unknown",
147
- * },
148
- * ],
151
+ * "extrapolationMode":"unknown"
152
+ * }
153
+ * ]
149
154
  * ```
150
155
  *
151
156
  * **Failure Rate Metric Monitor**
@@ -155,17 +160,17 @@ export type BaseDetectorTypeValidator = {
155
160
  * "aggregate":"failure_rate()",
156
161
  * "dataset":"events_analytics_platform",
157
162
  * "environment":"prod",
158
- * "eventTypes":["trace_item_span"]
163
+ * "eventTypes":["trace_item_span"],
159
164
  * "query":"",
160
165
  * "queryType":1,
161
166
  * "timeWindow":3600,
162
- * "extrapolationMode":"unknown",
163
- * },
164
- * ],
167
+ * "extrapolationMode":"unknown"
168
+ * }
169
+ * ]
165
170
  * ```
166
171
  *
167
172
  * **Largest Contentful Paint Metric Monitor**
168
- * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `events_analytics_platform`.
173
+ * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
169
174
  * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, `p100(measurements.lcp)`, and `percentile(measurements.lcp,x)`, where `x` is your custom percentile.
170
175
  *
171
176
  * ```json
@@ -174,17 +179,17 @@ export type BaseDetectorTypeValidator = {
174
179
  * "aggregate":"p95(measurements.lcp)",
175
180
  * "dataset":"events_analytics_platform",
176
181
  * "environment":"prod",
177
- * "eventTypes":["trace_item_span"]
178
- * "query":"",
182
+ * "eventTypes":["trace_item_span"],
183
+ * "query":"is_transaction:true",
179
184
  * "queryType":1,
180
185
  * "timeWindow":3600,
181
- * "extrapolationMode":"unknown",
182
- * },
183
- * ],
186
+ * "extrapolationMode":"unknown"
187
+ * }
188
+ * ]
184
189
  * ```
185
190
  *
186
191
  * **Custom Metric Monitor**
187
- * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `events_analytics_platform`.
192
+ * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
188
193
  * - `aggregate`: Valid values are:
189
194
  * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
190
195
  * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
@@ -200,11 +205,17 @@ export type BaseDetectorTypeValidator = {
200
205
  * ```json
201
206
  * [
202
207
  * {
203
- * "aggregate": "p75(measurements.ttfb)"
208
+ * "aggregate": "p75(measurements.ttfb)",
204
209
  * "dataset": "events_analytics_platform",
210
+ * "environment": "prod",
205
211
  * "queryType": 1,
206
- * },
207
- * ],
212
+ * "eventTypes": ["trace_item_span"],
213
+ * "query": "is_transaction:true",
214
+ * "timeWindow": 3600,
215
+ * "extrapolationMode": "unknown"
216
+ * }
217
+ * ]
218
+ * ```
208
219
  *
209
220
  */
210
221
  data_sources?: Array<unknown>;
@@ -217,7 +228,7 @@ export type BaseDetectorTypeValidator = {
217
228
  * - `static`: Threshold based monitor
218
229
  * - `percent`: Change based monitor
219
230
  * - `dynamic`: Dynamic monitor
220
- * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against in minutes.
231
+ * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.
221
232
  * For example, a value of 3600 compares the metric tracked against data 1 hour ago.
222
233
  * - `300`: 5 minutes
223
234
  * - `900`: 15 minutes
@@ -229,20 +240,20 @@ export type BaseDetectorTypeValidator = {
229
240
  * **Threshold**
230
241
  * ```json
231
242
  * {
232
- * "detectionType": "static",
243
+ * "detectionType": "static"
233
244
  * }
234
245
  * ```
235
246
  * **Change**
236
247
  * ```json
237
248
  * {
238
249
  * "detectionType": "percent",
239
- * "comparisonDelta": 3600,
250
+ * "comparisonDelta": 3600
240
251
  * }
241
252
  * ```
242
253
  * **Dynamic**
243
254
  * ```json
244
255
  * {
245
- * "detectionType": "dynamic",
256
+ * "detectionType": "dynamic"
246
257
  * }
247
258
  * ```
248
259
  *
@@ -543,7 +554,7 @@ export type ConfigValidator = {
543
554
  */
544
555
  checkin_margin?: number | null;
545
556
  /**
546
- * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed.
557
+ * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days).
547
558
  */
548
559
  max_runtime?: number | null;
549
560
  /**
@@ -1330,7 +1341,7 @@ export type CustomInboundFilter = {
1330
1341
  */
1331
1342
  conditions: Array<{
1332
1343
  /**
1333
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
1344
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
1334
1345
  *
1335
1346
  * * `error_type`
1336
1347
  * * `error_message`
@@ -1338,8 +1349,9 @@ export type CustomInboundFilter = {
1338
1349
  * * `metric_name`
1339
1350
  * * `release`
1340
1351
  * * `ip_address`
1352
+ * * `geo_country_code`
1341
1353
  */
1342
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
1354
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
1343
1355
  /**
1344
1356
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
1345
1357
  */
@@ -1364,7 +1376,7 @@ export type CustomInboundFilter = {
1364
1376
  };
1365
1377
  export type CustomInboundFilterCondition = {
1366
1378
  /**
1367
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
1379
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
1368
1380
  *
1369
1381
  * * `error_type`
1370
1382
  * * `error_message`
@@ -1372,8 +1384,9 @@ export type CustomInboundFilterCondition = {
1372
1384
  * * `metric_name`
1373
1385
  * * `release`
1374
1386
  * * `ip_address`
1387
+ * * `geo_country_code`
1375
1388
  */
1376
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
1389
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
1377
1390
  /**
1378
1391
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
1379
1392
  */
@@ -3145,6 +3158,20 @@ export type Filters = {
3145
3158
  */
3146
3159
  requires_checksum?: boolean;
3147
3160
  };
3161
+ export type GetFlagLogResponse = {
3162
+ data: {
3163
+ id: number;
3164
+ action: 'created' | 'deleted' | 'updated';
3165
+ createdAt: string;
3166
+ createdBy: string | null;
3167
+ createdByType: 'email' | 'id' | 'name' | null;
3168
+ flag: string;
3169
+ provider: 'generic' | 'flagpole' | 'launchdarkly' | 'unleash' | 'statsig' | null;
3170
+ tags: {
3171
+ [key: string]: unknown;
3172
+ };
3173
+ };
3174
+ };
3148
3175
  export type GetReplay = {
3149
3176
  data: {
3150
3177
  id?: string;
@@ -3991,225 +4018,238 @@ export type InstallInfoResponse = {
3991
4018
  profileName: string | null;
3992
4019
  codesigningType: string | null;
3993
4020
  };
3994
- export type IntegrationIssueConfigResponse = {
3995
- id: string;
3996
- name: string;
3997
- icon: string | null;
3998
- domainName: string | null;
3999
- accountType: string | null;
4000
- scopes: Array<string> | null;
4001
- outOfDate: boolean | null;
4002
- missingFeatures: Array<{
4003
- key: string;
4004
- description: string;
4005
- }> | null;
4006
- status: string;
4007
- provider: {
4008
- key: string;
4009
- slug: string;
4010
- name: string;
4011
- canAdd: boolean;
4012
- canDisable: boolean;
4013
- features: Array<string>;
4014
- aspects: {
4015
- [key: string]: unknown;
4016
- };
4017
- };
4018
- linkIssueConfig?: Array<{
4019
- [key: string]: unknown;
4020
- }>;
4021
- createIssueConfig?: Array<{
4022
- [key: string]: unknown;
4023
- }>;
4021
+ export type IntegrationChannelValidationResponse = {
4022
+ detail?: string;
4023
+ valid: boolean;
4024
4024
  };
4025
- export type IntegrationRepositoriesResponse = {
4026
- repos: Array<{
4025
+ export type IntegrationChannelsResponse = {
4026
+ warning?: string;
4027
+ results: Array<{
4028
+ id: string;
4027
4029
  name: string;
4028
- identifier: string;
4029
- isInstalled: boolean;
4030
- defaultBranch: string | null;
4031
- externalId: string;
4032
- url: string | null;
4033
- }>;
4034
- searchable?: boolean;
4035
- };
4036
- export type IssueEventDetailsResponse = {
4037
- id: string;
4038
- groupID: string | null;
4039
- eventID: string;
4040
- projectID: string;
4041
- message: string | null;
4042
- title: string;
4043
- location: string | null;
4044
- user: {
4045
- id?: string | null;
4046
- email?: string | null;
4047
- username?: string | null;
4048
- ip_address?: string | null;
4049
- name?: string | null;
4050
- geo?: {
4051
- [key: string]: string;
4052
- } | null;
4053
- data?: {
4054
- [key: string]: unknown;
4055
- } | null;
4056
- } | null;
4057
- tags: Array<{
4058
- query?: string;
4059
- key: string;
4060
- value: string;
4061
- }>;
4062
- platform: string;
4063
- dateReceived: string | null;
4064
- contexts: {
4065
- [key: string]: unknown;
4066
- } | null;
4067
- size: number | null;
4068
- entries: Array<unknown>;
4069
- dist: string | null;
4070
- sdk: {
4071
- name: string | null;
4072
- version: string | null;
4073
- } | null;
4074
- context: {
4075
- [key: string]: unknown;
4076
- } | null;
4077
- packages: {
4078
- [key: string]: unknown;
4079
- };
4080
- type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback';
4081
- metadata: {
4082
- [key: string]: unknown;
4083
- };
4084
- errors: Array<{
4030
+ display: string;
4085
4031
  type: string;
4086
- message: string;
4087
- data: {
4088
- [key: string]: unknown;
4089
- };
4090
4032
  }>;
4091
- occurrence: {
4092
- id: string;
4093
- projectId: number;
4094
- eventId: string;
4095
- fingerprint: Array<string>;
4096
- issueTitle: string;
4097
- subtitle: string;
4098
- resourceId: string | null;
4099
- evidenceData: {
4100
- [key: string]: unknown;
4101
- };
4102
- evidenceDisplay: Array<{
4103
- name: string;
4104
- value: string;
4105
- important: boolean;
4106
- }>;
4107
- type: number;
4108
- detectionTime: number;
4109
- level: string | null;
4110
- culprit: string | null;
4111
- assignee: string | null;
4112
- priority: number | null;
4113
- } | null;
4114
- _meta: {
4115
- [key: string]: unknown;
4116
- };
4117
- crashFile?: string | null;
4118
- culprit?: string | null;
4119
- dateCreated?: string;
4120
- fingerprints?: Array<string>;
4121
- groupingConfig?: {
4122
- id: string;
4123
- enhancements: string;
4124
- };
4125
- startTimestamp?: number;
4126
- endTimestamp?: number;
4127
- measurements?: {
4128
- [key: string]: {
4129
- value: number;
4130
- unit: string | null;
4131
- };
4132
- } | null;
4133
- breakdowns?: {
4134
- [key: string]: {
4135
- [key: string]: {
4136
- value: number;
4137
- unit: string | null;
4138
- };
4139
- };
4140
- } | null;
4141
- release: {
4142
- id?: number;
4143
- commitCount?: number;
4144
- data?: {
4145
- [key: string]: unknown;
4146
- };
4147
- dateCreated?: string;
4148
- dateReleased?: string | null;
4149
- deployCount?: number;
4150
- ref?: string | null;
4151
- lastCommit?: {
4152
- [key: string]: unknown;
4153
- } | null;
4154
- lastDeploy?: {
4155
- dateStarted?: string | null;
4156
- url?: string | null;
4157
- id: string;
4158
- environment: string;
4159
- dateFinished: string;
4160
- name: string;
4161
- } | null;
4162
- status?: string;
4163
- url?: string | null;
4164
- userAgent?: string | null;
4165
- version?: string | null;
4166
- versionInfo?: {
4167
- description?: string;
4168
- package: string | null;
4169
- version: {
4170
- [key: string]: unknown;
4171
- };
4172
- buildHash: string | null;
4173
- } | null;
4174
- } | null;
4175
- userReport: {
4176
- id: string;
4177
- eventID: string;
4178
- name: string | null;
4179
- email: string | null;
4180
- comments: string;
4181
- dateCreated: string;
4182
- user: {
4183
- id: string;
4184
- username: string | null;
4185
- email: string | null;
4186
- name: string | null;
4187
- ipAddress: string | null;
4188
- avatarUrl: string | null;
4189
- } | null;
4190
- event: {
4191
- id: string;
4192
- eventID: string;
4193
- };
4194
- } | null;
4195
- sdkUpdates: Array<{
4196
- [key: string]: unknown;
4197
- }>;
4198
- resolvedWith: Array<string>;
4199
- nextEventID: string | null;
4200
- previousEventID: string | null;
4201
- /**
4202
- * The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested.
4203
- *
4204
- * ``content`` is text for the text formats and a serialized JSON object for ``json``, so the
4205
- * response shape is the same whichever format a caller asks for.
4206
- */
4207
- formatted?: {
4208
- format: 'markdown' | 'xml' | 'json';
4209
- content: string;
4210
- };
4211
4033
  };
4212
- export type IssueIntegrationsResponse = Array<{
4034
+ export type IntegrationIssueConfigResponse = {
4035
+ id: string;
4036
+ name: string;
4037
+ icon: string | null;
4038
+ domainName: string | null;
4039
+ accountType: string | null;
4040
+ scopes: Array<string> | null;
4041
+ outOfDate: boolean | null;
4042
+ missingFeatures: Array<{
4043
+ key: string;
4044
+ description: string;
4045
+ }> | null;
4046
+ status: string;
4047
+ provider: {
4048
+ key: string;
4049
+ slug: string;
4050
+ name: string;
4051
+ canAdd: boolean;
4052
+ canDisable: boolean;
4053
+ features: Array<string>;
4054
+ aspects: {
4055
+ [key: string]: unknown;
4056
+ };
4057
+ };
4058
+ linkIssueConfig?: Array<{
4059
+ [key: string]: unknown;
4060
+ }>;
4061
+ createIssueConfig?: Array<{
4062
+ [key: string]: unknown;
4063
+ }>;
4064
+ };
4065
+ export type IntegrationRepositoriesResponse = {
4066
+ repos: Array<{
4067
+ name: string;
4068
+ identifier: string;
4069
+ isInstalled: boolean;
4070
+ defaultBranch: string | null;
4071
+ externalId: string;
4072
+ url: string | null;
4073
+ }>;
4074
+ searchable?: boolean;
4075
+ };
4076
+ export type IssueEventDetailsResponse = {
4077
+ id: string;
4078
+ groupID: string | null;
4079
+ eventID: string;
4080
+ projectID: string;
4081
+ message: string | null;
4082
+ title: string;
4083
+ location: string | null;
4084
+ user: {
4085
+ id?: string | null;
4086
+ email?: string | null;
4087
+ username?: string | null;
4088
+ ip_address?: string | null;
4089
+ name?: string | null;
4090
+ geo?: {
4091
+ [key: string]: string;
4092
+ } | null;
4093
+ data?: {
4094
+ [key: string]: unknown;
4095
+ } | null;
4096
+ } | null;
4097
+ tags: Array<{
4098
+ query?: string;
4099
+ key: string;
4100
+ value: string;
4101
+ }>;
4102
+ platform: string;
4103
+ dateReceived: string | null;
4104
+ contexts: {
4105
+ [key: string]: unknown;
4106
+ } | null;
4107
+ size: number | null;
4108
+ entries: Array<unknown>;
4109
+ dist: string | null;
4110
+ sdk: {
4111
+ name: string | null;
4112
+ version: string | null;
4113
+ } | null;
4114
+ context: {
4115
+ [key: string]: unknown;
4116
+ } | null;
4117
+ packages: {
4118
+ [key: string]: unknown;
4119
+ };
4120
+ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback';
4121
+ metadata: {
4122
+ [key: string]: unknown;
4123
+ };
4124
+ errors: Array<{
4125
+ type: string;
4126
+ message: string;
4127
+ data: {
4128
+ [key: string]: unknown;
4129
+ };
4130
+ }>;
4131
+ occurrence: {
4132
+ id: string;
4133
+ projectId: number;
4134
+ eventId: string;
4135
+ fingerprint: Array<string>;
4136
+ issueTitle: string;
4137
+ subtitle: string;
4138
+ resourceId: string | null;
4139
+ evidenceData: {
4140
+ [key: string]: unknown;
4141
+ };
4142
+ evidenceDisplay: Array<{
4143
+ name: string;
4144
+ value: string;
4145
+ important: boolean;
4146
+ }>;
4147
+ type: number;
4148
+ detectionTime: number;
4149
+ level: string | null;
4150
+ culprit: string | null;
4151
+ assignee: string | null;
4152
+ priority: number | null;
4153
+ } | null;
4154
+ _meta: {
4155
+ [key: string]: unknown;
4156
+ };
4157
+ crashFile?: string | null;
4158
+ culprit?: string | null;
4159
+ dateCreated?: string;
4160
+ fingerprints?: Array<string>;
4161
+ groupingConfig?: {
4162
+ id: string;
4163
+ enhancements: string;
4164
+ };
4165
+ startTimestamp?: number;
4166
+ endTimestamp?: number;
4167
+ measurements?: {
4168
+ [key: string]: {
4169
+ value: number;
4170
+ unit: string | null;
4171
+ };
4172
+ } | null;
4173
+ breakdowns?: {
4174
+ [key: string]: {
4175
+ [key: string]: {
4176
+ value: number;
4177
+ unit: string | null;
4178
+ };
4179
+ };
4180
+ } | null;
4181
+ release: {
4182
+ id?: number;
4183
+ commitCount?: number;
4184
+ data?: {
4185
+ [key: string]: unknown;
4186
+ };
4187
+ dateCreated?: string;
4188
+ dateReleased?: string | null;
4189
+ deployCount?: number;
4190
+ ref?: string | null;
4191
+ lastCommit?: {
4192
+ [key: string]: unknown;
4193
+ } | null;
4194
+ lastDeploy?: {
4195
+ dateStarted?: string | null;
4196
+ url?: string | null;
4197
+ id: string;
4198
+ environment: string;
4199
+ dateFinished: string;
4200
+ name: string;
4201
+ } | null;
4202
+ status?: string;
4203
+ url?: string | null;
4204
+ userAgent?: string | null;
4205
+ version?: string | null;
4206
+ versionInfo?: {
4207
+ description?: string;
4208
+ package: string | null;
4209
+ version: {
4210
+ [key: string]: unknown;
4211
+ };
4212
+ buildHash: string | null;
4213
+ } | null;
4214
+ } | null;
4215
+ userReport: {
4216
+ id: string;
4217
+ eventID: string;
4218
+ name: string | null;
4219
+ email: string | null;
4220
+ comments: string;
4221
+ dateCreated: string;
4222
+ user: {
4223
+ id: string;
4224
+ username: string | null;
4225
+ email: string | null;
4226
+ name: string | null;
4227
+ ipAddress: string | null;
4228
+ avatarUrl: string | null;
4229
+ } | null;
4230
+ event: {
4231
+ id: string;
4232
+ eventID: string;
4233
+ };
4234
+ } | null;
4235
+ sdkUpdates: Array<{
4236
+ [key: string]: unknown;
4237
+ }>;
4238
+ resolvedWith: Array<string>;
4239
+ nextEventID: string | null;
4240
+ previousEventID: string | null;
4241
+ /**
4242
+ * The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested.
4243
+ *
4244
+ * ``content`` is text for the text formats and a serialized JSON object for ``json``, so the
4245
+ * response shape is the same whichever format a caller asks for.
4246
+ */
4247
+ formatted?: {
4248
+ format: 'markdown' | 'xml' | 'json';
4249
+ content: string;
4250
+ };
4251
+ };
4252
+ export type IssueIntegrationsResponse = Array<{
4213
4253
  id: string;
4214
4254
  name: string;
4215
4255
  icon: string | null;
@@ -4364,6 +4404,7 @@ export type LatestInstallableBuildResponse = {
4364
4404
  * - `ssqp` - Microsoft SSQP
4365
4405
  * - `unified` - Unified Symbol Server Layout
4366
4406
  * - `debuginfod` - debuginfod
4407
+ * - `nxsymstore` - Nintendo NXSymStore
4367
4408
  *
4368
4409
  * **`casing`** ***(string)*** - The layout of the folder structure. The options are:
4369
4410
  * - `default` - Default (mixed case)
@@ -4390,8 +4431,9 @@ export type Layout = {
4390
4431
  * * `unified`
4391
4432
  * * `debuginfod`
4392
4433
  * * `slashsymbols`
4434
+ * * `nxsymstore`
4393
4435
  */
4394
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
4436
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
4395
4437
  /**
4396
4438
  * The source's casing rules.
4397
4439
  *
@@ -4543,6 +4585,20 @@ export type ListEventAttachmentsResponse = Array<{
4543
4585
  };
4544
4586
  sha1: string | null;
4545
4587
  }>;
4588
+ export type ListFlagLogsResponse = {
4589
+ data: Array<{
4590
+ id: number;
4591
+ action: 'created' | 'deleted' | 'updated';
4592
+ createdAt: string;
4593
+ createdBy: string | null;
4594
+ createdByType: 'email' | 'id' | 'name' | null;
4595
+ flag: string;
4596
+ provider: 'generic' | 'flagpole' | 'launchdarkly' | 'unleash' | 'statsig' | null;
4597
+ tags: {
4598
+ [key: string]: unknown;
4599
+ };
4600
+ }>;
4601
+ };
4546
4602
  export type ListMemberOnTeamResponse = Array<{
4547
4603
  externalUsers?: Array<{
4548
4604
  externalId?: string;
@@ -4811,6 +4867,7 @@ export type ListOrgTeamResponse = Array<{
4811
4867
  }>;
4812
4868
  export type ListOrganizationAiConversationsResponse = Array<{
4813
4869
  endTimestamp: number;
4870
+ errors: number;
4814
4871
  generationDuration: number;
4815
4872
  inputTokens: number;
4816
4873
  llmCalls: number;
@@ -4822,7 +4879,7 @@ export type ListOrganizationAiConversationsResponse = Array<{
4822
4879
  totalCost: number;
4823
4880
  totalTokens: number;
4824
4881
  conversationId: string;
4825
- errors: number;
4882
+ timeSpan: number;
4826
4883
  title: string | null;
4827
4884
  projectId: number | null;
4828
4885
  flow: Array<string>;
@@ -5860,6 +5917,24 @@ export type ListTraceItemAttributesResponse = Array<{
5860
5917
  is_transformed_alias?: boolean;
5861
5918
  };
5862
5919
  attributeType: 'string' | 'number' | 'boolean' | 'array';
5920
+ /**
5921
+ * Additional, mostly-static metadata about an attribute.
5922
+ *
5923
+ * When ``expand=context`` is requested, context is attached to every attribute.
5924
+ * Metadata comes from the sentry conventions, Sentry's own column definitions,
5925
+ * or user-authored context (gated behind ``data-browsing-attribute-context``),
5926
+ * in that precedence order. Only the fields available are included, so an
5927
+ * attribute with no metadata gets an empty context.
5928
+ */
5929
+ context?: {
5930
+ isConvention?: boolean;
5931
+ isCustom?: boolean;
5932
+ brief?: string;
5933
+ isDeprecated?: boolean;
5934
+ details?: Array<string>;
5935
+ examples?: Array<string | number | number | boolean>;
5936
+ replacementAttribute?: string;
5937
+ };
5863
5938
  }>;
5864
5939
  export type ListWorkflow = Array<{
5865
5940
  id: string;
@@ -5924,13 +5999,6 @@ export type ListWorkflow = Array<{
5924
5999
  owner: string | null;
5925
6000
  }>;
5926
6001
  export type Monitor = {
5927
- alertRule?: {
5928
- targets: Array<{
5929
- targetIdentifier: number;
5930
- targetType: string;
5931
- }>;
5932
- environment: string;
5933
- };
5934
6002
  id: string;
5935
6003
  name: string;
5936
6004
  slug: string;
@@ -6018,43 +6086,7 @@ export type Monitor = {
6018
6086
  email?: string;
6019
6087
  };
6020
6088
  };
6021
- export type MonitorAlertRuleTargetValidator = {
6022
- /**
6023
- * ID of target object
6024
- */
6025
- target_identifier: number;
6026
- /**
6027
- * One of [Member, Team]
6028
- */
6029
- target_type: string;
6030
- };
6031
- export type MonitorAlertRuleValidator = {
6032
- /**
6033
- * Name of the environment
6034
- */
6035
- environment?: string | null;
6036
- /**
6037
- * Array of dictionaries with information of the user or team to be notified
6038
- */
6039
- targets: Array<{
6040
- /**
6041
- * ID of target object
6042
- */
6043
- target_identifier: number;
6044
- /**
6045
- * One of [Member, Team]
6046
- */
6047
- target_type: string;
6048
- }>;
6049
- };
6050
6089
  export type MonitorList = Array<{
6051
- alertRule?: {
6052
- targets: Array<{
6053
- targetIdentifier: number;
6054
- targetType: string;
6055
- }>;
6056
- environment: string;
6057
- };
6058
6090
  id: string;
6059
6091
  name: string;
6060
6092
  slug: string;
@@ -6176,7 +6208,7 @@ export type MonitorValidator = {
6176
6208
  */
6177
6209
  checkin_margin?: number | null;
6178
6210
  /**
6179
- * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed.
6211
+ * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days).
6180
6212
  */
6181
6213
  max_runtime?: number | null;
6182
6214
  /**
@@ -6810,28 +6842,6 @@ export type MonitorValidator = {
6810
6842
  * Disable creation of monitor incidents
6811
6843
  */
6812
6844
  is_muted?: boolean;
6813
- /**
6814
- * Alert rule configuration created alongside the monitor.
6815
- */
6816
- alert_rule?: {
6817
- /**
6818
- * Name of the environment
6819
- */
6820
- environment?: string | null;
6821
- /**
6822
- * Array of dictionaries with information of the user or team to be notified
6823
- */
6824
- targets: Array<{
6825
- /**
6826
- * ID of target object
6827
- */
6828
- target_identifier: number;
6829
- /**
6830
- * One of [Member, Team]
6831
- */
6832
- target_type: string;
6833
- }>;
6834
- };
6835
6845
  };
6836
6846
  /**
6837
6847
  * Django Rest Framework serializer for incoming NotificationAction API payloads
@@ -7214,6 +7224,32 @@ export type OrganizationEnvironmentResponse = Array<{
7214
7224
  id: string;
7215
7225
  name: string;
7216
7226
  }>;
7227
+ export type OrganizationEventsDroppedResponse = {
7228
+ meta: {
7229
+ dataset: string;
7230
+ start: number;
7231
+ end: number;
7232
+ interval: number;
7233
+ };
7234
+ droppedEvents: Array<{
7235
+ type: string;
7236
+ category: string;
7237
+ outcome: string;
7238
+ reason: string;
7239
+ start: number;
7240
+ end: number;
7241
+ count: number;
7242
+ }>;
7243
+ acceptedEvents: Array<{
7244
+ type: string;
7245
+ category: string;
7246
+ outcome: string;
7247
+ reason: string;
7248
+ start: number;
7249
+ end: number;
7250
+ count: number;
7251
+ }>;
7252
+ };
7217
7253
  export type OrganizationEventsResponseDict = {
7218
7254
  data: Array<{
7219
7255
  [key: string]: unknown;
@@ -7259,26 +7295,6 @@ export type OrganizationEventsTimeseriesResponse = {
7259
7295
  dataset: string;
7260
7296
  start: number;
7261
7297
  end: number;
7262
- droppedAnnotations?: Array<{
7263
- type: 'system';
7264
- category: string;
7265
- outcome: string;
7266
- reason: string;
7267
- start: number;
7268
- end: number;
7269
- eventCount: number;
7270
- byteSize?: number;
7271
- }>;
7272
- acceptedAnnotations?: Array<{
7273
- type: 'system';
7274
- category: string;
7275
- outcome: string;
7276
- reason: string;
7277
- start: number;
7278
- end: number;
7279
- eventCount: number;
7280
- byteSize?: number;
7281
- }>;
7282
7298
  /**
7283
7299
  * Ingestion status for the data behind a response.
7284
7300
  */
@@ -9766,6 +9782,7 @@ export type RetrieveOrganizationAiConversationResponse = {
9766
9782
  }>;
9767
9783
  stats: {
9768
9784
  endTimestamp: number;
9785
+ errors: number;
9769
9786
  generationDuration: number;
9770
9787
  inputTokens: number;
9771
9788
  llmCalls: number;
@@ -9776,6 +9793,10 @@ export type RetrieveOrganizationAiConversationResponse = {
9776
9793
  toolNames: Array<string>;
9777
9794
  totalCost: number;
9778
9795
  totalTokens: number;
9796
+ cacheReadTokens: number;
9797
+ cacheWriteTokens: number;
9798
+ errorToolNames: Array<string>;
9799
+ reasoningTokens: number;
9779
9800
  usageByModel: Array<{
9780
9801
  model: string | null;
9781
9802
  llmCalls: number;
@@ -9789,7 +9810,25 @@ export type RetrieveOrganizationAiConversationResponse = {
9789
9810
  outputCost: number;
9790
9811
  totalCost: number;
9791
9812
  }>;
9792
- };
9813
+ } | null;
9814
+ };
9815
+ export type ScimListResourceTypesResponse = {
9816
+ schemas: Array<string>;
9817
+ totalResults: number;
9818
+ startIndex: number;
9819
+ itemsPerPage: number;
9820
+ Resources: Array<{
9821
+ schemas: Array<string>;
9822
+ id: string;
9823
+ name: string;
9824
+ description: string;
9825
+ endpoint: string;
9826
+ schema: string;
9827
+ meta: {
9828
+ resourceType: string;
9829
+ location: string;
9830
+ };
9831
+ }>;
9793
9832
  };
9794
9833
  export type ScimListResponseEnvelopeScimMemberIndexResponse = {
9795
9834
  schemas: Array<string>;
@@ -9884,6 +9923,67 @@ export type ScimPatchRequest = {
9884
9923
  */
9885
9924
  schemas?: Array<string>;
9886
9925
  };
9926
+ export type ScimResourceTypeResponse = {
9927
+ schemas: Array<string>;
9928
+ id: string;
9929
+ name: string;
9930
+ description: string;
9931
+ endpoint: string;
9932
+ schema: string;
9933
+ meta: {
9934
+ resourceType: string;
9935
+ location: string;
9936
+ };
9937
+ };
9938
+ export type ScimSchemaResponse = {
9939
+ schemas: Array<string>;
9940
+ id: string;
9941
+ name: string;
9942
+ description: string;
9943
+ attributes: Array<{
9944
+ [key: string]: unknown;
9945
+ }>;
9946
+ meta: {
9947
+ resourceType: string;
9948
+ location: string;
9949
+ };
9950
+ };
9951
+ export type ScimServiceProviderConfigResponse = {
9952
+ schemas: Array<string>;
9953
+ documentationUri: string;
9954
+ patch: {
9955
+ supported: boolean;
9956
+ };
9957
+ bulk: {
9958
+ supported: boolean;
9959
+ maxOperations: number;
9960
+ maxPayloadSize: number;
9961
+ };
9962
+ filter: {
9963
+ supported: boolean;
9964
+ maxResults: number;
9965
+ };
9966
+ changePassword: {
9967
+ supported: boolean;
9968
+ };
9969
+ sort: {
9970
+ supported: boolean;
9971
+ };
9972
+ etag: {
9973
+ supported: boolean;
9974
+ };
9975
+ authenticationSchemes: Array<{
9976
+ type: string;
9977
+ name: string;
9978
+ description: string;
9979
+ specUri: string;
9980
+ primary: boolean;
9981
+ }>;
9982
+ meta: {
9983
+ resourceType: string;
9984
+ location: string;
9985
+ };
9986
+ };
9887
9987
  export type ScimTeamPatchOperation = {
9888
9988
  op: string;
9889
9989
  value?: {
@@ -10604,6 +10704,7 @@ export type Source = {
10604
10704
  * - `ssqp` - Microsoft SSQP
10605
10705
  * - `unified` - Unified Symbol Server Layout
10606
10706
  * - `debuginfod` - debuginfod
10707
+ * - `nxsymstore` - Nintendo NXSymStore
10607
10708
  *
10608
10709
  * **`casing`** ***(string)*** - The layout of the folder structure. The options are:
10609
10710
  * - `default` - Default (mixed case)
@@ -10630,8 +10731,9 @@ export type Source = {
10630
10731
  * * `unified`
10631
10732
  * * `debuginfod`
10632
10733
  * * `slashsymbols`
10734
+ * * `nxsymstore`
10633
10735
  */
10634
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
10736
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
10635
10737
  /**
10636
10738
  * The source's casing rules.
10637
10739
  *
@@ -10830,6 +10932,16 @@ export type SourceMapDebug = {
10830
10932
  sdk_debug_id_support: 'not-supported' | 'unofficial-sdk' | 'needs-upgrade' | 'full';
10831
10933
  has_scraping_data: boolean;
10832
10934
  };
10935
+ export type StarSegment = {
10936
+ /**
10937
+ * The name of the service span to star or unstar.
10938
+ */
10939
+ service_span: string;
10940
+ /**
10941
+ * The ID of the project the service span belongs to.
10942
+ */
10943
+ project_id: number;
10944
+ };
10833
10945
  export type StatusDetailsValidator = {
10834
10946
  /**
10835
10947
  * If true, marks the issue as resolved in the next release.
@@ -11292,7 +11404,7 @@ export type WorkflowValidator = {
11292
11404
  *
11293
11405
  * ```json
11294
11406
  * {
11295
- * "frequency":3600
11407
+ * "frequency": 60
11296
11408
  * }
11297
11409
  * ```
11298
11410
  *
@@ -11983,7 +12095,7 @@ export type CustomInboundFilterWritable = {
11983
12095
  */
11984
12096
  conditions: Array<{
11985
12097
  /**
11986
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
12098
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
11987
12099
  *
11988
12100
  * * `error_type`
11989
12101
  * * `error_message`
@@ -11991,8 +12103,9 @@ export type CustomInboundFilterWritable = {
11991
12103
  * * `metric_name`
11992
12104
  * * `release`
11993
12105
  * * `ip_address`
12106
+ * * `geo_country_code`
11994
12107
  */
11995
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
12108
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
11996
12109
  /**
11997
12110
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
11998
12111
  */
@@ -12864,6 +12977,7 @@ export type ListOrganizationAiConversationsErrors = {
12864
12977
  export type ListOrganizationAiConversationsResponses = {
12865
12978
  200: Array<{
12866
12979
  endTimestamp: number;
12980
+ errors: number;
12867
12981
  generationDuration: number;
12868
12982
  inputTokens: number;
12869
12983
  llmCalls: number;
@@ -12875,7 +12989,7 @@ export type ListOrganizationAiConversationsResponses = {
12875
12989
  totalCost: number;
12876
12990
  totalTokens: number;
12877
12991
  conversationId: string;
12878
- errors: number;
12992
+ timeSpan: number;
12879
12993
  title: string | null;
12880
12994
  projectId: number | null;
12881
12995
  flow: Array<string>;
@@ -12990,6 +13104,7 @@ export type RetrieveOrganizationAiConversationResponses = {
12990
13104
  }>;
12991
13105
  stats: {
12992
13106
  endTimestamp: number;
13107
+ errors: number;
12993
13108
  generationDuration: number;
12994
13109
  inputTokens: number;
12995
13110
  llmCalls: number;
@@ -13000,6 +13115,10 @@ export type RetrieveOrganizationAiConversationResponses = {
13000
13115
  toolNames: Array<string>;
13001
13116
  totalCost: number;
13002
13117
  totalTokens: number;
13118
+ cacheReadTokens: number;
13119
+ cacheWriteTokens: number;
13120
+ errorToolNames: Array<string>;
13121
+ reasoningTokens: number;
13003
13122
  usageByModel: Array<{
13004
13123
  model: string | null;
13005
13124
  llmCalls: number;
@@ -13013,7 +13132,7 @@ export type RetrieveOrganizationAiConversationResponses = {
13013
13132
  outputCost: number;
13014
13133
  totalCost: number;
13015
13134
  }>;
13016
- };
13135
+ } | null;
13017
13136
  };
13018
13137
  };
13019
13138
  export type RetrieveOrganizationAiConversationResponse2 = RetrieveOrganizationAiConversationResponses[keyof RetrieveOrganizationAiConversationResponses];
@@ -14428,7 +14547,12 @@ export type UpdateOrganizationDetectorData = {
14428
14547
  workflow_ids?: Array<number>;
14429
14548
  /**
14430
14549
  *
14431
- * The data sources for the monitor to use based on what you want to measure.
14550
+ * The data sources for the metric monitor to use based on what you want to measure.
14551
+ *
14552
+ * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.
14553
+ * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value
14554
+ * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes
14555
+ * `"timeWindow": 300`.
14432
14556
  *
14433
14557
  * **Number of Errors Metric Monitor**
14434
14558
  * - `eventTypes`: Any of `error` or `default`.
@@ -14441,9 +14565,9 @@ export type UpdateOrganizationDetectorData = {
14441
14565
  * "eventTypes": ["default", "error"],
14442
14566
  * "query": "is:unresolved",
14443
14567
  * "queryType": 0,
14444
- * "timeWindow": 3600,
14445
- * },
14446
- * ],
14568
+ * "timeWindow": 3600
14569
+ * }
14570
+ * ]
14447
14571
  * ```
14448
14572
  *
14449
14573
  * **Users Experiencing Errors Metric Monitor**
@@ -14457,9 +14581,9 @@ export type UpdateOrganizationDetectorData = {
14457
14581
  * "eventTypes": ["default", "error"],
14458
14582
  * "query": "is:unresolved",
14459
14583
  * "queryType": 0,
14460
- * "timeWindow": 3600,
14461
- * },
14462
- * ],
14584
+ * "timeWindow": 3600
14585
+ * }
14586
+ * ]
14463
14587
  * ```
14464
14588
  *
14465
14589
  *
@@ -14470,13 +14594,13 @@ export type UpdateOrganizationDetectorData = {
14470
14594
  * "aggregate":"count(span.duration)",
14471
14595
  * "dataset":"events_analytics_platform",
14472
14596
  * "environment":"prod",
14473
- * "eventTypes":["trace_item_span"]
14597
+ * "eventTypes":["trace_item_span"],
14474
14598
  * "query":"",
14475
14599
  * "queryType":1,
14476
14600
  * "timeWindow":3600,
14477
- * "extrapolationMode":"unknown",
14478
- * },
14479
- * ],
14601
+ * "extrapolationMode":"unknown"
14602
+ * }
14603
+ * ]
14480
14604
  * ```
14481
14605
  *
14482
14606
  * **Duration Metric Monitor**
@@ -14486,13 +14610,13 @@ export type UpdateOrganizationDetectorData = {
14486
14610
  * "aggregate":"p95(span.duration)",
14487
14611
  * "dataset":"events_analytics_platform",
14488
14612
  * "environment":"prod",
14489
- * "eventTypes":["trace_item_span"]
14613
+ * "eventTypes":["trace_item_span"],
14490
14614
  * "query":"",
14491
14615
  * "queryType":1,
14492
14616
  * "timeWindow":3600,
14493
- * "extrapolationMode":"unknown",
14494
- * },
14495
- * ],
14617
+ * "extrapolationMode":"unknown"
14618
+ * }
14619
+ * ]
14496
14620
  * ```
14497
14621
  *
14498
14622
  * **Failure Rate Metric Monitor**
@@ -14502,17 +14626,17 @@ export type UpdateOrganizationDetectorData = {
14502
14626
  * "aggregate":"failure_rate()",
14503
14627
  * "dataset":"events_analytics_platform",
14504
14628
  * "environment":"prod",
14505
- * "eventTypes":["trace_item_span"]
14629
+ * "eventTypes":["trace_item_span"],
14506
14630
  * "query":"",
14507
14631
  * "queryType":1,
14508
14632
  * "timeWindow":3600,
14509
- * "extrapolationMode":"unknown",
14510
- * },
14511
- * ],
14633
+ * "extrapolationMode":"unknown"
14634
+ * }
14635
+ * ]
14512
14636
  * ```
14513
14637
  *
14514
14638
  * **Largest Contentful Paint Metric Monitor**
14515
- * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `events_analytics_platform`.
14639
+ * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
14516
14640
  * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, `p100(measurements.lcp)`, and `percentile(measurements.lcp,x)`, where `x` is your custom percentile.
14517
14641
  *
14518
14642
  * ```json
@@ -14521,17 +14645,17 @@ export type UpdateOrganizationDetectorData = {
14521
14645
  * "aggregate":"p95(measurements.lcp)",
14522
14646
  * "dataset":"events_analytics_platform",
14523
14647
  * "environment":"prod",
14524
- * "eventTypes":["trace_item_span"]
14525
- * "query":"",
14648
+ * "eventTypes":["trace_item_span"],
14649
+ * "query":"is_transaction:true",
14526
14650
  * "queryType":1,
14527
14651
  * "timeWindow":3600,
14528
- * "extrapolationMode":"unknown",
14529
- * },
14530
- * ],
14652
+ * "extrapolationMode":"unknown"
14653
+ * }
14654
+ * ]
14531
14655
  * ```
14532
14656
  *
14533
14657
  * **Custom Metric Monitor**
14534
- * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `events_analytics_platform`.
14658
+ * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
14535
14659
  * - `aggregate`: Valid values are:
14536
14660
  * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
14537
14661
  * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
@@ -14547,11 +14671,17 @@ export type UpdateOrganizationDetectorData = {
14547
14671
  * ```json
14548
14672
  * [
14549
14673
  * {
14550
- * "aggregate": "p75(measurements.ttfb)"
14674
+ * "aggregate": "p75(measurements.ttfb)",
14551
14675
  * "dataset": "events_analytics_platform",
14676
+ * "environment": "prod",
14552
14677
  * "queryType": 1,
14553
- * },
14554
- * ],
14678
+ * "eventTypes": ["trace_item_span"],
14679
+ * "query": "is_transaction:true",
14680
+ * "timeWindow": 3600,
14681
+ * "extrapolationMode": "unknown"
14682
+ * }
14683
+ * ]
14684
+ * ```
14555
14685
  *
14556
14686
  */
14557
14687
  data_sources?: Array<unknown>;
@@ -14564,7 +14694,7 @@ export type UpdateOrganizationDetectorData = {
14564
14694
  * - `static`: Threshold based monitor
14565
14695
  * - `percent`: Change based monitor
14566
14696
  * - `dynamic`: Dynamic monitor
14567
- * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against in minutes.
14697
+ * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.
14568
14698
  * For example, a value of 3600 compares the metric tracked against data 1 hour ago.
14569
14699
  * - `300`: 5 minutes
14570
14700
  * - `900`: 15 minutes
@@ -14576,20 +14706,20 @@ export type UpdateOrganizationDetectorData = {
14576
14706
  * **Threshold**
14577
14707
  * ```json
14578
14708
  * {
14579
- * "detectionType": "static",
14709
+ * "detectionType": "static"
14580
14710
  * }
14581
14711
  * ```
14582
14712
  * **Change**
14583
14713
  * ```json
14584
14714
  * {
14585
14715
  * "detectionType": "percent",
14586
- * "comparisonDelta": 3600,
14716
+ * "comparisonDelta": 3600
14587
14717
  * }
14588
14718
  * ```
14589
14719
  * **Dynamic**
14590
14720
  * ```json
14591
14721
  * {
14592
- * "detectionType": "dynamic",
14722
+ * "detectionType": "dynamic"
14593
14723
  * }
14594
14724
  * ```
14595
14725
  *
@@ -15645,10 +15775,17 @@ export type ListOrganizationEventsData = {
15645
15775
  */
15646
15776
  per_page?: number;
15647
15777
  /**
15648
- * Filters results by using [query syntax](/product/sentry-basics/search/).
15778
+ * Filters results by using [query syntax](/concepts/search/).
15649
15779
  *
15650
15780
  * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`
15651
15781
  *
15782
+ * With the `logs` dataset, a string attribute can also be matched against a regular expression written as `key://pattern//`, and excluded with `!key://pattern//`.
15783
+ * Patterns use [RE2 syntax](https://github.com/google/re2/wiki/Syntax), match anywhere in the value unless anchored with `^` or `$`, are case sensitive unless they start with `(?i)`, and are limited to 64 characters.
15784
+ * To search for a literal value that starts with `//`, quote it: `key:"//value"`.
15785
+ * See [regular expressions](/concepts/search/#regular-expressions-logs-only) for more details.
15786
+ *
15787
+ * Example: `query=message://^Timeout after \d+ms//`
15788
+ *
15652
15789
  */
15653
15790
  query?: string;
15654
15791
  /**
@@ -15719,6 +15856,120 @@ export type ListOrganizationEventsResponses = {
15719
15856
  };
15720
15857
  };
15721
15858
  export type ListOrganizationEventsResponse = ListOrganizationEventsResponses[keyof ListOrganizationEventsResponses];
15859
+ export type ListOrganizationEventsDroppedData = {
15860
+ body?: never;
15861
+ path: {
15862
+ /**
15863
+ * The ID or slug of the organization the resource belongs to.
15864
+ */
15865
+ organization_id_or_slug: string;
15866
+ };
15867
+ query: {
15868
+ /**
15869
+ * Which dataset to query. The chosen dataset determines which fields are queryable.
15870
+ * - `errors` - Error events.
15871
+ * - `logs` - Structured log events.
15872
+ * - `profile_functions` - Function-level Profiling data.
15873
+ * - `spans` - Distributed tracing span events.
15874
+ * - `tracemetrics` - Application Metrics.
15875
+ * - `uptime_results` - Uptime monitoring check results.
15876
+ *
15877
+ */
15878
+ dataset: 'errors' | 'logs' | 'profile_functions' | 'spans' | 'tracemetrics' | 'uptime_results';
15879
+ /**
15880
+ * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
15881
+ */
15882
+ end?: string;
15883
+ /**
15884
+ * The name of environments to filter by.
15885
+ */
15886
+ environment?: Array<string>;
15887
+ /**
15888
+ * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.
15889
+ * For example, the following are valid parameters:
15890
+ * - `/?project=1234&project=56789`
15891
+ * - `/?project=android&project=javascript-react`
15892
+ * - `/?project=-1`
15893
+ *
15894
+ */
15895
+ project?: Array<number | string>;
15896
+ /**
15897
+ * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
15898
+ */
15899
+ start?: string;
15900
+ /**
15901
+ * The period of time for the query, will override the start & end parameters, a number followed by one of:
15902
+ * - `d` for days
15903
+ * - `h` for hours
15904
+ * - `m` for minutes
15905
+ * - `s` for seconds
15906
+ * - `w` for weeks
15907
+ *
15908
+ * For example, `24h`, to mean query data starting from 24 hours ago to now.
15909
+ */
15910
+ statsPeriod?: string;
15911
+ /**
15912
+ * The size of the bucket for the timeseries to have, must be a value smaller than the window being
15913
+ * queried. If the interval is invalid a default interval will be selected instead
15914
+ */
15915
+ interval?: number;
15916
+ /**
15917
+ * Narrow the dropped events (only) to a single top-level drop classification (e.g. `rate_limited`, `filtered`).
15918
+ *
15919
+ * * `filtered`
15920
+ * * `rate_limited`
15921
+ * * `invalid`
15922
+ * * `abuse`
15923
+ * * `client_discard`
15924
+ * * `cardinality_limited`
15925
+ */
15926
+ outcome?: 'filtered' | 'rate_limited' | 'invalid' | 'abuse' | 'client_discard' | 'cardinality_limited';
15927
+ /**
15928
+ * Narrow the dropped events to a single reason, the sub-classification within an outcome (e.g. `spike_protection` within `rate_limited`). Should be combined with `outcome`.
15929
+ */
15930
+ reason?: string;
15931
+ };
15932
+ url: '/api/0/organizations/{organization_id_or_slug}/events-dropped/';
15933
+ };
15934
+ export type ListOrganizationEventsDroppedErrors = {
15935
+ /**
15936
+ * Invalid Query
15937
+ */
15938
+ 400: unknown;
15939
+ /**
15940
+ * Not Found
15941
+ */
15942
+ 404: unknown;
15943
+ };
15944
+ export type ListOrganizationEventsDroppedResponses = {
15945
+ 200: {
15946
+ meta: {
15947
+ dataset: string;
15948
+ start: number;
15949
+ end: number;
15950
+ interval: number;
15951
+ };
15952
+ droppedEvents: Array<{
15953
+ type: string;
15954
+ category: string;
15955
+ outcome: string;
15956
+ reason: string;
15957
+ start: number;
15958
+ end: number;
15959
+ count: number;
15960
+ }>;
15961
+ acceptedEvents: Array<{
15962
+ type: string;
15963
+ category: string;
15964
+ outcome: string;
15965
+ reason: string;
15966
+ start: number;
15967
+ end: number;
15968
+ count: number;
15969
+ }>;
15970
+ };
15971
+ };
15972
+ export type ListOrganizationEventsDroppedResponse = ListOrganizationEventsDroppedResponses[keyof ListOrganizationEventsDroppedResponses];
15722
15973
  export type ListOrganizationEventsTimeseriesData = {
15723
15974
  body?: never;
15724
15975
  path: {
@@ -15814,10 +16065,17 @@ export type ListOrganizationEventsTimeseriesData = {
15814
16065
  */
15815
16066
  yAxis?: string;
15816
16067
  /**
15817
- * Filters results by using [query syntax](/product/sentry-basics/search/).
16068
+ * Filters results by using [query syntax](/concepts/search/).
15818
16069
  *
15819
16070
  * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`
15820
16071
  *
16072
+ * With the `logs` dataset, a string attribute can also be matched against a regular expression written as `key://pattern//`, and excluded with `!key://pattern//`.
16073
+ * Patterns use [RE2 syntax](https://github.com/google/re2/wiki/Syntax), match anywhere in the value unless anchored with `^` or `$`, are case sensitive unless they start with `(?i)`, and are limited to 64 characters.
16074
+ * To search for a literal value that starts with `//`, quote it: `key:"//value"`.
16075
+ * See [regular expressions](/concepts/search/#regular-expressions-logs-only) for more details.
16076
+ *
16077
+ * Example: `query=message://^Timeout after \d+ms//`
16078
+ *
15821
16079
  */
15822
16080
  query?: string;
15823
16081
  /**
@@ -15853,26 +16111,6 @@ export type ListOrganizationEventsTimeseriesResponses = {
15853
16111
  dataset: string;
15854
16112
  start: number;
15855
16113
  end: number;
15856
- droppedAnnotations?: Array<{
15857
- type: 'system';
15858
- category: string;
15859
- outcome: string;
15860
- reason: string;
15861
- start: number;
15862
- end: number;
15863
- eventCount: number;
15864
- byteSize?: number;
15865
- }>;
15866
- acceptedAnnotations?: Array<{
15867
- type: 'system';
15868
- category: string;
15869
- outcome: string;
15870
- reason: string;
15871
- start: number;
15872
- end: number;
15873
- eventCount: number;
15874
- byteSize?: number;
15875
- }>;
15876
16114
  /**
15877
16115
  * Ingestion status for the data behind a response.
15878
16116
  */
@@ -16105,6 +16343,145 @@ export type UpdateOrganizationExternalUserResponses = {
16105
16343
  };
16106
16344
  };
16107
16345
  export type UpdateOrganizationExternalUserResponse = UpdateOrganizationExternalUserResponses[keyof UpdateOrganizationExternalUserResponses];
16346
+ export type ListOrganizationFlagLogsData = {
16347
+ body?: never;
16348
+ path: {
16349
+ /**
16350
+ * The ID or slug of the organization the resource belongs to.
16351
+ */
16352
+ organization_id_or_slug: string;
16353
+ };
16354
+ query?: {
16355
+ /**
16356
+ * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
16357
+ */
16358
+ start?: string;
16359
+ /**
16360
+ * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
16361
+ */
16362
+ end?: string;
16363
+ /**
16364
+ * The period of time for the query, will override the start & end parameters, a number followed by one of:
16365
+ * - `d` for days
16366
+ * - `h` for hours
16367
+ * - `m` for minutes
16368
+ * - `s` for seconds
16369
+ * - `w` for weeks
16370
+ *
16371
+ * For example, `24h`, to mean query data starting from 24 hours ago to now.
16372
+ */
16373
+ statsPeriod?: string;
16374
+ /**
16375
+ * The name of a feature flag to filter by. Repeat the parameter to match multiple flags.
16376
+ */
16377
+ flag?: Array<string>;
16378
+ /**
16379
+ * The flag provider to filter by. Use `unknown` to match logs without a provider. Repeat the parameter to match multiple providers.
16380
+ */
16381
+ provider?: Array<'flagpole' | 'generic' | 'launchdarkly' | 'statsig' | 'unknown' | 'unleash'>;
16382
+ /**
16383
+ * The field to sort results by.
16384
+ *
16385
+ * Available fields are:
16386
+ * - `action`
16387
+ * - `createdAt`
16388
+ * - `createdBy`
16389
+ * - `createdByType`
16390
+ * - `flag`
16391
+ * - `provider`
16392
+ *
16393
+ * Prefix with `-` to sort in descending order.
16394
+ *
16395
+ */
16396
+ sort?: string;
16397
+ /**
16398
+ * Limit the number of rows to return in the result. Default and maximum allowed is 100.
16399
+ */
16400
+ per_page?: number;
16401
+ /**
16402
+ * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
16403
+ */
16404
+ cursor?: string;
16405
+ };
16406
+ url: '/api/0/organizations/{organization_id_or_slug}/flags/logs/';
16407
+ };
16408
+ export type ListOrganizationFlagLogsErrors = {
16409
+ /**
16410
+ * Bad Request
16411
+ */
16412
+ 400: unknown;
16413
+ /**
16414
+ * Unauthorized
16415
+ */
16416
+ 401: unknown;
16417
+ /**
16418
+ * Forbidden
16419
+ */
16420
+ 403: unknown;
16421
+ };
16422
+ export type ListOrganizationFlagLogsResponses = {
16423
+ 200: {
16424
+ data: Array<{
16425
+ id: number;
16426
+ action: 'created' | 'deleted' | 'updated';
16427
+ createdAt: string;
16428
+ createdBy: string | null;
16429
+ createdByType: 'email' | 'id' | 'name' | null;
16430
+ flag: string;
16431
+ provider: 'generic' | 'flagpole' | 'launchdarkly' | 'unleash' | 'statsig' | null;
16432
+ tags: {
16433
+ [key: string]: unknown;
16434
+ };
16435
+ }>;
16436
+ };
16437
+ };
16438
+ export type ListOrganizationFlagLogsResponse = ListOrganizationFlagLogsResponses[keyof ListOrganizationFlagLogsResponses];
16439
+ export type RetrieveOrganizationFlagLogData = {
16440
+ body?: never;
16441
+ path: {
16442
+ /**
16443
+ * The ID or slug of the organization the resource belongs to.
16444
+ */
16445
+ organization_id_or_slug: string;
16446
+ /**
16447
+ * The ID of the flag log entry you'd like to retrieve.
16448
+ */
16449
+ flag_log_id: number;
16450
+ };
16451
+ query?: never;
16452
+ url: '/api/0/organizations/{organization_id_or_slug}/flags/logs/{flag_log_id}/';
16453
+ };
16454
+ export type RetrieveOrganizationFlagLogErrors = {
16455
+ /**
16456
+ * Unauthorized
16457
+ */
16458
+ 401: unknown;
16459
+ /**
16460
+ * Forbidden
16461
+ */
16462
+ 403: unknown;
16463
+ /**
16464
+ * Not Found
16465
+ */
16466
+ 404: unknown;
16467
+ };
16468
+ export type RetrieveOrganizationFlagLogResponses = {
16469
+ 200: {
16470
+ data: {
16471
+ id: number;
16472
+ action: 'created' | 'deleted' | 'updated';
16473
+ createdAt: string;
16474
+ createdBy: string | null;
16475
+ createdByType: 'email' | 'id' | 'name' | null;
16476
+ flag: string;
16477
+ provider: 'generic' | 'flagpole' | 'launchdarkly' | 'unleash' | 'statsig' | null;
16478
+ tags: {
16479
+ [key: string]: unknown;
16480
+ };
16481
+ };
16482
+ };
16483
+ };
16484
+ export type RetrieveOrganizationFlagLogResponse = RetrieveOrganizationFlagLogResponses[keyof RetrieveOrganizationFlagLogResponses];
16108
16485
  export type ListOrganizationForwardingData = {
16109
16486
  body?: never;
16110
16487
  path: {
@@ -16776,6 +17153,85 @@ export type GetOrganizationIntegrationResponses = {
16776
17153
  };
16777
17154
  };
16778
17155
  export type GetOrganizationIntegrationResponse = GetOrganizationIntegrationResponses[keyof GetOrganizationIntegrationResponses];
17156
+ export type ValidateOrganizationIntegrationChannelData = {
17157
+ body?: never;
17158
+ path: {
17159
+ /**
17160
+ * The ID or slug of the organization the resource belongs to.
17161
+ */
17162
+ organization_id_or_slug: string;
17163
+ /**
17164
+ * The ID of the integration installed on the organization.
17165
+ */
17166
+ integration_id: string;
17167
+ };
17168
+ query: {
17169
+ channel: string;
17170
+ };
17171
+ url: '/api/0/organizations/{organization_id_or_slug}/integrations/{integration_id}/channel-validate/';
17172
+ };
17173
+ export type ValidateOrganizationIntegrationChannelErrors = {
17174
+ /**
17175
+ * Bad Request
17176
+ */
17177
+ 400: unknown;
17178
+ /**
17179
+ * Forbidden
17180
+ */
17181
+ 403: unknown;
17182
+ /**
17183
+ * Not Found
17184
+ */
17185
+ 404: unknown;
17186
+ };
17187
+ export type ValidateOrganizationIntegrationChannelResponses = {
17188
+ 200: {
17189
+ detail?: string;
17190
+ valid: boolean;
17191
+ };
17192
+ };
17193
+ export type ValidateOrganizationIntegrationChannelResponse = ValidateOrganizationIntegrationChannelResponses[keyof ValidateOrganizationIntegrationChannelResponses];
17194
+ export type ListOrganizationIntegrationChannelsData = {
17195
+ body?: never;
17196
+ path: {
17197
+ /**
17198
+ * The ID or slug of the organization the resource belongs to.
17199
+ */
17200
+ organization_id_or_slug: string;
17201
+ /**
17202
+ * The ID of the integration installed on the organization.
17203
+ */
17204
+ integration_id: string;
17205
+ };
17206
+ query?: never;
17207
+ url: '/api/0/organizations/{organization_id_or_slug}/integrations/{integration_id}/channels/';
17208
+ };
17209
+ export type ListOrganizationIntegrationChannelsErrors = {
17210
+ /**
17211
+ * Bad Request
17212
+ */
17213
+ 400: unknown;
17214
+ /**
17215
+ * Forbidden
17216
+ */
17217
+ 403: unknown;
17218
+ /**
17219
+ * Not Found
17220
+ */
17221
+ 404: unknown;
17222
+ };
17223
+ export type ListOrganizationIntegrationChannelsResponses = {
17224
+ 200: {
17225
+ warning?: string;
17226
+ results: Array<{
17227
+ id: string;
17228
+ name: string;
17229
+ display: string;
17230
+ type: string;
17231
+ }>;
17232
+ };
17233
+ };
17234
+ export type ListOrganizationIntegrationChannelsResponse = ListOrganizationIntegrationChannelsResponses[keyof ListOrganizationIntegrationChannelsResponses];
16779
17235
  export type ListOrganizationIntegrationRepositoriesData = {
16780
17236
  body?: never;
16781
17237
  path: {
@@ -18290,13 +18746,6 @@ export type ListOrganizationMonitorsErrors = {
18290
18746
  };
18291
18747
  export type ListOrganizationMonitorsResponses = {
18292
18748
  200: Array<{
18293
- alertRule?: {
18294
- targets: Array<{
18295
- targetIdentifier: number;
18296
- targetType: string;
18297
- }>;
18298
- environment: string;
18299
- };
18300
18749
  id: string;
18301
18750
  name: string;
18302
18751
  slug: string;
@@ -18421,7 +18870,7 @@ export type CreateOrganizationMonitorData = {
18421
18870
  */
18422
18871
  checkin_margin?: number | null;
18423
18872
  /**
18424
- * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed.
18873
+ * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days).
18425
18874
  */
18426
18875
  max_runtime?: number | null;
18427
18876
  /**
@@ -19055,28 +19504,6 @@ export type CreateOrganizationMonitorData = {
19055
19504
  * Disable creation of monitor incidents
19056
19505
  */
19057
19506
  is_muted?: boolean;
19058
- /**
19059
- * Alert rule configuration created alongside the monitor.
19060
- */
19061
- alert_rule?: {
19062
- /**
19063
- * Name of the environment
19064
- */
19065
- environment?: string | null;
19066
- /**
19067
- * Array of dictionaries with information of the user or team to be notified
19068
- */
19069
- targets: Array<{
19070
- /**
19071
- * ID of target object
19072
- */
19073
- target_identifier: number;
19074
- /**
19075
- * One of [Member, Team]
19076
- */
19077
- target_type: string;
19078
- }>;
19079
- };
19080
19507
  };
19081
19508
  path: {
19082
19509
  /**
@@ -19107,13 +19534,6 @@ export type CreateOrganizationMonitorErrors = {
19107
19534
  };
19108
19535
  export type CreateOrganizationMonitorResponses = {
19109
19536
  201: {
19110
- alertRule?: {
19111
- targets: Array<{
19112
- targetIdentifier: number;
19113
- targetType: string;
19114
- }>;
19115
- environment: string;
19116
- };
19117
19537
  id: string;
19118
19538
  name: string;
19119
19539
  slug: string;
@@ -19279,13 +19699,6 @@ export type GetOrganizationMonitorErrors = {
19279
19699
  };
19280
19700
  export type GetOrganizationMonitorResponses = {
19281
19701
  200: {
19282
- alertRule?: {
19283
- targets: Array<{
19284
- targetIdentifier: number;
19285
- targetType: string;
19286
- }>;
19287
- environment: string;
19288
- };
19289
19702
  id: string;
19290
19703
  name: string;
19291
19704
  slug: string;
@@ -19410,7 +19823,7 @@ export type UpdateOrganizationMonitorData = {
19410
19823
  */
19411
19824
  checkin_margin?: number | null;
19412
19825
  /**
19413
- * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed.
19826
+ * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days).
19414
19827
  */
19415
19828
  max_runtime?: number | null;
19416
19829
  /**
@@ -20044,28 +20457,6 @@ export type UpdateOrganizationMonitorData = {
20044
20457
  * Disable creation of monitor incidents
20045
20458
  */
20046
20459
  is_muted?: boolean;
20047
- /**
20048
- * Alert rule configuration created alongside the monitor.
20049
- */
20050
- alert_rule?: {
20051
- /**
20052
- * Name of the environment
20053
- */
20054
- environment?: string | null;
20055
- /**
20056
- * Array of dictionaries with information of the user or team to be notified
20057
- */
20058
- targets: Array<{
20059
- /**
20060
- * ID of target object
20061
- */
20062
- target_identifier: number;
20063
- /**
20064
- * One of [Member, Team]
20065
- */
20066
- target_type: string;
20067
- }>;
20068
- };
20069
20460
  };
20070
20461
  path: {
20071
20462
  /**
@@ -20100,13 +20491,6 @@ export type UpdateOrganizationMonitorErrors = {
20100
20491
  };
20101
20492
  export type UpdateOrganizationMonitorResponses = {
20102
20493
  200: {
20103
- alertRule?: {
20104
- targets: Array<{
20105
- targetIdentifier: number;
20106
- targetType: string;
20107
- }>;
20108
- environment: string;
20109
- };
20110
20494
  id: string;
20111
20495
  name: string;
20112
20496
  slug: string;
@@ -21568,7 +21952,12 @@ export type CreateOrganizationProjectDetectorData = {
21568
21952
  workflow_ids?: Array<number>;
21569
21953
  /**
21570
21954
  *
21571
- * The data sources for the monitor to use based on what you want to measure.
21955
+ * The data sources for the metric monitor to use based on what you want to measure.
21956
+ *
21957
+ * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.
21958
+ * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value
21959
+ * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes
21960
+ * `"timeWindow": 300`.
21572
21961
  *
21573
21962
  * **Number of Errors Metric Monitor**
21574
21963
  * - `eventTypes`: Any of `error` or `default`.
@@ -21581,9 +21970,9 @@ export type CreateOrganizationProjectDetectorData = {
21581
21970
  * "eventTypes": ["default", "error"],
21582
21971
  * "query": "is:unresolved",
21583
21972
  * "queryType": 0,
21584
- * "timeWindow": 3600,
21585
- * },
21586
- * ],
21973
+ * "timeWindow": 3600
21974
+ * }
21975
+ * ]
21587
21976
  * ```
21588
21977
  *
21589
21978
  * **Users Experiencing Errors Metric Monitor**
@@ -21597,9 +21986,9 @@ export type CreateOrganizationProjectDetectorData = {
21597
21986
  * "eventTypes": ["default", "error"],
21598
21987
  * "query": "is:unresolved",
21599
21988
  * "queryType": 0,
21600
- * "timeWindow": 3600,
21601
- * },
21602
- * ],
21989
+ * "timeWindow": 3600
21990
+ * }
21991
+ * ]
21603
21992
  * ```
21604
21993
  *
21605
21994
  *
@@ -21610,13 +21999,13 @@ export type CreateOrganizationProjectDetectorData = {
21610
21999
  * "aggregate":"count(span.duration)",
21611
22000
  * "dataset":"events_analytics_platform",
21612
22001
  * "environment":"prod",
21613
- * "eventTypes":["trace_item_span"]
22002
+ * "eventTypes":["trace_item_span"],
21614
22003
  * "query":"",
21615
22004
  * "queryType":1,
21616
22005
  * "timeWindow":3600,
21617
- * "extrapolationMode":"unknown",
21618
- * },
21619
- * ],
22006
+ * "extrapolationMode":"unknown"
22007
+ * }
22008
+ * ]
21620
22009
  * ```
21621
22010
  *
21622
22011
  * **Duration Metric Monitor**
@@ -21626,13 +22015,13 @@ export type CreateOrganizationProjectDetectorData = {
21626
22015
  * "aggregate":"p95(span.duration)",
21627
22016
  * "dataset":"events_analytics_platform",
21628
22017
  * "environment":"prod",
21629
- * "eventTypes":["trace_item_span"]
22018
+ * "eventTypes":["trace_item_span"],
21630
22019
  * "query":"",
21631
22020
  * "queryType":1,
21632
22021
  * "timeWindow":3600,
21633
- * "extrapolationMode":"unknown",
21634
- * },
21635
- * ],
22022
+ * "extrapolationMode":"unknown"
22023
+ * }
22024
+ * ]
21636
22025
  * ```
21637
22026
  *
21638
22027
  * **Failure Rate Metric Monitor**
@@ -21642,17 +22031,17 @@ export type CreateOrganizationProjectDetectorData = {
21642
22031
  * "aggregate":"failure_rate()",
21643
22032
  * "dataset":"events_analytics_platform",
21644
22033
  * "environment":"prod",
21645
- * "eventTypes":["trace_item_span"]
22034
+ * "eventTypes":["trace_item_span"],
21646
22035
  * "query":"",
21647
22036
  * "queryType":1,
21648
22037
  * "timeWindow":3600,
21649
- * "extrapolationMode":"unknown",
21650
- * },
21651
- * ],
22038
+ * "extrapolationMode":"unknown"
22039
+ * }
22040
+ * ]
21652
22041
  * ```
21653
22042
  *
21654
22043
  * **Largest Contentful Paint Metric Monitor**
21655
- * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `events_analytics_platform`.
22044
+ * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
21656
22045
  * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, `p100(measurements.lcp)`, and `percentile(measurements.lcp,x)`, where `x` is your custom percentile.
21657
22046
  *
21658
22047
  * ```json
@@ -21661,17 +22050,17 @@ export type CreateOrganizationProjectDetectorData = {
21661
22050
  * "aggregate":"p95(measurements.lcp)",
21662
22051
  * "dataset":"events_analytics_platform",
21663
22052
  * "environment":"prod",
21664
- * "eventTypes":["trace_item_span"]
21665
- * "query":"",
22053
+ * "eventTypes":["trace_item_span"],
22054
+ * "query":"is_transaction:true",
21666
22055
  * "queryType":1,
21667
22056
  * "timeWindow":3600,
21668
- * "extrapolationMode":"unknown",
21669
- * },
21670
- * ],
22057
+ * "extrapolationMode":"unknown"
22058
+ * }
22059
+ * ]
21671
22060
  * ```
21672
22061
  *
21673
22062
  * **Custom Metric Monitor**
21674
- * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `events_analytics_platform`.
22063
+ * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
21675
22064
  * - `aggregate`: Valid values are:
21676
22065
  * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
21677
22066
  * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
@@ -21687,11 +22076,17 @@ export type CreateOrganizationProjectDetectorData = {
21687
22076
  * ```json
21688
22077
  * [
21689
22078
  * {
21690
- * "aggregate": "p75(measurements.ttfb)"
22079
+ * "aggregate": "p75(measurements.ttfb)",
21691
22080
  * "dataset": "events_analytics_platform",
22081
+ * "environment": "prod",
21692
22082
  * "queryType": 1,
21693
- * },
21694
- * ],
22083
+ * "eventTypes": ["trace_item_span"],
22084
+ * "query": "is_transaction:true",
22085
+ * "timeWindow": 3600,
22086
+ * "extrapolationMode": "unknown"
22087
+ * }
22088
+ * ]
22089
+ * ```
21695
22090
  *
21696
22091
  */
21697
22092
  data_sources?: Array<unknown>;
@@ -21704,7 +22099,7 @@ export type CreateOrganizationProjectDetectorData = {
21704
22099
  * - `static`: Threshold based monitor
21705
22100
  * - `percent`: Change based monitor
21706
22101
  * - `dynamic`: Dynamic monitor
21707
- * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against in minutes.
22102
+ * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.
21708
22103
  * For example, a value of 3600 compares the metric tracked against data 1 hour ago.
21709
22104
  * - `300`: 5 minutes
21710
22105
  * - `900`: 15 minutes
@@ -21716,20 +22111,20 @@ export type CreateOrganizationProjectDetectorData = {
21716
22111
  * **Threshold**
21717
22112
  * ```json
21718
22113
  * {
21719
- * "detectionType": "static",
22114
+ * "detectionType": "static"
21720
22115
  * }
21721
22116
  * ```
21722
22117
  * **Change**
21723
22118
  * ```json
21724
22119
  * {
21725
22120
  * "detectionType": "percent",
21726
- * "comparisonDelta": 3600,
22121
+ * "comparisonDelta": 3600
21727
22122
  * }
21728
22123
  * ```
21729
22124
  * **Dynamic**
21730
22125
  * ```json
21731
22126
  * {
21732
- * "detectionType": "dynamic",
22127
+ * "detectionType": "dynamic"
21733
22128
  * }
21734
22129
  * ```
21735
22130
  *
@@ -24459,6 +24854,205 @@ export type UpdateOrganizationScimV2GroupResponses = {
24459
24854
  204: void;
24460
24855
  };
24461
24856
  export type UpdateOrganizationScimV2GroupResponse = UpdateOrganizationScimV2GroupResponses[keyof UpdateOrganizationScimV2GroupResponses];
24857
+ export type ListOrganizationScimV2ResourceTypesData = {
24858
+ body?: never;
24859
+ path: {
24860
+ /**
24861
+ * The ID or slug of the organization the resource belongs to.
24862
+ */
24863
+ organization_id_or_slug: string;
24864
+ };
24865
+ query?: never;
24866
+ url: '/api/0/organizations/{organization_id_or_slug}/scim/v2/ResourceTypes';
24867
+ };
24868
+ export type ListOrganizationScimV2ResourceTypesErrors = {
24869
+ /**
24870
+ * Unauthorized
24871
+ */
24872
+ 401: unknown;
24873
+ /**
24874
+ * Forbidden
24875
+ */
24876
+ 403: unknown;
24877
+ /**
24878
+ * Not Found
24879
+ */
24880
+ 404: unknown;
24881
+ };
24882
+ export type ListOrganizationScimV2ResourceTypesResponses = {
24883
+ 200: {
24884
+ schemas: Array<string>;
24885
+ totalResults: number;
24886
+ startIndex: number;
24887
+ itemsPerPage: number;
24888
+ Resources: Array<{
24889
+ schemas: Array<string>;
24890
+ id: string;
24891
+ name: string;
24892
+ description: string;
24893
+ endpoint: string;
24894
+ schema: string;
24895
+ meta: {
24896
+ resourceType: string;
24897
+ location: string;
24898
+ };
24899
+ }>;
24900
+ };
24901
+ };
24902
+ export type ListOrganizationScimV2ResourceTypesResponse = ListOrganizationScimV2ResourceTypesResponses[keyof ListOrganizationScimV2ResourceTypesResponses];
24903
+ export type GetOrganizationScimV2ResourceTypeData = {
24904
+ body?: never;
24905
+ path: {
24906
+ /**
24907
+ * The ID or slug of the organization the resource belongs to.
24908
+ */
24909
+ organization_id_or_slug: string;
24910
+ /**
24911
+ * The SCIM resource type name: `User` or `Group`.
24912
+ */
24913
+ resource_type_name: string;
24914
+ };
24915
+ query?: never;
24916
+ url: '/api/0/organizations/{organization_id_or_slug}/scim/v2/ResourceTypes/{resource_type_name}';
24917
+ };
24918
+ export type GetOrganizationScimV2ResourceTypeErrors = {
24919
+ /**
24920
+ * Unauthorized
24921
+ */
24922
+ 401: unknown;
24923
+ /**
24924
+ * Forbidden
24925
+ */
24926
+ 403: unknown;
24927
+ /**
24928
+ * Not Found
24929
+ */
24930
+ 404: unknown;
24931
+ };
24932
+ export type GetOrganizationScimV2ResourceTypeResponses = {
24933
+ 200: {
24934
+ schemas: Array<string>;
24935
+ id: string;
24936
+ name: string;
24937
+ description: string;
24938
+ endpoint: string;
24939
+ schema: string;
24940
+ meta: {
24941
+ resourceType: string;
24942
+ location: string;
24943
+ };
24944
+ };
24945
+ };
24946
+ export type GetOrganizationScimV2ResourceTypeResponse = GetOrganizationScimV2ResourceTypeResponses[keyof GetOrganizationScimV2ResourceTypeResponses];
24947
+ export type GetOrganizationScimV2SchemaData = {
24948
+ body?: never;
24949
+ path: {
24950
+ /**
24951
+ * The ID or slug of the organization the resource belongs to.
24952
+ */
24953
+ organization_id_or_slug: string;
24954
+ /**
24955
+ * The SCIM schema URI, e.g. `urn:ietf:params:scim:schemas:core:2.0:User`.
24956
+ */
24957
+ schema_uri: string;
24958
+ };
24959
+ query?: never;
24960
+ url: '/api/0/organizations/{organization_id_or_slug}/scim/v2/Schemas/{schema_uri}';
24961
+ };
24962
+ export type GetOrganizationScimV2SchemaErrors = {
24963
+ /**
24964
+ * Unauthorized
24965
+ */
24966
+ 401: unknown;
24967
+ /**
24968
+ * Forbidden
24969
+ */
24970
+ 403: unknown;
24971
+ /**
24972
+ * Not Found
24973
+ */
24974
+ 404: unknown;
24975
+ };
24976
+ export type GetOrganizationScimV2SchemaResponses = {
24977
+ 200: {
24978
+ schemas: Array<string>;
24979
+ id: string;
24980
+ name: string;
24981
+ description: string;
24982
+ attributes: Array<{
24983
+ [key: string]: unknown;
24984
+ }>;
24985
+ meta: {
24986
+ resourceType: string;
24987
+ location: string;
24988
+ };
24989
+ };
24990
+ };
24991
+ export type GetOrganizationScimV2SchemaResponse = GetOrganizationScimV2SchemaResponses[keyof GetOrganizationScimV2SchemaResponses];
24992
+ export type GetOrganizationScimV2ServiceProviderConfigData = {
24993
+ body?: never;
24994
+ path: {
24995
+ /**
24996
+ * The ID or slug of the organization the resource belongs to.
24997
+ */
24998
+ organization_id_or_slug: string;
24999
+ };
25000
+ query?: never;
25001
+ url: '/api/0/organizations/{organization_id_or_slug}/scim/v2/ServiceProviderConfig';
25002
+ };
25003
+ export type GetOrganizationScimV2ServiceProviderConfigErrors = {
25004
+ /**
25005
+ * Unauthorized
25006
+ */
25007
+ 401: unknown;
25008
+ /**
25009
+ * Forbidden
25010
+ */
25011
+ 403: unknown;
25012
+ /**
25013
+ * Not Found
25014
+ */
25015
+ 404: unknown;
25016
+ };
25017
+ export type GetOrganizationScimV2ServiceProviderConfigResponses = {
25018
+ 200: {
25019
+ schemas: Array<string>;
25020
+ documentationUri: string;
25021
+ patch: {
25022
+ supported: boolean;
25023
+ };
25024
+ bulk: {
25025
+ supported: boolean;
25026
+ maxOperations: number;
25027
+ maxPayloadSize: number;
25028
+ };
25029
+ filter: {
25030
+ supported: boolean;
25031
+ maxResults: number;
25032
+ };
25033
+ changePassword: {
25034
+ supported: boolean;
25035
+ };
25036
+ sort: {
25037
+ supported: boolean;
25038
+ };
25039
+ etag: {
25040
+ supported: boolean;
25041
+ };
25042
+ authenticationSchemes: Array<{
25043
+ type: string;
25044
+ name: string;
25045
+ description: string;
25046
+ specUri: string;
25047
+ primary: boolean;
25048
+ }>;
25049
+ meta: {
25050
+ resourceType: string;
25051
+ location: string;
25052
+ };
25053
+ };
25054
+ };
25055
+ export type GetOrganizationScimV2ServiceProviderConfigResponse = GetOrganizationScimV2ServiceProviderConfigResponses[keyof GetOrganizationScimV2ServiceProviderConfigResponses];
24462
25056
  export type ListOrganizationScimV2UsersData = {
24463
25057
  body?: never;
24464
25058
  path: {
@@ -25162,6 +25756,94 @@ export type ResolveOrganizationShortIdResponses = {
25162
25756
  };
25163
25757
  };
25164
25758
  export type ResolveOrganizationShortIdResponse = ResolveOrganizationShortIdResponses[keyof ResolveOrganizationShortIdResponses];
25759
+ export type UnstarOrganizationServiceSpanData = {
25760
+ body?: never;
25761
+ path: {
25762
+ /**
25763
+ * The ID or slug of the organization the resource belongs to.
25764
+ */
25765
+ organization_id_or_slug: string;
25766
+ };
25767
+ query: {
25768
+ /**
25769
+ * The name of the service span to unstar.
25770
+ */
25771
+ service_span: string;
25772
+ /**
25773
+ * The ID of the project the service span belongs to.
25774
+ */
25775
+ project_id: number;
25776
+ };
25777
+ url: '/api/0/organizations/{organization_id_or_slug}/starred-service-spans/';
25778
+ };
25779
+ export type UnstarOrganizationServiceSpanErrors = {
25780
+ /**
25781
+ * Bad Request
25782
+ */
25783
+ 400: unknown;
25784
+ /**
25785
+ * Unauthorized
25786
+ */
25787
+ 401: unknown;
25788
+ /**
25789
+ * Forbidden
25790
+ */
25791
+ 403: unknown;
25792
+ /**
25793
+ * Not Found
25794
+ */
25795
+ 404: unknown;
25796
+ };
25797
+ export type UnstarOrganizationServiceSpanResponses = {
25798
+ /**
25799
+ * Success
25800
+ */
25801
+ 200: unknown;
25802
+ };
25803
+ export type StarOrganizationServiceSpanData = {
25804
+ body: {
25805
+ /**
25806
+ * The name of the service span to star or unstar.
25807
+ */
25808
+ service_span: string;
25809
+ /**
25810
+ * The ID of the project the service span belongs to.
25811
+ */
25812
+ project_id: number;
25813
+ };
25814
+ path: {
25815
+ /**
25816
+ * The ID or slug of the organization the resource belongs to.
25817
+ */
25818
+ organization_id_or_slug: string;
25819
+ };
25820
+ query?: never;
25821
+ url: '/api/0/organizations/{organization_id_or_slug}/starred-service-spans/';
25822
+ };
25823
+ export type StarOrganizationServiceSpanErrors = {
25824
+ /**
25825
+ * Bad Request
25826
+ */
25827
+ 400: unknown;
25828
+ /**
25829
+ * Unauthorized
25830
+ */
25831
+ 401: unknown;
25832
+ /**
25833
+ * Forbidden
25834
+ */
25835
+ 403: unknown;
25836
+ /**
25837
+ * Not Found
25838
+ */
25839
+ 404: unknown;
25840
+ };
25841
+ export type StarOrganizationServiceSpanResponses = {
25842
+ /**
25843
+ * Success
25844
+ */
25845
+ 200: unknown;
25846
+ };
25165
25847
  export type GetOrganizationStatsSummaryData = {
25166
25848
  body?: never;
25167
25849
  path: {
@@ -25840,6 +26522,12 @@ export type ListOrganizationTraceItemAttributesData = {
25840
26522
  * Sentry [search syntax](https://docs.sentry.io/concepts/search/) to filter trace items before computing attributes.
25841
26523
  */
25842
26524
  query?: string;
26525
+ /**
26526
+ * **Experimental:** This parameter is under active development and may change.
26527
+ *
26528
+ * Optional fields to expand. Pass `context` to include attribute metadata (brief, examples, deprecation, etc.).
26529
+ */
26530
+ expand?: Array<'context'>;
25843
26531
  /**
25844
26532
  * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
25845
26533
  */
@@ -25871,6 +26559,24 @@ export type ListOrganizationTraceItemAttributesResponses = {
25871
26559
  is_transformed_alias?: boolean;
25872
26560
  };
25873
26561
  attributeType: 'string' | 'number' | 'boolean' | 'array';
26562
+ /**
26563
+ * Additional, mostly-static metadata about an attribute.
26564
+ *
26565
+ * When ``expand=context`` is requested, context is attached to every attribute.
26566
+ * Metadata comes from the sentry conventions, Sentry's own column definitions,
26567
+ * or user-authored context (gated behind ``data-browsing-attribute-context``),
26568
+ * in that precedence order. Only the fields available are included, so an
26569
+ * attribute with no metadata gets an empty context.
26570
+ */
26571
+ context?: {
26572
+ isConvention?: boolean;
26573
+ isCustom?: boolean;
26574
+ brief?: string;
26575
+ isDeprecated?: boolean;
26576
+ details?: Array<string>;
26577
+ examples?: Array<string | number | number | boolean>;
26578
+ replacementAttribute?: string;
26579
+ };
25874
26580
  }>;
25875
26581
  };
25876
26582
  export type ListOrganizationTraceItemAttributesResponse = ListOrganizationTraceItemAttributesResponses[keyof ListOrganizationTraceItemAttributesResponses];
@@ -26711,7 +27417,7 @@ export type CreateOrganizationWorkflowData = {
26711
27417
  *
26712
27418
  * ```json
26713
27419
  * {
26714
- * "frequency":3600
27420
+ * "frequency": 60
26715
27421
  * }
26716
27422
  * ```
26717
27423
  *
@@ -27739,7 +28445,7 @@ export type UpdateOrganizationWorkflowData = {
27739
28445
  *
27740
28446
  * ```json
27741
28447
  * {
27742
- * "frequency":3600
28448
+ * "frequency": 60
27743
28449
  * }
27744
28450
  * ```
27745
28451
  *
@@ -29630,7 +30336,7 @@ export type ListProjectCustomInboundFiltersResponses = {
29630
30336
  */
29631
30337
  conditions: Array<{
29632
30338
  /**
29633
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
30339
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
29634
30340
  *
29635
30341
  * * `error_type`
29636
30342
  * * `error_message`
@@ -29638,8 +30344,9 @@ export type ListProjectCustomInboundFiltersResponses = {
29638
30344
  * * `metric_name`
29639
30345
  * * `release`
29640
30346
  * * `ip_address`
30347
+ * * `geo_country_code`
29641
30348
  */
29642
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
30349
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
29643
30350
  /**
29644
30351
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
29645
30352
  */
@@ -29685,7 +30392,7 @@ export type CreateProjectCustomInboundFilterData = {
29685
30392
  */
29686
30393
  conditions: Array<{
29687
30394
  /**
29688
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
30395
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
29689
30396
  *
29690
30397
  * * `error_type`
29691
30398
  * * `error_message`
@@ -29693,8 +30400,9 @@ export type CreateProjectCustomInboundFilterData = {
29693
30400
  * * `metric_name`
29694
30401
  * * `release`
29695
30402
  * * `ip_address`
30403
+ * * `geo_country_code`
29696
30404
  */
29697
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
30405
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
29698
30406
  /**
29699
30407
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
29700
30408
  */
@@ -29765,7 +30473,7 @@ export type CreateProjectCustomInboundFilterResponses = {
29765
30473
  */
29766
30474
  conditions: Array<{
29767
30475
  /**
29768
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
30476
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
29769
30477
  *
29770
30478
  * * `error_type`
29771
30479
  * * `error_message`
@@ -29773,8 +30481,9 @@ export type CreateProjectCustomInboundFilterResponses = {
29773
30481
  * * `metric_name`
29774
30482
  * * `release`
29775
30483
  * * `ip_address`
30484
+ * * `geo_country_code`
29776
30485
  */
29777
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
30486
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
29778
30487
  /**
29779
30488
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
29780
30489
  */
@@ -29893,7 +30602,7 @@ export type GetProjectCustomInboundFilterResponses = {
29893
30602
  */
29894
30603
  conditions: Array<{
29895
30604
  /**
29896
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
30605
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
29897
30606
  *
29898
30607
  * * `error_type`
29899
30608
  * * `error_message`
@@ -29901,8 +30610,9 @@ export type GetProjectCustomInboundFilterResponses = {
29901
30610
  * * `metric_name`
29902
30611
  * * `release`
29903
30612
  * * `ip_address`
30613
+ * * `geo_country_code`
29904
30614
  */
29905
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
30615
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
29906
30616
  /**
29907
30617
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
29908
30618
  */
@@ -29948,7 +30658,7 @@ export type UpdateProjectCustomInboundFilterData = {
29948
30658
  */
29949
30659
  conditions: Array<{
29950
30660
  /**
29951
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
30661
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
29952
30662
  *
29953
30663
  * * `error_type`
29954
30664
  * * `error_message`
@@ -29956,8 +30666,9 @@ export type UpdateProjectCustomInboundFilterData = {
29956
30666
  * * `metric_name`
29957
30667
  * * `release`
29958
30668
  * * `ip_address`
30669
+ * * `geo_country_code`
29959
30670
  */
29960
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
30671
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
29961
30672
  /**
29962
30673
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
29963
30674
  */
@@ -30032,7 +30743,7 @@ export type UpdateProjectCustomInboundFilterResponses = {
30032
30743
  */
30033
30744
  conditions: Array<{
30034
30745
  /**
30035
- * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type` and `error_message`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
30746
+ * The field the condition matches against. Every `dataType` accepts `release` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.
30036
30747
  *
30037
30748
  * * `error_type`
30038
30749
  * * `error_message`
@@ -30040,8 +30751,9 @@ export type UpdateProjectCustomInboundFilterResponses = {
30040
30751
  * * `metric_name`
30041
30752
  * * `release`
30042
30753
  * * `ip_address`
30754
+ * * `geo_country_code`
30043
30755
  */
30044
- type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address';
30756
+ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'ip_address' | 'geo_country_code';
30045
30757
  /**
30046
30758
  * Glob patterns the field is matched against. The condition matches when any pattern matches, so multiple values act as OR.
30047
30759
  */
@@ -31562,13 +32274,6 @@ export type GetProjectMonitorErrors = {
31562
32274
  };
31563
32275
  export type GetProjectMonitorResponses = {
31564
32276
  200: {
31565
- alertRule?: {
31566
- targets: Array<{
31567
- targetIdentifier: number;
31568
- targetType: string;
31569
- }>;
31570
- environment: string;
31571
- };
31572
32277
  id: string;
31573
32278
  name: string;
31574
32279
  slug: string;
@@ -31693,7 +32398,7 @@ export type UpdateProjectMonitorData = {
31693
32398
  */
31694
32399
  checkin_margin?: number | null;
31695
32400
  /**
31696
- * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed.
32401
+ * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days).
31697
32402
  */
31698
32403
  max_runtime?: number | null;
31699
32404
  /**
@@ -32327,28 +33032,6 @@ export type UpdateProjectMonitorData = {
32327
33032
  * Disable creation of monitor incidents
32328
33033
  */
32329
33034
  is_muted?: boolean;
32330
- /**
32331
- * Alert rule configuration created alongside the monitor.
32332
- */
32333
- alert_rule?: {
32334
- /**
32335
- * Name of the environment
32336
- */
32337
- environment?: string | null;
32338
- /**
32339
- * Array of dictionaries with information of the user or team to be notified
32340
- */
32341
- targets: Array<{
32342
- /**
32343
- * ID of target object
32344
- */
32345
- target_identifier: number;
32346
- /**
32347
- * One of [Member, Team]
32348
- */
32349
- target_type: string;
32350
- }>;
32351
- };
32352
33035
  };
32353
33036
  path: {
32354
33037
  /**
@@ -32387,13 +33070,6 @@ export type UpdateProjectMonitorErrors = {
32387
33070
  };
32388
33071
  export type UpdateProjectMonitorResponses = {
32389
33072
  200: {
32390
- alertRule?: {
32391
- targets: Array<{
32392
- targetIdentifier: number;
32393
- targetType: string;
32394
- }>;
32395
- environment: string;
32396
- };
32397
33073
  id: string;
32398
33074
  name: string;
32399
33075
  slug: string;
@@ -33868,6 +34544,10 @@ export type ListProjectReplayRecordingSegmentsErrors = {
33868
34544
  * Not Found
33869
34545
  */
33870
34546
  404: unknown;
34547
+ /**
34548
+ * Too Many Requests
34549
+ */
34550
+ 429: unknown;
33871
34551
  };
33872
34552
  export type ListProjectReplayRecordingSegmentsResponses = {
33873
34553
  200: Array<Array<{
@@ -34298,7 +34978,7 @@ export type ListProjectSymbolSourcesResponses = {
34298
34978
  id: string;
34299
34979
  name?: string;
34300
34980
  layout: {
34301
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
34981
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34302
34982
  casing?: 'lowercase' | 'uppercase' | 'default';
34303
34983
  };
34304
34984
  filters?: {
@@ -34321,7 +35001,7 @@ export type ListProjectSymbolSourcesResponses = {
34321
35001
  id: string;
34322
35002
  name?: string;
34323
35003
  layout: {
34324
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35004
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34325
35005
  casing?: 'lowercase' | 'uppercase' | 'default';
34326
35006
  };
34327
35007
  filters?: {
@@ -34343,7 +35023,7 @@ export type ListProjectSymbolSourcesResponses = {
34343
35023
  id: string;
34344
35024
  name?: string;
34345
35025
  layout: {
34346
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35026
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34347
35027
  casing?: 'lowercase' | 'uppercase' | 'default';
34348
35028
  };
34349
35029
  filters?: {
@@ -34367,7 +35047,7 @@ export type ListProjectSymbolSourcesResponses = {
34367
35047
  id: string;
34368
35048
  name?: string;
34369
35049
  layout: {
34370
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35050
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34371
35051
  casing?: 'lowercase' | 'uppercase' | 'default';
34372
35052
  };
34373
35053
  filters?: {
@@ -34420,6 +35100,7 @@ export type AddProjectSymbolSourceData = {
34420
35100
  * - `ssqp` - Microsoft SSQP
34421
35101
  * - `unified` - Unified Symbol Server Layout
34422
35102
  * - `debuginfod` - debuginfod
35103
+ * - `nxsymstore` - Nintendo NXSymStore
34423
35104
  *
34424
35105
  * **`casing`** ***(string)*** - The layout of the folder structure. The options are:
34425
35106
  * - `default` - Default (mixed case)
@@ -34446,8 +35127,9 @@ export type AddProjectSymbolSourceData = {
34446
35127
  * * `unified`
34447
35128
  * * `debuginfod`
34448
35129
  * * `slashsymbols`
35130
+ * * `nxsymstore`
34449
35131
  */
34450
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35132
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34451
35133
  /**
34452
35134
  * The source's casing rules.
34453
35135
  *
@@ -34621,7 +35303,7 @@ export type AddProjectSymbolSourceResponses = {
34621
35303
  id: string;
34622
35304
  name?: string;
34623
35305
  layout: {
34624
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35306
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34625
35307
  casing?: 'lowercase' | 'uppercase' | 'default';
34626
35308
  };
34627
35309
  filters?: {
@@ -34644,7 +35326,7 @@ export type AddProjectSymbolSourceResponses = {
34644
35326
  id: string;
34645
35327
  name?: string;
34646
35328
  layout: {
34647
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35329
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34648
35330
  casing?: 'lowercase' | 'uppercase' | 'default';
34649
35331
  };
34650
35332
  filters?: {
@@ -34666,7 +35348,7 @@ export type AddProjectSymbolSourceResponses = {
34666
35348
  id: string;
34667
35349
  name?: string;
34668
35350
  layout: {
34669
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35351
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34670
35352
  casing?: 'lowercase' | 'uppercase' | 'default';
34671
35353
  };
34672
35354
  filters?: {
@@ -34690,7 +35372,7 @@ export type AddProjectSymbolSourceResponses = {
34690
35372
  id: string;
34691
35373
  name?: string;
34692
35374
  layout: {
34693
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35375
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34694
35376
  casing?: 'lowercase' | 'uppercase' | 'default';
34695
35377
  };
34696
35378
  filters?: {
@@ -34743,6 +35425,7 @@ export type UpdateProjectSymbolSourceData = {
34743
35425
  * - `ssqp` - Microsoft SSQP
34744
35426
  * - `unified` - Unified Symbol Server Layout
34745
35427
  * - `debuginfod` - debuginfod
35428
+ * - `nxsymstore` - Nintendo NXSymStore
34746
35429
  *
34747
35430
  * **`casing`** ***(string)*** - The layout of the folder structure. The options are:
34748
35431
  * - `default` - Default (mixed case)
@@ -34769,8 +35452,9 @@ export type UpdateProjectSymbolSourceData = {
34769
35452
  * * `unified`
34770
35453
  * * `debuginfod`
34771
35454
  * * `slashsymbols`
35455
+ * * `nxsymstore`
34772
35456
  */
34773
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35457
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34774
35458
  /**
34775
35459
  * The source's casing rules.
34776
35460
  *
@@ -34953,7 +35637,7 @@ export type UpdateProjectSymbolSourceResponses = {
34953
35637
  id: string;
34954
35638
  name?: string;
34955
35639
  layout: {
34956
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35640
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34957
35641
  casing?: 'lowercase' | 'uppercase' | 'default';
34958
35642
  };
34959
35643
  filters?: {
@@ -34976,7 +35660,7 @@ export type UpdateProjectSymbolSourceResponses = {
34976
35660
  id: string;
34977
35661
  name?: string;
34978
35662
  layout: {
34979
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35663
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
34980
35664
  casing?: 'lowercase' | 'uppercase' | 'default';
34981
35665
  };
34982
35666
  filters?: {
@@ -34998,7 +35682,7 @@ export type UpdateProjectSymbolSourceResponses = {
34998
35682
  id: string;
34999
35683
  name?: string;
35000
35684
  layout: {
35001
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35685
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
35002
35686
  casing?: 'lowercase' | 'uppercase' | 'default';
35003
35687
  };
35004
35688
  filters?: {
@@ -35022,7 +35706,7 @@ export type UpdateProjectSymbolSourceResponses = {
35022
35706
  id: string;
35023
35707
  name?: string;
35024
35708
  layout: {
35025
- type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols';
35709
+ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nxsymstore';
35026
35710
  casing?: 'lowercase' | 'uppercase' | 'default';
35027
35711
  };
35028
35712
  filters?: {