@tool-bridge/server 0.21.1 → 0.23.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/admin.js +170 -0
- package/dist/airtable-VMQVXLHK.js +790 -0
- package/dist/{alt_text_generator_ai-W7O34SNG.js → alt_text_generator_ai-FTWY4RU4.js} +12 -11
- package/dist/{amap-VOX4T2AW.js → amap-OK5VBHYC.js} +221 -220
- package/dist/anthropic-S67AZFZ3.js +203 -0
- package/dist/apify-ZE6MYQI3.js +248 -0
- package/dist/brave_search-TG2M2KOD.js +302 -0
- package/dist/chunk-2JNAI4OC.js +161 -0
- package/dist/{chunk-KMTT3I6D.js → chunk-4XJPN3DY.js} +19392 -26136
- package/dist/chunk-5ICRY3VU.js +8432 -0
- package/dist/chunk-7CTWGTDU.js +302 -0
- package/dist/chunk-BADVCN6K.js +378 -0
- package/dist/{chunk-XYBU3WZH.js → chunk-TDAWLMDE.js} +3 -3
- package/dist/chunk-U7PTOA3U.js +7320 -0
- package/dist/{chunk-E6JCVKW6.js → chunk-VWRUGUSU.js} +3 -3
- package/dist/{chunk-ATK45BXV.js → chunk-WJHG6OK7.js} +4 -2
- package/dist/circleci-3L3WJVSK.js +389 -0
- package/dist/clerk-EZPF2V7T.js +1019 -0
- package/dist/cohere-U27DPO64.js +185 -0
- package/dist/{confluence-B3EWPZVE.js → confluence-G2KL6ERH.js} +105 -104
- package/dist/{convertapi-EUWSQYPF.js → convertapi-L4CLJ2M3.js} +32 -31
- package/dist/{currencyapi-KVTIK3GL.js → currencyapi-YPYXG7YY.js} +71 -71
- package/dist/deepseek-6HT6WF3M.js +210 -0
- package/dist/docker_hub-LPE3PCVB.js +933 -0
- package/dist/dropbox-V56ABHTA.js +1305 -0
- package/dist/dub-6OKQ7MHT.js +680 -0
- package/dist/e2b-JS2U2QFU.js +278 -0
- package/dist/exa-DPWVYXSP.js +332 -0
- package/dist/{fal_ai-23E7JPNT.js → fal_ai-DK6Y27ZF.js} +81 -80
- package/dist/{feishu-7QRIDUV6.js → feishu-K7EGSRF3.js} +528 -572
- package/dist/{feishu_custom_bot-TJ4K7QNJ.js → feishu_custom_bot-2JUGFYNG.js} +57 -53
- package/dist/figma-FT5I7ITD.js +777 -0
- package/dist/firehydrant-EIKLKHX2.js +563 -0
- package/dist/{fixer-BWON27UO.js → fixer-U5QXIAKD.js} +34 -33
- package/dist/fly-T3JYFZ2M.js +469 -0
- package/dist/{front-QCGXYEDJ.js → front-D72MGVOR.js} +104 -104
- package/dist/geocodio-BOTD5TI5.js +213 -0
- package/dist/ghost-KYP7SZGB.js +338 -0
- package/dist/github-AGMZT3VY.js +5421 -0
- package/dist/gmail-BLJNJOBG.js +1887 -0
- package/dist/googlecalendar-GTHWNCF6.js +2524 -0
- package/dist/{googledocs-BUHL4J2H.js → googledocs-6EEDMEBQ.js} +341 -340
- package/dist/{grafana-GLU2DWF2.js → grafana-GMW6EKSQ.js} +221 -220
- package/dist/graphhopper-6OLGBDGB.js +325 -0
- package/dist/index.d.ts +1132 -332
- package/dist/index.js +31 -14
- package/dist/{ip2proxy-EZ64Y4ZH.js → ip2proxy-4QN42E6T.js} +28 -27
- package/dist/ipgeolocation_io-SK4XKDA2.js +315 -0
- package/dist/ipqualityscore-6ANBPXKT.js +279 -0
- package/dist/{jina_ai-EFBHTBXL.js → jina_ai-IHPSVRM5.js} +23 -23
- package/dist/{jira-HQSHAA5K.js → jira-46KKM4LC.js} +118 -117
- package/dist/langsmith-JZA345I5.js +593 -0
- package/dist/lemlist-43IV7DK6.js +289 -0
- package/dist/{linear-K7RYFYAD.js → linear-5LFH7XNL.js} +327 -326
- package/dist/logsnag-5RMYAHIL.js +150 -0
- package/dist/main.js +57 -280
- package/dist/{mattermost-S2BRCWLQ.js → mattermost-XFL6SHGG.js} +59 -58
- package/dist/mem0-NYO4DTP6.js +544 -0
- package/dist/memos-37MPQOLV.js +744 -0
- package/dist/{metabase-MMSEPCOF.js → metabase-KYBKZFMG.js} +90 -89
- package/dist/mistral_ai-6PL3K4PM.js +1196 -0
- package/dist/{mother_duck-H7PCQNZ2.js → mother_duck-2NH7W5M5.js} +94 -93
- package/dist/ngrok-UO6CDYCA.js +356 -0
- package/dist/{notes-PFMKRO33.js → notes-I3P32WP4.js} +11 -9
- package/dist/notion-BEAJFUOE.js +940 -0
- package/dist/open_exchange_rates-CMF62JB4.js +215 -0
- package/dist/openai-IHOMKVND.js +800 -0
- package/dist/opengraph_io-ZQ2FGLHX.js +362 -0
- package/dist/openrouter-HXLW3NR5.js +441 -0
- package/dist/outline-ELCP4NEU.js +599 -0
- package/dist/paddle-O77LALVN.js +454 -0
- package/dist/perplexity-JCU654QV.js +220 -0
- package/dist/pinecone-W5W4LRKL.js +571 -0
- package/dist/{pipedrive-Y2O7QGFF.js → pipedrive-ITMJLLPZ.js} +99 -98
- package/dist/polar-R33XU4L3.js +395 -0
- package/dist/posthog-JVNTOLTV.js +3464 -0
- package/dist/postmark-6SBG7HWV.js +427 -0
- package/dist/{prerender-MENYM2TY.js → prerender-GPNKTNFC.js} +31 -30
- package/dist/{pubmed-GOXUVVH5.js → pubmed-UP6ZEEIH.js} +239 -238
- package/dist/{railway-V2SID4WV.js → railway-KWEWXHTY.js} +118 -117
- package/dist/readwise-BLATSMC3.js +470 -0
- package/dist/render-QYRVIXII.js +461 -0
- package/dist/{replicate-756MXPYX.js → replicate-JYTWH4NF.js} +81 -80
- package/dist/{resend-ZKH3BTBI.js → resend-L5N75SZM.js} +20 -16
- package/dist/rootly-MHCPEQ26.js +336 -0
- package/dist/{scrapfly-NSRHFDIQ.js → scrapfly-PTPGYSJM.js} +62 -61
- package/dist/{scrapingbee-OQHLAVEY.js → scrapingbee-JN6UH5PY.js} +56 -56
- package/dist/{screenshot_fyi-DVWG3AXC.js → screenshot_fyi-4QRVSV55.js} +16 -16
- package/dist/semantic_scholar-LRSWA2GE.js +611 -0
- package/dist/{sentry-546MNDJG.js → sentry-2G6PF5W6.js} +208 -207
- package/dist/{shodan-C3OON3Z3.js → shodan-WKKPP5C6.js} +62 -61
- package/dist/shopify-64YDK5T2.js +610 -0
- package/dist/stripe-QAIGGOTF.js +585 -0
- package/dist/{supabase-U2SL4D63.js → supabase-WHTGR6ND.js} +245 -244
- package/dist/tavily-QIXCDDWO.js +326 -0
- package/dist/telegram-E6G7CWI6.js +1767 -0
- package/dist/{telnyx-CXQ4EZUX.js → telnyx-ZDVVS7PK.js} +57 -56
- package/dist/todoist-DMYF3G7J.js +664 -0
- package/dist/trello-HY2RYIRP.js +1080 -0
- package/dist/turso-HAQWMGRP.js +416 -0
- package/dist/{twilio-4PDBJKWX.js → twilio-MLXYPHJE.js} +70 -69
- package/dist/umami-DZHBLPVG.js +389 -0
- package/dist/unsplash-GS2OPXKE.js +351 -0
- package/dist/{upstash_redis-G4LQBYHA.js → upstash_redis-XMXWTNAJ.js} +51 -50
- package/dist/uptimerobot-TF5WRZ4G.js +483 -0
- package/dist/v2ex-2BVXAPDF.js +667 -0
- package/dist/vercel-YMJGQYJE.js +1076 -0
- package/dist/{wolfram_alpha_api-3G4PUJWB.js → wolfram_alpha_api-I56SXWFZ.js} +36 -35
- package/dist/wordpress-R7TDFZ2P.js +812 -0
- package/dist/workos-HDNHWVMS.js +664 -0
- package/dist/zhihu-LX6AGGDS.js +254 -0
- package/package.json +18 -9
- package/dist/airtable-LLZDFN7M.js +0 -789
- package/dist/anthropic-G23NN3X5.js +0 -202
- package/dist/apify-Y3SS734K.js +0 -247
- package/dist/brave_search-ZC7OAPSZ.js +0 -301
- package/dist/chunk-R6P4XAE5.js +0 -248
- package/dist/chunk-U7B6DS2O.js +0 -977
- package/dist/chunk-UZM2RXZH.js +0 -23436
- package/dist/circleci-3BAX5FCG.js +0 -388
- package/dist/clerk-6LEM6TNU.js +0 -1019
- package/dist/cloudflare_dns-KINYTJUD.js +0 -588
- package/dist/cohere-XCJ5AJ6B.js +0 -185
- package/dist/deepseek-PC5YGNC5.js +0 -209
- package/dist/docker_hub-C3MA5FU6.js +0 -932
- package/dist/dropbox-XBV7Z2IR.js +0 -1304
- package/dist/dub-LDOFG3HC.js +0 -679
- package/dist/e2b-JMCPSVBW.js +0 -277
- package/dist/exa-RAK7O7RD.js +0 -331
- package/dist/figma-E6IX5DTH.js +0 -773
- package/dist/firehydrant-ZBLPQREE.js +0 -562
- package/dist/fly-ZH3HFCZJ.js +0 -468
- package/dist/geocodio-YGNI7DA4.js +0 -212
- package/dist/ghost-EVSGKH2Q.js +0 -337
- package/dist/github-MA2BGRCJ.js +0 -5420
- package/dist/gmail-E5E6AADE.js +0 -1886
- package/dist/googlecalendar-BTLFPXTD.js +0 -2523
- package/dist/graphhopper-WSMB3TCD.js +0 -324
- package/dist/ipgeolocation_io-AA7HAS22.js +0 -315
- package/dist/ipqualityscore-BHJXVTJT.js +0 -277
- package/dist/langsmith-5W6SCT6F.js +0 -592
- package/dist/lemlist-HJWH6UMK.js +0 -288
- package/dist/logsnag-4KFOHL37.js +0 -150
- package/dist/mem0-CAW43CIC.js +0 -543
- package/dist/memos-TWEGPKFM.js +0 -740
- package/dist/mistral_ai-64BGZQHP.js +0 -1195
- package/dist/ngrok-GQCUGZKJ.js +0 -356
- package/dist/notion-DQWZWP4N.js +0 -936
- package/dist/open_exchange_rates-QMMD735E.js +0 -214
- package/dist/openai-W6PX32NZ.js +0 -799
- package/dist/opengraph_io-HNDBXYNW.js +0 -361
- package/dist/openrouter-JJYMEAUL.js +0 -437
- package/dist/outline-MCBNQZYY.js +0 -595
- package/dist/paddle-D2SKLUDN.js +0 -453
- package/dist/perplexity-XIFMKUAE.js +0 -219
- package/dist/pinecone-HUFTALV2.js +0 -570
- package/dist/polar-TYTOMOSR.js +0 -394
- package/dist/posthog-43JAR3VW.js +0 -3463
- package/dist/postmark-KL2QJYSG.js +0 -426
- package/dist/readwise-CI4GIMMJ.js +0 -469
- package/dist/render-SUBJ6YRZ.js +0 -460
- package/dist/rootly-CD2LJHPI.js +0 -336
- package/dist/semantic_scholar-T4A252KW.js +0 -610
- package/dist/shopify-Y2HN2MCQ.js +0 -609
- package/dist/stripe-VE3CD3AY.js +0 -584
- package/dist/tavily-KCZHK6HE.js +0 -326
- package/dist/telegram-3URFBCMY.js +0 -1766
- package/dist/todoist-HNPWNYTD.js +0 -663
- package/dist/trello-3W2MIXRP.js +0 -1079
- package/dist/turso-2EQF7C2Z.js +0 -415
- package/dist/umami-5REN7TGP.js +0 -388
- package/dist/unsplash-EIXL424F.js +0 -350
- package/dist/uptimerobot-KNJ3EYLY.js +0 -482
- package/dist/v2ex-RHJ234PZ.js +0 -666
- package/dist/vercel-AS6NCIC7.js +0 -1075
- package/dist/wordpress-KNDAAUV7.js +0 -811
- package/dist/workos-R6UITSJ7.js +0 -663
- package/dist/zhihu-AGK4HILK.js +0 -253
package/dist/vercel-AS6NCIC7.js
DELETED
|
@@ -1,1075 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createAuthedClient
|
|
3
|
-
} from "./chunk-XYBU3WZH.js";
|
|
4
|
-
import "./chunk-E6JCVKW6.js";
|
|
5
|
-
import {
|
|
6
|
-
asJsonObject,
|
|
7
|
-
booleanValue,
|
|
8
|
-
compactDefined,
|
|
9
|
-
finiteNumber,
|
|
10
|
-
trimmedText
|
|
11
|
-
} from "./chunk-JXHMDBAY.js";
|
|
12
|
-
import {
|
|
13
|
-
createProviderPlugin
|
|
14
|
-
} from "./chunk-ATK45BXV.js";
|
|
15
|
-
import "./chunk-U7B6DS2O.js";
|
|
16
|
-
import {
|
|
17
|
-
TBError,
|
|
18
|
-
external_exports
|
|
19
|
-
} from "./chunk-UZM2RXZH.js";
|
|
20
|
-
import "./chunk-U67V476Y.js";
|
|
21
|
-
|
|
22
|
-
// ../plugins/src/vercel/api.ts
|
|
23
|
-
var SERVICE = "vercel";
|
|
24
|
-
var API_BASE = "https://api.vercel.com";
|
|
25
|
-
var http = createAuthedClient({
|
|
26
|
-
baseUrl: API_BASE,
|
|
27
|
-
service: SERVICE,
|
|
28
|
-
auth: { kind: "bearer" },
|
|
29
|
-
// 错误体形如 `{ error: { code, message } }`,少数端点直接把 code/message 放在顶层。
|
|
30
|
-
// 两者都拿不到时:JSON 体不回显原文(那是整个错误 body,可能带上游内部细节),
|
|
31
|
-
// 非 JSON 体(HTML 错误页之类)才把原文当消息用 —— 这是上游 readVercelError 的兜底。
|
|
32
|
-
errorMessage: {
|
|
33
|
-
keys: ["error.message", "message"],
|
|
34
|
-
fallback: (status) => `Vercel \u8FD4\u56DE HTTP ${status}`
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
function stringArray(value) {
|
|
38
|
-
return Array.isArray(value) ? value.filter((item) => typeof item === "string") : void 0;
|
|
39
|
-
}
|
|
40
|
-
function flag(value) {
|
|
41
|
-
return value === void 0 ? void 0 : value ? "1" : "0";
|
|
42
|
-
}
|
|
43
|
-
function contractError(label) {
|
|
44
|
-
return new TBError("unavailable", `Vercel \u54CD\u5E94\u7F3A\u5C11\u6216\u7C7B\u578B\u4E0D\u7B26:${label}`, { retryable: true });
|
|
45
|
-
}
|
|
46
|
-
function requiredText(value, label) {
|
|
47
|
-
const result = trimmedText(value);
|
|
48
|
-
if (result === void 0) throw contractError(label);
|
|
49
|
-
return result;
|
|
50
|
-
}
|
|
51
|
-
function requiredNumber(value, label) {
|
|
52
|
-
const result = finiteNumber(value);
|
|
53
|
-
if (result === void 0) throw contractError(label);
|
|
54
|
-
return result;
|
|
55
|
-
}
|
|
56
|
-
function requiredRecord(value, label) {
|
|
57
|
-
const result = asJsonObject(value);
|
|
58
|
-
if (result === void 0) throw contractError(label);
|
|
59
|
-
return result;
|
|
60
|
-
}
|
|
61
|
-
function arrayPayload(payload, key) {
|
|
62
|
-
if (Array.isArray(payload)) return payload;
|
|
63
|
-
const value = asJsonObject(payload)?.[key];
|
|
64
|
-
return Array.isArray(value) ? value : [];
|
|
65
|
-
}
|
|
66
|
-
async function request(ctx, input) {
|
|
67
|
-
const hasBody = input.body !== void 0;
|
|
68
|
-
const { data } = await http.request(ctx, {
|
|
69
|
-
path: input.path,
|
|
70
|
-
method: input.method ?? "GET",
|
|
71
|
-
// 上游 `queryParams` 连空串一起跳过。
|
|
72
|
-
query: Object.entries(input.query ?? {}).filter(([, value]) => value !== void 0 && value !== ""),
|
|
73
|
-
...hasBody ? { json: input.body } : {},
|
|
74
|
-
invalidJsonMessage: "Vercel \u8FD4\u56DE\u4E86\u975E JSON \u54CD\u5E94"
|
|
75
|
-
});
|
|
76
|
-
return data ?? {};
|
|
77
|
-
}
|
|
78
|
-
function unwrap(payload, key) {
|
|
79
|
-
const body = requiredRecord(payload, key);
|
|
80
|
-
return asJsonObject(body[key]) ?? body;
|
|
81
|
-
}
|
|
82
|
-
function mapUser(payload) {
|
|
83
|
-
const user = unwrap(payload, "user");
|
|
84
|
-
return compactDefined({
|
|
85
|
-
// 上游在 id 缺失时报 502:没有 id 的 user 响应不能算成功。
|
|
86
|
-
id: requiredText(user.id, "user.id"),
|
|
87
|
-
username: trimmedText(user.username),
|
|
88
|
-
email: trimmedText(user.email),
|
|
89
|
-
name: trimmedText(user.name)
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
function mapTeam(payload) {
|
|
93
|
-
const team = unwrap(payload, "team");
|
|
94
|
-
return compactDefined({
|
|
95
|
-
id: requiredText(team.id, "team.id"),
|
|
96
|
-
slug: trimmedText(team.slug),
|
|
97
|
-
name: trimmedText(team.name),
|
|
98
|
-
createdAt: finiteNumber(team.createdAt),
|
|
99
|
-
updatedAt: finiteNumber(team.updatedAt)
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function mapDeployment(value) {
|
|
103
|
-
const deployment = requiredRecord(value, "deployment");
|
|
104
|
-
return compactDefined({
|
|
105
|
-
id: requiredText(deployment.id, "deployment.id"),
|
|
106
|
-
name: trimmedText(deployment.name),
|
|
107
|
-
url: trimmedText(deployment.url),
|
|
108
|
-
state: trimmedText(deployment.state),
|
|
109
|
-
readyState: trimmedText(deployment.readyState),
|
|
110
|
-
target: trimmedText(deployment.target),
|
|
111
|
-
createdAt: finiteNumber(deployment.createdAt),
|
|
112
|
-
ready: finiteNumber(deployment.ready),
|
|
113
|
-
projectId: trimmedText(deployment.projectId),
|
|
114
|
-
creator: asJsonObject(deployment.creator),
|
|
115
|
-
meta: asJsonObject(deployment.meta),
|
|
116
|
-
alias: stringArray(deployment.alias)
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function mapProject(value) {
|
|
120
|
-
const project = requiredRecord(value, "project");
|
|
121
|
-
return compactDefined({
|
|
122
|
-
id: requiredText(project.id, "project.id"),
|
|
123
|
-
name: requiredText(project.name, "project.name"),
|
|
124
|
-
accountId: trimmedText(project.accountId),
|
|
125
|
-
framework: trimmedText(project.framework),
|
|
126
|
-
nodeVersion: trimmedText(project.nodeVersion),
|
|
127
|
-
createdAt: finiteNumber(project.createdAt),
|
|
128
|
-
updatedAt: finiteNumber(project.updatedAt),
|
|
129
|
-
link: asJsonObject(project.link),
|
|
130
|
-
latestDeployments: Array.isArray(project.latestDeployments) ? project.latestDeployments.map((deployment) => mapDeployment(deployment)) : void 0
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function mapDeploymentEvent(value) {
|
|
134
|
-
const event = requiredRecord(value, "deployment event");
|
|
135
|
-
return {
|
|
136
|
-
created: requiredNumber(event.created, "event.created"),
|
|
137
|
-
type: requiredText(event.type, "event.type"),
|
|
138
|
-
payload: requiredRecord(event.payload, "event.payload")
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function mapRuntimeLog(value) {
|
|
142
|
-
const log = requiredRecord(value, "runtime log");
|
|
143
|
-
return compactDefined({
|
|
144
|
-
timestampInMs: requiredNumber(log.timestampInMs, "log.timestampInMs"),
|
|
145
|
-
level: requiredText(log.level, "log.level"),
|
|
146
|
-
message: requiredText(log.message, "log.message"),
|
|
147
|
-
source: requiredText(log.source, "log.source"),
|
|
148
|
-
requestMethod: trimmedText(log.requestMethod),
|
|
149
|
-
requestPath: trimmedText(log.requestPath),
|
|
150
|
-
responseStatusCode: finiteNumber(log.responseStatusCode)
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
function mapEnv(value) {
|
|
154
|
-
const env = requiredRecord(value, "env");
|
|
155
|
-
return compactDefined({
|
|
156
|
-
id: requiredText(env.id, "env.id"),
|
|
157
|
-
key: requiredText(env.key, "env.key"),
|
|
158
|
-
type: requiredText(env.type, "env.type"),
|
|
159
|
-
target: stringArray(env.target),
|
|
160
|
-
gitBranch: trimmedText(env.gitBranch),
|
|
161
|
-
createdAt: finiteNumber(env.createdAt),
|
|
162
|
-
updatedAt: finiteNumber(env.updatedAt),
|
|
163
|
-
comment: trimmedText(env.comment)
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
function mapDomain(value) {
|
|
167
|
-
const domain = requiredRecord(value, "domain");
|
|
168
|
-
return compactDefined({
|
|
169
|
-
name: requiredText(domain.name, "domain.name"),
|
|
170
|
-
apexName: trimmedText(domain.apexName),
|
|
171
|
-
verified: booleanValue(domain.verified),
|
|
172
|
-
verification: Array.isArray(domain.verification) ? domain.verification.map((item) => asJsonObject(item)).filter((item) => item !== void 0) : void 0,
|
|
173
|
-
// null 是"明确没有重定向",与"字段缺席"不是一回事。
|
|
174
|
-
redirect: domain.redirect === null ? null : trimmedText(domain.redirect),
|
|
175
|
-
gitBranch: trimmedText(domain.gitBranch),
|
|
176
|
-
customEnvironmentId: trimmedText(domain.customEnvironmentId)
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
function mapWebhook(value) {
|
|
180
|
-
const webhook = requiredRecord(value, "webhook");
|
|
181
|
-
return compactDefined({
|
|
182
|
-
id: requiredText(webhook.id, "webhook.id"),
|
|
183
|
-
url: requiredText(webhook.url, "webhook.url"),
|
|
184
|
-
events: stringArray(webhook.events),
|
|
185
|
-
projectIds: stringArray(webhook.projectIds),
|
|
186
|
-
teamId: trimmedText(webhook.teamId),
|
|
187
|
-
createdAt: finiteNumber(webhook.createdAt),
|
|
188
|
-
updatedAt: finiteNumber(webhook.updatedAt)
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
function pagination(payload) {
|
|
192
|
-
return asJsonObject(asJsonObject(payload)?.pagination);
|
|
193
|
-
}
|
|
194
|
-
function projectBody(input) {
|
|
195
|
-
return compactDefined({
|
|
196
|
-
name: trimmedText(input.name),
|
|
197
|
-
framework: trimmedText(input.framework),
|
|
198
|
-
rootDirectory: trimmedText(input.rootDirectory),
|
|
199
|
-
nodeVersion: trimmedText(input.nodeVersion),
|
|
200
|
-
buildCommand: trimmedText(input.buildCommand),
|
|
201
|
-
devCommand: trimmedText(input.devCommand),
|
|
202
|
-
installCommand: trimmedText(input.installCommand),
|
|
203
|
-
outputDirectory: trimmedText(input.outputDirectory),
|
|
204
|
-
directoryListing: booleanValue(input.directoryListing),
|
|
205
|
-
publicSource: booleanValue(input.publicSource),
|
|
206
|
-
gitForkProtection: booleanValue(input.gitForkProtection)
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
function envBody(input) {
|
|
210
|
-
return compactDefined({
|
|
211
|
-
key: trimmedText(input.key),
|
|
212
|
-
value: trimmedText(input.value),
|
|
213
|
-
type: trimmedText(input.type),
|
|
214
|
-
target: stringArray(input.target),
|
|
215
|
-
gitBranch: trimmedText(input.gitBranch),
|
|
216
|
-
comment: trimmedText(input.comment),
|
|
217
|
-
customEnvironmentIds: stringArray(input.customEnvironmentIds)
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function rejectSensitiveDevelopmentConflict(input) {
|
|
221
|
-
if (input.type === "sensitive" && input.target.includes("development")) {
|
|
222
|
-
throw new TBError("invalid_argument", "sensitive \u7C7B\u578B\u7684\u73AF\u5883\u53D8\u91CF\u4E0D\u652F\u6301 development target");
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
function seg(value) {
|
|
226
|
-
return encodeURIComponent(value);
|
|
227
|
-
}
|
|
228
|
-
async function getAuthUser(_input, ctx) {
|
|
229
|
-
return { user: mapUser(await request(ctx, { path: "/v2/user" })) };
|
|
230
|
-
}
|
|
231
|
-
async function listTeams(input, ctx) {
|
|
232
|
-
const payload = await request(ctx, {
|
|
233
|
-
path: "/v2/teams",
|
|
234
|
-
query: { limit: input.limit, since: input.since }
|
|
235
|
-
});
|
|
236
|
-
return compactDefined({
|
|
237
|
-
teams: arrayPayload(payload, "teams").map((team) => mapTeam(team)),
|
|
238
|
-
pagination: pagination(payload)
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
async function getTeam(input, ctx) {
|
|
242
|
-
return { team: mapTeam(await request(ctx, { path: `/v2/teams/${seg(input.teamId)}` })) };
|
|
243
|
-
}
|
|
244
|
-
async function listProjects(input, ctx) {
|
|
245
|
-
const payload = await request(ctx, {
|
|
246
|
-
path: "/v10/projects",
|
|
247
|
-
query: {
|
|
248
|
-
limit: input.limit,
|
|
249
|
-
since: input.since,
|
|
250
|
-
until: input.until,
|
|
251
|
-
repoUrl: trimmedText(input.repoUrl)
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
return compactDefined({
|
|
255
|
-
projects: arrayPayload(payload, "projects").map((project) => mapProject(project)),
|
|
256
|
-
pagination: pagination(payload)
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
async function getProject(input, ctx) {
|
|
260
|
-
return { project: mapProject(await request(ctx, { path: `/v9/projects/${seg(input.idOrName)}` })) };
|
|
261
|
-
}
|
|
262
|
-
async function createProject(input, ctx) {
|
|
263
|
-
const payload = await request(ctx, {
|
|
264
|
-
method: "POST",
|
|
265
|
-
path: "/v11/projects",
|
|
266
|
-
body: projectBody(input)
|
|
267
|
-
});
|
|
268
|
-
return { project: mapProject(payload) };
|
|
269
|
-
}
|
|
270
|
-
async function updateProject(input, ctx) {
|
|
271
|
-
const payload = await request(ctx, {
|
|
272
|
-
method: "PATCH",
|
|
273
|
-
path: `/v9/projects/${seg(input.idOrName)}`,
|
|
274
|
-
body: projectBody(input)
|
|
275
|
-
});
|
|
276
|
-
return { project: mapProject(payload) };
|
|
277
|
-
}
|
|
278
|
-
async function listDeployments(input, ctx) {
|
|
279
|
-
const payload = await request(ctx, {
|
|
280
|
-
path: "/v6/deployments",
|
|
281
|
-
query: {
|
|
282
|
-
limit: input.limit,
|
|
283
|
-
projectId: trimmedText(input.projectId),
|
|
284
|
-
since: input.since,
|
|
285
|
-
until: input.until,
|
|
286
|
-
target: trimmedText(input.target),
|
|
287
|
-
state: trimmedText(input.state)
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
return compactDefined({
|
|
291
|
-
deployments: arrayPayload(payload, "deployments").map((deployment) => mapDeployment(deployment)),
|
|
292
|
-
pagination: pagination(payload)
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
async function getDeployment(input, ctx) {
|
|
296
|
-
const payload = await request(ctx, {
|
|
297
|
-
path: `/v13/deployments/${seg(input.idOrUrl)}`,
|
|
298
|
-
// 这个端点收 true/false 字面量,不是 1/0(见文件头)。
|
|
299
|
-
query: { withGitRepoInfo: input.withGitRepoInfo }
|
|
300
|
-
});
|
|
301
|
-
return { deployment: mapDeployment(payload) };
|
|
302
|
-
}
|
|
303
|
-
async function getDeploymentEvents(input, ctx) {
|
|
304
|
-
const payload = await request(ctx, {
|
|
305
|
-
path: `/v3/deployments/${seg(input.idOrUrl)}/events`,
|
|
306
|
-
query: {
|
|
307
|
-
// 这个端点的布尔用 1/0 编码,与 get_deployment 不同。
|
|
308
|
-
builds: flag(input.builds),
|
|
309
|
-
direction: trimmedText(input.direction),
|
|
310
|
-
limit: input.limit,
|
|
311
|
-
since: input.since,
|
|
312
|
-
until: input.until
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
return { events: arrayPayload(payload, "events").map((event) => mapDeploymentEvent(event)) };
|
|
316
|
-
}
|
|
317
|
-
async function getRuntimeLogs(input, ctx) {
|
|
318
|
-
const payload = await request(ctx, {
|
|
319
|
-
path: `/v1/projects/${seg(input.projectId)}/deployments/${seg(input.deploymentId)}/runtime-logs`
|
|
320
|
-
});
|
|
321
|
-
return { logs: arrayPayload(payload, "logs").map((log) => mapRuntimeLog(log)) };
|
|
322
|
-
}
|
|
323
|
-
async function listProjectEnvs(input, ctx) {
|
|
324
|
-
const payload = await request(ctx, {
|
|
325
|
-
path: `/v10/projects/${seg(input.idOrName)}/env`,
|
|
326
|
-
query: {
|
|
327
|
-
customEnvironmentId: trimmedText(input.customEnvironmentId),
|
|
328
|
-
gitBranch: trimmedText(input.gitBranch)
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
return { envs: arrayPayload(payload, "envs").map((env) => mapEnv(env)) };
|
|
332
|
-
}
|
|
333
|
-
async function createProjectEnv(input, ctx) {
|
|
334
|
-
rejectSensitiveDevelopmentConflict(input);
|
|
335
|
-
const payload = await request(ctx, {
|
|
336
|
-
method: "POST",
|
|
337
|
-
path: `/v10/projects/${seg(input.idOrName)}/env`,
|
|
338
|
-
body: envBody(input)
|
|
339
|
-
});
|
|
340
|
-
return { envs: arrayPayload(payload, "envs").map((env) => mapEnv(env)) };
|
|
341
|
-
}
|
|
342
|
-
async function updateProjectEnv(input, ctx) {
|
|
343
|
-
rejectSensitiveDevelopmentConflict(input);
|
|
344
|
-
const payload = await request(ctx, {
|
|
345
|
-
method: "PATCH",
|
|
346
|
-
path: `/v9/projects/${seg(input.idOrName)}/env/${seg(input.id)}`,
|
|
347
|
-
body: envBody(input)
|
|
348
|
-
});
|
|
349
|
-
return { env: mapEnv(payload) };
|
|
350
|
-
}
|
|
351
|
-
async function deleteProjectEnv(input, ctx) {
|
|
352
|
-
const payload = await request(ctx, {
|
|
353
|
-
method: "DELETE",
|
|
354
|
-
path: `/v9/projects/${seg(input.idOrName)}/env/${seg(input.id)}`
|
|
355
|
-
});
|
|
356
|
-
return { envs: arrayPayload(payload, "envs").map((env) => mapEnv(env)) };
|
|
357
|
-
}
|
|
358
|
-
async function listProjectDomains(input, ctx) {
|
|
359
|
-
const payload = await request(ctx, {
|
|
360
|
-
path: `/v9/projects/${seg(input.idOrName)}/domains`,
|
|
361
|
-
query: {
|
|
362
|
-
limit: input.limit,
|
|
363
|
-
since: input.since,
|
|
364
|
-
until: input.until,
|
|
365
|
-
gitBranch: trimmedText(input.gitBranch),
|
|
366
|
-
customEnvironmentId: trimmedText(input.customEnvironmentId)
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
return compactDefined({
|
|
370
|
-
domains: arrayPayload(payload, "domains").map((domain) => mapDomain(domain)),
|
|
371
|
-
pagination: pagination(payload)
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
async function getProjectDomain(input, ctx) {
|
|
375
|
-
const payload = await request(ctx, {
|
|
376
|
-
path: `/v9/projects/${seg(input.idOrName)}/domains/${seg(input.domain)}`
|
|
377
|
-
});
|
|
378
|
-
return { domain: mapDomain(payload) };
|
|
379
|
-
}
|
|
380
|
-
async function addProjectDomain(input, ctx) {
|
|
381
|
-
const payload = await request(ctx, {
|
|
382
|
-
method: "POST",
|
|
383
|
-
path: `/v10/projects/${seg(input.idOrName)}/domains`,
|
|
384
|
-
body: compactDefined({
|
|
385
|
-
name: trimmedText(input.name),
|
|
386
|
-
redirect: trimmedText(input.redirect),
|
|
387
|
-
gitBranch: trimmedText(input.gitBranch),
|
|
388
|
-
customEnvironmentId: trimmedText(input.customEnvironmentId)
|
|
389
|
-
})
|
|
390
|
-
});
|
|
391
|
-
return { domain: mapDomain(payload) };
|
|
392
|
-
}
|
|
393
|
-
async function verifyProjectDomain(input, ctx) {
|
|
394
|
-
const payload = await request(ctx, {
|
|
395
|
-
method: "POST",
|
|
396
|
-
path: `/v9/projects/${seg(input.idOrName)}/domains/${seg(input.domain)}/verify`
|
|
397
|
-
});
|
|
398
|
-
return { domain: mapDomain(payload) };
|
|
399
|
-
}
|
|
400
|
-
async function getDomainConfig(input, ctx) {
|
|
401
|
-
const payload = requiredRecord(
|
|
402
|
-
await request(ctx, { path: `/v6/domains/${seg(input.domain)}/config` }),
|
|
403
|
-
"domain config"
|
|
404
|
-
);
|
|
405
|
-
return compactDefined({
|
|
406
|
-
configuredBy: trimmedText(payload.configuredBy),
|
|
407
|
-
acceptedChallenges: stringArray(payload.acceptedChallenges),
|
|
408
|
-
misconfigured: booleanValue(payload.misconfigured),
|
|
409
|
-
recommendedNameServers: stringArray(payload.recommendedNameServers)
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
async function listWebhooks(_input, ctx) {
|
|
413
|
-
const payload = await request(ctx, { path: "/v1/webhooks" });
|
|
414
|
-
return { webhooks: arrayPayload(payload, "webhooks").map((webhook) => mapWebhook(webhook)) };
|
|
415
|
-
}
|
|
416
|
-
async function getWebhook(input, ctx) {
|
|
417
|
-
return { webhook: mapWebhook(await request(ctx, { path: `/v1/webhooks/${seg(input.id)}` })) };
|
|
418
|
-
}
|
|
419
|
-
async function createWebhook(input, ctx) {
|
|
420
|
-
const payload = await request(ctx, {
|
|
421
|
-
method: "POST",
|
|
422
|
-
path: "/v1/webhooks",
|
|
423
|
-
body: compactDefined({
|
|
424
|
-
url: trimmedText(input.url),
|
|
425
|
-
events: stringArray(input.events),
|
|
426
|
-
projectIds: stringArray(input.projectIds)
|
|
427
|
-
})
|
|
428
|
-
});
|
|
429
|
-
return { webhook: mapWebhook(payload) };
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
// ../plugins/src/vercel/schema.ts
|
|
433
|
-
var getAuthUserInput = external_exports.strictObject({}).describe("Vercel action input.");
|
|
434
|
-
var getAuthUserOutput = external_exports.strictObject({
|
|
435
|
-
user: external_exports.strictObject({
|
|
436
|
-
id: external_exports.string().describe("Vercel user ID.").optional(),
|
|
437
|
-
username: external_exports.string().describe("Vercel username.").optional(),
|
|
438
|
-
email: external_exports.string().describe("Vercel account email address.").optional(),
|
|
439
|
-
name: external_exports.string().describe("Vercel display name.").optional()
|
|
440
|
-
}).describe("Vercel user.")
|
|
441
|
-
});
|
|
442
|
-
var listTeamsInput = external_exports.strictObject({
|
|
443
|
-
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
444
|
-
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional()
|
|
445
|
-
}).describe("Vercel action input.");
|
|
446
|
-
var listTeamsOutput = external_exports.strictObject({
|
|
447
|
-
teams: external_exports.array(external_exports.looseObject({
|
|
448
|
-
id: external_exports.string().describe("Vercel team ID.").optional(),
|
|
449
|
-
slug: external_exports.string().describe("Vercel team slug.").optional(),
|
|
450
|
-
name: external_exports.string().describe("Vercel team display name.").optional(),
|
|
451
|
-
createdAt: external_exports.number().describe("Team creation timestamp in milliseconds.").optional(),
|
|
452
|
-
updatedAt: external_exports.number().describe("Last team update timestamp in milliseconds.").optional()
|
|
453
|
-
}).describe("Vercel team.")).describe("Vercel teams available to the authenticated user.").optional(),
|
|
454
|
-
pagination: external_exports.looseObject({
|
|
455
|
-
count: external_exports.number().describe("Number of items returned in this page.").optional(),
|
|
456
|
-
next: external_exports.number().describe("Pagination cursor for the next page, or null when there is no next page.").nullable().optional(),
|
|
457
|
-
prev: external_exports.number().describe("Pagination cursor for the previous page, or null when there is no previous page.").nullable().optional()
|
|
458
|
-
}).describe("Vercel pagination information.").optional()
|
|
459
|
-
});
|
|
460
|
-
var getTeamInput = external_exports.strictObject({
|
|
461
|
-
teamId: external_exports.string().min(1).describe("Vercel team ID or team slug.")
|
|
462
|
-
}).describe("Vercel action input.");
|
|
463
|
-
var getTeamOutput = external_exports.strictObject({
|
|
464
|
-
team: external_exports.looseObject({
|
|
465
|
-
id: external_exports.string().describe("Vercel team ID.").optional(),
|
|
466
|
-
slug: external_exports.string().describe("Vercel team slug.").optional(),
|
|
467
|
-
name: external_exports.string().describe("Vercel team display name.").optional(),
|
|
468
|
-
createdAt: external_exports.number().describe("Team creation timestamp in milliseconds.").optional(),
|
|
469
|
-
updatedAt: external_exports.number().describe("Last team update timestamp in milliseconds.").optional()
|
|
470
|
-
}).describe("Vercel team.")
|
|
471
|
-
});
|
|
472
|
-
var listProjectsInput = external_exports.strictObject({
|
|
473
|
-
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
474
|
-
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional(),
|
|
475
|
-
until: external_exports.int().describe("Pagination cursor for results created before this timestamp.").optional(),
|
|
476
|
-
repoUrl: external_exports.url().describe("Repository URL used to filter projects.").optional()
|
|
477
|
-
}).describe("Vercel action input.");
|
|
478
|
-
var listProjectsOutput = external_exports.strictObject({
|
|
479
|
-
projects: external_exports.array(external_exports.strictObject({
|
|
480
|
-
id: external_exports.string().describe("Vercel project ID."),
|
|
481
|
-
name: external_exports.string().describe("Vercel project name."),
|
|
482
|
-
accountId: external_exports.string().describe("Owning account ID for the project.").optional(),
|
|
483
|
-
framework: external_exports.string().describe("Detected framework for the project.").optional(),
|
|
484
|
-
nodeVersion: external_exports.string().describe("Configured Node.js version for the project.").optional(),
|
|
485
|
-
createdAt: external_exports.number().describe("Project creation timestamp in milliseconds.").optional(),
|
|
486
|
-
updatedAt: external_exports.number().describe("Last project update timestamp in milliseconds.").optional(),
|
|
487
|
-
link: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
488
|
-
latestDeployments: external_exports.array(external_exports.looseObject({
|
|
489
|
-
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
490
|
-
name: external_exports.string().describe("Deployment name.").optional(),
|
|
491
|
-
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
492
|
-
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
493
|
-
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
494
|
-
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
495
|
-
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
496
|
-
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
497
|
-
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
498
|
-
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
499
|
-
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
500
|
-
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
501
|
-
}).describe("Vercel deployment summary.")).describe("Most recent deployments attached to the project.").optional()
|
|
502
|
-
}).describe("Vercel project.")).describe("Vercel projects.").optional(),
|
|
503
|
-
pagination: external_exports.looseObject({
|
|
504
|
-
count: external_exports.number().describe("Number of items returned in this page.").optional(),
|
|
505
|
-
next: external_exports.number().describe("Pagination cursor for the next page, or null when there is no next page.").nullable().optional(),
|
|
506
|
-
prev: external_exports.number().describe("Pagination cursor for the previous page, or null when there is no previous page.").nullable().optional()
|
|
507
|
-
}).describe("Vercel pagination information.").optional()
|
|
508
|
-
});
|
|
509
|
-
var getProjectInput = external_exports.strictObject({
|
|
510
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name.")
|
|
511
|
-
}).describe("Vercel action input.");
|
|
512
|
-
var getProjectOutput = external_exports.strictObject({
|
|
513
|
-
project: external_exports.strictObject({
|
|
514
|
-
id: external_exports.string().describe("Vercel project ID."),
|
|
515
|
-
name: external_exports.string().describe("Vercel project name."),
|
|
516
|
-
accountId: external_exports.string().describe("Owning account ID for the project.").optional(),
|
|
517
|
-
framework: external_exports.string().describe("Detected framework for the project.").optional(),
|
|
518
|
-
nodeVersion: external_exports.string().describe("Configured Node.js version for the project.").optional(),
|
|
519
|
-
createdAt: external_exports.number().describe("Project creation timestamp in milliseconds.").optional(),
|
|
520
|
-
updatedAt: external_exports.number().describe("Last project update timestamp in milliseconds.").optional(),
|
|
521
|
-
link: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
522
|
-
latestDeployments: external_exports.array(external_exports.looseObject({
|
|
523
|
-
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
524
|
-
name: external_exports.string().describe("Deployment name.").optional(),
|
|
525
|
-
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
526
|
-
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
527
|
-
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
528
|
-
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
529
|
-
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
530
|
-
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
531
|
-
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
532
|
-
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
533
|
-
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
534
|
-
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
535
|
-
}).describe("Vercel deployment summary.")).describe("Most recent deployments attached to the project.").optional()
|
|
536
|
-
}).describe("Vercel project.")
|
|
537
|
-
});
|
|
538
|
-
var createProjectInput = external_exports.strictObject({
|
|
539
|
-
name: external_exports.string().min(1).describe("Vercel project name."),
|
|
540
|
-
framework: external_exports.string().min(1).describe("Framework to set on the project.").optional(),
|
|
541
|
-
rootDirectory: external_exports.string().min(1).describe("Root directory for the project.").optional(),
|
|
542
|
-
nodeVersion: external_exports.string().min(1).describe("Node.js version to use for the project.").optional(),
|
|
543
|
-
buildCommand: external_exports.string().min(1).describe("Build command for the project.").optional(),
|
|
544
|
-
devCommand: external_exports.string().min(1).describe("Development command for the project.").optional(),
|
|
545
|
-
installCommand: external_exports.string().min(1).describe("Install command for the project.").optional(),
|
|
546
|
-
outputDirectory: external_exports.string().min(1).describe("Output directory for the project build.").optional(),
|
|
547
|
-
directoryListing: external_exports.boolean().describe("Whether directory listing is enabled for the project.").optional(),
|
|
548
|
-
publicSource: external_exports.boolean().describe("Whether the project source is public.").optional(),
|
|
549
|
-
gitForkProtection: external_exports.boolean().describe("Whether Git fork protection is enabled for the project.").optional()
|
|
550
|
-
}).describe("Vercel action input.");
|
|
551
|
-
var createProjectOutput = external_exports.strictObject({
|
|
552
|
-
project: external_exports.strictObject({
|
|
553
|
-
id: external_exports.string().describe("Vercel project ID."),
|
|
554
|
-
name: external_exports.string().describe("Vercel project name."),
|
|
555
|
-
accountId: external_exports.string().describe("Owning account ID for the project.").optional(),
|
|
556
|
-
framework: external_exports.string().describe("Detected framework for the project.").optional(),
|
|
557
|
-
nodeVersion: external_exports.string().describe("Configured Node.js version for the project.").optional(),
|
|
558
|
-
createdAt: external_exports.number().describe("Project creation timestamp in milliseconds.").optional(),
|
|
559
|
-
updatedAt: external_exports.number().describe("Last project update timestamp in milliseconds.").optional(),
|
|
560
|
-
link: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
561
|
-
latestDeployments: external_exports.array(external_exports.looseObject({
|
|
562
|
-
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
563
|
-
name: external_exports.string().describe("Deployment name.").optional(),
|
|
564
|
-
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
565
|
-
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
566
|
-
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
567
|
-
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
568
|
-
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
569
|
-
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
570
|
-
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
571
|
-
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
572
|
-
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
573
|
-
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
574
|
-
}).describe("Vercel deployment summary.")).describe("Most recent deployments attached to the project.").optional()
|
|
575
|
-
}).describe("Vercel project.")
|
|
576
|
-
});
|
|
577
|
-
var updateProjectInput = external_exports.strictObject({
|
|
578
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
579
|
-
name: external_exports.string().min(1).describe("Vercel project name.").optional(),
|
|
580
|
-
framework: external_exports.string().min(1).describe("Framework to set on the project.").optional(),
|
|
581
|
-
rootDirectory: external_exports.string().min(1).describe("Root directory for the project.").optional(),
|
|
582
|
-
nodeVersion: external_exports.string().min(1).describe("Node.js version to use for the project.").optional(),
|
|
583
|
-
buildCommand: external_exports.string().min(1).describe("Build command for the project.").optional(),
|
|
584
|
-
devCommand: external_exports.string().min(1).describe("Development command for the project.").optional(),
|
|
585
|
-
installCommand: external_exports.string().min(1).describe("Install command for the project.").optional(),
|
|
586
|
-
outputDirectory: external_exports.string().min(1).describe("Output directory for the project build.").optional(),
|
|
587
|
-
directoryListing: external_exports.boolean().describe("Whether directory listing is enabled for the project.").optional(),
|
|
588
|
-
publicSource: external_exports.boolean().describe("Whether the project source is public.").optional(),
|
|
589
|
-
gitForkProtection: external_exports.boolean().describe("Whether Git fork protection is enabled for the project.").optional()
|
|
590
|
-
}).describe("Vercel action input.");
|
|
591
|
-
var updateProjectOutput = external_exports.strictObject({
|
|
592
|
-
project: external_exports.strictObject({
|
|
593
|
-
id: external_exports.string().describe("Vercel project ID."),
|
|
594
|
-
name: external_exports.string().describe("Vercel project name."),
|
|
595
|
-
accountId: external_exports.string().describe("Owning account ID for the project.").optional(),
|
|
596
|
-
framework: external_exports.string().describe("Detected framework for the project.").optional(),
|
|
597
|
-
nodeVersion: external_exports.string().describe("Configured Node.js version for the project.").optional(),
|
|
598
|
-
createdAt: external_exports.number().describe("Project creation timestamp in milliseconds.").optional(),
|
|
599
|
-
updatedAt: external_exports.number().describe("Last project update timestamp in milliseconds.").optional(),
|
|
600
|
-
link: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
601
|
-
latestDeployments: external_exports.array(external_exports.looseObject({
|
|
602
|
-
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
603
|
-
name: external_exports.string().describe("Deployment name.").optional(),
|
|
604
|
-
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
605
|
-
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
606
|
-
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
607
|
-
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
608
|
-
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
609
|
-
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
610
|
-
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
611
|
-
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
612
|
-
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
613
|
-
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
614
|
-
}).describe("Vercel deployment summary.")).describe("Most recent deployments attached to the project.").optional()
|
|
615
|
-
}).describe("Vercel project.")
|
|
616
|
-
});
|
|
617
|
-
var listDeploymentsInput = external_exports.strictObject({
|
|
618
|
-
projectId: external_exports.string().min(1).describe("Vercel project ID.").optional(),
|
|
619
|
-
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
620
|
-
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional(),
|
|
621
|
-
until: external_exports.int().describe("Pagination cursor for results created before this timestamp.").optional(),
|
|
622
|
-
target: external_exports.string().min(1).describe("Deployment target such as production or preview.").optional(),
|
|
623
|
-
state: external_exports.string().min(1).describe("Deployment state to filter by.").optional()
|
|
624
|
-
}).describe("Vercel action input.");
|
|
625
|
-
var listDeploymentsOutput = external_exports.strictObject({
|
|
626
|
-
deployments: external_exports.array(external_exports.looseObject({
|
|
627
|
-
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
628
|
-
name: external_exports.string().describe("Deployment name.").optional(),
|
|
629
|
-
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
630
|
-
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
631
|
-
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
632
|
-
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
633
|
-
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
634
|
-
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
635
|
-
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
636
|
-
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
637
|
-
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
638
|
-
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
639
|
-
}).describe("Vercel deployment summary.")).describe("Vercel deployments.").optional(),
|
|
640
|
-
pagination: external_exports.looseObject({
|
|
641
|
-
count: external_exports.number().describe("Number of items returned in this page.").optional(),
|
|
642
|
-
next: external_exports.number().describe("Pagination cursor for the next page, or null when there is no next page.").nullable().optional(),
|
|
643
|
-
prev: external_exports.number().describe("Pagination cursor for the previous page, or null when there is no previous page.").nullable().optional()
|
|
644
|
-
}).describe("Vercel pagination information.").optional()
|
|
645
|
-
});
|
|
646
|
-
var getDeploymentInput = external_exports.strictObject({
|
|
647
|
-
idOrUrl: external_exports.string().min(1).describe("Vercel deployment ID or deployment URL."),
|
|
648
|
-
withGitRepoInfo: external_exports.boolean().describe("When true, include Git repository metadata in the deployment response.").optional()
|
|
649
|
-
}).describe("Vercel action input.");
|
|
650
|
-
var getDeploymentOutput = external_exports.strictObject({
|
|
651
|
-
deployment: external_exports.looseObject({
|
|
652
|
-
id: external_exports.string().describe("Vercel deployment ID.").optional(),
|
|
653
|
-
name: external_exports.string().describe("Deployment name.").optional(),
|
|
654
|
-
url: external_exports.string().describe("Deployment URL.").optional(),
|
|
655
|
-
state: external_exports.string().describe("Deployment state reported by Vercel.").optional(),
|
|
656
|
-
readyState: external_exports.string().describe("Deployment readiness state reported by Vercel.").optional(),
|
|
657
|
-
target: external_exports.string().describe("Deployment target such as production or preview.").optional(),
|
|
658
|
-
createdAt: external_exports.number().describe("Deployment creation timestamp in milliseconds.").optional(),
|
|
659
|
-
ready: external_exports.number().describe("Deployment ready timestamp in milliseconds.").optional(),
|
|
660
|
-
projectId: external_exports.string().describe("Vercel project ID for the deployment.").optional(),
|
|
661
|
-
creator: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
662
|
-
meta: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.").optional(),
|
|
663
|
-
alias: external_exports.array(external_exports.string()).describe("Aliases currently assigned to the deployment.").optional()
|
|
664
|
-
}).describe("Vercel deployment summary.")
|
|
665
|
-
});
|
|
666
|
-
var getDeploymentEventsInput = external_exports.strictObject({
|
|
667
|
-
idOrUrl: external_exports.string().min(1).describe("Vercel deployment ID or deployment URL."),
|
|
668
|
-
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
669
|
-
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional(),
|
|
670
|
-
until: external_exports.int().describe("Pagination cursor for results created before this timestamp.").optional(),
|
|
671
|
-
direction: external_exports.enum(["forward", "backward"]).describe("Order in which to return deployment events.").optional(),
|
|
672
|
-
builds: external_exports.boolean().describe("When true, include build events in the response.").optional()
|
|
673
|
-
}).describe("Vercel action input.");
|
|
674
|
-
var getDeploymentEventsOutput = external_exports.strictObject({
|
|
675
|
-
events: external_exports.array(external_exports.strictObject({
|
|
676
|
-
created: external_exports.number().describe("Deployment event timestamp in milliseconds."),
|
|
677
|
-
type: external_exports.string().describe("Deployment event type."),
|
|
678
|
-
payload: external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")
|
|
679
|
-
}).describe("Vercel deployment event.")).describe("Deployment events returned by Vercel.").optional()
|
|
680
|
-
});
|
|
681
|
-
var getRuntimeLogsInput = external_exports.strictObject({
|
|
682
|
-
projectId: external_exports.string().min(1).describe("Vercel project ID."),
|
|
683
|
-
deploymentId: external_exports.string().min(1).describe("Vercel deployment ID.")
|
|
684
|
-
}).describe("Vercel action input.");
|
|
685
|
-
var getRuntimeLogsOutput = external_exports.strictObject({
|
|
686
|
-
logs: external_exports.array(external_exports.strictObject({
|
|
687
|
-
timestampInMs: external_exports.number().describe("Runtime log timestamp in milliseconds."),
|
|
688
|
-
level: external_exports.string().describe("Runtime log level."),
|
|
689
|
-
message: external_exports.string().describe("Runtime log message."),
|
|
690
|
-
source: external_exports.string().describe("Runtime log source."),
|
|
691
|
-
requestMethod: external_exports.string().describe("HTTP method for the runtime log entry, when present.").optional(),
|
|
692
|
-
requestPath: external_exports.string().describe("HTTP request path for the runtime log entry, when present.").optional(),
|
|
693
|
-
responseStatusCode: external_exports.number().describe("HTTP response status code for the runtime log entry, when present.").optional()
|
|
694
|
-
}).describe("Vercel runtime log entry.")).describe("Runtime log entries returned by Vercel.").optional()
|
|
695
|
-
});
|
|
696
|
-
var listProjectEnvsInput = external_exports.strictObject({
|
|
697
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
698
|
-
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
699
|
-
customEnvironmentId: external_exports.string().min(1).describe("Vercel custom environment ID.").optional()
|
|
700
|
-
}).describe("Vercel action input.");
|
|
701
|
-
var listProjectEnvsOutput = external_exports.strictObject({
|
|
702
|
-
envs: external_exports.array(external_exports.strictObject({
|
|
703
|
-
id: external_exports.string().describe("Vercel environment variable ID."),
|
|
704
|
-
key: external_exports.string().describe("Environment variable name."),
|
|
705
|
-
type: external_exports.string().describe("Environment variable type."),
|
|
706
|
-
target: external_exports.array(external_exports.string()).describe("Deployment targets that receive this environment variable.").optional(),
|
|
707
|
-
gitBranch: external_exports.string().describe("Git branch name scoped to this environment variable, when present.").optional(),
|
|
708
|
-
createdAt: external_exports.number().describe("Environment variable creation timestamp in milliseconds.").optional(),
|
|
709
|
-
updatedAt: external_exports.number().describe("Last environment variable update timestamp in milliseconds.").optional(),
|
|
710
|
-
comment: external_exports.string().describe("Comment attached to the environment variable, when present.").optional()
|
|
711
|
-
}).describe("Vercel environment variable.")).describe("Environment variables configured on the project.").optional()
|
|
712
|
-
});
|
|
713
|
-
var createProjectEnvInput = external_exports.strictObject({
|
|
714
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
715
|
-
key: external_exports.string().min(1).describe("Environment variable name."),
|
|
716
|
-
value: external_exports.string().min(1).describe("Environment variable value."),
|
|
717
|
-
type: external_exports.enum(["plain", "secret", "system", "encrypted", "sensitive"]).describe("Environment variable type."),
|
|
718
|
-
target: external_exports.array(external_exports.enum(["production", "preview", "development"])).min(1).describe("Deployment targets that should receive this environment variable."),
|
|
719
|
-
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
720
|
-
comment: external_exports.string().min(1).describe("Optional comment for the environment variable.").optional(),
|
|
721
|
-
customEnvironmentIds: external_exports.array(external_exports.string().min(1)).describe("Custom environment IDs that should receive this environment variable.").optional()
|
|
722
|
-
}).describe("Vercel action input.");
|
|
723
|
-
var createProjectEnvOutput = external_exports.strictObject({
|
|
724
|
-
envs: external_exports.array(external_exports.strictObject({
|
|
725
|
-
id: external_exports.string().describe("Vercel environment variable ID."),
|
|
726
|
-
key: external_exports.string().describe("Environment variable name."),
|
|
727
|
-
type: external_exports.string().describe("Environment variable type."),
|
|
728
|
-
target: external_exports.array(external_exports.string()).describe("Deployment targets that receive this environment variable.").optional(),
|
|
729
|
-
gitBranch: external_exports.string().describe("Git branch name scoped to this environment variable, when present.").optional(),
|
|
730
|
-
createdAt: external_exports.number().describe("Environment variable creation timestamp in milliseconds.").optional(),
|
|
731
|
-
updatedAt: external_exports.number().describe("Last environment variable update timestamp in milliseconds.").optional(),
|
|
732
|
-
comment: external_exports.string().describe("Comment attached to the environment variable, when present.").optional()
|
|
733
|
-
}).describe("Vercel environment variable.")).describe("Environment variables returned by Vercel after creation.").optional()
|
|
734
|
-
});
|
|
735
|
-
var updateProjectEnvInput = external_exports.strictObject({
|
|
736
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
737
|
-
id: external_exports.string().min(1).describe("Vercel environment variable ID."),
|
|
738
|
-
key: external_exports.string().min(1).describe("Environment variable name."),
|
|
739
|
-
value: external_exports.string().min(1).describe("Environment variable value."),
|
|
740
|
-
type: external_exports.enum(["plain", "secret", "system", "encrypted", "sensitive"]).describe("Environment variable type."),
|
|
741
|
-
target: external_exports.array(external_exports.enum(["production", "preview", "development"])).min(1).describe("Deployment targets that should receive this environment variable."),
|
|
742
|
-
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
743
|
-
comment: external_exports.string().min(1).describe("Optional comment for the environment variable.").optional(),
|
|
744
|
-
customEnvironmentIds: external_exports.array(external_exports.string().min(1)).describe("Custom environment IDs that should receive this environment variable.").optional()
|
|
745
|
-
}).describe("Vercel action input.");
|
|
746
|
-
var updateProjectEnvOutput = external_exports.strictObject({
|
|
747
|
-
env: external_exports.strictObject({
|
|
748
|
-
id: external_exports.string().describe("Vercel environment variable ID."),
|
|
749
|
-
key: external_exports.string().describe("Environment variable name."),
|
|
750
|
-
type: external_exports.string().describe("Environment variable type."),
|
|
751
|
-
target: external_exports.array(external_exports.string()).describe("Deployment targets that receive this environment variable.").optional(),
|
|
752
|
-
gitBranch: external_exports.string().describe("Git branch name scoped to this environment variable, when present.").optional(),
|
|
753
|
-
createdAt: external_exports.number().describe("Environment variable creation timestamp in milliseconds.").optional(),
|
|
754
|
-
updatedAt: external_exports.number().describe("Last environment variable update timestamp in milliseconds.").optional(),
|
|
755
|
-
comment: external_exports.string().describe("Comment attached to the environment variable, when present.").optional()
|
|
756
|
-
}).describe("Vercel environment variable.")
|
|
757
|
-
});
|
|
758
|
-
var deleteProjectEnvInput = external_exports.strictObject({
|
|
759
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
760
|
-
id: external_exports.string().min(1).describe("Vercel environment variable ID.")
|
|
761
|
-
}).describe("Vercel action input.");
|
|
762
|
-
var deleteProjectEnvOutput = external_exports.strictObject({
|
|
763
|
-
envs: external_exports.array(external_exports.strictObject({
|
|
764
|
-
id: external_exports.string().describe("Vercel environment variable ID."),
|
|
765
|
-
key: external_exports.string().describe("Environment variable name."),
|
|
766
|
-
type: external_exports.string().describe("Environment variable type."),
|
|
767
|
-
target: external_exports.array(external_exports.string()).describe("Deployment targets that receive this environment variable.").optional(),
|
|
768
|
-
gitBranch: external_exports.string().describe("Git branch name scoped to this environment variable, when present.").optional(),
|
|
769
|
-
createdAt: external_exports.number().describe("Environment variable creation timestamp in milliseconds.").optional(),
|
|
770
|
-
updatedAt: external_exports.number().describe("Last environment variable update timestamp in milliseconds.").optional(),
|
|
771
|
-
comment: external_exports.string().describe("Comment attached to the environment variable, when present.").optional()
|
|
772
|
-
}).describe("Vercel environment variable.")).describe("Environment variables returned by Vercel after deletion.").optional()
|
|
773
|
-
});
|
|
774
|
-
var listProjectDomainsInput = external_exports.strictObject({
|
|
775
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
776
|
-
limit: external_exports.int().min(1).max(100).describe("Maximum number of results to return.").optional(),
|
|
777
|
-
since: external_exports.int().describe("Pagination cursor for results created after this timestamp.").optional(),
|
|
778
|
-
until: external_exports.int().describe("Pagination cursor for results created before this timestamp.").optional(),
|
|
779
|
-
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
780
|
-
customEnvironmentId: external_exports.string().min(1).describe("Vercel custom environment ID.").optional()
|
|
781
|
-
}).describe("Vercel action input.");
|
|
782
|
-
var listProjectDomainsOutput = external_exports.strictObject({
|
|
783
|
-
domains: external_exports.array(external_exports.strictObject({
|
|
784
|
-
name: external_exports.string().describe("Domain name."),
|
|
785
|
-
apexName: external_exports.string().describe("Apex domain name.").optional(),
|
|
786
|
-
verified: external_exports.boolean().describe("Whether the domain is verified in Vercel.").optional(),
|
|
787
|
-
verification: external_exports.array(external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")).describe("Raw domain verification records returned by Vercel.").optional(),
|
|
788
|
-
redirect: external_exports.string().describe("Redirect target configured for the domain, or null when no redirect is set.").nullable().optional(),
|
|
789
|
-
gitBranch: external_exports.string().describe("Git branch associated with the domain, when present.").optional(),
|
|
790
|
-
customEnvironmentId: external_exports.string().describe("Custom environment ID associated with the domain, when present.").optional()
|
|
791
|
-
}).describe("Vercel project domain.")).describe("Domains attached to the project.").optional(),
|
|
792
|
-
pagination: external_exports.looseObject({
|
|
793
|
-
count: external_exports.number().describe("Number of items returned in this page.").optional(),
|
|
794
|
-
next: external_exports.number().describe("Pagination cursor for the next page, or null when there is no next page.").nullable().optional(),
|
|
795
|
-
prev: external_exports.number().describe("Pagination cursor for the previous page, or null when there is no previous page.").nullable().optional()
|
|
796
|
-
}).describe("Vercel pagination information.").optional()
|
|
797
|
-
});
|
|
798
|
-
var getProjectDomainInput = external_exports.strictObject({
|
|
799
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
800
|
-
domain: external_exports.string().min(1).describe("Domain name.")
|
|
801
|
-
}).describe("Vercel action input.");
|
|
802
|
-
var getProjectDomainOutput = external_exports.strictObject({
|
|
803
|
-
domain: external_exports.strictObject({
|
|
804
|
-
name: external_exports.string().describe("Domain name."),
|
|
805
|
-
apexName: external_exports.string().describe("Apex domain name.").optional(),
|
|
806
|
-
verified: external_exports.boolean().describe("Whether the domain is verified in Vercel.").optional(),
|
|
807
|
-
verification: external_exports.array(external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")).describe("Raw domain verification records returned by Vercel.").optional(),
|
|
808
|
-
redirect: external_exports.string().describe("Redirect target configured for the domain, or null when no redirect is set.").nullable().optional(),
|
|
809
|
-
gitBranch: external_exports.string().describe("Git branch associated with the domain, when present.").optional(),
|
|
810
|
-
customEnvironmentId: external_exports.string().describe("Custom environment ID associated with the domain, when present.").optional()
|
|
811
|
-
}).describe("Vercel project domain.")
|
|
812
|
-
});
|
|
813
|
-
var addProjectDomainInput = external_exports.strictObject({
|
|
814
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
815
|
-
name: external_exports.string().min(1).describe("Domain name to add to the project."),
|
|
816
|
-
redirect: external_exports.string().min(1).describe("Redirect target for the domain.").optional(),
|
|
817
|
-
gitBranch: external_exports.string().min(1).describe("Git branch name.").optional(),
|
|
818
|
-
customEnvironmentId: external_exports.string().min(1).describe("Vercel custom environment ID.").optional()
|
|
819
|
-
}).describe("Vercel action input.");
|
|
820
|
-
var addProjectDomainOutput = external_exports.strictObject({
|
|
821
|
-
domain: external_exports.strictObject({
|
|
822
|
-
name: external_exports.string().describe("Domain name."),
|
|
823
|
-
apexName: external_exports.string().describe("Apex domain name.").optional(),
|
|
824
|
-
verified: external_exports.boolean().describe("Whether the domain is verified in Vercel.").optional(),
|
|
825
|
-
verification: external_exports.array(external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")).describe("Raw domain verification records returned by Vercel.").optional(),
|
|
826
|
-
redirect: external_exports.string().describe("Redirect target configured for the domain, or null when no redirect is set.").nullable().optional(),
|
|
827
|
-
gitBranch: external_exports.string().describe("Git branch associated with the domain, when present.").optional(),
|
|
828
|
-
customEnvironmentId: external_exports.string().describe("Custom environment ID associated with the domain, when present.").optional()
|
|
829
|
-
}).describe("Vercel project domain.")
|
|
830
|
-
});
|
|
831
|
-
var verifyProjectDomainInput = external_exports.strictObject({
|
|
832
|
-
idOrName: external_exports.string().min(1).describe("Vercel project ID or project name."),
|
|
833
|
-
domain: external_exports.string().min(1).describe("Domain name.")
|
|
834
|
-
}).describe("Vercel action input.");
|
|
835
|
-
var verifyProjectDomainOutput = external_exports.strictObject({
|
|
836
|
-
domain: external_exports.strictObject({
|
|
837
|
-
name: external_exports.string().describe("Domain name."),
|
|
838
|
-
apexName: external_exports.string().describe("Apex domain name.").optional(),
|
|
839
|
-
verified: external_exports.boolean().describe("Whether the domain is verified in Vercel.").optional(),
|
|
840
|
-
verification: external_exports.array(external_exports.looseObject({}).describe("Raw object payload returned by Vercel.")).describe("Raw domain verification records returned by Vercel.").optional(),
|
|
841
|
-
redirect: external_exports.string().describe("Redirect target configured for the domain, or null when no redirect is set.").nullable().optional(),
|
|
842
|
-
gitBranch: external_exports.string().describe("Git branch associated with the domain, when present.").optional(),
|
|
843
|
-
customEnvironmentId: external_exports.string().describe("Custom environment ID associated with the domain, when present.").optional()
|
|
844
|
-
}).describe("Vercel project domain.")
|
|
845
|
-
});
|
|
846
|
-
var getDomainConfigInput = external_exports.strictObject({
|
|
847
|
-
domain: external_exports.string().min(1).describe("Domain name.")
|
|
848
|
-
}).describe("Vercel action input.");
|
|
849
|
-
var getDomainConfigOutput = external_exports.strictObject({
|
|
850
|
-
configuredBy: external_exports.string().describe("Party that configured the domain.").optional(),
|
|
851
|
-
acceptedChallenges: external_exports.array(external_exports.string()).describe("Domain verification challenge types accepted by Vercel.").optional(),
|
|
852
|
-
misconfigured: external_exports.boolean().describe("Whether Vercel considers the domain misconfigured.").optional(),
|
|
853
|
-
recommendedNameServers: external_exports.array(external_exports.string()).describe("Name servers recommended by Vercel for the domain.").optional()
|
|
854
|
-
}).describe("Vercel domain configuration.");
|
|
855
|
-
var listWebhooksInput = external_exports.strictObject({}).describe("Vercel action input.");
|
|
856
|
-
var listWebhooksOutput = external_exports.strictObject({
|
|
857
|
-
webhooks: external_exports.array(external_exports.strictObject({
|
|
858
|
-
id: external_exports.string().describe("Vercel webhook ID."),
|
|
859
|
-
url: external_exports.string().describe("Webhook destination URL."),
|
|
860
|
-
events: external_exports.array(external_exports.string()).describe("Webhook events configured on the webhook.").optional(),
|
|
861
|
-
projectIds: external_exports.array(external_exports.string()).describe("Project IDs associated with the webhook, when scoped to specific projects.").optional(),
|
|
862
|
-
teamId: external_exports.string().describe("Vercel team ID that owns the webhook, when present.").optional(),
|
|
863
|
-
createdAt: external_exports.number().describe("Webhook creation timestamp in milliseconds.").optional(),
|
|
864
|
-
updatedAt: external_exports.number().describe("Last webhook update timestamp in milliseconds.").optional()
|
|
865
|
-
}).describe("Vercel webhook.")).describe("Vercel webhooks.").optional()
|
|
866
|
-
});
|
|
867
|
-
var getWebhookInput = external_exports.strictObject({
|
|
868
|
-
id: external_exports.string().min(1).describe("Vercel webhook ID.")
|
|
869
|
-
}).describe("Vercel action input.");
|
|
870
|
-
var getWebhookOutput = external_exports.strictObject({
|
|
871
|
-
webhook: external_exports.strictObject({
|
|
872
|
-
id: external_exports.string().describe("Vercel webhook ID."),
|
|
873
|
-
url: external_exports.string().describe("Webhook destination URL."),
|
|
874
|
-
events: external_exports.array(external_exports.string()).describe("Webhook events configured on the webhook.").optional(),
|
|
875
|
-
projectIds: external_exports.array(external_exports.string()).describe("Project IDs associated with the webhook, when scoped to specific projects.").optional(),
|
|
876
|
-
teamId: external_exports.string().describe("Vercel team ID that owns the webhook, when present.").optional(),
|
|
877
|
-
createdAt: external_exports.number().describe("Webhook creation timestamp in milliseconds.").optional(),
|
|
878
|
-
updatedAt: external_exports.number().describe("Last webhook update timestamp in milliseconds.").optional()
|
|
879
|
-
}).describe("Vercel webhook.")
|
|
880
|
-
});
|
|
881
|
-
var createWebhookInput = external_exports.strictObject({
|
|
882
|
-
url: external_exports.url().describe("Webhook destination URL."),
|
|
883
|
-
events: external_exports.array(external_exports.string().min(1)).min(1).describe("Webhook events that should trigger notifications."),
|
|
884
|
-
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()
|
|
885
|
-
}).describe("Vercel action input.");
|
|
886
|
-
var createWebhookOutput = external_exports.strictObject({
|
|
887
|
-
webhook: external_exports.strictObject({
|
|
888
|
-
id: external_exports.string().describe("Vercel webhook ID."),
|
|
889
|
-
url: external_exports.string().describe("Webhook destination URL."),
|
|
890
|
-
events: external_exports.array(external_exports.string()).describe("Webhook events configured on the webhook.").optional(),
|
|
891
|
-
projectIds: external_exports.array(external_exports.string()).describe("Project IDs associated with the webhook, when scoped to specific projects.").optional(),
|
|
892
|
-
teamId: external_exports.string().describe("Vercel team ID that owns the webhook, when present.").optional(),
|
|
893
|
-
createdAt: external_exports.number().describe("Webhook creation timestamp in milliseconds.").optional(),
|
|
894
|
-
updatedAt: external_exports.number().describe("Last webhook update timestamp in milliseconds.").optional()
|
|
895
|
-
}).describe("Vercel webhook.")
|
|
896
|
-
});
|
|
897
|
-
var vercelActions = {
|
|
898
|
-
get_auth_user: {
|
|
899
|
-
description: "Get the authenticated Vercel user.",
|
|
900
|
-
effect: "read",
|
|
901
|
-
inputSchema: getAuthUserInput,
|
|
902
|
-
outputSchema: external_exports.toJSONSchema(getAuthUserOutput, { io: "output", unrepresentable: "any" })
|
|
903
|
-
},
|
|
904
|
-
list_teams: {
|
|
905
|
-
description: "List Vercel teams available to the authenticated user.",
|
|
906
|
-
effect: "read",
|
|
907
|
-
inputSchema: listTeamsInput,
|
|
908
|
-
outputSchema: external_exports.toJSONSchema(listTeamsOutput, { io: "output", unrepresentable: "any" })
|
|
909
|
-
},
|
|
910
|
-
get_team: {
|
|
911
|
-
description: "Get a Vercel team by id or slug.",
|
|
912
|
-
effect: "read",
|
|
913
|
-
inputSchema: getTeamInput,
|
|
914
|
-
outputSchema: external_exports.toJSONSchema(getTeamOutput, { io: "output", unrepresentable: "any" })
|
|
915
|
-
},
|
|
916
|
-
list_projects: {
|
|
917
|
-
description: "List Vercel projects.",
|
|
918
|
-
effect: "read",
|
|
919
|
-
inputSchema: listProjectsInput,
|
|
920
|
-
outputSchema: external_exports.toJSONSchema(listProjectsOutput, { io: "output", unrepresentable: "any" })
|
|
921
|
-
},
|
|
922
|
-
get_project: {
|
|
923
|
-
description: "Get a Vercel project.",
|
|
924
|
-
effect: "read",
|
|
925
|
-
inputSchema: getProjectInput,
|
|
926
|
-
outputSchema: external_exports.toJSONSchema(getProjectOutput, { io: "output", unrepresentable: "any" })
|
|
927
|
-
},
|
|
928
|
-
create_project: {
|
|
929
|
-
description: "Create a Vercel project.",
|
|
930
|
-
effect: "write",
|
|
931
|
-
inputSchema: createProjectInput,
|
|
932
|
-
outputSchema: external_exports.toJSONSchema(createProjectOutput, { io: "output", unrepresentable: "any" })
|
|
933
|
-
},
|
|
934
|
-
update_project: {
|
|
935
|
-
description: "Update a Vercel project.",
|
|
936
|
-
effect: "write",
|
|
937
|
-
inputSchema: updateProjectInput,
|
|
938
|
-
outputSchema: external_exports.toJSONSchema(updateProjectOutput, { io: "output", unrepresentable: "any" })
|
|
939
|
-
},
|
|
940
|
-
list_deployments: {
|
|
941
|
-
description: "List Vercel deployments.",
|
|
942
|
-
effect: "read",
|
|
943
|
-
inputSchema: listDeploymentsInput,
|
|
944
|
-
outputSchema: external_exports.toJSONSchema(listDeploymentsOutput, { io: "output", unrepresentable: "any" })
|
|
945
|
-
},
|
|
946
|
-
get_deployment: {
|
|
947
|
-
description: "Get a Vercel deployment.",
|
|
948
|
-
effect: "read",
|
|
949
|
-
inputSchema: getDeploymentInput,
|
|
950
|
-
outputSchema: external_exports.toJSONSchema(getDeploymentOutput, { io: "output", unrepresentable: "any" })
|
|
951
|
-
},
|
|
952
|
-
get_deployment_events: {
|
|
953
|
-
description: "Get Vercel deployment events.",
|
|
954
|
-
effect: "read",
|
|
955
|
-
inputSchema: getDeploymentEventsInput,
|
|
956
|
-
outputSchema: external_exports.toJSONSchema(getDeploymentEventsOutput, { io: "output", unrepresentable: "any" })
|
|
957
|
-
},
|
|
958
|
-
get_runtime_logs: {
|
|
959
|
-
description: "Get runtime logs for a Vercel deployment.",
|
|
960
|
-
effect: "read",
|
|
961
|
-
inputSchema: getRuntimeLogsInput,
|
|
962
|
-
outputSchema: external_exports.toJSONSchema(getRuntimeLogsOutput, { io: "output", unrepresentable: "any" })
|
|
963
|
-
},
|
|
964
|
-
list_project_envs: {
|
|
965
|
-
description: "List environment variables for a Vercel project.",
|
|
966
|
-
effect: "read",
|
|
967
|
-
inputSchema: listProjectEnvsInput,
|
|
968
|
-
outputSchema: external_exports.toJSONSchema(listProjectEnvsOutput, { io: "output", unrepresentable: "any" })
|
|
969
|
-
},
|
|
970
|
-
create_project_env: {
|
|
971
|
-
description: "Create a Vercel project environment variable.",
|
|
972
|
-
effect: "write",
|
|
973
|
-
inputSchema: createProjectEnvInput,
|
|
974
|
-
outputSchema: external_exports.toJSONSchema(createProjectEnvOutput, { io: "output", unrepresentable: "any" })
|
|
975
|
-
},
|
|
976
|
-
update_project_env: {
|
|
977
|
-
description: "Update a Vercel project environment variable.",
|
|
978
|
-
effect: "write",
|
|
979
|
-
inputSchema: updateProjectEnvInput,
|
|
980
|
-
outputSchema: external_exports.toJSONSchema(updateProjectEnvOutput, { io: "output", unrepresentable: "any" })
|
|
981
|
-
},
|
|
982
|
-
delete_project_env: {
|
|
983
|
-
description: "Delete a Vercel project environment variable.",
|
|
984
|
-
effect: "destructive",
|
|
985
|
-
inputSchema: deleteProjectEnvInput,
|
|
986
|
-
outputSchema: external_exports.toJSONSchema(deleteProjectEnvOutput, { io: "output", unrepresentable: "any" })
|
|
987
|
-
},
|
|
988
|
-
list_project_domains: {
|
|
989
|
-
description: "List domains for a Vercel project.",
|
|
990
|
-
effect: "read",
|
|
991
|
-
inputSchema: listProjectDomainsInput,
|
|
992
|
-
outputSchema: external_exports.toJSONSchema(listProjectDomainsOutput, { io: "output", unrepresentable: "any" })
|
|
993
|
-
},
|
|
994
|
-
get_project_domain: {
|
|
995
|
-
description: "Get a Vercel project domain.",
|
|
996
|
-
effect: "read",
|
|
997
|
-
inputSchema: getProjectDomainInput,
|
|
998
|
-
outputSchema: external_exports.toJSONSchema(getProjectDomainOutput, { io: "output", unrepresentable: "any" })
|
|
999
|
-
},
|
|
1000
|
-
add_project_domain: {
|
|
1001
|
-
description: "Add a domain to a Vercel project.",
|
|
1002
|
-
effect: "write",
|
|
1003
|
-
inputSchema: addProjectDomainInput,
|
|
1004
|
-
outputSchema: external_exports.toJSONSchema(addProjectDomainOutput, { io: "output", unrepresentable: "any" })
|
|
1005
|
-
},
|
|
1006
|
-
verify_project_domain: {
|
|
1007
|
-
description: "Verify a Vercel project domain.",
|
|
1008
|
-
effect: "write",
|
|
1009
|
-
inputSchema: verifyProjectDomainInput,
|
|
1010
|
-
outputSchema: external_exports.toJSONSchema(verifyProjectDomainOutput, { io: "output", unrepresentable: "any" })
|
|
1011
|
-
},
|
|
1012
|
-
get_domain_config: {
|
|
1013
|
-
description: "Get domain configuration guidance from Vercel.",
|
|
1014
|
-
effect: "read",
|
|
1015
|
-
inputSchema: getDomainConfigInput,
|
|
1016
|
-
outputSchema: external_exports.toJSONSchema(getDomainConfigOutput, { io: "output", unrepresentable: "any" })
|
|
1017
|
-
},
|
|
1018
|
-
list_webhooks: {
|
|
1019
|
-
description: "List Vercel webhooks.",
|
|
1020
|
-
effect: "read",
|
|
1021
|
-
inputSchema: listWebhooksInput,
|
|
1022
|
-
outputSchema: external_exports.toJSONSchema(listWebhooksOutput, { io: "output", unrepresentable: "any" })
|
|
1023
|
-
},
|
|
1024
|
-
get_webhook: {
|
|
1025
|
-
description: "Get a Vercel webhook.",
|
|
1026
|
-
effect: "read",
|
|
1027
|
-
inputSchema: getWebhookInput,
|
|
1028
|
-
outputSchema: external_exports.toJSONSchema(getWebhookOutput, { io: "output", unrepresentable: "any" })
|
|
1029
|
-
},
|
|
1030
|
-
create_webhook: {
|
|
1031
|
-
description: "Create a Vercel webhook.",
|
|
1032
|
-
effect: "write",
|
|
1033
|
-
inputSchema: createWebhookInput,
|
|
1034
|
-
outputSchema: external_exports.toJSONSchema(createWebhookOutput, { io: "output", unrepresentable: "any" })
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
// ../plugins/src/vercel/index.ts
|
|
1039
|
-
function createVercelPlugin() {
|
|
1040
|
-
return createProviderPlugin({
|
|
1041
|
-
description: "Vercel",
|
|
1042
|
-
actions: vercelActions,
|
|
1043
|
-
credentialProbe: "get_auth_user",
|
|
1044
|
-
handlers: {
|
|
1045
|
-
get_auth_user: getAuthUser,
|
|
1046
|
-
list_teams: listTeams,
|
|
1047
|
-
get_team: getTeam,
|
|
1048
|
-
list_projects: listProjects,
|
|
1049
|
-
get_project: getProject,
|
|
1050
|
-
create_project: createProject,
|
|
1051
|
-
update_project: updateProject,
|
|
1052
|
-
list_deployments: listDeployments,
|
|
1053
|
-
get_deployment: getDeployment,
|
|
1054
|
-
get_deployment_events: getDeploymentEvents,
|
|
1055
|
-
get_runtime_logs: getRuntimeLogs,
|
|
1056
|
-
list_project_envs: listProjectEnvs,
|
|
1057
|
-
create_project_env: createProjectEnv,
|
|
1058
|
-
update_project_env: updateProjectEnv,
|
|
1059
|
-
delete_project_env: deleteProjectEnv,
|
|
1060
|
-
list_project_domains: listProjectDomains,
|
|
1061
|
-
get_project_domain: getProjectDomain,
|
|
1062
|
-
add_project_domain: addProjectDomain,
|
|
1063
|
-
verify_project_domain: verifyProjectDomain,
|
|
1064
|
-
get_domain_config: getDomainConfig,
|
|
1065
|
-
list_webhooks: listWebhooks,
|
|
1066
|
-
get_webhook: getWebhook,
|
|
1067
|
-
create_webhook: createWebhook
|
|
1068
|
-
}
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
1071
|
-
var vercel_default = createVercelPlugin();
|
|
1072
|
-
export {
|
|
1073
|
-
createVercelPlugin,
|
|
1074
|
-
vercel_default as default
|
|
1075
|
-
};
|