@sentry/api 0.195.0 → 0.197.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.
@@ -281,6 +281,16 @@ export type BaseTeam = {
281
281
  avatarUrl?: string | null;
282
282
  };
283
283
  };
284
+ export type BulkEnvironment = {
285
+ /**
286
+ * List of environment names to update. Maximum 1000.
287
+ */
288
+ environmentNames: Array<string>;
289
+ /**
290
+ * Specify `true` to hide or `false` to show the specified environments.
291
+ */
292
+ isHidden: boolean;
293
+ };
284
294
  export type BulkUpdateAlerts = {
285
295
  /**
286
296
  * Whether to enable or disable the alerts
@@ -293,6 +303,11 @@ export type BulkUpdateMonitors = {
293
303
  */
294
304
  enabled: boolean;
295
305
  };
306
+ export type BulkUpdateProjectEnvironments = Array<{
307
+ id: string;
308
+ name: string;
309
+ isHidden: boolean;
310
+ }>;
296
311
  export type CheckInList = Array<{
297
312
  groups?: Array<string>;
298
313
  id: string;
@@ -4403,73 +4418,75 @@ export type ListReplayDeletionJobs = {
4403
4418
  export type ListReplayRecordingSegments = Array<Array<{
4404
4419
  [key: string]: unknown;
4405
4420
  }>>;
4406
- export type ListReplays = Array<{
4407
- id?: string;
4408
- project_id?: string;
4409
- trace_ids?: Array<string>;
4410
- error_ids?: Array<string>;
4411
- environment?: string | null;
4412
- tags?: {
4413
- [key: string]: Array<string>;
4414
- } | Array<unknown>;
4415
- user?: {
4416
- id?: string | null;
4417
- username?: string | null;
4418
- email?: string | null;
4419
- ip?: string | null;
4420
- display_name?: string | null;
4421
- geo?: {
4422
- city?: string | null;
4423
- country_code?: string | null;
4424
- region?: string | null;
4425
- subdivision?: string | null;
4421
+ export type ListReplays = {
4422
+ data: Array<{
4423
+ id?: string;
4424
+ project_id?: string;
4425
+ trace_ids?: Array<string>;
4426
+ error_ids?: Array<string>;
4427
+ environment?: string | null;
4428
+ tags?: {
4429
+ [key: string]: Array<string>;
4430
+ } | Array<unknown>;
4431
+ user?: {
4432
+ id?: string | null;
4433
+ username?: string | null;
4434
+ email?: string | null;
4435
+ ip?: string | null;
4436
+ display_name?: string | null;
4437
+ geo?: {
4438
+ city?: string | null;
4439
+ country_code?: string | null;
4440
+ region?: string | null;
4441
+ subdivision?: string | null;
4442
+ };
4426
4443
  };
4427
- };
4428
- sdk?: {
4429
- name?: string | null;
4430
- version?: string | null;
4431
- };
4432
- os?: {
4433
- name?: string | null;
4434
- version?: string | null;
4435
- };
4436
- browser?: {
4437
- name?: string | null;
4438
- version?: string | null;
4439
- };
4440
- device?: {
4441
- name?: string | null;
4442
- brand?: string | null;
4443
- model?: string | null;
4444
- family?: string | null;
4445
- };
4446
- ota_updates?: {
4447
- channel?: string | null;
4448
- runtime_version?: string | null;
4449
- update_id?: string | null;
4450
- };
4451
- is_archived?: boolean | null;
4452
- urls?: Array<string> | null;
4453
- clicks?: Array<{
4454
- [key: string]: unknown;
4444
+ sdk?: {
4445
+ name?: string | null;
4446
+ version?: string | null;
4447
+ };
4448
+ os?: {
4449
+ name?: string | null;
4450
+ version?: string | null;
4451
+ };
4452
+ browser?: {
4453
+ name?: string | null;
4454
+ version?: string | null;
4455
+ };
4456
+ device?: {
4457
+ name?: string | null;
4458
+ brand?: string | null;
4459
+ model?: string | null;
4460
+ family?: string | null;
4461
+ };
4462
+ ota_updates?: {
4463
+ channel?: string | null;
4464
+ runtime_version?: string | null;
4465
+ update_id?: string | null;
4466
+ };
4467
+ is_archived?: boolean | null;
4468
+ urls?: Array<string> | null;
4469
+ clicks?: Array<{
4470
+ [key: string]: unknown;
4471
+ }>;
4472
+ count_dead_clicks?: number | null;
4473
+ count_rage_clicks?: number | null;
4474
+ count_errors?: number | null;
4475
+ duration?: number | null;
4476
+ finished_at?: string | null;
4477
+ started_at?: string | null;
4478
+ activity?: number | null;
4479
+ count_urls?: number | null;
4480
+ replay_type?: string;
4481
+ count_segments?: number | null;
4482
+ platform?: string | null;
4483
+ releases?: Array<string>;
4484
+ dist?: string | null;
4485
+ count_warnings?: number | null;
4486
+ count_infos?: number | null;
4487
+ has_viewed?: boolean;
4455
4488
  }>;
4456
- count_dead_clicks?: number | null;
4457
- count_rage_clicks?: number | null;
4458
- count_errors?: number | null;
4459
- duration?: number | null;
4460
- finished_at?: string | null;
4461
- started_at?: string | null;
4462
- activity?: number | null;
4463
- count_urls?: number | null;
4464
- replay_type?: string;
4465
- count_segments?: number | null;
4466
- platform?: string | null;
4467
- releases?: Array<string>;
4468
- dist?: string | null;
4469
- count_warnings?: number | null;
4470
- count_infos?: number | null;
4471
- has_viewed?: boolean;
4472
- }>;
4489
+ };
4473
4490
  export type ListSelectors = {
4474
4491
  data: Array<{
4475
4492
  count_dead_clicks?: number;
@@ -19352,73 +19369,75 @@ export type ListOrganizationReplaysErrors = {
19352
19369
  403: unknown;
19353
19370
  };
19354
19371
  export type ListOrganizationReplaysResponses = {
19355
- 200: Array<{
19356
- id?: string;
19357
- project_id?: string;
19358
- trace_ids?: Array<string>;
19359
- error_ids?: Array<string>;
19360
- environment?: string | null;
19361
- tags?: {
19362
- [key: string]: Array<string>;
19363
- } | Array<unknown>;
19364
- user?: {
19365
- id?: string | null;
19366
- username?: string | null;
19367
- email?: string | null;
19368
- ip?: string | null;
19369
- display_name?: string | null;
19370
- geo?: {
19371
- city?: string | null;
19372
- country_code?: string | null;
19373
- region?: string | null;
19374
- subdivision?: string | null;
19372
+ 200: {
19373
+ data: Array<{
19374
+ id?: string;
19375
+ project_id?: string;
19376
+ trace_ids?: Array<string>;
19377
+ error_ids?: Array<string>;
19378
+ environment?: string | null;
19379
+ tags?: {
19380
+ [key: string]: Array<string>;
19381
+ } | Array<unknown>;
19382
+ user?: {
19383
+ id?: string | null;
19384
+ username?: string | null;
19385
+ email?: string | null;
19386
+ ip?: string | null;
19387
+ display_name?: string | null;
19388
+ geo?: {
19389
+ city?: string | null;
19390
+ country_code?: string | null;
19391
+ region?: string | null;
19392
+ subdivision?: string | null;
19393
+ };
19375
19394
  };
19376
- };
19377
- sdk?: {
19378
- name?: string | null;
19379
- version?: string | null;
19380
- };
19381
- os?: {
19382
- name?: string | null;
19383
- version?: string | null;
19384
- };
19385
- browser?: {
19386
- name?: string | null;
19387
- version?: string | null;
19388
- };
19389
- device?: {
19390
- name?: string | null;
19391
- brand?: string | null;
19392
- model?: string | null;
19393
- family?: string | null;
19394
- };
19395
- ota_updates?: {
19396
- channel?: string | null;
19397
- runtime_version?: string | null;
19398
- update_id?: string | null;
19399
- };
19400
- is_archived?: boolean | null;
19401
- urls?: Array<string> | null;
19402
- clicks?: Array<{
19403
- [key: string]: unknown;
19395
+ sdk?: {
19396
+ name?: string | null;
19397
+ version?: string | null;
19398
+ };
19399
+ os?: {
19400
+ name?: string | null;
19401
+ version?: string | null;
19402
+ };
19403
+ browser?: {
19404
+ name?: string | null;
19405
+ version?: string | null;
19406
+ };
19407
+ device?: {
19408
+ name?: string | null;
19409
+ brand?: string | null;
19410
+ model?: string | null;
19411
+ family?: string | null;
19412
+ };
19413
+ ota_updates?: {
19414
+ channel?: string | null;
19415
+ runtime_version?: string | null;
19416
+ update_id?: string | null;
19417
+ };
19418
+ is_archived?: boolean | null;
19419
+ urls?: Array<string> | null;
19420
+ clicks?: Array<{
19421
+ [key: string]: unknown;
19422
+ }>;
19423
+ count_dead_clicks?: number | null;
19424
+ count_rage_clicks?: number | null;
19425
+ count_errors?: number | null;
19426
+ duration?: number | null;
19427
+ finished_at?: string | null;
19428
+ started_at?: string | null;
19429
+ activity?: number | null;
19430
+ count_urls?: number | null;
19431
+ replay_type?: string;
19432
+ count_segments?: number | null;
19433
+ platform?: string | null;
19434
+ releases?: Array<string>;
19435
+ dist?: string | null;
19436
+ count_warnings?: number | null;
19437
+ count_infos?: number | null;
19438
+ has_viewed?: boolean;
19404
19439
  }>;
19405
- count_dead_clicks?: number | null;
19406
- count_rage_clicks?: number | null;
19407
- count_errors?: number | null;
19408
- duration?: number | null;
19409
- finished_at?: string | null;
19410
- started_at?: string | null;
19411
- activity?: number | null;
19412
- count_urls?: number | null;
19413
- replay_type?: string;
19414
- count_segments?: number | null;
19415
- platform?: string | null;
19416
- releases?: Array<string>;
19417
- dist?: string | null;
19418
- count_warnings?: number | null;
19419
- count_infos?: number | null;
19420
- has_viewed?: boolean;
19421
- }>;
19440
+ };
19422
19441
  };
19423
19442
  export type ListOrganizationReplaysResponse = ListOrganizationReplaysResponses[keyof ListOrganizationReplaysResponses];
19424
19443
  export type GetOrganizationReplayData = {
@@ -24361,6 +24380,56 @@ export type ListProjectEnvironmentsResponses = {
24361
24380
  }>;
24362
24381
  };
24363
24382
  export type ListProjectEnvironmentsResponse = ListProjectEnvironmentsResponses[keyof ListProjectEnvironmentsResponses];
24383
+ export type UpdateProjectEnvironmentsData = {
24384
+ body: {
24385
+ /**
24386
+ * List of environment names to update. Maximum 1000.
24387
+ */
24388
+ environmentNames: Array<string>;
24389
+ /**
24390
+ * Specify `true` to hide or `false` to show the specified environments.
24391
+ */
24392
+ isHidden: boolean;
24393
+ };
24394
+ path: {
24395
+ /**
24396
+ * The ID or slug of the organization the resource belongs to.
24397
+ */
24398
+ organization_id_or_slug: string;
24399
+ /**
24400
+ * The ID or slug of the project the resource belongs to.
24401
+ */
24402
+ project_id_or_slug: string;
24403
+ };
24404
+ query?: never;
24405
+ url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/';
24406
+ };
24407
+ export type UpdateProjectEnvironmentsErrors = {
24408
+ /**
24409
+ * Bad Request
24410
+ */
24411
+ 400: unknown;
24412
+ /**
24413
+ * Unauthorized
24414
+ */
24415
+ 401: unknown;
24416
+ /**
24417
+ * Forbidden
24418
+ */
24419
+ 403: unknown;
24420
+ /**
24421
+ * Not Found
24422
+ */
24423
+ 404: unknown;
24424
+ };
24425
+ export type UpdateProjectEnvironmentsResponses = {
24426
+ 200: Array<{
24427
+ id: string;
24428
+ name: string;
24429
+ isHidden: boolean;
24430
+ }>;
24431
+ };
24432
+ export type UpdateProjectEnvironmentsResponse = UpdateProjectEnvironmentsResponses[keyof UpdateProjectEnvironmentsResponses];
24364
24433
  export type GetProjectEnvironmentData = {
24365
24434
  body?: never;
24366
24435
  path: {