@tool-bridge/server 0.21.1 → 0.22.1
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-ML2GIGCH.js +790 -0
- package/dist/{alt_text_generator_ai-W7O34SNG.js → alt_text_generator_ai-FGYQAF2A.js} +12 -11
- package/dist/{amap-VOX4T2AW.js → amap-G7V65NGK.js} +221 -220
- package/dist/anthropic-6ZK24TBB.js +203 -0
- package/dist/apify-VDGYHP6W.js +248 -0
- package/dist/brave_search-TAATLZOS.js +302 -0
- package/dist/chunk-2IAI3XQM.js +302 -0
- package/dist/chunk-7ISGFRC6.js +161 -0
- package/dist/{chunk-E6JCVKW6.js → chunk-BNMLA2RC.js} +3 -3
- package/dist/chunk-HA4BGL6C.js +8429 -0
- package/dist/{chunk-KMTT3I6D.js → chunk-RMAWSG7E.js} +19172 -25717
- package/dist/{chunk-XYBU3WZH.js → chunk-RTW5VRTK.js} +3 -3
- package/dist/chunk-U7PTOA3U.js +7320 -0
- package/dist/chunk-UY6ANCOY.js +378 -0
- package/dist/{chunk-ATK45BXV.js → chunk-X7ZUTKHR.js} +4 -2
- package/dist/circleci-BQ2UWXL2.js +389 -0
- package/dist/clerk-2JYWQNOI.js +1019 -0
- package/dist/cohere-6MI7AQM4.js +185 -0
- package/dist/{confluence-B3EWPZVE.js → confluence-6Y6GDETF.js} +105 -104
- package/dist/{convertapi-EUWSQYPF.js → convertapi-HBZCSWOX.js} +32 -31
- package/dist/{currencyapi-KVTIK3GL.js → currencyapi-337U5TGI.js} +71 -71
- package/dist/deepseek-OSPASO7O.js +210 -0
- package/dist/docker_hub-3ATQOY5L.js +933 -0
- package/dist/dropbox-LSA4GM2Y.js +1305 -0
- package/dist/dub-VZPJSPI6.js +680 -0
- package/dist/e2b-6SDYQZL2.js +278 -0
- package/dist/exa-B6EUYDVP.js +332 -0
- package/dist/{fal_ai-23E7JPNT.js → fal_ai-K4Q27IME.js} +81 -80
- package/dist/{feishu-7QRIDUV6.js → feishu-4TKXG4SU.js} +528 -572
- package/dist/{feishu_custom_bot-TJ4K7QNJ.js → feishu_custom_bot-7CTEAKRB.js} +57 -53
- package/dist/figma-OUKSZLD5.js +777 -0
- package/dist/firehydrant-7MOYL7QH.js +563 -0
- package/dist/{fixer-BWON27UO.js → fixer-H2BV2NO4.js} +34 -33
- package/dist/fly-PXKY6PNH.js +469 -0
- package/dist/{front-QCGXYEDJ.js → front-UZYIV5DW.js} +104 -104
- package/dist/geocodio-NSYO7TFP.js +213 -0
- package/dist/ghost-QBKKQQMF.js +338 -0
- package/dist/github-ENLSJ4CL.js +5421 -0
- package/dist/gmail-KQSDEB47.js +1887 -0
- package/dist/googlecalendar-5YCX4SZF.js +2524 -0
- package/dist/{googledocs-BUHL4J2H.js → googledocs-SSWIVFKA.js} +341 -340
- package/dist/{grafana-GLU2DWF2.js → grafana-TF2LXDQA.js} +221 -220
- package/dist/graphhopper-CURBVHYK.js +325 -0
- package/dist/index.d.ts +1132 -332
- package/dist/index.js +31 -14
- package/dist/{ip2proxy-EZ64Y4ZH.js → ip2proxy-YNVMTZEM.js} +28 -27
- package/dist/ipgeolocation_io-NAU7VJ4J.js +315 -0
- package/dist/ipqualityscore-OT63L4TI.js +279 -0
- package/dist/{jina_ai-EFBHTBXL.js → jina_ai-6WBMBGWM.js} +23 -23
- package/dist/{jira-HQSHAA5K.js → jira-DVDVTHNO.js} +118 -117
- package/dist/langsmith-IM5N4YAU.js +593 -0
- package/dist/lemlist-277SHUQF.js +289 -0
- package/dist/{linear-K7RYFYAD.js → linear-AEPH7B5V.js} +327 -326
- package/dist/logsnag-VEWRAGBG.js +150 -0
- package/dist/main.js +57 -280
- package/dist/{mattermost-S2BRCWLQ.js → mattermost-Q3A2BIZA.js} +59 -58
- package/dist/mem0-AXS7GZGI.js +544 -0
- package/dist/memos-7TXG4ZTU.js +744 -0
- package/dist/{metabase-MMSEPCOF.js → metabase-NSVACWQM.js} +90 -89
- package/dist/mistral_ai-YZ52RGD4.js +1196 -0
- package/dist/{mother_duck-H7PCQNZ2.js → mother_duck-XLLL6FVL.js} +94 -93
- package/dist/ngrok-4O4W3WZW.js +356 -0
- package/dist/{notes-PFMKRO33.js → notes-YTB3TJOO.js} +11 -9
- package/dist/notion-4W4O7J7V.js +940 -0
- package/dist/open_exchange_rates-23QJXVO5.js +215 -0
- package/dist/openai-ZS7GLSLH.js +800 -0
- package/dist/opengraph_io-PMVH7OYI.js +362 -0
- package/dist/openrouter-ONRGFNB6.js +441 -0
- package/dist/outline-UCUYZZ7J.js +599 -0
- package/dist/paddle-35HTKTUL.js +454 -0
- package/dist/perplexity-NVOBYN24.js +220 -0
- package/dist/pinecone-55CJY73C.js +571 -0
- package/dist/{pipedrive-Y2O7QGFF.js → pipedrive-WMCAKS72.js} +99 -98
- package/dist/polar-SM4ZM53B.js +395 -0
- package/dist/posthog-NWCXVXNJ.js +3464 -0
- package/dist/postmark-QJV5PHUQ.js +427 -0
- package/dist/{prerender-MENYM2TY.js → prerender-2W7UT4SC.js} +31 -30
- package/dist/{pubmed-GOXUVVH5.js → pubmed-VVV7XYLU.js} +239 -238
- package/dist/{railway-V2SID4WV.js → railway-KGI57S3O.js} +118 -117
- package/dist/readwise-AGHTQB42.js +470 -0
- package/dist/render-O4HBROCK.js +461 -0
- package/dist/{replicate-756MXPYX.js → replicate-KWBOMX7D.js} +81 -80
- package/dist/{resend-ZKH3BTBI.js → resend-DRH6Y6I4.js} +20 -16
- package/dist/rootly-XGCUDW6X.js +336 -0
- package/dist/{scrapfly-NSRHFDIQ.js → scrapfly-OIQ3OY6L.js} +62 -61
- package/dist/{scrapingbee-OQHLAVEY.js → scrapingbee-OCZO4FHX.js} +56 -56
- package/dist/{screenshot_fyi-DVWG3AXC.js → screenshot_fyi-CUNGFZOC.js} +16 -16
- package/dist/semantic_scholar-3UJRLKES.js +611 -0
- package/dist/{sentry-546MNDJG.js → sentry-5BWVZFJV.js} +208 -207
- package/dist/{shodan-C3OON3Z3.js → shodan-HI37CTEW.js} +62 -61
- package/dist/shopify-LJ2EV2HH.js +610 -0
- package/dist/stripe-3LHMV55K.js +585 -0
- package/dist/{supabase-U2SL4D63.js → supabase-H2KPX3Q2.js} +245 -244
- package/dist/tavily-FBEWGH3Z.js +326 -0
- package/dist/telegram-MYYO3JND.js +1767 -0
- package/dist/{telnyx-CXQ4EZUX.js → telnyx-H4ALEGAX.js} +57 -56
- package/dist/todoist-OBWICA5Q.js +664 -0
- package/dist/trello-GUFUJRWO.js +1080 -0
- package/dist/turso-NIAK4UMS.js +416 -0
- package/dist/{twilio-4PDBJKWX.js → twilio-K6SLK2CX.js} +70 -69
- package/dist/umami-42RS2EPS.js +389 -0
- package/dist/unsplash-V7TOTETT.js +351 -0
- package/dist/{upstash_redis-G4LQBYHA.js → upstash_redis-AWQMB6Y3.js} +51 -50
- package/dist/uptimerobot-AZC2DHOT.js +483 -0
- package/dist/v2ex-4TVRNMLS.js +667 -0
- package/dist/vercel-DPHTJ3XR.js +1076 -0
- package/dist/{wolfram_alpha_api-3G4PUJWB.js → wolfram_alpha_api-XAG7IXBW.js} +36 -35
- package/dist/wordpress-KMPKVGUX.js +812 -0
- package/dist/workos-PKB2YR7S.js +664 -0
- package/dist/zhihu-Y4H4XYPB.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
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
createProviderPlugin,
|
|
8
8
|
requireApiKey,
|
|
9
9
|
upstreamError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X7ZUTKHR.js";
|
|
11
11
|
import {
|
|
12
12
|
guardedFetch
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7ISGFRC6.js";
|
|
14
|
+
import "./chunk-UY6ANCOY.js";
|
|
14
15
|
import {
|
|
15
|
-
TBError
|
|
16
|
-
|
|
17
|
-
} from "./chunk-UZM2RXZH.js";
|
|
16
|
+
TBError
|
|
17
|
+
} from "./chunk-HA4BGL6C.js";
|
|
18
18
|
import "./chunk-U67V476Y.js";
|
|
19
19
|
|
|
20
20
|
// ../plugins/src/railway/api.ts
|
|
@@ -234,134 +234,135 @@ async function rollbackDeployment(input, ctx) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
// ../plugins/src/railway/schema.ts
|
|
237
|
-
|
|
238
|
-
var
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
237
|
+
import { z } from "zod/v4";
|
|
238
|
+
var listProjectsInput = z.strictObject({}).describe("Input for listing Railway projects.");
|
|
239
|
+
var listProjectsOutput = z.strictObject({
|
|
240
|
+
projects: z.array(z.strictObject({
|
|
241
|
+
id: z.string().min(1).describe("Railway project ID."),
|
|
242
|
+
name: z.string().min(1).describe("Project name."),
|
|
243
|
+
description: z.string().describe("Project description.").nullable().optional(),
|
|
244
|
+
createdAt: z.iso.datetime({ offset: true }).describe("When the project was created.").optional(),
|
|
245
|
+
updatedAt: z.iso.datetime({ offset: true }).describe("When the project was last updated.").optional()
|
|
245
246
|
}).describe("A Railway project.")).describe("Railway projects.").optional()
|
|
246
247
|
}).describe("Railway projects available to the token.");
|
|
247
|
-
var getProjectInput =
|
|
248
|
-
projectId:
|
|
248
|
+
var getProjectInput = z.strictObject({
|
|
249
|
+
projectId: z.string().min(1).describe("Railway project ID.").optional()
|
|
249
250
|
}).describe("Input for retrieving a Railway project.");
|
|
250
|
-
var getProjectOutput =
|
|
251
|
-
project:
|
|
252
|
-
id:
|
|
253
|
-
name:
|
|
254
|
-
description:
|
|
255
|
-
createdAt:
|
|
256
|
-
services:
|
|
257
|
-
id:
|
|
258
|
-
name:
|
|
259
|
-
icon:
|
|
251
|
+
var getProjectOutput = z.strictObject({
|
|
252
|
+
project: z.strictObject({
|
|
253
|
+
id: z.string().min(1).describe("Railway project ID."),
|
|
254
|
+
name: z.string().min(1).describe("Project name."),
|
|
255
|
+
description: z.string().describe("Project description.").nullable().optional(),
|
|
256
|
+
createdAt: z.iso.datetime({ offset: true }).describe("When the project was created.").optional(),
|
|
257
|
+
services: z.array(z.strictObject({
|
|
258
|
+
id: z.string().min(1).describe("Railway service ID."),
|
|
259
|
+
name: z.string().min(1).describe("Service name."),
|
|
260
|
+
icon: z.string().describe("Service icon URL or identifier.").nullable().optional()
|
|
260
261
|
}).describe("A Railway service.")).describe("Services in the project."),
|
|
261
|
-
environments:
|
|
262
|
-
id:
|
|
263
|
-
name:
|
|
262
|
+
environments: z.array(z.strictObject({
|
|
263
|
+
id: z.string().min(1).describe("Railway environment ID.").optional(),
|
|
264
|
+
name: z.string().min(1).describe("Environment name.").optional()
|
|
264
265
|
}).describe("A Railway environment.")).describe("Environments in the project.")
|
|
265
266
|
}).describe("Railway project details.").optional()
|
|
266
267
|
}).describe("A Railway project with related resources.");
|
|
267
|
-
var getServiceInstanceInput =
|
|
268
|
-
serviceId:
|
|
269
|
-
environmentId:
|
|
268
|
+
var getServiceInstanceInput = z.strictObject({
|
|
269
|
+
serviceId: z.string().min(1).describe("Railway service ID.").optional(),
|
|
270
|
+
environmentId: z.string().min(1).describe("Railway environment ID.").optional()
|
|
270
271
|
}).describe("Input for retrieving a Railway service instance.");
|
|
271
|
-
var getServiceInstanceOutput =
|
|
272
|
-
serviceInstance:
|
|
273
|
-
id:
|
|
274
|
-
serviceName:
|
|
275
|
-
startCommand:
|
|
276
|
-
buildCommand:
|
|
277
|
-
rootDirectory:
|
|
278
|
-
healthcheckPath:
|
|
279
|
-
region:
|
|
280
|
-
numReplicas:
|
|
281
|
-
restartPolicyType:
|
|
282
|
-
restartPolicyMaxRetries:
|
|
283
|
-
latestDeployment:
|
|
284
|
-
id:
|
|
285
|
-
status:
|
|
286
|
-
createdAt:
|
|
287
|
-
url:
|
|
288
|
-
staticUrl:
|
|
272
|
+
var getServiceInstanceOutput = z.strictObject({
|
|
273
|
+
serviceInstance: z.looseObject({
|
|
274
|
+
id: z.string().min(1).describe("Railway service instance ID."),
|
|
275
|
+
serviceName: z.string().min(1).describe("Service name."),
|
|
276
|
+
startCommand: z.string().describe("Configured start command.").nullable().optional(),
|
|
277
|
+
buildCommand: z.string().describe("Configured build command.").nullable().optional(),
|
|
278
|
+
rootDirectory: z.string().describe("Configured repository root directory.").nullable().optional(),
|
|
279
|
+
healthcheckPath: z.string().describe("Configured health check path.").nullable().optional(),
|
|
280
|
+
region: z.string().describe("Deployment region.").nullable().optional(),
|
|
281
|
+
numReplicas: z.int().describe("Configured replica count.").nullable().optional(),
|
|
282
|
+
restartPolicyType: z.string().describe("Restart policy type.").nullable().optional(),
|
|
283
|
+
restartPolicyMaxRetries: z.int().describe("Maximum restart attempts.").nullable().optional(),
|
|
284
|
+
latestDeployment: z.strictObject({
|
|
285
|
+
id: z.string().min(1).describe("Railway deployment ID."),
|
|
286
|
+
status: z.string().min(1).describe("Current Railway deployment status."),
|
|
287
|
+
createdAt: z.iso.datetime({ offset: true }).describe("When the deployment was created.").optional(),
|
|
288
|
+
url: z.string().describe("Deployment URL.").nullable().optional(),
|
|
289
|
+
staticUrl: z.string().describe("Static deployment URL.").nullable().optional()
|
|
289
290
|
}).describe("A Railway deployment.").nullable().optional()
|
|
290
291
|
}).describe("A Railway service instance.").optional()
|
|
291
292
|
}).describe("Railway service instance configuration.");
|
|
292
|
-
var listDeploymentsInput =
|
|
293
|
-
projectId:
|
|
294
|
-
serviceId:
|
|
295
|
-
environmentId:
|
|
296
|
-
limit:
|
|
293
|
+
var listDeploymentsInput = z.strictObject({
|
|
294
|
+
projectId: z.string().min(1).describe("Railway project ID."),
|
|
295
|
+
serviceId: z.string().min(1).describe("Railway service ID."),
|
|
296
|
+
environmentId: z.string().min(1).describe("Railway environment ID."),
|
|
297
|
+
limit: z.int().min(1).max(100).default(20).describe("Maximum number of deployments to return.").optional()
|
|
297
298
|
}).describe("Filters for Railway deployments.");
|
|
298
|
-
var listDeploymentsOutput =
|
|
299
|
-
deployments:
|
|
300
|
-
id:
|
|
301
|
-
status:
|
|
302
|
-
createdAt:
|
|
303
|
-
url:
|
|
304
|
-
staticUrl:
|
|
299
|
+
var listDeploymentsOutput = z.strictObject({
|
|
300
|
+
deployments: z.array(z.strictObject({
|
|
301
|
+
id: z.string().min(1).describe("Railway deployment ID."),
|
|
302
|
+
status: z.string().min(1).describe("Current Railway deployment status."),
|
|
303
|
+
createdAt: z.iso.datetime({ offset: true }).describe("When the deployment was created.").optional(),
|
|
304
|
+
url: z.string().describe("Deployment URL.").nullable().optional(),
|
|
305
|
+
staticUrl: z.string().describe("Static deployment URL.").nullable().optional()
|
|
305
306
|
}).describe("A Railway deployment.")).describe("Railway deployments ordered by the provider.").optional()
|
|
306
307
|
}).describe("Recent Railway deployments.");
|
|
307
|
-
var getDeploymentInput =
|
|
308
|
-
deploymentId:
|
|
308
|
+
var getDeploymentInput = z.strictObject({
|
|
309
|
+
deploymentId: z.string().min(1).describe("Railway deployment ID.").optional()
|
|
309
310
|
}).describe("Input for retrieving a Railway deployment.");
|
|
310
|
-
var getDeploymentOutput =
|
|
311
|
-
deployment:
|
|
312
|
-
id:
|
|
313
|
-
status:
|
|
314
|
-
createdAt:
|
|
315
|
-
url:
|
|
316
|
-
staticUrl:
|
|
317
|
-
canRedeploy:
|
|
318
|
-
canRollback:
|
|
319
|
-
meta:
|
|
311
|
+
var getDeploymentOutput = z.strictObject({
|
|
312
|
+
deployment: z.strictObject({
|
|
313
|
+
id: z.string().min(1).describe("Railway deployment ID."),
|
|
314
|
+
status: z.string().min(1).describe("Current Railway deployment status."),
|
|
315
|
+
createdAt: z.iso.datetime({ offset: true }).describe("When the deployment was created.").optional(),
|
|
316
|
+
url: z.string().describe("Deployment URL.").nullable().optional(),
|
|
317
|
+
staticUrl: z.string().describe("Static deployment URL.").nullable().optional(),
|
|
318
|
+
canRedeploy: z.boolean().describe("Whether Railway allows this deployment to be redeployed.").optional(),
|
|
319
|
+
canRollback: z.boolean().describe("Whether Railway allows a rollback to this deployment.").optional(),
|
|
320
|
+
meta: z.looseObject({}).describe("Provider-defined deployment metadata.").nullable().optional()
|
|
320
321
|
}).describe("Detailed Railway deployment information.").optional()
|
|
321
322
|
}).describe("A Railway deployment.");
|
|
322
|
-
var getDeploymentLogsInput =
|
|
323
|
-
deploymentId:
|
|
324
|
-
limit:
|
|
325
|
-
filter:
|
|
326
|
-
startDate:
|
|
327
|
-
endDate:
|
|
323
|
+
var getDeploymentLogsInput = z.strictObject({
|
|
324
|
+
deploymentId: z.string().min(1).describe("Railway deployment ID."),
|
|
325
|
+
limit: z.int().min(1).max(5e3).default(500).describe("Maximum number of log entries to return.").optional(),
|
|
326
|
+
filter: z.string().min(1).describe("Railway log filter expression.").optional(),
|
|
327
|
+
startDate: z.iso.datetime({ offset: true }).describe("Start of the log time range.").optional(),
|
|
328
|
+
endDate: z.iso.datetime({ offset: true }).describe("End of the log time range.").optional()
|
|
328
329
|
}).describe("Filters for Railway deployment logs.");
|
|
329
|
-
var getDeploymentLogsOutput =
|
|
330
|
-
logs:
|
|
331
|
-
timestamp:
|
|
332
|
-
message:
|
|
333
|
-
severity:
|
|
330
|
+
var getDeploymentLogsOutput = z.strictObject({
|
|
331
|
+
logs: z.array(z.strictObject({
|
|
332
|
+
timestamp: z.string().min(1).describe("Provider timestamp for the log entry."),
|
|
333
|
+
message: z.string().describe("Log message."),
|
|
334
|
+
severity: z.string().describe("Log severity.").nullable().optional()
|
|
334
335
|
}).describe("A Railway runtime log entry.")).describe("Railway runtime log entries.").optional()
|
|
335
336
|
}).describe("Runtime log entries for a Railway deployment.");
|
|
336
|
-
var deployServiceInput =
|
|
337
|
-
serviceId:
|
|
338
|
-
environmentId:
|
|
339
|
-
commitSha:
|
|
337
|
+
var deployServiceInput = z.strictObject({
|
|
338
|
+
serviceId: z.string().min(1).describe("Railway service ID."),
|
|
339
|
+
environmentId: z.string().min(1).describe("Railway environment ID."),
|
|
340
|
+
commitSha: z.string().min(1).describe("Commit SHA from the repository connected to the Railway service.").optional()
|
|
340
341
|
}).describe("Input for deploying a Railway service.");
|
|
341
|
-
var deployServiceOutput =
|
|
342
|
-
deploymentId:
|
|
342
|
+
var deployServiceOutput = z.strictObject({
|
|
343
|
+
deploymentId: z.string().min(1).describe("Railway deployment ID.").optional()
|
|
343
344
|
}).describe("The triggered Railway deployment.");
|
|
344
|
-
var upsertVariableInput =
|
|
345
|
-
projectId:
|
|
346
|
-
serviceId:
|
|
347
|
-
environmentId:
|
|
348
|
-
name:
|
|
349
|
-
value:
|
|
350
|
-
skipDeploys:
|
|
345
|
+
var upsertVariableInput = z.strictObject({
|
|
346
|
+
projectId: z.string().min(1).describe("Railway project ID."),
|
|
347
|
+
serviceId: z.string().min(1).describe("Railway service ID.").optional(),
|
|
348
|
+
environmentId: z.string().min(1).describe("Railway environment ID."),
|
|
349
|
+
name: z.string().min(1).max(255).regex(new RegExp("^[A-Za-z_][A-Za-z0-9_]*$")).describe("Variable name."),
|
|
350
|
+
value: z.string().describe("Variable value. This may contain a Railway variable reference."),
|
|
351
|
+
skipDeploys: z.boolean().describe("Do not automatically redeploy after updating the variable.").optional()
|
|
351
352
|
}).describe("Input for creating or updating a Railway variable.");
|
|
352
|
-
var upsertVariableOutput =
|
|
353
|
-
updated:
|
|
353
|
+
var upsertVariableOutput = z.strictObject({
|
|
354
|
+
updated: z.boolean().describe("Whether Railway accepted the variable update.").optional()
|
|
354
355
|
}).describe("Result of updating a Railway variable.");
|
|
355
|
-
var rollbackDeploymentInput =
|
|
356
|
-
deploymentId:
|
|
356
|
+
var rollbackDeploymentInput = z.strictObject({
|
|
357
|
+
deploymentId: z.string().min(1).describe("Rollback-capable Railway deployment ID.").optional()
|
|
357
358
|
}).describe("Input for rolling back a Railway deployment.");
|
|
358
|
-
var rollbackDeploymentOutput =
|
|
359
|
-
deployment:
|
|
360
|
-
id:
|
|
361
|
-
status:
|
|
362
|
-
createdAt:
|
|
363
|
-
url:
|
|
364
|
-
staticUrl:
|
|
359
|
+
var rollbackDeploymentOutput = z.strictObject({
|
|
360
|
+
deployment: z.strictObject({
|
|
361
|
+
id: z.string().min(1).describe("Railway deployment ID."),
|
|
362
|
+
status: z.string().min(1).describe("Current Railway deployment status."),
|
|
363
|
+
createdAt: z.iso.datetime({ offset: true }).describe("When the deployment was created.").optional(),
|
|
364
|
+
url: z.string().describe("Deployment URL.").nullable().optional(),
|
|
365
|
+
staticUrl: z.string().describe("Static deployment URL.").nullable().optional()
|
|
365
366
|
}).describe("A Railway deployment.").optional()
|
|
366
367
|
}).describe("The Railway deployment created by the rollback.");
|
|
367
368
|
var railwayActions = {
|
|
@@ -369,55 +370,55 @@ var railwayActions = {
|
|
|
369
370
|
description: "List Railway projects available to the configured account or workspace token.",
|
|
370
371
|
effect: "read",
|
|
371
372
|
inputSchema: listProjectsInput,
|
|
372
|
-
outputSchema:
|
|
373
|
+
outputSchema: z.toJSONSchema(listProjectsOutput, { io: "output", unrepresentable: "any" })
|
|
373
374
|
},
|
|
374
375
|
get_project: {
|
|
375
376
|
description: "Get a Railway project together with its services and environments.",
|
|
376
377
|
effect: "read",
|
|
377
378
|
inputSchema: getProjectInput,
|
|
378
|
-
outputSchema:
|
|
379
|
+
outputSchema: z.toJSONSchema(getProjectOutput, { io: "output", unrepresentable: "any" })
|
|
379
380
|
},
|
|
380
381
|
get_service_instance: {
|
|
381
382
|
description: "Get Railway service configuration and its latest deployment in one environment.",
|
|
382
383
|
effect: "read",
|
|
383
384
|
inputSchema: getServiceInstanceInput,
|
|
384
|
-
outputSchema:
|
|
385
|
+
outputSchema: z.toJSONSchema(getServiceInstanceOutput, { io: "output", unrepresentable: "any" })
|
|
385
386
|
},
|
|
386
387
|
list_deployments: {
|
|
387
388
|
description: "List recent Railway deployments for a service and environment.",
|
|
388
389
|
effect: "read",
|
|
389
390
|
inputSchema: listDeploymentsInput,
|
|
390
|
-
outputSchema:
|
|
391
|
+
outputSchema: z.toJSONSchema(listDeploymentsOutput, { io: "output", unrepresentable: "any" })
|
|
391
392
|
},
|
|
392
393
|
get_deployment: {
|
|
393
394
|
description: "Get one Railway deployment and its redeploy and rollback capabilities.",
|
|
394
395
|
effect: "read",
|
|
395
396
|
inputSchema: getDeploymentInput,
|
|
396
|
-
outputSchema:
|
|
397
|
+
outputSchema: z.toJSONSchema(getDeploymentOutput, { io: "output", unrepresentable: "any" })
|
|
397
398
|
},
|
|
398
399
|
get_deployment_logs: {
|
|
399
400
|
description: "Read runtime logs for a Railway deployment with optional text and time filters.",
|
|
400
401
|
effect: "read",
|
|
401
402
|
inputSchema: getDeploymentLogsInput,
|
|
402
|
-
outputSchema:
|
|
403
|
+
outputSchema: z.toJSONSchema(getDeploymentLogsOutput, { io: "output", unrepresentable: "any" })
|
|
403
404
|
},
|
|
404
405
|
deploy_service: {
|
|
405
406
|
description: "Trigger a Railway deployment for a service, optionally at a specific connected-repository commit.",
|
|
406
407
|
effect: "write",
|
|
407
408
|
inputSchema: deployServiceInput,
|
|
408
|
-
outputSchema:
|
|
409
|
+
outputSchema: z.toJSONSchema(deployServiceOutput, { io: "output", unrepresentable: "any" })
|
|
409
410
|
},
|
|
410
411
|
upsert_variable: {
|
|
411
412
|
description: "Create or update one Railway variable for an environment or service.",
|
|
412
413
|
effect: "write",
|
|
413
414
|
inputSchema: upsertVariableInput,
|
|
414
|
-
outputSchema:
|
|
415
|
+
outputSchema: z.toJSONSchema(upsertVariableOutput, { io: "output", unrepresentable: "any" })
|
|
415
416
|
},
|
|
416
417
|
rollback_deployment: {
|
|
417
418
|
description: "Roll a Railway service back to a deployment that Railway marks as rollback-capable.",
|
|
418
419
|
effect: "write",
|
|
419
420
|
inputSchema: rollbackDeploymentInput,
|
|
420
|
-
outputSchema:
|
|
421
|
+
outputSchema: z.toJSONSchema(rollbackDeploymentOutput, { io: "output", unrepresentable: "any" })
|
|
421
422
|
}
|
|
422
423
|
};
|
|
423
424
|
|