@tool-bridge/server 0.21.0 → 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-RELFQ5FV.js → alt_text_generator_ai-FGYQAF2A.js} +12 -11
- package/dist/{amap-YSYEACKQ.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-Q74GLIDK.js → chunk-BNMLA2RC.js} +6 -5
- package/dist/chunk-HA4BGL6C.js +8429 -0
- package/dist/{chunk-MDY7K5CX.js → chunk-RMAWSG7E.js} +20135 -26920
- package/dist/{chunk-JEWFX6Z6.js → chunk-RTW5VRTK.js} +3 -3
- package/dist/chunk-U7PTOA3U.js +7320 -0
- package/dist/chunk-UY6ANCOY.js +378 -0
- package/dist/{chunk-QR4LK3HF.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-52I37IUT.js → confluence-6Y6GDETF.js} +105 -104
- package/dist/{convertapi-3TRJ3WEO.js → convertapi-HBZCSWOX.js} +32 -31
- package/dist/{currencyapi-LWEANWVI.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-VJPMCNRH.js → fal_ai-K4Q27IME.js} +81 -80
- package/dist/feishu-4TKXG4SU.js +11975 -0
- package/dist/{feishu_custom_bot-ADSE23KU.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-OAMF4DKP.js → fixer-H2BV2NO4.js} +34 -33
- package/dist/fly-PXKY6PNH.js +469 -0
- package/dist/{front-6GTVYKUM.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-YNKKBM6Q.js → googledocs-SSWIVFKA.js} +343 -341
- package/dist/{grafana-353VSGXN.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 -13
- package/dist/{ip2proxy-DBGRWH7S.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-L5BH455V.js → jina_ai-6WBMBGWM.js} +23 -23
- package/dist/{jira-IGTILUZA.js → jira-DVDVTHNO.js} +118 -117
- package/dist/langsmith-IM5N4YAU.js +593 -0
- package/dist/lemlist-277SHUQF.js +289 -0
- package/dist/{linear-HLGOWISN.js → linear-AEPH7B5V.js} +329 -327
- package/dist/logsnag-VEWRAGBG.js +150 -0
- package/dist/main.js +57 -279
- package/dist/{mattermost-BONGXVC7.js → mattermost-Q3A2BIZA.js} +59 -58
- package/dist/mem0-AXS7GZGI.js +544 -0
- package/dist/memos-7TXG4ZTU.js +744 -0
- package/dist/{metabase-ZHXHRHZK.js → metabase-NSVACWQM.js} +90 -89
- package/dist/mistral_ai-YZ52RGD4.js +1196 -0
- package/dist/{mother_duck-TKVQM35M.js → mother_duck-XLLL6FVL.js} +94 -93
- package/dist/ngrok-4O4W3WZW.js +356 -0
- package/dist/{notes-KXRNNYDW.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-CW7HONYW.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-5EAY7GDM.js → prerender-2W7UT4SC.js} +31 -30
- package/dist/{pubmed-GRQUBGVA.js → pubmed-VVV7XYLU.js} +241 -239
- package/dist/{railway-FTM75TMX.js → railway-KGI57S3O.js} +118 -117
- package/dist/readwise-AGHTQB42.js +470 -0
- package/dist/render-O4HBROCK.js +461 -0
- package/dist/{replicate-RJCMDB7H.js → replicate-KWBOMX7D.js} +81 -80
- package/dist/{resend-YYN22NIL.js → resend-DRH6Y6I4.js} +20 -16
- package/dist/rootly-XGCUDW6X.js +336 -0
- package/dist/{scrapfly-ZJJ6XM4Q.js → scrapfly-OIQ3OY6L.js} +62 -61
- package/dist/{scrapingbee-QNGEOD6D.js → scrapingbee-OCZO4FHX.js} +56 -56
- package/dist/{screenshot_fyi-SPZAABVD.js → screenshot_fyi-CUNGFZOC.js} +16 -16
- package/dist/semantic_scholar-3UJRLKES.js +611 -0
- package/dist/{sentry-SJ5NN4C4.js → sentry-5BWVZFJV.js} +208 -207
- package/dist/{shodan-YMGOY7KW.js → shodan-HI37CTEW.js} +62 -61
- package/dist/shopify-LJ2EV2HH.js +610 -0
- package/dist/stripe-3LHMV55K.js +585 -0
- package/dist/{supabase-GQ2OFVIL.js → supabase-H2KPX3Q2.js} +245 -244
- package/dist/tavily-FBEWGH3Z.js +326 -0
- package/dist/telegram-MYYO3JND.js +1767 -0
- package/dist/{telnyx-4JGMC3K7.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-VYF3HUU6.js → twilio-K6SLK2CX.js} +72 -70
- package/dist/umami-42RS2EPS.js +389 -0
- package/dist/unsplash-V7TOTETT.js +351 -0
- package/dist/{upstash_redis-IUM2HDLU.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-6CRVUZOJ.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-DMJEEGJP.js +0 -789
- package/dist/anthropic-D5X5GSYE.js +0 -202
- package/dist/apify-5NVFU3IZ.js +0 -247
- package/dist/brave_search-X557FMGO.js +0 -301
- package/dist/chunk-MZCIPUNQ.js +0 -23424
- package/dist/chunk-ZTTN6AJG.js +0 -977
- package/dist/circleci-3P3QTUX2.js +0 -388
- package/dist/clerk-GNMZQ2MY.js +0 -1019
- package/dist/cloudflare_dns-VWZH3ZTR.js +0 -588
- package/dist/cohere-C7QVIIMG.js +0 -185
- package/dist/deepseek-5U24YG4P.js +0 -209
- package/dist/docker_hub-CMISLRSE.js +0 -932
- package/dist/dropbox-TW4QN6FT.js +0 -1304
- package/dist/dub-EFXGI5UH.js +0 -679
- package/dist/e2b-PHM63OVF.js +0 -277
- package/dist/exa-DYOQWURR.js +0 -331
- package/dist/feishu-TFIZXPIN.js +0 -231
- package/dist/figma-4AK47AYY.js +0 -773
- package/dist/firehydrant-RGPTW4EA.js +0 -562
- package/dist/fly-YB4AQD4O.js +0 -468
- package/dist/geocodio-YRT4K25M.js +0 -212
- package/dist/ghost-JCW6UIP2.js +0 -337
- package/dist/github-CEGVRMNX.js +0 -5420
- package/dist/gmail-JCMJD55P.js +0 -1886
- package/dist/googlecalendar-2EAW4MNM.js +0 -2522
- package/dist/graphhopper-H3IVJNDS.js +0 -324
- package/dist/ipgeolocation_io-5I2BDVMG.js +0 -315
- package/dist/ipqualityscore-ILV7TQCV.js +0 -277
- package/dist/langsmith-BYRX4AOF.js +0 -592
- package/dist/lemlist-ZGNYTIQO.js +0 -288
- package/dist/logsnag-5RGTMTU2.js +0 -150
- package/dist/mem0-RUVNUPTE.js +0 -543
- package/dist/memos-TED4HI54.js +0 -739
- package/dist/mistral_ai-NGP5SHU7.js +0 -1195
- package/dist/ngrok-BYCUJ7QV.js +0 -356
- package/dist/notion-2ILYKJOO.js +0 -936
- package/dist/open_exchange_rates-JU4DC6HZ.js +0 -214
- package/dist/openai-6SOT26ZK.js +0 -799
- package/dist/opengraph_io-ZEFHV2OL.js +0 -361
- package/dist/openrouter-R4P7JL5L.js +0 -437
- package/dist/outline-VCTQ5V2X.js +0 -595
- package/dist/paddle-AZOAKBJS.js +0 -453
- package/dist/perplexity-OMRLGVAT.js +0 -219
- package/dist/pinecone-DI62W3ZX.js +0 -570
- package/dist/polar-5DRGTXNR.js +0 -394
- package/dist/posthog-3DTHFCKE.js +0 -3463
- package/dist/postmark-ME2V2XXI.js +0 -426
- package/dist/readwise-IJQGV6IQ.js +0 -469
- package/dist/render-TMSPHRTY.js +0 -460
- package/dist/rootly-7RXE4K7L.js +0 -336
- package/dist/semantic_scholar-SDPVGDDI.js +0 -610
- package/dist/shopify-SU5ABP54.js +0 -609
- package/dist/stripe-JAC425KE.js +0 -584
- package/dist/tavily-Y7MDA5CI.js +0 -326
- package/dist/telegram-OIDT3ZLH.js +0 -1766
- package/dist/todoist-O7S2OUGX.js +0 -663
- package/dist/trello-3LDE4TAQ.js +0 -1079
- package/dist/turso-MUQ44KCA.js +0 -415
- package/dist/umami-SVQIK26J.js +0 -388
- package/dist/unsplash-333XYDCJ.js +0 -350
- package/dist/uptimerobot-7ZRU2NJV.js +0 -482
- package/dist/v2ex-AVSJCQPS.js +0 -666
- package/dist/vercel-J7RGXNSA.js +0 -1075
- package/dist/wordpress-THOJLPKA.js +0 -811
- package/dist/workos-ENTGRWF2.js +0 -663
- package/dist/zhihu-W2BXICTX.js +0 -253
|
@@ -7,14 +7,15 @@ 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
16
|
TBError,
|
|
16
|
-
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
isTBError
|
|
18
|
+
} from "./chunk-HA4BGL6C.js";
|
|
18
19
|
import "./chunk-U67V476Y.js";
|
|
19
20
|
|
|
20
21
|
// ../plugins/src/linear/api.ts
|
|
@@ -314,7 +315,7 @@ async function graphqlRequest(ctx, query, variables) {
|
|
|
314
315
|
});
|
|
315
316
|
body = await readJson(response);
|
|
316
317
|
} catch (error) {
|
|
317
|
-
if (error
|
|
318
|
+
if (isTBError(error)) throw error;
|
|
318
319
|
throw upstreamError(502, error instanceof Error ? `linear \u8BF7\u6C42\u5931\u8D25: ${error.message}` : "linear \u8BF7\u6C42\u5931\u8D25");
|
|
319
320
|
}
|
|
320
321
|
if (!response.ok) throw upstreamError(response.status, extractErrorMessage(body));
|
|
@@ -1539,567 +1540,568 @@ async function updateLinearProject(input, ctx) {
|
|
|
1539
1540
|
}
|
|
1540
1541
|
|
|
1541
1542
|
// ../plugins/src/linear/schema.ts
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1543
|
+
import { z } from "zod/v4";
|
|
1544
|
+
var createAttachmentInput = z.strictObject({
|
|
1545
|
+
issue_id: z.string().min(1).describe("Linear resource ID."),
|
|
1546
|
+
title: z.string().min(1).describe("Attachment title."),
|
|
1547
|
+
url: z.string().min(1).describe("Attachment URL."),
|
|
1548
|
+
subtitle: z.string().describe("Attachment subtitle.").optional()
|
|
1547
1549
|
}).describe("The input payload for this action.");
|
|
1548
|
-
var createAttachmentOutput =
|
|
1549
|
-
id:
|
|
1550
|
-
issue_id:
|
|
1551
|
-
title:
|
|
1552
|
-
url:
|
|
1553
|
-
subtitle:
|
|
1550
|
+
var createAttachmentOutput = z.looseObject({
|
|
1551
|
+
id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1552
|
+
issue_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1553
|
+
title: z.string().describe("Attachment title.").optional(),
|
|
1554
|
+
url: z.string().describe("Attachment URL.").optional(),
|
|
1555
|
+
subtitle: z.string().describe("Attachment subtitle.").nullable().optional()
|
|
1554
1556
|
}).describe("Linear action output.");
|
|
1555
|
-
var createCommentReactionInput =
|
|
1556
|
-
comment_id:
|
|
1557
|
-
emoji:
|
|
1557
|
+
var createCommentReactionInput = z.strictObject({
|
|
1558
|
+
comment_id: z.string().min(1).describe("Linear resource ID."),
|
|
1559
|
+
emoji: z.string().min(1).describe("Emoji to add.")
|
|
1558
1560
|
}).describe("The input payload for this action.");
|
|
1559
|
-
var createCommentReactionOutput =
|
|
1560
|
-
reaction_id:
|
|
1561
|
-
comment_id:
|
|
1562
|
-
emoji:
|
|
1561
|
+
var createCommentReactionOutput = z.looseObject({
|
|
1562
|
+
reaction_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1563
|
+
comment_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1564
|
+
emoji: z.string().optional()
|
|
1563
1565
|
}).describe("Linear action output.");
|
|
1564
|
-
var createLinearCommentInput =
|
|
1565
|
-
issueId:
|
|
1566
|
-
body:
|
|
1566
|
+
var createLinearCommentInput = z.strictObject({
|
|
1567
|
+
issueId: z.string().min(1).describe("Linear resource ID."),
|
|
1568
|
+
body: z.string().min(1).describe("Comment text in Markdown.")
|
|
1567
1569
|
}).describe("The input payload for this action.");
|
|
1568
|
-
var createLinearCommentOutput =
|
|
1569
|
-
comment_id:
|
|
1570
|
-
issue_id:
|
|
1571
|
-
body:
|
|
1570
|
+
var createLinearCommentOutput = z.looseObject({
|
|
1571
|
+
comment_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1572
|
+
issue_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1573
|
+
body: z.string().optional()
|
|
1572
1574
|
}).describe("Linear action output.");
|
|
1573
|
-
var createLinearIssueInput =
|
|
1574
|
-
title:
|
|
1575
|
-
team_id:
|
|
1576
|
-
cycle_id:
|
|
1577
|
-
due_date:
|
|
1578
|
-
estimate:
|
|
1579
|
-
priority:
|
|
1580
|
-
state_id:
|
|
1581
|
-
label_ids:
|
|
1582
|
-
parent_id:
|
|
1583
|
-
project_id:
|
|
1584
|
-
assignee_id:
|
|
1585
|
-
description:
|
|
1575
|
+
var createLinearIssueInput = z.strictObject({
|
|
1576
|
+
title: z.string().min(1).describe("Issue title."),
|
|
1577
|
+
team_id: z.string().min(1).describe("Linear resource ID."),
|
|
1578
|
+
cycle_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1579
|
+
due_date: z.string().describe("Issue due date.").optional(),
|
|
1580
|
+
estimate: z.number().describe("Issue estimate.").optional(),
|
|
1581
|
+
priority: z.number().describe("Issue priority.").optional(),
|
|
1582
|
+
state_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1583
|
+
label_ids: z.array(z.string().min(1).describe("Linear resource ID.")).describe("Label IDs.").optional(),
|
|
1584
|
+
parent_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1585
|
+
project_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1586
|
+
assignee_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1587
|
+
description: z.string().describe("Issue description in Markdown.").optional()
|
|
1586
1588
|
}).describe("The input payload for this action.");
|
|
1587
|
-
var createLinearIssueOutput =
|
|
1588
|
-
id:
|
|
1589
|
-
identifier:
|
|
1590
|
-
issue_title:
|
|
1591
|
-
issue_description:
|
|
1592
|
-
ticket_url:
|
|
1589
|
+
var createLinearIssueOutput = z.looseObject({
|
|
1590
|
+
id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1591
|
+
identifier: z.string().describe("Issue identifier.").optional(),
|
|
1592
|
+
issue_title: z.string().describe("Issue title.").optional(),
|
|
1593
|
+
issue_description: z.string().describe("Issue description.").nullable().optional(),
|
|
1594
|
+
ticket_url: z.string().describe("Issue URL.").optional()
|
|
1593
1595
|
}).describe("Linear action output.");
|
|
1594
|
-
var createLinearIssueRelationInput =
|
|
1595
|
-
issue_id:
|
|
1596
|
-
related_issue_id:
|
|
1597
|
-
relation_type:
|
|
1596
|
+
var createLinearIssueRelationInput = z.strictObject({
|
|
1597
|
+
issue_id: z.string().min(1).describe("Linear resource ID."),
|
|
1598
|
+
related_issue_id: z.string().min(1).describe("Linear resource ID."),
|
|
1599
|
+
relation_type: z.enum(["blocks", "duplicate", "related", "similar"]).describe("Relationship type.")
|
|
1598
1600
|
}).describe("The input payload for this action.");
|
|
1599
|
-
var createLinearIssueRelationOutput =
|
|
1600
|
-
id:
|
|
1601
|
-
issue_id:
|
|
1602
|
-
related_issue_id:
|
|
1603
|
-
relation_type:
|
|
1601
|
+
var createLinearIssueRelationOutput = z.looseObject({
|
|
1602
|
+
id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1603
|
+
issue_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1604
|
+
related_issue_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1605
|
+
relation_type: z.string().optional()
|
|
1604
1606
|
}).describe("Linear action output.");
|
|
1605
|
-
var createLinearLabelInput =
|
|
1606
|
-
team_id:
|
|
1607
|
-
name:
|
|
1608
|
-
color:
|
|
1609
|
-
description:
|
|
1607
|
+
var createLinearLabelInput = z.strictObject({
|
|
1608
|
+
team_id: z.string().min(1).describe("Linear resource ID."),
|
|
1609
|
+
name: z.string().min(1).describe("Label name."),
|
|
1610
|
+
color: z.string().min(1).describe("Label color."),
|
|
1611
|
+
description: z.string().describe("Label description.").optional()
|
|
1610
1612
|
}).describe("The input payload for this action.");
|
|
1611
|
-
var createLinearLabelOutput =
|
|
1612
|
-
id:
|
|
1613
|
-
team_id:
|
|
1614
|
-
name:
|
|
1615
|
-
color:
|
|
1616
|
-
description:
|
|
1613
|
+
var createLinearLabelOutput = z.looseObject({
|
|
1614
|
+
id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1615
|
+
team_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1616
|
+
name: z.string().optional(),
|
|
1617
|
+
color: z.string().optional(),
|
|
1618
|
+
description: z.string().nullable().optional()
|
|
1617
1619
|
}).describe("Linear action output.");
|
|
1618
|
-
var createLinearProjectInput =
|
|
1619
|
-
icon:
|
|
1620
|
-
name:
|
|
1621
|
-
color:
|
|
1622
|
-
lead_id:
|
|
1623
|
-
priority:
|
|
1624
|
-
status_id:
|
|
1625
|
-
state:
|
|
1626
|
-
start_date:
|
|
1627
|
-
description:
|
|
1628
|
-
target_date:
|
|
1629
|
-
team_ids:
|
|
1620
|
+
var createLinearProjectInput = z.strictObject({
|
|
1621
|
+
icon: z.string().describe("Project icon.").optional(),
|
|
1622
|
+
name: z.string().min(1).describe("Project name."),
|
|
1623
|
+
color: z.string().describe("Project color.").optional(),
|
|
1624
|
+
lead_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1625
|
+
priority: z.number().describe("Project priority.").optional(),
|
|
1626
|
+
status_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1627
|
+
state: z.string().describe("Project state type.").optional(),
|
|
1628
|
+
start_date: z.string().describe("Project start date.").optional(),
|
|
1629
|
+
description: z.string().describe("Project description.").optional(),
|
|
1630
|
+
target_date: z.string().describe("Project target date.").optional(),
|
|
1631
|
+
team_ids: z.array(z.string().min(1).describe("Linear resource ID.")).min(1).describe("Team IDs associated with the project.")
|
|
1630
1632
|
}).describe("The input payload for this action.");
|
|
1631
|
-
var createLinearProjectOutput =
|
|
1632
|
-
id:
|
|
1633
|
-
name:
|
|
1634
|
-
url:
|
|
1635
|
-
state:
|
|
1633
|
+
var createLinearProjectOutput = z.looseObject({
|
|
1634
|
+
id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1635
|
+
name: z.string().optional(),
|
|
1636
|
+
url: z.string().optional(),
|
|
1637
|
+
state: z.string().optional()
|
|
1636
1638
|
}).describe("Linear action output.");
|
|
1637
|
-
var createProjectMilestoneInput =
|
|
1638
|
-
name:
|
|
1639
|
-
project_id:
|
|
1640
|
-
sort_order:
|
|
1641
|
-
description:
|
|
1642
|
-
target_date:
|
|
1639
|
+
var createProjectMilestoneInput = z.strictObject({
|
|
1640
|
+
name: z.string().min(1).describe("Milestone name."),
|
|
1641
|
+
project_id: z.string().min(1).describe("Linear resource ID."),
|
|
1642
|
+
sort_order: z.number().describe("Milestone sort order.").optional(),
|
|
1643
|
+
description: z.string().describe("Milestone description.").optional(),
|
|
1644
|
+
target_date: z.string().describe("Target date.").optional()
|
|
1643
1645
|
}).describe("The input payload for this action.");
|
|
1644
|
-
var createProjectMilestoneOutput =
|
|
1645
|
-
id:
|
|
1646
|
-
project_id:
|
|
1647
|
-
name:
|
|
1648
|
-
target_date:
|
|
1646
|
+
var createProjectMilestoneOutput = z.looseObject({
|
|
1647
|
+
id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1648
|
+
project_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1649
|
+
name: z.string().optional(),
|
|
1650
|
+
target_date: z.string().nullable().optional()
|
|
1649
1651
|
}).describe("Linear action output.");
|
|
1650
|
-
var createProjectUpdateInput =
|
|
1651
|
-
body:
|
|
1652
|
-
health:
|
|
1653
|
-
project_id:
|
|
1654
|
-
is_diff_hidden:
|
|
1652
|
+
var createProjectUpdateInput = z.strictObject({
|
|
1653
|
+
body: z.string().min(1).describe("Project update body."),
|
|
1654
|
+
health: z.enum(["onTrack", "atRisk", "offTrack"]).describe("Project health.").optional(),
|
|
1655
|
+
project_id: z.string().min(1).describe("Linear resource ID."),
|
|
1656
|
+
is_diff_hidden: z.boolean().describe("Whether to hide diff.").optional()
|
|
1655
1657
|
}).describe("The input payload for this action.");
|
|
1656
|
-
var createProjectUpdateOutput =
|
|
1657
|
-
id:
|
|
1658
|
-
project_id:
|
|
1659
|
-
body:
|
|
1660
|
-
health:
|
|
1661
|
-
is_diff_hidden:
|
|
1658
|
+
var createProjectUpdateOutput = z.looseObject({
|
|
1659
|
+
id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1660
|
+
project_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1661
|
+
body: z.string().nullable().optional(),
|
|
1662
|
+
health: z.string().nullable().optional(),
|
|
1663
|
+
is_diff_hidden: z.boolean().optional()
|
|
1662
1664
|
}).describe("Linear action output.");
|
|
1663
|
-
var deleteLinearIssueInput =
|
|
1664
|
-
issue_id:
|
|
1665
|
+
var deleteLinearIssueInput = z.strictObject({
|
|
1666
|
+
issue_id: z.string().min(1).describe("Linear resource ID.")
|
|
1665
1667
|
}).describe("The input payload for this action.");
|
|
1666
|
-
var deleteLinearIssueOutput =
|
|
1667
|
-
id:
|
|
1668
|
-
deleted:
|
|
1668
|
+
var deleteLinearIssueOutput = z.looseObject({
|
|
1669
|
+
id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1670
|
+
deleted: z.boolean().optional()
|
|
1669
1671
|
}).describe("Linear action output.");
|
|
1670
|
-
var getAllLinearTeamsInput =
|
|
1671
|
-
var getAllLinearTeamsOutput =
|
|
1672
|
-
teams:
|
|
1672
|
+
var getAllLinearTeamsInput = z.strictObject({}).describe("The input payload for this action.");
|
|
1673
|
+
var getAllLinearTeamsOutput = z.looseObject({
|
|
1674
|
+
teams: z.array(z.looseObject({}).describe("Linear API object.")).describe("teams returned by Linear.").optional()
|
|
1673
1675
|
}).describe("Linear action output.");
|
|
1674
|
-
var getAttachmentInput =
|
|
1675
|
-
issue_id:
|
|
1676
|
-
attachment_id:
|
|
1677
|
-
file_name:
|
|
1676
|
+
var getAttachmentInput = z.strictObject({
|
|
1677
|
+
issue_id: z.string().min(1).describe("Linear resource ID."),
|
|
1678
|
+
attachment_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1679
|
+
file_name: z.string().min(1).describe("Attachment file name or title.").optional()
|
|
1678
1680
|
}).describe("The input payload for this action.");
|
|
1679
|
-
var getAttachmentOutput =
|
|
1680
|
-
attachment:
|
|
1681
|
+
var getAttachmentOutput = z.looseObject({
|
|
1682
|
+
attachment: z.looseObject({}).describe("Linear API object.").optional()
|
|
1681
1683
|
}).describe("Linear action output.");
|
|
1682
|
-
var getCurrentUserInput =
|
|
1683
|
-
var getCurrentUserOutput =
|
|
1684
|
-
viewer:
|
|
1684
|
+
var getCurrentUserInput = z.strictObject({}).describe("The input payload for this action.");
|
|
1685
|
+
var getCurrentUserOutput = z.looseObject({
|
|
1686
|
+
viewer: z.looseObject({}).describe("Linear API object.").optional()
|
|
1685
1687
|
}).describe("Linear action output.");
|
|
1686
|
-
var getCyclesByTeamIdInput =
|
|
1687
|
-
team_id:
|
|
1688
|
+
var getCyclesByTeamIdInput = z.strictObject({
|
|
1689
|
+
team_id: z.string().min(1).describe("Linear resource ID.")
|
|
1688
1690
|
}).describe("The input payload for this action.");
|
|
1689
|
-
var getCyclesByTeamIdOutput =
|
|
1690
|
-
cycles:
|
|
1691
|
+
var getCyclesByTeamIdOutput = z.looseObject({
|
|
1692
|
+
cycles: z.array(z.looseObject({}).describe("Linear API object.")).describe("cycles returned by Linear.").optional()
|
|
1691
1693
|
}).describe("Linear action output.");
|
|
1692
|
-
var getIssueDefaultsInput =
|
|
1693
|
-
team_id:
|
|
1694
|
+
var getIssueDefaultsInput = z.strictObject({
|
|
1695
|
+
team_id: z.string().min(1).describe("Linear resource ID.")
|
|
1694
1696
|
}).describe("The input payload for this action.");
|
|
1695
|
-
var getIssueDefaultsOutput =
|
|
1696
|
-
team:
|
|
1697
|
+
var getIssueDefaultsOutput = z.looseObject({
|
|
1698
|
+
team: z.looseObject({}).describe("Linear API object.").optional()
|
|
1697
1699
|
}).describe("Linear action output.");
|
|
1698
|
-
var getLinearIssueInput =
|
|
1699
|
-
issue_id:
|
|
1700
|
+
var getLinearIssueInput = z.strictObject({
|
|
1701
|
+
issue_id: z.string().min(1).describe("Linear resource ID.")
|
|
1700
1702
|
}).describe("The input payload for this action.");
|
|
1701
|
-
var getLinearIssueOutput =
|
|
1702
|
-
issue:
|
|
1703
|
+
var getLinearIssueOutput = z.looseObject({
|
|
1704
|
+
issue: z.looseObject({}).describe("Linear API object.").optional()
|
|
1703
1705
|
}).describe("Linear action output.");
|
|
1704
|
-
var getLinearProjectInput =
|
|
1705
|
-
project_id:
|
|
1706
|
-
include_teams:
|
|
1707
|
-
include_members:
|
|
1708
|
-
include_initiatives:
|
|
1706
|
+
var getLinearProjectInput = z.strictObject({
|
|
1707
|
+
project_id: z.string().min(1).describe("Linear resource ID."),
|
|
1708
|
+
include_teams: z.boolean().describe("Include project teams.").optional(),
|
|
1709
|
+
include_members: z.boolean().describe("Include project members.").optional(),
|
|
1710
|
+
include_initiatives: z.boolean().describe("Include project initiatives.").optional()
|
|
1709
1711
|
}).describe("The input payload for this action.");
|
|
1710
|
-
var getLinearProjectOutput =
|
|
1711
|
-
project:
|
|
1712
|
+
var getLinearProjectOutput = z.looseObject({
|
|
1713
|
+
project: z.looseObject({}).describe("Linear API object.").optional()
|
|
1712
1714
|
}).describe("Linear action output.");
|
|
1713
|
-
var listIssuesByTeamIdInput =
|
|
1714
|
-
after:
|
|
1715
|
-
first:
|
|
1716
|
-
team_id:
|
|
1717
|
-
include_archived:
|
|
1715
|
+
var listIssuesByTeamIdInput = z.strictObject({
|
|
1716
|
+
after: z.string().describe("Pagination cursor.").optional(),
|
|
1717
|
+
first: z.int().min(1).describe("Number of records to return.").optional(),
|
|
1718
|
+
team_id: z.string().min(1).describe("Linear resource ID."),
|
|
1719
|
+
include_archived: z.boolean().describe("Include archived issues.").optional()
|
|
1718
1720
|
}).describe("The input payload for this action.");
|
|
1719
|
-
var listIssuesByTeamIdOutput =
|
|
1720
|
-
team:
|
|
1721
|
-
issues:
|
|
1722
|
-
page_info:
|
|
1723
|
-
startCursor:
|
|
1724
|
-
endCursor:
|
|
1725
|
-
hasPreviousPage:
|
|
1726
|
-
hasNextPage:
|
|
1727
|
-
end_cursor:
|
|
1728
|
-
has_next_page:
|
|
1721
|
+
var listIssuesByTeamIdOutput = z.looseObject({
|
|
1722
|
+
team: z.looseObject({}).describe("Linear API object.").optional(),
|
|
1723
|
+
issues: z.array(z.looseObject({}).describe("Linear API object.")).optional(),
|
|
1724
|
+
page_info: z.looseObject({
|
|
1725
|
+
startCursor: z.string().describe("Previous-page start cursor.").nullable().optional(),
|
|
1726
|
+
endCursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1727
|
+
hasPreviousPage: z.boolean().describe("Whether a previous page exists.").optional(),
|
|
1728
|
+
hasNextPage: z.boolean().describe("Whether a next page exists.").optional(),
|
|
1729
|
+
end_cursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1730
|
+
has_next_page: z.boolean().describe("Whether a next page exists.").optional()
|
|
1729
1731
|
}).describe("Pagination information.").optional()
|
|
1730
1732
|
}).describe("Linear action output.");
|
|
1731
|
-
var listIssueDraftsInput =
|
|
1732
|
-
after:
|
|
1733
|
-
first:
|
|
1733
|
+
var listIssueDraftsInput = z.strictObject({
|
|
1734
|
+
after: z.string().describe("Pagination cursor.").optional(),
|
|
1735
|
+
first: z.int().min(1).describe("Number of records to return.").optional()
|
|
1734
1736
|
}).describe("The input payload for this action.");
|
|
1735
|
-
var listIssueDraftsOutput =
|
|
1736
|
-
drafts:
|
|
1737
|
-
page_info:
|
|
1738
|
-
startCursor:
|
|
1739
|
-
endCursor:
|
|
1740
|
-
hasPreviousPage:
|
|
1741
|
-
hasNextPage:
|
|
1742
|
-
end_cursor:
|
|
1743
|
-
has_next_page:
|
|
1737
|
+
var listIssueDraftsOutput = z.looseObject({
|
|
1738
|
+
drafts: z.array(z.looseObject({}).describe("Linear API object.")).optional(),
|
|
1739
|
+
page_info: z.looseObject({
|
|
1740
|
+
startCursor: z.string().describe("Previous-page start cursor.").nullable().optional(),
|
|
1741
|
+
endCursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1742
|
+
hasPreviousPage: z.boolean().describe("Whether a previous page exists.").optional(),
|
|
1743
|
+
hasNextPage: z.boolean().describe("Whether a next page exists.").optional(),
|
|
1744
|
+
end_cursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1745
|
+
has_next_page: z.boolean().describe("Whether a next page exists.").optional()
|
|
1744
1746
|
}).describe("Pagination information.").optional()
|
|
1745
1747
|
}).describe("Linear action output.");
|
|
1746
|
-
var listLinearCyclesInput =
|
|
1747
|
-
var listLinearCyclesOutput =
|
|
1748
|
-
cycles:
|
|
1748
|
+
var listLinearCyclesInput = z.strictObject({}).describe("The input payload for this action.");
|
|
1749
|
+
var listLinearCyclesOutput = z.looseObject({
|
|
1750
|
+
cycles: z.array(z.looseObject({}).describe("Linear API object.")).describe("cycles returned by Linear.").optional()
|
|
1749
1751
|
}).describe("Linear action output.");
|
|
1750
|
-
var listLinearIssuesInput =
|
|
1751
|
-
after:
|
|
1752
|
-
first:
|
|
1753
|
-
project_id:
|
|
1754
|
-
assignee_id:
|
|
1752
|
+
var listLinearIssuesInput = z.strictObject({
|
|
1753
|
+
after: z.string().describe("Pagination cursor.").optional(),
|
|
1754
|
+
first: z.int().min(1).describe("Number of records to return.").optional(),
|
|
1755
|
+
project_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1756
|
+
assignee_id: z.string().min(1).describe("Linear resource ID.").optional()
|
|
1755
1757
|
}).describe("The input payload for this action.");
|
|
1756
|
-
var listLinearIssuesOutput =
|
|
1757
|
-
issues:
|
|
1758
|
-
page_info:
|
|
1759
|
-
startCursor:
|
|
1760
|
-
endCursor:
|
|
1761
|
-
hasPreviousPage:
|
|
1762
|
-
hasNextPage:
|
|
1763
|
-
end_cursor:
|
|
1764
|
-
has_next_page:
|
|
1758
|
+
var listLinearIssuesOutput = z.looseObject({
|
|
1759
|
+
issues: z.array(z.looseObject({}).describe("Linear API object.")).optional(),
|
|
1760
|
+
page_info: z.looseObject({
|
|
1761
|
+
startCursor: z.string().describe("Previous-page start cursor.").nullable().optional(),
|
|
1762
|
+
endCursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1763
|
+
hasPreviousPage: z.boolean().describe("Whether a previous page exists.").optional(),
|
|
1764
|
+
hasNextPage: z.boolean().describe("Whether a next page exists.").optional(),
|
|
1765
|
+
end_cursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1766
|
+
has_next_page: z.boolean().describe("Whether a next page exists.").optional()
|
|
1765
1767
|
}).describe("Pagination information.").optional()
|
|
1766
1768
|
}).describe("Linear action output.");
|
|
1767
|
-
var listLinearLabelsInput =
|
|
1768
|
-
team_id:
|
|
1769
|
+
var listLinearLabelsInput = z.strictObject({
|
|
1770
|
+
team_id: z.string().min(1).describe("Linear resource ID.").optional()
|
|
1769
1771
|
}).describe("The input payload for this action.");
|
|
1770
|
-
var listLinearLabelsOutput =
|
|
1771
|
-
labels:
|
|
1772
|
+
var listLinearLabelsOutput = z.looseObject({
|
|
1773
|
+
labels: z.array(z.looseObject({}).describe("Linear API object.")).describe("labels returned by Linear.").optional()
|
|
1772
1774
|
}).describe("Linear action output.");
|
|
1773
|
-
var listLinearProjectsInput =
|
|
1774
|
-
var listLinearProjectsOutput =
|
|
1775
|
-
projects:
|
|
1775
|
+
var listLinearProjectsInput = z.strictObject({}).describe("The input payload for this action.");
|
|
1776
|
+
var listLinearProjectsOutput = z.looseObject({
|
|
1777
|
+
projects: z.array(z.looseObject({}).describe("Linear API object.")).describe("projects returned by Linear.").optional()
|
|
1776
1778
|
}).describe("Linear action output.");
|
|
1777
|
-
var listLinearStatesInput =
|
|
1778
|
-
team_id:
|
|
1779
|
+
var listLinearStatesInput = z.strictObject({
|
|
1780
|
+
team_id: z.string().min(1).describe("Linear resource ID.")
|
|
1779
1781
|
}).describe("The input payload for this action.");
|
|
1780
|
-
var listLinearStatesOutput =
|
|
1781
|
-
states:
|
|
1782
|
+
var listLinearStatesOutput = z.looseObject({
|
|
1783
|
+
states: z.array(z.looseObject({}).describe("Linear API object.")).describe("states returned by Linear.").optional()
|
|
1782
1784
|
}).describe("Linear action output.");
|
|
1783
|
-
var listLinearTeamsInput =
|
|
1784
|
-
project_id:
|
|
1785
|
+
var listLinearTeamsInput = z.strictObject({
|
|
1786
|
+
project_id: z.string().min(1).describe("Linear resource ID.").optional()
|
|
1785
1787
|
}).describe("The input payload for this action.");
|
|
1786
|
-
var listLinearTeamsOutput =
|
|
1787
|
-
teams:
|
|
1788
|
+
var listLinearTeamsOutput = z.looseObject({
|
|
1789
|
+
teams: z.array(z.looseObject({}).describe("Linear API object.")).describe("teams returned by Linear.").optional()
|
|
1788
1790
|
}).describe("Linear action output.");
|
|
1789
|
-
var listLinearUsersInput =
|
|
1790
|
-
after:
|
|
1791
|
-
first:
|
|
1791
|
+
var listLinearUsersInput = z.strictObject({
|
|
1792
|
+
after: z.string().describe("Pagination cursor.").optional(),
|
|
1793
|
+
first: z.int().min(1).describe("Number of records to return.").optional()
|
|
1792
1794
|
}).describe("The input payload for this action.");
|
|
1793
|
-
var listLinearUsersOutput =
|
|
1794
|
-
users:
|
|
1795
|
-
page_info:
|
|
1796
|
-
startCursor:
|
|
1797
|
-
endCursor:
|
|
1798
|
-
hasPreviousPage:
|
|
1799
|
-
hasNextPage:
|
|
1800
|
-
end_cursor:
|
|
1801
|
-
has_next_page:
|
|
1795
|
+
var listLinearUsersOutput = z.looseObject({
|
|
1796
|
+
users: z.array(z.looseObject({}).describe("Linear API object.")).optional(),
|
|
1797
|
+
page_info: z.looseObject({
|
|
1798
|
+
startCursor: z.string().describe("Previous-page start cursor.").nullable().optional(),
|
|
1799
|
+
endCursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1800
|
+
hasPreviousPage: z.boolean().describe("Whether a previous page exists.").optional(),
|
|
1801
|
+
hasNextPage: z.boolean().describe("Whether a next page exists.").optional(),
|
|
1802
|
+
end_cursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1803
|
+
has_next_page: z.boolean().describe("Whether a next page exists.").optional()
|
|
1802
1804
|
}).describe("Pagination information.").optional()
|
|
1803
1805
|
}).describe("Linear action output.");
|
|
1804
|
-
var removeIssueLabelInput =
|
|
1805
|
-
issue_id:
|
|
1806
|
-
label_id:
|
|
1806
|
+
var removeIssueLabelInput = z.strictObject({
|
|
1807
|
+
issue_id: z.string().min(1).describe("Linear resource ID."),
|
|
1808
|
+
label_id: z.string().min(1).describe("Linear resource ID.")
|
|
1807
1809
|
}).describe("The input payload for this action.");
|
|
1808
|
-
var removeIssueLabelOutput =
|
|
1809
|
-
issue_id:
|
|
1810
|
-
label_id:
|
|
1811
|
-
removed:
|
|
1810
|
+
var removeIssueLabelOutput = z.looseObject({
|
|
1811
|
+
issue_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1812
|
+
label_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1813
|
+
removed: z.boolean().optional()
|
|
1812
1814
|
}).describe("Linear action output.");
|
|
1813
|
-
var removeReactionInput =
|
|
1814
|
-
reaction_id:
|
|
1815
|
+
var removeReactionInput = z.strictObject({
|
|
1816
|
+
reaction_id: z.string().min(1).describe("Linear resource ID.")
|
|
1815
1817
|
}).describe("The input payload for this action.");
|
|
1816
|
-
var removeReactionOutput =
|
|
1817
|
-
reaction_id:
|
|
1818
|
-
removed:
|
|
1818
|
+
var removeReactionOutput = z.looseObject({
|
|
1819
|
+
reaction_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1820
|
+
removed: z.boolean().optional()
|
|
1819
1821
|
}).describe("Linear action output.");
|
|
1820
|
-
var runQueryInput =
|
|
1821
|
-
query:
|
|
1822
|
-
variables:
|
|
1822
|
+
var runQueryInput = z.strictObject({
|
|
1823
|
+
query: z.string().min(1),
|
|
1824
|
+
variables: z.looseObject({}).describe("Linear API object.").optional()
|
|
1823
1825
|
}).describe("The input payload for this action.");
|
|
1824
|
-
var runQueryOutput =
|
|
1825
|
-
data:
|
|
1826
|
-
errors:
|
|
1827
|
-
extensions:
|
|
1828
|
-
message:
|
|
1826
|
+
var runQueryOutput = z.looseObject({
|
|
1827
|
+
data: z.looseObject({}).describe("Linear API object.").nullable().optional(),
|
|
1828
|
+
errors: z.array(z.looseObject({}).describe("Linear API object.")).describe("GraphQL errors.").optional(),
|
|
1829
|
+
extensions: z.looseObject({}).describe("Linear API object.").optional(),
|
|
1830
|
+
message: z.string().describe("Summarized execution status.").optional()
|
|
1829
1831
|
}).describe("Raw GraphQL response.");
|
|
1830
|
-
var runMutationInput =
|
|
1831
|
-
mutation:
|
|
1832
|
-
variables:
|
|
1832
|
+
var runMutationInput = z.strictObject({
|
|
1833
|
+
mutation: z.string().min(1),
|
|
1834
|
+
variables: z.looseObject({}).describe("Linear API object.").optional()
|
|
1833
1835
|
}).describe("The input payload for this action.");
|
|
1834
|
-
var runMutationOutput =
|
|
1835
|
-
data:
|
|
1836
|
-
errors:
|
|
1837
|
-
extensions:
|
|
1838
|
-
message:
|
|
1836
|
+
var runMutationOutput = z.looseObject({
|
|
1837
|
+
data: z.looseObject({}).describe("Linear API object.").nullable().optional(),
|
|
1838
|
+
errors: z.array(z.looseObject({}).describe("Linear API object.")).describe("GraphQL errors.").optional(),
|
|
1839
|
+
extensions: z.looseObject({}).describe("Linear API object.").optional(),
|
|
1840
|
+
message: z.string().describe("Summarized execution status.").optional()
|
|
1839
1841
|
}).describe("Raw GraphQL response.");
|
|
1840
|
-
var searchIssuesInput =
|
|
1841
|
-
query:
|
|
1842
|
-
after:
|
|
1843
|
-
first:
|
|
1844
|
-
include_archived:
|
|
1842
|
+
var searchIssuesInput = z.strictObject({
|
|
1843
|
+
query: z.string().min(1).describe("Search query."),
|
|
1844
|
+
after: z.string().describe("Pagination cursor.").optional(),
|
|
1845
|
+
first: z.int().min(1).describe("Number of records to return.").optional(),
|
|
1846
|
+
include_archived: z.boolean().describe("Include archived issues.").optional()
|
|
1845
1847
|
}).describe("The input payload for this action.");
|
|
1846
|
-
var searchIssuesOutput =
|
|
1847
|
-
issues:
|
|
1848
|
-
page_info:
|
|
1849
|
-
startCursor:
|
|
1850
|
-
endCursor:
|
|
1851
|
-
hasPreviousPage:
|
|
1852
|
-
hasNextPage:
|
|
1853
|
-
end_cursor:
|
|
1854
|
-
has_next_page:
|
|
1848
|
+
var searchIssuesOutput = z.looseObject({
|
|
1849
|
+
issues: z.array(z.looseObject({}).describe("Linear API object.")).optional(),
|
|
1850
|
+
page_info: z.looseObject({
|
|
1851
|
+
startCursor: z.string().describe("Previous-page start cursor.").nullable().optional(),
|
|
1852
|
+
endCursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1853
|
+
hasPreviousPage: z.boolean().describe("Whether a previous page exists.").optional(),
|
|
1854
|
+
hasNextPage: z.boolean().describe("Whether a next page exists.").optional(),
|
|
1855
|
+
end_cursor: z.string().describe("Next-page end cursor.").nullable().optional(),
|
|
1856
|
+
has_next_page: z.boolean().describe("Whether a next page exists.").optional()
|
|
1855
1857
|
}).describe("Pagination information.").optional(),
|
|
1856
|
-
total_count:
|
|
1858
|
+
total_count: z.int().optional()
|
|
1857
1859
|
}).describe("Linear action output.");
|
|
1858
|
-
var updateIssueInput =
|
|
1859
|
-
issueId:
|
|
1860
|
-
title:
|
|
1861
|
-
teamId:
|
|
1862
|
-
cycleId:
|
|
1863
|
-
dueDate:
|
|
1864
|
-
stateId:
|
|
1865
|
-
estimate:
|
|
1866
|
-
labelIds:
|
|
1867
|
-
parentId:
|
|
1868
|
-
priority:
|
|
1869
|
-
projectId:
|
|
1870
|
-
assigneeId:
|
|
1871
|
-
description:
|
|
1860
|
+
var updateIssueInput = z.strictObject({
|
|
1861
|
+
issueId: z.string().min(1).describe("Linear resource ID."),
|
|
1862
|
+
title: z.string().describe("Issue title.").optional(),
|
|
1863
|
+
teamId: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1864
|
+
cycleId: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1865
|
+
dueDate: z.string().describe("Issue due date.").optional(),
|
|
1866
|
+
stateId: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1867
|
+
estimate: z.number().describe("Issue estimate.").optional(),
|
|
1868
|
+
labelIds: z.array(z.string().min(1).describe("Linear resource ID.")).describe("Label IDs.").optional(),
|
|
1869
|
+
parentId: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1870
|
+
priority: z.number().describe("Issue priority.").optional(),
|
|
1871
|
+
projectId: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1872
|
+
assigneeId: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1873
|
+
description: z.string().describe("Issue description in Markdown.").optional()
|
|
1872
1874
|
}).describe("The input payload for this action.");
|
|
1873
|
-
var updateIssueOutput =
|
|
1874
|
-
issue:
|
|
1875
|
+
var updateIssueOutput = z.looseObject({
|
|
1876
|
+
issue: z.looseObject({}).describe("Linear API object.").optional()
|
|
1875
1877
|
}).describe("Linear action output.");
|
|
1876
|
-
var updateLinearCommentInput =
|
|
1877
|
-
comment_id:
|
|
1878
|
-
body:
|
|
1878
|
+
var updateLinearCommentInput = z.strictObject({
|
|
1879
|
+
comment_id: z.string().min(1).describe("Linear resource ID."),
|
|
1880
|
+
body: z.string().min(1)
|
|
1879
1881
|
}).describe("The input payload for this action.");
|
|
1880
|
-
var updateLinearCommentOutput =
|
|
1881
|
-
comment:
|
|
1882
|
+
var updateLinearCommentOutput = z.looseObject({
|
|
1883
|
+
comment: z.looseObject({}).describe("Linear API object.").optional()
|
|
1882
1884
|
}).describe("Linear action output.");
|
|
1883
|
-
var updateLinearProjectInput =
|
|
1884
|
-
project_id:
|
|
1885
|
-
icon:
|
|
1886
|
-
name:
|
|
1887
|
-
color:
|
|
1888
|
-
lead_id:
|
|
1889
|
-
priority:
|
|
1890
|
-
status_id:
|
|
1891
|
-
state:
|
|
1892
|
-
start_date:
|
|
1893
|
-
description:
|
|
1894
|
-
target_date:
|
|
1885
|
+
var updateLinearProjectInput = z.strictObject({
|
|
1886
|
+
project_id: z.string().min(1).describe("Linear resource ID."),
|
|
1887
|
+
icon: z.string().describe("Project icon.").optional(),
|
|
1888
|
+
name: z.string().min(1).describe("Project name.").optional(),
|
|
1889
|
+
color: z.string().describe("Project color.").optional(),
|
|
1890
|
+
lead_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1891
|
+
priority: z.number().describe("Project priority.").optional(),
|
|
1892
|
+
status_id: z.string().min(1).describe("Linear resource ID.").optional(),
|
|
1893
|
+
state: z.string().describe("Project state type.").optional(),
|
|
1894
|
+
start_date: z.string().describe("Project start date.").optional(),
|
|
1895
|
+
description: z.string().describe("Project description.").optional(),
|
|
1896
|
+
target_date: z.string().describe("Project target date.").optional()
|
|
1895
1897
|
}).describe("The input payload for this action.");
|
|
1896
|
-
var updateLinearProjectOutput =
|
|
1897
|
-
project:
|
|
1898
|
+
var updateLinearProjectOutput = z.looseObject({
|
|
1899
|
+
project: z.looseObject({}).describe("Linear API object.").optional()
|
|
1898
1900
|
}).describe("Linear action output.");
|
|
1899
1901
|
var linearActions = {
|
|
1900
1902
|
create_attachment: {
|
|
1901
1903
|
description: "Create or update an attachment for the specified Linear issue.",
|
|
1902
1904
|
effect: "write",
|
|
1903
1905
|
inputSchema: createAttachmentInput,
|
|
1904
|
-
outputSchema:
|
|
1906
|
+
outputSchema: z.toJSONSchema(createAttachmentOutput, { io: "output", unrepresentable: "any" })
|
|
1905
1907
|
},
|
|
1906
1908
|
create_comment_reaction: {
|
|
1907
1909
|
description: "Creates an emoji reaction for the specified Linear comment.",
|
|
1908
1910
|
effect: "write",
|
|
1909
1911
|
inputSchema: createCommentReactionInput,
|
|
1910
|
-
outputSchema:
|
|
1912
|
+
outputSchema: z.toJSONSchema(createCommentReactionOutput, { io: "output", unrepresentable: "any" })
|
|
1911
1913
|
},
|
|
1912
1914
|
create_linear_comment: {
|
|
1913
1915
|
description: "Creates a comment for the specified Linear issue.",
|
|
1914
1916
|
effect: "write",
|
|
1915
1917
|
inputSchema: createLinearCommentInput,
|
|
1916
|
-
outputSchema:
|
|
1918
|
+
outputSchema: z.toJSONSchema(createLinearCommentOutput, { io: "output", unrepresentable: "any" })
|
|
1917
1919
|
},
|
|
1918
1920
|
create_linear_issue: {
|
|
1919
1921
|
description: "Create a new Linear issue in the specified team and support fields such as project, person in charge, status, label, etc.",
|
|
1920
1922
|
effect: "write",
|
|
1921
1923
|
inputSchema: createLinearIssueInput,
|
|
1922
|
-
outputSchema:
|
|
1924
|
+
outputSchema: z.toJSONSchema(createLinearIssueOutput, { io: "output", unrepresentable: "any" })
|
|
1923
1925
|
},
|
|
1924
1926
|
create_linear_issue_relation: {
|
|
1925
1927
|
description: "Create a relationship between two Linear issues, such as blocks, related, or duplicate.",
|
|
1926
1928
|
effect: "write",
|
|
1927
1929
|
inputSchema: createLinearIssueRelationInput,
|
|
1928
|
-
outputSchema:
|
|
1930
|
+
outputSchema: z.toJSONSchema(createLinearIssueRelationOutput, { io: "output", unrepresentable: "any" })
|
|
1929
1931
|
},
|
|
1930
1932
|
create_linear_label: {
|
|
1931
1933
|
description: "Creates a new Linear issue label in the specified team.",
|
|
1932
1934
|
effect: "write",
|
|
1933
1935
|
inputSchema: createLinearLabelInput,
|
|
1934
|
-
outputSchema:
|
|
1936
|
+
outputSchema: z.toJSONSchema(createLinearLabelOutput, { io: "output", unrepresentable: "any" })
|
|
1935
1937
|
},
|
|
1936
1938
|
create_linear_project: {
|
|
1937
1939
|
description: "Create a new Linear project and associate one or more teams.",
|
|
1938
1940
|
effect: "write",
|
|
1939
1941
|
inputSchema: createLinearProjectInput,
|
|
1940
|
-
outputSchema:
|
|
1942
|
+
outputSchema: z.toJSONSchema(createLinearProjectOutput, { io: "output", unrepresentable: "any" })
|
|
1941
1943
|
},
|
|
1942
1944
|
create_project_milestone: {
|
|
1943
1945
|
description: "Creates a project milestone for the specified Linear project.",
|
|
1944
1946
|
effect: "write",
|
|
1945
1947
|
inputSchema: createProjectMilestoneInput,
|
|
1946
|
-
outputSchema:
|
|
1948
|
+
outputSchema: z.toJSONSchema(createProjectMilestoneOutput, { io: "output", unrepresentable: "any" })
|
|
1947
1949
|
},
|
|
1948
1950
|
create_project_update: {
|
|
1949
1951
|
description: "Creates a project progress update for the specified Linear project.",
|
|
1950
1952
|
effect: "write",
|
|
1951
1953
|
inputSchema: createProjectUpdateInput,
|
|
1952
|
-
outputSchema:
|
|
1954
|
+
outputSchema: z.toJSONSchema(createProjectUpdateOutput, { io: "output", unrepresentable: "any" })
|
|
1953
1955
|
},
|
|
1954
1956
|
delete_linear_issue: {
|
|
1955
1957
|
description: "Delete the specified Linear issue.",
|
|
1956
1958
|
effect: "destructive",
|
|
1957
1959
|
inputSchema: deleteLinearIssueInput,
|
|
1958
|
-
outputSchema:
|
|
1960
|
+
outputSchema: z.toJSONSchema(deleteLinearIssueOutput, { io: "output", unrepresentable: "any" })
|
|
1959
1961
|
},
|
|
1960
1962
|
get_all_linear_teams: {
|
|
1961
1963
|
description: "Lists all Linear team basic information accessible with the current credentials.",
|
|
1962
1964
|
effect: "read",
|
|
1963
1965
|
inputSchema: getAllLinearTeamsInput,
|
|
1964
|
-
outputSchema:
|
|
1966
|
+
outputSchema: z.toJSONSchema(getAllLinearTeamsOutput, { io: "output", unrepresentable: "any" })
|
|
1965
1967
|
},
|
|
1966
1968
|
get_attachment: {
|
|
1967
1969
|
description: "Retrieve a Linear attachment based on the issue and attachment ID or file name.",
|
|
1968
1970
|
effect: "read",
|
|
1969
1971
|
inputSchema: getAttachmentInput,
|
|
1970
|
-
outputSchema:
|
|
1972
|
+
outputSchema: z.toJSONSchema(getAttachmentOutput, { io: "output", unrepresentable: "any" })
|
|
1971
1973
|
},
|
|
1972
1974
|
get_current_user: {
|
|
1973
1975
|
description: "Get the currently authenticated Linear user profile.",
|
|
1974
1976
|
effect: "read",
|
|
1975
1977
|
inputSchema: getCurrentUserInput,
|
|
1976
|
-
outputSchema:
|
|
1978
|
+
outputSchema: z.toJSONSchema(getCurrentUserOutput, { io: "output", unrepresentable: "any" })
|
|
1977
1979
|
},
|
|
1978
1980
|
get_cycles_by_team_id: {
|
|
1979
1981
|
description: "Get all cycle information under the specified team.",
|
|
1980
1982
|
effect: "read",
|
|
1981
1983
|
inputSchema: getCyclesByTeamIdInput,
|
|
1982
|
-
outputSchema:
|
|
1984
|
+
outputSchema: z.toJSONSchema(getCyclesByTeamIdOutput, { io: "output", unrepresentable: "any" })
|
|
1983
1985
|
},
|
|
1984
1986
|
get_issue_defaults: {
|
|
1985
1987
|
description: "Gets the default status and default estimate used when the specified team creates an issue.",
|
|
1986
1988
|
effect: "read",
|
|
1987
1989
|
inputSchema: getIssueDefaultsInput,
|
|
1988
|
-
outputSchema:
|
|
1990
|
+
outputSchema: z.toJSONSchema(getIssueDefaultsOutput, { io: "output", unrepresentable: "any" })
|
|
1989
1991
|
},
|
|
1990
1992
|
get_linear_issue: {
|
|
1991
1993
|
description: "Get details of a Linear issue, including comments, attachments, subscribers, and underlying relationship fields.",
|
|
1992
1994
|
effect: "read",
|
|
1993
1995
|
inputSchema: getLinearIssueInput,
|
|
1994
|
-
outputSchema:
|
|
1996
|
+
outputSchema: z.toJSONSchema(getLinearIssueOutput, { io: "output", unrepresentable: "any" })
|
|
1995
1997
|
},
|
|
1996
1998
|
get_linear_project: {
|
|
1997
1999
|
description: "Get the details of a Linear project, complete with team, members, and initiatives on demand.",
|
|
1998
2000
|
effect: "read",
|
|
1999
2001
|
inputSchema: getLinearProjectInput,
|
|
2000
|
-
outputSchema:
|
|
2002
|
+
outputSchema: z.toJSONSchema(getLinearProjectOutput, { io: "output", unrepresentable: "any" })
|
|
2001
2003
|
},
|
|
2002
2004
|
list_issues_by_team_id: {
|
|
2003
2005
|
description: "List Linear issues by team, and support cursor paging and whether to include archived issues.",
|
|
2004
2006
|
effect: "read",
|
|
2005
2007
|
inputSchema: listIssuesByTeamIdInput,
|
|
2006
|
-
outputSchema:
|
|
2008
|
+
outputSchema: z.toJSONSchema(listIssuesByTeamIdOutput, { io: "output", unrepresentable: "any" })
|
|
2007
2009
|
},
|
|
2008
2010
|
list_issue_drafts: {
|
|
2009
2011
|
description: "Lists issue drafts visible to the current user in Linear.",
|
|
2010
2012
|
effect: "read",
|
|
2011
2013
|
inputSchema: listIssueDraftsInput,
|
|
2012
|
-
outputSchema:
|
|
2014
|
+
outputSchema: z.toJSONSchema(listIssueDraftsOutput, { io: "output", unrepresentable: "any" })
|
|
2013
2015
|
},
|
|
2014
2016
|
list_linear_cycles: {
|
|
2015
2017
|
description: "Lists the Linear periods accessible by the current credential.",
|
|
2016
2018
|
effect: "read",
|
|
2017
2019
|
inputSchema: listLinearCyclesInput,
|
|
2018
|
-
outputSchema:
|
|
2020
|
+
outputSchema: z.toJSONSchema(listLinearCyclesOutput, { io: "output", unrepresentable: "any" })
|
|
2019
2021
|
},
|
|
2020
2022
|
list_linear_issues: {
|
|
2021
2023
|
description: "Lists Linear issues accessible with current credentials, and supports filtering by project and person in charge.",
|
|
2022
2024
|
effect: "read",
|
|
2023
2025
|
inputSchema: listLinearIssuesInput,
|
|
2024
|
-
outputSchema:
|
|
2026
|
+
outputSchema: z.toJSONSchema(listLinearIssuesOutput, { io: "output", unrepresentable: "any" })
|
|
2025
2027
|
},
|
|
2026
2028
|
list_linear_labels: {
|
|
2027
2029
|
description: "Lists Linear labels for a specified team or entire workspace.",
|
|
2028
2030
|
effect: "read",
|
|
2029
2031
|
inputSchema: listLinearLabelsInput,
|
|
2030
|
-
outputSchema:
|
|
2032
|
+
outputSchema: z.toJSONSchema(listLinearLabelsOutput, { io: "output", unrepresentable: "any" })
|
|
2031
2033
|
},
|
|
2032
2034
|
list_linear_projects: {
|
|
2033
2035
|
description: "Lists Linear projects accessible with the current credentials.",
|
|
2034
2036
|
effect: "read",
|
|
2035
2037
|
inputSchema: listLinearProjectsInput,
|
|
2036
|
-
outputSchema:
|
|
2038
|
+
outputSchema: z.toJSONSchema(listLinearProjectsOutput, { io: "output", unrepresentable: "any" })
|
|
2037
2039
|
},
|
|
2038
2040
|
list_linear_states: {
|
|
2039
2041
|
description: "Lists all workflow statuses for the specified team.",
|
|
2040
2042
|
effect: "read",
|
|
2041
2043
|
inputSchema: listLinearStatesInput,
|
|
2042
|
-
outputSchema:
|
|
2044
|
+
outputSchema: z.toJSONSchema(listLinearStatesOutput, { io: "output", unrepresentable: "any" })
|
|
2043
2045
|
},
|
|
2044
2046
|
list_linear_teams: {
|
|
2045
2047
|
description: "Lists Linear teams accessible with current credentials, along with a list of members and projects.",
|
|
2046
2048
|
effect: "read",
|
|
2047
2049
|
inputSchema: listLinearTeamsInput,
|
|
2048
|
-
outputSchema:
|
|
2050
|
+
outputSchema: z.toJSONSchema(listLinearTeamsOutput, { io: "output", unrepresentable: "any" })
|
|
2049
2051
|
},
|
|
2050
2052
|
list_linear_users: {
|
|
2051
2053
|
description: "List Linear users in the current workspace and support cursor paging.",
|
|
2052
2054
|
effect: "read",
|
|
2053
2055
|
inputSchema: listLinearUsersInput,
|
|
2054
|
-
outputSchema:
|
|
2056
|
+
outputSchema: z.toJSONSchema(listLinearUsersOutput, { io: "output", unrepresentable: "any" })
|
|
2055
2057
|
},
|
|
2056
2058
|
remove_issue_label: {
|
|
2057
2059
|
description: "Removes a label from the specified Linear issue.",
|
|
2058
2060
|
effect: "destructive",
|
|
2059
2061
|
inputSchema: removeIssueLabelInput,
|
|
2060
|
-
outputSchema:
|
|
2062
|
+
outputSchema: z.toJSONSchema(removeIssueLabelOutput, { io: "output", unrepresentable: "any" })
|
|
2061
2063
|
},
|
|
2062
2064
|
remove_reaction: {
|
|
2063
2065
|
description: "Delete an existing Linear reaction.",
|
|
2064
2066
|
effect: "destructive",
|
|
2065
2067
|
inputSchema: removeReactionInput,
|
|
2066
|
-
outputSchema:
|
|
2068
|
+
outputSchema: z.toJSONSchema(removeReactionOutput, { io: "output", unrepresentable: "any" })
|
|
2067
2069
|
},
|
|
2068
2070
|
run_query: {
|
|
2069
2071
|
description: "Execute a read-only query directly against the Linear GraphQL API.",
|
|
2070
2072
|
effect: "write",
|
|
2071
2073
|
inputSchema: runQueryInput,
|
|
2072
|
-
outputSchema:
|
|
2074
|
+
outputSchema: z.toJSONSchema(runQueryOutput, { io: "output", unrepresentable: "any" })
|
|
2073
2075
|
},
|
|
2074
2076
|
run_mutation: {
|
|
2075
2077
|
description: "Perform a mutation directly on the Linear GraphQL API.",
|
|
2076
2078
|
effect: "write",
|
|
2077
2079
|
inputSchema: runMutationInput,
|
|
2078
|
-
outputSchema:
|
|
2080
|
+
outputSchema: z.toJSONSchema(runMutationOutput, { io: "output", unrepresentable: "any" })
|
|
2079
2081
|
},
|
|
2080
2082
|
search_issues: {
|
|
2081
2083
|
description: "Retrieve issues through Linear's full-text search capabilities.",
|
|
2082
2084
|
effect: "read",
|
|
2083
2085
|
inputSchema: searchIssuesInput,
|
|
2084
|
-
outputSchema:
|
|
2086
|
+
outputSchema: z.toJSONSchema(searchIssuesOutput, { io: "output", unrepresentable: "any" })
|
|
2085
2087
|
},
|
|
2086
2088
|
update_issue: {
|
|
2087
2089
|
description: "Update an existing Linear issue and support fields such as title, description, status, project, label, etc.",
|
|
2088
2090
|
effect: "write",
|
|
2089
2091
|
inputSchema: updateIssueInput,
|
|
2090
|
-
outputSchema:
|
|
2092
|
+
outputSchema: z.toJSONSchema(updateIssueOutput, { io: "output", unrepresentable: "any" })
|
|
2091
2093
|
},
|
|
2092
2094
|
update_linear_comment: {
|
|
2093
2095
|
description: "Update the text of an existing Linear comment.",
|
|
2094
2096
|
effect: "write",
|
|
2095
2097
|
inputSchema: updateLinearCommentInput,
|
|
2096
|
-
outputSchema:
|
|
2098
|
+
outputSchema: z.toJSONSchema(updateLinearCommentOutput, { io: "output", unrepresentable: "any" })
|
|
2097
2099
|
},
|
|
2098
2100
|
update_linear_project: {
|
|
2099
2101
|
description: "Update an existing Linear project.",
|
|
2100
2102
|
effect: "write",
|
|
2101
2103
|
inputSchema: updateLinearProjectInput,
|
|
2102
|
-
outputSchema:
|
|
2104
|
+
outputSchema: z.toJSONSchema(updateLinearProjectOutput, { io: "output", unrepresentable: "any" })
|
|
2103
2105
|
}
|
|
2104
2106
|
};
|
|
2105
2107
|
|