@bubblelab/bubble-core 0.1.10 → 0.1.12

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 (350) hide show
  1. package/dist/bubble-bundle.d.ts +803 -351
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +130 -35
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-flow/bubble-flow-class.d.ts +5 -0
  6. package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
  7. package/dist/bubble-flow/bubble-flow-class.js +20 -0
  8. package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
  9. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
  10. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js +6 -3
  11. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js.map +1 -1
  12. package/dist/bubbles/service-bubble/agi-inc.d.ts +1121 -0
  13. package/dist/bubbles/service-bubble/agi-inc.d.ts.map +1 -0
  14. package/dist/bubbles/service-bubble/agi-inc.js +730 -0
  15. package/dist/bubbles/service-bubble/agi-inc.js.map +1 -0
  16. package/dist/bubbles/service-bubble/ai-agent.d.ts +273 -61
  17. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  18. package/dist/bubbles/service-bubble/ai-agent.js +536 -405
  19. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  20. package/dist/bubbles/service-bubble/airtable.d.ts +1753 -0
  21. package/dist/bubbles/service-bubble/airtable.d.ts.map +1 -0
  22. package/dist/bubbles/service-bubble/airtable.js +1173 -0
  23. package/dist/bubbles/service-bubble/airtable.js.map +1 -0
  24. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +240 -0
  25. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts.map +1 -0
  26. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js +119 -0
  27. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js.map +1 -0
  28. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +4 -4
  29. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +14 -14
  30. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +137 -0
  31. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts.map +1 -0
  32. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js +81 -0
  33. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js.map +1 -0
  34. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +6 -6
  35. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +32 -32
  36. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +488 -0
  37. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts.map +1 -0
  38. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js +463 -0
  39. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js.map +1 -0
  40. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +262 -0
  41. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts.map +1 -0
  42. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js +291 -0
  43. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js.map +1 -0
  44. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
  45. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1301 -170
  46. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
  47. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +32 -0
  48. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
  49. package/dist/bubbles/service-bubble/apify/apify.d.ts +158 -13
  50. package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -1
  51. package/dist/bubbles/service-bubble/apify/apify.js +222 -37
  52. package/dist/bubbles/service-bubble/apify/apify.js.map +1 -1
  53. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +542 -0
  54. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts.map +1 -0
  55. package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.d.ts +37 -0
  56. package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.js +203 -0
  58. package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.js.map +1 -0
  59. package/dist/bubbles/service-bubble/browserbase/browserbase.js +593 -0
  60. package/dist/bubbles/service-bubble/browserbase/browserbase.js.map +1 -0
  61. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +518 -0
  62. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts.map +1 -0
  63. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js +311 -0
  64. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js.map +1 -0
  65. package/dist/bubbles/service-bubble/browserbase/index.d.ts +3 -0
  66. package/dist/bubbles/service-bubble/browserbase/index.d.ts.map +1 -0
  67. package/dist/bubbles/service-bubble/browserbase/index.js +3 -0
  68. package/dist/bubbles/service-bubble/browserbase/index.js.map +1 -0
  69. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +1358 -0
  70. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts.map +1 -0
  71. package/dist/bubbles/service-bubble/crustdata/crustdata.js +219 -0
  72. package/dist/bubbles/service-bubble/crustdata/crustdata.js.map +1 -0
  73. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +1604 -0
  74. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts.map +1 -0
  75. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.js +194 -0
  76. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.js.map +1 -0
  77. package/dist/bubbles/service-bubble/crustdata/index.d.ts +3 -0
  78. package/dist/bubbles/service-bubble/crustdata/index.d.ts.map +1 -0
  79. package/dist/bubbles/service-bubble/crustdata/index.js +3 -0
  80. package/dist/bubbles/service-bubble/crustdata/index.js.map +1 -0
  81. package/dist/bubbles/service-bubble/eleven-labs.d.ts +421 -0
  82. package/dist/bubbles/service-bubble/eleven-labs.d.ts.map +1 -0
  83. package/dist/bubbles/service-bubble/eleven-labs.js +479 -0
  84. package/dist/bubbles/service-bubble/eleven-labs.js.map +1 -0
  85. package/dist/bubbles/service-bubble/firecrawl.d.ts +37748 -0
  86. package/dist/bubbles/service-bubble/firecrawl.d.ts.map +1 -0
  87. package/dist/bubbles/service-bubble/firecrawl.js +1489 -0
  88. package/dist/bubbles/service-bubble/firecrawl.js.map +1 -0
  89. package/dist/bubbles/service-bubble/followupboss.d.ts +6822 -0
  90. package/dist/bubbles/service-bubble/followupboss.d.ts.map +1 -0
  91. package/dist/bubbles/service-bubble/followupboss.js +1394 -0
  92. package/dist/bubbles/service-bubble/followupboss.js.map +1 -0
  93. package/dist/bubbles/service-bubble/github.d.ts +2393 -0
  94. package/dist/bubbles/service-bubble/github.d.ts.map +1 -0
  95. package/dist/bubbles/service-bubble/github.js +1046 -0
  96. package/dist/bubbles/service-bubble/github.js.map +1 -0
  97. package/dist/bubbles/service-bubble/gmail.d.ts +180 -180
  98. package/dist/bubbles/service-bubble/google-calendar.d.ts +60 -60
  99. package/dist/bubbles/service-bubble/google-drive.d.ts +69 -68
  100. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  101. package/dist/bubbles/service-bubble/google-drive.js +35 -3
  102. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  103. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +943 -0
  104. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts.map +1 -0
  105. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts +31 -0
  106. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts.map +1 -0
  107. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js +184 -0
  108. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js.map +1 -0
  109. package/dist/bubbles/service-bubble/google-sheets/google-sheets.js +401 -0
  110. package/dist/bubbles/service-bubble/google-sheets/google-sheets.js.map +1 -0
  111. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +1024 -0
  112. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts.map +1 -0
  113. package/dist/bubbles/service-bubble/{google-sheets.js → google-sheets/google-sheets.schema.js} +45 -409
  114. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js.map +1 -0
  115. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts +38 -0
  116. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts.map +1 -0
  117. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js +183 -0
  118. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js.map +1 -0
  119. package/dist/bubbles/service-bubble/google-sheets/index.d.ts +4 -0
  120. package/dist/bubbles/service-bubble/google-sheets/index.d.ts.map +1 -0
  121. package/dist/bubbles/service-bubble/google-sheets/index.js +4 -0
  122. package/dist/bubbles/service-bubble/google-sheets/index.js.map +1 -0
  123. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  124. package/dist/bubbles/service-bubble/http.d.ts +17 -5
  125. package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
  126. package/dist/bubbles/service-bubble/http.integration.flow.d.ts +49 -0
  127. package/dist/bubbles/service-bubble/http.integration.flow.d.ts.map +1 -0
  128. package/dist/bubbles/service-bubble/http.integration.flow.js +425 -0
  129. package/dist/bubbles/service-bubble/http.integration.flow.js.map +1 -0
  130. package/dist/bubbles/service-bubble/http.js +47 -5
  131. package/dist/bubbles/service-bubble/http.js.map +1 -1
  132. package/dist/bubbles/service-bubble/insforge-db.d.ts +140 -0
  133. package/dist/bubbles/service-bubble/insforge-db.d.ts.map +1 -0
  134. package/dist/bubbles/service-bubble/insforge-db.js +260 -0
  135. package/dist/bubbles/service-bubble/insforge-db.js.map +1 -0
  136. package/dist/bubbles/service-bubble/notion/index.d.ts +3 -0
  137. package/dist/bubbles/service-bubble/notion/index.d.ts.map +1 -0
  138. package/dist/bubbles/service-bubble/notion/index.js +3 -0
  139. package/dist/bubbles/service-bubble/notion/index.js.map +1 -0
  140. package/dist/bubbles/service-bubble/notion/notion.d.ts +35405 -0
  141. package/dist/bubbles/service-bubble/notion/notion.d.ts.map +1 -0
  142. package/dist/bubbles/service-bubble/notion/notion.js +1492 -0
  143. package/dist/bubbles/service-bubble/notion/notion.js.map +1 -0
  144. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +1148 -0
  145. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts.map +1 -0
  146. package/dist/bubbles/service-bubble/notion/property-schemas.js +341 -0
  147. package/dist/bubbles/service-bubble/notion/property-schemas.js.map +1 -0
  148. package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
  149. package/dist/bubbles/service-bubble/resend.d.ts +30 -9
  150. package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
  151. package/dist/bubbles/service-bubble/resend.js +133 -2
  152. package/dist/bubbles/service-bubble/resend.js.map +1 -1
  153. package/dist/bubbles/service-bubble/slack.d.ts +1741 -798
  154. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -1
  155. package/dist/bubbles/service-bubble/slack.js +322 -28
  156. package/dist/bubbles/service-bubble/slack.js.map +1 -1
  157. package/dist/bubbles/service-bubble/storage.d.ts +26 -22
  158. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
  159. package/dist/bubbles/service-bubble/storage.js +45 -4
  160. package/dist/bubbles/service-bubble/storage.js.map +1 -1
  161. package/dist/bubbles/service-bubble/telegram.d.ts +7742 -0
  162. package/dist/bubbles/service-bubble/telegram.d.ts.map +1 -0
  163. package/dist/bubbles/service-bubble/telegram.js +1132 -0
  164. package/dist/bubbles/service-bubble/telegram.js.map +1 -0
  165. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +494 -0
  166. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts.map +1 -0
  167. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.d.ts +31 -0
  168. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.d.ts.map +1 -0
  169. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.js +100 -0
  170. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.js.map +1 -0
  171. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.js +1301 -0
  172. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.js.map +1 -0
  173. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +473 -0
  174. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts.map +1 -0
  175. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.js +230 -0
  176. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.js.map +1 -0
  177. package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.d.ts +3 -0
  178. package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.d.ts.map +1 -0
  179. package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.js +3 -0
  180. package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.js.map +1 -0
  181. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +76 -20
  182. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts.map +1 -1
  183. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js +12 -0
  184. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js.map +1 -1
  185. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +14 -14
  186. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +188 -0
  187. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts.map +1 -0
  188. package/dist/bubbles/tool-bubble/code-edit-tool.js +321 -0
  189. package/dist/bubbles/tool-bubble/code-edit-tool.js.map +1 -0
  190. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +740 -0
  191. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts.map +1 -0
  192. package/dist/bubbles/tool-bubble/company-enrichment-tool.js +350 -0
  193. package/dist/bubbles/tool-bubble/company-enrichment-tool.js.map +1 -0
  194. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +8 -4
  195. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
  196. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +115 -10
  197. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
  198. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +455 -0
  199. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts.map +1 -0
  200. package/dist/bubbles/tool-bubble/google-maps-tool.js +206 -0
  201. package/dist/bubbles/tool-bubble/google-maps-tool.js.map +1 -0
  202. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +36 -36
  203. package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -1
  204. package/dist/bubbles/tool-bubble/instagram-tool.js +4 -2
  205. package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -1
  206. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +830 -453
  207. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -1
  208. package/dist/bubbles/tool-bubble/linkedin-tool.js +236 -14
  209. package/dist/bubbles/tool-bubble/linkedin-tool.js.map +1 -1
  210. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  211. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +66 -66
  212. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +17 -16
  213. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts.map +1 -1
  214. package/dist/bubbles/tool-bubble/research-agent-tool.js +32 -17
  215. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
  216. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  217. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +485 -0
  218. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts.map +1 -0
  219. package/dist/bubbles/tool-bubble/tiktok-tool.js +226 -0
  220. package/dist/bubbles/tool-bubble/tiktok-tool.js.map +1 -0
  221. package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
  222. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +947 -0
  223. package/dist/bubbles/tool-bubble/twitter-tool.d.ts.map +1 -0
  224. package/dist/bubbles/tool-bubble/twitter-tool.js +497 -0
  225. package/dist/bubbles/tool-bubble/twitter-tool.js.map +1 -0
  226. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -16
  227. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts.map +1 -1
  228. package/dist/bubbles/tool-bubble/web-crawl-tool.js +58 -59
  229. package/dist/bubbles/tool-bubble/web-crawl-tool.js.map +1 -1
  230. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
  231. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts.map +1 -1
  232. package/dist/bubbles/tool-bubble/web-extract-tool.js +17 -17
  233. package/dist/bubbles/tool-bubble/web-extract-tool.js.map +1 -1
  234. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +21 -113
  235. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -1
  236. package/dist/bubbles/tool-bubble/web-scrape-tool.js +55 -73
  237. package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
  238. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +20 -9
  239. package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
  240. package/dist/bubbles/tool-bubble/web-search-tool.js +45 -35
  241. package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
  242. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +25 -25
  243. package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -1
  244. package/dist/bubbles/tool-bubble/youtube-tool.js +8 -5
  245. package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -1
  246. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  247. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +30 -30
  248. package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
  249. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +22 -22
  250. package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
  251. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +70 -70
  252. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
  253. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +4 -4
  254. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
  255. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +36 -36
  256. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +1 -1
  257. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +14 -14
  258. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts.map +1 -1
  259. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +6 -6
  260. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -1
  261. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +18 -18
  262. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts.map +1 -1
  263. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +24 -4
  264. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -1
  265. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +19 -19
  266. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -1
  267. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +8 -8
  268. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -1
  269. package/dist/bubbles.json +260 -77
  270. package/dist/index.d.ts +25 -4
  271. package/dist/index.d.ts.map +1 -1
  272. package/dist/index.js +18 -3
  273. package/dist/index.js.map +1 -1
  274. package/dist/logging/BubbleLogger.d.ts +55 -16
  275. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  276. package/dist/logging/BubbleLogger.js +192 -77
  277. package/dist/logging/BubbleLogger.js.map +1 -1
  278. package/dist/logging/StreamingBubbleLogger.d.ts +21 -1
  279. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
  280. package/dist/logging/StreamingBubbleLogger.js +80 -8
  281. package/dist/logging/StreamingBubbleLogger.js.map +1 -1
  282. package/dist/logging/WebhookStreamLogger.d.ts +66 -0
  283. package/dist/logging/WebhookStreamLogger.d.ts.map +1 -0
  284. package/dist/logging/WebhookStreamLogger.js +291 -0
  285. package/dist/logging/WebhookStreamLogger.js.map +1 -0
  286. package/dist/types/available-tools.d.ts +1 -1
  287. package/dist/types/available-tools.d.ts.map +1 -1
  288. package/dist/types/available-tools.js +7 -0
  289. package/dist/types/available-tools.js.map +1 -1
  290. package/dist/types/base-bubble-class.d.ts +6 -4
  291. package/dist/types/base-bubble-class.d.ts.map +1 -1
  292. package/dist/types/base-bubble-class.js +30 -23
  293. package/dist/types/base-bubble-class.js.map +1 -1
  294. package/dist/types/bubble.d.ts +2 -0
  295. package/dist/types/bubble.d.ts.map +1 -1
  296. package/dist/types/service-bubble-class.d.ts +1 -1
  297. package/dist/types/service-bubble-class.d.ts.map +1 -1
  298. package/dist/types/service-bubble-class.js +2 -2
  299. package/dist/types/service-bubble-class.js.map +1 -1
  300. package/dist/types/tool-bubble-class.d.ts +1 -1
  301. package/dist/types/tool-bubble-class.d.ts.map +1 -1
  302. package/dist/types/tool-bubble-class.js +60 -10
  303. package/dist/types/tool-bubble-class.js.map +1 -1
  304. package/dist/types/workflow-bubble-class.d.ts +1 -1
  305. package/dist/types/workflow-bubble-class.d.ts.map +1 -1
  306. package/dist/types/workflow-bubble-class.js +2 -2
  307. package/dist/types/workflow-bubble-class.js.map +1 -1
  308. package/dist/utils/agent-formatter.d.ts +14 -2
  309. package/dist/utils/agent-formatter.d.ts.map +1 -1
  310. package/dist/utils/agent-formatter.js +174 -26
  311. package/dist/utils/agent-formatter.js.map +1 -1
  312. package/dist/utils/bubbleflow-validation.d.ts +7 -0
  313. package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
  314. package/dist/utils/bubbleflow-validation.js +171 -6
  315. package/dist/utils/bubbleflow-validation.js.map +1 -1
  316. package/dist/utils/json-parsing.d.ts.map +1 -1
  317. package/dist/utils/json-parsing.js +146 -0
  318. package/dist/utils/json-parsing.js.map +1 -1
  319. package/dist/utils/safe-gemini-chat.d.ts +31 -0
  320. package/dist/utils/safe-gemini-chat.d.ts.map +1 -0
  321. package/dist/utils/safe-gemini-chat.js +93 -0
  322. package/dist/utils/safe-gemini-chat.js.map +1 -0
  323. package/dist/utils/schema-comparison.d.ts +92 -0
  324. package/dist/utils/schema-comparison.d.ts.map +1 -0
  325. package/dist/utils/schema-comparison.js +716 -0
  326. package/dist/utils/schema-comparison.js.map +1 -0
  327. package/dist/utils/zod-schema.d.ts +24 -0
  328. package/dist/utils/zod-schema.d.ts.map +1 -0
  329. package/dist/utils/zod-schema.js +56 -0
  330. package/dist/utils/zod-schema.js.map +1 -0
  331. package/package.json +6 -4
  332. package/dist/bubbles/service-bubble/google-sheets.d.ts +0 -1811
  333. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +0 -1
  334. package/dist/bubbles/service-bubble/google-sheets.js.map +0 -1
  335. package/dist/bubbles/service-bubble/x-twitter.d.ts +0 -814
  336. package/dist/bubbles/service-bubble/x-twitter.d.ts.map +0 -1
  337. package/dist/bubbles/service-bubble/x-twitter.js +0 -445
  338. package/dist/bubbles/service-bubble/x-twitter.js.map +0 -1
  339. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +0 -125
  340. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +0 -1
  341. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +0 -808
  342. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +0 -1
  343. package/dist/test-gm.d.ts +0 -10
  344. package/dist/test-gm.d.ts.map +0 -1
  345. package/dist/test-gm.js +0 -95
  346. package/dist/test-gm.js.map +0 -1
  347. package/dist/utils/param-helper.d.ts +0 -2
  348. package/dist/utils/param-helper.d.ts.map +0 -1
  349. package/dist/utils/param-helper.js +0 -5
  350. package/dist/utils/param-helper.js.map +0 -1
@@ -0,0 +1,1753 @@
1
+ import { z } from 'zod';
2
+ import { ServiceBubble } from '../../types/service-bubble-class.js';
3
+ import type { BubbleContext } from '../../types/bubble.js';
4
+ import { CredentialType } from '@bubblelab/shared-schemas';
5
+ declare const AirtableParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
6
+ operation: z.ZodLiteral<"list_records">;
7
+ baseId: z.ZodString;
8
+ tableIdOrName: z.ZodString;
9
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
+ filterByFormula: z.ZodOptional<z.ZodString>;
11
+ maxRecords: z.ZodOptional<z.ZodNumber>;
12
+ pageSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ field: z.ZodString;
15
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ direction: "asc" | "desc";
18
+ field: string;
19
+ }, {
20
+ field: string;
21
+ direction?: "asc" | "desc" | undefined;
22
+ }>, "many">>;
23
+ view: z.ZodOptional<z.ZodString>;
24
+ cellFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<["json", "string"]>>>;
25
+ timeZone: z.ZodOptional<z.ZodString>;
26
+ userLocale: z.ZodOptional<z.ZodString>;
27
+ offset: z.ZodOptional<z.ZodString>;
28
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ operation: "list_records";
31
+ pageSize: number;
32
+ baseId: string;
33
+ tableIdOrName: string;
34
+ cellFormat: "string" | "json";
35
+ sort?: {
36
+ direction: "asc" | "desc";
37
+ field: string;
38
+ }[] | undefined;
39
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
40
+ fields?: string[] | undefined;
41
+ offset?: string | undefined;
42
+ timeZone?: string | undefined;
43
+ filterByFormula?: string | undefined;
44
+ maxRecords?: number | undefined;
45
+ view?: string | undefined;
46
+ userLocale?: string | undefined;
47
+ }, {
48
+ operation: "list_records";
49
+ baseId: string;
50
+ tableIdOrName: string;
51
+ sort?: {
52
+ field: string;
53
+ direction?: "asc" | "desc" | undefined;
54
+ }[] | undefined;
55
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
56
+ fields?: string[] | undefined;
57
+ offset?: string | undefined;
58
+ pageSize?: number | undefined;
59
+ timeZone?: string | undefined;
60
+ filterByFormula?: string | undefined;
61
+ maxRecords?: number | undefined;
62
+ view?: string | undefined;
63
+ cellFormat?: "string" | "json" | undefined;
64
+ userLocale?: string | undefined;
65
+ }>, z.ZodObject<{
66
+ operation: z.ZodLiteral<"get_record">;
67
+ baseId: z.ZodString;
68
+ tableIdOrName: z.ZodString;
69
+ recordId: z.ZodString;
70
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ operation: "get_record";
73
+ baseId: string;
74
+ tableIdOrName: string;
75
+ recordId: string;
76
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
77
+ }, {
78
+ operation: "get_record";
79
+ baseId: string;
80
+ tableIdOrName: string;
81
+ recordId: string;
82
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
83
+ }>, z.ZodObject<{
84
+ operation: z.ZodLiteral<"create_records">;
85
+ baseId: z.ZodString;
86
+ tableIdOrName: z.ZodString;
87
+ records: z.ZodArray<z.ZodObject<{
88
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
91
+ }, {
92
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
93
+ }>, "many">;
94
+ typecast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
95
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ operation: "create_records";
98
+ baseId: string;
99
+ tableIdOrName: string;
100
+ records: {
101
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
102
+ }[];
103
+ typecast: boolean;
104
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
105
+ }, {
106
+ operation: "create_records";
107
+ baseId: string;
108
+ tableIdOrName: string;
109
+ records: {
110
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
111
+ }[];
112
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
113
+ typecast?: boolean | undefined;
114
+ }>, z.ZodObject<{
115
+ operation: z.ZodLiteral<"update_records">;
116
+ baseId: z.ZodString;
117
+ tableIdOrName: z.ZodString;
118
+ records: z.ZodArray<z.ZodObject<{
119
+ id: z.ZodString;
120
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ id: string;
123
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
124
+ }, {
125
+ id: string;
126
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
127
+ }>, "many">;
128
+ typecast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
129
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ operation: "update_records";
132
+ baseId: string;
133
+ tableIdOrName: string;
134
+ records: {
135
+ id: string;
136
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
137
+ }[];
138
+ typecast: boolean;
139
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
140
+ }, {
141
+ operation: "update_records";
142
+ baseId: string;
143
+ tableIdOrName: string;
144
+ records: {
145
+ id: string;
146
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
147
+ }[];
148
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
149
+ typecast?: boolean | undefined;
150
+ }>, z.ZodObject<{
151
+ operation: z.ZodLiteral<"delete_records">;
152
+ baseId: z.ZodString;
153
+ tableIdOrName: z.ZodString;
154
+ recordIds: z.ZodArray<z.ZodString, "many">;
155
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ operation: "delete_records";
158
+ baseId: string;
159
+ tableIdOrName: string;
160
+ recordIds: string[];
161
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
162
+ }, {
163
+ operation: "delete_records";
164
+ baseId: string;
165
+ tableIdOrName: string;
166
+ recordIds: string[];
167
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
168
+ }>, z.ZodObject<{
169
+ operation: z.ZodLiteral<"list_bases">;
170
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ operation: "list_bases";
173
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
174
+ }, {
175
+ operation: "list_bases";
176
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
177
+ }>, z.ZodObject<{
178
+ operation: z.ZodLiteral<"get_base_schema">;
179
+ baseId: z.ZodString;
180
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ operation: "get_base_schema";
183
+ baseId: string;
184
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
185
+ }, {
186
+ operation: "get_base_schema";
187
+ baseId: string;
188
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
189
+ }>, z.ZodObject<{
190
+ operation: z.ZodLiteral<"create_table">;
191
+ baseId: z.ZodString;
192
+ name: z.ZodString;
193
+ description: z.ZodOptional<z.ZodString>;
194
+ fields: z.ZodArray<z.ZodObject<{
195
+ name: z.ZodString;
196
+ type: z.ZodEnum<["singleLineText", "multilineText", "richText", "email", "url", "phoneNumber", "number", "percent", "currency", "rating", "duration", "singleSelect", "multipleSelects", "singleCollaborator", "multipleCollaborators", "date", "dateTime", "checkbox", "multipleRecordLinks", "multipleAttachments", "barcode", "button", "formula", "createdTime", "lastModifiedTime", "createdBy", "lastModifiedBy", "autoNumber", "externalSyncSource", "count", "lookup", "rollup"]>;
197
+ description: z.ZodOptional<z.ZodString>;
198
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
201
+ name: string;
202
+ options?: Record<string, unknown> | undefined;
203
+ description?: string | undefined;
204
+ }, {
205
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
206
+ name: string;
207
+ options?: Record<string, unknown> | undefined;
208
+ description?: string | undefined;
209
+ }>, "many">;
210
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ name: string;
213
+ fields: {
214
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
215
+ name: string;
216
+ options?: Record<string, unknown> | undefined;
217
+ description?: string | undefined;
218
+ }[];
219
+ operation: "create_table";
220
+ baseId: string;
221
+ description?: string | undefined;
222
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
223
+ }, {
224
+ name: string;
225
+ fields: {
226
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
227
+ name: string;
228
+ options?: Record<string, unknown> | undefined;
229
+ description?: string | undefined;
230
+ }[];
231
+ operation: "create_table";
232
+ baseId: string;
233
+ description?: string | undefined;
234
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
235
+ }>, z.ZodObject<{
236
+ operation: z.ZodLiteral<"update_table">;
237
+ baseId: z.ZodString;
238
+ tableIdOrName: z.ZodString;
239
+ name: z.ZodOptional<z.ZodString>;
240
+ description: z.ZodOptional<z.ZodString>;
241
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ operation: "update_table";
244
+ baseId: string;
245
+ tableIdOrName: string;
246
+ description?: string | undefined;
247
+ name?: string | undefined;
248
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
249
+ }, {
250
+ operation: "update_table";
251
+ baseId: string;
252
+ tableIdOrName: string;
253
+ description?: string | undefined;
254
+ name?: string | undefined;
255
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
256
+ }>, z.ZodObject<{
257
+ operation: z.ZodLiteral<"create_field">;
258
+ baseId: z.ZodString;
259
+ tableIdOrName: z.ZodString;
260
+ name: z.ZodString;
261
+ type: z.ZodEnum<["singleLineText", "multilineText", "richText", "email", "url", "phoneNumber", "number", "percent", "currency", "rating", "duration", "singleSelect", "multipleSelects", "singleCollaborator", "multipleCollaborators", "date", "dateTime", "checkbox", "multipleRecordLinks", "multipleAttachments", "barcode", "button", "formula", "createdTime", "lastModifiedTime", "createdBy", "lastModifiedBy", "autoNumber", "externalSyncSource", "count", "lookup", "rollup"]>;
262
+ description: z.ZodOptional<z.ZodString>;
263
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
264
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
267
+ name: string;
268
+ operation: "create_field";
269
+ baseId: string;
270
+ tableIdOrName: string;
271
+ options?: Record<string, unknown> | undefined;
272
+ description?: string | undefined;
273
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
274
+ }, {
275
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
276
+ name: string;
277
+ operation: "create_field";
278
+ baseId: string;
279
+ tableIdOrName: string;
280
+ options?: Record<string, unknown> | undefined;
281
+ description?: string | undefined;
282
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
283
+ }>, z.ZodObject<{
284
+ operation: z.ZodLiteral<"update_field">;
285
+ baseId: z.ZodString;
286
+ tableIdOrName: z.ZodString;
287
+ fieldIdOrName: z.ZodString;
288
+ name: z.ZodOptional<z.ZodString>;
289
+ description: z.ZodOptional<z.ZodString>;
290
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ operation: "update_field";
293
+ baseId: string;
294
+ tableIdOrName: string;
295
+ fieldIdOrName: string;
296
+ description?: string | undefined;
297
+ name?: string | undefined;
298
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
299
+ }, {
300
+ operation: "update_field";
301
+ baseId: string;
302
+ tableIdOrName: string;
303
+ fieldIdOrName: string;
304
+ description?: string | undefined;
305
+ name?: string | undefined;
306
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
307
+ }>]>;
308
+ declare const AirtableResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
309
+ operation: z.ZodLiteral<"list_records">;
310
+ ok: z.ZodBoolean;
311
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
312
+ id: z.ZodString;
313
+ createdTime: z.ZodString;
314
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ id: string;
317
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
318
+ createdTime: string;
319
+ }, {
320
+ id: string;
321
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
322
+ createdTime: string;
323
+ }>, "many">>;
324
+ offset: z.ZodOptional<z.ZodString>;
325
+ error: z.ZodDefault<z.ZodString>;
326
+ success: z.ZodBoolean;
327
+ }, "strip", z.ZodTypeAny, {
328
+ error: string;
329
+ success: boolean;
330
+ operation: "list_records";
331
+ ok: boolean;
332
+ offset?: string | undefined;
333
+ records?: {
334
+ id: string;
335
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
336
+ createdTime: string;
337
+ }[] | undefined;
338
+ }, {
339
+ success: boolean;
340
+ operation: "list_records";
341
+ ok: boolean;
342
+ error?: string | undefined;
343
+ offset?: string | undefined;
344
+ records?: {
345
+ id: string;
346
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
347
+ createdTime: string;
348
+ }[] | undefined;
349
+ }>, z.ZodObject<{
350
+ operation: z.ZodLiteral<"get_record">;
351
+ ok: z.ZodBoolean;
352
+ record: z.ZodOptional<z.ZodObject<{
353
+ id: z.ZodString;
354
+ createdTime: z.ZodString;
355
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ id: string;
358
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
359
+ createdTime: string;
360
+ }, {
361
+ id: string;
362
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
363
+ createdTime: string;
364
+ }>>;
365
+ error: z.ZodDefault<z.ZodString>;
366
+ success: z.ZodBoolean;
367
+ }, "strip", z.ZodTypeAny, {
368
+ error: string;
369
+ success: boolean;
370
+ operation: "get_record";
371
+ ok: boolean;
372
+ record?: {
373
+ id: string;
374
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
375
+ createdTime: string;
376
+ } | undefined;
377
+ }, {
378
+ success: boolean;
379
+ operation: "get_record";
380
+ ok: boolean;
381
+ error?: string | undefined;
382
+ record?: {
383
+ id: string;
384
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
385
+ createdTime: string;
386
+ } | undefined;
387
+ }>, z.ZodObject<{
388
+ operation: z.ZodLiteral<"create_records">;
389
+ ok: z.ZodBoolean;
390
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
391
+ id: z.ZodString;
392
+ createdTime: z.ZodString;
393
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ id: string;
396
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
397
+ createdTime: string;
398
+ }, {
399
+ id: string;
400
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
401
+ createdTime: string;
402
+ }>, "many">>;
403
+ error: z.ZodDefault<z.ZodString>;
404
+ success: z.ZodBoolean;
405
+ }, "strip", z.ZodTypeAny, {
406
+ error: string;
407
+ success: boolean;
408
+ operation: "create_records";
409
+ ok: boolean;
410
+ records?: {
411
+ id: string;
412
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
413
+ createdTime: string;
414
+ }[] | undefined;
415
+ }, {
416
+ success: boolean;
417
+ operation: "create_records";
418
+ ok: boolean;
419
+ error?: string | undefined;
420
+ records?: {
421
+ id: string;
422
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
423
+ createdTime: string;
424
+ }[] | undefined;
425
+ }>, z.ZodObject<{
426
+ operation: z.ZodLiteral<"update_records">;
427
+ ok: z.ZodBoolean;
428
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
+ id: z.ZodString;
430
+ createdTime: z.ZodString;
431
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ id: string;
434
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
435
+ createdTime: string;
436
+ }, {
437
+ id: string;
438
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
439
+ createdTime: string;
440
+ }>, "many">>;
441
+ error: z.ZodDefault<z.ZodString>;
442
+ success: z.ZodBoolean;
443
+ }, "strip", z.ZodTypeAny, {
444
+ error: string;
445
+ success: boolean;
446
+ operation: "update_records";
447
+ ok: boolean;
448
+ records?: {
449
+ id: string;
450
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
451
+ createdTime: string;
452
+ }[] | undefined;
453
+ }, {
454
+ success: boolean;
455
+ operation: "update_records";
456
+ ok: boolean;
457
+ error?: string | undefined;
458
+ records?: {
459
+ id: string;
460
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
461
+ createdTime: string;
462
+ }[] | undefined;
463
+ }>, z.ZodObject<{
464
+ operation: z.ZodLiteral<"delete_records">;
465
+ ok: z.ZodBoolean;
466
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
467
+ id: z.ZodString;
468
+ deleted: z.ZodBoolean;
469
+ }, "strip", z.ZodTypeAny, {
470
+ id: string;
471
+ deleted: boolean;
472
+ }, {
473
+ id: string;
474
+ deleted: boolean;
475
+ }>, "many">>;
476
+ error: z.ZodDefault<z.ZodString>;
477
+ success: z.ZodBoolean;
478
+ }, "strip", z.ZodTypeAny, {
479
+ error: string;
480
+ success: boolean;
481
+ operation: "delete_records";
482
+ ok: boolean;
483
+ records?: {
484
+ id: string;
485
+ deleted: boolean;
486
+ }[] | undefined;
487
+ }, {
488
+ success: boolean;
489
+ operation: "delete_records";
490
+ ok: boolean;
491
+ error?: string | undefined;
492
+ records?: {
493
+ id: string;
494
+ deleted: boolean;
495
+ }[] | undefined;
496
+ }>, z.ZodObject<{
497
+ operation: z.ZodLiteral<"list_bases">;
498
+ ok: z.ZodBoolean;
499
+ bases: z.ZodOptional<z.ZodArray<z.ZodObject<{
500
+ id: z.ZodString;
501
+ name: z.ZodString;
502
+ permissionLevel: z.ZodString;
503
+ }, "strip", z.ZodTypeAny, {
504
+ name: string;
505
+ id: string;
506
+ permissionLevel: string;
507
+ }, {
508
+ name: string;
509
+ id: string;
510
+ permissionLevel: string;
511
+ }>, "many">>;
512
+ error: z.ZodDefault<z.ZodString>;
513
+ success: z.ZodBoolean;
514
+ }, "strip", z.ZodTypeAny, {
515
+ error: string;
516
+ success: boolean;
517
+ operation: "list_bases";
518
+ ok: boolean;
519
+ bases?: {
520
+ name: string;
521
+ id: string;
522
+ permissionLevel: string;
523
+ }[] | undefined;
524
+ }, {
525
+ success: boolean;
526
+ operation: "list_bases";
527
+ ok: boolean;
528
+ error?: string | undefined;
529
+ bases?: {
530
+ name: string;
531
+ id: string;
532
+ permissionLevel: string;
533
+ }[] | undefined;
534
+ }>, z.ZodObject<{
535
+ operation: z.ZodLiteral<"get_base_schema">;
536
+ ok: z.ZodBoolean;
537
+ tables: z.ZodOptional<z.ZodArray<z.ZodObject<{
538
+ id: z.ZodString;
539
+ name: z.ZodString;
540
+ description: z.ZodOptional<z.ZodString>;
541
+ primaryFieldId: z.ZodString;
542
+ fields: z.ZodArray<z.ZodObject<{
543
+ id: z.ZodString;
544
+ name: z.ZodString;
545
+ type: z.ZodString;
546
+ description: z.ZodOptional<z.ZodString>;
547
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: string;
550
+ name: string;
551
+ id: string;
552
+ options?: Record<string, unknown> | undefined;
553
+ description?: string | undefined;
554
+ }, {
555
+ type: string;
556
+ name: string;
557
+ id: string;
558
+ options?: Record<string, unknown> | undefined;
559
+ description?: string | undefined;
560
+ }>, "many">;
561
+ views: z.ZodOptional<z.ZodArray<z.ZodObject<{
562
+ id: z.ZodString;
563
+ name: z.ZodString;
564
+ type: z.ZodString;
565
+ }, "strip", z.ZodTypeAny, {
566
+ type: string;
567
+ name: string;
568
+ id: string;
569
+ }, {
570
+ type: string;
571
+ name: string;
572
+ id: string;
573
+ }>, "many">>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ name: string;
576
+ id: string;
577
+ fields: {
578
+ type: string;
579
+ name: string;
580
+ id: string;
581
+ options?: Record<string, unknown> | undefined;
582
+ description?: string | undefined;
583
+ }[];
584
+ primaryFieldId: string;
585
+ description?: string | undefined;
586
+ views?: {
587
+ type: string;
588
+ name: string;
589
+ id: string;
590
+ }[] | undefined;
591
+ }, {
592
+ name: string;
593
+ id: string;
594
+ fields: {
595
+ type: string;
596
+ name: string;
597
+ id: string;
598
+ options?: Record<string, unknown> | undefined;
599
+ description?: string | undefined;
600
+ }[];
601
+ primaryFieldId: string;
602
+ description?: string | undefined;
603
+ views?: {
604
+ type: string;
605
+ name: string;
606
+ id: string;
607
+ }[] | undefined;
608
+ }>, "many">>;
609
+ error: z.ZodDefault<z.ZodString>;
610
+ success: z.ZodBoolean;
611
+ }, "strip", z.ZodTypeAny, {
612
+ error: string;
613
+ success: boolean;
614
+ operation: "get_base_schema";
615
+ ok: boolean;
616
+ tables?: {
617
+ name: string;
618
+ id: string;
619
+ fields: {
620
+ type: string;
621
+ name: string;
622
+ id: string;
623
+ options?: Record<string, unknown> | undefined;
624
+ description?: string | undefined;
625
+ }[];
626
+ primaryFieldId: string;
627
+ description?: string | undefined;
628
+ views?: {
629
+ type: string;
630
+ name: string;
631
+ id: string;
632
+ }[] | undefined;
633
+ }[] | undefined;
634
+ }, {
635
+ success: boolean;
636
+ operation: "get_base_schema";
637
+ ok: boolean;
638
+ error?: string | undefined;
639
+ tables?: {
640
+ name: string;
641
+ id: string;
642
+ fields: {
643
+ type: string;
644
+ name: string;
645
+ id: string;
646
+ options?: Record<string, unknown> | undefined;
647
+ description?: string | undefined;
648
+ }[];
649
+ primaryFieldId: string;
650
+ description?: string | undefined;
651
+ views?: {
652
+ type: string;
653
+ name: string;
654
+ id: string;
655
+ }[] | undefined;
656
+ }[] | undefined;
657
+ }>, z.ZodObject<{
658
+ operation: z.ZodLiteral<"create_table">;
659
+ ok: z.ZodBoolean;
660
+ table: z.ZodOptional<z.ZodObject<{
661
+ id: z.ZodString;
662
+ name: z.ZodString;
663
+ description: z.ZodOptional<z.ZodString>;
664
+ primaryFieldId: z.ZodString;
665
+ fields: z.ZodArray<z.ZodObject<{
666
+ id: z.ZodString;
667
+ name: z.ZodString;
668
+ type: z.ZodEnum<["singleLineText", "multilineText", "richText", "email", "url", "phoneNumber", "number", "percent", "currency", "rating", "duration", "singleSelect", "multipleSelects", "singleCollaborator", "multipleCollaborators", "date", "dateTime", "checkbox", "multipleRecordLinks", "multipleAttachments", "barcode", "button", "formula", "createdTime", "lastModifiedTime", "createdBy", "lastModifiedBy", "autoNumber", "externalSyncSource", "count", "lookup", "rollup"]>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
671
+ name: string;
672
+ id: string;
673
+ }, {
674
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
675
+ name: string;
676
+ id: string;
677
+ }>, "many">;
678
+ }, "strip", z.ZodTypeAny, {
679
+ name: string;
680
+ id: string;
681
+ fields: {
682
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
683
+ name: string;
684
+ id: string;
685
+ }[];
686
+ primaryFieldId: string;
687
+ description?: string | undefined;
688
+ }, {
689
+ name: string;
690
+ id: string;
691
+ fields: {
692
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
693
+ name: string;
694
+ id: string;
695
+ }[];
696
+ primaryFieldId: string;
697
+ description?: string | undefined;
698
+ }>>;
699
+ error: z.ZodDefault<z.ZodString>;
700
+ success: z.ZodBoolean;
701
+ }, "strip", z.ZodTypeAny, {
702
+ error: string;
703
+ success: boolean;
704
+ operation: "create_table";
705
+ ok: boolean;
706
+ table?: {
707
+ name: string;
708
+ id: string;
709
+ fields: {
710
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
711
+ name: string;
712
+ id: string;
713
+ }[];
714
+ primaryFieldId: string;
715
+ description?: string | undefined;
716
+ } | undefined;
717
+ }, {
718
+ success: boolean;
719
+ operation: "create_table";
720
+ ok: boolean;
721
+ table?: {
722
+ name: string;
723
+ id: string;
724
+ fields: {
725
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
726
+ name: string;
727
+ id: string;
728
+ }[];
729
+ primaryFieldId: string;
730
+ description?: string | undefined;
731
+ } | undefined;
732
+ error?: string | undefined;
733
+ }>, z.ZodObject<{
734
+ operation: z.ZodLiteral<"update_table">;
735
+ ok: z.ZodBoolean;
736
+ table: z.ZodOptional<z.ZodObject<{
737
+ id: z.ZodString;
738
+ name: z.ZodString;
739
+ description: z.ZodOptional<z.ZodString>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ name: string;
742
+ id: string;
743
+ description?: string | undefined;
744
+ }, {
745
+ name: string;
746
+ id: string;
747
+ description?: string | undefined;
748
+ }>>;
749
+ error: z.ZodDefault<z.ZodString>;
750
+ success: z.ZodBoolean;
751
+ }, "strip", z.ZodTypeAny, {
752
+ error: string;
753
+ success: boolean;
754
+ operation: "update_table";
755
+ ok: boolean;
756
+ table?: {
757
+ name: string;
758
+ id: string;
759
+ description?: string | undefined;
760
+ } | undefined;
761
+ }, {
762
+ success: boolean;
763
+ operation: "update_table";
764
+ ok: boolean;
765
+ table?: {
766
+ name: string;
767
+ id: string;
768
+ description?: string | undefined;
769
+ } | undefined;
770
+ error?: string | undefined;
771
+ }>, z.ZodObject<{
772
+ operation: z.ZodLiteral<"create_field">;
773
+ ok: z.ZodBoolean;
774
+ field: z.ZodOptional<z.ZodObject<{
775
+ id: z.ZodString;
776
+ name: z.ZodString;
777
+ type: z.ZodString;
778
+ description: z.ZodOptional<z.ZodString>;
779
+ }, "strip", z.ZodTypeAny, {
780
+ type: string;
781
+ name: string;
782
+ id: string;
783
+ description?: string | undefined;
784
+ }, {
785
+ type: string;
786
+ name: string;
787
+ id: string;
788
+ description?: string | undefined;
789
+ }>>;
790
+ error: z.ZodDefault<z.ZodString>;
791
+ success: z.ZodBoolean;
792
+ }, "strip", z.ZodTypeAny, {
793
+ error: string;
794
+ success: boolean;
795
+ operation: "create_field";
796
+ ok: boolean;
797
+ field?: {
798
+ type: string;
799
+ name: string;
800
+ id: string;
801
+ description?: string | undefined;
802
+ } | undefined;
803
+ }, {
804
+ success: boolean;
805
+ operation: "create_field";
806
+ ok: boolean;
807
+ error?: string | undefined;
808
+ field?: {
809
+ type: string;
810
+ name: string;
811
+ id: string;
812
+ description?: string | undefined;
813
+ } | undefined;
814
+ }>, z.ZodObject<{
815
+ operation: z.ZodLiteral<"update_field">;
816
+ ok: z.ZodBoolean;
817
+ field: z.ZodOptional<z.ZodObject<{
818
+ id: z.ZodString;
819
+ name: z.ZodString;
820
+ type: z.ZodString;
821
+ description: z.ZodOptional<z.ZodString>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ type: string;
824
+ name: string;
825
+ id: string;
826
+ description?: string | undefined;
827
+ }, {
828
+ type: string;
829
+ name: string;
830
+ id: string;
831
+ description?: string | undefined;
832
+ }>>;
833
+ error: z.ZodDefault<z.ZodString>;
834
+ success: z.ZodBoolean;
835
+ }, "strip", z.ZodTypeAny, {
836
+ error: string;
837
+ success: boolean;
838
+ operation: "update_field";
839
+ ok: boolean;
840
+ field?: {
841
+ type: string;
842
+ name: string;
843
+ id: string;
844
+ description?: string | undefined;
845
+ } | undefined;
846
+ }, {
847
+ success: boolean;
848
+ operation: "update_field";
849
+ ok: boolean;
850
+ error?: string | undefined;
851
+ field?: {
852
+ type: string;
853
+ name: string;
854
+ id: string;
855
+ description?: string | undefined;
856
+ } | undefined;
857
+ }>]>;
858
+ type AirtableResult = z.output<typeof AirtableResultSchema>;
859
+ type AirtableParams = z.input<typeof AirtableParamsSchema>;
860
+ export type AirtableParamsInput = z.input<typeof AirtableParamsSchema>;
861
+ export type AirtableOperationResult<T extends AirtableParams['operation']> = Extract<AirtableResult, {
862
+ operation: T;
863
+ }>;
864
+ export declare class AirtableBubble<T extends AirtableParams = AirtableParams> extends ServiceBubble<T, Extract<AirtableResult, {
865
+ operation: T['operation'];
866
+ }>> {
867
+ testCredential(): Promise<boolean>;
868
+ static readonly type: "service";
869
+ static readonly service = "airtable";
870
+ static readonly authType: "apikey";
871
+ static readonly bubbleName = "airtable";
872
+ static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
873
+ operation: z.ZodLiteral<"list_records">;
874
+ baseId: z.ZodString;
875
+ tableIdOrName: z.ZodString;
876
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
877
+ filterByFormula: z.ZodOptional<z.ZodString>;
878
+ maxRecords: z.ZodOptional<z.ZodNumber>;
879
+ pageSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
880
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
881
+ field: z.ZodString;
882
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ direction: "asc" | "desc";
885
+ field: string;
886
+ }, {
887
+ field: string;
888
+ direction?: "asc" | "desc" | undefined;
889
+ }>, "many">>;
890
+ view: z.ZodOptional<z.ZodString>;
891
+ cellFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<["json", "string"]>>>;
892
+ timeZone: z.ZodOptional<z.ZodString>;
893
+ userLocale: z.ZodOptional<z.ZodString>;
894
+ offset: z.ZodOptional<z.ZodString>;
895
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
896
+ }, "strip", z.ZodTypeAny, {
897
+ operation: "list_records";
898
+ pageSize: number;
899
+ baseId: string;
900
+ tableIdOrName: string;
901
+ cellFormat: "string" | "json";
902
+ sort?: {
903
+ direction: "asc" | "desc";
904
+ field: string;
905
+ }[] | undefined;
906
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
907
+ fields?: string[] | undefined;
908
+ offset?: string | undefined;
909
+ timeZone?: string | undefined;
910
+ filterByFormula?: string | undefined;
911
+ maxRecords?: number | undefined;
912
+ view?: string | undefined;
913
+ userLocale?: string | undefined;
914
+ }, {
915
+ operation: "list_records";
916
+ baseId: string;
917
+ tableIdOrName: string;
918
+ sort?: {
919
+ field: string;
920
+ direction?: "asc" | "desc" | undefined;
921
+ }[] | undefined;
922
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
923
+ fields?: string[] | undefined;
924
+ offset?: string | undefined;
925
+ pageSize?: number | undefined;
926
+ timeZone?: string | undefined;
927
+ filterByFormula?: string | undefined;
928
+ maxRecords?: number | undefined;
929
+ view?: string | undefined;
930
+ cellFormat?: "string" | "json" | undefined;
931
+ userLocale?: string | undefined;
932
+ }>, z.ZodObject<{
933
+ operation: z.ZodLiteral<"get_record">;
934
+ baseId: z.ZodString;
935
+ tableIdOrName: z.ZodString;
936
+ recordId: z.ZodString;
937
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
938
+ }, "strip", z.ZodTypeAny, {
939
+ operation: "get_record";
940
+ baseId: string;
941
+ tableIdOrName: string;
942
+ recordId: string;
943
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
944
+ }, {
945
+ operation: "get_record";
946
+ baseId: string;
947
+ tableIdOrName: string;
948
+ recordId: string;
949
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
950
+ }>, z.ZodObject<{
951
+ operation: z.ZodLiteral<"create_records">;
952
+ baseId: z.ZodString;
953
+ tableIdOrName: z.ZodString;
954
+ records: z.ZodArray<z.ZodObject<{
955
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
956
+ }, "strip", z.ZodTypeAny, {
957
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
958
+ }, {
959
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
960
+ }>, "many">;
961
+ typecast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
962
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ operation: "create_records";
965
+ baseId: string;
966
+ tableIdOrName: string;
967
+ records: {
968
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
969
+ }[];
970
+ typecast: boolean;
971
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
972
+ }, {
973
+ operation: "create_records";
974
+ baseId: string;
975
+ tableIdOrName: string;
976
+ records: {
977
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
978
+ }[];
979
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
980
+ typecast?: boolean | undefined;
981
+ }>, z.ZodObject<{
982
+ operation: z.ZodLiteral<"update_records">;
983
+ baseId: z.ZodString;
984
+ tableIdOrName: z.ZodString;
985
+ records: z.ZodArray<z.ZodObject<{
986
+ id: z.ZodString;
987
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
988
+ }, "strip", z.ZodTypeAny, {
989
+ id: string;
990
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
991
+ }, {
992
+ id: string;
993
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
994
+ }>, "many">;
995
+ typecast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
996
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ operation: "update_records";
999
+ baseId: string;
1000
+ tableIdOrName: string;
1001
+ records: {
1002
+ id: string;
1003
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1004
+ }[];
1005
+ typecast: boolean;
1006
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1007
+ }, {
1008
+ operation: "update_records";
1009
+ baseId: string;
1010
+ tableIdOrName: string;
1011
+ records: {
1012
+ id: string;
1013
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1014
+ }[];
1015
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1016
+ typecast?: boolean | undefined;
1017
+ }>, z.ZodObject<{
1018
+ operation: z.ZodLiteral<"delete_records">;
1019
+ baseId: z.ZodString;
1020
+ tableIdOrName: z.ZodString;
1021
+ recordIds: z.ZodArray<z.ZodString, "many">;
1022
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ operation: "delete_records";
1025
+ baseId: string;
1026
+ tableIdOrName: string;
1027
+ recordIds: string[];
1028
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1029
+ }, {
1030
+ operation: "delete_records";
1031
+ baseId: string;
1032
+ tableIdOrName: string;
1033
+ recordIds: string[];
1034
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1035
+ }>, z.ZodObject<{
1036
+ operation: z.ZodLiteral<"list_bases">;
1037
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ operation: "list_bases";
1040
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1041
+ }, {
1042
+ operation: "list_bases";
1043
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1044
+ }>, z.ZodObject<{
1045
+ operation: z.ZodLiteral<"get_base_schema">;
1046
+ baseId: z.ZodString;
1047
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ operation: "get_base_schema";
1050
+ baseId: string;
1051
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1052
+ }, {
1053
+ operation: "get_base_schema";
1054
+ baseId: string;
1055
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1056
+ }>, z.ZodObject<{
1057
+ operation: z.ZodLiteral<"create_table">;
1058
+ baseId: z.ZodString;
1059
+ name: z.ZodString;
1060
+ description: z.ZodOptional<z.ZodString>;
1061
+ fields: z.ZodArray<z.ZodObject<{
1062
+ name: z.ZodString;
1063
+ type: z.ZodEnum<["singleLineText", "multilineText", "richText", "email", "url", "phoneNumber", "number", "percent", "currency", "rating", "duration", "singleSelect", "multipleSelects", "singleCollaborator", "multipleCollaborators", "date", "dateTime", "checkbox", "multipleRecordLinks", "multipleAttachments", "barcode", "button", "formula", "createdTime", "lastModifiedTime", "createdBy", "lastModifiedBy", "autoNumber", "externalSyncSource", "count", "lookup", "rollup"]>;
1064
+ description: z.ZodOptional<z.ZodString>;
1065
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1068
+ name: string;
1069
+ options?: Record<string, unknown> | undefined;
1070
+ description?: string | undefined;
1071
+ }, {
1072
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1073
+ name: string;
1074
+ options?: Record<string, unknown> | undefined;
1075
+ description?: string | undefined;
1076
+ }>, "many">;
1077
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ name: string;
1080
+ fields: {
1081
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1082
+ name: string;
1083
+ options?: Record<string, unknown> | undefined;
1084
+ description?: string | undefined;
1085
+ }[];
1086
+ operation: "create_table";
1087
+ baseId: string;
1088
+ description?: string | undefined;
1089
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1090
+ }, {
1091
+ name: string;
1092
+ fields: {
1093
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1094
+ name: string;
1095
+ options?: Record<string, unknown> | undefined;
1096
+ description?: string | undefined;
1097
+ }[];
1098
+ operation: "create_table";
1099
+ baseId: string;
1100
+ description?: string | undefined;
1101
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1102
+ }>, z.ZodObject<{
1103
+ operation: z.ZodLiteral<"update_table">;
1104
+ baseId: z.ZodString;
1105
+ tableIdOrName: z.ZodString;
1106
+ name: z.ZodOptional<z.ZodString>;
1107
+ description: z.ZodOptional<z.ZodString>;
1108
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ operation: "update_table";
1111
+ baseId: string;
1112
+ tableIdOrName: string;
1113
+ description?: string | undefined;
1114
+ name?: string | undefined;
1115
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1116
+ }, {
1117
+ operation: "update_table";
1118
+ baseId: string;
1119
+ tableIdOrName: string;
1120
+ description?: string | undefined;
1121
+ name?: string | undefined;
1122
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1123
+ }>, z.ZodObject<{
1124
+ operation: z.ZodLiteral<"create_field">;
1125
+ baseId: z.ZodString;
1126
+ tableIdOrName: z.ZodString;
1127
+ name: z.ZodString;
1128
+ type: z.ZodEnum<["singleLineText", "multilineText", "richText", "email", "url", "phoneNumber", "number", "percent", "currency", "rating", "duration", "singleSelect", "multipleSelects", "singleCollaborator", "multipleCollaborators", "date", "dateTime", "checkbox", "multipleRecordLinks", "multipleAttachments", "barcode", "button", "formula", "createdTime", "lastModifiedTime", "createdBy", "lastModifiedBy", "autoNumber", "externalSyncSource", "count", "lookup", "rollup"]>;
1129
+ description: z.ZodOptional<z.ZodString>;
1130
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1131
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1134
+ name: string;
1135
+ operation: "create_field";
1136
+ baseId: string;
1137
+ tableIdOrName: string;
1138
+ options?: Record<string, unknown> | undefined;
1139
+ description?: string | undefined;
1140
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1141
+ }, {
1142
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1143
+ name: string;
1144
+ operation: "create_field";
1145
+ baseId: string;
1146
+ tableIdOrName: string;
1147
+ options?: Record<string, unknown> | undefined;
1148
+ description?: string | undefined;
1149
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1150
+ }>, z.ZodObject<{
1151
+ operation: z.ZodLiteral<"update_field">;
1152
+ baseId: z.ZodString;
1153
+ tableIdOrName: z.ZodString;
1154
+ fieldIdOrName: z.ZodString;
1155
+ name: z.ZodOptional<z.ZodString>;
1156
+ description: z.ZodOptional<z.ZodString>;
1157
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ operation: "update_field";
1160
+ baseId: string;
1161
+ tableIdOrName: string;
1162
+ fieldIdOrName: string;
1163
+ description?: string | undefined;
1164
+ name?: string | undefined;
1165
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1166
+ }, {
1167
+ operation: "update_field";
1168
+ baseId: string;
1169
+ tableIdOrName: string;
1170
+ fieldIdOrName: string;
1171
+ description?: string | undefined;
1172
+ name?: string | undefined;
1173
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1174
+ }>]>;
1175
+ static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
1176
+ operation: z.ZodLiteral<"list_records">;
1177
+ ok: z.ZodBoolean;
1178
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
1179
+ id: z.ZodString;
1180
+ createdTime: z.ZodString;
1181
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ id: string;
1184
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1185
+ createdTime: string;
1186
+ }, {
1187
+ id: string;
1188
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1189
+ createdTime: string;
1190
+ }>, "many">>;
1191
+ offset: z.ZodOptional<z.ZodString>;
1192
+ error: z.ZodDefault<z.ZodString>;
1193
+ success: z.ZodBoolean;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ error: string;
1196
+ success: boolean;
1197
+ operation: "list_records";
1198
+ ok: boolean;
1199
+ offset?: string | undefined;
1200
+ records?: {
1201
+ id: string;
1202
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1203
+ createdTime: string;
1204
+ }[] | undefined;
1205
+ }, {
1206
+ success: boolean;
1207
+ operation: "list_records";
1208
+ ok: boolean;
1209
+ error?: string | undefined;
1210
+ offset?: string | undefined;
1211
+ records?: {
1212
+ id: string;
1213
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1214
+ createdTime: string;
1215
+ }[] | undefined;
1216
+ }>, z.ZodObject<{
1217
+ operation: z.ZodLiteral<"get_record">;
1218
+ ok: z.ZodBoolean;
1219
+ record: z.ZodOptional<z.ZodObject<{
1220
+ id: z.ZodString;
1221
+ createdTime: z.ZodString;
1222
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ id: string;
1225
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1226
+ createdTime: string;
1227
+ }, {
1228
+ id: string;
1229
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1230
+ createdTime: string;
1231
+ }>>;
1232
+ error: z.ZodDefault<z.ZodString>;
1233
+ success: z.ZodBoolean;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ error: string;
1236
+ success: boolean;
1237
+ operation: "get_record";
1238
+ ok: boolean;
1239
+ record?: {
1240
+ id: string;
1241
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1242
+ createdTime: string;
1243
+ } | undefined;
1244
+ }, {
1245
+ success: boolean;
1246
+ operation: "get_record";
1247
+ ok: boolean;
1248
+ error?: string | undefined;
1249
+ record?: {
1250
+ id: string;
1251
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1252
+ createdTime: string;
1253
+ } | undefined;
1254
+ }>, z.ZodObject<{
1255
+ operation: z.ZodLiteral<"create_records">;
1256
+ ok: z.ZodBoolean;
1257
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
1258
+ id: z.ZodString;
1259
+ createdTime: z.ZodString;
1260
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ id: string;
1263
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1264
+ createdTime: string;
1265
+ }, {
1266
+ id: string;
1267
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1268
+ createdTime: string;
1269
+ }>, "many">>;
1270
+ error: z.ZodDefault<z.ZodString>;
1271
+ success: z.ZodBoolean;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ error: string;
1274
+ success: boolean;
1275
+ operation: "create_records";
1276
+ ok: boolean;
1277
+ records?: {
1278
+ id: string;
1279
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1280
+ createdTime: string;
1281
+ }[] | undefined;
1282
+ }, {
1283
+ success: boolean;
1284
+ operation: "create_records";
1285
+ ok: boolean;
1286
+ error?: string | undefined;
1287
+ records?: {
1288
+ id: string;
1289
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1290
+ createdTime: string;
1291
+ }[] | undefined;
1292
+ }>, z.ZodObject<{
1293
+ operation: z.ZodLiteral<"update_records">;
1294
+ ok: z.ZodBoolean;
1295
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
1296
+ id: z.ZodString;
1297
+ createdTime: z.ZodString;
1298
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ id: string;
1301
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1302
+ createdTime: string;
1303
+ }, {
1304
+ id: string;
1305
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1306
+ createdTime: string;
1307
+ }>, "many">>;
1308
+ error: z.ZodDefault<z.ZodString>;
1309
+ success: z.ZodBoolean;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ error: string;
1312
+ success: boolean;
1313
+ operation: "update_records";
1314
+ ok: boolean;
1315
+ records?: {
1316
+ id: string;
1317
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1318
+ createdTime: string;
1319
+ }[] | undefined;
1320
+ }, {
1321
+ success: boolean;
1322
+ operation: "update_records";
1323
+ ok: boolean;
1324
+ error?: string | undefined;
1325
+ records?: {
1326
+ id: string;
1327
+ fields: Record<string, string | number | boolean | Record<string, unknown> | unknown[] | null>;
1328
+ createdTime: string;
1329
+ }[] | undefined;
1330
+ }>, z.ZodObject<{
1331
+ operation: z.ZodLiteral<"delete_records">;
1332
+ ok: z.ZodBoolean;
1333
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
1334
+ id: z.ZodString;
1335
+ deleted: z.ZodBoolean;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ id: string;
1338
+ deleted: boolean;
1339
+ }, {
1340
+ id: string;
1341
+ deleted: boolean;
1342
+ }>, "many">>;
1343
+ error: z.ZodDefault<z.ZodString>;
1344
+ success: z.ZodBoolean;
1345
+ }, "strip", z.ZodTypeAny, {
1346
+ error: string;
1347
+ success: boolean;
1348
+ operation: "delete_records";
1349
+ ok: boolean;
1350
+ records?: {
1351
+ id: string;
1352
+ deleted: boolean;
1353
+ }[] | undefined;
1354
+ }, {
1355
+ success: boolean;
1356
+ operation: "delete_records";
1357
+ ok: boolean;
1358
+ error?: string | undefined;
1359
+ records?: {
1360
+ id: string;
1361
+ deleted: boolean;
1362
+ }[] | undefined;
1363
+ }>, z.ZodObject<{
1364
+ operation: z.ZodLiteral<"list_bases">;
1365
+ ok: z.ZodBoolean;
1366
+ bases: z.ZodOptional<z.ZodArray<z.ZodObject<{
1367
+ id: z.ZodString;
1368
+ name: z.ZodString;
1369
+ permissionLevel: z.ZodString;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ name: string;
1372
+ id: string;
1373
+ permissionLevel: string;
1374
+ }, {
1375
+ name: string;
1376
+ id: string;
1377
+ permissionLevel: string;
1378
+ }>, "many">>;
1379
+ error: z.ZodDefault<z.ZodString>;
1380
+ success: z.ZodBoolean;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ error: string;
1383
+ success: boolean;
1384
+ operation: "list_bases";
1385
+ ok: boolean;
1386
+ bases?: {
1387
+ name: string;
1388
+ id: string;
1389
+ permissionLevel: string;
1390
+ }[] | undefined;
1391
+ }, {
1392
+ success: boolean;
1393
+ operation: "list_bases";
1394
+ ok: boolean;
1395
+ error?: string | undefined;
1396
+ bases?: {
1397
+ name: string;
1398
+ id: string;
1399
+ permissionLevel: string;
1400
+ }[] | undefined;
1401
+ }>, z.ZodObject<{
1402
+ operation: z.ZodLiteral<"get_base_schema">;
1403
+ ok: z.ZodBoolean;
1404
+ tables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1405
+ id: z.ZodString;
1406
+ name: z.ZodString;
1407
+ description: z.ZodOptional<z.ZodString>;
1408
+ primaryFieldId: z.ZodString;
1409
+ fields: z.ZodArray<z.ZodObject<{
1410
+ id: z.ZodString;
1411
+ name: z.ZodString;
1412
+ type: z.ZodString;
1413
+ description: z.ZodOptional<z.ZodString>;
1414
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ type: string;
1417
+ name: string;
1418
+ id: string;
1419
+ options?: Record<string, unknown> | undefined;
1420
+ description?: string | undefined;
1421
+ }, {
1422
+ type: string;
1423
+ name: string;
1424
+ id: string;
1425
+ options?: Record<string, unknown> | undefined;
1426
+ description?: string | undefined;
1427
+ }>, "many">;
1428
+ views: z.ZodOptional<z.ZodArray<z.ZodObject<{
1429
+ id: z.ZodString;
1430
+ name: z.ZodString;
1431
+ type: z.ZodString;
1432
+ }, "strip", z.ZodTypeAny, {
1433
+ type: string;
1434
+ name: string;
1435
+ id: string;
1436
+ }, {
1437
+ type: string;
1438
+ name: string;
1439
+ id: string;
1440
+ }>, "many">>;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ name: string;
1443
+ id: string;
1444
+ fields: {
1445
+ type: string;
1446
+ name: string;
1447
+ id: string;
1448
+ options?: Record<string, unknown> | undefined;
1449
+ description?: string | undefined;
1450
+ }[];
1451
+ primaryFieldId: string;
1452
+ description?: string | undefined;
1453
+ views?: {
1454
+ type: string;
1455
+ name: string;
1456
+ id: string;
1457
+ }[] | undefined;
1458
+ }, {
1459
+ name: string;
1460
+ id: string;
1461
+ fields: {
1462
+ type: string;
1463
+ name: string;
1464
+ id: string;
1465
+ options?: Record<string, unknown> | undefined;
1466
+ description?: string | undefined;
1467
+ }[];
1468
+ primaryFieldId: string;
1469
+ description?: string | undefined;
1470
+ views?: {
1471
+ type: string;
1472
+ name: string;
1473
+ id: string;
1474
+ }[] | undefined;
1475
+ }>, "many">>;
1476
+ error: z.ZodDefault<z.ZodString>;
1477
+ success: z.ZodBoolean;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ error: string;
1480
+ success: boolean;
1481
+ operation: "get_base_schema";
1482
+ ok: boolean;
1483
+ tables?: {
1484
+ name: string;
1485
+ id: string;
1486
+ fields: {
1487
+ type: string;
1488
+ name: string;
1489
+ id: string;
1490
+ options?: Record<string, unknown> | undefined;
1491
+ description?: string | undefined;
1492
+ }[];
1493
+ primaryFieldId: string;
1494
+ description?: string | undefined;
1495
+ views?: {
1496
+ type: string;
1497
+ name: string;
1498
+ id: string;
1499
+ }[] | undefined;
1500
+ }[] | undefined;
1501
+ }, {
1502
+ success: boolean;
1503
+ operation: "get_base_schema";
1504
+ ok: boolean;
1505
+ error?: string | undefined;
1506
+ tables?: {
1507
+ name: string;
1508
+ id: string;
1509
+ fields: {
1510
+ type: string;
1511
+ name: string;
1512
+ id: string;
1513
+ options?: Record<string, unknown> | undefined;
1514
+ description?: string | undefined;
1515
+ }[];
1516
+ primaryFieldId: string;
1517
+ description?: string | undefined;
1518
+ views?: {
1519
+ type: string;
1520
+ name: string;
1521
+ id: string;
1522
+ }[] | undefined;
1523
+ }[] | undefined;
1524
+ }>, z.ZodObject<{
1525
+ operation: z.ZodLiteral<"create_table">;
1526
+ ok: z.ZodBoolean;
1527
+ table: z.ZodOptional<z.ZodObject<{
1528
+ id: z.ZodString;
1529
+ name: z.ZodString;
1530
+ description: z.ZodOptional<z.ZodString>;
1531
+ primaryFieldId: z.ZodString;
1532
+ fields: z.ZodArray<z.ZodObject<{
1533
+ id: z.ZodString;
1534
+ name: z.ZodString;
1535
+ type: z.ZodEnum<["singleLineText", "multilineText", "richText", "email", "url", "phoneNumber", "number", "percent", "currency", "rating", "duration", "singleSelect", "multipleSelects", "singleCollaborator", "multipleCollaborators", "date", "dateTime", "checkbox", "multipleRecordLinks", "multipleAttachments", "barcode", "button", "formula", "createdTime", "lastModifiedTime", "createdBy", "lastModifiedBy", "autoNumber", "externalSyncSource", "count", "lookup", "rollup"]>;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1538
+ name: string;
1539
+ id: string;
1540
+ }, {
1541
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1542
+ name: string;
1543
+ id: string;
1544
+ }>, "many">;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ name: string;
1547
+ id: string;
1548
+ fields: {
1549
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1550
+ name: string;
1551
+ id: string;
1552
+ }[];
1553
+ primaryFieldId: string;
1554
+ description?: string | undefined;
1555
+ }, {
1556
+ name: string;
1557
+ id: string;
1558
+ fields: {
1559
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1560
+ name: string;
1561
+ id: string;
1562
+ }[];
1563
+ primaryFieldId: string;
1564
+ description?: string | undefined;
1565
+ }>>;
1566
+ error: z.ZodDefault<z.ZodString>;
1567
+ success: z.ZodBoolean;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ error: string;
1570
+ success: boolean;
1571
+ operation: "create_table";
1572
+ ok: boolean;
1573
+ table?: {
1574
+ name: string;
1575
+ id: string;
1576
+ fields: {
1577
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1578
+ name: string;
1579
+ id: string;
1580
+ }[];
1581
+ primaryFieldId: string;
1582
+ description?: string | undefined;
1583
+ } | undefined;
1584
+ }, {
1585
+ success: boolean;
1586
+ operation: "create_table";
1587
+ ok: boolean;
1588
+ table?: {
1589
+ name: string;
1590
+ id: string;
1591
+ fields: {
1592
+ type: "number" | "duration" | "date" | "email" | "url" | "count" | "createdTime" | "dateTime" | "rating" | "singleLineText" | "multilineText" | "richText" | "phoneNumber" | "percent" | "currency" | "singleSelect" | "multipleSelects" | "singleCollaborator" | "multipleCollaborators" | "checkbox" | "multipleRecordLinks" | "multipleAttachments" | "barcode" | "button" | "formula" | "lastModifiedTime" | "createdBy" | "lastModifiedBy" | "autoNumber" | "externalSyncSource" | "lookup" | "rollup";
1593
+ name: string;
1594
+ id: string;
1595
+ }[];
1596
+ primaryFieldId: string;
1597
+ description?: string | undefined;
1598
+ } | undefined;
1599
+ error?: string | undefined;
1600
+ }>, z.ZodObject<{
1601
+ operation: z.ZodLiteral<"update_table">;
1602
+ ok: z.ZodBoolean;
1603
+ table: z.ZodOptional<z.ZodObject<{
1604
+ id: z.ZodString;
1605
+ name: z.ZodString;
1606
+ description: z.ZodOptional<z.ZodString>;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ name: string;
1609
+ id: string;
1610
+ description?: string | undefined;
1611
+ }, {
1612
+ name: string;
1613
+ id: string;
1614
+ description?: string | undefined;
1615
+ }>>;
1616
+ error: z.ZodDefault<z.ZodString>;
1617
+ success: z.ZodBoolean;
1618
+ }, "strip", z.ZodTypeAny, {
1619
+ error: string;
1620
+ success: boolean;
1621
+ operation: "update_table";
1622
+ ok: boolean;
1623
+ table?: {
1624
+ name: string;
1625
+ id: string;
1626
+ description?: string | undefined;
1627
+ } | undefined;
1628
+ }, {
1629
+ success: boolean;
1630
+ operation: "update_table";
1631
+ ok: boolean;
1632
+ table?: {
1633
+ name: string;
1634
+ id: string;
1635
+ description?: string | undefined;
1636
+ } | undefined;
1637
+ error?: string | undefined;
1638
+ }>, z.ZodObject<{
1639
+ operation: z.ZodLiteral<"create_field">;
1640
+ ok: z.ZodBoolean;
1641
+ field: z.ZodOptional<z.ZodObject<{
1642
+ id: z.ZodString;
1643
+ name: z.ZodString;
1644
+ type: z.ZodString;
1645
+ description: z.ZodOptional<z.ZodString>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ type: string;
1648
+ name: string;
1649
+ id: string;
1650
+ description?: string | undefined;
1651
+ }, {
1652
+ type: string;
1653
+ name: string;
1654
+ id: string;
1655
+ description?: string | undefined;
1656
+ }>>;
1657
+ error: z.ZodDefault<z.ZodString>;
1658
+ success: z.ZodBoolean;
1659
+ }, "strip", z.ZodTypeAny, {
1660
+ error: string;
1661
+ success: boolean;
1662
+ operation: "create_field";
1663
+ ok: boolean;
1664
+ field?: {
1665
+ type: string;
1666
+ name: string;
1667
+ id: string;
1668
+ description?: string | undefined;
1669
+ } | undefined;
1670
+ }, {
1671
+ success: boolean;
1672
+ operation: "create_field";
1673
+ ok: boolean;
1674
+ error?: string | undefined;
1675
+ field?: {
1676
+ type: string;
1677
+ name: string;
1678
+ id: string;
1679
+ description?: string | undefined;
1680
+ } | undefined;
1681
+ }>, z.ZodObject<{
1682
+ operation: z.ZodLiteral<"update_field">;
1683
+ ok: z.ZodBoolean;
1684
+ field: z.ZodOptional<z.ZodObject<{
1685
+ id: z.ZodString;
1686
+ name: z.ZodString;
1687
+ type: z.ZodString;
1688
+ description: z.ZodOptional<z.ZodString>;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ type: string;
1691
+ name: string;
1692
+ id: string;
1693
+ description?: string | undefined;
1694
+ }, {
1695
+ type: string;
1696
+ name: string;
1697
+ id: string;
1698
+ description?: string | undefined;
1699
+ }>>;
1700
+ error: z.ZodDefault<z.ZodString>;
1701
+ success: z.ZodBoolean;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ error: string;
1704
+ success: boolean;
1705
+ operation: "update_field";
1706
+ ok: boolean;
1707
+ field?: {
1708
+ type: string;
1709
+ name: string;
1710
+ id: string;
1711
+ description?: string | undefined;
1712
+ } | undefined;
1713
+ }, {
1714
+ success: boolean;
1715
+ operation: "update_field";
1716
+ ok: boolean;
1717
+ error?: string | undefined;
1718
+ field?: {
1719
+ type: string;
1720
+ name: string;
1721
+ id: string;
1722
+ description?: string | undefined;
1723
+ } | undefined;
1724
+ }>]>;
1725
+ static readonly shortDescription = "Airtable integration for managing records in bases and tables";
1726
+ static readonly longDescription = "\n Comprehensive Airtable integration bubble for managing bases, tables, fields, and records.\n Use cases:\n - List records with filtering, sorting, and pagination\n - Retrieve individual records by ID\n - Create, update, and delete records\n - List all accessible bases\n - Get base schema with all tables and fields\n - Create and update tables\n - Create and update fields\n - Support for all Airtable field types (text, number, attachments, links, etc.)\n \n Security Features:\n - Personal Access Token authentication\n - Parameter validation and sanitization\n - Rate limiting awareness (5 requests per second per base)\n - Comprehensive error handling\n ";
1727
+ static readonly alias = "airtable";
1728
+ constructor(params?: T, context?: BubbleContext, instanceId?: string);
1729
+ protected performAction(context?: BubbleContext): Promise<Extract<AirtableResult, {
1730
+ operation: T['operation'];
1731
+ }>>;
1732
+ private listRecords;
1733
+ private getRecord;
1734
+ private createRecords;
1735
+ private updateRecords;
1736
+ private deleteRecords;
1737
+ private listBases;
1738
+ private getBaseSchema;
1739
+ /**
1740
+ * Normalizes field definitions by adding required default options for field types that need them.
1741
+ * This provides a better UX by auto-fixing common configuration issues.
1742
+ */
1743
+ private normalizeFieldOptions;
1744
+ private createTable;
1745
+ private updateTable;
1746
+ private createField;
1747
+ private updateField;
1748
+ private formatAirtableError;
1749
+ protected chooseCredential(): string | undefined;
1750
+ private makeAirtableApiCall;
1751
+ }
1752
+ export {};
1753
+ //# sourceMappingURL=airtable.d.ts.map