@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.
- package/README.md +95 -0
- package/dist/{arcade-49z5mR1G.js → arcade-CadnNaba.js} +139 -137
- package/dist/assets/index.css +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +431 -213
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/avatar.js +2 -2
- package/dist/components/ui/atoms/checkbox.js +1 -1
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/command.js +1 -1
- package/dist/components/ui/atoms/dialog.js +1 -1
- package/dist/components/ui/atoms/dropdown-menu.js +2 -2
- package/dist/components/ui/atoms/hover-card.js +2 -2
- package/dist/components/ui/atoms/icons/adp.d.ts +3 -0
- package/dist/components/ui/atoms/icons/adp.js +40 -0
- package/dist/components/ui/atoms/icons/aha.d.ts +3 -0
- package/dist/components/ui/atoms/icons/aha.js +28 -0
- package/dist/{assets → components/ui/atoms}/icons/airtable.js +4 -0
- package/dist/components/ui/atoms/icons/amplitude.d.ts +3 -0
- package/dist/components/ui/atoms/icons/amplitude.js +33 -0
- package/dist/{assets → components/ui/atoms}/icons/arcade.js +7 -7
- package/dist/{assets → components/ui/atoms}/icons/asana.js +1 -0
- package/dist/components/ui/atoms/icons/ashby.d.ts +3 -0
- package/dist/components/ui/atoms/icons/ashby.js +50 -0
- package/dist/{assets → components/ui/atoms}/icons/atlassian.js +14 -4
- package/dist/{assets → components/ui/atoms}/icons/auth0.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/azure.js +43 -22
- package/dist/components/ui/atoms/icons/bamboohr.d.ts +3 -0
- package/dist/components/ui/atoms/icons/bamboohr.js +31 -0
- package/dist/components/ui/atoms/icons/basecamp.d.ts +3 -0
- package/dist/components/ui/atoms/icons/basecamp.js +57 -0
- package/dist/components/ui/atoms/icons/bill.d.ts +3 -0
- package/dist/components/ui/atoms/icons/bill.js +55 -0
- package/dist/components/ui/atoms/icons/bitbucket.d.ts +3 -0
- package/dist/components/ui/atoms/icons/bitbucket.js +38 -0
- package/dist/{assets → components/ui/atoms}/icons/bluesky.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/box.js +1 -0
- package/dist/components/ui/atoms/icons/braze.d.ts +3 -0
- package/dist/components/ui/atoms/icons/braze.js +28 -0
- package/dist/components/ui/atoms/icons/brex.d.ts +3 -0
- package/dist/components/ui/atoms/icons/brex.js +29 -0
- package/dist/components/ui/atoms/icons/buffer.d.ts +3 -0
- package/dist/components/ui/atoms/icons/buffer.js +33 -0
- package/dist/components/ui/atoms/icons/calendly.js +80 -0
- package/dist/components/ui/atoms/icons/clickhouse.d.ts +3 -0
- package/dist/components/ui/atoms/icons/clickhouse.js +26 -0
- package/dist/components/ui/atoms/icons/clickup.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/clickup.js +16 -4
- package/dist/components/ui/atoms/icons/closeio.d.ts +3 -0
- package/dist/components/ui/atoms/icons/closeio.js +68 -0
- package/dist/{assets → components/ui/atoms}/icons/coinbase.js +21 -8
- package/dist/{assets → components/ui/atoms}/icons/confluence.js +18 -4
- package/dist/{assets → components/ui/atoms}/icons/datadog.js +1 -0
- package/dist/components/ui/atoms/icons/digital-ocean.d.ts +3 -0
- package/dist/components/ui/atoms/icons/digital-ocean.js +22 -0
- package/dist/{assets → components/ui/atoms}/icons/discord.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/dropbox.js +1 -0
- package/dist/components/ui/atoms/icons/e2b.d.ts +3 -0
- package/dist/components/ui/atoms/icons/e2b.js +19 -0
- package/dist/{assets → components/ui/atoms}/icons/ebay.js +4 -0
- package/dist/components/ui/atoms/icons/evernote.d.ts +3 -0
- package/dist/components/ui/atoms/icons/evernote.js +29 -0
- package/dist/components/ui/atoms/icons/factorial.d.ts +3 -0
- package/dist/components/ui/atoms/icons/factorial.js +50 -0
- package/dist/{assets → components/ui/atoms}/icons/figma.js +18 -2
- package/dist/components/ui/atoms/icons/firecrawl.d.ts +3 -0
- package/dist/components/ui/atoms/icons/firecrawl.js +19 -0
- package/dist/components/ui/atoms/icons/generic.d.ts +3 -0
- package/dist/components/ui/atoms/icons/generic.js +27 -0
- package/dist/{assets → components/ui/atoms}/icons/github.js +4 -3
- package/dist/{assets → components/ui/atoms}/icons/gitlab.js +4 -0
- package/dist/{assets → components/ui/atoms}/icons/gmail.js +11 -2
- package/dist/components/ui/atoms/icons/google-calendar.js +98 -0
- package/dist/{assets → components/ui/atoms}/icons/google-contacts.js +4 -0
- package/dist/components/ui/atoms/icons/google-docs.js +328 -0
- package/dist/{assets → components/ui/atoms}/icons/google-drive.js +6 -0
- package/dist/{assets → components/ui/atoms}/icons/google-finance.js +8 -1
- package/dist/{assets → components/ui/atoms}/icons/google-flight.js +49 -20
- package/dist/components/ui/atoms/icons/google-flights.d.ts +3 -0
- package/dist/components/ui/atoms/icons/google-flights.js +109 -0
- package/dist/{assets → components/ui/atoms}/icons/google-hotels.js +10 -1
- package/dist/components/ui/atoms/icons/google-jobs.d.ts +3 -0
- package/dist/components/ui/atoms/icons/google-jobs.js +103 -0
- package/dist/{assets → components/ui/atoms}/icons/google-maps.js +5 -0
- package/dist/{assets → components/ui/atoms}/icons/google-news.js +27 -3
- package/dist/{assets → components/ui/atoms}/icons/google-sheets.js +3 -0
- package/dist/{assets → components/ui/atoms}/icons/google-shopping.js +9 -1
- package/dist/components/ui/atoms/icons/google-slides.d.ts +3 -0
- package/dist/components/ui/atoms/icons/google-slides.js +243 -0
- package/dist/{assets → components/ui/atoms}/icons/google.js +4 -0
- package/dist/{assets → components/ui/atoms}/icons/heroku.js +1 -0
- package/dist/components/ui/atoms/icons/hootsuite.d.ts +3 -0
- package/dist/components/ui/atoms/icons/hootsuite.js +43 -0
- package/dist/components/ui/atoms/icons/hubspot.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/hubspot.js +2 -1
- package/dist/{assets → components/ui/atoms}/icons/index.d.ts +47 -0
- package/dist/components/ui/atoms/icons/index.js +220 -0
- package/dist/components/ui/atoms/icons/intercom.d.ts +3 -0
- package/dist/components/ui/atoms/icons/intercom.js +26 -0
- package/dist/{assets → components/ui/atoms}/icons/jira.js +15 -7
- package/dist/{assets → components/ui/atoms}/icons/linear.js +1 -0
- package/dist/components/ui/atoms/icons/linkedin.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/linkedin.js +5 -4
- package/dist/components/ui/atoms/icons/mailchimp.d.ts +3 -0
- package/dist/components/ui/atoms/icons/mailchimp.js +70 -0
- package/dist/components/ui/atoms/icons/mcp.d.ts +3 -0
- package/dist/components/ui/atoms/icons/mcp.js +23 -0
- package/dist/components/ui/atoms/icons/microsoft-dynamics.d.ts +3 -0
- package/dist/components/ui/atoms/icons/microsoft-dynamics.js +172 -0
- package/dist/components/ui/atoms/icons/microsoft-sharepoint.d.ts +3 -0
- package/dist/components/ui/atoms/icons/microsoft-sharepoint.js +88 -0
- package/dist/components/ui/atoms/icons/microsoft-teams.d.ts +3 -0
- package/dist/components/ui/atoms/icons/microsoft-teams.js +119 -0
- package/dist/{assets → components/ui/atoms}/icons/microsoft.js +4 -0
- package/dist/components/ui/atoms/icons/miro.d.ts +3 -0
- package/dist/components/ui/atoms/icons/miro.js +35 -0
- package/dist/components/ui/atoms/icons/monday.d.ts +3 -0
- package/dist/components/ui/atoms/icons/monday.js +60 -0
- package/dist/components/ui/atoms/icons/netsuite.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/netsuite.js +35 -26
- package/dist/{assets → components/ui/atoms}/icons/notion.js +2 -0
- package/dist/components/ui/atoms/icons/oauth.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/oauth.js +66 -8
- package/dist/components/ui/atoms/icons/obsidian.d.ts +3 -0
- package/dist/components/ui/atoms/icons/obsidian.js +220 -0
- package/dist/components/ui/atoms/icons/okta.d.ts +3 -0
- package/dist/components/ui/atoms/icons/okta.js +56 -0
- package/dist/components/ui/atoms/icons/one-drive.d.ts +3 -0
- package/dist/components/ui/atoms/icons/one-drive.js +38 -0
- package/dist/{assets → components/ui/atoms}/icons/outlook-calendar.js +18 -0
- package/dist/{assets → components/ui/atoms}/icons/outlook-mail.js +4 -0
- package/dist/components/ui/atoms/icons/pinecone.d.ts +3 -0
- package/dist/components/ui/atoms/icons/pinecone.js +29 -0
- package/dist/{assets → components/ui/atoms}/icons/pinterest.js +1 -0
- package/dist/components/ui/atoms/icons/pipedrive.d.ts +3 -0
- package/dist/components/ui/atoms/icons/pipedrive.js +59 -0
- package/dist/components/ui/atoms/icons/plaid.d.ts +3 -0
- package/dist/components/ui/atoms/icons/plaid.js +37 -0
- package/dist/{assets → components/ui/atoms}/icons/postgres.js +30 -20
- package/dist/components/ui/atoms/icons/quickbooks.d.ts +3 -0
- package/dist/components/ui/atoms/icons/quickbooks.js +25 -0
- package/dist/components/ui/atoms/icons/reddit.js +315 -0
- package/dist/{assets → components/ui/atoms}/icons/salesforce.js +3 -0
- package/dist/{assets → components/ui/atoms}/icons/shopify.js +3 -0
- package/dist/components/ui/atoms/icons/singlestore.d.ts +3 -0
- package/dist/components/ui/atoms/icons/singlestore.js +284 -0
- package/dist/{assets → components/ui/atoms}/icons/slack.js +7 -1
- package/dist/components/ui/atoms/icons/snowflake.d.ts +3 -0
- package/dist/components/ui/atoms/icons/snowflake.js +26 -0
- package/dist/components/ui/atoms/icons/splunk.d.ts +3 -0
- package/dist/components/ui/atoms/icons/splunk.js +54 -0
- package/dist/{assets → components/ui/atoms}/icons/spotify.js +1 -0
- package/dist/components/ui/atoms/icons/square.d.ts +3 -0
- package/dist/components/ui/atoms/icons/square.js +41 -0
- package/dist/components/ui/atoms/icons/squarespace.d.ts +3 -0
- package/dist/components/ui/atoms/icons/squarespace.js +29 -0
- package/dist/{assets → components/ui/atoms}/icons/stripe.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/tesla.js +5 -1
- package/dist/{assets → components/ui/atoms}/icons/tiktok.js +3 -0
- package/dist/components/ui/atoms/icons/trello.d.ts +3 -0
- package/dist/components/ui/atoms/icons/trello.js +59 -0
- package/dist/{assets → components/ui/atoms}/icons/twilio.js +11 -4
- package/dist/{assets → components/ui/atoms}/icons/twitch.js +6 -1
- package/dist/components/ui/atoms/icons/utils.d.ts +56 -0
- package/dist/components/ui/atoms/icons/utils.js +41 -0
- package/dist/{assets → components/ui/atoms}/icons/vercel.js +1 -0
- package/dist/{assets → components/ui/atoms}/icons/walmart.js +2 -0
- package/dist/components/ui/atoms/icons/weaviate.d.ts +3 -0
- package/dist/components/ui/atoms/icons/weaviate.js +229 -0
- package/dist/components/ui/atoms/icons/workday.d.ts +3 -0
- package/dist/components/ui/atoms/icons/workday.js +97 -0
- package/dist/components/ui/atoms/icons/wrike.d.ts +3 -0
- package/dist/components/ui/atoms/icons/wrike.js +16 -0
- package/dist/{assets → components/ui/atoms}/icons/x.js +4 -4
- package/dist/components/ui/atoms/icons/xero.js +87 -0
- package/dist/components/ui/atoms/icons/youtube.d.ts +3 -0
- package/dist/{assets → components/ui/atoms}/icons/youtube.js +3 -1
- package/dist/components/ui/atoms/icons/zendesk.d.ts +3 -0
- package/dist/components/ui/atoms/icons/zendesk.js +27 -0
- package/dist/{assets → components/ui/atoms}/icons/zoom.js +30 -17
- package/dist/components/ui/atoms/index.d.ts +2 -0
- package/dist/components/ui/atoms/index.js +416 -198
- package/dist/components/ui/atoms/popover.js +2 -2
- package/dist/components/ui/atoms/progress.js +18 -17
- package/dist/components/ui/atoms/radio-group.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +3 -3
- package/dist/components/ui/atoms/select.js +3 -3
- package/dist/components/ui/atoms/sheet.js +1 -1
- package/dist/components/ui/atoms/sidebar.js +102 -102
- package/dist/components/ui/atoms/tabs.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +2 -2
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +431 -213
- package/dist/components/ui/molecules/index.d.ts +1 -0
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +6 -5
- package/dist/components/ui/molecules/tool-card.js +18 -18
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +47 -38
- package/dist/components/ui/molecules/toolkit-selection-summary.d.ts +4 -3
- package/dist/components/ui/molecules/toolkit-selection-summary.js +32 -29
- package/dist/components/ui/organisms/index.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.js +9 -9
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +7 -6
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts +2 -2
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +21 -18
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +14 -18
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +7 -7
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +12 -11
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +54 -40
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +195 -113
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +126 -116
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +3418 -4391
- package/dist/components/ui/utils/memo.test.d.ts +1 -0
- package/dist/components/ui/utils/memo.test.js +36 -0
- package/dist/{index-CtSXVDca.js → index-BDIfjxqB.js} +1 -1
- package/dist/{index-C8_QusYl.js → index-BGfrl8IX.js} +1 -1
- package/dist/{index-Ez2mlmzx.js → index-BzU0xzeS.js} +1 -1
- package/dist/index-DH9yRdVk.js +1540 -0
- package/dist/lib/arcade/arcade.d.ts +2 -2
- package/dist/lib/arcade/arcade.js +3 -2
- package/dist/lib/arcade/arcade.test.js +2 -2
- package/dist/lib/utils.test.d.ts +1 -0
- package/dist/lib/utils.test.js +43 -0
- package/dist/{magic-string.es-BQ9KnLz-.js → magic-string.es-QnVUNas7.js} +4 -3
- package/dist/main.d.ts +2 -0
- package/dist/main.js +444 -214
- package/dist/metadata/index.d.ts +3 -0
- package/dist/metadata/index.js +14 -0
- package/dist/metadata/oauth-providers.d.ts +69 -0
- package/dist/metadata/oauth-providers.js +260 -0
- package/dist/metadata/toolkits.d.ts +24 -0
- package/dist/metadata/toolkits.js +1500 -0
- package/dist/{react.esm-369wBsAv.js → react.esm-CFMQn0EI.js} +31 -31
- package/dist/{toolkit-card-GhM_oj4G.js → toolkit-card-UG1sZ0Le.js} +11 -10
- package/dist/{vi.bdSIJ99Y-CZgZQPWH.js → vi.bdSIJ99Y-CQ1FdEM8.js} +3462 -3916
- package/package.json +38 -35
- package/dist/assets/icons/calendly.js +0 -64
- package/dist/assets/icons/clickup.d.ts +0 -3
- package/dist/assets/icons/e2b.d.ts +0 -3
- package/dist/assets/icons/e2b.js +0 -9
- package/dist/assets/icons/firecrawl.d.ts +0 -5
- package/dist/assets/icons/firecrawl.js +0 -17
- package/dist/assets/icons/google-calendar.js +0 -93
- package/dist/assets/icons/google-docs.js +0 -219
- package/dist/assets/icons/hubspot.d.ts +0 -3
- package/dist/assets/icons/index.js +0 -128
- package/dist/assets/icons/linkedin.d.ts +0 -3
- package/dist/assets/icons/netsuite.d.ts +0 -3
- package/dist/assets/icons/oauth.d.ts +0 -3
- package/dist/assets/icons/reddit.js +0 -268
- package/dist/assets/icons/utils.d.ts +0 -435
- package/dist/assets/icons/utils.js +0 -439
- package/dist/assets/icons/xero.js +0 -63
- package/dist/assets/icons/youtube.d.ts +0 -3
- package/dist/components/ui/organisms/toolkit-picker/components/mobile-filter-badges.d.ts +0 -1
- package/dist/components/ui/organisms/toolkit-picker/components/mobile-filter-badges.js +0 -96
- package/dist/index-DEJd-dpa.js +0 -1537
- /package/dist/{assets → components/ui/atoms}/icons/airtable.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/arcade.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/asana.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/atlassian.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/auth0.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/azure.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/bluesky.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/box.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/calendly.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/coinbase.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/confluence.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/datadog.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/discord.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/dropbox.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/ebay.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/figma.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/github.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/gitlab.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/gmail.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-calendar.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-contacts.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-docs.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-drive.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-finance.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-flight.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-hotels.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-maps.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-news.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-sheets.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google-shopping.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/google.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/heroku.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/jira.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/linear.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/microsoft.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/notion.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/outlook-calendar.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/outlook-mail.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/pinterest.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/postgres.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/reddit.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/salesforce.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/shopify.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/slack.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/spotify.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/stripe.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/tesla.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/tiktok.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/twilio.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/twitch.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/vercel.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/walmart.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/x.d.ts +0 -0
- /package/dist/{assets → components/ui/atoms}/icons/xero.d.ts +0 -0
- /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
|
|
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
|
|
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
|
-
},
|
|
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,
|
|
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
|
|
96
|
-
for (let p = 0; p <
|
|
97
|
-
let a =
|
|
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 ===
|
|
106
|
-
|
|
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
|
-
|
|
111
|
+
u[u.length] = _[a];
|
|
111
112
|
continue;
|
|
112
113
|
}
|
|
113
114
|
if (a < 2048) {
|
|
114
|
-
|
|
115
|
+
u[u.length] = _[192 | a >> 6] + _[128 | a & 63];
|
|
115
116
|
continue;
|
|
116
117
|
}
|
|
117
118
|
if (a < 55296 || a >= 57344) {
|
|
118
|
-
|
|
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 |
|
|
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 +=
|
|
124
|
+
i += u.join("");
|
|
124
125
|
}
|
|
125
126
|
return i;
|
|
126
127
|
};
|
|
127
|
-
function
|
|
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 (
|
|
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
|
|
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,
|
|
151
|
-
|
|
152
|
-
},
|
|
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:
|
|
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
|
|
170
|
+
return ut.call(t);
|
|
170
171
|
},
|
|
171
172
|
skipNulls: !1,
|
|
172
173
|
strictNullHandling: !1
|
|
173
174
|
};
|
|
174
|
-
function
|
|
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,
|
|
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
|
|
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
|
|
194
|
+
return c && !E ? (
|
|
194
195
|
// @ts-expect-error
|
|
195
|
-
|
|
196
|
+
c(e, y.encoder, R, "key", m)
|
|
196
197
|
) : e;
|
|
197
198
|
f = "";
|
|
198
199
|
}
|
|
199
|
-
if (
|
|
200
|
-
if (
|
|
201
|
-
const g = E ? e :
|
|
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?.(
|
|
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 &&
|
|
215
|
-
else if (A(
|
|
216
|
-
I =
|
|
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 :
|
|
245
|
-
|
|
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
|
|
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 (!
|
|
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
|
|
306
|
+
function dt(t, e = {}) {
|
|
306
307
|
let r = t;
|
|
307
|
-
const n =
|
|
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],
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
398
|
-
async function
|
|
399
|
-
if (t = await 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 (
|
|
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
|
|
408
|
-
if (e || (e =
|
|
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
|
|
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 (
|
|
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: ${
|
|
426
|
+
throw new Error(`Unexpected data type: ${typeof t}; constructor: ${t?.constructor?.name}; props: ${gt(t)}`);
|
|
426
427
|
return e;
|
|
427
428
|
}
|
|
428
|
-
function
|
|
429
|
+
function gt(t) {
|
|
429
430
|
return `[${Object.getOwnPropertyNames(t).map((r) => `"${r}"`).join(", ")}]`;
|
|
430
431
|
}
|
|
431
|
-
function
|
|
432
|
-
return
|
|
433
|
-
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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 =
|
|
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
|
-
...
|
|
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-${
|
|
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:
|
|
597
|
-
"timeout" in n &&
|
|
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()),
|
|
600
|
-
const x = this.buildHeaders({ options: n, headers:
|
|
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
|
-
...
|
|
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
|
|
648
|
-
if (
|
|
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
|
|
654
|
+
throw u.name === "AbortError" ? new Ie() : new q({ cause: u });
|
|
654
655
|
}
|
|
655
|
-
const p =
|
|
656
|
-
if (!
|
|
657
|
-
if (r && this.shouldRetry(
|
|
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})`,
|
|
660
|
+
return L(`response (error; ${R})`, u.status, i, p), this.retryRequest(n, r, p);
|
|
660
661
|
}
|
|
661
|
-
const a = await
|
|
662
|
-
throw L(`response (error; ${r ? "(error; no more retries left)" : "(error; not retryable)"})`,
|
|
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:
|
|
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
|
|
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 =
|
|
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),
|
|
687
|
+
const l = setTimeout(() => s.abort(), n), c = {
|
|
687
688
|
signal: s.signal,
|
|
688
689
|
...i
|
|
689
690
|
};
|
|
690
|
-
return
|
|
691
|
-
this.fetch.call(void 0, e,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
}),
|
|
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(
|
|
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 =
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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
|
-
}),
|
|
921
|
+
}), Lt = (t) => typeof t?.get == "function", B = (t, e) => {
|
|
921
922
|
const r = e.toLowerCase();
|
|
922
|
-
if (
|
|
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
|
|
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
|
|
1043
|
-
class
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
1169
|
+
class Je extends b {
|
|
1169
1170
|
list(e = {}, r) {
|
|
1170
|
-
return S(e) ? this.list({}, e) : this._client.getAPIList("/v1/scheduled_tools",
|
|
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
|
|
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
|
|
1205
|
+
class $t extends O {
|
|
1205
1206
|
}
|
|
1206
1207
|
C.ToolDefinitionsOffsetPage = z;
|
|
1207
|
-
C.Scheduled =
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
1321
|
+
d.toFile = yt;
|
|
1321
1322
|
d.fileFromPath = Ee;
|
|
1322
1323
|
d.Admin = v;
|
|
1323
1324
|
d.Auth = Ve;
|
|
1324
|
-
d.Health =
|
|
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
|
|
1331
|
-
class
|
|
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,
|
|
1335
|
-
s && (
|
|
1336
|
-
const
|
|
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:
|
|
1339
|
+
defaultHeaders: c,
|
|
1339
1340
|
apiKey: i ?? ""
|
|
1340
1341
|
};
|
|
1341
|
-
this.#e = new d(
|
|
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,
|
|
1477
|
-
const
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
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
|
-
|
|
1483
|
+
c.requirements
|
|
1483
1484
|
), a = {
|
|
1484
|
-
...
|
|
1485
|
-
searchableText:
|
|
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
|
|
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
|
-
|
|
1495
|
-
|
|
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(
|
|
1528
|
+
const o = n.split(jt);
|
|
1527
1529
|
for (const i of o) {
|
|
1528
1530
|
if (i.length <= 1)
|
|
1529
1531
|
continue;
|
|
1530
|
-
const
|
|
1531
|
-
for (const
|
|
1532
|
-
|
|
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
|
-
|
|
1541
|
+
Kt as A,
|
|
1540
1542
|
d as a
|
|
1541
1543
|
};
|