sentry 0.32.0 → 0.34.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
@@ -542,6 +542,18 @@ export type DashboardWidgetDeleteParams = {
542
542
  dryRun?: boolean;
543
543
  };
544
544
 
545
+ export type DashboardRevisionsParams = {
546
+ /** Maximum number of revisions to list */
547
+ limit?: number;
548
+ /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
549
+ cursor?: string;
550
+ };
551
+
552
+ export type DashboardRestoreParams = {
553
+ /** Revision ID to restore */
554
+ revision: string;
555
+ };
556
+
545
557
  export type OrgListParams = {
546
558
  /** Maximum number of organizations to list */
547
559
  limit?: number;
@@ -737,8 +749,6 @@ export type IssueExplainParams = {
737
749
  export type IssuePlanParams = {
738
750
  /** Positional argument */
739
751
  issue?: string;
740
- /** Root cause ID to plan (required if multiple causes exist) */
741
- cause?: string;
742
752
  /** Force new plan even if one exists */
743
753
  force?: boolean;
744
754
  };
@@ -799,6 +809,10 @@ export type ExploreParams = {
799
809
  target?: string;
800
810
  /** API field or aggregate (repeatable). E.g., title, "count()", "p50(transaction.duration)" */
801
811
  field?: string;
812
+ /** Metric name for --dataset metrics. Auto-resolves type/unit via API. */
813
+ metric?: string;
814
+ /** Aggregation for --metric (sum, avg, count, p50, p95, etc.) */
815
+ agg?: string;
802
816
  /** Dataset to query (errors, spans, metrics, logs, replays) */
803
817
  dataset?: string;
804
818
  /** Search query (Sentry search syntax) */
@@ -940,7 +954,7 @@ export type InitParams = {
940
954
  features?: string;
941
955
  /** Team slug to create the project under */
942
956
  team?: string;
943
- /** Use the Ink-based interactive UI (default on the Bun binary). Pass --no-tui to fall back to plain log output. */
957
+ /** Use the Ink-based interactive UI (default). Pass --no-tui to fall back to plain log output. */
944
958
  tui?: boolean;
945
959
  };
946
960
 
@@ -1021,6 +1035,10 @@ export type SentrySDK = {
1021
1035
  };
1022
1036
  /** Create a dashboard */
1023
1037
  create(...positional: string[]): Promise<unknown>;
1038
+ /** List dashboard revisions */
1039
+ revisions(params?: DashboardRevisionsParams, ...positional: string[]): Promise<unknown>;
1040
+ /** Restore a dashboard revision */
1041
+ restore(params: DashboardRestoreParams, ...positional: string[]): Promise<unknown>;
1024
1042
  widget: {
1025
1043
  /** Add a widget to a dashboard */
1026
1044
  add(params: DashboardWidgetAddParams, ...positional: string[]): Promise<unknown>;