@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.
@@ -1,302 +0,0 @@
1
- import { type 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" | "deployment" | "document" | "event" | "item" | "message" | "person" | "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: "trace";
109
- summary?: string | undefined;
110
- rootOp?: string | undefined;
111
- rootName?: string | undefined;
112
- durationMs: number;
113
- spanCount: number;
114
- errorCount: number;
115
- performanceIssueCount: number;
116
- projects: string[];
117
- spans: {
118
- op?: string | undefined;
119
- name: string;
120
- startMs: number;
121
- durationMs: number;
122
- issue?: boolean | undefined;
123
- }[];
124
- } | {
125
- type: "person";
126
- summary?: string | undefined;
127
- email?: string | undefined;
128
- slackHandle?: string | undefined;
129
- githubHandle?: string | undefined;
130
- avatarUrl?: string | undefined;
131
- } | undefined;
132
- }[] | undefined;
133
- reply?: {
134
- text: string;
135
- url?: string | undefined;
136
- } | undefined;
137
- truncated?: boolean | undefined;
138
- continuation?: {
139
- arguments: Record<string, unknown>;
140
- reason?: string | undefined;
141
- } | undefined;
142
- commit_sha: string | null;
143
- deployment_target: "preview" | "production" | "staging" | null;
144
- project_id: string;
145
- subscribable?: {
146
- identifier: string;
147
- label: string;
148
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
149
- namespace: string;
150
- suggested_events?: string[] | undefined;
151
- supported_events: string[];
152
- type: string;
153
- } | undefined;
154
- target: "deployment";
155
- }, {
156
- objectAnnotations?: {
157
- kind: "object";
158
- key: string;
159
- label: string;
160
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
161
- title: string;
162
- url: string | null;
163
- description?: string | undefined;
164
- status?: string | undefined;
165
- trigger?: string | undefined;
166
- warning?: string | undefined;
167
- displayType?: string | undefined;
168
- sourceUpdatedAt?: string | undefined;
169
- facts?: {
170
- type: "code_change";
171
- summary?: string | undefined;
172
- author?: string | undefined;
173
- sourceBranch?: string | undefined;
174
- targetBranch?: string | undefined;
175
- reviewers?: string[] | undefined;
176
- review?: "approved" | "changes_requested" | "required" | undefined;
177
- checks?: {
178
- passed: number;
179
- failed: number;
180
- pending: number;
181
- } | undefined;
182
- mergeable?: boolean | undefined;
183
- changedFiles?: number | undefined;
184
- additions?: number | undefined;
185
- deletions?: number | undefined;
186
- previewImageUrls?: string[] | undefined;
187
- } | {
188
- type: "task";
189
- summary?: string | undefined;
190
- assignees?: string[] | undefined;
191
- priority?: string | undefined;
192
- project?: string | undefined;
193
- cycle?: string | undefined;
194
- dueDate?: string | undefined;
195
- labels?: string[] | undefined;
196
- trend?: {
197
- label: string;
198
- points: number[];
199
- } | undefined;
200
- } | {
201
- type: "deployment";
202
- summary?: string | undefined;
203
- project?: string | undefined;
204
- environment?: string | undefined;
205
- revision?: string | undefined;
206
- branch?: string | undefined;
207
- } | {
208
- type: "calendar_event";
209
- summary?: string | undefined;
210
- when?: string | undefined;
211
- attendees?: string[] | undefined;
212
- } | {
213
- type: "conversation";
214
- summary?: string | undefined;
215
- participants?: string[] | undefined;
216
- lastActivityAt?: string | undefined;
217
- } | {
218
- type: "document";
219
- summary?: string | undefined;
220
- owner?: string | undefined;
221
- modifiedAt?: string | undefined;
222
- thumbnailUrl?: string | undefined;
223
- } | {
224
- type: "message";
225
- summary?: string | undefined;
226
- channel?: string | undefined;
227
- author?: string | undefined;
228
- sentAt?: string | undefined;
229
- } | {
230
- type: "web_page";
231
- summary?: string | undefined;
232
- siteName?: string | undefined;
233
- author?: string | undefined;
234
- media?: "image" | "video" | undefined;
235
- thumbnailUrl?: string | undefined;
236
- } | {
237
- type: "chart";
238
- summary?: string | undefined;
239
- display: "area" | "bar" | "line";
240
- yAxis: string;
241
- range: string;
242
- series: {
243
- label: string;
244
- points: number[];
245
- }[];
246
- } | {
247
- type: "event";
248
- summary?: string | undefined;
249
- level?: string | undefined;
250
- project?: string | undefined;
251
- release?: string | undefined;
252
- environment?: string | undefined;
253
- occurredAt?: string | undefined;
254
- } | {
255
- type: "trace";
256
- summary?: string | undefined;
257
- rootOp?: string | undefined;
258
- rootName?: string | undefined;
259
- durationMs: number;
260
- spanCount: number;
261
- errorCount: number;
262
- performanceIssueCount: number;
263
- projects: string[];
264
- spans: {
265
- op?: string | undefined;
266
- name: string;
267
- startMs: number;
268
- durationMs: number;
269
- issue?: boolean | undefined;
270
- }[];
271
- } | {
272
- type: "person";
273
- summary?: string | undefined;
274
- email?: string | undefined;
275
- slackHandle?: string | undefined;
276
- githubHandle?: string | undefined;
277
- avatarUrl?: string | undefined;
278
- } | undefined;
279
- }[] | undefined;
280
- reply?: {
281
- text: string;
282
- url?: string | undefined;
283
- } | undefined;
284
- truncated?: boolean | undefined;
285
- continuation?: {
286
- arguments: Record<string, unknown>;
287
- reason?: string | undefined;
288
- } | undefined;
289
- commit_sha: string | null;
290
- deployment_target: "preview" | "production" | "staging" | null;
291
- project_id: string;
292
- subscribable?: {
293
- identifier: string;
294
- label: string;
295
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
296
- namespace: string;
297
- suggested_events?: string[] | undefined;
298
- supported_events: string[];
299
- type: string;
300
- } | undefined;
301
- target: "deployment";
302
- }, ToolRegistrationHookContext>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Owns Vercel's deployment webhook wire-format boundary.
3
- *
4
- * It validates webhook payloads, ignores unsupported or incomplete deliveries,
5
- * and emits canonical events for project, target, and commit watches.
6
- */
7
- import type { EventInput } from "@sentry/junior-plugin-api";
8
- /**
9
- * Normalize one verified Vercel delivery into deployment events. Target,
10
- * commit, and deployment id come from Vercel, so they go in trusted data.
11
- */
12
- export declare function normalizeVercelEvents(args: {
13
- body: unknown;
14
- }): EventInput[];
@@ -1,6 +0,0 @@
1
- import type { PluginRoute, EventPublisher } from "@sentry/junior-plugin-api";
2
- /** Create the public, signed Vercel deployment webhook route. */
3
- export declare function createVercelWebhookRoute(args: {
4
- events: EventPublisher;
5
- webhookSecret(): string | undefined;
6
- }): PluginRoute;
@@ -1,2 +0,0 @@
1
- /** Read the normalized secret shared by plugin enablement and webhook ingress. */
2
- export declare function vercelWebhookSecret(): string | undefined;