@arcadeai/design-system 1.3.0 → 1.5.0

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 (315) hide show
  1. package/README.md +95 -0
  2. package/dist/{arcade-49z5mR1G.js → arcade-CadnNaba.js} +139 -137
  3. package/dist/assets/index.css +1 -1
  4. package/dist/components/index.d.ts +1 -0
  5. package/dist/components/index.js +431 -213
  6. package/dist/components/ui/atoms/accordion.js +1 -1
  7. package/dist/components/ui/atoms/avatar.js +2 -2
  8. package/dist/components/ui/atoms/checkbox.js +1 -1
  9. package/dist/components/ui/atoms/collapsible.js +1 -1
  10. package/dist/components/ui/atoms/command.js +1 -1
  11. package/dist/components/ui/atoms/dialog.js +1 -1
  12. package/dist/components/ui/atoms/dropdown-menu.js +2 -2
  13. package/dist/components/ui/atoms/hover-card.js +2 -2
  14. package/dist/components/ui/atoms/icons/adp.d.ts +3 -0
  15. package/dist/components/ui/atoms/icons/adp.js +40 -0
  16. package/dist/components/ui/atoms/icons/aha.d.ts +3 -0
  17. package/dist/components/ui/atoms/icons/aha.js +28 -0
  18. package/dist/{assets → components/ui/atoms}/icons/airtable.js +4 -0
  19. package/dist/components/ui/atoms/icons/amplitude.d.ts +3 -0
  20. package/dist/components/ui/atoms/icons/amplitude.js +33 -0
  21. package/dist/{assets → components/ui/atoms}/icons/arcade.js +7 -7
  22. package/dist/{assets → components/ui/atoms}/icons/asana.js +1 -0
  23. package/dist/components/ui/atoms/icons/ashby.d.ts +3 -0
  24. package/dist/components/ui/atoms/icons/ashby.js +50 -0
  25. package/dist/{assets → components/ui/atoms}/icons/atlassian.js +14 -4
  26. package/dist/{assets → components/ui/atoms}/icons/auth0.js +1 -0
  27. package/dist/{assets → components/ui/atoms}/icons/azure.js +43 -22
  28. package/dist/components/ui/atoms/icons/bamboohr.d.ts +3 -0
  29. package/dist/components/ui/atoms/icons/bamboohr.js +31 -0
  30. package/dist/components/ui/atoms/icons/basecamp.d.ts +3 -0
  31. package/dist/components/ui/atoms/icons/basecamp.js +57 -0
  32. package/dist/components/ui/atoms/icons/bill.d.ts +3 -0
  33. package/dist/components/ui/atoms/icons/bill.js +55 -0
  34. package/dist/components/ui/atoms/icons/bitbucket.d.ts +3 -0
  35. package/dist/components/ui/atoms/icons/bitbucket.js +38 -0
  36. package/dist/{assets → components/ui/atoms}/icons/bluesky.js +1 -0
  37. package/dist/{assets → components/ui/atoms}/icons/box.js +1 -0
  38. package/dist/components/ui/atoms/icons/braze.d.ts +3 -0
  39. package/dist/components/ui/atoms/icons/braze.js +28 -0
  40. package/dist/components/ui/atoms/icons/brex.d.ts +3 -0
  41. package/dist/components/ui/atoms/icons/brex.js +29 -0
  42. package/dist/components/ui/atoms/icons/buffer.d.ts +3 -0
  43. package/dist/components/ui/atoms/icons/buffer.js +33 -0
  44. package/dist/components/ui/atoms/icons/calendly.js +80 -0
  45. package/dist/components/ui/atoms/icons/clickhouse.d.ts +3 -0
  46. package/dist/components/ui/atoms/icons/clickhouse.js +26 -0
  47. package/dist/components/ui/atoms/icons/clickup.d.ts +3 -0
  48. package/dist/{assets → components/ui/atoms}/icons/clickup.js +16 -4
  49. package/dist/components/ui/atoms/icons/closeio.d.ts +3 -0
  50. package/dist/components/ui/atoms/icons/closeio.js +68 -0
  51. package/dist/{assets → components/ui/atoms}/icons/coinbase.js +21 -8
  52. package/dist/{assets → components/ui/atoms}/icons/confluence.js +18 -4
  53. package/dist/{assets → components/ui/atoms}/icons/datadog.js +1 -0
  54. package/dist/components/ui/atoms/icons/digital-ocean.d.ts +3 -0
  55. package/dist/components/ui/atoms/icons/digital-ocean.js +22 -0
  56. package/dist/{assets → components/ui/atoms}/icons/discord.js +1 -0
  57. package/dist/{assets → components/ui/atoms}/icons/dropbox.js +1 -0
  58. package/dist/components/ui/atoms/icons/e2b.d.ts +3 -0
  59. package/dist/components/ui/atoms/icons/e2b.js +19 -0
  60. package/dist/{assets → components/ui/atoms}/icons/ebay.js +4 -0
  61. package/dist/components/ui/atoms/icons/evernote.d.ts +3 -0
  62. package/dist/components/ui/atoms/icons/evernote.js +29 -0
  63. package/dist/components/ui/atoms/icons/factorial.d.ts +3 -0
  64. package/dist/components/ui/atoms/icons/factorial.js +50 -0
  65. package/dist/{assets → components/ui/atoms}/icons/figma.js +18 -2
  66. package/dist/components/ui/atoms/icons/firecrawl.d.ts +3 -0
  67. package/dist/components/ui/atoms/icons/firecrawl.js +19 -0
  68. package/dist/components/ui/atoms/icons/generic.d.ts +3 -0
  69. package/dist/components/ui/atoms/icons/generic.js +27 -0
  70. package/dist/{assets → components/ui/atoms}/icons/github.js +4 -3
  71. package/dist/{assets → components/ui/atoms}/icons/gitlab.js +4 -0
  72. package/dist/{assets → components/ui/atoms}/icons/gmail.js +11 -2
  73. package/dist/components/ui/atoms/icons/google-calendar.js +98 -0
  74. package/dist/{assets → components/ui/atoms}/icons/google-contacts.js +4 -0
  75. package/dist/components/ui/atoms/icons/google-docs.js +328 -0
  76. package/dist/{assets → components/ui/atoms}/icons/google-drive.js +6 -0
  77. package/dist/{assets → components/ui/atoms}/icons/google-finance.js +8 -1
  78. package/dist/{assets → components/ui/atoms}/icons/google-flight.js +49 -20
  79. package/dist/components/ui/atoms/icons/google-flights.d.ts +3 -0
  80. package/dist/components/ui/atoms/icons/google-flights.js +109 -0
  81. package/dist/{assets → components/ui/atoms}/icons/google-hotels.js +10 -1
  82. package/dist/components/ui/atoms/icons/google-jobs.d.ts +3 -0
  83. package/dist/components/ui/atoms/icons/google-jobs.js +103 -0
  84. package/dist/{assets → components/ui/atoms}/icons/google-maps.js +5 -0
  85. package/dist/{assets → components/ui/atoms}/icons/google-news.js +27 -3
  86. package/dist/{assets → components/ui/atoms}/icons/google-sheets.js +3 -0
  87. package/dist/{assets → components/ui/atoms}/icons/google-shopping.js +9 -1
  88. package/dist/components/ui/atoms/icons/google-slides.d.ts +3 -0
  89. package/dist/components/ui/atoms/icons/google-slides.js +243 -0
  90. package/dist/{assets → components/ui/atoms}/icons/google.js +4 -0
  91. package/dist/{assets → components/ui/atoms}/icons/heroku.js +1 -0
  92. package/dist/components/ui/atoms/icons/hootsuite.d.ts +3 -0
  93. package/dist/components/ui/atoms/icons/hootsuite.js +43 -0
  94. package/dist/components/ui/atoms/icons/hubspot.d.ts +3 -0
  95. package/dist/{assets → components/ui/atoms}/icons/hubspot.js +2 -1
  96. package/dist/{assets → components/ui/atoms}/icons/index.d.ts +47 -0
  97. package/dist/components/ui/atoms/icons/index.js +220 -0
  98. package/dist/components/ui/atoms/icons/intercom.d.ts +3 -0
  99. package/dist/components/ui/atoms/icons/intercom.js +26 -0
  100. package/dist/{assets → components/ui/atoms}/icons/jira.js +15 -7
  101. package/dist/{assets → components/ui/atoms}/icons/linear.js +1 -0
  102. package/dist/components/ui/atoms/icons/linkedin.d.ts +3 -0
  103. package/dist/{assets → components/ui/atoms}/icons/linkedin.js +5 -4
  104. package/dist/components/ui/atoms/icons/mailchimp.d.ts +3 -0
  105. package/dist/components/ui/atoms/icons/mailchimp.js +70 -0
  106. package/dist/components/ui/atoms/icons/mcp.d.ts +3 -0
  107. package/dist/components/ui/atoms/icons/mcp.js +23 -0
  108. package/dist/components/ui/atoms/icons/microsoft-dynamics.d.ts +3 -0
  109. package/dist/components/ui/atoms/icons/microsoft-dynamics.js +172 -0
  110. package/dist/components/ui/atoms/icons/microsoft-sharepoint.d.ts +3 -0
  111. package/dist/components/ui/atoms/icons/microsoft-sharepoint.js +88 -0
  112. package/dist/components/ui/atoms/icons/microsoft-teams.d.ts +3 -0
  113. package/dist/components/ui/atoms/icons/microsoft-teams.js +119 -0
  114. package/dist/{assets → components/ui/atoms}/icons/microsoft.js +4 -0
  115. package/dist/components/ui/atoms/icons/miro.d.ts +3 -0
  116. package/dist/components/ui/atoms/icons/miro.js +35 -0
  117. package/dist/components/ui/atoms/icons/monday.d.ts +3 -0
  118. package/dist/components/ui/atoms/icons/monday.js +60 -0
  119. package/dist/components/ui/atoms/icons/netsuite.d.ts +3 -0
  120. package/dist/{assets → components/ui/atoms}/icons/netsuite.js +35 -26
  121. package/dist/{assets → components/ui/atoms}/icons/notion.js +2 -0
  122. package/dist/components/ui/atoms/icons/oauth.d.ts +3 -0
  123. package/dist/{assets → components/ui/atoms}/icons/oauth.js +66 -8
  124. package/dist/components/ui/atoms/icons/obsidian.d.ts +3 -0
  125. package/dist/components/ui/atoms/icons/obsidian.js +220 -0
  126. package/dist/components/ui/atoms/icons/okta.d.ts +3 -0
  127. package/dist/components/ui/atoms/icons/okta.js +56 -0
  128. package/dist/components/ui/atoms/icons/one-drive.d.ts +3 -0
  129. package/dist/components/ui/atoms/icons/one-drive.js +38 -0
  130. package/dist/{assets → components/ui/atoms}/icons/outlook-calendar.js +18 -0
  131. package/dist/{assets → components/ui/atoms}/icons/outlook-mail.js +4 -0
  132. package/dist/components/ui/atoms/icons/pinecone.d.ts +3 -0
  133. package/dist/components/ui/atoms/icons/pinecone.js +29 -0
  134. package/dist/{assets → components/ui/atoms}/icons/pinterest.js +1 -0
  135. package/dist/components/ui/atoms/icons/pipedrive.d.ts +3 -0
  136. package/dist/components/ui/atoms/icons/pipedrive.js +59 -0
  137. package/dist/components/ui/atoms/icons/plaid.d.ts +3 -0
  138. package/dist/components/ui/atoms/icons/plaid.js +37 -0
  139. package/dist/{assets → components/ui/atoms}/icons/postgres.js +30 -20
  140. package/dist/components/ui/atoms/icons/quickbooks.d.ts +3 -0
  141. package/dist/components/ui/atoms/icons/quickbooks.js +25 -0
  142. package/dist/components/ui/atoms/icons/reddit.js +315 -0
  143. package/dist/{assets → components/ui/atoms}/icons/salesforce.js +3 -0
  144. package/dist/{assets → components/ui/atoms}/icons/shopify.js +3 -0
  145. package/dist/components/ui/atoms/icons/singlestore.d.ts +3 -0
  146. package/dist/components/ui/atoms/icons/singlestore.js +284 -0
  147. package/dist/{assets → components/ui/atoms}/icons/slack.js +7 -1
  148. package/dist/components/ui/atoms/icons/snowflake.d.ts +3 -0
  149. package/dist/components/ui/atoms/icons/snowflake.js +26 -0
  150. package/dist/components/ui/atoms/icons/splunk.d.ts +3 -0
  151. package/dist/components/ui/atoms/icons/splunk.js +54 -0
  152. package/dist/{assets → components/ui/atoms}/icons/spotify.js +1 -0
  153. package/dist/components/ui/atoms/icons/square.d.ts +3 -0
  154. package/dist/components/ui/atoms/icons/square.js +41 -0
  155. package/dist/components/ui/atoms/icons/squarespace.d.ts +3 -0
  156. package/dist/components/ui/atoms/icons/squarespace.js +29 -0
  157. package/dist/{assets → components/ui/atoms}/icons/stripe.js +1 -0
  158. package/dist/{assets → components/ui/atoms}/icons/tesla.js +5 -1
  159. package/dist/{assets → components/ui/atoms}/icons/tiktok.js +3 -0
  160. package/dist/components/ui/atoms/icons/trello.d.ts +3 -0
  161. package/dist/components/ui/atoms/icons/trello.js +59 -0
  162. package/dist/{assets → components/ui/atoms}/icons/twilio.js +11 -4
  163. package/dist/{assets → components/ui/atoms}/icons/twitch.js +6 -1
  164. package/dist/components/ui/atoms/icons/utils.d.ts +56 -0
  165. package/dist/components/ui/atoms/icons/utils.js +41 -0
  166. package/dist/{assets → components/ui/atoms}/icons/vercel.js +1 -0
  167. package/dist/{assets → components/ui/atoms}/icons/walmart.js +2 -0
  168. package/dist/components/ui/atoms/icons/weaviate.d.ts +3 -0
  169. package/dist/components/ui/atoms/icons/weaviate.js +229 -0
  170. package/dist/components/ui/atoms/icons/workday.d.ts +3 -0
  171. package/dist/components/ui/atoms/icons/workday.js +97 -0
  172. package/dist/components/ui/atoms/icons/wrike.d.ts +3 -0
  173. package/dist/components/ui/atoms/icons/wrike.js +16 -0
  174. package/dist/{assets → components/ui/atoms}/icons/x.js +4 -4
  175. package/dist/components/ui/atoms/icons/xero.js +87 -0
  176. package/dist/components/ui/atoms/icons/youtube.d.ts +3 -0
  177. package/dist/{assets → components/ui/atoms}/icons/youtube.js +3 -1
  178. package/dist/components/ui/atoms/icons/zendesk.d.ts +3 -0
  179. package/dist/components/ui/atoms/icons/zendesk.js +27 -0
  180. package/dist/{assets → components/ui/atoms}/icons/zoom.js +30 -17
  181. package/dist/components/ui/atoms/index.d.ts +2 -0
  182. package/dist/components/ui/atoms/index.js +416 -198
  183. package/dist/components/ui/atoms/popover.js +2 -2
  184. package/dist/components/ui/atoms/progress.js +18 -17
  185. package/dist/components/ui/atoms/radio-group.js +1 -1
  186. package/dist/components/ui/atoms/scroll-area.js +3 -3
  187. package/dist/components/ui/atoms/select.js +3 -3
  188. package/dist/components/ui/atoms/sheet.js +1 -1
  189. package/dist/components/ui/atoms/sidebar.js +102 -102
  190. package/dist/components/ui/atoms/tabs.js +1 -1
  191. package/dist/components/ui/atoms/tooltip.js +2 -2
  192. package/dist/components/ui/index.d.ts +1 -0
  193. package/dist/components/ui/index.js +431 -213
  194. package/dist/components/ui/molecules/index.d.ts +1 -0
  195. package/dist/components/ui/molecules/index.js +1 -1
  196. package/dist/components/ui/molecules/requirement-badges.js +6 -5
  197. package/dist/components/ui/molecules/tool-card.js +18 -18
  198. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  199. package/dist/components/ui/molecules/toolkit-picker-trigger.js +47 -38
  200. package/dist/components/ui/molecules/toolkit-selection-summary.d.ts +4 -3
  201. package/dist/components/ui/molecules/toolkit-selection-summary.js +32 -29
  202. package/dist/components/ui/organisms/index.d.ts +1 -0
  203. package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.js +9 -9
  204. package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +5 -4
  205. package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +7 -6
  206. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts +2 -2
  207. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +21 -18
  208. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +14 -18
  209. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +7 -7
  210. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
  211. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +12 -11
  212. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +54 -40
  213. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +195 -113
  214. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +126 -116
  215. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +3418 -4391
  216. package/dist/components/ui/utils/memo.test.d.ts +1 -0
  217. package/dist/components/ui/utils/memo.test.js +36 -0
  218. package/dist/{index-CtSXVDca.js → index-BDIfjxqB.js} +1 -1
  219. package/dist/{index-C8_QusYl.js → index-BGfrl8IX.js} +1 -1
  220. package/dist/{index-Ez2mlmzx.js → index-BzU0xzeS.js} +1 -1
  221. package/dist/index-DH9yRdVk.js +1540 -0
  222. package/dist/lib/arcade/arcade.d.ts +2 -2
  223. package/dist/lib/arcade/arcade.js +3 -2
  224. package/dist/lib/arcade/arcade.test.js +2 -2
  225. package/dist/lib/utils.test.d.ts +1 -0
  226. package/dist/lib/utils.test.js +43 -0
  227. package/dist/{magic-string.es-BQ9KnLz-.js → magic-string.es-QnVUNas7.js} +4 -3
  228. package/dist/main.d.ts +2 -0
  229. package/dist/main.js +444 -214
  230. package/dist/metadata/index.d.ts +3 -0
  231. package/dist/metadata/index.js +14 -0
  232. package/dist/metadata/oauth-providers.d.ts +69 -0
  233. package/dist/metadata/oauth-providers.js +260 -0
  234. package/dist/metadata/toolkits.d.ts +24 -0
  235. package/dist/metadata/toolkits.js +1500 -0
  236. package/dist/{react.esm-369wBsAv.js → react.esm-CFMQn0EI.js} +31 -31
  237. package/dist/{toolkit-card-GhM_oj4G.js → toolkit-card-UG1sZ0Le.js} +11 -10
  238. package/dist/{vi.bdSIJ99Y-CZgZQPWH.js → vi.bdSIJ99Y-CQ1FdEM8.js} +3462 -3916
  239. package/package.json +38 -35
  240. package/dist/assets/icons/calendly.js +0 -64
  241. package/dist/assets/icons/clickup.d.ts +0 -3
  242. package/dist/assets/icons/e2b.d.ts +0 -3
  243. package/dist/assets/icons/e2b.js +0 -9
  244. package/dist/assets/icons/firecrawl.d.ts +0 -5
  245. package/dist/assets/icons/firecrawl.js +0 -17
  246. package/dist/assets/icons/google-calendar.js +0 -93
  247. package/dist/assets/icons/google-docs.js +0 -219
  248. package/dist/assets/icons/hubspot.d.ts +0 -3
  249. package/dist/assets/icons/index.js +0 -128
  250. package/dist/assets/icons/linkedin.d.ts +0 -3
  251. package/dist/assets/icons/netsuite.d.ts +0 -3
  252. package/dist/assets/icons/oauth.d.ts +0 -3
  253. package/dist/assets/icons/reddit.js +0 -268
  254. package/dist/assets/icons/utils.d.ts +0 -435
  255. package/dist/assets/icons/utils.js +0 -439
  256. package/dist/assets/icons/xero.js +0 -63
  257. package/dist/assets/icons/youtube.d.ts +0 -3
  258. package/dist/components/ui/organisms/toolkit-picker/components/mobile-filter-badges.d.ts +0 -1
  259. package/dist/components/ui/organisms/toolkit-picker/components/mobile-filter-badges.js +0 -96
  260. package/dist/index-DEJd-dpa.js +0 -1537
  261. /package/dist/{assets → components/ui/atoms}/icons/airtable.d.ts +0 -0
  262. /package/dist/{assets → components/ui/atoms}/icons/arcade.d.ts +0 -0
  263. /package/dist/{assets → components/ui/atoms}/icons/asana.d.ts +0 -0
  264. /package/dist/{assets → components/ui/atoms}/icons/atlassian.d.ts +0 -0
  265. /package/dist/{assets → components/ui/atoms}/icons/auth0.d.ts +0 -0
  266. /package/dist/{assets → components/ui/atoms}/icons/azure.d.ts +0 -0
  267. /package/dist/{assets → components/ui/atoms}/icons/bluesky.d.ts +0 -0
  268. /package/dist/{assets → components/ui/atoms}/icons/box.d.ts +0 -0
  269. /package/dist/{assets → components/ui/atoms}/icons/calendly.d.ts +0 -0
  270. /package/dist/{assets → components/ui/atoms}/icons/coinbase.d.ts +0 -0
  271. /package/dist/{assets → components/ui/atoms}/icons/confluence.d.ts +0 -0
  272. /package/dist/{assets → components/ui/atoms}/icons/datadog.d.ts +0 -0
  273. /package/dist/{assets → components/ui/atoms}/icons/discord.d.ts +0 -0
  274. /package/dist/{assets → components/ui/atoms}/icons/dropbox.d.ts +0 -0
  275. /package/dist/{assets → components/ui/atoms}/icons/ebay.d.ts +0 -0
  276. /package/dist/{assets → components/ui/atoms}/icons/figma.d.ts +0 -0
  277. /package/dist/{assets → components/ui/atoms}/icons/github.d.ts +0 -0
  278. /package/dist/{assets → components/ui/atoms}/icons/gitlab.d.ts +0 -0
  279. /package/dist/{assets → components/ui/atoms}/icons/gmail.d.ts +0 -0
  280. /package/dist/{assets → components/ui/atoms}/icons/google-calendar.d.ts +0 -0
  281. /package/dist/{assets → components/ui/atoms}/icons/google-contacts.d.ts +0 -0
  282. /package/dist/{assets → components/ui/atoms}/icons/google-docs.d.ts +0 -0
  283. /package/dist/{assets → components/ui/atoms}/icons/google-drive.d.ts +0 -0
  284. /package/dist/{assets → components/ui/atoms}/icons/google-finance.d.ts +0 -0
  285. /package/dist/{assets → components/ui/atoms}/icons/google-flight.d.ts +0 -0
  286. /package/dist/{assets → components/ui/atoms}/icons/google-hotels.d.ts +0 -0
  287. /package/dist/{assets → components/ui/atoms}/icons/google-maps.d.ts +0 -0
  288. /package/dist/{assets → components/ui/atoms}/icons/google-news.d.ts +0 -0
  289. /package/dist/{assets → components/ui/atoms}/icons/google-sheets.d.ts +0 -0
  290. /package/dist/{assets → components/ui/atoms}/icons/google-shopping.d.ts +0 -0
  291. /package/dist/{assets → components/ui/atoms}/icons/google.d.ts +0 -0
  292. /package/dist/{assets → components/ui/atoms}/icons/heroku.d.ts +0 -0
  293. /package/dist/{assets → components/ui/atoms}/icons/jira.d.ts +0 -0
  294. /package/dist/{assets → components/ui/atoms}/icons/linear.d.ts +0 -0
  295. /package/dist/{assets → components/ui/atoms}/icons/microsoft.d.ts +0 -0
  296. /package/dist/{assets → components/ui/atoms}/icons/notion.d.ts +0 -0
  297. /package/dist/{assets → components/ui/atoms}/icons/outlook-calendar.d.ts +0 -0
  298. /package/dist/{assets → components/ui/atoms}/icons/outlook-mail.d.ts +0 -0
  299. /package/dist/{assets → components/ui/atoms}/icons/pinterest.d.ts +0 -0
  300. /package/dist/{assets → components/ui/atoms}/icons/postgres.d.ts +0 -0
  301. /package/dist/{assets → components/ui/atoms}/icons/reddit.d.ts +0 -0
  302. /package/dist/{assets → components/ui/atoms}/icons/salesforce.d.ts +0 -0
  303. /package/dist/{assets → components/ui/atoms}/icons/shopify.d.ts +0 -0
  304. /package/dist/{assets → components/ui/atoms}/icons/slack.d.ts +0 -0
  305. /package/dist/{assets → components/ui/atoms}/icons/spotify.d.ts +0 -0
  306. /package/dist/{assets → components/ui/atoms}/icons/stripe.d.ts +0 -0
  307. /package/dist/{assets → components/ui/atoms}/icons/tesla.d.ts +0 -0
  308. /package/dist/{assets → components/ui/atoms}/icons/tiktok.d.ts +0 -0
  309. /package/dist/{assets → components/ui/atoms}/icons/twilio.d.ts +0 -0
  310. /package/dist/{assets → components/ui/atoms}/icons/twitch.d.ts +0 -0
  311. /package/dist/{assets → components/ui/atoms}/icons/vercel.d.ts +0 -0
  312. /package/dist/{assets → components/ui/atoms}/icons/walmart.d.ts +0 -0
  313. /package/dist/{assets → components/ui/atoms}/icons/x.d.ts +0 -0
  314. /package/dist/{assets → components/ui/atoms}/icons/xero.d.ts +0 -0
  315. /package/dist/{assets → components/ui/atoms}/icons/zoom.d.ts +0 -0
@@ -1,3 +1,4 @@
1
+ import { TOOLKIT_CATALOGUE as tt } from "./metadata/toolkits.js";
1
2
  import { r as pe } from "./utils-Db4QWi-E.js";
2
3
  let ye = !1, D, Re, Y, Se, Ee;
3
4
  function Pe(t, e = { auto: !1 }) {
@@ -7,7 +8,7 @@ function Pe(t, e = { auto: !1 }) {
7
8
  throw new Error(`can't \`import '@arcadeai/arcadejs/shims/${t.kind}'\` after \`import '@arcadeai/arcadejs/shims/${D}'\``);
8
9
  ye = e.auto, D = t.kind, Re = t.fetch, t.Request, t.Response, t.Headers, t.FormData, t.Blob, Y = t.File, t.ReadableStream, t.getMultipartRequestOptions, Se = t.getDefaultAgent, Ee = t.fileFromPath, t.isFsReadStream;
9
10
  }
10
- class tt {
11
+ class rt {
11
12
  constructor(e) {
12
13
  this.body = e;
13
14
  }
@@ -63,7 +64,7 @@ function ke({ manuallyImported: t } = {}) {
63
64
  ),
64
65
  getMultipartRequestOptions: async (i, l) => ({
65
66
  ...l,
66
- body: new tt(i)
67
+ body: new rt(i)
67
68
  }),
68
69
  getDefaultAgent: (i) => {
69
70
  },
@@ -77,12 +78,12 @@ Pe(ke({ manuallyImported: !0 }));
77
78
  const Z = "RFC3986", ee = {
78
79
  RFC1738: (t) => String(t).replace(/%20/g, "+"),
79
80
  RFC3986: (t) => String(t)
80
- }, rt = "RFC1738", nt = Array.isArray, _ = (() => {
81
+ }, nt = "RFC1738", st = Array.isArray, _ = (() => {
81
82
  const t = [];
82
83
  for (let e = 0; e < 256; ++e)
83
84
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
84
85
  return t;
85
- })(), V = 1024, st = (t, e, r, n, s) => {
86
+ })(), V = 1024, ot = (t, e, r, n, s) => {
86
87
  if (t.length === 0)
87
88
  return t;
88
89
  let o = t;
@@ -92,9 +93,9 @@ const Z = "RFC3986", ee = {
92
93
  });
93
94
  let i = "";
94
95
  for (let l = 0; l < o.length; l += V) {
95
- const u = o.length >= V ? o.slice(l, l + V) : o, c = [];
96
- for (let p = 0; p < u.length; ++p) {
97
- let a = u.charCodeAt(p);
96
+ const c = o.length >= V ? o.slice(l, l + V) : o, u = [];
97
+ for (let p = 0; p < c.length; ++p) {
98
+ let a = c.charCodeAt(p);
98
99
  if (a === 45 || // -
99
100
  a === 46 || // .
100
101
  a === 95 || // _
@@ -102,33 +103,33 @@ const Z = "RFC3986", ee = {
102
103
  a >= 48 && a <= 57 || // 0-9
103
104
  a >= 65 && a <= 90 || // a-z
104
105
  a >= 97 && a <= 122 || // A-Z
105
- s === rt && (a === 40 || a === 41)) {
106
- c[c.length] = u.charAt(p);
106
+ s === nt && (a === 40 || a === 41)) {
107
+ u[u.length] = c.charAt(p);
107
108
  continue;
108
109
  }
109
110
  if (a < 128) {
110
- c[c.length] = _[a];
111
+ u[u.length] = _[a];
111
112
  continue;
112
113
  }
113
114
  if (a < 2048) {
114
- c[c.length] = _[192 | a >> 6] + _[128 | a & 63];
115
+ u[u.length] = _[192 | a >> 6] + _[128 | a & 63];
115
116
  continue;
116
117
  }
117
118
  if (a < 55296 || a >= 57344) {
118
- c[c.length] = _[224 | a >> 12] + _[128 | a >> 6 & 63] + _[128 | a & 63];
119
+ u[u.length] = _[224 | a >> 12] + _[128 | a >> 6 & 63] + _[128 | a & 63];
119
120
  continue;
120
121
  }
121
- p += 1, a = 65536 + ((a & 1023) << 10 | u.charCodeAt(p) & 1023), c[c.length] = _[240 | a >> 18] + _[128 | a >> 12 & 63] + _[128 | a >> 6 & 63] + _[128 | a & 63];
122
+ p += 1, a = 65536 + ((a & 1023) << 10 | c.charCodeAt(p) & 1023), u[u.length] = _[240 | a >> 18] + _[128 | a >> 12 & 63] + _[128 | a >> 6 & 63] + _[128 | a & 63];
122
123
  }
123
- i += c.join("");
124
+ i += u.join("");
124
125
  }
125
126
  return i;
126
127
  };
127
- function ot(t) {
128
+ function it(t) {
128
129
  return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
129
130
  }
130
131
  function me(t, e) {
131
- if (nt(t)) {
132
+ if (st(t)) {
132
133
  const r = [];
133
134
  for (let n = 0; n < t.length; n += 1)
134
135
  r.push(e(t[n]));
@@ -136,7 +137,7 @@ function me(t, e) {
136
137
  }
137
138
  return e(t);
138
139
  }
139
- const it = Object.prototype.hasOwnProperty, Te = {
140
+ const at = Object.prototype.hasOwnProperty, Te = {
140
141
  brackets(t) {
141
142
  return String(t) + "[]";
142
143
  },
@@ -147,9 +148,9 @@ const it = Object.prototype.hasOwnProperty, Te = {
147
148
  repeat(t) {
148
149
  return String(t);
149
150
  }
150
- }, A = Array.isArray, at = Array.prototype.push, ve = function(t, e) {
151
- at.apply(t, A(e) ? e : [e]);
152
- }, ct = Date.prototype.toISOString, y = {
151
+ }, A = Array.isArray, ct = Array.prototype.push, ve = function(t, e) {
152
+ ct.apply(t, A(e) ? e : [e]);
153
+ }, ut = Date.prototype.toISOString, y = {
153
154
  addQueryPrefix: !1,
154
155
  allowDots: !1,
155
156
  allowEmptyArrays: !1,
@@ -159,23 +160,23 @@ const it = Object.prototype.hasOwnProperty, Te = {
159
160
  delimiter: "&",
160
161
  encode: !0,
161
162
  encodeDotInKeys: !1,
162
- encoder: st,
163
+ encoder: ot,
163
164
  encodeValuesOnly: !1,
164
165
  format: Z,
165
166
  formatter: ee[Z],
166
167
  /** @deprecated */
167
168
  indices: !1,
168
169
  serializeDate(t) {
169
- return ct.call(t);
170
+ return ut.call(t);
170
171
  },
171
172
  skipNulls: !1,
172
173
  strictNullHandling: !1
173
174
  };
174
- function ut(t) {
175
+ function lt(t) {
175
176
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
176
177
  }
177
178
  const Q = {};
178
- function Ce(t, e, r, n, s, o, i, l, u, c, p, a, h, m, x, E, R, X) {
179
+ function Ce(t, e, r, n, s, o, i, l, c, u, p, a, h, m, x, E, R, X) {
179
180
  let f = t, F = X, $ = 0, le = !1;
180
181
  for (; (F = F.get(Q)) !== void 0 && !le; ) {
181
182
  const g = F.get(t);
@@ -186,22 +187,22 @@ function Ce(t, e, r, n, s, o, i, l, u, c, p, a, h, m, x, E, R, X) {
186
187
  }
187
188
  typeof F.get(Q) > "u" && ($ = 0);
188
189
  }
189
- if (typeof c == "function" ? f = c(e, f) : f instanceof Date ? f = h?.(f) : r === "comma" && A(f) && (f = me(f, function(g) {
190
+ if (typeof u == "function" ? f = u(e, f) : f instanceof Date ? f = h?.(f) : r === "comma" && A(f) && (f = me(f, function(g) {
190
191
  return g instanceof Date ? h?.(g) : g;
191
192
  })), f === null) {
192
193
  if (o)
193
- return u && !E ? (
194
+ return c && !E ? (
194
195
  // @ts-expect-error
195
- u(e, y.encoder, R, "key", m)
196
+ c(e, y.encoder, R, "key", m)
196
197
  ) : e;
197
198
  f = "";
198
199
  }
199
- if (ut(f) || ot(f)) {
200
- if (u) {
201
- const g = E ? e : u(e, y.encoder, R, "key", m);
200
+ if (lt(f) || it(f)) {
201
+ if (c) {
202
+ const g = E ? e : c(e, y.encoder, R, "key", m);
202
203
  return [
203
204
  x?.(g) + "=" + // @ts-expect-error
204
- x?.(u(f, y.encoder, R, "value", m))
205
+ x?.(c(f, y.encoder, R, "value", m))
205
206
  ];
206
207
  }
207
208
  return [x?.(e) + "=" + x?.(String(f))];
@@ -211,9 +212,9 @@ function Ce(t, e, r, n, s, o, i, l, u, c, p, a, h, m, x, E, R, X) {
211
212
  return K;
212
213
  let I;
213
214
  if (r === "comma" && A(f))
214
- E && u && (f = me(f, u)), I = [{ value: f.length > 0 ? f.join(",") || null : void 0 }];
215
- else if (A(c))
216
- I = c;
215
+ E && c && (f = me(f, c)), I = [{ value: f.length > 0 ? f.join(",") || null : void 0 }];
216
+ else if (A(u))
217
+ I = u;
217
218
  else {
218
219
  const g = Object.keys(f);
219
220
  I = p ? g.sort(p) : g;
@@ -241,8 +242,8 @@ function Ce(t, e, r, n, s, o, i, l, u, c, p, a, h, m, x, E, R, X) {
241
242
  i,
242
243
  l,
243
244
  // @ts-ignore
244
- r === "comma" && E && A(f) ? null : u,
245
- c,
245
+ r === "comma" && E && A(f) ? null : c,
246
+ u,
246
247
  p,
247
248
  a,
248
249
  h,
@@ -255,7 +256,7 @@ function Ce(t, e, r, n, s, o, i, l, u, c, p, a, h, m, x, E, R, X) {
255
256
  }
256
257
  return K;
257
258
  }
258
- function lt(t = y) {
259
+ function ft(t = y) {
259
260
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
260
261
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
261
262
  if (typeof t.encodeDotInKeys < "u" && typeof t.encodeDotInKeys != "boolean")
@@ -267,7 +268,7 @@ function lt(t = y) {
267
268
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
268
269
  let r = Z;
269
270
  if (typeof t.format < "u") {
270
- if (!it.call(ee, t.format))
271
+ if (!at.call(ee, t.format))
271
272
  throw new TypeError("Unknown format option provided.");
272
273
  r = t.format;
273
274
  }
@@ -302,17 +303,17 @@ function lt(t = y) {
302
303
  strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : y.strictNullHandling
303
304
  };
304
305
  }
305
- function ft(t, e = {}) {
306
+ function dt(t, e = {}) {
306
307
  let r = t;
307
- const n = lt(e);
308
+ const n = ft(e);
308
309
  let s, o;
309
310
  typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : A(n.filter) && (o = n.filter, s = o);
310
311
  const i = [];
311
312
  if (typeof r != "object" || r === null)
312
313
  return "";
313
- const l = Te[n.arrayFormat], u = l === "comma" && n.commaRoundTrip;
314
+ const l = Te[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
314
315
  s || (s = Object.keys(r)), n.sort && s.sort(n.sort);
315
- const c = /* @__PURE__ */ new WeakMap();
316
+ const u = /* @__PURE__ */ new WeakMap();
316
317
  for (let h = 0; h < s.length; ++h) {
317
318
  const m = s[h];
318
319
  n.skipNulls && r[m] === null || ve(i, Ce(
@@ -320,7 +321,7 @@ function ft(t, e = {}) {
320
321
  m,
321
322
  // @ts-expect-error
322
323
  l,
323
- u,
324
+ c,
324
325
  n.allowEmptyArrays,
325
326
  n.strictNullHandling,
326
327
  n.skipNulls,
@@ -334,14 +335,14 @@ function ft(t, e = {}) {
334
335
  n.formatter,
335
336
  n.encodeValuesOnly,
336
337
  n.charset,
337
- c
338
+ u
338
339
  ));
339
340
  }
340
341
  const p = i.join(n.delimiter);
341
342
  let a = n.addQueryPrefix === !0 ? "?" : "";
342
343
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? a += "utf8=%26%2310003%3B&" : a += "utf8=%E2%9C%93&"), p.length > 0 ? a + p : "";
343
344
  }
344
- const T = "1.9.0";
345
+ const T = "1.9.1";
345
346
  class P extends Error {
346
347
  }
347
348
  class w extends P {
@@ -394,50 +395,50 @@ const Me = () => {
394
395
  D || Pe(ke(), { auto: !0 });
395
396
  };
396
397
  Me();
397
- const dt = (t) => t != null && typeof t == "object" && typeof t.url == "string" && typeof t.blob == "function", ht = (t) => t != null && typeof t == "object" && typeof t.name == "string" && typeof t.lastModified == "number" && N(t), N = (t) => t != null && typeof t == "object" && typeof t.size == "number" && typeof t.type == "string" && typeof t.text == "function" && typeof t.slice == "function" && typeof t.arrayBuffer == "function";
398
- async function pt(t, e, r) {
399
- if (t = await t, ht(t))
398
+ const ht = (t) => t != null && typeof t == "object" && typeof t.url == "string" && typeof t.blob == "function", pt = (t) => t != null && typeof t == "object" && typeof t.name == "string" && typeof t.lastModified == "number" && N(t), N = (t) => t != null && typeof t == "object" && typeof t.size == "number" && typeof t.type == "string" && typeof t.text == "function" && typeof t.slice == "function" && typeof t.arrayBuffer == "function";
399
+ async function yt(t, e, r) {
400
+ if (t = await t, pt(t))
400
401
  return t;
401
- if (dt(t)) {
402
+ if (ht(t)) {
402
403
  const s = await t.blob();
403
404
  e || (e = new URL(t.url).pathname.split(/[\\/]/).pop() ?? "unknown_file");
404
405
  const o = N(s) ? [await s.arrayBuffer()] : [s];
405
406
  return new Y(o, e, r);
406
407
  }
407
- const n = await yt(t);
408
- if (e || (e = gt(t) ?? "unknown_file"), !r?.type) {
408
+ const n = await mt(t);
409
+ if (e || (e = wt(t) ?? "unknown_file"), !r?.type) {
409
410
  const s = n[0]?.type;
410
411
  typeof s == "string" && (r = { ...r, type: s });
411
412
  }
412
413
  return new Y(n, e, r);
413
414
  }
414
- async function yt(t) {
415
+ async function mt(t) {
415
416
  let e = [];
416
417
  if (typeof t == "string" || ArrayBuffer.isView(t) || // includes Uint8Array, Buffer, etc.
417
418
  t instanceof ArrayBuffer)
418
419
  e.push(t);
419
420
  else if (N(t))
420
421
  e.push(await t.arrayBuffer());
421
- else if (wt(t))
422
+ else if (bt(t))
422
423
  for await (const r of t)
423
424
  e.push(r);
424
425
  else
425
- throw new Error(`Unexpected data type: ${typeof t}; constructor: ${t?.constructor?.name}; props: ${mt(t)}`);
426
+ throw new Error(`Unexpected data type: ${typeof t}; constructor: ${t?.constructor?.name}; props: ${gt(t)}`);
426
427
  return e;
427
428
  }
428
- function mt(t) {
429
+ function gt(t) {
429
430
  return `[${Object.getOwnPropertyNames(t).map((r) => `"${r}"`).join(", ")}]`;
430
431
  }
431
- function gt(t) {
432
- return J(t.name) || J(t.filename) || // For fs.ReadStream
433
- J(t.path)?.split(/[\\/]/).pop();
432
+ function wt(t) {
433
+ return G(t.name) || G(t.filename) || // For fs.ReadStream
434
+ G(t.path)?.split(/[\\/]/).pop();
434
435
  }
435
- const J = (t) => {
436
+ const G = (t) => {
436
437
  if (typeof t == "string")
437
438
  return t;
438
439
  if (typeof Buffer < "u" && t instanceof Buffer)
439
440
  return String(t);
440
- }, wt = (t) => t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function", ge = (t) => t && typeof t == "object" && t.body && t[Symbol.toStringTag] === "MultipartBody";
441
+ }, bt = (t) => t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function", ge = (t) => t && typeof t == "object" && t.body && t[Symbol.toStringTag] === "MultipartBody";
441
442
  var qe = function(t, e, r, n, s) {
442
443
  if (n === "m") throw new TypeError("Private method is not writable");
443
444
  if (n === "a" && !s) throw new TypeError("Private accessor was defined without a setter");
@@ -518,7 +519,7 @@ class H extends Promise {
518
519
  return this.parse().finally(e);
519
520
  }
520
521
  }
521
- class bt {
522
+ class xt {
522
523
  constructor({
523
524
  baseURL: e,
524
525
  baseURLOverridden: r,
@@ -528,7 +529,7 @@ class bt {
528
529
  httpAgent: o,
529
530
  fetch: i
530
531
  }) {
531
- M.set(this, void 0), this.baseURL = e, qe(this, M, r, "f"), this.maxRetries = G("maxRetries", n), this.timeout = G("timeout", s), this.httpAgent = o, this.fetch = i ?? Re;
532
+ M.set(this, void 0), this.baseURL = e, qe(this, M, r, "f"), this.maxRetries = J("maxRetries", n), this.timeout = J("timeout", s), this.httpAgent = o, this.fetch = i ?? Re;
532
533
  }
533
534
  authHeaders(e) {
534
535
  return {};
@@ -546,7 +547,7 @@ class bt {
546
547
  Accept: "application/json",
547
548
  ...["head", "get"].includes(e.method) ? {} : { "Content-Type": "application/json" },
548
549
  "User-Agent": this.getUserAgent(),
549
- ...Pt(),
550
+ ...kt(),
550
551
  ...this.authHeaders(e)
551
552
  };
552
553
  }
@@ -556,7 +557,7 @@ class bt {
556
557
  validateHeaders(e, r) {
557
558
  }
558
559
  defaultIdempotencyKey() {
559
- return `stainless-node-retry-${It()}`;
560
+ return `stainless-node-retry-${Dt()}`;
560
561
  }
561
562
  get(e, r) {
562
563
  return this.methodRequest("get", e, r);
@@ -593,14 +594,14 @@ class bt {
593
594
  return null;
594
595
  }
595
596
  async buildRequest(e, { retryCount: r = 0 } = {}) {
596
- const n = { ...e }, { method: s, path: o, query: i, defaultBaseURL: l, headers: u = {} } = n, c = ArrayBuffer.isView(n.body) || n.__binaryRequest && typeof n.body == "string" ? n.body : ge(n.body) ? n.body.body : n.body ? JSON.stringify(n.body, null, 2) : null, p = this.calculateContentLength(c), a = this.buildURL(o, i, l);
597
- "timeout" in n && G("timeout", n.timeout), n.timeout = n.timeout ?? this.timeout;
597
+ const n = { ...e }, { method: s, path: o, query: i, defaultBaseURL: l, headers: c = {} } = n, u = ArrayBuffer.isView(n.body) || n.__binaryRequest && typeof n.body == "string" ? n.body : ge(n.body) ? n.body.body : n.body ? JSON.stringify(n.body, null, 2) : null, p = this.calculateContentLength(u), a = this.buildURL(o, i, l);
598
+ "timeout" in n && J("timeout", n.timeout), n.timeout = n.timeout ?? this.timeout;
598
599
  const h = n.httpAgent ?? this.httpAgent ?? Se(a), m = n.timeout + 1e3;
599
- typeof h?.options?.timeout == "number" && m > (h.options.timeout ?? 0) && (h.options.timeout = m), this.idempotencyHeader && s !== "get" && (e.idempotencyKey || (e.idempotencyKey = this.defaultIdempotencyKey()), u[this.idempotencyHeader] = e.idempotencyKey);
600
- const x = this.buildHeaders({ options: n, headers: u, contentLength: p, retryCount: r });
600
+ typeof h?.options?.timeout == "number" && m > (h.options.timeout ?? 0) && (h.options.timeout = m), this.idempotencyHeader && s !== "get" && (e.idempotencyKey || (e.idempotencyKey = this.defaultIdempotencyKey()), c[this.idempotencyHeader] = e.idempotencyKey);
601
+ const x = this.buildHeaders({ options: n, headers: c, contentLength: p, retryCount: r });
601
602
  return { req: {
602
603
  method: s,
603
- ...c && { body: c },
604
+ ...u && { body: u },
604
605
  headers: x,
605
606
  ...h && { agent: h },
606
607
  // @ts-ignore node-fetch uses a custom AbortSignal type that is
@@ -644,31 +645,31 @@ class bt {
644
645
  });
645
646
  if (await this.prepareRequest(o, { url: i, options: n }), L("request", i, n, o.headers), n.signal?.aborted)
646
647
  throw new te();
647
- const u = new AbortController(), c = await this.fetchWithTimeout(i, o, l, u).catch(re);
648
- if (c instanceof Error) {
648
+ const c = new AbortController(), u = await this.fetchWithTimeout(i, o, l, c).catch(re);
649
+ if (u instanceof Error) {
649
650
  if (n.signal?.aborted)
650
651
  throw new te();
651
652
  if (r)
652
653
  return this.retryRequest(n, r);
653
- throw c.name === "AbortError" ? new Ie() : new q({ cause: c });
654
+ throw u.name === "AbortError" ? new Ie() : new q({ cause: u });
654
655
  }
655
- const p = At(c.headers);
656
- if (!c.ok) {
657
- if (r && this.shouldRetry(c)) {
656
+ const p = Rt(u.headers);
657
+ if (!u.ok) {
658
+ if (r && this.shouldRetry(u)) {
658
659
  const R = `retrying, ${r} attempts remaining`;
659
- return L(`response (error; ${R})`, c.status, i, p), this.retryRequest(n, r, p);
660
+ return L(`response (error; ${R})`, u.status, i, p), this.retryRequest(n, r, p);
660
661
  }
661
- const a = await c.text().catch((R) => re(R).message), h = kt(a), m = h ? void 0 : a;
662
- throw L(`response (error; ${r ? "(error; no more retries left)" : "(error; not retryable)"})`, c.status, i, p, m), this.makeStatusError(c.status, h, m, p);
662
+ const a = await u.text().catch((R) => re(R).message), h = Tt(a), m = h ? void 0 : a;
663
+ throw L(`response (error; ${r ? "(error; no more retries left)" : "(error; not retryable)"})`, u.status, i, p, m), this.makeStatusError(u.status, h, m, p);
663
664
  }
664
- return { response: c, options: n, controller: u };
665
+ return { response: u, options: n, controller: c };
665
666
  }
666
667
  requestAPIList(e, r) {
667
668
  const n = this.makeRequest(r, null);
668
- return new _t(this, n, e);
669
+ return new At(this, n, e);
669
670
  }
670
671
  buildURL(e, r, n) {
671
- const s = !Ne(this, M, "f") && n || this.baseURL, o = vt(e) ? new URL(e) : new URL(s + (s.endsWith("/") && e.startsWith("/") ? e.slice(1) : e)), i = this.defaultQuery();
672
+ const s = !Ne(this, M, "f") && n || this.baseURL, o = Ct(e) ? new URL(e) : new URL(s + (s.endsWith("/") && e.startsWith("/") ? e.slice(1) : e)), i = this.defaultQuery();
672
673
  return ze(i) || (r = { ...i, ...r }), typeof r == "object" && r && !Array.isArray(r) && (o.search = this.stringifyQuery(r)), o.toString();
673
674
  }
674
675
  stringifyQuery(e) {
@@ -683,12 +684,12 @@ class bt {
683
684
  async fetchWithTimeout(e, r, n, s) {
684
685
  const { signal: o, ...i } = r || {};
685
686
  o && o.addEventListener("abort", () => s.abort());
686
- const l = setTimeout(() => s.abort(), n), u = {
687
+ const l = setTimeout(() => s.abort(), n), c = {
687
688
  signal: s.signal,
688
689
  ...i
689
690
  };
690
- return u.method && (u.method = u.method.toUpperCase()), // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
691
- this.fetch.call(void 0, e, u).finally(() => {
691
+ return c.method && (c.method = c.method.toUpperCase()), // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
692
+ this.fetch.call(void 0, e, c).finally(() => {
692
693
  clearTimeout(l);
693
694
  });
694
695
  }
@@ -712,7 +713,7 @@ class bt {
712
713
  const l = e.maxRetries ?? this.maxRetries;
713
714
  s = this.calculateDefaultRetryTimeoutMillis(r, l);
714
715
  }
715
- return await Ct(s), this.makeRequest(e, r - 1);
716
+ return await It(s), this.makeRequest(e, r - 1);
716
717
  }
717
718
  calculateDefaultRetryTimeoutMillis(e, r) {
718
719
  const o = r - e, i = Math.min(0.5 * Math.pow(2, o), 8), l = 1 - Math.random() * 0.25;
@@ -723,7 +724,7 @@ class bt {
723
724
  }
724
725
  }
725
726
  M = /* @__PURE__ */ new WeakMap();
726
- class xt {
727
+ class _t {
727
728
  constructor(e, r, n, s) {
728
729
  U.set(this, void 0), qe(this, U, e, "f"), this.options = s, this.response = r, this.body = n;
729
730
  }
@@ -756,7 +757,7 @@ class xt {
756
757
  yield r;
757
758
  }
758
759
  }
759
- class _t extends H {
760
+ class At extends H {
760
761
  constructor(e, r, n) {
761
762
  super(r, async (s) => new n(e, s.response, await He(s), s.options));
762
763
  }
@@ -773,7 +774,7 @@ class _t extends H {
773
774
  yield r;
774
775
  }
775
776
  }
776
- const At = (t) => new Proxy(Object.fromEntries(
777
+ const Rt = (t) => new Proxy(Object.fromEntries(
777
778
  // @ts-ignore
778
779
  t.entries()
779
780
  ), {
@@ -781,7 +782,7 @@ const At = (t) => new Proxy(Object.fromEntries(
781
782
  const n = r.toString();
782
783
  return e[n.toLowerCase()] || e[n];
783
784
  }
784
- }), Rt = {
785
+ }), St = {
785
786
  method: !0,
786
787
  path: !0,
787
788
  query: !0,
@@ -796,7 +797,7 @@ const At = (t) => new Proxy(Object.fromEntries(
796
797
  idempotencyKey: !0,
797
798
  __binaryRequest: !0,
798
799
  __binaryResponse: !0
799
- }, S = (t) => typeof t == "object" && t !== null && !ze(t) && Object.keys(t).every((e) => Xe(Rt, e)), St = () => {
800
+ }, S = (t) => typeof t == "object" && t !== null && !ze(t) && Object.keys(t).every((e) => Xe(St, e)), Et = () => {
800
801
  if (typeof Deno < "u" && Deno.build != null)
801
802
  return {
802
803
  "X-Stainless-Lang": "js",
@@ -824,7 +825,7 @@ const At = (t) => new Proxy(Object.fromEntries(
824
825
  "X-Stainless-Runtime": "node",
825
826
  "X-Stainless-Runtime-Version": process.version
826
827
  };
827
- const t = Et();
828
+ const t = Pt();
828
829
  return t ? {
829
830
  "X-Stainless-Lang": "js",
830
831
  "X-Stainless-Package-Version": T,
@@ -841,7 +842,7 @@ const At = (t) => new Proxy(Object.fromEntries(
841
842
  "X-Stainless-Runtime-Version": "unknown"
842
843
  };
843
844
  };
844
- function Et() {
845
+ function Pt() {
845
846
  if (typeof navigator > "u" || !navigator)
846
847
  return null;
847
848
  const t = [
@@ -863,13 +864,13 @@ function Et() {
863
864
  }
864
865
  const we = (t) => t === "x32" ? "x32" : t === "x86_64" || t === "x64" ? "x64" : t === "arm" ? "arm" : t === "aarch64" || t === "arm64" ? "arm64" : t ? `other:${t}` : "unknown", be = (t) => (t = t.toLowerCase(), t.includes("ios") ? "iOS" : t === "android" ? "Android" : t === "darwin" ? "MacOS" : t === "win32" ? "Windows" : t === "freebsd" ? "FreeBSD" : t === "openbsd" ? "OpenBSD" : t === "linux" ? "Linux" : t ? `Other:${t}` : "Unknown");
865
866
  let xe;
866
- const Pt = () => xe ?? (xe = St()), kt = (t) => {
867
+ const kt = () => xe ?? (xe = Et()), Tt = (t) => {
867
868
  try {
868
869
  return JSON.parse(t);
869
870
  } catch {
870
871
  return;
871
872
  }
872
- }, Tt = /^[a-z][a-z0-9+.-]*:/i, vt = (t) => Tt.test(t), Ct = (t) => new Promise((e) => setTimeout(e, t)), G = (t, e) => {
873
+ }, vt = /^[a-z][a-z0-9+.-]*:/i, Ct = (t) => vt.test(t), It = (t) => new Promise((e) => setTimeout(e, t)), J = (t, e) => {
873
874
  if (typeof e != "number" || !Number.isInteger(e))
874
875
  throw new P(`${t} must be an integer`);
875
876
  if (e < 0)
@@ -914,12 +915,12 @@ function Ae(t, e) {
914
915
  function L(t, ...e) {
915
916
  typeof process < "u" && process?.env?.DEBUG === "true" && console.log(`Arcade:DEBUG:${t}`, ...e);
916
917
  }
917
- const It = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
918
+ const Dt = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
918
919
  const e = Math.random() * 16 | 0;
919
920
  return (t === "x" ? e : e & 3 | 8).toString(16);
920
- }), Dt = (t) => typeof t?.get == "function", B = (t, e) => {
921
+ }), Lt = (t) => typeof t?.get == "function", B = (t, e) => {
921
922
  const r = e.toLowerCase();
922
- if (Dt(t)) {
923
+ if (Lt(t)) {
923
924
  const n = e[0]?.toUpperCase() + e.substring(1).replace(/([^\w])(\w)/g, (s, o, i) => o + i.toUpperCase());
924
925
  for (const s of [e, r, e.toUpperCase(), n]) {
925
926
  const o = t.get(s);
@@ -931,7 +932,7 @@ const It = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) =>
931
932
  if (n.toLowerCase() === r)
932
933
  return Array.isArray(s) ? (s.length <= 1 || console.warn(`Received ${s.length} entries for the ${e} header, using the first entry.`), s[0]) : s;
933
934
  };
934
- class O extends xt {
935
+ class O extends _t {
935
936
  constructor(e, r, n, s) {
936
937
  super(e, r, n, s), this.items = n.items || [], this.total_count = n.total_count || 0, this.offset = n.offset || 0;
937
938
  }
@@ -1039,8 +1040,8 @@ v.UserConnections = ne;
1039
1040
  v.UserConnectionResponsesOffsetPage = se;
1040
1041
  v.AuthProviders = Ke;
1041
1042
  v.Secrets = We;
1042
- const Lt = 45;
1043
- class Ot extends Error {
1043
+ const Ot = 45;
1044
+ class Ft extends Error {
1044
1045
  constructor(e) {
1045
1046
  super(e), this.name = "AuthorizationError";
1046
1047
  }
@@ -1118,13 +1119,13 @@ class Ve extends b {
1118
1119
  r = e, n = { status: "pending" };
1119
1120
  else {
1120
1121
  if (!e.id)
1121
- throw new Ot("Authorization ID is required");
1122
+ throw new Ft("Authorization ID is required");
1122
1123
  r = e.id, n = e;
1123
1124
  }
1124
1125
  for (; n.status !== "completed"; )
1125
1126
  n = await this.status({
1126
1127
  id: r,
1127
- wait: Lt
1128
+ wait: Ot
1128
1129
  });
1129
1130
  return n;
1130
1131
  }
@@ -1143,7 +1144,7 @@ class oe extends b {
1143
1144
  }
1144
1145
  }
1145
1146
  oe.Completions = Qe;
1146
- class Je extends b {
1147
+ class Ge extends b {
1147
1148
  /**
1148
1149
  * Engine Health
1149
1150
  */
@@ -1165,9 +1166,9 @@ class ie extends b {
1165
1166
  class ae extends O {
1166
1167
  }
1167
1168
  ie.FormattedListResponsesOffsetPage = ae;
1168
- class Ge extends b {
1169
+ class Je extends b {
1169
1170
  list(e = {}, r) {
1170
- return S(e) ? this.list({}, e) : this._client.getAPIList("/v1/scheduled_tools", Ft, { query: e, ...r });
1171
+ return S(e) ? this.list({}, e) : this._client.getAPIList("/v1/scheduled_tools", $t, { query: e, ...r });
1171
1172
  }
1172
1173
  /**
1173
1174
  * Returns the details for a specific scheduled tool execution
@@ -1178,7 +1179,7 @@ class Ge extends b {
1178
1179
  }
1179
1180
  class C extends b {
1180
1181
  constructor() {
1181
- super(...arguments), this.scheduled = new Ge(this._client), this.formatted = new ie(this._client);
1182
+ super(...arguments), this.scheduled = new Je(this._client), this.formatted = new ie(this._client);
1182
1183
  }
1183
1184
  list(e = {}, r) {
1184
1185
  return S(e) ? this.list({}, e) : this._client.getAPIList("/v1/tools", z, { query: e, ...r });
@@ -1201,10 +1202,10 @@ class C extends b {
1201
1202
  }
1202
1203
  class z extends O {
1203
1204
  }
1204
- class Ft extends O {
1205
+ class $t extends O {
1205
1206
  }
1206
1207
  C.ToolDefinitionsOffsetPage = z;
1207
- C.Scheduled = Ge;
1208
+ C.Scheduled = Je;
1208
1209
  C.Formatted = ie;
1209
1210
  C.FormattedListResponsesOffsetPage = ae;
1210
1211
  class ce extends b {
@@ -1255,7 +1256,7 @@ class ue extends O {
1255
1256
  }
1256
1257
  ce.WorkerResponsesOffsetPage = ue;
1257
1258
  var Ye, Ze;
1258
- class d extends bt {
1259
+ class d extends xt {
1259
1260
  /**
1260
1261
  * API Client for interfacing with the Arcade API.
1261
1262
  *
@@ -1283,7 +1284,7 @@ class d extends bt {
1283
1284
  httpAgent: s.httpAgent,
1284
1285
  maxRetries: s.maxRetries,
1285
1286
  fetch: s.fetch
1286
- }), Ye.add(this), this.admin = new v(this), this.auth = new Ve(this), this.health = new Je(this), this.chat = new oe(this), this.tools = new C(this), this.workers = new ce(this), this._options = s, this.idempotencyHeader = "Idempotency-Key", this.apiKey = r;
1287
+ }), Ye.add(this), this.admin = new v(this), this.auth = new Ve(this), this.health = new Ge(this), this.chat = new oe(this), this.tools = new C(this), this.workers = new ce(this), this._options = s, this.idempotencyHeader = "Idempotency-Key", this.apiKey = r;
1287
1288
  }
1288
1289
  defaultQuery() {
1289
1290
  return this._options.defaultQuery;
@@ -1298,7 +1299,7 @@ class d extends bt {
1298
1299
  return { Authorization: this.apiKey };
1299
1300
  }
1300
1301
  stringifyQuery(e) {
1301
- return ft(e, { arrayFormat: "comma" });
1302
+ return dt(e, { arrayFormat: "comma" });
1302
1303
  }
1303
1304
  }
1304
1305
  Ze = d, Ye = /* @__PURE__ */ new WeakSet();
@@ -1317,28 +1318,28 @@ d.AuthenticationError = Le;
1317
1318
  d.InternalServerError = Be;
1318
1319
  d.PermissionDeniedError = Oe;
1319
1320
  d.UnprocessableEntityError = je;
1320
- d.toFile = pt;
1321
+ d.toFile = yt;
1321
1322
  d.fileFromPath = Ee;
1322
1323
  d.Admin = v;
1323
1324
  d.Auth = Ve;
1324
- d.Health = Je;
1325
+ d.Health = Ge;
1325
1326
  d.Chat = oe;
1326
1327
  d.Tools = C;
1327
1328
  d.ToolDefinitionsOffsetPage = z;
1328
1329
  d.Workers = ce;
1329
1330
  d.WorkerResponsesOffsetPage = ue;
1330
- const $t = /[._\-\s]+/, jt = /([a-z])([A-Z])/g, Ut = /\s+/;
1331
- class zt {
1331
+ const jt = /[._\-\s]+/, Ut = /([a-z])([A-Z])/g, Bt = /\s+/;
1332
+ class Kt {
1332
1333
  #e;
1333
1334
  constructor(e) {
1334
- const { accessToken: r, apiKey: n, arcadeClientId: s, baseURL: o } = e, i = n ?? pe("ARCADE_API_KEY"), l = !!i, u = {};
1335
- s && (u["Arcade-Client-Id"] = s), !l && r && (u.Authorization = `Bearer ${r}`);
1336
- const c = {
1335
+ const { accessToken: r, apiKey: n, arcadeClientId: s, baseURL: o } = e, i = n ?? pe("ARCADE_API_KEY"), l = !!i, c = {};
1336
+ s && (c["Arcade-Client-Id"] = s), !l && r && (c.Authorization = `Bearer ${r}`);
1337
+ const u = {
1337
1338
  baseURL: o ?? pe("ARCADE_BASE_URL"),
1338
- defaultHeaders: u,
1339
+ defaultHeaders: c,
1339
1340
  apiKey: i ?? ""
1340
1341
  };
1341
- this.#e = new d(c);
1342
+ this.#e = new d(u);
1342
1343
  }
1343
1344
  static create(e) {
1344
1345
  return new d(e);
@@ -1473,26 +1474,27 @@ class zt {
1473
1474
  toolkitsByName: /* @__PURE__ */ new Map(),
1474
1475
  toolsByName: /* @__PURE__ */ new Map()
1475
1476
  };
1476
- for (const [l, u] of e.entries()) {
1477
- const c = this.normalizeText([
1478
- u.name,
1479
- u.description ?? "",
1480
- u.version ?? ""
1477
+ for (const [l, c] of e.entries()) {
1478
+ const u = this.normalizeText([
1479
+ c.name,
1480
+ c.description ?? "",
1481
+ c.version ?? ""
1481
1482
  ]), p = this.computeRequirementsSummary(
1482
- u.requirements
1483
+ c.requirements
1483
1484
  ), a = {
1484
- ...u,
1485
- searchableText: c,
1486
- requirementsSummary: p
1485
+ ...c,
1486
+ searchableText: u,
1487
+ requirementsSummary: p,
1488
+ metadata: tt[c.name]
1487
1489
  };
1488
1490
  r.push(a), s.set(l, a), i.toolkitsByName.set(l.toLowerCase(), a);
1489
- for (const h of u.tools) {
1491
+ for (const h of c.tools) {
1490
1492
  const m = this.normalizeText([
1491
1493
  h.name,
1492
1494
  h.fully_qualified_name,
1493
1495
  h.description ?? "",
1494
- u.name,
1495
- u.description ?? ""
1496
+ c.name,
1497
+ c.description ?? ""
1496
1498
  ]), x = {
1497
1499
  ...h,
1498
1500
  searchableText: m
@@ -1523,19 +1525,19 @@ class zt {
1523
1525
  continue;
1524
1526
  const s = n.toLowerCase();
1525
1527
  r.add(s);
1526
- const o = n.split($t);
1528
+ const o = n.split(jt);
1527
1529
  for (const i of o) {
1528
1530
  if (i.length <= 1)
1529
1531
  continue;
1530
- const u = i.replace(jt, "$1 $2").split(Ut);
1531
- for (const c of u)
1532
- c.length > 1 && r.add(c.toLowerCase());
1532
+ const c = i.replace(Ut, "$1 $2").split(Bt);
1533
+ for (const u of c)
1534
+ u.length > 1 && r.add(u.toLowerCase());
1533
1535
  }
1534
1536
  }
1535
1537
  return Array.from(r).join(" ");
1536
1538
  }
1537
1539
  }
1538
1540
  export {
1539
- zt as A,
1541
+ Kt as A,
1540
1542
  d as a
1541
1543
  };