sentry 0.20.0 → 0.21.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 +32 -0
- package/dist/bin.cjs +1 -1996
- package/dist/index.cjs +2089 -0
- package/dist/index.d.cts +652 -0
- package/package.json +26 -12
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
export type SentryOptions = {
|
|
2
|
+
/** Auth token. Auto-filled from SENTRY_AUTH_TOKEN / SENTRY_TOKEN env vars. */
|
|
3
|
+
token?: string;
|
|
4
|
+
/** Sentry instance URL for self-hosted. Defaults to sentry.io. */
|
|
5
|
+
url?: string;
|
|
6
|
+
/** Default organization slug. */
|
|
7
|
+
org?: string;
|
|
8
|
+
/** Default project slug. */
|
|
9
|
+
project?: string;
|
|
10
|
+
/** Return human-readable text instead of parsed JSON. */
|
|
11
|
+
text?: boolean;
|
|
12
|
+
/** Working directory (affects DSN detection, project root). Defaults to process.cwd(). */
|
|
13
|
+
cwd?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare class SentryError extends Error {
|
|
17
|
+
readonly exitCode: number;
|
|
18
|
+
readonly stderr: string;
|
|
19
|
+
constructor(message: string, exitCode: number, stderr: string);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare function createSentrySDK(options?: SentryOptions): SentrySDK & {
|
|
23
|
+
/** Run an arbitrary CLI command (escape hatch). */
|
|
24
|
+
run(...args: string[]): Promise<unknown>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default createSentrySDK;
|
|
28
|
+
|
|
29
|
+
// Auto-generated by script/generate-sdk.ts — DO NOT EDIT
|
|
30
|
+
// Run `bun run generate:sdk` to regenerate.
|
|
31
|
+
|
|
32
|
+
// --- Return types (derived from __jsonSchema) ---
|
|
33
|
+
|
|
34
|
+
export type RepoListResult = {
|
|
35
|
+
/** Repository ID */
|
|
36
|
+
id: string;
|
|
37
|
+
/** Repository name */
|
|
38
|
+
name: string;
|
|
39
|
+
/** Repository URL */
|
|
40
|
+
url: string | null;
|
|
41
|
+
/** Version control provider */
|
|
42
|
+
provider: Record<string, unknown>;
|
|
43
|
+
/** Integration status */
|
|
44
|
+
status: string;
|
|
45
|
+
/** Creation date (ISO 8601) */
|
|
46
|
+
dateCreated?: string;
|
|
47
|
+
/** Integration ID */
|
|
48
|
+
integrationId?: string;
|
|
49
|
+
/** External slug (e.g. org/repo) */
|
|
50
|
+
externalSlug?: string | null;
|
|
51
|
+
/** External ID */
|
|
52
|
+
externalId?: string | null;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type TeamListResult = {
|
|
56
|
+
/** Team ID */
|
|
57
|
+
id: string;
|
|
58
|
+
/** Team slug */
|
|
59
|
+
slug: string;
|
|
60
|
+
/** Team name */
|
|
61
|
+
name: string;
|
|
62
|
+
/** Creation date (ISO 8601) */
|
|
63
|
+
dateCreated?: string;
|
|
64
|
+
/** Whether you are a member */
|
|
65
|
+
isMember?: boolean;
|
|
66
|
+
/** Your role in the team */
|
|
67
|
+
teamRole?: string | null;
|
|
68
|
+
/** Number of members */
|
|
69
|
+
memberCount?: number;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type IssueListResult = {
|
|
73
|
+
/** Numeric issue ID */
|
|
74
|
+
id: string;
|
|
75
|
+
/** Human-readable short ID (e.g. PROJ-ABC) */
|
|
76
|
+
shortId: string;
|
|
77
|
+
/** Issue title */
|
|
78
|
+
title: string;
|
|
79
|
+
/** Culprit string */
|
|
80
|
+
culprit?: string;
|
|
81
|
+
/** Total event count */
|
|
82
|
+
count?: string;
|
|
83
|
+
/** Number of affected users */
|
|
84
|
+
userCount?: number;
|
|
85
|
+
/** First occurrence (ISO 8601) */
|
|
86
|
+
firstSeen?: string | null;
|
|
87
|
+
/** Most recent occurrence (ISO 8601) */
|
|
88
|
+
lastSeen?: string | null;
|
|
89
|
+
/** Severity level */
|
|
90
|
+
level?: string;
|
|
91
|
+
/** Issue status */
|
|
92
|
+
status?: string;
|
|
93
|
+
/** Triage priority */
|
|
94
|
+
priority?: string;
|
|
95
|
+
/** Platform */
|
|
96
|
+
platform?: string;
|
|
97
|
+
/** URL to the issue in Sentry */
|
|
98
|
+
permalink?: string;
|
|
99
|
+
/** Project info */
|
|
100
|
+
project?: Record<string, unknown>;
|
|
101
|
+
/** Issue metadata */
|
|
102
|
+
metadata?: Record<string, unknown>;
|
|
103
|
+
/** Assigned user or team */
|
|
104
|
+
assignedTo?: unknown | null;
|
|
105
|
+
/** Issue substatus */
|
|
106
|
+
substatus?: string | null;
|
|
107
|
+
/** Whether the issue is unhandled */
|
|
108
|
+
isUnhandled?: boolean;
|
|
109
|
+
/** Seer AI fixability score (0-1) */
|
|
110
|
+
seerFixabilityScore?: number | null;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export type LogListResult = {
|
|
114
|
+
/** Unique log entry ID */
|
|
115
|
+
"sentry.item_id": string;
|
|
116
|
+
/** Log timestamp (ISO 8601) */
|
|
117
|
+
timestamp: string;
|
|
118
|
+
/** Nanosecond-precision timestamp */
|
|
119
|
+
timestamp_precise: number;
|
|
120
|
+
/** Log message */
|
|
121
|
+
message?: string | null;
|
|
122
|
+
/** Severity level (error, warning, info, debug) */
|
|
123
|
+
severity?: string | null;
|
|
124
|
+
/** Trace ID for correlation */
|
|
125
|
+
trace?: string | null;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export type SpanListResult = {
|
|
129
|
+
/** Span ID */
|
|
130
|
+
id: string;
|
|
131
|
+
/** Parent span ID */
|
|
132
|
+
parent_span?: string | null;
|
|
133
|
+
/** Span operation (e.g. http.client, db) */
|
|
134
|
+
"span.op"?: string | null;
|
|
135
|
+
/** Span description */
|
|
136
|
+
description?: string | null;
|
|
137
|
+
/** Duration (ms) */
|
|
138
|
+
"span.duration"?: number | null;
|
|
139
|
+
/** Timestamp (ISO 8601) */
|
|
140
|
+
timestamp: string;
|
|
141
|
+
/** Project slug */
|
|
142
|
+
project: string;
|
|
143
|
+
/** Transaction name */
|
|
144
|
+
transaction?: string | null;
|
|
145
|
+
/** Trace ID */
|
|
146
|
+
trace: string;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export type TraceListResult = {
|
|
150
|
+
/** Trace ID */
|
|
151
|
+
trace: string;
|
|
152
|
+
/** Event ID */
|
|
153
|
+
id: string;
|
|
154
|
+
/** Transaction name */
|
|
155
|
+
transaction: string;
|
|
156
|
+
/** Timestamp (ISO 8601) */
|
|
157
|
+
timestamp: string;
|
|
158
|
+
/** Duration (ms) */
|
|
159
|
+
"transaction.duration": number;
|
|
160
|
+
/** Project slug */
|
|
161
|
+
project: string;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export type TrialListResult = {
|
|
165
|
+
/** Trial category (e.g. seerUsers, seerAutofix) */
|
|
166
|
+
category: string;
|
|
167
|
+
/** Start date (ISO 8601) */
|
|
168
|
+
startDate: string | null;
|
|
169
|
+
/** End date (ISO 8601) */
|
|
170
|
+
endDate: string | null;
|
|
171
|
+
/** Reason code */
|
|
172
|
+
reasonCode: number;
|
|
173
|
+
/** Whether the trial has started */
|
|
174
|
+
isStarted: boolean;
|
|
175
|
+
/** Trial duration in days */
|
|
176
|
+
lengthDays: number | null;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// --- Parameter types ---
|
|
180
|
+
|
|
181
|
+
export type AuthLoginParams = {
|
|
182
|
+
/** Authenticate using an API token instead of OAuth */
|
|
183
|
+
token?: string;
|
|
184
|
+
/** Timeout for OAuth flow in seconds (default: 900) */
|
|
185
|
+
timeout?: number;
|
|
186
|
+
/** Re-authenticate without prompting */
|
|
187
|
+
force?: boolean;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export type AuthRefreshParams = {
|
|
191
|
+
/** Force refresh even if token is still valid */
|
|
192
|
+
force?: boolean;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export type AuthStatusParams = {
|
|
196
|
+
/** Show the stored token (masked by default) */
|
|
197
|
+
showToken?: boolean;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export type CliFixParams = {
|
|
201
|
+
/** Show what would be fixed without making changes */
|
|
202
|
+
dryRun?: boolean;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export type CliSetupParams = {
|
|
206
|
+
/** Install the binary from a temp location to the system path */
|
|
207
|
+
install?: boolean;
|
|
208
|
+
/** Installation method (curl, npm, pnpm, bun, yarn) */
|
|
209
|
+
method?: string;
|
|
210
|
+
/** Release channel to persist (stable or nightly) */
|
|
211
|
+
channel?: string;
|
|
212
|
+
/** Skip PATH modification */
|
|
213
|
+
noModifyPath?: boolean;
|
|
214
|
+
/** Skip shell completion installation */
|
|
215
|
+
noCompletions?: boolean;
|
|
216
|
+
/** Skip agent skill installation for AI coding assistants */
|
|
217
|
+
noAgentSkills?: boolean;
|
|
218
|
+
/** Suppress output (for scripted usage) */
|
|
219
|
+
quiet?: boolean;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export type CliUpgradeParams = {
|
|
223
|
+
/** Positional argument */
|
|
224
|
+
version?: string;
|
|
225
|
+
/** Check for updates without installing */
|
|
226
|
+
check?: boolean;
|
|
227
|
+
/** Force upgrade even if already on the latest version */
|
|
228
|
+
force?: boolean;
|
|
229
|
+
/** Upgrade using only cached version info and patches (no network) */
|
|
230
|
+
offline?: boolean;
|
|
231
|
+
/** Installation method to use (curl, brew, npm, pnpm, bun, yarn) */
|
|
232
|
+
method?: string;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export type DashboardListParams = {
|
|
236
|
+
/** Maximum number of dashboards to list */
|
|
237
|
+
limit?: number;
|
|
238
|
+
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
239
|
+
cursor?: string;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export type DashboardViewParams = {
|
|
243
|
+
/** Time period override (e.g., "24h", "7d", "14d") */
|
|
244
|
+
period?: string;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
export type DashboardWidgetAddParams = {
|
|
248
|
+
/** Display type (big_number, line, area, bar, table, stacked_area, top_n, text, categorical_bar, details, wheel, rage_and_dead_clicks, server_tree, agents_traces_table) */
|
|
249
|
+
display: string;
|
|
250
|
+
/** Widget dataset (default: spans) */
|
|
251
|
+
dataset?: string;
|
|
252
|
+
/** Aggregate expression (e.g. count, p95:span.duration) */
|
|
253
|
+
query?: string;
|
|
254
|
+
/** Search conditions filter (e.g. is:unresolved) */
|
|
255
|
+
where?: string;
|
|
256
|
+
/** Group-by column (repeatable) */
|
|
257
|
+
groupBy?: string;
|
|
258
|
+
/** Order by (prefix - for desc, e.g. -count) */
|
|
259
|
+
sort?: string;
|
|
260
|
+
/** Result limit */
|
|
261
|
+
limit?: string;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export type DashboardWidgetEditParams = {
|
|
265
|
+
/** Widget index (0-based) */
|
|
266
|
+
index?: string;
|
|
267
|
+
/** Widget title to match */
|
|
268
|
+
title?: string;
|
|
269
|
+
/** New widget title */
|
|
270
|
+
newTitle?: string;
|
|
271
|
+
/** Display type (big_number, line, area, bar, table, stacked_area, top_n, text, categorical_bar, details, wheel, rage_and_dead_clicks, server_tree, agents_traces_table) */
|
|
272
|
+
display?: string;
|
|
273
|
+
/** Widget dataset (default: spans) */
|
|
274
|
+
dataset?: string;
|
|
275
|
+
/** Aggregate expression (e.g. count, p95:span.duration) */
|
|
276
|
+
query?: string;
|
|
277
|
+
/** Search conditions filter (e.g. is:unresolved) */
|
|
278
|
+
where?: string;
|
|
279
|
+
/** Group-by column (repeatable) */
|
|
280
|
+
groupBy?: string;
|
|
281
|
+
/** Order by (prefix - for desc, e.g. -count) */
|
|
282
|
+
sort?: string;
|
|
283
|
+
/** Result limit */
|
|
284
|
+
limit?: string;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
export type DashboardWidgetDeleteParams = {
|
|
288
|
+
/** Widget index (0-based) */
|
|
289
|
+
index?: string;
|
|
290
|
+
/** Widget title to match */
|
|
291
|
+
title?: string;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
export type OrgListParams = {
|
|
295
|
+
/** Maximum number of organizations to list */
|
|
296
|
+
limit?: number;
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
export type OrgViewParams = {
|
|
300
|
+
/** Positional argument */
|
|
301
|
+
org?: string;
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
export type ProjectCreateParams = {
|
|
305
|
+
/** Positional argument */
|
|
306
|
+
namePlatform?: string;
|
|
307
|
+
/** Team to create the project under */
|
|
308
|
+
team?: string;
|
|
309
|
+
/** Validate inputs and show what would be created without creating it */
|
|
310
|
+
dryRun?: boolean;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
export type ProjectDeleteParams = {
|
|
314
|
+
/** Positional argument */
|
|
315
|
+
orgProject?: string;
|
|
316
|
+
/** Skip confirmation prompt */
|
|
317
|
+
yes?: boolean;
|
|
318
|
+
/** Force deletion without confirmation */
|
|
319
|
+
force?: boolean;
|
|
320
|
+
/** Validate and show what would be deleted without deleting */
|
|
321
|
+
dryRun?: boolean;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
export type ProjectListParams = {
|
|
325
|
+
/** Positional argument */
|
|
326
|
+
orgProject?: string;
|
|
327
|
+
/** Maximum number of projects to list */
|
|
328
|
+
limit?: number;
|
|
329
|
+
/** Filter by platform (e.g., javascript, python) */
|
|
330
|
+
platform?: string;
|
|
331
|
+
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
332
|
+
cursor?: string;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
export type ProjectViewParams = {
|
|
336
|
+
/** Positional argument */
|
|
337
|
+
orgProject?: string;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
export type RepoListParams = {
|
|
341
|
+
/** Positional argument */
|
|
342
|
+
orgProject?: string;
|
|
343
|
+
/** Maximum number of repositories to list */
|
|
344
|
+
limit?: number;
|
|
345
|
+
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
346
|
+
cursor?: string;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
export type TeamListParams = {
|
|
350
|
+
/** Positional argument */
|
|
351
|
+
orgProject?: string;
|
|
352
|
+
/** Maximum number of teams to list */
|
|
353
|
+
limit?: number;
|
|
354
|
+
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
355
|
+
cursor?: string;
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
export type IssueListParams = {
|
|
359
|
+
/** Positional argument */
|
|
360
|
+
orgProject?: string;
|
|
361
|
+
/** Search query (Sentry search syntax) */
|
|
362
|
+
query?: string;
|
|
363
|
+
/** Maximum number of issues to list */
|
|
364
|
+
limit?: number;
|
|
365
|
+
/** Sort by: date, new, freq, user */
|
|
366
|
+
sort?: string;
|
|
367
|
+
/** Time period for issue activity (e.g. 24h, 14d, 90d) */
|
|
368
|
+
period?: string;
|
|
369
|
+
/** Pagination cursor (use "next" for next page, "prev" for previous) */
|
|
370
|
+
cursor?: string;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
export type IssueExplainParams = {
|
|
374
|
+
/** Positional argument */
|
|
375
|
+
issue?: string;
|
|
376
|
+
/** Force new analysis even if one exists */
|
|
377
|
+
force?: boolean;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
export type IssuePlanParams = {
|
|
381
|
+
/** Positional argument */
|
|
382
|
+
issue?: string;
|
|
383
|
+
/** Root cause ID to plan (required if multiple causes exist) */
|
|
384
|
+
cause?: string;
|
|
385
|
+
/** Force new plan even if one exists */
|
|
386
|
+
force?: boolean;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
export type IssueViewParams = {
|
|
390
|
+
/** Positional argument */
|
|
391
|
+
issue?: string;
|
|
392
|
+
/** Span tree depth limit (number, "all" for unlimited, "no" to disable) */
|
|
393
|
+
spans?: number;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
export type EventViewParams = {
|
|
397
|
+
/** Span tree depth limit (number, "all" for unlimited, "no" to disable) */
|
|
398
|
+
spans?: number;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
export type LogListParams = {
|
|
402
|
+
/** Number of log entries (1-1000) */
|
|
403
|
+
limit?: number;
|
|
404
|
+
/** Filter query (Sentry search syntax) */
|
|
405
|
+
query?: string;
|
|
406
|
+
/** Time period (e.g., "30d", "14d", "24h"). Default: 30d (project mode), 14d (trace mode) */
|
|
407
|
+
period?: string;
|
|
408
|
+
/** Sort order: "newest" (default) or "oldest" */
|
|
409
|
+
sort?: string;
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
export type SourcemapInjectParams = {
|
|
413
|
+
/** Positional argument */
|
|
414
|
+
directory?: string;
|
|
415
|
+
/** Comma-separated file extensions to process (default: .js,.cjs,.mjs) */
|
|
416
|
+
ext?: string;
|
|
417
|
+
/** Show what would be modified without writing */
|
|
418
|
+
dryRun?: boolean;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
export type SourcemapUploadParams = {
|
|
422
|
+
/** Positional argument */
|
|
423
|
+
directory?: string;
|
|
424
|
+
/** Release version to associate with the upload */
|
|
425
|
+
release?: string;
|
|
426
|
+
/** URL prefix for uploaded files (default: ~/) */
|
|
427
|
+
urlPrefix?: string;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
export type SpanListParams = {
|
|
431
|
+
/** Number of spans (<=1000) */
|
|
432
|
+
limit?: number;
|
|
433
|
+
/** Filter spans (e.g., "op:db", "duration:>100ms", "project:backend") */
|
|
434
|
+
query?: string;
|
|
435
|
+
/** Sort order: date, duration */
|
|
436
|
+
sort?: string;
|
|
437
|
+
/** Time period (e.g., "1h", "24h", "7d", "30d") */
|
|
438
|
+
period?: string;
|
|
439
|
+
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
440
|
+
cursor?: string;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export type SpanViewParams = {
|
|
444
|
+
/** Span tree depth limit (number, "all" for unlimited, "no" to disable) */
|
|
445
|
+
spans?: number;
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
export type TraceListParams = {
|
|
449
|
+
/** Positional argument */
|
|
450
|
+
orgProject?: string;
|
|
451
|
+
/** Number of traces (1-1000) */
|
|
452
|
+
limit?: number;
|
|
453
|
+
/** Search query (Sentry search syntax) */
|
|
454
|
+
query?: string;
|
|
455
|
+
/** Sort by: date, duration */
|
|
456
|
+
sort?: string;
|
|
457
|
+
/** Time period (e.g., "1h", "24h", "7d", "30d") */
|
|
458
|
+
period?: string;
|
|
459
|
+
/** Navigate pages: "next", "prev", "first" (or raw cursor string) */
|
|
460
|
+
cursor?: string;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
export type TraceViewParams = {
|
|
464
|
+
/** Span tree depth limit (number, "all" for unlimited, "no" to disable) */
|
|
465
|
+
spans?: number;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
export type TraceLogsParams = {
|
|
469
|
+
/** Time period to search (e.g., "14d", "7d", "24h"). Default: 14d */
|
|
470
|
+
period?: string;
|
|
471
|
+
/** Number of log entries (<=1000) */
|
|
472
|
+
limit?: number;
|
|
473
|
+
/** Additional filter query (Sentry search syntax) */
|
|
474
|
+
query?: string;
|
|
475
|
+
/** Sort order: "newest" (default) or "oldest" */
|
|
476
|
+
sort?: string;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
export type TrialListParams = {
|
|
480
|
+
/** Positional argument */
|
|
481
|
+
org?: string;
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
export type TrialStartParams = {
|
|
485
|
+
/** Positional argument */
|
|
486
|
+
nameOrg?: string;
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
export type InitParams = {
|
|
490
|
+
/** Positional argument */
|
|
491
|
+
targetDirectory?: string;
|
|
492
|
+
/** Non-interactive mode (accept defaults) */
|
|
493
|
+
yes?: boolean;
|
|
494
|
+
/** Preview changes without applying them */
|
|
495
|
+
dryRun?: boolean;
|
|
496
|
+
/** Features to enable: errors,tracing,logs,replay,metrics,profiling,sourcemaps,crons,ai-monitoring,user-feedback */
|
|
497
|
+
features?: string;
|
|
498
|
+
/** Team slug to create the project under */
|
|
499
|
+
team?: string;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
export type ApiParams = {
|
|
503
|
+
/** Positional argument */
|
|
504
|
+
endpoint?: string;
|
|
505
|
+
/** The HTTP method for the request */
|
|
506
|
+
method?: string;
|
|
507
|
+
/** Inline JSON body for the request (like curl -d) */
|
|
508
|
+
data?: string;
|
|
509
|
+
/** Add a typed parameter (key=value, key[sub]=value, key[]=value) */
|
|
510
|
+
field?: string;
|
|
511
|
+
/** Add a string parameter without JSON parsing */
|
|
512
|
+
rawField?: string;
|
|
513
|
+
/** Add a HTTP request header in key:value format */
|
|
514
|
+
header?: string;
|
|
515
|
+
/** The file to use as body for the HTTP request (use "-" to read from standard input) */
|
|
516
|
+
input?: string;
|
|
517
|
+
/** Do not print the response body */
|
|
518
|
+
silent?: boolean;
|
|
519
|
+
/** Show the resolved request without sending it */
|
|
520
|
+
dryRun?: boolean;
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export type SchemaParams = {
|
|
524
|
+
/** Show all endpoints in a flat list */
|
|
525
|
+
all?: boolean;
|
|
526
|
+
/** Search endpoints by keyword */
|
|
527
|
+
search?: string;
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
// --- SDK type ---
|
|
531
|
+
|
|
532
|
+
export type SentrySDK = {
|
|
533
|
+
/** Display help for a command */
|
|
534
|
+
help(...positional: string[]): Promise<unknown>;
|
|
535
|
+
/** Initialize Sentry in your project (experimental) */
|
|
536
|
+
init(params?: InitParams): Promise<unknown>;
|
|
537
|
+
/** Make an authenticated API request */
|
|
538
|
+
api(params?: ApiParams): Promise<unknown>;
|
|
539
|
+
/** Browse the Sentry API schema */
|
|
540
|
+
schema(params?: SchemaParams, ...positional: string[]): Promise<unknown>;
|
|
541
|
+
auth: {
|
|
542
|
+
/** Authenticate with Sentry */
|
|
543
|
+
login(params?: AuthLoginParams): Promise<unknown>;
|
|
544
|
+
/** Log out of Sentry */
|
|
545
|
+
logout(): Promise<unknown>;
|
|
546
|
+
/** Refresh your authentication token */
|
|
547
|
+
refresh(params?: AuthRefreshParams): Promise<unknown>;
|
|
548
|
+
/** View authentication status */
|
|
549
|
+
status(params?: AuthStatusParams): Promise<unknown>;
|
|
550
|
+
/** Print the stored authentication token */
|
|
551
|
+
token(): Promise<unknown>;
|
|
552
|
+
/** Show the currently authenticated user */
|
|
553
|
+
whoami(): Promise<unknown>;
|
|
554
|
+
};
|
|
555
|
+
cli: {
|
|
556
|
+
/** Send feedback about the CLI */
|
|
557
|
+
feedback(...positional: string[]): Promise<unknown>;
|
|
558
|
+
/** Diagnose and repair CLI database issues */
|
|
559
|
+
fix(params?: CliFixParams): Promise<unknown>;
|
|
560
|
+
/** Configure shell integration */
|
|
561
|
+
setup(params?: CliSetupParams): Promise<unknown>;
|
|
562
|
+
/** Update the Sentry CLI to the latest version */
|
|
563
|
+
upgrade(params?: CliUpgradeParams): Promise<unknown>;
|
|
564
|
+
};
|
|
565
|
+
dashboard: {
|
|
566
|
+
/** List dashboards */
|
|
567
|
+
list(params?: DashboardListParams, ...positional: string[]): Promise<unknown>;
|
|
568
|
+
/** View a dashboard */
|
|
569
|
+
view(params?: DashboardViewParams, ...positional: string[]): Promise<unknown>;
|
|
570
|
+
/** Create a dashboard */
|
|
571
|
+
create(...positional: string[]): Promise<unknown>;
|
|
572
|
+
widget: {
|
|
573
|
+
/** Add a widget to a dashboard */
|
|
574
|
+
add(params: DashboardWidgetAddParams, ...positional: string[]): Promise<unknown>;
|
|
575
|
+
/** Edit a widget in a dashboard */
|
|
576
|
+
edit(params?: DashboardWidgetEditParams, ...positional: string[]): Promise<unknown>;
|
|
577
|
+
/** Delete a widget from a dashboard */
|
|
578
|
+
delete(params?: DashboardWidgetDeleteParams, ...positional: string[]): Promise<unknown>;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
org: {
|
|
582
|
+
/** List organizations */
|
|
583
|
+
list(params?: OrgListParams): Promise<unknown>;
|
|
584
|
+
/** View details of an organization */
|
|
585
|
+
view(params?: OrgViewParams): Promise<unknown>;
|
|
586
|
+
};
|
|
587
|
+
project: {
|
|
588
|
+
/** Create a new project */
|
|
589
|
+
create(params?: ProjectCreateParams): Promise<unknown>;
|
|
590
|
+
/** Delete a project */
|
|
591
|
+
delete(params?: ProjectDeleteParams): Promise<unknown>;
|
|
592
|
+
/** List projects */
|
|
593
|
+
list(params?: ProjectListParams): Promise<unknown>;
|
|
594
|
+
/** View details of a project */
|
|
595
|
+
view(params?: ProjectViewParams): Promise<unknown>;
|
|
596
|
+
};
|
|
597
|
+
repo: {
|
|
598
|
+
/** List repositories */
|
|
599
|
+
list(params?: RepoListParams): Promise<RepoListResult>;
|
|
600
|
+
};
|
|
601
|
+
team: {
|
|
602
|
+
/** List teams */
|
|
603
|
+
list(params?: TeamListParams): Promise<TeamListResult>;
|
|
604
|
+
};
|
|
605
|
+
issue: {
|
|
606
|
+
/** List issues in a project */
|
|
607
|
+
list(params?: IssueListParams): Promise<IssueListResult>;
|
|
608
|
+
/** Analyze an issue's root cause using Seer AI */
|
|
609
|
+
explain(params?: IssueExplainParams): Promise<unknown>;
|
|
610
|
+
/** Generate a solution plan using Seer AI */
|
|
611
|
+
plan(params?: IssuePlanParams): Promise<unknown>;
|
|
612
|
+
/** View details of a specific issue */
|
|
613
|
+
view(params?: IssueViewParams): Promise<unknown>;
|
|
614
|
+
};
|
|
615
|
+
event: {
|
|
616
|
+
/** View details of a specific event */
|
|
617
|
+
view(params?: EventViewParams, ...positional: string[]): Promise<unknown>;
|
|
618
|
+
};
|
|
619
|
+
log: {
|
|
620
|
+
/** List logs from a project */
|
|
621
|
+
list(params?: LogListParams, ...positional: string[]): Promise<LogListResult>;
|
|
622
|
+
/** View details of one or more log entries */
|
|
623
|
+
view(...positional: string[]): Promise<unknown>;
|
|
624
|
+
};
|
|
625
|
+
sourcemap: {
|
|
626
|
+
/** Inject debug IDs into JavaScript files and sourcemaps */
|
|
627
|
+
inject(params?: SourcemapInjectParams): Promise<unknown>;
|
|
628
|
+
/** Upload sourcemaps to Sentry */
|
|
629
|
+
upload(params?: SourcemapUploadParams): Promise<unknown>;
|
|
630
|
+
};
|
|
631
|
+
span: {
|
|
632
|
+
/** List spans in a project or trace */
|
|
633
|
+
list(params?: SpanListParams, ...positional: string[]): Promise<SpanListResult>;
|
|
634
|
+
/** View details of specific spans */
|
|
635
|
+
view(params?: SpanViewParams, ...positional: string[]): Promise<unknown>;
|
|
636
|
+
};
|
|
637
|
+
trace: {
|
|
638
|
+
/** List recent traces in a project */
|
|
639
|
+
list(params?: TraceListParams): Promise<TraceListResult>;
|
|
640
|
+
/** View details of a specific trace */
|
|
641
|
+
view(params?: TraceViewParams, ...positional: string[]): Promise<unknown>;
|
|
642
|
+
/** View logs associated with a trace */
|
|
643
|
+
logs(params?: TraceLogsParams, ...positional: string[]): Promise<unknown>;
|
|
644
|
+
};
|
|
645
|
+
trial: {
|
|
646
|
+
/** List product trials */
|
|
647
|
+
list(params?: TrialListParams): Promise<TrialListResult>;
|
|
648
|
+
/** Start a product trial */
|
|
649
|
+
start(params?: TrialStartParams): Promise<unknown>;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
|