Skip to content

Self-improving AI Employees for everyone

refactor(credentials): migrate 10 provider icons backend-side (F7)

trohitg6c0abb295e81
diff --git a/server/config/credential_providers.json b/server/config/credential_providers.json
index cb702369..cb1633e6 100644
--- a/server/config/credential_providers.json
+++ b/server/config/credential_providers.json
@@ -198,7 +198,7 @@
"category_label": "Social Media",
"color": "theme.categoryWhatsapp",
"kind": "qrPairing",
- "icon_ref": "asset:whatsapp",
+ "icon_ref": "/api/schemas/credentials/whatsapp_personal/icon",
"status_hook": "whatsapp",
"has_rate_limits": true,
"status_rows": [
@@ -229,7 +229,7 @@
"category_label": "Social Media",
"color": "theme.categoryTrigger",
"kind": "oauth",
- "icon_ref": "asset:x",
+ "icon_ref": "/api/schemas/credentials/twitter/icon",
"status_hook": "twitter",
"usage_service": "twitter",
"ws": {
@@ -263,7 +263,7 @@
"category_label": "Social Media",
"color": "theme.categoryChat",
"kind": "oauth",
- "icon_ref": "asset:telegram",
+ "icon_ref": "/api/schemas/credentials/telegram/icon",
"status_hook": "telegram",
"_stored_check_note": "Telegram uses status_hook for runtime connection state but stores the bot token via api_key (telegram_bot_token), not OAuth. Override the catalogue handler's default get_oauth_tokens(status_hook) lookup so the connected/stored badge reflects bot-token presence.",
"stored_check": {
@@ -303,7 +303,7 @@
"category_label": "Productivity",
"color": "theme.categoryAI",
"kind": "oauth",
- "icon_ref": "asset:gmail",
+ "icon_ref": "/api/schemas/credentials/gmail/icon",
"status_hook": "google",
"usage_service": "google_workspace",
"ws": {
@@ -338,7 +338,7 @@
"category_label": "Email",
"color": "theme.categoryChat",
"kind": "email",
- "icon_ref": "asset:read"
+ "icon_ref": "/api/schemas/credentials/email_himalaya/icon"
},
"android_remote": {
@@ -398,7 +398,7 @@
"category_label": "Search",
"color": "theme.categoryLocation",
"kind": "apiKey",
- "icon_ref": "asset:brave",
+ "icon_ref": "/api/schemas/credentials/brave_search/icon",
"fields": [
{
"key": "apiKey",
@@ -417,7 +417,7 @@
"category_label": "Search",
"color": "theme.categoryUtil",
"kind": "apiKey",
- "icon_ref": "asset:perplexity",
+ "icon_ref": "/api/schemas/credentials/perplexity/icon",
"fields": [
{
"key": "apiKey",
@@ -436,7 +436,7 @@
"category_label": "Scrapers",
"color": "theme.categoryAI",
"kind": "apiKey",
- "icon_ref": "asset:apify",
+ "icon_ref": "/api/schemas/credentials/apify/icon",
"validate_as": "apify",
"fields": [
{
@@ -456,7 +456,7 @@
"category_label": "Scrapers",
"color": "theme.categoryAI",
"kind": "apiKey",
- "icon_ref": "asset:google",
+ "icon_ref": "/api/schemas/credentials/serper/icon",
"fields": [
{
"key": "apiKey",
@@ -495,7 +495,7 @@
"category_label": "Payments",
"color": "dracula.purple",
"kind": "oauth",
- "icon_ref": "asset:stripe",
+ "icon_ref": "/api/schemas/credentials/stripe/icon",
"ws": {
"login": "stripe_login",
"logout": "stripe_logout",
diff --git a/server/credentials/icons/apify.svg b/server/credentials/icons/apify.svg
new file mode 100644
index 00000000..af055255
--- /dev/null
+++ b/server/credentials/icons/apify.svg
@@ -0,0 +1,5 @@
+<svg viewBox="0 0 150 150" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M86.0214 0H147.727C148.982 0 150 1.01753 150 2.27273V96.5744C150 98.8332 147.062 99.7089 145.826 97.8188L84.1196 3.51714C83.1305 2.00559 84.215 0 86.0214 0Z" fill="#246DFF"/>
+<path d="M63.9786 0H2.27273C1.01753 0 0 1.01753 0 2.27273V96.5744C0 98.8332 2.93774 99.7089 4.1745 97.8188L65.8804 3.51714C66.8695 2.00559 65.785 0 63.9786 0Z" fill="#20A34E"/>
+<path d="M73.9429 75.5012L3.84485 146.126C2.42137 147.56 3.43724 150 5.45792 150H144.6C146.612 150 147.632 147.578 146.225 146.139L77.1811 75.5135C76.2942 74.6063 74.8365 74.6008 73.9429 75.5012Z" fill="#F86606"/>
+</svg>
diff --git a/server/credentials/icons/brave_search.svg b/server/credentials/icons/brave_search.svg
new file mode 100644
index 00000000..f8f07995
--- /dev/null
+++ b/server/credentials/icons/brave_search.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FB542B">
+ <path d="M15.68 0l2.096 2.38s1.84-.512 2.709.358c.868.87 1.584 1.638 1.584 1.638l-.562 1.381.715 2.047s-2.104 7.98-2.35 8.955c-.486 1.919-.818 2.66-2.198 3.633-1.38.972-3.884 2.66-4.293 2.916-.409.256-.92.692-1.38.692-.46 0-.97-.436-1.38-.692a185.796 185.796 0 01-4.293-2.916c-1.38-.973-1.712-1.714-2.197-3.633-.247-.975-2.351-8.955-2.351-8.955l.715-2.047-.562-1.381s.716-.768 1.585-1.638c.868-.87 2.708-.358 2.708-.358L8.321 0h7.36zm-3.679 14.936c-.14 0-1.038.317-1.758.69-.72.373-1.242.637-1.409.742-.167.104-.065.301.087.409.152.107 2.194 1.69 2.393 1.866.198.175.489.464.687.464.198 0 .49-.29.688-.464.198-.175 2.24-1.759 2.392-1.866.152-.108.254-.305.087-.41-.167-.104-.689-.368-1.41-.741-.72-.373-1.617-.69-1.757-.69zm0-11.278s-.409.001-1.022.206-1.278.46-1.584.46c-.307 0-2.581-.434-2.581-.434S4.119 7.152 4.119 7.849c0 .697.339.881.68 1.243l2.02 2.149c.192.203.59.511.356 1.066-.235.555-.58 1.26-.196 1.977.384.716 1.042 1.194 1.464 1.115.421-.08 1.412-.598 1.776-.834.364-.237 1.518-1.19 1.518-1.554 0-.365-1.193-1.02-1.413-1.168-.22-.15-1.226-.725-1.247-.95-.02-.227-.012-.293.284-.851.297-.559.831-1.304.742-1.8-.089-.495-.95-.753-1.565-.986-.615-.232-1.799-.671-1.947-.74-.148-.068-.11-.133.339-.175.448-.043 1.719-.212 2.292-.052.573.16 1.552.403 1.632.532.079.13.149.134.067.579-.081.445-.5 2.581-.541 2.96-.04.38-.12.63.288.724.409.094 1.097.256 1.333.256s.924-.162 1.333-.256c.408-.093.329-.344.288-.723-.04-.38-.46-2.516-.541-2.961-.082-.445-.012-.45.067-.579.08-.129 1.059-.372 1.632-.532.573-.16 1.845.009 2.292.052.449.042.487.107.339.175-.148.069-1.332.508-1.947.74-.615.233-1.476.49-1.565.986-.09.496.445 1.241.742 1.8.297.558.304.624.284.85-.02.226-1.026.802-1.247.95-.22.15-1.413.804-1.413 1.169 0 .364 1.154 1.317 1.518 1.554.364.236 1.355.755 1.776.834.422.079 1.08-.4 1.464-1.115.384-.716.039-1.422-.195-1.977-.235-.555.163-.863.355-1.066l2.02-2.149c.341-.362.68-.546.68-1.243 0-.697-2.695-3.96-2.695-3.96s-2.274.436-2.58.436c-.307 0-.972-.256-1.585-.461-.613-.205-1.022-.206-1.022-.206z"/>
+</svg>
diff --git a/server/credentials/icons/email_himalaya.svg b/server/credentials/icons/email_himalaya.svg
new file mode 100644
index 00000000..637099ad
--- /dev/null
+++ b/server/credentials/icons/email_himalaya.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <path fill="#268bd2" d="M20 6H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"/>
+ <path fill="#1a6fb0" d="M2 8l10 6 10-6"/>
+ <path fill="#fff" d="M4 10l8 5 8-5v2l-8 5-8-5z" opacity="0.9"/>
+ <path fill="#8be9fd" d="M12 4L2 8h20z"/>
+</svg>
diff --git a/server/credentials/icons/gmail.svg b/server/credentials/icons/gmail.svg
new file mode 100644
index 00000000..bf1fca19
--- /dev/null
+++ b/server/credentials/icons/gmail.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="256" height="193" viewBox="0 0 256 193" preserveAspectRatio="xMidYMid">
+ <path fill="#4285F4" d="M58.182 192.05V93.14L27.507 65.077 0 49.504v125.091c0 9.658 7.825 17.455 17.455 17.455z"/>
+ <path fill="#34A853" d="M197.818 192.05h40.727c9.659 0 17.455-7.826 17.455-17.455V49.505l-31.156 17.837-27.026 25.798z"/>
+ <path fill="#EA4335" d="m58.182 93.14-4.174-38.647 4.174-36.989L128 69.868l69.818-52.364 4.67 34.992-4.67 40.644L128 145.504z"/>
+ <path fill="#FBBC04" d="M197.818 17.504V93.14L256 49.504V26.231c0-21.585-24.64-33.89-41.89-20.945z"/>
+ <path fill="#C5221F" d="m0 49.504 26.759 20.07L58.182 93.14V17.504L41.89 5.286C24.61-7.66 0 4.646 0 26.23z"/>
+</svg>
diff --git a/server/credentials/icons/perplexity.svg b/server/credentials/icons/perplexity.svg
new file mode 100644
index 00000000..3d82e57d
--- /dev/null
+++ b/server/credentials/icons/perplexity.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#20808D">
+ <path d="M22.3977 7.0896h-2.3106V.0676l-7.5094 6.3542V.1577h-1.1554v6.1966L4.4904 0v7.0896H1.6023v10.3976h2.8882V24l6.932-6.3591v6.2005h1.1554v-6.0469l6.9318 6.1807v-6.4879h2.8882V7.0896zm-3.4657-4.531v4.531h-5.355l5.355-4.531zm-13.2862.0676 4.8691 4.4634H5.6458V2.6262zM2.7576 16.332V8.245h7.8476l-6.1149 6.1147v1.9723H2.7576zm2.8882 5.0404v-3.8852h.0001v-2.6488l5.7763-5.7764v7.0111l-5.7764 5.2993zm12.7086.0248-5.7766-5.1509V9.0618l5.7766 5.7766v6.5588zm2.8882-5.0652h-1.733v-1.9723L13.3948 8.245h7.8478v8.087z"/>
+</svg>
diff --git a/server/credentials/icons/serper.svg b/server/credentials/icons/serper.svg
new file mode 100644
index 00000000..f9ef8738
--- /dev/null
+++ b/server/credentials/icons/serper.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#4285F4">
+ <path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"/>
+</svg>
diff --git a/server/credentials/icons/stripe.svg b/server/credentials/icons/stripe.svg
new file mode 100644
index 00000000..19008486
--- /dev/null
+++ b/server/credentials/icons/stripe.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="6" fill="#635BFF"/><path d="M14.4 13.2c0-.9.7-1.3 1.9-1.3 1.7 0 3.9.5 5.6 1.4V8.1c-1.9-.7-3.7-1-5.6-1-4.6 0-7.6 2.4-7.6 6.4 0 6.2 8.6 5.2 8.6 7.9 0 1.1-.9 1.4-2.2 1.4-1.9 0-4.3-.8-6.2-1.8v5.4c2.1.9 4.3 1.3 6.2 1.3 4.7 0 7.9-2.3 7.9-6.4 0-6.7-8.6-5.5-8.6-8.1z" fill="#fff"/></svg>
diff --git a/server/credentials/icons/telegram.svg b/server/credentials/icons/telegram.svg
new file mode 100644
index 00000000..e30cd7fe
--- /dev/null
+++ b/server/credentials/icons/telegram.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#0088CC">
+ <path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/>
+</svg>
diff --git a/server/credentials/icons/twitter.svg b/server/credentials/icons/twitter.svg
new file mode 100644
index 00000000..f5c2a528
--- /dev/null
+++ b/server/credentials/icons/twitter.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
diff --git a/server/credentials/icons/whatsapp_personal.svg b/server/credentials/icons/whatsapp_personal.svg
new file mode 100644
index 00000000..c2df5a87
--- /dev/null
+++ b/server/credentials/icons/whatsapp_personal.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#25D366"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>