@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderHttpClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BNMLA2RC.js";
|
|
4
4
|
import {
|
|
5
5
|
asJsonObject,
|
|
6
6
|
booleanValue,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
createProviderPlugin,
|
|
11
11
|
requireApiKey,
|
|
12
12
|
upstreamError
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-X7ZUTKHR.js";
|
|
14
|
+
import "./chunk-7ISGFRC6.js";
|
|
15
|
+
import "./chunk-UY6ANCOY.js";
|
|
15
16
|
import {
|
|
16
|
-
TBError
|
|
17
|
-
|
|
18
|
-
} from "./chunk-UZM2RXZH.js";
|
|
17
|
+
TBError
|
|
18
|
+
} from "./chunk-HA4BGL6C.js";
|
|
19
19
|
import "./chunk-U67V476Y.js";
|
|
20
20
|
|
|
21
21
|
// ../plugins/src/amap/api.ts
|
|
@@ -379,249 +379,250 @@ async function routeTransit(input, ctx) {
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
// ../plugins/src/amap/schema.ts
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
382
|
+
import { z } from "zod/v4";
|
|
383
|
+
var geocodeInput = z.strictObject({
|
|
384
|
+
address: z.string().describe("The address to geocode."),
|
|
385
|
+
city: z.string().describe("The city used to narrow the geocode lookup.").optional()
|
|
385
386
|
}).describe("The input parameters for geocoding an address.");
|
|
386
|
-
var geocodeOutput =
|
|
387
|
-
geocodes:
|
|
388
|
-
formattedAddress:
|
|
389
|
-
country:
|
|
390
|
-
province:
|
|
391
|
-
city:
|
|
392
|
-
district:
|
|
393
|
-
adcode:
|
|
394
|
-
location:
|
|
387
|
+
var geocodeOutput = z.strictObject({
|
|
388
|
+
geocodes: z.array(z.strictObject({
|
|
389
|
+
formattedAddress: z.string().describe("The formatted address.").optional(),
|
|
390
|
+
country: z.string().describe("The country name.").optional(),
|
|
391
|
+
province: z.string().describe("The province or state name.").optional(),
|
|
392
|
+
city: z.union([z.string().describe("A single string value."), z.array(z.string().describe("A string value in the list.")).describe("A list of string values.")]).describe("A string or an array of strings.").optional(),
|
|
393
|
+
district: z.string().describe("The district or county name.").optional(),
|
|
394
|
+
adcode: z.string().describe("The administrative code.").optional(),
|
|
395
|
+
location: z.string().describe("The coordinate string.").optional()
|
|
395
396
|
}).describe("A geocoding result entry.")).describe("The list of geocoding results.").optional()
|
|
396
397
|
}).describe("The response payload returned by the geocode action.");
|
|
397
|
-
var reverseGeocodeInput =
|
|
398
|
-
location:
|
|
399
|
-
radius:
|
|
400
|
-
extensions:
|
|
401
|
-
roadLevel:
|
|
398
|
+
var reverseGeocodeInput = z.strictObject({
|
|
399
|
+
location: z.string().describe("The coordinates to reverse geocode."),
|
|
400
|
+
radius: z.int().describe("The search radius in meters.").optional(),
|
|
401
|
+
extensions: z.enum(["base", "all"]).describe("The requested response detail level.").optional(),
|
|
402
|
+
roadLevel: z.int().describe("The road level filter.").optional()
|
|
402
403
|
}).describe("The input parameters for reverse geocoding coordinates.");
|
|
403
|
-
var reverseGeocodeOutput =
|
|
404
|
-
formattedAddress:
|
|
405
|
-
addressComponent:
|
|
406
|
-
pois:
|
|
407
|
-
roads:
|
|
408
|
-
roadinters:
|
|
409
|
-
aois:
|
|
404
|
+
var reverseGeocodeOutput = z.strictObject({
|
|
405
|
+
formattedAddress: z.string().describe("The formatted address.").optional(),
|
|
406
|
+
addressComponent: z.looseObject({}).describe("A JSON-like object with arbitrary string keys.").optional(),
|
|
407
|
+
pois: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The nearby points of interest."),
|
|
408
|
+
roads: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The nearby roads."),
|
|
409
|
+
roadinters: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The nearby road intersections."),
|
|
410
|
+
aois: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The nearby areas of interest.")
|
|
410
411
|
}).describe("The response payload returned by the reverse geocode action.");
|
|
411
|
-
var searchPlacesInput =
|
|
412
|
-
keywords:
|
|
413
|
-
region:
|
|
414
|
-
cityLimit:
|
|
415
|
-
types:
|
|
416
|
-
pageNum:
|
|
417
|
-
pageSize:
|
|
418
|
-
showFields:
|
|
412
|
+
var searchPlacesInput = z.strictObject({
|
|
413
|
+
keywords: z.string().describe("The keywords used to search places."),
|
|
414
|
+
region: z.string().describe("The optional region filter.").optional(),
|
|
415
|
+
cityLimit: z.boolean().describe("Whether to limit results to the region.").optional(),
|
|
416
|
+
types: z.string().describe("The optional place type filter.").optional(),
|
|
417
|
+
pageNum: z.int().describe("The page number to fetch.").optional(),
|
|
418
|
+
pageSize: z.int().describe("The page size to fetch.").optional(),
|
|
419
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
419
420
|
}).describe("The input parameters for searching places by keyword.");
|
|
420
|
-
var searchPlacesOutput =
|
|
421
|
-
count:
|
|
422
|
-
pois:
|
|
423
|
-
id:
|
|
424
|
-
name:
|
|
425
|
-
type:
|
|
426
|
-
typecode:
|
|
427
|
-
address:
|
|
428
|
-
location:
|
|
429
|
-
pname:
|
|
430
|
-
cityname:
|
|
431
|
-
adname:
|
|
421
|
+
var searchPlacesOutput = z.strictObject({
|
|
422
|
+
count: z.string().describe("The total number of matching points of interest.").optional(),
|
|
423
|
+
pois: z.array(z.strictObject({
|
|
424
|
+
id: z.string().describe("The point of interest identifier.").optional(),
|
|
425
|
+
name: z.string().describe("The point of interest name.").optional(),
|
|
426
|
+
type: z.string().describe("The point of interest type.").optional(),
|
|
427
|
+
typecode: z.string().describe("The type code.").optional(),
|
|
428
|
+
address: z.string().describe("The formatted address.").optional(),
|
|
429
|
+
location: z.string().describe("The coordinate string.").optional(),
|
|
430
|
+
pname: z.string().describe("The province name.").optional(),
|
|
431
|
+
cityname: z.string().describe("The city name.").optional(),
|
|
432
|
+
adname: z.string().describe("The district or area name.").optional()
|
|
432
433
|
}).describe("A point of interest record.")).describe("The matching points of interest.")
|
|
433
434
|
}).describe("The response payload returned by the place search actions.");
|
|
434
|
-
var searchPlacesAroundInput =
|
|
435
|
-
location:
|
|
436
|
-
radius:
|
|
437
|
-
keywords:
|
|
438
|
-
types:
|
|
439
|
-
sortRule:
|
|
440
|
-
pageNum:
|
|
441
|
-
pageSize:
|
|
442
|
-
showFields:
|
|
435
|
+
var searchPlacesAroundInput = z.strictObject({
|
|
436
|
+
location: z.string().describe("The center coordinate for the search."),
|
|
437
|
+
radius: z.int().describe("The search radius in meters.").optional(),
|
|
438
|
+
keywords: z.string().describe("The optional keyword filter.").optional(),
|
|
439
|
+
types: z.string().describe("The optional place type filter.").optional(),
|
|
440
|
+
sortRule: z.string().describe("The optional sort rule.").optional(),
|
|
441
|
+
pageNum: z.int().describe("The page number to fetch.").optional(),
|
|
442
|
+
pageSize: z.int().describe("The page size to fetch.").optional(),
|
|
443
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
443
444
|
}).describe("The input parameters for searching places around a location.");
|
|
444
|
-
var searchPlacesAroundOutput =
|
|
445
|
-
count:
|
|
446
|
-
pois:
|
|
447
|
-
id:
|
|
448
|
-
name:
|
|
449
|
-
type:
|
|
450
|
-
typecode:
|
|
451
|
-
address:
|
|
452
|
-
location:
|
|
453
|
-
pname:
|
|
454
|
-
cityname:
|
|
455
|
-
adname:
|
|
445
|
+
var searchPlacesAroundOutput = z.strictObject({
|
|
446
|
+
count: z.string().describe("The total number of matching points of interest.").optional(),
|
|
447
|
+
pois: z.array(z.strictObject({
|
|
448
|
+
id: z.string().describe("The point of interest identifier.").optional(),
|
|
449
|
+
name: z.string().describe("The point of interest name.").optional(),
|
|
450
|
+
type: z.string().describe("The point of interest type.").optional(),
|
|
451
|
+
typecode: z.string().describe("The type code.").optional(),
|
|
452
|
+
address: z.string().describe("The formatted address.").optional(),
|
|
453
|
+
location: z.string().describe("The coordinate string.").optional(),
|
|
454
|
+
pname: z.string().describe("The province name.").optional(),
|
|
455
|
+
cityname: z.string().describe("The city name.").optional(),
|
|
456
|
+
adname: z.string().describe("The district or area name.").optional()
|
|
456
457
|
}).describe("A point of interest record.")).describe("The matching points of interest.")
|
|
457
458
|
}).describe("The response payload returned by the place search actions.");
|
|
458
|
-
var searchPlacesPolygonInput =
|
|
459
|
-
polygon:
|
|
460
|
-
keywords:
|
|
461
|
-
types:
|
|
462
|
-
pageNum:
|
|
463
|
-
pageSize:
|
|
464
|
-
showFields:
|
|
459
|
+
var searchPlacesPolygonInput = z.strictObject({
|
|
460
|
+
polygon: z.string().describe("The polygon used to bound the search."),
|
|
461
|
+
keywords: z.string().describe("The optional keyword filter.").optional(),
|
|
462
|
+
types: z.string().describe("The optional place type filter.").optional(),
|
|
463
|
+
pageNum: z.int().describe("The page number to fetch.").optional(),
|
|
464
|
+
pageSize: z.int().describe("The page size to fetch.").optional(),
|
|
465
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
465
466
|
}).describe("The input parameters for searching places inside a polygon.");
|
|
466
|
-
var searchPlacesPolygonOutput =
|
|
467
|
-
count:
|
|
468
|
-
pois:
|
|
469
|
-
id:
|
|
470
|
-
name:
|
|
471
|
-
type:
|
|
472
|
-
typecode:
|
|
473
|
-
address:
|
|
474
|
-
location:
|
|
475
|
-
pname:
|
|
476
|
-
cityname:
|
|
477
|
-
adname:
|
|
467
|
+
var searchPlacesPolygonOutput = z.strictObject({
|
|
468
|
+
count: z.string().describe("The total number of matching points of interest.").optional(),
|
|
469
|
+
pois: z.array(z.strictObject({
|
|
470
|
+
id: z.string().describe("The point of interest identifier.").optional(),
|
|
471
|
+
name: z.string().describe("The point of interest name.").optional(),
|
|
472
|
+
type: z.string().describe("The point of interest type.").optional(),
|
|
473
|
+
typecode: z.string().describe("The type code.").optional(),
|
|
474
|
+
address: z.string().describe("The formatted address.").optional(),
|
|
475
|
+
location: z.string().describe("The coordinate string.").optional(),
|
|
476
|
+
pname: z.string().describe("The province name.").optional(),
|
|
477
|
+
cityname: z.string().describe("The city name.").optional(),
|
|
478
|
+
adname: z.string().describe("The district or area name.").optional()
|
|
478
479
|
}).describe("A point of interest record.")).describe("The matching points of interest.")
|
|
479
480
|
}).describe("The response payload returned by the place search actions.");
|
|
480
|
-
var getPlaceDetailInput =
|
|
481
|
-
id:
|
|
482
|
-
showFields:
|
|
481
|
+
var getPlaceDetailInput = z.strictObject({
|
|
482
|
+
id: z.string().describe("The place identifier."),
|
|
483
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
483
484
|
}).describe("The input parameters for fetching place details.");
|
|
484
|
-
var getPlaceDetailOutput =
|
|
485
|
-
pois:
|
|
486
|
-
id:
|
|
487
|
-
name:
|
|
488
|
-
type:
|
|
489
|
-
typecode:
|
|
490
|
-
address:
|
|
491
|
-
location:
|
|
492
|
-
pname:
|
|
493
|
-
cityname:
|
|
494
|
-
adname:
|
|
485
|
+
var getPlaceDetailOutput = z.strictObject({
|
|
486
|
+
pois: z.array(z.strictObject({
|
|
487
|
+
id: z.string().describe("The point of interest identifier.").optional(),
|
|
488
|
+
name: z.string().describe("The point of interest name.").optional(),
|
|
489
|
+
type: z.string().describe("The point of interest type.").optional(),
|
|
490
|
+
typecode: z.string().describe("The type code.").optional(),
|
|
491
|
+
address: z.string().describe("The formatted address.").optional(),
|
|
492
|
+
location: z.string().describe("The coordinate string.").optional(),
|
|
493
|
+
pname: z.string().describe("The province name.").optional(),
|
|
494
|
+
cityname: z.string().describe("The city name.").optional(),
|
|
495
|
+
adname: z.string().describe("The district or area name.").optional()
|
|
495
496
|
}).describe("A point of interest record.")).describe("The place detail records.").optional()
|
|
496
497
|
}).describe("The response payload returned by the place detail action.");
|
|
497
|
-
var inputTipsInput =
|
|
498
|
-
keywords:
|
|
499
|
-
type:
|
|
500
|
-
location:
|
|
501
|
-
city:
|
|
502
|
-
cityLimit:
|
|
503
|
-
dataType:
|
|
498
|
+
var inputTipsInput = z.strictObject({
|
|
499
|
+
keywords: z.string().describe("The keywords used to search tips."),
|
|
500
|
+
type: z.string().describe("The optional category filter.").optional(),
|
|
501
|
+
location: z.string().describe("The optional location bias.").optional(),
|
|
502
|
+
city: z.string().describe("The optional city filter.").optional(),
|
|
503
|
+
cityLimit: z.boolean().describe("Whether to limit results to the specified city.").optional(),
|
|
504
|
+
dataType: z.string().describe("The optional data type filter.").optional()
|
|
504
505
|
}).describe("The input parameters for fetching input tips.");
|
|
505
|
-
var inputTipsOutput =
|
|
506
|
-
tips:
|
|
506
|
+
var inputTipsOutput = z.strictObject({
|
|
507
|
+
tips: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The returned tip records.").optional()
|
|
507
508
|
}).describe("The response payload returned by the input tips action.");
|
|
508
|
-
var ipLocateInput =
|
|
509
|
-
ip:
|
|
509
|
+
var ipLocateInput = z.strictObject({
|
|
510
|
+
ip: z.string().describe("The IP address to locate.").optional()
|
|
510
511
|
}).describe("The input parameters for IP geolocation.");
|
|
511
|
-
var ipLocateOutput =
|
|
512
|
-
province:
|
|
513
|
-
city:
|
|
514
|
-
adcode:
|
|
515
|
-
rectangle:
|
|
512
|
+
var ipLocateOutput = z.strictObject({
|
|
513
|
+
province: z.string().describe("The province or state name.").optional(),
|
|
514
|
+
city: z.string().describe("The city name.").optional(),
|
|
515
|
+
adcode: z.string().describe("The administrative code.").optional(),
|
|
516
|
+
rectangle: z.string().describe("The bounding rectangle string.").optional()
|
|
516
517
|
}).describe("The response payload returned by the IP locate action.");
|
|
517
|
-
var districtSearchInput =
|
|
518
|
-
keywords:
|
|
519
|
-
subDistrict:
|
|
520
|
-
extensions:
|
|
521
|
-
page:
|
|
522
|
-
offset:
|
|
523
|
-
filter:
|
|
518
|
+
var districtSearchInput = z.strictObject({
|
|
519
|
+
keywords: z.string().describe("The district search keywords."),
|
|
520
|
+
subDistrict: z.int().describe("The subdistrict depth.").optional(),
|
|
521
|
+
extensions: z.string().describe("The requested response detail level.").optional(),
|
|
522
|
+
page: z.int().describe("The page number to fetch.").optional(),
|
|
523
|
+
offset: z.int().describe("The result offset.").optional(),
|
|
524
|
+
filter: z.string().describe("The optional filter expression.").optional()
|
|
524
525
|
}).describe("The input parameters for district search.");
|
|
525
|
-
var districtSearchOutput =
|
|
526
|
-
count:
|
|
527
|
-
districts:
|
|
526
|
+
var districtSearchOutput = z.strictObject({
|
|
527
|
+
count: z.string().describe("The total number of matching districts.").optional(),
|
|
528
|
+
districts: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The matching districts.")
|
|
528
529
|
}).describe("The response payload returned by the district search action.");
|
|
529
|
-
var weatherInput =
|
|
530
|
-
city:
|
|
531
|
-
extensions:
|
|
530
|
+
var weatherInput = z.strictObject({
|
|
531
|
+
city: z.string().describe("The city to query."),
|
|
532
|
+
extensions: z.enum(["base", "all"]).describe("The requested response detail level.").optional()
|
|
532
533
|
}).describe("The input parameters for fetching weather information.");
|
|
533
|
-
var weatherOutput =
|
|
534
|
-
lives:
|
|
535
|
-
forecasts:
|
|
534
|
+
var weatherOutput = z.strictObject({
|
|
535
|
+
lives: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The current weather records.").optional(),
|
|
536
|
+
forecasts: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The forecast weather records.").optional()
|
|
536
537
|
}).describe("The response payload returned by the weather action.");
|
|
537
|
-
var routeDrivingInput =
|
|
538
|
-
origin:
|
|
539
|
-
destination:
|
|
540
|
-
waypoints:
|
|
541
|
-
strategy:
|
|
542
|
-
plate:
|
|
543
|
-
carType:
|
|
544
|
-
avoidPolygons:
|
|
545
|
-
showFields:
|
|
538
|
+
var routeDrivingInput = z.strictObject({
|
|
539
|
+
origin: z.string().describe("The route origin."),
|
|
540
|
+
destination: z.string().describe("The route destination."),
|
|
541
|
+
waypoints: z.string().describe("The optional waypoint list.").optional(),
|
|
542
|
+
strategy: z.string().describe("The optional routing strategy.").optional(),
|
|
543
|
+
plate: z.string().describe("The optional license plate.").optional(),
|
|
544
|
+
carType: z.string().describe("The optional car type.").optional(),
|
|
545
|
+
avoidPolygons: z.string().describe("The optional avoid polygon list.").optional(),
|
|
546
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
546
547
|
}).describe("The input parameters for planning a driving route.");
|
|
547
|
-
var routeDrivingOutput =
|
|
548
|
-
route:
|
|
549
|
-
origin:
|
|
550
|
-
destination:
|
|
551
|
-
taxi_cost:
|
|
552
|
-
paths:
|
|
548
|
+
var routeDrivingOutput = z.strictObject({
|
|
549
|
+
route: z.strictObject({
|
|
550
|
+
origin: z.string().describe("The route origin.").optional(),
|
|
551
|
+
destination: z.string().describe("The route destination.").optional(),
|
|
552
|
+
taxi_cost: z.string().describe("The estimated taxi cost.").optional(),
|
|
553
|
+
paths: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The available driving paths.")
|
|
553
554
|
}).describe("The route summary returned by the driving route API.").optional()
|
|
554
555
|
}).describe("The response payload returned by the driving route action.");
|
|
555
|
-
var routeWalkingInput =
|
|
556
|
-
origin:
|
|
557
|
-
destination:
|
|
558
|
-
showFields:
|
|
556
|
+
var routeWalkingInput = z.strictObject({
|
|
557
|
+
origin: z.string().describe("The route origin."),
|
|
558
|
+
destination: z.string().describe("The route destination."),
|
|
559
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
559
560
|
}).describe("The input parameters for planning a walking route.");
|
|
560
|
-
var routeWalkingOutput =
|
|
561
|
-
route:
|
|
562
|
-
origin:
|
|
563
|
-
destination:
|
|
564
|
-
paths:
|
|
565
|
-
distance:
|
|
566
|
-
steps:
|
|
567
|
-
cost:
|
|
568
|
-
duration:
|
|
561
|
+
var routeWalkingOutput = z.strictObject({
|
|
562
|
+
route: z.strictObject({
|
|
563
|
+
origin: z.string().describe("The route origin.").optional(),
|
|
564
|
+
destination: z.string().describe("The route destination.").optional(),
|
|
565
|
+
paths: z.array(z.strictObject({
|
|
566
|
+
distance: z.string().describe("The route distance.").optional(),
|
|
567
|
+
steps: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The route steps."),
|
|
568
|
+
cost: z.strictObject({
|
|
569
|
+
duration: z.string().describe("The estimated duration.").optional()
|
|
569
570
|
}).describe("The cost summary for the route path.").optional()
|
|
570
571
|
}).describe("A single route path entry.")).describe("The available route paths.")
|
|
571
572
|
}).describe("The route summary returned by the API.").optional()
|
|
572
573
|
}).describe("The response payload returned by the simple route actions.");
|
|
573
|
-
var routeBicyclingInput =
|
|
574
|
-
origin:
|
|
575
|
-
destination:
|
|
576
|
-
alternativeRoute:
|
|
577
|
-
showFields:
|
|
574
|
+
var routeBicyclingInput = z.strictObject({
|
|
575
|
+
origin: z.string().describe("The route origin."),
|
|
576
|
+
destination: z.string().describe("The route destination."),
|
|
577
|
+
alternativeRoute: z.string().describe("The optional alternative route mode.").optional(),
|
|
578
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
578
579
|
}).describe("The input parameters for planning a bicycling route.");
|
|
579
|
-
var routeBicyclingOutput =
|
|
580
|
-
route:
|
|
581
|
-
origin:
|
|
582
|
-
destination:
|
|
583
|
-
paths:
|
|
584
|
-
distance:
|
|
585
|
-
steps:
|
|
586
|
-
cost:
|
|
587
|
-
duration:
|
|
580
|
+
var routeBicyclingOutput = z.strictObject({
|
|
581
|
+
route: z.strictObject({
|
|
582
|
+
origin: z.string().describe("The route origin.").optional(),
|
|
583
|
+
destination: z.string().describe("The route destination.").optional(),
|
|
584
|
+
paths: z.array(z.strictObject({
|
|
585
|
+
distance: z.string().describe("The route distance.").optional(),
|
|
586
|
+
steps: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The route steps."),
|
|
587
|
+
cost: z.strictObject({
|
|
588
|
+
duration: z.string().describe("The estimated duration.").optional()
|
|
588
589
|
}).describe("The cost summary for the route path.").optional()
|
|
589
590
|
}).describe("A single route path entry.")).describe("The available route paths.")
|
|
590
591
|
}).describe("The route summary returned by the API.").optional()
|
|
591
592
|
}).describe("The response payload returned by the simple route actions.");
|
|
592
|
-
var routeElectrobikeInput =
|
|
593
|
-
origin:
|
|
594
|
-
destination:
|
|
595
|
-
showFields:
|
|
593
|
+
var routeElectrobikeInput = z.strictObject({
|
|
594
|
+
origin: z.string().describe("The route origin."),
|
|
595
|
+
destination: z.string().describe("The route destination."),
|
|
596
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
596
597
|
}).describe("The input parameters for planning a walking route.");
|
|
597
|
-
var routeElectrobikeOutput =
|
|
598
|
-
route:
|
|
599
|
-
origin:
|
|
600
|
-
destination:
|
|
601
|
-
paths:
|
|
602
|
-
distance:
|
|
603
|
-
steps:
|
|
604
|
-
cost:
|
|
605
|
-
duration:
|
|
598
|
+
var routeElectrobikeOutput = z.strictObject({
|
|
599
|
+
route: z.strictObject({
|
|
600
|
+
origin: z.string().describe("The route origin.").optional(),
|
|
601
|
+
destination: z.string().describe("The route destination.").optional(),
|
|
602
|
+
paths: z.array(z.strictObject({
|
|
603
|
+
distance: z.string().describe("The route distance.").optional(),
|
|
604
|
+
steps: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The route steps."),
|
|
605
|
+
cost: z.strictObject({
|
|
606
|
+
duration: z.string().describe("The estimated duration.").optional()
|
|
606
607
|
}).describe("The cost summary for the route path.").optional()
|
|
607
608
|
}).describe("A single route path entry.")).describe("The available route paths.")
|
|
608
609
|
}).describe("The route summary returned by the API.").optional()
|
|
609
610
|
}).describe("The response payload returned by the simple route actions.");
|
|
610
|
-
var routeTransitInput =
|
|
611
|
-
origin:
|
|
612
|
-
destination:
|
|
613
|
-
originCity:
|
|
614
|
-
destinationCity:
|
|
615
|
-
strategy:
|
|
616
|
-
nightFlag:
|
|
617
|
-
showFields:
|
|
611
|
+
var routeTransitInput = z.strictObject({
|
|
612
|
+
origin: z.string().describe("The route origin."),
|
|
613
|
+
destination: z.string().describe("The route destination."),
|
|
614
|
+
originCity: z.string().describe("The origin city."),
|
|
615
|
+
destinationCity: z.string().describe("The destination city."),
|
|
616
|
+
strategy: z.string().describe("The optional routing strategy.").optional(),
|
|
617
|
+
nightFlag: z.string().describe("The optional night transit flag.").optional(),
|
|
618
|
+
showFields: z.string().describe("The requested output fields.").optional()
|
|
618
619
|
}).describe("The input parameters for planning a transit route.");
|
|
619
|
-
var routeTransitOutput =
|
|
620
|
-
route:
|
|
621
|
-
origin:
|
|
622
|
-
destination:
|
|
623
|
-
cost:
|
|
624
|
-
transits:
|
|
620
|
+
var routeTransitOutput = z.strictObject({
|
|
621
|
+
route: z.strictObject({
|
|
622
|
+
origin: z.string().describe("The route origin.").optional(),
|
|
623
|
+
destination: z.string().describe("The route destination.").optional(),
|
|
624
|
+
cost: z.looseObject({}).describe("A JSON-like object with arbitrary string keys.").optional(),
|
|
625
|
+
transits: z.array(z.looseObject({}).describe("A JSON-like object with arbitrary string keys.")).describe("The available transit options.")
|
|
625
626
|
}).describe("The route summary returned by the transit route API.").optional()
|
|
626
627
|
}).describe("The response payload returned by the transit route action.");
|
|
627
628
|
var amapActions = {
|
|
@@ -629,91 +630,91 @@ var amapActions = {
|
|
|
629
630
|
description: "Convert an address to coordinates.",
|
|
630
631
|
effect: "write",
|
|
631
632
|
inputSchema: geocodeInput,
|
|
632
|
-
outputSchema:
|
|
633
|
+
outputSchema: z.toJSONSchema(geocodeOutput, { io: "output", unrepresentable: "any" })
|
|
633
634
|
},
|
|
634
635
|
reverse_geocode: {
|
|
635
636
|
description: "Convert coordinates to an address.",
|
|
636
637
|
effect: "write",
|
|
637
638
|
inputSchema: reverseGeocodeInput,
|
|
638
|
-
outputSchema:
|
|
639
|
+
outputSchema: z.toJSONSchema(reverseGeocodeOutput, { io: "output", unrepresentable: "any" })
|
|
639
640
|
},
|
|
640
641
|
search_places: {
|
|
641
642
|
description: "Search places by keyword.",
|
|
642
643
|
effect: "read",
|
|
643
644
|
inputSchema: searchPlacesInput,
|
|
644
|
-
outputSchema:
|
|
645
|
+
outputSchema: z.toJSONSchema(searchPlacesOutput, { io: "output", unrepresentable: "any" })
|
|
645
646
|
},
|
|
646
647
|
search_places_around: {
|
|
647
648
|
description: "Search places around a location.",
|
|
648
649
|
effect: "read",
|
|
649
650
|
inputSchema: searchPlacesAroundInput,
|
|
650
|
-
outputSchema:
|
|
651
|
+
outputSchema: z.toJSONSchema(searchPlacesAroundOutput, { io: "output", unrepresentable: "any" })
|
|
651
652
|
},
|
|
652
653
|
search_places_polygon: {
|
|
653
654
|
description: "Search places inside a polygon.",
|
|
654
655
|
effect: "read",
|
|
655
656
|
inputSchema: searchPlacesPolygonInput,
|
|
656
|
-
outputSchema:
|
|
657
|
+
outputSchema: z.toJSONSchema(searchPlacesPolygonOutput, { io: "output", unrepresentable: "any" })
|
|
657
658
|
},
|
|
658
659
|
get_place_detail: {
|
|
659
660
|
description: "Get place details by id.",
|
|
660
661
|
effect: "read",
|
|
661
662
|
inputSchema: getPlaceDetailInput,
|
|
662
|
-
outputSchema:
|
|
663
|
+
outputSchema: z.toJSONSchema(getPlaceDetailOutput, { io: "output", unrepresentable: "any" })
|
|
663
664
|
},
|
|
664
665
|
input_tips: {
|
|
665
666
|
description: "Get input tips by keywords.",
|
|
666
667
|
effect: "write",
|
|
667
668
|
inputSchema: inputTipsInput,
|
|
668
|
-
outputSchema:
|
|
669
|
+
outputSchema: z.toJSONSchema(inputTipsOutput, { io: "output", unrepresentable: "any" })
|
|
669
670
|
},
|
|
670
671
|
ip_locate: {
|
|
671
672
|
description: "Locate by IP address.",
|
|
672
673
|
effect: "write",
|
|
673
674
|
inputSchema: ipLocateInput,
|
|
674
|
-
outputSchema:
|
|
675
|
+
outputSchema: z.toJSONSchema(ipLocateOutput, { io: "output", unrepresentable: "any" })
|
|
675
676
|
},
|
|
676
677
|
district_search: {
|
|
677
678
|
description: "Search administrative districts.",
|
|
678
679
|
effect: "write",
|
|
679
680
|
inputSchema: districtSearchInput,
|
|
680
|
-
outputSchema:
|
|
681
|
+
outputSchema: z.toJSONSchema(districtSearchOutput, { io: "output", unrepresentable: "any" })
|
|
681
682
|
},
|
|
682
683
|
weather: {
|
|
683
684
|
description: "Get weather information.",
|
|
684
685
|
effect: "write",
|
|
685
686
|
inputSchema: weatherInput,
|
|
686
|
-
outputSchema:
|
|
687
|
+
outputSchema: z.toJSONSchema(weatherOutput, { io: "output", unrepresentable: "any" })
|
|
687
688
|
},
|
|
688
689
|
route_driving: {
|
|
689
690
|
description: "Plan a driving route.",
|
|
690
691
|
effect: "write",
|
|
691
692
|
inputSchema: routeDrivingInput,
|
|
692
|
-
outputSchema:
|
|
693
|
+
outputSchema: z.toJSONSchema(routeDrivingOutput, { io: "output", unrepresentable: "any" })
|
|
693
694
|
},
|
|
694
695
|
route_walking: {
|
|
695
696
|
description: "Plan a walking route.",
|
|
696
697
|
effect: "write",
|
|
697
698
|
inputSchema: routeWalkingInput,
|
|
698
|
-
outputSchema:
|
|
699
|
+
outputSchema: z.toJSONSchema(routeWalkingOutput, { io: "output", unrepresentable: "any" })
|
|
699
700
|
},
|
|
700
701
|
route_bicycling: {
|
|
701
702
|
description: "Plan a bicycling route.",
|
|
702
703
|
effect: "write",
|
|
703
704
|
inputSchema: routeBicyclingInput,
|
|
704
|
-
outputSchema:
|
|
705
|
+
outputSchema: z.toJSONSchema(routeBicyclingOutput, { io: "output", unrepresentable: "any" })
|
|
705
706
|
},
|
|
706
707
|
route_electrobike: {
|
|
707
708
|
description: "Plan an electric bike route.",
|
|
708
709
|
effect: "write",
|
|
709
710
|
inputSchema: routeElectrobikeInput,
|
|
710
|
-
outputSchema:
|
|
711
|
+
outputSchema: z.toJSONSchema(routeElectrobikeOutput, { io: "output", unrepresentable: "any" })
|
|
711
712
|
},
|
|
712
713
|
route_transit: {
|
|
713
714
|
description: "Plan a transit route.",
|
|
714
715
|
effect: "write",
|
|
715
716
|
inputSchema: routeTransitInput,
|
|
716
|
-
outputSchema:
|
|
717
|
+
outputSchema: z.toJSONSchema(routeTransitOutput, { io: "output", unrepresentable: "any" })
|
|
717
718
|
}
|
|
718
719
|
};
|
|
719
720
|
|