@sentry/junior-vercel 0.301.0 → 0.303.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 +278 -351
- package/dist/testing.d.ts +404 -3
- package/dist/testing.js +1 -10
- package/package.json +9 -12
- package/dist/chunk-QCT7VK3J.js +0 -334
- package/dist/events/deployment.d.ts +0 -37
- package/dist/project.d.ts +0 -3
- package/dist/tools/actions.d.ts +0 -1024
- package/dist/tools/deployment.d.ts +0 -220
- package/dist/webhooks/events.d.ts +0 -14
- package/dist/webhooks/handler.d.ts +0 -6
- package/dist/webhooks/secret.d.ts +0 -2
|
@@ -1,220 +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 function createVercelDeploymentTool(ctx: ToolRegistrationHookContext): 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" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "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
|
-
} | {
|
|
50
|
-
type: "deployment";
|
|
51
|
-
summary?: string | undefined;
|
|
52
|
-
project?: string | undefined;
|
|
53
|
-
environment?: string | undefined;
|
|
54
|
-
revision?: string | undefined;
|
|
55
|
-
branch?: string | undefined;
|
|
56
|
-
} | {
|
|
57
|
-
type: "calendar_event";
|
|
58
|
-
summary?: string | undefined;
|
|
59
|
-
when?: string | undefined;
|
|
60
|
-
attendees?: string[] | undefined;
|
|
61
|
-
} | {
|
|
62
|
-
type: "conversation";
|
|
63
|
-
summary?: string | undefined;
|
|
64
|
-
participants?: string[] | undefined;
|
|
65
|
-
lastActivityAt?: string | undefined;
|
|
66
|
-
} | {
|
|
67
|
-
type: "document";
|
|
68
|
-
summary?: string | undefined;
|
|
69
|
-
owner?: string | undefined;
|
|
70
|
-
modifiedAt?: string | undefined;
|
|
71
|
-
} | {
|
|
72
|
-
type: "message";
|
|
73
|
-
summary?: string | undefined;
|
|
74
|
-
channel?: string | undefined;
|
|
75
|
-
author?: string | undefined;
|
|
76
|
-
sentAt?: string | undefined;
|
|
77
|
-
} | {
|
|
78
|
-
type: "web_page";
|
|
79
|
-
summary?: string | undefined;
|
|
80
|
-
siteName?: string | undefined;
|
|
81
|
-
author?: string | undefined;
|
|
82
|
-
thumbnailUrl?: string | undefined;
|
|
83
|
-
} | {
|
|
84
|
-
type: "person";
|
|
85
|
-
summary?: string | undefined;
|
|
86
|
-
email?: string | undefined;
|
|
87
|
-
slackHandle?: string | undefined;
|
|
88
|
-
githubHandle?: string | undefined;
|
|
89
|
-
avatarUrl?: string | undefined;
|
|
90
|
-
} | undefined;
|
|
91
|
-
}[] | undefined;
|
|
92
|
-
reply?: {
|
|
93
|
-
text: string;
|
|
94
|
-
url?: string | undefined;
|
|
95
|
-
} | undefined;
|
|
96
|
-
truncated?: boolean | undefined;
|
|
97
|
-
continuation?: {
|
|
98
|
-
arguments: Record<string, unknown>;
|
|
99
|
-
reason?: string | undefined;
|
|
100
|
-
} | undefined;
|
|
101
|
-
commit_sha: string | null;
|
|
102
|
-
deployment_target: "preview" | "production" | "staging" | null;
|
|
103
|
-
project_id: string;
|
|
104
|
-
subscribable?: {
|
|
105
|
-
identifier: string;
|
|
106
|
-
label: string;
|
|
107
|
-
match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
|
|
108
|
-
namespace: string;
|
|
109
|
-
suggested_events?: string[] | undefined;
|
|
110
|
-
supported_events: string[];
|
|
111
|
-
type: string;
|
|
112
|
-
} | undefined;
|
|
113
|
-
target: "deployment";
|
|
114
|
-
}, {
|
|
115
|
-
objectAnnotations?: {
|
|
116
|
-
kind: "object";
|
|
117
|
-
key: string;
|
|
118
|
-
label: string;
|
|
119
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
120
|
-
title: string;
|
|
121
|
-
url: string | null;
|
|
122
|
-
description?: string | undefined;
|
|
123
|
-
status?: string | undefined;
|
|
124
|
-
trigger?: string | undefined;
|
|
125
|
-
warning?: string | undefined;
|
|
126
|
-
displayType?: string | undefined;
|
|
127
|
-
sourceUpdatedAt?: string | undefined;
|
|
128
|
-
facts?: {
|
|
129
|
-
type: "code_change";
|
|
130
|
-
summary?: string | undefined;
|
|
131
|
-
author?: string | undefined;
|
|
132
|
-
sourceBranch?: string | undefined;
|
|
133
|
-
targetBranch?: string | undefined;
|
|
134
|
-
reviewers?: string[] | undefined;
|
|
135
|
-
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
136
|
-
checks?: {
|
|
137
|
-
passed: number;
|
|
138
|
-
failed: number;
|
|
139
|
-
pending: number;
|
|
140
|
-
} | undefined;
|
|
141
|
-
mergeable?: boolean | undefined;
|
|
142
|
-
changedFiles?: number | undefined;
|
|
143
|
-
additions?: number | undefined;
|
|
144
|
-
deletions?: number | undefined;
|
|
145
|
-
previewImageUrls?: string[] | undefined;
|
|
146
|
-
} | {
|
|
147
|
-
type: "task";
|
|
148
|
-
summary?: string | undefined;
|
|
149
|
-
assignees?: string[] | undefined;
|
|
150
|
-
priority?: string | undefined;
|
|
151
|
-
project?: string | undefined;
|
|
152
|
-
cycle?: string | undefined;
|
|
153
|
-
dueDate?: string | undefined;
|
|
154
|
-
labels?: string[] | undefined;
|
|
155
|
-
} | {
|
|
156
|
-
type: "deployment";
|
|
157
|
-
summary?: string | undefined;
|
|
158
|
-
project?: string | undefined;
|
|
159
|
-
environment?: string | undefined;
|
|
160
|
-
revision?: string | undefined;
|
|
161
|
-
branch?: string | undefined;
|
|
162
|
-
} | {
|
|
163
|
-
type: "calendar_event";
|
|
164
|
-
summary?: string | undefined;
|
|
165
|
-
when?: string | undefined;
|
|
166
|
-
attendees?: string[] | undefined;
|
|
167
|
-
} | {
|
|
168
|
-
type: "conversation";
|
|
169
|
-
summary?: string | undefined;
|
|
170
|
-
participants?: string[] | undefined;
|
|
171
|
-
lastActivityAt?: string | undefined;
|
|
172
|
-
} | {
|
|
173
|
-
type: "document";
|
|
174
|
-
summary?: string | undefined;
|
|
175
|
-
owner?: string | undefined;
|
|
176
|
-
modifiedAt?: string | undefined;
|
|
177
|
-
} | {
|
|
178
|
-
type: "message";
|
|
179
|
-
summary?: string | undefined;
|
|
180
|
-
channel?: string | undefined;
|
|
181
|
-
author?: string | undefined;
|
|
182
|
-
sentAt?: string | undefined;
|
|
183
|
-
} | {
|
|
184
|
-
type: "web_page";
|
|
185
|
-
summary?: string | undefined;
|
|
186
|
-
siteName?: string | undefined;
|
|
187
|
-
author?: string | undefined;
|
|
188
|
-
thumbnailUrl?: string | undefined;
|
|
189
|
-
} | {
|
|
190
|
-
type: "person";
|
|
191
|
-
summary?: string | undefined;
|
|
192
|
-
email?: string | undefined;
|
|
193
|
-
slackHandle?: string | undefined;
|
|
194
|
-
githubHandle?: string | undefined;
|
|
195
|
-
avatarUrl?: string | undefined;
|
|
196
|
-
} | undefined;
|
|
197
|
-
}[] | undefined;
|
|
198
|
-
reply?: {
|
|
199
|
-
text: string;
|
|
200
|
-
url?: string | undefined;
|
|
201
|
-
} | undefined;
|
|
202
|
-
truncated?: boolean | undefined;
|
|
203
|
-
continuation?: {
|
|
204
|
-
arguments: Record<string, unknown>;
|
|
205
|
-
reason?: string | undefined;
|
|
206
|
-
} | undefined;
|
|
207
|
-
commit_sha: string | null;
|
|
208
|
-
deployment_target: "preview" | "production" | "staging" | null;
|
|
209
|
-
project_id: string;
|
|
210
|
-
subscribable?: {
|
|
211
|
-
identifier: string;
|
|
212
|
-
label: string;
|
|
213
|
-
match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
|
|
214
|
-
namespace: string;
|
|
215
|
-
suggested_events?: string[] | undefined;
|
|
216
|
-
supported_events: string[];
|
|
217
|
-
type: string;
|
|
218
|
-
} | undefined;
|
|
219
|
-
target: "deployment";
|
|
220
|
-
}>;
|
|
@@ -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;
|