mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 23:48:09 -05:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c32ad4c0d | ||
|
|
1e080e98e8 | ||
|
|
b069034d9c | ||
|
|
3a4f130f69 | ||
|
|
e80feee51f | ||
|
|
7f62467f84 | ||
|
|
7b2792122d | ||
|
|
4e9cab39c3 | ||
|
|
e3a57d30e8 | ||
|
|
f25db707d7 | ||
|
|
08d57b4f8b | ||
|
|
f56d85bda6 | ||
|
|
d7a650a355 | ||
|
|
a8f87f7e3a | ||
|
|
9330940658 | ||
|
|
fc5f815c7a | ||
|
|
7bf9251db1 |
@@ -1,47 +1,5 @@
|
||||
import type { SVGProps } from 'react'
|
||||
|
||||
export function UsersIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width='24'
|
||||
height='24'
|
||||
viewBox='0 0 24 24'
|
||||
fill='none'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
>
|
||||
<path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2' />
|
||||
<circle cx='9' cy='7' r='4' />
|
||||
<path d='M22 21v-2a4 4 0 0 0-3-3.87' />
|
||||
<path d='M16 3.13a4 4 0 0 1 0 7.75' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SettingsIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width='24'
|
||||
height='24'
|
||||
viewBox='0 0 24 24'
|
||||
fill='none'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
>
|
||||
<path d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z' />
|
||||
<circle cx='12' cy='12' r='3' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SearchIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -62,33 +20,6 @@ export function SearchIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function Spinner() {
|
||||
return (
|
||||
<div className='absolute top-0 right-0 bottom-0 flex items-center justify-center'>
|
||||
<svg
|
||||
className='-ml-1 mr-3 h-5 w-5 animate-spin text-gray-700'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
fill='none'
|
||||
viewBox='0 0 24 24'
|
||||
>
|
||||
<circle
|
||||
className='opacity-25'
|
||||
cx='12'
|
||||
cy='12'
|
||||
r='10'
|
||||
stroke='currentColor'
|
||||
strokeWidth='4'
|
||||
/>
|
||||
<path
|
||||
className='opacity-75'
|
||||
fill='currentColor'
|
||||
d='M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z'
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export function AgentIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -192,55 +123,6 @@ export function NoteIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function AirplaneIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M18.0925 7.76479L23.0009 2.85494C23.5535 2.31133 24.2985 2.00809 25.0736 2.01126C25.8488 2.01443 26.5913 2.32375 27.1394 2.87187C27.6875 3.41998 27.9968 4.16247 28 4.93761C28.0031 5.71275 27.6999 6.45774 27.1563 7.01032L22.2464 11.9187L24.903 25.1364C25.2426 26.8275 21.9632 29.1834 21.0902 26.9431L17.2022 16.9644L12.1536 22.013C12.3993 24.963 12.4528 25.9444 10.3845 28.0112L7.24083 22.7704L2 19.6268C4.06685 17.5585 5.04824 17.6105 7.9982 17.8577L13.0468 12.8105L3.06811 8.92107C0.827823 8.04808 3.18374 4.76714 4.8748 5.10824L18.0925 7.76479Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function WorkIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M9.66689 7.20002V6.16002C9.66689 3.85901 9.66689 2 13.9338 2H16.0658C20.3327 2 20.3327 3.85901 20.3327 6.16002V7.20002M9.66689 28.0001H20.3327C25.6916 28.0001 26.6522 25.9056 26.9324 23.3591L27.932 12.959C28.2931 9.78703 27.3585 7.20002 21.6659 7.20002H8.33366C2.64109 7.20002 1.70797 9.78703 2.06764 12.959L3.0672 23.3591C3.34742 25.9056 4.30798 28.0001 9.66689 28.0001Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M11.8385 16.9227C8.45374 16.5494 5.20151 15.3969 2.33691 13.5557M18.2259 16.9227C21.6106 16.5494 24.8629 15.3969 27.7275 13.5557M17.8879 17.1668C17.8879 17.933 17.5835 18.6678 17.0417 19.2095C16.4999 19.7513 15.7651 20.0557 14.999 20.0557C14.2328 20.0557 13.498 19.7513 12.9562 19.2095C12.4144 18.6678 12.1101 17.933 12.1101 17.1668C12.1101 16.4006 12.4144 15.6658 12.9562 15.124C13.498 14.5823 14.2328 14.2779 14.999 14.2779C15.7651 14.2779 16.4999 14.5823 17.0417 15.124C17.5835 15.6658 17.8879 16.4006 17.8879 17.1668Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function WorkflowIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -308,104 +190,6 @@ export function WorkflowIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function WarnIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15 9.3152V16.4654M15 20.6853V20.0353M2.91879 12.7837C2.62752 13.0747 2.39645 13.4202 2.2388 13.8005C2.08115 14.1809 2 14.5885 2 15.0002C2 15.412 2.08115 15.8196 2.2388 16.2C2.39645 16.5803 2.62752 16.9258 2.91879 17.2168L12.7834 27.0814C13.0744 27.3727 13.4199 27.6038 13.8003 27.7614C14.1806 27.9191 14.5883 28.0002 15 28.0002C15.4117 28.0002 15.8194 27.9191 16.1997 27.7614C16.58 27.6038 16.9256 27.3727 17.2166 27.0814L27.0812 17.2168C27.3725 16.9258 27.6035 16.5803 27.7612 16.2C27.9189 15.8196 28 15.412 28 15.0002C28 14.5885 27.9189 14.1809 27.7612 13.8005C27.6035 13.4202 27.3725 13.0747 27.0812 12.7837L17.2166 2.91904C16.9256 2.62776 16.58 2.3967 16.1997 2.23904C15.8194 2.08139 15.4117 2.00024 15 2.00024C14.5883 2.00024 14.1806 2.08139 13.8003 2.23904C13.4199 2.3967 13.0744 2.62776 12.7834 2.91904L2.91879 12.7837Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function UploadIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='25'
|
||||
viewBox='0 0 30 25'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15.1605 23.1773L15.1552 12.5569M25.5937 19.1946C31.5611 14.9996 26.2243 8.93265 20.6738 8.93265C16.9262 -5.67304 -5.05936 6.40766 4.68352 17.4183'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M19.3792 15.6341L15.1549 11.4098L10.9307 15.6341'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function TrashIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='29'
|
||||
height='35'
|
||||
viewBox='0 0 29 35'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M24.9 12.4L23.444 26.9565C23.2239 29.1631 23.1147 30.2655 22.612 31.0992C22.1711 31.8331 21.5227 32.42 20.7487 32.7857C19.8699 33.2 18.764 33.2 16.5453 33.2H12.4547C10.2377 33.2 9.13013 33.2 8.25133 32.784C7.47662 32.4185 6.8276 31.8316 6.38627 31.0975C5.88707 30.2655 5.77613 29.1631 5.55427 26.9565L4.1 12.4M17.1 23.6667V15M11.9 23.6667V15M1.5 8.06667H9.49933M9.49933 8.06667L10.1684 3.4352C10.3625 2.5928 11.0628 2 11.8671 2H17.1329C17.9372 2 18.6357 2.5928 18.8316 3.4352L19.5007 8.06667M9.49933 8.06667H19.5007M19.5007 8.06667H27.5'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function StudentIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='27'
|
||||
viewBox='0 0 30 27'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M28 9.1498V15.6498M17.8821 2.6498C16.9814 2.22228 15.997 2.00049 15 2.00049C14.003 2.00049 13.0186 2.22228 12.1179 2.6498L3.4196 6.7279C1.5268 7.6145 1.5268 10.6851 3.4196 11.5717L12.1166 15.6498C13.0174 16.0775 14.0021 16.2994 14.9993 16.2994C15.9966 16.2994 16.9813 16.0775 17.8821 15.6498L26.5804 11.5717C28.4732 10.6851 28.4732 7.6145 26.5804 6.7279L17.8821 2.6498Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M5.90039 13.0498V19.7123C5.90039 23.5057 12.0026 25.3998 15.0004 25.3998C17.9982 25.3998 24.1004 23.5057 24.1004 19.7123V13.0498'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SignalIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -427,174 +211,6 @@ export function SignalIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function SectionIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M4.88889 22.2222V7.77778M4.88889 22.2222C4.31752 22.2222 3.75898 22.3917 3.28391 22.7091C2.80883 23.0265 2.43856 23.4777 2.2199 24.0056C2.00125 24.5335 1.94404 25.1143 2.05551 25.6747C2.16698 26.2351 2.44212 26.7498 2.84614 27.1539C3.25016 27.5579 3.76491 27.833 4.3253 27.9445C4.88569 28.056 5.46654 27.9987 5.99442 27.7801C6.5223 27.5614 6.97348 27.1912 7.29091 26.7161C7.60835 26.241 7.77778 25.6825 7.77778 25.1111M4.88889 22.2222C5.65507 22.2222 6.38987 22.5266 6.93164 23.0684C7.47341 23.6101 7.77778 24.3449 7.77778 25.1111M4.88889 7.77778C5.65507 7.77778 6.38987 7.47341 6.93164 6.93164C7.47341 6.38987 7.77778 5.65507 7.77778 4.88889M4.88889 7.77778C4.31752 7.77778 3.75898 7.60835 3.28391 7.29091C2.80883 6.97348 2.43856 6.5223 2.2199 5.99442C2.00125 5.46654 1.94404 4.88569 2.05551 4.3253C2.16698 3.76491 2.44212 3.25016 2.84614 2.84614C3.25016 2.44212 3.76491 2.16698 4.3253 2.05551C4.88569 1.94404 5.46654 2.00125 5.99442 2.2199C6.5223 2.43856 6.97348 2.80883 7.29091 3.28391C7.60835 3.75898 7.77778 4.31752 7.77778 4.88889M7.77778 25.1111H22.2222M7.77778 4.88889H22.2222M22.2222 4.88889C22.2222 5.65507 22.5266 6.38987 23.0684 6.93164C23.6101 7.47341 24.3449 7.77778 25.1111 7.77778M22.2222 4.88889C22.2222 4.31752 22.3917 3.75898 22.7091 3.28391C23.0265 2.80883 23.4777 2.43856 24.0056 2.2199C24.5335 2.00125 25.1143 1.94404 25.6747 2.05551C26.2351 2.16698 26.7498 2.44212 27.1539 2.84614C27.5579 3.25016 27.833 3.76491 27.9445 4.3253C28 4.88569 27.9987 5.46654 27.7801 5.99442C27.5614 6.5223 27.1912 6.97348 26.7161 7.29091C26.241 7.60835 25.6825 7.77778 25.1111 7.77778M25.1111 7.77778V22.2222M25.1111 22.2222C24.3449 22.2222 23.6101 22.5266 23.0684 23.0684C22.5266 23.6101 22.2222 24.3449 22.2222 25.1111M25.1111 22.2222C25.6825 22.2222 26.241 22.3917 26.7161 22.7091C27.1912 23.0265 27.5614 23.4777 27.7801 24.0056C27.9987 24.5335 28 25.1143 27.9445 25.6747C27.833 26.2351 27.5579 26.7498 27.1539 27.1539C26.7498 27.5579 26.2351 27.833 25.6747 27.9445C25.1143 28.056 24.5335 27.9987 24.0056 27.7801C23.4777 27.5614 23.0265 27.1912 22.7091 26.7161C22.3917 26.241 22.2222 25.6825 22.2222 25.1111'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ReminderIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M2 5.22256L6.55 2M28 5.22256L23.45 2M26.5556 16.4444C26.5556 19.5092 25.3381 22.4484 23.171 24.6155C21.0039 26.7825 18.0647 28 15 28C11.9353 28 8.99608 26.7825 6.82899 24.6155C4.6619 22.4484 3.44444 19.5092 3.44444 16.4444C3.44444 13.3797 4.6619 10.4405 6.82899 8.27343C8.99608 6.10635 11.9353 4.88889 15 4.88889C18.0647 4.88889 21.0039 6.10635 23.171 8.27343C25.3381 10.4405 26.5556 13.3797 26.5556 16.4444Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M15 9.94446V17.1667L19.3333 20.0556'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function DatabaseIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='33'
|
||||
viewBox='0 0 30 33'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M28 16.2188C28 23.8026 2 23.8026 2 16.2188M15 2C7.82075 2 2 4.09625 2 6.68C2 13.44 28 13.44 28 6.68C28 4.09625 22.1793 2 15 2Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M2 6.875V26.6431C2 32.7856 28 32.7856 28 26.6431V6.875'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CrateIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15 28L26.7448 21.9218C27.2012 21.6849 27.4294 21.5679 27.5956 21.3931C27.7427 21.2398 27.8541 21.0558 27.922 20.8544C28 20.6247 28 20.369 28 19.8548V8.5477M15 28L3.25522 21.9218C2.79878 21.6849 2.57056 21.5679 2.40444 21.3931C2.25732 21.2398 2.14585 21.0558 2.078 20.8544C2 20.6247 2 20.3676 2 19.8519V8.5477M15 28V14.909M28 8.5477L15 14.909M28 8.5477L16.0544 2.36548C15.6688 2.16614 15.4767 2.06503 15.273 2.02603C15.0927 1.99132 14.9073 1.99132 14.727 2.02603C14.5248 2.06503 14.3312 2.16614 13.9441 2.36548L2 8.5477M2 8.5477L15 14.909'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CookieIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M19.3368 21.2951L19.8483 20.7836M12.1124 22.74L12.6239 22.2285M9.22264 9.73606L9.73269 9.22457M7.77776 16.9605L8.28781 16.449M15.0022 15.5156L15.5137 15.0041M15.0065 28.008C18.3701 28.0079 21.6029 26.7048 24.0264 24.3724C26.4499 22.0399 27.8758 18.8594 28.0047 15.4982C28.0133 15.2772 27.7735 15.137 27.5741 15.2367C23.9966 17.0385 21.7859 15.1255 22.1457 12.5579C22.1518 12.5083 22.1467 12.458 22.1306 12.4106C22.1146 12.3633 22.0881 12.3201 22.0531 12.2845C22.0181 12.2488 21.9755 12.2214 21.9285 12.2045C21.8815 12.1875 21.8313 12.1814 21.7815 12.1866C18.6447 12.6244 17.3226 10.7215 17.8168 8.13513C17.8241 8.09108 17.8223 8.04599 17.8115 8.00267C17.8006 7.95935 17.7809 7.91873 17.7537 7.88335C17.7264 7.84796 17.6922 7.81857 17.6531 7.79701C17.614 7.77545 17.5708 7.76218 17.5264 7.75802C14.5745 7.49505 14.3303 4.08802 14.8375 2.42641C14.8996 2.22123 14.7522 1.99294 14.5384 2.00017C11.1323 2.12457 7.91116 3.58078 5.56769 6.05559C3.22422 8.53041 1.94565 11.8261 2.00699 15.2339C2.06833 18.6416 3.46468 21.8892 5.89569 24.2781C8.32671 26.6669 11.5982 28.0063 15.0065 28.008Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ErrorIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15 8.68344V16.6279M15 21.3166V20.5943M28 15C28 16.7072 27.6637 18.3977 27.0104 19.9749C26.3571 21.5521 25.3995 22.9852 24.1924 24.1924C22.9852 25.3995 21.5521 26.3571 19.9749 27.0104C18.3977 27.6637 16.7072 28 15 28C13.2928 28 11.6023 27.6637 10.0251 27.0104C8.44788 26.3571 7.01477 25.3995 5.80761 24.1924C4.60045 22.9852 3.64288 21.5521 2.98957 19.9749C2.33625 18.3977 2 16.7072 2 15C2 11.5522 3.36964 8.24558 5.80761 5.80761C8.24558 3.36964 11.5522 2 15 2C18.4478 2 21.7544 3.36964 24.1924 5.80761C26.6304 8.24558 28 11.5522 28 15Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ChromeIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M13.5442 27.9221L19.4982 17.6001M4.53516 7.27808L10.5022 17.6001M26.9212 9.80008H15.0002M15.0002 9.80008C16.3793 9.80008 17.7019 10.3479 18.6771 11.3231C19.6523 12.2983 20.2002 13.621 20.2002 15.0001C20.2002 16.3792 19.6523 17.7018 18.6771 18.677C17.7019 19.6522 16.3793 20.2001 15.0002 20.2001C13.621 20.2001 12.2984 19.6522 11.3232 18.677C10.348 17.7018 9.80016 16.3792 9.80016 15.0001C9.80016 13.621 10.348 12.2983 11.3232 11.3231C12.2984 10.3479 13.621 9.80008 15.0002 9.80008Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M15 28C16.7072 28 18.3977 27.6637 19.9749 27.0104C21.5521 26.3571 22.9852 25.3995 24.1924 24.1924C25.3995 22.9852 26.3571 21.5521 27.0104 19.9749C27.6637 18.3977 28 16.7072 28 15C28 13.2928 27.6637 11.6023 27.0104 10.0251C26.3571 8.44788 25.3995 7.01477 24.1924 5.80761C22.9852 4.60045 21.5521 3.64288 19.9749 2.98957C18.3977 2.33625 16.7072 2 15 2C11.5522 2 8.24558 3.36964 5.80761 5.80761C3.36964 8.24558 2 11.5522 2 15C2 18.4478 3.36964 21.7544 5.80761 24.1924C8.24558 26.6304 11.5522 28 15 28Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CalendarIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -718,250 +334,6 @@ export function ChartBarIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function AtomIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M19.9206 10.079C26.5651 16.7235 29.7457 24.3111 27.0273 27.0296C24.3117 29.7466 16.7212 26.5645 10.0782 19.9215C3.43516 13.2785 0.253045 5.68936 2.97149 2.97092C5.68705 0.253917 13.2762 3.43603 19.9206 10.079Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M14.6383 15.0001H15.3605M10.0796 10.0789C3.43514 16.7234 0.253025 24.311 2.97147 27.0295C5.68992 29.7479 13.2776 26.5644 19.9206 19.9214C26.5636 13.2783 29.7471 5.68923 27.0287 2.97079C24.3103 0.252343 16.7226 3.4359 10.0796 10.0789Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ElevatorIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='29'
|
||||
height='40'
|
||||
viewBox='0 0 29 40'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M14.5 12.588H23.5C24.5609 12.588 25.5783 13.0094 26.3284 13.7596C27.0786 14.5097 27.5 15.5271 27.5 16.588V34C27.5 35.0609 27.0786 36.0783 26.3284 36.8284C25.5783 37.5786 24.5609 38 23.5 38H14.5M14.5 12.588H5.5C4.43913 12.588 3.42172 13.0094 2.67157 13.7596C1.92143 14.5097 1.5 15.5271 1.5 16.588V34C1.5 35.0609 1.92143 36.0783 2.67157 36.8284C3.42172 37.5786 4.43913 38 5.5 38H14.5M14.5 12.588V38M4.75 5.176L8 2L11.25 5.176M17.75 2L21 5.176L24.25 2'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function DollarIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='43'
|
||||
viewBox='0 0 30 43'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M25.8333 6.33333H15M15 6.33333H9.58333C7.57211 6.33333 5.64326 7.13229 4.22111 8.55444C2.79896 9.97659 2 11.9054 2 13.9167C2 15.9279 2.79896 17.8567 4.22111 19.2789C5.64326 20.701 7.57211 21.5 9.58333 21.5H15M15 6.33333V2M15 6.33333V21.5M15 21.5H20.4167C21.4125 21.5 22.3986 21.6961 23.3187 22.0772C24.2387 22.4583 25.0747 23.0169 25.7789 23.7211C26.4831 24.4253 27.0417 25.2613 27.4228 26.1813C27.8039 27.1014 28 28.0875 28 29.0833C28 30.0792 27.8039 31.0653 27.4228 31.9853C27.0417 32.9054 26.4831 33.7414 25.7789 34.4456C25.0747 35.1497 24.2387 35.7083 23.3187 36.0894C22.3986 36.4705 21.4125 36.6667 20.4167 36.6667H15M15 21.5V36.6667M15 36.6667H2M15 36.6667V41'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CreditCardIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='24'
|
||||
viewBox='0 0 30 24'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M2 7.77778V6.62222C2 5.00444 2 4.19556 2.31489 3.57733C2.59222 3.03278 3.03278 2.59222 3.57733 2.31489C4.19556 2 5.00444 2 6.62222 2H23.3778C24.9956 2 25.8044 2 26.4212 2.31489C26.9658 2.59222 27.4078 3.03278 27.6851 3.57733C28 4.19411 28 5.003 28 6.61789V7.77778M2 7.77778H28M2 7.77778V17.6C2 19.2178 2 20.0267 2.31489 20.6449C2.59185 21.1884 3.03378 21.6304 3.57733 21.9073C4.19411 22.2222 5.003 22.2222 6.61789 22.2222H23.3821C24.997 22.2222 25.8044 22.2222 26.4212 21.9073C26.9658 21.63 27.4078 21.188 27.6851 20.6449C28 20.0267 28 19.2207 28 17.6058V7.77778M6.33333 16.4444H12.1111'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function BoatIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M4.6 22.5024L3.73767 17.6737C3.61597 16.9932 3.74231 16.2917 4.09374 15.6964C4.44517 15.1011 4.99841 14.6516 5.653 14.4294L5.89856 14.3457M5.89856 14.3457L14.0727 11.5723C14.6741 11.3685 15.3259 11.3685 15.9273 11.5723L24.1 14.3457M5.89856 14.3457L5.9 8.85678C5.9 8.0906 6.20436 7.3558 6.74614 6.81402C7.28791 6.27225 8.02271 5.96789 8.78889 5.96789H12.4M24.1 14.3457L24.3456 14.4294C25.0004 14.6513 25.554 15.1007 25.9057 15.696C26.2574 16.2913 26.384 16.993 26.2623 17.6737L25.4 22.501M24.1 14.3457V8.85678C24.1 8.0906 23.7956 7.3558 23.2539 6.81402C22.7121 6.27225 21.9773 5.96789 21.2111 5.96789H17.6M12.4 5.96789H17.6M12.4 5.96789V4.6C12.4 3.91044 12.6739 3.24912 13.1615 2.76152C13.6491 2.27393 14.3104 2 15 2C15.6896 2 16.3509 2.27393 16.8385 2.76152C17.3261 3.24912 17.6 3.91044 17.6 4.6V5.96789M2 27.1319C2.93456 28.0809 5.20956 28.3496 7.38056 27.4439C8.87122 26.8228 10.7548 26.8069 12.2787 27.3413C14.0429 27.9438 15.9571 27.9438 17.7213 27.3413C19.2452 26.8069 21.1288 26.8213 22.618 27.4424C24.7904 28.3496 27.0669 28.0809 28 27.1304'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CancelIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M28 15C28 16.7072 27.6637 18.3977 27.0104 19.9749C26.3571 21.5521 25.3995 22.9852 24.1924 24.1924C22.9852 25.3995 21.5521 26.3571 19.9749 27.0104C18.3977 27.6637 16.7072 28 15 28C13.2928 28 11.6023 27.6637 10.0251 27.0104C8.44788 26.3571 7.01477 25.3995 5.80761 24.1924C4.60045 22.9852 3.64288 21.5521 2.98957 19.9749C2.33625 18.3977 2 16.7072 2 15C2 11.5522 3.36964 8.24558 5.80761 5.80761C8.24558 3.36964 11.5522 2 15 2C18.4478 2 21.7544 3.36964 24.1924 5.80761C26.6304 8.24558 28 11.5522 28 15Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M23.6667 6.33333L6.33333 23.6667'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function BankIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15 10.5797V23.6664M22.2222 10.5797V23.6664M7.77778 10.5797V23.6664M15.6457 2.15283L26.8603 7.79772C28.2239 8.48383 27.7386 10.5523 26.2147 10.5523H3.78533C2.26144 10.5523 1.77611 8.48383 3.13967 7.79772L14.3543 2.15283C14.5548 2.05264 14.7759 2.00049 15 2.00049C15.2241 2.00049 15.4452 2.05264 15.6457 2.15283ZM25.8333 27.9997H4.16667C3.59203 27.9997 3.04093 27.7714 2.6346 27.3651C2.22827 26.9588 2 26.4077 2 25.8331C2 25.2584 2.22827 24.7073 2.6346 24.301C3.04093 23.8947 3.59203 23.6664 4.16667 23.6664H25.8333C26.408 23.6664 26.9591 23.8947 27.3654 24.301C27.7717 24.7073 28 25.2584 28 25.8331C28 26.4077 27.7717 26.9588 27.3654 27.3651C26.9591 27.7714 26.408 27.9997 25.8333 27.9997Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function AmbulanceIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='24'
|
||||
viewBox='0 0 30 24'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M7.63333 9.22222H13.4111M10.5222 6.33333V12.1111M10.9657 18.5461C10.9657 20.5756 9.35944 22.2222 7.37911 22.2222C5.39878 22.2222 3.79256 20.5756 3.79256 18.5447M10.9657 18.5461C10.9657 16.5167 9.35944 14.8686 7.37911 14.8686C5.39878 14.8686 3.79256 16.5152 3.79256 18.5447M10.9657 18.5461L19.0343 18.5447M3.79256 18.5447H2V3.44444C2 3.06135 2.15218 2.69395 2.42307 2.42307C2.69395 2.15218 3.06135 2 3.44444 2H17.5899C17.973 2 18.3404 2.15218 18.6113 2.42307C18.8822 2.69395 19.0343 3.06135 19.0343 3.44444V6.59622M19.0343 18.5447H19.9313M19.0343 18.5447V6.59622M19.0343 6.59622H22.3002C22.6854 6.59626 23.0667 6.67334 23.4217 6.82292C23.7767 6.9725 24.0982 7.19157 24.3672 7.46722L28 11.1924V18.5447H27.103M27.103 18.5447C27.103 20.5756 25.4982 22.2222 23.5179 22.2222C21.5376 22.2222 19.9313 20.5756 19.9313 18.5447M27.103 18.5447C27.103 16.5152 25.4982 14.8686 23.5179 14.8686C21.5376 14.8686 19.9313 16.5152 19.9313 18.5447'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ComponentIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M10.45 6.55L15 2L19.55 6.55L15 11.1L10.45 6.55ZM18.9 15.65L23.45 11.1L28 15.65L23.45 20.2L18.9 15.65ZM10.45 23.45L15 18.9L19.55 23.45L15 28L10.45 23.45ZM2 15L6.55 10.45L11.1 15L6.55 19.55L2 15Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function BrightIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M2 15H6.33333M4.88889 4.88889L7.95256 7.95256M25.1111 4.88889L22.0474 7.95256M4.88889 25.1111L7.95256 22.0474M25.1111 25.1111L22.0474 22.0474M15 2V6.33333M15 28V23.6667M23.6667 15H28M19.3333 15C19.3333 16.1493 18.8768 17.2515 18.0641 18.0641C17.2515 18.8768 16.1493 19.3333 15 19.3333C13.8507 19.3333 12.7485 18.8768 11.9359 18.0641C11.1232 17.2515 10.6667 16.1493 10.6667 15C10.6667 13.8507 11.1232 12.7485 11.9359 11.9359C12.7485 11.1232 13.8507 10.6667 15 10.6667C16.1493 10.6667 17.2515 11.1232 18.0641 11.9359C18.8768 12.7485 19.3333 13.8507 19.3333 15Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CrewAIIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='24'
|
||||
height='26'
|
||||
viewBox='0 0 24 26'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M12.0566 1.18005C6.73561 2.31905 1.05261 10.0691 1.00061 16.3721C0.94961 21.8991 4.10061 25.0521 9.68061 24.9991C16.3966 24.9491 23.9396 18.1291 21.7706 14.0991C21.0986 12.8071 20.3746 12.7551 19.0836 13.8921C17.4816 15.2871 17.4296 14.2021 18.8766 10.9991C20.6336 7.01905 20.5816 5.67705 18.5666 3.45505C16.6046 1.38805 14.5366 0.61105 12.0566 1.18005ZM17.3786 3.24805C19.6516 5.26305 19.7546 7.48405 17.8436 11.6681C16.4486 14.7681 15.6736 15.1831 14.0196 13.5281C12.7796 12.2881 12.6766 10.0681 13.7616 7.48405C14.8986 4.84905 14.7436 4.38405 13.1936 5.83105C9.47361 9.18905 6.73561 15.596 7.76961 18.334C8.23361 19.523 8.59461 19.729 10.5066 19.729C13.2966 19.729 16.8096 18.0241 18.4636 15.8031C20.2196 13.5291 21.2536 13.5291 21.2536 15.7511C21.2536 19.6261 14.7946 24.378 9.62861 24.378C3.37761 24.378 0.27761 19.6261 2.13761 12.9081C3.01561 9.91305 6.58061 5.00405 9.21461 3.24805C12.4696 1.07805 14.8986 1.07805 17.3786 3.24805Z'
|
||||
stroke='currentColor'
|
||||
fill='currentColor'
|
||||
strokeWidth='1.25'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function HubspotIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -1464,10 +836,17 @@ export function DiscordIcon(props: SVGProps<SVGSVGElement>) {
|
||||
|
||||
export function LinkedInIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='4 4 42 42' width='1em' height='1em'>
|
||||
<svg
|
||||
{...props}
|
||||
fill='currentColor'
|
||||
height='72'
|
||||
viewBox='0 0 72 72'
|
||||
width='72'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M62,62 L51.315625,62 L51.315625,43.8021149 C51.315625,38.8127542 49.4197917,36.0245323 45.4707031,36.0245323 C41.1746094,36.0245323 38.9300781,38.9261103 38.9300781,43.8021149 L38.9300781,62 L28.6333333,62 L28.6333333,27.3333333 L38.9300781,27.3333333 L38.9300781,32.0029283 C38.9300781,32.0029283 42.0260417,26.2742151 49.3825521,26.2742151 C56.7356771,26.2742151 62,30.7644705 62,40.051212 L62,62 Z M16.349349,22.7940133 C12.8420573,22.7940133 10,19.9296567 10,16.3970067 C10,12.8643566 12.8420573,10 16.349349,10 C19.8566406,10 22.6970052,12.8643566 22.6970052,16.3970067 C22.6970052,19.9296567 19.8566406,22.7940133 16.349349,22.7940133 Z M11.0325521,62 L21.769401,62 L21.769401,27.3333333 L11.0325521,27.3333333 L11.0325521,62 Z'
|
||||
fill='currentColor'
|
||||
d='M41,4H9C6.24,4,4,6.24,4,9v32c0,2.76,2.24,5,5,5h32c2.76,0,5-2.24,5-5V9C46,6.24,43.76,4,41,4z M17,20v19h-6V20H17z M11,14.47c0-1.4,1.2-2.47,3-2.47s2.93,1.07,3,2.47c0,1.4-1.12,2.53-3,2.53C12.2,17,11,15.87,11,14.47z M39,39h-6c0,0,0-9.26,0-10 c0-2-1-4-3.5-4.04h-0.08C27,24.96,26,27.02,26,29c0,0.91,0,10,0,10h-6V20h6v2.56c0,0,1.93-2.56,5.81-2.56 c3.97,0,7.19,2.73,7.19,8.26V39z'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
@@ -4344,3 +3723,143 @@ export function PylonIcon(props: SVGProps<SVGSVGElement>) {
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SendgridIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='800px'
|
||||
height='800px'
|
||||
viewBox='0 0 256 256'
|
||||
version='1.1'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
xmlnsXlink='http://www.w3.org/1999/xlink'
|
||||
preserveAspectRatio='xMidYMid'
|
||||
>
|
||||
<g>
|
||||
<path
|
||||
d='M256.000405,0 L256.000405,170.666936 L170.666936,170.666936 L170.666936,255.996382 L0.00201096905,255.996382 L0.002,170.666 L0,170.666936 L0,85.3314569 L85.3334681,85.3314569 L85.3334681,0 L256.000405,0 Z'
|
||||
fill='#9DD6E3'
|
||||
/>
|
||||
<polygon
|
||||
fill='#3F72AB'
|
||||
points='0.00201096905 255.996382 85.3354791 255.996382 85.3354791 170.662915 0.00201096905 170.662915'
|
||||
/>
|
||||
<polygon
|
||||
fill='#00A9D1'
|
||||
points='170.666936 170.666936 256.000405 170.666936 256.000405 85.3314569 170.666936 85.3314569'
|
||||
/>
|
||||
<polygon
|
||||
fill='#00A9D1'
|
||||
points='85.3334681 85.3334679 170.666936 85.3334679 170.666936 0 85.3334681 0'
|
||||
/>
|
||||
<polygon
|
||||
fill='#2191C4'
|
||||
points='85.3334681 170.664925 170.666936 170.664925 170.666936 85.3314569 85.3334681 85.3314569'
|
||||
/>
|
||||
<polygon
|
||||
fill='#3F72AB'
|
||||
points='170.666936 85.3334679 256.000405 85.3334679 256.000405 0 170.666936 0'
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function MailgunIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
fill='currentColor'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
xmlSpace='preserve'
|
||||
viewBox='0 0 512 512'
|
||||
>
|
||||
<path d='M256.5 159.5c-53.5 0-97 43.5-97 97s43.5 97 97 97 97-43.5 97-97-43.5-97-97-97m-151.1 97c0-83.4 67.7-151.1 151.1-151.1s151.1 67.7 151.1 151.1c0 5.8-.5 11-1 16.3-1 14.7 9.4 25.7 24.1 25.7 24.7 0 27.3-32 27.3-42.5 0-111.7-90.2-202-202-202S54 144.3 54 256s90.2 202 202 202c59.3 0 112.3-25.7 149.5-66.1l41.4 34.6C400.3 479 332.1 512 256 512 114.4 512 0 397.1 0 256 0 114.4 114.9 0 256 0c141.6 0 256 114.9 256 256 0 56.7-27.3 102.8-81.3 102.8-24.1 0-38.3-11-46.7-23.1-26.8 43-74 71.3-128.5 71.3-82.4.6-150.1-67.1-150.1-150.5m151.1-44.6c24.7 0 44.6 19.9 44.6 44.1 0 24.7-19.9 44.6-44.6 44.6s-44.6-19.9-44.6-44.6c.6-24.1 20-44.1 44.6-44.1' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SmtpIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='24'
|
||||
viewBox='0 0 30 24'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M2.35742 5.83288L11.7674 12.1071C13.0656 12.9712 13.7141 13.404 14.4151 13.5725C15.0352 13.7208 15.681 13.7208 16.2998 13.5725C17.0008 13.404 17.6492 12.9712 18.9475 12.1071L28.3574 5.83288M8.82844 21.7219H21.8864C24.1513 21.7219 25.2837 21.7219 26.1492 21.2811C26.9097 20.8931 27.5278 20.2744 27.9152 19.5137C28.3574 18.6482 28.3574 17.5158 28.3574 15.2509V7.97102C28.3574 5.70616 28.3574 4.57373 27.9166 3.70823C27.5288 2.94727 26.9102 2.32858 26.1492 1.94084C25.2837 1.5 24.1513 1.5 21.8864 1.5H8.82844C6.56358 1.5 5.43115 1.5 4.56566 1.94084C3.80519 2.32881 3.187 2.94747 2.79961 3.70823C2.35742 4.57373 2.35742 5.70616 2.35742 7.97102V15.2509C2.35742 17.5158 2.35742 18.6482 2.79826 19.5137C3.186 20.2747 3.80469 20.8933 4.56566 21.2811C5.43115 21.7219 6.56358 21.7219 8.82844 21.7219Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<circle cx='24' cy='6' r='4' fill='currentColor' stroke='none' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ApifyIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='200'
|
||||
height='200'
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<g clipPath='url(#clip0_267_4154)'>
|
||||
<path
|
||||
d='M114.695 0H196.97C198.643 0 200 1.35671 200 3.03031V128.766C200 131.778 196.083 132.945 194.434 130.425L112.159 4.68953C110.841 2.67412 112.287 0 114.695 0Z'
|
||||
fill='#246DFF'
|
||||
/>
|
||||
<path
|
||||
d='M85.3048 0H3.0303C1.35671 0 0 1.35671 0 3.03031V128.766C0 131.778 3.91698 132.945 5.566 130.425L87.8405 4.68953C89.1593 2.67412 87.7134 0 85.3048 0Z'
|
||||
fill='#20A34E'
|
||||
/>
|
||||
<path
|
||||
d='M98.5909 100.668L5.12683 194.835C3.22886 196.747 4.58334 200 7.27759 200H192.8C195.483 200 196.842 196.77 194.967 194.852L102.908 100.685C101.726 99.4749 99.7824 99.4676 98.5909 100.668Z'
|
||||
fill='#F86606'
|
||||
/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id='clip0_267_4154'>
|
||||
<rect width='200' height='200' fill='white' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
interface StatusDotIconProps extends SVGProps<SVGSVGElement> {
|
||||
status: 'operational' | 'degraded' | 'outage' | 'maintenance' | 'loading' | 'error'
|
||||
}
|
||||
|
||||
export function StatusDotIcon({ status, className, ...props }: StatusDotIconProps) {
|
||||
const colors = {
|
||||
operational: '#10B981',
|
||||
degraded: '#F59E0B',
|
||||
outage: '#EF4444',
|
||||
maintenance: '#3B82F6',
|
||||
loading: '#9CA3AF',
|
||||
error: '#9CA3AF',
|
||||
}
|
||||
|
||||
return (
|
||||
<svg
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width={6}
|
||||
height={6}
|
||||
viewBox='0 0 6 6'
|
||||
fill='none'
|
||||
className={className}
|
||||
{...props}
|
||||
>
|
||||
<circle cx={3} cy={3} r={3} fill={colors[status]} />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { ComponentType, SVGProps } from 'react'
|
||||
import {
|
||||
AirtableIcon,
|
||||
ApifyIcon,
|
||||
ApolloIcon,
|
||||
ArxivIcon,
|
||||
AsanaIcon,
|
||||
@@ -37,8 +38,10 @@ import {
|
||||
JinaAIIcon,
|
||||
JiraIcon,
|
||||
LinearIcon,
|
||||
LinkedInIcon,
|
||||
LinkupIcon,
|
||||
MailchimpIcon,
|
||||
MailgunIcon,
|
||||
Mem0Icon,
|
||||
MicrosoftExcelIcon,
|
||||
MicrosoftOneDriveIcon,
|
||||
@@ -65,9 +68,12 @@ import {
|
||||
ResendIcon,
|
||||
S3Icon,
|
||||
SalesforceIcon,
|
||||
SearchIcon,
|
||||
SendgridIcon,
|
||||
SentryIcon,
|
||||
SerperIcon,
|
||||
SlackIcon,
|
||||
SmtpIcon,
|
||||
STTIcon,
|
||||
StagehandIcon,
|
||||
StripeIcon,
|
||||
@@ -117,10 +123,13 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
|
||||
stripe: StripeIcon,
|
||||
stagehand_agent: StagehandIcon,
|
||||
stagehand: StagehandIcon,
|
||||
smtp: SmtpIcon,
|
||||
slack: SlackIcon,
|
||||
sharepoint: MicrosoftSharepointIcon,
|
||||
serper: SerperIcon,
|
||||
sentry: SentryIcon,
|
||||
sendgrid: SendgridIcon,
|
||||
search: SearchIcon,
|
||||
salesforce: SalesforceIcon,
|
||||
s3: S3Icon,
|
||||
resend: ResendIcon,
|
||||
@@ -146,8 +155,10 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
|
||||
microsoft_excel: MicrosoftExcelIcon,
|
||||
memory: BrainIcon,
|
||||
mem0: Mem0Icon,
|
||||
mailgun: MailgunIcon,
|
||||
mailchimp: MailchimpIcon,
|
||||
linkup: LinkupIcon,
|
||||
linkedin: LinkedInIcon,
|
||||
linear: LinearIcon,
|
||||
knowledge: PackageSearchIcon,
|
||||
jira: JiraIcon,
|
||||
@@ -179,5 +190,6 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
|
||||
asana: AsanaIcon,
|
||||
arxiv: ArxivIcon,
|
||||
apollo: ApolloIcon,
|
||||
apify: ApifyIcon,
|
||||
airtable: AirtableIcon,
|
||||
}
|
||||
|
||||
89
apps/docs/content/docs/de/tools/apify.mdx
Normal file
89
apps/docs/content/docs/de/tools/apify.mdx
Normal file
@@ -0,0 +1,89 @@
|
||||
---
|
||||
title: Apify
|
||||
description: Führe Apify-Akteure aus und rufe Ergebnisse ab
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="apify"
|
||||
color="#E0E0E0"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Apify](https://apify.com/) ist eine leistungsstarke Plattform zum Erstellen, Bereitstellen und Ausführen von Web-Automatisierung und Web-Scraping-Akteuren im großen Maßstab. Apify ermöglicht es dir, nützliche Daten von jeder Website zu extrahieren, Arbeitsabläufe zu automatisieren und deine Datenpipelines nahtlos zu verbinden.
|
||||
|
||||
Mit Apify kannst du:
|
||||
|
||||
- **Vorgefertigte oder benutzerdefinierte Akteure ausführen**: Integriere öffentliche Akteure oder entwickle deine eigenen, um eine breite Palette von Webdatenextraktions- und Browser-Aufgaben zu automatisieren.
|
||||
- **Datensätze abrufen**: Greife auf strukturierte Datensätze zu, die von Akteuren in Echtzeit gesammelt wurden, und verwalte sie.
|
||||
- **Web-Automatisierung skalieren**: Nutze Cloud-Infrastruktur, um Aufgaben zuverlässig, asynchron oder synchron mit robuster Fehlerbehandlung auszuführen.
|
||||
|
||||
In Sim ermöglicht die Apify-Integration deinen Agenten, grundlegende Apify-Operationen programmatisch durchzuführen:
|
||||
|
||||
- **Akteur ausführen (Synchron)**: Verwende `apify_run_actor_sync`, um einen Apify-Akteur zu starten und auf dessen Abschluss zu warten, wobei die Ergebnisse sofort nach Beendigung des Laufs abgerufen werden.
|
||||
- **Akteur ausführen (Asynchron)**: Verwende `apify_run_actor_async`, um einen Akteur im Hintergrund zu starten und regelmäßig nach Ergebnissen zu fragen, was für längere oder komplexe Aufgaben geeignet ist.
|
||||
|
||||
Diese Operationen statten deine Agenten aus, um Datenerfassungs- oder Browser-Automatisierungsaufgaben direkt in Workflows zu automatisieren, zu scrapen und zu orchestrieren – alles mit flexibler Konfiguration und Ergebnisverarbeitung, ohne dass manuelle Ausführungen oder externe Tools erforderlich sind. Integriere Apify als dynamische Automatisierungs- und Datenextraktions-Engine, die programmatisch die webbasierten Workflows deiner Agenten antreibt.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Gebrauchsanweisung
|
||||
|
||||
Integriere Apify in deinen Workflow. Führe jeden Apify-Akteur mit benutzerdefinierter Eingabe aus und rufe Ergebnisse ab. Unterstützt sowohl synchrone als auch asynchrone Ausführung mit automatischem Datensatz-Abruf.
|
||||
|
||||
## Tools
|
||||
|
||||
### `apify_run_actor_sync`
|
||||
|
||||
Führe einen APIFY-Aktor synchron aus und erhalte Ergebnisse (maximal 5 Minuten)
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | APIFY API-Token von console.apify.com/account#/integrations |
|
||||
| `actorId` | string | Ja | Aktor-ID oder Benutzername/Aktor-Name \(z.B. "janedoe/my-actor" oder Aktor-ID\) |
|
||||
| `input` | string | Nein | Aktor-Eingabe als JSON-String. Siehe Aktor-Dokumentation für erforderliche Felder. |
|
||||
| `timeout` | number | Nein | Timeout in Sekunden \(Standard: Aktor-Standard\) |
|
||||
| `build` | string | Nein | Aktor-Build zum Ausführen \(z.B. "latest", "beta" oder Build-Tag/Nummer\) |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die Aktor-Ausführung erfolgreich war |
|
||||
| `runId` | string | APIFY-Ausführungs-ID |
|
||||
| `status` | string | Ausführungsstatus \(SUCCEEDED, FAILED, usw.\) |
|
||||
| `datasetId` | string | Dataset-ID mit Ergebnissen |
|
||||
| `items` | array | Dataset-Elemente \(falls abgeschlossen\) |
|
||||
|
||||
### `apify_run_actor_async`
|
||||
|
||||
Führe einen APIFY-Aktor asynchron mit Polling für lang laufende Aufgaben aus
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | APIFY API-Token von console.apify.com/account#/integrations |
|
||||
| `actorId` | string | Ja | Aktor-ID oder Benutzername/Aktor-Name \(z.B. "janedoe/my-actor" oder Aktor-ID\) |
|
||||
| `input` | string | Nein | Aktor-Eingabe als JSON-String |
|
||||
| `waitForFinish` | number | Nein | Anfängliche Wartezeit in Sekunden \(0-60\) bevor Polling beginnt |
|
||||
| `itemLimit` | number | Nein | Maximale Anzahl an Dataset-Elementen zum Abrufen \(1-250000, Standard 100\) |
|
||||
| `timeout` | number | Nein | Timeout in Sekunden \(Standard: Aktor-Standard\) |
|
||||
| `build` | string | Nein | Aktor-Build zum Ausführen \(z.B. "latest", "beta" oder Build-Tag/Nummer\) |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob der Actor-Lauf erfolgreich war |
|
||||
| `runId` | string | APIFY-Lauf-ID |
|
||||
| `status` | string | Laufstatus \(SUCCEEDED, FAILED, usw.\) |
|
||||
| `datasetId` | string | Dataset-ID mit Ergebnissen |
|
||||
| `items` | array | Dataset-Elemente \(falls abgeschlossen\) |
|
||||
|
||||
## Hinweise
|
||||
|
||||
- Kategorie: `tools`
|
||||
- Typ: `apify`
|
||||
83
apps/docs/content/docs/de/tools/linkedin.mdx
Normal file
83
apps/docs/content/docs/de/tools/linkedin.mdx
Normal file
@@ -0,0 +1,83 @@
|
||||
---
|
||||
title: LinkedIn
|
||||
description: Teilen Sie Beiträge und verwalten Sie Ihre LinkedIn-Präsenz
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="linkedin"
|
||||
color="#0072B1"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[LinkedIn](https://www.linkedin.com) ist die weltweit größte professionelle Netzwerkplattform, die Nutzern ermöglicht, ihre Karriere aufzubauen, sich mit ihrem Netzwerk zu verbinden und berufliche Inhalte zu teilen. LinkedIn wird von Fachleuten aus verschiedenen Branchen für persönliches Branding, Recruiting, Jobsuche und Geschäftsentwicklung genutzt.
|
||||
|
||||
Mit LinkedIn können Sie ganz einfach Beiträge in Ihrem persönlichen Feed teilen, um mit Ihrem Netzwerk in Kontakt zu treten, und auf Informationen über Ihr Profil zugreifen, um Ihre beruflichen Erfolge hervorzuheben. Die automatisierte Integration mit Sim ermöglicht es Ihnen, LinkedIn-Funktionen programmatisch zu nutzen – so können Agenten und Workflows Updates posten, über Ihre berufliche Präsenz berichten und Ihren Feed aktiv halten, ohne dass manuelle Arbeit erforderlich ist.
|
||||
|
||||
Zu den wichtigsten LinkedIn-Funktionen, die über diese Integration verfügbar sind, gehören:
|
||||
|
||||
- **Beiträge teilen:** Veröffentlichen Sie automatisch berufliche Updates, Artikel oder Ankündigungen in Ihrem persönlichen LinkedIn-Feed.
|
||||
- **Profilinformationen:** Rufen Sie detaillierte Informationen über Ihr LinkedIn-Profil ab, um diese zu überwachen oder in nachgelagerten Aufgaben innerhalb Ihrer Workflows zu verwenden.
|
||||
|
||||
Diese Funktionen machen es einfach, Ihr LinkedIn-Netzwerk zu pflegen und Ihre berufliche Reichweite effizient zu erweitern – als Teil Ihrer KI- oder Workflow-Automatisierungsstrategie.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Nutzungsanleitung
|
||||
|
||||
Integrieren Sie LinkedIn in Workflows. Teilen Sie Beiträge in Ihrem persönlichen Feed und greifen Sie auf Ihre LinkedIn-Profilinformationen zu.
|
||||
|
||||
## Tools
|
||||
|
||||
### `linkedin_share_post`
|
||||
|
||||
Einen Beitrag in Ihrem persönlichen LinkedIn-Feed teilen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `text` | string | Ja | Der Textinhalt Ihres LinkedIn-Beitrags |
|
||||
| `visibility` | string | Nein | Wer diesen Beitrag sehen kann: "PUBLIC" oder "CONNECTIONS" \(Standard: "PUBLIC"\) |
|
||||
| `request` | string | Nein | Keine Beschreibung |
|
||||
| `output` | string | Nein | Keine Beschreibung |
|
||||
| `output` | string | Nein | Keine Beschreibung |
|
||||
| `specificContent` | string | Nein | Keine Beschreibung |
|
||||
| `shareCommentary` | string | Nein | Keine Beschreibung |
|
||||
| `visibility` | string | Nein | Keine Beschreibung |
|
||||
| `headers` | string | Nein | Keine Beschreibung |
|
||||
| `output` | string | Nein | Keine Beschreibung |
|
||||
| `output` | string | Nein | Keine Beschreibung |
|
||||
| `output` | string | Nein | Keine Beschreibung |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Erfolgsstatus der Operation |
|
||||
| `postId` | string | Erstellte Beitrags-ID |
|
||||
| `profile` | json | LinkedIn-Profilinformationen |
|
||||
| `error` | string | Fehlermeldung bei fehlgeschlagener Operation |
|
||||
|
||||
### `linkedin_get_profile`
|
||||
|
||||
Rufen Sie Ihre LinkedIn-Profilinformationen ab
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Erfolgsstatus der Operation |
|
||||
| `postId` | string | Erstellte Beitrags-ID |
|
||||
| `profile` | json | LinkedIn-Profilinformationen |
|
||||
| `error` | string | Fehlermeldung bei fehlgeschlagener Operation |
|
||||
|
||||
## Hinweise
|
||||
|
||||
- Kategorie: `tools`
|
||||
- Typ: `linkedin`
|
||||
216
apps/docs/content/docs/de/tools/mailgun.mdx
Normal file
216
apps/docs/content/docs/de/tools/mailgun.mdx
Normal file
@@ -0,0 +1,216 @@
|
||||
---
|
||||
title: Mailgun
|
||||
description: E-Mails versenden und Mailinglisten mit Mailgun verwalten
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="mailgun"
|
||||
color="#F06248"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Mailgun](https://www.mailgun.com) ist ein leistungsstarker E-Mail-Zustelldienst, der für Entwickler und Unternehmen konzipiert wurde, um E-Mails mühelos zu versenden, zu empfangen und zu verfolgen. Mailgun ermöglicht es Ihnen, robuste APIs für zuverlässige Transaktions- und Marketing-E-Mails, flexible Mailinglisten-Verwaltung und fortschrittliches Event-Tracking zu nutzen.
|
||||
|
||||
Mit Mailguns umfassendem Funktionsumfang können Sie wichtige E-Mail-Operationen automatisieren und die Zustellbarkeit sowie das Engagement der Empfänger genau überwachen. Dies macht es zu einer idealen Lösung für Workflow-Automatisierung, bei der Kommunikation, Benachrichtigungen und Kampagnen-Mails zentrale Bestandteile Ihrer Prozesse sind.
|
||||
|
||||
Zu den wichtigsten Funktionen von Mailgun gehören:
|
||||
|
||||
- **Versand von Transaktions-E-Mails:** Zustellung von E-Mails mit hohem Volumen wie Kontobenachrichtigungen, Quittungen, Warnmeldungen und Passwort-Zurücksetzungen.
|
||||
- **Reichhaltige E-Mail-Inhalte:** Versenden Sie sowohl Nur-Text- als auch HTML-E-Mails und verwenden Sie Tags zur Kategorisierung und Verfolgung Ihrer Nachrichten.
|
||||
- **Mailinglisten-Verwaltung:** Erstellen, aktualisieren und verwalten Sie Mailinglisten und Mitglieder, um Gruppenkommunikation effizient zu versenden.
|
||||
- **Domain-Informationen:** Rufen Sie Details zu Ihren Sende-Domains ab, um Konfiguration und Zustand zu überwachen.
|
||||
- **Event-Tracking:** Analysieren Sie die Zustellbarkeit von E-Mails und das Engagement mit detaillierten Ereignisdaten zu gesendeten Nachrichten.
|
||||
- **Nachrichtenabruf:** Greifen Sie auf gespeicherte Nachrichten für Compliance-, Analyse- oder Fehlerbehebungszwecke zu.
|
||||
|
||||
Durch die Integration von Mailgun in Sim können Ihre Agenten programmatisch E-Mails versenden, E-Mail-Listen verwalten, auf Domain-Informationen zugreifen und Ereignisse in Echtzeit überwachen – als Teil automatisierter Workflows. Dies ermöglicht eine intelligente, datengesteuerte Interaktion mit Ihren Nutzern direkt aus Ihren KI-gestützten Prozessen heraus.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Nutzungsanleitung
|
||||
|
||||
Integrieren Sie Mailgun in Ihren Workflow. Senden Sie Transaktions-E-Mails, verwalten Sie Mailinglisten und Mitglieder, sehen Sie Domain-Informationen ein und verfolgen Sie E-Mail-Ereignisse. Unterstützt Text- und HTML-E-Mails, Tags für Tracking und umfassende Listenverwaltung.
|
||||
|
||||
## Tools
|
||||
|
||||
### `mailgun_send_message`
|
||||
|
||||
E-Mail über die Mailgun API versenden
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | Mailgun API-Schlüssel |
|
||||
| `domain` | string | Ja | Mailgun-Domain \(z.B. mg.example.com\) |
|
||||
| `from` | string | Ja | E-Mail-Adresse des Absenders |
|
||||
| `to` | string | Ja | E-Mail-Adresse des Empfängers \(durch Komma getrennt für mehrere\) |
|
||||
| `subject` | string | Ja | Betreff der E-Mail |
|
||||
| `text` | string | Nein | Nur-Text-Inhalt der E-Mail |
|
||||
| `html` | string | Nein | HTML-Inhalt der E-Mail |
|
||||
| `cc` | string | Nein | CC-E-Mail-Adresse \(durch Komma getrennt für mehrere\) |
|
||||
| `bcc` | string | Nein | BCC-E-Mail-Adresse \(durch Komma getrennt für mehrere\) |
|
||||
| `tags` | string | Nein | Tags für die E-Mail \(durch Komma getrennt\) |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die Nachricht erfolgreich gesendet wurde |
|
||||
| `id` | string | Nachrichten-ID |
|
||||
| `message` | string | Antwortnachricht von Mailgun |
|
||||
|
||||
### `mailgun_get_message`
|
||||
|
||||
Eine gespeicherte Nachricht anhand ihres Schlüssels abrufen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | Mailgun API-Schlüssel |
|
||||
| `domain` | string | Ja | Mailgun-Domain |
|
||||
| `messageKey` | string | Ja | Speicherschlüssel der Nachricht |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die Anfrage erfolgreich war |
|
||||
| `recipients` | string | Nachrichtenempfänger |
|
||||
| `from` | string | Absender-E-Mail |
|
||||
| `subject` | string | Nachrichtenbetreff |
|
||||
| `bodyPlain` | string | Nur-Text-Inhalt |
|
||||
| `strippedText` | string | Bereinigter Text |
|
||||
| `strippedSignature` | string | Bereinigte Signatur |
|
||||
| `bodyHtml` | string | HTML-Inhalt |
|
||||
| `strippedHtml` | string | Bereinigtes HTML |
|
||||
| `attachmentCount` | number | Anzahl der Anhänge |
|
||||
| `timestamp` | number | Nachrichtenzeitstempel |
|
||||
| `messageHeaders` | json | Nachrichtenheader |
|
||||
| `contentIdMap` | json | Content-ID-Zuordnung |
|
||||
|
||||
### `mailgun_list_messages`
|
||||
|
||||
Ereignisse (Logs) für über Mailgun gesendete Nachrichten auflisten
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | Mailgun API-Schlüssel |
|
||||
| `domain` | string | Ja | Mailgun-Domain |
|
||||
| `event` | string | Nein | Nach Ereignistyp filtern \(accepted, delivered, failed, opened, clicked, usw.\) |
|
||||
| `limit` | number | Nein | Maximale Anzahl der zurückzugebenden Ereignisse \(Standard: 100\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die Anfrage erfolgreich war |
|
||||
| `items` | json | Array von Ereigniselementen |
|
||||
| `paging` | json | Paginierungsinformationen |
|
||||
|
||||
### `mailgun_create_mailing_list`
|
||||
|
||||
Eine neue Mailingliste erstellen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | Mailgun API-Schlüssel |
|
||||
| `address` | string | Ja | Mailinglisten-Adresse \(z.B. liste@beispiel.com\) |
|
||||
| `name` | string | Nein | Name der Mailingliste |
|
||||
| `description` | string | Nein | Beschreibung der Mailingliste |
|
||||
| `accessLevel` | string | Nein | Zugriffsebene: readonly, members oder everyone |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die Liste erfolgreich erstellt wurde |
|
||||
| `message` | string | Antwortnachricht |
|
||||
| `list` | json | Details der erstellten Mailingliste |
|
||||
|
||||
### `mailgun_get_mailing_list`
|
||||
|
||||
Details einer Mailingliste abrufen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | Mailgun API-Schlüssel |
|
||||
| `address` | string | Ja | Mailinglisten-Adresse |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die Anfrage erfolgreich war |
|
||||
| `list` | json | Details der Mailingliste |
|
||||
|
||||
### `mailgun_add_list_member`
|
||||
|
||||
Ein Mitglied zu einer Mailingliste hinzufügen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | Mailgun API-Schlüssel |
|
||||
| `listAddress` | string | Ja | Mailinglisten-Adresse |
|
||||
| `address` | string | Ja | E-Mail-Adresse des Mitglieds |
|
||||
| `name` | string | Nein | Name des Mitglieds |
|
||||
| `vars` | string | Nein | JSON-String mit benutzerdefinierten Variablen |
|
||||
| `subscribed` | boolean | Nein | Ob das Mitglied abonniert ist |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob das Mitglied erfolgreich hinzugefügt wurde |
|
||||
| `message` | string | Antwortnachricht |
|
||||
| `member` | json | Details des hinzugefügten Mitglieds |
|
||||
|
||||
### `mailgun_list_domains`
|
||||
|
||||
Alle Domains für Ihr Mailgun-Konto auflisten
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | Mailgun API-Schlüssel |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die Anfrage erfolgreich war |
|
||||
| `totalCount` | number | Gesamtanzahl der Domains |
|
||||
| `items` | json | Array von Domain-Objekten |
|
||||
|
||||
### `mailgun_get_domain`
|
||||
|
||||
Details einer bestimmten Domain abrufen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | Mailgun API-Schlüssel |
|
||||
| `domain` | string | Ja | Domainname |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die Anfrage erfolgreich war |
|
||||
| `domain` | json | Domain-Details |
|
||||
|
||||
## Hinweise
|
||||
|
||||
- Kategorie: `tools`
|
||||
- Typ: `mailgun`
|
||||
54
apps/docs/content/docs/de/tools/search.mdx
Normal file
54
apps/docs/content/docs/de/tools/search.mdx
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
title: Suche
|
||||
description: Durchsuche das Web (0,01 $ pro Suche)
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="search"
|
||||
color="#3B82F6"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
Das **Suche**-Tool ermöglicht es dir, das Web innerhalb deiner Sim-Workflows mit hochmodernen Suchmaschinen zu durchsuchen. Nutze es, um die neuesten Informationen, Nachrichten, Fakten und Webinhalte direkt in deine Agenten, Automatisierungen oder Gespräche einzubinden.
|
||||
|
||||
- **Allgemeine Websuche**: Finde aktuelle Informationen aus dem Internet, um deine Workflows zu ergänzen.
|
||||
- **Automatisierte Abfragen**: Lass Agenten oder Programmlogik Suchanfragen stellen und die Ergebnisse automatisch verarbeiten.
|
||||
- **Strukturierte Ergebnisse**: Liefert die relevantesten Webergebnisse, einschließlich Titel, Link, Textauszug und Datum für jedes Ergebnis.
|
||||
|
||||
> **Hinweis:** Jede Suche kostet **0,01 $** pro Anfrage.
|
||||
|
||||
Dieses Tool ist ideal für jeden Workflow, bei dem deine Agenten Zugriff auf aktuelle Webdaten benötigen oder auf aktuelle Ereignisse verweisen, Recherchen durchführen oder ergänzende Inhalte abrufen müssen.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Nutzungsanleitung
|
||||
|
||||
Durchsuche das Web mit dem Suche-Tool. Jede Suche kostet 0,01 $ pro Anfrage.
|
||||
|
||||
## Tools
|
||||
|
||||
### `search_tool`
|
||||
|
||||
Durchsuche das Web. Liefert die relevantesten Webergebnisse, einschließlich Titel, Link, Textauszug und Datum für jedes Ergebnis.
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `query` | string | Ja | Die Suchanfrage |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `results` | json | Suchergebnisse |
|
||||
| `query` | string | Die Suchanfrage |
|
||||
| `totalResults` | number | Gesamtzahl der Ergebnisse |
|
||||
| `source` | string | Suchquelle \(exa\) |
|
||||
| `cost` | json | Kosteninformationen \(0,01 $\) |
|
||||
|
||||
## Notizen
|
||||
|
||||
- Kategorie: `tools`
|
||||
- Typ: `search`
|
||||
391
apps/docs/content/docs/de/tools/sendgrid.mdx
Normal file
391
apps/docs/content/docs/de/tools/sendgrid.mdx
Normal file
@@ -0,0 +1,391 @@
|
||||
---
|
||||
title: SendGrid
|
||||
description: Senden Sie E-Mails und verwalten Sie Kontakte, Listen und Vorlagen mit SendGrid
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="sendgrid"
|
||||
color="#1A82E2"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SendGrid](https://sendgrid.com) ist eine führende cloudbasierte E-Mail-Zustellplattform, der Entwickler und Unternehmen vertrauen, um zuverlässige Transaktions- und Marketing-E-Mails in großem Umfang zu versenden. Mit seinen robusten APIs und leistungsstarken Tools ermöglicht SendGrid die Verwaltung aller Aspekte Ihrer E-Mail-Kommunikation, vom Versenden von Benachrichtigungen und Quittungen bis hin zur Verwaltung komplexer Marketingkampagnen.
|
||||
|
||||
SendGrid bietet Benutzern eine vollständige Suite von E-Mail-Funktionen, mit denen Sie kritische E-Mail-Workflows automatisieren und Kontaktlisten, Vorlagen und Empfängerengagement genau verwalten können. Die nahtlose Integration mit Sim ermöglicht es Agenten und Workflows, gezielte Nachrichten zu versenden, dynamische Kontakt- und Empfängerlisten zu pflegen, personalisierte E-Mails über Vorlagen auszulösen und die Ergebnisse in Echtzeit zu verfolgen.
|
||||
|
||||
Zu den wichtigsten Funktionen von SendGrid gehören:
|
||||
|
||||
- **Transaktions-E-Mails:** Versenden Sie automatisierte und umfangreiche Transaktions-E-Mails (wie Benachrichtigungen, Quittungen und Passwort-Zurücksetzungen).
|
||||
- **Dynamische Vorlagen:** Verwenden Sie umfangreiche HTML- oder Textvorlagen mit dynamischen Daten für hochpersonalisierte Kommunikation im großen Maßstab.
|
||||
- **Kontaktverwaltung:** Fügen Sie Marketing-Kontakte hinzu und aktualisieren Sie diese, verwalten Sie Empfängerlisten und Zielsegmente für Kampagnen.
|
||||
- **Unterstützung für Anhänge:** Fügen Sie Ihren E-Mails einen oder mehrere Dateianhänge hinzu.
|
||||
- **Umfassende API-Abdeckung:** Verwalten Sie E-Mails, Kontakte, Listen, Vorlagen, Unterdrückungsgruppen und mehr programmatisch.
|
||||
|
||||
Durch die Verbindung von SendGrid mit Sim können Ihre Agenten:
|
||||
|
||||
- Sowohl einfache als auch fortgeschrittene (vorlagenbasierte oder an mehrere Empfänger gerichtete) E-Mails als Teil eines beliebigen Workflows versenden.
|
||||
- Kontakte und Listen automatisch verwalten und segmentieren.
|
||||
- Vorlagen für Konsistenz und dynamische Personalisierung nutzen.
|
||||
- E-Mail-Engagement innerhalb Ihrer automatisierten Prozesse verfolgen und darauf reagieren.
|
||||
|
||||
Diese Integration ermöglicht es Ihnen, alle kritischen Kommunikationsabläufe zu automatisieren, sicherzustellen, dass Nachrichten die richtige Zielgruppe erreichen, und die Kontrolle über die E-Mail-Strategie Ihrer Organisation direkt aus Sim-Workflows zu behalten.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Nutzungsanleitung
|
||||
|
||||
Integrieren Sie SendGrid in Ihren Workflow. Senden Sie transaktionale E-Mails, verwalten Sie Marketing-Kontakte und -Listen und arbeiten Sie mit E-Mail-Vorlagen. Unterstützt dynamische Vorlagen, Anhänge und umfassendes Kontaktmanagement.
|
||||
|
||||
## Tools
|
||||
|
||||
### `sendgrid_send_mail`
|
||||
|
||||
Eine E-Mail über die SendGrid API senden
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `from` | string | Ja | E-Mail-Adresse des Absenders \(muss in SendGrid verifiziert sein\) |
|
||||
| `fromName` | string | Nein | Name des Absenders |
|
||||
| `to` | string | Ja | E-Mail-Adresse des Empfängers |
|
||||
| `toName` | string | Nein | Name des Empfängers |
|
||||
| `subject` | string | Nein | E-Mail-Betreff \(erforderlich, es sei denn, es wird eine Vorlage mit vordefiniertem Betreff verwendet\) |
|
||||
| `content` | string | Nein | E-Mail-Inhalt \(erforderlich, es sei denn, es wird eine Vorlage mit vordefiniertem Inhalt verwendet\) |
|
||||
| `contentType` | string | Nein | Inhaltstyp \(text/plain oder text/html\) |
|
||||
| `cc` | string | Nein | CC E-Mail-Adresse |
|
||||
| `bcc` | string | Nein | BCC E-Mail-Adresse |
|
||||
| `replyTo` | string | Nein | Antwort-an E-Mail-Adresse |
|
||||
| `replyToName` | string | Nein | Antwort-an Name |
|
||||
| `attachments` | file[] | Nein | Dateien, die der E-Mail angehängt werden sollen |
|
||||
| `templateId` | string | Nein | Zu verwendende SendGrid-Vorlagen-ID |
|
||||
| `dynamicTemplateData` | json | Nein | JSON-Objekt mit dynamischen Vorlagendaten |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die E-Mail erfolgreich gesendet wurde |
|
||||
| `messageId` | string | SendGrid-Nachrichten-ID |
|
||||
| `to` | string | E-Mail-Adresse des Empfängers |
|
||||
| `subject` | string | E-Mail-Betreff |
|
||||
|
||||
### `sendgrid_add_contact`
|
||||
|
||||
Einen neuen Kontakt zu SendGrid hinzufügen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `email` | string | Ja | E-Mail-Adresse des Kontakts |
|
||||
| `firstName` | string | Nein | Vorname des Kontakts |
|
||||
| `lastName` | string | Nein | Nachname des Kontakts |
|
||||
| `customFields` | json | Nein | JSON-Objekt mit benutzerdefinierten Feld-Schlüssel-Wert-Paaren \(verwende Feld-IDs wie e1_T, e2_N, e3_D, nicht Feldnamen\) |
|
||||
| `listIds` | string | Nein | Kommagetrennte Listen-IDs, zu denen der Kontakt hinzugefügt werden soll |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | Job-ID zur Verfolgung der asynchronen Kontakterstellung |
|
||||
| `email` | string | E-Mail-Adresse des Kontakts |
|
||||
| `firstName` | string | Vorname des Kontakts |
|
||||
| `lastName` | string | Nachname des Kontakts |
|
||||
| `message` | string | Statusmeldung |
|
||||
|
||||
### `sendgrid_get_contact`
|
||||
|
||||
Einen bestimmten Kontakt anhand der ID von SendGrid abrufen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `contactId` | string | Ja | Kontakt-ID |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Kontakt-ID |
|
||||
| `email` | string | E-Mail-Adresse des Kontakts |
|
||||
| `firstName` | string | Vorname des Kontakts |
|
||||
| `lastName` | string | Nachname des Kontakts |
|
||||
| `createdAt` | string | Erstellungszeitstempel |
|
||||
| `updatedAt` | string | Zeitstempel der letzten Aktualisierung |
|
||||
| `listIds` | json | Array von Listen-IDs, zu denen der Kontakt gehört |
|
||||
| `customFields` | json | Benutzerdefinierte Feldwerte |
|
||||
|
||||
### `sendgrid_search_contacts`
|
||||
|
||||
Suche nach Kontakten in SendGrid mit einer Abfrage
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `query` | string | Ja | Suchabfrage (z.B. "email LIKE '%example.com%' AND CONTAINS(list_ids, 'list-id')") |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `contacts` | json | Array übereinstimmender Kontakte |
|
||||
| `contactCount` | number | Gesamtzahl der gefundenen Kontakte |
|
||||
|
||||
### `sendgrid_delete_contacts`
|
||||
|
||||
Einen oder mehrere Kontakte aus SendGrid löschen
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `contactIds` | string | Ja | Kommagetrennte Kontakt-IDs zum Löschen |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | Job-ID für die Löschanfrage |
|
||||
|
||||
### `sendgrid_create_list`
|
||||
|
||||
Erstellen einer neuen Kontaktliste in SendGrid
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `name` | string | Ja | Listenname |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Listen-ID |
|
||||
| `name` | string | Listenname |
|
||||
| `contactCount` | number | Anzahl der Kontakte in der Liste |
|
||||
|
||||
### `sendgrid_get_list`
|
||||
|
||||
Eine bestimmte Liste anhand der ID von SendGrid abrufen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `listId` | string | Ja | Listen-ID |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Listen-ID |
|
||||
| `name` | string | Listenname |
|
||||
| `contactCount` | number | Anzahl der Kontakte in der Liste |
|
||||
|
||||
### `sendgrid_list_all_lists`
|
||||
|
||||
Alle Kontaktlisten von SendGrid abrufen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `pageSize` | number | Nein | Anzahl der Listen, die pro Seite zurückgegeben werden sollen (Standard: 100) |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `lists` | json | Array von Listen |
|
||||
|
||||
### `sendgrid_delete_list`
|
||||
|
||||
Eine Kontaktliste von SendGrid löschen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `listId` | string | Ja | Listen-ID zum Löschen |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `message` | string | Erfolgsmeldung |
|
||||
|
||||
### `sendgrid_add_contacts_to_list`
|
||||
|
||||
Kontakte hinzufügen oder aktualisieren und einer Liste in SendGrid zuweisen (verwendet PUT /v3/marketing/contacts)
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `listId` | string | Ja | Listen-ID, zu der Kontakte hinzugefügt werden sollen |
|
||||
| `contacts` | json | Ja | JSON-Array von Kontaktobjekten. Jeder Kontakt muss mindestens Folgendes enthalten: E-Mail \(oder phone_number_id/external_id/anonymous_id\). Beispiel: \[\{"email": "user@example.com", "first_name": "John"\}\] |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | Job-ID zur Verfolgung des asynchronen Vorgangs |
|
||||
| `message` | string | Statusmeldung |
|
||||
|
||||
### `sendgrid_remove_contacts_from_list`
|
||||
|
||||
Kontakte aus einer bestimmten Liste in SendGrid entfernen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `listId` | string | Ja | Listen-ID |
|
||||
| `contactIds` | string | Ja | Kommagetrennte Kontakt-IDs, die aus der Liste entfernt werden sollen |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | Job-ID für die Anfrage |
|
||||
|
||||
### `sendgrid_create_template`
|
||||
|
||||
Eine neue E-Mail-Vorlage in SendGrid erstellen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `name` | string | Ja | Vorlagenname |
|
||||
| `generation` | string | Nein | Vorlagenerstellungstyp \(legacy oder dynamic, standard: dynamic\) |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Vorlagen-ID |
|
||||
| `name` | string | Vorlagenname |
|
||||
| `generation` | string | Vorlagenerstellung |
|
||||
| `updatedAt` | string | Zeitstempel der letzten Aktualisierung |
|
||||
| `versions` | json | Array von Vorlagenversionen |
|
||||
|
||||
### `sendgrid_get_template`
|
||||
|
||||
Eine bestimmte Vorlage anhand der ID von SendGrid abrufen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `templateId` | string | Ja | Vorlagen-ID |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Vorlagen-ID |
|
||||
| `name` | string | Vorlagenname |
|
||||
| `generation` | string | Vorlagenerstellung |
|
||||
| `updatedAt` | string | Zeitstempel der letzten Aktualisierung |
|
||||
| `versions` | json | Array von Vorlagenversionen |
|
||||
|
||||
### `sendgrid_list_templates`
|
||||
|
||||
Alle E-Mail-Vorlagen von SendGrid abrufen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `generations` | string | Nein | Nach Generation filtern (legacy, dynamic oder beides) |
|
||||
| `pageSize` | number | Nein | Anzahl der Vorlagen pro Seite (Standard: 20) |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `templates` | json | Array von Vorlagen |
|
||||
|
||||
### `sendgrid_delete_template`
|
||||
|
||||
Eine E-Mail-Vorlage von SendGrid löschen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `templateId` | string | Ja | Zu löschende Vorlagen-ID |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Erfolgsstatus der Operation |
|
||||
| `messageId` | string | E-Mail-Nachrichten-ID (send_mail) |
|
||||
| `id` | string | Ressourcen-ID |
|
||||
| `jobId` | string | Job-ID für asynchrone Operationen |
|
||||
| `email` | string | E-Mail-Adresse |
|
||||
| `firstName` | string | Vorname |
|
||||
| `lastName` | string | Nachname |
|
||||
| `contacts` | json | Array von Kontakten |
|
||||
| `contactCount` | number | Anzahl der Kontakte |
|
||||
| `lists` | json | Array von Listen |
|
||||
| `templates` | json | Array von Vorlagen |
|
||||
| `message` | string | Status- oder Erfolgsmeldung |
|
||||
| `name` | string | Ressourcenname |
|
||||
| `generation` | string | Vorlagengeneration |
|
||||
|
||||
### `sendgrid_create_template_version`
|
||||
|
||||
Eine neue Version einer E-Mail-Vorlage in SendGrid erstellen
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Ja | SendGrid API-Schlüssel |
|
||||
| `templateId` | string | Ja | Vorlagen-ID |
|
||||
| `name` | string | Ja | Versionsname |
|
||||
| `subject` | string | Ja | E-Mail-Betreffzeile |
|
||||
| `htmlContent` | string | Nein | HTML-Inhalt der Vorlage |
|
||||
| `plainContent` | string | Nein | Nur-Text-Inhalt der Vorlage |
|
||||
| `active` | boolean | Nein | Ob diese Version aktiv ist \(Standard: true\) |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Versions-ID |
|
||||
| `templateId` | string | Vorlagen-ID |
|
||||
| `name` | string | Versionsname |
|
||||
| `subject` | string | E-Mail-Betreff |
|
||||
| `active` | boolean | Ob diese Version aktiv ist |
|
||||
| `htmlContent` | string | HTML-Inhalt |
|
||||
| `plainContent` | string | Nur-Text-Inhalt |
|
||||
| `updatedAt` | string | Zeitstempel der letzten Aktualisierung |
|
||||
|
||||
## Hinweise
|
||||
|
||||
- Kategorie: `tools`
|
||||
- Typ: `sendgrid`
|
||||
73
apps/docs/content/docs/de/tools/smtp.mdx
Normal file
73
apps/docs/content/docs/de/tools/smtp.mdx
Normal file
@@ -0,0 +1,73 @@
|
||||
---
|
||||
title: SMTP
|
||||
description: E-Mails über jeden SMTP-Mailserver versenden
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="smtp"
|
||||
color="#4A5568"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SMTP (Simple Mail Transfer Protocol)](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) ist der grundlegende Standard für die E-Mail-Übertragung im Internet. Durch die Verbindung mit einem SMTP-kompatiblen Server – wie Gmail, Outlook oder der eigenen Mail-Infrastruktur Ihrer Organisation – können Sie E-Mails programmatisch versenden und Ihre ausgehende Kommunikation automatisieren.
|
||||
|
||||
Die SMTP-Integration ermöglicht es Ihnen, den E-Mail-Versand durch direkte Serververbindung vollständig anzupassen und unterstützt sowohl einfache als auch fortgeschrittene E-Mail-Anwendungsfälle. Mit SMTP können Sie jeden Aspekt der Nachrichtenzustellung, des Empfängermanagements und der Inhaltsformatierung kontrollieren, was es ideal für transaktionale Benachrichtigungen, Massenmailings und jeden automatisierten Workflow macht, der eine robuste ausgehende E-Mail-Zustellung erfordert.
|
||||
|
||||
**Zu den wichtigsten Funktionen der SMTP-Integration gehören:**
|
||||
|
||||
- **Universeller E-Mail-Versand:** Senden Sie E-Mails über jeden SMTP-Server durch Konfiguration standardmäßiger Serververbindungsparameter.
|
||||
- **Anpassbare Absender und Empfänger:** Legen Sie Absenderadresse, Anzeigename, Hauptempfänger sowie CC- und BCC-Felder fest.
|
||||
- **Unterstützung für umfangreiche Inhalte:** Senden Sie Nur-Text- oder reich formatierte HTML-E-Mails entsprechend Ihren Anforderungen.
|
||||
- **Anhänge:** Fügen Sie ausgehenden E-Mails mehrere Dateien als Anhänge hinzu.
|
||||
- **Flexible Sicherheit:** Verbinden Sie sich über TLS, SSL oder Standardprotokolle (unverschlüsselt), je nach Unterstützung Ihres SMTP-Anbieters.
|
||||
- **Erweiterte Header:** Setzen Sie Antwort-an-Header und andere erweiterte E-Mail-Optionen, um komplexe Mailflows und Benutzerinteraktionen zu ermöglichen.
|
||||
|
||||
Durch die Integration von SMTP mit Sim können Agenten und Workflows programmatisch E-Mails als Teil jedes automatisierten Prozesses versenden – von Benachrichtigungen und Bestätigungen bis hin zur Automatisierung externer Kommunikation, Berichterstattung und Dokumentenzustellung. Dies bietet einen hochflexiblen, anbieterunabhängigen Ansatz zur Verwaltung von E-Mails direkt innerhalb Ihrer KI-gesteuerten Prozesse.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Gebrauchsanweisung
|
||||
|
||||
Senden Sie E-Mails über jeden SMTP-Server (Gmail, Outlook, benutzerdefinierte Server usw.). Konfigurieren Sie SMTP-Verbindungseinstellungen und senden Sie E-Mails mit voller Kontrolle über Inhalt, Empfänger und Anhänge.
|
||||
|
||||
## Tools
|
||||
|
||||
### `smtp_send_mail`
|
||||
|
||||
E-Mails über SMTP-Server senden
|
||||
|
||||
#### Eingabe
|
||||
|
||||
| Parameter | Typ | Erforderlich | Beschreibung |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `smtpHost` | string | Ja | SMTP-Server-Hostname \(z.B. smtp.gmail.com\) |
|
||||
| `smtpPort` | number | Ja | SMTP-Server-Port \(587 für TLS, 465 für SSL\) |
|
||||
| `smtpUsername` | string | Ja | SMTP-Authentifizierungsbenutzername |
|
||||
| `smtpPassword` | string | Ja | SMTP-Authentifizierungspasswort |
|
||||
| `smtpSecure` | string | Ja | Sicherheitsprotokoll \(TLS, SSL oder None\) |
|
||||
| `from` | string | Ja | Absender-E-Mail-Adresse |
|
||||
| `to` | string | Ja | Empfänger-E-Mail-Adresse |
|
||||
| `subject` | string | Ja | E-Mail-Betreff |
|
||||
| `body` | string | Ja | E-Mail-Inhalt |
|
||||
| `contentType` | string | Nein | Inhaltstyp \(text oder html\) |
|
||||
| `fromName` | string | Nein | Anzeigename für Absender |
|
||||
| `cc` | string | Nein | CC-Empfänger \(durch Komma getrennt\) |
|
||||
| `bcc` | string | Nein | BCC-Empfänger \(durch Komma getrennt\) |
|
||||
| `replyTo` | string | Nein | Antwort-an E-Mail-Adresse |
|
||||
| `attachments` | file[] | Nein | Dateien, die der E-Mail angehängt werden sollen |
|
||||
|
||||
#### Ausgabe
|
||||
|
||||
| Parameter | Typ | Beschreibung |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Ob die E-Mail erfolgreich gesendet wurde |
|
||||
| `messageId` | string | Nachrichten-ID vom SMTP-Server |
|
||||
| `to` | string | Empfänger-E-Mail-Adresse |
|
||||
| `subject` | string | E-Mail-Betreff |
|
||||
| `error` | string | Fehlermeldung, wenn das Senden fehlgeschlagen ist |
|
||||
|
||||
## Notizen
|
||||
|
||||
- Kategorie: `tools`
|
||||
- Typ: `smtp`
|
||||
94
apps/docs/content/docs/en/tools/apify.mdx
Normal file
94
apps/docs/content/docs/en/tools/apify.mdx
Normal file
@@ -0,0 +1,94 @@
|
||||
---
|
||||
title: Apify
|
||||
description: Run Apify actors and retrieve results
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="apify"
|
||||
color="#E0E0E0"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Apify](https://apify.com/) is a powerful platform for building, deploying, and running web automation and web scraping actors at scale. Apify enables you to extract useful data from any website, automate workflows, and connect your data pipelines seamlessly.
|
||||
|
||||
With Apify, you can:
|
||||
|
||||
- **Run ready-made or custom actors**: Integrate public actors or develop your own, automating a wide range of web data extraction and browser tasks.
|
||||
- **Retrieve datasets**: Access and manage structured datasets collected by actors in real time.
|
||||
- **Scale web automation**: Leverage cloud infrastructure to run tasks reliably, asynchronously or synchronously, with robust error handling.
|
||||
|
||||
In Sim, the Apify integration allows your agents to perform core Apify operations programmatically:
|
||||
|
||||
- **Run Actor (Sync)**: Use `apify_run_actor_sync` to launch an Apify actor and wait for its completion, retrieving the results as soon as the run finishes.
|
||||
- **Run Actor (Async)**: Use `apify_run_actor_async` to start an actor in the background and periodically poll for results, suitable for longer or complex jobs.
|
||||
|
||||
These operations equip your agents to automate, scrape, and orchestrate data collection or browser automation tasks directly inside workflows — all with flexible configuration and result handling, without the need for manual runs or external tools. Integrate Apify as a dynamic automation and data-extraction engine that programmatically powers your agents' web-scale workflows.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
|
||||
## Usage Instructions
|
||||
|
||||
Integrate Apify into your workflow. Run any Apify actor with custom input and retrieve results. Supports both synchronous and asynchronous execution with automatic dataset fetching.
|
||||
|
||||
|
||||
|
||||
## Tools
|
||||
|
||||
### `apify_run_actor_sync`
|
||||
|
||||
Run an APIFY actor synchronously and get results (max 5 minutes)
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | APIFY API token from console.apify.com/account#/integrations |
|
||||
| `actorId` | string | Yes | Actor ID or username/actor-name \(e.g., "janedoe/my-actor" or actor ID\) |
|
||||
| `input` | string | No | Actor input as JSON string. See actor documentation for required fields. |
|
||||
| `timeout` | number | No | Timeout in seconds \(default: actor default\) |
|
||||
| `build` | string | No | Actor build to run \(e.g., "latest", "beta", or build tag/number\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the actor run succeeded |
|
||||
| `runId` | string | APIFY run ID |
|
||||
| `status` | string | Run status \(SUCCEEDED, FAILED, etc.\) |
|
||||
| `datasetId` | string | Dataset ID containing results |
|
||||
| `items` | array | Dataset items \(if completed\) |
|
||||
|
||||
### `apify_run_actor_async`
|
||||
|
||||
Run an APIFY actor asynchronously with polling for long-running tasks
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | APIFY API token from console.apify.com/account#/integrations |
|
||||
| `actorId` | string | Yes | Actor ID or username/actor-name \(e.g., "janedoe/my-actor" or actor ID\) |
|
||||
| `input` | string | No | Actor input as JSON string |
|
||||
| `waitForFinish` | number | No | Initial wait time in seconds \(0-60\) before polling starts |
|
||||
| `itemLimit` | number | No | Max dataset items to fetch \(1-250000, default 100\) |
|
||||
| `timeout` | number | No | Timeout in seconds \(default: actor default\) |
|
||||
| `build` | string | No | Actor build to run \(e.g., "latest", "beta", or build tag/number\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the actor run succeeded |
|
||||
| `runId` | string | APIFY run ID |
|
||||
| `status` | string | Run status \(SUCCEEDED, FAILED, etc.\) |
|
||||
| `datasetId` | string | Dataset ID containing results |
|
||||
| `items` | array | Dataset items \(if completed\) |
|
||||
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
- Category: `tools`
|
||||
- Type: `apify`
|
||||
88
apps/docs/content/docs/en/tools/linkedin.mdx
Normal file
88
apps/docs/content/docs/en/tools/linkedin.mdx
Normal file
@@ -0,0 +1,88 @@
|
||||
---
|
||||
title: LinkedIn
|
||||
description: Share posts and manage your LinkedIn presence
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="linkedin"
|
||||
color="#0072B1"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[LinkedIn](https://www.linkedin.com) is the world’s largest professional networking platform, empowering users to build their careers, connect with their network, and share professional content. LinkedIn is widely used by professionals across industries for personal branding, recruiting, job search, and business development.
|
||||
|
||||
With LinkedIn, you can easily share posts to your personal feed to engage with your network, and access information about your profile to highlight your professional achievements. Automated integration with Sim allows you to leverage LinkedIn functionality programmatically—enabling agents and workflows to post updates, report on your professional presence, and keep your feed active without manual effort.
|
||||
|
||||
Key LinkedIn features available through this integration include:
|
||||
|
||||
- **Share Posts:** Automatically publish professional updates, articles, or announcements to your LinkedIn personal feed.
|
||||
- **Profile Information:** Retrieve detailed information about your LinkedIn profile to monitor or use in downstream tasks within your workflows.
|
||||
|
||||
These capabilities make it easy to keep your LinkedIn network engaged and to extend your professional reach efficiently as part of your AI or workflow automation strategy.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
|
||||
## Usage Instructions
|
||||
|
||||
Integrate LinkedIn into workflows. Share posts to your personal feed and access your LinkedIn profile information.
|
||||
|
||||
|
||||
|
||||
## Tools
|
||||
|
||||
### `linkedin_share_post`
|
||||
|
||||
Share a post to your personal LinkedIn feed
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `text` | string | Yes | The text content of your LinkedIn post |
|
||||
| `visibility` | string | No | Who can see this post: "PUBLIC" or "CONNECTIONS" \(default: "PUBLIC"\) |
|
||||
| `request` | string | No | No description |
|
||||
| `output` | string | No | No description |
|
||||
| `output` | string | No | No description |
|
||||
| `specificContent` | string | No | No description |
|
||||
| `shareCommentary` | string | No | No description |
|
||||
| `visibility` | string | No | No description |
|
||||
| `headers` | string | No | No description |
|
||||
| `output` | string | No | No description |
|
||||
| `output` | string | No | No description |
|
||||
| `output` | string | No | No description |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Operation success status |
|
||||
| `postId` | string | Created post ID |
|
||||
| `profile` | json | LinkedIn profile information |
|
||||
| `error` | string | Error message if operation failed |
|
||||
|
||||
### `linkedin_get_profile`
|
||||
|
||||
Retrieve your LinkedIn profile information
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Operation success status |
|
||||
| `postId` | string | Created post ID |
|
||||
| `profile` | json | LinkedIn profile information |
|
||||
| `error` | string | Error message if operation failed |
|
||||
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
- Category: `tools`
|
||||
- Type: `linkedin`
|
||||
221
apps/docs/content/docs/en/tools/mailgun.mdx
Normal file
221
apps/docs/content/docs/en/tools/mailgun.mdx
Normal file
@@ -0,0 +1,221 @@
|
||||
---
|
||||
title: Mailgun
|
||||
description: Send emails and manage mailing lists with Mailgun
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="mailgun"
|
||||
color="#F06248"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Mailgun](https://www.mailgun.com) is a powerful email delivery service designed for developers and businesses to send, receive, and track emails effortlessly. Mailgun enables you to leverage robust APIs for reliable transactional and marketing email, flexible mailing list management, and advanced event tracking.
|
||||
|
||||
With Mailgun's comprehensive feature set, you can automate key email operations and closely monitor deliverability and recipient engagement. This makes it an ideal solution for workflow automation where communications, notifications, and campaign mails are core parts of your processes.
|
||||
|
||||
Key features of Mailgun include:
|
||||
|
||||
- **Transactional Email Sending:** Deliver high-volume emails such as account notifications, receipts, alerts, and password resets.
|
||||
- **Rich Email Content:** Send both plain text and HTML emails, and use tags for categorizing and tracking your messages.
|
||||
- **Mailing List Management:** Create, update, and manage mailing lists and members to send grouped communications efficiently.
|
||||
- **Domain Information:** Retrieve details about your sending domains to monitor configuration and health.
|
||||
- **Event Tracking:** Analyze email deliverability and engagement with detailed event data on sent messages.
|
||||
- **Message Retrieval:** Access stored messages for compliance, analysis, or troubleshooting needs.
|
||||
|
||||
By integrating Mailgun into Sim, your agents are empowered to programmatically send emails, manage email lists, access domain information, and monitor real-time events as part of automated workflows. This allows for intelligent, data-driven engagement with your users directly from your AI-powered processes.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
|
||||
## Usage Instructions
|
||||
|
||||
Integrate Mailgun into your workflow. Send transactional emails, manage mailing lists and members, view domain information, and track email events. Supports text and HTML emails, tags for tracking, and comprehensive list management.
|
||||
|
||||
|
||||
|
||||
## Tools
|
||||
|
||||
### `mailgun_send_message`
|
||||
|
||||
Send an email using Mailgun API
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | Mailgun API key |
|
||||
| `domain` | string | Yes | Mailgun domain \(e.g., mg.example.com\) |
|
||||
| `from` | string | Yes | Sender email address |
|
||||
| `to` | string | Yes | Recipient email address \(comma-separated for multiple\) |
|
||||
| `subject` | string | Yes | Email subject |
|
||||
| `text` | string | No | Plain text body of the email |
|
||||
| `html` | string | No | HTML body of the email |
|
||||
| `cc` | string | No | CC email address \(comma-separated for multiple\) |
|
||||
| `bcc` | string | No | BCC email address \(comma-separated for multiple\) |
|
||||
| `tags` | string | No | Tags for the email \(comma-separated\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the message was sent successfully |
|
||||
| `id` | string | Message ID |
|
||||
| `message` | string | Response message from Mailgun |
|
||||
|
||||
### `mailgun_get_message`
|
||||
|
||||
Retrieve a stored message by its key
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | Mailgun API key |
|
||||
| `domain` | string | Yes | Mailgun domain |
|
||||
| `messageKey` | string | Yes | Message storage key |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the request was successful |
|
||||
| `recipients` | string | Message recipients |
|
||||
| `from` | string | Sender email |
|
||||
| `subject` | string | Message subject |
|
||||
| `bodyPlain` | string | Plain text body |
|
||||
| `strippedText` | string | Stripped text |
|
||||
| `strippedSignature` | string | Stripped signature |
|
||||
| `bodyHtml` | string | HTML body |
|
||||
| `strippedHtml` | string | Stripped HTML |
|
||||
| `attachmentCount` | number | Number of attachments |
|
||||
| `timestamp` | number | Message timestamp |
|
||||
| `messageHeaders` | json | Message headers |
|
||||
| `contentIdMap` | json | Content ID map |
|
||||
|
||||
### `mailgun_list_messages`
|
||||
|
||||
List events (logs) for messages sent through Mailgun
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | Mailgun API key |
|
||||
| `domain` | string | Yes | Mailgun domain |
|
||||
| `event` | string | No | Filter by event type \(accepted, delivered, failed, opened, clicked, etc.\) |
|
||||
| `limit` | number | No | Maximum number of events to return \(default: 100\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the request was successful |
|
||||
| `items` | json | Array of event items |
|
||||
| `paging` | json | Paging information |
|
||||
|
||||
### `mailgun_create_mailing_list`
|
||||
|
||||
Create a new mailing list
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | Mailgun API key |
|
||||
| `address` | string | Yes | Mailing list address \(e.g., list@example.com\) |
|
||||
| `name` | string | No | Mailing list name |
|
||||
| `description` | string | No | Mailing list description |
|
||||
| `accessLevel` | string | No | Access level: readonly, members, or everyone |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the list was created successfully |
|
||||
| `message` | string | Response message |
|
||||
| `list` | json | Created mailing list details |
|
||||
|
||||
### `mailgun_get_mailing_list`
|
||||
|
||||
Get details of a mailing list
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | Mailgun API key |
|
||||
| `address` | string | Yes | Mailing list address |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the request was successful |
|
||||
| `list` | json | Mailing list details |
|
||||
|
||||
### `mailgun_add_list_member`
|
||||
|
||||
Add a member to a mailing list
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | Mailgun API key |
|
||||
| `listAddress` | string | Yes | Mailing list address |
|
||||
| `address` | string | Yes | Member email address |
|
||||
| `name` | string | No | Member name |
|
||||
| `vars` | string | No | JSON string of custom variables |
|
||||
| `subscribed` | boolean | No | Whether the member is subscribed |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the member was added successfully |
|
||||
| `message` | string | Response message |
|
||||
| `member` | json | Added member details |
|
||||
|
||||
### `mailgun_list_domains`
|
||||
|
||||
List all domains for your Mailgun account
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | Mailgun API key |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the request was successful |
|
||||
| `totalCount` | number | Total number of domains |
|
||||
| `items` | json | Array of domain objects |
|
||||
|
||||
### `mailgun_get_domain`
|
||||
|
||||
Get details of a specific domain
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | Mailgun API key |
|
||||
| `domain` | string | Yes | Domain name |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the request was successful |
|
||||
| `domain` | json | Domain details |
|
||||
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
- Category: `tools`
|
||||
- Type: `mailgun`
|
||||
@@ -2,6 +2,7 @@
|
||||
"pages": [
|
||||
"index",
|
||||
"airtable",
|
||||
"apify",
|
||||
"apollo",
|
||||
"arxiv",
|
||||
"asana",
|
||||
@@ -33,8 +34,10 @@
|
||||
"jira",
|
||||
"knowledge",
|
||||
"linear",
|
||||
"linkedin",
|
||||
"linkup",
|
||||
"mailchimp",
|
||||
"mailgun",
|
||||
"mem0",
|
||||
"memory",
|
||||
"microsoft_excel",
|
||||
@@ -60,10 +63,13 @@
|
||||
"resend",
|
||||
"s3",
|
||||
"salesforce",
|
||||
"search",
|
||||
"sendgrid",
|
||||
"sentry",
|
||||
"serper",
|
||||
"sharepoint",
|
||||
"slack",
|
||||
"smtp",
|
||||
"stagehand",
|
||||
"stagehand_agent",
|
||||
"stripe",
|
||||
|
||||
59
apps/docs/content/docs/en/tools/search.mdx
Normal file
59
apps/docs/content/docs/en/tools/search.mdx
Normal file
@@ -0,0 +1,59 @@
|
||||
---
|
||||
title: Search
|
||||
description: Search the web ($0.01 per search)
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="search"
|
||||
color="#3B82F6"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
The **Search** tool lets you search the web from within your Sim workflows using state-of-the-art search engines. Use it to pull in the latest information, news, facts, and web content directly into your agents, automations, or conversations.
|
||||
|
||||
- **General web search**: Find up-to-date information from the internet to supplement your workflows.
|
||||
- **Automated queries**: Let agents or program logic submit search queries and handle the results automatically.
|
||||
- **Structured results**: Returns the most relevant web results, including title, link, snippet, and date for each result.
|
||||
|
||||
> **Note:** Each search costs **$0.01** per query.
|
||||
|
||||
This tool is ideal for any workflow where your agents need access to live web data or must reference current events, perform research, or fetch supplemental content.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
|
||||
## Usage Instructions
|
||||
|
||||
Search the web using the Search tool. Each search costs $0.01 per query.
|
||||
|
||||
|
||||
|
||||
## Tools
|
||||
|
||||
### `search_tool`
|
||||
|
||||
Search the web. Returns the most relevant web results, including title, link, snippet, and date for each result.
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `query` | string | Yes | The search query |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `results` | json | Search results |
|
||||
| `query` | string | The search query |
|
||||
| `totalResults` | number | Total number of results |
|
||||
| `source` | string | Search source \(exa\) |
|
||||
| `cost` | json | Cost information \($0.01\) |
|
||||
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
- Category: `tools`
|
||||
- Type: `search`
|
||||
396
apps/docs/content/docs/en/tools/sendgrid.mdx
Normal file
396
apps/docs/content/docs/en/tools/sendgrid.mdx
Normal file
@@ -0,0 +1,396 @@
|
||||
---
|
||||
title: SendGrid
|
||||
description: Send emails and manage contacts, lists, and templates with SendGrid
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="sendgrid"
|
||||
color="#1A82E2"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SendGrid](https://sendgrid.com) is a leading cloud-based email delivery platform trusted by developers and businesses to send reliable transactional and marketing emails at scale. With its robust APIs and powerful tools, SendGrid enables you to manage all aspects of your email communication, from sending notifications and receipts to managing complex marketing campaigns.
|
||||
|
||||
SendGrid empowers users with a full suite of email operations, allowing you to automate critical email workflows and closely manage contact lists, templates, and recipient engagement. Its seamless integration with Sim enables agents and workflows to deliver targeted messages, maintain dynamic contact and recipient lists, trigger personalized emails through templates, and track the results in real time.
|
||||
|
||||
Key features of SendGrid include:
|
||||
|
||||
- **Transactional Email:** Send automated and high-volume transactional emails (like notifications, receipts, and password resets).
|
||||
- **Dynamic Templates:** Use rich HTML or text templates with dynamic data for highly personalized communication at scale.
|
||||
- **Contact Management:** Add and update marketing contacts, manage recipient lists, and target segments for campaigns.
|
||||
- **Attachments Support:** Include one or more file attachments in your emails.
|
||||
- **Comprehensive API Coverage:** Programmatically manage emails, contacts, lists, templates, suppression groups, and more.
|
||||
|
||||
By connecting SendGrid with Sim, your agents can:
|
||||
|
||||
- Send both simple and advanced (templated or multi-recipient) emails as part of any workflow.
|
||||
- Manage and segment contacts and lists automatically.
|
||||
- Leverage templates for consistency and dynamic personalization.
|
||||
- Track and respond to email engagement within your automated processes.
|
||||
|
||||
This integration allows you to automate all critical communication flows, ensure messages reach the right audience, and maintain control over your organization’s email strategy, directly from Sim workflows.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
|
||||
## Usage Instructions
|
||||
|
||||
Integrate SendGrid into your workflow. Send transactional emails, manage marketing contacts and lists, and work with email templates. Supports dynamic templates, attachments, and comprehensive contact management.
|
||||
|
||||
|
||||
|
||||
## Tools
|
||||
|
||||
### `sendgrid_send_mail`
|
||||
|
||||
Send an email using SendGrid API
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `from` | string | Yes | Sender email address \(must be verified in SendGrid\) |
|
||||
| `fromName` | string | No | Sender name |
|
||||
| `to` | string | Yes | Recipient email address |
|
||||
| `toName` | string | No | Recipient name |
|
||||
| `subject` | string | No | Email subject \(required unless using a template with pre-defined subject\) |
|
||||
| `content` | string | No | Email body content \(required unless using a template with pre-defined content\) |
|
||||
| `contentType` | string | No | Content type \(text/plain or text/html\) |
|
||||
| `cc` | string | No | CC email address |
|
||||
| `bcc` | string | No | BCC email address |
|
||||
| `replyTo` | string | No | Reply-to email address |
|
||||
| `replyToName` | string | No | Reply-to name |
|
||||
| `attachments` | file[] | No | Files to attach to the email |
|
||||
| `templateId` | string | No | SendGrid template ID to use |
|
||||
| `dynamicTemplateData` | json | No | JSON object of dynamic template data |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the email was sent successfully |
|
||||
| `messageId` | string | SendGrid message ID |
|
||||
| `to` | string | Recipient email address |
|
||||
| `subject` | string | Email subject |
|
||||
|
||||
### `sendgrid_add_contact`
|
||||
|
||||
Add a new contact to SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `email` | string | Yes | Contact email address |
|
||||
| `firstName` | string | No | Contact first name |
|
||||
| `lastName` | string | No | Contact last name |
|
||||
| `customFields` | json | No | JSON object of custom field key-value pairs \(use field IDs like e1_T, e2_N, e3_D, not field names\) |
|
||||
| `listIds` | string | No | Comma-separated list IDs to add the contact to |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | Job ID for tracking the async contact creation |
|
||||
| `email` | string | Contact email address |
|
||||
| `firstName` | string | Contact first name |
|
||||
| `lastName` | string | Contact last name |
|
||||
| `message` | string | Status message |
|
||||
|
||||
### `sendgrid_get_contact`
|
||||
|
||||
Get a specific contact by ID from SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `contactId` | string | Yes | Contact ID |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Contact ID |
|
||||
| `email` | string | Contact email address |
|
||||
| `firstName` | string | Contact first name |
|
||||
| `lastName` | string | Contact last name |
|
||||
| `createdAt` | string | Creation timestamp |
|
||||
| `updatedAt` | string | Last update timestamp |
|
||||
| `listIds` | json | Array of list IDs the contact belongs to |
|
||||
| `customFields` | json | Custom field values |
|
||||
|
||||
### `sendgrid_search_contacts`
|
||||
|
||||
Search for contacts in SendGrid using a query
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `query` | string | Yes | Search query \(e.g., \"email LIKE '%example.com%' AND CONTAINS\(list_ids, 'list-id'\)\"\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `contacts` | json | Array of matching contacts |
|
||||
| `contactCount` | number | Total number of contacts found |
|
||||
|
||||
### `sendgrid_delete_contacts`
|
||||
|
||||
Delete one or more contacts from SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `contactIds` | string | Yes | Comma-separated contact IDs to delete |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | Job ID for the deletion request |
|
||||
|
||||
### `sendgrid_create_list`
|
||||
|
||||
Create a new contact list in SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `name` | string | Yes | List name |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | List ID |
|
||||
| `name` | string | List name |
|
||||
| `contactCount` | number | Number of contacts in the list |
|
||||
|
||||
### `sendgrid_get_list`
|
||||
|
||||
Get a specific list by ID from SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `listId` | string | Yes | List ID |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | List ID |
|
||||
| `name` | string | List name |
|
||||
| `contactCount` | number | Number of contacts in the list |
|
||||
|
||||
### `sendgrid_list_all_lists`
|
||||
|
||||
Get all contact lists from SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `pageSize` | number | No | Number of lists to return per page \(default: 100\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `lists` | json | Array of lists |
|
||||
|
||||
### `sendgrid_delete_list`
|
||||
|
||||
Delete a contact list from SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `listId` | string | Yes | List ID to delete |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `message` | string | Success message |
|
||||
|
||||
### `sendgrid_add_contacts_to_list`
|
||||
|
||||
Add or update contacts and assign them to a list in SendGrid (uses PUT /v3/marketing/contacts)
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `listId` | string | Yes | List ID to add contacts to |
|
||||
| `contacts` | json | Yes | JSON array of contact objects. Each contact must have at least: email \(or phone_number_id/external_id/anonymous_id\). Example: \[\{"email": "user@example.com", "first_name": "John"\}\] |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | Job ID for tracking the async operation |
|
||||
| `message` | string | Status message |
|
||||
|
||||
### `sendgrid_remove_contacts_from_list`
|
||||
|
||||
Remove contacts from a specific list in SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `listId` | string | Yes | List ID |
|
||||
| `contactIds` | string | Yes | Comma-separated contact IDs to remove from the list |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | Job ID for the request |
|
||||
|
||||
### `sendgrid_create_template`
|
||||
|
||||
Create a new email template in SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `name` | string | Yes | Template name |
|
||||
| `generation` | string | No | Template generation type \(legacy or dynamic, default: dynamic\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Template ID |
|
||||
| `name` | string | Template name |
|
||||
| `generation` | string | Template generation |
|
||||
| `updatedAt` | string | Last update timestamp |
|
||||
| `versions` | json | Array of template versions |
|
||||
|
||||
### `sendgrid_get_template`
|
||||
|
||||
Get a specific template by ID from SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `templateId` | string | Yes | Template ID |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Template ID |
|
||||
| `name` | string | Template name |
|
||||
| `generation` | string | Template generation |
|
||||
| `updatedAt` | string | Last update timestamp |
|
||||
| `versions` | json | Array of template versions |
|
||||
|
||||
### `sendgrid_list_templates`
|
||||
|
||||
Get all email templates from SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `generations` | string | No | Filter by generation \(legacy, dynamic, or both\) |
|
||||
| `pageSize` | number | No | Number of templates to return per page \(default: 20\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `templates` | json | Array of templates |
|
||||
|
||||
### `sendgrid_delete_template`
|
||||
|
||||
Delete an email template from SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `templateId` | string | Yes | Template ID to delete |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Operation success status |
|
||||
| `messageId` | string | Email message ID \(send_mail\) |
|
||||
| `id` | string | Resource ID |
|
||||
| `jobId` | string | Job ID for async operations |
|
||||
| `email` | string | Email address |
|
||||
| `firstName` | string | First name |
|
||||
| `lastName` | string | Last name |
|
||||
| `contacts` | json | Array of contacts |
|
||||
| `contactCount` | number | Number of contacts |
|
||||
| `lists` | json | Array of lists |
|
||||
| `templates` | json | Array of templates |
|
||||
| `message` | string | Status or success message |
|
||||
| `name` | string | Resource name |
|
||||
| `generation` | string | Template generation |
|
||||
|
||||
### `sendgrid_create_template_version`
|
||||
|
||||
Create a new version of an email template in SendGrid
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Yes | SendGrid API key |
|
||||
| `templateId` | string | Yes | Template ID |
|
||||
| `name` | string | Yes | Version name |
|
||||
| `subject` | string | Yes | Email subject line |
|
||||
| `htmlContent` | string | No | HTML content of the template |
|
||||
| `plainContent` | string | No | Plain text content of the template |
|
||||
| `active` | boolean | No | Whether this version is active \(default: true\) |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Version ID |
|
||||
| `templateId` | string | Template ID |
|
||||
| `name` | string | Version name |
|
||||
| `subject` | string | Email subject |
|
||||
| `active` | boolean | Whether this version is active |
|
||||
| `htmlContent` | string | HTML content |
|
||||
| `plainContent` | string | Plain text content |
|
||||
| `updatedAt` | string | Last update timestamp |
|
||||
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
- Category: `tools`
|
||||
- Type: `sendgrid`
|
||||
78
apps/docs/content/docs/en/tools/smtp.mdx
Normal file
78
apps/docs/content/docs/en/tools/smtp.mdx
Normal file
@@ -0,0 +1,78 @@
|
||||
---
|
||||
title: SMTP
|
||||
description: Send emails via any SMTP mail server
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="smtp"
|
||||
color="#4A5568"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SMTP (Simple Mail Transfer Protocol)](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) is the foundational standard for email transmission across the Internet. By connecting to any SMTP-compatible server—such as Gmail, Outlook, or your organization's own mail infrastructure—you can send emails programmatically and automate your outbound communications.
|
||||
|
||||
SMTP integration allows you to fully customize email sending through direct server connectivity, supporting both basic and advanced email use cases. With SMTP, you can control every aspect of message delivery, recipient management, and content formatting, making it suitable for transactional notifications, bulk mailings, and any automated workflow requiring robust outbound email delivery.
|
||||
|
||||
**Key features available via SMTP integration include:**
|
||||
|
||||
- **Universal Email Delivery:** Send emails using any SMTP server by configuring standard server connection parameters.
|
||||
- **Customizable Sender and Recipients:** Specify sender address, display name, primary recipients, as well as CC and BCC fields.
|
||||
- **Rich Content Support:** Send plain text or richly formatted HTML emails according to your requirements.
|
||||
- **Attachments:** Include multiple files as attachments in outgoing emails.
|
||||
- **Flexible Security:** Connect using TLS, SSL, or standard (unencrypted) protocols as supported by your SMTP provider.
|
||||
- **Advanced Headers:** Set reply-to headers and other advanced email options to cater for complex mailflows and user interactions.
|
||||
|
||||
By integrating SMTP with Sim, agents and workflows can programmatically send emails as part of any automated process—ranging from sending notifications and confirmations, to automating external communications, reporting, and document delivery. This offers a highly flexible, provider-agnostic approach to managing email directly within your AI-driven processes.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
|
||||
## Usage Instructions
|
||||
|
||||
Send emails using any SMTP server (Gmail, Outlook, custom servers, etc.). Configure SMTP connection settings and send emails with full control over content, recipients, and attachments.
|
||||
|
||||
|
||||
|
||||
## Tools
|
||||
|
||||
### `smtp_send_mail`
|
||||
|
||||
Send emails via SMTP server
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `smtpHost` | string | Yes | SMTP server hostname \(e.g., smtp.gmail.com\) |
|
||||
| `smtpPort` | number | Yes | SMTP server port \(587 for TLS, 465 for SSL\) |
|
||||
| `smtpUsername` | string | Yes | SMTP authentication username |
|
||||
| `smtpPassword` | string | Yes | SMTP authentication password |
|
||||
| `smtpSecure` | string | Yes | Security protocol \(TLS, SSL, or None\) |
|
||||
| `from` | string | Yes | Sender email address |
|
||||
| `to` | string | Yes | Recipient email address |
|
||||
| `subject` | string | Yes | Email subject |
|
||||
| `body` | string | Yes | Email body content |
|
||||
| `contentType` | string | No | Content type \(text or html\) |
|
||||
| `fromName` | string | No | Display name for sender |
|
||||
| `cc` | string | No | CC recipients \(comma-separated\) |
|
||||
| `bcc` | string | No | BCC recipients \(comma-separated\) |
|
||||
| `replyTo` | string | No | Reply-to email address |
|
||||
| `attachments` | file[] | No | Files to attach to the email |
|
||||
|
||||
#### Output
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Whether the email was sent successfully |
|
||||
| `messageId` | string | Message ID from SMTP server |
|
||||
| `to` | string | Recipient email address |
|
||||
| `subject` | string | Email subject |
|
||||
| `error` | string | Error message if sending failed |
|
||||
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
- Category: `tools`
|
||||
- Type: `smtp`
|
||||
89
apps/docs/content/docs/es/tools/apify.mdx
Normal file
89
apps/docs/content/docs/es/tools/apify.mdx
Normal file
@@ -0,0 +1,89 @@
|
||||
---
|
||||
title: Apify
|
||||
description: Ejecuta actores de Apify y obtén resultados
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="apify"
|
||||
color="#E0E0E0"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Apify](https://apify.com/) es una plataforma potente para crear, implementar y ejecutar automatización web y actores de scraping web a escala. Apify te permite extraer datos útiles de cualquier sitio web, automatizar flujos de trabajo y conectar tus canales de datos sin problemas.
|
||||
|
||||
Con Apify, puedes:
|
||||
|
||||
- **Ejecutar actores predefinidos o personalizados**: Integra actores públicos o desarrolla los tuyos propios, automatizando una amplia gama de tareas de extracción de datos web y navegador.
|
||||
- **Recuperar conjuntos de datos**: Accede y gestiona conjuntos de datos estructurados recopilados por actores en tiempo real.
|
||||
- **Escalar la automatización web**: Aprovecha la infraestructura en la nube para ejecutar tareas de manera confiable, de forma asíncrona o síncrona, con un manejo robusto de errores.
|
||||
|
||||
En Sim, la integración de Apify permite a tus agentes realizar operaciones principales de Apify de forma programática:
|
||||
|
||||
- **Ejecutar actor (Sincrónico)**: Usa `apify_run_actor_sync` para lanzar un actor de Apify y esperar a que se complete, obteniendo los resultados tan pronto como finalice la ejecución.
|
||||
- **Ejecutar actor (Asincrónico)**: Usa `apify_run_actor_async` para iniciar un actor en segundo plano y consultar periódicamente los resultados, adecuado para trabajos más largos o complejos.
|
||||
|
||||
Estas operaciones equipan a tus agentes para automatizar, extraer y orquestar tareas de recopilación de datos o automatización de navegador directamente dentro de los flujos de trabajo — todo con configuración flexible y manejo de resultados, sin necesidad de ejecuciones manuales o herramientas externas. Integra Apify como un motor dinámico de automatización y extracción de datos que impulsa programáticamente los flujos de trabajo a escala web de tus agentes.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instrucciones de uso
|
||||
|
||||
Integra Apify en tu flujo de trabajo. Ejecuta cualquier actor de Apify con entrada personalizada y obtén resultados. Admite ejecución tanto síncrona como asíncrona con recuperación automática de conjuntos de datos.
|
||||
|
||||
## Herramientas
|
||||
|
||||
### `apify_run_actor_sync`
|
||||
|
||||
Ejecuta un actor de APIFY de forma sincrónica y obtén resultados (máximo 5 minutos)
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `apiKey` | string | Sí | Token de API de APIFY desde console.apify.com/account#/integrations |
|
||||
| `actorId` | string | Sí | ID del actor o nombreusuario/nombre-actor \(p.ej., "janedoe/my-actor" o ID del actor\) |
|
||||
| `input` | string | No | Entrada del actor como cadena JSON. Consulta la documentación del actor para los campos requeridos. |
|
||||
| `timeout` | number | No | Tiempo de espera en segundos \(predeterminado: el predeterminado del actor\) |
|
||||
| `build` | string | No | Versión del actor a ejecutar \(p.ej., "latest", "beta", o etiqueta/número de versión\) |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si la ejecución del actor tuvo éxito |
|
||||
| `runId` | string | ID de ejecución de APIFY |
|
||||
| `status` | string | Estado de la ejecución \(SUCCEEDED, FAILED, etc.\) |
|
||||
| `datasetId` | string | ID del conjunto de datos que contiene los resultados |
|
||||
| `items` | array | Elementos del conjunto de datos \(si se completó\) |
|
||||
|
||||
### `apify_run_actor_async`
|
||||
|
||||
Ejecuta un actor de APIFY de forma asincrónica con sondeo para tareas de larga duración
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `apiKey` | string | Sí | Token de API de APIFY desde console.apify.com/account#/integrations |
|
||||
| `actorId` | string | Sí | ID del actor o nombreusuario/nombre-actor \(p.ej., "janedoe/my-actor" o ID del actor\) |
|
||||
| `input` | string | No | Entrada del actor como cadena JSON |
|
||||
| `waitForFinish` | number | No | Tiempo de espera inicial en segundos \(0-60\) antes de que comience el sondeo |
|
||||
| `itemLimit` | number | No | Número máximo de elementos del conjunto de datos a recuperar \(1-250000, predeterminado 100\) |
|
||||
| `timeout` | number | No | Tiempo de espera en segundos \(predeterminado: el predeterminado del actor\) |
|
||||
| `build` | string | No | Versión del actor a ejecutar \(p.ej., "latest", "beta", o etiqueta/número de versión\) |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si la ejecución del actor tuvo éxito |
|
||||
| `runId` | string | ID de ejecución de APIFY |
|
||||
| `status` | string | Estado de la ejecución \(SUCCEEDED, FAILED, etc.\) |
|
||||
| `datasetId` | string | ID del conjunto de datos que contiene los resultados |
|
||||
| `items` | array | Elementos del conjunto de datos \(si se completó\) |
|
||||
|
||||
## Notas
|
||||
|
||||
- Categoría: `tools`
|
||||
- Tipo: `apify`
|
||||
83
apps/docs/content/docs/es/tools/linkedin.mdx
Normal file
83
apps/docs/content/docs/es/tools/linkedin.mdx
Normal file
@@ -0,0 +1,83 @@
|
||||
---
|
||||
title: LinkedIn
|
||||
description: Comparte publicaciones y gestiona tu presencia en LinkedIn
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="linkedin"
|
||||
color="#0072B1"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[LinkedIn](https://www.linkedin.com) es la plataforma de redes profesionales más grande del mundo, que permite a los usuarios desarrollar sus carreras, conectarse con su red y compartir contenido profesional. LinkedIn es ampliamente utilizado por profesionales de diversas industrias para branding personal, reclutamiento, búsqueda de empleo y desarrollo de negocios.
|
||||
|
||||
Con LinkedIn, puedes compartir fácilmente publicaciones en tu feed personal para interactuar con tu red y acceder a información sobre tu perfil para destacar tus logros profesionales. La integración automatizada con Sim te permite aprovechar la funcionalidad de LinkedIn de forma programática, permitiendo que agentes y flujos de trabajo publiquen actualizaciones, informen sobre tu presencia profesional y mantengan tu feed activo sin esfuerzo manual.
|
||||
|
||||
Las características clave de LinkedIn disponibles a través de esta integración incluyen:
|
||||
|
||||
- **Compartir publicaciones:** Publica automáticamente actualizaciones profesionales, artículos o anuncios en tu feed personal de LinkedIn.
|
||||
- **Información del perfil:** Obtén información detallada sobre tu perfil de LinkedIn para monitorear o usar en tareas posteriores dentro de tus flujos de trabajo.
|
||||
|
||||
Estas capacidades facilitan mantener tu red de LinkedIn comprometida y extender tu alcance profesional de manera eficiente como parte de tu estrategia de automatización de IA o flujo de trabajo.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instrucciones de uso
|
||||
|
||||
Integra LinkedIn en flujos de trabajo. Comparte publicaciones en tu feed personal y accede a la información de tu perfil de LinkedIn.
|
||||
|
||||
## Herramientas
|
||||
|
||||
### `linkedin_share_post`
|
||||
|
||||
Comparte una publicación en tu feed personal de LinkedIn
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `text` | string | Sí | El contenido de texto de tu publicación en LinkedIn |
|
||||
| `visibility` | string | No | Quién puede ver esta publicación: "PUBLIC" o "CONNECTIONS" \(predeterminado: "PUBLIC"\) |
|
||||
| `request` | string | No | Sin descripción |
|
||||
| `output` | string | No | Sin descripción |
|
||||
| `output` | string | No | Sin descripción |
|
||||
| `specificContent` | string | No | Sin descripción |
|
||||
| `shareCommentary` | string | No | Sin descripción |
|
||||
| `visibility` | string | No | Sin descripción |
|
||||
| `headers` | string | No | Sin descripción |
|
||||
| `output` | string | No | Sin descripción |
|
||||
| `output` | string | No | Sin descripción |
|
||||
| `output` | string | No | Sin descripción |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Estado de éxito de la operación |
|
||||
| `postId` | string | ID de la publicación creada |
|
||||
| `profile` | json | Información del perfil de LinkedIn |
|
||||
| `error` | string | Mensaje de error si la operación falló |
|
||||
|
||||
### `linkedin_get_profile`
|
||||
|
||||
Recuperar la información de tu perfil de LinkedIn
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Requerido | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Estado de éxito de la operación |
|
||||
| `postId` | string | ID de la publicación creada |
|
||||
| `profile` | json | Información del perfil de LinkedIn |
|
||||
| `error` | string | Mensaje de error si la operación falló |
|
||||
|
||||
## Notas
|
||||
|
||||
- Categoría: `tools`
|
||||
- Tipo: `linkedin`
|
||||
216
apps/docs/content/docs/es/tools/mailgun.mdx
Normal file
216
apps/docs/content/docs/es/tools/mailgun.mdx
Normal file
@@ -0,0 +1,216 @@
|
||||
---
|
||||
title: Mailgun
|
||||
description: Envía correos electrónicos y gestiona listas de correo con Mailgun
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="mailgun"
|
||||
color="#F06248"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Mailgun](https://www.mailgun.com) es un potente servicio de envío de correos electrónicos diseñado para desarrolladores y empresas que permite enviar, recibir y rastrear correos electrónicos sin esfuerzo. Mailgun te permite aprovechar APIs robustas para correos electrónicos transaccionales y de marketing confiables, gestión flexible de listas de correo y seguimiento avanzado de eventos.
|
||||
|
||||
Con el conjunto completo de funciones de Mailgun, puedes automatizar operaciones clave de correo electrónico y monitorear de cerca la entregabilidad y el compromiso de los destinatarios. Esto lo convierte en una solución ideal para la automatización de flujos de trabajo donde las comunicaciones, notificaciones y correos de campaña son partes fundamentales de tus procesos.
|
||||
|
||||
Las características principales de Mailgun incluyen:
|
||||
|
||||
- **Envío de correos electrónicos transaccionales:** Entrega correos electrónicos de alto volumen como notificaciones de cuenta, recibos, alertas y restablecimientos de contraseña.
|
||||
- **Contenido de correo electrónico enriquecido:** Envía correos electrónicos tanto en texto plano como en HTML, y utiliza etiquetas para categorizar y rastrear tus mensajes.
|
||||
- **Gestión de listas de correo:** Crea, actualiza y gestiona listas de correo y miembros para enviar comunicaciones grupales de manera eficiente.
|
||||
- **Información de dominio:** Obtén detalles sobre tus dominios de envío para monitorear la configuración y el estado.
|
||||
- **Seguimiento de eventos:** Analiza la entregabilidad y el compromiso del correo electrónico con datos detallados de eventos en los mensajes enviados.
|
||||
- **Recuperación de mensajes:** Accede a mensajes almacenados para necesidades de cumplimiento, análisis o solución de problemas.
|
||||
|
||||
Al integrar Mailgun en Sim, tus agentes pueden enviar correos electrónicos programáticamente, gestionar listas de correo, acceder a información de dominio y monitorear eventos en tiempo real como parte de flujos de trabajo automatizados. Esto permite una participación inteligente y basada en datos con tus usuarios directamente desde tus procesos impulsados por IA.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instrucciones de uso
|
||||
|
||||
Integra Mailgun en tu flujo de trabajo. Envía correos electrónicos transaccionales, gestiona listas de correo y miembros, visualiza información de dominio y realiza seguimiento de eventos de correo electrónico. Compatible con correos electrónicos de texto y HTML, etiquetas para seguimiento y gestión integral de listas.
|
||||
|
||||
## Herramientas
|
||||
|
||||
### `mailgun_send_message`
|
||||
|
||||
Enviar un correo electrónico usando la API de Mailgun
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de Mailgun |
|
||||
| `domain` | string | Sí | Dominio de Mailgun \(ej., mg.example.com\) |
|
||||
| `from` | string | Sí | Dirección de correo del remitente |
|
||||
| `to` | string | Sí | Dirección de correo del destinatario \(separados por comas para múltiples\) |
|
||||
| `subject` | string | Sí | Asunto del correo electrónico |
|
||||
| `text` | string | No | Cuerpo de texto plano del correo electrónico |
|
||||
| `html` | string | No | Cuerpo HTML del correo electrónico |
|
||||
| `cc` | string | No | Dirección de correo CC \(separados por comas para múltiples\) |
|
||||
| `bcc` | string | No | Dirección de correo BCC \(separados por comas para múltiples\) |
|
||||
| `tags` | string | No | Etiquetas para el correo electrónico \(separadas por comas\) |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si el mensaje fue enviado con éxito |
|
||||
| `id` | string | ID del mensaje |
|
||||
| `message` | string | Mensaje de respuesta de Mailgun |
|
||||
|
||||
### `mailgun_get_message`
|
||||
|
||||
Recuperar un mensaje almacenado por su clave
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de Mailgun |
|
||||
| `domain` | string | Sí | Dominio de Mailgun |
|
||||
| `messageKey` | string | Sí | Clave de almacenamiento del mensaje |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si la solicitud fue exitosa |
|
||||
| `recipients` | string | Destinatarios del mensaje |
|
||||
| `from` | string | Correo electrónico del remitente |
|
||||
| `subject` | string | Asunto del mensaje |
|
||||
| `bodyPlain` | string | Cuerpo en texto plano |
|
||||
| `strippedText` | string | Texto simplificado |
|
||||
| `strippedSignature` | string | Firma simplificada |
|
||||
| `bodyHtml` | string | Cuerpo HTML |
|
||||
| `strippedHtml` | string | HTML simplificado |
|
||||
| `attachmentCount` | number | Número de archivos adjuntos |
|
||||
| `timestamp` | number | Marca de tiempo del mensaje |
|
||||
| `messageHeaders` | json | Encabezados del mensaje |
|
||||
| `contentIdMap` | json | Mapa de ID de contenido |
|
||||
|
||||
### `mailgun_list_messages`
|
||||
|
||||
Listar eventos (registros) para mensajes enviados a través de Mailgun
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de Mailgun |
|
||||
| `domain` | string | Sí | Dominio de Mailgun |
|
||||
| `event` | string | No | Filtrar por tipo de evento \(accepted, delivered, failed, opened, clicked, etc.\) |
|
||||
| `limit` | number | No | Número máximo de eventos a devolver \(predeterminado: 100\) |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si la solicitud fue exitosa |
|
||||
| `items` | json | Array de elementos de eventos |
|
||||
| `paging` | json | Información de paginación |
|
||||
|
||||
### `mailgun_create_mailing_list`
|
||||
|
||||
Crear una nueva lista de correo
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de Mailgun |
|
||||
| `address` | string | Sí | Dirección de la lista de correo \(ej., lista@ejemplo.com\) |
|
||||
| `name` | string | No | Nombre de la lista de correo |
|
||||
| `description` | string | No | Descripción de la lista de correo |
|
||||
| `accessLevel` | string | No | Nivel de acceso: readonly, members, o everyone |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si la lista fue creada con éxito |
|
||||
| `message` | string | Mensaje de respuesta |
|
||||
| `list` | json | Detalles de la lista de correo creada |
|
||||
|
||||
### `mailgun_get_mailing_list`
|
||||
|
||||
Obtener detalles de una lista de correo
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de Mailgun |
|
||||
| `address` | string | Sí | Dirección de la lista de correo |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si la solicitud fue exitosa |
|
||||
| `list` | json | Detalles de la lista de correo |
|
||||
|
||||
### `mailgun_add_list_member`
|
||||
|
||||
Añadir un miembro a una lista de correo
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de Mailgun |
|
||||
| `listAddress` | string | Sí | Dirección de la lista de correo |
|
||||
| `address` | string | Sí | Dirección de correo electrónico del miembro |
|
||||
| `name` | string | No | Nombre del miembro |
|
||||
| `vars` | string | No | Cadena JSON de variables personalizadas |
|
||||
| `subscribed` | boolean | No | Si el miembro está suscrito |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si el miembro fue añadido con éxito |
|
||||
| `message` | string | Mensaje de respuesta |
|
||||
| `member` | json | Detalles del miembro añadido |
|
||||
|
||||
### `mailgun_list_domains`
|
||||
|
||||
Listar todos los dominios para tu cuenta de Mailgun
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de Mailgun |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si la solicitud fue exitosa |
|
||||
| `totalCount` | number | Número total de dominios |
|
||||
| `items` | json | Array de objetos de dominio |
|
||||
|
||||
### `mailgun_get_domain`
|
||||
|
||||
Obtener detalles de un dominio específico
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de Mailgun |
|
||||
| `domain` | string | Sí | Nombre de dominio |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si la solicitud fue exitosa |
|
||||
| `domain` | json | Detalles del dominio |
|
||||
|
||||
## Notas
|
||||
|
||||
- Categoría: `tools`
|
||||
- Tipo: `mailgun`
|
||||
54
apps/docs/content/docs/es/tools/search.mdx
Normal file
54
apps/docs/content/docs/es/tools/search.mdx
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
title: Búsqueda
|
||||
description: Busca en la web ($0.01 por búsqueda)
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="search"
|
||||
color="#3B82F6"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
La herramienta de **Búsqueda** te permite buscar en la web desde tus flujos de trabajo de Sim utilizando motores de búsqueda de última generación. Úsala para obtener la información más reciente, noticias, hechos y contenido web directamente en tus agentes, automatizaciones o conversaciones.
|
||||
|
||||
- **Búsqueda general en la web**: Encuentra información actualizada de internet para complementar tus flujos de trabajo.
|
||||
- **Consultas automatizadas**: Permite que los agentes o la lógica del programa envíen consultas de búsqueda y manejen los resultados automáticamente.
|
||||
- **Resultados estructurados**: Devuelve los resultados web más relevantes, incluyendo título, enlace, fragmento y fecha para cada resultado.
|
||||
|
||||
> **Nota:** Cada búsqueda cuesta **$0.01** por consulta.
|
||||
|
||||
Esta herramienta es ideal para cualquier flujo de trabajo donde tus agentes necesiten acceso a datos web en tiempo real o deban hacer referencia a eventos actuales, realizar investigaciones o obtener contenido complementario.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instrucciones de uso
|
||||
|
||||
Busca en la web usando la herramienta de Búsqueda. Cada búsqueda cuesta $0.01 por consulta.
|
||||
|
||||
## Herramientas
|
||||
|
||||
### `search_tool`
|
||||
|
||||
Busca en la web. Devuelve los resultados web más relevantes, incluyendo título, enlace, fragmento y fecha para cada resultado.
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `query` | string | Sí | La consulta de búsqueda |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `results` | json | Resultados de búsqueda |
|
||||
| `query` | string | La consulta de búsqueda |
|
||||
| `totalResults` | number | Número total de resultados |
|
||||
| `source` | string | Fuente de búsqueda \(exa\) |
|
||||
| `cost` | json | Información de costo \($0.01\) |
|
||||
|
||||
## Notas
|
||||
|
||||
- Categoría: `tools`
|
||||
- Tipo: `search`
|
||||
392
apps/docs/content/docs/es/tools/sendgrid.mdx
Normal file
392
apps/docs/content/docs/es/tools/sendgrid.mdx
Normal file
@@ -0,0 +1,392 @@
|
||||
---
|
||||
title: SendGrid
|
||||
description: Envía correos electrónicos y gestiona contactos, listas y
|
||||
plantillas con SendGrid
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="sendgrid"
|
||||
color="#1A82E2"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SendGrid](https://sendgrid.com) es una plataforma líder de envío de correos electrónicos en la nube en la que confían desarrolladores y empresas para enviar correos electrónicos transaccionales y de marketing fiables a gran escala. Con sus sólidas APIs y potentes herramientas, SendGrid te permite gestionar todos los aspectos de tu comunicación por correo electrónico, desde el envío de notificaciones y recibos hasta la gestión de complejas campañas de marketing.
|
||||
|
||||
SendGrid ofrece a los usuarios un conjunto completo de operaciones de correo electrónico, permitiéndote automatizar flujos de trabajo críticos de correo electrónico y gestionar de cerca listas de contactos, plantillas y la participación de los destinatarios. Su integración perfecta con Sim permite a los agentes y flujos de trabajo entregar mensajes específicos, mantener listas dinámicas de contactos y destinatarios, activar correos electrónicos personalizados a través de plantillas y seguir los resultados en tiempo real.
|
||||
|
||||
Las características principales de SendGrid incluyen:
|
||||
|
||||
- **Correo electrónico transaccional:** Envía correos electrónicos transaccionales automatizados y de alto volumen (como notificaciones, recibos y restablecimientos de contraseña).
|
||||
- **Plantillas dinámicas:** Utiliza plantillas de texto o HTML enriquecido con datos dinámicos para una comunicación altamente personalizada a gran escala.
|
||||
- **Gestión de contactos:** Añade y actualiza contactos de marketing, gestiona listas de destinatarios y segmentos objetivo para campañas.
|
||||
- **Soporte para archivos adjuntos:** Incluye uno o más archivos adjuntos en tus correos electrónicos.
|
||||
- **Cobertura integral de API:** Gestiona programáticamente correos electrónicos, contactos, listas, plantillas, grupos de supresión y más.
|
||||
|
||||
Al conectar SendGrid con Sim, tus agentes pueden:
|
||||
|
||||
- Enviar correos electrónicos tanto simples como avanzados (con plantillas o múltiples destinatarios) como parte de cualquier flujo de trabajo.
|
||||
- Gestionar y segmentar contactos y listas automáticamente.
|
||||
- Aprovechar las plantillas para mantener consistencia y personalización dinámica.
|
||||
- Realizar seguimiento y responder a la interacción con los correos electrónicos dentro de tus procesos automatizados.
|
||||
|
||||
Esta integración te permite automatizar todos los flujos de comunicación críticos, asegurar que los mensajes lleguen a la audiencia correcta y mantener el control sobre la estrategia de correo electrónico de tu organización, directamente desde los flujos de trabajo de Sim.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instrucciones de uso
|
||||
|
||||
Integra SendGrid en tu flujo de trabajo. Envía correos electrónicos transaccionales, gestiona contactos y listas de marketing, y trabaja con plantillas de correo electrónico. Compatible con plantillas dinámicas, archivos adjuntos y gestión integral de contactos.
|
||||
|
||||
## Herramientas
|
||||
|
||||
### `sendgrid_send_mail`
|
||||
|
||||
Enviar un correo electrónico usando la API de SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `from` | string | Sí | Dirección de correo electrónico del remitente \(debe estar verificada en SendGrid\) |
|
||||
| `fromName` | string | No | Nombre del remitente |
|
||||
| `to` | string | Sí | Dirección de correo electrónico del destinatario |
|
||||
| `toName` | string | No | Nombre del destinatario |
|
||||
| `subject` | string | No | Asunto del correo electrónico \(obligatorio a menos que se use una plantilla con asunto predefinido\) |
|
||||
| `content` | string | No | Contenido del cuerpo del correo electrónico \(obligatorio a menos que se use una plantilla con contenido predefinido\) |
|
||||
| `contentType` | string | No | Tipo de contenido \(text/plain o text/html\) |
|
||||
| `cc` | string | No | Dirección de correo electrónico CC |
|
||||
| `bcc` | string | No | Dirección de correo electrónico BCC |
|
||||
| `replyTo` | string | No | Dirección de correo electrónico de respuesta |
|
||||
| `replyToName` | string | No | Nombre de respuesta |
|
||||
| `attachments` | file[] | No | Archivos para adjuntar al correo electrónico |
|
||||
| `templateId` | string | No | ID de plantilla de SendGrid a utilizar |
|
||||
| `dynamicTemplateData` | json | No | Objeto JSON de datos de plantilla dinámica |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si el correo electrónico se envió correctamente |
|
||||
| `messageId` | string | ID del mensaje de SendGrid |
|
||||
| `to` | string | Dirección de correo electrónico del destinatario |
|
||||
| `subject` | string | Asunto del correo electrónico |
|
||||
|
||||
### `sendgrid_add_contact`
|
||||
|
||||
Añadir un nuevo contacto a SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `email` | string | Sí | Dirección de correo electrónico del contacto |
|
||||
| `firstName` | string | No | Nombre del contacto |
|
||||
| `lastName` | string | No | Apellido del contacto |
|
||||
| `customFields` | json | No | Objeto JSON de pares clave-valor de campos personalizados \(use IDs de campo como e1_T, e2_N, e3_D, no nombres de campo\) |
|
||||
| `listIds` | string | No | Lista separada por comas de IDs a los que añadir el contacto |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | ID de trabajo para seguimiento de la creación asíncrona de contactos |
|
||||
| `email` | string | Dirección de correo electrónico del contacto |
|
||||
| `firstName` | string | Nombre del contacto |
|
||||
| `lastName` | string | Apellido del contacto |
|
||||
| `message` | string | Mensaje de estado |
|
||||
|
||||
### `sendgrid_get_contact`
|
||||
|
||||
Obtener un contacto específico por ID desde SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `contactId` | string | Sí | ID del contacto |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID del contacto |
|
||||
| `email` | string | Dirección de correo electrónico del contacto |
|
||||
| `firstName` | string | Nombre del contacto |
|
||||
| `lastName` | string | Apellido del contacto |
|
||||
| `createdAt` | string | Marca de tiempo de creación |
|
||||
| `updatedAt` | string | Marca de tiempo de última actualización |
|
||||
| `listIds` | json | Array de IDs de listas a las que pertenece el contacto |
|
||||
| `customFields` | json | Valores de campos personalizados |
|
||||
|
||||
### `sendgrid_search_contacts`
|
||||
|
||||
Buscar contactos en SendGrid usando una consulta
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `query` | string | Sí | Consulta de búsqueda (p. ej., "email LIKE '%example.com%' AND CONTAINS(list_ids, 'list-id')") |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `contacts` | json | Array de contactos coincidentes |
|
||||
| `contactCount` | number | Número total de contactos encontrados |
|
||||
|
||||
### `sendgrid_delete_contacts`
|
||||
|
||||
Eliminar uno o más contactos de SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `contactIds` | string | Sí | IDs de contactos separados por comas para eliminar |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | ID de trabajo para la solicitud de eliminación |
|
||||
|
||||
### `sendgrid_create_list`
|
||||
|
||||
Crear una nueva lista de contactos en SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `name` | string | Sí | Nombre de la lista |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID de la lista |
|
||||
| `name` | string | Nombre de la lista |
|
||||
| `contactCount` | number | Número de contactos en la lista |
|
||||
|
||||
### `sendgrid_get_list`
|
||||
|
||||
Obtener una lista específica por ID desde SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `listId` | string | Sí | ID de la lista |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID de la lista |
|
||||
| `name` | string | Nombre de la lista |
|
||||
| `contactCount` | number | Número de contactos en la lista |
|
||||
|
||||
### `sendgrid_list_all_lists`
|
||||
|
||||
Obtener todas las listas de contactos desde SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `pageSize` | number | No | Número de listas a devolver por página \(predeterminado: 100\) |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `lists` | json | Array de listas |
|
||||
|
||||
### `sendgrid_delete_list`
|
||||
|
||||
Eliminar una lista de contactos de SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `listId` | string | Sí | ID de la lista a eliminar |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `message` | string | Mensaje de éxito |
|
||||
|
||||
### `sendgrid_add_contacts_to_list`
|
||||
|
||||
Añadir o actualizar contactos y asignarlos a una lista en SendGrid (usa PUT /v3/marketing/contacts)
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `listId` | string | Sí | ID de la lista a la que añadir contactos |
|
||||
| `contacts` | json | Sí | Array JSON de objetos de contacto. Cada contacto debe tener al menos: email \(o phone_number_id/external_id/anonymous_id\). Ejemplo: \[\{"email": "user@example.com", "first_name": "John"\}\] |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | ID del trabajo para seguimiento de la operación asíncrona |
|
||||
| `message` | string | Mensaje de estado |
|
||||
|
||||
### `sendgrid_remove_contacts_from_list`
|
||||
|
||||
Eliminar contactos de una lista específica en SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `listId` | string | Sí | ID de la lista |
|
||||
| `contactIds` | string | Sí | IDs de contactos separados por comas para eliminar de la lista |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | ID del trabajo para la solicitud |
|
||||
|
||||
### `sendgrid_create_template`
|
||||
|
||||
Crear una nueva plantilla de correo electrónico en SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `name` | string | Sí | Nombre de la plantilla |
|
||||
| `generation` | string | No | Tipo de generación de plantilla \(legacy o dynamic, predeterminado: dynamic\) |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID de la plantilla |
|
||||
| `name` | string | Nombre de la plantilla |
|
||||
| `generation` | string | Generación de la plantilla |
|
||||
| `updatedAt` | string | Marca de tiempo de la última actualización |
|
||||
| `versions` | json | Array de versiones de la plantilla |
|
||||
|
||||
### `sendgrid_get_template`
|
||||
|
||||
Obtener una plantilla específica por ID desde SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `templateId` | string | Sí | ID de la plantilla |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID de la plantilla |
|
||||
| `name` | string | Nombre de la plantilla |
|
||||
| `generation` | string | Generación de la plantilla |
|
||||
| `updatedAt` | string | Marca de tiempo de la última actualización |
|
||||
| `versions` | json | Array de versiones de la plantilla |
|
||||
|
||||
### `sendgrid_list_templates`
|
||||
|
||||
Obtener todas las plantillas de correo electrónico de SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `generations` | string | No | Filtrar por generación \(legacy, dynamic, o ambas\) |
|
||||
| `pageSize` | number | No | Número de plantillas a devolver por página \(predeterminado: 20\) |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `templates` | json | Array de plantillas |
|
||||
|
||||
### `sendgrid_delete_template`
|
||||
|
||||
Eliminar una plantilla de correo electrónico de SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `templateId` | string | Sí | ID de la plantilla a eliminar |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Estado de éxito de la operación |
|
||||
| `messageId` | string | ID del mensaje de correo electrónico \(send_mail\) |
|
||||
| `id` | string | ID del recurso |
|
||||
| `jobId` | string | ID del trabajo para operaciones asíncronas |
|
||||
| `email` | string | Dirección de correo electrónico |
|
||||
| `firstName` | string | Nombre |
|
||||
| `lastName` | string | Apellido |
|
||||
| `contacts` | json | Array de contactos |
|
||||
| `contactCount` | number | Número de contactos |
|
||||
| `lists` | json | Array de listas |
|
||||
| `templates` | json | Array de plantillas |
|
||||
| `message` | string | Estado o mensaje de éxito |
|
||||
| `name` | string | Nombre del recurso |
|
||||
| `generation` | string | Generación de plantilla |
|
||||
|
||||
### `sendgrid_create_template_version`
|
||||
|
||||
Crear una nueva versión de una plantilla de correo electrónico en SendGrid
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Sí | Clave API de SendGrid |
|
||||
| `templateId` | string | Sí | ID de la plantilla |
|
||||
| `name` | string | Sí | Nombre de la versión |
|
||||
| `subject` | string | Sí | Línea de asunto del correo electrónico |
|
||||
| `htmlContent` | string | No | Contenido HTML de la plantilla |
|
||||
| `plainContent` | string | No | Contenido de texto plano de la plantilla |
|
||||
| `active` | boolean | No | Si esta versión está activa \(predeterminado: true\) |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID de la versión |
|
||||
| `templateId` | string | ID de la plantilla |
|
||||
| `name` | string | Nombre de la versión |
|
||||
| `subject` | string | Asunto del correo electrónico |
|
||||
| `active` | boolean | Si esta versión está activa |
|
||||
| `htmlContent` | string | Contenido HTML |
|
||||
| `plainContent` | string | Contenido de texto plano |
|
||||
| `updatedAt` | string | Marca de tiempo de la última actualización |
|
||||
|
||||
## Notas
|
||||
|
||||
- Categoría: `tools`
|
||||
- Tipo: `sendgrid`
|
||||
73
apps/docs/content/docs/es/tools/smtp.mdx
Normal file
73
apps/docs/content/docs/es/tools/smtp.mdx
Normal file
@@ -0,0 +1,73 @@
|
||||
---
|
||||
title: SMTP
|
||||
description: Envía correos electrónicos a través de cualquier servidor de correo SMTP
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="smtp"
|
||||
color="#4A5568"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SMTP (Simple Mail Transfer Protocol)](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) es el estándar fundamental para la transmisión de correos electrónicos a través de Internet. Al conectarte a cualquier servidor compatible con SMTP—como Gmail, Outlook, o la infraestructura de correo de tu organización—puedes enviar correos electrónicos de forma programática y automatizar tus comunicaciones salientes.
|
||||
|
||||
La integración SMTP te permite personalizar completamente el envío de correos electrónicos mediante conectividad directa con el servidor, admitiendo casos de uso de correo electrónico tanto básicos como avanzados. Con SMTP, puedes controlar todos los aspectos de la entrega de mensajes, la gestión de destinatarios y el formato del contenido, lo que lo hace adecuado para notificaciones transaccionales, envíos masivos y cualquier flujo de trabajo automatizado que requiera una entrega robusta de correos electrónicos salientes.
|
||||
|
||||
**Las características clave disponibles a través de la integración SMTP incluyen:**
|
||||
|
||||
- **Entrega universal de correos electrónicos:** Envía correos electrónicos utilizando cualquier servidor SMTP configurando parámetros estándar de conexión al servidor.
|
||||
- **Remitente y destinatarios personalizables:** Especifica la dirección del remitente, el nombre para mostrar, los destinatarios principales, así como los campos CC y CCO.
|
||||
- **Soporte para contenido enriquecido:** Envía correos electrónicos de texto plano o con formato HTML enriquecido según tus requisitos.
|
||||
- **Archivos adjuntos:** Incluye múltiples archivos como adjuntos en los correos electrónicos salientes.
|
||||
- **Seguridad flexible:** Conéctate usando protocolos TLS, SSL o estándar (sin cifrar) según lo admita tu proveedor SMTP.
|
||||
- **Encabezados avanzados:** Configura encabezados de respuesta y otras opciones avanzadas de correo electrónico para atender flujos de correo complejos e interacciones de usuario.
|
||||
|
||||
Al integrar SMTP con Sim, los agentes y flujos de trabajo pueden enviar correos electrónicos de forma programática como parte de cualquier proceso automatizado—desde el envío de notificaciones y confirmaciones, hasta la automatización de comunicaciones externas, informes y entrega de documentos. Esto ofrece un enfoque altamente flexible e independiente del proveedor para gestionar el correo electrónico directamente dentro de tus procesos impulsados por IA.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instrucciones de uso
|
||||
|
||||
Envía correos electrónicos utilizando cualquier servidor SMTP (Gmail, Outlook, servidores personalizados, etc.). Configura los ajustes de conexión SMTP y envía correos electrónicos con control total sobre el contenido, destinatarios y archivos adjuntos.
|
||||
|
||||
## Herramientas
|
||||
|
||||
### `smtp_send_mail`
|
||||
|
||||
Enviar correos electrónicos a través del servidor SMTP
|
||||
|
||||
#### Entrada
|
||||
|
||||
| Parámetro | Tipo | Obligatorio | Descripción |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `smtpHost` | string | Sí | Nombre del host del servidor SMTP \(p. ej., smtp.gmail.com\) |
|
||||
| `smtpPort` | number | Sí | Puerto del servidor SMTP \(587 para TLS, 465 para SSL\) |
|
||||
| `smtpUsername` | string | Sí | Nombre de usuario para autenticación SMTP |
|
||||
| `smtpPassword` | string | Sí | Contraseña para autenticación SMTP |
|
||||
| `smtpSecure` | string | Sí | Protocolo de seguridad \(TLS, SSL o Ninguno\) |
|
||||
| `from` | string | Sí | Dirección de correo electrónico del remitente |
|
||||
| `to` | string | Sí | Dirección de correo electrónico del destinatario |
|
||||
| `subject` | string | Sí | Asunto del correo electrónico |
|
||||
| `body` | string | Sí | Contenido del cuerpo del correo electrónico |
|
||||
| `contentType` | string | No | Tipo de contenido \(texto o html\) |
|
||||
| `fromName` | string | No | Nombre para mostrar del remitente |
|
||||
| `cc` | string | No | Destinatarios en CC \(separados por comas\) |
|
||||
| `bcc` | string | No | Destinatarios en CCO \(separados por comas\) |
|
||||
| `replyTo` | string | No | Dirección de correo electrónico de respuesta |
|
||||
| `attachments` | file[] | No | Archivos para adjuntar al correo electrónico |
|
||||
|
||||
#### Salida
|
||||
|
||||
| Parámetro | Tipo | Descripción |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Si el correo electrónico se envió correctamente |
|
||||
| `messageId` | string | ID del mensaje del servidor SMTP |
|
||||
| `to` | string | Dirección de correo electrónico del destinatario |
|
||||
| `subject` | string | Asunto del correo electrónico |
|
||||
| `error` | string | Mensaje de error si el envío falló |
|
||||
|
||||
## Notas
|
||||
|
||||
- Categoría: `tools`
|
||||
- Tipo: `smtp`
|
||||
89
apps/docs/content/docs/fr/tools/apify.mdx
Normal file
89
apps/docs/content/docs/fr/tools/apify.mdx
Normal file
@@ -0,0 +1,89 @@
|
||||
---
|
||||
title: Apify
|
||||
description: Exécutez des acteurs Apify et récupérez les résultats
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="apify"
|
||||
color="#E0E0E0"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Apify](https://apify.com/) est une plateforme puissante pour créer, déployer et exécuter des automatisations web et des acteurs de scraping à grande échelle. Apify vous permet d'extraire des données utiles de n'importe quel site web, d'automatiser des flux de travail et de connecter vos pipelines de données de manière transparente.
|
||||
|
||||
Avec Apify, vous pouvez :
|
||||
|
||||
- **Exécuter des acteurs prêts à l'emploi ou personnalisés** : Intégrez des acteurs publics ou développez les vôtres, en automatisant un large éventail d'extractions de données web et de tâches de navigation.
|
||||
- **Récupérer des ensembles de données** : Accédez et gérez des ensembles de données structurées collectées par les acteurs en temps réel.
|
||||
- **Mettre à l'échelle l'automatisation web** : Exploitez l'infrastructure cloud pour exécuter des tâches de manière fiable, de façon asynchrone ou synchrone, avec une gestion robuste des erreurs.
|
||||
|
||||
Dans Sim, l'intégration Apify permet à vos agents d'effectuer des opérations Apify essentielles de manière programmatique :
|
||||
|
||||
- **Exécuter un acteur (Sync)** : Utilisez `apify_run_actor_sync` pour lancer un acteur Apify et attendre sa complétion, récupérant les résultats dès que l'exécution se termine.
|
||||
- **Exécuter un acteur (Async)** : Utilisez `apify_run_actor_async` pour démarrer un acteur en arrière-plan et interroger périodiquement les résultats, adapté aux tâches plus longues ou complexes.
|
||||
|
||||
Ces opérations équipent vos agents pour automatiser, scraper et orchestrer la collecte de données ou les tâches d'automatisation de navigateur directement dans les flux de travail — le tout avec une configuration flexible et une gestion des résultats, sans nécessiter d'exécutions manuelles ou d'outils externes. Intégrez Apify comme un moteur dynamique d'automatisation et d'extraction de données qui alimente de manière programmatique les flux de travail à l'échelle du web de vos agents.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instructions d'utilisation
|
||||
|
||||
Intégrez Apify dans votre flux de travail. Exécutez n'importe quel acteur Apify avec des entrées personnalisées et récupérez les résultats. Prend en charge l'exécution synchrone et asynchrone avec récupération automatique des ensembles de données.
|
||||
|
||||
## Outils
|
||||
|
||||
### `apify_run_actor_sync`
|
||||
|
||||
Exécuter un acteur APIFY de manière synchrone et obtenir les résultats (maximum 5 minutes)
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Jeton API APIFY depuis console.apify.com/account#/integrations |
|
||||
| `actorId` | chaîne | Oui | ID de l'acteur ou nom d'utilisateur/nom-acteur \(ex. : "janedoe/my-actor" ou ID de l'acteur\) |
|
||||
| `input` | chaîne | Non | Entrée de l'acteur sous forme de chaîne JSON. Voir la documentation de l'acteur pour les champs requis. |
|
||||
| `timeout` | nombre | Non | Délai d'attente en secondes \(par défaut : valeur par défaut de l'acteur\) |
|
||||
| `build` | chaîne | Non | Version de l'acteur à exécuter \(ex. : "latest", "beta", ou tag/numéro de build\) |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | booléen | Indique si l'exécution de l'acteur a réussi |
|
||||
| `runId` | chaîne | ID d'exécution APIFY |
|
||||
| `status` | chaîne | Statut d'exécution \(SUCCEEDED, FAILED, etc.\) |
|
||||
| `datasetId` | chaîne | ID du jeu de données contenant les résultats |
|
||||
| `items` | tableau | Éléments du jeu de données \(si terminé\) |
|
||||
|
||||
### `apify_run_actor_async`
|
||||
|
||||
Exécuter un acteur APIFY de manière asynchrone avec interrogation périodique pour les tâches de longue durée
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Jeton API APIFY depuis console.apify.com/account#/integrations |
|
||||
| `actorId` | chaîne | Oui | ID de l'acteur ou nom d'utilisateur/nom-acteur \(ex. : "janedoe/my-actor" ou ID de l'acteur\) |
|
||||
| `input` | chaîne | Non | Entrée de l'acteur sous forme de chaîne JSON |
|
||||
| `waitForFinish` | nombre | Non | Temps d'attente initial en secondes \(0-60\) avant le début de l'interrogation |
|
||||
| `itemLimit` | nombre | Non | Nombre maximum d'éléments de jeu de données à récupérer \(1-250000, par défaut 100\) |
|
||||
| `timeout` | nombre | Non | Délai d'attente en secondes \(par défaut : valeur par défaut de l'acteur\) |
|
||||
| `build` | chaîne | Non | Version de l'acteur à exécuter \(ex. : "latest", "beta", ou tag/numéro de build\) |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Indique si l'exécution de l'acteur a réussi |
|
||||
| `runId` | string | ID d'exécution APIFY |
|
||||
| `status` | string | Statut d'exécution \(SUCCEEDED, FAILED, etc.\) |
|
||||
| `datasetId` | string | ID du dataset contenant les résultats |
|
||||
| `items` | array | Éléments du dataset \(si terminé\) |
|
||||
|
||||
## Notes
|
||||
|
||||
- Catégorie : `tools`
|
||||
- Type : `apify`
|
||||
83
apps/docs/content/docs/fr/tools/linkedin.mdx
Normal file
83
apps/docs/content/docs/fr/tools/linkedin.mdx
Normal file
@@ -0,0 +1,83 @@
|
||||
---
|
||||
title: LinkedIn
|
||||
description: Partagez des publications et gérez votre présence LinkedIn
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="linkedin"
|
||||
color="#0072B1"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[LinkedIn](https://www.linkedin.com) est la plus grande plateforme de réseautage professionnel au monde, permettant aux utilisateurs de développer leur carrière, de se connecter avec leur réseau et de partager du contenu professionnel. LinkedIn est largement utilisé par des professionnels de tous secteurs pour le développement de leur marque personnelle, le recrutement, la recherche d'emploi et le développement commercial.
|
||||
|
||||
Avec LinkedIn, vous pouvez facilement partager des publications sur votre fil personnel pour interagir avec votre réseau et accéder aux informations de votre profil pour mettre en valeur vos réalisations professionnelles. L'intégration automatisée avec Sim vous permet d'exploiter les fonctionnalités de LinkedIn de manière programmatique, permettant aux agents et aux flux de travail de publier des mises à jour, de générer des rapports sur votre présence professionnelle et de maintenir votre fil d'actualité actif sans effort manuel.
|
||||
|
||||
Les principales fonctionnalités de LinkedIn disponibles via cette intégration comprennent :
|
||||
|
||||
- **Partage de publications :** Publiez automatiquement des mises à jour professionnelles, des articles ou des annonces sur votre fil personnel LinkedIn.
|
||||
- **Informations de profil :** Récupérez des informations détaillées sur votre profil LinkedIn pour les surveiller ou les utiliser dans des tâches en aval au sein de vos flux de travail.
|
||||
|
||||
Ces capacités facilitent l'engagement de votre réseau LinkedIn et l'extension efficace de votre portée professionnelle dans le cadre de votre stratégie d'automatisation IA ou de flux de travail.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instructions d'utilisation
|
||||
|
||||
Intégrez LinkedIn dans vos flux de travail. Partagez des publications sur votre fil personnel et accédez aux informations de votre profil LinkedIn.
|
||||
|
||||
## Outils
|
||||
|
||||
### `linkedin_share_post`
|
||||
|
||||
Partager une publication sur votre fil personnel LinkedIn
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | ---------- | ----------- |
|
||||
| `text` | string | Oui | Le contenu textuel de votre publication LinkedIn |
|
||||
| `visibility` | string | Non | Qui peut voir cette publication : "PUBLIC" ou "CONNECTIONS" \(par défaut : "PUBLIC"\) |
|
||||
| `request` | string | Non | Pas de description |
|
||||
| `output` | string | Non | Pas de description |
|
||||
| `output` | string | Non | Pas de description |
|
||||
| `specificContent` | string | Non | Pas de description |
|
||||
| `shareCommentary` | string | Non | Pas de description |
|
||||
| `visibility` | string | Non | Pas de description |
|
||||
| `headers` | string | Non | Pas de description |
|
||||
| `output` | string | Non | Pas de description |
|
||||
| `output` | string | Non | Pas de description |
|
||||
| `output` | string | Non | Pas de description |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Statut de réussite de l'opération |
|
||||
| `postId` | string | ID du post créé |
|
||||
| `profile` | json | Informations du profil LinkedIn |
|
||||
| `error` | string | Message d'erreur si l'opération a échoué |
|
||||
|
||||
### `linkedin_get_profile`
|
||||
|
||||
Récupérer les informations de votre profil LinkedIn
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Statut de réussite de l'opération |
|
||||
| `postId` | string | ID du post créé |
|
||||
| `profile` | json | Informations du profil LinkedIn |
|
||||
| `error` | string | Message d'erreur si l'opération a échoué |
|
||||
|
||||
## Notes
|
||||
|
||||
- Catégorie : `tools`
|
||||
- Type : `linkedin`
|
||||
216
apps/docs/content/docs/fr/tools/mailgun.mdx
Normal file
216
apps/docs/content/docs/fr/tools/mailgun.mdx
Normal file
@@ -0,0 +1,216 @@
|
||||
---
|
||||
title: Mailgun
|
||||
description: Envoyez des e-mails et gérez des listes de diffusion avec Mailgun
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="mailgun"
|
||||
color="#F06248"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Mailgun](https://www.mailgun.com) est un service puissant d'envoi d'e-mails conçu pour les développeurs et les entreprises afin d'envoyer, recevoir et suivre des e-mails sans effort. Mailgun vous permet d'exploiter des API robustes pour des e-mails transactionnels et marketing fiables, une gestion flexible des listes de diffusion et un suivi avancé des événements.
|
||||
|
||||
Avec l'ensemble complet de fonctionnalités de Mailgun, vous pouvez automatiser les opérations clés liées aux e-mails et surveiller étroitement la délivrabilité et l'engagement des destinataires. Cela en fait une solution idéale pour l'automatisation des flux de travail où les communications, les notifications et les campagnes d'e-mails sont des éléments essentiels de vos processus.
|
||||
|
||||
Les fonctionnalités clés de Mailgun comprennent :
|
||||
|
||||
- **Envoi d'e-mails transactionnels :** Livrez des e-mails à haut volume tels que des notifications de compte, des reçus, des alertes et des réinitialisations de mot de passe.
|
||||
- **Contenu d'e-mail enrichi :** Envoyez des e-mails en texte brut et en HTML, et utilisez des balises pour catégoriser et suivre vos messages.
|
||||
- **Gestion des listes de diffusion :** Créez, mettez à jour et gérez des listes de diffusion et des membres pour envoyer efficacement des communications groupées.
|
||||
- **Informations sur les domaines :** Récupérez des détails sur vos domaines d'envoi pour surveiller la configuration et la santé.
|
||||
- **Suivi des événements :** Analysez la délivrabilité des e-mails et l'engagement avec des données détaillées sur les messages envoyés.
|
||||
- **Récupération des messages :** Accédez aux messages stockés pour des besoins de conformité, d'analyse ou de dépannage.
|
||||
|
||||
En intégrant Mailgun à Sim, vos agents sont habilités à envoyer des e-mails par programmation, gérer des listes d'e-mails, accéder aux informations de domaine et surveiller les événements en temps réel dans le cadre de flux de travail automatisés. Cela permet un engagement intelligent et basé sur les données avec vos utilisateurs directement à partir de vos processus alimentés par l'IA.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instructions d'utilisation
|
||||
|
||||
Intégrez Mailgun dans votre flux de travail. Envoyez des e-mails transactionnels, gérez des listes de diffusion et leurs membres, consultez les informations de domaine et suivez les événements liés aux e-mails. Prend en charge les e-mails texte et HTML, les balises pour le suivi et une gestion complète des listes.
|
||||
|
||||
## Outils
|
||||
|
||||
### `mailgun_send_message`
|
||||
|
||||
Envoyer un e-mail en utilisant l'API Mailgun
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API Mailgun |
|
||||
| `domain` | chaîne | Oui | Domaine Mailgun \(ex. : mg.example.com\) |
|
||||
| `from` | chaîne | Oui | Adresse e-mail de l'expéditeur |
|
||||
| `to` | chaîne | Oui | Adresse e-mail du destinataire \(séparées par des virgules pour plusieurs\) |
|
||||
| `subject` | chaîne | Oui | Objet de l'e-mail |
|
||||
| `text` | chaîne | Non | Corps de l'e-mail en texte brut |
|
||||
| `html` | chaîne | Non | Corps de l'e-mail en HTML |
|
||||
| `cc` | chaîne | Non | Adresse e-mail en CC \(séparées par des virgules pour plusieurs\) |
|
||||
| `bcc` | chaîne | Non | Adresse e-mail en BCC \(séparées par des virgules pour plusieurs\) |
|
||||
| `tags` | chaîne | Non | Tags pour l'e-mail \(séparés par des virgules\) |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | booléen | Indique si le message a été envoyé avec succès |
|
||||
| `id` | chaîne | ID du message |
|
||||
| `message` | chaîne | Message de réponse de Mailgun |
|
||||
|
||||
### `mailgun_get_message`
|
||||
|
||||
Récupérer un message stocké par sa clé
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API Mailgun |
|
||||
| `domain` | chaîne | Oui | Domaine Mailgun |
|
||||
| `messageKey` | chaîne | Oui | Clé de stockage du message |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Indique si la requête a réussi |
|
||||
| `recipients` | string | Destinataires du message |
|
||||
| `from` | string | Email de l'expéditeur |
|
||||
| `subject` | string | Objet du message |
|
||||
| `bodyPlain` | string | Corps du texte brut |
|
||||
| `strippedText` | string | Texte épuré |
|
||||
| `strippedSignature` | string | Signature épurée |
|
||||
| `bodyHtml` | string | Corps HTML |
|
||||
| `strippedHtml` | string | HTML épuré |
|
||||
| `attachmentCount` | number | Nombre de pièces jointes |
|
||||
| `timestamp` | number | Horodatage du message |
|
||||
| `messageHeaders` | json | En-têtes du message |
|
||||
| `contentIdMap` | json | Carte des ID de contenu |
|
||||
|
||||
### `mailgun_list_messages`
|
||||
|
||||
Liste des événements (journaux) pour les messages envoyés via Mailgun
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API Mailgun |
|
||||
| `domain` | string | Oui | Domaine Mailgun |
|
||||
| `event` | string | Non | Filtrer par type d'événement \(accepted, delivered, failed, opened, clicked, etc.\) |
|
||||
| `limit` | number | Non | Nombre maximum d'événements à retourner \(par défaut : 100\) |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Indique si la requête a réussi |
|
||||
| `items` | json | Tableau d'éléments d'événements |
|
||||
| `paging` | json | Informations de pagination |
|
||||
|
||||
### `mailgun_create_mailing_list`
|
||||
|
||||
Créer une nouvelle liste de diffusion
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API Mailgun |
|
||||
| `address` | chaîne | Oui | Adresse de la liste de diffusion \(ex., liste@exemple.com\) |
|
||||
| `name` | chaîne | Non | Nom de la liste de diffusion |
|
||||
| `description` | chaîne | Non | Description de la liste de diffusion |
|
||||
| `accessLevel` | chaîne | Non | Niveau d'accès : readonly, members, ou everyone |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | booléen | Indique si la liste a été créée avec succès |
|
||||
| `message` | chaîne | Message de réponse |
|
||||
| `list` | json | Détails de la liste de diffusion créée |
|
||||
|
||||
### `mailgun_get_mailing_list`
|
||||
|
||||
Obtenir les détails d'une liste de diffusion
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API Mailgun |
|
||||
| `address` | chaîne | Oui | Adresse de la liste de diffusion |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | booléen | Indique si la requête a réussi |
|
||||
| `list` | json | Détails de la liste de diffusion |
|
||||
|
||||
### `mailgun_add_list_member`
|
||||
|
||||
Ajouter un membre à une liste de diffusion
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API Mailgun |
|
||||
| `listAddress` | chaîne | Oui | Adresse de la liste de diffusion |
|
||||
| `address` | chaîne | Oui | Adresse e-mail du membre |
|
||||
| `name` | chaîne | Non | Nom du membre |
|
||||
| `vars` | chaîne | Non | Chaîne JSON des variables personnalisées |
|
||||
| `subscribed` | booléen | Non | Indique si le membre est abonné |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Indique si le membre a été ajouté avec succès |
|
||||
| `message` | string | Message de réponse |
|
||||
| `member` | json | Détails du membre ajouté |
|
||||
|
||||
### `mailgun_list_domains`
|
||||
|
||||
Lister tous les domaines de votre compte Mailgun
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API Mailgun |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Indique si la requête a réussi |
|
||||
| `totalCount` | number | Nombre total de domaines |
|
||||
| `items` | json | Tableau d'objets de domaine |
|
||||
|
||||
### `mailgun_get_domain`
|
||||
|
||||
Obtenir les détails d'un domaine spécifique
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API Mailgun |
|
||||
| `domain` | string | Oui | Nom de domaine |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Indique si la requête a réussi |
|
||||
| `domain` | json | Détails du domaine |
|
||||
|
||||
## Notes
|
||||
|
||||
- Catégorie : `tools`
|
||||
- Type : `mailgun`
|
||||
54
apps/docs/content/docs/fr/tools/search.mdx
Normal file
54
apps/docs/content/docs/fr/tools/search.mdx
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
title: Recherche
|
||||
description: Rechercher sur le web (0,01 $ par recherche)
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="search"
|
||||
color="#3B82F6"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
L'outil **Recherche** vous permet de rechercher sur le web depuis vos flux de travail Sim en utilisant des moteurs de recherche à la pointe de la technologie. Utilisez-le pour intégrer les dernières informations, actualités, faits et contenus web directement dans vos agents, automatisations ou conversations.
|
||||
|
||||
- **Recherche web générale** : trouvez des informations à jour sur internet pour compléter vos flux de travail.
|
||||
- **Requêtes automatisées** : laissez les agents ou la logique du programme soumettre des requêtes de recherche et traiter les résultats automatiquement.
|
||||
- **Résultats structurés** : renvoie les résultats web les plus pertinents, y compris le titre, le lien, l'extrait et la date pour chaque résultat.
|
||||
|
||||
> **Remarque :** chaque recherche coûte **0,01 $** par requête.
|
||||
|
||||
Cet outil est idéal pour tout flux de travail où vos agents ont besoin d'accéder à des données web en direct ou doivent faire référence à des événements actuels, effectuer des recherches ou récupérer du contenu supplémentaire.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instructions d'utilisation
|
||||
|
||||
Recherchez sur le web à l'aide de l'outil Recherche. Chaque recherche coûte 0,01 $ par requête.
|
||||
|
||||
## Outils
|
||||
|
||||
### `search_tool`
|
||||
|
||||
Rechercher sur le web. Renvoie les résultats web les plus pertinents, y compris le titre, le lien, l'extrait et la date pour chaque résultat.
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `query` | string | Oui | La requête de recherche |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `results` | json | Résultats de recherche |
|
||||
| `query` | string | La requête de recherche |
|
||||
| `totalResults` | number | Nombre total de résultats |
|
||||
| `source` | string | Source de recherche \(exa\) |
|
||||
| `cost` | json | Informations sur les coûts \(0,01 $\) |
|
||||
|
||||
## Notes
|
||||
|
||||
- Catégorie : `tools`
|
||||
- Type : `search`
|
||||
392
apps/docs/content/docs/fr/tools/sendgrid.mdx
Normal file
392
apps/docs/content/docs/fr/tools/sendgrid.mdx
Normal file
@@ -0,0 +1,392 @@
|
||||
---
|
||||
title: SendGrid
|
||||
description: Envoyez des emails et gérez des contacts, des listes et des modèles
|
||||
avec SendGrid
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="sendgrid"
|
||||
color="#1A82E2"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SendGrid](https://sendgrid.com) est une plateforme d'envoi d'emails cloud de premier plan, reconnue par les développeurs et les entreprises pour l'envoi fiable d'emails transactionnels et marketing à grande échelle. Grâce à ses API robustes et ses outils puissants, SendGrid vous permet de gérer tous les aspects de votre communication par email, de l'envoi de notifications et de reçus à la gestion de campagnes marketing complexes.
|
||||
|
||||
SendGrid offre aux utilisateurs une suite complète d'opérations email, permettant d'automatiser les flux de travail email critiques et de gérer étroitement les listes de contacts, les modèles et l'engagement des destinataires. Son intégration transparente avec Sim permet aux agents et aux workflows de délivrer des messages ciblés, de maintenir des listes dynamiques de contacts et de destinataires, de déclencher des emails personnalisés via des modèles et de suivre les résultats en temps réel.
|
||||
|
||||
Les fonctionnalités clés de SendGrid comprennent :
|
||||
|
||||
- **Email transactionnel :** envoi automatisé d'emails transactionnels à haut volume (comme des notifications, reçus et réinitialisations de mot de passe).
|
||||
- **Modèles dynamiques :** utilisation de modèles HTML riches ou textuels avec des données dynamiques pour une communication hautement personnalisée à grande échelle.
|
||||
- **Gestion des contacts :** ajout et mise à jour de contacts marketing, gestion des listes de destinataires et ciblage de segments pour les campagnes.
|
||||
- **Prise en charge des pièces jointes :** inclusion d'une ou plusieurs pièces jointes dans vos emails.
|
||||
- **Couverture API complète :** gestion programmatique des emails, contacts, listes, modèles, groupes de suppression, et plus encore.
|
||||
|
||||
En connectant SendGrid avec Sim, vos agents peuvent :
|
||||
|
||||
- Envoyer des emails simples et avancés (avec modèles ou multi-destinataires) dans le cadre de n'importe quel workflow.
|
||||
- Gérer et segmenter automatiquement les contacts et les listes.
|
||||
- Exploiter des modèles pour assurer cohérence et personnalisation dynamique.
|
||||
- Suivre et répondre à l'engagement des emails au sein de vos processus automatisés.
|
||||
|
||||
Cette intégration vous permet d'automatiser tous les flux de communication critiques, de garantir que les messages atteignent le bon public et de maintenir le contrôle sur la stratégie de messagerie de votre organisation, directement à partir des flux de travail Sim.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instructions d'utilisation
|
||||
|
||||
Intégrez SendGrid dans votre flux de travail. Envoyez des e-mails transactionnels, gérez les contacts et les listes marketing, et travaillez avec des modèles d'e-mail. Prend en charge les modèles dynamiques, les pièces jointes et la gestion complète des contacts.
|
||||
|
||||
## Outils
|
||||
|
||||
### `sendgrid_send_mail`
|
||||
|
||||
Envoyer un e-mail en utilisant l'API SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API SendGrid |
|
||||
| `from` | string | Oui | Adresse e-mail de l'expéditeur \(doit être vérifiée dans SendGrid\) |
|
||||
| `fromName` | string | Non | Nom de l'expéditeur |
|
||||
| `to` | string | Oui | Adresse e-mail du destinataire |
|
||||
| `toName` | string | Non | Nom du destinataire |
|
||||
| `subject` | string | Non | Objet de l'e-mail \(obligatoire sauf si vous utilisez un modèle avec un objet prédéfini\) |
|
||||
| `content` | string | Non | Contenu du corps de l'e-mail \(obligatoire sauf si vous utilisez un modèle avec un contenu prédéfini\) |
|
||||
| `contentType` | string | Non | Type de contenu \(text/plain ou text/html\) |
|
||||
| `cc` | string | Non | Adresse e-mail en CC |
|
||||
| `bcc` | string | Non | Adresse e-mail en BCC |
|
||||
| `replyTo` | string | Non | Adresse e-mail de réponse |
|
||||
| `replyToName` | string | Non | Nom de réponse |
|
||||
| `attachments` | file[] | Non | Fichiers à joindre à l'e-mail |
|
||||
| `templateId` | string | Non | ID du modèle SendGrid à utiliser |
|
||||
| `dynamicTemplateData` | json | Non | Objet JSON de données de modèle dynamique |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Indique si l'e-mail a été envoyé avec succès |
|
||||
| `messageId` | string | ID du message SendGrid |
|
||||
| `to` | string | Adresse e-mail du destinataire |
|
||||
| `subject` | string | Objet de l'e-mail |
|
||||
|
||||
### `sendgrid_add_contact`
|
||||
|
||||
Ajouter un nouveau contact à SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API SendGrid |
|
||||
| `email` | string | Oui | Adresse e-mail du contact |
|
||||
| `firstName` | string | Non | Prénom du contact |
|
||||
| `lastName` | string | Non | Nom de famille du contact |
|
||||
| `customFields` | json | Non | Objet JSON de paires clé-valeur de champs personnalisés (utilisez les ID de champ comme e1_T, e2_N, e3_D, pas les noms de champ) |
|
||||
| `listIds` | string | Non | Liste d'ID séparés par des virgules pour ajouter le contact |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | ID de tâche pour suivre la création asynchrone du contact |
|
||||
| `email` | string | Adresse e-mail du contact |
|
||||
| `firstName` | string | Prénom du contact |
|
||||
| `lastName` | string | Nom de famille du contact |
|
||||
| `message` | string | Message d'état |
|
||||
|
||||
### `sendgrid_get_contact`
|
||||
|
||||
Obtenir un contact spécifique par ID depuis SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API SendGrid |
|
||||
| `contactId` | string | Oui | ID du contact |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID du contact |
|
||||
| `email` | string | Adresse e-mail du contact |
|
||||
| `firstName` | string | Prénom du contact |
|
||||
| `lastName` | string | Nom de famille du contact |
|
||||
| `createdAt` | string | Horodatage de création |
|
||||
| `updatedAt` | string | Horodatage de dernière mise à jour |
|
||||
| `listIds` | json | Tableau des ID de listes auxquelles le contact appartient |
|
||||
| `customFields` | json | Valeurs des champs personnalisés |
|
||||
|
||||
### `sendgrid_search_contacts`
|
||||
|
||||
Rechercher des contacts dans SendGrid à l'aide d'une requête
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | ---------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API SendGrid |
|
||||
| `query` | string | Oui | Requête de recherche (par ex., "email LIKE '%example.com%' AND CONTAINS(list_ids, 'list-id')") |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `contacts` | json | Tableau des contacts correspondants |
|
||||
| `contactCount` | number | Nombre total de contacts trouvés |
|
||||
|
||||
### `sendgrid_delete_contacts`
|
||||
|
||||
Supprimer un ou plusieurs contacts de SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | ---------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API SendGrid |
|
||||
| `contactIds` | string | Oui | ID de contacts séparés par des virgules à supprimer |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | ID de tâche pour la demande de suppression |
|
||||
|
||||
### `sendgrid_create_list`
|
||||
|
||||
Créer une nouvelle liste de contacts dans SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `name` | chaîne | Oui | Nom de la liste |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | chaîne | ID de la liste |
|
||||
| `name` | chaîne | Nom de la liste |
|
||||
| `contactCount` | nombre | Nombre de contacts dans la liste |
|
||||
|
||||
### `sendgrid_get_list`
|
||||
|
||||
Obtenir une liste spécifique par ID depuis SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `listId` | chaîne | Oui | ID de la liste |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | chaîne | ID de la liste |
|
||||
| `name` | chaîne | Nom de la liste |
|
||||
| `contactCount` | nombre | Nombre de contacts dans la liste |
|
||||
|
||||
### `sendgrid_list_all_lists`
|
||||
|
||||
Obtenir toutes les listes de contacts depuis SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `pageSize` | nombre | Non | Nombre de listes à renvoyer par page \(par défaut : 100\) |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `lists` | json | Tableau de listes |
|
||||
|
||||
### `sendgrid_delete_list`
|
||||
|
||||
Supprimer une liste de contacts de SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `listId` | chaîne | Oui | ID de la liste à supprimer |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `message` | chaîne | Message de succès |
|
||||
|
||||
### `sendgrid_add_contacts_to_list`
|
||||
|
||||
Ajouter ou mettre à jour des contacts et les assigner à une liste dans SendGrid (utilise PUT /v3/marketing/contacts)
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `listId` | chaîne | Oui | ID de la liste à laquelle ajouter les contacts |
|
||||
| `contacts` | json | Oui | Tableau JSON d'objets contact. Chaque contact doit avoir au minimum : email \(ou phone_number_id/external_id/anonymous_id\). Exemple : \[\{"email": "user@example.com", "first_name": "John"\}\] |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | chaîne | ID de tâche pour suivre l'opération asynchrone |
|
||||
| `message` | chaîne | Message de statut |
|
||||
|
||||
### `sendgrid_remove_contacts_from_list`
|
||||
|
||||
Supprimer des contacts d'une liste spécifique dans SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `listId` | chaîne | Oui | ID de la liste |
|
||||
| `contactIds` | chaîne | Oui | IDs de contacts séparés par des virgules à supprimer de la liste |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | ID de tâche pour la requête |
|
||||
|
||||
### `sendgrid_create_template`
|
||||
|
||||
Créer un nouveau modèle d'e-mail dans SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API SendGrid |
|
||||
| `name` | string | Oui | Nom du modèle |
|
||||
| `generation` | string | Non | Type de génération de modèle \(legacy ou dynamic, par défaut : dynamic\) |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID du modèle |
|
||||
| `name` | string | Nom du modèle |
|
||||
| `generation` | string | Génération du modèle |
|
||||
| `updatedAt` | string | Horodatage de la dernière mise à jour |
|
||||
| `versions` | json | Tableau des versions du modèle |
|
||||
|
||||
### `sendgrid_get_template`
|
||||
|
||||
Obtenir un modèle spécifique par ID depuis SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | Oui | Clé API SendGrid |
|
||||
| `templateId` | string | Oui | ID du modèle |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | ID du modèle |
|
||||
| `name` | string | Nom du modèle |
|
||||
| `generation` | string | Génération du modèle |
|
||||
| `updatedAt` | string | Horodatage de la dernière mise à jour |
|
||||
| `versions` | json | Tableau des versions du modèle |
|
||||
|
||||
### `sendgrid_list_templates`
|
||||
|
||||
Obtenir tous les modèles d'e-mail de SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `generations` | chaîne | Non | Filtrer par génération \(legacy, dynamic, ou les deux\) |
|
||||
| `pageSize` | nombre | Non | Nombre de modèles à renvoyer par page \(par défaut : 20\) |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `templates` | json | Tableau de modèles |
|
||||
|
||||
### `sendgrid_delete_template`
|
||||
|
||||
Supprimer un modèle d'e-mail de SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `templateId` | chaîne | Oui | ID du modèle à supprimer |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | booléen | Statut de réussite de l'opération |
|
||||
| `messageId` | chaîne | ID du message e-mail \(send_mail\) |
|
||||
| `id` | chaîne | ID de la ressource |
|
||||
| `jobId` | chaîne | ID de tâche pour les opérations asynchrones |
|
||||
| `email` | chaîne | Adresse e-mail |
|
||||
| `firstName` | chaîne | Prénom |
|
||||
| `lastName` | chaîne | Nom de famille |
|
||||
| `contacts` | json | Tableau de contacts |
|
||||
| `contactCount` | nombre | Nombre de contacts |
|
||||
| `lists` | json | Tableau de listes |
|
||||
| `templates` | json | Tableau de modèles |
|
||||
| `message` | chaîne | Statut ou message de réussite |
|
||||
| `name` | chaîne | Nom de la ressource |
|
||||
| `generation` | chaîne | Génération du modèle |
|
||||
|
||||
### `sendgrid_create_template_version`
|
||||
|
||||
Créer une nouvelle version d'un modèle d'e-mail dans SendGrid
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | ---------- | ----------- |
|
||||
| `apiKey` | chaîne | Oui | Clé API SendGrid |
|
||||
| `templateId` | chaîne | Oui | ID du modèle |
|
||||
| `name` | chaîne | Oui | Nom de la version |
|
||||
| `subject` | chaîne | Oui | Objet de l'e-mail |
|
||||
| `htmlContent` | chaîne | Non | Contenu HTML du modèle |
|
||||
| `plainContent` | chaîne | Non | Contenu texte brut du modèle |
|
||||
| `active` | booléen | Non | Si cette version est active \(par défaut : true\) |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | chaîne | ID de la version |
|
||||
| `templateId` | chaîne | ID du modèle |
|
||||
| `name` | chaîne | Nom de la version |
|
||||
| `subject` | chaîne | Objet de l'e-mail |
|
||||
| `active` | booléen | Si cette version est active |
|
||||
| `htmlContent` | chaîne | Contenu HTML |
|
||||
| `plainContent` | chaîne | Contenu texte brut |
|
||||
| `updatedAt` | chaîne | Horodatage de la dernière mise à jour |
|
||||
|
||||
## Notes
|
||||
|
||||
- Catégorie : `tools`
|
||||
- Type : `sendgrid`
|
||||
73
apps/docs/content/docs/fr/tools/smtp.mdx
Normal file
73
apps/docs/content/docs/fr/tools/smtp.mdx
Normal file
@@ -0,0 +1,73 @@
|
||||
---
|
||||
title: SMTP
|
||||
description: Envoyez des emails via n'importe quel serveur de messagerie SMTP
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="smtp"
|
||||
color="#4A5568"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SMTP (Simple Mail Transfer Protocol)](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) est la norme fondamentale pour la transmission d'emails sur Internet. En vous connectant à n'importe quel serveur compatible SMTP—comme Gmail, Outlook, ou l'infrastructure de messagerie de votre organisation—vous pouvez envoyer des emails de manière programmatique et automatiser vos communications sortantes.
|
||||
|
||||
L'intégration SMTP vous permet de personnaliser entièrement l'envoi d'emails grâce à une connectivité directe au serveur, prenant en charge les cas d'utilisation d'email basiques et avancés. Avec SMTP, vous pouvez contrôler tous les aspects de la livraison des messages, de la gestion des destinataires et du formatage du contenu, ce qui le rend adapté aux notifications transactionnelles, aux envois en masse et à tout flux de travail automatisé nécessitant une livraison robuste d'emails sortants.
|
||||
|
||||
**Les fonctionnalités clés disponibles via l'intégration SMTP incluent :**
|
||||
|
||||
- **Livraison universelle d'emails :** Envoyez des emails en utilisant n'importe quel serveur SMTP en configurant les paramètres de connexion standard.
|
||||
- **Expéditeur et destinataires personnalisables :** Spécifiez l'adresse de l'expéditeur, le nom d'affichage, les destinataires principaux, ainsi que les champs CC et BCC.
|
||||
- **Prise en charge de contenu enrichi :** Envoyez des emails en texte brut ou au format HTML richement formaté selon vos besoins.
|
||||
- **Pièces jointes :** Incluez plusieurs fichiers en pièces jointes dans les emails sortants.
|
||||
- **Sécurité flexible :** Connectez-vous en utilisant les protocoles TLS, SSL ou standard (non chiffré) selon ce que prend en charge votre fournisseur SMTP.
|
||||
- **En-têtes avancés :** Définissez les en-têtes de réponse et d'autres options d'email avancées pour répondre aux flux de messagerie complexes et aux interactions utilisateur.
|
||||
|
||||
En intégrant SMTP avec Sim, les agents et les flux de travail peuvent envoyer des emails de manière programmatique dans le cadre de tout processus automatisé—allant de l'envoi de notifications et de confirmations à l'automatisation des communications externes, des rapports et de la livraison de documents. Cela offre une approche hautement flexible et indépendante du fournisseur pour gérer les emails directement au sein de vos processus pilotés par l'IA.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## Instructions d'utilisation
|
||||
|
||||
Envoyez des emails en utilisant n'importe quel serveur SMTP (Gmail, Outlook, serveurs personnalisés, etc.). Configurez les paramètres de connexion SMTP et envoyez des emails avec un contrôle total sur le contenu, les destinataires et les pièces jointes.
|
||||
|
||||
## Outils
|
||||
|
||||
### `smtp_send_mail`
|
||||
|
||||
Envoyer des emails via un serveur SMTP
|
||||
|
||||
#### Entrée
|
||||
|
||||
| Paramètre | Type | Obligatoire | Description |
|
||||
| --------- | ---- | ----------- | ----------- |
|
||||
| `smtpHost` | string | Oui | Nom d'hôte du serveur SMTP \(ex., smtp.gmail.com\) |
|
||||
| `smtpPort` | number | Oui | Port du serveur SMTP \(587 pour TLS, 465 pour SSL\) |
|
||||
| `smtpUsername` | string | Oui | Nom d'utilisateur pour l'authentification SMTP |
|
||||
| `smtpPassword` | string | Oui | Mot de passe pour l'authentification SMTP |
|
||||
| `smtpSecure` | string | Oui | Protocole de sécurité \(TLS, SSL ou Aucun\) |
|
||||
| `from` | string | Oui | Adresse email de l'expéditeur |
|
||||
| `to` | string | Oui | Adresse email du destinataire |
|
||||
| `subject` | string | Oui | Objet de l'email |
|
||||
| `body` | string | Oui | Contenu du corps de l'email |
|
||||
| `contentType` | string | Non | Type de contenu \(texte ou html\) |
|
||||
| `fromName` | string | Non | Nom d'affichage de l'expéditeur |
|
||||
| `cc` | string | Non | Destinataires en copie \(séparés par des virgules\) |
|
||||
| `bcc` | string | Non | Destinataires en copie cachée \(séparés par des virgules\) |
|
||||
| `replyTo` | string | Non | Adresse email de réponse |
|
||||
| `attachments` | file[] | Non | Fichiers à joindre à l'email |
|
||||
|
||||
#### Sortie
|
||||
|
||||
| Paramètre | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | Indique si l'email a été envoyé avec succès |
|
||||
| `messageId` | string | ID du message du serveur SMTP |
|
||||
| `to` | string | Adresse email du destinataire |
|
||||
| `subject` | string | Objet de l'email |
|
||||
| `error` | string | Message d'erreur si l'envoi a échoué |
|
||||
|
||||
## Notes
|
||||
|
||||
- Catégorie : `tools`
|
||||
- Type : `smtp`
|
||||
89
apps/docs/content/docs/ja/tools/apify.mdx
Normal file
89
apps/docs/content/docs/ja/tools/apify.mdx
Normal file
@@ -0,0 +1,89 @@
|
||||
---
|
||||
title: Apify
|
||||
description: Apifyアクターを実行して結果を取得する
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="apify"
|
||||
color="#E0E0E0"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Apify](https://apify.com/)は、WebオートメーションとWebスクレイピングアクターを構築、デプロイ、大規模に実行するための強力なプラットフォームです。Apifyを使用すると、任意のWebサイトから有用なデータを抽出し、ワークフローを自動化し、データパイプラインをシームレスに接続できます。
|
||||
|
||||
Apifyでは以下のことが可能です:
|
||||
|
||||
- **既製または独自のアクターを実行する**:公開アクターを統合するか、独自のアクターを開発して、幅広いWebデータ抽出とブラウザタスクを自動化します。
|
||||
- **データセットを取得する**:アクターによって収集された構造化データセットにリアルタイムでアクセスし管理します。
|
||||
- **Webオートメーションをスケールする**:クラウドインフラストラクチャを活用して、堅牢なエラー処理を備えた同期または非同期のタスクを確実に実行します。
|
||||
|
||||
Simでは、Apify統合によりエージェントがプログラムでApifyの主要な操作を実行できます:
|
||||
|
||||
- **アクターの実行(同期)**:`apify_run_actor_sync`を使用してApifyアクターを起動し、完了を待って、実行が終了するとすぐに結果を取得します。
|
||||
- **アクターの実行(非同期)**:`apify_run_actor_async`を使用してバックグラウンドでアクターを開始し、定期的に結果をポーリングします。これは長時間または複雑なジョブに適しています。
|
||||
|
||||
これらの操作により、エージェントはワークフロー内で直接、自動化、スクレイピング、データ収集またはブラウザ自動化タスクのオーケストレーションを行うことができます — すべて柔軟な構成と結果処理を備え、手動実行や外部ツールを必要としません。Apifyを動的な自動化およびデータ抽出エンジンとして統合し、プログラムでエージェントのWebスケールワークフローを強化します。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用方法
|
||||
|
||||
Apifyをワークフローに統合します。カスタム入力で任意のApifyアクターを実行し、結果を取得します。自動データセット取得機能を備えた同期および非同期実行の両方をサポートしています。
|
||||
|
||||
## ツール
|
||||
|
||||
### `apify_run_actor_sync`
|
||||
|
||||
APIPYアクターを同期的に実行して結果を取得(最大5分)
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | console.apify.com/account#/integrationsから取得したAPIFY APIトークン |
|
||||
| `actorId` | string | はい | アクターIDまたはユーザー名/アクター名(例:"janedoe/my-actor"またはアクターID) |
|
||||
| `input` | string | いいえ | JSON文字列としてのアクター入力。必須フィールドについてはアクターのドキュメントを参照してください。 |
|
||||
| `timeout` | number | いいえ | タイムアウト(秒)(デフォルト:アクターのデフォルト) |
|
||||
| `build` | string | いいえ | 実行するアクタービルド(例:"latest"、"beta"、またはビルドタグ/番号) |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | アクター実行が成功したかどうか |
|
||||
| `runId` | string | APIFY実行ID |
|
||||
| `status` | string | 実行ステータス(SUCCEEDED、FAILEDなど) |
|
||||
| `datasetId` | string | 結果を含むデータセットID |
|
||||
| `items` | array | データセット項目(完了した場合) |
|
||||
|
||||
### `apify_run_actor_async`
|
||||
|
||||
長時間実行タスク用のポーリングを使用して、APIPYアクターを非同期で実行
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | console.apify.com/account#/integrationsから取得したAPIFY APIトークン |
|
||||
| `actorId` | string | はい | アクターIDまたはユーザー名/アクター名(例:"janedoe/my-actor"またはアクターID) |
|
||||
| `input` | string | いいえ | JSON文字列としてのアクター入力 |
|
||||
| `waitForFinish` | number | いいえ | ポーリング開始前の初期待機時間(秒)(0-60) |
|
||||
| `itemLimit` | number | いいえ | 取得する最大データセット項目数(1-250000、デフォルト100) |
|
||||
| `timeout` | number | いいえ | タイムアウト(秒)(デフォルト:アクターのデフォルト) |
|
||||
| `build` | string | いいえ | 実行するアクタービルド(例:"latest"、"beta"、またはビルドタグ/番号) |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | アクターの実行が成功したかどうか |
|
||||
| `runId` | string | APIFY実行ID |
|
||||
| `status` | string | 実行ステータス(SUCCEEDED、FAILED、など) |
|
||||
| `datasetId` | string | 結果を含むデータセットID |
|
||||
| `items` | array | データセット項目(完了した場合) |
|
||||
|
||||
## 注意事項
|
||||
|
||||
- カテゴリー: `tools`
|
||||
- タイプ: `apify`
|
||||
83
apps/docs/content/docs/ja/tools/linkedin.mdx
Normal file
83
apps/docs/content/docs/ja/tools/linkedin.mdx
Normal file
@@ -0,0 +1,83 @@
|
||||
---
|
||||
title: LinkedIn
|
||||
description: 投稿を共有し、LinkedInのプレゼンスを管理する
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="linkedin"
|
||||
color="#0072B1"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[LinkedIn](https://www.linkedin.com)は世界最大のプロフェッショナルネットワーキングプラットフォームで、ユーザーがキャリアを構築し、ネットワークとつながり、専門的なコンテンツを共有することを可能にします。LinkedInは、個人ブランディング、採用活動、求職活動、ビジネス開発など、様々な業界のプロフェッショナルに広く利用されています。
|
||||
|
||||
LinkedInを使用すると、個人フィードに投稿を簡単に共有してネットワークとエンゲージメントを取ったり、プロフェッショナルな実績を強調するためにプロフィール情報にアクセスしたりできます。Simとの自動統合により、LinkedInの機能をプログラムで活用できるようになり、エージェントやワークフローが更新を投稿したり、プロフェッショナルなプレゼンスについてレポートしたり、手動の作業なしにフィードをアクティブに保つことが可能になります。
|
||||
|
||||
この統合を通じて利用可能な主なLinkedIn機能には以下が含まれます:
|
||||
|
||||
- **投稿の共有:** プロフェッショナルな更新、記事、またはお知らせをLinkedInの個人フィードに自動的に公開します。
|
||||
- **プロフィール情報:** LinkedInプロフィールに関する詳細情報を取得し、ワークフロー内での監視や下流タスクでの使用が可能です。
|
||||
|
||||
これらの機能により、AIやワークフロー自動化戦略の一部として、LinkedInネットワークとのエンゲージメントを維持し、プロフェッショナルなリーチを効率的に拡大することが容易になります。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用方法
|
||||
|
||||
LinkedInをワークフローに統合します。個人フィードに投稿を共有し、LinkedInプロフィール情報にアクセスします。
|
||||
|
||||
## ツール
|
||||
|
||||
### `linkedin_share_post`
|
||||
|
||||
LinkedInの個人フィードに投稿を共有する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `text` | string | はい | LinkedInの投稿のテキスト内容 |
|
||||
| `visibility` | string | いいえ | この投稿を見ることができる人:「PUBLIC」または「CONNECTIONS」\(デフォルト:「PUBLIC」\) |
|
||||
| `request` | string | いいえ | 説明なし |
|
||||
| `output` | string | いいえ | 説明なし |
|
||||
| `output` | string | いいえ | 説明なし |
|
||||
| `specificContent` | string | いいえ | 説明なし |
|
||||
| `shareCommentary` | string | いいえ | 説明なし |
|
||||
| `visibility` | string | いいえ | 説明なし |
|
||||
| `headers` | string | いいえ | 説明なし |
|
||||
| `output` | string | いいえ | 説明なし |
|
||||
| `output` | string | いいえ | 説明なし |
|
||||
| `output` | string | いいえ | 説明なし |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 操作成功ステータス |
|
||||
| `postId` | string | 作成された投稿ID |
|
||||
| `profile` | json | LinkedInプロフィール情報 |
|
||||
| `error` | string | 操作が失敗した場合のエラーメッセージ |
|
||||
|
||||
### `linkedin_get_profile`
|
||||
|
||||
LinkedInプロフィール情報を取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 操作成功ステータス |
|
||||
| `postId` | string | 作成された投稿ID |
|
||||
| `profile` | json | LinkedInプロフィール情報 |
|
||||
| `error` | string | 操作が失敗した場合のエラーメッセージ |
|
||||
|
||||
## 注意事項
|
||||
|
||||
- カテゴリー: `tools`
|
||||
- タイプ: `linkedin`
|
||||
216
apps/docs/content/docs/ja/tools/mailgun.mdx
Normal file
216
apps/docs/content/docs/ja/tools/mailgun.mdx
Normal file
@@ -0,0 +1,216 @@
|
||||
---
|
||||
title: Mailgun
|
||||
description: Mailgunでメールを送信し、メーリングリストを管理する
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="mailgun"
|
||||
color="#F06248"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Mailgun](https://www.mailgun.com)は、開発者やビジネス向けに設計された強力なメール配信サービスで、メールの送受信やトラッキングを簡単に行うことができます。Mailgunを使用すると、信頼性の高いトランザクションメールやマーケティングメール、柔軟なメーリングリスト管理、高度なイベントトラッキングのための堅牢なAPIを活用できます。
|
||||
|
||||
Mailgunの包括的な機能セットにより、主要なメール操作を自動化し、配信可能性や受信者のエンゲージメントを緊密に監視することができます。これにより、コミュニケーション、通知、キャンペーンメールがワークフローの中核となるプロセスの理想的なソリューションとなります。
|
||||
|
||||
Mailgunの主な機能には以下が含まれます:
|
||||
|
||||
- **トランザクションメール送信:** アカウント通知、領収書、アラート、パスワードリセットなどの大量メールを配信。
|
||||
- **リッチメールコンテンツ:** プレーンテキストとHTMLの両方のメールを送信し、タグを使用してメッセージを分類・追跡。
|
||||
- **メーリングリスト管理:** メーリングリストとメンバーを作成、更新、管理して、グループコミュニケーションを効率的に送信。
|
||||
- **ドメイン情報:** 送信ドメインに関する詳細を取得して、構成と健全性を監視。
|
||||
- **イベントトラッキング:** 送信メッセージに関する詳細なイベントデータで、メールの配信可能性とエンゲージメントを分析。
|
||||
- **メッセージ取得:** コンプライアンス、分析、またはトラブルシューティングのニーズのために保存されたメッセージにアクセス。
|
||||
|
||||
MailgunをSimに統合することで、エージェントはプログラムによるメール送信、メーリングリスト管理、ドメイン情報へのアクセス、自動化されたワークフローの一部としてリアルタイムイベントの監視を行うことができます。これにより、AIを活用したプロセスから直接ユーザーとインテリジェントでデータ駆動型のエンゲージメントが可能になります。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用手順
|
||||
|
||||
Mailgunをワークフローに統合します。トランザクションメールの送信、メーリングリストとメンバーの管理、ドメイン情報の表示、メールイベントの追跡が可能です。テキストメールとHTMLメール、追跡用のタグ、包括的なリスト管理をサポートしています。
|
||||
|
||||
## ツール
|
||||
|
||||
### `mailgun_send_message`
|
||||
|
||||
Mailgun APIを使用してメールを送信する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | Mailgun APIキー |
|
||||
| `domain` | string | はい | Mailgunドメイン(例:mg.example.com) |
|
||||
| `from` | string | はい | 送信者のメールアドレス |
|
||||
| `to` | string | はい | 受信者のメールアドレス(複数の場合はカンマ区切り) |
|
||||
| `subject` | string | はい | メールの件名 |
|
||||
| `text` | string | いいえ | メールのプレーンテキスト本文 |
|
||||
| `html` | string | いいえ | メールのHTML本文 |
|
||||
| `cc` | string | いいえ | CCメールアドレス(複数の場合はカンマ区切り) |
|
||||
| `bcc` | string | いいえ | BCCメールアドレス(複数の場合はカンマ区切り) |
|
||||
| `tags` | string | いいえ | メールのタグ(カンマ区切り) |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | メッセージが正常に送信されたかどうか |
|
||||
| `id` | string | メッセージID |
|
||||
| `message` | string | Mailgunからのレスポンスメッセージ |
|
||||
|
||||
### `mailgun_get_message`
|
||||
|
||||
キーによって保存されたメッセージを取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | Mailgun APIキー |
|
||||
| `domain` | string | はい | Mailgunドメイン |
|
||||
| `messageKey` | string | はい | メッセージストレージキー |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | リクエストが成功したかどうか |
|
||||
| `recipients` | string | メッセージの受信者 |
|
||||
| `from` | string | 送信者のメールアドレス |
|
||||
| `subject` | string | メッセージの件名 |
|
||||
| `bodyPlain` | string | プレーンテキスト本文 |
|
||||
| `strippedText` | string | 整形されたテキスト |
|
||||
| `strippedSignature` | string | 整形された署名 |
|
||||
| `bodyHtml` | string | HTML本文 |
|
||||
| `strippedHtml` | string | 整形されたHTML |
|
||||
| `attachmentCount` | number | 添付ファイルの数 |
|
||||
| `timestamp` | number | メッセージのタイムスタンプ |
|
||||
| `messageHeaders` | json | メッセージヘッダー |
|
||||
| `contentIdMap` | json | コンテンツIDマップ |
|
||||
|
||||
### `mailgun_list_messages`
|
||||
|
||||
Mailgunを通じて送信されたメッセージのイベント(ログ)を一覧表示する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | Mailgun APIキー |
|
||||
| `domain` | string | はい | Mailgunドメイン |
|
||||
| `event` | string | いいえ | イベントタイプでフィルタリング(accepted、delivered、failed、opened、clickedなど) |
|
||||
| `limit` | number | いいえ | 返すイベントの最大数(デフォルト:100) |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | リクエストが成功したかどうか |
|
||||
| `items` | json | イベント項目の配列 |
|
||||
| `paging` | json | ページング情報 |
|
||||
|
||||
### `mailgun_create_mailing_list`
|
||||
|
||||
新しいメーリングリストを作成する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | Mailgun APIキー |
|
||||
| `address` | string | はい | メーリングリストアドレス(例:list@example.com) |
|
||||
| `name` | string | いいえ | メーリングリスト名 |
|
||||
| `description` | string | いいえ | メーリングリストの説明 |
|
||||
| `accessLevel` | string | いいえ | アクセスレベル:readonly、members、またはeveryone |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | リストが正常に作成されたかどうか |
|
||||
| `message` | string | レスポンスメッセージ |
|
||||
| `list` | json | 作成されたメーリングリストの詳細 |
|
||||
|
||||
### `mailgun_get_mailing_list`
|
||||
|
||||
メーリングリストの詳細を取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | Mailgun APIキー |
|
||||
| `address` | string | はい | メーリングリストアドレス |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | リクエストが成功したかどうか |
|
||||
| `list` | json | メーリングリストの詳細 |
|
||||
|
||||
### `mailgun_add_list_member`
|
||||
|
||||
メーリングリストにメンバーを追加する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | Mailgun APIキー |
|
||||
| `listAddress` | string | はい | メーリングリストアドレス |
|
||||
| `address` | string | はい | メンバーのメールアドレス |
|
||||
| `name` | string | いいえ | メンバー名 |
|
||||
| `vars` | string | いいえ | カスタム変数のJSON文字列 |
|
||||
| `subscribed` | boolean | いいえ | メンバーが購読しているかどうか |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | メンバーが正常に追加されたかどうか |
|
||||
| `message` | string | レスポンスメッセージ |
|
||||
| `member` | json | 追加されたメンバーの詳細 |
|
||||
|
||||
### `mailgun_list_domains`
|
||||
|
||||
Mailgunアカウントのすべてのドメインを一覧表示する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | Mailgun APIキー |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | リクエストが成功したかどうか |
|
||||
| `totalCount` | number | ドメインの総数 |
|
||||
| `items` | json | ドメインオブジェクトの配列 |
|
||||
|
||||
### `mailgun_get_domain`
|
||||
|
||||
特定のドメインの詳細を取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | Mailgun APIキー |
|
||||
| `domain` | string | はい | ドメイン名 |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | リクエストが成功したかどうか |
|
||||
| `domain` | json | ドメインの詳細 |
|
||||
|
||||
## 注意事項
|
||||
|
||||
- カテゴリー: `tools`
|
||||
- タイプ: `mailgun`
|
||||
54
apps/docs/content/docs/ja/tools/search.mdx
Normal file
54
apps/docs/content/docs/ja/tools/search.mdx
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
title: 検索
|
||||
description: ウェブを検索(検索1回あたり$0.01)
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="search"
|
||||
color="#3B82F6"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
**検索**ツールを使用すると、最先端の検索エンジンを活用してSimワークフロー内からウェブ検索ができます。これにより、最新の情報、ニュース、事実、ウェブコンテンツをエージェント、自動化、または会話に直接取り込むことができます。
|
||||
|
||||
- **一般的なウェブ検索**:ワークフローを補完するためにインターネットから最新情報を見つけることができます。
|
||||
- **自動クエリ**:エージェントやプログラムロジックが検索クエリを送信し、結果を自動的に処理できます。
|
||||
- **構造化された結果**:最も関連性の高いウェブ結果を返し、各結果のタイトル、リンク、スニペット、日付を含みます。
|
||||
|
||||
> **注意:** 検索は1クエリあたり**$0.01**の費用がかかります。
|
||||
|
||||
このツールは、エージェントがライブウェブデータにアクセスする必要がある、または現在のイベントを参照したり、調査を実行したり、補足コンテンツを取得したりする必要があるワークフローに最適です。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用方法
|
||||
|
||||
検索ツールを使用してウェブを検索します。検索は1クエリあたり$0.01の費用がかかります。
|
||||
|
||||
## ツール
|
||||
|
||||
### `search_tool`
|
||||
|
||||
ウェブを検索します。最も関連性の高いウェブ結果を返し、各結果のタイトル、リンク、スニペット、日付を含みます。
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `query` | string | はい | 検索クエリ |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `results` | json | 検索結果 |
|
||||
| `query` | string | 検索クエリ |
|
||||
| `totalResults` | number | 結果の総数 |
|
||||
| `source` | string | 検索ソース(exa) |
|
||||
| `cost` | json | コスト情報($0.01) |
|
||||
|
||||
## メモ
|
||||
|
||||
- カテゴリー: `tools`
|
||||
- タイプ: `search`
|
||||
391
apps/docs/content/docs/ja/tools/sendgrid.mdx
Normal file
391
apps/docs/content/docs/ja/tools/sendgrid.mdx
Normal file
@@ -0,0 +1,391 @@
|
||||
---
|
||||
title: SendGrid
|
||||
description: SendGridでメールの送信、連絡先、リスト、テンプレートの管理を行う
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="sendgrid"
|
||||
color="#1A82E2"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SendGrid](https://sendgrid.com)は、開発者や企業が信頼する、スケーラブルなトランザクションメールやマーケティングメールを確実に配信するクラウドベースのメール配信プラットフォームです。強力なAPIとツールを備え、SendGridは通知や領収書の送信から複雑なマーケティングキャンペーンの管理まで、あらゆるメールコミュニケーションを管理できます。
|
||||
|
||||
SendGridは、重要なメールワークフローの自動化や連絡先リスト、テンプレート、受信者のエンゲージメントの緻密な管理など、メール運用の完全なスイートを提供します。Simとのシームレスな統合により、エージェントやワークフローはターゲットを絞ったメッセージの配信、動的な連絡先やリストの維持、テンプレートを通じたパーソナライズされたメールの送信、そしてリアルタイムでの結果追跡が可能になります。
|
||||
|
||||
SendGridの主な機能には以下が含まれます:
|
||||
|
||||
- **トランザクションメール:** 自動化された大量のトランザクションメール(通知、領収書、パスワードリセットなど)を送信。
|
||||
- **動的テンプレート:** リッチHTMLまたはテキストテンプレートに動的データを使用して、高度にパーソナライズされた大規模なコミュニケーションを実現。
|
||||
- **連絡先管理:** マーケティング連絡先の追加と更新、受信者リストの管理、キャンペーン向けのセグメントのターゲティング。
|
||||
- **添付ファイルのサポート:** メールに1つまたは複数のファイル添付が可能。
|
||||
- **包括的なAPIカバレッジ:** メール、連絡先、リスト、テンプレート、抑制グループなどをプログラムで管理。
|
||||
|
||||
SendGridとSimを連携させることで、エージェントは以下のことが可能になります:
|
||||
|
||||
- ワークフローの一部として、シンプルなメールと高度な(テンプレート化または複数の受信者向けの)メールの両方を送信。
|
||||
- 連絡先とリストを自動的に管理・セグメント化。
|
||||
- 一貫性と動的なパーソナライゼーションのためにテンプレートを活用。
|
||||
- 自動化されたプロセス内でメールのエンゲージメントを追跡し対応。
|
||||
|
||||
この連携により、重要なコミュニケーションフローをすべて自動化し、メッセージが適切な対象者に届くようにし、Simワークフローから直接組織のメール戦略を管理することができます。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用方法
|
||||
|
||||
SendGridをワークフローに統合します。トランザクションメールの送信、マーケティング連絡先とリストの管理、メールテンプレートの操作が可能です。動的テンプレート、添付ファイル、包括的な連絡先管理をサポートしています。
|
||||
|
||||
## ツール
|
||||
|
||||
### `sendgrid_send_mail`
|
||||
|
||||
SendGrid APIを使用してメールを送信する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 種類 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `from` | string | はい | 送信者のメールアドレス(SendGridで検証済みである必要があります) |
|
||||
| `fromName` | string | いいえ | 送信者名 |
|
||||
| `to` | string | はい | 受信者のメールアドレス |
|
||||
| `toName` | string | いいえ | 受信者名 |
|
||||
| `subject` | string | いいえ | メールの件名(事前定義された件名を持つテンプレートを使用しない限り必須) |
|
||||
| `content` | string | いいえ | メール本文のコンテンツ(事前定義されたコンテンツを持つテンプレートを使用しない限り必須) |
|
||||
| `contentType` | string | いいえ | コンテンツタイプ(text/plainまたはtext/html) |
|
||||
| `cc` | string | いいえ | CCメールアドレス |
|
||||
| `bcc` | string | いいえ | BCCメールアドレス |
|
||||
| `replyTo` | string | いいえ | 返信先メールアドレス |
|
||||
| `replyToName` | string | いいえ | 返信先名 |
|
||||
| `attachments` | file[] | いいえ | メールに添付するファイル |
|
||||
| `templateId` | string | いいえ | 使用するSendGridテンプレートID |
|
||||
| `dynamicTemplateData` | json | いいえ | 動的テンプレートデータのJSONオブジェクト |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | メールが正常に送信されたかどうか |
|
||||
| `messageId` | string | SendGridメッセージID |
|
||||
| `to` | string | 受信者のメールアドレス |
|
||||
| `subject` | string | メールの件名 |
|
||||
|
||||
### `sendgrid_add_contact`
|
||||
|
||||
SendGridに新しい連絡先を追加する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `email` | string | はい | 連絡先のメールアドレス |
|
||||
| `firstName` | string | いいえ | 連絡先の名 |
|
||||
| `lastName` | string | いいえ | 連絡先の姓 |
|
||||
| `customFields` | json | いいえ | カスタムフィールドのキーと値のペアのJSONオブジェクト(フィールド名ではなく、e1_T、e2_N、e3_DなどのフィールドIDを使用) |
|
||||
| `listIds` | string | いいえ | 連絡先を追加するリストIDのカンマ区切りリスト |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | 非同期連絡先作成を追跡するためのジョブID |
|
||||
| `email` | string | 連絡先のメールアドレス |
|
||||
| `firstName` | string | 連絡先の名 |
|
||||
| `lastName` | string | 連絡先の姓 |
|
||||
| `message` | string | ステータスメッセージ |
|
||||
|
||||
### `sendgrid_get_contact`
|
||||
|
||||
SendGridから特定の連絡先をIDで取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `contactId` | string | はい | 連絡先ID |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | 連絡先ID |
|
||||
| `email` | string | 連絡先のメールアドレス |
|
||||
| `firstName` | string | 連絡先の名 |
|
||||
| `lastName` | string | 連絡先の姓 |
|
||||
| `createdAt` | string | 作成タイムスタンプ |
|
||||
| `updatedAt` | string | 最終更新タイムスタンプ |
|
||||
| `listIds` | json | 連絡先が所属するリストIDの配列 |
|
||||
| `customFields` | json | カスタムフィールドの値 |
|
||||
|
||||
### `sendgrid_search_contacts`
|
||||
|
||||
クエリを使用してSendGrid内の連絡先を検索する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `query` | string | はい | 検索クエリ(例:"email LIKE '%example.com%' AND CONTAINS(list_ids, 'list-id')") |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `contacts` | json | 一致する連絡先の配列 |
|
||||
| `contactCount` | number | 見つかった連絡先の総数 |
|
||||
|
||||
### `sendgrid_delete_contacts`
|
||||
|
||||
SendGridから1つ以上の連絡先を削除する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `contactIds` | string | はい | 削除する連絡先IDのカンマ区切りリスト |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | 削除リクエストのジョブID |
|
||||
|
||||
### `sendgrid_create_list`
|
||||
|
||||
SendGridで新しいコンタクトリストを作成する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `name` | string | はい | リスト名 |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | リストID |
|
||||
| `name` | string | リスト名 |
|
||||
| `contactCount` | number | リスト内のコンタクト数 |
|
||||
|
||||
### `sendgrid_get_list`
|
||||
|
||||
SendGridから特定のリストをIDで取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `listId` | string | はい | リストID |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | リストID |
|
||||
| `name` | string | リスト名 |
|
||||
| `contactCount` | number | リスト内のコンタクト数 |
|
||||
|
||||
### `sendgrid_list_all_lists`
|
||||
|
||||
SendGridからすべてのコンタクトリストを取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `pageSize` | number | いいえ | ページごとに返すリスト数(デフォルト:100) |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `lists` | json | リストの配列 |
|
||||
|
||||
### `sendgrid_delete_list`
|
||||
|
||||
SendGridからコンタクトリストを削除する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `listId` | string | はい | 削除するリストID |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `message` | string | 成功メッセージ |
|
||||
|
||||
### `sendgrid_add_contacts_to_list`
|
||||
|
||||
SendGridでコンタクトを追加または更新し、リストに割り当てる(PUT /v3/marketing/contactsを使用)
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `listId` | string | はい | コンタクトを追加するリストID |
|
||||
| `contacts` | json | はい | コンタクトオブジェクトのJSON配列。各コンタクトには少なくとも:email(またはphone_number_id/external_id/anonymous_id)が必要。例:\[\{"email": "user@example.com", "first_name": "John"\}\] |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | 非同期操作を追跡するためのジョブID |
|
||||
| `message` | string | ステータスメッセージ |
|
||||
|
||||
### `sendgrid_remove_contacts_from_list`
|
||||
|
||||
SendGridの特定のリストからコンタクトを削除する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `listId` | string | はい | リストID |
|
||||
| `contactIds` | string | はい | リストから削除するコンタクトIDのカンマ区切りリスト |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | リクエストのジョブID |
|
||||
|
||||
### `sendgrid_create_template`
|
||||
|
||||
SendGridで新しいメールテンプレートを作成する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `name` | string | はい | テンプレート名 |
|
||||
| `generation` | string | いいえ | テンプレート生成タイプ(レガシーまたはダイナミック、デフォルト:ダイナミック) |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | テンプレートID |
|
||||
| `name` | string | テンプレート名 |
|
||||
| `generation` | string | テンプレート生成 |
|
||||
| `updatedAt` | string | 最終更新タイムスタンプ |
|
||||
| `versions` | json | テンプレートバージョンの配列 |
|
||||
|
||||
### `sendgrid_get_template`
|
||||
|
||||
SendGridから特定のテンプレートをIDで取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `templateId` | string | はい | テンプレートID |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | テンプレートID |
|
||||
| `name` | string | テンプレート名 |
|
||||
| `generation` | string | テンプレート生成 |
|
||||
| `updatedAt` | string | 最終更新タイムスタンプ |
|
||||
| `versions` | json | テンプレートバージョンの配列 |
|
||||
|
||||
### `sendgrid_list_templates`
|
||||
|
||||
SendGridからすべてのメールテンプレートを取得する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `generations` | string | いいえ | 生成方法でフィルタリング(legacy、dynamic、または両方) |
|
||||
| `pageSize` | number | いいえ | ページごとに返すテンプレートの数(デフォルト:20) |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `templates` | json | テンプレートの配列 |
|
||||
|
||||
### `sendgrid_delete_template`
|
||||
|
||||
SendGridからメールテンプレートを削除する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `templateId` | string | はい | 削除するテンプレートID |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 操作成功ステータス |
|
||||
| `messageId` | string | メールメッセージID(send_mail) |
|
||||
| `id` | string | リソースID |
|
||||
| `jobId` | string | 非同期操作のジョブID |
|
||||
| `email` | string | メールアドレス |
|
||||
| `firstName` | string | 名 |
|
||||
| `lastName` | string | 姓 |
|
||||
| `contacts` | json | 連絡先の配列 |
|
||||
| `contactCount` | number | 連絡先の数 |
|
||||
| `lists` | json | リストの配列 |
|
||||
| `templates` | json | テンプレートの配列 |
|
||||
| `message` | string | ステータスまたは成功メッセージ |
|
||||
| `name` | string | リソース名 |
|
||||
| `generation` | string | テンプレート生成方法 |
|
||||
|
||||
### `sendgrid_create_template_version`
|
||||
|
||||
SendGridでメールテンプレートの新しいバージョンを作成する
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | はい | SendGrid APIキー |
|
||||
| `templateId` | string | はい | テンプレートID |
|
||||
| `name` | string | はい | バージョン名 |
|
||||
| `subject` | string | はい | メールの件名 |
|
||||
| `htmlContent` | string | いいえ | テンプレートのHTML内容 |
|
||||
| `plainContent` | string | いいえ | テンプレートのプレーンテキスト内容 |
|
||||
| `active` | boolean | いいえ | このバージョンがアクティブかどうか(デフォルト:true) |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | バージョンID |
|
||||
| `templateId` | string | テンプレートID |
|
||||
| `name` | string | バージョン名 |
|
||||
| `subject` | string | メールの件名 |
|
||||
| `active` | boolean | このバージョンがアクティブかどうか |
|
||||
| `htmlContent` | string | HTML内容 |
|
||||
| `plainContent` | string | プレーンテキスト内容 |
|
||||
| `updatedAt` | string | 最終更新タイムスタンプ |
|
||||
|
||||
## 注意事項
|
||||
|
||||
- カテゴリー: `tools`
|
||||
- タイプ: `sendgrid`
|
||||
73
apps/docs/content/docs/ja/tools/smtp.mdx
Normal file
73
apps/docs/content/docs/ja/tools/smtp.mdx
Normal file
@@ -0,0 +1,73 @@
|
||||
---
|
||||
title: SMTP
|
||||
description: 任意のSMTPメールサーバーを介してメールを送信
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="smtp"
|
||||
color="#4A5568"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SMTP(Simple Mail Transfer Protocol)](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol)は、インターネット上でのメール送信の基本的な標準規格です。Gmail、Outlook、または組織独自のメールインフラなど、SMTP互換サーバーに接続することで、プログラムによるメール送信や送信コミュニケーションの自動化が可能になります。
|
||||
|
||||
SMTP統合により、サーバーへの直接接続を通じてメール送信を完全にカスタマイズでき、基本的なものから高度なメールユースケースまでサポートします。SMTPを使用すると、メッセージ配信、受信者管理、コンテンツフォーマットなどあらゆる側面を制御できるため、トランザクションメール通知、一括メール送信、堅牢な送信メール配信を必要とするあらゆる自動化ワークフローに適しています。
|
||||
|
||||
**SMTP統合で利用可能な主な機能:**
|
||||
|
||||
- **ユニバーサルなメール配信:** 標準的なサーバー接続パラメータを設定することで、任意のSMTPサーバーを使用してメールを送信できます。
|
||||
- **カスタマイズ可能な送信者と受信者:** 送信者アドレス、表示名、主要受信者、CCおよびBCCフィールドを指定できます。
|
||||
- **リッチコンテンツのサポート:** 要件に応じて、プレーンテキストまたはリッチフォーマットのHTMLメールを送信できます。
|
||||
- **添付ファイル:** 送信メールに複数のファイルを添付ファイルとして含めることができます。
|
||||
- **柔軟なセキュリティ:** SMTPプロバイダーがサポートするTLS、SSL、または標準(非暗号化)プロトコルを使用して接続できます。
|
||||
- **高度なヘッダー:** 返信先ヘッダーやその他の高度なメールオプションを設定して、複雑なメールフローやユーザーインタラクションに対応できます。
|
||||
|
||||
SMTPをSimと統合することで、エージェントやワークフローは、通知や確認メールの送信から、外部コミュニケーション、レポート作成、文書配信の自動化まで、あらゆる自動化プロセスの一部としてプログラムによるメール送信が可能になります。これにより、AI駆動プロセス内で直接メールを管理するための、非常に柔軟でプロバイダーに依存しないアプローチが提供されます。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用方法
|
||||
|
||||
任意のSMTPサーバー(Gmail、Outlook、カスタムサーバーなど)を使用してメールを送信します。SMTP接続設定を構成し、コンテンツ、受信者、添付ファイルを完全に制御してメールを送信できます。
|
||||
|
||||
## ツール
|
||||
|
||||
### `smtp_send_mail`
|
||||
|
||||
SMTPサーバー経由でメールを送信
|
||||
|
||||
#### 入力
|
||||
|
||||
| パラメータ | 型 | 必須 | 説明 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `smtpHost` | string | はい | SMTPサーバーのホスト名(例:smtp.gmail.com) |
|
||||
| `smtpPort` | number | はい | SMTPサーバーのポート(TLSの場合は587、SSLの場合は465) |
|
||||
| `smtpUsername` | string | はい | SMTP認証のユーザー名 |
|
||||
| `smtpPassword` | string | はい | SMTP認証のパスワード |
|
||||
| `smtpSecure` | string | はい | セキュリティプロトコル(TLS、SSL、またはNone) |
|
||||
| `from` | string | はい | 送信者のメールアドレス |
|
||||
| `to` | string | はい | 受信者のメールアドレス |
|
||||
| `subject` | string | はい | メールの件名 |
|
||||
| `body` | string | はい | メール本文の内容 |
|
||||
| `contentType` | string | いいえ | コンテンツタイプ(textまたはhtml) |
|
||||
| `fromName` | string | いいえ | 送信者の表示名 |
|
||||
| `cc` | string | いいえ | CC受信者(カンマ区切り) |
|
||||
| `bcc` | string | いいえ | BCC受信者(カンマ区切り) |
|
||||
| `replyTo` | string | いいえ | 返信先メールアドレス |
|
||||
| `attachments` | file[] | いいえ | メールに添付するファイル |
|
||||
|
||||
#### 出力
|
||||
|
||||
| パラメータ | 型 | 説明 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | メールが正常に送信されたかどうか |
|
||||
| `messageId` | string | SMTPサーバーからのメッセージID |
|
||||
| `to` | string | 受信者のメールアドレス |
|
||||
| `subject` | string | メールの件名 |
|
||||
| `error` | string | 送信に失敗した場合のエラーメッセージ |
|
||||
|
||||
## メモ
|
||||
|
||||
- カテゴリー: `tools`
|
||||
- タイプ: `smtp`
|
||||
89
apps/docs/content/docs/zh/tools/apify.mdx
Normal file
89
apps/docs/content/docs/zh/tools/apify.mdx
Normal file
@@ -0,0 +1,89 @@
|
||||
---
|
||||
title: Apify
|
||||
description: 运行 Apify actor 并获取结果
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="apify"
|
||||
color="#E0E0E0"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Apify](https://apify.com/) 是一个强大的平台,用于大规模构建、部署和运行网页自动化和网页抓取 actor。Apify 使您能够从任何网站提取有用的数据,自动化工作流程,并无缝连接您的数据管道。
|
||||
|
||||
使用 Apify,您可以:
|
||||
|
||||
- **运行现成或自定义的 actor**:集成公共 actor 或开发您自己的,自动化各种网页数据提取和浏览器任务。
|
||||
- **获取数据集**:实时访问和管理由 actor 收集的结构化数据集。
|
||||
- **扩展网页自动化**:利用云基础设施可靠地运行任务,可以异步或同步运行,并具有强大的错误处理能力。
|
||||
|
||||
在 Sim 中,Apify 集成允许您的代理以编程方式执行核心 Apify 操作:
|
||||
|
||||
- **运行 Actor(同步)**:使用 `apify_run_actor_sync` 启动一个 Apify actor 并等待其完成,在运行结束后立即获取结果。
|
||||
- **运行 Actor(异步)**:使用 `apify_run_actor_async` 在后台启动一个 actor 并定期轮询结果,适用于较长或复杂的任务。
|
||||
|
||||
这些操作使您的代理能够直接在工作流程中自动化、抓取和协调数据收集或浏览器自动化任务——所有这些都具有灵活的配置和结果处理,无需手动运行或外部工具。将 Apify 集成为一个动态的自动化和数据提取引擎,以编程方式为您的代理提供网页规模的工作流程支持。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用说明
|
||||
|
||||
将 Apify 集成到您的工作流程中。使用自定义输入运行任何 Apify actor 并获取结果。支持同步和异步执行,并自动获取数据集。
|
||||
|
||||
## 工具
|
||||
|
||||
### `apify_run_actor_sync`
|
||||
|
||||
同步运行 APIFY actor 并获取结果(最长 5 分钟)
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | 来自 console.apify.com/account#/integrations 的 APIFY API 令牌 |
|
||||
| `actorId` | string | 是 | Actor ID 或用户名/actor 名称 \(例如:"janedoe/my-actor" 或 actor ID\) |
|
||||
| `input` | string | 否 | 作为 JSON 字符串的 actor 输入。请参阅 actor 文档以了解所需字段。 |
|
||||
| `timeout` | number | 否 | 超时时间(秒)\(默认:actor 默认值\) |
|
||||
| `build` | string | 否 | 要运行的 actor 构建版本 \(例如:"latest"、"beta" 或构建标签/编号\) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | actor 运行是否成功 |
|
||||
| `runId` | string | APIFY 运行 ID |
|
||||
| `status` | string | 运行状态 \(SUCCEEDED, FAILED 等\) |
|
||||
| `datasetId` | string | 包含结果的数据集 ID |
|
||||
| `items` | array | 数据集条目 \(如果已完成\) |
|
||||
|
||||
### `apify_run_actor_async`
|
||||
|
||||
异步运行 APIFY actor 并轮询长时间运行的任务
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | 来自 console.apify.com/account#/integrations 的 APIFY API 令牌 |
|
||||
| `actorId` | string | 是 | Actor ID 或用户名/actor 名称 \(例如:"janedoe/my-actor" 或 actor ID\) |
|
||||
| `input` | string | 否 | 作为 JSON 字符串的 actor 输入 |
|
||||
| `waitForFinish` | number | 否 | 轮询开始前的初始等待时间(秒)\(0-60\) |
|
||||
| `itemLimit` | number | 否 | 要获取的最大数据集条目数 \(1-250000,默认 100\) |
|
||||
| `timeout` | number | 否 | 超时时间(秒)\(默认:actor 默认值\) |
|
||||
| `build` | string | 否 | 要运行的 actor 构建版本 \(例如:"latest"、"beta" 或构建标签/编号\) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | actor 运行是否成功 |
|
||||
| `runId` | string | APIFY 运行 ID |
|
||||
| `status` | string | 运行状态 \(SUCCEEDED, FAILED 等\) |
|
||||
| `datasetId` | string | 包含结果的数据集 ID |
|
||||
| `items` | array | 数据集条目 \(如果已完成\) |
|
||||
|
||||
## 注意
|
||||
|
||||
- 类别: `tools`
|
||||
- 类型: `apify`
|
||||
83
apps/docs/content/docs/zh/tools/linkedin.mdx
Normal file
83
apps/docs/content/docs/zh/tools/linkedin.mdx
Normal file
@@ -0,0 +1,83 @@
|
||||
---
|
||||
title: LinkedIn
|
||||
description: 分享帖子并管理您的 LinkedIn 存在
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="linkedin"
|
||||
color="#0072B1"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[LinkedIn](https://www.linkedin.com) 是全球最大的职业社交平台,帮助用户建立职业生涯,与人脉建立联系,并分享专业内容。LinkedIn 被各行业的专业人士广泛用于个人品牌建设、招聘、求职和业务发展。
|
||||
|
||||
通过 LinkedIn,您可以轻松地在个人动态中分享帖子,与您的网络互动,并访问您的个人资料信息以突出您的职业成就。与 Sim 的自动集成使您能够以编程方式利用 LinkedIn 的功能——让代理和工作流发布更新、报告您的职业存在,并在无需手动操作的情况下保持动态活跃。
|
||||
|
||||
通过此集成可用的 LinkedIn 关键功能包括:
|
||||
|
||||
- **分享帖子:** 自动将专业更新、文章或公告发布到您的 LinkedIn 个人动态。
|
||||
- **个人资料信息:** 检索有关您 LinkedIn 个人资料的详细信息,以便在工作流中进行监控或用于后续任务。
|
||||
|
||||
这些功能使您能够轻松地保持 LinkedIn 网络的互动,并作为您的 AI 或工作流自动化策略的一部分,高效地扩展您的职业影响力。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用说明
|
||||
|
||||
将 LinkedIn 集成到工作流中。在个人动态中分享帖子并访问您的 LinkedIn 个人资料信息。
|
||||
|
||||
## 工具
|
||||
|
||||
### `linkedin_share_post`
|
||||
|
||||
将帖子分享到您的个人 LinkedIn 动态
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `text` | string | 是 | 您的 LinkedIn 帖子的文本内容 |
|
||||
| `visibility` | string | 否 | 谁可以看到此帖子:“PUBLIC” 或 “CONNECTIONS” \(默认值:“PUBLIC”\) |
|
||||
| `request` | string | 否 | 无描述 |
|
||||
| `output` | string | 否 | 无描述 |
|
||||
| `output` | string | 否 | 无描述 |
|
||||
| `specificContent` | string | 否 | 无描述 |
|
||||
| `shareCommentary` | string | 否 | 无描述 |
|
||||
| `visibility` | string | 否 | 无描述 |
|
||||
| `headers` | string | 否 | 无描述 |
|
||||
| `output` | string | 否 | 无描述 |
|
||||
| `output` | string | 否 | 无描述 |
|
||||
| `output` | string | 否 | 无描述 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 操作成功状态 |
|
||||
| `postId` | string | 创建的帖子 ID |
|
||||
| `profile` | json | LinkedIn 个人资料信息 |
|
||||
| `error` | string | 如果操作失败的错误信息 |
|
||||
|
||||
### `linkedin_get_profile`
|
||||
|
||||
检索您的 LinkedIn 个人资料信息
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 操作成功状态 |
|
||||
| `postId` | string | 创建的帖子 ID |
|
||||
| `profile` | json | LinkedIn 个人资料信息 |
|
||||
| `error` | string | 如果操作失败的错误信息 |
|
||||
|
||||
## 注意事项
|
||||
|
||||
- 类别: `tools`
|
||||
- 类型: `linkedin`
|
||||
216
apps/docs/content/docs/zh/tools/mailgun.mdx
Normal file
216
apps/docs/content/docs/zh/tools/mailgun.mdx
Normal file
@@ -0,0 +1,216 @@
|
||||
---
|
||||
title: Mailgun
|
||||
description: 使用 Mailgun 发送电子邮件并管理邮件列表
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="mailgun"
|
||||
color="#F06248"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[Mailgun](https://www.mailgun.com) 是一款功能强大的电子邮件发送服务,专为开发者和企业设计,能够轻松发送、接收和跟踪电子邮件。Mailgun 提供强大的 API,支持可靠的事务性和营销电子邮件、灵活的邮件列表管理以及高级事件跟踪。
|
||||
|
||||
通过 Mailgun 的全面功能集,您可以自动化关键的电子邮件操作,并密切监控投递率和收件人参与度。这使其成为在通信、通知和活动邮件是核心流程的工作流自动化中的理想解决方案。
|
||||
|
||||
Mailgun 的主要功能包括:
|
||||
|
||||
- **事务性电子邮件发送:** 发送大量电子邮件,例如账户通知、收据、警报和密码重置。
|
||||
- **丰富的电子邮件内容:** 发送纯文本和 HTML 格式的电子邮件,并使用标签对消息进行分类和跟踪。
|
||||
- **邮件列表管理:** 创建、更新和管理邮件列表及成员,以高效发送分组通信。
|
||||
- **域信息:** 检索发送域的详细信息,以监控配置和健康状况。
|
||||
- **事件跟踪:** 通过详细的事件数据分析电子邮件的投递率和参与度。
|
||||
- **消息检索:** 访问存储的消息以满足合规性、分析或故障排除需求。
|
||||
|
||||
通过将 Mailgun 集成到 Sim 中,您的代理可以以编程方式发送电子邮件、管理邮件列表、访问域信息并监控实时事件,作为自动化工作流的一部分。这使您能够直接从 AI 驱动的流程中实现智能、数据驱动的用户互动。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用说明
|
||||
|
||||
将 Mailgun 集成到您的工作流中。发送事务性电子邮件,管理邮件列表及成员,查看域信息并跟踪电子邮件事件。支持文本和 HTML 格式的电子邮件、用于跟踪的标签以及全面的列表管理功能。
|
||||
|
||||
## 工具
|
||||
|
||||
### `mailgun_send_message`
|
||||
|
||||
使用 Mailgun API 发送电子邮件
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | Mailgun API 密钥 |
|
||||
| `domain` | string | 是 | Mailgun 域名 \(例如:mg.example.com\) |
|
||||
| `from` | string | 是 | 发件人电子邮件地址 |
|
||||
| `to` | string | 是 | 收件人电子邮件地址 \(多个地址用逗号分隔\) |
|
||||
| `subject` | string | 是 | 电子邮件主题 |
|
||||
| `text` | string | 否 | 电子邮件的纯文本正文 |
|
||||
| `html` | string | 否 | 电子邮件的 HTML 正文 |
|
||||
| `cc` | string | 否 | 抄送电子邮件地址 \(多个地址用逗号分隔\) |
|
||||
| `bcc` | string | 否 | 密送电子邮件地址 \(多个地址用逗号分隔\) |
|
||||
| `tags` | string | 否 | 电子邮件标签 \(用逗号分隔\) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 消息是否成功发送 |
|
||||
| `id` | string | 消息 ID |
|
||||
| `message` | string | 来自 Mailgun 的响应消息 |
|
||||
|
||||
### `mailgun_get_message`
|
||||
|
||||
通过其密钥检索存储的消息
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | Mailgun API 密钥 |
|
||||
| `domain` | string | 是 | Mailgun 域名 |
|
||||
| `messageKey` | string | 是 | 消息存储密钥 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 请求是否成功 |
|
||||
| `recipients` | string | 消息接收者 |
|
||||
| `from` | string | 发件人邮箱 |
|
||||
| `subject` | string | 消息主题 |
|
||||
| `bodyPlain` | string | 纯文本正文 |
|
||||
| `strippedText` | string | 去除格式的文本 |
|
||||
| `strippedSignature` | string | 去除格式的签名 |
|
||||
| `bodyHtml` | string | HTML 正文 |
|
||||
| `strippedHtml` | string | 去除格式的 HTML |
|
||||
| `attachmentCount` | number | 附件数量 |
|
||||
| `timestamp` | number | 消息时间戳 |
|
||||
| `messageHeaders` | json | 消息头信息 |
|
||||
| `contentIdMap` | json | 内容 ID 映射 |
|
||||
|
||||
### `mailgun_list_messages`
|
||||
|
||||
列出通过 Mailgun 发送的消息的事件(日志)
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | Mailgun API 密钥 |
|
||||
| `domain` | string | 是 | Mailgun 域名 |
|
||||
| `event` | string | 否 | 按事件类型过滤 \(accepted, delivered, failed, opened, clicked, etc.\) |
|
||||
| `limit` | number | 否 | 返回的最大事件数 \(默认值: 100\) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 请求是否成功 |
|
||||
| `items` | json | 事件项数组 |
|
||||
| `paging` | json | 分页信息 |
|
||||
|
||||
### `mailgun_create_mailing_list`
|
||||
|
||||
创建一个新的邮件列表
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | Mailgun API 密钥 |
|
||||
| `address` | string | 是 | 邮件列表地址 \(例如:list@example.com\) |
|
||||
| `name` | string | 否 | 邮件列表名称 |
|
||||
| `description` | string | 否 | 邮件列表描述 |
|
||||
| `accessLevel` | string | 否 | 访问级别:readonly、members 或 everyone |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 是否成功创建了列表 |
|
||||
| `message` | string | 响应消息 |
|
||||
| `list` | json | 创建的邮件列表详情 |
|
||||
|
||||
### `mailgun_get_mailing_list`
|
||||
|
||||
获取邮件列表的详细信息
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | Mailgun API 密钥 |
|
||||
| `address` | string | 是 | 邮件列表地址 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 请求是否成功 |
|
||||
| `list` | json | 邮件列表详情 |
|
||||
|
||||
### `mailgun_add_list_member`
|
||||
|
||||
向邮件列表添加成员
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | Mailgun API 密钥 |
|
||||
| `listAddress` | string | 是 | 邮件列表地址 |
|
||||
| `address` | string | 是 | 成员邮箱地址 |
|
||||
| `name` | string | 否 | 成员名称 |
|
||||
| `vars` | string | 否 | 自定义变量的 JSON 字符串 |
|
||||
| `subscribed` | boolean | 否 | 成员是否已订阅 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 成员是否成功添加 |
|
||||
| `message` | string | 响应消息 |
|
||||
| `member` | json | 添加的成员详情 |
|
||||
|
||||
### `mailgun_list_domains`
|
||||
|
||||
列出您的 Mailgun 帐户的所有域名
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | Mailgun API 密钥 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 请求是否成功 |
|
||||
| `totalCount` | number | 域名总数 |
|
||||
| `items` | json | 域名对象数组 |
|
||||
|
||||
### `mailgun_get_domain`
|
||||
|
||||
获取特定域名的详细信息
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | Mailgun API 密钥 |
|
||||
| `domain` | string | 是 | 域名 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 请求是否成功 |
|
||||
| `domain` | json | 域名详情 |
|
||||
|
||||
## 注意事项
|
||||
|
||||
- 类别: `tools`
|
||||
- 类型: `mailgun`
|
||||
54
apps/docs/content/docs/zh/tools/search.mdx
Normal file
54
apps/docs/content/docs/zh/tools/search.mdx
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
title: 搜索
|
||||
description: 搜索网络(每次搜索 $0.01)
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="search"
|
||||
color="#3B82F6"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
**搜索**工具让您可以在 Sim 工作流中使用最先进的搜索引擎进行网络搜索。使用它可以将最新的信息、新闻、事实和网络内容直接引入您的代理、自动化或对话中。
|
||||
|
||||
- **通用网络搜索**:从互联网获取最新信息以补充您的工作流。
|
||||
- **自动化查询**:让代理或程序逻辑提交搜索查询并自动处理结果。
|
||||
- **结构化结果**:返回最相关的网络结果,包括每个结果的标题、链接、摘要和日期。
|
||||
|
||||
> **注意:** 每次搜索费用为 **$0.01**。
|
||||
|
||||
此工具非常适合任何需要访问实时网络数据的工作流,或需要参考当前事件、进行研究或获取补充内容的场景。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用说明
|
||||
|
||||
使用搜索工具进行网络搜索。每次搜索费用为 $0.01。
|
||||
|
||||
## 工具
|
||||
|
||||
### `search_tool`
|
||||
|
||||
搜索网络。返回最相关的网络结果,包括每个结果的标题、链接、摘要和日期。
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `query` | string | 是 | 搜索查询 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `results` | json | 搜索结果 |
|
||||
| `query` | string | 搜索查询 |
|
||||
| `totalResults` | number | 结果总数 |
|
||||
| `source` | string | 搜索来源(例如) |
|
||||
| `cost` | json | 成本信息($0.01) |
|
||||
|
||||
## 注意
|
||||
|
||||
- 类别:`tools`
|
||||
- 类型:`search`
|
||||
391
apps/docs/content/docs/zh/tools/sendgrid.mdx
Normal file
391
apps/docs/content/docs/zh/tools/sendgrid.mdx
Normal file
@@ -0,0 +1,391 @@
|
||||
---
|
||||
title: SendGrid
|
||||
description: 使用 SendGrid 发送电子邮件并管理联系人、列表和模板
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="sendgrid"
|
||||
color="#1A82E2"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SendGrid](https://sendgrid.com) 是一个领先的基于云的电子邮件发送平台,受到开发者和企业的信赖,可大规模发送可靠的事务性和营销电子邮件。通过其强大的 API 和工具,SendGrid 使您能够管理电子邮件通信的各个方面,从发送通知和收据到管理复杂的营销活动。
|
||||
|
||||
SendGrid 为用户提供了一整套电子邮件操作功能,使您能够自动化关键的电子邮件工作流,并密切管理联系人列表、模板和收件人参与度。它与 Sim 的无缝集成使代理和工作流能够发送目标消息,维护动态联系人和收件人列表,通过模板触发个性化电子邮件,并实时跟踪结果。
|
||||
|
||||
SendGrid 的主要功能包括:
|
||||
|
||||
- **事务性电子邮件:** 发送自动化和大批量的事务性电子邮件(如通知、收据和密码重置)。
|
||||
- **动态模板:** 使用丰富的 HTML 或文本模板和动态数据,实现大规模高度个性化的通信。
|
||||
- **联系人管理:** 添加和更新营销联系人,管理收件人列表,并针对活动目标群体进行细分。
|
||||
- **附件支持:** 在电子邮件中包含一个或多个文件附件。
|
||||
- **全面的 API 覆盖:** 以编程方式管理电子邮件、联系人、列表、模板、抑制组等。
|
||||
|
||||
通过将 SendGrid 与 Sim 连接,您的代理可以:
|
||||
|
||||
- 在任何工作流中发送简单或高级(模板化或多收件人)的电子邮件。
|
||||
- 自动管理和细分联系人和列表。
|
||||
- 利用模板实现一致性和动态个性化。
|
||||
- 在自动化流程中跟踪和响应电子邮件参与情况。
|
||||
|
||||
此集成允许您自动化所有关键的通信流程,确保消息到达正确的受众,并直接从 Sim 工作流中维护对您组织电子邮件策略的控制。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用说明
|
||||
|
||||
将 SendGrid 集成到您的工作流中。发送事务性电子邮件,管理营销联系人和列表,并使用电子邮件模板。支持动态模板、附件和全面的联系人管理。
|
||||
|
||||
## 工具
|
||||
|
||||
### `sendgrid_send_mail`
|
||||
|
||||
使用 SendGrid API 发送电子邮件
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `from` | string | 是 | 发件人电子邮件地址 \(必须在 SendGrid 中验证\) |
|
||||
| `fromName` | string | 否 | 发件人名称 |
|
||||
| `to` | string | 是 | 收件人电子邮件地址 |
|
||||
| `toName` | string | 否 | 收件人名称 |
|
||||
| `subject` | string | 否 | 电子邮件主题 \(除非使用具有预定义主题的模板,否则必需\) |
|
||||
| `content` | string | 否 | 电子邮件正文内容 \(除非使用具有预定义内容的模板,否则必需\) |
|
||||
| `contentType` | string | 否 | 内容类型 \(text/plain 或 text/html\) |
|
||||
| `cc` | string | 否 | 抄送电子邮件地址 |
|
||||
| `bcc` | string | 否 | 密送电子邮件地址 |
|
||||
| `replyTo` | string | 否 | 回复电子邮件地址 |
|
||||
| `replyToName` | string | 否 | 回复名称 |
|
||||
| `attachments` | file[] | 否 | 附加到电子邮件的文件 |
|
||||
| `templateId` | string | 否 | 要使用的 SendGrid 模板 ID |
|
||||
| `dynamicTemplateData` | json | 否 | 动态模板数据的 JSON 对象 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 邮件是否成功发送 |
|
||||
| `messageId` | string | SendGrid 消息 ID |
|
||||
| `to` | string | 收件人邮箱地址 |
|
||||
| `subject` | string | 邮件主题 |
|
||||
|
||||
### `sendgrid_add_contact`
|
||||
|
||||
向 SendGrid 添加新联系人
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `email` | string | 是 | 联系人邮箱地址 |
|
||||
| `firstName` | string | 否 | 联系人名字 |
|
||||
| `lastName` | string | 否 | 联系人姓氏 |
|
||||
| `customFields` | json | 否 | 自定义字段键值对的 JSON 对象 \(使用字段 ID,如 e1_T, e2_N, e3_D,而不是字段名称\) |
|
||||
| `listIds` | string | 否 | 用逗号分隔的列表 ID,用于添加联系人 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | 用于跟踪异步联系人创建的作业 ID |
|
||||
| `email` | string | 联系人邮箱地址 |
|
||||
| `firstName` | string | 联系人名字 |
|
||||
| `lastName` | string | 联系人姓氏 |
|
||||
| `message` | string | 状态消息 |
|
||||
|
||||
### `sendgrid_get_contact`
|
||||
|
||||
通过 ID 从 SendGrid 获取特定联系人
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `contactId` | string | 是 | 联系人 ID |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | 联系人 ID |
|
||||
| `email` | string | 联系人邮箱地址 |
|
||||
| `firstName` | string | 联系人名字 |
|
||||
| `lastName` | string | 联系人姓氏 |
|
||||
| `createdAt` | string | 创建时间戳 |
|
||||
| `updatedAt` | string | 最后更新时间戳 |
|
||||
| `listIds` | json | 联系人所属列表 ID 的数组 |
|
||||
| `customFields` | json | 自定义字段值 |
|
||||
|
||||
### `sendgrid_search_contacts`
|
||||
|
||||
使用查询在 SendGrid 中搜索联系人
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `query` | string | 是 | 搜索查询 \(例如,\"email LIKE '%example.com%' AND CONTAINS\(list_ids, 'list-id'\)\"\) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `contacts` | json | 匹配联系人的数组 |
|
||||
| `contactCount` | number | 找到的联系人总数 |
|
||||
|
||||
### `sendgrid_delete_contacts`
|
||||
|
||||
从 SendGrid 中删除一个或多个联系人
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `contactIds` | string | 是 | 要删除的联系人 ID,逗号分隔 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | 删除请求的作业 ID |
|
||||
|
||||
### `sendgrid_create_list`
|
||||
|
||||
在 SendGrid 中创建一个新的联系人列表
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `name` | string | 是 | 列表名称 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | 列表 ID |
|
||||
| `name` | string | 列表名称 |
|
||||
| `contactCount` | number | 列表中的联系人数量 |
|
||||
|
||||
### `sendgrid_get_list`
|
||||
|
||||
通过 ID 从 SendGrid 获取特定列表
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `listId` | string | 是 | 列表 ID |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | 列表 ID |
|
||||
| `name` | string | 列表名称 |
|
||||
| `contactCount` | number | 列表中的联系人数量 |
|
||||
|
||||
### `sendgrid_list_all_lists`
|
||||
|
||||
从 SendGrid 获取所有联系人列表
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `pageSize` | number | 否 | 每页返回的列表数量 \(默认值: 100\) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `lists` | json | 列表数组 |
|
||||
|
||||
### `sendgrid_delete_list`
|
||||
|
||||
从 SendGrid 删除联系人列表
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `listId` | string | 是 | 要删除的列表 ID |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `message` | string | 成功消息 |
|
||||
|
||||
### `sendgrid_add_contacts_to_list`
|
||||
|
||||
在 SendGrid 中添加或更新联系人并将其分配到列表中(使用 PUT /v3/marketing/contacts)
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `listId` | string | 是 | 要添加联系人的列表 ID |
|
||||
| `contacts` | json | 是 | 联系人对象的 JSON 数组。每个联系人必须至少包含:email(或 phone_number_id/external_id/anonymous_id)。示例:\[\{"email": "user@example.com", "first_name": "John"\}\] |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | 用于跟踪异步操作的作业 ID |
|
||||
| `message` | string | 状态消息 |
|
||||
|
||||
### `sendgrid_remove_contacts_from_list`
|
||||
|
||||
从 SendGrid 的特定列表中移除联系人
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `listId` | string | 是 | 列表 ID |
|
||||
| `contactIds` | string | 是 | 要从列表中移除的逗号分隔的联系人 ID |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `jobId` | string | 请求的作业 ID |
|
||||
|
||||
### `sendgrid_create_template`
|
||||
|
||||
在 SendGrid 中创建一个新的电子邮件模板
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `name` | string | 是 | 模板名称 |
|
||||
| `generation` | string | 否 | 模板生成类型(legacy 或 dynamic,默认值:dynamic) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | 模板 ID |
|
||||
| `name` | string | 模板名称 |
|
||||
| `generation` | string | 模板生成 |
|
||||
| `updatedAt` | string | 最后更新时间戳 |
|
||||
| `versions` | json | 模板版本数组 |
|
||||
|
||||
### `sendgrid_get_template`
|
||||
|
||||
通过 ID 从 SendGrid 获取特定模板
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `templateId` | string | 是 | 模板 ID |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | 模板 ID |
|
||||
| `name` | string | 模板名称 |
|
||||
| `generation` | string | 模板生成 |
|
||||
| `updatedAt` | string | 最后更新时间戳 |
|
||||
| `versions` | json | 模板版本数组 |
|
||||
|
||||
### `sendgrid_list_templates`
|
||||
|
||||
从 SendGrid 获取所有电子邮件模板
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `generations` | string | 否 | 按生成方式筛选 \(legacy、dynamic 或 both\) |
|
||||
| `pageSize` | number | 否 | 每页返回的模板数量 \(默认值: 20\) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `templates` | json | 模板数组 |
|
||||
|
||||
### `sendgrid_delete_template`
|
||||
|
||||
从 SendGrid 删除电子邮件模板
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `templateId` | string | 是 | 要删除的模板 ID |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 操作成功状态 |
|
||||
| `messageId` | string | 电子邮件消息 ID \(send_mail\) |
|
||||
| `id` | string | 资源 ID |
|
||||
| `jobId` | string | 异步操作的作业 ID |
|
||||
| `email` | string | 电子邮件地址 |
|
||||
| `firstName` | string | 名字 |
|
||||
| `lastName` | string | 姓氏 |
|
||||
| `contacts` | json | 联系人数组 |
|
||||
| `contactCount` | number | 联系人数量 |
|
||||
| `lists` | json | 列表数组 |
|
||||
| `templates` | json | 模板数组 |
|
||||
| `message` | string | 状态或成功消息 |
|
||||
| `name` | string | 资源名称 |
|
||||
| `generation` | string | 模板生成方式 |
|
||||
|
||||
### `sendgrid_create_template_version`
|
||||
|
||||
在 SendGrid 中创建一个新的电子邮件模板版本
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `apiKey` | string | 是 | SendGrid API 密钥 |
|
||||
| `templateId` | string | 是 | 模板 ID |
|
||||
| `name` | string | 是 | 版本名称 |
|
||||
| `subject` | string | 是 | 电子邮件主题行 |
|
||||
| `htmlContent` | string | 否 | 模板的 HTML 内容 |
|
||||
| `plainContent` | string | 否 | 模板的纯文本内容 |
|
||||
| `active` | boolean | 否 | 此版本是否为激活状态(默认:true) |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | 版本 ID |
|
||||
| `templateId` | string | 模板 ID |
|
||||
| `name` | string | 版本名称 |
|
||||
| `subject` | string | 电子邮件主题 |
|
||||
| `active` | boolean | 此版本是否为激活状态 |
|
||||
| `htmlContent` | string | HTML 内容 |
|
||||
| `plainContent` | string | 纯文本内容 |
|
||||
| `updatedAt` | string | 最后更新时间戳 |
|
||||
|
||||
## 注意事项
|
||||
|
||||
- 类别:`tools`
|
||||
- 类型:`sendgrid`
|
||||
73
apps/docs/content/docs/zh/tools/smtp.mdx
Normal file
73
apps/docs/content/docs/zh/tools/smtp.mdx
Normal file
@@ -0,0 +1,73 @@
|
||||
---
|
||||
title: SMTP
|
||||
description: 通过任何 SMTP 邮件服务器发送电子邮件
|
||||
---
|
||||
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="smtp"
|
||||
color="#4A5568"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
[SMTP(简单邮件传输协议)](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) 是互联网电子邮件传输的基础标准。通过连接任何兼容 SMTP 的服务器(如 Gmail、Outlook 或您组织的邮件基础设施),您可以以编程方式发送电子邮件并自动化您的外发通信。
|
||||
|
||||
SMTP 集成允许您通过直接的服务器连接完全自定义电子邮件发送,支持基本和高级的电子邮件使用场景。使用 SMTP,您可以控制消息传递、收件人管理和内容格式的每个方面,使其适用于事务性通知、大量邮件发送以及任何需要强大外发电子邮件传递的自动化工作流程。
|
||||
|
||||
**通过 SMTP 集成可用的关键功能包括:**
|
||||
|
||||
- **通用电子邮件传递:** 通过配置标准服务器连接参数,使用任何 SMTP 服务器发送电子邮件。
|
||||
- **可自定义的发件人和收件人:** 指定发件人地址、显示名称、主要收件人,以及抄送 (CC) 和密送 (BCC) 字段。
|
||||
- **丰富的内容支持:** 根据您的需求发送纯文本或格式丰富的 HTML 电子邮件。
|
||||
- **附件:** 在外发电子邮件中包含多个文件作为附件。
|
||||
- **灵活的安全性:** 根据您的 SMTP 提供商支持的协议,使用 TLS、SSL 或标准(未加密)协议进行连接。
|
||||
- **高级头信息:** 设置回复地址头和其他高级电子邮件选项,以满足复杂的邮件流和用户交互需求。
|
||||
|
||||
通过将 SMTP 与 Sim 集成,代理和工作流程可以以编程方式将电子邮件作为任何自动化流程的一部分发送——从发送通知和确认,到自动化外部通信、报告和文档传递。这提供了一种高度灵活、与提供商无关的方法,可以直接在您的 AI 驱动流程中管理电子邮件。
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
## 使用说明
|
||||
|
||||
使用任何 SMTP 服务器(如 Gmail、Outlook、自定义服务器等)发送电子邮件。配置 SMTP 连接设置,并完全控制内容、收件人和附件来发送电子邮件。
|
||||
|
||||
## 工具
|
||||
|
||||
### `smtp_send_mail`
|
||||
|
||||
通过 SMTP 服务器发送电子邮件
|
||||
|
||||
#### 输入
|
||||
|
||||
| 参数 | 类型 | 必需 | 描述 |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `smtpHost` | string | 是 | SMTP 服务器主机名(例如:smtp.gmail.com) |
|
||||
| `smtpPort` | number | 是 | SMTP 服务器端口(TLS 为 587,SSL 为 465) |
|
||||
| `smtpUsername` | string | 是 | SMTP 身份验证用户名 |
|
||||
| `smtpPassword` | string | 是 | SMTP 身份验证密码 |
|
||||
| `smtpSecure` | string | 是 | 安全协议(TLS、SSL 或无) |
|
||||
| `from` | string | 是 | 发件人电子邮件地址 |
|
||||
| `to` | string | 是 | 收件人电子邮件地址 |
|
||||
| `subject` | string | 是 | 电子邮件主题 |
|
||||
| `body` | string | 是 | 电子邮件正文内容 |
|
||||
| `contentType` | string | 否 | 内容类型(text 或 html) |
|
||||
| `fromName` | string | 否 | 发件人显示名称 |
|
||||
| `cc` | string | 否 | 抄送收件人(逗号分隔) |
|
||||
| `bcc` | string | 否 | 密送收件人(逗号分隔) |
|
||||
| `replyTo` | string | 否 | 回复电子邮件地址 |
|
||||
| `attachments` | file[] | 否 | 附加到电子邮件的文件 |
|
||||
|
||||
#### 输出
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
| --------- | ---- | ----------- |
|
||||
| `success` | boolean | 邮件是否成功发送 |
|
||||
| `messageId` | string | 来自 SMTP 服务器的消息 ID |
|
||||
| `to` | string | 收件人电子邮件地址 |
|
||||
| `subject` | string | 电子邮件主题 |
|
||||
| `error` | string | 如果发送失败的错误消息 |
|
||||
|
||||
## 注意
|
||||
|
||||
- 分类:`tools`
|
||||
- 类型:`smtp`
|
||||
@@ -47114,3 +47114,275 @@ checksums:
|
||||
content/104: c6d621ee3cdc66de2c20b70a39aafe12
|
||||
content/105: b3f310d5ef115bea5a8b75bf25d7ea9a
|
||||
content/106: 9d45ccf1c14d61412169be8f8510a960
|
||||
9ed109808041fe9022eed66e1feedfdd:
|
||||
meta/title: cba6e4eab965c94b8973e60e9ea10c05
|
||||
meta/description: 366d196f8f11ecd0e96516bb9181f8d5
|
||||
content/0: 1b031fb0c62c46b177aeed5c3d3f8f80
|
||||
content/1: dcf2843a8d5eb40192a44104c9c788a4
|
||||
content/2: 36ce181b1ca29664a1b6ddf4090623ae
|
||||
content/3: 0a9d2b209e2a8b8fadda104bc42ea92e
|
||||
content/4: 646bc61a952c9733ad296f441ae5ed9e
|
||||
content/5: 40acc2cabeac1517944e2cb7b798b1b2
|
||||
content/6: c398c5b62380e61ee01e211a35d51aba
|
||||
content/7: 821e6394b0a953e2b0842b04ae8f3105
|
||||
content/8: 46cd469dc3ba6864acfe2aedecb7d187
|
||||
content/9: 9c8aa3f09c9b2bd50ea4cdff3598ea4e
|
||||
content/10: 7c66bb1ee02987bc4bc88217e9b3bac7
|
||||
content/11: bd55d02bd4275b49af4b4c8b7c43628e
|
||||
content/12: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/13: a962eddcfdc6875bcb08a64d34c9cf1d
|
||||
content/14: bcadfc362b69078beee0088e5936c98b
|
||||
content/15: 0dc1675d63e9b8cf974548f7f33baff9
|
||||
content/16: b3f310d5ef115bea5a8b75bf25d7ea9a
|
||||
content/17: 591b0b21fdd6f07241c97381dcc7a554
|
||||
21c5c74229b0ec1318fd47b3bff76fbb:
|
||||
meta/title: 84ced5c0ab02fb2b72e8b6cfb40b4596
|
||||
meta/description: dca3d318d04d8b35a5a308daa424b261
|
||||
content/0: 1b031fb0c62c46b177aeed5c3d3f8f80
|
||||
content/1: 1731401b29cfa7e72b7e5b65f65c6267
|
||||
content/2: 3c4b8ba9b9a18779cc3946a989f8ef84
|
||||
content/3: be9b4ba1386fdfc17722872f13d8b065
|
||||
content/4: d503580fe34361dcb6496ec6694bc9e1
|
||||
content/5: 9dc3d3ec6dda629e88ae029b2d658bda
|
||||
content/6: 9152b2bb77feff0b825c6520a86487b5
|
||||
content/7: dc6788f18a57dcb0577312e34e5d97db
|
||||
content/8: 8b04440694729de9b0b36edd5ccba509
|
||||
content/9: 821e6394b0a953e2b0842b04ae8f3105
|
||||
content/10: 5363c89d96b289212e3b5a73f70c3189
|
||||
content/11: 9c8aa3f09c9b2bd50ea4cdff3598ea4e
|
||||
content/12: da4762bf046b4612a3d998ca8933d92d
|
||||
content/13: aa3b814b4a9c5553373e52aac8b87a52
|
||||
content/14: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/15: 887b87a8f3a5bb5ea3fd8793f47b7c61
|
||||
content/16: bcadfc362b69078beee0088e5936c98b
|
||||
content/17: e22392f49f990400f91cbb4cbee946e1
|
||||
content/18: 78d42fb8ee8a68ffa92ded3cc705edf1
|
||||
content/19: 911dab823f8bd10d7d8032976b3a6c8e
|
||||
content/20: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/21: 2bbd6012cfb6e25424f3b0f02aad3ce8
|
||||
content/22: bcadfc362b69078beee0088e5936c98b
|
||||
content/23: 1b595fc6d3e2bb3848b99027ff373009
|
||||
content/24: df354436708823f474ec0fc1cd363b3c
|
||||
content/25: f5fae0bbb4a96a36cda6feb280be5616
|
||||
content/26: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/27: cbbc03735b74fd325a091ed38fe04e9e
|
||||
content/28: bcadfc362b69078beee0088e5936c98b
|
||||
content/29: 95e0542011571ed7f06b49a4ae797954
|
||||
content/30: 807141bcd9f7eae7756fdc6c7f3806da
|
||||
content/31: cd7161901aeba94cb2ad2d99d22481f8
|
||||
content/32: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/33: f9e775fe3343f469407896cf20b547e6
|
||||
content/34: bcadfc362b69078beee0088e5936c98b
|
||||
content/35: b5e93d9a3d2d708d3b99e9d189c19646
|
||||
content/36: 179ccfc6418c245583fc29f53c15c39e
|
||||
content/37: 1087b0f7d5002dfa4c48eb546245c81d
|
||||
content/38: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/39: 239897f78db49f1283dc5a78538a2a06
|
||||
content/40: bcadfc362b69078beee0088e5936c98b
|
||||
content/41: d1b67021ac01a002ec893803e62ed45e
|
||||
content/42: df8777f6df9c498e1585ffb5dd830410
|
||||
content/43: d6c88c6b676978de09aa638118477ae3
|
||||
content/44: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/45: 2b306db45de9c58570b65d6cdcb6f247
|
||||
content/46: bcadfc362b69078beee0088e5936c98b
|
||||
content/47: a42eb9722e411fdbe979e2da1ce0b151
|
||||
content/48: f3216a0403673adcb4a519dbdcfd4f15
|
||||
content/49: 937ed84a57f0ae6f8d4e6ad43de884ea
|
||||
content/50: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/51: d723f832f4ecf3110fd9cba4846d4e2d
|
||||
content/52: bcadfc362b69078beee0088e5936c98b
|
||||
content/53: a42eb9722e411fdbe979e2da1ce0b151
|
||||
content/54: 61d9d10a79f2efadbf1a4620a6ab23d4
|
||||
content/55: 8882e6b7157c5c200aa8fed20a510697
|
||||
content/56: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/57: 44a38e8028982d5dbcb2f3c874fc9a61
|
||||
content/58: bcadfc362b69078beee0088e5936c98b
|
||||
content/59: 8b48d2809c6fa1801db032f00f6d3358
|
||||
content/60: 50559acbfd25cd27b2a089d7118752c5
|
||||
content/61: a3c1b2172bf5f755bb418a33af668049
|
||||
content/62: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/63: 215eb40066ac37e888a6f2e11350b43d
|
||||
content/64: bcadfc362b69078beee0088e5936c98b
|
||||
content/65: 2b3c80bcbce92fe344b5d92ace204b15
|
||||
content/66: 151113c0d69feef323a5b908914a7c26
|
||||
content/67: c858d6ce22f63c2b7e87889bbba17af8
|
||||
content/68: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/69: 7a7210108b3f95a91a6dd7ab05d540e5
|
||||
content/70: bcadfc362b69078beee0088e5936c98b
|
||||
content/71: 682c8f618848c1863ed7c349e1d2bd1e
|
||||
content/72: 29d7490bf106ad4aec4dac9ee0e03d8e
|
||||
content/73: e162edb4a88f5bb2772a6602061c5431
|
||||
content/74: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/75: 52b03f6ee6d9127d28c257b56798e115
|
||||
content/76: bcadfc362b69078beee0088e5936c98b
|
||||
content/77: 9faba3cf91d5594a2322f8312d081aef
|
||||
content/78: cdf86d7591c580bec3e74ae3a3693bef
|
||||
content/79: 3423a59063d9a61dd32733a60f93cff6
|
||||
content/80: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/81: 331770e146f9a6b6030dfb970d02cd40
|
||||
content/82: bcadfc362b69078beee0088e5936c98b
|
||||
content/83: 5144b9278e7aed0173286d6519681f92
|
||||
content/84: bd4c89e713278c619f95e5172e68d720
|
||||
content/85: 6694790c2343e744289bea26560c587d
|
||||
content/86: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/87: d12e5058c0c39696a7348b8e90805e15
|
||||
content/88: bcadfc362b69078beee0088e5936c98b
|
||||
content/89: 5144b9278e7aed0173286d6519681f92
|
||||
content/90: a7aeeb8f5eab372cb2fe1f733ccfc011
|
||||
content/91: 38a0744c3a333cf6914314dfee7cae6e
|
||||
content/92: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/93: e43952eea5785b1057955aa786dc886d
|
||||
content/94: bcadfc362b69078beee0088e5936c98b
|
||||
content/95: 6234f5259e8566496dc450b45a01d9d1
|
||||
content/96: bdb0431ec63f0513e6babe371ba64242
|
||||
content/97: 8970f32aeb56c03b00e2ade3c37a93fc
|
||||
content/98: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/99: 23aaf026b4d450b5bd6047e3acfe9a71
|
||||
content/100: bcadfc362b69078beee0088e5936c98b
|
||||
content/101: 7dec1de52492e6d0575c136baa1a8f92
|
||||
content/102: 22512b23811c21236e3ec39743e30267
|
||||
content/103: e70757a620b6d53b8232652c6f224100
|
||||
content/104: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/105: 84e1bbd2e9a45147bb63d122082e4e5b
|
||||
content/106: bcadfc362b69078beee0088e5936c98b
|
||||
content/107: acced4eaee40332522d797538a7c626f
|
||||
content/108: b3f310d5ef115bea5a8b75bf25d7ea9a
|
||||
content/109: 545417dfa5925e97177baf6f0bea938a
|
||||
f2d0730708c24f29942744f48297520b:
|
||||
meta/title: b0301322c66fcbf604c6988c11a8a0b6
|
||||
meta/description: 54233683a87a944c333d0a27a15f297e
|
||||
content/0: 1b031fb0c62c46b177aeed5c3d3f8f80
|
||||
content/1: 0aefa3b41a9d2ecaf2cfafe6818ed5d2
|
||||
content/2: 3f99340b6a2b22d8f91d8cabd457f4f5
|
||||
content/3: e64b467b3c7f0ade59c79c0a9a8da002
|
||||
content/4: a639faec4ba8d6237dd700c4c986f8cd
|
||||
content/5: 533ecdbe1ca2f2c741613ad29d92ec3a
|
||||
content/6: 856ec6f97e01acb2640d34a97299caee
|
||||
content/7: 821e6394b0a953e2b0842b04ae8f3105
|
||||
content/8: 57ea3ddd02ed5668f79c3943eeb3dc76
|
||||
content/9: 9c8aa3f09c9b2bd50ea4cdff3598ea4e
|
||||
content/10: 1dc07b63872647bf31f3a659eca63670
|
||||
content/11: d4f9d183b3eb7c221f2c407489a652c5
|
||||
content/12: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/13: f1d12e7ac02f81ccf00664735284675d
|
||||
content/14: bcadfc362b69078beee0088e5936c98b
|
||||
content/15: 388eb8cab2572fad0d8e65e48ad71644
|
||||
content/16: e4e994f0ae036ee5029a316e0daa5294
|
||||
content/17: 63b60341cc9c1b453e8596dd70e51f1b
|
||||
content/18: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/19: df1d35c7ecc90e9ed2658561aa90d530
|
||||
content/20: bcadfc362b69078beee0088e5936c98b
|
||||
content/21: 13df40111ce5ea2b93233798c40584e1
|
||||
content/22: 976dd71bcfd3d46c025abb54cdc55840
|
||||
content/23: d2af563f749bc199cb9680779f23bee8
|
||||
content/24: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/25: 5808af08b8e5d0ab78a1552500867be3
|
||||
content/26: bcadfc362b69078beee0088e5936c98b
|
||||
content/27: 678132234f320b948590cfe658b57c1d
|
||||
content/28: 9f67006276134ac8926b413a1d313885
|
||||
content/29: 0db8b422ae23ee6da45b980902ce258c
|
||||
content/30: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/31: e69d59f4199d43f83756b63ae881254f
|
||||
content/32: bcadfc362b69078beee0088e5936c98b
|
||||
content/33: f6096e61d6e1fd14969b9a71672ff3fd
|
||||
content/34: 46079dce2e875dfd4492ee61e3609bb6
|
||||
content/35: 97434ab9eddd245e0fe7b14ee242af6e
|
||||
content/36: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/37: d2d970ef7193db4c7358a08f580096a5
|
||||
content/38: bcadfc362b69078beee0088e5936c98b
|
||||
content/39: ba4a733914da618ac8e703d18d35b7ff
|
||||
content/40: 0ec0e400f9e3a1513126ad872ae2cfd1
|
||||
content/41: 9de50bb7fa9ef9e440680fba4022cfa7
|
||||
content/42: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/43: 8a34532b8d71279eb841adcd6df3f8bb
|
||||
content/44: bcadfc362b69078beee0088e5936c98b
|
||||
content/45: ef8d1c704e7355d1c5c495641f85abc6
|
||||
content/46: 8a30961afc7ff0df6da3b9fa24a06490
|
||||
content/47: c6c81afbd48ed9f53de42cc945011dc3
|
||||
content/48: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/49: e3722fb0dd04eaebcce70296b456acbc
|
||||
content/50: bcadfc362b69078beee0088e5936c98b
|
||||
content/51: 7f581ea28a88daa6235f93139c602778
|
||||
content/52: 18fbe27d3cd1f34db5fd225c07c5ed92
|
||||
content/53: 40c86fdce96ea2900fe530a7376b505c
|
||||
content/54: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/55: 94b2bd0c99bf1c4238a074ec656d5b95
|
||||
content/56: bcadfc362b69078beee0088e5936c98b
|
||||
content/57: d05d281cd29c0d01b05d59ae86fca97c
|
||||
content/58: b3f310d5ef115bea5a8b75bf25d7ea9a
|
||||
content/59: 944967ad6f93d68dcc558ed4c596007a
|
||||
245cfde62d1f4c088b441aeb697ba253:
|
||||
meta/title: f29b78f253094277c2e9ef79d10b5e4f
|
||||
meta/description: 46968f07e726825dfd597fae01d571b7
|
||||
content/0: 1b031fb0c62c46b177aeed5c3d3f8f80
|
||||
content/1: 46c206e964c4a6a8aa2aab9ad583d4b4
|
||||
content/2: 7a80ab974b86980eedf9c963682af79c
|
||||
content/3: 5707efa20a4903bed94356d557743546
|
||||
content/4: ebd030c32aef5a2dae774c4786fb6b62
|
||||
content/5: eb35ac44dc9c5e6d569b426251a7bdc7
|
||||
content/6: a14e113e70ac234065e31ab59bc82f8c
|
||||
content/7: 821e6394b0a953e2b0842b04ae8f3105
|
||||
content/8: 025c8bd1feda3927e30b54bdd27a61c6
|
||||
content/9: 9c8aa3f09c9b2bd50ea4cdff3598ea4e
|
||||
content/10: 35fd69ba2ad9468531fd35d31550ff24
|
||||
content/11: 0b70c103e0b75a1b268c4c1c2f6a65e1
|
||||
content/12: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/13: 667ede88de3709d56afc2109da5482e6
|
||||
content/14: bcadfc362b69078beee0088e5936c98b
|
||||
content/15: 0a7a099d582a926686c199dd7cc1f28c
|
||||
content/16: 57863aa36fddd82b172a2ebd415c0105
|
||||
content/17: b7f6f6c25d65128ca1e361a03dbdd000
|
||||
content/18: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/19: d71b6bb8e2dd6ce98101aec6a1dd77f2
|
||||
content/20: bcadfc362b69078beee0088e5936c98b
|
||||
content/21: 0a7a099d582a926686c199dd7cc1f28c
|
||||
content/22: b3f310d5ef115bea5a8b75bf25d7ea9a
|
||||
content/23: 5edfd3643d5fa96be8bdbdb3c6e6905d
|
||||
1d31f77eb0b1c63c6a30a0021a1c91a7:
|
||||
meta/title: 9f1084d4653cb60f1ce8db36f40496b0
|
||||
meta/description: 45de27663667ae7e6a583431fe4a5880
|
||||
content/0: 1b031fb0c62c46b177aeed5c3d3f8f80
|
||||
content/1: f0ca0a4c4900ee1d5b0f17ee3c533251
|
||||
content/2: 27d485e5e0595ae2bebb249da92db4e3
|
||||
content/3: 5a28d4a5bc7628a77a49b6e8691e6076
|
||||
content/4: b214a614c74fff80f2586a661afd4f7c
|
||||
content/5: c6085ddc45eb3065a8a9c2b88dcf92b2
|
||||
content/6: 5135d9bb78c3bb9a5c686b7a135ce499
|
||||
content/7: 88c9e9e37c52903912f0bd09ce6587f1
|
||||
content/8: 821e6394b0a953e2b0842b04ae8f3105
|
||||
content/9: 5cc5269dad965982af56eed8d1957036
|
||||
content/10: 9c8aa3f09c9b2bd50ea4cdff3598ea4e
|
||||
content/11: 8cc1d968c163eb0993c8cffe5142f9c4
|
||||
content/12: 1686853b699c5825bc3962ad4481dacb
|
||||
content/13: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/14: 6c217c31e3269045db51e0ca2e02dc40
|
||||
content/15: bcadfc362b69078beee0088e5936c98b
|
||||
content/16: 9a5ecda96a3113d95900df597cffc636
|
||||
content/17: e28cdc705de05af33fc86ed8d5d900d3
|
||||
content/18: 0e38f19d9fbfbd36051d2e5c7f65d0c0
|
||||
content/19: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/20: 9a0701ab299cc0a9bfd7b45f10c55449
|
||||
content/21: bcadfc362b69078beee0088e5936c98b
|
||||
content/22: 9a5ecda96a3113d95900df597cffc636
|
||||
content/23: b3f310d5ef115bea5a8b75bf25d7ea9a
|
||||
content/24: 052048d35cc259681ec571cb2a0ef40a
|
||||
3ba5675c103009fa6748b65637af354d:
|
||||
meta/title: 49dd6c21604b5e8d4153ff1aff2177e1
|
||||
meta/description: 88ab5b2b8f61ed1a63066181154fd8f8
|
||||
content/0: 1b031fb0c62c46b177aeed5c3d3f8f80
|
||||
content/1: 73f9a418f450bbae491b52737c9b2982
|
||||
content/2: 8fc2a3301b6fef2afa21759620b4bc33
|
||||
content/3: cd01d7f84456db76f6b47c88d4ad447f
|
||||
content/4: 7c3ae4ab9cdd0a7300cb613273b17ab2
|
||||
content/5: d7202506c9865536dd118962d21fdb80
|
||||
content/6: 821e6394b0a953e2b0842b04ae8f3105
|
||||
content/7: 4c7999d7c81740bdff526b4ae59d1d5a
|
||||
content/8: 9c8aa3f09c9b2bd50ea4cdff3598ea4e
|
||||
content/9: b175d6a78789313ce7504160d4070148
|
||||
content/10: 51b7b4e8d70b107a203dff9990e683c6
|
||||
content/11: 371d0e46b4bd2c23f559b8bc112f6955
|
||||
content/12: 7e1661063806f676609f471d82e01a5c
|
||||
content/13: bcadfc362b69078beee0088e5936c98b
|
||||
content/14: 387026e7559d9305d0c39edb833e5dcc
|
||||
content/15: b3f310d5ef115bea5a8b75bf25d7ea9a
|
||||
content/16: 448c1ded449bcd1a71f9b589990e1e63
|
||||
|
||||
@@ -14,6 +14,7 @@ NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||
# Security (Required)
|
||||
ENCRYPTION_KEY=your_encryption_key # Use `openssl rand -hex 32` to generate, used to encrypt environment variables
|
||||
INTERNAL_API_SECRET=your_internal_api_secret # Use `openssl rand -hex 32` to generate, used to encrypt internal api routes
|
||||
API_ENCRYPTION_KEY=your_api_encryption_key # Use `openssl rand -hex 32` to generate, used to encrypt api keys
|
||||
|
||||
# Email Provider (Optional)
|
||||
# RESEND_API_KEY= # Uncomment and add your key from https://resend.com to send actual emails
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
|
||||
const DEFAULT_STARS = '15.4k'
|
||||
const DEFAULT_STARS = '18.6k'
|
||||
|
||||
const logger = createLogger('GitHubStars')
|
||||
|
||||
export async function getFormattedGitHubStars(): Promise<string> {
|
||||
try {
|
||||
const response = await fetch('/api/github-stars', {
|
||||
const response = await fetch('/api/stars', {
|
||||
headers: {
|
||||
'Cache-Control': 'max-age=3600', // Cache for 1 hour
|
||||
},
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { HIPAABadgeIcon } from '@/components/icons'
|
||||
|
||||
export default function ComplianceBadges() {
|
||||
return (
|
||||
<div className='mt-[6px] flex items-center gap-[12px]'>
|
||||
{/* SOC2 badge */}
|
||||
<Link href='https://trust.delve.co/sim-studio' target='_blank' rel='noopener noreferrer'>
|
||||
<Image
|
||||
src='/footer/soc2.png'
|
||||
alt='SOC2 Compliant'
|
||||
width={54}
|
||||
height={54}
|
||||
className='object-contain'
|
||||
loading='lazy'
|
||||
quality={75}
|
||||
/>
|
||||
</Link>
|
||||
{/* HIPAA badge */}
|
||||
<Link href='https://trust.delve.co/sim-studio' target='_blank' rel='noopener noreferrer'>
|
||||
<HIPAABadgeIcon className='h-[54px] w-[54px]' />
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import ComplianceBadges from './compliance-badges'
|
||||
import Logo from './logo'
|
||||
import SocialLinks from './social-links'
|
||||
import StatusIndicator from './status-indicator'
|
||||
|
||||
export { ComplianceBadges, Logo, SocialLinks, StatusIndicator }
|
||||
17
apps/sim/app/(landing)/components/footer/components/logo.tsx
Normal file
17
apps/sim/app/(landing)/components/footer/components/logo.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
|
||||
export default function Logo() {
|
||||
return (
|
||||
<Link href='/' aria-label='Sim home'>
|
||||
<Image
|
||||
src='/logo/b&w/text/b&w.svg'
|
||||
alt='Sim - Workflows for LLMs'
|
||||
width={49.78314}
|
||||
height={24.276}
|
||||
priority
|
||||
quality={90}
|
||||
/>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import { DiscordIcon, GithubIcon, LinkedInIcon, xIcon as XIcon } from '@/components/icons'
|
||||
|
||||
export default function SocialLinks() {
|
||||
return (
|
||||
<div className='flex items-center gap-[12px]'>
|
||||
<a
|
||||
href='https://discord.gg/Hr4UWYEcTT'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='flex items-center text-[16px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
aria-label='Discord'
|
||||
>
|
||||
<DiscordIcon className='h-[20px] w-[20px]' aria-hidden='true' />
|
||||
</a>
|
||||
<a
|
||||
href='https://x.com/simdotai'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='flex items-center text-[16px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
aria-label='X (Twitter)'
|
||||
>
|
||||
<XIcon className='h-[18px] w-[18px]' aria-hidden='true' />
|
||||
</a>
|
||||
<a
|
||||
href='https://www.linkedin.com/company/simstudioai/'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='flex items-center text-[16px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
aria-label='LinkedIn'
|
||||
>
|
||||
<LinkedInIcon className='h-[18px] w-[18px]' aria-hidden='true' />
|
||||
</a>
|
||||
<a
|
||||
href='https://github.com/simstudioai/sim'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='flex items-center text-[16px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
aria-label='GitHub'
|
||||
>
|
||||
<GithubIcon className='h-[20px] w-[20px]' aria-hidden='true' />
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
'use client'
|
||||
|
||||
import Link from 'next/link'
|
||||
import { StatusDotIcon } from '@/components/icons'
|
||||
import type { StatusType } from '@/app/api/status/types'
|
||||
import { useStatus } from '@/hooks/queries/status'
|
||||
|
||||
const STATUS_COLORS: Record<StatusType, string> = {
|
||||
operational: 'text-[#10B981] hover:text-[#059669]',
|
||||
degraded: 'text-[#F59E0B] hover:text-[#D97706]',
|
||||
outage: 'text-[#EF4444] hover:text-[#DC2626]',
|
||||
maintenance: 'text-[#3B82F6] hover:text-[#2563EB]',
|
||||
loading: 'text-muted-foreground hover:text-foreground',
|
||||
error: 'text-muted-foreground hover:text-foreground',
|
||||
}
|
||||
|
||||
export default function StatusIndicator() {
|
||||
const { data, isLoading, isError } = useStatus()
|
||||
|
||||
const status = isLoading ? 'loading' : isError ? 'error' : data?.status || 'error'
|
||||
const message = isLoading
|
||||
? 'Checking Status...'
|
||||
: isError
|
||||
? 'Status Unknown'
|
||||
: data?.message || 'Status Unknown'
|
||||
const statusUrl = data?.url || 'https://status.sim.ai'
|
||||
|
||||
return (
|
||||
<Link
|
||||
href={statusUrl}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className={`flex items-center gap-[6px] whitespace-nowrap text-[12px] transition-colors ${STATUS_COLORS[status]}`}
|
||||
aria-label={`System status: ${message}`}
|
||||
>
|
||||
<StatusDotIcon status={status} className='h-[6px] w-[6px]' aria-hidden='true' />
|
||||
<span>{message}</span>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
96
apps/sim/app/(landing)/components/footer/consts.ts
Normal file
96
apps/sim/app/(landing)/components/footer/consts.ts
Normal file
@@ -0,0 +1,96 @@
|
||||
export const FOOTER_BLOCKS = [
|
||||
'Agent',
|
||||
'API',
|
||||
'Condition',
|
||||
'Evaluator',
|
||||
'Function',
|
||||
'Human In The Loop',
|
||||
'Loop',
|
||||
'Parallel',
|
||||
'Response',
|
||||
'Router',
|
||||
'Starter',
|
||||
'Webhook',
|
||||
'Workflow',
|
||||
]
|
||||
|
||||
export const FOOTER_TOOLS = [
|
||||
'Airtable',
|
||||
'Apify',
|
||||
'Apollo',
|
||||
'ArXiv',
|
||||
'Browser Use',
|
||||
'Calendly',
|
||||
'Clay',
|
||||
'Confluence',
|
||||
'Discord',
|
||||
'ElevenLabs',
|
||||
'Exa',
|
||||
'Firecrawl',
|
||||
'GitHub',
|
||||
'Gmail',
|
||||
'Google Drive',
|
||||
'Guardrails',
|
||||
'HubSpot',
|
||||
'HuggingFace',
|
||||
'Hunter',
|
||||
'Incidentio',
|
||||
'Intercom',
|
||||
'Jina',
|
||||
'Jira',
|
||||
'Knowledge',
|
||||
'Linear',
|
||||
'LinkUp',
|
||||
'LinkedIn',
|
||||
'Mailchimp',
|
||||
'Mailgun',
|
||||
'MCP',
|
||||
'Mem0',
|
||||
'Microsoft Excel',
|
||||
'Microsoft Planner',
|
||||
'Microsoft Teams',
|
||||
'Mistral Parse',
|
||||
'MongoDB',
|
||||
'MySQL',
|
||||
'Neo4j',
|
||||
'Notion',
|
||||
'OneDrive',
|
||||
'OpenAI',
|
||||
'Outlook',
|
||||
'Parallel AI',
|
||||
'Perplexity',
|
||||
'Pinecone',
|
||||
'Pipedrive',
|
||||
'PostHog',
|
||||
'PostgreSQL',
|
||||
'Pylon',
|
||||
'Qdrant',
|
||||
'Reddit',
|
||||
'Resend',
|
||||
'S3',
|
||||
'Salesforce',
|
||||
'SendGrid',
|
||||
'Serper',
|
||||
'SharePoint',
|
||||
'Slack',
|
||||
'Smtp',
|
||||
'Stagehand',
|
||||
'Stripe',
|
||||
'Supabase',
|
||||
'Tavily',
|
||||
'Telegram',
|
||||
'Translate',
|
||||
'Trello',
|
||||
'Twilio',
|
||||
'Typeform',
|
||||
'Vision',
|
||||
'Wait',
|
||||
'Wealthbox',
|
||||
'Webflow',
|
||||
'WhatsApp',
|
||||
'Wikipedia',
|
||||
'X',
|
||||
'YouTube',
|
||||
'Zendesk',
|
||||
'Zep',
|
||||
]
|
||||
@@ -1,97 +1,12 @@
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import {
|
||||
DiscordIcon,
|
||||
GithubIcon,
|
||||
HIPAABadgeIcon,
|
||||
LinkedInIcon,
|
||||
xIcon as XIcon,
|
||||
} from '@/components/icons'
|
||||
import { inter } from '@/app/_styles/fonts/inter/inter'
|
||||
|
||||
const blocks = [
|
||||
'Agent',
|
||||
'API',
|
||||
'Condition',
|
||||
'Evaluator',
|
||||
'Function',
|
||||
'Loop',
|
||||
'Parallel',
|
||||
'Response',
|
||||
'Router',
|
||||
'Starter',
|
||||
'Webhook',
|
||||
'Workflow',
|
||||
]
|
||||
|
||||
const tools = [
|
||||
'Airtable',
|
||||
'ArXiv',
|
||||
'Browser Use',
|
||||
'Clay',
|
||||
'Confluence',
|
||||
'Discord',
|
||||
'ElevenLabs',
|
||||
'Exa',
|
||||
'File',
|
||||
'Firecrawl',
|
||||
'Generic Webhook',
|
||||
'GitHub',
|
||||
'Gmail',
|
||||
'Google Calendar',
|
||||
'Google Docs',
|
||||
'Google Drive',
|
||||
'Google Vault',
|
||||
'Google Search',
|
||||
'Google Sheets',
|
||||
'HuggingFace',
|
||||
'Hunter',
|
||||
'Image Generator',
|
||||
'Jina',
|
||||
'Jira',
|
||||
'Knowledge',
|
||||
'Linear',
|
||||
'LinkUp',
|
||||
'Mem0',
|
||||
'Memory',
|
||||
'Microsoft Excel',
|
||||
'Microsoft Planner',
|
||||
'Microsoft Teams',
|
||||
'Mistral Parse',
|
||||
'MySQL',
|
||||
'Notion',
|
||||
'OneDrive',
|
||||
'OpenAI',
|
||||
'Outlook',
|
||||
'Parallel AI',
|
||||
'Perplexity',
|
||||
'Pinecone',
|
||||
'PostgreSQL',
|
||||
'Qdrant',
|
||||
'Reddit',
|
||||
'S3',
|
||||
'Schedule',
|
||||
'Serper',
|
||||
'SharePoint',
|
||||
'Slack',
|
||||
'Stagehand',
|
||||
'Stagehand Agent',
|
||||
'Supabase',
|
||||
'Tavily',
|
||||
'Telegram',
|
||||
'Thinking',
|
||||
'Translate',
|
||||
'Twilio SMS',
|
||||
'Typeform',
|
||||
'Vision',
|
||||
'Wealthbox',
|
||||
'Webhook',
|
||||
'WhatsApp',
|
||||
'Wikipedia',
|
||||
'X',
|
||||
'YouTube',
|
||||
'Zep',
|
||||
]
|
||||
import {
|
||||
ComplianceBadges,
|
||||
Logo,
|
||||
SocialLinks,
|
||||
StatusIndicator,
|
||||
} from '@/app/(landing)/components/footer/components'
|
||||
import { FOOTER_BLOCKS, FOOTER_TOOLS } from '@/app/(landing)/components/footer/consts'
|
||||
|
||||
interface FooterProps {
|
||||
fullWidth?: boolean
|
||||
@@ -110,84 +25,10 @@ export default function Footer({ fullWidth = false }: FooterProps) {
|
||||
<div className={`flex gap-[80px] ${fullWidth ? 'justify-center' : ''}`}>
|
||||
{/* Logo and social links */}
|
||||
<div className='flex flex-col gap-[24px]'>
|
||||
<Link href='/' aria-label='Sim home'>
|
||||
<Image
|
||||
src='/logo/b&w/text/b&w.svg'
|
||||
alt='Sim - Workflows for LLMs'
|
||||
width={49.78314}
|
||||
height={24.276}
|
||||
priority
|
||||
quality={90}
|
||||
/>
|
||||
</Link>
|
||||
|
||||
{/* Social links */}
|
||||
<div className='flex items-center gap-[12px]'>
|
||||
<a
|
||||
href='https://discord.gg/Hr4UWYEcTT'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='flex items-center text-[16px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
aria-label='Discord'
|
||||
>
|
||||
<DiscordIcon className='h-[20px] w-[20px]' aria-hidden='true' />
|
||||
</a>
|
||||
<a
|
||||
href='https://x.com/simdotai'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='flex items-center text-[16px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
aria-label='X (Twitter)'
|
||||
>
|
||||
<XIcon className='h-[18px] w-[18px]' aria-hidden='true' />
|
||||
</a>
|
||||
<a
|
||||
href='https://www.linkedin.com/company/simstudioai/'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='flex items-center text-[16px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
aria-label='LinkedIn'
|
||||
>
|
||||
<LinkedInIcon className='h-[18px] w-[18px]' aria-hidden='true' />
|
||||
</a>
|
||||
<a
|
||||
href='https://github.com/simstudioai/sim'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='flex items-center text-[16px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
aria-label='GitHub'
|
||||
>
|
||||
<GithubIcon className='h-[20px] w-[20px]' aria-hidden='true' />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Compliance badges */}
|
||||
<div className='mt-[6px] flex items-center gap-[12px]'>
|
||||
{/* SOC2 badge */}
|
||||
<Link
|
||||
href='https://trust.delve.co/sim-studio'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
>
|
||||
<Image
|
||||
src='/footer/soc2.png'
|
||||
alt='SOC2 Compliant'
|
||||
width={54}
|
||||
height={54}
|
||||
className='object-contain'
|
||||
loading='lazy'
|
||||
quality={75}
|
||||
/>
|
||||
</Link>
|
||||
{/* HIPAA badge placeholder - add when available */}
|
||||
<Link
|
||||
href='https://trust.delve.co/sim-studio'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
>
|
||||
<HIPAABadgeIcon className='h-[54px] w-[54px]' />
|
||||
</Link>
|
||||
</div>
|
||||
<Logo />
|
||||
<SocialLinks />
|
||||
<ComplianceBadges />
|
||||
<StatusIndicator />
|
||||
</div>
|
||||
|
||||
{/* Links section */}
|
||||
@@ -228,6 +69,14 @@ export default function Footer({ fullWidth = false }: FooterProps) {
|
||||
>
|
||||
Changelog
|
||||
</Link>
|
||||
<Link
|
||||
href='https://status.sim.ai'
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='text-[14px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
>
|
||||
Status
|
||||
</Link>
|
||||
<Link
|
||||
href='/careers'
|
||||
className='text-[14px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
@@ -257,7 +106,7 @@ export default function Footer({ fullWidth = false }: FooterProps) {
|
||||
<div className='hidden sm:block'>
|
||||
<h2 className='mb-[16px] font-medium text-[14px] text-foreground'>Blocks</h2>
|
||||
<div className='flex flex-col gap-[12px]'>
|
||||
{blocks.map((block) => (
|
||||
{FOOTER_BLOCKS.map((block) => (
|
||||
<Link
|
||||
key={block}
|
||||
href={`https://docs.sim.ai/blocks/${block.toLowerCase().replace(' ', '-')}`}
|
||||
@@ -277,7 +126,7 @@ export default function Footer({ fullWidth = false }: FooterProps) {
|
||||
<div className='flex gap-[80px]'>
|
||||
{/* First column */}
|
||||
<div className='flex flex-col gap-[12px]'>
|
||||
{tools.slice(0, Math.ceil(tools.length / 4)).map((tool) => (
|
||||
{FOOTER_TOOLS.slice(0, Math.ceil(FOOTER_TOOLS.length / 4)).map((tool) => (
|
||||
<Link
|
||||
key={tool}
|
||||
href={`https://docs.sim.ai/tools/${tool.toLowerCase().replace(/\s+/g, '_')}`}
|
||||
@@ -291,39 +140,41 @@ export default function Footer({ fullWidth = false }: FooterProps) {
|
||||
</div>
|
||||
{/* Second column */}
|
||||
<div className='flex flex-col gap-[12px]'>
|
||||
{tools
|
||||
.slice(Math.ceil(tools.length / 4), Math.ceil((tools.length * 2) / 4))
|
||||
.map((tool) => (
|
||||
<Link
|
||||
key={tool}
|
||||
href={`https://docs.sim.ai/tools/${tool.toLowerCase().replace(/\s+/g, '_')}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='whitespace-nowrap text-[14px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
>
|
||||
{tool}
|
||||
</Link>
|
||||
))}
|
||||
{FOOTER_TOOLS.slice(
|
||||
Math.ceil(FOOTER_TOOLS.length / 4),
|
||||
Math.ceil((FOOTER_TOOLS.length * 2) / 4)
|
||||
).map((tool) => (
|
||||
<Link
|
||||
key={tool}
|
||||
href={`https://docs.sim.ai/tools/${tool.toLowerCase().replace(/\s+/g, '_')}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='whitespace-nowrap text-[14px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
>
|
||||
{tool}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
{/* Third column */}
|
||||
<div className='flex flex-col gap-[12px]'>
|
||||
{tools
|
||||
.slice(Math.ceil((tools.length * 2) / 4), Math.ceil((tools.length * 3) / 4))
|
||||
.map((tool) => (
|
||||
<Link
|
||||
key={tool}
|
||||
href={`https://docs.sim.ai/tools/${tool.toLowerCase().replace(/\s+/g, '_')}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='whitespace-nowrap text-[14px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
>
|
||||
{tool}
|
||||
</Link>
|
||||
))}
|
||||
{FOOTER_TOOLS.slice(
|
||||
Math.ceil((FOOTER_TOOLS.length * 2) / 4),
|
||||
Math.ceil((FOOTER_TOOLS.length * 3) / 4)
|
||||
).map((tool) => (
|
||||
<Link
|
||||
key={tool}
|
||||
href={`https://docs.sim.ai/tools/${tool.toLowerCase().replace(/\s+/g, '_')}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
className='whitespace-nowrap text-[14px] text-muted-foreground transition-colors hover:text-foreground'
|
||||
>
|
||||
{tool}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
{/* Fourth column */}
|
||||
<div className='flex flex-col gap-[12px]'>
|
||||
{tools.slice(Math.ceil((tools.length * 3) / 4)).map((tool) => (
|
||||
{FOOTER_TOOLS.slice(Math.ceil((FOOTER_TOOLS.length * 3) / 4)).map((tool) => (
|
||||
<Link
|
||||
key={tool}
|
||||
href={`https://docs.sim.ai/tools/${tool.toLowerCase().replace(/\s+/g, '_')}`}
|
||||
|
||||
@@ -20,7 +20,7 @@ interface NavProps {
|
||||
}
|
||||
|
||||
export default function Nav({ hideAuthButtons = false, variant = 'landing' }: NavProps = {}) {
|
||||
const [githubStars, setGithubStars] = useState('18.5k')
|
||||
const [githubStars, setGithubStars] = useState('18.6k')
|
||||
const [isHovered, setIsHovered] = useState(false)
|
||||
const [isLoginHovered, setIsLoginHovered] = useState(false)
|
||||
const router = useRouter()
|
||||
|
||||
@@ -6,6 +6,23 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { createMockRequest } from '@/app/api/__test-utils__/utils'
|
||||
|
||||
const createMockStream = () => {
|
||||
return new ReadableStream({
|
||||
start(controller) {
|
||||
controller.enqueue(
|
||||
new TextEncoder().encode('data: {"blockId":"agent-1","chunk":"Hello"}\n\n')
|
||||
)
|
||||
controller.enqueue(
|
||||
new TextEncoder().encode('data: {"blockId":"agent-1","chunk":" world"}\n\n')
|
||||
)
|
||||
controller.enqueue(
|
||||
new TextEncoder().encode('data: {"event":"final","data":{"success":true}}\n\n')
|
||||
)
|
||||
controller.close()
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
vi.mock('@/lib/execution/preprocessing', () => ({
|
||||
preprocessExecution: vi.fn().mockResolvedValue({
|
||||
success: true,
|
||||
@@ -36,28 +53,37 @@ vi.mock('@/lib/logs/execution/logging-session', () => ({
|
||||
})),
|
||||
}))
|
||||
|
||||
describe('Chat Identifier API Route', () => {
|
||||
const createMockStream = () => {
|
||||
return new ReadableStream({
|
||||
start(controller) {
|
||||
controller.enqueue(
|
||||
new TextEncoder().encode('data: {"blockId":"agent-1","chunk":"Hello"}\n\n')
|
||||
)
|
||||
controller.enqueue(
|
||||
new TextEncoder().encode('data: {"blockId":"agent-1","chunk":" world"}\n\n')
|
||||
)
|
||||
controller.enqueue(
|
||||
new TextEncoder().encode('data: {"event":"final","data":{"success":true}}\n\n')
|
||||
)
|
||||
controller.close()
|
||||
},
|
||||
})
|
||||
}
|
||||
vi.mock('@/lib/workflows/streaming', () => ({
|
||||
createStreamingResponse: vi.fn().mockImplementation(async () => createMockStream()),
|
||||
}))
|
||||
|
||||
vi.mock('@/lib/utils', () => ({
|
||||
SSE_HEADERS: {
|
||||
'Content-Type': 'text/event-stream',
|
||||
'Cache-Control': 'no-cache',
|
||||
Connection: 'keep-alive',
|
||||
'X-Accel-Buffering': 'no',
|
||||
},
|
||||
generateRequestId: vi.fn().mockReturnValue('test-request-id'),
|
||||
}))
|
||||
|
||||
vi.mock('@/app/api/workflows/[id]/execute/route', () => ({
|
||||
createFilteredResult: vi.fn().mockImplementation((result: any) => ({
|
||||
...result,
|
||||
logs: undefined,
|
||||
metadata: result.metadata
|
||||
? {
|
||||
...result.metadata,
|
||||
workflowConnections: undefined,
|
||||
}
|
||||
: undefined,
|
||||
})),
|
||||
}))
|
||||
|
||||
describe('Chat Identifier API Route', () => {
|
||||
const mockAddCorsHeaders = vi.fn().mockImplementation((response) => response)
|
||||
const mockValidateChatAuth = vi.fn().mockResolvedValue({ authorized: true })
|
||||
const mockSetChatAuthCookie = vi.fn()
|
||||
const mockCreateStreamingResponse = vi.fn().mockResolvedValue(createMockStream())
|
||||
|
||||
const mockChatResult = [
|
||||
{
|
||||
@@ -104,16 +130,6 @@ describe('Chat Identifier API Route', () => {
|
||||
validateAuthToken: vi.fn().mockReturnValue(true),
|
||||
}))
|
||||
|
||||
vi.doMock('@/lib/workflows/streaming', () => ({
|
||||
createStreamingResponse: mockCreateStreamingResponse,
|
||||
SSE_HEADERS: {
|
||||
'Content-Type': 'text/event-stream',
|
||||
'Cache-Control': 'no-cache',
|
||||
Connection: 'keep-alive',
|
||||
'X-Accel-Buffering': 'no',
|
||||
},
|
||||
}))
|
||||
|
||||
vi.doMock('@/lib/logs/console/logger', () => ({
|
||||
createLogger: vi.fn().mockReturnValue({
|
||||
debug: vi.fn(),
|
||||
@@ -372,6 +388,7 @@ describe('Chat Identifier API Route', () => {
|
||||
const params = Promise.resolve({ identifier: 'test-chat' })
|
||||
|
||||
const { POST } = await import('@/app/api/chat/[identifier]/route')
|
||||
const { createStreamingResponse } = await import('@/lib/workflows/streaming')
|
||||
|
||||
const response = await POST(req, { params })
|
||||
|
||||
@@ -380,7 +397,7 @@ describe('Chat Identifier API Route', () => {
|
||||
expect(response.headers.get('Cache-Control')).toBe('no-cache')
|
||||
expect(response.headers.get('Connection')).toBe('keep-alive')
|
||||
|
||||
expect(mockCreateStreamingResponse).toHaveBeenCalledWith(
|
||||
expect(createStreamingResponse).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
workflow: expect.objectContaining({
|
||||
id: 'workflow-id',
|
||||
@@ -396,7 +413,7 @@ describe('Chat Identifier API Route', () => {
|
||||
}),
|
||||
})
|
||||
)
|
||||
})
|
||||
}, 10000)
|
||||
|
||||
it('should handle streaming response body correctly', async () => {
|
||||
const req = createMockRequest('POST', { input: 'Hello world' })
|
||||
@@ -423,8 +440,9 @@ describe('Chat Identifier API Route', () => {
|
||||
})
|
||||
|
||||
it('should handle workflow execution errors gracefully', async () => {
|
||||
const originalStreamingResponse = mockCreateStreamingResponse.getMockImplementation()
|
||||
mockCreateStreamingResponse.mockImplementationOnce(async () => {
|
||||
const { createStreamingResponse } = await import('@/lib/workflows/streaming')
|
||||
const originalStreamingResponse = vi.mocked(createStreamingResponse).getMockImplementation()
|
||||
vi.mocked(createStreamingResponse).mockImplementationOnce(async () => {
|
||||
throw new Error('Execution failed')
|
||||
})
|
||||
|
||||
@@ -442,7 +460,7 @@ describe('Chat Identifier API Route', () => {
|
||||
expect(data).toHaveProperty('message', 'Execution failed')
|
||||
|
||||
if (originalStreamingResponse) {
|
||||
mockCreateStreamingResponse.mockImplementation(originalStreamingResponse)
|
||||
vi.mocked(createStreamingResponse).mockImplementation(originalStreamingResponse)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -474,10 +492,11 @@ describe('Chat Identifier API Route', () => {
|
||||
const params = Promise.resolve({ identifier: 'test-chat' })
|
||||
|
||||
const { POST } = await import('@/app/api/chat/[identifier]/route')
|
||||
const { createStreamingResponse } = await import('@/lib/workflows/streaming')
|
||||
|
||||
await POST(req, { params })
|
||||
|
||||
expect(mockCreateStreamingResponse).toHaveBeenCalledWith(
|
||||
expect(createStreamingResponse).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
input: expect.objectContaining({
|
||||
input: 'Hello world',
|
||||
@@ -492,10 +511,11 @@ describe('Chat Identifier API Route', () => {
|
||||
const params = Promise.resolve({ identifier: 'test-chat' })
|
||||
|
||||
const { POST } = await import('@/app/api/chat/[identifier]/route')
|
||||
const { createStreamingResponse } = await import('@/lib/workflows/streaming')
|
||||
|
||||
await POST(req, { params })
|
||||
|
||||
expect(mockCreateStreamingResponse).toHaveBeenCalledWith(
|
||||
expect(createStreamingResponse).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
input: expect.objectContaining({
|
||||
input: 'Hello world',
|
||||
|
||||
@@ -45,7 +45,7 @@ async function hasPermission(userId: string, profile: any): Promise<boolean> {
|
||||
return false
|
||||
}
|
||||
|
||||
// GET /api/creator-profiles/[id] - Get a specific creator profile
|
||||
// GET /api/creators/[id] - Get a specific creator profile
|
||||
export async function GET(request: NextRequest, { params }: { params: Promise<{ id: string }> }) {
|
||||
const requestId = generateRequestId()
|
||||
const { id } = await params
|
||||
@@ -70,7 +70,7 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
||||
}
|
||||
}
|
||||
|
||||
// PUT /api/creator-profiles/[id] - Update a creator profile
|
||||
// PUT /api/creators/[id] - Update a creator profile
|
||||
export async function PUT(request: NextRequest, { params }: { params: Promise<{ id: string }> }) {
|
||||
const requestId = generateRequestId()
|
||||
const { id } = await params
|
||||
@@ -135,7 +135,7 @@ export async function PUT(request: NextRequest, { params }: { params: Promise<{
|
||||
}
|
||||
}
|
||||
|
||||
// DELETE /api/creator-profiles/[id] - Delete a creator profile
|
||||
// DELETE /api/creators/[id] - Delete a creator profile
|
||||
export async function DELETE(
|
||||
request: NextRequest,
|
||||
{ params }: { params: Promise<{ id: string }> }
|
||||
114
apps/sim/app/api/creators/[id]/verify/route.ts
Normal file
114
apps/sim/app/api/creators/[id]/verify/route.ts
Normal file
@@ -0,0 +1,114 @@
|
||||
import { db } from '@sim/db'
|
||||
import { templateCreators, user } from '@sim/db/schema'
|
||||
import { eq } from 'drizzle-orm'
|
||||
import { type NextRequest, NextResponse } from 'next/server'
|
||||
import { getSession } from '@/lib/auth'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
import { generateRequestId } from '@/lib/utils'
|
||||
|
||||
const logger = createLogger('CreatorVerificationAPI')
|
||||
|
||||
export const revalidate = 0
|
||||
|
||||
// POST /api/creators/[id]/verify - Verify a creator (super users only)
|
||||
export async function POST(request: NextRequest, { params }: { params: Promise<{ id: string }> }) {
|
||||
const requestId = generateRequestId()
|
||||
const { id } = await params
|
||||
|
||||
try {
|
||||
const session = await getSession()
|
||||
if (!session?.user?.id) {
|
||||
logger.warn(`[${requestId}] Unauthorized verification attempt for creator: ${id}`)
|
||||
return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
|
||||
}
|
||||
|
||||
// Check if user is a super user
|
||||
const currentUser = await db.select().from(user).where(eq(user.id, session.user.id)).limit(1)
|
||||
|
||||
if (!currentUser[0]?.isSuperUser) {
|
||||
logger.warn(`[${requestId}] Non-super user attempted to verify creator: ${id}`)
|
||||
return NextResponse.json({ error: 'Only super users can verify creators' }, { status: 403 })
|
||||
}
|
||||
|
||||
// Check if creator exists
|
||||
const existingCreator = await db
|
||||
.select()
|
||||
.from(templateCreators)
|
||||
.where(eq(templateCreators.id, id))
|
||||
.limit(1)
|
||||
|
||||
if (existingCreator.length === 0) {
|
||||
logger.warn(`[${requestId}] Creator not found for verification: ${id}`)
|
||||
return NextResponse.json({ error: 'Creator not found' }, { status: 404 })
|
||||
}
|
||||
|
||||
// Update creator verified status to true
|
||||
await db
|
||||
.update(templateCreators)
|
||||
.set({ verified: true, updatedAt: new Date() })
|
||||
.where(eq(templateCreators.id, id))
|
||||
|
||||
logger.info(`[${requestId}] Creator verified: ${id} by super user: ${session.user.id}`)
|
||||
|
||||
return NextResponse.json({
|
||||
message: 'Creator verified successfully',
|
||||
creatorId: id,
|
||||
})
|
||||
} catch (error) {
|
||||
logger.error(`[${requestId}] Error verifying creator ${id}`, error)
|
||||
return NextResponse.json({ error: 'Internal server error' }, { status: 500 })
|
||||
}
|
||||
}
|
||||
|
||||
// DELETE /api/creators/[id]/verify - Unverify a creator (super users only)
|
||||
export async function DELETE(
|
||||
request: NextRequest,
|
||||
{ params }: { params: Promise<{ id: string }> }
|
||||
) {
|
||||
const requestId = generateRequestId()
|
||||
const { id } = await params
|
||||
|
||||
try {
|
||||
const session = await getSession()
|
||||
if (!session?.user?.id) {
|
||||
logger.warn(`[${requestId}] Unauthorized unverification attempt for creator: ${id}`)
|
||||
return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
|
||||
}
|
||||
|
||||
// Check if user is a super user
|
||||
const currentUser = await db.select().from(user).where(eq(user.id, session.user.id)).limit(1)
|
||||
|
||||
if (!currentUser[0]?.isSuperUser) {
|
||||
logger.warn(`[${requestId}] Non-super user attempted to unverify creator: ${id}`)
|
||||
return NextResponse.json({ error: 'Only super users can unverify creators' }, { status: 403 })
|
||||
}
|
||||
|
||||
// Check if creator exists
|
||||
const existingCreator = await db
|
||||
.select()
|
||||
.from(templateCreators)
|
||||
.where(eq(templateCreators.id, id))
|
||||
.limit(1)
|
||||
|
||||
if (existingCreator.length === 0) {
|
||||
logger.warn(`[${requestId}] Creator not found for unverification: ${id}`)
|
||||
return NextResponse.json({ error: 'Creator not found' }, { status: 404 })
|
||||
}
|
||||
|
||||
// Update creator verified status to false
|
||||
await db
|
||||
.update(templateCreators)
|
||||
.set({ verified: false, updatedAt: new Date() })
|
||||
.where(eq(templateCreators.id, id))
|
||||
|
||||
logger.info(`[${requestId}] Creator unverified: ${id} by super user: ${session.user.id}`)
|
||||
|
||||
return NextResponse.json({
|
||||
message: 'Creator unverified successfully',
|
||||
creatorId: id,
|
||||
})
|
||||
} catch (error) {
|
||||
logger.error(`[${requestId}] Error unverifying creator ${id}`, error)
|
||||
return NextResponse.json({ error: 'Internal server error' }, { status: 500 })
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@ const CreateCreatorProfileSchema = z.object({
|
||||
details: CreatorProfileDetailsSchema.optional(),
|
||||
})
|
||||
|
||||
// GET /api/creator-profiles - Get creator profiles for current user
|
||||
// GET /api/creators - Get creator profiles for current user
|
||||
export async function GET(request: NextRequest) {
|
||||
const requestId = generateRequestId()
|
||||
const { searchParams } = new URL(request.url)
|
||||
@@ -81,7 +81,7 @@ export async function GET(request: NextRequest) {
|
||||
}
|
||||
}
|
||||
|
||||
// POST /api/creator-profiles - Create a new creator profile
|
||||
// POST /api/creators - Create a new creator profile
|
||||
export async function POST(request: NextRequest) {
|
||||
const requestId = generateRequestId()
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
import { db } from '@sim/db'
|
||||
import { member, subscription as subscriptionTable, user, userStats } from '@sim/db/schema'
|
||||
import { and, eq } from 'drizzle-orm'
|
||||
import {
|
||||
member,
|
||||
organization,
|
||||
subscription as subscriptionTable,
|
||||
user,
|
||||
userStats,
|
||||
} from '@sim/db/schema'
|
||||
import { and, eq, sql } from 'drizzle-orm'
|
||||
import { type NextRequest, NextResponse } from 'next/server'
|
||||
import { z } from 'zod'
|
||||
import { getSession } from '@/lib/auth'
|
||||
@@ -297,6 +303,44 @@ export async function DELETE(
|
||||
return NextResponse.json({ error: 'Cannot remove organization owner' }, { status: 400 })
|
||||
}
|
||||
|
||||
// Capture departed member's usage and reset their cost to prevent double billing
|
||||
try {
|
||||
const departingUserStats = await db
|
||||
.select({ currentPeriodCost: userStats.currentPeriodCost })
|
||||
.from(userStats)
|
||||
.where(eq(userStats.userId, memberId))
|
||||
.limit(1)
|
||||
|
||||
if (departingUserStats.length > 0 && departingUserStats[0].currentPeriodCost) {
|
||||
const usage = Number.parseFloat(departingUserStats[0].currentPeriodCost)
|
||||
if (usage > 0) {
|
||||
await db
|
||||
.update(organization)
|
||||
.set({
|
||||
departedMemberUsage: sql`${organization.departedMemberUsage} + ${usage}`,
|
||||
})
|
||||
.where(eq(organization.id, organizationId))
|
||||
|
||||
await db
|
||||
.update(userStats)
|
||||
.set({ currentPeriodCost: '0' })
|
||||
.where(eq(userStats.userId, memberId))
|
||||
|
||||
logger.info('Captured departed member usage and reset user cost', {
|
||||
organizationId,
|
||||
memberId,
|
||||
usage,
|
||||
})
|
||||
}
|
||||
}
|
||||
} catch (usageCaptureError) {
|
||||
logger.error('Failed to capture departed member usage', {
|
||||
organizationId,
|
||||
memberId,
|
||||
error: usageCaptureError,
|
||||
})
|
||||
}
|
||||
|
||||
// Remove member
|
||||
const removedMember = await db
|
||||
.delete(member)
|
||||
|
||||
97
apps/sim/app/api/status/route.ts
Normal file
97
apps/sim/app/api/status/route.ts
Normal file
@@ -0,0 +1,97 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
import type { IncidentIOWidgetResponse, StatusResponse, StatusType } from '@/app/api/status/types'
|
||||
|
||||
const logger = createLogger('StatusAPI')
|
||||
|
||||
let cachedResponse: { data: StatusResponse; timestamp: number } | null = null
|
||||
const CACHE_TTL = 2 * 60 * 1000
|
||||
|
||||
function determineStatus(data: IncidentIOWidgetResponse): {
|
||||
status: StatusType
|
||||
message: string
|
||||
} {
|
||||
if (data.ongoing_incidents && data.ongoing_incidents.length > 0) {
|
||||
const worstImpact = data.ongoing_incidents[0].current_worst_impact
|
||||
|
||||
if (worstImpact === 'full_outage') {
|
||||
return { status: 'outage', message: 'Service Disruption' }
|
||||
}
|
||||
if (worstImpact === 'partial_outage') {
|
||||
return { status: 'degraded', message: 'Experiencing Issues' }
|
||||
}
|
||||
return { status: 'degraded', message: 'Experiencing Issues' }
|
||||
}
|
||||
|
||||
if (data.in_progress_maintenances && data.in_progress_maintenances.length > 0) {
|
||||
return { status: 'maintenance', message: 'Under Maintenance' }
|
||||
}
|
||||
|
||||
return { status: 'operational', message: 'All Systems Operational' }
|
||||
}
|
||||
|
||||
export async function GET() {
|
||||
try {
|
||||
const now = Date.now()
|
||||
|
||||
if (cachedResponse && now - cachedResponse.timestamp < CACHE_TTL) {
|
||||
return NextResponse.json(cachedResponse.data, {
|
||||
headers: {
|
||||
'Cache-Control': 'public, max-age=60, s-maxage=60',
|
||||
'X-Cache': 'HIT',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
const response = await fetch('https://status.sim.ai/api/v1/summary', {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
signal: AbortSignal.timeout(5000),
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`incident.io API returned ${response.status}`)
|
||||
}
|
||||
|
||||
const data: IncidentIOWidgetResponse = await response.json()
|
||||
|
||||
const { status, message } = determineStatus(data)
|
||||
|
||||
const statusResponse: StatusResponse = {
|
||||
status,
|
||||
message,
|
||||
url: data.page_url || 'https://status.sim.ai',
|
||||
lastUpdated: new Date().toISOString(),
|
||||
}
|
||||
|
||||
cachedResponse = {
|
||||
data: statusResponse,
|
||||
timestamp: now,
|
||||
}
|
||||
|
||||
return NextResponse.json(statusResponse, {
|
||||
headers: {
|
||||
'Cache-Control': 'public, max-age=60, s-maxage=60',
|
||||
'X-Cache': 'MISS',
|
||||
},
|
||||
})
|
||||
} catch (error) {
|
||||
logger.error('Error fetching status from incident.io:', error)
|
||||
|
||||
const errorResponse: StatusResponse = {
|
||||
status: 'error',
|
||||
message: 'Status Unknown',
|
||||
url: 'https://status.sim.ai',
|
||||
lastUpdated: new Date().toISOString(),
|
||||
}
|
||||
|
||||
return NextResponse.json(errorResponse, {
|
||||
status: 200,
|
||||
headers: {
|
||||
'Cache-Control': 'public, max-age=30, s-maxage=30',
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
48
apps/sim/app/api/status/types.ts
Normal file
48
apps/sim/app/api/status/types.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
export interface IncidentIOComponent {
|
||||
id: string
|
||||
name: string
|
||||
group_name?: string
|
||||
current_status: 'operational' | 'degraded_performance' | 'partial_outage' | 'full_outage'
|
||||
}
|
||||
|
||||
export interface IncidentIOIncident {
|
||||
id: string
|
||||
name: string
|
||||
status: 'investigating' | 'identified' | 'monitoring'
|
||||
url: string
|
||||
last_update_at: string
|
||||
last_update_message: string
|
||||
current_worst_impact: 'degraded_performance' | 'partial_outage' | 'full_outage'
|
||||
affected_components: IncidentIOComponent[]
|
||||
}
|
||||
|
||||
export interface IncidentIOMaintenance {
|
||||
id: string
|
||||
name: string
|
||||
status: 'maintenance_scheduled' | 'maintenance_in_progress'
|
||||
url: string
|
||||
last_update_at: string
|
||||
last_update_message: string
|
||||
affected_components: IncidentIOComponent[]
|
||||
started_at?: string
|
||||
scheduled_end_at?: string
|
||||
starts_at?: string
|
||||
ends_at?: string
|
||||
}
|
||||
|
||||
export interface IncidentIOWidgetResponse {
|
||||
page_title: string
|
||||
page_url: string
|
||||
ongoing_incidents: IncidentIOIncident[]
|
||||
in_progress_maintenances: IncidentIOMaintenance[]
|
||||
scheduled_maintenances: IncidentIOMaintenance[]
|
||||
}
|
||||
|
||||
export type StatusType = 'operational' | 'degraded' | 'outage' | 'maintenance' | 'loading' | 'error'
|
||||
|
||||
export interface StatusResponse {
|
||||
status: StatusType
|
||||
message: string
|
||||
url: string
|
||||
lastUpdated: string
|
||||
}
|
||||
130
apps/sim/app/api/tools/search/route.ts
Normal file
130
apps/sim/app/api/tools/search/route.ts
Normal file
@@ -0,0 +1,130 @@
|
||||
import { type NextRequest, NextResponse } from 'next/server'
|
||||
import { z } from 'zod'
|
||||
import { checkHybridAuth } from '@/lib/auth/hybrid'
|
||||
import { SEARCH_TOOL_COST } from '@/lib/billing/constants'
|
||||
import { env } from '@/lib/env'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
import { executeTool } from '@/tools'
|
||||
|
||||
const logger = createLogger('search')
|
||||
|
||||
const SearchRequestSchema = z.object({
|
||||
query: z.string().min(1),
|
||||
})
|
||||
|
||||
export const maxDuration = 60
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
const requestId = crypto.randomUUID()
|
||||
|
||||
try {
|
||||
const { searchParams: urlParams } = new URL(request.url)
|
||||
const workflowId = urlParams.get('workflowId') || undefined
|
||||
|
||||
const authResult = await checkHybridAuth(request, { requireWorkflowId: false })
|
||||
|
||||
if (!authResult.success || !authResult.userId) {
|
||||
const errorMessage = workflowId ? 'Workflow not found' : authResult.error || 'Unauthorized'
|
||||
const statusCode = workflowId ? 404 : 401
|
||||
return NextResponse.json({ success: false, error: errorMessage }, { status: statusCode })
|
||||
}
|
||||
|
||||
const userId = authResult.userId
|
||||
|
||||
logger.info(`[${requestId}] Authenticated search request via ${authResult.authType}`, {
|
||||
userId,
|
||||
})
|
||||
|
||||
const body = await request.json()
|
||||
const validated = SearchRequestSchema.parse(body)
|
||||
|
||||
if (!env.EXA_API_KEY) {
|
||||
logger.error(`[${requestId}] EXA_API_KEY not configured`)
|
||||
return NextResponse.json(
|
||||
{ success: false, error: 'Search service not configured' },
|
||||
{ status: 503 }
|
||||
)
|
||||
}
|
||||
|
||||
logger.info(`[${requestId}] Executing search`, {
|
||||
userId,
|
||||
query: validated.query,
|
||||
})
|
||||
|
||||
const result = await executeTool('exa_search', {
|
||||
query: validated.query,
|
||||
type: 'auto',
|
||||
useAutoprompt: true,
|
||||
text: true,
|
||||
apiKey: env.EXA_API_KEY,
|
||||
})
|
||||
|
||||
if (!result.success) {
|
||||
logger.error(`[${requestId}] Search failed`, {
|
||||
userId,
|
||||
error: result.error,
|
||||
})
|
||||
return NextResponse.json(
|
||||
{
|
||||
success: false,
|
||||
error: result.error || 'Search failed',
|
||||
},
|
||||
{ status: 500 }
|
||||
)
|
||||
}
|
||||
|
||||
const results = (result.output.results || []).map((r: any, index: number) => ({
|
||||
title: r.title || '',
|
||||
link: r.url || '',
|
||||
snippet: r.text || '',
|
||||
date: r.publishedDate || undefined,
|
||||
position: index + 1,
|
||||
}))
|
||||
|
||||
const cost = {
|
||||
input: 0,
|
||||
output: 0,
|
||||
total: SEARCH_TOOL_COST,
|
||||
tokens: {
|
||||
prompt: 0,
|
||||
completion: 0,
|
||||
total: 0,
|
||||
},
|
||||
model: 'search-exa',
|
||||
pricing: {
|
||||
input: 0,
|
||||
cachedInput: 0,
|
||||
output: 0,
|
||||
updatedAt: new Date().toISOString(),
|
||||
},
|
||||
}
|
||||
|
||||
logger.info(`[${requestId}] Search completed`, {
|
||||
userId,
|
||||
resultCount: results.length,
|
||||
cost: cost.total,
|
||||
})
|
||||
|
||||
return NextResponse.json({
|
||||
results,
|
||||
query: validated.query,
|
||||
totalResults: results.length,
|
||||
source: 'exa',
|
||||
cost,
|
||||
})
|
||||
} catch (error: any) {
|
||||
logger.error(`[${requestId}] Search failed`, {
|
||||
error: error.message,
|
||||
stack: error.stack,
|
||||
})
|
||||
|
||||
return NextResponse.json(
|
||||
{
|
||||
success: false,
|
||||
error: error.message || 'Search failed',
|
||||
},
|
||||
{ status: 500 }
|
||||
)
|
||||
}
|
||||
}
|
||||
227
apps/sim/app/api/tools/smtp/send/route.ts
Normal file
227
apps/sim/app/api/tools/smtp/send/route.ts
Normal file
@@ -0,0 +1,227 @@
|
||||
import { type NextRequest, NextResponse } from 'next/server'
|
||||
import nodemailer from 'nodemailer'
|
||||
import { z } from 'zod'
|
||||
import { checkHybridAuth } from '@/lib/auth/hybrid'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
import { processFilesToUserFiles } from '@/lib/uploads/utils/file-utils'
|
||||
import { downloadFileFromStorage } from '@/lib/uploads/utils/file-utils.server'
|
||||
import { generateRequestId } from '@/lib/utils'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
const logger = createLogger('SmtpSendAPI')
|
||||
|
||||
const SmtpSendSchema = z.object({
|
||||
smtpHost: z.string().min(1, 'SMTP host is required'),
|
||||
smtpPort: z.number().min(1).max(65535, 'Port must be between 1 and 65535'),
|
||||
smtpUsername: z.string().min(1, 'SMTP username is required'),
|
||||
smtpPassword: z.string().min(1, 'SMTP password is required'),
|
||||
smtpSecure: z.enum(['TLS', 'SSL', 'None']),
|
||||
|
||||
from: z.string().email('Invalid from email address').min(1, 'From address is required'),
|
||||
to: z.string().min(1, 'To email is required'),
|
||||
subject: z.string().min(1, 'Subject is required'),
|
||||
body: z.string().min(1, 'Email body is required'),
|
||||
contentType: z.enum(['text', 'html']).optional().nullable(),
|
||||
|
||||
fromName: z.string().optional().nullable(),
|
||||
cc: z.string().optional().nullable(),
|
||||
bcc: z.string().optional().nullable(),
|
||||
replyTo: z.string().optional().nullable(),
|
||||
attachments: z.array(z.any()).optional().nullable(),
|
||||
})
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
const requestId = generateRequestId()
|
||||
|
||||
try {
|
||||
const authResult = await checkHybridAuth(request, { requireWorkflowId: false })
|
||||
|
||||
if (!authResult.success) {
|
||||
logger.warn(`[${requestId}] Unauthorized SMTP send attempt: ${authResult.error}`)
|
||||
return NextResponse.json(
|
||||
{
|
||||
success: false,
|
||||
error: authResult.error || 'Authentication required',
|
||||
},
|
||||
{ status: 401 }
|
||||
)
|
||||
}
|
||||
|
||||
logger.info(`[${requestId}] Authenticated SMTP request via ${authResult.authType}`, {
|
||||
userId: authResult.userId,
|
||||
})
|
||||
|
||||
const body = await request.json()
|
||||
const validatedData = SmtpSendSchema.parse(body)
|
||||
|
||||
logger.info(`[${requestId}] Sending email via SMTP`, {
|
||||
host: validatedData.smtpHost,
|
||||
port: validatedData.smtpPort,
|
||||
to: validatedData.to,
|
||||
subject: validatedData.subject,
|
||||
secure: validatedData.smtpSecure,
|
||||
})
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: validatedData.smtpHost,
|
||||
port: validatedData.smtpPort,
|
||||
secure: validatedData.smtpSecure === 'SSL',
|
||||
auth: {
|
||||
user: validatedData.smtpUsername,
|
||||
pass: validatedData.smtpPassword,
|
||||
},
|
||||
tls:
|
||||
validatedData.smtpSecure === 'None'
|
||||
? {
|
||||
rejectUnauthorized: false,
|
||||
}
|
||||
: {
|
||||
rejectUnauthorized: true,
|
||||
},
|
||||
})
|
||||
|
||||
const contentType = validatedData.contentType || 'text'
|
||||
const fromAddress = validatedData.fromName
|
||||
? `"${validatedData.fromName}" <${validatedData.from}>`
|
||||
: validatedData.from
|
||||
|
||||
const mailOptions: nodemailer.SendMailOptions = {
|
||||
from: fromAddress,
|
||||
to: validatedData.to,
|
||||
subject: validatedData.subject,
|
||||
[contentType === 'html' ? 'html' : 'text']: validatedData.body,
|
||||
}
|
||||
|
||||
if (validatedData.cc) {
|
||||
mailOptions.cc = validatedData.cc
|
||||
}
|
||||
if (validatedData.bcc) {
|
||||
mailOptions.bcc = validatedData.bcc
|
||||
}
|
||||
if (validatedData.replyTo) {
|
||||
mailOptions.replyTo = validatedData.replyTo
|
||||
}
|
||||
|
||||
if (validatedData.attachments && validatedData.attachments.length > 0) {
|
||||
const rawAttachments = validatedData.attachments
|
||||
logger.info(`[${requestId}] Processing ${rawAttachments.length} attachment(s)`)
|
||||
|
||||
const attachments = processFilesToUserFiles(rawAttachments, requestId, logger)
|
||||
|
||||
if (attachments.length > 0) {
|
||||
const totalSize = attachments.reduce((sum, file) => sum + file.size, 0)
|
||||
const maxSize = 25 * 1024 * 1024
|
||||
|
||||
if (totalSize > maxSize) {
|
||||
const sizeMB = (totalSize / (1024 * 1024)).toFixed(2)
|
||||
return NextResponse.json(
|
||||
{
|
||||
success: false,
|
||||
error: `Total attachment size (${sizeMB}MB) exceeds SMTP limit of 25MB`,
|
||||
},
|
||||
{ status: 400 }
|
||||
)
|
||||
}
|
||||
|
||||
const attachmentBuffers = await Promise.all(
|
||||
attachments.map(async (file) => {
|
||||
try {
|
||||
logger.info(
|
||||
`[${requestId}] Downloading attachment: ${file.name} (${file.size} bytes)`
|
||||
)
|
||||
|
||||
const buffer = await downloadFileFromStorage(file, requestId, logger)
|
||||
|
||||
return {
|
||||
filename: file.name,
|
||||
content: buffer,
|
||||
contentType: file.type || 'application/octet-stream',
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error(`[${requestId}] Failed to download attachment ${file.name}:`, error)
|
||||
throw new Error(
|
||||
`Failed to download attachment "${file.name}": ${error instanceof Error ? error.message : 'Unknown error'}`
|
||||
)
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
logger.info(`[${requestId}] Processed ${attachmentBuffers.length} attachment(s)`)
|
||||
mailOptions.attachments = attachmentBuffers
|
||||
}
|
||||
}
|
||||
|
||||
const result = await transporter.sendMail(mailOptions)
|
||||
|
||||
logger.info(`[${requestId}] Email sent successfully via SMTP`, {
|
||||
messageId: result.messageId,
|
||||
to: validatedData.to,
|
||||
})
|
||||
|
||||
return NextResponse.json({
|
||||
success: true,
|
||||
messageId: result.messageId,
|
||||
to: validatedData.to,
|
||||
subject: validatedData.subject,
|
||||
})
|
||||
} catch (error: unknown) {
|
||||
if (error instanceof z.ZodError) {
|
||||
logger.warn(`[${requestId}] Invalid request data`, { errors: error.errors })
|
||||
return NextResponse.json(
|
||||
{
|
||||
success: false,
|
||||
error: 'Invalid request data',
|
||||
details: error.errors,
|
||||
},
|
||||
{ status: 400 }
|
||||
)
|
||||
}
|
||||
|
||||
// Type guard for error objects with code property
|
||||
const isNodeError = (err: unknown): err is NodeJS.ErrnoException => {
|
||||
return err instanceof Error && 'code' in err
|
||||
}
|
||||
|
||||
let errorMessage = 'Failed to send email via SMTP'
|
||||
|
||||
if (isNodeError(error)) {
|
||||
if (error.code === 'EAUTH') {
|
||||
errorMessage = 'SMTP authentication failed - check username and password'
|
||||
} else if (error.code === 'ECONNECTION' || error.code === 'ECONNREFUSED') {
|
||||
errorMessage = 'Could not connect to SMTP server - check host and port'
|
||||
} else if (error.code === 'ECONNRESET') {
|
||||
errorMessage = 'Connection was reset by SMTP server'
|
||||
} else if (error.code === 'ETIMEDOUT') {
|
||||
errorMessage = 'SMTP server connection timeout'
|
||||
}
|
||||
}
|
||||
|
||||
// Check for SMTP response codes
|
||||
const hasResponseCode = (err: unknown): err is { responseCode: number } => {
|
||||
return typeof err === 'object' && err !== null && 'responseCode' in err
|
||||
}
|
||||
|
||||
if (hasResponseCode(error)) {
|
||||
if (error.responseCode >= 500) {
|
||||
errorMessage = 'SMTP server error - please try again later'
|
||||
} else if (error.responseCode >= 400) {
|
||||
errorMessage = 'Email rejected by SMTP server - check recipient addresses'
|
||||
}
|
||||
}
|
||||
|
||||
logger.error(`[${requestId}] Error sending email via SMTP:`, {
|
||||
error: error instanceof Error ? error.message : String(error),
|
||||
code: isNodeError(error) ? error.code : undefined,
|
||||
responseCode: hasResponseCode(error) ? error.responseCode : undefined,
|
||||
})
|
||||
|
||||
return NextResponse.json(
|
||||
{
|
||||
success: false,
|
||||
error: errorMessage,
|
||||
},
|
||||
{ status: 500 }
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -69,12 +69,7 @@ export async function POST(request: NextRequest, { params }: { params: Promise<{
|
||||
|
||||
let preprocessError: NextResponse | null = null
|
||||
try {
|
||||
preprocessError = await checkWebhookPreprocessing(
|
||||
foundWorkflow,
|
||||
foundWebhook,
|
||||
requestId,
|
||||
true // testMode - skips usage limits
|
||||
)
|
||||
preprocessError = await checkWebhookPreprocessing(foundWorkflow, foundWebhook, requestId)
|
||||
if (preprocessError) {
|
||||
return preprocessError
|
||||
}
|
||||
|
||||
@@ -11,6 +11,45 @@ import {
|
||||
mockTriggerDevSdk,
|
||||
} from '@/app/api/__test-utils__/utils'
|
||||
|
||||
const {
|
||||
hasProcessedMessageMock,
|
||||
markMessageAsProcessedMock,
|
||||
closeRedisConnectionMock,
|
||||
acquireLockMock,
|
||||
generateRequestHashMock,
|
||||
validateSlackSignatureMock,
|
||||
handleWhatsAppVerificationMock,
|
||||
handleSlackChallengeMock,
|
||||
processWhatsAppDeduplicationMock,
|
||||
processGenericDeduplicationMock,
|
||||
fetchAndProcessAirtablePayloadsMock,
|
||||
processWebhookMock,
|
||||
executeMock,
|
||||
} = vi.hoisted(() => ({
|
||||
hasProcessedMessageMock: vi.fn().mockResolvedValue(false),
|
||||
markMessageAsProcessedMock: vi.fn().mockResolvedValue(true),
|
||||
closeRedisConnectionMock: vi.fn().mockResolvedValue(undefined),
|
||||
acquireLockMock: vi.fn().mockResolvedValue(true),
|
||||
generateRequestHashMock: vi.fn().mockResolvedValue('test-hash-123'),
|
||||
validateSlackSignatureMock: vi.fn().mockResolvedValue(true),
|
||||
handleWhatsAppVerificationMock: vi.fn().mockResolvedValue(null),
|
||||
handleSlackChallengeMock: vi.fn().mockReturnValue(null),
|
||||
processWhatsAppDeduplicationMock: vi.fn().mockResolvedValue(null),
|
||||
processGenericDeduplicationMock: vi.fn().mockResolvedValue(null),
|
||||
fetchAndProcessAirtablePayloadsMock: vi.fn().mockResolvedValue(undefined),
|
||||
processWebhookMock: vi.fn().mockResolvedValue(new Response('Webhook processed', { status: 200 })),
|
||||
executeMock: vi.fn().mockResolvedValue({
|
||||
success: true,
|
||||
output: { response: 'Webhook execution success' },
|
||||
logs: [],
|
||||
metadata: {
|
||||
duration: 100,
|
||||
startTime: new Date().toISOString(),
|
||||
endTime: new Date().toISOString(),
|
||||
},
|
||||
}),
|
||||
}))
|
||||
|
||||
vi.mock('@trigger.dev/sdk', () => ({
|
||||
tasks: {
|
||||
trigger: vi.fn().mockResolvedValue({ id: 'mock-task-id' }),
|
||||
@@ -32,31 +71,6 @@ vi.mock('@/background/logs-webhook-delivery', () => ({
|
||||
logsWebhookDelivery: {},
|
||||
}))
|
||||
|
||||
const hasProcessedMessageMock = vi.fn().mockResolvedValue(false)
|
||||
const markMessageAsProcessedMock = vi.fn().mockResolvedValue(true)
|
||||
const closeRedisConnectionMock = vi.fn().mockResolvedValue(undefined)
|
||||
const acquireLockMock = vi.fn().mockResolvedValue(true)
|
||||
const generateRequestHashMock = vi.fn().mockResolvedValue('test-hash-123')
|
||||
const validateSlackSignatureMock = vi.fn().mockResolvedValue(true)
|
||||
const handleWhatsAppVerificationMock = vi.fn().mockResolvedValue(null)
|
||||
const handleSlackChallengeMock = vi.fn().mockReturnValue(null)
|
||||
const processWhatsAppDeduplicationMock = vi.fn().mockResolvedValue(null)
|
||||
const processGenericDeduplicationMock = vi.fn().mockResolvedValue(null)
|
||||
const fetchAndProcessAirtablePayloadsMock = vi.fn().mockResolvedValue(undefined)
|
||||
const processWebhookMock = vi
|
||||
.fn()
|
||||
.mockResolvedValue(new Response('Webhook processed', { status: 200 }))
|
||||
const executeMock = vi.fn().mockResolvedValue({
|
||||
success: true,
|
||||
output: { response: 'Webhook execution success' },
|
||||
logs: [],
|
||||
metadata: {
|
||||
duration: 100,
|
||||
startTime: new Date().toISOString(),
|
||||
endTime: new Date().toISOString(),
|
||||
},
|
||||
})
|
||||
|
||||
vi.mock('@/lib/redis', () => ({
|
||||
hasProcessedMessage: hasProcessedMessageMock,
|
||||
markMessageAsProcessed: markMessageAsProcessedMock,
|
||||
@@ -76,9 +90,6 @@ vi.mock('@/lib/webhooks/utils', () => ({
|
||||
|
||||
vi.mock('@/app/api/webhooks/utils', () => ({
|
||||
generateRequestHash: generateRequestHashMock,
|
||||
}))
|
||||
|
||||
vi.mock('@/app/api/webhooks/utils', () => ({
|
||||
validateSlackSignature: validateSlackSignatureMock,
|
||||
}))
|
||||
|
||||
@@ -117,7 +128,47 @@ vi.mock('@/lib/logs/execution/logging-session', () => ({
|
||||
})),
|
||||
}))
|
||||
|
||||
process.env.DATABASE_URL = 'postgresql://test:test@localhost:5432/test'
|
||||
vi.mock('@/lib/workspaces/utils', async () => {
|
||||
const actual = await vi.importActual('@/lib/workspaces/utils')
|
||||
return {
|
||||
...(actual as Record<string, unknown>),
|
||||
getWorkspaceBilledAccountUserId: vi
|
||||
.fn()
|
||||
.mockImplementation(async (workspaceId: string | null | undefined) =>
|
||||
workspaceId ? 'test-user-id' : null
|
||||
),
|
||||
}
|
||||
})
|
||||
|
||||
vi.mock('@/services/queue', () => ({
|
||||
RateLimiter: vi.fn().mockImplementation(() => ({
|
||||
checkRateLimit: vi.fn().mockResolvedValue({
|
||||
allowed: true,
|
||||
remaining: 10,
|
||||
resetAt: new Date(),
|
||||
}),
|
||||
})),
|
||||
RateLimitError: class RateLimitError extends Error {
|
||||
constructor(
|
||||
message: string,
|
||||
public statusCode = 429
|
||||
) {
|
||||
super(message)
|
||||
this.name = 'RateLimitError'
|
||||
}
|
||||
},
|
||||
}))
|
||||
|
||||
vi.mock('@/lib/workflows/db-helpers', () => ({
|
||||
loadWorkflowFromNormalizedTables: vi.fn().mockResolvedValue({
|
||||
blocks: {},
|
||||
edges: [],
|
||||
loops: {},
|
||||
parallels: {},
|
||||
isFromNormalizedTables: true,
|
||||
}),
|
||||
blockExistsInDeployment: vi.fn().mockResolvedValue(true),
|
||||
}))
|
||||
|
||||
vi.mock('drizzle-orm/postgres-js', () => ({
|
||||
drizzle: vi.fn().mockReturnValue({}),
|
||||
@@ -125,9 +176,12 @@ vi.mock('drizzle-orm/postgres-js', () => ({
|
||||
|
||||
vi.mock('postgres', () => vi.fn().mockReturnValue({}))
|
||||
|
||||
process.env.DATABASE_URL = 'postgresql://test:test@localhost:5432/test'
|
||||
|
||||
import { POST } from '@/app/api/webhooks/trigger/[path]/route'
|
||||
|
||||
describe('Webhook Trigger API Route', () => {
|
||||
beforeEach(() => {
|
||||
vi.resetModules()
|
||||
vi.clearAllMocks()
|
||||
|
||||
globalMockData.webhooks.length = 0
|
||||
@@ -143,48 +197,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
workspaceId: 'test-workspace-id',
|
||||
})
|
||||
|
||||
vi.doMock('@/lib/workspaces/utils', async () => {
|
||||
const actual = await vi.importActual('@/lib/workspaces/utils')
|
||||
return {
|
||||
...(actual as Record<string, unknown>),
|
||||
getWorkspaceBilledAccountUserId: vi
|
||||
.fn()
|
||||
.mockImplementation(async (workspaceId: string | null | undefined) =>
|
||||
workspaceId ? 'test-user-id' : null
|
||||
),
|
||||
}
|
||||
})
|
||||
|
||||
vi.doMock('@/services/queue', () => ({
|
||||
RateLimiter: vi.fn().mockImplementation(() => ({
|
||||
checkRateLimit: vi.fn().mockResolvedValue({
|
||||
allowed: true,
|
||||
remaining: 10,
|
||||
resetAt: new Date(),
|
||||
}),
|
||||
})),
|
||||
RateLimitError: class RateLimitError extends Error {
|
||||
constructor(
|
||||
message: string,
|
||||
public statusCode = 429
|
||||
) {
|
||||
super(message)
|
||||
this.name = 'RateLimitError'
|
||||
}
|
||||
},
|
||||
}))
|
||||
|
||||
vi.doMock('@/lib/workflows/db-helpers', () => ({
|
||||
loadWorkflowFromNormalizedTables: vi.fn().mockResolvedValue({
|
||||
blocks: {},
|
||||
edges: [],
|
||||
loops: {},
|
||||
parallels: {},
|
||||
isFromNormalizedTables: true,
|
||||
}),
|
||||
blockExistsInDeployment: vi.fn().mockResolvedValue(true),
|
||||
}))
|
||||
|
||||
hasProcessedMessageMock.mockResolvedValue(false)
|
||||
markMessageAsProcessedMock.mockResolvedValue(true)
|
||||
acquireLockMock.mockResolvedValue(true)
|
||||
@@ -208,8 +220,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
|
||||
const params = Promise.resolve({ path: 'non-existent-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(404)
|
||||
@@ -239,7 +249,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'test', id: 'test-123' })
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(200)
|
||||
@@ -273,7 +282,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'bearer.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(200)
|
||||
@@ -305,7 +313,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'custom.header.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(200)
|
||||
@@ -347,7 +354,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'case.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(200)
|
||||
@@ -389,7 +395,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'custom.case.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(200)
|
||||
@@ -413,7 +418,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'wrong.token.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(401)
|
||||
@@ -442,7 +446,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'wrong.custom.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(401)
|
||||
@@ -463,7 +466,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'no.auth.test' })
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(401)
|
||||
@@ -492,7 +494,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'exclusivity.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(401)
|
||||
@@ -521,7 +522,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'wrong.header.name.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(401)
|
||||
@@ -547,7 +547,6 @@ describe('Webhook Trigger API Route', () => {
|
||||
const req = createMockRequest('POST', { event: 'no.token.config.test' }, headers)
|
||||
const params = Promise.resolve({ path: 'test-path' })
|
||||
|
||||
const { POST } = await import('@/app/api/webhooks/trigger/[path]/route')
|
||||
const response = await POST(req, { params })
|
||||
|
||||
expect(response.status).toBe(401)
|
||||
|
||||
@@ -125,12 +125,7 @@ export async function POST(
|
||||
|
||||
let preprocessError: NextResponse | null = null
|
||||
try {
|
||||
preprocessError = await checkWebhookPreprocessing(
|
||||
foundWorkflow,
|
||||
foundWebhook,
|
||||
requestId,
|
||||
false // testMode
|
||||
)
|
||||
preprocessError = await checkWebhookPreprocessing(foundWorkflow, foundWebhook, requestId)
|
||||
if (preprocessError) {
|
||||
return preprocessError
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
} from '@/components/ui/dropdown-menu'
|
||||
import { VerifiedBadge } from '@/components/ui/verified-badge'
|
||||
import { useSession } from '@/lib/auth-client'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
import { getBaseUrl } from '@/lib/urls/utils'
|
||||
@@ -64,6 +65,7 @@ export default function TemplateDetails({ isWorkspaceContext = false }: Template
|
||||
const [isEditing, setIsEditing] = useState(false)
|
||||
const [isApproving, setIsApproving] = useState(false)
|
||||
const [isRejecting, setIsRejecting] = useState(false)
|
||||
const [isVerifying, setIsVerifying] = useState(false)
|
||||
const [hasWorkspaceAccess, setHasWorkspaceAccess] = useState<boolean | null>(null)
|
||||
const [workspaces, setWorkspaces] = useState<
|
||||
Array<{ id: string; name: string; permissions: string }>
|
||||
@@ -462,6 +464,32 @@ export default function TemplateDetails({ isWorkspaceContext = false }: Template
|
||||
}
|
||||
}
|
||||
|
||||
const handleToggleVerification = async () => {
|
||||
if (isVerifying || !template?.creator?.id) return
|
||||
|
||||
setIsVerifying(true)
|
||||
try {
|
||||
const endpoint = `/api/creators/${template.creator.id}/verify`
|
||||
const method = template.creator.verified ? 'DELETE' : 'POST'
|
||||
|
||||
const response = await fetch(endpoint, { method })
|
||||
|
||||
if (response.ok) {
|
||||
// Refresh page to show updated verification status
|
||||
window.location.reload()
|
||||
} else {
|
||||
const error = await response.json()
|
||||
logger.error('Error toggling verification:', error)
|
||||
alert(`Failed to ${template.creator.verified ? 'unverify' : 'verify'} creator`)
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error('Error toggling verification:', error)
|
||||
alert('An error occurred while toggling verification')
|
||||
} finally {
|
||||
setIsVerifying(false)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Shares the template to X (Twitter)
|
||||
*/
|
||||
@@ -718,9 +746,12 @@ export default function TemplateDetails({ isWorkspaceContext = false }: Template
|
||||
</div>
|
||||
)}
|
||||
{/* Creator name */}
|
||||
<span className='font-medium text-[#8B8B8B] text-[14px]'>
|
||||
{template.creator?.name || 'Unknown'}
|
||||
</span>
|
||||
<div className='flex items-center gap-[4px]'>
|
||||
<span className='font-medium text-[#8B8B8B] text-[14px]'>
|
||||
{template.creator?.name || 'Unknown'}
|
||||
</span>
|
||||
{template.creator?.verified && <VerifiedBadge size='md' />}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Credentials needed */}
|
||||
@@ -849,9 +880,25 @@ export default function TemplateDetails({ isWorkspaceContext = false }: Template
|
||||
template.creator.details?.websiteUrl ||
|
||||
template.creator.details?.contactEmail) && (
|
||||
<div className='mt-8'>
|
||||
<h3 className='mb-4 font-sans font-semibold text-base text-foreground'>
|
||||
About the Creator
|
||||
</h3>
|
||||
<div className='mb-4 flex items-center justify-between'>
|
||||
<h3 className='font-sans font-semibold text-base text-foreground'>
|
||||
About the Creator
|
||||
</h3>
|
||||
{isSuperUser && template.creator && (
|
||||
<Button
|
||||
variant={template.creator.verified ? 'active' : 'default'}
|
||||
onClick={handleToggleVerification}
|
||||
disabled={isVerifying}
|
||||
className='h-[28px] rounded-[6px] text-[12px]'
|
||||
>
|
||||
{isVerifying
|
||||
? 'Updating...'
|
||||
: template.creator.verified
|
||||
? 'Unverify Creator'
|
||||
: 'Verify Creator'}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className='flex items-start gap-4'>
|
||||
{/* Creator profile image */}
|
||||
{template.creator.profileImageUrl ? (
|
||||
@@ -871,9 +918,12 @@ export default function TemplateDetails({ isWorkspaceContext = false }: Template
|
||||
{/* Creator details */}
|
||||
<div className='flex-1'>
|
||||
<div className='mb-[5px] flex items-center gap-3'>
|
||||
<h4 className='font-sans font-semibold text-base text-foreground'>
|
||||
{template.creator.name}
|
||||
</h4>
|
||||
<div className='flex items-center gap-[6px]'>
|
||||
<h4 className='font-sans font-semibold text-base text-foreground'>
|
||||
{template.creator.name}
|
||||
</h4>
|
||||
{template.creator.verified && <VerifiedBadge size='md' />}
|
||||
</div>
|
||||
|
||||
{/* Social links */}
|
||||
<div className='flex items-center gap-[12px]'>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { Star, User } from 'lucide-react'
|
||||
import { useParams, useRouter } from 'next/navigation'
|
||||
import { VerifiedBadge } from '@/components/ui/verified-badge'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { WorkflowPreview } from '@/app/workspace/[workspaceId]/w/components/workflow-preview/workflow-preview'
|
||||
@@ -21,6 +22,7 @@ interface TemplateCardProps {
|
||||
className?: string
|
||||
state?: WorkflowState
|
||||
isStarred?: boolean
|
||||
isVerified?: boolean
|
||||
}
|
||||
|
||||
export function TemplateCardSkeleton({ className }: { className?: string }) {
|
||||
@@ -125,6 +127,7 @@ function TemplateCardInner({
|
||||
className,
|
||||
state,
|
||||
isStarred = false,
|
||||
isVerified = false,
|
||||
}: TemplateCardProps) {
|
||||
const router = useRouter()
|
||||
const params = useParams()
|
||||
@@ -276,7 +279,10 @@ function TemplateCardInner({
|
||||
<User className='h-[18px] w-[18px] text-[#888888]' />
|
||||
</div>
|
||||
)}
|
||||
<span className='truncate font-medium text-[#888888] text-[12px]'>{author}</span>
|
||||
<div className='flex items-center gap-[4px]'>
|
||||
<span className='truncate font-medium text-[#888888] text-[12px]'>{author}</span>
|
||||
{isVerified && <VerifiedBadge size='sm' />}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className='flex flex-shrink-0 items-center gap-[6px] font-medium text-[#888888] text-[12px]'>
|
||||
|
||||
@@ -30,6 +30,7 @@ export interface Template {
|
||||
details?: CreatorProfileDetails | null
|
||||
referenceType: 'user' | 'organization'
|
||||
referenceId: string
|
||||
verified?: boolean
|
||||
} | null
|
||||
views: number
|
||||
stars: number
|
||||
@@ -203,6 +204,7 @@ export default function Templates({
|
||||
stars={template.stars}
|
||||
state={template.state}
|
||||
isStarred={template.isStarred}
|
||||
isVerified={template.creator?.verified || false}
|
||||
/>
|
||||
))
|
||||
)}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { Star, User } from 'lucide-react'
|
||||
import { useParams, useRouter } from 'next/navigation'
|
||||
import { VerifiedBadge } from '@/components/ui/verified-badge'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { WorkflowPreview } from '@/app/workspace/[workspaceId]/w/components/workflow-preview/workflow-preview'
|
||||
@@ -21,6 +22,7 @@ interface TemplateCardProps {
|
||||
className?: string
|
||||
state?: WorkflowState
|
||||
isStarred?: boolean
|
||||
isVerified?: boolean
|
||||
}
|
||||
|
||||
export function TemplateCardSkeleton({ className }: { className?: string }) {
|
||||
@@ -126,6 +128,7 @@ function TemplateCardInner({
|
||||
className,
|
||||
state,
|
||||
isStarred = false,
|
||||
isVerified = false,
|
||||
}: TemplateCardProps) {
|
||||
const router = useRouter()
|
||||
const params = useParams()
|
||||
@@ -277,7 +280,10 @@ function TemplateCardInner({
|
||||
<User className='h-[18px] w-[18px] text-[#888888]' />
|
||||
</div>
|
||||
)}
|
||||
<span className='truncate font-medium text-[#888888] text-[12px]'>{author}</span>
|
||||
<div className='flex items-center gap-[4px]'>
|
||||
<span className='truncate font-medium text-[#888888] text-[12px]'>{author}</span>
|
||||
{isVerified && <VerifiedBadge size='sm' />}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className='flex flex-shrink-0 items-center gap-[6px] font-medium text-[#888888] text-[12px]'>
|
||||
|
||||
@@ -34,6 +34,7 @@ export interface Template {
|
||||
details?: CreatorProfileDetails | null
|
||||
referenceType: 'user' | 'organization'
|
||||
referenceId: string
|
||||
verified?: boolean
|
||||
} | null
|
||||
views: number
|
||||
stars: number
|
||||
@@ -223,6 +224,7 @@ export default function Templates({
|
||||
stars={template.stars}
|
||||
state={template.state}
|
||||
isStarred={template.isStarred}
|
||||
isVerified={template.creator?.verified || false}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
||||
@@ -87,7 +87,7 @@ export function TemplateDeploy({ workflowId, onDeploymentComplete }: TemplateDep
|
||||
|
||||
setLoadingCreators(true)
|
||||
try {
|
||||
const response = await fetch('/api/creator-profiles')
|
||||
const response = await fetch('/api/creators')
|
||||
if (response.ok) {
|
||||
const data = await response.json()
|
||||
const profiles = (data.profiles || []).map((profile: any) => ({
|
||||
|
||||
@@ -231,6 +231,7 @@ const SCOPE_DESCRIPTIONS: Record<string, string> = {
|
||||
'projects:full': 'Full access to manage your Pipedrive projects',
|
||||
'webhooks:read': 'Read your Pipedrive webhooks',
|
||||
'webhooks:full': 'Full access to manage your Pipedrive webhooks',
|
||||
w_member_social: 'Access your LinkedIn profile',
|
||||
}
|
||||
|
||||
function getScopeDescription(scope: string): string {
|
||||
|
||||
@@ -411,7 +411,7 @@ export function Panel() {
|
||||
</PopoverItem> */}
|
||||
<PopoverItem
|
||||
onClick={handleExportJson}
|
||||
disabled={isExporting || !currentWorkflow}
|
||||
disabled={!userPermissions.canEdit || isExporting || !currentWorkflow}
|
||||
>
|
||||
<Braces className='h-3 w-3' />
|
||||
<span>Export workflow</span>
|
||||
|
||||
@@ -164,7 +164,7 @@ export function useWand({
|
||||
// Keep track of the current prompt for history
|
||||
const currentPrompt = prompt
|
||||
|
||||
const response = await fetch('/api/wand-generate', {
|
||||
const response = await fetch('/api/wand', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
@@ -472,6 +472,33 @@ const WorkflowContent = React.memo(() => {
|
||||
}
|
||||
}, [debouncedAutoLayout, undo, redo])
|
||||
|
||||
/**
|
||||
* Removes all edges connected to a block, skipping individual edge recording for undo/redo.
|
||||
* Used when moving nodes between containers where edges would violate boundary constraints.
|
||||
*/
|
||||
const removeEdgesForNode = useCallback(
|
||||
(blockId: string, edgesToRemove: Edge[]): void => {
|
||||
if (edgesToRemove.length === 0) return
|
||||
|
||||
// Skip individual edge recording - parent update will record as batch
|
||||
window.dispatchEvent(new CustomEvent('skip-edge-recording', { detail: { skip: true } }))
|
||||
|
||||
try {
|
||||
edgesToRemove.forEach((edge) => {
|
||||
removeEdge(edge.id)
|
||||
})
|
||||
|
||||
logger.debug('Removed edges for node', {
|
||||
blockId,
|
||||
edgeCount: edgesToRemove.length,
|
||||
})
|
||||
} finally {
|
||||
window.dispatchEvent(new CustomEvent('skip-edge-recording', { detail: { skip: false } }))
|
||||
}
|
||||
},
|
||||
[removeEdge]
|
||||
)
|
||||
|
||||
// Listen for explicit remove-from-subflow actions from ActionBar
|
||||
useEffect(() => {
|
||||
const handleRemoveFromSubflow = (event: Event) => {
|
||||
@@ -490,18 +517,11 @@ const WorkflowContent = React.memo(() => {
|
||||
(e) => e.source === blockId || e.target === blockId
|
||||
)
|
||||
|
||||
// Set flag to skip individual edge recording for undo/redo
|
||||
window.dispatchEvent(new CustomEvent('skip-edge-recording', { detail: { skip: true } }))
|
||||
// Remove edges using shared helper
|
||||
removeEdgesForNode(blockId, edgesToRemove)
|
||||
|
||||
// Remove edges first
|
||||
edgesToRemove.forEach((edge) => {
|
||||
removeEdge(edge.id)
|
||||
})
|
||||
|
||||
// Then update parent relationship
|
||||
// Update parent relationship (null = remove from parent)
|
||||
updateNodeParent(blockId, null, edgesToRemove)
|
||||
|
||||
window.dispatchEvent(new CustomEvent('skip-edge-recording', { detail: { skip: false } }))
|
||||
} catch (err) {
|
||||
logger.error('Failed to remove from subflow', { err })
|
||||
}
|
||||
@@ -510,7 +530,7 @@ const WorkflowContent = React.memo(() => {
|
||||
window.addEventListener('remove-from-subflow', handleRemoveFromSubflow as EventListener)
|
||||
return () =>
|
||||
window.removeEventListener('remove-from-subflow', handleRemoveFromSubflow as EventListener)
|
||||
}, [getNodes, updateNodeParent, removeEdge, edgesForDisplay])
|
||||
}, [blocks, edgesForDisplay, removeEdgesForNode, updateNodeParent])
|
||||
|
||||
// Handle drops
|
||||
const findClosestOutput = useCallback(
|
||||
@@ -1881,6 +1901,21 @@ const WorkflowContent = React.memo(() => {
|
||||
|
||||
// Update the node's parent relationship
|
||||
if (potentialParentId) {
|
||||
// Remove existing edges before moving into container
|
||||
const edgesToRemove = edgesForDisplay.filter(
|
||||
(e) => e.source === node.id || e.target === node.id
|
||||
)
|
||||
|
||||
if (edgesToRemove.length > 0) {
|
||||
removeEdgesForNode(node.id, edgesToRemove)
|
||||
|
||||
logger.info('Removed edges when moving node into subflow', {
|
||||
blockId: node.id,
|
||||
targetParentId: potentialParentId,
|
||||
edgeCount: edgesToRemove.length,
|
||||
})
|
||||
}
|
||||
|
||||
// Compute relative position BEFORE updating parent to avoid stale state
|
||||
// Account for header (50px), left padding (16px), and top padding (16px)
|
||||
const containerAbsPosBefore = getNodeAbsolutePosition(potentialParentId)
|
||||
@@ -1954,8 +1989,9 @@ const WorkflowContent = React.memo(() => {
|
||||
// Skip recording these edges separately since they're part of the parent update
|
||||
window.dispatchEvent(new CustomEvent('skip-edge-recording', { detail: { skip: true } }))
|
||||
|
||||
// Moving to a new parent container - pass the edges that will be added
|
||||
updateNodeParent(node.id, potentialParentId, edgesToAdd)
|
||||
// Moving to a new parent container - pass both removed and added edges for undo/redo
|
||||
const affectedEdges = [...edgesToRemove, ...edgesToAdd]
|
||||
updateNodeParent(node.id, potentialParentId, affectedEdges)
|
||||
|
||||
// Now add the edges after parent update
|
||||
edgesToAdd.forEach((edge) => addEdge(edge))
|
||||
@@ -1976,6 +2012,8 @@ const WorkflowContent = React.memo(() => {
|
||||
addEdge,
|
||||
determineSourceHandle,
|
||||
blocks,
|
||||
edgesForDisplay,
|
||||
removeEdgesForNode,
|
||||
getNodeAbsolutePosition,
|
||||
getDragStartPosition,
|
||||
setDragStartPosition,
|
||||
|
||||
@@ -123,8 +123,8 @@ export function TeamManagement() {
|
||||
const workspaceInvitations =
|
||||
selectedWorkspaces.length > 0
|
||||
? selectedWorkspaces.map((w) => ({
|
||||
id: w.workspaceId,
|
||||
name: adminWorkspaces.find((uw) => uw.id === w.workspaceId)?.name || '',
|
||||
workspaceId: w.workspaceId,
|
||||
permission: w.permission as 'admin' | 'write' | 'read',
|
||||
}))
|
||||
: undefined
|
||||
|
||||
@@ -145,14 +145,7 @@ export function TeamManagement() {
|
||||
} catch (error) {
|
||||
logger.error('Failed to invite member', error)
|
||||
}
|
||||
}, [
|
||||
session?.user?.id,
|
||||
activeOrganization?.id,
|
||||
inviteEmail,
|
||||
selectedWorkspaces,
|
||||
adminWorkspaces,
|
||||
inviteMutation,
|
||||
])
|
||||
}, [session?.user?.id, activeOrganization?.id, inviteEmail, selectedWorkspaces, inviteMutation])
|
||||
|
||||
const handleWorkspaceToggle = useCallback((workspaceId: string, permission: string) => {
|
||||
setSelectedWorkspaces((prev) => {
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useCallback, useState } from 'react'
|
||||
import clsx from 'clsx'
|
||||
import { ChevronRight, Folder, FolderOpen } from 'lucide-react'
|
||||
import { useParams, useRouter } from 'next/navigation'
|
||||
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
|
||||
import { ContextMenu } from '@/app/workspace/[workspaceId]/w/components/sidebar/components-new/workflow-list/components/context-menu/context-menu'
|
||||
import { DeleteModal } from '@/app/workspace/[workspaceId]/w/components/sidebar/components-new/workflow-list/components/delete-modal/delete-modal'
|
||||
import {
|
||||
@@ -40,6 +41,7 @@ export function FolderItem({ folder, level, hoverHandlers }: FolderItemProps) {
|
||||
const workspaceId = params.workspaceId as string
|
||||
const updateFolderMutation = useUpdateFolder()
|
||||
const createWorkflowMutation = useCreateWorkflow()
|
||||
const userPermissions = useUserPermissionsContext()
|
||||
|
||||
// Delete modal state
|
||||
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false)
|
||||
@@ -260,6 +262,9 @@ export function FolderItem({ folder, level, hoverHandlers }: FolderItemProps) {
|
||||
onDuplicate={handleDuplicateFolder}
|
||||
onDelete={() => setIsDeleteModalOpen(true)}
|
||||
showCreate={true}
|
||||
disableRename={!userPermissions.canEdit}
|
||||
disableDuplicate={!userPermissions.canEdit}
|
||||
disableDelete={!userPermissions.canEdit}
|
||||
/>
|
||||
|
||||
{/* Delete Modal */}
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useCallback, useRef, useState } from 'react'
|
||||
import clsx from 'clsx'
|
||||
import Link from 'next/link'
|
||||
import { useParams } from 'next/navigation'
|
||||
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
|
||||
import { ContextMenu } from '@/app/workspace/[workspaceId]/w/components/sidebar/components-new/workflow-list/components/context-menu/context-menu'
|
||||
import { DeleteModal } from '@/app/workspace/[workspaceId]/w/components/sidebar/components-new/workflow-list/components/delete-modal/delete-modal'
|
||||
import { Avatars } from '@/app/workspace/[workspaceId]/w/components/sidebar/components-new/workflow-list/components/workflow-item/avatars/avatars'
|
||||
@@ -40,6 +41,7 @@ export function WorkflowItem({ workflow, active, level, onWorkflowClick }: Workf
|
||||
const workspaceId = params.workspaceId as string
|
||||
const { selectedWorkflows } = useFolderStore()
|
||||
const { updateWorkflow, workflows } = useWorkflowRegistry()
|
||||
const userPermissions = useUserPermissionsContext()
|
||||
const isSelected = selectedWorkflows.has(workflow.id)
|
||||
|
||||
// Delete modal state
|
||||
@@ -309,6 +311,10 @@ export function WorkflowItem({ workflow, active, level, onWorkflowClick }: Workf
|
||||
showRename={selectedWorkflows.size <= 1}
|
||||
showDuplicate={true}
|
||||
showExport={true}
|
||||
disableRename={!userPermissions.canEdit}
|
||||
disableDuplicate={!userPermissions.canEdit}
|
||||
disableExport={!userPermissions.canEdit}
|
||||
disableDelete={!userPermissions.canEdit}
|
||||
/>
|
||||
|
||||
{/* Delete Confirmation Modal */}
|
||||
|
||||
142
apps/sim/blocks/blocks/apify.ts
Normal file
142
apps/sim/blocks/blocks/apify.ts
Normal file
@@ -0,0 +1,142 @@
|
||||
import { ApifyIcon } from '@/components/icons'
|
||||
import type { BlockConfig } from '@/blocks/types'
|
||||
import type { RunActorResult } from '@/tools/apify/types'
|
||||
|
||||
export const ApifyBlock: BlockConfig<RunActorResult> = {
|
||||
type: 'apify',
|
||||
name: 'Apify',
|
||||
description: 'Run Apify actors and retrieve results',
|
||||
longDescription:
|
||||
'Integrate Apify into your workflow. Run any Apify actor with custom input and retrieve results. Supports both synchronous and asynchronous execution with automatic dataset fetching.',
|
||||
docsLink: 'https://docs.sim.ai/tools/apify',
|
||||
category: 'tools',
|
||||
bgColor: '#E0E0E0',
|
||||
icon: ApifyIcon,
|
||||
|
||||
subBlocks: [
|
||||
{
|
||||
id: 'operation',
|
||||
title: 'Operation',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Run Actor', id: 'apify_run_actor_sync' },
|
||||
{ label: 'Run Actor (Async)', id: 'apify_run_actor_async' },
|
||||
],
|
||||
value: () => 'apify_run_actor_sync',
|
||||
},
|
||||
{
|
||||
id: 'apiKey',
|
||||
title: 'Apify API Token',
|
||||
type: 'short-input',
|
||||
password: true,
|
||||
placeholder: 'Enter your Apify API token',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'actorId',
|
||||
title: 'Actor ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., janedoe/my-actor or actor ID',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'input',
|
||||
title: 'Actor Input',
|
||||
type: 'code',
|
||||
language: 'json',
|
||||
placeholder: '{\n "startUrl": "https://example.com",\n "maxPages": 10\n}',
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
id: 'timeout',
|
||||
title: 'Timeout',
|
||||
type: 'short-input',
|
||||
placeholder: 'Actor timeout in seconds',
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
id: 'build',
|
||||
title: 'Build',
|
||||
type: 'short-input',
|
||||
placeholder: 'Actor build (e.g., "latest", "beta", or build tag)',
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
id: 'waitForFinish',
|
||||
title: 'Wait For Finish',
|
||||
type: 'short-input',
|
||||
placeholder: 'Initial wait time in seconds (0-60)',
|
||||
required: false,
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'apify_run_actor_async',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'itemLimit',
|
||||
title: 'Item Limit',
|
||||
type: 'short-input',
|
||||
placeholder: 'Max dataset items to fetch (1-250000)',
|
||||
required: false,
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'apify_run_actor_async',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
tools: {
|
||||
access: ['apify_run_actor_sync', 'apify_run_actor_async'],
|
||||
config: {
|
||||
tool: (params) => params.operation,
|
||||
params: (params: Record<string, any>) => {
|
||||
const { operation, ...rest } = params
|
||||
const result: Record<string, any> = {
|
||||
apiKey: rest.apiKey,
|
||||
actorId: rest.actorId,
|
||||
}
|
||||
|
||||
if (rest.input) {
|
||||
result.input = rest.input
|
||||
}
|
||||
|
||||
if (rest.timeout) {
|
||||
result.timeout = Number(rest.timeout)
|
||||
}
|
||||
|
||||
if (rest.build) {
|
||||
result.build = rest.build
|
||||
}
|
||||
|
||||
if (rest.waitForFinish) {
|
||||
result.waitForFinish = Number(rest.waitForFinish)
|
||||
}
|
||||
|
||||
if (rest.itemLimit) {
|
||||
result.itemLimit = Number(rest.itemLimit)
|
||||
}
|
||||
|
||||
return result
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
inputs: {
|
||||
operation: { type: 'string', description: 'Operation to perform' },
|
||||
apiKey: { type: 'string', description: 'Apify API token' },
|
||||
actorId: { type: 'string', description: 'Actor ID or username/actor-name' },
|
||||
input: { type: 'string', description: 'Actor input as JSON string' },
|
||||
timeout: { type: 'number', description: 'Timeout in seconds' },
|
||||
build: { type: 'string', description: 'Actor build version' },
|
||||
waitForFinish: { type: 'number', description: 'Initial wait time in seconds' },
|
||||
itemLimit: { type: 'number', description: 'Max dataset items to fetch' },
|
||||
},
|
||||
|
||||
outputs: {
|
||||
success: { type: 'boolean', description: 'Whether the actor run succeeded' },
|
||||
runId: { type: 'string', description: 'Apify run ID' },
|
||||
status: { type: 'string', description: 'Run status (SUCCEEDED, FAILED, etc.)' },
|
||||
datasetId: { type: 'string', description: 'Dataset ID containing results' },
|
||||
items: { type: 'json', description: 'Dataset items (if completed)' },
|
||||
},
|
||||
}
|
||||
112
apps/sim/blocks/blocks/linkedin.ts
Normal file
112
apps/sim/blocks/blocks/linkedin.ts
Normal file
@@ -0,0 +1,112 @@
|
||||
import { LinkedInIcon } from '@/components/icons'
|
||||
import type { BlockConfig } from '@/blocks/types'
|
||||
import { AuthMode } from '@/blocks/types'
|
||||
import type { LinkedInResponse } from '@/tools/linkedin/types'
|
||||
|
||||
export const LinkedInBlock: BlockConfig<LinkedInResponse> = {
|
||||
type: 'linkedin',
|
||||
name: 'LinkedIn',
|
||||
description: 'Share posts and manage your LinkedIn presence',
|
||||
authMode: AuthMode.OAuth,
|
||||
longDescription:
|
||||
'Integrate LinkedIn into workflows. Share posts to your personal feed and access your LinkedIn profile information.',
|
||||
docsLink: 'https://docs.sim.ai/tools/linkedin',
|
||||
category: 'tools',
|
||||
bgColor: '#0072B1',
|
||||
icon: LinkedInIcon,
|
||||
subBlocks: [
|
||||
// Operation selection
|
||||
{
|
||||
id: 'operation',
|
||||
title: 'Operation',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Share Post', id: 'share_post' },
|
||||
{ label: 'Get Profile', id: 'get_profile' },
|
||||
],
|
||||
value: () => 'share_post',
|
||||
},
|
||||
|
||||
// LinkedIn OAuth Authentication
|
||||
{
|
||||
id: 'credential',
|
||||
title: 'LinkedIn Account',
|
||||
type: 'oauth-input',
|
||||
provider: 'linkedin',
|
||||
serviceId: 'linkedin',
|
||||
requiredScopes: ['profile', 'openid', 'email', 'w_member_social'],
|
||||
placeholder: 'Select LinkedIn account',
|
||||
required: true,
|
||||
},
|
||||
|
||||
// Share Post specific fields
|
||||
{
|
||||
id: 'text',
|
||||
title: 'Post Text',
|
||||
type: 'long-input',
|
||||
placeholder: 'What do you want to share on LinkedIn?',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'share_post',
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'visibility',
|
||||
title: 'Visibility',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Public', id: 'PUBLIC' },
|
||||
{ label: 'Connections Only', id: 'CONNECTIONS' },
|
||||
],
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'share_post',
|
||||
},
|
||||
value: () => 'PUBLIC',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
access: ['linkedin_share_post', 'linkedin_get_profile'],
|
||||
config: {
|
||||
tool: (inputs) => {
|
||||
const operation = inputs.operation || 'share_post'
|
||||
|
||||
if (operation === 'get_profile') {
|
||||
return 'linkedin_get_profile'
|
||||
}
|
||||
|
||||
return 'linkedin_share_post'
|
||||
},
|
||||
params: (inputs) => {
|
||||
const operation = inputs.operation || 'share_post'
|
||||
const { credential, ...rest } = inputs
|
||||
|
||||
if (operation === 'get_profile') {
|
||||
return {
|
||||
accessToken: credential,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
text: rest.text,
|
||||
visibility: rest.visibility || 'PUBLIC',
|
||||
accessToken: credential,
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
inputs: {
|
||||
operation: { type: 'string', description: 'Operation to perform' },
|
||||
credential: { type: 'string', description: 'LinkedIn access token' },
|
||||
text: { type: 'string', description: 'Post text content' },
|
||||
visibility: { type: 'string', description: 'Post visibility (PUBLIC or CONNECTIONS)' },
|
||||
},
|
||||
outputs: {
|
||||
success: { type: 'boolean', description: 'Operation success status' },
|
||||
postId: { type: 'string', description: 'Created post ID' },
|
||||
profile: { type: 'json', description: 'LinkedIn profile information' },
|
||||
error: { type: 'string', description: 'Error message if operation failed' },
|
||||
},
|
||||
}
|
||||
293
apps/sim/blocks/blocks/mailgun.ts
Normal file
293
apps/sim/blocks/blocks/mailgun.ts
Normal file
@@ -0,0 +1,293 @@
|
||||
import { MailgunIcon } from '@/components/icons'
|
||||
import type { BlockConfig } from '@/blocks/types'
|
||||
import type { SendMessageResult } from '@/tools/mailgun/types'
|
||||
|
||||
export const MailgunBlock: BlockConfig<SendMessageResult> = {
|
||||
type: 'mailgun',
|
||||
name: 'Mailgun',
|
||||
description: 'Send emails and manage mailing lists with Mailgun',
|
||||
longDescription:
|
||||
'Integrate Mailgun into your workflow. Send transactional emails, manage mailing lists and members, view domain information, and track email events. Supports text and HTML emails, tags for tracking, and comprehensive list management.',
|
||||
docsLink: 'https://docs.sim.ai/tools/mailgun',
|
||||
category: 'tools',
|
||||
bgColor: '#F06248',
|
||||
icon: MailgunIcon,
|
||||
|
||||
subBlocks: [
|
||||
{
|
||||
id: 'operation',
|
||||
title: 'Operation',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
// Message Operations
|
||||
{ label: 'Send Message', id: 'send_message' },
|
||||
{ label: 'Get Message', id: 'get_message' },
|
||||
{ label: 'List Messages', id: 'list_messages' },
|
||||
// Mailing List Operations
|
||||
{ label: 'Create Mailing List', id: 'create_mailing_list' },
|
||||
{ label: 'Get Mailing List', id: 'get_mailing_list' },
|
||||
{ label: 'Add List Member', id: 'add_list_member' },
|
||||
// Domain Operations
|
||||
{ label: 'List Domains', id: 'list_domains' },
|
||||
{ label: 'Get Domain', id: 'get_domain' },
|
||||
],
|
||||
value: () => 'send_message',
|
||||
},
|
||||
{
|
||||
id: 'apiKey',
|
||||
title: 'Mailgun API Key',
|
||||
type: 'short-input',
|
||||
password: true,
|
||||
placeholder: 'Enter your Mailgun API key',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'domain',
|
||||
title: 'Domain',
|
||||
type: 'short-input',
|
||||
placeholder: 'mg.example.com',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['send_message', 'get_message', 'list_messages', 'get_domain'],
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
// Send Message fields
|
||||
{
|
||||
id: 'from',
|
||||
title: 'From Email',
|
||||
type: 'short-input',
|
||||
placeholder: 'sender@example.com',
|
||||
condition: { field: 'operation', value: 'send_message' },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'to',
|
||||
title: 'To Email',
|
||||
type: 'short-input',
|
||||
placeholder: 'recipient@example.com',
|
||||
condition: { field: 'operation', value: 'send_message' },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'subject',
|
||||
title: 'Subject',
|
||||
type: 'short-input',
|
||||
placeholder: 'Email subject',
|
||||
condition: { field: 'operation', value: 'send_message' },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'text',
|
||||
title: 'Text Body',
|
||||
type: 'long-input',
|
||||
placeholder: 'Plain text email body',
|
||||
condition: { field: 'operation', value: 'send_message' },
|
||||
},
|
||||
{
|
||||
id: 'html',
|
||||
title: 'HTML Body',
|
||||
type: 'code',
|
||||
placeholder: '<html><body>HTML email body</body></html>',
|
||||
condition: { field: 'operation', value: 'send_message' },
|
||||
},
|
||||
{
|
||||
id: 'cc',
|
||||
title: 'CC',
|
||||
type: 'short-input',
|
||||
placeholder: 'cc@example.com',
|
||||
condition: { field: 'operation', value: 'send_message' },
|
||||
},
|
||||
{
|
||||
id: 'bcc',
|
||||
title: 'BCC',
|
||||
type: 'short-input',
|
||||
placeholder: 'bcc@example.com',
|
||||
condition: { field: 'operation', value: 'send_message' },
|
||||
},
|
||||
{
|
||||
id: 'tags',
|
||||
title: 'Tags',
|
||||
type: 'short-input',
|
||||
placeholder: 'tag1, tag2',
|
||||
condition: { field: 'operation', value: 'send_message' },
|
||||
},
|
||||
// Get Message fields
|
||||
{
|
||||
id: 'messageKey',
|
||||
title: 'Message Key',
|
||||
type: 'short-input',
|
||||
placeholder: 'Message storage key',
|
||||
condition: { field: 'operation', value: 'get_message' },
|
||||
required: true,
|
||||
},
|
||||
// List Messages fields
|
||||
{
|
||||
id: 'event',
|
||||
title: 'Event Type',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'All Events', id: '' },
|
||||
{ label: 'Accepted', id: 'accepted' },
|
||||
{ label: 'Delivered', id: 'delivered' },
|
||||
{ label: 'Failed', id: 'failed' },
|
||||
{ label: 'Opened', id: 'opened' },
|
||||
{ label: 'Clicked', id: 'clicked' },
|
||||
{ label: 'Unsubscribed', id: 'unsubscribed' },
|
||||
{ label: 'Complained', id: 'complained' },
|
||||
{ label: 'Stored', id: 'stored' },
|
||||
],
|
||||
value: () => '',
|
||||
condition: { field: 'operation', value: 'list_messages' },
|
||||
},
|
||||
{
|
||||
id: 'limit',
|
||||
title: 'Limit',
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'list_messages' },
|
||||
},
|
||||
// Create Mailing List fields
|
||||
{
|
||||
id: 'address',
|
||||
title: 'List Address',
|
||||
type: 'short-input',
|
||||
placeholder: 'list@example.com',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['create_mailing_list', 'get_mailing_list', 'add_list_member'],
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'name',
|
||||
title: 'List Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'My Mailing List',
|
||||
condition: { field: 'operation', value: 'create_mailing_list' },
|
||||
},
|
||||
{
|
||||
id: 'description',
|
||||
title: 'Description',
|
||||
type: 'long-input',
|
||||
placeholder: 'Description of the mailing list',
|
||||
condition: { field: 'operation', value: 'create_mailing_list' },
|
||||
},
|
||||
{
|
||||
id: 'accessLevel',
|
||||
title: 'Access Level',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Read Only', id: 'readonly' },
|
||||
{ label: 'Members', id: 'members' },
|
||||
{ label: 'Everyone', id: 'everyone' },
|
||||
],
|
||||
value: () => 'readonly',
|
||||
condition: { field: 'operation', value: 'create_mailing_list' },
|
||||
},
|
||||
// Add List Member fields (reuse address from above for listAddress)
|
||||
{
|
||||
id: 'memberAddress',
|
||||
title: 'Member Email',
|
||||
type: 'short-input',
|
||||
placeholder: 'member@example.com',
|
||||
condition: { field: 'operation', value: 'add_list_member' },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'memberName',
|
||||
title: 'Member Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'John Doe',
|
||||
condition: { field: 'operation', value: 'add_list_member' },
|
||||
},
|
||||
{
|
||||
id: 'vars',
|
||||
title: 'Custom Variables',
|
||||
type: 'code',
|
||||
placeholder: '{"key": "value"}',
|
||||
condition: { field: 'operation', value: 'add_list_member' },
|
||||
},
|
||||
{
|
||||
id: 'subscribed',
|
||||
title: 'Subscribed',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Yes', id: 'true' },
|
||||
{ label: 'No', id: 'false' },
|
||||
],
|
||||
value: () => 'true',
|
||||
condition: { field: 'operation', value: 'add_list_member' },
|
||||
},
|
||||
],
|
||||
|
||||
tools: {
|
||||
access: [
|
||||
'mailgun_send_message',
|
||||
'mailgun_get_message',
|
||||
'mailgun_list_messages',
|
||||
'mailgun_create_mailing_list',
|
||||
'mailgun_get_mailing_list',
|
||||
'mailgun_add_list_member',
|
||||
'mailgun_list_domains',
|
||||
'mailgun_get_domain',
|
||||
],
|
||||
config: {
|
||||
tool: (params) => `mailgun_${params.operation}`,
|
||||
params: (params) => {
|
||||
const { operation, memberAddress, memberName, ...rest } = params
|
||||
|
||||
// Handle special field mappings for add_list_member
|
||||
if (operation === 'add_list_member') {
|
||||
return {
|
||||
...rest,
|
||||
listAddress: params.address,
|
||||
address: memberAddress,
|
||||
name: memberName,
|
||||
subscribed: params.subscribed === 'true',
|
||||
}
|
||||
}
|
||||
|
||||
return rest
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
inputs: {
|
||||
operation: { type: 'string', description: 'Operation to perform' },
|
||||
apiKey: { type: 'string', description: 'Mailgun API key' },
|
||||
domain: { type: 'string', description: 'Mailgun domain' },
|
||||
// Message inputs
|
||||
from: { type: 'string', description: 'Sender email address' },
|
||||
to: { type: 'string', description: 'Recipient email address' },
|
||||
subject: { type: 'string', description: 'Email subject' },
|
||||
text: { type: 'string', description: 'Plain text body' },
|
||||
html: { type: 'string', description: 'HTML body' },
|
||||
cc: { type: 'string', description: 'CC email address' },
|
||||
bcc: { type: 'string', description: 'BCC email address' },
|
||||
tags: { type: 'string', description: 'Tags for the email' },
|
||||
messageKey: { type: 'string', description: 'Message storage key' },
|
||||
event: { type: 'string', description: 'Event type filter' },
|
||||
limit: { type: 'number', description: 'Number of events to return' },
|
||||
// Mailing list inputs
|
||||
address: { type: 'string', description: 'Mailing list address' },
|
||||
name: { type: 'string', description: 'List or member name' },
|
||||
description: { type: 'string', description: 'List description' },
|
||||
accessLevel: { type: 'string', description: 'List access level' },
|
||||
memberAddress: { type: 'string', description: 'Member email address' },
|
||||
memberName: { type: 'string', description: 'Member name' },
|
||||
vars: { type: 'string', description: 'Custom variables JSON' },
|
||||
subscribed: { type: 'string', description: 'Member subscription status' },
|
||||
},
|
||||
|
||||
outputs: {
|
||||
success: { type: 'boolean', description: 'Operation success status' },
|
||||
id: { type: 'string', description: 'Message ID' },
|
||||
message: { type: 'string', description: 'Response message' },
|
||||
items: { type: 'json', description: 'Array of items (messages, domains)' },
|
||||
list: { type: 'json', description: 'Mailing list details' },
|
||||
member: { type: 'json', description: 'Member details' },
|
||||
domain: { type: 'json', description: 'Domain details' },
|
||||
totalCount: { type: 'number', description: 'Total count of items' },
|
||||
},
|
||||
}
|
||||
38
apps/sim/blocks/blocks/search.ts
Normal file
38
apps/sim/blocks/blocks/search.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import { SearchIcon } from '@/components/icons'
|
||||
import type { BlockConfig } from '@/blocks/types'
|
||||
|
||||
export const SearchBlock: BlockConfig = {
|
||||
type: 'search',
|
||||
name: 'Search',
|
||||
description: 'Search the web ($0.01 per search)',
|
||||
longDescription: 'Search the web using the Search tool. Each search costs $0.01 per query.',
|
||||
bgColor: '#3B82F6',
|
||||
icon: SearchIcon,
|
||||
category: 'tools',
|
||||
docsLink: 'https://docs.sim.ai/tools/search',
|
||||
subBlocks: [
|
||||
{
|
||||
id: 'query',
|
||||
title: 'Search Query',
|
||||
type: 'long-input',
|
||||
placeholder: 'Enter your search query...',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
access: ['search_tool'],
|
||||
config: {
|
||||
tool: () => 'search_tool',
|
||||
},
|
||||
},
|
||||
inputs: {
|
||||
query: { type: 'string', description: 'Search query' },
|
||||
},
|
||||
outputs: {
|
||||
results: { type: 'json', description: 'Search results' },
|
||||
query: { type: 'string', description: 'The search query' },
|
||||
totalResults: { type: 'number', description: 'Total number of results' },
|
||||
source: { type: 'string', description: 'Search source (exa)' },
|
||||
cost: { type: 'json', description: 'Cost information ($0.01)' },
|
||||
},
|
||||
}
|
||||
478
apps/sim/blocks/blocks/sendgrid.ts
Normal file
478
apps/sim/blocks/blocks/sendgrid.ts
Normal file
@@ -0,0 +1,478 @@
|
||||
import { SendgridIcon } from '@/components/icons'
|
||||
import type { BlockConfig } from '@/blocks/types'
|
||||
import type { SendMailResult } from '@/tools/sendgrid/types'
|
||||
|
||||
export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'sendgrid',
|
||||
name: 'SendGrid',
|
||||
description: 'Send emails and manage contacts, lists, and templates with SendGrid',
|
||||
longDescription:
|
||||
'Integrate SendGrid into your workflow. Send transactional emails, manage marketing contacts and lists, and work with email templates. Supports dynamic templates, attachments, and comprehensive contact management.',
|
||||
docsLink: 'https://docs.sim.ai/tools/sendgrid',
|
||||
category: 'tools',
|
||||
bgColor: '#1A82E2',
|
||||
icon: SendgridIcon,
|
||||
|
||||
subBlocks: [
|
||||
{
|
||||
id: 'operation',
|
||||
title: 'Operation',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
// Mail Operations
|
||||
{ label: 'Send Mail', id: 'send_mail' },
|
||||
// Contact Operations
|
||||
{ label: 'Add Contact', id: 'add_contact' },
|
||||
{ label: 'Get Contact', id: 'get_contact' },
|
||||
{ label: 'Search Contacts', id: 'search_contacts' },
|
||||
{ label: 'Delete Contacts', id: 'delete_contacts' },
|
||||
// List Operations
|
||||
{ label: 'Create List', id: 'create_list' },
|
||||
{ label: 'Get List', id: 'get_list' },
|
||||
{ label: 'List All Lists', id: 'list_all_lists' },
|
||||
{ label: 'Delete List', id: 'delete_list' },
|
||||
{ label: 'Add Contacts to List', id: 'add_contacts_to_list' },
|
||||
{ label: 'Remove Contacts from List', id: 'remove_contacts_from_list' },
|
||||
// Template Operations
|
||||
{ label: 'Create Template', id: 'create_template' },
|
||||
{ label: 'Get Template', id: 'get_template' },
|
||||
{ label: 'List Templates', id: 'list_templates' },
|
||||
{ label: 'Delete Template', id: 'delete_template' },
|
||||
{ label: 'Create Template Version', id: 'create_template_version' },
|
||||
],
|
||||
value: () => 'send_mail',
|
||||
},
|
||||
{
|
||||
id: 'apiKey',
|
||||
title: 'SendGrid API Key',
|
||||
type: 'short-input',
|
||||
password: true,
|
||||
placeholder: 'Enter your SendGrid API key',
|
||||
required: true,
|
||||
},
|
||||
// Send Mail fields
|
||||
{
|
||||
id: 'from',
|
||||
title: 'From Email',
|
||||
type: 'short-input',
|
||||
placeholder: 'sender@yourdomain.com',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'fromName',
|
||||
title: 'From Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'Sender Name',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'to',
|
||||
title: 'To Email',
|
||||
type: 'short-input',
|
||||
placeholder: 'recipient@example.com',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'toName',
|
||||
title: 'To Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'Recipient Name',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'mailSubject',
|
||||
title: 'Subject',
|
||||
type: 'short-input',
|
||||
placeholder: 'Email subject (required unless using template)',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'content',
|
||||
title: 'Content',
|
||||
type: 'long-input',
|
||||
placeholder: 'Email body content (required unless using template)',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'contentType',
|
||||
title: 'Content Type',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Plain Text', id: 'text/plain' },
|
||||
{ label: 'HTML', id: 'text/html' },
|
||||
],
|
||||
value: () => 'text/plain',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'cc',
|
||||
title: 'CC',
|
||||
type: 'short-input',
|
||||
placeholder: 'cc@example.com',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'bcc',
|
||||
title: 'BCC',
|
||||
type: 'short-input',
|
||||
placeholder: 'bcc@example.com',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'replyTo',
|
||||
title: 'Reply To',
|
||||
type: 'short-input',
|
||||
placeholder: 'replyto@example.com',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'replyToName',
|
||||
title: 'Reply To Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'Reply To Name',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'mailTemplateId',
|
||||
title: 'Template ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'SendGrid template ID',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
{
|
||||
id: 'dynamicTemplateData',
|
||||
title: 'Dynamic Template Data',
|
||||
type: 'code',
|
||||
placeholder: '{"name": "John", "order_id": "12345"}',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
},
|
||||
// File upload (basic mode)
|
||||
{
|
||||
id: 'attachmentFiles',
|
||||
title: 'Attachments',
|
||||
type: 'file-upload',
|
||||
canonicalParamId: 'attachments',
|
||||
placeholder: 'Upload files to attach',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'basic',
|
||||
multiple: true,
|
||||
required: false,
|
||||
},
|
||||
// Variable reference (advanced mode)
|
||||
{
|
||||
id: 'attachments',
|
||||
title: 'Attachments',
|
||||
type: 'short-input',
|
||||
canonicalParamId: 'attachments',
|
||||
placeholder: 'Reference files from previous blocks',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
required: false,
|
||||
},
|
||||
// Contact fields
|
||||
{
|
||||
id: 'email',
|
||||
title: 'Email',
|
||||
type: 'short-input',
|
||||
placeholder: 'contact@example.com',
|
||||
condition: { field: 'operation', value: ['add_contact'] },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'firstName',
|
||||
title: 'First Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'John',
|
||||
condition: { field: 'operation', value: ['add_contact'] },
|
||||
},
|
||||
{
|
||||
id: 'lastName',
|
||||
title: 'Last Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'Doe',
|
||||
condition: { field: 'operation', value: ['add_contact'] },
|
||||
},
|
||||
{
|
||||
id: 'customFields',
|
||||
title: 'Custom Fields',
|
||||
type: 'code',
|
||||
placeholder: '{"custom_field_1": "value1"}',
|
||||
condition: { field: 'operation', value: ['add_contact'] },
|
||||
},
|
||||
{
|
||||
id: 'contactListIds',
|
||||
title: 'List IDs',
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated list IDs',
|
||||
condition: { field: 'operation', value: ['add_contact'] },
|
||||
},
|
||||
{
|
||||
id: 'contactId',
|
||||
title: 'Contact ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'Contact ID',
|
||||
condition: { field: 'operation', value: ['get_contact'] },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'query',
|
||||
title: 'Search Query',
|
||||
type: 'long-input',
|
||||
placeholder: "email LIKE '%example.com%'",
|
||||
condition: { field: 'operation', value: ['search_contacts'] },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'contactIds',
|
||||
title: 'Contact IDs',
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated contact IDs',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['delete_contacts', 'remove_contacts_from_list'],
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'contacts',
|
||||
title: 'Contacts (JSON Array)',
|
||||
type: 'code',
|
||||
placeholder: '[{"email": "user@example.com", "first_name": "John"}]',
|
||||
condition: { field: 'operation', value: 'add_contacts_to_list' },
|
||||
required: true,
|
||||
},
|
||||
// List fields
|
||||
{
|
||||
id: 'listName',
|
||||
title: 'List Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'List name',
|
||||
condition: { field: 'operation', value: ['create_list'] },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'listId',
|
||||
title: 'List ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'List ID',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['get_list', 'delete_list', 'add_contacts_to_list', 'remove_contacts_from_list'],
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'listPageSize',
|
||||
title: 'Page Size',
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'list_all_lists' },
|
||||
},
|
||||
// Template fields
|
||||
{
|
||||
id: 'templateName',
|
||||
title: 'Template Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'Template name',
|
||||
condition: { field: 'operation', value: ['create_template'] },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'templateId',
|
||||
title: 'Template ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'Template ID',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['get_template', 'delete_template', 'create_template_version'],
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'generation',
|
||||
title: 'Template Generation',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Dynamic', id: 'dynamic' },
|
||||
{ label: 'Legacy', id: 'legacy' },
|
||||
],
|
||||
value: () => 'dynamic',
|
||||
condition: { field: 'operation', value: 'create_template' },
|
||||
},
|
||||
{
|
||||
id: 'templateGenerations',
|
||||
title: 'Filter by Generation',
|
||||
type: 'short-input',
|
||||
placeholder: 'legacy, dynamic, or both',
|
||||
condition: { field: 'operation', value: 'list_templates' },
|
||||
},
|
||||
{
|
||||
id: 'templatePageSize',
|
||||
title: 'Page Size',
|
||||
type: 'short-input',
|
||||
placeholder: '20',
|
||||
condition: { field: 'operation', value: 'list_templates' },
|
||||
},
|
||||
{
|
||||
id: 'versionName',
|
||||
title: 'Version Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'Version name',
|
||||
condition: { field: 'operation', value: 'create_template_version' },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'templateSubject',
|
||||
title: 'Template Subject',
|
||||
type: 'short-input',
|
||||
placeholder: 'Email subject',
|
||||
condition: { field: 'operation', value: 'create_template_version' },
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'htmlContent',
|
||||
title: 'HTML Content',
|
||||
type: 'code',
|
||||
placeholder: '<html><body>{{name}}</body></html>',
|
||||
condition: { field: 'operation', value: 'create_template_version' },
|
||||
},
|
||||
{
|
||||
id: 'plainContent',
|
||||
title: 'Plain Text Content',
|
||||
type: 'long-input',
|
||||
placeholder: 'Plain text content',
|
||||
condition: { field: 'operation', value: 'create_template_version' },
|
||||
},
|
||||
{
|
||||
id: 'active',
|
||||
title: 'Active',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Yes', id: 'true' },
|
||||
{ label: 'No', id: 'false' },
|
||||
],
|
||||
value: () => 'true',
|
||||
condition: { field: 'operation', value: 'create_template_version' },
|
||||
},
|
||||
],
|
||||
|
||||
tools: {
|
||||
access: [
|
||||
'sendgrid_send_mail',
|
||||
'sendgrid_add_contact',
|
||||
'sendgrid_get_contact',
|
||||
'sendgrid_search_contacts',
|
||||
'sendgrid_delete_contacts',
|
||||
'sendgrid_create_list',
|
||||
'sendgrid_get_list',
|
||||
'sendgrid_list_all_lists',
|
||||
'sendgrid_delete_list',
|
||||
'sendgrid_add_contacts_to_list',
|
||||
'sendgrid_remove_contacts_from_list',
|
||||
'sendgrid_create_template',
|
||||
'sendgrid_get_template',
|
||||
'sendgrid_list_templates',
|
||||
'sendgrid_delete_template',
|
||||
'sendgrid_create_template_version',
|
||||
],
|
||||
config: {
|
||||
tool: (params) => `sendgrid_${params.operation}`,
|
||||
params: (params) => {
|
||||
const {
|
||||
operation,
|
||||
mailSubject,
|
||||
mailTemplateId,
|
||||
listName,
|
||||
templateName,
|
||||
versionName,
|
||||
templateSubject,
|
||||
contactListIds,
|
||||
templateGenerations,
|
||||
listPageSize,
|
||||
templatePageSize,
|
||||
...rest
|
||||
} = params
|
||||
|
||||
// Map renamed fields back to tool parameter names
|
||||
return {
|
||||
...rest,
|
||||
...(mailSubject && { subject: mailSubject }),
|
||||
...(mailTemplateId && { templateId: mailTemplateId }),
|
||||
...(listName && { name: listName }),
|
||||
...(templateName && { name: templateName }),
|
||||
...(versionName && { name: versionName }),
|
||||
...(templateSubject && { subject: templateSubject }),
|
||||
...(contactListIds && { listIds: contactListIds }),
|
||||
...(templateGenerations && { generations: templateGenerations }),
|
||||
...(listPageSize && { pageSize: listPageSize }),
|
||||
...(templatePageSize && { pageSize: templatePageSize }),
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
inputs: {
|
||||
operation: { type: 'string', description: 'Operation to perform' },
|
||||
apiKey: { type: 'string', description: 'SendGrid API key' },
|
||||
// Mail inputs
|
||||
from: { type: 'string', description: 'Sender email address' },
|
||||
fromName: { type: 'string', description: 'Sender name' },
|
||||
to: { type: 'string', description: 'Recipient email address' },
|
||||
toName: { type: 'string', description: 'Recipient name' },
|
||||
mailSubject: { type: 'string', description: 'Email subject' },
|
||||
content: { type: 'string', description: 'Email content' },
|
||||
contentType: { type: 'string', description: 'Content type' },
|
||||
cc: { type: 'string', description: 'CC email address' },
|
||||
bcc: { type: 'string', description: 'BCC email address' },
|
||||
replyTo: { type: 'string', description: 'Reply-to email address' },
|
||||
replyToName: { type: 'string', description: 'Reply-to name' },
|
||||
mailTemplateId: { type: 'string', description: 'Template ID for sending mail' },
|
||||
dynamicTemplateData: { type: 'json', description: 'Dynamic template data' },
|
||||
attachmentFiles: { type: 'json', description: 'Files to attach (UI upload)' },
|
||||
attachments: { type: 'array', description: 'Files to attach (UserFile array)' },
|
||||
// Contact inputs
|
||||
email: { type: 'string', description: 'Contact email' },
|
||||
firstName: { type: 'string', description: 'Contact first name' },
|
||||
lastName: { type: 'string', description: 'Contact last name' },
|
||||
customFields: { type: 'json', description: 'Custom fields' },
|
||||
contactId: { type: 'string', description: 'Contact ID' },
|
||||
contactIds: { type: 'string', description: 'Comma-separated contact IDs' },
|
||||
contacts: { type: 'json', description: 'Array of contact objects' },
|
||||
query: { type: 'string', description: 'Search query' },
|
||||
contactListIds: { type: 'string', description: 'Comma-separated list IDs for contact' },
|
||||
// List inputs
|
||||
listName: { type: 'string', description: 'List name' },
|
||||
listId: { type: 'string', description: 'List ID' },
|
||||
listPageSize: { type: 'number', description: 'Page size for listing lists' },
|
||||
// Template inputs
|
||||
templateName: { type: 'string', description: 'Template name' },
|
||||
templateId: { type: 'string', description: 'Template ID' },
|
||||
generation: { type: 'string', description: 'Template generation' },
|
||||
templateGenerations: { type: 'string', description: 'Filter templates by generation' },
|
||||
templatePageSize: { type: 'number', description: 'Page size for listing templates' },
|
||||
versionName: { type: 'string', description: 'Template version name' },
|
||||
templateSubject: { type: 'string', description: 'Template subject' },
|
||||
htmlContent: { type: 'string', description: 'HTML content' },
|
||||
plainContent: { type: 'string', description: 'Plain text content' },
|
||||
active: { type: 'boolean', description: 'Whether template version is active' },
|
||||
},
|
||||
|
||||
outputs: {
|
||||
success: { type: 'boolean', description: 'Operation success status' },
|
||||
messageId: { type: 'string', description: 'Email message ID (send_mail)' },
|
||||
id: { type: 'string', description: 'Resource ID' },
|
||||
jobId: { type: 'string', description: 'Job ID for async operations' },
|
||||
email: { type: 'string', description: 'Email address' },
|
||||
firstName: { type: 'string', description: 'First name' },
|
||||
lastName: { type: 'string', description: 'Last name' },
|
||||
contacts: { type: 'json', description: 'Array of contacts' },
|
||||
contactCount: { type: 'number', description: 'Number of contacts' },
|
||||
lists: { type: 'json', description: 'Array of lists' },
|
||||
templates: { type: 'json', description: 'Array of templates' },
|
||||
message: { type: 'string', description: 'Status or success message' },
|
||||
name: { type: 'string', description: 'Resource name' },
|
||||
generation: { type: 'string', description: 'Template generation' },
|
||||
},
|
||||
}
|
||||
209
apps/sim/blocks/blocks/smtp.ts
Normal file
209
apps/sim/blocks/blocks/smtp.ts
Normal file
@@ -0,0 +1,209 @@
|
||||
import { SmtpIcon } from '@/components/icons'
|
||||
import type { BlockConfig } from '@/blocks/types'
|
||||
import { AuthMode } from '@/blocks/types'
|
||||
import type { SmtpSendMailResult } from '@/tools/smtp/types'
|
||||
|
||||
export const SmtpBlock: BlockConfig<SmtpSendMailResult> = {
|
||||
type: 'smtp',
|
||||
name: 'SMTP',
|
||||
description: 'Send emails via any SMTP mail server',
|
||||
longDescription:
|
||||
'Send emails using any SMTP server (Gmail, Outlook, custom servers, etc.). Configure SMTP connection settings and send emails with full control over content, recipients, and attachments.',
|
||||
docsLink: 'https://docs.sim.ai/tools/smtp',
|
||||
category: 'tools',
|
||||
bgColor: '#4A5568',
|
||||
icon: SmtpIcon,
|
||||
authMode: AuthMode.ApiKey,
|
||||
|
||||
subBlocks: [
|
||||
{
|
||||
id: 'smtpHost',
|
||||
title: 'SMTP Host',
|
||||
type: 'short-input',
|
||||
placeholder: 'smtp.gmail.com, smtp.example.com',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'smtpPort',
|
||||
title: 'SMTP Port',
|
||||
type: 'short-input',
|
||||
placeholder: '587',
|
||||
required: true,
|
||||
value: () => '587',
|
||||
},
|
||||
{
|
||||
id: 'smtpUsername',
|
||||
title: 'SMTP Username',
|
||||
type: 'short-input',
|
||||
placeholder: 'your-email@example.com',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'smtpPassword',
|
||||
title: 'SMTP Password',
|
||||
type: 'short-input',
|
||||
placeholder: 'Your SMTP password',
|
||||
required: true,
|
||||
password: true,
|
||||
},
|
||||
{
|
||||
id: 'smtpSecure',
|
||||
title: 'Security Mode',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'TLS (Port 587)', id: 'TLS' },
|
||||
{ label: 'SSL (Port 465)', id: 'SSL' },
|
||||
{ label: 'None (Port 25)', id: 'None' },
|
||||
],
|
||||
value: () => 'TLS',
|
||||
required: true,
|
||||
},
|
||||
|
||||
{
|
||||
id: 'from',
|
||||
title: 'From',
|
||||
type: 'short-input',
|
||||
placeholder: 'sender@example.com',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'to',
|
||||
title: 'To',
|
||||
type: 'short-input',
|
||||
placeholder: 'recipient@example.com',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'subject',
|
||||
title: 'Subject',
|
||||
type: 'short-input',
|
||||
placeholder: 'Email subject',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'body',
|
||||
title: 'Body',
|
||||
type: 'long-input',
|
||||
placeholder: 'Email content',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'contentType',
|
||||
title: 'Content Type',
|
||||
type: 'dropdown',
|
||||
options: [
|
||||
{ label: 'Plain Text', id: 'text' },
|
||||
{ label: 'HTML', id: 'html' },
|
||||
],
|
||||
value: () => 'text',
|
||||
required: false,
|
||||
},
|
||||
|
||||
// Attachments Section
|
||||
// File upload (basic mode)
|
||||
{
|
||||
id: 'attachmentFiles',
|
||||
title: 'Attachments',
|
||||
type: 'file-upload',
|
||||
canonicalParamId: 'attachments',
|
||||
placeholder: 'Upload files to attach',
|
||||
mode: 'basic',
|
||||
multiple: true,
|
||||
required: false,
|
||||
},
|
||||
// Variable reference (advanced mode)
|
||||
{
|
||||
id: 'attachments',
|
||||
title: 'Attachments',
|
||||
type: 'short-input',
|
||||
canonicalParamId: 'attachments',
|
||||
placeholder: 'Reference files from previous blocks',
|
||||
mode: 'advanced',
|
||||
required: false,
|
||||
},
|
||||
|
||||
// Advanced Options Section
|
||||
{
|
||||
id: 'fromName',
|
||||
title: 'From Name',
|
||||
type: 'short-input',
|
||||
placeholder: 'Display name for sender',
|
||||
mode: 'advanced',
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
id: 'cc',
|
||||
title: 'CC',
|
||||
type: 'short-input',
|
||||
placeholder: 'cc1@example.com, cc2@example.com',
|
||||
mode: 'advanced',
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
id: 'bcc',
|
||||
title: 'BCC',
|
||||
type: 'short-input',
|
||||
placeholder: 'bcc1@example.com, bcc2@example.com',
|
||||
mode: 'advanced',
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
id: 'replyTo',
|
||||
title: 'Reply To',
|
||||
type: 'short-input',
|
||||
placeholder: 'reply@example.com',
|
||||
mode: 'advanced',
|
||||
required: false,
|
||||
},
|
||||
],
|
||||
|
||||
tools: {
|
||||
access: ['smtp_send_mail'],
|
||||
config: {
|
||||
tool: () => 'smtp_send_mail',
|
||||
params: (params) => ({
|
||||
smtpHost: params.smtpHost,
|
||||
smtpPort: Number(params.smtpPort),
|
||||
smtpUsername: params.smtpUsername,
|
||||
smtpPassword: params.smtpPassword,
|
||||
smtpSecure: params.smtpSecure,
|
||||
from: params.from,
|
||||
to: params.to,
|
||||
subject: params.subject,
|
||||
body: params.body,
|
||||
contentType: params.contentType,
|
||||
fromName: params.fromName,
|
||||
cc: params.cc,
|
||||
bcc: params.bcc,
|
||||
replyTo: params.replyTo,
|
||||
attachments: params.attachments,
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
||||
inputs: {
|
||||
smtpHost: { type: 'string', description: 'SMTP server hostname' },
|
||||
smtpPort: { type: 'number', description: 'SMTP server port' },
|
||||
smtpUsername: { type: 'string', description: 'SMTP authentication username' },
|
||||
smtpPassword: { type: 'string', description: 'SMTP authentication password' },
|
||||
smtpSecure: { type: 'string', description: 'Security protocol (TLS, SSL, or None)' },
|
||||
from: { type: 'string', description: 'Sender email address' },
|
||||
to: { type: 'string', description: 'Recipient email address' },
|
||||
subject: { type: 'string', description: 'Email subject' },
|
||||
body: { type: 'string', description: 'Email body content' },
|
||||
contentType: { type: 'string', description: 'Content type (text or html)' },
|
||||
fromName: { type: 'string', description: 'Display name for sender' },
|
||||
cc: { type: 'string', description: 'CC recipients (comma-separated)' },
|
||||
bcc: { type: 'string', description: 'BCC recipients (comma-separated)' },
|
||||
replyTo: { type: 'string', description: 'Reply-to email address' },
|
||||
attachments: { type: 'array', description: 'Files to attach (UserFile array)' },
|
||||
},
|
||||
|
||||
outputs: {
|
||||
success: { type: 'boolean', description: 'Whether the email was sent successfully' },
|
||||
messageId: { type: 'string', description: 'Message ID from SMTP server' },
|
||||
to: { type: 'string', description: 'Recipient email address' },
|
||||
subject: { type: 'string', description: 'Email subject' },
|
||||
error: { type: 'string', description: 'Error message if sending failed' },
|
||||
},
|
||||
}
|
||||
@@ -2,6 +2,7 @@ import { AgentBlock } from '@/blocks/blocks/agent'
|
||||
import { AirtableBlock } from '@/blocks/blocks/airtable'
|
||||
import { ApiBlock } from '@/blocks/blocks/api'
|
||||
import { ApiTriggerBlock } from '@/blocks/blocks/api_trigger'
|
||||
import { ApifyBlock } from '@/blocks/blocks/apify'
|
||||
import { ApolloBlock } from '@/blocks/blocks/apollo'
|
||||
import { ArxivBlock } from '@/blocks/blocks/arxiv'
|
||||
import { AsanaBlock } from '@/blocks/blocks/asana'
|
||||
@@ -41,8 +42,10 @@ import { JinaBlock } from '@/blocks/blocks/jina'
|
||||
import { JiraBlock } from '@/blocks/blocks/jira'
|
||||
import { KnowledgeBlock } from '@/blocks/blocks/knowledge'
|
||||
import { LinearBlock } from '@/blocks/blocks/linear'
|
||||
import { LinkedInBlock } from '@/blocks/blocks/linkedin'
|
||||
import { LinkupBlock } from '@/blocks/blocks/linkup'
|
||||
import { MailchimpBlock } from '@/blocks/blocks/mailchimp'
|
||||
import { MailgunBlock } from '@/blocks/blocks/mailgun'
|
||||
import { ManualTriggerBlock } from '@/blocks/blocks/manual_trigger'
|
||||
import { McpBlock } from '@/blocks/blocks/mcp'
|
||||
import { Mem0Block } from '@/blocks/blocks/mem0'
|
||||
@@ -74,6 +77,8 @@ import { RouterBlock } from '@/blocks/blocks/router'
|
||||
import { S3Block } from '@/blocks/blocks/s3'
|
||||
import { SalesforceBlock } from '@/blocks/blocks/salesforce'
|
||||
import { ScheduleBlock } from '@/blocks/blocks/schedule'
|
||||
import { SearchBlock } from '@/blocks/blocks/search'
|
||||
import { SendGridBlock } from '@/blocks/blocks/sendgrid'
|
||||
import { SentryBlock } from '@/blocks/blocks/sentry'
|
||||
import { SerperBlock } from '@/blocks/blocks/serper'
|
||||
import { SharepointBlock } from '@/blocks/blocks/sharepoint'
|
||||
@@ -90,7 +95,6 @@ import { TelegramBlock } from '@/blocks/blocks/telegram'
|
||||
import { ThinkingBlock } from '@/blocks/blocks/thinking'
|
||||
import { TranslateBlock } from '@/blocks/blocks/translate'
|
||||
import { TrelloBlock } from '@/blocks/blocks/trello'
|
||||
import { TtsBlock } from '@/blocks/blocks/tts'
|
||||
import { TwilioSMSBlock } from '@/blocks/blocks/twilio'
|
||||
import { TwilioVoiceBlock } from '@/blocks/blocks/twilio_voice'
|
||||
import { TypeformBlock } from '@/blocks/blocks/typeform'
|
||||
@@ -115,12 +119,15 @@ import type { BlockConfig } from '@/blocks/types'
|
||||
export const registry: Record<string, BlockConfig> = {
|
||||
agent: AgentBlock,
|
||||
airtable: AirtableBlock,
|
||||
apollo: ApolloBlock,
|
||||
api: ApiBlock,
|
||||
api_trigger: ApiTriggerBlock,
|
||||
apify: ApifyBlock,
|
||||
apollo: ApolloBlock,
|
||||
arxiv: ArxivBlock,
|
||||
asana: AsanaBlock,
|
||||
browser_use: BrowserUseBlock,
|
||||
calendly: CalendlyBlock,
|
||||
chat_trigger: ChatTriggerBlock,
|
||||
clay: ClayBlock,
|
||||
condition: ConditionBlock,
|
||||
confluence: ConfluenceBlock,
|
||||
@@ -128,8 +135,8 @@ export const registry: Record<string, BlockConfig> = {
|
||||
elevenlabs: ElevenLabsBlock,
|
||||
evaluator: EvaluatorBlock,
|
||||
exa: ExaBlock,
|
||||
firecrawl: FirecrawlBlock,
|
||||
file: FileBlock,
|
||||
firecrawl: FirecrawlBlock,
|
||||
function: FunctionBlock,
|
||||
generic_webhook: GenericWebhookBlock,
|
||||
github: GitHubBlock,
|
||||
@@ -148,15 +155,20 @@ export const registry: Record<string, BlockConfig> = {
|
||||
hunter: HunterBlock,
|
||||
image_generator: ImageGeneratorBlock,
|
||||
incidentio: IncidentioBlock,
|
||||
input_trigger: InputTriggerBlock,
|
||||
intercom: IntercomBlock,
|
||||
jina: JinaBlock,
|
||||
jira: JiraBlock,
|
||||
knowledge: KnowledgeBlock,
|
||||
linear: LinearBlock,
|
||||
linkedin: LinkedInBlock,
|
||||
linkup: LinkupBlock,
|
||||
mailchimp: MailchimpBlock,
|
||||
mailgun: MailgunBlock,
|
||||
manual_trigger: ManualTriggerBlock,
|
||||
mcp: McpBlock,
|
||||
mem0: Mem0Block,
|
||||
zep: ZepBlock,
|
||||
memory: MemoryBlock,
|
||||
microsoft_excel: MicrosoftExcelBlock,
|
||||
microsoft_planner: MicrosoftPlannerBlock,
|
||||
microsoft_teams: MicrosoftTeamsBlock,
|
||||
@@ -166,41 +178,35 @@ export const registry: Record<string, BlockConfig> = {
|
||||
neo4j: Neo4jBlock,
|
||||
note: NoteBlock,
|
||||
notion: NotionBlock,
|
||||
onedrive: OneDriveBlock,
|
||||
openai: OpenAIBlock,
|
||||
outlook: OutlookBlock,
|
||||
onedrive: OneDriveBlock,
|
||||
parallel_ai: ParallelBlock,
|
||||
perplexity: PerplexityBlock,
|
||||
posthog: PostHogBlock,
|
||||
pinecone: PineconeBlock,
|
||||
pipedrive: PipedriveBlock,
|
||||
postgresql: PostgreSQLBlock,
|
||||
posthog: PostHogBlock,
|
||||
pylon: PylonBlock,
|
||||
qdrant: QdrantBlock,
|
||||
resend: ResendBlock,
|
||||
memory: MemoryBlock,
|
||||
reddit: RedditBlock,
|
||||
resend: ResendBlock,
|
||||
response: ResponseBlock,
|
||||
router: RouterBlock,
|
||||
schedule: ScheduleBlock,
|
||||
s3: S3Block,
|
||||
salesforce: SalesforceBlock,
|
||||
schedule: ScheduleBlock,
|
||||
search: SearchBlock,
|
||||
sendgrid: SendGridBlock,
|
||||
sentry: SentryBlock,
|
||||
intercom: IntercomBlock,
|
||||
zendesk: ZendeskBlock,
|
||||
serper: SerperBlock,
|
||||
sharepoint: SharepointBlock,
|
||||
slack: SlackBlock,
|
||||
stagehand: StagehandBlock,
|
||||
stagehand_agent: StagehandAgentBlock,
|
||||
slack: SlackBlock,
|
||||
starter: StarterBlock,
|
||||
stt: SttBlock,
|
||||
tts: TtsBlock,
|
||||
start_trigger: StartTriggerBlock,
|
||||
input_trigger: InputTriggerBlock,
|
||||
chat_trigger: ChatTriggerBlock,
|
||||
manual_trigger: ManualTriggerBlock,
|
||||
api_trigger: ApiTriggerBlock,
|
||||
stt: SttBlock,
|
||||
stripe: StripeBlock,
|
||||
supabase: SupabaseBlock,
|
||||
tavily: TavilyBlock,
|
||||
@@ -224,6 +230,8 @@ export const registry: Record<string, BlockConfig> = {
|
||||
workflow_input: WorkflowInputBlock,
|
||||
x: XBlock,
|
||||
youtube: YouTubeBlock,
|
||||
zep: ZepBlock,
|
||||
zendesk: ZendeskBlock,
|
||||
}
|
||||
|
||||
export const getBlock = (type: string): BlockConfig | undefined => registry[type]
|
||||
|
||||
@@ -1,47 +1,5 @@
|
||||
import type { SVGProps } from 'react'
|
||||
|
||||
export function UsersIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width='24'
|
||||
height='24'
|
||||
viewBox='0 0 24 24'
|
||||
fill='none'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
>
|
||||
<path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2' />
|
||||
<circle cx='9' cy='7' r='4' />
|
||||
<path d='M22 21v-2a4 4 0 0 0-3-3.87' />
|
||||
<path d='M16 3.13a4 4 0 0 1 0 7.75' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SettingsIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width='24'
|
||||
height='24'
|
||||
viewBox='0 0 24 24'
|
||||
fill='none'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
>
|
||||
<path d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z' />
|
||||
<circle cx='12' cy='12' r='3' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SearchIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -62,33 +20,6 @@ export function SearchIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function Spinner() {
|
||||
return (
|
||||
<div className='absolute top-0 right-0 bottom-0 flex items-center justify-center'>
|
||||
<svg
|
||||
className='-ml-1 mr-3 h-5 w-5 animate-spin text-gray-700'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
fill='none'
|
||||
viewBox='0 0 24 24'
|
||||
>
|
||||
<circle
|
||||
className='opacity-25'
|
||||
cx='12'
|
||||
cy='12'
|
||||
r='10'
|
||||
stroke='currentColor'
|
||||
strokeWidth='4'
|
||||
/>
|
||||
<path
|
||||
className='opacity-75'
|
||||
fill='currentColor'
|
||||
d='M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z'
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export function AgentIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -192,55 +123,6 @@ export function NoteIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function AirplaneIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M18.0925 7.76479L23.0009 2.85494C23.5535 2.31133 24.2985 2.00809 25.0736 2.01126C25.8488 2.01443 26.5913 2.32375 27.1394 2.87187C27.6875 3.41998 27.9968 4.16247 28 4.93761C28.0031 5.71275 27.6999 6.45774 27.1563 7.01032L22.2464 11.9187L24.903 25.1364C25.2426 26.8275 21.9632 29.1834 21.0902 26.9431L17.2022 16.9644L12.1536 22.013C12.3993 24.963 12.4528 25.9444 10.3845 28.0112L7.24083 22.7704L2 19.6268C4.06685 17.5585 5.04824 17.6105 7.9982 17.8577L13.0468 12.8105L3.06811 8.92107C0.827823 8.04808 3.18374 4.76714 4.8748 5.10824L18.0925 7.76479Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function WorkIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M9.66689 7.20002V6.16002C9.66689 3.85901 9.66689 2 13.9338 2H16.0658C20.3327 2 20.3327 3.85901 20.3327 6.16002V7.20002M9.66689 28.0001H20.3327C25.6916 28.0001 26.6522 25.9056 26.9324 23.3591L27.932 12.959C28.2931 9.78703 27.3585 7.20002 21.6659 7.20002H8.33366C2.64109 7.20002 1.70797 9.78703 2.06764 12.959L3.0672 23.3591C3.34742 25.9056 4.30798 28.0001 9.66689 28.0001Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M11.8385 16.9227C8.45374 16.5494 5.20151 15.3969 2.33691 13.5557M18.2259 16.9227C21.6106 16.5494 24.8629 15.3969 27.7275 13.5557M17.8879 17.1668C17.8879 17.933 17.5835 18.6678 17.0417 19.2095C16.4999 19.7513 15.7651 20.0557 14.999 20.0557C14.2328 20.0557 13.498 19.7513 12.9562 19.2095C12.4144 18.6678 12.1101 17.933 12.1101 17.1668C12.1101 16.4006 12.4144 15.6658 12.9562 15.124C13.498 14.5823 14.2328 14.2779 14.999 14.2779C15.7651 14.2779 16.4999 14.5823 17.0417 15.124C17.5835 15.6658 17.8879 16.4006 17.8879 17.1668Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function WorkflowIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -308,104 +190,6 @@ export function WorkflowIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function WarnIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15 9.3152V16.4654M15 20.6853V20.0353M2.91879 12.7837C2.62752 13.0747 2.39645 13.4202 2.2388 13.8005C2.08115 14.1809 2 14.5885 2 15.0002C2 15.412 2.08115 15.8196 2.2388 16.2C2.39645 16.5803 2.62752 16.9258 2.91879 17.2168L12.7834 27.0814C13.0744 27.3727 13.4199 27.6038 13.8003 27.7614C14.1806 27.9191 14.5883 28.0002 15 28.0002C15.4117 28.0002 15.8194 27.9191 16.1997 27.7614C16.58 27.6038 16.9256 27.3727 17.2166 27.0814L27.0812 17.2168C27.3725 16.9258 27.6035 16.5803 27.7612 16.2C27.9189 15.8196 28 15.412 28 15.0002C28 14.5885 27.9189 14.1809 27.7612 13.8005C27.6035 13.4202 27.3725 13.0747 27.0812 12.7837L17.2166 2.91904C16.9256 2.62776 16.58 2.3967 16.1997 2.23904C15.8194 2.08139 15.4117 2.00024 15 2.00024C14.5883 2.00024 14.1806 2.08139 13.8003 2.23904C13.4199 2.3967 13.0744 2.62776 12.7834 2.91904L2.91879 12.7837Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function UploadIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='25'
|
||||
viewBox='0 0 30 25'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15.1605 23.1773L15.1552 12.5569M25.5937 19.1946C31.5611 14.9996 26.2243 8.93265 20.6738 8.93265C16.9262 -5.67304 -5.05936 6.40766 4.68352 17.4183'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M19.3792 15.6341L15.1549 11.4098L10.9307 15.6341'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function TrashIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='29'
|
||||
height='35'
|
||||
viewBox='0 0 29 35'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M24.9 12.4L23.444 26.9565C23.2239 29.1631 23.1147 30.2655 22.612 31.0992C22.1711 31.8331 21.5227 32.42 20.7487 32.7857C19.8699 33.2 18.764 33.2 16.5453 33.2H12.4547C10.2377 33.2 9.13013 33.2 8.25133 32.784C7.47662 32.4185 6.8276 31.8316 6.38627 31.0975C5.88707 30.2655 5.77613 29.1631 5.55427 26.9565L4.1 12.4M17.1 23.6667V15M11.9 23.6667V15M1.5 8.06667H9.49933M9.49933 8.06667L10.1684 3.4352C10.3625 2.5928 11.0628 2 11.8671 2H17.1329C17.9372 2 18.6357 2.5928 18.8316 3.4352L19.5007 8.06667M9.49933 8.06667H19.5007M19.5007 8.06667H27.5'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function StudentIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='27'
|
||||
viewBox='0 0 30 27'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M28 9.1498V15.6498M17.8821 2.6498C16.9814 2.22228 15.997 2.00049 15 2.00049C14.003 2.00049 13.0186 2.22228 12.1179 2.6498L3.4196 6.7279C1.5268 7.6145 1.5268 10.6851 3.4196 11.5717L12.1166 15.6498C13.0174 16.0775 14.0021 16.2994 14.9993 16.2994C15.9966 16.2994 16.9813 16.0775 17.8821 15.6498L26.5804 11.5717C28.4732 10.6851 28.4732 7.6145 26.5804 6.7279L17.8821 2.6498Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M5.90039 13.0498V19.7123C5.90039 23.5057 12.0026 25.3998 15.0004 25.3998C17.9982 25.3998 24.1004 23.5057 24.1004 19.7123V13.0498'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SignalIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -427,174 +211,6 @@ export function SignalIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function SectionIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M4.88889 22.2222V7.77778M4.88889 22.2222C4.31752 22.2222 3.75898 22.3917 3.28391 22.7091C2.80883 23.0265 2.43856 23.4777 2.2199 24.0056C2.00125 24.5335 1.94404 25.1143 2.05551 25.6747C2.16698 26.2351 2.44212 26.7498 2.84614 27.1539C3.25016 27.5579 3.76491 27.833 4.3253 27.9445C4.88569 28.056 5.46654 27.9987 5.99442 27.7801C6.5223 27.5614 6.97348 27.1912 7.29091 26.7161C7.60835 26.241 7.77778 25.6825 7.77778 25.1111M4.88889 22.2222C5.65507 22.2222 6.38987 22.5266 6.93164 23.0684C7.47341 23.6101 7.77778 24.3449 7.77778 25.1111M4.88889 7.77778C5.65507 7.77778 6.38987 7.47341 6.93164 6.93164C7.47341 6.38987 7.77778 5.65507 7.77778 4.88889M4.88889 7.77778C4.31752 7.77778 3.75898 7.60835 3.28391 7.29091C2.80883 6.97348 2.43856 6.5223 2.2199 5.99442C2.00125 5.46654 1.94404 4.88569 2.05551 4.3253C2.16698 3.76491 2.44212 3.25016 2.84614 2.84614C3.25016 2.44212 3.76491 2.16698 4.3253 2.05551C4.88569 1.94404 5.46654 2.00125 5.99442 2.2199C6.5223 2.43856 6.97348 2.80883 7.29091 3.28391C7.60835 3.75898 7.77778 4.31752 7.77778 4.88889M7.77778 25.1111H22.2222M7.77778 4.88889H22.2222M22.2222 4.88889C22.2222 5.65507 22.5266 6.38987 23.0684 6.93164C23.6101 7.47341 24.3449 7.77778 25.1111 7.77778M22.2222 4.88889C22.2222 4.31752 22.3917 3.75898 22.7091 3.28391C23.0265 2.80883 23.4777 2.43856 24.0056 2.2199C24.5335 2.00125 25.1143 1.94404 25.6747 2.05551C26.2351 2.16698 26.7498 2.44212 27.1539 2.84614C27.5579 3.25016 27.833 3.76491 27.9445 4.3253C28 4.88569 27.9987 5.46654 27.7801 5.99442C27.5614 6.5223 27.1912 6.97348 26.7161 7.29091C26.241 7.60835 25.6825 7.77778 25.1111 7.77778M25.1111 7.77778V22.2222M25.1111 22.2222C24.3449 22.2222 23.6101 22.5266 23.0684 23.0684C22.5266 23.6101 22.2222 24.3449 22.2222 25.1111M25.1111 22.2222C25.6825 22.2222 26.241 22.3917 26.7161 22.7091C27.1912 23.0265 27.5614 23.4777 27.7801 24.0056C27.9987 24.5335 28 25.1143 27.9445 25.6747C27.833 26.2351 27.5579 26.7498 27.1539 27.1539C26.7498 27.5579 26.2351 27.833 25.6747 27.9445C25.1143 28.056 24.5335 27.9987 24.0056 27.7801C23.4777 27.5614 23.0265 27.1912 22.7091 26.7161C22.3917 26.241 22.2222 25.6825 22.2222 25.1111'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ReminderIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M2 5.22256L6.55 2M28 5.22256L23.45 2M26.5556 16.4444C26.5556 19.5092 25.3381 22.4484 23.171 24.6155C21.0039 26.7825 18.0647 28 15 28C11.9353 28 8.99608 26.7825 6.82899 24.6155C4.6619 22.4484 3.44444 19.5092 3.44444 16.4444C3.44444 13.3797 4.6619 10.4405 6.82899 8.27343C8.99608 6.10635 11.9353 4.88889 15 4.88889C18.0647 4.88889 21.0039 6.10635 23.171 8.27343C25.3381 10.4405 26.5556 13.3797 26.5556 16.4444Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M15 9.94446V17.1667L19.3333 20.0556'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function DatabaseIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='33'
|
||||
viewBox='0 0 30 33'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M28 16.2188C28 23.8026 2 23.8026 2 16.2188M15 2C7.82075 2 2 4.09625 2 6.68C2 13.44 28 13.44 28 6.68C28 4.09625 22.1793 2 15 2Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M2 6.875V26.6431C2 32.7856 28 32.7856 28 26.6431V6.875'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CrateIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15 28L26.7448 21.9218C27.2012 21.6849 27.4294 21.5679 27.5956 21.3931C27.7427 21.2398 27.8541 21.0558 27.922 20.8544C28 20.6247 28 20.369 28 19.8548V8.5477M15 28L3.25522 21.9218C2.79878 21.6849 2.57056 21.5679 2.40444 21.3931C2.25732 21.2398 2.14585 21.0558 2.078 20.8544C2 20.6247 2 20.3676 2 19.8519V8.5477M15 28V14.909M28 8.5477L15 14.909M28 8.5477L16.0544 2.36548C15.6688 2.16614 15.4767 2.06503 15.273 2.02603C15.0927 1.99132 14.9073 1.99132 14.727 2.02603C14.5248 2.06503 14.3312 2.16614 13.9441 2.36548L2 8.5477M2 8.5477L15 14.909'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CookieIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M19.3368 21.2951L19.8483 20.7836M12.1124 22.74L12.6239 22.2285M9.22264 9.73606L9.73269 9.22457M7.77776 16.9605L8.28781 16.449M15.0022 15.5156L15.5137 15.0041M15.0065 28.008C18.3701 28.0079 21.6029 26.7048 24.0264 24.3724C26.4499 22.0399 27.8758 18.8594 28.0047 15.4982C28.0133 15.2772 27.7735 15.137 27.5741 15.2367C23.9966 17.0385 21.7859 15.1255 22.1457 12.5579C22.1518 12.5083 22.1467 12.458 22.1306 12.4106C22.1146 12.3633 22.0881 12.3201 22.0531 12.2845C22.0181 12.2488 21.9755 12.2214 21.9285 12.2045C21.8815 12.1875 21.8313 12.1814 21.7815 12.1866C18.6447 12.6244 17.3226 10.7215 17.8168 8.13513C17.8241 8.09108 17.8223 8.04599 17.8115 8.00267C17.8006 7.95935 17.7809 7.91873 17.7537 7.88335C17.7264 7.84796 17.6922 7.81857 17.6531 7.79701C17.614 7.77545 17.5708 7.76218 17.5264 7.75802C14.5745 7.49505 14.3303 4.08802 14.8375 2.42641C14.8996 2.22123 14.7522 1.99294 14.5384 2.00017C11.1323 2.12457 7.91116 3.58078 5.56769 6.05559C3.22422 8.53041 1.94565 11.8261 2.00699 15.2339C2.06833 18.6416 3.46468 21.8892 5.89569 24.2781C8.32671 26.6669 11.5982 28.0063 15.0065 28.008Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ErrorIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15 8.68344V16.6279M15 21.3166V20.5943M28 15C28 16.7072 27.6637 18.3977 27.0104 19.9749C26.3571 21.5521 25.3995 22.9852 24.1924 24.1924C22.9852 25.3995 21.5521 26.3571 19.9749 27.0104C18.3977 27.6637 16.7072 28 15 28C13.2928 28 11.6023 27.6637 10.0251 27.0104C8.44788 26.3571 7.01477 25.3995 5.80761 24.1924C4.60045 22.9852 3.64288 21.5521 2.98957 19.9749C2.33625 18.3977 2 16.7072 2 15C2 11.5522 3.36964 8.24558 5.80761 5.80761C8.24558 3.36964 11.5522 2 15 2C18.4478 2 21.7544 3.36964 24.1924 5.80761C26.6304 8.24558 28 11.5522 28 15Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ChromeIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M13.5442 27.9221L19.4982 17.6001M4.53516 7.27808L10.5022 17.6001M26.9212 9.80008H15.0002M15.0002 9.80008C16.3793 9.80008 17.7019 10.3479 18.6771 11.3231C19.6523 12.2983 20.2002 13.621 20.2002 15.0001C20.2002 16.3792 19.6523 17.7018 18.6771 18.677C17.7019 19.6522 16.3793 20.2001 15.0002 20.2001C13.621 20.2001 12.2984 19.6522 11.3232 18.677C10.348 17.7018 9.80016 16.3792 9.80016 15.0001C9.80016 13.621 10.348 12.2983 11.3232 11.3231C12.2984 10.3479 13.621 9.80008 15.0002 9.80008Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M15 28C16.7072 28 18.3977 27.6637 19.9749 27.0104C21.5521 26.3571 22.9852 25.3995 24.1924 24.1924C25.3995 22.9852 26.3571 21.5521 27.0104 19.9749C27.6637 18.3977 28 16.7072 28 15C28 13.2928 27.6637 11.6023 27.0104 10.0251C26.3571 8.44788 25.3995 7.01477 24.1924 5.80761C22.9852 4.60045 21.5521 3.64288 19.9749 2.98957C18.3977 2.33625 16.7072 2 15 2C11.5522 2 8.24558 3.36964 5.80761 5.80761C3.36964 8.24558 2 11.5522 2 15C2 18.4478 3.36964 21.7544 5.80761 24.1924C8.24558 26.6304 11.5522 28 15 28Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CalendarIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -718,250 +334,6 @@ export function ChartBarIcon(props: SVGProps<SVGSVGElement>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function AtomIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M19.9206 10.079C26.5651 16.7235 29.7457 24.3111 27.0273 27.0296C24.3117 29.7466 16.7212 26.5645 10.0782 19.9215C3.43516 13.2785 0.253045 5.68936 2.97149 2.97092C5.68705 0.253917 13.2762 3.43603 19.9206 10.079Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M14.6383 15.0001H15.3605M10.0796 10.0789C3.43514 16.7234 0.253025 24.311 2.97147 27.0295C5.68992 29.7479 13.2776 26.5644 19.9206 19.9214C26.5636 13.2783 29.7471 5.68923 27.0287 2.97079C24.3103 0.252343 16.7226 3.4359 10.0796 10.0789Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ElevatorIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='29'
|
||||
height='40'
|
||||
viewBox='0 0 29 40'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M14.5 12.588H23.5C24.5609 12.588 25.5783 13.0094 26.3284 13.7596C27.0786 14.5097 27.5 15.5271 27.5 16.588V34C27.5 35.0609 27.0786 36.0783 26.3284 36.8284C25.5783 37.5786 24.5609 38 23.5 38H14.5M14.5 12.588H5.5C4.43913 12.588 3.42172 13.0094 2.67157 13.7596C1.92143 14.5097 1.5 15.5271 1.5 16.588V34C1.5 35.0609 1.92143 36.0783 2.67157 36.8284C3.42172 37.5786 4.43913 38 5.5 38H14.5M14.5 12.588V38M4.75 5.176L8 2L11.25 5.176M17.75 2L21 5.176L24.25 2'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function DollarIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='43'
|
||||
viewBox='0 0 30 43'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M25.8333 6.33333H15M15 6.33333H9.58333C7.57211 6.33333 5.64326 7.13229 4.22111 8.55444C2.79896 9.97659 2 11.9054 2 13.9167C2 15.9279 2.79896 17.8567 4.22111 19.2789C5.64326 20.701 7.57211 21.5 9.58333 21.5H15M15 6.33333V2M15 6.33333V21.5M15 21.5H20.4167C21.4125 21.5 22.3986 21.6961 23.3187 22.0772C24.2387 22.4583 25.0747 23.0169 25.7789 23.7211C26.4831 24.4253 27.0417 25.2613 27.4228 26.1813C27.8039 27.1014 28 28.0875 28 29.0833C28 30.0792 27.8039 31.0653 27.4228 31.9853C27.0417 32.9054 26.4831 33.7414 25.7789 34.4456C25.0747 35.1497 24.2387 35.7083 23.3187 36.0894C22.3986 36.4705 21.4125 36.6667 20.4167 36.6667H15M15 21.5V36.6667M15 36.6667H2M15 36.6667V41'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CreditCardIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='24'
|
||||
viewBox='0 0 30 24'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M2 7.77778V6.62222C2 5.00444 2 4.19556 2.31489 3.57733C2.59222 3.03278 3.03278 2.59222 3.57733 2.31489C4.19556 2 5.00444 2 6.62222 2H23.3778C24.9956 2 25.8044 2 26.4212 2.31489C26.9658 2.59222 27.4078 3.03278 27.6851 3.57733C28 4.19411 28 5.003 28 6.61789V7.77778M2 7.77778H28M2 7.77778V17.6C2 19.2178 2 20.0267 2.31489 20.6449C2.59185 21.1884 3.03378 21.6304 3.57733 21.9073C4.19411 22.2222 5.003 22.2222 6.61789 22.2222H23.3821C24.997 22.2222 25.8044 22.2222 26.4212 21.9073C26.9658 21.63 27.4078 21.188 27.6851 20.6449C28 20.0267 28 19.2207 28 17.6058V7.77778M6.33333 16.4444H12.1111'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function BoatIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M4.6 22.5024L3.73767 17.6737C3.61597 16.9932 3.74231 16.2917 4.09374 15.6964C4.44517 15.1011 4.99841 14.6516 5.653 14.4294L5.89856 14.3457M5.89856 14.3457L14.0727 11.5723C14.6741 11.3685 15.3259 11.3685 15.9273 11.5723L24.1 14.3457M5.89856 14.3457L5.9 8.85678C5.9 8.0906 6.20436 7.3558 6.74614 6.81402C7.28791 6.27225 8.02271 5.96789 8.78889 5.96789H12.4M24.1 14.3457L24.3456 14.4294C25.0004 14.6513 25.554 15.1007 25.9057 15.696C26.2574 16.2913 26.384 16.993 26.2623 17.6737L25.4 22.501M24.1 14.3457V8.85678C24.1 8.0906 23.7956 7.3558 23.2539 6.81402C22.7121 6.27225 21.9773 5.96789 21.2111 5.96789H17.6M12.4 5.96789H17.6M12.4 5.96789V4.6C12.4 3.91044 12.6739 3.24912 13.1615 2.76152C13.6491 2.27393 14.3104 2 15 2C15.6896 2 16.3509 2.27393 16.8385 2.76152C17.3261 3.24912 17.6 3.91044 17.6 4.6V5.96789M2 27.1319C2.93456 28.0809 5.20956 28.3496 7.38056 27.4439C8.87122 26.8228 10.7548 26.8069 12.2787 27.3413C14.0429 27.9438 15.9571 27.9438 17.7213 27.3413C19.2452 26.8069 21.1288 26.8213 22.618 27.4424C24.7904 28.3496 27.0669 28.0809 28 27.1304'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CancelIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M28 15C28 16.7072 27.6637 18.3977 27.0104 19.9749C26.3571 21.5521 25.3995 22.9852 24.1924 24.1924C22.9852 25.3995 21.5521 26.3571 19.9749 27.0104C18.3977 27.6637 16.7072 28 15 28C13.2928 28 11.6023 27.6637 10.0251 27.0104C8.44788 26.3571 7.01477 25.3995 5.80761 24.1924C4.60045 22.9852 3.64288 21.5521 2.98957 19.9749C2.33625 18.3977 2 16.7072 2 15C2 11.5522 3.36964 8.24558 5.80761 5.80761C8.24558 3.36964 11.5522 2 15 2C18.4478 2 21.7544 3.36964 24.1924 5.80761C26.6304 8.24558 28 11.5522 28 15Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<path
|
||||
d='M23.6667 6.33333L6.33333 23.6667'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function BankIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M15 10.5797V23.6664M22.2222 10.5797V23.6664M7.77778 10.5797V23.6664M15.6457 2.15283L26.8603 7.79772C28.2239 8.48383 27.7386 10.5523 26.2147 10.5523H3.78533C2.26144 10.5523 1.77611 8.48383 3.13967 7.79772L14.3543 2.15283C14.5548 2.05264 14.7759 2.00049 15 2.00049C15.2241 2.00049 15.4452 2.05264 15.6457 2.15283ZM25.8333 27.9997H4.16667C3.59203 27.9997 3.04093 27.7714 2.6346 27.3651C2.22827 26.9588 2 26.4077 2 25.8331C2 25.2584 2.22827 24.7073 2.6346 24.301C3.04093 23.8947 3.59203 23.6664 4.16667 23.6664H25.8333C26.408 23.6664 26.9591 23.8947 27.3654 24.301C27.7717 24.7073 28 25.2584 28 25.8331C28 26.4077 27.7717 26.9588 27.3654 27.3651C26.9591 27.7714 26.408 27.9997 25.8333 27.9997Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function AmbulanceIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='24'
|
||||
viewBox='0 0 30 24'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M7.63333 9.22222H13.4111M10.5222 6.33333V12.1111M10.9657 18.5461C10.9657 20.5756 9.35944 22.2222 7.37911 22.2222C5.39878 22.2222 3.79256 20.5756 3.79256 18.5447M10.9657 18.5461C10.9657 16.5167 9.35944 14.8686 7.37911 14.8686C5.39878 14.8686 3.79256 16.5152 3.79256 18.5447M10.9657 18.5461L19.0343 18.5447M3.79256 18.5447H2V3.44444C2 3.06135 2.15218 2.69395 2.42307 2.42307C2.69395 2.15218 3.06135 2 3.44444 2H17.5899C17.973 2 18.3404 2.15218 18.6113 2.42307C18.8822 2.69395 19.0343 3.06135 19.0343 3.44444V6.59622M19.0343 18.5447H19.9313M19.0343 18.5447V6.59622M19.0343 6.59622H22.3002C22.6854 6.59626 23.0667 6.67334 23.4217 6.82292C23.7767 6.9725 24.0982 7.19157 24.3672 7.46722L28 11.1924V18.5447H27.103M27.103 18.5447C27.103 20.5756 25.4982 22.2222 23.5179 22.2222C21.5376 22.2222 19.9313 20.5756 19.9313 18.5447M27.103 18.5447C27.103 16.5152 25.4982 14.8686 23.5179 14.8686C21.5376 14.8686 19.9313 16.5152 19.9313 18.5447'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ComponentIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M10.45 6.55L15 2L19.55 6.55L15 11.1L10.45 6.55ZM18.9 15.65L23.45 11.1L28 15.65L23.45 20.2L18.9 15.65ZM10.45 23.45L15 18.9L19.55 23.45L15 28L10.45 23.45ZM2 15L6.55 10.45L11.1 15L6.55 19.55L2 15Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function BrightIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='30'
|
||||
viewBox='0 0 30 30'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M2 15H6.33333M4.88889 4.88889L7.95256 7.95256M25.1111 4.88889L22.0474 7.95256M4.88889 25.1111L7.95256 22.0474M25.1111 25.1111L22.0474 22.0474M15 2V6.33333M15 28V23.6667M23.6667 15H28M19.3333 15C19.3333 16.1493 18.8768 17.2515 18.0641 18.0641C17.2515 18.8768 16.1493 19.3333 15 19.3333C13.8507 19.3333 12.7485 18.8768 11.9359 18.0641C11.1232 17.2515 10.6667 16.1493 10.6667 15C10.6667 13.8507 11.1232 12.7485 11.9359 11.9359C12.7485 11.1232 13.8507 10.6667 15 10.6667C16.1493 10.6667 17.2515 11.1232 18.0641 11.9359C18.8768 12.7485 19.3333 13.8507 19.3333 15Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function CrewAIIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='24'
|
||||
height='26'
|
||||
viewBox='0 0 24 26'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M12.0566 1.18005C6.73561 2.31905 1.05261 10.0691 1.00061 16.3721C0.94961 21.8991 4.10061 25.0521 9.68061 24.9991C16.3966 24.9491 23.9396 18.1291 21.7706 14.0991C21.0986 12.8071 20.3746 12.7551 19.0836 13.8921C17.4816 15.2871 17.4296 14.2021 18.8766 10.9991C20.6336 7.01905 20.5816 5.67705 18.5666 3.45505C16.6046 1.38805 14.5366 0.61105 12.0566 1.18005ZM17.3786 3.24805C19.6516 5.26305 19.7546 7.48405 17.8436 11.6681C16.4486 14.7681 15.6736 15.1831 14.0196 13.5281C12.7796 12.2881 12.6766 10.0681 13.7616 7.48405C14.8986 4.84905 14.7436 4.38405 13.1936 5.83105C9.47361 9.18905 6.73561 15.596 7.76961 18.334C8.23361 19.523 8.59461 19.729 10.5066 19.729C13.2966 19.729 16.8096 18.0241 18.4636 15.8031C20.2196 13.5291 21.2536 13.5291 21.2536 15.7511C21.2536 19.6261 14.7946 24.378 9.62861 24.378C3.37761 24.378 0.27761 19.6261 2.13761 12.9081C3.01561 9.91305 6.58061 5.00405 9.21461 3.24805C12.4696 1.07805 14.8986 1.07805 17.3786 3.24805Z'
|
||||
stroke='currentColor'
|
||||
fill='currentColor'
|
||||
strokeWidth='1.25'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function HubspotIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
@@ -1464,10 +836,17 @@ export function DiscordIcon(props: SVGProps<SVGSVGElement>) {
|
||||
|
||||
export function LinkedInIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='4 4 42 42' width='1em' height='1em'>
|
||||
<svg
|
||||
{...props}
|
||||
fill='currentColor'
|
||||
height='72'
|
||||
viewBox='0 0 72 72'
|
||||
width='72'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M62,62 L51.315625,62 L51.315625,43.8021149 C51.315625,38.8127542 49.4197917,36.0245323 45.4707031,36.0245323 C41.1746094,36.0245323 38.9300781,38.9261103 38.9300781,43.8021149 L38.9300781,62 L28.6333333,62 L28.6333333,27.3333333 L38.9300781,27.3333333 L38.9300781,32.0029283 C38.9300781,32.0029283 42.0260417,26.2742151 49.3825521,26.2742151 C56.7356771,26.2742151 62,30.7644705 62,40.051212 L62,62 Z M16.349349,22.7940133 C12.8420573,22.7940133 10,19.9296567 10,16.3970067 C10,12.8643566 12.8420573,10 16.349349,10 C19.8566406,10 22.6970052,12.8643566 22.6970052,16.3970067 C22.6970052,19.9296567 19.8566406,22.7940133 16.349349,22.7940133 Z M11.0325521,62 L21.769401,62 L21.769401,27.3333333 L11.0325521,27.3333333 L11.0325521,62 Z'
|
||||
fill='currentColor'
|
||||
d='M41,4H9C6.24,4,4,6.24,4,9v32c0,2.76,2.24,5,5,5h32c2.76,0,5-2.24,5-5V9C46,6.24,43.76,4,41,4z M17,20v19h-6V20H17z M11,14.47c0-1.4,1.2-2.47,3-2.47s2.93,1.07,3,2.47c0,1.4-1.12,2.53-3,2.53C12.2,17,11,15.87,11,14.47z M39,39h-6c0,0,0-9.26,0-10 c0-2-1-4-3.5-4.04h-0.08C27,24.96,26,27.02,26,29c0,0.91,0,10,0,10h-6V20h6v2.56c0,0,1.93-2.56,5.81-2.56 c3.97,0,7.19,2.73,7.19,8.26V39z'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
@@ -4344,3 +3723,143 @@ export function PylonIcon(props: SVGProps<SVGSVGElement>) {
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SendgridIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='800px'
|
||||
height='800px'
|
||||
viewBox='0 0 256 256'
|
||||
version='1.1'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
xmlnsXlink='http://www.w3.org/1999/xlink'
|
||||
preserveAspectRatio='xMidYMid'
|
||||
>
|
||||
<g>
|
||||
<path
|
||||
d='M256.000405,0 L256.000405,170.666936 L170.666936,170.666936 L170.666936,255.996382 L0.00201096905,255.996382 L0.002,170.666 L0,170.666936 L0,85.3314569 L85.3334681,85.3314569 L85.3334681,0 L256.000405,0 Z'
|
||||
fill='#9DD6E3'
|
||||
/>
|
||||
<polygon
|
||||
fill='#3F72AB'
|
||||
points='0.00201096905 255.996382 85.3354791 255.996382 85.3354791 170.662915 0.00201096905 170.662915'
|
||||
/>
|
||||
<polygon
|
||||
fill='#00A9D1'
|
||||
points='170.666936 170.666936 256.000405 170.666936 256.000405 85.3314569 170.666936 85.3314569'
|
||||
/>
|
||||
<polygon
|
||||
fill='#00A9D1'
|
||||
points='85.3334681 85.3334679 170.666936 85.3334679 170.666936 0 85.3334681 0'
|
||||
/>
|
||||
<polygon
|
||||
fill='#2191C4'
|
||||
points='85.3334681 170.664925 170.666936 170.664925 170.666936 85.3314569 85.3334681 85.3314569'
|
||||
/>
|
||||
<polygon
|
||||
fill='#3F72AB'
|
||||
points='170.666936 85.3334679 256.000405 85.3334679 256.000405 0 170.666936 0'
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function MailgunIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
fill='currentColor'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
xmlSpace='preserve'
|
||||
viewBox='0 0 512 512'
|
||||
>
|
||||
<path d='M256.5 159.5c-53.5 0-97 43.5-97 97s43.5 97 97 97 97-43.5 97-97-43.5-97-97-97m-151.1 97c0-83.4 67.7-151.1 151.1-151.1s151.1 67.7 151.1 151.1c0 5.8-.5 11-1 16.3-1 14.7 9.4 25.7 24.1 25.7 24.7 0 27.3-32 27.3-42.5 0-111.7-90.2-202-202-202S54 144.3 54 256s90.2 202 202 202c59.3 0 112.3-25.7 149.5-66.1l41.4 34.6C400.3 479 332.1 512 256 512 114.4 512 0 397.1 0 256 0 114.4 114.9 0 256 0c141.6 0 256 114.9 256 256 0 56.7-27.3 102.8-81.3 102.8-24.1 0-38.3-11-46.7-23.1-26.8 43-74 71.3-128.5 71.3-82.4.6-150.1-67.1-150.1-150.5m151.1-44.6c24.7 0 44.6 19.9 44.6 44.1 0 24.7-19.9 44.6-44.6 44.6s-44.6-19.9-44.6-44.6c.6-24.1 20-44.1 44.6-44.1' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function SmtpIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='30'
|
||||
height='24'
|
||||
viewBox='0 0 30 24'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M2.35742 5.83288L11.7674 12.1071C13.0656 12.9712 13.7141 13.404 14.4151 13.5725C15.0352 13.7208 15.681 13.7208 16.2998 13.5725C17.0008 13.404 17.6492 12.9712 18.9475 12.1071L28.3574 5.83288M8.82844 21.7219H21.8864C24.1513 21.7219 25.2837 21.7219 26.1492 21.2811C26.9097 20.8931 27.5278 20.2744 27.9152 19.5137C28.3574 18.6482 28.3574 17.5158 28.3574 15.2509V7.97102C28.3574 5.70616 28.3574 4.57373 27.9166 3.70823C27.5288 2.94727 26.9102 2.32858 26.1492 1.94084C25.2837 1.5 24.1513 1.5 21.8864 1.5H8.82844C6.56358 1.5 5.43115 1.5 4.56566 1.94084C3.80519 2.32881 3.187 2.94747 2.79961 3.70823C2.35742 4.57373 2.35742 5.70616 2.35742 7.97102V15.2509C2.35742 17.5158 2.35742 18.6482 2.79826 19.5137C3.186 20.2747 3.80469 20.8933 4.56566 21.2811C5.43115 21.7219 6.56358 21.7219 8.82844 21.7219Z'
|
||||
stroke='currentColor'
|
||||
strokeWidth='2.5'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
/>
|
||||
<circle cx='24' cy='6' r='4' fill='currentColor' stroke='none' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export function ApifyIcon(props: SVGProps<SVGSVGElement>) {
|
||||
return (
|
||||
<svg
|
||||
{...props}
|
||||
width='200'
|
||||
height='200'
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<g clipPath='url(#clip0_267_4154)'>
|
||||
<path
|
||||
d='M114.695 0H196.97C198.643 0 200 1.35671 200 3.03031V128.766C200 131.778 196.083 132.945 194.434 130.425L112.159 4.68953C110.841 2.67412 112.287 0 114.695 0Z'
|
||||
fill='#246DFF'
|
||||
/>
|
||||
<path
|
||||
d='M85.3048 0H3.0303C1.35671 0 0 1.35671 0 3.03031V128.766C0 131.778 3.91698 132.945 5.566 130.425L87.8405 4.68953C89.1593 2.67412 87.7134 0 85.3048 0Z'
|
||||
fill='#20A34E'
|
||||
/>
|
||||
<path
|
||||
d='M98.5909 100.668L5.12683 194.835C3.22886 196.747 4.58334 200 7.27759 200H192.8C195.483 200 196.842 196.77 194.967 194.852L102.908 100.685C101.726 99.4749 99.7824 99.4676 98.5909 100.668Z'
|
||||
fill='#F86606'
|
||||
/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id='clip0_267_4154'>
|
||||
<rect width='200' height='200' fill='white' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
interface StatusDotIconProps extends SVGProps<SVGSVGElement> {
|
||||
status: 'operational' | 'degraded' | 'outage' | 'maintenance' | 'loading' | 'error'
|
||||
}
|
||||
|
||||
export function StatusDotIcon({ status, className, ...props }: StatusDotIconProps) {
|
||||
const colors = {
|
||||
operational: '#10B981',
|
||||
degraded: '#F59E0B',
|
||||
outage: '#EF4444',
|
||||
maintenance: '#3B82F6',
|
||||
loading: '#9CA3AF',
|
||||
error: '#9CA3AF',
|
||||
}
|
||||
|
||||
return (
|
||||
<svg
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width={6}
|
||||
height={6}
|
||||
viewBox='0 0 6 6'
|
||||
fill='none'
|
||||
className={className}
|
||||
{...props}
|
||||
>
|
||||
<circle cx={3} cy={3} r={3} fill={colors[status]} />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
33
apps/sim/components/ui/verified-badge.tsx
Normal file
33
apps/sim/components/ui/verified-badge.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
interface VerifiedBadgeProps {
|
||||
className?: string
|
||||
size?: 'sm' | 'md' | 'lg'
|
||||
}
|
||||
|
||||
export function VerifiedBadge({ className, size = 'md' }: VerifiedBadgeProps) {
|
||||
const sizeMap = {
|
||||
sm: 12,
|
||||
md: 14,
|
||||
lg: 16,
|
||||
}
|
||||
|
||||
const dimension = sizeMap[size]
|
||||
|
||||
return (
|
||||
<div className={cn('inline-flex flex-shrink-0', className)} title='Verified Creator'>
|
||||
<svg
|
||||
width={dimension}
|
||||
height={dimension}
|
||||
viewBox='0 0 16 16'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
>
|
||||
<path
|
||||
d='M16 8.375C16 8.93437 15.8656 9.45312 15.5969 9.92813C15.3281 10.4031 14.9688 10.775 14.5156 11.0344C14.5281 11.1188 14.5344 11.25 14.5344 11.4281C14.5344 12.275 14.25 12.9937 13.6875 13.5875C13.1219 14.1844 12.4406 14.4812 11.6438 14.4812C11.2875 14.4812 10.9469 14.4156 10.625 14.2844C10.375 14.7969 10.0156 15.2094 9.54375 15.525C9.075 15.8438 8.55937 16 8 16C7.42812 16 6.90938 15.8469 6.44688 15.5344C5.98125 15.225 5.625 14.8094 5.375 14.2844C5.05312 14.4156 4.71562 14.4812 4.35625 14.4812C3.55937 14.4812 2.875 14.1844 2.30312 13.5875C1.73125 12.9937 1.44687 12.2719 1.44687 11.4281C1.44687 11.3344 1.45938 11.2031 1.48125 11.0344C1.02813 10.7719 0.66875 10.4031 0.4 9.92813C0.134375 9.45312 0 8.93437 0 8.375C0 7.78125 0.15 7.23438 0.446875 6.74062C0.74375 6.24687 1.14375 5.88125 1.64375 5.64375C1.5125 5.2875 1.44687 4.92812 1.44687 4.57188C1.44687 3.72813 1.73125 3.00625 2.30312 2.4125C2.875 1.81875 3.55937 1.51875 4.35625 1.51875C4.7125 1.51875 5.05312 1.58438 5.375 1.71563C5.625 1.20312 5.98438 0.790625 6.45625 0.475C6.925 0.159375 7.44063 0 8 0C8.55937 0 9.075 0.159375 9.54375 0.471875C10.0125 0.7875 10.375 1.2 10.625 1.7125C10.9469 1.58125 11.2844 1.51562 11.6438 1.51562C12.4406 1.51562 13.1219 1.8125 13.6875 2.40937C14.2531 3.00625 14.5344 3.725 14.5344 4.56875C14.5344 4.9625 14.475 5.31875 14.3562 5.64062C14.8562 5.87813 15.2563 6.24375 15.5531 6.7375C15.85 7.23438 16 7.78125 16 8.375ZM7.65938 10.7844L10.9625 5.8375C11.0469 5.70625 11.0719 5.5625 11.0437 5.40938C11.0125 5.25625 10.9344 5.13438 10.8031 5.05312C10.6719 4.96875 10.5281 4.94063 10.375 4.9625C10.2188 4.9875 10.0938 5.0625 10 5.19375L7.09062 9.56875L5.75 8.23125C5.63125 8.1125 5.49375 8.05625 5.34062 8.0625C5.18437 8.06875 5.05 8.125 4.93125 8.23125C4.825 8.3375 4.77187 8.47187 4.77187 8.63437C4.77187 8.79375 4.825 8.92813 4.93125 9.0375L6.77187 10.8781L6.8625 10.95C6.96875 11.0219 7.07812 11.0562 7.18437 11.0562C7.39375 11.0531 7.55313 10.9656 7.65938 10.7844Z'
|
||||
fill='#33B4FF'
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -318,48 +318,49 @@ describe('GenericBlockHandler', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it.concurrent('should not process cost info for non-knowledge tools', async () => {
|
||||
// Set up non-knowledge tool
|
||||
mockBlock.config.tool = 'some_other_tool'
|
||||
mockTool.id = 'some_other_tool'
|
||||
it.concurrent(
|
||||
'should process cost info for all tools (universal cost extraction)',
|
||||
async () => {
|
||||
mockBlock.config.tool = 'some_other_tool'
|
||||
mockTool.id = 'some_other_tool'
|
||||
|
||||
mockGetTool.mockImplementation((toolId) => {
|
||||
if (toolId === 'some_other_tool') {
|
||||
return mockTool
|
||||
mockGetTool.mockImplementation((toolId) => {
|
||||
if (toolId === 'some_other_tool') {
|
||||
return mockTool
|
||||
}
|
||||
return undefined
|
||||
})
|
||||
|
||||
const inputs = { param: 'value' }
|
||||
const mockToolResponse = {
|
||||
success: true,
|
||||
output: {
|
||||
result: 'success',
|
||||
cost: {
|
||||
input: 0.001,
|
||||
output: 0.002,
|
||||
total: 0.003,
|
||||
tokens: { prompt: 100, completion: 50, total: 150 },
|
||||
model: 'some-model',
|
||||
},
|
||||
},
|
||||
}
|
||||
return undefined
|
||||
})
|
||||
|
||||
const inputs = { param: 'value' }
|
||||
const mockToolResponse = {
|
||||
success: true,
|
||||
output: {
|
||||
mockExecuteTool.mockResolvedValue(mockToolResponse)
|
||||
|
||||
const result = await handler.execute(mockContext, mockBlock, inputs)
|
||||
|
||||
expect(result).toEqual({
|
||||
result: 'success',
|
||||
cost: {
|
||||
input: 0.001,
|
||||
output: 0.002,
|
||||
total: 0.003,
|
||||
tokens: { prompt: 100, completion: 50, total: 150 },
|
||||
model: 'some-model',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
mockExecuteTool.mockResolvedValue(mockToolResponse)
|
||||
|
||||
const result = await handler.execute(mockContext, mockBlock, inputs)
|
||||
|
||||
// Should return original output without cost transformation
|
||||
expect(result).toEqual({
|
||||
result: 'success',
|
||||
cost: {
|
||||
input: 0.001,
|
||||
output: 0.002,
|
||||
total: 0.003,
|
||||
tokens: { prompt: 100, completion: 50, total: 150 },
|
||||
model: 'some-model',
|
||||
},
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -104,7 +104,7 @@ export class GenericBlockHandler implements BlockHandler {
|
||||
const output = result.output
|
||||
let cost = null
|
||||
|
||||
if (block.config.tool?.startsWith('knowledge_') && output?.cost) {
|
||||
if (output?.cost) {
|
||||
cost = output.cost
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ export function useOrganizations() {
|
||||
* Fetch creator profile for a user
|
||||
*/
|
||||
async function fetchCreatorProfile(userId: string): Promise<CreatorProfile | null> {
|
||||
const response = await fetch(`/api/creator-profiles?userId=${userId}`)
|
||||
const response = await fetch(`/api/creators?userId=${userId}`)
|
||||
|
||||
// Treat 404 as "no profile"
|
||||
if (response.status === 404) {
|
||||
@@ -133,9 +133,7 @@ export function useSaveCreatorProfile() {
|
||||
details: details && Object.keys(details).length > 0 ? details : undefined,
|
||||
}
|
||||
|
||||
const url = existingProfileId
|
||||
? `/api/creator-profiles/${existingProfileId}`
|
||||
: '/api/creator-profiles'
|
||||
const url = existingProfileId ? `/api/creators/${existingProfileId}` : '/api/creators'
|
||||
const method = existingProfileId ? 'PUT' : 'POST'
|
||||
|
||||
const response = await fetch(url, {
|
||||
|
||||
@@ -257,7 +257,7 @@ export function useUpdateOrganizationUsageLimit() {
|
||||
*/
|
||||
interface InviteMemberParams {
|
||||
email: string
|
||||
workspaceInvitations?: Array<{ id: string; name: string }>
|
||||
workspaceInvitations?: Array<{ workspaceId: string; permission: 'admin' | 'write' | 'read' }>
|
||||
orgId: string
|
||||
}
|
||||
|
||||
|
||||
42
apps/sim/hooks/queries/status.ts
Normal file
42
apps/sim/hooks/queries/status.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import type { StatusResponse } from '@/app/api/status/types'
|
||||
|
||||
/**
|
||||
* Query key factories for status-related queries
|
||||
* This ensures consistent cache invalidation across the app
|
||||
*/
|
||||
export const statusKeys = {
|
||||
all: ['status'] as const,
|
||||
current: () => [...statusKeys.all, 'current'] as const,
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch current system status from the API
|
||||
* The API proxies incident.io and caches for 2 minutes server-side
|
||||
*/
|
||||
async function fetchStatus(): Promise<StatusResponse> {
|
||||
const response = await fetch('/api/status')
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to fetch status')
|
||||
}
|
||||
|
||||
return response.json()
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook to fetch current system status
|
||||
* - Polls every 60 seconds to keep status up-to-date
|
||||
* - Refetches when user returns to tab for immediate updates
|
||||
* - Caches for 1 minute to reduce unnecessary requests
|
||||
*/
|
||||
export function useStatus() {
|
||||
return useQuery({
|
||||
queryKey: statusKeys.current(),
|
||||
queryFn: fetchStatus,
|
||||
staleTime: 60 * 1000, // 1 minute
|
||||
refetchInterval: 60 * 1000, // Poll every 60 seconds
|
||||
refetchOnWindowFocus: true, // Refetch when user returns to tab
|
||||
retry: 2,
|
||||
})
|
||||
}
|
||||
@@ -30,6 +30,7 @@ export interface TemplateCreator {
|
||||
email?: string
|
||||
website?: string
|
||||
profileImageUrl?: string | null
|
||||
verified?: boolean
|
||||
details?: {
|
||||
about?: string
|
||||
xUrl?: string
|
||||
|
||||
@@ -157,6 +157,7 @@ export const auth = betterAuth({
|
||||
'asana',
|
||||
'pipedrive',
|
||||
'hubspot',
|
||||
'linkedin',
|
||||
|
||||
// Common SSO provider patterns
|
||||
...SSO_TRUSTED_PROVIDERS,
|
||||
@@ -1585,6 +1586,54 @@ export const auth = betterAuth({
|
||||
}
|
||||
},
|
||||
},
|
||||
// LinkedIn provider
|
||||
{
|
||||
providerId: 'linkedin',
|
||||
clientId: env.LINKEDIN_CLIENT_ID as string,
|
||||
clientSecret: env.LINKEDIN_CLIENT_SECRET as string,
|
||||
authorizationUrl: 'https://www.linkedin.com/oauth/v2/authorization',
|
||||
tokenUrl: 'https://www.linkedin.com/oauth/v2/accessToken',
|
||||
userInfoUrl: 'https://api.linkedin.com/v2/userinfo',
|
||||
scopes: ['profile', 'openid', 'email', 'w_member_social'],
|
||||
responseType: 'code',
|
||||
accessType: 'offline',
|
||||
prompt: 'consent',
|
||||
redirectURI: `${getBaseUrl()}/api/auth/oauth2/callback/linkedin`,
|
||||
getUserInfo: async (tokens) => {
|
||||
try {
|
||||
logger.info('Fetching LinkedIn user profile')
|
||||
|
||||
const response = await fetch('https://api.linkedin.com/v2/userinfo', {
|
||||
headers: {
|
||||
Authorization: `Bearer ${tokens.accessToken}`,
|
||||
},
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
logger.error('Failed to fetch LinkedIn user info', {
|
||||
status: response.status,
|
||||
statusText: response.statusText,
|
||||
})
|
||||
throw new Error('Failed to fetch user info')
|
||||
}
|
||||
|
||||
const profile = await response.json()
|
||||
|
||||
return {
|
||||
id: profile.sub,
|
||||
name: profile.name || 'LinkedIn User',
|
||||
email: profile.email || `${profile.sub}@linkedin.user`,
|
||||
emailVerified: profile.email_verified || true,
|
||||
image: profile.picture || undefined,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error('Error in LinkedIn getUserInfo:', { error })
|
||||
return null
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
}),
|
||||
// Include SSO plugin when enabled
|
||||
|
||||
@@ -20,6 +20,11 @@ export const DEFAULT_ENTERPRISE_TIER_COST_LIMIT = 200
|
||||
*/
|
||||
export const BASE_EXECUTION_CHARGE = 0.001
|
||||
|
||||
/**
|
||||
* Fixed cost for search tool invocation (in dollars)
|
||||
*/
|
||||
export const SEARCH_TOOL_COST = 0.01
|
||||
|
||||
/**
|
||||
* Default threshold (in dollars) for incremental overage billing
|
||||
* When unbilled overage reaches this amount, an invoice item is created
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { db } from '@sim/db'
|
||||
import { member, subscription, user, userStats } from '@sim/db/schema'
|
||||
import { member, organization, subscription, user, userStats } from '@sim/db/schema'
|
||||
import { and, eq } from 'drizzle-orm'
|
||||
import { getHighestPrioritySubscription } from '@/lib/billing/core/subscription'
|
||||
import { getUserUsageData } from '@/lib/billing/core/usage'
|
||||
@@ -120,7 +120,6 @@ export async function calculateSubscriptionOverage(sub: {
|
||||
let totalOverage = 0
|
||||
|
||||
if (sub.plan === 'team') {
|
||||
// Team plan: sum all member usage
|
||||
const members = await db
|
||||
.select({ userId: member.userId })
|
||||
.from(member)
|
||||
@@ -132,13 +131,27 @@ export async function calculateSubscriptionOverage(sub: {
|
||||
totalTeamUsage += usage.currentUsage
|
||||
}
|
||||
|
||||
const orgData = await db
|
||||
.select({ departedMemberUsage: organization.departedMemberUsage })
|
||||
.from(organization)
|
||||
.where(eq(organization.id, sub.referenceId))
|
||||
.limit(1)
|
||||
|
||||
const departedUsage =
|
||||
orgData.length > 0 && orgData[0].departedMemberUsage
|
||||
? Number.parseFloat(orgData[0].departedMemberUsage)
|
||||
: 0
|
||||
|
||||
const totalUsageWithDeparted = totalTeamUsage + departedUsage
|
||||
const { basePrice } = getPlanPricing(sub.plan)
|
||||
const baseSubscriptionAmount = (sub.seats || 1) * basePrice
|
||||
totalOverage = Math.max(0, totalTeamUsage - baseSubscriptionAmount)
|
||||
totalOverage = Math.max(0, totalUsageWithDeparted - baseSubscriptionAmount)
|
||||
|
||||
logger.info('Calculated team overage', {
|
||||
subscriptionId: sub.id,
|
||||
totalTeamUsage,
|
||||
currentMemberUsage: totalTeamUsage,
|
||||
departedMemberUsage: departedUsage,
|
||||
totalUsage: totalUsageWithDeparted,
|
||||
baseSubscriptionAmount,
|
||||
totalOverage,
|
||||
})
|
||||
|
||||
@@ -239,126 +239,6 @@ export async function validateBulkInvitations(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Update organization seat count in subscription
|
||||
*/
|
||||
export async function updateOrganizationSeats(
|
||||
organizationId: string,
|
||||
newSeatCount: number,
|
||||
updatedBy: string
|
||||
): Promise<{ success: boolean; error?: string }> {
|
||||
try {
|
||||
const subscriptionRecord = await getOrganizationSubscription(organizationId)
|
||||
|
||||
if (!subscriptionRecord) {
|
||||
return { success: false, error: 'No active subscription found' }
|
||||
}
|
||||
|
||||
const memberCount = await db
|
||||
.select({ count: count() })
|
||||
.from(member)
|
||||
.where(eq(member.organizationId, organizationId))
|
||||
|
||||
const currentMembers = memberCount[0]?.count || 0
|
||||
|
||||
if (newSeatCount < currentMembers) {
|
||||
return {
|
||||
success: false,
|
||||
error: `Cannot reduce seats below current member count (${currentMembers})`,
|
||||
}
|
||||
}
|
||||
|
||||
await db
|
||||
.update(subscription)
|
||||
.set({
|
||||
seats: newSeatCount,
|
||||
})
|
||||
.where(eq(subscription.id, subscriptionRecord.id))
|
||||
|
||||
logger.info('Organization seat count updated', {
|
||||
organizationId,
|
||||
oldSeatCount: subscriptionRecord.seats,
|
||||
newSeatCount,
|
||||
updatedBy,
|
||||
})
|
||||
|
||||
return { success: true }
|
||||
} catch (error) {
|
||||
logger.error('Failed to update organization seats', {
|
||||
organizationId,
|
||||
newSeatCount,
|
||||
updatedBy,
|
||||
error,
|
||||
})
|
||||
|
||||
return {
|
||||
success: false,
|
||||
error: error instanceof Error ? error.message : 'Unknown error',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a user can be removed from an organization
|
||||
*/
|
||||
export async function validateMemberRemoval(
|
||||
organizationId: string,
|
||||
userIdToRemove: string,
|
||||
removedBy: string
|
||||
): Promise<{ canRemove: boolean; reason?: string }> {
|
||||
try {
|
||||
const memberRecord = await db
|
||||
.select({ role: member.role })
|
||||
.from(member)
|
||||
.where(and(eq(member.organizationId, organizationId), eq(member.userId, userIdToRemove)))
|
||||
.limit(1)
|
||||
|
||||
if (memberRecord.length === 0) {
|
||||
return { canRemove: false, reason: 'Member not found in organization' }
|
||||
}
|
||||
|
||||
if (memberRecord[0].role === 'owner') {
|
||||
return { canRemove: false, reason: 'Cannot remove organization owner' }
|
||||
}
|
||||
|
||||
const removerMemberRecord = await db
|
||||
.select({ role: member.role })
|
||||
.from(member)
|
||||
.where(and(eq(member.organizationId, organizationId), eq(member.userId, removedBy)))
|
||||
.limit(1)
|
||||
|
||||
if (removerMemberRecord.length === 0) {
|
||||
return { canRemove: false, reason: 'You are not a member of this organization' }
|
||||
}
|
||||
|
||||
const removerRole = removerMemberRecord[0].role
|
||||
const targetRole = memberRecord[0].role
|
||||
|
||||
if (removerRole === 'owner') {
|
||||
return userIdToRemove === removedBy
|
||||
? { canRemove: false, reason: 'Cannot remove yourself as owner' }
|
||||
: { canRemove: true }
|
||||
}
|
||||
|
||||
if (removerRole === 'admin') {
|
||||
return targetRole === 'member'
|
||||
? { canRemove: true }
|
||||
: { canRemove: false, reason: 'Insufficient permissions to remove this member' }
|
||||
}
|
||||
|
||||
return { canRemove: false, reason: 'Insufficient permissions' }
|
||||
} catch (error) {
|
||||
logger.error('Failed to validate member removal', {
|
||||
organizationId,
|
||||
userIdToRemove,
|
||||
removedBy,
|
||||
error,
|
||||
})
|
||||
|
||||
return { canRemove: false, reason: 'Validation failed' }
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get seat usage analytics for an organization
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
import { render } from '@react-email/components'
|
||||
import { db } from '@sim/db'
|
||||
import { member, subscription as subscriptionTable, user, userStats } from '@sim/db/schema'
|
||||
import {
|
||||
member,
|
||||
organization,
|
||||
subscription as subscriptionTable,
|
||||
user,
|
||||
userStats,
|
||||
} from '@sim/db/schema'
|
||||
import { and, eq, inArray } from 'drizzle-orm'
|
||||
import type Stripe from 'stripe'
|
||||
import PaymentFailedEmail from '@/components/emails/billing/payment-failed-email'
|
||||
@@ -291,6 +297,11 @@ export async function resetUsageForSubscription(sub: { plan: string | null; refe
|
||||
.where(eq(userStats.userId, m.userId))
|
||||
}
|
||||
}
|
||||
|
||||
await db
|
||||
.update(organization)
|
||||
.set({ departedMemberUsage: '0' })
|
||||
.where(eq(organization.id, sub.referenceId))
|
||||
} else {
|
||||
const currentStats = await db
|
||||
.select({
|
||||
|
||||
@@ -217,6 +217,8 @@ export const env = createEnv({
|
||||
WEBFLOW_CLIENT_ID: z.string().optional(), // Webflow OAuth client ID
|
||||
WEBFLOW_CLIENT_SECRET: z.string().optional(), // Webflow OAuth client secret
|
||||
TRELLO_API_KEY: z.string().optional(), // Trello API Key
|
||||
LINKEDIN_CLIENT_ID: z.string().optional(), // LinkedIn OAuth client ID
|
||||
LINKEDIN_CLIENT_SECRET: z.string().optional(), // LinkedIn OAuth client secret
|
||||
|
||||
// E2B Remote Code Execution
|
||||
E2B_ENABLED: z.string().optional(), // Enable E2B remote code execution
|
||||
|
||||
@@ -31,11 +31,11 @@ export function getTriggerOptions(): TriggerOption[] {
|
||||
const providerMap = new Map<string, TriggerOption>()
|
||||
|
||||
const coreTypes: TriggerOption[] = [
|
||||
{ value: 'manual', label: 'Manual', color: '#6b7280' }, // gray-500
|
||||
{ value: 'api', label: 'API', color: '#3b82f6' }, // blue-500
|
||||
{ value: 'schedule', label: 'Schedule', color: '#10b981' }, // green-500
|
||||
{ value: 'chat', label: 'Chat', color: '#8b5cf6' }, // purple-500
|
||||
{ value: 'webhook', label: 'Webhook', color: '#f97316' }, // orange-500 (for backward compatibility)
|
||||
{ value: 'manual', label: 'Manual', color: '#6b7280' },
|
||||
{ value: 'api', label: 'API', color: '#3b82f6' },
|
||||
{ value: 'schedule', label: 'Schedule', color: '#10b981' },
|
||||
{ value: 'chat', label: 'Chat', color: '#8b5cf6' },
|
||||
{ value: 'webhook', label: 'Webhook', color: '#f97316' },
|
||||
]
|
||||
|
||||
for (const trigger of triggers) {
|
||||
|
||||
@@ -82,13 +82,12 @@ export const FILTER_DEFINITIONS: FilterDefinition[] = [
|
||||
},
|
||||
]
|
||||
|
||||
// Core trigger types that are always available
|
||||
const CORE_TRIGGERS: TriggerData[] = [
|
||||
{ value: 'api', label: 'API', color: '#3b82f6' }, // blue-500
|
||||
{ value: 'manual', label: 'Manual', color: '#6b7280' }, // gray-500
|
||||
{ value: 'webhook', label: 'Webhook', color: '#f97316' }, // orange-500
|
||||
{ value: 'chat', label: 'Chat', color: '#8b5cf6' }, // purple-500
|
||||
{ value: 'schedule', label: 'Schedule', color: '#10b981' }, // green-500
|
||||
{ value: 'api', label: 'API', color: '#3b82f6' },
|
||||
{ value: 'manual', label: 'Manual', color: '#6b7280' },
|
||||
{ value: 'webhook', label: 'Webhook', color: '#f97316' },
|
||||
{ value: 'chat', label: 'Chat', color: '#8b5cf6' },
|
||||
{ value: 'schedule', label: 'Schedule', color: '#10b981' },
|
||||
]
|
||||
|
||||
export class SearchSuggestions {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user