@sentry/junior-vercel 0.302.0 → 0.304.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/handler-yrda69iT.js +299 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +274 -345
- package/dist/testing.d.ts +404 -3
- package/dist/testing.js +1 -10
- package/package.json +9 -12
- package/dist/chunk-JY7QEZ73.js +0 -332
- package/dist/events/deployment.d.ts +0 -37
- package/dist/project.d.ts +0 -3
- package/dist/tools/actions.d.ts +0 -1433
- package/dist/tools/deployment.d.ts +0 -302
- package/dist/webhooks/events.d.ts +0 -14
- package/dist/webhooks/handler.d.ts +0 -6
- package/dist/webhooks/secret.d.ts +0 -2
package/dist/testing.d.ts
CHANGED
|
@@ -1,3 +1,404 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { EventInput, EventPublisher, PluginRoute, ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
|
|
2
|
+
/** Resolve and return the resource identity for one Vercel deployment. */
|
|
3
|
+
export declare const vercelDeploymentTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
4
|
+
commit_sha?: string | undefined;
|
|
5
|
+
project: string;
|
|
6
|
+
target?: "preview" | "production" | "staging" | undefined;
|
|
7
|
+
team?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
objectAnnotations?: {
|
|
10
|
+
kind: "object";
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "dashboard" | "deployment" | "document" | "event" | "item" | "message" | "monitor" | "person" | "release" | "task" | "trace" | "web_page";
|
|
14
|
+
title: string;
|
|
15
|
+
url: string | null;
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
status?: string | undefined;
|
|
18
|
+
trigger?: string | undefined;
|
|
19
|
+
warning?: string | undefined;
|
|
20
|
+
displayType?: string | undefined;
|
|
21
|
+
sourceUpdatedAt?: string | undefined;
|
|
22
|
+
facts?: {
|
|
23
|
+
type: "code_change";
|
|
24
|
+
summary?: string | undefined;
|
|
25
|
+
author?: string | undefined;
|
|
26
|
+
sourceBranch?: string | undefined;
|
|
27
|
+
targetBranch?: string | undefined;
|
|
28
|
+
reviewers?: string[] | undefined;
|
|
29
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
30
|
+
checks?: {
|
|
31
|
+
passed: number;
|
|
32
|
+
failed: number;
|
|
33
|
+
pending: number;
|
|
34
|
+
} | undefined;
|
|
35
|
+
mergeable?: boolean | undefined;
|
|
36
|
+
changedFiles?: number | undefined;
|
|
37
|
+
additions?: number | undefined;
|
|
38
|
+
deletions?: number | undefined;
|
|
39
|
+
previewImageUrls?: string[] | undefined;
|
|
40
|
+
} | {
|
|
41
|
+
type: "task";
|
|
42
|
+
summary?: string | undefined;
|
|
43
|
+
assignees?: string[] | undefined;
|
|
44
|
+
priority?: string | undefined;
|
|
45
|
+
project?: string | undefined;
|
|
46
|
+
cycle?: string | undefined;
|
|
47
|
+
dueDate?: string | undefined;
|
|
48
|
+
labels?: string[] | undefined;
|
|
49
|
+
trend?: {
|
|
50
|
+
label: string;
|
|
51
|
+
points: number[];
|
|
52
|
+
} | undefined;
|
|
53
|
+
} | {
|
|
54
|
+
type: "deployment";
|
|
55
|
+
summary?: string | undefined;
|
|
56
|
+
project?: string | undefined;
|
|
57
|
+
environment?: string | undefined;
|
|
58
|
+
revision?: string | undefined;
|
|
59
|
+
branch?: string | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
type: "calendar_event";
|
|
62
|
+
summary?: string | undefined;
|
|
63
|
+
when?: string | undefined;
|
|
64
|
+
attendees?: string[] | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
type: "conversation";
|
|
67
|
+
summary?: string | undefined;
|
|
68
|
+
participants?: string[] | undefined;
|
|
69
|
+
lastActivityAt?: string | undefined;
|
|
70
|
+
} | {
|
|
71
|
+
type: "document";
|
|
72
|
+
summary?: string | undefined;
|
|
73
|
+
owner?: string | undefined;
|
|
74
|
+
modifiedAt?: string | undefined;
|
|
75
|
+
thumbnailUrl?: string | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
type: "message";
|
|
78
|
+
summary?: string | undefined;
|
|
79
|
+
channel?: string | undefined;
|
|
80
|
+
author?: string | undefined;
|
|
81
|
+
sentAt?: string | undefined;
|
|
82
|
+
} | {
|
|
83
|
+
type: "web_page";
|
|
84
|
+
summary?: string | undefined;
|
|
85
|
+
siteName?: string | undefined;
|
|
86
|
+
author?: string | undefined;
|
|
87
|
+
media?: "image" | "video" | undefined;
|
|
88
|
+
thumbnailUrl?: string | undefined;
|
|
89
|
+
} | {
|
|
90
|
+
type: "chart";
|
|
91
|
+
summary?: string | undefined;
|
|
92
|
+
display: "area" | "bar" | "line";
|
|
93
|
+
yAxis: string;
|
|
94
|
+
range: string;
|
|
95
|
+
series: {
|
|
96
|
+
label: string;
|
|
97
|
+
points: number[];
|
|
98
|
+
}[];
|
|
99
|
+
} | {
|
|
100
|
+
type: "event";
|
|
101
|
+
summary?: string | undefined;
|
|
102
|
+
level?: string | undefined;
|
|
103
|
+
project?: string | undefined;
|
|
104
|
+
release?: string | undefined;
|
|
105
|
+
environment?: string | undefined;
|
|
106
|
+
occurredAt?: string | undefined;
|
|
107
|
+
} | {
|
|
108
|
+
type: "release";
|
|
109
|
+
summary?: string | undefined;
|
|
110
|
+
version: string;
|
|
111
|
+
projects: string[];
|
|
112
|
+
newIssues?: number | undefined;
|
|
113
|
+
crashFreeSessions?: number | undefined;
|
|
114
|
+
deployCount?: number | undefined;
|
|
115
|
+
lastDeploy?: {
|
|
116
|
+
environment: string;
|
|
117
|
+
finishedAt?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
releasedAt?: string | undefined;
|
|
120
|
+
} | {
|
|
121
|
+
type: "monitor";
|
|
122
|
+
summary?: string | undefined;
|
|
123
|
+
kind: "cron" | "metric" | "uptime";
|
|
124
|
+
state: "failing" | "ok" | "paused" | "pending";
|
|
125
|
+
project?: string | undefined;
|
|
126
|
+
environment?: string | undefined;
|
|
127
|
+
detail?: string | undefined;
|
|
128
|
+
lastCheckedAt?: string | undefined;
|
|
129
|
+
trend?: {
|
|
130
|
+
label: string;
|
|
131
|
+
points: number[];
|
|
132
|
+
} | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
type: "trace";
|
|
135
|
+
summary?: string | undefined;
|
|
136
|
+
rootOp?: string | undefined;
|
|
137
|
+
rootName?: string | undefined;
|
|
138
|
+
durationMs: number;
|
|
139
|
+
spanCount: number;
|
|
140
|
+
errorCount: number;
|
|
141
|
+
performanceIssueCount: number;
|
|
142
|
+
projects: string[];
|
|
143
|
+
spans: {
|
|
144
|
+
op?: string | undefined;
|
|
145
|
+
name: string;
|
|
146
|
+
startMs: number;
|
|
147
|
+
durationMs: number;
|
|
148
|
+
issue?: boolean | undefined;
|
|
149
|
+
}[];
|
|
150
|
+
} | {
|
|
151
|
+
type: "dashboard";
|
|
152
|
+
summary?: string | undefined;
|
|
153
|
+
widgetCount: number;
|
|
154
|
+
projects: string[];
|
|
155
|
+
environments: string[];
|
|
156
|
+
range: string;
|
|
157
|
+
widgets: {
|
|
158
|
+
title: string;
|
|
159
|
+
display: string;
|
|
160
|
+
}[];
|
|
161
|
+
charts: {
|
|
162
|
+
title: string;
|
|
163
|
+
display: "area" | "bar" | "line";
|
|
164
|
+
series: {
|
|
165
|
+
label: string;
|
|
166
|
+
points: number[];
|
|
167
|
+
}[];
|
|
168
|
+
}[];
|
|
169
|
+
} | {
|
|
170
|
+
type: "person";
|
|
171
|
+
summary?: string | undefined;
|
|
172
|
+
email?: string | undefined;
|
|
173
|
+
slackHandle?: string | undefined;
|
|
174
|
+
githubHandle?: string | undefined;
|
|
175
|
+
avatarUrl?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
reply?: {
|
|
179
|
+
text: string;
|
|
180
|
+
url?: string | undefined;
|
|
181
|
+
} | undefined;
|
|
182
|
+
truncated?: boolean | undefined;
|
|
183
|
+
continuation?: {
|
|
184
|
+
arguments: Record<string, unknown>;
|
|
185
|
+
reason?: string | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
commit_sha: string | null;
|
|
188
|
+
deployment_target: "preview" | "production" | "staging" | null;
|
|
189
|
+
project_id: string;
|
|
190
|
+
subscribable?: {
|
|
191
|
+
identifier: string;
|
|
192
|
+
label: string;
|
|
193
|
+
match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
|
|
194
|
+
namespace: string;
|
|
195
|
+
suggested_events?: string[] | undefined;
|
|
196
|
+
supported_events: string[];
|
|
197
|
+
type: string;
|
|
198
|
+
} | undefined;
|
|
199
|
+
target: "deployment";
|
|
200
|
+
}, {
|
|
201
|
+
objectAnnotations?: {
|
|
202
|
+
kind: "object";
|
|
203
|
+
key: string;
|
|
204
|
+
label: string;
|
|
205
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "dashboard" | "deployment" | "document" | "event" | "item" | "message" | "monitor" | "person" | "release" | "task" | "trace" | "web_page";
|
|
206
|
+
title: string;
|
|
207
|
+
url: string | null;
|
|
208
|
+
description?: string | undefined;
|
|
209
|
+
status?: string | undefined;
|
|
210
|
+
trigger?: string | undefined;
|
|
211
|
+
warning?: string | undefined;
|
|
212
|
+
displayType?: string | undefined;
|
|
213
|
+
sourceUpdatedAt?: string | undefined;
|
|
214
|
+
facts?: {
|
|
215
|
+
type: "code_change";
|
|
216
|
+
summary?: string | undefined;
|
|
217
|
+
author?: string | undefined;
|
|
218
|
+
sourceBranch?: string | undefined;
|
|
219
|
+
targetBranch?: string | undefined;
|
|
220
|
+
reviewers?: string[] | undefined;
|
|
221
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
222
|
+
checks?: {
|
|
223
|
+
passed: number;
|
|
224
|
+
failed: number;
|
|
225
|
+
pending: number;
|
|
226
|
+
} | undefined;
|
|
227
|
+
mergeable?: boolean | undefined;
|
|
228
|
+
changedFiles?: number | undefined;
|
|
229
|
+
additions?: number | undefined;
|
|
230
|
+
deletions?: number | undefined;
|
|
231
|
+
previewImageUrls?: string[] | undefined;
|
|
232
|
+
} | {
|
|
233
|
+
type: "task";
|
|
234
|
+
summary?: string | undefined;
|
|
235
|
+
assignees?: string[] | undefined;
|
|
236
|
+
priority?: string | undefined;
|
|
237
|
+
project?: string | undefined;
|
|
238
|
+
cycle?: string | undefined;
|
|
239
|
+
dueDate?: string | undefined;
|
|
240
|
+
labels?: string[] | undefined;
|
|
241
|
+
trend?: {
|
|
242
|
+
label: string;
|
|
243
|
+
points: number[];
|
|
244
|
+
} | undefined;
|
|
245
|
+
} | {
|
|
246
|
+
type: "deployment";
|
|
247
|
+
summary?: string | undefined;
|
|
248
|
+
project?: string | undefined;
|
|
249
|
+
environment?: string | undefined;
|
|
250
|
+
revision?: string | undefined;
|
|
251
|
+
branch?: string | undefined;
|
|
252
|
+
} | {
|
|
253
|
+
type: "calendar_event";
|
|
254
|
+
summary?: string | undefined;
|
|
255
|
+
when?: string | undefined;
|
|
256
|
+
attendees?: string[] | undefined;
|
|
257
|
+
} | {
|
|
258
|
+
type: "conversation";
|
|
259
|
+
summary?: string | undefined;
|
|
260
|
+
participants?: string[] | undefined;
|
|
261
|
+
lastActivityAt?: string | undefined;
|
|
262
|
+
} | {
|
|
263
|
+
type: "document";
|
|
264
|
+
summary?: string | undefined;
|
|
265
|
+
owner?: string | undefined;
|
|
266
|
+
modifiedAt?: string | undefined;
|
|
267
|
+
thumbnailUrl?: string | undefined;
|
|
268
|
+
} | {
|
|
269
|
+
type: "message";
|
|
270
|
+
summary?: string | undefined;
|
|
271
|
+
channel?: string | undefined;
|
|
272
|
+
author?: string | undefined;
|
|
273
|
+
sentAt?: string | undefined;
|
|
274
|
+
} | {
|
|
275
|
+
type: "web_page";
|
|
276
|
+
summary?: string | undefined;
|
|
277
|
+
siteName?: string | undefined;
|
|
278
|
+
author?: string | undefined;
|
|
279
|
+
media?: "image" | "video" | undefined;
|
|
280
|
+
thumbnailUrl?: string | undefined;
|
|
281
|
+
} | {
|
|
282
|
+
type: "chart";
|
|
283
|
+
summary?: string | undefined;
|
|
284
|
+
display: "area" | "bar" | "line";
|
|
285
|
+
yAxis: string;
|
|
286
|
+
range: string;
|
|
287
|
+
series: {
|
|
288
|
+
label: string;
|
|
289
|
+
points: number[];
|
|
290
|
+
}[];
|
|
291
|
+
} | {
|
|
292
|
+
type: "event";
|
|
293
|
+
summary?: string | undefined;
|
|
294
|
+
level?: string | undefined;
|
|
295
|
+
project?: string | undefined;
|
|
296
|
+
release?: string | undefined;
|
|
297
|
+
environment?: string | undefined;
|
|
298
|
+
occurredAt?: string | undefined;
|
|
299
|
+
} | {
|
|
300
|
+
type: "release";
|
|
301
|
+
summary?: string | undefined;
|
|
302
|
+
version: string;
|
|
303
|
+
projects: string[];
|
|
304
|
+
newIssues?: number | undefined;
|
|
305
|
+
crashFreeSessions?: number | undefined;
|
|
306
|
+
deployCount?: number | undefined;
|
|
307
|
+
lastDeploy?: {
|
|
308
|
+
environment: string;
|
|
309
|
+
finishedAt?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
releasedAt?: string | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
type: "monitor";
|
|
314
|
+
summary?: string | undefined;
|
|
315
|
+
kind: "cron" | "metric" | "uptime";
|
|
316
|
+
state: "failing" | "ok" | "paused" | "pending";
|
|
317
|
+
project?: string | undefined;
|
|
318
|
+
environment?: string | undefined;
|
|
319
|
+
detail?: string | undefined;
|
|
320
|
+
lastCheckedAt?: string | undefined;
|
|
321
|
+
trend?: {
|
|
322
|
+
label: string;
|
|
323
|
+
points: number[];
|
|
324
|
+
} | undefined;
|
|
325
|
+
} | {
|
|
326
|
+
type: "trace";
|
|
327
|
+
summary?: string | undefined;
|
|
328
|
+
rootOp?: string | undefined;
|
|
329
|
+
rootName?: string | undefined;
|
|
330
|
+
durationMs: number;
|
|
331
|
+
spanCount: number;
|
|
332
|
+
errorCount: number;
|
|
333
|
+
performanceIssueCount: number;
|
|
334
|
+
projects: string[];
|
|
335
|
+
spans: {
|
|
336
|
+
op?: string | undefined;
|
|
337
|
+
name: string;
|
|
338
|
+
startMs: number;
|
|
339
|
+
durationMs: number;
|
|
340
|
+
issue?: boolean | undefined;
|
|
341
|
+
}[];
|
|
342
|
+
} | {
|
|
343
|
+
type: "dashboard";
|
|
344
|
+
summary?: string | undefined;
|
|
345
|
+
widgetCount: number;
|
|
346
|
+
projects: string[];
|
|
347
|
+
environments: string[];
|
|
348
|
+
range: string;
|
|
349
|
+
widgets: {
|
|
350
|
+
title: string;
|
|
351
|
+
display: string;
|
|
352
|
+
}[];
|
|
353
|
+
charts: {
|
|
354
|
+
title: string;
|
|
355
|
+
display: "area" | "bar" | "line";
|
|
356
|
+
series: {
|
|
357
|
+
label: string;
|
|
358
|
+
points: number[];
|
|
359
|
+
}[];
|
|
360
|
+
}[];
|
|
361
|
+
} | {
|
|
362
|
+
type: "person";
|
|
363
|
+
summary?: string | undefined;
|
|
364
|
+
email?: string | undefined;
|
|
365
|
+
slackHandle?: string | undefined;
|
|
366
|
+
githubHandle?: string | undefined;
|
|
367
|
+
avatarUrl?: string | undefined;
|
|
368
|
+
} | undefined;
|
|
369
|
+
}[] | undefined;
|
|
370
|
+
reply?: {
|
|
371
|
+
text: string;
|
|
372
|
+
url?: string | undefined;
|
|
373
|
+
} | undefined;
|
|
374
|
+
truncated?: boolean | undefined;
|
|
375
|
+
continuation?: {
|
|
376
|
+
arguments: Record<string, unknown>;
|
|
377
|
+
reason?: string | undefined;
|
|
378
|
+
} | undefined;
|
|
379
|
+
commit_sha: string | null;
|
|
380
|
+
deployment_target: "preview" | "production" | "staging" | null;
|
|
381
|
+
project_id: string;
|
|
382
|
+
subscribable?: {
|
|
383
|
+
identifier: string;
|
|
384
|
+
label: string;
|
|
385
|
+
match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
|
|
386
|
+
namespace: string;
|
|
387
|
+
suggested_events?: string[] | undefined;
|
|
388
|
+
supported_events: string[];
|
|
389
|
+
type: string;
|
|
390
|
+
} | undefined;
|
|
391
|
+
target: "deployment";
|
|
392
|
+
}, ToolRegistrationHookContext>;
|
|
393
|
+
/** Create the public, signed Vercel deployment webhook route. */
|
|
394
|
+
export declare function createVercelWebhookRoute(args: {
|
|
395
|
+
events: EventPublisher;
|
|
396
|
+
webhookSecret(): string | undefined;
|
|
397
|
+
}): PluginRoute;
|
|
398
|
+
/**
|
|
399
|
+
* Normalize one verified Vercel delivery into deployment events. Target,
|
|
400
|
+
* commit, and deployment id come from Vercel, so they go in trusted data.
|
|
401
|
+
*/
|
|
402
|
+
export declare function normalizeVercelEvents(args: {
|
|
403
|
+
body: unknown;
|
|
404
|
+
}): EventInput[];
|
package/dist/testing.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
createVercelWebhookRoute,
|
|
3
|
-
normalizeVercelEvents,
|
|
4
|
-
vercelDeploymentTool
|
|
5
|
-
} from "./chunk-JY7QEZ73.js";
|
|
6
|
-
export {
|
|
7
|
-
createVercelWebhookRoute,
|
|
8
|
-
normalizeVercelEvents,
|
|
9
|
-
vercelDeploymentTool
|
|
10
|
-
};
|
|
1
|
+
export { t as createVercelWebhookRoute, n as normalizeVercelEvents, r as vercelDeploymentTool } from "./handler-yrda69iT.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-vercel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.304.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -26,21 +26,18 @@
|
|
|
26
26
|
"skills"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"@sentry/junior-plugin-api": "0.304.0",
|
|
30
|
+
"zod": "^4.6.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@types/node": "^
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"vitest": "^4.1.12",
|
|
39
|
-
"@sentry/junior-testing": "0.0.0"
|
|
33
|
+
"@sentry/junior-testing": "0.0.0",
|
|
34
|
+
"@types/node": "^24.19.2",
|
|
35
|
+
"tsdown": "0.23.7",
|
|
36
|
+
"typescript": "7.0.2",
|
|
37
|
+
"vitest": "^4.1.12"
|
|
40
38
|
},
|
|
41
39
|
"scripts": {
|
|
42
|
-
"build": "
|
|
43
|
-
"lint": "oxlint --config ../junior/.oxlintrc.json --deny-warnings src tests tsup.config.ts vitest.config.ts",
|
|
40
|
+
"build": "tsdown",
|
|
44
41
|
"test": "vitest run",
|
|
45
42
|
"typecheck": "tsc --noEmit"
|
|
46
43
|
}
|