@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.
Files changed (178) hide show
  1. package/dist/admin.js +170 -0
  2. package/dist/airtable-ML2GIGCH.js +790 -0
  3. package/dist/{alt_text_generator_ai-W7O34SNG.js → alt_text_generator_ai-FGYQAF2A.js} +12 -11
  4. package/dist/{amap-VOX4T2AW.js → amap-G7V65NGK.js} +221 -220
  5. package/dist/anthropic-6ZK24TBB.js +203 -0
  6. package/dist/apify-VDGYHP6W.js +248 -0
  7. package/dist/brave_search-TAATLZOS.js +302 -0
  8. package/dist/chunk-2IAI3XQM.js +302 -0
  9. package/dist/chunk-7ISGFRC6.js +161 -0
  10. package/dist/{chunk-E6JCVKW6.js → chunk-BNMLA2RC.js} +3 -3
  11. package/dist/chunk-HA4BGL6C.js +8429 -0
  12. package/dist/{chunk-KMTT3I6D.js → chunk-RMAWSG7E.js} +19172 -25717
  13. package/dist/{chunk-XYBU3WZH.js → chunk-RTW5VRTK.js} +3 -3
  14. package/dist/chunk-U7PTOA3U.js +7320 -0
  15. package/dist/chunk-UY6ANCOY.js +378 -0
  16. package/dist/{chunk-ATK45BXV.js → chunk-X7ZUTKHR.js} +4 -2
  17. package/dist/circleci-BQ2UWXL2.js +389 -0
  18. package/dist/clerk-2JYWQNOI.js +1019 -0
  19. package/dist/cohere-6MI7AQM4.js +185 -0
  20. package/dist/{confluence-B3EWPZVE.js → confluence-6Y6GDETF.js} +105 -104
  21. package/dist/{convertapi-EUWSQYPF.js → convertapi-HBZCSWOX.js} +32 -31
  22. package/dist/{currencyapi-KVTIK3GL.js → currencyapi-337U5TGI.js} +71 -71
  23. package/dist/deepseek-OSPASO7O.js +210 -0
  24. package/dist/docker_hub-3ATQOY5L.js +933 -0
  25. package/dist/dropbox-LSA4GM2Y.js +1305 -0
  26. package/dist/dub-VZPJSPI6.js +680 -0
  27. package/dist/e2b-6SDYQZL2.js +278 -0
  28. package/dist/exa-B6EUYDVP.js +332 -0
  29. package/dist/{fal_ai-23E7JPNT.js → fal_ai-K4Q27IME.js} +81 -80
  30. package/dist/{feishu-7QRIDUV6.js → feishu-4TKXG4SU.js} +528 -572
  31. package/dist/{feishu_custom_bot-TJ4K7QNJ.js → feishu_custom_bot-7CTEAKRB.js} +57 -53
  32. package/dist/figma-OUKSZLD5.js +777 -0
  33. package/dist/firehydrant-7MOYL7QH.js +563 -0
  34. package/dist/{fixer-BWON27UO.js → fixer-H2BV2NO4.js} +34 -33
  35. package/dist/fly-PXKY6PNH.js +469 -0
  36. package/dist/{front-QCGXYEDJ.js → front-UZYIV5DW.js} +104 -104
  37. package/dist/geocodio-NSYO7TFP.js +213 -0
  38. package/dist/ghost-QBKKQQMF.js +338 -0
  39. package/dist/github-ENLSJ4CL.js +5421 -0
  40. package/dist/gmail-KQSDEB47.js +1887 -0
  41. package/dist/googlecalendar-5YCX4SZF.js +2524 -0
  42. package/dist/{googledocs-BUHL4J2H.js → googledocs-SSWIVFKA.js} +341 -340
  43. package/dist/{grafana-GLU2DWF2.js → grafana-TF2LXDQA.js} +221 -220
  44. package/dist/graphhopper-CURBVHYK.js +325 -0
  45. package/dist/index.d.ts +1132 -332
  46. package/dist/index.js +31 -14
  47. package/dist/{ip2proxy-EZ64Y4ZH.js → ip2proxy-YNVMTZEM.js} +28 -27
  48. package/dist/ipgeolocation_io-NAU7VJ4J.js +315 -0
  49. package/dist/ipqualityscore-OT63L4TI.js +279 -0
  50. package/dist/{jina_ai-EFBHTBXL.js → jina_ai-6WBMBGWM.js} +23 -23
  51. package/dist/{jira-HQSHAA5K.js → jira-DVDVTHNO.js} +118 -117
  52. package/dist/langsmith-IM5N4YAU.js +593 -0
  53. package/dist/lemlist-277SHUQF.js +289 -0
  54. package/dist/{linear-K7RYFYAD.js → linear-AEPH7B5V.js} +327 -326
  55. package/dist/logsnag-VEWRAGBG.js +150 -0
  56. package/dist/main.js +57 -280
  57. package/dist/{mattermost-S2BRCWLQ.js → mattermost-Q3A2BIZA.js} +59 -58
  58. package/dist/mem0-AXS7GZGI.js +544 -0
  59. package/dist/memos-7TXG4ZTU.js +744 -0
  60. package/dist/{metabase-MMSEPCOF.js → metabase-NSVACWQM.js} +90 -89
  61. package/dist/mistral_ai-YZ52RGD4.js +1196 -0
  62. package/dist/{mother_duck-H7PCQNZ2.js → mother_duck-XLLL6FVL.js} +94 -93
  63. package/dist/ngrok-4O4W3WZW.js +356 -0
  64. package/dist/{notes-PFMKRO33.js → notes-YTB3TJOO.js} +11 -9
  65. package/dist/notion-4W4O7J7V.js +940 -0
  66. package/dist/open_exchange_rates-23QJXVO5.js +215 -0
  67. package/dist/openai-ZS7GLSLH.js +800 -0
  68. package/dist/opengraph_io-PMVH7OYI.js +362 -0
  69. package/dist/openrouter-ONRGFNB6.js +441 -0
  70. package/dist/outline-UCUYZZ7J.js +599 -0
  71. package/dist/paddle-35HTKTUL.js +454 -0
  72. package/dist/perplexity-NVOBYN24.js +220 -0
  73. package/dist/pinecone-55CJY73C.js +571 -0
  74. package/dist/{pipedrive-Y2O7QGFF.js → pipedrive-WMCAKS72.js} +99 -98
  75. package/dist/polar-SM4ZM53B.js +395 -0
  76. package/dist/posthog-NWCXVXNJ.js +3464 -0
  77. package/dist/postmark-QJV5PHUQ.js +427 -0
  78. package/dist/{prerender-MENYM2TY.js → prerender-2W7UT4SC.js} +31 -30
  79. package/dist/{pubmed-GOXUVVH5.js → pubmed-VVV7XYLU.js} +239 -238
  80. package/dist/{railway-V2SID4WV.js → railway-KGI57S3O.js} +118 -117
  81. package/dist/readwise-AGHTQB42.js +470 -0
  82. package/dist/render-O4HBROCK.js +461 -0
  83. package/dist/{replicate-756MXPYX.js → replicate-KWBOMX7D.js} +81 -80
  84. package/dist/{resend-ZKH3BTBI.js → resend-DRH6Y6I4.js} +20 -16
  85. package/dist/rootly-XGCUDW6X.js +336 -0
  86. package/dist/{scrapfly-NSRHFDIQ.js → scrapfly-OIQ3OY6L.js} +62 -61
  87. package/dist/{scrapingbee-OQHLAVEY.js → scrapingbee-OCZO4FHX.js} +56 -56
  88. package/dist/{screenshot_fyi-DVWG3AXC.js → screenshot_fyi-CUNGFZOC.js} +16 -16
  89. package/dist/semantic_scholar-3UJRLKES.js +611 -0
  90. package/dist/{sentry-546MNDJG.js → sentry-5BWVZFJV.js} +208 -207
  91. package/dist/{shodan-C3OON3Z3.js → shodan-HI37CTEW.js} +62 -61
  92. package/dist/shopify-LJ2EV2HH.js +610 -0
  93. package/dist/stripe-3LHMV55K.js +585 -0
  94. package/dist/{supabase-U2SL4D63.js → supabase-H2KPX3Q2.js} +245 -244
  95. package/dist/tavily-FBEWGH3Z.js +326 -0
  96. package/dist/telegram-MYYO3JND.js +1767 -0
  97. package/dist/{telnyx-CXQ4EZUX.js → telnyx-H4ALEGAX.js} +57 -56
  98. package/dist/todoist-OBWICA5Q.js +664 -0
  99. package/dist/trello-GUFUJRWO.js +1080 -0
  100. package/dist/turso-NIAK4UMS.js +416 -0
  101. package/dist/{twilio-4PDBJKWX.js → twilio-K6SLK2CX.js} +70 -69
  102. package/dist/umami-42RS2EPS.js +389 -0
  103. package/dist/unsplash-V7TOTETT.js +351 -0
  104. package/dist/{upstash_redis-G4LQBYHA.js → upstash_redis-AWQMB6Y3.js} +51 -50
  105. package/dist/uptimerobot-AZC2DHOT.js +483 -0
  106. package/dist/v2ex-4TVRNMLS.js +667 -0
  107. package/dist/vercel-DPHTJ3XR.js +1076 -0
  108. package/dist/{wolfram_alpha_api-3G4PUJWB.js → wolfram_alpha_api-XAG7IXBW.js} +36 -35
  109. package/dist/wordpress-KMPKVGUX.js +812 -0
  110. package/dist/workos-PKB2YR7S.js +664 -0
  111. package/dist/zhihu-Y4H4XYPB.js +254 -0
  112. package/package.json +18 -9
  113. package/dist/airtable-LLZDFN7M.js +0 -789
  114. package/dist/anthropic-G23NN3X5.js +0 -202
  115. package/dist/apify-Y3SS734K.js +0 -247
  116. package/dist/brave_search-ZC7OAPSZ.js +0 -301
  117. package/dist/chunk-R6P4XAE5.js +0 -248
  118. package/dist/chunk-U7B6DS2O.js +0 -977
  119. package/dist/chunk-UZM2RXZH.js +0 -23436
  120. package/dist/circleci-3BAX5FCG.js +0 -388
  121. package/dist/clerk-6LEM6TNU.js +0 -1019
  122. package/dist/cloudflare_dns-KINYTJUD.js +0 -588
  123. package/dist/cohere-XCJ5AJ6B.js +0 -185
  124. package/dist/deepseek-PC5YGNC5.js +0 -209
  125. package/dist/docker_hub-C3MA5FU6.js +0 -932
  126. package/dist/dropbox-XBV7Z2IR.js +0 -1304
  127. package/dist/dub-LDOFG3HC.js +0 -679
  128. package/dist/e2b-JMCPSVBW.js +0 -277
  129. package/dist/exa-RAK7O7RD.js +0 -331
  130. package/dist/figma-E6IX5DTH.js +0 -773
  131. package/dist/firehydrant-ZBLPQREE.js +0 -562
  132. package/dist/fly-ZH3HFCZJ.js +0 -468
  133. package/dist/geocodio-YGNI7DA4.js +0 -212
  134. package/dist/ghost-EVSGKH2Q.js +0 -337
  135. package/dist/github-MA2BGRCJ.js +0 -5420
  136. package/dist/gmail-E5E6AADE.js +0 -1886
  137. package/dist/googlecalendar-BTLFPXTD.js +0 -2523
  138. package/dist/graphhopper-WSMB3TCD.js +0 -324
  139. package/dist/ipgeolocation_io-AA7HAS22.js +0 -315
  140. package/dist/ipqualityscore-BHJXVTJT.js +0 -277
  141. package/dist/langsmith-5W6SCT6F.js +0 -592
  142. package/dist/lemlist-HJWH6UMK.js +0 -288
  143. package/dist/logsnag-4KFOHL37.js +0 -150
  144. package/dist/mem0-CAW43CIC.js +0 -543
  145. package/dist/memos-TWEGPKFM.js +0 -740
  146. package/dist/mistral_ai-64BGZQHP.js +0 -1195
  147. package/dist/ngrok-GQCUGZKJ.js +0 -356
  148. package/dist/notion-DQWZWP4N.js +0 -936
  149. package/dist/open_exchange_rates-QMMD735E.js +0 -214
  150. package/dist/openai-W6PX32NZ.js +0 -799
  151. package/dist/opengraph_io-HNDBXYNW.js +0 -361
  152. package/dist/openrouter-JJYMEAUL.js +0 -437
  153. package/dist/outline-MCBNQZYY.js +0 -595
  154. package/dist/paddle-D2SKLUDN.js +0 -453
  155. package/dist/perplexity-XIFMKUAE.js +0 -219
  156. package/dist/pinecone-HUFTALV2.js +0 -570
  157. package/dist/polar-TYTOMOSR.js +0 -394
  158. package/dist/posthog-43JAR3VW.js +0 -3463
  159. package/dist/postmark-KL2QJYSG.js +0 -426
  160. package/dist/readwise-CI4GIMMJ.js +0 -469
  161. package/dist/render-SUBJ6YRZ.js +0 -460
  162. package/dist/rootly-CD2LJHPI.js +0 -336
  163. package/dist/semantic_scholar-T4A252KW.js +0 -610
  164. package/dist/shopify-Y2HN2MCQ.js +0 -609
  165. package/dist/stripe-VE3CD3AY.js +0 -584
  166. package/dist/tavily-KCZHK6HE.js +0 -326
  167. package/dist/telegram-3URFBCMY.js +0 -1766
  168. package/dist/todoist-HNPWNYTD.js +0 -663
  169. package/dist/trello-3W2MIXRP.js +0 -1079
  170. package/dist/turso-2EQF7C2Z.js +0 -415
  171. package/dist/umami-5REN7TGP.js +0 -388
  172. package/dist/unsplash-EIXL424F.js +0 -350
  173. package/dist/uptimerobot-KNJ3EYLY.js +0 -482
  174. package/dist/v2ex-RHJ234PZ.js +0 -666
  175. package/dist/vercel-AS6NCIC7.js +0 -1075
  176. package/dist/wordpress-KNDAAUV7.js +0 -811
  177. package/dist/workos-R6UITSJ7.js +0 -663
  178. package/dist/zhihu-AGK4HILK.js +0 -253
@@ -1,18 +1,17 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-XYBU3WZH.js";
4
- import "./chunk-E6JCVKW6.js";
3
+ } from "./chunk-RTW5VRTK.js";
4
+ import "./chunk-BNMLA2RC.js";
5
5
  import {
6
6
  asJsonObject
7
7
  } from "./chunk-JXHMDBAY.js";
8
8
  import {
9
9
  createProviderPlugin,
10
10
  upstreamError
11
- } from "./chunk-ATK45BXV.js";
12
- import "./chunk-U7B6DS2O.js";
13
- import {
14
- external_exports
15
- } from "./chunk-UZM2RXZH.js";
11
+ } from "./chunk-X7ZUTKHR.js";
12
+ import "./chunk-7ISGFRC6.js";
13
+ import "./chunk-UY6ANCOY.js";
14
+ import "./chunk-HA4BGL6C.js";
16
15
  import "./chunk-U67V476Y.js";
17
16
 
18
17
  // ../plugins/src/currencyapi/api.ts
@@ -148,82 +147,83 @@ async function convertCurrency(input, ctx) {
148
147
  }
149
148
 
150
149
  // ../plugins/src/currencyapi/schema.ts
151
- var getApiStatusInput = external_exports.strictObject({}).describe("Input parameters for retrieving current currencyapi quota usage.");
152
- var getApiStatusOutput = external_exports.strictObject({
153
- account_id: external_exports.int().describe("currencyapi account identifier."),
154
- quotas: external_exports.strictObject({
155
- month: external_exports.strictObject({
156
- total: external_exports.int().describe("Total quota available in the current bucket."),
157
- used: external_exports.int().describe("Quota already consumed in the current bucket."),
158
- remaining: external_exports.int().describe("Quota still available in the current bucket.")
150
+ import { z } from "zod/v4";
151
+ var getApiStatusInput = z.strictObject({}).describe("Input parameters for retrieving current currencyapi quota usage.");
152
+ var getApiStatusOutput = z.strictObject({
153
+ account_id: z.int().describe("currencyapi account identifier."),
154
+ quotas: z.strictObject({
155
+ month: z.strictObject({
156
+ total: z.int().describe("Total quota available in the current bucket."),
157
+ used: z.int().describe("Quota already consumed in the current bucket."),
158
+ remaining: z.int().describe("Quota still available in the current bucket.")
159
159
  }).describe("Usage quota bucket."),
160
- grace: external_exports.strictObject({
161
- total: external_exports.int().describe("Total quota available in the current bucket."),
162
- used: external_exports.int().describe("Quota already consumed in the current bucket."),
163
- remaining: external_exports.int().describe("Quota still available in the current bucket.")
160
+ grace: z.strictObject({
161
+ total: z.int().describe("Total quota available in the current bucket."),
162
+ used: z.int().describe("Quota already consumed in the current bucket."),
163
+ remaining: z.int().describe("Quota still available in the current bucket.")
164
164
  }).describe("Usage quota bucket.")
165
165
  }).describe("Quota usage information returned by currencyapi.")
166
166
  }).describe("currencyapi account quota status.");
167
- var getSupportedCurrenciesInput = external_exports.strictObject({
168
- currencies: external_exports.array(external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.")).min(1).describe("List of currency codes to include in the response.").optional(),
169
- type: external_exports.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto.").optional()
167
+ var getSupportedCurrenciesInput = z.strictObject({
168
+ currencies: z.array(z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.")).min(1).describe("List of currency codes to include in the response.").optional(),
169
+ type: z.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto.").optional()
170
170
  }).describe("Input parameters for retrieving supported currencies from currencyapi.");
171
- var getSupportedCurrenciesOutput = external_exports.strictObject({
172
- data: external_exports.record(external_exports.string(), external_exports.strictObject({
173
- symbol: external_exports.string().min(1).describe("Currency symbol returned by currencyapi."),
174
- name: external_exports.string().min(1).describe("Currency display name."),
175
- symbol_native: external_exports.string().min(1).describe("Native currency symbol."),
176
- decimal_digits: external_exports.int().describe("Number of decimal digits used by the currency."),
177
- rounding: external_exports.number().describe("Currency rounding precision value."),
178
- code: external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits."),
179
- name_plural: external_exports.string().min(1).describe("Plural display name for the currency."),
180
- type: external_exports.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto."),
181
- countries: external_exports.array(external_exports.string().min(1).describe("ISO country code that uses the currency.")).describe("List of ISO country codes associated with the currency.")
171
+ var getSupportedCurrenciesOutput = z.strictObject({
172
+ data: z.record(z.string(), z.strictObject({
173
+ symbol: z.string().min(1).describe("Currency symbol returned by currencyapi."),
174
+ name: z.string().min(1).describe("Currency display name."),
175
+ symbol_native: z.string().min(1).describe("Native currency symbol."),
176
+ decimal_digits: z.int().describe("Number of decimal digits used by the currency."),
177
+ rounding: z.number().describe("Currency rounding precision value."),
178
+ code: z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits."),
179
+ name_plural: z.string().min(1).describe("Plural display name for the currency."),
180
+ type: z.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto."),
181
+ countries: z.array(z.string().min(1).describe("ISO country code that uses the currency.")).describe("List of ISO country codes associated with the currency.")
182
182
  }).describe("Currency metadata returned by currencyapi.")).describe("Mapping of currency codes to currency metadata.")
183
183
  }).describe("Supported currencies returned by currencyapi.");
184
- var getLatestRatesInput = external_exports.strictObject({
185
- base_currency: external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.").optional(),
186
- currencies: external_exports.array(external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.")).min(1).describe("List of currency codes to include in the response.").optional(),
187
- type: external_exports.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto.").optional()
184
+ var getLatestRatesInput = z.strictObject({
185
+ base_currency: z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.").optional(),
186
+ currencies: z.array(z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.")).min(1).describe("List of currency codes to include in the response.").optional(),
187
+ type: z.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto.").optional()
188
188
  }).describe("Input parameters for retrieving latest exchange rates from currencyapi.");
189
- var getLatestRatesOutput = external_exports.strictObject({
190
- meta: external_exports.strictObject({
191
- last_updated_at: external_exports.string().min(1).describe("Timestamp indicating when the dataset was last updated.")
189
+ var getLatestRatesOutput = z.strictObject({
190
+ meta: z.strictObject({
191
+ last_updated_at: z.string().min(1).describe("Timestamp indicating when the dataset was last updated.")
192
192
  }).describe("Response metadata returned by currencyapi."),
193
- data: external_exports.record(external_exports.string(), external_exports.strictObject({
194
- code: external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits."),
195
- value: external_exports.number().describe("Exchange rate or converted value returned by currencyapi.")
193
+ data: z.record(z.string(), z.strictObject({
194
+ code: z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits."),
195
+ value: z.number().describe("Exchange rate or converted value returned by currencyapi.")
196
196
  }).describe("Exchange rate entry returned by currencyapi.")).describe("Mapping of currency codes to exchange rate entries.")
197
197
  }).describe("Exchange rate payload returned by currencyapi.");
198
- var getHistoricalRatesInput = external_exports.strictObject({
199
- date: external_exports.string().regex(new RegExp("^\\d{4}-\\d{2}-\\d{2}$")).describe("Date in YYYY-MM-DD format."),
200
- base_currency: external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.").optional(),
201
- currencies: external_exports.array(external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.")).min(1).describe("List of currency codes to include in the response.").optional(),
202
- type: external_exports.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto.").optional()
198
+ var getHistoricalRatesInput = z.strictObject({
199
+ date: z.string().regex(new RegExp("^\\d{4}-\\d{2}-\\d{2}$")).describe("Date in YYYY-MM-DD format."),
200
+ base_currency: z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.").optional(),
201
+ currencies: z.array(z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.")).min(1).describe("List of currency codes to include in the response.").optional(),
202
+ type: z.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto.").optional()
203
203
  }).describe("Input parameters for retrieving historical exchange rates from currencyapi.");
204
- var getHistoricalRatesOutput = external_exports.strictObject({
205
- meta: external_exports.strictObject({
206
- last_updated_at: external_exports.string().min(1).describe("Timestamp indicating when the dataset was last updated.")
204
+ var getHistoricalRatesOutput = z.strictObject({
205
+ meta: z.strictObject({
206
+ last_updated_at: z.string().min(1).describe("Timestamp indicating when the dataset was last updated.")
207
207
  }).describe("Response metadata returned by currencyapi."),
208
- data: external_exports.record(external_exports.string(), external_exports.strictObject({
209
- code: external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits."),
210
- value: external_exports.number().describe("Exchange rate or converted value returned by currencyapi.")
208
+ data: z.record(z.string(), z.strictObject({
209
+ code: z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits."),
210
+ value: z.number().describe("Exchange rate or converted value returned by currencyapi.")
211
211
  }).describe("Exchange rate entry returned by currencyapi.")).describe("Mapping of currency codes to exchange rate entries.")
212
212
  }).describe("Exchange rate payload returned by currencyapi.");
213
- var convertCurrencyInput = external_exports.strictObject({
214
- value: external_exports.number().gt(0).describe("Numeric amount to convert from the base currency."),
215
- date: external_exports.string().regex(new RegExp("^\\d{4}-\\d{2}-\\d{2}$")).describe("Date in YYYY-MM-DD format.").optional(),
216
- base_currency: external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.").optional(),
217
- currencies: external_exports.array(external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.")).min(1).describe("List of currency codes to include in the response.").optional(),
218
- type: external_exports.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto.").optional()
213
+ var convertCurrencyInput = z.strictObject({
214
+ value: z.number().gt(0).describe("Numeric amount to convert from the base currency."),
215
+ date: z.string().regex(new RegExp("^\\d{4}-\\d{2}-\\d{2}$")).describe("Date in YYYY-MM-DD format.").optional(),
216
+ base_currency: z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.").optional(),
217
+ currencies: z.array(z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits.")).min(1).describe("List of currency codes to include in the response.").optional(),
218
+ type: z.enum(["fiat", "metal", "crypto"]).describe("Currency type filter. Supported values are fiat, metal, or crypto.").optional()
219
219
  }).describe("Input parameters for converting a monetary amount with currencyapi.");
220
- var convertCurrencyOutput = external_exports.strictObject({
221
- meta: external_exports.strictObject({
222
- last_updated_at: external_exports.string().min(1).describe("Timestamp indicating when the dataset was last updated.")
220
+ var convertCurrencyOutput = z.strictObject({
221
+ meta: z.strictObject({
222
+ last_updated_at: z.string().min(1).describe("Timestamp indicating when the dataset was last updated.")
223
223
  }).describe("Response metadata returned by currencyapi."),
224
- data: external_exports.record(external_exports.string(), external_exports.strictObject({
225
- code: external_exports.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits."),
226
- value: external_exports.number().describe("Exchange rate or converted value returned by currencyapi.")
224
+ data: z.record(z.string(), z.strictObject({
225
+ code: z.string().regex(new RegExp("^[A-Z0-9]{3,10}$")).describe("Currency code using uppercase ASCII letters or digits."),
226
+ value: z.number().describe("Exchange rate or converted value returned by currencyapi.")
227
227
  }).describe("Exchange rate entry returned by currencyapi.")).describe("Mapping of currency codes to exchange rate entries.")
228
228
  }).describe("Exchange rate payload returned by currencyapi.");
229
229
  var currencyapiActions = {
@@ -231,31 +231,31 @@ var currencyapiActions = {
231
231
  description: "Retrieve current currencyapi account quota usage.",
232
232
  effect: "read",
233
233
  inputSchema: getApiStatusInput,
234
- outputSchema: external_exports.toJSONSchema(getApiStatusOutput, { io: "output", unrepresentable: "any" })
234
+ outputSchema: z.toJSONSchema(getApiStatusOutput, { io: "output", unrepresentable: "any" })
235
235
  },
236
236
  get_supported_currencies: {
237
237
  description: "Retrieve supported currency metadata from currencyapi.",
238
238
  effect: "read",
239
239
  inputSchema: getSupportedCurrenciesInput,
240
- outputSchema: external_exports.toJSONSchema(getSupportedCurrenciesOutput, { io: "output", unrepresentable: "any" })
240
+ outputSchema: z.toJSONSchema(getSupportedCurrenciesOutput, { io: "output", unrepresentable: "any" })
241
241
  },
242
242
  get_latest_rates: {
243
243
  description: "Retrieve the latest exchange rates from currencyapi.",
244
244
  effect: "read",
245
245
  inputSchema: getLatestRatesInput,
246
- outputSchema: external_exports.toJSONSchema(getLatestRatesOutput, { io: "output", unrepresentable: "any" })
246
+ outputSchema: z.toJSONSchema(getLatestRatesOutput, { io: "output", unrepresentable: "any" })
247
247
  },
248
248
  get_historical_rates: {
249
249
  description: "Retrieve historical exchange rates for a specific date from currencyapi.",
250
250
  effect: "read",
251
251
  inputSchema: getHistoricalRatesInput,
252
- outputSchema: external_exports.toJSONSchema(getHistoricalRatesOutput, { io: "output", unrepresentable: "any" })
252
+ outputSchema: z.toJSONSchema(getHistoricalRatesOutput, { io: "output", unrepresentable: "any" })
253
253
  },
254
254
  convert_currency: {
255
255
  description: "Convert a monetary amount into one or more currencies with currencyapi.",
256
256
  effect: "write",
257
257
  inputSchema: convertCurrencyInput,
258
- outputSchema: external_exports.toJSONSchema(convertCurrencyOutput, { io: "output", unrepresentable: "any" })
258
+ outputSchema: z.toJSONSchema(convertCurrencyOutput, { io: "output", unrepresentable: "any" })
259
259
  }
260
260
  };
261
261
 
@@ -0,0 +1,210 @@
1
+ import {
2
+ createAuthedClient
3
+ } from "./chunk-RTW5VRTK.js";
4
+ import "./chunk-BNMLA2RC.js";
5
+ import {
6
+ asJsonObject,
7
+ compactDefined,
8
+ trimmedText
9
+ } from "./chunk-JXHMDBAY.js";
10
+ import {
11
+ createProviderPlugin,
12
+ upstreamError
13
+ } from "./chunk-X7ZUTKHR.js";
14
+ import "./chunk-7ISGFRC6.js";
15
+ import "./chunk-UY6ANCOY.js";
16
+ import {
17
+ TBError
18
+ } from "./chunk-HA4BGL6C.js";
19
+ import "./chunk-U67V476Y.js";
20
+
21
+ // ../plugins/src/deepseek/api.ts
22
+ var SERVICE = "deepseek";
23
+ var API_BASE = "https://api.deepseek.com";
24
+ var ANTHROPIC_API_PREFIX = "/anthropic";
25
+ function errorMessage(payload, bodyKind, status) {
26
+ const fallback = `deepseek request failed with ${status}`;
27
+ const body = asJsonObject(payload);
28
+ const nested = asJsonObject(body?.error);
29
+ return trimmedText(nested?.message) ?? trimmedText(body?.message) ?? (bodyKind === "invalid-json" || bodyKind === "text" ? trimmedText(payload) : void 0) ?? fallback;
30
+ }
31
+ function mapDeepseekError({ bodyKind, data: payload, status }) {
32
+ return upstreamError(status, errorMessage(payload, bodyKind, status));
33
+ }
34
+ var openaiHttp = createAuthedClient({
35
+ baseUrl: API_BASE,
36
+ service: SERVICE,
37
+ auth: { kind: "bearer" },
38
+ headers: { "content-type": "application/json" },
39
+ mapError: mapDeepseekError
40
+ });
41
+ var anthropicHttp = createAuthedClient({
42
+ baseUrl: `${API_BASE}${ANTHROPIC_API_PREFIX}/`,
43
+ service: SERVICE,
44
+ auth: { kind: "header", name: "x-api-key" },
45
+ headers: { "content-type": "application/json" },
46
+ mapError: mapDeepseekError
47
+ });
48
+ function assertStreamingDisabled(input) {
49
+ if (input.stream === true) {
50
+ throw new TBError("invalid_argument", "stream=true is not supported by connector actions");
51
+ }
52
+ }
53
+ async function request(ctx, options) {
54
+ const client = options.anthropic === true ? anthropicHttp : openaiHttp;
55
+ const { data } = await client.request(ctx, {
56
+ path: options.path,
57
+ method: options.method ?? "GET",
58
+ ...options.body === void 0 ? {} : { json: options.body },
59
+ invalidJsonMessage: "deepseek returned malformed JSON"
60
+ });
61
+ if (data === void 0) throw upstreamError(502, "deepseek returned malformed JSON");
62
+ return data;
63
+ }
64
+ function listModels(_input, ctx) {
65
+ return request(ctx, { path: "/models" });
66
+ }
67
+ function getUserBalance(_input, ctx) {
68
+ return request(ctx, { path: "/user/balance" });
69
+ }
70
+ function createChatCompletion(input, ctx) {
71
+ assertStreamingDisabled(input);
72
+ return request(ctx, { path: "/chat/completions", method: "POST", body: compactDefined(input) });
73
+ }
74
+ function createAnthropicMessage(input, ctx) {
75
+ assertStreamingDisabled(input);
76
+ return request(ctx, { path: "/v1/messages", method: "POST", body: compactDefined(input), anthropic: true });
77
+ }
78
+
79
+ // ../plugins/src/deepseek/schema.ts
80
+ import { z } from "zod/v4";
81
+ var listModelsInput = z.strictObject({}).describe("No input parameters are required for this action.");
82
+ var listModelsOutput = z.strictObject({
83
+ object: z.string().describe("The top-level object type returned by the API.").optional(),
84
+ data: z.array(z.looseObject({
85
+ id: z.string().describe("The model identifier.").optional(),
86
+ object: z.string().describe("The object type returned by the API.").optional(),
87
+ owned_by: z.string().describe("The owner of the model.").optional()
88
+ }).describe("A DeepSeek model summary.")).describe("The list of available models.").optional()
89
+ });
90
+ var getUserBalanceInput = z.strictObject({}).describe("No input parameters are required for this action.");
91
+ var getUserBalanceOutput = z.strictObject({
92
+ is_available: z.boolean().describe("Whether the account balance information is currently available.").optional(),
93
+ balance_infos: z.array(z.looseObject({
94
+ currency: z.string().describe("The currency code for the balance.").optional(),
95
+ total_balance: z.string().describe("The total available balance.").optional(),
96
+ granted_balance: z.string().describe("The promotional or granted balance.").optional(),
97
+ topped_up_balance: z.string().describe("The manually topped-up balance.").optional()
98
+ }).describe("A balance entry returned by the DeepSeek balance API.")).describe("The list of balances grouped by currency.").optional()
99
+ });
100
+ var createChatCompletionInput = z.strictObject({
101
+ model: z.enum(["deepseek-chat", "deepseek-reasoner"]).describe("The DeepSeek model identifier."),
102
+ messages: z.array(z.looseObject({
103
+ role: z.enum(["system", "user", "assistant", "tool"]).describe("The role of the message author.").optional(),
104
+ content: z.string().describe("The text content of the message.").nullable().optional(),
105
+ name: z.string().describe("The optional participant name for the message.").optional(),
106
+ prefix: z.boolean().describe("Whether the assistant message should be treated as a prefix.").optional(),
107
+ tool_call_id: z.string().describe("The identifier of the tool call that this tool message responds to.").optional(),
108
+ reasoning_content: z.string().describe("Reasoning content provided for assistant context.").optional()
109
+ }).describe("A message in the OpenAI-compatible chat completion request.")).describe("The ordered conversation history to send to the model."),
110
+ frequency_penalty: z.number().min(-2).max(2).describe("The frequency penalty to apply to repeated tokens.").optional(),
111
+ logprobs: z.boolean().describe("Whether to include token-level log probability details in the response.").optional(),
112
+ max_tokens: z.int().min(1).describe("The maximum number of tokens to generate.").optional(),
113
+ presence_penalty: z.number().min(-2).max(2).describe("The presence penalty to apply to newly introduced tokens.").optional(),
114
+ response_format: z.strictObject({
115
+ type: z.enum(["text", "json_object"]).describe("The response format type requested from the model.").optional()
116
+ }).optional(),
117
+ stop: z.union([z.string().describe("A single stop sequence."), z.array(z.string().describe("A stop sequence.")).describe("A list of stop sequences.")]).describe("One or more sequences that stop generation.").optional(),
118
+ stream: z.boolean().describe("Whether to request a streaming response. This connector only accepts false or omission.").optional(),
119
+ stream_options: z.strictObject({
120
+ include_usage: z.boolean().describe("Whether usage information should be included in stream chunks.").optional()
121
+ }).describe("Streaming options for the request.").optional(),
122
+ temperature: z.number().min(0).max(2).describe("The sampling temperature to use for generation.").optional(),
123
+ thinking: z.strictObject({
124
+ type: z.enum(["enabled", "disabled"]).describe("Whether reasoning mode should be enabled for the request.").optional()
125
+ }).optional(),
126
+ tool_choice: z.union([z.enum(["none", "auto", "required"]).describe("A predefined tool selection strategy for the request."), z.looseObject({
127
+ type: z.literal("function").describe("The tool choice type. Must be function.").optional(),
128
+ function: z.strictObject({
129
+ name: z.string().describe("The name of the function tool to force.").optional()
130
+ }).optional()
131
+ }).describe("A tool choice that forces one specific function tool.")]).describe("The tool selection policy for the chat completion request.").optional(),
132
+ tools: z.array(z.looseObject({
133
+ type: z.literal("function").describe("The tool type. Must be function.").optional(),
134
+ function: z.looseObject({
135
+ name: z.string().describe("The function name exposed to the model.").optional(),
136
+ description: z.string().describe("A human-readable description of the function.").optional(),
137
+ parameters: z.record(z.string(), z.unknown().describe("Any JSON value accepted by the DeepSeek API.")).describe("A JSON object passed through to the DeepSeek API.").optional(),
138
+ strict: z.boolean().describe("Whether the model must follow the declared parameter schema exactly.").optional()
139
+ }).describe("The function definition for an OpenAI-compatible tool.").optional()
140
+ }).describe("An OpenAI-compatible tool definition.")).describe("The tools available to the model.").optional(),
141
+ top_logprobs: z.int().min(0).max(20).describe("The number of top token log probabilities to return.").optional(),
142
+ top_p: z.number().min(0).max(1).describe("The nucleus sampling threshold.").optional()
143
+ }).describe("The input payload for the OpenAI-compatible chat completion action.");
144
+ var createChatCompletionOutput = z.looseObject({}).describe("The response payload for the chat completion action.");
145
+ var createAnthropicMessageInput = z.strictObject({
146
+ model: z.enum(["deepseek-chat", "deepseek-reasoner"]).describe("The DeepSeek model identifier."),
147
+ max_tokens: z.int().min(1).describe("The maximum number of tokens to generate."),
148
+ messages: z.array(z.strictObject({
149
+ role: z.enum(["user", "assistant"]).describe("The role of the message author.").optional(),
150
+ content: z.union([z.string().describe("Plain text content."), z.array(z.record(z.string(), z.unknown().describe("Any JSON value accepted by the DeepSeek API.")).describe("A JSON object passed through to the DeepSeek API.")).describe("Structured content blocks.")]).describe("Message content as plain text or structured blocks.").optional()
151
+ })).describe("The ordered conversation history to send to the model."),
152
+ stop_sequences: z.array(z.string().describe("A stop sequence.")).describe("Sequences that stop generation.").optional(),
153
+ stream: z.boolean().describe("Whether to request a streaming response. This connector only accepts false or omission.").optional(),
154
+ system: z.union([z.string().describe("Plain text content."), z.array(z.record(z.string(), z.unknown().describe("Any JSON value accepted by the DeepSeek API.")).describe("A JSON object passed through to the DeepSeek API.")).describe("Structured content blocks.")]).describe("Message content as plain text or structured blocks.").optional(),
155
+ temperature: z.number().min(0).max(2).describe("The sampling temperature to use for generation.").optional(),
156
+ thinking: z.looseObject({
157
+ type: z.string().describe("The thinking mode requested by the Anthropic-compatible API.").optional(),
158
+ budget_tokens: z.int().describe("The maximum number of tokens allocated to thinking.").optional()
159
+ }).describe("Thinking configuration for the Anthropic-compatible request.").optional(),
160
+ tool_choice: z.union([z.enum(["auto", "any", "none"]).describe("A predefined Anthropic-compatible tool choice mode."), z.record(z.string(), z.unknown().describe("Any JSON value accepted by the DeepSeek API.")).describe("A JSON object passed through to the DeepSeek API.")]).describe("How the model should choose tools for the request.").optional(),
161
+ tools: z.array(z.record(z.string(), z.unknown().describe("Any JSON value accepted by the DeepSeek API.")).describe("A JSON object passed through to the DeepSeek API.")).describe("The tools available to the model.").optional(),
162
+ top_p: z.number().describe("The nucleus sampling threshold.").optional()
163
+ }).describe("The input payload for the Anthropic-compatible message action.");
164
+ var createAnthropicMessageOutput = z.looseObject({}).describe("The response payload for the Anthropic-compatible message action.");
165
+ var deepseekActions = {
166
+ list_models: {
167
+ description: "List the available DeepSeek models.",
168
+ effect: "read",
169
+ inputSchema: listModelsInput,
170
+ outputSchema: z.toJSONSchema(listModelsOutput, { io: "output", unrepresentable: "any" })
171
+ },
172
+ get_user_balance: {
173
+ description: "Get the current DeepSeek account balance.",
174
+ effect: "read",
175
+ inputSchema: getUserBalanceInput,
176
+ outputSchema: z.toJSONSchema(getUserBalanceOutput, { io: "output", unrepresentable: "any" })
177
+ },
178
+ create_chat_completion: {
179
+ description: "Create a DeepSeek chat completion via the OpenAI-compatible API.",
180
+ effect: "write",
181
+ inputSchema: createChatCompletionInput,
182
+ outputSchema: z.toJSONSchema(createChatCompletionOutput, { io: "output", unrepresentable: "any" })
183
+ },
184
+ create_anthropic_message: {
185
+ description: "Create a DeepSeek message via the Anthropic-compatible API.",
186
+ effect: "write",
187
+ inputSchema: createAnthropicMessageInput,
188
+ outputSchema: z.toJSONSchema(createAnthropicMessageOutput, { io: "output", unrepresentable: "any" })
189
+ }
190
+ };
191
+
192
+ // ../plugins/src/deepseek/index.ts
193
+ function createDeepseekPlugin() {
194
+ return createProviderPlugin({
195
+ description: "DeepSeek",
196
+ credentialProbe: "list_models",
197
+ actions: deepseekActions,
198
+ handlers: {
199
+ list_models: listModels,
200
+ get_user_balance: getUserBalance,
201
+ create_chat_completion: createChatCompletion,
202
+ create_anthropic_message: createAnthropicMessage
203
+ }
204
+ });
205
+ }
206
+ var deepseek_default = createDeepseekPlugin();
207
+ export {
208
+ createDeepseekPlugin,
209
+ deepseek_default as default
210
+ };