sentry 0.29.1 → 0.31.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
@@ -259,6 +259,8 @@ export type AuthLoginParams = {
259
259
  timeout?: number;
260
260
  /** Re-authenticate without prompting */
261
261
  force?: boolean;
262
+ /** Sentry instance URL to authenticate against (e.g. https://sentry.example.com). Required for self-hosted; defaults to SaaS (https://sentry.io). */
263
+ url?: string;
262
264
  };
263
265
 
264
266
  export type AuthRefreshParams = {
@@ -325,7 +327,7 @@ export type DashboardListParams = {
325
327
  export type DashboardViewParams = {
326
328
  /** Auto-refresh interval in seconds (default: 60, min: 10) */
327
329
  refresh?: string;
328
- /** Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" */
330
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
329
331
  period?: string;
330
332
  };
331
333
 
@@ -547,7 +549,7 @@ export type IssueListParams = {
547
549
  limit?: number;
548
550
  /** Sort by: date, new, freq, user */
549
551
  sort?: string;
550
- /** Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" */
552
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
551
553
  period?: string;
552
554
  /** Pagination cursor (use "next" for next page, "prev" for previous) */
553
555
  cursor?: string;
@@ -562,7 +564,7 @@ export type IssueEventsParams = {
562
564
  query?: string;
563
565
  /** Include full event body (stacktraces) */
564
566
  full?: boolean;
565
- /** Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" */
567
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
566
568
  period?: string;
567
569
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
568
570
  cursor?: string;
@@ -603,6 +605,13 @@ export type IssueUnresolveParams = {
603
605
  issue?: string;
604
606
  };
605
607
 
608
+ export type IssueArchiveParams = {
609
+ /** Positional argument */
610
+ issue?: string;
611
+ /** Condition for unarchival: auto, 30m, 10x, 10u, 10x/5m, etc. */
612
+ until?: string;
613
+ };
614
+
606
615
  export type IssueMergeParams = {
607
616
  /** Prefer this issue as the canonical parent (must match one of the provided IDs) */
608
617
  into?: string;
@@ -622,7 +631,26 @@ export type EventListParams = {
622
631
  query?: string;
623
632
  /** Include full event body (stacktraces) */
624
633
  full?: boolean;
625
- /** Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" */
634
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
635
+ period?: string;
636
+ /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
637
+ cursor?: string;
638
+ };
639
+
640
+ export type ExploreParams = {
641
+ /** Positional argument */
642
+ target?: string;
643
+ /** API field or aggregate (repeatable). E.g., title, "count()", "p50(transaction.duration)" */
644
+ field?: string;
645
+ /** Dataset to query (errors, spans, metrics, logs) */
646
+ dataset?: string;
647
+ /** Search query (Sentry search syntax) */
648
+ query?: string;
649
+ /** Sort field (prefix with - for desc, e.g., "-count()") */
650
+ sort?: string;
651
+ /** Number of rows (1-1000) */
652
+ limit?: number;
653
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
626
654
  period?: string;
627
655
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
628
656
  cursor?: string;
@@ -635,7 +663,7 @@ export type LogListParams = {
635
663
  query?: string;
636
664
  /** Stream logs (optionally specify poll interval in seconds) */
637
665
  follow?: string;
638
- /** Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" */
666
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
639
667
  period?: string;
640
668
  /** Sort order: "newest" (default) or "oldest" */
641
669
  sort?: string;
@@ -646,8 +674,14 @@ export type SourcemapInjectParams = {
646
674
  directory?: string;
647
675
  /** Comma-separated file extensions to process (default: .js,.cjs,.mjs) */
648
676
  ext?: string;
677
+ /** Comma-separated glob patterns to exclude (gitignore-style) */
678
+ ignore?: string;
679
+ /** Path to a file with gitignore-style patterns to exclude */
680
+ ignoreFile?: string;
649
681
  /** Show what would be modified without writing */
650
682
  dryRun?: boolean;
683
+ /** Exit successfully when no JS + sourcemap pairs are found (default: error out to catch silent build misconfigurations) */
684
+ allowEmpty?: boolean;
651
685
  };
652
686
 
653
687
  export type SourcemapUploadParams = {
@@ -655,8 +689,24 @@ export type SourcemapUploadParams = {
655
689
  directory?: string;
656
690
  /** Release version to associate with the upload */
657
691
  release?: string;
692
+ /** Distribution identifier to disambiguate builds within a release */
693
+ dist?: string;
658
694
  /** URL prefix for uploaded files (default: ~/) */
659
695
  urlPrefix?: string;
696
+ /** Comma-separated file extensions to process (default: .js,.cjs,.mjs) */
697
+ ext?: string;
698
+ /** Comma-separated glob patterns to exclude (gitignore-style) */
699
+ ignore?: string;
700
+ /** Path to a file with gitignore-style patterns to exclude */
701
+ ignoreFile?: string;
702
+ /** Strip a prefix from uploaded file paths (e.g. 'build/') */
703
+ stripPrefix?: string;
704
+ /** Automatically strip the longest common path prefix from all files */
705
+ stripCommonPrefix?: boolean;
706
+ /** Upload files as-is without injecting debug IDs */
707
+ noRewrite?: boolean;
708
+ /** Exit successfully when no JS + sourcemap pairs are found (default: error out to catch silent build misconfigurations) */
709
+ allowEmpty?: boolean;
660
710
  };
661
711
 
662
712
  export type SpanListParams = {
@@ -666,7 +716,7 @@ export type SpanListParams = {
666
716
  query?: string;
667
717
  /** Sort order: date, duration */
668
718
  sort?: string;
669
- /** Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" */
719
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
670
720
  period?: string;
671
721
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
672
722
  cursor?: string;
@@ -686,7 +736,7 @@ export type TraceListParams = {
686
736
  query?: string;
687
737
  /** Sort by: date, duration */
688
738
  sort?: string;
689
- /** Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" */
739
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
690
740
  period?: string;
691
741
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
692
742
  cursor?: string;
@@ -700,7 +750,7 @@ export type TraceViewParams = {
700
750
  };
701
751
 
702
752
  export type TraceLogsParams = {
703
- /** Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" */
753
+ /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
704
754
  period?: string;
705
755
  /** Number of log entries (<=1000) */
706
756
  limit?: number;
@@ -766,6 +816,8 @@ export type SchemaParams = {
766
816
  export type SentrySDK = {
767
817
  /** Display help for a command */
768
818
  help(...positional: string[]): Promise<unknown>;
819
+ /** Query aggregate event data (Explore) */
820
+ explore(params?: ExploreParams): Promise<unknown>;
769
821
  /** Initialize Sentry in your project (experimental) */
770
822
  init(params?: InitParams): Promise<unknown>;
771
823
  /** Make an authenticated API request */
@@ -876,6 +928,8 @@ export type SentrySDK = {
876
928
  resolve(params?: IssueResolveParams): Promise<unknown>;
877
929
  /** Reopen a resolved issue */
878
930
  unresolve(params?: IssueUnresolveParams): Promise<unknown>;
931
+ /** Archive (ignore) an issue */
932
+ archive(params?: IssueArchiveParams): Promise<unknown>;
879
933
  /** Merge 2+ issues into a single canonical group */
880
934
  merge(params?: IssueMergeParams, ...positional: string[]): Promise<unknown>;
881
935
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentry",
3
- "version": "0.29.1",
3
+ "version": "0.31.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/getsentry/cli.git"
@@ -79,9 +79,9 @@
79
79
  "typecheck": "bun run generate:docs && bun run generate:sdk && tsc --noEmit",
80
80
  "lint": "bunx ultracite check",
81
81
  "lint:fix": "bunx ultracite fix",
82
- "test": "bun run test:unit && bun run test:isolated",
83
- "test:unit": "bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 test/lib test/commands test/types --coverage --coverage-reporter=lcov",
84
- "test:isolated": "bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 test/isolated",
82
+ "test": "bun run test:unit",
83
+ "test:unit": "bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 --isolate --parallel test/lib test/commands test/types --coverage --coverage-reporter=lcov",
84
+ "test:changed": "bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 --isolate --changed",
85
85
  "test:e2e": "bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 test/e2e",
86
86
  "test:init-eval": "bun test test/init-eval --timeout 600000 --concurrency 6",
87
87
  "generate:parser": "bun run script/generate-parser.ts",