@sentry/api 0.162.0 → 0.164.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zod.js CHANGED
@@ -7382,6 +7382,169 @@ var zOrganizationTraceMetaResponse = z.object({
7382
7382
  transactionChildCountMap: z.array(z.record(z.unknown())),
7383
7383
  spansCountMap: z.record(z.number())
7384
7384
  });
7385
+ var zOrganizationTraceResponse = z.array(z.union([
7386
+ z.object({
7387
+ description: z.string(),
7388
+ event_id: z.string(),
7389
+ event_type: z.string(),
7390
+ project_id: z.number().int(),
7391
+ project_slug: z.string(),
7392
+ transaction: z.string(),
7393
+ children: z.array(z.object({
7394
+ description: z.string(),
7395
+ event_id: z.string(),
7396
+ event_type: z.string(),
7397
+ project_id: z.number().int(),
7398
+ project_slug: z.string(),
7399
+ transaction: z.string()
7400
+ })),
7401
+ errors: z.array(z.object({
7402
+ description: z.string(),
7403
+ event_id: z.string(),
7404
+ event_type: z.string(),
7405
+ project_id: z.number().int(),
7406
+ project_slug: z.string(),
7407
+ transaction: z.string(),
7408
+ issue_id: z.number().int(),
7409
+ level: z.string(),
7410
+ start_timestamp: z.number(),
7411
+ end_timestamp: z.number().optional(),
7412
+ culprit: z.union([
7413
+ z.string(),
7414
+ z.null()
7415
+ ]),
7416
+ short_id: z.union([
7417
+ z.string(),
7418
+ z.null()
7419
+ ]),
7420
+ issue_type: z.number().int()
7421
+ })),
7422
+ occurrences: z.array(z.object({
7423
+ description: z.string(),
7424
+ event_id: z.string(),
7425
+ event_type: z.string(),
7426
+ project_id: z.number().int(),
7427
+ project_slug: z.string(),
7428
+ transaction: z.string(),
7429
+ issue_id: z.number().int(),
7430
+ level: z.string(),
7431
+ start_timestamp: z.number(),
7432
+ end_timestamp: z.number().optional(),
7433
+ culprit: z.union([
7434
+ z.string(),
7435
+ z.null()
7436
+ ]),
7437
+ short_id: z.union([
7438
+ z.string(),
7439
+ z.null()
7440
+ ]),
7441
+ issue_type: z.number().int()
7442
+ })),
7443
+ duration: z.number(),
7444
+ end_timestamp: z.string().datetime(),
7445
+ measurements: z.record(z.unknown()),
7446
+ op: z.string(),
7447
+ name: z.string(),
7448
+ parent_span_id: z.union([
7449
+ z.string(),
7450
+ z.null()
7451
+ ]),
7452
+ profile_id: z.string(),
7453
+ profiler_id: z.string(),
7454
+ sdk_name: z.string(),
7455
+ start_timestamp: z.string().datetime(),
7456
+ is_transaction: z.boolean(),
7457
+ transaction_id: z.string(),
7458
+ additional_attributes: z.record(z.unknown()).optional()
7459
+ }),
7460
+ z.object({
7461
+ description: z.string(),
7462
+ event_id: z.string(),
7463
+ event_type: z.string(),
7464
+ project_id: z.number().int(),
7465
+ project_slug: z.string(),
7466
+ transaction: z.string(),
7467
+ issue_id: z.number().int(),
7468
+ level: z.string(),
7469
+ start_timestamp: z.number(),
7470
+ end_timestamp: z.number().optional(),
7471
+ culprit: z.union([
7472
+ z.string(),
7473
+ z.null()
7474
+ ]),
7475
+ short_id: z.union([
7476
+ z.string(),
7477
+ z.null()
7478
+ ]),
7479
+ issue_type: z.number().int()
7480
+ }),
7481
+ z.object({
7482
+ description: z.string(),
7483
+ event_id: z.string(),
7484
+ event_type: z.string(),
7485
+ project_id: z.number().int(),
7486
+ project_slug: z.string(),
7487
+ transaction: z.string(),
7488
+ children: z.array(z.object({
7489
+ description: z.string(),
7490
+ event_id: z.string(),
7491
+ event_type: z.string(),
7492
+ project_id: z.number().int(),
7493
+ project_slug: z.string(),
7494
+ transaction: z.string()
7495
+ })),
7496
+ errors: z.array(z.object({
7497
+ description: z.string(),
7498
+ event_id: z.string(),
7499
+ event_type: z.string(),
7500
+ project_id: z.number().int(),
7501
+ project_slug: z.string(),
7502
+ transaction: z.string(),
7503
+ issue_id: z.number().int(),
7504
+ level: z.string(),
7505
+ start_timestamp: z.number(),
7506
+ end_timestamp: z.number().optional(),
7507
+ culprit: z.union([
7508
+ z.string(),
7509
+ z.null()
7510
+ ]),
7511
+ short_id: z.union([
7512
+ z.string(),
7513
+ z.null()
7514
+ ]),
7515
+ issue_type: z.number().int()
7516
+ })),
7517
+ occurrences: z.array(z.object({
7518
+ description: z.string(),
7519
+ event_id: z.string(),
7520
+ event_type: z.string(),
7521
+ project_id: z.number().int(),
7522
+ project_slug: z.string(),
7523
+ transaction: z.string(),
7524
+ issue_id: z.number().int(),
7525
+ level: z.string(),
7526
+ start_timestamp: z.number(),
7527
+ end_timestamp: z.number().optional(),
7528
+ culprit: z.union([
7529
+ z.string(),
7530
+ z.null()
7531
+ ]),
7532
+ short_id: z.union([
7533
+ z.string(),
7534
+ z.null()
7535
+ ]),
7536
+ issue_type: z.number().int()
7537
+ })),
7538
+ transaction_id: z.string(),
7539
+ op: z.string(),
7540
+ start_timestamp: z.number(),
7541
+ end_timestamp: z.number(),
7542
+ duration: z.number(),
7543
+ name: z.string(),
7544
+ region_name: z.string(),
7545
+ additional_attributes: z.record(z.unknown())
7546
+ })
7547
+ ]));
7385
7548
  var zOrganizationWithProjectsAndTeams = z.object({
7386
7549
  features: z.array(z.string()).optional(),
7387
7550
  extraOptions: z.record(z.record(z.unknown())).optional(),
@@ -19370,6 +19533,185 @@ var zRetrieveTraceMetadataResponse = z.object({
19370
19533
  transactionChildCountMap: z.array(z.record(z.unknown())),
19371
19534
  spansCountMap: z.record(z.number())
19372
19535
  });
19536
+ var zRetrieveATraceData = z.object({
19537
+ body: z.never().optional(),
19538
+ path: z.object({
19539
+ organization_id_or_slug: z.string(),
19540
+ trace_id: z.string()
19541
+ }),
19542
+ query: z.object({
19543
+ statsPeriod: z.string().optional(),
19544
+ start: z.string().datetime().optional(),
19545
+ end: z.string().datetime().optional(),
19546
+ referrer: z.string().optional(),
19547
+ errorId: z.string().optional(),
19548
+ additional_attributes: z.array(z.string()).optional(),
19549
+ include_uptime: z.enum(["0", "1"]).optional()
19550
+ }).optional()
19551
+ });
19552
+ var zRetrieveATraceResponse = z.array(z.union([
19553
+ z.object({
19554
+ description: z.string(),
19555
+ event_id: z.string(),
19556
+ event_type: z.string(),
19557
+ project_id: z.number().int(),
19558
+ project_slug: z.string(),
19559
+ transaction: z.string(),
19560
+ children: z.array(z.object({
19561
+ description: z.string(),
19562
+ event_id: z.string(),
19563
+ event_type: z.string(),
19564
+ project_id: z.number().int(),
19565
+ project_slug: z.string(),
19566
+ transaction: z.string()
19567
+ })),
19568
+ errors: z.array(z.object({
19569
+ description: z.string(),
19570
+ event_id: z.string(),
19571
+ event_type: z.string(),
19572
+ project_id: z.number().int(),
19573
+ project_slug: z.string(),
19574
+ transaction: z.string(),
19575
+ issue_id: z.number().int(),
19576
+ level: z.string(),
19577
+ start_timestamp: z.number(),
19578
+ end_timestamp: z.number().optional(),
19579
+ culprit: z.union([
19580
+ z.string(),
19581
+ z.null()
19582
+ ]),
19583
+ short_id: z.union([
19584
+ z.string(),
19585
+ z.null()
19586
+ ]),
19587
+ issue_type: z.number().int()
19588
+ })),
19589
+ occurrences: z.array(z.object({
19590
+ description: z.string(),
19591
+ event_id: z.string(),
19592
+ event_type: z.string(),
19593
+ project_id: z.number().int(),
19594
+ project_slug: z.string(),
19595
+ transaction: z.string(),
19596
+ issue_id: z.number().int(),
19597
+ level: z.string(),
19598
+ start_timestamp: z.number(),
19599
+ end_timestamp: z.number().optional(),
19600
+ culprit: z.union([
19601
+ z.string(),
19602
+ z.null()
19603
+ ]),
19604
+ short_id: z.union([
19605
+ z.string(),
19606
+ z.null()
19607
+ ]),
19608
+ issue_type: z.number().int()
19609
+ })),
19610
+ duration: z.number(),
19611
+ end_timestamp: z.string().datetime(),
19612
+ measurements: z.record(z.unknown()),
19613
+ op: z.string(),
19614
+ name: z.string(),
19615
+ parent_span_id: z.union([
19616
+ z.string(),
19617
+ z.null()
19618
+ ]),
19619
+ profile_id: z.string(),
19620
+ profiler_id: z.string(),
19621
+ sdk_name: z.string(),
19622
+ start_timestamp: z.string().datetime(),
19623
+ is_transaction: z.boolean(),
19624
+ transaction_id: z.string(),
19625
+ additional_attributes: z.record(z.unknown()).optional()
19626
+ }),
19627
+ z.object({
19628
+ description: z.string(),
19629
+ event_id: z.string(),
19630
+ event_type: z.string(),
19631
+ project_id: z.number().int(),
19632
+ project_slug: z.string(),
19633
+ transaction: z.string(),
19634
+ issue_id: z.number().int(),
19635
+ level: z.string(),
19636
+ start_timestamp: z.number(),
19637
+ end_timestamp: z.number().optional(),
19638
+ culprit: z.union([
19639
+ z.string(),
19640
+ z.null()
19641
+ ]),
19642
+ short_id: z.union([
19643
+ z.string(),
19644
+ z.null()
19645
+ ]),
19646
+ issue_type: z.number().int()
19647
+ }),
19648
+ z.object({
19649
+ description: z.string(),
19650
+ event_id: z.string(),
19651
+ event_type: z.string(),
19652
+ project_id: z.number().int(),
19653
+ project_slug: z.string(),
19654
+ transaction: z.string(),
19655
+ children: z.array(z.object({
19656
+ description: z.string(),
19657
+ event_id: z.string(),
19658
+ event_type: z.string(),
19659
+ project_id: z.number().int(),
19660
+ project_slug: z.string(),
19661
+ transaction: z.string()
19662
+ })),
19663
+ errors: z.array(z.object({
19664
+ description: z.string(),
19665
+ event_id: z.string(),
19666
+ event_type: z.string(),
19667
+ project_id: z.number().int(),
19668
+ project_slug: z.string(),
19669
+ transaction: z.string(),
19670
+ issue_id: z.number().int(),
19671
+ level: z.string(),
19672
+ start_timestamp: z.number(),
19673
+ end_timestamp: z.number().optional(),
19674
+ culprit: z.union([
19675
+ z.string(),
19676
+ z.null()
19677
+ ]),
19678
+ short_id: z.union([
19679
+ z.string(),
19680
+ z.null()
19681
+ ]),
19682
+ issue_type: z.number().int()
19683
+ })),
19684
+ occurrences: z.array(z.object({
19685
+ description: z.string(),
19686
+ event_id: z.string(),
19687
+ event_type: z.string(),
19688
+ project_id: z.number().int(),
19689
+ project_slug: z.string(),
19690
+ transaction: z.string(),
19691
+ issue_id: z.number().int(),
19692
+ level: z.string(),
19693
+ start_timestamp: z.number(),
19694
+ end_timestamp: z.number().optional(),
19695
+ culprit: z.union([
19696
+ z.string(),
19697
+ z.null()
19698
+ ]),
19699
+ short_id: z.union([
19700
+ z.string(),
19701
+ z.null()
19702
+ ]),
19703
+ issue_type: z.number().int()
19704
+ })),
19705
+ transaction_id: z.string(),
19706
+ op: z.string(),
19707
+ start_timestamp: z.number(),
19708
+ end_timestamp: z.number(),
19709
+ duration: z.number(),
19710
+ name: z.string(),
19711
+ region_name: z.string(),
19712
+ additional_attributes: z.record(z.unknown())
19713
+ })
19714
+ ]));
19373
19715
  var zListAuserSTeamsForAnOrganizationData = z.object({
19374
19716
  body: z.never().optional(),
19375
19717
  path: z.object({
@@ -27177,6 +27519,8 @@ export {
27177
27519
  zRetrieveAnEventForAProjectData,
27178
27520
  zRetrieveAnEventAttachmentResponse,
27179
27521
  zRetrieveAnEventAttachmentData,
27522
+ zRetrieveATraceResponse,
27523
+ zRetrieveATraceData,
27180
27524
  zRetrieveATeamResponse,
27181
27525
  zRetrieveATeamData,
27182
27526
  zRetrieveASpikeProtectionNotificationActionResponse,
@@ -27258,6 +27602,7 @@ export {
27258
27602
  zOutgoingNotificationAction,
27259
27603
  zOutcomesResponse,
27260
27604
  zOrganizationWithProjectsAndTeams,
27605
+ zOrganizationTraceResponse,
27261
27606
  zOrganizationTraceMetaResponse,
27262
27607
  zOrganizationSummary,
27263
27608
  zOrganizationStatsSummaryResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.162.0",
3
+ "version": "0.164.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",