sentry 0.33.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/README.md +13 -13
- package/dist/bin.cjs +1 -1
- package/dist/index.cjs +1170 -869
- package/dist/index.d.cts +106 -14
- package/dist/ink-app.js +205 -81
- package/package.json +53 -38
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 `
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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;
|
|
@@ -749,8 +809,6 @@ export type IssueExplainParams = {
|
|
|
749
809
|
export type IssuePlanParams = {
|
|
750
810
|
/** Positional argument */
|
|
751
811
|
issue?: string;
|
|
752
|
-
/** Root cause ID to plan (required if multiple causes exist) */
|
|
753
|
-
cause?: string;
|
|
754
812
|
/** Force new plan even if one exists */
|
|
755
813
|
force?: boolean;
|
|
756
814
|
};
|
|
@@ -800,7 +858,7 @@ export type EventListParams = {
|
|
|
800
858
|
query?: string;
|
|
801
859
|
/** Include full event body (stacktraces) */
|
|
802
860
|
full?: boolean;
|
|
803
|
-
/** Time range: "7d", "2026-
|
|
861
|
+
/** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
|
|
804
862
|
period?: string;
|
|
805
863
|
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
806
864
|
cursor?: string;
|
|
@@ -811,6 +869,10 @@ export type ExploreParams = {
|
|
|
811
869
|
target?: string;
|
|
812
870
|
/** API field or aggregate (repeatable). E.g., title, "count()", "p50(transaction.duration)" */
|
|
813
871
|
field?: string;
|
|
872
|
+
/** Metric name for --dataset metrics. Auto-resolves type/unit via API. */
|
|
873
|
+
metric?: string;
|
|
874
|
+
/** Aggregation for --metric (sum, avg, count, p50, p95, etc.) */
|
|
875
|
+
agg?: string;
|
|
814
876
|
/** Dataset to query (errors, spans, metrics, logs, replays) */
|
|
815
877
|
dataset?: string;
|
|
816
878
|
/** Search query (Sentry search syntax) */
|
|
@@ -821,7 +883,7 @@ export type ExploreParams = {
|
|
|
821
883
|
environment?: string;
|
|
822
884
|
/** Number of rows (1-1000) */
|
|
823
885
|
limit?: number;
|
|
824
|
-
/** Time range: "7d", "2026-
|
|
886
|
+
/** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
|
|
825
887
|
period?: string;
|
|
826
888
|
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
827
889
|
cursor?: string;
|
|
@@ -834,7 +896,7 @@ export type LogListParams = {
|
|
|
834
896
|
query?: string;
|
|
835
897
|
/** Stream logs (optionally specify poll interval in seconds) */
|
|
836
898
|
follow?: string;
|
|
837
|
-
/** Time range: "7d", "2026-
|
|
899
|
+
/** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
|
|
838
900
|
period?: string;
|
|
839
901
|
/** Sort order: "newest" (default) or "oldest" */
|
|
840
902
|
sort?: string;
|
|
@@ -887,7 +949,7 @@ export type SpanListParams = {
|
|
|
887
949
|
query?: string;
|
|
888
950
|
/** Sort order: date, duration */
|
|
889
951
|
sort?: string;
|
|
890
|
-
/** Time range: "7d", "2026-
|
|
952
|
+
/** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
|
|
891
953
|
period?: string;
|
|
892
954
|
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
893
955
|
cursor?: string;
|
|
@@ -907,7 +969,7 @@ export type TraceListParams = {
|
|
|
907
969
|
query?: string;
|
|
908
970
|
/** Sort by: date, duration */
|
|
909
971
|
sort?: string;
|
|
910
|
-
/** Time range: "7d", "2026-
|
|
972
|
+
/** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
|
|
911
973
|
period?: string;
|
|
912
974
|
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
913
975
|
cursor?: string;
|
|
@@ -921,7 +983,7 @@ export type TraceViewParams = {
|
|
|
921
983
|
};
|
|
922
984
|
|
|
923
985
|
export type TraceLogsParams = {
|
|
924
|
-
/** Time range: "7d", "2026-
|
|
986
|
+
/** Time range: "7d", "2026-05-01..2026-06-01", ">=2026-05-01" */
|
|
925
987
|
period?: string;
|
|
926
988
|
/** Number of log entries (<=1000) */
|
|
927
989
|
limit?: number;
|
|
@@ -952,10 +1014,32 @@ export type InitParams = {
|
|
|
952
1014
|
features?: string;
|
|
953
1015
|
/** Team slug to create the project under */
|
|
954
1016
|
team?: string;
|
|
1017
|
+
/** App to initialize in a monorepo (required with --yes when multiple apps are detected) */
|
|
1018
|
+
app?: string;
|
|
955
1019
|
/** Use the Ink-based interactive UI (default). Pass --no-tui to fall back to plain log output. */
|
|
956
1020
|
tui?: boolean;
|
|
957
1021
|
};
|
|
958
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
|
+
|
|
959
1043
|
export type ApiParams = {
|
|
960
1044
|
/** Positional argument */
|
|
961
1045
|
endpoint?: string;
|
|
@@ -1018,6 +1102,8 @@ export type SentrySDK = {
|
|
|
1018
1102
|
feedback(...positional: string[]): Promise<unknown>;
|
|
1019
1103
|
/** Diagnose and repair CLI database issues */
|
|
1020
1104
|
fix(params?: CliFixParams): Promise<unknown>;
|
|
1105
|
+
/** Import settings from legacy .sentryclirc files */
|
|
1106
|
+
import(params?: CliImportParams): Promise<unknown>;
|
|
1021
1107
|
/** Configure shell integration */
|
|
1022
1108
|
setup(params?: CliSetupParams): Promise<unknown>;
|
|
1023
1109
|
/** Update the Sentry CLI to the latest version */
|
|
@@ -1106,7 +1192,7 @@ export type SentrySDK = {
|
|
|
1106
1192
|
/** Generate a solution plan using Seer AI */
|
|
1107
1193
|
plan(params?: IssuePlanParams): Promise<unknown>;
|
|
1108
1194
|
/** View details of a specific issue */
|
|
1109
|
-
view(params?: IssueViewParams): Promise<
|
|
1195
|
+
view(params?: IssueViewParams): Promise<IssueViewResult>;
|
|
1110
1196
|
/** Mark an issue as resolved */
|
|
1111
1197
|
resolve(params?: IssueResolveParams): Promise<unknown>;
|
|
1112
1198
|
/** Reopen a resolved issue */
|
|
@@ -1157,5 +1243,11 @@ export type SentrySDK = {
|
|
|
1157
1243
|
/** Start a product trial */
|
|
1158
1244
|
start(params?: TrialStartParams): Promise<unknown>;
|
|
1159
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
|
+
};
|
|
1160
1252
|
};
|
|
1161
1253
|
|