sentry 0.35.0 → 0.37.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 +6 -0
- package/dist/index.cjs +1829 -1002
- package/dist/index.d.cts +407 -13
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -225,15 +225,15 @@ export type IssueListResult = {
|
|
|
225
225
|
/** Issue title */
|
|
226
226
|
title: string;
|
|
227
227
|
/** Culprit string */
|
|
228
|
-
culprit?: string;
|
|
228
|
+
culprit?: string | null;
|
|
229
229
|
/** Total event count */
|
|
230
230
|
count?: string;
|
|
231
231
|
/** Number of affected users */
|
|
232
232
|
userCount?: number;
|
|
233
233
|
/** First occurrence (ISO 8601) */
|
|
234
|
-
firstSeen?: string;
|
|
234
|
+
firstSeen?: string | null;
|
|
235
235
|
/** Most recent occurrence (ISO 8601) */
|
|
236
|
-
lastSeen?: string;
|
|
236
|
+
lastSeen?: string | null;
|
|
237
237
|
/** Severity level */
|
|
238
238
|
level?: string;
|
|
239
239
|
/** Issue status */
|
|
@@ -299,15 +299,15 @@ export type IssueViewResult = {
|
|
|
299
299
|
/** Issue title */
|
|
300
300
|
title: string;
|
|
301
301
|
/** Culprit string */
|
|
302
|
-
culprit?: string;
|
|
302
|
+
culprit?: string | null;
|
|
303
303
|
/** Total event count */
|
|
304
304
|
count?: string;
|
|
305
305
|
/** Number of affected users */
|
|
306
306
|
userCount?: number;
|
|
307
307
|
/** First occurrence (ISO 8601) */
|
|
308
|
-
firstSeen?: string;
|
|
308
|
+
firstSeen?: string | null;
|
|
309
309
|
/** Most recent occurrence (ISO 8601) */
|
|
310
|
-
lastSeen?: string;
|
|
310
|
+
lastSeen?: string | null;
|
|
311
311
|
/** Severity level */
|
|
312
312
|
level?: string;
|
|
313
313
|
/** Issue status */
|
|
@@ -388,6 +388,25 @@ export type LogListResult = {
|
|
|
388
388
|
trace?: string | null;
|
|
389
389
|
};
|
|
390
390
|
|
|
391
|
+
export type MonitorListResult = {
|
|
392
|
+
/** Monitor ID */
|
|
393
|
+
id: string;
|
|
394
|
+
/** Monitor slug */
|
|
395
|
+
slug: string;
|
|
396
|
+
/** Monitor name */
|
|
397
|
+
name: string;
|
|
398
|
+
/** Monitor status (e.g. active, disabled) */
|
|
399
|
+
status: string;
|
|
400
|
+
/** Whether the monitor is muted */
|
|
401
|
+
isMuted?: boolean;
|
|
402
|
+
/** Schedule configuration */
|
|
403
|
+
config?: Record<string, unknown>;
|
|
404
|
+
/** Creation date (ISO 8601) */
|
|
405
|
+
dateCreated?: string;
|
|
406
|
+
/** Owning project */
|
|
407
|
+
project?: Record<string, unknown>;
|
|
408
|
+
};
|
|
409
|
+
|
|
391
410
|
export type SpanListResult = {
|
|
392
411
|
/** Span ID */
|
|
393
412
|
id: string;
|
|
@@ -441,6 +460,160 @@ export type TrialListResult = {
|
|
|
441
460
|
|
|
442
461
|
// --- Parameter types ---
|
|
443
462
|
|
|
463
|
+
export type AlertIssuesListParams = {
|
|
464
|
+
/** Positional argument */
|
|
465
|
+
orgProject?: string;
|
|
466
|
+
/** Maximum number of issue alert rules to list */
|
|
467
|
+
limit?: number;
|
|
468
|
+
/** Filter rules by name */
|
|
469
|
+
query?: string;
|
|
470
|
+
/** Pagination cursor (use "next" for next page, "prev" for previous) */
|
|
471
|
+
cursor?: string;
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
export type AlertIssuesViewParams = {
|
|
475
|
+
/** Positional argument */
|
|
476
|
+
orgProjectRuleIdOrName?: string;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
export type AlertIssuesCreateParams = {
|
|
480
|
+
/** Positional argument */
|
|
481
|
+
target?: string;
|
|
482
|
+
/** Rule name */
|
|
483
|
+
name: string;
|
|
484
|
+
/** Condition object JSON (repeatable, or pass one JSON array) */
|
|
485
|
+
condition?: string;
|
|
486
|
+
/** Action object JSON (repeatable, or pass one JSON array) */
|
|
487
|
+
action?: string;
|
|
488
|
+
/** Condition/action match mode: all or any */
|
|
489
|
+
actionMatch?: string;
|
|
490
|
+
/** Frequency in minutes (default: 30) */
|
|
491
|
+
frequency?: number;
|
|
492
|
+
/** Environment filter */
|
|
493
|
+
environment?: string;
|
|
494
|
+
/** Filter object JSON (repeatable, or pass one JSON array) */
|
|
495
|
+
filter?: string;
|
|
496
|
+
/** Filter match mode: all or any */
|
|
497
|
+
filterMatch?: string;
|
|
498
|
+
/** Owner (team:user style value accepted by Sentry API) */
|
|
499
|
+
owner?: string;
|
|
500
|
+
/** Show what would happen without making changes */
|
|
501
|
+
dryRun?: boolean;
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
export type AlertIssuesDeleteParams = {
|
|
505
|
+
/** Positional argument */
|
|
506
|
+
orgProjectRuleIdOrName?: string;
|
|
507
|
+
/** Skip confirmation prompt */
|
|
508
|
+
yes?: boolean;
|
|
509
|
+
/** Force the operation without confirmation */
|
|
510
|
+
force?: boolean;
|
|
511
|
+
/** Show what would happen without making changes */
|
|
512
|
+
dryRun?: boolean;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
export type AlertIssuesEditParams = {
|
|
516
|
+
/** Positional argument */
|
|
517
|
+
orgProjectRuleIdOrName?: string;
|
|
518
|
+
/** New rule name */
|
|
519
|
+
name?: string;
|
|
520
|
+
/** Rule status: active or disabled */
|
|
521
|
+
status?: string;
|
|
522
|
+
/** Condition object JSON (repeatable, or pass one JSON array) */
|
|
523
|
+
condition?: string;
|
|
524
|
+
/** Action object JSON (repeatable, or pass one JSON array) */
|
|
525
|
+
action?: string;
|
|
526
|
+
/** Condition/action match mode: all or any */
|
|
527
|
+
actionMatch?: string;
|
|
528
|
+
/** Frequency in minutes */
|
|
529
|
+
frequency?: string;
|
|
530
|
+
/** Environment value (pass empty string to clear) */
|
|
531
|
+
environment?: string;
|
|
532
|
+
/** Filter object JSON (repeatable, or pass one JSON array) */
|
|
533
|
+
filter?: string;
|
|
534
|
+
/** Filter match mode: all or any */
|
|
535
|
+
filterMatch?: string;
|
|
536
|
+
/** Owner value (pass empty string to clear) */
|
|
537
|
+
owner?: string;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
export type AlertMetricsListParams = {
|
|
541
|
+
/** Positional argument */
|
|
542
|
+
target?: string;
|
|
543
|
+
/** Maximum number of metric alert rules to list */
|
|
544
|
+
limit?: number;
|
|
545
|
+
/** Filter rules by name */
|
|
546
|
+
query?: string;
|
|
547
|
+
/** Pagination cursor (use "next" for next page, "prev" for previous) */
|
|
548
|
+
cursor?: string;
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
export type AlertMetricsViewParams = {
|
|
552
|
+
/** Positional argument */
|
|
553
|
+
orgRuleIdOrName?: string;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
export type AlertMetricsCreateParams = {
|
|
557
|
+
/** Positional argument */
|
|
558
|
+
org?: string;
|
|
559
|
+
/** Rule name */
|
|
560
|
+
name: string;
|
|
561
|
+
/** Metric query filter string */
|
|
562
|
+
query: string;
|
|
563
|
+
/** Aggregate expression (for example count(), p95(transaction.duration)) */
|
|
564
|
+
aggregate: string;
|
|
565
|
+
/** Dataset (errors, transactions, sessions, events, spans, metrics) */
|
|
566
|
+
dataset: string;
|
|
567
|
+
/** Evaluation window in minutes */
|
|
568
|
+
timeWindow: string;
|
|
569
|
+
/** Trigger object JSON (repeatable, or pass one JSON array) */
|
|
570
|
+
trigger?: string;
|
|
571
|
+
/** Project slug filter (repeatable or comma-separated) */
|
|
572
|
+
project?: string;
|
|
573
|
+
/** Environment filter */
|
|
574
|
+
environment?: string;
|
|
575
|
+
/** Owner value accepted by Sentry API */
|
|
576
|
+
owner?: string;
|
|
577
|
+
/** Show what would happen without making changes */
|
|
578
|
+
dryRun?: boolean;
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
export type AlertMetricsDeleteParams = {
|
|
582
|
+
/** Positional argument */
|
|
583
|
+
orgRuleIdOrName?: string;
|
|
584
|
+
/** Skip confirmation prompt */
|
|
585
|
+
yes?: boolean;
|
|
586
|
+
/** Force the operation without confirmation */
|
|
587
|
+
force?: boolean;
|
|
588
|
+
/** Show what would happen without making changes */
|
|
589
|
+
dryRun?: boolean;
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
export type AlertMetricsEditParams = {
|
|
593
|
+
/** Positional argument */
|
|
594
|
+
orgRuleIdOrName?: string;
|
|
595
|
+
/** New rule name */
|
|
596
|
+
name?: string;
|
|
597
|
+
/** active or disabled */
|
|
598
|
+
status?: string;
|
|
599
|
+
/** Metric query filter */
|
|
600
|
+
query?: string;
|
|
601
|
+
/** Aggregate expression */
|
|
602
|
+
aggregate?: string;
|
|
603
|
+
/** Dataset (errors, transactions, sessions, events, spans, metrics) */
|
|
604
|
+
dataset?: string;
|
|
605
|
+
/** Evaluation window in minutes */
|
|
606
|
+
timeWindow?: string;
|
|
607
|
+
/** Trigger object JSON (repeatable, or pass one JSON array) */
|
|
608
|
+
trigger?: string;
|
|
609
|
+
/** Project slug filter (repeatable or comma-separated) */
|
|
610
|
+
project?: string;
|
|
611
|
+
/** Environment value (pass empty string to clear) */
|
|
612
|
+
environment?: string;
|
|
613
|
+
/** Owner value (pass empty string to clear) */
|
|
614
|
+
owner?: string;
|
|
615
|
+
};
|
|
616
|
+
|
|
444
617
|
export type AuthLoginParams = {
|
|
445
618
|
/** Authenticate using an API token instead of OAuth */
|
|
446
619
|
token?: string;
|
|
@@ -450,11 +623,19 @@ export type AuthLoginParams = {
|
|
|
450
623
|
force?: boolean;
|
|
451
624
|
/** Sentry instance URL to authenticate against (e.g. https://sentry.example.com). Required for self-hosted; defaults to SaaS (https://sentry.io). */
|
|
452
625
|
url?: string;
|
|
626
|
+
/** Request only read-only OAuth scopes (project:read, org:read, event:read, member:read, team:read). Useful for handing tokens to AI agents or CI jobs that should not be able to mutate Sentry state. */
|
|
627
|
+
readOnly?: boolean;
|
|
628
|
+
/** Request specific OAuth scopes (repeatable, comma-separated). E.g. --scope project:read --scope org:read. Overrides the default scope set. */
|
|
629
|
+
scope?: string;
|
|
453
630
|
};
|
|
454
631
|
|
|
455
632
|
export type AuthRefreshParams = {
|
|
456
633
|
/** Force refresh even if token is still valid */
|
|
457
634
|
force?: boolean;
|
|
635
|
+
/** Re-authenticate with read-only OAuth scopes (project:read, org:read, event:read, member:read, team:read) */
|
|
636
|
+
readOnly?: boolean;
|
|
637
|
+
/** Re-authenticate with specific OAuth scopes (repeatable, comma-separated). E.g. --scope project:read --scope org:read */
|
|
638
|
+
scope?: string;
|
|
458
639
|
};
|
|
459
640
|
|
|
460
641
|
export type AuthStatusParams = {
|
|
@@ -504,6 +685,17 @@ export type CliSetupParams = {
|
|
|
504
685
|
quiet?: boolean;
|
|
505
686
|
};
|
|
506
687
|
|
|
688
|
+
export type CliUninstallParams = {
|
|
689
|
+
/** Keep the config directory (~/.sentry) and auth tokens */
|
|
690
|
+
keepConfig?: boolean;
|
|
691
|
+
/** Skip confirmation prompt */
|
|
692
|
+
yes?: boolean;
|
|
693
|
+
/** Force the operation without confirmation */
|
|
694
|
+
force?: boolean;
|
|
695
|
+
/** Show what would happen without making changes */
|
|
696
|
+
dryRun?: boolean;
|
|
697
|
+
};
|
|
698
|
+
|
|
507
699
|
export type CliUpgradeParams = {
|
|
508
700
|
/** Positional argument */
|
|
509
701
|
version?: string;
|
|
@@ -517,6 +709,24 @@ export type CliUpgradeParams = {
|
|
|
517
709
|
method?: string;
|
|
518
710
|
};
|
|
519
711
|
|
|
712
|
+
export type CodeMappingsUploadParams = {
|
|
713
|
+
/** Positional argument */
|
|
714
|
+
path?: string;
|
|
715
|
+
/** Repository name (e.g., owner/repo). Auto-detected from git remote if omitted. */
|
|
716
|
+
repo?: string;
|
|
717
|
+
/** Default branch name. Auto-detected from git remote HEAD if omitted. */
|
|
718
|
+
defaultBranch?: string;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
export type DartSymbolMapUploadParams = {
|
|
722
|
+
/** Positional argument */
|
|
723
|
+
path?: string;
|
|
724
|
+
/** Debug ID (UUID) from the companion native debug file */
|
|
725
|
+
debugId: string;
|
|
726
|
+
/** Validate the file without uploading (dry-run) */
|
|
727
|
+
noUpload?: boolean;
|
|
728
|
+
};
|
|
729
|
+
|
|
520
730
|
export type DashboardListParams = {
|
|
521
731
|
/** Maximum number of dashboards to list */
|
|
522
732
|
limit?: number;
|
|
@@ -660,6 +870,20 @@ export type ProjectViewParams = {
|
|
|
660
870
|
orgProject?: string;
|
|
661
871
|
};
|
|
662
872
|
|
|
873
|
+
export type ProguardUploadParams = {
|
|
874
|
+
/** Force a specific UUID instead of computing from file content (only valid with a single file) */
|
|
875
|
+
uuid?: string;
|
|
876
|
+
/** Compute and print UUIDs without uploading (dry-run) */
|
|
877
|
+
noUpload?: boolean;
|
|
878
|
+
/** Require at least one mapping file (error if none provided) */
|
|
879
|
+
requireOne?: boolean;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
export type ProguardUuidParams = {
|
|
883
|
+
/** Positional argument */
|
|
884
|
+
path?: string;
|
|
885
|
+
};
|
|
886
|
+
|
|
663
887
|
export type ReplayListParams = {
|
|
664
888
|
/** Positional argument */
|
|
665
889
|
orgProject?: string;
|
|
@@ -694,7 +918,14 @@ export type ReleaseListParams = {
|
|
|
694
918
|
cursor?: string;
|
|
695
919
|
};
|
|
696
920
|
|
|
921
|
+
export type ReleaseViewParams = {
|
|
922
|
+
/** Positional argument */
|
|
923
|
+
orgVersion?: string;
|
|
924
|
+
};
|
|
925
|
+
|
|
697
926
|
export type ReleaseCreateParams = {
|
|
927
|
+
/** Positional argument */
|
|
928
|
+
orgVersion?: string;
|
|
698
929
|
/** Associate with project(s), comma-separated */
|
|
699
930
|
project?: string;
|
|
700
931
|
/** Immediately finalize the release (set dateReleased) */
|
|
@@ -708,6 +939,8 @@ export type ReleaseCreateParams = {
|
|
|
708
939
|
};
|
|
709
940
|
|
|
710
941
|
export type ReleaseFinalizeParams = {
|
|
942
|
+
/** Positional argument */
|
|
943
|
+
orgVersion?: string;
|
|
711
944
|
/** Custom release timestamp (ISO 8601). Defaults to now. */
|
|
712
945
|
released?: string;
|
|
713
946
|
/** URL for the release */
|
|
@@ -717,6 +950,8 @@ export type ReleaseFinalizeParams = {
|
|
|
717
950
|
};
|
|
718
951
|
|
|
719
952
|
export type ReleaseDeleteParams = {
|
|
953
|
+
/** Positional argument */
|
|
954
|
+
orgVersion?: string;
|
|
720
955
|
/** Skip confirmation prompt */
|
|
721
956
|
yes?: boolean;
|
|
722
957
|
/** Force the operation without confirmation */
|
|
@@ -725,7 +960,23 @@ export type ReleaseDeleteParams = {
|
|
|
725
960
|
dryRun?: boolean;
|
|
726
961
|
};
|
|
727
962
|
|
|
963
|
+
export type ReleaseArchiveParams = {
|
|
964
|
+
/** Positional argument */
|
|
965
|
+
orgVersion?: string;
|
|
966
|
+
/** Show what would happen without making changes */
|
|
967
|
+
dryRun?: boolean;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
export type ReleaseRestoreParams = {
|
|
971
|
+
/** Positional argument */
|
|
972
|
+
orgVersion?: string;
|
|
973
|
+
/** Show what would happen without making changes */
|
|
974
|
+
dryRun?: boolean;
|
|
975
|
+
};
|
|
976
|
+
|
|
728
977
|
export type ReleaseDeployParams = {
|
|
978
|
+
/** Positional argument */
|
|
979
|
+
orgVersionEnvironmentName?: string;
|
|
729
980
|
/** URL for the deploy */
|
|
730
981
|
url?: string;
|
|
731
982
|
/** Deploy start time (ISO 8601) */
|
|
@@ -738,7 +989,14 @@ export type ReleaseDeployParams = {
|
|
|
738
989
|
dryRun?: boolean;
|
|
739
990
|
};
|
|
740
991
|
|
|
992
|
+
export type ReleaseDeploysParams = {
|
|
993
|
+
/** Positional argument */
|
|
994
|
+
orgVersion?: string;
|
|
995
|
+
};
|
|
996
|
+
|
|
741
997
|
export type ReleaseSetCommitsParams = {
|
|
998
|
+
/** Positional argument */
|
|
999
|
+
orgVersion?: string;
|
|
742
1000
|
/** Auto-discover commits via repository integration (needs local git checkout) */
|
|
743
1001
|
auto?: boolean;
|
|
744
1002
|
/** Read commits from local git history */
|
|
@@ -864,6 +1122,43 @@ export type EventListParams = {
|
|
|
864
1122
|
cursor?: string;
|
|
865
1123
|
};
|
|
866
1124
|
|
|
1125
|
+
export type EventSendParams = {
|
|
1126
|
+
/** DSN to send events to (overrides SENTRY_DSN env var) */
|
|
1127
|
+
dsn?: string;
|
|
1128
|
+
/** Event message (repeat for multi-line) */
|
|
1129
|
+
message?: string;
|
|
1130
|
+
/** Arguments for message template (repeat for multiple) */
|
|
1131
|
+
messageArg?: string;
|
|
1132
|
+
/** Event severity level */
|
|
1133
|
+
level?: "debug" | "info" | "warning" | "error" | "fatal";
|
|
1134
|
+
/** Release version */
|
|
1135
|
+
release?: string;
|
|
1136
|
+
/** Distribution identifier */
|
|
1137
|
+
dist?: string;
|
|
1138
|
+
/** Environment name (e.g. production, staging) */
|
|
1139
|
+
env?: string;
|
|
1140
|
+
/** Platform identifier (default: other) */
|
|
1141
|
+
platform?: string;
|
|
1142
|
+
/** Tag as KEY:VALUE (repeat for multiple) */
|
|
1143
|
+
tag?: string;
|
|
1144
|
+
/** Extra data as KEY:VALUE (repeat for multiple) */
|
|
1145
|
+
extra?: string;
|
|
1146
|
+
/** User info as KEY:VALUE — id, email, username, ip_address, or custom */
|
|
1147
|
+
user?: string;
|
|
1148
|
+
/** Custom fingerprint part (repeat for multiple) */
|
|
1149
|
+
fingerprint?: string;
|
|
1150
|
+
/** Event timestamp (Unix epoch, ISO 8601, or RFC 2822) */
|
|
1151
|
+
timestamp?: string;
|
|
1152
|
+
/** Do not include environment variables in the event */
|
|
1153
|
+
noEnviron?: boolean;
|
|
1154
|
+
/** Path to a log file — last 100 lines are attached as breadcrumbs */
|
|
1155
|
+
logfile?: string;
|
|
1156
|
+
/** Parse 'CATEGORY: message' prefixes from logfile breadcrumbs */
|
|
1157
|
+
withCategories?: boolean;
|
|
1158
|
+
/** Send file contents as-is without parsing */
|
|
1159
|
+
raw?: boolean;
|
|
1160
|
+
};
|
|
1161
|
+
|
|
867
1162
|
export type ExploreParams = {
|
|
868
1163
|
/** Positional argument */
|
|
869
1164
|
target?: string;
|
|
@@ -902,6 +1197,34 @@ export type LogListParams = {
|
|
|
902
1197
|
sort?: string;
|
|
903
1198
|
};
|
|
904
1199
|
|
|
1200
|
+
export type MonitorRunParams = {
|
|
1201
|
+
/** DSN to send check-ins to (overrides SENTRY_DSN env var) */
|
|
1202
|
+
dsn?: string;
|
|
1203
|
+
/** Environment of the monitor */
|
|
1204
|
+
environment?: string;
|
|
1205
|
+
/** Upsert the monitor with this crontab schedule (e.g. '0 * * * *') */
|
|
1206
|
+
schedule?: string;
|
|
1207
|
+
/** Minutes after the expected check-in before it is missed (requires --schedule) */
|
|
1208
|
+
checkInMargin?: string;
|
|
1209
|
+
/** Minutes a check-in may run before timing out (requires --schedule) */
|
|
1210
|
+
maxRuntime?: string;
|
|
1211
|
+
/** Timezone of the schedule, tz database string (requires --schedule) */
|
|
1212
|
+
timezone?: string;
|
|
1213
|
+
/** Consecutive failures before an issue is created (requires --schedule) */
|
|
1214
|
+
failureIssueThreshold?: string;
|
|
1215
|
+
/** Consecutive successes before an issue is resolved (requires --schedule) */
|
|
1216
|
+
recoveryThreshold?: string;
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
export type MonitorListParams = {
|
|
1220
|
+
/** Positional argument */
|
|
1221
|
+
orgProject?: string;
|
|
1222
|
+
/** Maximum number of monitors to list */
|
|
1223
|
+
limit?: number;
|
|
1224
|
+
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
1225
|
+
cursor?: string;
|
|
1226
|
+
};
|
|
1227
|
+
|
|
905
1228
|
export type SourcemapInjectParams = {
|
|
906
1229
|
/** Positional argument */
|
|
907
1230
|
directory?: string;
|
|
@@ -942,6 +1265,17 @@ export type SourcemapUploadParams = {
|
|
|
942
1265
|
allowEmpty?: boolean;
|
|
943
1266
|
};
|
|
944
1267
|
|
|
1268
|
+
export type SourcemapResolveParams = {
|
|
1269
|
+
/** Positional argument */
|
|
1270
|
+
directory?: string;
|
|
1271
|
+
/** Comma-separated file extensions to process (default: .js,.cjs,.mjs) */
|
|
1272
|
+
ext?: string;
|
|
1273
|
+
/** Comma-separated glob patterns to exclude (gitignore-style) */
|
|
1274
|
+
ignore?: string;
|
|
1275
|
+
/** Path to a file with gitignore-style patterns to exclude */
|
|
1276
|
+
ignoreFile?: string;
|
|
1277
|
+
};
|
|
1278
|
+
|
|
945
1279
|
export type SpanListParams = {
|
|
946
1280
|
/** Number of spans (<=1000) */
|
|
947
1281
|
limit?: number;
|
|
@@ -1038,6 +1372,10 @@ export type LocalRunParams = {
|
|
|
1038
1372
|
port?: number;
|
|
1039
1373
|
/** Hostname for the local server (default localhost) */
|
|
1040
1374
|
host?: string;
|
|
1375
|
+
/** Verify SDK sends events, then exit */
|
|
1376
|
+
verify?: boolean;
|
|
1377
|
+
/** Kill the child after N seconds (0 = no timeout; defaults to 30 s in --verify mode) */
|
|
1378
|
+
timeout?: number;
|
|
1041
1379
|
};
|
|
1042
1380
|
|
|
1043
1381
|
export type ApiParams = {
|
|
@@ -1081,6 +1419,32 @@ export type SentrySDK = {
|
|
|
1081
1419
|
api(params?: ApiParams): Promise<unknown>;
|
|
1082
1420
|
/** Browse the Sentry API schema */
|
|
1083
1421
|
schema(params?: SchemaParams, ...positional: string[]): Promise<unknown>;
|
|
1422
|
+
alert: {
|
|
1423
|
+
issues: {
|
|
1424
|
+
/** List issue alert rules */
|
|
1425
|
+
list(params?: AlertIssuesListParams): Promise<unknown>;
|
|
1426
|
+
/** View an issue alert rule */
|
|
1427
|
+
view(params?: AlertIssuesViewParams): Promise<unknown>;
|
|
1428
|
+
/** Create an issue alert rule */
|
|
1429
|
+
create(params: AlertIssuesCreateParams): Promise<unknown>;
|
|
1430
|
+
/** Delete an issue alert rule */
|
|
1431
|
+
delete(params?: AlertIssuesDeleteParams): Promise<unknown>;
|
|
1432
|
+
/** Edit an issue alert rule */
|
|
1433
|
+
edit(params?: AlertIssuesEditParams): Promise<unknown>;
|
|
1434
|
+
};
|
|
1435
|
+
metrics: {
|
|
1436
|
+
/** List metric alert rules */
|
|
1437
|
+
list(params?: AlertMetricsListParams): Promise<unknown>;
|
|
1438
|
+
/** View a metric alert rule */
|
|
1439
|
+
view(params?: AlertMetricsViewParams): Promise<unknown>;
|
|
1440
|
+
/** Create a metric alert rule */
|
|
1441
|
+
create(params: AlertMetricsCreateParams): Promise<unknown>;
|
|
1442
|
+
/** Delete a metric alert rule */
|
|
1443
|
+
delete(params?: AlertMetricsDeleteParams): Promise<unknown>;
|
|
1444
|
+
/** Edit a metric alert rule */
|
|
1445
|
+
edit(params?: AlertMetricsEditParams): Promise<unknown>;
|
|
1446
|
+
};
|
|
1447
|
+
};
|
|
1084
1448
|
auth: {
|
|
1085
1449
|
/** Authenticate with Sentry */
|
|
1086
1450
|
login(params?: AuthLoginParams): Promise<unknown>;
|
|
@@ -1106,9 +1470,19 @@ export type SentrySDK = {
|
|
|
1106
1470
|
import(params?: CliImportParams): Promise<unknown>;
|
|
1107
1471
|
/** Configure shell integration */
|
|
1108
1472
|
setup(params?: CliSetupParams): Promise<unknown>;
|
|
1473
|
+
/** Uninstall Sentry CLI */
|
|
1474
|
+
uninstall(params?: CliUninstallParams): Promise<unknown>;
|
|
1109
1475
|
/** Update the Sentry CLI to the latest version */
|
|
1110
1476
|
upgrade(params?: CliUpgradeParams): Promise<unknown>;
|
|
1111
1477
|
};
|
|
1478
|
+
"code-mappings": {
|
|
1479
|
+
/** Upload code mappings for stack trace linking */
|
|
1480
|
+
upload(params?: CodeMappingsUploadParams): Promise<unknown>;
|
|
1481
|
+
};
|
|
1482
|
+
"dart-symbol-map": {
|
|
1483
|
+
/** Upload a Dart/Flutter symbol map to Sentry */
|
|
1484
|
+
upload(params: DartSymbolMapUploadParams): Promise<unknown>;
|
|
1485
|
+
};
|
|
1112
1486
|
dashboard: {
|
|
1113
1487
|
/** List dashboards */
|
|
1114
1488
|
list(params?: DashboardListParams, ...positional: string[]): Promise<unknown>;
|
|
@@ -1148,6 +1522,12 @@ export type SentrySDK = {
|
|
|
1148
1522
|
/** View details of a project */
|
|
1149
1523
|
view(params?: ProjectViewParams): Promise<unknown>;
|
|
1150
1524
|
};
|
|
1525
|
+
proguard: {
|
|
1526
|
+
/** Upload ProGuard/R8 mapping files to Sentry */
|
|
1527
|
+
upload(params?: ProguardUploadParams, ...positional: string[]): Promise<unknown>;
|
|
1528
|
+
/** Compute the UUID for a ProGuard mapping file */
|
|
1529
|
+
uuid(params?: ProguardUuidParams): Promise<unknown>;
|
|
1530
|
+
};
|
|
1151
1531
|
replay: {
|
|
1152
1532
|
/** List recent Session Replays */
|
|
1153
1533
|
list(params?: ReplayListParams): Promise<ReplayListResult>;
|
|
@@ -1158,19 +1538,23 @@ export type SentrySDK = {
|
|
|
1158
1538
|
/** List releases with adoption and health metrics */
|
|
1159
1539
|
list(params?: ReleaseListParams): Promise<unknown>;
|
|
1160
1540
|
/** View release details with health metrics */
|
|
1161
|
-
view(
|
|
1541
|
+
view(params?: ReleaseViewParams): Promise<unknown>;
|
|
1162
1542
|
/** Create a release */
|
|
1163
|
-
create(params?: ReleaseCreateParams
|
|
1543
|
+
create(params?: ReleaseCreateParams): Promise<unknown>;
|
|
1164
1544
|
/** Finalize a release */
|
|
1165
|
-
finalize(params?: ReleaseFinalizeParams
|
|
1545
|
+
finalize(params?: ReleaseFinalizeParams): Promise<unknown>;
|
|
1166
1546
|
/** Delete a release */
|
|
1167
|
-
delete(params?: ReleaseDeleteParams
|
|
1547
|
+
delete(params?: ReleaseDeleteParams): Promise<unknown>;
|
|
1548
|
+
/** Archive a release */
|
|
1549
|
+
archive(params?: ReleaseArchiveParams): Promise<unknown>;
|
|
1550
|
+
/** Restore an archived release */
|
|
1551
|
+
restore(params?: ReleaseRestoreParams): Promise<unknown>;
|
|
1168
1552
|
/** Create a deploy for a release */
|
|
1169
|
-
deploy(params?: ReleaseDeployParams
|
|
1553
|
+
deploy(params?: ReleaseDeployParams): Promise<unknown>;
|
|
1170
1554
|
/** List deploys for a release */
|
|
1171
|
-
deploys(
|
|
1555
|
+
deploys(params?: ReleaseDeploysParams): Promise<unknown>;
|
|
1172
1556
|
/** Set commits for a release */
|
|
1173
|
-
"set-commits"(params?: ReleaseSetCommitsParams
|
|
1557
|
+
"set-commits"(params?: ReleaseSetCommitsParams): Promise<unknown>;
|
|
1174
1558
|
/** Propose a release version */
|
|
1175
1559
|
"propose-version"(): Promise<unknown>;
|
|
1176
1560
|
};
|
|
@@ -1207,6 +1591,8 @@ export type SentrySDK = {
|
|
|
1207
1591
|
view(params?: EventViewParams, ...positional: string[]): Promise<unknown>;
|
|
1208
1592
|
/** List events for an issue */
|
|
1209
1593
|
list(params?: EventListParams): Promise<EventListResult>;
|
|
1594
|
+
/** Send a Sentry event */
|
|
1595
|
+
send(params?: EventSendParams, ...positional: string[]): Promise<unknown>;
|
|
1210
1596
|
};
|
|
1211
1597
|
log: {
|
|
1212
1598
|
/** List logs from a project */
|
|
@@ -1217,11 +1603,19 @@ export type SentrySDK = {
|
|
|
1217
1603
|
/** View details of one or more log entries */
|
|
1218
1604
|
view(...positional: string[]): Promise<unknown>;
|
|
1219
1605
|
};
|
|
1606
|
+
monitor: {
|
|
1607
|
+
/** Wrap a command with cron monitor check-ins */
|
|
1608
|
+
run(params?: MonitorRunParams, ...positional: string[]): Promise<unknown>;
|
|
1609
|
+
/** List cron monitors */
|
|
1610
|
+
list(params?: MonitorListParams): Promise<MonitorListResult>;
|
|
1611
|
+
};
|
|
1220
1612
|
sourcemap: {
|
|
1221
1613
|
/** Inject debug IDs into JavaScript files and sourcemaps */
|
|
1222
1614
|
inject(params?: SourcemapInjectParams): Promise<unknown>;
|
|
1223
1615
|
/** Upload sourcemaps to Sentry */
|
|
1224
1616
|
upload(params?: SourcemapUploadParams): Promise<unknown>;
|
|
1617
|
+
/** Resolve and report sourcemap linkage for JavaScript files */
|
|
1618
|
+
resolve(params?: SourcemapResolveParams): Promise<unknown>;
|
|
1225
1619
|
};
|
|
1226
1620
|
span: {
|
|
1227
1621
|
/** List spans in a project or trace */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sentry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/getsentry/cli.git"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@clack/prompts": "0.11.0",
|
|
13
13
|
"@hono/node-server": "^2.0.0",
|
|
14
14
|
"@mastra/client-js": "^1.4.0",
|
|
15
|
-
"@sentry/api": "^0.
|
|
15
|
+
"@sentry/api": "^0.180.0",
|
|
16
16
|
"@sentry/core": "10.50.0",
|
|
17
17
|
"@sentry/node-core": "10.50.0",
|
|
18
18
|
"@sentry/sqlish": "^1.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"consola": "^3.4.2",
|
|
32
32
|
"esbuild": "^0.25.0",
|
|
33
33
|
"fast-check": "^4.5.3",
|
|
34
|
-
"fossilize": "^0.
|
|
34
|
+
"fossilize": "^0.10.1",
|
|
35
35
|
"hono": "^4.12.15",
|
|
36
36
|
"http-cache-semantics": "^4.2.0",
|
|
37
37
|
"ignore": "^7.0.5",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"packageManager": "pnpm@10.11.0",
|
|
81
81
|
"pnpm": {
|
|
82
82
|
"patchedDependencies": {
|
|
83
|
-
"@stricli/core": "patches/@stricli%2Fcore@1.2.
|
|
83
|
+
"@stricli/core": "patches/@stricli%2Fcore@1.2.7.patch",
|
|
84
84
|
"@sentry/node-core": "patches/@sentry%2Fnode-core@10.50.0.patch",
|
|
85
85
|
"@sentry/core": "patches/@sentry%2Fcore@10.50.0.patch"
|
|
86
86
|
},
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"tsx": "tsx --import ./script/require-shim.mjs",
|
|
93
|
-
"cli": "
|
|
94
|
-
"dev": "pnpm run generate:schema && pnpm run generate:docs && pnpm run generate:sdk &&
|
|
93
|
+
"cli": "tsx --import ./script/require-shim.mjs src/bin.ts",
|
|
94
|
+
"dev": "pnpm run generate:schema && pnpm run generate:docs && pnpm run generate:sdk && tsx --import ./script/require-shim.mjs src/bin.ts",
|
|
95
95
|
"build": "pnpm run generate:schema && pnpm run generate:docs && pnpm run generate:sdk && pnpm tsx script/build.ts --single",
|
|
96
96
|
"build:all": "pnpm run generate:schema && pnpm run generate:docs && pnpm run generate:sdk && pnpm tsx script/build.ts",
|
|
97
97
|
"bundle": "pnpm run generate:schema && pnpm run generate:docs && pnpm run generate:sdk && pnpm tsx script/bundle.ts",
|