sentry 0.34.0 → 0.35.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
@@ -35,7 +35,7 @@ export declare function createSentrySDK(options?: SentryOptions): SentrySDK & {
35
35
  export default createSentrySDK;
36
36
 
37
37
  // Auto-generated by script/generate-sdk.ts — DO NOT EDIT
38
- // Run `bun run generate:sdk` to regenerate.
38
+ // Run `pnpm run generate:sdk` to regenerate.
39
39
 
40
40
  // --- Return types (derived from __jsonSchema) ---
41
41
 
@@ -291,6 +291,55 @@ export type IssueEventsResult = {
291
291
  metadata?: Record<string, unknown> | null;
292
292
  };
293
293
 
294
+ export type IssueViewResult = {
295
+ /** Numeric issue ID */
296
+ id: string;
297
+ /** Human-readable short ID (e.g. PROJ-ABC) */
298
+ shortId: string;
299
+ /** Issue title */
300
+ title: string;
301
+ /** Culprit string */
302
+ culprit?: string;
303
+ /** Total event count */
304
+ count?: string;
305
+ /** Number of affected users */
306
+ userCount?: number;
307
+ /** First occurrence (ISO 8601) */
308
+ firstSeen?: string;
309
+ /** Most recent occurrence (ISO 8601) */
310
+ lastSeen?: string;
311
+ /** Severity level */
312
+ level?: string;
313
+ /** Issue status */
314
+ status?: string;
315
+ /** URL to the issue in Sentry */
316
+ permalink?: string;
317
+ /** Project info */
318
+ project?: Record<string, unknown>;
319
+ /** Issue metadata */
320
+ metadata?: Record<string, unknown>;
321
+ /** Assigned user or team */
322
+ assignedTo?: Record<string, unknown> | null;
323
+ /** Triage priority */
324
+ priority?: string;
325
+ /** Platform */
326
+ platform?: string;
327
+ /** Issue substatus */
328
+ substatus?: string | null;
329
+ /** Whether the issue is unhandled */
330
+ isUnhandled?: boolean;
331
+ /** Seer AI fixability score (0-1) */
332
+ seerFixabilityScore?: number | null;
333
+ /** Latest event for the issue (full detail) */
334
+ event?: unknown | null;
335
+ /** Organization slug */
336
+ org?: string | null;
337
+ /** Related Session Replay IDs */
338
+ replayIds?: unknown[];
339
+ /** Trace context from the latest event's span tree */
340
+ trace?: Record<string, unknown> | null;
341
+ };
342
+
294
343
  export type EventListResult = {
295
344
  /** Internal event ID */
296
345
  id: string;
@@ -427,6 +476,17 @@ export type CliFixParams = {
427
476
  dryRun?: boolean;
428
477
  };
429
478
 
479
+ export type CliImportParams = {
480
+ /** Skip confirmation prompt */
481
+ yes?: boolean;
482
+ /** Show what would happen without making changes */
483
+ dryRun?: boolean;
484
+ /** Explicitly trust this URL (bypasses same-file trust check) */
485
+ url?: string;
486
+ /** Skip token validation against the Sentry API */
487
+ skipValidation?: boolean;
488
+ };
489
+
430
490
  export type CliSetupParams = {
431
491
  /** Install the binary from a temp location to the system path */
432
492
  install?: boolean;
@@ -467,7 +527,7 @@ export type DashboardListParams = {
467
527
  export type DashboardViewParams = {
468
528
  /** Auto-refresh interval in seconds (default: 60, min: 10) */
469
529
  refresh?: string;
470
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
530
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
471
531
  period?: string;
472
532
  };
473
533
 
@@ -611,7 +671,7 @@ export type ReplayListParams = {
611
671
  environment?: string;
612
672
  /** Sort by: date, oldest, duration, errors, activity, or a raw replay sort field */
613
673
  sort?: string;
614
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
674
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
615
675
  period?: string;
616
676
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
617
677
  cursor?: string;
@@ -718,7 +778,7 @@ export type IssueListParams = {
718
778
  limit?: number;
719
779
  /** Sort by: date, new, freq, user */
720
780
  sort?: string;
721
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
781
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
722
782
  period?: string;
723
783
  /** Pagination cursor (use "next" for next page, "prev" for previous) */
724
784
  cursor?: string;
@@ -733,7 +793,7 @@ export type IssueEventsParams = {
733
793
  query?: string;
734
794
  /** Include full event body (stacktraces) */
735
795
  full?: boolean;
736
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
796
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
737
797
  period?: string;
738
798
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
739
799
  cursor?: string;
@@ -798,7 +858,7 @@ export type EventListParams = {
798
858
  query?: string;
799
859
  /** Include full event body (stacktraces) */
800
860
  full?: boolean;
801
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
861
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
802
862
  period?: string;
803
863
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
804
864
  cursor?: string;
@@ -823,7 +883,7 @@ export type ExploreParams = {
823
883
  environment?: string;
824
884
  /** Number of rows (1-1000) */
825
885
  limit?: number;
826
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
886
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
827
887
  period?: string;
828
888
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
829
889
  cursor?: string;
@@ -836,7 +896,7 @@ export type LogListParams = {
836
896
  query?: string;
837
897
  /** Stream logs (optionally specify poll interval in seconds) */
838
898
  follow?: string;
839
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
899
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
840
900
  period?: string;
841
901
  /** Sort order: "newest" (default) or "oldest" */
842
902
  sort?: string;
@@ -889,7 +949,7 @@ export type SpanListParams = {
889
949
  query?: string;
890
950
  /** Sort order: date, duration */
891
951
  sort?: string;
892
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
952
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
893
953
  period?: string;
894
954
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
895
955
  cursor?: string;
@@ -909,7 +969,7 @@ export type TraceListParams = {
909
969
  query?: string;
910
970
  /** Sort by: date, duration */
911
971
  sort?: string;
912
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
972
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
913
973
  period?: string;
914
974
  /** Navigate pages: "next", "prev", "first" (or raw cursor string) */
915
975
  cursor?: string;
@@ -923,7 +983,7 @@ export type TraceViewParams = {
923
983
  };
924
984
 
925
985
  export type TraceLogsParams = {
926
- /** Time range: "7d", "2026-04-01..2026-05-01", ">=2026-04-01" */
986
+ /** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
927
987
  period?: string;
928
988
  /** Number of log entries (<=1000) */
929
989
  limit?: number;
@@ -954,10 +1014,32 @@ export type InitParams = {
954
1014
  features?: string;
955
1015
  /** Team slug to create the project under */
956
1016
  team?: string;
1017
+ /** App to initialize in a monorepo (required with --yes when multiple apps are detected) */
1018
+ app?: string;
957
1019
  /** Use the Ink-based interactive UI (default). Pass --no-tui to fall back to plain log output. */
958
1020
  tui?: boolean;
959
1021
  };
960
1022
 
1023
+ export type LocalServeParams = {
1024
+ /** Port to listen on (default 8969) */
1025
+ port?: number;
1026
+ /** Hostname to bind to (default localhost) */
1027
+ host?: string;
1028
+ /** Suppress per-envelope tail output */
1029
+ quiet?: boolean;
1030
+ /** Only show items of this type (repeatable: error, transaction, log, ai) */
1031
+ filter?: string;
1032
+ /** Output format: human (default) or json (NDJSON) */
1033
+ format?: string;
1034
+ };
1035
+
1036
+ export type LocalRunParams = {
1037
+ /** Port for the local server (default 8969) */
1038
+ port?: number;
1039
+ /** Hostname for the local server (default localhost) */
1040
+ host?: string;
1041
+ };
1042
+
961
1043
  export type ApiParams = {
962
1044
  /** Positional argument */
963
1045
  endpoint?: string;
@@ -1020,6 +1102,8 @@ export type SentrySDK = {
1020
1102
  feedback(...positional: string[]): Promise<unknown>;
1021
1103
  /** Diagnose and repair CLI database issues */
1022
1104
  fix(params?: CliFixParams): Promise<unknown>;
1105
+ /** Import settings from legacy .sentryclirc files */
1106
+ import(params?: CliImportParams): Promise<unknown>;
1023
1107
  /** Configure shell integration */
1024
1108
  setup(params?: CliSetupParams): Promise<unknown>;
1025
1109
  /** Update the Sentry CLI to the latest version */
@@ -1108,7 +1192,7 @@ export type SentrySDK = {
1108
1192
  /** Generate a solution plan using Seer AI */
1109
1193
  plan(params?: IssuePlanParams): Promise<unknown>;
1110
1194
  /** View details of a specific issue */
1111
- view(params?: IssueViewParams): Promise<unknown>;
1195
+ view(params?: IssueViewParams): Promise<IssueViewResult>;
1112
1196
  /** Mark an issue as resolved */
1113
1197
  resolve(params?: IssueResolveParams): Promise<unknown>;
1114
1198
  /** Reopen a resolved issue */
@@ -1159,5 +1243,11 @@ export type SentrySDK = {
1159
1243
  /** Start a product trial */
1160
1244
  start(params?: TrialStartParams): Promise<unknown>;
1161
1245
  };
1246
+ local: {
1247
+ /** Start the local dev server and tail events */
1248
+ serve(params?: LocalServeParams): Promise<unknown>;
1249
+ /** Run a command with the local dev server enabled */
1250
+ run(params?: LocalRunParams, ...positional: string[]): Promise<unknown>;
1251
+ };
1162
1252
  };
1163
1253