@tool-bridge/server 0.1.0 → 0.3.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/airtable-V6446SVY.js +792 -0
- package/dist/alt_text_generator_ai-HV7JZPDT.js +72 -0
- package/dist/amap-TTTVB6WS.js +755 -0
- package/dist/anthropic-JH3RA363.js +224 -0
- package/dist/apify-ETNN7ITU.js +262 -0
- package/dist/brave_search-3DDR2MMB.js +322 -0
- package/dist/chunk-CSJEZHQO.js +252 -0
- package/dist/chunk-JLTYA2B3.js +20121 -0
- package/dist/chunk-K7FVSFUX.js +333 -0
- package/dist/{chunk-6SMIQ6QU.js → chunk-KGYJEEBI.js} +2770 -21574
- package/dist/circleci-MX3TX3HC.js +409 -0
- package/dist/clerk-MRPORVF4.js +1036 -0
- package/dist/cloudflare_dns-OWP7DD7L.js +605 -0
- package/dist/cohere-GPECP66S.js +197 -0
- package/dist/confluence-BN7LZ6BC.js +436 -0
- package/dist/convertapi-SBEOFOFQ.js +161 -0
- package/dist/currencyapi-P2YY7Y7P.js +306 -0
- package/dist/deepseek-MWB3NYIN.js +205 -0
- package/dist/docker_hub-3JSCIGQ3.js +946 -0
- package/dist/dropbox-RFIBDAXO.js +1308 -0
- package/dist/dub-YVP57ELQ.js +706 -0
- package/dist/e2b-NFSUHTZR.js +305 -0
- package/dist/exa-KTDY6IV3.js +360 -0
- package/dist/fal_ai-OCUENLNQ.js +405 -0
- package/dist/feishu-5CWBQ7E5.js +225 -0
- package/dist/feishu_custom_bot-ZJR22OK6.js +240 -0
- package/dist/figma-YULGANSA.js +798 -0
- package/dist/firehydrant-2V6YSYAP.js +573 -0
- package/dist/fixer-LTCDB3CJ.js +171 -0
- package/dist/fly-IXPKMAML.js +478 -0
- package/dist/front-KRFB4M5X.js +379 -0
- package/dist/geocodio-VVURKYHQ.js +236 -0
- package/dist/ghost-6J2RIOUB.js +341 -0
- package/dist/github-5Z6KQRYH.js +5410 -0
- package/dist/gmail-KU4NZ7VA.js +1894 -0
- package/dist/googlecalendar-X44DFFXG.js +2539 -0
- package/dist/googledocs-WSGLPKSF.js +1322 -0
- package/dist/grafana-4PKSSDXY.js +817 -0
- package/dist/graphhopper-DF65ZNGK.js +336 -0
- package/dist/index.d.ts +181 -2
- package/dist/index.js +2 -1
- package/dist/ip2proxy-UCAQ5P2J.js +118 -0
- package/dist/ipgeolocation_io-UX6FCA2S.js +333 -0
- package/dist/ipqualityscore-MKTRXIZJ.js +287 -0
- package/dist/jina_ai-MRHPCSV5.js +119 -0
- package/dist/jira-EG7ZPOIW.js +627 -0
- package/dist/langsmith-FNO3RCOZ.js +597 -0
- package/dist/lemlist-SN6BJHSG.js +298 -0
- package/dist/linear-H3VU4PSD.js +2163 -0
- package/dist/logsnag-OY2JJT2H.js +167 -0
- package/dist/main.js +246 -2
- package/dist/mattermost-C5SQ7PGD.js +320 -0
- package/dist/mem0-LMLE5BFC.js +567 -0
- package/dist/memos-UWFAMBZC.js +781 -0
- package/dist/metabase-SRYDSDJ6.js +365 -0
- package/dist/mistral_ai-YNIJ7VDM.js +1195 -0
- package/dist/mother_duck-CPGOFEXE.js +322 -0
- package/dist/ngrok-CDJFBSOM.js +375 -0
- package/dist/notes-DIVFH3P3.js +109 -0
- package/dist/notion-HGDKS4HK.js +945 -0
- package/dist/open_exchange_rates-COHHYJDD.js +216 -0
- package/dist/openai-4TRT66GW.js +795 -0
- package/dist/opengraph_io-YKVW4PXI.js +377 -0
- package/dist/openrouter-6CV7B7V5.js +444 -0
- package/dist/outline-YWDUK5F7.js +604 -0
- package/dist/paddle-MEU7HWDZ.js +464 -0
- package/dist/perplexity-MRQUDBIC.js +238 -0
- package/dist/pinecone-JI7X2TAF.js +599 -0
- package/dist/pipedrive-6JQPAW23.js +453 -0
- package/dist/polar-7BF56CMC.js +400 -0
- package/dist/posthog-YPU5ADEN.js +3462 -0
- package/dist/postmark-BEU5OFKU.js +441 -0
- package/dist/prerender-UT5GOOZH.js +180 -0
- package/dist/pubmed-3SGOE24Q.js +1052 -0
- package/dist/railway-CEK4GLRQ.js +452 -0
- package/dist/readwise-DXQUQU67.js +482 -0
- package/dist/render-7TGAU5AW.js +473 -0
- package/dist/replicate-VICFSQ5A.js +347 -0
- package/dist/resend-3E76WK3O.js +100 -0
- package/dist/rootly-36GY46BY.js +345 -0
- package/dist/scrapfly-VDVUYAHX.js +289 -0
- package/dist/scrapingbee-3KTPMAVY.js +247 -0
- package/dist/screenshot_fyi-LKG62C3J.js +116 -0
- package/dist/semantic_scholar-4WREECYO.js +626 -0
- package/dist/sentry-HUQTGXOV.js +1139 -0
- package/dist/shodan-SGRKU4KS.js +303 -0
- package/dist/shopify-YCZ4L5HT.js +620 -0
- package/dist/stripe-OEBKMELB.js +583 -0
- package/dist/supabase-I3DBY7L4.js +937 -0
- package/dist/tavily-B2YHCNRD.js +349 -0
- package/dist/telegram-2VYJELZX.js +1773 -0
- package/dist/telnyx-HHXD3CXL.js +237 -0
- package/dist/todoist-PHFDEEIS.js +672 -0
- package/dist/trello-WUSAK6YN.js +1091 -0
- package/dist/turso-FW56U2B3.js +432 -0
- package/dist/twilio-M5JI7XHA.js +321 -0
- package/dist/umami-HAYODRC4.js +411 -0
- package/dist/unsplash-EDPTNEHJ.js +364 -0
- package/dist/upstash_redis-GC2CLIWD.js +299 -0
- package/dist/uptimerobot-XMSNYLIT.js +481 -0
- package/dist/v2ex-KU4ECD65.js +672 -0
- package/dist/vercel-THPCEFHW.js +1096 -0
- package/dist/wolfram_alpha_api-WHHTH4GU.js +212 -0
- package/dist/wordpress-O6TQEQNF.js +822 -0
- package/dist/workos-A3VHHWI3.js +681 -0
- package/dist/zhihu-BJAI64YJ.js +273 -0
- package/package.json +5 -4
|
@@ -0,0 +1,1096 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createProviderPlugin,
|
|
3
|
+
guardedFetch,
|
|
4
|
+
requireApiKey,
|
|
5
|
+
upstreamError
|
|
6
|
+
} from "./chunk-CSJEZHQO.js";
|
|
7
|
+
import "./chunk-K7FVSFUX.js";
|
|
8
|
+
import {
|
|
9
|
+
TBError,
|
|
10
|
+
external_exports
|
|
11
|
+
} from "./chunk-JLTYA2B3.js";
|
|
12
|
+
import "./chunk-MLKGABMK.js";
|
|
13
|
+
|
|
14
|
+
// ../plugins/src/vercel/api.ts
|
|
15
|
+
var SERVICE = "vercel";
|
|
16
|
+
var API_BASE = "https://api.vercel.com";
|
|
17
|
+
function text(value) {
|
|
18
|
+
if (typeof value !== "string") return void 0;
|
|
19
|
+
const trimmed = value.trim();
|
|
20
|
+
return trimmed === "" ? void 0 : trimmed;
|
|
21
|
+
}
|
|
22
|
+
function num(value) {
|
|
23
|
+
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
24
|
+
}
|
|
25
|
+
function bool(value) {
|
|
26
|
+
return typeof value === "boolean" ? value : void 0;
|
|
27
|
+
}
|
|
28
|
+
function record(value) {
|
|
29
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
|
|
30
|
+
}
|
|
31
|
+
function compact(input) {
|
|
32
|
+
return Object.fromEntries(
|
|
33
|
+
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function stringArray(value) {
|
|
37
|
+
return Array.isArray(value) ? value.filter((item) => typeof item === "string") : void 0;
|
|
38
|
+
}
|
|
39
|
+
function flag(value) {
|
|
40
|
+
return value === void 0 ? void 0 : value ? "1" : "0";
|
|
41
|
+
}
|
|
42
|
+
function contractError(label) {
|
|
43
|
+
return new TBError("unavailable", `Vercel \u54CD\u5E94\u7F3A\u5C11\u6216\u7C7B\u578B\u4E0D\u7B26:${label}`, { retryable: true });
|
|
44
|
+
}
|
|
45
|
+
function requiredText(value, label) {
|
|
46
|
+
const result = text(value);
|
|
47
|
+
if (result === void 0) throw contractError(label);
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
50
|
+
function requiredNumber(value, label) {
|
|
51
|
+
const result = num(value);
|
|
52
|
+
if (result === void 0) throw contractError(label);
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
function requiredRecord(value, label) {
|
|
56
|
+
const result = record(value);
|
|
57
|
+
if (result === void 0) throw contractError(label);
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
function arrayPayload(payload, key) {
|
|
61
|
+
if (Array.isArray(payload)) return payload;
|
|
62
|
+
const value = record(payload)?.[key];
|
|
63
|
+
return Array.isArray(value) ? value : [];
|
|
64
|
+
}
|
|
65
|
+
async function request(ctx, input) {
|
|
66
|
+
const url = new URL(`${API_BASE}${input.path}`);
|
|
67
|
+
for (const [key, value] of Object.entries(input.query ?? {})) {
|
|
68
|
+
if (value === void 0 || value === "") continue;
|
|
69
|
+
url.searchParams.set(key, String(value));
|
|
70
|
+
}
|
|
71
|
+
const headers = {
|
|
72
|
+
authorization: `Bearer ${requireApiKey(ctx, SERVICE)}`
|
|
73
|
+
};
|
|
74
|
+
if (input.body !== void 0) headers["content-type"] = "application/json";
|
|
75
|
+
const response = await guardedFetch(url.toString(), {
|
|
76
|
+
method: input.method ?? "GET",
|
|
77
|
+
headers,
|
|
78
|
+
body: input.body === void 0 ? void 0 : JSON.stringify(input.body)
|
|
79
|
+
});
|
|
80
|
+
const raw = await response.text();
|
|
81
|
+
let payload = {};
|
|
82
|
+
let isJson = true;
|
|
83
|
+
if (raw !== "") {
|
|
84
|
+
try {
|
|
85
|
+
payload = JSON.parse(raw);
|
|
86
|
+
} catch {
|
|
87
|
+
isJson = false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (!response.ok) {
|
|
91
|
+
const body = record(payload) ?? {};
|
|
92
|
+
const error = record(body.error) ?? {};
|
|
93
|
+
const message = text(error.message) ?? text(body.message) ?? (isJson ? void 0 : text(raw)) ?? `Vercel \u8FD4\u56DE HTTP ${response.status}`;
|
|
94
|
+
throw upstreamError(response.status, message);
|
|
95
|
+
}
|
|
96
|
+
if (!isJson) throw new TBError("unavailable", "Vercel \u8FD4\u56DE\u4E86\u975E JSON \u54CD\u5E94", { retryable: true });
|
|
97
|
+
return payload;
|
|
98
|
+
}
|
|
99
|
+
function unwrap(payload, key) {
|
|
100
|
+
const body = requiredRecord(payload, key);
|
|
101
|
+
return record(body[key]) ?? body;
|
|
102
|
+
}
|
|
103
|
+
function mapUser(payload) {
|
|
104
|
+
const user = unwrap(payload, "user");
|
|
105
|
+
return compact({
|
|
106
|
+
// 上游在 id 缺失时报 502:没有 id 的 user 响应不能算成功。
|
|
107
|
+
id: requiredText(user.id, "user.id"),
|
|
108
|
+
username: text(user.username),
|
|
109
|
+
email: text(user.email),
|
|
110
|
+
name: text(user.name)
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function mapTeam(payload) {
|
|
114
|
+
const team = unwrap(payload, "team");
|
|
115
|
+
return compact({
|
|
116
|
+
id: requiredText(team.id, "team.id"),
|
|
117
|
+
slug: text(team.slug),
|
|
118
|
+
name: text(team.name),
|
|
119
|
+
createdAt: num(team.createdAt),
|
|
120
|
+
updatedAt: num(team.updatedAt)
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function mapDeployment(value) {
|
|
124
|
+
const deployment = requiredRecord(value, "deployment");
|
|
125
|
+
return compact({
|
|
126
|
+
id: requiredText(deployment.id, "deployment.id"),
|
|
127
|
+
name: text(deployment.name),
|
|
128
|
+
url: text(deployment.url),
|
|
129
|
+
state: text(deployment.state),
|
|
130
|
+
readyState: text(deployment.readyState),
|
|
131
|
+
target: text(deployment.target),
|
|
132
|
+
createdAt: num(deployment.createdAt),
|
|
133
|
+
ready: num(deployment.ready),
|
|
134
|
+
projectId: text(deployment.projectId),
|
|
135
|
+
creator: record(deployment.creator),
|
|
136
|
+
meta: record(deployment.meta),
|
|
137
|
+
alias: stringArray(deployment.alias)
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function mapProject(value) {
|
|
141
|
+
const project = requiredRecord(value, "project");
|
|
142
|
+
return compact({
|
|
143
|
+
id: requiredText(project.id, "project.id"),
|
|
144
|
+
name: requiredText(project.name, "project.name"),
|
|
145
|
+
accountId: text(project.accountId),
|
|
146
|
+
framework: text(project.framework),
|
|
147
|
+
nodeVersion: text(project.nodeVersion),
|
|
148
|
+
createdAt: num(project.createdAt),
|
|
149
|
+
updatedAt: num(project.updatedAt),
|
|
150
|
+
link: record(project.link),
|
|
151
|
+
latestDeployments: Array.isArray(project.latestDeployments) ? project.latestDeployments.map((deployment) => mapDeployment(deployment)) : void 0
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function mapDeploymentEvent(value) {
|
|
155
|
+
const event = requiredRecord(value, "deployment event");
|
|
156
|
+
return {
|
|
157
|
+
created: requiredNumber(event.created, "event.created"),
|
|
158
|
+
type: requiredText(event.type, "event.type"),
|
|
159
|
+
payload: requiredRecord(event.payload, "event.payload")
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function mapRuntimeLog(value) {
|
|
163
|
+
const log = requiredRecord(value, "runtime log");
|
|
164
|
+
return compact({
|
|
165
|
+
timestampInMs: requiredNumber(log.timestampInMs, "log.timestampInMs"),
|
|
166
|
+
level: requiredText(log.level, "log.level"),
|
|
167
|
+
message: requiredText(log.message, "log.message"),
|
|
168
|
+
source: requiredText(log.source, "log.source"),
|
|
169
|
+
requestMethod: text(log.requestMethod),
|
|
170
|
+
requestPath: text(log.requestPath),
|
|
171
|
+
responseStatusCode: num(log.responseStatusCode)
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function mapEnv(value) {
|
|
175
|
+
const env = requiredRecord(value, "env");
|
|
176
|
+
return compact({
|
|
177
|
+
id: requiredText(env.id, "env.id"),
|
|
178
|
+
key: requiredText(env.key, "env.key"),
|
|
179
|
+
type: requiredText(env.type, "env.type"),
|
|
180
|
+
target: stringArray(env.target),
|
|
181
|
+
gitBranch: text(env.gitBranch),
|
|
182
|
+
createdAt: num(env.createdAt),
|
|
183
|
+
updatedAt: num(env.updatedAt),
|
|
184
|
+
comment: text(env.comment)
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
function mapDomain(value) {
|
|
188
|
+
const domain = requiredRecord(value, "domain");
|
|
189
|
+
return compact({
|
|
190
|
+
name: requiredText(domain.name, "domain.name"),
|
|
191
|
+
apexName: text(domain.apexName),
|
|
192
|
+
verified: bool(domain.verified),
|
|
193
|
+
verification: Array.isArray(domain.verification) ? domain.verification.map((item) => record(item)).filter((item) => item !== void 0) : void 0,
|
|
194
|
+
// null 是"明确没有重定向",与"字段缺席"不是一回事。
|
|
195
|
+
redirect: domain.redirect === null ? null : text(domain.redirect),
|
|
196
|
+
gitBranch: text(domain.gitBranch),
|
|
197
|
+
customEnvironmentId: text(domain.customEnvironmentId)
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
function mapWebhook(value) {
|
|
201
|
+
const webhook = requiredRecord(value, "webhook");
|
|
202
|
+
return compact({
|
|
203
|
+
id: requiredText(webhook.id, "webhook.id"),
|
|
204
|
+
url: requiredText(webhook.url, "webhook.url"),
|
|
205
|
+
events: stringArray(webhook.events),
|
|
206
|
+
projectIds: stringArray(webhook.projectIds),
|
|
207
|
+
teamId: text(webhook.teamId),
|
|
208
|
+
createdAt: num(webhook.createdAt),
|
|
209
|
+
updatedAt: num(webhook.updatedAt)
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function pagination(payload) {
|
|
213
|
+
return record(record(payload)?.pagination);
|
|
214
|
+
}
|
|
215
|
+
function projectBody(input) {
|
|
216
|
+
return compact({
|
|
217
|
+
name: text(input.name),
|
|
218
|
+
framework: text(input.framework),
|
|
219
|
+
rootDirectory: text(input.rootDirectory),
|
|
220
|
+
nodeVersion: text(input.nodeVersion),
|
|
221
|
+
buildCommand: text(input.buildCommand),
|
|
222
|
+
devCommand: text(input.devCommand),
|
|
223
|
+
installCommand: text(input.installCommand),
|
|
224
|
+
outputDirectory: text(input.outputDirectory),
|
|
225
|
+
directoryListing: bool(input.directoryListing),
|
|
226
|
+
publicSource: bool(input.publicSource),
|
|
227
|
+
gitForkProtection: bool(input.gitForkProtection)
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
function envBody(input) {
|
|
231
|
+
return compact({
|
|
232
|
+
key: text(input.key),
|
|
233
|
+
value: text(input.value),
|
|
234
|
+
type: text(input.type),
|
|
235
|
+
target: stringArray(input.target),
|
|
236
|
+
gitBranch: text(input.gitBranch),
|
|
237
|
+
comment: text(input.comment),
|
|
238
|
+
customEnvironmentIds: stringArray(input.customEnvironmentIds)
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
function rejectSensitiveDevelopmentConflict(input) {
|
|
242
|
+
if (input.type === "sensitive" && input.target.includes("development")) {
|
|
243
|
+
throw new TBError("invalid_argument", "sensitive \u7C7B\u578B\u7684\u73AF\u5883\u53D8\u91CF\u4E0D\u652F\u6301 development target");
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function seg(value) {
|
|
247
|
+
return encodeURIComponent(value);
|
|
248
|
+
}
|
|
249
|
+
async function getAuthUser(_input, ctx) {
|
|
250
|
+
return { user: mapUser(await request(ctx, { path: "/v2/user" })) };
|
|
251
|
+
}
|
|
252
|
+
async function listTeams(input, ctx) {
|
|
253
|
+
const payload = await request(ctx, {
|
|
254
|
+
path: "/v2/teams",
|
|
255
|
+
query: { limit: input.limit, since: input.since }
|
|
256
|
+
});
|
|
257
|
+
return compact({
|
|
258
|
+
teams: arrayPayload(payload, "teams").map((team) => mapTeam(team)),
|
|
259
|
+
pagination: pagination(payload)
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
async function getTeam(input, ctx) {
|
|
263
|
+
return { team: mapTeam(await request(ctx, { path: `/v2/teams/${seg(input.teamId)}` })) };
|
|
264
|
+
}
|
|
265
|
+
async function listProjects(input, ctx) {
|
|
266
|
+
const payload = await request(ctx, {
|
|
267
|
+
path: "/v10/projects",
|
|
268
|
+
query: {
|
|
269
|
+
limit: input.limit,
|
|
270
|
+
since: input.since,
|
|
271
|
+
until: input.until,
|
|
272
|
+
repoUrl: text(input.repoUrl)
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
return compact({
|
|
276
|
+
projects: arrayPayload(payload, "projects").map((project) => mapProject(project)),
|
|
277
|
+
pagination: pagination(payload)
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
async function getProject(input, ctx) {
|
|
281
|
+
return { project: mapProject(await request(ctx, { path: `/v9/projects/${seg(input.idOrName)}` })) };
|
|
282
|
+
}
|
|
283
|
+
async function createProject(input, ctx) {
|
|
284
|
+
const payload = await request(ctx, {
|
|
285
|
+
method: "POST",
|
|
286
|
+
path: "/v11/projects",
|
|
287
|
+
body: projectBody(input)
|
|
288
|
+
});
|
|
289
|
+
return { project: mapProject(payload) };
|
|
290
|
+
}
|
|
291
|
+
async function updateProject(input, ctx) {
|
|
292
|
+
const payload = await request(ctx, {
|
|
293
|
+
method: "PATCH",
|
|
294
|
+
path: `/v9/projects/${seg(input.idOrName)}`,
|
|
295
|
+
body: projectBody(input)
|
|
296
|
+
});
|
|
297
|
+
return { project: mapProject(payload) };
|
|
298
|
+
}
|
|
299
|
+
async function listDeployments(input, ctx) {
|
|
300
|
+
const payload = await request(ctx, {
|
|
301
|
+
path: "/v6/deployments",
|
|
302
|
+
query: {
|
|
303
|
+
limit: input.limit,
|
|
304
|
+
projectId: text(input.projectId),
|
|
305
|
+
since: input.since,
|
|
306
|
+
until: input.until,
|
|
307
|
+
target: text(input.target),
|
|
308
|
+
state: text(input.state)
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
return compact({
|
|
312
|
+
deployments: arrayPayload(payload, "deployments").map((deployment) => mapDeployment(deployment)),
|
|
313
|
+
pagination: pagination(payload)
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
async function getDeployment(input, ctx) {
|
|
317
|
+
const payload = await request(ctx, {
|
|
318
|
+
path: `/v13/deployments/${seg(input.idOrUrl)}`,
|
|
319
|
+
// 这个端点收 true/false 字面量,不是 1/0(见文件头)。
|
|
320
|
+
query: { withGitRepoInfo: input.withGitRepoInfo }
|
|
321
|
+
});
|
|
322
|
+
return { deployment: mapDeployment(payload) };
|
|
323
|
+
}
|
|
324
|
+
async function getDeploymentEvents(input, ctx) {
|
|
325
|
+
const payload = await request(ctx, {
|
|
326
|
+
path: `/v3/deployments/${seg(input.idOrUrl)}/events`,
|
|
327
|
+
query: {
|
|
328
|
+
// 这个端点的布尔用 1/0 编码,与 get_deployment 不同。
|
|
329
|
+
builds: flag(input.builds),
|
|
330
|
+
direction: text(input.direction),
|
|
331
|
+
limit: input.limit,
|
|
332
|
+
since: input.since,
|
|
333
|
+
until: input.until
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
return { events: arrayPayload(payload, "events").map((event) => mapDeploymentEvent(event)) };
|
|
337
|
+
}
|
|
338
|
+
async function getRuntimeLogs(input, ctx) {
|
|
339
|
+
const payload = await request(ctx, {
|
|
340
|
+
path: `/v1/projects/${seg(input.projectId)}/deployments/${seg(input.deploymentId)}/runtime-logs`
|
|
341
|
+
});
|
|
342
|
+
return { logs: arrayPayload(payload, "logs").map((log) => mapRuntimeLog(log)) };
|
|
343
|
+
}
|
|
344
|
+
async function listProjectEnvs(input, ctx) {
|
|
345
|
+
const payload = await request(ctx, {
|
|
346
|
+
path: `/v10/projects/${seg(input.idOrName)}/env`,
|
|
347
|
+
query: {
|
|
348
|
+
customEnvironmentId: text(input.customEnvironmentId),
|
|
349
|
+
gitBranch: text(input.gitBranch)
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
return { envs: arrayPayload(payload, "envs").map((env) => mapEnv(env)) };
|
|
353
|
+
}
|
|
354
|
+
async function createProjectEnv(input, ctx) {
|
|
355
|
+
rejectSensitiveDevelopmentConflict(input);
|
|
356
|
+
const payload = await request(ctx, {
|
|
357
|
+
method: "POST",
|
|
358
|
+
path: `/v10/projects/${seg(input.idOrName)}/env`,
|
|
359
|
+
body: envBody(input)
|
|
360
|
+
});
|
|
361
|
+
return { envs: arrayPayload(payload, "envs").map((env) => mapEnv(env)) };
|
|
362
|
+
}
|
|
363
|
+
async function updateProjectEnv(input, ctx) {
|
|
364
|
+
rejectSensitiveDevelopmentConflict(input);
|
|
365
|
+
const payload = await request(ctx, {
|
|
366
|
+
method: "PATCH",
|
|
367
|
+
path: `/v9/projects/${seg(input.idOrName)}/env/${seg(input.id)}`,
|
|
368
|
+
body: envBody(input)
|
|
369
|
+
});
|
|
370
|
+
return { env: mapEnv(payload) };
|
|
371
|
+
}
|
|
372
|
+
async function deleteProjectEnv(input, ctx) {
|
|
373
|
+
const payload = await request(ctx, {
|
|
374
|
+
method: "DELETE",
|
|
375
|
+
path: `/v9/projects/${seg(input.idOrName)}/env/${seg(input.id)}`
|
|
376
|
+
});
|
|
377
|
+
return { envs: arrayPayload(payload, "envs").map((env) => mapEnv(env)) };
|
|
378
|
+
}
|
|
379
|
+
async function listProjectDomains(input, ctx) {
|
|
380
|
+
const payload = await request(ctx, {
|
|
381
|
+
path: `/v9/projects/${seg(input.idOrName)}/domains`,
|
|
382
|
+
query: {
|
|
383
|
+
limit: input.limit,
|
|
384
|
+
since: input.since,
|
|
385
|
+
until: input.until,
|
|
386
|
+
gitBranch: text(input.gitBranch),
|
|
387
|
+
customEnvironmentId: text(input.customEnvironmentId)
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
return compact({
|
|
391
|
+
domains: arrayPayload(payload, "domains").map((domain) => mapDomain(domain)),
|
|
392
|
+
pagination: pagination(payload)
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
async function getProjectDomain(input, ctx) {
|
|
396
|
+
const payload = await request(ctx, {
|
|
397
|
+
path: `/v9/projects/${seg(input.idOrName)}/domains/${seg(input.domain)}`
|
|
398
|
+
});
|
|
399
|
+
return { domain: mapDomain(payload) };
|
|
400
|
+
}
|
|
401
|
+
async function addProjectDomain(input, ctx) {
|
|
402
|
+
const payload = await request(ctx, {
|
|
403
|
+
method: "POST",
|
|
404
|
+
path: `/v10/projects/${seg(input.idOrName)}/domains`,
|
|
405
|
+
body: compact({
|
|
406
|
+
name: text(input.name),
|
|
407
|
+
redirect: text(input.redirect),
|
|
408
|
+
gitBranch: text(input.gitBranch),
|
|
409
|
+
customEnvironmentId: text(input.customEnvironmentId)
|
|
410
|
+
})
|
|
411
|
+
});
|
|
412
|
+
return { domain: mapDomain(payload) };
|
|
413
|
+
}
|
|
414
|
+
async function verifyProjectDomain(input, ctx) {
|
|
415
|
+
const payload = await request(ctx, {
|
|
416
|
+
method: "POST",
|
|
417
|
+
path: `/v9/projects/${seg(input.idOrName)}/domains/${seg(input.domain)}/verify`
|
|
418
|
+
});
|
|
419
|
+
return { domain: mapDomain(payload) };
|
|
420
|
+
}
|
|
421
|
+
async function getDomainConfig(input, ctx) {
|
|
422
|
+
const payload = requiredRecord(
|
|
423
|
+
await request(ctx, { path: `/v6/domains/${seg(input.domain)}/config` }),
|
|
424
|
+
"domain config"
|
|
425
|
+
);
|
|
426
|
+
return compact({
|
|
427
|
+
configuredBy: text(payload.configuredBy),
|
|
428
|
+
acceptedChallenges: stringArray(payload.acceptedChallenges),
|
|
429
|
+
misconfigured: bool(payload.misconfigured),
|
|
430
|
+
recommendedNameServers: stringArray(payload.recommendedNameServers)
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
async function listWebhooks(_input, ctx) {
|
|
434
|
+
const payload = await request(ctx, { path: "/v1/webhooks" });
|
|
435
|
+
return { webhooks: arrayPayload(payload, "webhooks").map((webhook) => mapWebhook(webhook)) };
|
|
436
|
+
}
|
|
437
|
+
async function getWebhook(input, ctx) {
|
|
438
|
+
return { webhook: mapWebhook(await request(ctx, { path: `/v1/webhooks/${seg(input.id)}` })) };
|
|
439
|
+
}
|
|
440
|
+
async function createWebhook(input, ctx) {
|
|
441
|
+
const payload = await request(ctx, {
|
|
442
|
+
method: "POST",
|
|
443
|
+
path: "/v1/webhooks",
|
|
444
|
+
body: compact({
|
|
445
|
+
url: text(input.url),
|
|
446
|
+
events: stringArray(input.events),
|
|
447
|
+
projectIds: stringArray(input.projectIds)
|
|
448
|
+
})
|
|
449
|
+
});
|
|
450
|
+
return { webhook: mapWebhook(payload) };
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// ../plugins/src/vercel/schema.ts
|
|
454
|
+
var getAuthUserInput = external_exports.strictObject({}).describe("Vercel action input.");
|
|
455
|
+
var getAuthUserOutput = external_exports.strictObject({
|
|
456
|
+
user: external_exports.strictObject({
|
|
457
|
+
id: external_exports.string().describe("Vercel user ID.").optional(),
|
|
458
|
+
username: external_exports.string().describe("Vercel username.").optional(),
|
|
459
|
+
email: external_exports.string().describe("Vercel account email address.").optional(),
|
|
460
|
+
name: external_exports.string().describe("Vercel display name.").optional()
|
|
461
|
+
}).describe("Vercel user.")
|
|
462
|
+
});
|
|
463
|
+
var listTeamsInput = external_exports.strictObject({
|
|
464
|
+
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
465
|
+
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional()
|
|
466
|
+
}).describe("Vercel action input.");
|
|
467
|
+
var listTeamsOutput = external_exports.strictObject({
|
|
468
|
+
teams: external_exports.array(external_exports.looseObject({
|
|
469
|
+
id: external_exports.string().describe("Vercel team ID.").optional(),
|
|
470
|
+
slug: external_exports.string().describe("Vercel team slug.").optional(),
|
|
471
|
+
name: external_exports.string().describe("Vercel team display name.").optional(),
|
|
472
|
+
createdAt: external_exports.number().describe("Team creation timestamp in milliseconds.").optional(),
|
|
473
|
+
updatedAt: external_exports.number().describe("Last team update timestamp in milliseconds.").optional()
|
|
474
|
+
}).describe("Vercel team.")).describe("Vercel teams available to the authenticated user.").optional(),
|
|
475
|
+
pagination: external_exports.looseObject({
|
|
476
|
+
count: external_exports.number().describe("Number of items returned in this page.").optional(),
|
|
477
|
+
next: external_exports.number().describe("Pagination cursor for the next page, or null when there is no next page.").nullable().optional(),
|
|
478
|
+
prev: external_exports.number().describe("Pagination cursor for the previous page, or null when there is no previous page.").nullable().optional()
|
|
479
|
+
}).describe("Vercel pagination information.").optional()
|
|
480
|
+
});
|
|
481
|
+
var getTeamInput = external_exports.strictObject({
|
|
482
|
+
teamId: external_exports.string().min(1).describe("Vercel team ID or team slug.")
|
|
483
|
+
}).describe("Vercel action input.");
|
|
484
|
+
var getTeamOutput = external_exports.strictObject({
|
|
485
|
+
team: external_exports.looseObject({
|
|
486
|
+
id: external_exports.string().describe("Vercel team ID.").optional(),
|
|
487
|
+
slug: external_exports.string().describe("Vercel team slug.").optional(),
|
|
488
|
+
name: external_exports.string().describe("Vercel team display name.").optional(),
|
|
489
|
+
createdAt: external_exports.number().describe("Team creation timestamp in milliseconds.").optional(),
|
|
490
|
+
updatedAt: external_exports.number().describe("Last team update timestamp in milliseconds.").optional()
|
|
491
|
+
}).describe("Vercel team.")
|
|
492
|
+
});
|
|
493
|
+
var listProjectsInput = external_exports.strictObject({
|
|
494
|
+
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
495
|
+
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional(),
|
|
496
|
+
until: external_exports.int().describe("Pagination cursor for results created before this timestamp.").optional(),
|
|
497
|
+
repoUrl: external_exports.url().describe("Repository URL used to filter projects.").optional()
|
|
498
|
+
}).describe("Vercel action input.");
|
|
499
|
+
var listProjectsOutput = external_exports.strictObject({
|
|
500
|
+
projects: external_exports.array(external_exports.strictObject({
|
|
501
|
+
id: external_exports.string().describe("Vercel project ID."),
|
|
502
|
+
name: external_exports.string().describe("Vercel project name."),
|
|
503
|
+
accountId: external_exports.string().describe("Owning account ID for the project.").optional(),
|
|
504
|
+
framework: external_exports.string().describe("Detected framework for the project.").optional(),
|
|
505
|
+
nodeVersion: external_exports.string().describe("Configured Node.js version for the project.").optional(),
|
|
506
|
+
createdAt: external_exports.number().describe("Project creation timestamp in milliseconds.").optional(),
|
|
507
|
+
updatedAt: external_exports.number().describe("Last project update timestamp in milliseconds.").optional(),
|
|
508
|
+
link: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
509
|
+
latestDeployments: external_exports.array(external_exports.looseObject({
|
|
510
|
+
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
511
|
+
name: external_exports.string().describe("Deployment name.").optional(),
|
|
512
|
+
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
513
|
+
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
514
|
+
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
515
|
+
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
516
|
+
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
517
|
+
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
518
|
+
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
519
|
+
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
520
|
+
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
521
|
+
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
522
|
+
}).describe("Vercel deployment summary.")).describe("Most recent deployments attached to the project.").optional()
|
|
523
|
+
}).describe("Vercel project.")).describe("Vercel projects.").optional(),
|
|
524
|
+
pagination: external_exports.looseObject({
|
|
525
|
+
count: external_exports.number().describe("Number of items returned in this page.").optional(),
|
|
526
|
+
next: external_exports.number().describe("Pagination cursor for the next page, or null when there is no next page.").nullable().optional(),
|
|
527
|
+
prev: external_exports.number().describe("Pagination cursor for the previous page, or null when there is no previous page.").nullable().optional()
|
|
528
|
+
}).describe("Vercel pagination information.").optional()
|
|
529
|
+
});
|
|
530
|
+
var getProjectInput = external_exports.strictObject({
|
|
531
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name.")
|
|
532
|
+
}).describe("Vercel action input.");
|
|
533
|
+
var getProjectOutput = external_exports.strictObject({
|
|
534
|
+
project: external_exports.strictObject({
|
|
535
|
+
id: external_exports.string().describe("Vercel project ID."),
|
|
536
|
+
name: external_exports.string().describe("Vercel project name."),
|
|
537
|
+
accountId: external_exports.string().describe("Owning account ID for the project.").optional(),
|
|
538
|
+
framework: external_exports.string().describe("Detected framework for the project.").optional(),
|
|
539
|
+
nodeVersion: external_exports.string().describe("Configured Node.js version for the project.").optional(),
|
|
540
|
+
createdAt: external_exports.number().describe("Project creation timestamp in milliseconds.").optional(),
|
|
541
|
+
updatedAt: external_exports.number().describe("Last project update timestamp in milliseconds.").optional(),
|
|
542
|
+
link: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
543
|
+
latestDeployments: external_exports.array(external_exports.looseObject({
|
|
544
|
+
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
545
|
+
name: external_exports.string().describe("Deployment name.").optional(),
|
|
546
|
+
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
547
|
+
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
548
|
+
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
549
|
+
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
550
|
+
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
551
|
+
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
552
|
+
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
553
|
+
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
554
|
+
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
555
|
+
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
556
|
+
}).describe("Vercel deployment summary.")).describe("Most recent deployments attached to the project.").optional()
|
|
557
|
+
}).describe("Vercel project.")
|
|
558
|
+
});
|
|
559
|
+
var createProjectInput = external_exports.strictObject({
|
|
560
|
+
name: external_exports.string().min(1).describe("Vercel project name."),
|
|
561
|
+
framework: external_exports.string().min(1).describe("Framework to set on the project.").optional(),
|
|
562
|
+
rootDirectory: external_exports.string().min(1).describe("Root directory for the project.").optional(),
|
|
563
|
+
nodeVersion: external_exports.string().min(1).describe("Node.js version to use for the project.").optional(),
|
|
564
|
+
buildCommand: external_exports.string().min(1).describe("Build command for the project.").optional(),
|
|
565
|
+
devCommand: external_exports.string().min(1).describe("Development command for the project.").optional(),
|
|
566
|
+
installCommand: external_exports.string().min(1).describe("Install command for the project.").optional(),
|
|
567
|
+
outputDirectory: external_exports.string().min(1).describe("Output directory for the project build.").optional(),
|
|
568
|
+
directoryListing: external_exports.boolean().describe("Whether directory listing is enabled for the project.").optional(),
|
|
569
|
+
publicSource: external_exports.boolean().describe("Whether the project source is public.").optional(),
|
|
570
|
+
gitForkProtection: external_exports.boolean().describe("Whether Git fork protection is enabled for the project.").optional()
|
|
571
|
+
}).describe("Vercel action input.");
|
|
572
|
+
var createProjectOutput = external_exports.strictObject({
|
|
573
|
+
project: external_exports.strictObject({
|
|
574
|
+
id: external_exports.string().describe("Vercel project ID."),
|
|
575
|
+
name: external_exports.string().describe("Vercel project name."),
|
|
576
|
+
accountId: external_exports.string().describe("Owning account ID for the project.").optional(),
|
|
577
|
+
framework: external_exports.string().describe("Detected framework for the project.").optional(),
|
|
578
|
+
nodeVersion: external_exports.string().describe("Configured Node.js version for the project.").optional(),
|
|
579
|
+
createdAt: external_exports.number().describe("Project creation timestamp in milliseconds.").optional(),
|
|
580
|
+
updatedAt: external_exports.number().describe("Last project update timestamp in milliseconds.").optional(),
|
|
581
|
+
link: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
582
|
+
latestDeployments: external_exports.array(external_exports.looseObject({
|
|
583
|
+
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
584
|
+
name: external_exports.string().describe("Deployment name.").optional(),
|
|
585
|
+
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
586
|
+
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
587
|
+
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
588
|
+
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
589
|
+
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
590
|
+
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
591
|
+
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
592
|
+
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
593
|
+
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
594
|
+
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
595
|
+
}).describe("Vercel deployment summary.")).describe("Most recent deployments attached to the project.").optional()
|
|
596
|
+
}).describe("Vercel project.")
|
|
597
|
+
});
|
|
598
|
+
var updateProjectInput = external_exports.strictObject({
|
|
599
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
600
|
+
name: external_exports.string().min(1).describe("Vercel project name.").optional(),
|
|
601
|
+
framework: external_exports.string().min(1).describe("Framework to set on the project.").optional(),
|
|
602
|
+
rootDirectory: external_exports.string().min(1).describe("Root directory for the project.").optional(),
|
|
603
|
+
nodeVersion: external_exports.string().min(1).describe("Node.js version to use for the project.").optional(),
|
|
604
|
+
buildCommand: external_exports.string().min(1).describe("Build command for the project.").optional(),
|
|
605
|
+
devCommand: external_exports.string().min(1).describe("Development command for the project.").optional(),
|
|
606
|
+
installCommand: external_exports.string().min(1).describe("Install command for the project.").optional(),
|
|
607
|
+
outputDirectory: external_exports.string().min(1).describe("Output directory for the project build.").optional(),
|
|
608
|
+
directoryListing: external_exports.boolean().describe("Whether directory listing is enabled for the project.").optional(),
|
|
609
|
+
publicSource: external_exports.boolean().describe("Whether the project source is public.").optional(),
|
|
610
|
+
gitForkProtection: external_exports.boolean().describe("Whether Git fork protection is enabled for the project.").optional()
|
|
611
|
+
}).describe("Vercel action input.");
|
|
612
|
+
var updateProjectOutput = external_exports.strictObject({
|
|
613
|
+
project: external_exports.strictObject({
|
|
614
|
+
id: external_exports.string().describe("Vercel project ID."),
|
|
615
|
+
name: external_exports.string().describe("Vercel project name."),
|
|
616
|
+
accountId: external_exports.string().describe("Owning account ID for the project.").optional(),
|
|
617
|
+
framework: external_exports.string().describe("Detected framework for the project.").optional(),
|
|
618
|
+
nodeVersion: external_exports.string().describe("Configured Node.js version for the project.").optional(),
|
|
619
|
+
createdAt: external_exports.number().describe("Project creation timestamp in milliseconds.").optional(),
|
|
620
|
+
updatedAt: external_exports.number().describe("Last project update timestamp in milliseconds.").optional(),
|
|
621
|
+
link: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
622
|
+
latestDeployments: external_exports.array(external_exports.looseObject({
|
|
623
|
+
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
624
|
+
name: external_exports.string().describe("Deployment name.").optional(),
|
|
625
|
+
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
626
|
+
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
627
|
+
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
628
|
+
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
629
|
+
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
630
|
+
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
631
|
+
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
632
|
+
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
633
|
+
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
634
|
+
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
635
|
+
}).describe("Vercel deployment summary.")).describe("Most recent deployments attached to the project.").optional()
|
|
636
|
+
}).describe("Vercel project.")
|
|
637
|
+
});
|
|
638
|
+
var listDeploymentsInput = external_exports.strictObject({
|
|
639
|
+
projectId: external_exports.string().min(1).describe("Vercel project ID.").optional(),
|
|
640
|
+
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
641
|
+
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional(),
|
|
642
|
+
until: external_exports.int().describe("Pagination cursor for results created before this timestamp.").optional(),
|
|
643
|
+
target: external_exports.string().min(1).describe("Deployment target such as production or preview.").optional(),
|
|
644
|
+
state: external_exports.string().min(1).describe("Deployment state to filter by.").optional()
|
|
645
|
+
}).describe("Vercel action input.");
|
|
646
|
+
var listDeploymentsOutput = external_exports.strictObject({
|
|
647
|
+
deployments: external_exports.array(external_exports.looseObject({
|
|
648
|
+
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
649
|
+
name: external_exports.string().describe("Deployment name.").optional(),
|
|
650
|
+
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
651
|
+
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
652
|
+
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
653
|
+
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
654
|
+
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
655
|
+
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
656
|
+
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
657
|
+
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
658
|
+
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
659
|
+
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
660
|
+
}).describe("Vercel deployment summary.")).describe("Vercel deployments.").optional(),
|
|
661
|
+
pagination: external_exports.looseObject({
|
|
662
|
+
count: external_exports.number().describe("Number of items returned in this page.").optional(),
|
|
663
|
+
next: external_exports.number().describe("Pagination cursor for the next page, or null when there is no next page.").nullable().optional(),
|
|
664
|
+
prev: external_exports.number().describe("Pagination cursor for the previous page, or null when there is no previous page.").nullable().optional()
|
|
665
|
+
}).describe("Vercel pagination information.").optional()
|
|
666
|
+
});
|
|
667
|
+
var getDeploymentInput = external_exports.strictObject({
|
|
668
|
+
idOrUrl: external_exports.string().min(1).describe("Vercel deployment ID or deployment URL."),
|
|
669
|
+
withGitRepoInfo: external_exports.boolean().describe("When true, include Git repository metadata in the deployment response.").optional()
|
|
670
|
+
}).describe("Vercel action input.");
|
|
671
|
+
var getDeploymentOutput = external_exports.strictObject({
|
|
672
|
+
deployment: external_exports.looseObject({
|
|
673
|
+
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
674
|
+
name: external_exports.string().describe("Deployment name.").optional(),
|
|
675
|
+
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
676
|
+
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
677
|
+
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
678
|
+
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
679
|
+
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
680
|
+
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
681
|
+
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
682
|
+
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
683
|
+
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
684
|
+
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
685
|
+
}).describe("Vercel deployment summary.")
|
|
686
|
+
});
|
|
687
|
+
var getDeploymentEventsInput = external_exports.strictObject({
|
|
688
|
+
idOrUrl: external_exports.string().min(1).describe("Vercel deployment ID or deployment URL."),
|
|
689
|
+
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
690
|
+
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional(),
|
|
691
|
+
until: external_exports.int().describe("Pagination cursor for results created before this timestamp.").optional(),
|
|
692
|
+
direction: external_exports.enum(["forward", "backward"]).describe("Order in which to return deployment events.").optional(),
|
|
693
|
+
builds: external_exports.boolean().describe("When true, include build events in the response.").optional()
|
|
694
|
+
}).describe("Vercel action input.");
|
|
695
|
+
var getDeploymentEventsOutput = external_exports.strictObject({
|
|
696
|
+
events: external_exports.array(external_exports.strictObject({
|
|
697
|
+
created: external_exports.number().describe("Deployment event timestamp in milliseconds."),
|
|
698
|
+
type: external_exports.string().describe("Deployment event type."),
|
|
699
|
+
payload: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")
|
|
700
|
+
}).describe("Vercel deployment event.")).describe("Deployment events returned by Vercel.").optional()
|
|
701
|
+
});
|
|
702
|
+
var getRuntimeLogsInput = external_exports.strictObject({
|
|
703
|
+
projectId: external_exports.string().min(1).describe("Vercel project ID."),
|
|
704
|
+
deploymentId: external_exports.string().min(1).describe("Vercel deployment ID.")
|
|
705
|
+
}).describe("Vercel action input.");
|
|
706
|
+
var getRuntimeLogsOutput = external_exports.strictObject({
|
|
707
|
+
logs: external_exports.array(external_exports.strictObject({
|
|
708
|
+
timestampInMs: external_exports.number().describe("Runtime log timestamp in milliseconds."),
|
|
709
|
+
level: external_exports.string().describe("Runtime log level."),
|
|
710
|
+
message: external_exports.string().describe("Runtime log message."),
|
|
711
|
+
source: external_exports.string().describe("Runtime log source."),
|
|
712
|
+
requestMethod: external_exports.string().describe("HTTP method for the runtime log entry, when present.").optional(),
|
|
713
|
+
requestPath: external_exports.string().describe("HTTP request path for the runtime log entry, when present.").optional(),
|
|
714
|
+
responseStatusCode: external_exports.number().describe("HTTP response status code for the runtime log entry, when present.").optional()
|
|
715
|
+
}).describe("Vercel runtime log entry.")).describe("Runtime log entries returned by Vercel.").optional()
|
|
716
|
+
});
|
|
717
|
+
var listProjectEnvsInput = external_exports.strictObject({
|
|
718
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
719
|
+
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
720
|
+
customEnvironmentId: external_exports.string().min(1).describe("Vercel custom environment ID.").optional()
|
|
721
|
+
}).describe("Vercel action input.");
|
|
722
|
+
var listProjectEnvsOutput = external_exports.strictObject({
|
|
723
|
+
envs: external_exports.array(external_exports.strictObject({
|
|
724
|
+
id: external_exports.string().describe("Vercel environment variable ID."),
|
|
725
|
+
key: external_exports.string().describe("Environment variable name."),
|
|
726
|
+
type: external_exports.string().describe("Environment variable type."),
|
|
727
|
+
target: external_exports.array(external_exports.string()).describe("Deployment targets that receive this environment variable.").optional(),
|
|
728
|
+
gitBranch: external_exports.string().describe("Git branch name scoped to this environment variable, when present.").optional(),
|
|
729
|
+
createdAt: external_exports.number().describe("Environment variable creation timestamp in milliseconds.").optional(),
|
|
730
|
+
updatedAt: external_exports.number().describe("Last environment variable update timestamp in milliseconds.").optional(),
|
|
731
|
+
comment: external_exports.string().describe("Comment attached to the environment variable, when present.").optional()
|
|
732
|
+
}).describe("Vercel environment variable.")).describe("Environment variables configured on the project.").optional()
|
|
733
|
+
});
|
|
734
|
+
var createProjectEnvInput = external_exports.strictObject({
|
|
735
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
736
|
+
key: external_exports.string().min(1).describe("Environment variable name."),
|
|
737
|
+
value: external_exports.string().min(1).describe("Environment variable value."),
|
|
738
|
+
type: external_exports.enum(["plain", "secret", "system", "encrypted", "sensitive"]).describe("Environment variable type."),
|
|
739
|
+
target: external_exports.array(external_exports.enum(["production", "preview", "development"])).min(1).describe("Deployment targets that should receive this environment variable."),
|
|
740
|
+
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
741
|
+
comment: external_exports.string().min(1).describe("Optional comment for the environment variable.").optional(),
|
|
742
|
+
customEnvironmentIds: external_exports.array(external_exports.string().min(1)).describe("Custom environment IDs that should receive this environment variable.").optional()
|
|
743
|
+
}).describe("Vercel action input.");
|
|
744
|
+
var createProjectEnvOutput = external_exports.strictObject({
|
|
745
|
+
envs: external_exports.array(external_exports.strictObject({
|
|
746
|
+
id: external_exports.string().describe("Vercel environment variable ID."),
|
|
747
|
+
key: external_exports.string().describe("Environment variable name."),
|
|
748
|
+
type: external_exports.string().describe("Environment variable type."),
|
|
749
|
+
target: external_exports.array(external_exports.string()).describe("Deployment targets that receive this environment variable.").optional(),
|
|
750
|
+
gitBranch: external_exports.string().describe("Git branch name scoped to this environment variable, when present.").optional(),
|
|
751
|
+
createdAt: external_exports.number().describe("Environment variable creation timestamp in milliseconds.").optional(),
|
|
752
|
+
updatedAt: external_exports.number().describe("Last environment variable update timestamp in milliseconds.").optional(),
|
|
753
|
+
comment: external_exports.string().describe("Comment attached to the environment variable, when present.").optional()
|
|
754
|
+
}).describe("Vercel environment variable.")).describe("Environment variables returned by Vercel after creation.").optional()
|
|
755
|
+
});
|
|
756
|
+
var updateProjectEnvInput = external_exports.strictObject({
|
|
757
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
758
|
+
id: external_exports.string().min(1).describe("Vercel environment variable ID."),
|
|
759
|
+
key: external_exports.string().min(1).describe("Environment variable name."),
|
|
760
|
+
value: external_exports.string().min(1).describe("Environment variable value."),
|
|
761
|
+
type: external_exports.enum(["plain", "secret", "system", "encrypted", "sensitive"]).describe("Environment variable type."),
|
|
762
|
+
target: external_exports.array(external_exports.enum(["production", "preview", "development"])).min(1).describe("Deployment targets that should receive this environment variable."),
|
|
763
|
+
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
764
|
+
comment: external_exports.string().min(1).describe("Optional comment for the environment variable.").optional(),
|
|
765
|
+
customEnvironmentIds: external_exports.array(external_exports.string().min(1)).describe("Custom environment IDs that should receive this environment variable.").optional()
|
|
766
|
+
}).describe("Vercel action input.");
|
|
767
|
+
var updateProjectEnvOutput = external_exports.strictObject({
|
|
768
|
+
env: external_exports.strictObject({
|
|
769
|
+
id: external_exports.string().describe("Vercel environment variable ID."),
|
|
770
|
+
key: external_exports.string().describe("Environment variable name."),
|
|
771
|
+
type: external_exports.string().describe("Environment variable type."),
|
|
772
|
+
target: external_exports.array(external_exports.string()).describe("Deployment targets that receive this environment variable.").optional(),
|
|
773
|
+
gitBranch: external_exports.string().describe("Git branch name scoped to this environment variable, when present.").optional(),
|
|
774
|
+
createdAt: external_exports.number().describe("Environment variable creation timestamp in milliseconds.").optional(),
|
|
775
|
+
updatedAt: external_exports.number().describe("Last environment variable update timestamp in milliseconds.").optional(),
|
|
776
|
+
comment: external_exports.string().describe("Comment attached to the environment variable, when present.").optional()
|
|
777
|
+
}).describe("Vercel environment variable.")
|
|
778
|
+
});
|
|
779
|
+
var deleteProjectEnvInput = external_exports.strictObject({
|
|
780
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
781
|
+
id: external_exports.string().min(1).describe("Vercel environment variable ID.")
|
|
782
|
+
}).describe("Vercel action input.");
|
|
783
|
+
var deleteProjectEnvOutput = external_exports.strictObject({
|
|
784
|
+
envs: external_exports.array(external_exports.strictObject({
|
|
785
|
+
id: external_exports.string().describe("Vercel environment variable ID."),
|
|
786
|
+
key: external_exports.string().describe("Environment variable name."),
|
|
787
|
+
type: external_exports.string().describe("Environment variable type."),
|
|
788
|
+
target: external_exports.array(external_exports.string()).describe("Deployment targets that receive this environment variable.").optional(),
|
|
789
|
+
gitBranch: external_exports.string().describe("Git branch name scoped to this environment variable, when present.").optional(),
|
|
790
|
+
createdAt: external_exports.number().describe("Environment variable creation timestamp in milliseconds.").optional(),
|
|
791
|
+
updatedAt: external_exports.number().describe("Last environment variable update timestamp in milliseconds.").optional(),
|
|
792
|
+
comment: external_exports.string().describe("Comment attached to the environment variable, when present.").optional()
|
|
793
|
+
}).describe("Vercel environment variable.")).describe("Environment variables returned by Vercel after deletion.").optional()
|
|
794
|
+
});
|
|
795
|
+
var listProjectDomainsInput = external_exports.strictObject({
|
|
796
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
797
|
+
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
798
|
+
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional(),
|
|
799
|
+
until: external_exports.int().describe("Pagination cursor for results created before this timestamp.").optional(),
|
|
800
|
+
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
801
|
+
customEnvironmentId: external_exports.string().min(1).describe("Vercel custom environment ID.").optional()
|
|
802
|
+
}).describe("Vercel action input.");
|
|
803
|
+
var listProjectDomainsOutput = external_exports.strictObject({
|
|
804
|
+
domains: external_exports.array(external_exports.strictObject({
|
|
805
|
+
name: external_exports.string().describe("Domain name."),
|
|
806
|
+
apexName: external_exports.string().describe("Apex domain name.").optional(),
|
|
807
|
+
verified: external_exports.boolean().describe("Whether the domain is verified in Vercel.").optional(),
|
|
808
|
+
verification: external_exports.array(external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")).describe("Raw domain verification records returned by Vercel.").optional(),
|
|
809
|
+
redirect: external_exports.string().describe("Redirect target configured for the domain, or null when no redirect is set.").nullable().optional(),
|
|
810
|
+
gitBranch: external_exports.string().describe("Git branch associated with the domain, when present.").optional(),
|
|
811
|
+
customEnvironmentId: external_exports.string().describe("Custom environment ID associated with the domain, when present.").optional()
|
|
812
|
+
}).describe("Vercel project domain.")).describe("Domains attached to the project.").optional(),
|
|
813
|
+
pagination: external_exports.looseObject({
|
|
814
|
+
count: external_exports.number().describe("Number of items returned in this page.").optional(),
|
|
815
|
+
next: external_exports.number().describe("Pagination cursor for the next page, or null when there is no next page.").nullable().optional(),
|
|
816
|
+
prev: external_exports.number().describe("Pagination cursor for the previous page, or null when there is no previous page.").nullable().optional()
|
|
817
|
+
}).describe("Vercel pagination information.").optional()
|
|
818
|
+
});
|
|
819
|
+
var getProjectDomainInput = external_exports.strictObject({
|
|
820
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
821
|
+
domain: external_exports.string().min(1).describe("Domain name.")
|
|
822
|
+
}).describe("Vercel action input.");
|
|
823
|
+
var getProjectDomainOutput = external_exports.strictObject({
|
|
824
|
+
domain: external_exports.strictObject({
|
|
825
|
+
name: external_exports.string().describe("Domain name."),
|
|
826
|
+
apexName: external_exports.string().describe("Apex domain name.").optional(),
|
|
827
|
+
verified: external_exports.boolean().describe("Whether the domain is verified in Vercel.").optional(),
|
|
828
|
+
verification: external_exports.array(external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")).describe("Raw domain verification records returned by Vercel.").optional(),
|
|
829
|
+
redirect: external_exports.string().describe("Redirect target configured for the domain, or null when no redirect is set.").nullable().optional(),
|
|
830
|
+
gitBranch: external_exports.string().describe("Git branch associated with the domain, when present.").optional(),
|
|
831
|
+
customEnvironmentId: external_exports.string().describe("Custom environment ID associated with the domain, when present.").optional()
|
|
832
|
+
}).describe("Vercel project domain.")
|
|
833
|
+
});
|
|
834
|
+
var addProjectDomainInput = external_exports.strictObject({
|
|
835
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
836
|
+
name: external_exports.string().min(1).describe("Domain name to add to the project."),
|
|
837
|
+
redirect: external_exports.string().min(1).describe("Redirect target for the domain.").optional(),
|
|
838
|
+
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
839
|
+
customEnvironmentId: external_exports.string().min(1).describe("Vercel custom environment ID.").optional()
|
|
840
|
+
}).describe("Vercel action input.");
|
|
841
|
+
var addProjectDomainOutput = external_exports.strictObject({
|
|
842
|
+
domain: external_exports.strictObject({
|
|
843
|
+
name: external_exports.string().describe("Domain name."),
|
|
844
|
+
apexName: external_exports.string().describe("Apex domain name.").optional(),
|
|
845
|
+
verified: external_exports.boolean().describe("Whether the domain is verified in Vercel.").optional(),
|
|
846
|
+
verification: external_exports.array(external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")).describe("Raw domain verification records returned by Vercel.").optional(),
|
|
847
|
+
redirect: external_exports.string().describe("Redirect target configured for the domain, or null when no redirect is set.").nullable().optional(),
|
|
848
|
+
gitBranch: external_exports.string().describe("Git branch associated with the domain, when present.").optional(),
|
|
849
|
+
customEnvironmentId: external_exports.string().describe("Custom environment ID associated with the domain, when present.").optional()
|
|
850
|
+
}).describe("Vercel project domain.")
|
|
851
|
+
});
|
|
852
|
+
var verifyProjectDomainInput = external_exports.strictObject({
|
|
853
|
+
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
854
|
+
domain: external_exports.string().min(1).describe("Domain name.")
|
|
855
|
+
}).describe("Vercel action input.");
|
|
856
|
+
var verifyProjectDomainOutput = external_exports.strictObject({
|
|
857
|
+
domain: external_exports.strictObject({
|
|
858
|
+
name: external_exports.string().describe("Domain name."),
|
|
859
|
+
apexName: external_exports.string().describe("Apex domain name.").optional(),
|
|
860
|
+
verified: external_exports.boolean().describe("Whether the domain is verified in Vercel.").optional(),
|
|
861
|
+
verification: external_exports.array(external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")).describe("Raw domain verification records returned by Vercel.").optional(),
|
|
862
|
+
redirect: external_exports.string().describe("Redirect target configured for the domain, or null when no redirect is set.").nullable().optional(),
|
|
863
|
+
gitBranch: external_exports.string().describe("Git branch associated with the domain, when present.").optional(),
|
|
864
|
+
customEnvironmentId: external_exports.string().describe("Custom environment ID associated with the domain, when present.").optional()
|
|
865
|
+
}).describe("Vercel project domain.")
|
|
866
|
+
});
|
|
867
|
+
var getDomainConfigInput = external_exports.strictObject({
|
|
868
|
+
domain: external_exports.string().min(1).describe("Domain name.")
|
|
869
|
+
}).describe("Vercel action input.");
|
|
870
|
+
var getDomainConfigOutput = external_exports.strictObject({
|
|
871
|
+
configuredBy: external_exports.string().describe("Party that configured the domain.").optional(),
|
|
872
|
+
acceptedChallenges: external_exports.array(external_exports.string()).describe("Domain verification challenge types accepted by Vercel.").optional(),
|
|
873
|
+
misconfigured: external_exports.boolean().describe("Whether Vercel considers the domain misconfigured.").optional(),
|
|
874
|
+
recommendedNameServers: external_exports.array(external_exports.string()).describe("Name servers recommended by Vercel for the domain.").optional()
|
|
875
|
+
}).describe("Vercel domain configuration.");
|
|
876
|
+
var listWebhooksInput = external_exports.strictObject({}).describe("Vercel action input.");
|
|
877
|
+
var listWebhooksOutput = external_exports.strictObject({
|
|
878
|
+
webhooks: external_exports.array(external_exports.strictObject({
|
|
879
|
+
id: external_exports.string().describe("Vercel webhook ID."),
|
|
880
|
+
url: external_exports.string().describe("Webhook destination URL."),
|
|
881
|
+
events: external_exports.array(external_exports.string()).describe("Webhook events configured on the webhook.").optional(),
|
|
882
|
+
projectIds: external_exports.array(external_exports.string()).describe("Project IDs associated with the webhook, when scoped to specific projects.").optional(),
|
|
883
|
+
teamId: external_exports.string().describe("Vercel team ID that owns the webhook, when present.").optional(),
|
|
884
|
+
createdAt: external_exports.number().describe("Webhook creation timestamp in milliseconds.").optional(),
|
|
885
|
+
updatedAt: external_exports.number().describe("Last webhook update timestamp in milliseconds.").optional()
|
|
886
|
+
}).describe("Vercel webhook.")).describe("Vercel webhooks.").optional()
|
|
887
|
+
});
|
|
888
|
+
var getWebhookInput = external_exports.strictObject({
|
|
889
|
+
id: external_exports.string().min(1).describe("Vercel webhook ID.")
|
|
890
|
+
}).describe("Vercel action input.");
|
|
891
|
+
var getWebhookOutput = external_exports.strictObject({
|
|
892
|
+
webhook: external_exports.strictObject({
|
|
893
|
+
id: external_exports.string().describe("Vercel webhook ID."),
|
|
894
|
+
url: external_exports.string().describe("Webhook destination URL."),
|
|
895
|
+
events: external_exports.array(external_exports.string()).describe("Webhook events configured on the webhook.").optional(),
|
|
896
|
+
projectIds: external_exports.array(external_exports.string()).describe("Project IDs associated with the webhook, when scoped to specific projects.").optional(),
|
|
897
|
+
teamId: external_exports.string().describe("Vercel team ID that owns the webhook, when present.").optional(),
|
|
898
|
+
createdAt: external_exports.number().describe("Webhook creation timestamp in milliseconds.").optional(),
|
|
899
|
+
updatedAt: external_exports.number().describe("Last webhook update timestamp in milliseconds.").optional()
|
|
900
|
+
}).describe("Vercel webhook.")
|
|
901
|
+
});
|
|
902
|
+
var createWebhookInput = external_exports.strictObject({
|
|
903
|
+
url: external_exports.url().describe("Webhook destination URL."),
|
|
904
|
+
events: external_exports.array(external_exports.string().min(1)).min(1).describe("Webhook events that should trigger notifications."),
|
|
905
|
+
projectIds: external_exports.array(external_exports.string().min(1)).describe("Project IDs that should trigger the webhook. Omit to receive events for all projects.").optional()
|
|
906
|
+
}).describe("Vercel action input.");
|
|
907
|
+
var createWebhookOutput = external_exports.strictObject({
|
|
908
|
+
webhook: external_exports.strictObject({
|
|
909
|
+
id: external_exports.string().describe("Vercel webhook ID."),
|
|
910
|
+
url: external_exports.string().describe("Webhook destination URL."),
|
|
911
|
+
events: external_exports.array(external_exports.string()).describe("Webhook events configured on the webhook.").optional(),
|
|
912
|
+
projectIds: external_exports.array(external_exports.string()).describe("Project IDs associated with the webhook, when scoped to specific projects.").optional(),
|
|
913
|
+
teamId: external_exports.string().describe("Vercel team ID that owns the webhook, when present.").optional(),
|
|
914
|
+
createdAt: external_exports.number().describe("Webhook creation timestamp in milliseconds.").optional(),
|
|
915
|
+
updatedAt: external_exports.number().describe("Last webhook update timestamp in milliseconds.").optional()
|
|
916
|
+
}).describe("Vercel webhook.")
|
|
917
|
+
});
|
|
918
|
+
var vercelActions = {
|
|
919
|
+
get_auth_user: {
|
|
920
|
+
description: "Get the authenticated Vercel user.",
|
|
921
|
+
effect: "read",
|
|
922
|
+
inputSchema: getAuthUserInput,
|
|
923
|
+
outputSchema: external_exports.toJSONSchema(getAuthUserOutput, { io: "output", unrepresentable: "any" })
|
|
924
|
+
},
|
|
925
|
+
list_teams: {
|
|
926
|
+
description: "List Vercel teams available to the authenticated user.",
|
|
927
|
+
effect: "read",
|
|
928
|
+
inputSchema: listTeamsInput,
|
|
929
|
+
outputSchema: external_exports.toJSONSchema(listTeamsOutput, { io: "output", unrepresentable: "any" })
|
|
930
|
+
},
|
|
931
|
+
get_team: {
|
|
932
|
+
description: "Get a Vercel team by id or slug.",
|
|
933
|
+
effect: "read",
|
|
934
|
+
inputSchema: getTeamInput,
|
|
935
|
+
outputSchema: external_exports.toJSONSchema(getTeamOutput, { io: "output", unrepresentable: "any" })
|
|
936
|
+
},
|
|
937
|
+
list_projects: {
|
|
938
|
+
description: "List Vercel projects.",
|
|
939
|
+
effect: "read",
|
|
940
|
+
inputSchema: listProjectsInput,
|
|
941
|
+
outputSchema: external_exports.toJSONSchema(listProjectsOutput, { io: "output", unrepresentable: "any" })
|
|
942
|
+
},
|
|
943
|
+
get_project: {
|
|
944
|
+
description: "Get a Vercel project.",
|
|
945
|
+
effect: "read",
|
|
946
|
+
inputSchema: getProjectInput,
|
|
947
|
+
outputSchema: external_exports.toJSONSchema(getProjectOutput, { io: "output", unrepresentable: "any" })
|
|
948
|
+
},
|
|
949
|
+
create_project: {
|
|
950
|
+
description: "Create a Vercel project.",
|
|
951
|
+
effect: "write",
|
|
952
|
+
inputSchema: createProjectInput,
|
|
953
|
+
outputSchema: external_exports.toJSONSchema(createProjectOutput, { io: "output", unrepresentable: "any" })
|
|
954
|
+
},
|
|
955
|
+
update_project: {
|
|
956
|
+
description: "Update a Vercel project.",
|
|
957
|
+
effect: "write",
|
|
958
|
+
inputSchema: updateProjectInput,
|
|
959
|
+
outputSchema: external_exports.toJSONSchema(updateProjectOutput, { io: "output", unrepresentable: "any" })
|
|
960
|
+
},
|
|
961
|
+
list_deployments: {
|
|
962
|
+
description: "List Vercel deployments.",
|
|
963
|
+
effect: "read",
|
|
964
|
+
inputSchema: listDeploymentsInput,
|
|
965
|
+
outputSchema: external_exports.toJSONSchema(listDeploymentsOutput, { io: "output", unrepresentable: "any" })
|
|
966
|
+
},
|
|
967
|
+
get_deployment: {
|
|
968
|
+
description: "Get a Vercel deployment.",
|
|
969
|
+
effect: "read",
|
|
970
|
+
inputSchema: getDeploymentInput,
|
|
971
|
+
outputSchema: external_exports.toJSONSchema(getDeploymentOutput, { io: "output", unrepresentable: "any" })
|
|
972
|
+
},
|
|
973
|
+
get_deployment_events: {
|
|
974
|
+
description: "Get Vercel deployment events.",
|
|
975
|
+
effect: "read",
|
|
976
|
+
inputSchema: getDeploymentEventsInput,
|
|
977
|
+
outputSchema: external_exports.toJSONSchema(getDeploymentEventsOutput, { io: "output", unrepresentable: "any" })
|
|
978
|
+
},
|
|
979
|
+
get_runtime_logs: {
|
|
980
|
+
description: "Get runtime logs for a Vercel deployment.",
|
|
981
|
+
effect: "read",
|
|
982
|
+
inputSchema: getRuntimeLogsInput,
|
|
983
|
+
outputSchema: external_exports.toJSONSchema(getRuntimeLogsOutput, { io: "output", unrepresentable: "any" })
|
|
984
|
+
},
|
|
985
|
+
list_project_envs: {
|
|
986
|
+
description: "List environment variables for a Vercel project.",
|
|
987
|
+
effect: "read",
|
|
988
|
+
inputSchema: listProjectEnvsInput,
|
|
989
|
+
outputSchema: external_exports.toJSONSchema(listProjectEnvsOutput, { io: "output", unrepresentable: "any" })
|
|
990
|
+
},
|
|
991
|
+
create_project_env: {
|
|
992
|
+
description: "Create a Vercel project environment variable.",
|
|
993
|
+
effect: "write",
|
|
994
|
+
inputSchema: createProjectEnvInput,
|
|
995
|
+
outputSchema: external_exports.toJSONSchema(createProjectEnvOutput, { io: "output", unrepresentable: "any" })
|
|
996
|
+
},
|
|
997
|
+
update_project_env: {
|
|
998
|
+
description: "Update a Vercel project environment variable.",
|
|
999
|
+
effect: "write",
|
|
1000
|
+
inputSchema: updateProjectEnvInput,
|
|
1001
|
+
outputSchema: external_exports.toJSONSchema(updateProjectEnvOutput, { io: "output", unrepresentable: "any" })
|
|
1002
|
+
},
|
|
1003
|
+
delete_project_env: {
|
|
1004
|
+
description: "Delete a Vercel project environment variable.",
|
|
1005
|
+
effect: "destructive",
|
|
1006
|
+
inputSchema: deleteProjectEnvInput,
|
|
1007
|
+
outputSchema: external_exports.toJSONSchema(deleteProjectEnvOutput, { io: "output", unrepresentable: "any" })
|
|
1008
|
+
},
|
|
1009
|
+
list_project_domains: {
|
|
1010
|
+
description: "List domains for a Vercel project.",
|
|
1011
|
+
effect: "read",
|
|
1012
|
+
inputSchema: listProjectDomainsInput,
|
|
1013
|
+
outputSchema: external_exports.toJSONSchema(listProjectDomainsOutput, { io: "output", unrepresentable: "any" })
|
|
1014
|
+
},
|
|
1015
|
+
get_project_domain: {
|
|
1016
|
+
description: "Get a Vercel project domain.",
|
|
1017
|
+
effect: "read",
|
|
1018
|
+
inputSchema: getProjectDomainInput,
|
|
1019
|
+
outputSchema: external_exports.toJSONSchema(getProjectDomainOutput, { io: "output", unrepresentable: "any" })
|
|
1020
|
+
},
|
|
1021
|
+
add_project_domain: {
|
|
1022
|
+
description: "Add a domain to a Vercel project.",
|
|
1023
|
+
effect: "write",
|
|
1024
|
+
inputSchema: addProjectDomainInput,
|
|
1025
|
+
outputSchema: external_exports.toJSONSchema(addProjectDomainOutput, { io: "output", unrepresentable: "any" })
|
|
1026
|
+
},
|
|
1027
|
+
verify_project_domain: {
|
|
1028
|
+
description: "Verify a Vercel project domain.",
|
|
1029
|
+
effect: "write",
|
|
1030
|
+
inputSchema: verifyProjectDomainInput,
|
|
1031
|
+
outputSchema: external_exports.toJSONSchema(verifyProjectDomainOutput, { io: "output", unrepresentable: "any" })
|
|
1032
|
+
},
|
|
1033
|
+
get_domain_config: {
|
|
1034
|
+
description: "Get domain configuration guidance from Vercel.",
|
|
1035
|
+
effect: "read",
|
|
1036
|
+
inputSchema: getDomainConfigInput,
|
|
1037
|
+
outputSchema: external_exports.toJSONSchema(getDomainConfigOutput, { io: "output", unrepresentable: "any" })
|
|
1038
|
+
},
|
|
1039
|
+
list_webhooks: {
|
|
1040
|
+
description: "List Vercel webhooks.",
|
|
1041
|
+
effect: "read",
|
|
1042
|
+
inputSchema: listWebhooksInput,
|
|
1043
|
+
outputSchema: external_exports.toJSONSchema(listWebhooksOutput, { io: "output", unrepresentable: "any" })
|
|
1044
|
+
},
|
|
1045
|
+
get_webhook: {
|
|
1046
|
+
description: "Get a Vercel webhook.",
|
|
1047
|
+
effect: "read",
|
|
1048
|
+
inputSchema: getWebhookInput,
|
|
1049
|
+
outputSchema: external_exports.toJSONSchema(getWebhookOutput, { io: "output", unrepresentable: "any" })
|
|
1050
|
+
},
|
|
1051
|
+
create_webhook: {
|
|
1052
|
+
description: "Create a Vercel webhook.",
|
|
1053
|
+
effect: "write",
|
|
1054
|
+
inputSchema: createWebhookInput,
|
|
1055
|
+
outputSchema: external_exports.toJSONSchema(createWebhookOutput, { io: "output", unrepresentable: "any" })
|
|
1056
|
+
}
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
// ../plugins/src/vercel/index.ts
|
|
1060
|
+
function createVercelPlugin() {
|
|
1061
|
+
return createProviderPlugin({
|
|
1062
|
+
description: "Vercel",
|
|
1063
|
+
actions: vercelActions,
|
|
1064
|
+
credentialProbe: "get_auth_user",
|
|
1065
|
+
handlers: {
|
|
1066
|
+
get_auth_user: getAuthUser,
|
|
1067
|
+
list_teams: listTeams,
|
|
1068
|
+
get_team: getTeam,
|
|
1069
|
+
list_projects: listProjects,
|
|
1070
|
+
get_project: getProject,
|
|
1071
|
+
create_project: createProject,
|
|
1072
|
+
update_project: updateProject,
|
|
1073
|
+
list_deployments: listDeployments,
|
|
1074
|
+
get_deployment: getDeployment,
|
|
1075
|
+
get_deployment_events: getDeploymentEvents,
|
|
1076
|
+
get_runtime_logs: getRuntimeLogs,
|
|
1077
|
+
list_project_envs: listProjectEnvs,
|
|
1078
|
+
create_project_env: createProjectEnv,
|
|
1079
|
+
update_project_env: updateProjectEnv,
|
|
1080
|
+
delete_project_env: deleteProjectEnv,
|
|
1081
|
+
list_project_domains: listProjectDomains,
|
|
1082
|
+
get_project_domain: getProjectDomain,
|
|
1083
|
+
add_project_domain: addProjectDomain,
|
|
1084
|
+
verify_project_domain: verifyProjectDomain,
|
|
1085
|
+
get_domain_config: getDomainConfig,
|
|
1086
|
+
list_webhooks: listWebhooks,
|
|
1087
|
+
get_webhook: getWebhook,
|
|
1088
|
+
create_webhook: createWebhook
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
var vercel_default = createVercelPlugin();
|
|
1093
|
+
export {
|
|
1094
|
+
createVercelPlugin,
|
|
1095
|
+
vercel_default as default
|
|
1096
|
+
};
|