sentry 0.35.0 → 0.36.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 +1615 -999
- package/dist/index.d.cts +368 -13
- package/package.json +5 -5
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 = {
|
|
@@ -660,6 +841,20 @@ export type ProjectViewParams = {
|
|
|
660
841
|
orgProject?: string;
|
|
661
842
|
};
|
|
662
843
|
|
|
844
|
+
export type ProguardUploadParams = {
|
|
845
|
+
/** Force a specific UUID instead of computing from file content (only valid with a single file) */
|
|
846
|
+
uuid?: string;
|
|
847
|
+
/** Compute and print UUIDs without uploading (dry-run) */
|
|
848
|
+
noUpload?: boolean;
|
|
849
|
+
/** Require at least one mapping file (error if none provided) */
|
|
850
|
+
requireOne?: boolean;
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
export type ProguardUuidParams = {
|
|
854
|
+
/** Positional argument */
|
|
855
|
+
path?: string;
|
|
856
|
+
};
|
|
857
|
+
|
|
663
858
|
export type ReplayListParams = {
|
|
664
859
|
/** Positional argument */
|
|
665
860
|
orgProject?: string;
|
|
@@ -694,7 +889,14 @@ export type ReleaseListParams = {
|
|
|
694
889
|
cursor?: string;
|
|
695
890
|
};
|
|
696
891
|
|
|
892
|
+
export type ReleaseViewParams = {
|
|
893
|
+
/** Positional argument */
|
|
894
|
+
orgVersion?: string;
|
|
895
|
+
};
|
|
896
|
+
|
|
697
897
|
export type ReleaseCreateParams = {
|
|
898
|
+
/** Positional argument */
|
|
899
|
+
orgVersion?: string;
|
|
698
900
|
/** Associate with project(s), comma-separated */
|
|
699
901
|
project?: string;
|
|
700
902
|
/** Immediately finalize the release (set dateReleased) */
|
|
@@ -708,6 +910,8 @@ export type ReleaseCreateParams = {
|
|
|
708
910
|
};
|
|
709
911
|
|
|
710
912
|
export type ReleaseFinalizeParams = {
|
|
913
|
+
/** Positional argument */
|
|
914
|
+
orgVersion?: string;
|
|
711
915
|
/** Custom release timestamp (ISO 8601). Defaults to now. */
|
|
712
916
|
released?: string;
|
|
713
917
|
/** URL for the release */
|
|
@@ -717,6 +921,8 @@ export type ReleaseFinalizeParams = {
|
|
|
717
921
|
};
|
|
718
922
|
|
|
719
923
|
export type ReleaseDeleteParams = {
|
|
924
|
+
/** Positional argument */
|
|
925
|
+
orgVersion?: string;
|
|
720
926
|
/** Skip confirmation prompt */
|
|
721
927
|
yes?: boolean;
|
|
722
928
|
/** Force the operation without confirmation */
|
|
@@ -725,7 +931,23 @@ export type ReleaseDeleteParams = {
|
|
|
725
931
|
dryRun?: boolean;
|
|
726
932
|
};
|
|
727
933
|
|
|
934
|
+
export type ReleaseArchiveParams = {
|
|
935
|
+
/** Positional argument */
|
|
936
|
+
orgVersion?: string;
|
|
937
|
+
/** Show what would happen without making changes */
|
|
938
|
+
dryRun?: boolean;
|
|
939
|
+
};
|
|
940
|
+
|
|
941
|
+
export type ReleaseRestoreParams = {
|
|
942
|
+
/** Positional argument */
|
|
943
|
+
orgVersion?: string;
|
|
944
|
+
/** Show what would happen without making changes */
|
|
945
|
+
dryRun?: boolean;
|
|
946
|
+
};
|
|
947
|
+
|
|
728
948
|
export type ReleaseDeployParams = {
|
|
949
|
+
/** Positional argument */
|
|
950
|
+
orgVersionEnvironmentName?: string;
|
|
729
951
|
/** URL for the deploy */
|
|
730
952
|
url?: string;
|
|
731
953
|
/** Deploy start time (ISO 8601) */
|
|
@@ -738,7 +960,14 @@ export type ReleaseDeployParams = {
|
|
|
738
960
|
dryRun?: boolean;
|
|
739
961
|
};
|
|
740
962
|
|
|
963
|
+
export type ReleaseDeploysParams = {
|
|
964
|
+
/** Positional argument */
|
|
965
|
+
orgVersion?: string;
|
|
966
|
+
};
|
|
967
|
+
|
|
741
968
|
export type ReleaseSetCommitsParams = {
|
|
969
|
+
/** Positional argument */
|
|
970
|
+
orgVersion?: string;
|
|
742
971
|
/** Auto-discover commits via repository integration (needs local git checkout) */
|
|
743
972
|
auto?: boolean;
|
|
744
973
|
/** Read commits from local git history */
|
|
@@ -864,6 +1093,43 @@ export type EventListParams = {
|
|
|
864
1093
|
cursor?: string;
|
|
865
1094
|
};
|
|
866
1095
|
|
|
1096
|
+
export type EventSendParams = {
|
|
1097
|
+
/** DSN to send events to (overrides SENTRY_DSN env var) */
|
|
1098
|
+
dsn?: string;
|
|
1099
|
+
/** Event message (repeat for multi-line) */
|
|
1100
|
+
message?: string;
|
|
1101
|
+
/** Arguments for message template (repeat for multiple) */
|
|
1102
|
+
messageArg?: string;
|
|
1103
|
+
/** Event severity level */
|
|
1104
|
+
level?: "debug" | "info" | "warning" | "error" | "fatal";
|
|
1105
|
+
/** Release version */
|
|
1106
|
+
release?: string;
|
|
1107
|
+
/** Distribution identifier */
|
|
1108
|
+
dist?: string;
|
|
1109
|
+
/** Environment name (e.g. production, staging) */
|
|
1110
|
+
env?: string;
|
|
1111
|
+
/** Platform identifier (default: other) */
|
|
1112
|
+
platform?: string;
|
|
1113
|
+
/** Tag as KEY:VALUE (repeat for multiple) */
|
|
1114
|
+
tag?: string;
|
|
1115
|
+
/** Extra data as KEY:VALUE (repeat for multiple) */
|
|
1116
|
+
extra?: string;
|
|
1117
|
+
/** User info as KEY:VALUE — id, email, username, ip_address, or custom */
|
|
1118
|
+
user?: string;
|
|
1119
|
+
/** Custom fingerprint part (repeat for multiple) */
|
|
1120
|
+
fingerprint?: string;
|
|
1121
|
+
/** Event timestamp (Unix epoch, ISO 8601, or RFC 2822) */
|
|
1122
|
+
timestamp?: string;
|
|
1123
|
+
/** Do not include environment variables in the event */
|
|
1124
|
+
noEnviron?: boolean;
|
|
1125
|
+
/** Path to a log file — last 100 lines are attached as breadcrumbs */
|
|
1126
|
+
logfile?: string;
|
|
1127
|
+
/** Parse 'CATEGORY: message' prefixes from logfile breadcrumbs */
|
|
1128
|
+
withCategories?: boolean;
|
|
1129
|
+
/** Send file contents as-is without parsing */
|
|
1130
|
+
raw?: boolean;
|
|
1131
|
+
};
|
|
1132
|
+
|
|
867
1133
|
export type ExploreParams = {
|
|
868
1134
|
/** Positional argument */
|
|
869
1135
|
target?: string;
|
|
@@ -902,6 +1168,34 @@ export type LogListParams = {
|
|
|
902
1168
|
sort?: string;
|
|
903
1169
|
};
|
|
904
1170
|
|
|
1171
|
+
export type MonitorRunParams = {
|
|
1172
|
+
/** DSN to send check-ins to (overrides SENTRY_DSN env var) */
|
|
1173
|
+
dsn?: string;
|
|
1174
|
+
/** Environment of the monitor */
|
|
1175
|
+
environment?: string;
|
|
1176
|
+
/** Upsert the monitor with this crontab schedule (e.g. '0 * * * *') */
|
|
1177
|
+
schedule?: string;
|
|
1178
|
+
/** Minutes after the expected check-in before it is missed (requires --schedule) */
|
|
1179
|
+
checkInMargin?: string;
|
|
1180
|
+
/** Minutes a check-in may run before timing out (requires --schedule) */
|
|
1181
|
+
maxRuntime?: string;
|
|
1182
|
+
/** Timezone of the schedule, tz database string (requires --schedule) */
|
|
1183
|
+
timezone?: string;
|
|
1184
|
+
/** Consecutive failures before an issue is created (requires --schedule) */
|
|
1185
|
+
failureIssueThreshold?: string;
|
|
1186
|
+
/** Consecutive successes before an issue is resolved (requires --schedule) */
|
|
1187
|
+
recoveryThreshold?: string;
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
export type MonitorListParams = {
|
|
1191
|
+
/** Positional argument */
|
|
1192
|
+
orgProject?: string;
|
|
1193
|
+
/** Maximum number of monitors to list */
|
|
1194
|
+
limit?: number;
|
|
1195
|
+
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
1196
|
+
cursor?: string;
|
|
1197
|
+
};
|
|
1198
|
+
|
|
905
1199
|
export type SourcemapInjectParams = {
|
|
906
1200
|
/** Positional argument */
|
|
907
1201
|
directory?: string;
|
|
@@ -942,6 +1236,17 @@ export type SourcemapUploadParams = {
|
|
|
942
1236
|
allowEmpty?: boolean;
|
|
943
1237
|
};
|
|
944
1238
|
|
|
1239
|
+
export type SourcemapResolveParams = {
|
|
1240
|
+
/** Positional argument */
|
|
1241
|
+
directory?: string;
|
|
1242
|
+
/** Comma-separated file extensions to process (default: .js,.cjs,.mjs) */
|
|
1243
|
+
ext?: string;
|
|
1244
|
+
/** Comma-separated glob patterns to exclude (gitignore-style) */
|
|
1245
|
+
ignore?: string;
|
|
1246
|
+
/** Path to a file with gitignore-style patterns to exclude */
|
|
1247
|
+
ignoreFile?: string;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
945
1250
|
export type SpanListParams = {
|
|
946
1251
|
/** Number of spans (<=1000) */
|
|
947
1252
|
limit?: number;
|
|
@@ -1038,6 +1343,10 @@ export type LocalRunParams = {
|
|
|
1038
1343
|
port?: number;
|
|
1039
1344
|
/** Hostname for the local server (default localhost) */
|
|
1040
1345
|
host?: string;
|
|
1346
|
+
/** Verify SDK sends events, then exit */
|
|
1347
|
+
verify?: boolean;
|
|
1348
|
+
/** Kill the child after N seconds (0 = no timeout; defaults to 30 s in --verify mode) */
|
|
1349
|
+
timeout?: number;
|
|
1041
1350
|
};
|
|
1042
1351
|
|
|
1043
1352
|
export type ApiParams = {
|
|
@@ -1081,6 +1390,32 @@ export type SentrySDK = {
|
|
|
1081
1390
|
api(params?: ApiParams): Promise<unknown>;
|
|
1082
1391
|
/** Browse the Sentry API schema */
|
|
1083
1392
|
schema(params?: SchemaParams, ...positional: string[]): Promise<unknown>;
|
|
1393
|
+
alert: {
|
|
1394
|
+
issues: {
|
|
1395
|
+
/** List issue alert rules */
|
|
1396
|
+
list(params?: AlertIssuesListParams): Promise<unknown>;
|
|
1397
|
+
/** View an issue alert rule */
|
|
1398
|
+
view(params?: AlertIssuesViewParams): Promise<unknown>;
|
|
1399
|
+
/** Create an issue alert rule */
|
|
1400
|
+
create(params: AlertIssuesCreateParams): Promise<unknown>;
|
|
1401
|
+
/** Delete an issue alert rule */
|
|
1402
|
+
delete(params?: AlertIssuesDeleteParams): Promise<unknown>;
|
|
1403
|
+
/** Edit an issue alert rule */
|
|
1404
|
+
edit(params?: AlertIssuesEditParams): Promise<unknown>;
|
|
1405
|
+
};
|
|
1406
|
+
metrics: {
|
|
1407
|
+
/** List metric alert rules */
|
|
1408
|
+
list(params?: AlertMetricsListParams): Promise<unknown>;
|
|
1409
|
+
/** View a metric alert rule */
|
|
1410
|
+
view(params?: AlertMetricsViewParams): Promise<unknown>;
|
|
1411
|
+
/** Create a metric alert rule */
|
|
1412
|
+
create(params: AlertMetricsCreateParams): Promise<unknown>;
|
|
1413
|
+
/** Delete a metric alert rule */
|
|
1414
|
+
delete(params?: AlertMetricsDeleteParams): Promise<unknown>;
|
|
1415
|
+
/** Edit a metric alert rule */
|
|
1416
|
+
edit(params?: AlertMetricsEditParams): Promise<unknown>;
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1084
1419
|
auth: {
|
|
1085
1420
|
/** Authenticate with Sentry */
|
|
1086
1421
|
login(params?: AuthLoginParams): Promise<unknown>;
|
|
@@ -1148,6 +1483,12 @@ export type SentrySDK = {
|
|
|
1148
1483
|
/** View details of a project */
|
|
1149
1484
|
view(params?: ProjectViewParams): Promise<unknown>;
|
|
1150
1485
|
};
|
|
1486
|
+
proguard: {
|
|
1487
|
+
/** Upload ProGuard/R8 mapping files to Sentry */
|
|
1488
|
+
upload(params?: ProguardUploadParams, ...positional: string[]): Promise<unknown>;
|
|
1489
|
+
/** Compute the UUID for a ProGuard mapping file */
|
|
1490
|
+
uuid(params?: ProguardUuidParams): Promise<unknown>;
|
|
1491
|
+
};
|
|
1151
1492
|
replay: {
|
|
1152
1493
|
/** List recent Session Replays */
|
|
1153
1494
|
list(params?: ReplayListParams): Promise<ReplayListResult>;
|
|
@@ -1158,19 +1499,23 @@ export type SentrySDK = {
|
|
|
1158
1499
|
/** List releases with adoption and health metrics */
|
|
1159
1500
|
list(params?: ReleaseListParams): Promise<unknown>;
|
|
1160
1501
|
/** View release details with health metrics */
|
|
1161
|
-
view(
|
|
1502
|
+
view(params?: ReleaseViewParams): Promise<unknown>;
|
|
1162
1503
|
/** Create a release */
|
|
1163
|
-
create(params?: ReleaseCreateParams
|
|
1504
|
+
create(params?: ReleaseCreateParams): Promise<unknown>;
|
|
1164
1505
|
/** Finalize a release */
|
|
1165
|
-
finalize(params?: ReleaseFinalizeParams
|
|
1506
|
+
finalize(params?: ReleaseFinalizeParams): Promise<unknown>;
|
|
1166
1507
|
/** Delete a release */
|
|
1167
|
-
delete(params?: ReleaseDeleteParams
|
|
1508
|
+
delete(params?: ReleaseDeleteParams): Promise<unknown>;
|
|
1509
|
+
/** Archive a release */
|
|
1510
|
+
archive(params?: ReleaseArchiveParams): Promise<unknown>;
|
|
1511
|
+
/** Restore an archived release */
|
|
1512
|
+
restore(params?: ReleaseRestoreParams): Promise<unknown>;
|
|
1168
1513
|
/** Create a deploy for a release */
|
|
1169
|
-
deploy(params?: ReleaseDeployParams
|
|
1514
|
+
deploy(params?: ReleaseDeployParams): Promise<unknown>;
|
|
1170
1515
|
/** List deploys for a release */
|
|
1171
|
-
deploys(
|
|
1516
|
+
deploys(params?: ReleaseDeploysParams): Promise<unknown>;
|
|
1172
1517
|
/** Set commits for a release */
|
|
1173
|
-
"set-commits"(params?: ReleaseSetCommitsParams
|
|
1518
|
+
"set-commits"(params?: ReleaseSetCommitsParams): Promise<unknown>;
|
|
1174
1519
|
/** Propose a release version */
|
|
1175
1520
|
"propose-version"(): Promise<unknown>;
|
|
1176
1521
|
};
|
|
@@ -1207,6 +1552,8 @@ export type SentrySDK = {
|
|
|
1207
1552
|
view(params?: EventViewParams, ...positional: string[]): Promise<unknown>;
|
|
1208
1553
|
/** List events for an issue */
|
|
1209
1554
|
list(params?: EventListParams): Promise<EventListResult>;
|
|
1555
|
+
/** Send a Sentry event */
|
|
1556
|
+
send(params?: EventSendParams, ...positional: string[]): Promise<unknown>;
|
|
1210
1557
|
};
|
|
1211
1558
|
log: {
|
|
1212
1559
|
/** List logs from a project */
|
|
@@ -1217,11 +1564,19 @@ export type SentrySDK = {
|
|
|
1217
1564
|
/** View details of one or more log entries */
|
|
1218
1565
|
view(...positional: string[]): Promise<unknown>;
|
|
1219
1566
|
};
|
|
1567
|
+
monitor: {
|
|
1568
|
+
/** Wrap a command with cron monitor check-ins */
|
|
1569
|
+
run(params?: MonitorRunParams, ...positional: string[]): Promise<unknown>;
|
|
1570
|
+
/** List cron monitors */
|
|
1571
|
+
list(params?: MonitorListParams): Promise<MonitorListResult>;
|
|
1572
|
+
};
|
|
1220
1573
|
sourcemap: {
|
|
1221
1574
|
/** Inject debug IDs into JavaScript files and sourcemaps */
|
|
1222
1575
|
inject(params?: SourcemapInjectParams): Promise<unknown>;
|
|
1223
1576
|
/** Upload sourcemaps to Sentry */
|
|
1224
1577
|
upload(params?: SourcemapUploadParams): Promise<unknown>;
|
|
1578
|
+
/** Resolve and report sourcemap linkage for JavaScript files */
|
|
1579
|
+
resolve(params?: SourcemapResolveParams): Promise<unknown>;
|
|
1225
1580
|
};
|
|
1226
1581
|
span: {
|
|
1227
1582
|
/** 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.36.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",
|
|
@@ -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",
|