sentry 0.24.0 → 0.25.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/index.d.cts CHANGED
@@ -118,6 +118,72 @@ export type IssueListResult = {
118
118
  seerFixabilityScore?: number | null;
119
119
  };
120
120
 
121
+ export type IssueEventsResult = {
122
+ /** Internal event ID */
123
+ id: string;
124
+ /** Event type (error, default, transaction) */
125
+ "event.type": string;
126
+ /** Group (issue) ID */
127
+ groupID: string | null;
128
+ /** UUID-format event ID */
129
+ eventID: string;
130
+ /** Project ID */
131
+ projectID: string;
132
+ /** Event message */
133
+ message: string;
134
+ /** Event title */
135
+ title: string;
136
+ /** Source location (file:line) */
137
+ location: string | null;
138
+ /** Culprit function/module */
139
+ culprit: string | null;
140
+ /** User context */
141
+ user: Record<string, unknown> | null;
142
+ /** Event tags */
143
+ tags: unknown[];
144
+ /** Platform (python, javascript, etc.) */
145
+ platform: string | null;
146
+ /** ISO 8601 creation timestamp */
147
+ dateCreated: string;
148
+ /** Crash file URL */
149
+ crashFile: string | null;
150
+ /** Event metadata */
151
+ metadata: unknown | null;
152
+ };
153
+
154
+ export type EventListResult = {
155
+ /** Internal event ID */
156
+ id: string;
157
+ /** Event type (error, default, transaction) */
158
+ "event.type": string;
159
+ /** Group (issue) ID */
160
+ groupID: string | null;
161
+ /** UUID-format event ID */
162
+ eventID: string;
163
+ /** Project ID */
164
+ projectID: string;
165
+ /** Event message */
166
+ message: string;
167
+ /** Event title */
168
+ title: string;
169
+ /** Source location (file:line) */
170
+ location: string | null;
171
+ /** Culprit function/module */
172
+ culprit: string | null;
173
+ /** User context */
174
+ user: Record<string, unknown> | null;
175
+ /** Event tags */
176
+ tags: unknown[];
177
+ /** Platform (python, javascript, etc.) */
178
+ platform: string | null;
179
+ /** ISO 8601 creation timestamp */
180
+ dateCreated: string;
181
+ /** Crash file URL */
182
+ crashFile: string | null;
183
+ /** Event metadata */
184
+ metadata: unknown | null;
185
+ };
186
+
121
187
  export type LogListResult = {
122
188
  /** Unique log entry ID */
123
189
  "sentry.item_id": string;
@@ -250,7 +316,7 @@ export type DashboardListParams = {
250
316
  export type DashboardViewParams = {
251
317
  /** Auto-refresh interval in seconds (default: 60, min: 10) */
252
318
  refresh?: string;
253
- /** Time period override (e.g., "24h", "7d", "14d") */
319
+ /** Time range: "7d", "2026-03-07..2026-04-07", ">=2026-03-07" */
254
320
  period?: string;
255
321
  };
256
322
 
@@ -423,7 +489,7 @@ export type ReleaseDeployParams = {
423
489
  };
424
490
 
425
491
  export type ReleaseSetCommitsParams = {
426
- /** Use repository integration to auto-discover commits */
492
+ /** Auto-discover commits via repository integration (needs local git checkout) */
427
493
  auto?: boolean;
428
494
  /** Read commits from local git history */
429
495
  local?: boolean;
@@ -462,12 +528,27 @@ export type IssueListParams = {
462
528
  limit?: number;
463
529
  /** Sort by: date, new, freq, user */
464
530
  sort?: string;
465
- /** Time period for issue activity (e.g. 24h, 14d, 90d) */
531
+ /** Time range: "7d", "2026-03-07..2026-04-07", ">=2026-03-07" */
466
532
  period?: string;
467
533
  /** Pagination cursor (use "next" for next page, "prev" for previous) */
468
534
  cursor?: string;
469
535
  };
470
536
 
537
+ export type IssueEventsParams = {
538
+ /** Positional argument */
539
+ issue?: string;
540
+ /** Number of events (1-1000) */
541
+ limit?: number;
542
+ /** Search query (Sentry search syntax) */
543
+ query?: string;
544
+ /** Include full event body (stacktraces) */
545
+ full?: boolean;
546
+ /** Time range: "7d", "2026-03-07..2026-04-07", ">=2026-03-07" */
547
+ period?: string;
548
+ /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
549
+ cursor?: string;
550
+ };
551
+
471
552
  export type IssueExplainParams = {
472
553
  /** Positional argument */
473
554
  issue?: string;
@@ -496,6 +577,21 @@ export type EventViewParams = {
496
577
  spans?: number;
497
578
  };
498
579
 
580
+ export type EventListParams = {
581
+ /** Positional argument */
582
+ issue?: string;
583
+ /** Number of events (1-1000) */
584
+ limit?: number;
585
+ /** Search query (Sentry search syntax) */
586
+ query?: string;
587
+ /** Include full event body (stacktraces) */
588
+ full?: boolean;
589
+ /** Time range: "7d", "2026-03-07..2026-04-07", ">=2026-03-07" */
590
+ period?: string;
591
+ /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
592
+ cursor?: string;
593
+ };
594
+
499
595
  export type LogListParams = {
500
596
  /** Number of log entries (1-1000) */
501
597
  limit?: number;
@@ -503,7 +599,7 @@ export type LogListParams = {
503
599
  query?: string;
504
600
  /** Stream logs (optionally specify poll interval in seconds) */
505
601
  follow?: string;
506
- /** Time period (e.g., "30d", "14d", "24h"). Default: 30d (project mode), 14d (trace mode) */
602
+ /** Time range: "7d", "2026-03-07..2026-04-07", ">=2026-03-07" */
507
603
  period?: string;
508
604
  /** Sort order: "newest" (default) or "oldest" */
509
605
  sort?: string;
@@ -534,7 +630,7 @@ export type SpanListParams = {
534
630
  query?: string;
535
631
  /** Sort order: date, duration */
536
632
  sort?: string;
537
- /** Time period (e.g., "1h", "24h", "7d", "30d") */
633
+ /** Time range: "7d", "2026-03-07..2026-04-07", ">=2026-03-07" */
538
634
  period?: string;
539
635
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
540
636
  cursor?: string;
@@ -554,7 +650,7 @@ export type TraceListParams = {
554
650
  query?: string;
555
651
  /** Sort by: date, duration */
556
652
  sort?: string;
557
- /** Time period (e.g., "1h", "24h", "7d", "30d") */
653
+ /** Time range: "7d", "2026-03-07..2026-04-07", ">=2026-03-07" */
558
654
  period?: string;
559
655
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
560
656
  cursor?: string;
@@ -566,7 +662,7 @@ export type TraceViewParams = {
566
662
  };
567
663
 
568
664
  export type TraceLogsParams = {
569
- /** Time period to search (e.g., "14d", "7d", "24h"). Default: 14d */
665
+ /** Time range: "7d", "2026-03-07..2026-04-07", ">=2026-03-07" */
570
666
  period?: string;
571
667
  /** Number of log entries (<=1000) */
572
668
  limit?: number;
@@ -591,7 +687,7 @@ export type InitParams = {
591
687
  targetDirectory?: string;
592
688
  /** Non-interactive mode (accept defaults) */
593
689
  yes?: boolean;
594
- /** Preview changes without applying them */
690
+ /** Show what would happen without making changes */
595
691
  dryRun?: boolean;
596
692
  /** Features to enable: errors,tracing,logs,replay,metrics,profiling,sourcemaps,crons,ai-monitoring,user-feedback */
597
693
  features?: string;
@@ -728,6 +824,8 @@ export type SentrySDK = {
728
824
  issue: {
729
825
  /** List issues in a project */
730
826
  list(params?: IssueListParams): Promise<IssueListResult>;
827
+ /** List events for a specific issue */
828
+ events(params?: IssueEventsParams): Promise<IssueEventsResult>;
731
829
  /** Analyze an issue's root cause using Seer AI */
732
830
  explain(params?: IssueExplainParams): Promise<unknown>;
733
831
  /** Generate a solution plan using Seer AI */
@@ -738,6 +836,8 @@ export type SentrySDK = {
738
836
  event: {
739
837
  /** View details of a specific event */
740
838
  view(params?: EventViewParams, ...positional: string[]): Promise<unknown>;
839
+ /** List events for an issue */
840
+ list(params?: EventListParams): Promise<EventListResult>;
741
841
  };
742
842
  log: {
743
843
  /** List logs from a project */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentry",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/getsentry/cli.git"