Compare commits

..

2 Commits

Author SHA1 Message Date
Emir Karabeg
1e9394706f addressed comments 2026-01-28 18:08:00 -08:00
Emir Karabeg
c426fd4d4c feat(ee): access control, sso 2026-01-28 17:57:04 -08:00
673 changed files with 10556 additions and 49256 deletions

View File

@@ -1,7 +0,0 @@
Based on the given area of interest, please:
1. Dig around the codebase in terms of that given area of interest, gather general information such as keywords and architecture overview.
2. Spawn off n=10 (unless specified otherwise) task agents to dig deeper into the codebase in terms of that given area of interest, some of them should be out of the box for variance.
3. Once the task agents are done, use the information to do what the user wants.
If user is in plan mode, use the information to create the plan.

View File

@@ -172,6 +172,31 @@ Key environment variables for self-hosted deployments. See [`.env.example`](apps
| `API_ENCRYPTION_KEY` | Yes | Encrypts API keys (`openssl rand -hex 32`) | | `API_ENCRYPTION_KEY` | Yes | Encrypts API keys (`openssl rand -hex 32`) |
| `COPILOT_API_KEY` | No | API key from sim.ai for Copilot features | | `COPILOT_API_KEY` | No | API key from sim.ai for Copilot features |
## Troubleshooting
### Ollama models not showing in dropdown (Docker)
If you're running Ollama on your host machine and Sim in Docker, change `OLLAMA_URL` from `localhost` to `host.docker.internal`:
```bash
OLLAMA_URL=http://host.docker.internal:11434 docker compose -f docker-compose.prod.yml up -d
```
See [Using an External Ollama Instance](#using-an-external-ollama-instance) for details.
### Database connection issues
Ensure PostgreSQL has the pgvector extension installed. When using Docker, wait for the database to be healthy before running migrations.
### Port conflicts
If ports 3000, 3002, or 5432 are in use, configure alternatives:
```bash
# Custom ports
NEXT_PUBLIC_APP_URL=http://localhost:3100 POSTGRES_PORT=5433 docker compose up -d
```
## Tech Stack ## Tech Stack
- **Framework**: [Next.js](https://nextjs.org/) (App Router) - **Framework**: [Next.js](https://nextjs.org/) (App Router)

View File

@@ -1,6 +1,5 @@
import type React from 'react' import type React from 'react'
import { findNeighbour } from 'fumadocs-core/page-tree' import { findNeighbour } from 'fumadocs-core/page-tree'
import { Pre } from 'fumadocs-ui/components/codeblock'
import defaultMdxComponents from 'fumadocs-ui/mdx' import defaultMdxComponents from 'fumadocs-ui/mdx'
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page' import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page'
import { ChevronLeft, ChevronRight } from 'lucide-react' import { ChevronLeft, ChevronRight } from 'lucide-react'
@@ -22,7 +21,6 @@ export default async function Page(props: { params: Promise<{ slug?: string[]; l
const data = page.data as PageData const data = page.data as PageData
const MDX = data.body const MDX = data.body
const baseUrl = 'https://docs.sim.ai' const baseUrl = 'https://docs.sim.ai'
const markdownContent = await data.getText('processed')
const pageTreeRecord = source.pageTree as Record<string, any> const pageTreeRecord = source.pageTree as Record<string, any>
const pageTree = const pageTree =
@@ -202,7 +200,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[]; l
<div className='relative mt-6 sm:mt-0'> <div className='relative mt-6 sm:mt-0'>
<div className='absolute top-1 right-0 flex items-center gap-2'> <div className='absolute top-1 right-0 flex items-center gap-2'>
<div className='hidden sm:flex'> <div className='hidden sm:flex'>
<LLMCopyButton content={markdownContent} /> <LLMCopyButton markdownUrl={`${page.url}.mdx`} />
</div> </div>
<PageNavigationArrows previous={neighbours?.previous} next={neighbours?.next} /> <PageNavigationArrows previous={neighbours?.previous} next={neighbours?.next} />
</div> </div>
@@ -213,11 +211,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[]; l
<MDX <MDX
components={{ components={{
...defaultMdxComponents, ...defaultMdxComponents,
pre: (props: React.HTMLAttributes<HTMLPreElement>) => ( CodeBlock,
<CodeBlock {...props}>
<Pre>{props.children}</Pre>
</CodeBlock>
),
h1: (props: React.HTMLAttributes<HTMLHeadingElement>) => ( h1: (props: React.HTMLAttributes<HTMLHeadingElement>) => (
<Heading as='h1' {...props} /> <Heading as='h1' {...props} />
), ),

View File

@@ -3,7 +3,6 @@ import { defineI18nUI } from 'fumadocs-ui/i18n'
import { DocsLayout } from 'fumadocs-ui/layouts/docs' import { DocsLayout } from 'fumadocs-ui/layouts/docs'
import { RootProvider } from 'fumadocs-ui/provider/next' import { RootProvider } from 'fumadocs-ui/provider/next'
import { Geist_Mono, Inter } from 'next/font/google' import { Geist_Mono, Inter } from 'next/font/google'
import Script from 'next/script'
import { import {
SidebarFolder, SidebarFolder,
SidebarItem, SidebarItem,
@@ -18,13 +17,11 @@ import '../global.css'
const inter = Inter({ const inter = Inter({
subsets: ['latin'], subsets: ['latin'],
variable: '--font-geist-sans', variable: '--font-geist-sans',
display: 'swap',
}) })
const geistMono = Geist_Mono({ const geistMono = Geist_Mono({
subsets: ['latin'], subsets: ['latin'],
variable: '--font-geist-mono', variable: '--font-geist-mono',
display: 'swap',
}) })
const { provider } = defineI18nUI(i18n, { const { provider } = defineI18nUI(i18n, {
@@ -96,9 +93,10 @@ export default async function Layout({ children, params }: LayoutProps) {
type='application/ld+json' type='application/ld+json'
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }} dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
/> />
{/* OneDollarStats Analytics - CDN script handles everything automatically */}
<script defer src='https://assets.onedollarstats.com/stonks.js' />
</head> </head>
<body className='flex min-h-screen flex-col font-sans'> <body className='flex min-h-screen flex-col font-sans'>
<Script src='https://assets.onedollarstats.com/stonks.js' strategy='lazyOnload' />
<RootProvider i18n={provider(lang)}> <RootProvider i18n={provider(lang)}>
<Navbar /> <Navbar />
<DocsLayout <DocsLayout

View File

@@ -9,7 +9,7 @@ export default function NotFound() {
<DocsPage> <DocsPage>
<DocsBody> <DocsBody>
<div className='flex min-h-[60vh] flex-col items-center justify-center text-center'> <div className='flex min-h-[60vh] flex-col items-center justify-center text-center'>
<h1 className='mb-4 bg-gradient-to-b from-[#47d991] to-[#33c482] bg-clip-text font-bold text-8xl text-transparent'> <h1 className='mb-4 bg-gradient-to-b from-[#8357FF] to-[#6F3DFA] bg-clip-text font-bold text-8xl text-transparent'>
404 404
</h1> </h1>
<h2 className='mb-2 font-semibold text-2xl text-foreground'>Page Not Found</h2> <h2 className='mb-2 font-semibold text-2xl text-foreground'>Page Not Found</h2>

View File

@@ -5113,60 +5113,3 @@ export function PulseIcon(props: SVGProps<SVGSVGElement>) {
</svg> </svg>
) )
} }
export function SimilarwebIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
role='img'
viewBox='0 0 24 24'
xmlns='http://www.w3.org/2000/svg'
height='24'
width='24'
>
<path
d='M22.099 5.781c-1.283 -2 -3.14 -3.67 -5.27 -4.52l-0.63 -0.213a7.433 7.433 0 0 0 -2.15 -0.331c-2.307 0.01 -4.175 1.92 -4.175 4.275a4.3 4.3 0 0 0 0.867 2.602l-0.26 -0.342c0.124 0.186 0.26 0.37 0.417 0.556 0.663 0.802 1.604 1.635 2.822 2.58 2.999 2.32 4.943 4.378 5.104 6.93 0.038 0.344 0.062 0.696 0.062 1.051 0 1.297 -0.283 2.67 -0.764 3.635h0.005s-0.207 0.377 -0.077 0.487c0.066 0.057 0.21 0.1 0.46 -0.053a12.104 12.104 0 0 0 3.4 -3.33 12.111 12.111 0 0 0 2.088 -6.635 12.098 12.098 0 0 0 -1.9 -6.692zm-9.096 8.718 -1.878 -1.55c-3.934 -2.87 -5.98 -5.966 -4.859 -9.783a8.73 8.73 0 0 1 0.37 -1.016v-0.004s0.278 -0.583 -0.327 -0.295a12.067 12.067 0 0 0 -6.292 9.975 12.11 12.11 0 0 0 2.053 7.421 9.394 9.394 0 0 0 2.154 2.168H4.22c4.148 3.053 7.706 1.446 7.706 1.446h0.003a4.847 4.847 0 0 0 2.962 -4.492 4.855 4.855 0 0 0 -1.889 -3.87z'
fill='currentColor'
/>
</svg>
)
}
export function CalComIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
width='101'
height='22'
viewBox='0 0 101 22'
fill='currentColor'
xmlns='http://www.w3.org/2000/svg'
>
<path
d='M10.0582 20.817C4.32115 20.817 0 16.2763 0 10.6704C0 5.04589 4.1005 0.467773 10.0582 0.467773C13.2209 0.467773 15.409 1.43945 17.1191 3.66311L14.3609 5.96151C13.2025 4.72822 11.805 4.11158 10.0582 4.11158C6.17833 4.11158 4.04533 7.08268 4.04533 10.6704C4.04533 14.2582 6.38059 17.1732 10.0582 17.1732C11.7866 17.1732 13.2577 16.5566 14.4161 15.3233L17.1375 17.7151C15.501 19.8453 13.2577 20.817 10.0582 20.817Z'
fill='#292929'
/>
<path
d='M29.0161 5.88601H32.7304V20.4612H29.0161V18.331C28.2438 19.8446 26.9566 20.8536 24.4927 20.8536C20.5577 20.8536 17.4133 17.4341 17.4133 13.2297C17.4133 9.02528 20.5577 5.60571 24.4927 5.60571C26.9383 5.60571 28.2438 6.61477 29.0161 8.12835V5.88601ZM29.1264 13.2297C29.1264 10.95 27.5634 9.06266 25.0995 9.06266C22.7274 9.06266 21.1828 10.9686 21.1828 13.2297C21.1828 15.4346 22.7274 17.3967 25.0995 17.3967C27.5451 17.3967 29.1264 15.4907 29.1264 13.2297Z'
fill='#292929'
/>
<path d='M35.3599 0H39.0742V20.4427H35.3599V0Z' fill='#292929' />
<path
d='M40.7291 18.5182C40.7291 17.3223 41.6853 16.3132 42.9908 16.3132C44.2964 16.3132 45.2158 17.3223 45.2158 18.5182C45.2158 19.7515 44.278 20.7605 42.9908 20.7605C41.7037 20.7605 40.7291 19.7515 40.7291 18.5182Z'
fill='#292929'
/>
<path
d='M59.4296 18.1068C58.0505 19.7885 55.9543 20.8536 53.4719 20.8536C49.0404 20.8536 45.7858 17.4341 45.7858 13.2297C45.7858 9.02528 49.0404 5.60571 53.4719 5.60571C55.8623 5.60571 57.9402 6.61477 59.3193 8.20309L56.4508 10.6136C55.7336 9.71667 54.7958 9.04397 53.4719 9.04397C51.0999 9.04397 49.5553 10.95 49.5553 13.211C49.5553 15.472 51.0999 17.378 53.4719 17.378C54.9062 17.378 55.8991 16.6306 56.6346 15.6215L59.4296 18.1068Z'
fill='#292929'
/>
<path
d='M59.7422 13.2297C59.7422 9.02528 62.9968 5.60571 67.4283 5.60571C71.8598 5.60571 75.1144 9.02528 75.1144 13.2297C75.1144 17.4341 71.8598 20.8536 67.4283 20.8536C62.9968 20.8349 59.7422 17.4341 59.7422 13.2297ZM71.3449 13.2297C71.3449 10.95 69.8003 9.06266 67.4283 9.06266C65.0563 9.04397 63.5117 10.95 63.5117 13.2297C63.5117 15.4907 65.0563 17.3967 67.4283 17.3967C69.8003 17.3967 71.3449 15.4907 71.3449 13.2297Z'
fill='#292929'
/>
<path
d='M100.232 11.5482V20.4428H96.518V12.4638C96.518 9.94119 95.3412 8.85739 93.576 8.85739C91.921 8.85739 90.7442 9.67958 90.7442 12.4638V20.4428H87.0299V12.4638C87.0299 9.94119 85.8346 8.85739 84.0878 8.85739C82.4329 8.85739 80.9802 9.67958 80.9802 12.4638V20.4428H77.2659V5.8676H80.9802V7.88571C81.7525 6.31607 83.15 5.53125 85.3014 5.53125C87.3425 5.53125 89.0525 6.5403 89.9903 8.24074C90.9281 6.50293 92.3072 5.53125 94.8079 5.53125C97.8603 5.54994 100.232 7.86702 100.232 11.5482Z'
fill='#292929'
/>
</svg>
)
}

View File

@@ -8,7 +8,13 @@ import { ThemeToggle } from '@/components/ui/theme-toggle'
export function Navbar() { export function Navbar() {
return ( return (
<nav className='sticky top-0 z-50 border-border/50 border-b bg-background/80 backdrop-blur-md backdrop-saturate-150'> <nav
className='sticky top-0 z-50 border-border/50 border-b'
style={{
backdropFilter: 'blur(25px) saturate(180%)',
WebkitBackdropFilter: 'blur(25px) saturate(180%)',
}}
>
{/* Desktop: Single row layout */} {/* Desktop: Single row layout */}
<div className='hidden h-16 w-full items-center lg:flex'> <div className='hidden h-16 w-full items-center lg:flex'>
<div <div

View File

@@ -1,13 +1,45 @@
'use client' 'use client'
import { useState } from 'react'
import { useCopyButton } from 'fumadocs-ui/utils/use-copy-button' import { useCopyButton } from 'fumadocs-ui/utils/use-copy-button'
import { Check, Copy } from 'lucide-react' import { Check, Copy } from 'lucide-react'
export function LLMCopyButton({ content }: { content: string }) { const cache = new Map<string, string>()
const [checked, onClick] = useCopyButton(() => navigator.clipboard.writeText(content))
export function LLMCopyButton({
markdownUrl,
}: {
/**
* A URL to fetch the raw Markdown/MDX content of page
*/
markdownUrl: string
}) {
const [isLoading, setLoading] = useState(false)
const [checked, onClick] = useCopyButton(async () => {
const cached = cache.get(markdownUrl)
if (cached) return navigator.clipboard.writeText(cached)
setLoading(true)
try {
await navigator.clipboard.write([
new ClipboardItem({
'text/plain': fetch(markdownUrl).then(async (res) => {
const content = await res.text()
cache.set(markdownUrl, content)
return content
}),
}),
])
} finally {
setLoading(false)
}
})
return ( return (
<button <button
disabled={isLoading}
onClick={onClick} onClick={onClick}
className='flex cursor-pointer items-center gap-1.5 rounded-lg border border-border/40 bg-background px-2.5 py-2 text-muted-foreground/60 text-sm leading-none transition-all hover:border-border hover:bg-accent/50 hover:text-muted-foreground' className='flex cursor-pointer items-center gap-1.5 rounded-lg border border-border/40 bg-background px-2.5 py-2 text-muted-foreground/60 text-sm leading-none transition-all hover:border-border hover:bg-accent/50 hover:text-muted-foreground'
aria-label={checked ? 'Copied to clipboard' : 'Copy page content'} aria-label={checked ? 'Copied to clipboard' : 'Copy page content'}

View File

@@ -17,16 +17,23 @@ export function CodeBlock(props: React.ComponentProps<typeof FumadocsCodeBlock>)
return ( return (
<FumadocsCodeBlock <FumadocsCodeBlock
{...props} {...props}
Actions={({ className }) => ( Actions={({ children, className }) => (
<div className={cn('empty:hidden', className)}> <div className={cn('empty:hidden', className)}>
{/* Custom copy button */}
<button <button
type='button' type='button'
aria-label={copied ? 'Copied Text' : 'Copy Text'} aria-label={copied ? 'Copied Text' : 'Copy Text'}
onClick={(e) => { onClick={(e) => {
const pre = (e.currentTarget as HTMLElement).closest('figure')?.querySelector('pre') const pre = (e.currentTarget as HTMLElement)
.closest('.nd-codeblock')
?.querySelector('pre')
if (pre) handleCopy(pre.textContent || '') if (pre) handleCopy(pre.textContent || '')
}} }}
className='cursor-pointer rounded-md p-2 text-muted-foreground transition-colors hover:text-foreground' className={cn(
'cursor-pointer rounded-md p-2 transition-all',
'border border-border bg-background/80 hover:bg-muted',
'backdrop-blur-sm'
)}
> >
<span className='flex items-center justify-center'> <span className='flex items-center justify-center'>
{copied ? ( {copied ? (

View File

@@ -13,7 +13,6 @@ import {
AsanaIcon, AsanaIcon,
BrainIcon, BrainIcon,
BrowserUseIcon, BrowserUseIcon,
CalComIcon,
CalendlyIcon, CalendlyIcon,
CirclebackIcon, CirclebackIcon,
ClayIcon, ClayIcon,
@@ -101,7 +100,6 @@ import {
ServiceNowIcon, ServiceNowIcon,
SftpIcon, SftpIcon,
ShopifyIcon, ShopifyIcon,
SimilarwebIcon,
SlackIcon, SlackIcon,
SmtpIcon, SmtpIcon,
SQSIcon, SQSIcon,
@@ -143,7 +141,6 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
arxiv: ArxivIcon, arxiv: ArxivIcon,
asana: AsanaIcon, asana: AsanaIcon,
browser_use: BrowserUseIcon, browser_use: BrowserUseIcon,
calcom: CalComIcon,
calendly: CalendlyIcon, calendly: CalendlyIcon,
circleback: CirclebackIcon, circleback: CirclebackIcon,
clay: ClayIcon, clay: ClayIcon,
@@ -231,7 +228,6 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
sftp: SftpIcon, sftp: SftpIcon,
sharepoint: MicrosoftSharepointIcon, sharepoint: MicrosoftSharepointIcon,
shopify: ShopifyIcon, shopify: ShopifyIcon,
similarweb: SimilarwebIcon,
slack: SlackIcon, slack: SlackIcon,
smtp: SmtpIcon, smtp: SmtpIcon,
sqs: SQSIcon, sqs: SQSIcon,

View File

@@ -58,7 +58,7 @@ Controls response randomness and creativity:
### Max Output Tokens ### Max Output Tokens
Controls the maximum length of the model's response. For Anthropic models, Sim uses reliable defaults: streaming executions use the model's full capacity (e.g. 64,000 tokens for Claude 4.5), while non-streaming executions default to 8,192 to avoid timeout issues. When using tools with Anthropic models, intermediate tool-calling requests use a capped limit of 8,192 tokens to avoid SDK timeout errors, regardless of your configured max tokens—the final streaming response uses your full configured limit. This only affects Anthropic's direct API; AWS Bedrock handles this automatically. For long-form content generation via API, explicitly set a higher value. Controls the maximum length of the model's response. For Anthropic models, Sim uses reliable defaults: streaming executions use the model's full capacity (e.g. 64,000 tokens for Claude 4.5), while non-streaming executions default to 8,192 to avoid timeout issues. For long-form content generation via API, explicitly set a higher value.
### API Key ### API Key

View File

@@ -52,12 +52,12 @@ Send a message to an external A2A-compatible agent.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `content` | string | Text response content from the agent | | `content` | string | The text response from the agent |
| `taskId` | string | Unique task identifier | | `taskId` | string | Task ID for follow-up interactions |
| `contextId` | string | Groups related tasks/messages | | `contextId` | string | Context ID for conversation continuity |
| `state` | string | Current lifecycle state \(working, completed, failed, canceled, rejected, input_required, auth_required\) | | `state` | string | Task state |
| `artifacts` | array | Task output artifacts | | `artifacts` | array | Structured output artifacts |
| `history` | array | Conversation history \(Message array\) | | `history` | array | Full message history |
### `a2a_get_task` ### `a2a_get_task`
@@ -76,11 +76,11 @@ Query the status of an existing A2A task.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `taskId` | string | Unique task identifier | | `taskId` | string | Task ID |
| `contextId` | string | Groups related tasks/messages | | `contextId` | string | Context ID |
| `state` | string | Current lifecycle state \(working, completed, failed, canceled, rejected, input_required, auth_required\) | | `state` | string | Task state |
| `artifacts` | array | Task output artifacts | | `artifacts` | array | Output artifacts |
| `history` | array | Conversation history \(Message array\) | | `history` | array | Message history |
### `a2a_cancel_task` ### `a2a_cancel_task`
@@ -99,7 +99,7 @@ Cancel a running A2A task.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `cancelled` | boolean | Whether cancellation was successful | | `cancelled` | boolean | Whether cancellation was successful |
| `state` | string | Current lifecycle state \(working, completed, failed, canceled, rejected, input_required, auth_required\) | | `state` | string | Task state after cancellation |
### `a2a_get_agent_card` ### `a2a_get_agent_card`
@@ -116,15 +116,14 @@ Fetch the Agent Card (discovery document) for an A2A agent.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `name` | string | Agent display name | | `name` | string | Agent name |
| `description` | string | Agent purpose/capabilities | | `description` | string | Agent description |
| `url` | string | Service endpoint URL | | `url` | string | Agent endpoint URL |
| `provider` | object | Creator organization details | | `version` | string | Agent version |
| `capabilities` | object | Feature support matrix | | `capabilities` | object | Agent capabilities \(streaming, pushNotifications, etc.\) |
| `skills` | array | Available operations | | `skills` | array | Skills the agent can perform |
| `version` | string | A2A protocol version supported by the agent | | `defaultInputModes` | array | Default input modes \(text, file, data\) |
| `defaultInputModes` | array | Default input content types accepted by the agent | | `defaultOutputModes` | array | Default output modes \(text, file, data\) |
| `defaultOutputModes` | array | Default output content types produced by the agent |
### `a2a_resubscribe` ### `a2a_resubscribe`
@@ -142,12 +141,12 @@ Reconnect to an ongoing A2A task stream after connection interruption.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `taskId` | string | Unique task identifier | | `taskId` | string | Task ID |
| `contextId` | string | Groups related tasks/messages | | `contextId` | string | Context ID |
| `state` | string | Current lifecycle state \(working, completed, failed, canceled, rejected, input_required, auth_required\) | | `state` | string | Current task state |
| `isRunning` | boolean | Whether the task is still running | | `isRunning` | boolean | Whether the task is still running |
| `artifacts` | array | Task output artifacts | | `artifacts` | array | Output artifacts |
| `history` | array | Conversation history \(Message array\) | | `history` | array | Message history |
### `a2a_set_push_notification` ### `a2a_set_push_notification`
@@ -167,9 +166,9 @@ Configure a webhook to receive task update notifications.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `url` | string | HTTPS webhook URL for notifications | | `url` | string | Configured webhook URL |
| `token` | string | Authentication token for webhook validation | | `token` | string | Token for webhook validation |
| `success` | boolean | Whether the operation was successful | | `success` | boolean | Whether configuration was successful |
### `a2a_get_push_notification` ### `a2a_get_push_notification`
@@ -187,8 +186,9 @@ Get the push notification webhook configuration for a task.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `token` | string | Authentication token for webhook validation | | `url` | string | Configured webhook URL |
| `exists` | boolean | Whether the resource exists | | `token` | string | Token for webhook validation |
| `exists` | boolean | Whether a push notification config exists |
### `a2a_delete_push_notification` ### `a2a_delete_push_notification`
@@ -207,6 +207,6 @@ Delete the push notification webhook configuration for a task.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Whether the operation was successful | | `success` | boolean | Whether deletion was successful |

View File

@@ -1,789 +0,0 @@
---
title: CalCom
description: Manage Cal.com bookings, event types, schedules, and availability
---
import { BlockInfoCard } from "@/components/ui/block-info-card"
<BlockInfoCard
type="calcom"
color="#FFFFFE"
/>
{/* MANUAL-CONTENT-START:intro */}
[Cal.com](https://cal.com/) is a flexible and open-source scheduling platform that makes it easy to manage appointments, bookings, event types, and team availabilities.
With Cal.com, you can:
- **Automate scheduling**: Allow users to view your available time slots and book meetings automatically, without back-and-forth emails.
- **Manage events**: Create and customize event types, durations, and rules for one-on-one or group meetings.
- **Integrate calendars**: Seamlessly connect with Google, Outlook, Apple, or other calendar providers to avoid double bookings.
- **Handle attendees and guests**: Collect attendee information, manage guests, and send invitations or reminders.
- **Control availability**: Define custom working hours, buffer times, and cancellation/rebooking rules.
- **Power workflows**: Trigger custom actions via webhooks when a booking is created, cancelled, or rescheduled.
In Sim, the Cal.com integration enables your agents to book meetings, check availabilities, manage event types, and automate scheduling tasks programmatically. This helps agents coordinate meetings, send bookings on behalf of users, check schedules, or respond to booking events—all without manual intervention. By connecting Sim with Cal.com, you unlock highly automated and intelligent scheduling workflows that can integrate seamlessly with your broader automation needs.
{/* MANUAL-CONTENT-END */}
## Usage Instructions
Integrate Cal.com into your workflow. Create and manage bookings, event types, schedules, and check availability slots. Supports creating, listing, rescheduling, and canceling bookings, as well as managing event types and schedules. Can also trigger workflows based on Cal.com webhook events (booking created, cancelled, rescheduled). Connect your Cal.com account via OAuth.
## Tools
### `calcom_create_booking`
Create a new booking on Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `eventTypeId` | number | Yes | The ID of the event type to book |
| `start` | string | Yes | Start time in UTC ISO 8601 format \(e.g., 2024-01-15T09:00:00Z\) |
| `attendee` | object | Yes | Attendee information object with name, email, timeZone, and optional phoneNumber \(constructed from individual attendee fields\) |
| `guests` | array | No | Array of guest email addresses |
| `items` | string | No | Guest email address |
| `lengthInMinutes` | number | No | Duration of the booking in minutes \(overrides event type default\) |
| `metadata` | object | No | Custom metadata to attach to the booking |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Created booking details |
| ↳ `eventType` | object | Event type details |
| ↳ `id` | number | Event type ID |
| ↳ `slug` | string | Event type slug |
| ↳ `attendees` | array | List of attendees |
| ↳ `name` | string | Attendee name |
| ↳ `email` | string | Attendee actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `timeZone` | string | Attendee timezone \(IANA format\) |
| ↳ `phoneNumber` | string | Attendee phone number |
| ↳ `language` | string | Attendee language preference \(ISO code\) |
| ↳ `absent` | boolean | Whether attendee was absent |
| ↳ `hosts` | array | List of hosts |
| ↳ `id` | number | Host user ID |
| ↳ `name` | string | Host display name |
| ↳ `email` | string | Host actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `username` | string | Host Cal.com username |
| ↳ `timeZone` | string | Host timezone \(IANA format\) |
| ↳ `id` | number | Numeric booking ID |
| ↳ `uid` | string | Unique identifier for the booking |
| ↳ `title` | string | Title of the booking |
| ↳ `status` | string | Booking status \(e.g., accepted, pending, cancelled\) |
| ↳ `start` | string | Start time in ISO 8601 format |
| ↳ `end` | string | End time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `eventTypeId` | number | Event type ID |
| ↳ `meetingUrl` | string | URL to join the meeting |
| ↳ `location` | string | Location of the booking |
| ↳ `absentHost` | boolean | Whether the host was absent |
| ↳ `guests` | array | Guest email addresses |
| ↳ `bookingFieldsResponses` | json | Custom booking field responses \(dynamic keys based on event type configuration\) |
| ↳ `metadata` | json | Custom metadata attached to the booking \(dynamic key-value pairs\) |
| ↳ `icsUid` | string | ICS calendar UID |
| ↳ `createdAt` | string | When the booking was created |
### `calcom_get_booking`
Get details of a specific booking by its UID
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `bookingUid` | string | Yes | Unique identifier \(UID\) of the booking |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Booking details |
| ↳ `eventType` | object | Event type details |
| ↳ `id` | number | Event type ID |
| ↳ `slug` | string | Event type slug |
| ↳ `attendees` | array | List of attendees |
| ↳ `name` | string | Attendee name |
| ↳ `email` | string | Attendee actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `timeZone` | string | Attendee timezone \(IANA format\) |
| ↳ `phoneNumber` | string | Attendee phone number |
| ↳ `language` | string | Attendee language preference \(ISO code\) |
| ↳ `absent` | boolean | Whether attendee was absent |
| ↳ `hosts` | array | List of hosts |
| ↳ `id` | number | Host user ID |
| ↳ `name` | string | Host display name |
| ↳ `email` | string | Host actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `username` | string | Host Cal.com username |
| ↳ `timeZone` | string | Host timezone \(IANA format\) |
| ↳ `id` | number | Numeric booking ID |
| ↳ `uid` | string | Unique identifier for the booking |
| ↳ `title` | string | Title of the booking |
| ↳ `description` | string | Description of the booking |
| ↳ `status` | string | Booking status \(e.g., accepted, pending, cancelled\) |
| ↳ `start` | string | Start time in ISO 8601 format |
| ↳ `end` | string | End time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `eventTypeId` | number | Event type ID |
| ↳ `meetingUrl` | string | URL to join the meeting |
| ↳ `location` | string | Location of the booking |
| ↳ `absentHost` | boolean | Whether the host was absent |
| ↳ `guests` | array | Guest email addresses |
| ↳ `bookingFieldsResponses` | json | Custom booking field responses \(dynamic keys based on event type configuration\) |
| ↳ `metadata` | json | Custom metadata attached to the booking \(dynamic key-value pairs\) |
| ↳ `rating` | number | Booking rating |
| ↳ `icsUid` | string | ICS calendar UID |
| ↳ `cancellationReason` | string | Reason for cancellation if cancelled |
| ↳ `reschedulingReason` | string | Reason for rescheduling if rescheduled |
| ↳ `rescheduledFromUid` | string | Original booking UID if this booking was rescheduled |
| ↳ `rescheduledToUid` | string | New booking UID after reschedule |
| ↳ `cancelledByEmail` | string | Email of person who cancelled the booking |
| ↳ `rescheduledByEmail` | string | Email of person who rescheduled the booking |
| ↳ `createdAt` | string | When the booking was created |
| ↳ `updatedAt` | string | When the booking was last updated |
### `calcom_list_bookings`
List all bookings with optional status filter
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `status` | string | No | Filter bookings by status: upcoming, recurring, past, cancelled, or unconfirmed |
| `take` | number | No | Number of bookings to return \(pagination limit\) |
| `skip` | number | No | Number of bookings to skip \(pagination offset\) |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | array | Array of bookings |
| ↳ `eventType` | object | Event type details |
| ↳ `id` | number | Event type ID |
| ↳ `slug` | string | Event type slug |
| ↳ `attendees` | array | List of attendees |
| ↳ `name` | string | Attendee name |
| ↳ `email` | string | Attendee actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `timeZone` | string | Attendee timezone \(IANA format\) |
| ↳ `phoneNumber` | string | Attendee phone number |
| ↳ `language` | string | Attendee language preference \(ISO code\) |
| ↳ `absent` | boolean | Whether attendee was absent |
| ↳ `hosts` | array | List of hosts |
| ↳ `id` | number | Host user ID |
| ↳ `name` | string | Host display name |
| ↳ `email` | string | Host actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `username` | string | Host Cal.com username |
| ↳ `timeZone` | string | Host timezone \(IANA format\) |
| ↳ `id` | number | Numeric booking ID |
| ↳ `uid` | string | Unique identifier for the booking |
| ↳ `title` | string | Title of the booking |
| ↳ `description` | string | Description of the booking |
| ↳ `status` | string | Booking status \(e.g., accepted, pending, cancelled\) |
| ↳ `start` | string | Start time in ISO 8601 format |
| ↳ `end` | string | End time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `eventTypeId` | number | Event type ID |
| ↳ `meetingUrl` | string | URL to join the meeting |
| ↳ `location` | string | Location of the booking |
| ↳ `absentHost` | boolean | Whether the host was absent |
| ↳ `guests` | array | Guest email addresses |
| ↳ `bookingFieldsResponses` | json | Custom booking field responses \(dynamic keys based on event type configuration\) |
| ↳ `metadata` | json | Custom metadata attached to the booking \(dynamic key-value pairs\) |
| ↳ `rating` | number | Booking rating |
| ↳ `icsUid` | string | ICS calendar UID |
| ↳ `cancellationReason` | string | Reason for cancellation if cancelled |
| ↳ `cancelledByEmail` | string | Email of person who cancelled the booking |
| ↳ `reschedulingReason` | string | Reason for rescheduling if rescheduled |
| ↳ `rescheduledByEmail` | string | Email of person who rescheduled the booking |
| ↳ `rescheduledFromUid` | string | Original booking UID if this booking was rescheduled |
| ↳ `rescheduledToUid` | string | New booking UID after reschedule |
| ↳ `createdAt` | string | When the booking was created |
| ↳ `updatedAt` | string | When the booking was last updated |
| `pagination` | object | Pagination metadata |
| ↳ `totalItems` | number | Total number of items |
| ↳ `remainingItems` | number | Remaining items after current page |
| ↳ `returnedItems` | number | Number of items returned in this response |
| ↳ `itemsPerPage` | number | Items per page |
| ↳ `currentPage` | number | Current page number |
| ↳ `totalPages` | number | Total number of pages |
| ↳ `hasNextPage` | boolean | Whether there is a next page |
| ↳ `hasPreviousPage` | boolean | Whether there is a previous page |
### `calcom_cancel_booking`
Cancel an existing booking
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `bookingUid` | string | Yes | Unique identifier \(UID\) of the booking to cancel |
| `cancellationReason` | string | No | Reason for cancelling the booking |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Cancelled booking details |
| ↳ `eventType` | object | Event type details |
| ↳ `id` | number | Event type ID |
| ↳ `slug` | string | Event type slug |
| ↳ `attendees` | array | List of attendees |
| ↳ `name` | string | Attendee name |
| ↳ `email` | string | Attendee actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `timeZone` | string | Attendee timezone \(IANA format\) |
| ↳ `phoneNumber` | string | Attendee phone number |
| ↳ `language` | string | Attendee language preference \(ISO code\) |
| ↳ `absent` | boolean | Whether attendee was absent |
| ↳ `hosts` | array | List of hosts |
| ↳ `id` | number | Host user ID |
| ↳ `name` | string | Host display name |
| ↳ `email` | string | Host actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `username` | string | Host Cal.com username |
| ↳ `timeZone` | string | Host timezone \(IANA format\) |
| ↳ `id` | number | Numeric booking ID |
| ↳ `uid` | string | Unique identifier for the booking |
| ↳ `title` | string | Title of the booking |
| ↳ `cancellationReason` | string | Reason for cancellation if cancelled |
| ↳ `cancelledByEmail` | string | Email of person who cancelled the booking |
| ↳ `start` | string | Start time in ISO 8601 format |
| ↳ `end` | string | End time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `eventTypeId` | number | Event type ID |
| ↳ `location` | string | Location of the booking |
| ↳ `metadata` | json | Custom metadata attached to the booking \(dynamic key-value pairs\) |
| ↳ `createdAt` | string | When the booking was created |
| ↳ `status` | string | Booking status \(should be cancelled\) |
### `calcom_reschedule_booking`
Reschedule an existing booking to a new time
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `bookingUid` | string | Yes | Unique identifier \(UID\) of the booking to reschedule |
| `start` | string | Yes | New start time in UTC ISO 8601 format \(e.g., 2024-01-15T09:00:00Z\) |
| `reschedulingReason` | string | No | Reason for rescheduling the booking |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Rescheduled booking details |
| ↳ `eventType` | object | Event type details |
| ↳ `id` | number | Event type ID |
| ↳ `slug` | string | Event type slug |
| ↳ `attendees` | array | List of attendees |
| ↳ `name` | string | Attendee name |
| ↳ `email` | string | Attendee actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `timeZone` | string | Attendee timezone \(IANA format\) |
| ↳ `phoneNumber` | string | Attendee phone number |
| ↳ `language` | string | Attendee language preference \(ISO code\) |
| ↳ `absent` | boolean | Whether attendee was absent |
| ↳ `hosts` | array | List of hosts |
| ↳ `id` | number | Host user ID |
| ↳ `name` | string | Host display name |
| ↳ `email` | string | Host actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `username` | string | Host Cal.com username |
| ↳ `timeZone` | string | Host timezone \(IANA format\) |
| ↳ `id` | number | Numeric booking ID |
| ↳ `title` | string | Title of the booking |
| ↳ `status` | string | Booking status \(e.g., accepted, pending, cancelled\) |
| ↳ `reschedulingReason` | string | Reason for rescheduling if rescheduled |
| ↳ `rescheduledFromUid` | string | Original booking UID if this booking was rescheduled |
| ↳ `rescheduledByEmail` | string | Email of person who rescheduled the booking |
| ↳ `duration` | number | Duration in minutes |
| ↳ `eventTypeId` | number | Event type ID |
| ↳ `meetingUrl` | string | URL to join the meeting |
| ↳ `location` | string | Location of the booking |
| ↳ `guests` | array | Guest email addresses |
| ↳ `metadata` | json | Custom metadata attached to the booking \(dynamic key-value pairs\) |
| ↳ `icsUid` | string | ICS calendar UID |
| ↳ `createdAt` | string | When the booking was created |
| ↳ `uid` | string | Unique identifier for the new booking |
| ↳ `start` | string | New start time in ISO 8601 format |
| ↳ `end` | string | New end time in ISO 8601 format |
### `calcom_confirm_booking`
Confirm a pending booking that requires confirmation
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `bookingUid` | string | Yes | Unique identifier \(UID\) of the booking to confirm |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Confirmed booking details |
| ↳ `eventType` | object | Event type details |
| ↳ `id` | number | Event type ID |
| ↳ `slug` | string | Event type slug |
| ↳ `attendees` | array | List of attendees |
| ↳ `name` | string | Attendee name |
| ↳ `email` | string | Attendee actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `timeZone` | string | Attendee timezone \(IANA format\) |
| ↳ `phoneNumber` | string | Attendee phone number |
| ↳ `language` | string | Attendee language preference \(ISO code\) |
| ↳ `absent` | boolean | Whether attendee was absent |
| ↳ `hosts` | array | List of hosts |
| ↳ `id` | number | Host user ID |
| ↳ `name` | string | Host display name |
| ↳ `email` | string | Host actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `username` | string | Host Cal.com username |
| ↳ `timeZone` | string | Host timezone \(IANA format\) |
| ↳ `id` | number | Numeric booking ID |
| ↳ `uid` | string | Unique identifier for the booking |
| ↳ `title` | string | Title of the booking |
| ↳ `start` | string | Start time in ISO 8601 format |
| ↳ `end` | string | End time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `eventTypeId` | number | Event type ID |
| ↳ `meetingUrl` | string | URL to join the meeting |
| ↳ `location` | string | Location of the booking |
| ↳ `guests` | array | Guest email addresses |
| ↳ `metadata` | json | Custom metadata attached to the booking \(dynamic key-value pairs\) |
| ↳ `icsUid` | string | ICS calendar UID |
| ↳ `createdAt` | string | When the booking was created |
| ↳ `status` | string | Booking status \(should be accepted/confirmed\) |
### `calcom_decline_booking`
Decline a pending booking request
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `bookingUid` | string | Yes | Unique identifier \(UID\) of the booking to decline |
| `reason` | string | No | Reason for declining the booking |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Declined booking details |
| ↳ `eventType` | object | Event type details |
| ↳ `id` | number | Event type ID |
| ↳ `slug` | string | Event type slug |
| ↳ `attendees` | array | List of attendees |
| ↳ `name` | string | Attendee name |
| ↳ `email` | string | Attendee actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `timeZone` | string | Attendee timezone \(IANA format\) |
| ↳ `phoneNumber` | string | Attendee phone number |
| ↳ `language` | string | Attendee language preference \(ISO code\) |
| ↳ `absent` | boolean | Whether attendee was absent |
| ↳ `hosts` | array | List of hosts |
| ↳ `id` | number | Host user ID |
| ↳ `name` | string | Host display name |
| ↳ `email` | string | Host actual email address |
| ↳ `displayEmail` | string | Email shown publicly \(may differ from actual email\) |
| ↳ `username` | string | Host Cal.com username |
| ↳ `timeZone` | string | Host timezone \(IANA format\) |
| ↳ `id` | number | Numeric booking ID |
| ↳ `uid` | string | Unique identifier for the booking |
| ↳ `title` | string | Title of the booking |
| ↳ `cancellationReason` | string | Reason for cancellation if cancelled |
| ↳ `start` | string | Start time in ISO 8601 format |
| ↳ `end` | string | End time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `eventTypeId` | number | Event type ID |
| ↳ `location` | string | Location of the booking |
| ↳ `metadata` | json | Custom metadata attached to the booking \(dynamic key-value pairs\) |
| ↳ `createdAt` | string | When the booking was created |
| ↳ `status` | string | Booking status \(should be cancelled/rejected\) |
### `calcom_create_event_type`
Create a new event type in Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `title` | string | Yes | Title of the event type |
| `slug` | string | Yes | Unique slug for the event type URL |
| `lengthInMinutes` | number | Yes | Duration of the event in minutes |
| `description` | string | No | Description of the event type |
| `slotInterval` | number | No | Interval between available booking slots in minutes |
| `minimumBookingNotice` | number | No | Minimum notice required before booking in minutes |
| `beforeEventBuffer` | number | No | Buffer time before the event in minutes |
| `afterEventBuffer` | number | No | Buffer time after the event in minutes |
| `scheduleId` | number | No | ID of the schedule to use for availability |
| `disableGuests` | boolean | No | Whether to disable guests from being added to bookings |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Created event type details |
| ↳ `id` | number | Event type ID |
| ↳ `title` | string | Event type title |
| ↳ `slug` | string | Event type slug |
| ↳ `description` | string | Event type description |
| ↳ `lengthInMinutes` | number | Duration in minutes |
| ↳ `slotInterval` | number | Slot interval in minutes |
| ↳ `minimumBookingNotice` | number | Minimum booking notice in minutes |
| ↳ `beforeEventBuffer` | number | Buffer before event in minutes |
| ↳ `afterEventBuffer` | number | Buffer after event in minutes |
| ↳ `scheduleId` | number | Schedule ID |
| ↳ `disableGuests` | boolean | Whether guests are disabled |
| ↳ `createdAt` | string | ISO timestamp of creation |
| ↳ `updatedAt` | string | ISO timestamp of last update |
### `calcom_get_event_type`
Get detailed information about a specific event type
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `eventTypeId` | number | Yes | Event type ID to retrieve |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Event type details |
| ↳ `id` | number | Event type ID |
| ↳ `title` | string | Event type title |
| ↳ `slug` | string | Event type slug |
| ↳ `description` | string | Event type description |
| ↳ `lengthInMinutes` | number | Duration in minutes |
| ↳ `slotInterval` | number | Slot interval in minutes |
| ↳ `minimumBookingNotice` | number | Minimum booking notice in minutes |
| ↳ `beforeEventBuffer` | number | Buffer before event in minutes |
| ↳ `afterEventBuffer` | number | Buffer after event in minutes |
| ↳ `scheduleId` | number | Schedule ID |
| ↳ `disableGuests` | boolean | Whether guests are disabled |
| ↳ `createdAt` | string | ISO timestamp of creation |
| ↳ `updatedAt` | string | ISO timestamp of last update |
### `calcom_list_event_types`
Retrieve a list of all event types
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `sortCreatedAt` | string | No | Sort by creation date: "asc" or "desc" |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | array | Array of event types |
| ↳ `id` | number | Event type ID |
| ↳ `title` | string | Event type title |
| ↳ `slug` | string | Event type slug |
| ↳ `description` | string | Event type description |
| ↳ `lengthInMinutes` | number | Duration in minutes |
| ↳ `slotInterval` | number | Slot interval in minutes |
| ↳ `minimumBookingNotice` | number | Minimum booking notice in minutes |
| ↳ `beforeEventBuffer` | number | Buffer before event in minutes |
| ↳ `afterEventBuffer` | number | Buffer after event in minutes |
| ↳ `scheduleId` | number | Schedule ID |
| ↳ `disableGuests` | boolean | Whether guests are disabled |
| ↳ `createdAt` | string | ISO timestamp of creation |
| ↳ `updatedAt` | string | ISO timestamp of last update |
### `calcom_update_event_type`
Update an existing event type in Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `eventTypeId` | number | Yes | Event type ID to update |
| `title` | string | No | Title of the event type |
| `slug` | string | No | Unique slug for the event type URL |
| `lengthInMinutes` | number | No | Duration of the event in minutes |
| `description` | string | No | Description of the event type |
| `slotInterval` | number | No | Interval between available booking slots in minutes |
| `minimumBookingNotice` | number | No | Minimum notice required before booking in minutes |
| `beforeEventBuffer` | number | No | Buffer time before the event in minutes |
| `afterEventBuffer` | number | No | Buffer time after the event in minutes |
| `scheduleId` | number | No | ID of the schedule to use for availability |
| `disableGuests` | boolean | No | Whether to disable guests from being added to bookings |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Updated event type details |
| ↳ `id` | number | Event type ID |
| ↳ `title` | string | Event type title |
| ↳ `slug` | string | Event type slug |
| ↳ `description` | string | Event type description |
| ↳ `lengthInMinutes` | number | Duration in minutes |
| ↳ `slotInterval` | number | Slot interval in minutes |
| ↳ `minimumBookingNotice` | number | Minimum booking notice in minutes |
| ↳ `beforeEventBuffer` | number | Buffer before event in minutes |
| ↳ `afterEventBuffer` | number | Buffer after event in minutes |
| ↳ `scheduleId` | number | Schedule ID |
| ↳ `disableGuests` | boolean | Whether guests are disabled |
| ↳ `createdAt` | string | ISO timestamp of creation |
| ↳ `updatedAt` | string | ISO timestamp of last update |
### `calcom_delete_event_type`
Delete an event type from Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `eventTypeId` | number | Yes | Event type ID to delete |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Deleted event type details |
| ↳ `id` | number | Event type ID |
| ↳ `lengthInMinutes` | number | Duration in minutes |
| ↳ `title` | string | Event type title |
| ↳ `slug` | string | Event type slug |
### `calcom_create_schedule`
Create a new availability schedule in Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `name` | string | Yes | Name of the schedule |
| `timeZone` | string | Yes | Timezone for the schedule \(e.g., America/New_York\) |
| `isDefault` | boolean | Yes | Whether this schedule should be the default |
| `availability` | array | No | Availability intervals for the schedule |
| `items` | object | No | Availability interval |
| `properties` | array | No | Days of the week \(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday\) |
| `days` | array | No | Days of the week \(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday\) |
| `startTime` | string | No | Start time in HH:MM format |
| `endTime` | string | No | End time in HH:MM format |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Created schedule data |
| ↳ `id` | number | Schedule ID |
| ↳ `ownerId` | number | Owner user ID |
| ↳ `name` | string | Schedule name |
| ↳ `timeZone` | string | Timezone \(e.g., America/New_York\) |
| ↳ `isDefault` | boolean | Whether this is the default schedule |
| ↳ `availability` | array | Availability windows |
| ↳ `days` | array | Days of the week \(Monday, Tuesday, etc.\) |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
| ↳ `overrides` | array | Date-specific availability overrides |
| ↳ `date` | string | Date in YYYY-MM-DD format |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
### `calcom_get_schedule`
Get a specific schedule by ID from Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `scheduleId` | string | Yes | ID of the schedule to retrieve |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Schedule data |
| ↳ `id` | number | Schedule ID |
| ↳ `ownerId` | number | Owner user ID |
| ↳ `name` | string | Schedule name |
| ↳ `timeZone` | string | Timezone \(e.g., America/New_York\) |
| ↳ `isDefault` | boolean | Whether this is the default schedule |
| ↳ `availability` | array | Availability windows |
| ↳ `days` | array | Days of the week \(Monday, Tuesday, etc.\) |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
| ↳ `overrides` | array | Date-specific availability overrides |
| ↳ `date` | string | Date in YYYY-MM-DD format |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
### `calcom_list_schedules`
List all availability schedules from Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | array | Array of schedule objects |
| ↳ `id` | number | Schedule ID |
| ↳ `ownerId` | number | Owner user ID |
| ↳ `name` | string | Schedule name |
| ↳ `timeZone` | string | Timezone \(e.g., America/New_York\) |
| ↳ `isDefault` | boolean | Whether this is the default schedule |
| ↳ `availability` | array | Availability windows |
| ↳ `days` | array | Days of the week \(Monday, Tuesday, etc.\) |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
| ↳ `overrides` | array | Date-specific availability overrides |
| ↳ `date` | string | Date in YYYY-MM-DD format |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
### `calcom_update_schedule`
Update an existing schedule in Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `scheduleId` | string | Yes | ID of the schedule to update |
| `name` | string | No | New name for the schedule |
| `timeZone` | string | No | New timezone for the schedule \(e.g., America/New_York\) |
| `isDefault` | boolean | No | Whether this schedule should be the default |
| `availability` | array | No | New availability intervals for the schedule |
| `items` | object | No | Availability interval |
| `properties` | array | No | Days of the week \(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday\) |
| `days` | array | No | Days of the week \(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday\) |
| `startTime` | string | No | Start time in HH:MM format |
| `endTime` | string | No | End time in HH:MM format |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Updated schedule data |
| ↳ `id` | number | Schedule ID |
| ↳ `ownerId` | number | Owner user ID |
| ↳ `name` | string | Schedule name |
| ↳ `timeZone` | string | Timezone \(e.g., America/New_York\) |
| ↳ `isDefault` | boolean | Whether this is the default schedule |
| ↳ `availability` | array | Availability windows |
| ↳ `days` | array | Days of the week \(Monday, Tuesday, etc.\) |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
| ↳ `overrides` | array | Date-specific availability overrides |
| ↳ `date` | string | Date in YYYY-MM-DD format |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
### `calcom_delete_schedule`
Delete a schedule from Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `scheduleId` | string | Yes | ID of the schedule to delete |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status \(success or error\) |
### `calcom_get_default_schedule`
Get the default availability schedule from Cal.com
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | object | Default schedule data |
| ↳ `id` | number | Schedule ID |
| ↳ `ownerId` | number | Owner user ID |
| ↳ `name` | string | Schedule name |
| ↳ `timeZone` | string | Timezone \(e.g., America/New_York\) |
| ↳ `isDefault` | boolean | Whether this is the default schedule |
| ↳ `availability` | array | Availability windows |
| ↳ `days` | array | Days of the week \(Monday, Tuesday, etc.\) |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
| ↳ `overrides` | array | Date-specific availability overrides |
| ↳ `date` | string | Date in YYYY-MM-DD format |
| ↳ `startTime` | string | Start time in HH:MM format |
| ↳ `endTime` | string | End time in HH:MM format |
### `calcom_get_slots`
Get available booking slots for a Cal.com event type within a time range
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `start` | string | Yes | Start of time range in UTC ISO 8601 format \(e.g., 2024-01-15T00:00:00Z\) |
| `end` | string | Yes | End of time range in UTC ISO 8601 format \(e.g., 2024-01-22T00:00:00Z\) |
| `eventTypeId` | number | No | Event type ID for direct lookup |
| `eventTypeSlug` | string | No | Event type slug \(requires username to be set\) |
| `username` | string | No | Username for personal event types \(required when using eventTypeSlug\) |
| `timeZone` | string | No | Timezone for returned slots \(defaults to UTC\) |
| `duration` | number | No | Slot length in minutes |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `status` | string | Response status |
| `data` | json | Available time slots grouped by date \(YYYY-MM-DD keys\). Each date maps to an array of slot objects with start time, optional end time, and seated event info. |

View File

@@ -51,7 +51,7 @@ Get information about the currently authenticated Calendly user
| ↳ `name` | string | User full name | | ↳ `name` | string | User full name |
| ↳ `slug` | string | Unique identifier for the user in URLs | | ↳ `slug` | string | Unique identifier for the user in URLs |
| ↳ `email` | string | User email address | | ↳ `email` | string | User email address |
| ↳ `scheduling_url` | string | URL to the user's scheduling page | | ↳ `scheduling_url` | string | URL to the user |
| ↳ `timezone` | string | User timezone | | ↳ `timezone` | string | User timezone |
| ↳ `avatar_url` | string | URL to user avatar image | | ↳ `avatar_url` | string | URL to user avatar image |
| ↳ `created_at` | string | ISO timestamp when user was created | | ↳ `created_at` | string | ISO timestamp when user was created |
@@ -82,7 +82,7 @@ Retrieve a list of all event types for a user or organization
| ↳ `uri` | string | Canonical reference to the event type | | ↳ `uri` | string | Canonical reference to the event type |
| ↳ `name` | string | Event type name | | ↳ `name` | string | Event type name |
| ↳ `active` | boolean | Whether the event type is active | | ↳ `active` | boolean | Whether the event type is active |
| ↳ `booking_method` | string | Booking method \(e.g., "round_robin_or_collect", "collective"\) | | ↳ `booking_method` | string | Booking method \(e.g., |
| ↳ `color` | string | Hex color code | | ↳ `color` | string | Hex color code |
| ↳ `created_at` | string | ISO timestamp of creation | | ↳ `created_at` | string | ISO timestamp of creation |
| ↳ `description_html` | string | HTML formatted description | | ↳ `description_html` | string | HTML formatted description |
@@ -167,7 +167,7 @@ Retrieve a list of scheduled events for a user or organization
| ↳ `end_time` | string | ISO timestamp of event end | | ↳ `end_time` | string | ISO timestamp of event end |
| ↳ `event_type` | string | URI of the event type | | ↳ `event_type` | string | URI of the event type |
| ↳ `location` | object | Event location details | | ↳ `location` | object | Event location details |
| ↳ `type` | string | Location type \(e.g., "zoom", "google_meet", "physical"\) | | ↳ `type` | string | Location type \(e.g., |
| ↳ `location` | string | Location description | | ↳ `location` | string | Location description |
| ↳ `join_url` | string | URL to join online meeting \(if applicable\) | | ↳ `join_url` | string | URL to join online meeting \(if applicable\) |
| ↳ `invitees_counter` | object | Invitee count information | | ↳ `invitees_counter` | object | Invitee count information |

View File

@@ -140,20 +140,7 @@ Search for content across Confluence pages, blog posts, and other content.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ts` | string | Timestamp of search | | `ts` | string | Timestamp of search |
| `results` | array | Array of search results | | `results` | array | Search results |
| ↳ `id` | string | Unique content identifier |
| ↳ `title` | string | Content title |
| ↳ `type` | string | Content type \(e.g., page, blogpost, attachment, comment\) |
| ↳ `status` | string | Content status \(e.g., current\) |
| ↳ `url` | string | URL to view the content in Confluence |
| ↳ `excerpt` | string | Text excerpt matching the search query |
| ↳ `spaceKey` | string | Key of the space containing the content |
| ↳ `space` | object | Space information for the content |
| ↳ `id` | string | Space identifier |
| ↳ `key` | string | Space key |
| ↳ `name` | string | Space name |
| ↳ `lastModified` | string | ISO 8601 timestamp of last modification |
| ↳ `entityType` | string | Entity type identifier \(e.g., content, space\) |
### `confluence_create_comment` ### `confluence_create_comment`
@@ -193,25 +180,8 @@ List all comments on a Confluence page.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ts` | string | ISO 8601 timestamp of the operation | | `ts` | string | Timestamp of retrieval |
| `comments` | array | Array of Confluence comments | | `comments` | array | List of comments |
| ↳ `id` | string | Unique comment identifier |
| ↳ `status` | string | Comment status \(e.g., current\) |
| ↳ `title` | string | Comment title |
| ↳ `pageId` | string | ID of the page the comment belongs to |
| ↳ `blogPostId` | string | ID of the blog post the comment belongs to |
| ↳ `parentCommentId` | string | ID of the parent comment |
| ↳ `body` | object | Comment body content |
| ↳ `value` | string | Comment body content |
| ↳ `representation` | string | Content representation format \(e.g., storage, view\) |
| ↳ `createdAt` | string | ISO 8601 timestamp when the comment was created |
| ↳ `authorId` | string | Account ID of the comment author |
| ↳ `version` | object | Comment version information |
| ↳ `number` | number | Version number |
| ↳ `message` | string | Version message |
| ↳ `minorEdit` | boolean | Whether this is a minor edit |
| ↳ `authorId` | string | Account ID of the version author |
| ↳ `createdAt` | string | ISO 8601 timestamp of version creation |
### `confluence_update_comment` ### `confluence_update_comment`
@@ -298,24 +268,8 @@ List all attachments on a Confluence page.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ts` | string | ISO 8601 timestamp of the operation | | `ts` | string | Timestamp of retrieval |
| `attachments` | array | Array of Confluence attachments | | `attachments` | array | List of attachments |
| ↳ `id` | string | Unique attachment identifier \(prefixed with "att"\) |
| ↳ `title` | string | Attachment file name |
| ↳ `status` | string | Attachment status \(e.g., current, archived, trashed\) |
| ↳ `mediaType` | string | MIME type of the attachment |
| ↳ `fileSize` | number | File size in bytes |
| ↳ `downloadUrl` | string | URL to download the attachment |
| ↳ `webuiUrl` | string | URL to view the attachment in Confluence UI |
| ↳ `pageId` | string | ID of the page the attachment belongs to |
| ↳ `blogPostId` | string | ID of the blog post the attachment belongs to |
| ↳ `comment` | string | Comment/description of the attachment |
| ↳ `version` | object | Attachment version information |
| ↳ `number` | number | Version number |
| ↳ `message` | string | Version message |
| ↳ `minorEdit` | boolean | Whether this is a minor edit |
| ↳ `authorId` | string | Account ID of the version author |
| ↳ `createdAt` | string | ISO 8601 timestamp of version creation |
### `confluence_delete_attachment` ### `confluence_delete_attachment`
@@ -354,10 +308,7 @@ List all labels on a Confluence page.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ts` | string | Timestamp of retrieval | | `ts` | string | Timestamp of retrieval |
| `labels` | array | Array of labels on the page | | `labels` | array | List of labels |
| ↳ `id` | string | Unique label identifier |
| ↳ `name` | string | Label name |
| ↳ `prefix` | string | Label prefix/type \(e.g., global, my, team\) |
### `confluence_get_space` ### `confluence_get_space`
@@ -399,18 +350,7 @@ List all Confluence spaces accessible to the user.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ts` | string | ISO 8601 timestamp of the operation | | `ts` | string | Timestamp of retrieval |
| `spaces` | array | Array of Confluence spaces | | `spaces` | array | List of spaces |
| ↳ `id` | string | Unique space identifier |
| ↳ `key` | string | Space key \(short identifier used in URLs\) |
| ↳ `name` | string | Space name |
| ↳ `type` | string | Space type \(e.g., global, personal\) |
| ↳ `status` | string | Space status \(e.g., current, archived\) |
| ↳ `authorId` | string | Account ID of the space creator |
| ↳ `createdAt` | string | ISO 8601 timestamp when the space was created |
| ↳ `homepageId` | string | ID of the space homepage |
| ↳ `description` | object | Space description |
| ↳ `value` | string | Description text content |
| ↳ `representation` | string | Content representation format \(e.g., plain, view, storage\) |

View File

@@ -66,7 +66,7 @@ Search the web using Exa AI. Returns relevant search results with titles, URLs,
| ↳ `publishedDate` | string | Date when the content was published | | ↳ `publishedDate` | string | Date when the content was published |
| ↳ `author` | string | The author of the content | | ↳ `author` | string | The author of the content |
| ↳ `summary` | string | A brief summary of the content | | ↳ `summary` | string | A brief summary of the content |
| ↳ `favicon` | string | URL of the site's favicon | | ↳ `favicon` | string | URL of the site |
| ↳ `image` | string | URL of a representative image from the page | | ↳ `image` | string | URL of a representative image from the page |
| ↳ `text` | string | Text snippet or full content from the page | | ↳ `text` | string | Text snippet or full content from the page |
| ↳ `score` | number | Relevance score for the search result | | ↳ `score` | number | Relevance score for the search result |

View File

@@ -61,20 +61,6 @@ Extract structured content from web pages with comprehensive metadata support. C
| `markdown` | string | Page content in markdown format | | `markdown` | string | Page content in markdown format |
| `html` | string | Raw HTML content of the page | | `html` | string | Raw HTML content of the page |
| `metadata` | object | Page metadata including SEO and Open Graph information | | `metadata` | object | Page metadata including SEO and Open Graph information |
| ↳ `title` | string | Page title |
| ↳ `description` | string | Page meta description |
| ↳ `language` | string | Page language code \(e.g., "en"\) |
| ↳ `sourceURL` | string | Original source URL that was scraped |
| ↳ `statusCode` | number | HTTP status code of the response |
| ↳ `keywords` | string | Page meta keywords |
| ↳ `robots` | string | Robots meta directive \(e.g., "follow, index"\) |
| ↳ `ogTitle` | string | Open Graph title |
| ↳ `ogDescription` | string | Open Graph description |
| ↳ `ogUrl` | string | Open Graph URL |
| ↳ `ogImage` | string | Open Graph image URL |
| ↳ `ogLocaleAlternate` | array | Alternate locale versions for Open Graph |
| ↳ `ogSiteName` | string | Open Graph site name |
| ↳ `error` | string | Error message if scrape failed |
### `firecrawl_search` ### `firecrawl_search`
@@ -91,21 +77,7 @@ Search for information on the web using Firecrawl
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `data` | array | Search results data with scraped content and metadata | | `data` | array | Search results data |
| ↳ `title` | string | Search result title from search engine |
| ↳ `description` | string | Search result description/snippet from search engine |
| ↳ `url` | string | URL of the search result |
| ↳ `markdown` | string | Page content in markdown \(when scrapeOptions.formats includes "markdown"\) |
| ↳ `html` | string | Processed HTML content \(when scrapeOptions.formats includes "html"\) |
| ↳ `rawHtml` | string | Unprocessed raw HTML \(when scrapeOptions.formats includes "rawHtml"\) |
| ↳ `links` | array | Links found on the page \(when scrapeOptions.formats includes "links"\) |
| ↳ `screenshot` | string | Screenshot URL \(expires after 24 hours, when scrapeOptions.formats includes "screenshot"\) |
| ↳ `metadata` | object | Metadata about the search result page |
| ↳ `title` | string | Page title |
| ↳ `description` | string | Page meta description |
| ↳ `sourceURL` | string | Original source URL |
| ↳ `statusCode` | number | HTTP status code |
| ↳ `error` | string | Error message if scrape failed |
### `firecrawl_crawl` ### `firecrawl_crawl`
@@ -126,17 +98,13 @@ Crawl entire websites and extract structured content from all accessible pages
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pages` | array | Array of crawled pages with their content and metadata | | `pages` | array | Array of crawled pages with their content and metadata |
| ↳ `markdown` | string | Page content in markdown format | | ↳ `markdown` | string | Page content in markdown format |
| ↳ `html` | string | Processed HTML content of the page | | ↳ `html` | string | Page HTML content |
| ↳ `rawHtml` | string | Unprocessed raw HTML content | | ↳ `metadata` | object | Page metadata |
| ↳ `links` | array | Array of links found on the page |
| ↳ `screenshot` | string | Screenshot URL \(expires after 24 hours\) |
| ↳ `metadata` | object | Page metadata from crawl operation |
| ↳ `title` | string | Page title | | ↳ `title` | string | Page title |
| ↳ `description` | string | Page meta description | | ↳ `description` | string | Page description |
| ↳ `language` | string | Page language code | | ↳ `language` | string | Page language |
| ↳ `sourceURL` | string | Original source URL | | ↳ `sourceURL` | string | Source URL of the page |
| ↳ `statusCode` | number | HTTP status code | | ↳ `statusCode` | number | HTTP status code |
| ↳ `ogLocaleAlternate` | array | Alternate locale versions |
| `total` | number | Total number of pages found during crawl | | `total` | number | Total number of pages found during crawl |
| `creditsUsed` | number | Number of credits consumed by the crawl operation | | `creditsUsed` | number | Number of credits consumed by the crawl operation |

File diff suppressed because it is too large Load Diff

View File

@@ -231,7 +231,7 @@ List all email aliases for a Google Group
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `aliases` | array | List of email aliases for the group | | `aliases` | array | List of email aliases for the group |
| ↳ `id` | string | Unique group identifier | | ↳ `id` | string | Unique group identifier |
| ↳ `primaryEmail` | string | Group's primary email address | | ↳ `primaryEmail` | string | Group |
| ↳ `alias` | string | Alias email address | | ↳ `alias` | string | Alias email address |
| ↳ `kind` | string | API resource type | | ↳ `kind` | string | API resource type |
| ↳ `etag` | string | Resource version identifier | | ↳ `etag` | string | Resource version identifier |
@@ -252,7 +252,7 @@ Add an email alias to a Google Group
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `id` | string | Unique group identifier | | `id` | string | Unique group identifier |
| `primaryEmail` | string | Group's primary email address | | `primaryEmail` | string | Group |
| `alias` | string | The alias that was added | | `alias` | string | The alias that was added |
| `kind` | string | API resource type | | `kind` | string | API resource type |
| `etag` | string | Resource version identifier | | `etag` | string | Resource version identifier |
@@ -288,7 +288,7 @@ Get the settings for a Google Group including access permissions, moderation, an
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `email` | string | The group's email address | | `email` | string | The group |
| `name` | string | The group name \(max 75 characters\) | | `name` | string | The group name \(max 75 characters\) |
| `description` | string | The group description \(max 4096 characters\) | | `description` | string | The group description \(max 4096 characters\) |
| `whoCanJoin` | string | Who can join the group \(ANYONE_CAN_JOIN, ALL_IN_DOMAIN_CAN_JOIN, INVITED_CAN_JOIN, CAN_REQUEST_TO_JOIN\) | | `whoCanJoin` | string | Who can join the group \(ANYONE_CAN_JOIN, ALL_IN_DOMAIN_CAN_JOIN, INVITED_CAN_JOIN, CAN_REQUEST_TO_JOIN\) |
@@ -297,7 +297,7 @@ Get the settings for a Google Group including access permissions, moderation, an
| `whoCanPostMessage` | string | Who can post messages to the group | | `whoCanPostMessage` | string | Who can post messages to the group |
| `allowExternalMembers` | string | Whether external users can be members | | `allowExternalMembers` | string | Whether external users can be members |
| `allowWebPosting` | string | Whether web posting is allowed | | `allowWebPosting` | string | Whether web posting is allowed |
| `primaryLanguage` | string | The group's primary language | | `primaryLanguage` | string | The group |
| `isArchived` | string | Whether messages are archived | | `isArchived` | string | Whether messages are archived |
| `archiveOnly` | string | Whether the group is archive-only \(inactive\) | | `archiveOnly` | string | Whether the group is archive-only \(inactive\) |
| `messageModerationLevel` | string | Message moderation level | | `messageModerationLevel` | string | Message moderation level |
@@ -368,7 +368,7 @@ Update the settings for a Google Group including access permissions, moderation,
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `email` | string | The group's email address | | `email` | string | The group |
| `name` | string | The group name | | `name` | string | The group name |
| `description` | string | The group description | | `description` | string | The group description |
| `whoCanJoin` | string | Who can join the group | | `whoCanJoin` | string | Who can join the group |
@@ -377,7 +377,7 @@ Update the settings for a Google Group including access permissions, moderation,
| `whoCanPostMessage` | string | Who can post messages to the group | | `whoCanPostMessage` | string | Who can post messages to the group |
| `allowExternalMembers` | string | Whether external users can be members | | `allowExternalMembers` | string | Whether external users can be members |
| `allowWebPosting` | string | Whether web posting is allowed | | `allowWebPosting` | string | Whether web posting is allowed |
| `primaryLanguage` | string | The group's primary language | | `primaryLanguage` | string | The group |
| `isArchived` | string | Whether messages are archived | | `isArchived` | string | Whether messages are archived |
| `archiveOnly` | string | Whether the group is archive-only | | `archiveOnly` | string | Whether the group is archive-only |
| `messageModerationLevel` | string | Message moderation level | | `messageModerationLevel` | string | Message moderation level |

View File

@@ -66,8 +66,8 @@ Search the web with the Custom Search API
| ↳ `title` | string | Title of the search result | | ↳ `title` | string | Title of the search result |
| ↳ `link` | string | URL of the search result | | ↳ `link` | string | URL of the search result |
| ↳ `snippet` | string | Snippet or description of the search result | | ↳ `snippet` | string | Snippet or description of the search result |
| ↳ `displayLink` | string | Display URL \(abbreviated form\) | | ↳ `displayLink` | string | Display URL |
| ↳ `pagemap` | object | PageMap information for the result \(structured data\) | | ↳ `pagemap` | object | Additional page metadata |
| `searchInformation` | object | Information about the search query and results | | `searchInformation` | object | Information about the search query and results |
| ↳ `totalResults` | string | Total number of search results available | | ↳ `totalResults` | string | Total number of search results available |
| ↳ `searchTime` | number | Time taken to perform the search in seconds | | ↳ `searchTime` | number | Time taken to perform the search in seconds |

View File

@@ -51,12 +51,6 @@ Retrieve all users from HubSpot account
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `users` | array | Array of HubSpot user objects | | `users` | array | Array of HubSpot user objects |
| ↳ `id` | string | User ID |
| ↳ `email` | string | User email address |
| ↳ `roleId` | string | User role ID |
| ↳ `primaryTeamId` | string | Primary team ID |
| ↳ `secondaryTeamIds` | array | Secondary team IDs |
| ↳ `superAdmin` | boolean | Whether user is a super admin |
| `totalItems` | number | Total number of users returned | | `totalItems` | number | Total number of users returned |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -77,33 +71,9 @@ Retrieve all contacts from HubSpot account with pagination support
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `contacts` | array | Array of HubSpot contact records | | `contacts` | array | Array of HubSpot contact objects |
| ↳ `email` | string | Contact email address | | `paging` | object | Pagination information |
| ↳ `firstname` | string | Contact first name | | `metadata` | object | Metadata with totalReturned and hasMore |
| ↳ `lastname` | string | Contact last name |
| ↳ `phone` | string | Contact phone number |
| ↳ `mobilephone` | string | Contact mobile phone number |
| ↳ `company` | string | Associated company name |
| ↳ `website` | string | Contact website URL |
| ↳ `jobtitle` | string | Contact job title |
| ↳ `lifecyclestage` | string | Lifecycle stage \(subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer\) |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `createdate` | string | Contact creation date \(ISO 8601\) |
| ↳ `lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `address` | string | Street address |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `fax` | string | Fax number |
| ↳ `hs_timezone` | string | Contact timezone |
| `paging` | object | Pagination information for fetching more results |
| ↳ `after` | string | Cursor for next page of results |
| ↳ `link` | string | Link to next page |
| `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records are available |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
### `hubspot_get_contact` ### `hubspot_get_contact`
@@ -123,27 +93,7 @@ Retrieve a single contact by ID or email from HubSpot
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `contact` | object | HubSpot contact record | | `contact` | object | HubSpot contact object with properties |
| ↳ `email` | string | Contact email address |
| ↳ `firstname` | string | Contact first name |
| ↳ `lastname` | string | Contact last name |
| ↳ `phone` | string | Contact phone number |
| ↳ `mobilephone` | string | Contact mobile phone number |
| ↳ `company` | string | Associated company name |
| ↳ `website` | string | Contact website URL |
| ↳ `jobtitle` | string | Contact job title |
| ↳ `lifecyclestage` | string | Lifecycle stage \(subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer\) |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `createdate` | string | Contact creation date \(ISO 8601\) |
| ↳ `lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `address` | string | Street address |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `fax` | string | Fax number |
| ↳ `hs_timezone` | string | Contact timezone |
| `contactId` | string | The retrieved contact ID | | `contactId` | string | The retrieved contact ID |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -162,27 +112,7 @@ Create a new contact in HubSpot. Requires at least one of: email, firstname, or
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `contact` | object | HubSpot contact record | | `contact` | object | Created HubSpot contact object |
| ↳ `email` | string | Contact email address |
| ↳ `firstname` | string | Contact first name |
| ↳ `lastname` | string | Contact last name |
| ↳ `phone` | string | Contact phone number |
| ↳ `mobilephone` | string | Contact mobile phone number |
| ↳ `company` | string | Associated company name |
| ↳ `website` | string | Contact website URL |
| ↳ `jobtitle` | string | Contact job title |
| ↳ `lifecyclestage` | string | Lifecycle stage \(subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer\) |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `createdate` | string | Contact creation date \(ISO 8601\) |
| ↳ `lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `address` | string | Street address |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `fax` | string | Fax number |
| ↳ `hs_timezone` | string | Contact timezone |
| `contactId` | string | The created contact ID | | `contactId` | string | The created contact ID |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -202,27 +132,7 @@ Update an existing contact in HubSpot by ID or email
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `contact` | object | HubSpot contact record | | `contact` | object | Updated HubSpot contact object |
| ↳ `email` | string | Contact email address |
| ↳ `firstname` | string | Contact first name |
| ↳ `lastname` | string | Contact last name |
| ↳ `phone` | string | Contact phone number |
| ↳ `mobilephone` | string | Contact mobile phone number |
| ↳ `company` | string | Associated company name |
| ↳ `website` | string | Contact website URL |
| ↳ `jobtitle` | string | Contact job title |
| ↳ `lifecyclestage` | string | Lifecycle stage \(subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer\) |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `createdate` | string | Contact creation date \(ISO 8601\) |
| ↳ `lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `address` | string | Street address |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `fax` | string | Fax number |
| ↳ `hs_timezone` | string | Contact timezone |
| `contactId` | string | The updated contact ID | | `contactId` | string | The updated contact ID |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -245,34 +155,10 @@ Search for contacts in HubSpot using filters, sorting, and queries
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `contacts` | array | Array of HubSpot contact records | | `contacts` | array | Array of matching HubSpot contact objects |
| ↳ `email` | string | Contact email address |
| ↳ `firstname` | string | Contact first name |
| ↳ `lastname` | string | Contact last name |
| ↳ `phone` | string | Contact phone number |
| ↳ `mobilephone` | string | Contact mobile phone number |
| ↳ `company` | string | Associated company name |
| ↳ `website` | string | Contact website URL |
| ↳ `jobtitle` | string | Contact job title |
| ↳ `lifecyclestage` | string | Lifecycle stage \(subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer\) |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `createdate` | string | Contact creation date \(ISO 8601\) |
| ↳ `lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `address` | string | Street address |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `fax` | string | Fax number |
| ↳ `hs_timezone` | string | Contact timezone |
| `paging` | object | Pagination information for fetching more results |
| ↳ `after` | string | Cursor for next page of results |
| ↳ `link` | string | Link to next page |
| `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records are available |
| `total` | number | Total number of matching contacts | | `total` | number | Total number of matching contacts |
| `paging` | object | Pagination information |
| `metadata` | object | Metadata with totalReturned and hasMore |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
### `hubspot_list_companies` ### `hubspot_list_companies`
@@ -292,34 +178,9 @@ Retrieve all companies from HubSpot account with pagination support
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `companies` | array | Array of HubSpot company records | | `companies` | array | Array of HubSpot company objects |
| ↳ `name` | string | Company name | | `paging` | object | Pagination information |
| ↳ `domain` | string | Company website domain \(unique identifier\) | | `metadata` | object | Metadata with totalReturned and hasMore |
| ↳ `description` | string | Company description |
| ↳ `industry` | string | Industry type \(e.g., Airlines/Aviation\) |
| ↳ `phone` | string | Company phone number |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `address` | string | Street address |
| ↳ `numberofemployees` | string | Total number of employees |
| ↳ `annualrevenue` | string | Annual revenue estimate |
| ↳ `lifecyclestage` | string | Lifecycle stage |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `hs_createdate` | string | Company creation date \(ISO 8601\) |
| ↳ `hs_lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `hs_additional_domains` | string | Additional domains \(semicolon-separated\) |
| ↳ `num_associated_contacts` | string | Number of associated contacts \(auto-updated\) |
| ↳ `num_associated_deals` | string | Number of associated deals \(auto-updated\) |
| ↳ `website` | string | Company website URL |
| `paging` | object | Pagination information for fetching more results |
| ↳ `after` | string | Cursor for next page of results |
| ↳ `link` | string | Link to next page |
| `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records are available |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
### `hubspot_get_company` ### `hubspot_get_company`
@@ -339,28 +200,7 @@ Retrieve a single company by ID or domain from HubSpot
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `company` | object | HubSpot company record | | `company` | object | HubSpot company object with properties |
| ↳ `name` | string | Company name |
| ↳ `domain` | string | Company website domain \(unique identifier\) |
| ↳ `description` | string | Company description |
| ↳ `industry` | string | Industry type \(e.g., Airlines/Aviation\) |
| ↳ `phone` | string | Company phone number |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `address` | string | Street address |
| ↳ `numberofemployees` | string | Total number of employees |
| ↳ `annualrevenue` | string | Annual revenue estimate |
| ↳ `lifecyclestage` | string | Lifecycle stage |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `hs_createdate` | string | Company creation date \(ISO 8601\) |
| ↳ `hs_lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `hs_additional_domains` | string | Additional domains \(semicolon-separated\) |
| ↳ `num_associated_contacts` | string | Number of associated contacts \(auto-updated\) |
| ↳ `num_associated_deals` | string | Number of associated deals \(auto-updated\) |
| ↳ `website` | string | Company website URL |
| `companyId` | string | The retrieved company ID | | `companyId` | string | The retrieved company ID |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -379,28 +219,7 @@ Create a new company in HubSpot
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `company` | object | HubSpot company record | | `company` | object | Created HubSpot company object |
| ↳ `name` | string | Company name |
| ↳ `domain` | string | Company website domain \(unique identifier\) |
| ↳ `description` | string | Company description |
| ↳ `industry` | string | Industry type \(e.g., Airlines/Aviation\) |
| ↳ `phone` | string | Company phone number |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `address` | string | Street address |
| ↳ `numberofemployees` | string | Total number of employees |
| ↳ `annualrevenue` | string | Annual revenue estimate |
| ↳ `lifecyclestage` | string | Lifecycle stage |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `hs_createdate` | string | Company creation date \(ISO 8601\) |
| ↳ `hs_lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `hs_additional_domains` | string | Additional domains \(semicolon-separated\) |
| ↳ `num_associated_contacts` | string | Number of associated contacts \(auto-updated\) |
| ↳ `num_associated_deals` | string | Number of associated deals \(auto-updated\) |
| ↳ `website` | string | Company website URL |
| `companyId` | string | The created company ID | | `companyId` | string | The created company ID |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -420,28 +239,7 @@ Update an existing company in HubSpot by ID or domain
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `company` | object | HubSpot company record | | `company` | object | Updated HubSpot company object |
| ↳ `name` | string | Company name |
| ↳ `domain` | string | Company website domain \(unique identifier\) |
| ↳ `description` | string | Company description |
| ↳ `industry` | string | Industry type \(e.g., Airlines/Aviation\) |
| ↳ `phone` | string | Company phone number |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `address` | string | Street address |
| ↳ `numberofemployees` | string | Total number of employees |
| ↳ `annualrevenue` | string | Annual revenue estimate |
| ↳ `lifecyclestage` | string | Lifecycle stage |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `hs_createdate` | string | Company creation date \(ISO 8601\) |
| ↳ `hs_lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `hs_additional_domains` | string | Additional domains \(semicolon-separated\) |
| ↳ `num_associated_contacts` | string | Number of associated contacts \(auto-updated\) |
| ↳ `num_associated_deals` | string | Number of associated deals \(auto-updated\) |
| ↳ `website` | string | Company website URL |
| `companyId` | string | The updated company ID | | `companyId` | string | The updated company ID |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -464,35 +262,10 @@ Search for companies in HubSpot using filters, sorting, and queries
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `companies` | array | Array of HubSpot company records | | `companies` | array | Array of matching HubSpot company objects |
| ↳ `name` | string | Company name |
| ↳ `domain` | string | Company website domain \(unique identifier\) |
| ↳ `description` | string | Company description |
| ↳ `industry` | string | Industry type \(e.g., Airlines/Aviation\) |
| ↳ `phone` | string | Company phone number |
| ↳ `city` | string | City |
| ↳ `state` | string | State/Region |
| ↳ `zip` | string | Postal/ZIP code |
| ↳ `country` | string | Country |
| ↳ `address` | string | Street address |
| ↳ `numberofemployees` | string | Total number of employees |
| ↳ `annualrevenue` | string | Annual revenue estimate |
| ↳ `lifecyclestage` | string | Lifecycle stage |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `hs_createdate` | string | Company creation date \(ISO 8601\) |
| ↳ `hs_lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `hs_additional_domains` | string | Additional domains \(semicolon-separated\) |
| ↳ `num_associated_contacts` | string | Number of associated contacts \(auto-updated\) |
| ↳ `num_associated_deals` | string | Number of associated deals \(auto-updated\) |
| ↳ `website` | string | Company website URL |
| `paging` | object | Pagination information for fetching more results |
| ↳ `after` | string | Cursor for next page of results |
| ↳ `link` | string | Link to next page |
| `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records are available |
| `total` | number | Total number of matching companies | | `total` | number | Total number of matching companies |
| `paging` | object | Pagination information |
| `metadata` | object | Metadata with totalReturned and hasMore |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
### `hubspot_list_deals` ### `hubspot_list_deals`
@@ -512,25 +285,9 @@ Retrieve all deals from HubSpot account with pagination support
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `deals` | array | Array of HubSpot deal records | | `deals` | array | Array of HubSpot deal objects |
| ↳ `dealname` | string | Deal name | | `paging` | object | Pagination information |
| ↳ `amount` | string | Deal amount | | `metadata` | object | Metadata with totalReturned and hasMore |
| ↳ `dealstage` | string | Current deal stage |
| ↳ `pipeline` | string | Pipeline the deal is in |
| ↳ `closedate` | string | Expected close date \(ISO 8601\) |
| ↳ `dealtype` | string | Deal type \(New Business, Existing Business, etc.\) |
| ↳ `description` | string | Deal description |
| ↳ `hubspot_owner_id` | string | HubSpot owner ID |
| ↳ `hs_object_id` | string | HubSpot object ID \(same as record ID\) |
| ↳ `createdate` | string | Deal creation date \(ISO 8601\) |
| ↳ `hs_lastmodifieddate` | string | Last modified date \(ISO 8601\) |
| ↳ `num_associated_contacts` | string | Number of associated contacts |
| `paging` | object | Pagination information for fetching more results |
| ↳ `after` | string | Cursor for next page of results |
| ↳ `link` | string | Link to next page |
| `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records are available |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |

View File

@@ -52,12 +52,7 @@ Returns companies matching a set of criteria using Hunter.io AI-powered search.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `results` | array | List of companies matching the search criteria | | `results` | array | Array of companies matching the search criteria, each containing domain, name, headcount, technologies, and email_count |
| ↳ `domain` | string | Company domain |
| ↳ `name` | string | Company/organization name |
| ↳ `headcount` | number | Company size/headcount |
| ↳ `technologies` | array | Technologies used by the company |
| ↳ `email_count` | number | Total number of email addresses found |
### `hunter_domain_search` ### `hunter_domain_search`
@@ -79,46 +74,26 @@ Returns all the email addresses found using one given domain name, with sources.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `emails` | array | List of email addresses found for the domain \(up to 100 per request\) |
| ↳ `value` | string | The email address |
| ↳ `type` | string | Email type: personal or generic \(role-based\) |
| ↳ `confidence` | number | Probability score \(0-100\) that the email is correct |
| ↳ `first_name` | string | Person's first name |
| ↳ `last_name` | string | Person's last name |
| ↳ `position` | string | Job title/position |
| ↳ `seniority` | string | Seniority level \(junior, senior, executive\) |
| ↳ `department` | string | Department \(executive, it, finance, management, sales, legal, support, hr, marketing, communication\) |
| ↳ `linkedin` | string | LinkedIn profile URL |
| ↳ `twitter` | string | Twitter handle |
| ↳ `phone_number` | string | Phone number |
| ↳ `sources` | array | List of sources where the email was found \(limited to 20\) |
| ↳ `domain` | string | Domain where the email was found |
| ↳ `uri` | string | Full URL of the source page |
| ↳ `extracted_on` | string | Date when the email was first extracted \(YYYY-MM-DD\) |
| ↳ `last_seen_on` | string | Date when the email was last seen \(YYYY-MM-DD\) |
| ↳ `still_on_page` | boolean | Whether the email is still present on the source page |
| ↳ `verification` | object | Email verification information |
| ↳ `date` | string | Date when the email was verified \(YYYY-MM-DD\) |
| ↳ `status` | string | Verification status \(valid, invalid, accept_all, webmail, disposable, unknown\) |
| `domain` | string | The searched domain name | | `domain` | string | The searched domain name |
| `disposable` | boolean | Whether the domain is a disposable email service | | `disposable` | boolean | Whether the domain accepts disposable email addresses |
| `webmail` | boolean | Whether the domain is a webmail provider \(e.g., Gmail\) | | `webmail` | boolean | Whether the domain is a webmail provider |
| `accept_all` | boolean | Whether the server accepts all email addresses \(may cause false positives\) | | `accept_all` | boolean | Whether the domain accepts all email addresses |
| `pattern` | string | The email pattern used by the organization \(e.g., \{first\}, \{first\}.\{last\}\) | | `pattern` | string | The email pattern used by the organization |
| `organization` | string | The organization/company name | | `organization` | string | The organization name |
| `description` | string | Description of the organization | | `description` | string | Description of the organization |
| `industry` | string | Industry classification of the organization | | `industry` | string | Industry of the organization |
| `twitter` | string | Twitter handle of the organization | | `twitter` | string | Twitter profile of the organization |
| `facebook` | string | Facebook page URL of the organization | | `facebook` | string | Facebook profile of the organization |
| `linkedin` | string | LinkedIn company page URL | | `linkedin` | string | LinkedIn profile of the organization |
| `instagram` | string | Instagram profile of the organization | | `instagram` | string | Instagram profile of the organization |
| `youtube` | string | YouTube channel of the organization | | `youtube` | string | YouTube channel of the organization |
| `technologies` | array | Technologies used by the organization | | `technologies` | array | Array of technologies used by the organization |
| `country` | string | Country where the organization is headquartered | | `country` | string | Country where the organization is located |
| `state` | string | State/province where the organization is located | | `state` | string | State where the organization is located |
| `city` | string | City where the organization is located | | `city` | string | City where the organization is located |
| `postal_code` | string | Postal code of the organization | | `postal_code` | string | Postal code of the organization |
| `street` | string | Street address of the organization | | `street` | string | Street address of the organization |
| `emails` | array | Array of email addresses found for the domain, each containing value, type, confidence, sources, and person details |
### `hunter_email_finder` ### `hunter_email_finder`
@@ -138,17 +113,10 @@ Finds the most likely email address for a person given their name and company do
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `sources` | array | List of sources where the email was found \(limited to 20\) |
| ↳ `domain` | string | Domain where the email was found |
| ↳ `uri` | string | Full URL of the source page |
| ↳ `extracted_on` | string | Date when the email was first extracted \(YYYY-MM-DD\) |
| ↳ `last_seen_on` | string | Date when the email was last seen \(YYYY-MM-DD\) |
| ↳ `still_on_page` | boolean | Whether the email is still present on the source page |
| `verification` | object | Email verification information |
| ↳ `date` | string | Date when the email was verified \(YYYY-MM-DD\) |
| ↳ `status` | string | Verification status \(valid, invalid, accept_all, webmail, disposable, unknown\) |
| `email` | string | The found email address | | `email` | string | The found email address |
| `score` | number | Confidence score \(0-100\) for the found email address | | `score` | number | Confidence score for the found email address |
| `sources` | array | Array of sources where the email was found, each containing domain, uri, extracted_on, last_seen_on, and still_on_page |
| `verification` | object | Verification information containing date and status |
### `hunter_email_verifier` ### `hunter_email_verifier`
@@ -165,25 +133,20 @@ Verifies the deliverability of an email address and provides detailed verificati
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `sources` | array | List of sources where the email was found \(limited to 20\) |
| ↳ `domain` | string | Domain where the email was found |
| ↳ `uri` | string | Full URL of the source page |
| ↳ `extracted_on` | string | Date when the email was first extracted \(YYYY-MM-DD\) |
| ↳ `last_seen_on` | string | Date when the email was last seen \(YYYY-MM-DD\) |
| ↳ `still_on_page` | boolean | Whether the email is still present on the source page |
| `result` | string | Deliverability result: deliverable, undeliverable, or risky | | `result` | string | Deliverability result: deliverable, undeliverable, or risky |
| `score` | number | Deliverability score \(0-100\). Webmail and disposable emails receive an arbitrary score of 50. | | `score` | number | Confidence score for the verification result |
| `email` | string | The verified email address | | `email` | string | The verified email address |
| `regexp` | boolean | Whether the email passes regular expression validation | | `regexp` | boolean | Whether the email follows a valid regex pattern |
| `gibberish` | boolean | Whether the email appears to be auto-generated \(e.g., e65rc109q@company.com\) | | `gibberish` | boolean | Whether the email appears to be gibberish |
| `disposable` | boolean | Whether the email is from a disposable email service | | `disposable` | boolean | Whether the email is from a disposable email provider |
| `webmail` | boolean | Whether the email is from a webmail provider \(e.g., Gmail\) | | `webmail` | boolean | Whether the email is from a webmail provider |
| `mx_records` | boolean | Whether MX records exist for the domain | | `mx_records` | boolean | Whether MX records exist for the domain |
| `smtp_server` | boolean | Whether connection to the SMTP server was successful | | `smtp_server` | boolean | Whether the SMTP server is reachable |
| `smtp_check` | boolean | Whether the email address doesn't bounce | | `smtp_check` | boolean | Whether the SMTP check was successful |
| `accept_all` | boolean | Whether the server accepts all email addresses \(may cause false positives\) | | `accept_all` | boolean | Whether the domain accepts all email addresses |
| `block` | boolean | Whether the domain is blocking verification \(validity could not be determined\) | | `block` | boolean | Whether the email is blocked |
| `status` | string | Verification status: valid, invalid, accept_all, webmail, disposable, unknown, or blocked | | `status` | string | Verification status: valid, invalid, accept_all, webmail, disposable, or unknown |
| `sources` | array | Array of sources where the email was found |
### `hunter_companies_find` ### `hunter_companies_find`
@@ -200,15 +163,8 @@ Enriches company data using domain name.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `company` | object | Company information |
| ↳ `name` | string | Company name |
| ↳ `domain` | string | Company domain |
| ↳ `industry` | string | Industry classification |
| ↳ `size` | string | Company size/headcount range |
| ↳ `country` | string | Country where the company is located |
| ↳ `linkedin` | string | LinkedIn company page URL |
| ↳ `twitter` | string | Twitter handle |
| `person` | object | Person information \(undefined for companies_find tool\) | | `person` | object | Person information \(undefined for companies_find tool\) |
| `company` | object | Company information including name, domain, industry, size, country, linkedin, and twitter |
### `hunter_email_count` ### `hunter_email_count`
@@ -227,27 +183,10 @@ Returns the total number of email addresses found for a domain or company.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `department` | object | Email count breakdown by department |
| ↳ `executive` | number | Number of executive department emails |
| ↳ `it` | number | Number of IT department emails |
| ↳ `finance` | number | Number of finance department emails |
| ↳ `management` | number | Number of management department emails |
| ↳ `sales` | number | Number of sales department emails |
| ↳ `legal` | number | Number of legal department emails |
| ↳ `support` | number | Number of support department emails |
| ↳ `hr` | number | Number of HR department emails |
| ↳ `marketing` | number | Number of marketing department emails |
| ↳ `communication` | number | Number of communication department emails |
| ↳ `education` | number | Number of education department emails |
| ↳ `design` | number | Number of design department emails |
| ↳ `health` | number | Number of health department emails |
| ↳ `operations` | number | Number of operations department emails |
| `seniority` | object | Email count breakdown by seniority level |
| ↳ `junior` | number | Number of junior-level emails |
| ↳ `senior` | number | Number of senior-level emails |
| ↳ `executive` | number | Number of executive-level emails |
| `total` | number | Total number of email addresses found | | `total` | number | Total number of email addresses found |
| `personal_emails` | number | Number of personal email addresses \(individual employees\) | | `personal_emails` | number | Number of personal email addresses found |
| `generic_emails` | number | Number of generic/role-based email addresses \(e.g., contact@, info@\) | | `generic_emails` | number | Number of generic email addresses found |
| `department` | object | Breakdown of email addresses by department \(executive, it, finance, management, sales, legal, support, hr, marketing, communication\) |
| `seniority` | object | Breakdown of email addresses by seniority level \(junior, senior, executive\) |

View File

@@ -58,36 +58,32 @@ List incidents from incident.io. Returns a list of incidents with their details
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `incidents` | array | List of incidents | | `incidents` | array | List of incidents |
| ↳ `id` | string | Incident ID | | ↳ `id` | string | Incident ID |
| ↳ `name` | string | Incident name/title | | ↳ `name` | string | Incident name |
| ↳ `summary` | string | Incident summary | | ↳ `summary` | string | Brief summary of the incident |
| ↳ `description` | string | Incident description | | ↳ `description` | string | Detailed description of the incident |
| ↳ `mode` | string | Incident mode \(standard, retrospective, test\) | | ↳ `mode` | string | Incident mode \(e.g., standard, retrospective\) |
| ↳ `call_url` | string | Video call URL | | ↳ `call_url` | string | URL for the incident call/bridge |
| ↳ `severity` | object | Incident severity | | ↳ `severity` | object | Severity of the incident |
| ↳ `id` | string | Severity ID | | ↳ `id` | string | Severity ID |
| ↳ `name` | string | Severity name \(e.g., Critical, Major, Minor\) | | ↳ `name` | string | Severity name |
| ↳ `description` | string | Severity description | | ↳ `rank` | number | Severity rank |
| ↳ `rank` | number | Severity rank \(lower = more severe\) | | ↳ `status` | object | Current status of the incident |
| ↳ `status` | object | Current incident status |
| ↳ `id` | string | Status ID | | ↳ `id` | string | Status ID |
| ↳ `name` | string | Status name | | ↳ `name` | string | Status name |
| ↳ `description` | string | Status description | | ↳ `category` | string | Status category |
| ↳ `category` | string | Status category \(triage, active, post-incident, closed\) | | ↳ `incident_type` | object | Type of the incident |
| ↳ `incident_type` | object | Incident type | | ↳ `id` | string | Type ID |
| ↳ `id` | string | Incident type ID | | ↳ `name` | string | Type name |
| ↳ `name` | string | Incident type name | | ↳ `created_at` | string | Creation timestamp |
| ↳ `description` | string | Incident type description | | ↳ `updated_at` | string | Last update timestamp |
| ↳ `is_default` | boolean | Whether this is the default incident type | | ↳ `incident_url` | string | URL to the incident |
| ↳ `created_at` | string | When the incident was created \(ISO 8601\) | | ↳ `slack_channel_id` | string | Associated Slack channel ID |
| ↳ `updated_at` | string | When the incident was last updated \(ISO 8601\) | | ↳ `slack_channel_name` | string | Associated Slack channel name |
| ↳ `incident_url` | string | URL to the incident page | | ↳ `visibility` | string | Incident visibility |
| ↳ `slack_channel_id` | string | Slack channel ID |
| ↳ `slack_channel_name` | string | Slack channel name |
| ↳ `visibility` | string | Incident visibility \(public, private\) |
| `pagination_meta` | object | Pagination metadata | | `pagination_meta` | object | Pagination metadata |
| ↳ `after` | string | Cursor for next page | | ↳ `after` | string | Cursor for the next page |
| ↳ `page_size` | number | Number of items per page | | ↳ `page_size` | number | Number of items per page |
| ↳ `total_record_count` | number | Total number of records | | ↳ `total_record_count` | number | Total number of records available |
### `incidentio_incidents_create` ### `incidentio_incidents_create`

View File

@@ -126,61 +126,21 @@ Get a single contact by ID from Intercom. Returns API-aligned fields only.
| ↳ `type` | string | Object type \(contact\) | | ↳ `type` | string | Object type \(contact\) |
| ↳ `role` | string | Role of the contact \(user or lead\) | | ↳ `role` | string | Role of the contact \(user or lead\) |
| ↳ `email` | string | Email address of the contact | | ↳ `email` | string | Email address of the contact |
| ↳ `email_domain` | string | Email domain of the contact |
| ↳ `phone` | string | Phone number of the contact | | ↳ `phone` | string | Phone number of the contact |
| ↳ `name` | string | Name of the contact | | ↳ `name` | string | Name of the contact |
| ↳ `avatar` | string | Avatar URL of the contact | | ↳ `avatar` | string | Avatar URL of the contact |
| ↳ `owner_id` | string | ID of the admin assigned account ownership | | ↳ `owner_id` | string | ID of the admin assigned to this contact |
| ↳ `external_id` | string | External identifier provided by the client | | ↳ `external_id` | string | External identifier for the contact |
| ↳ `workspace_id` | string | Workspace ID the contact belongs to |
| ↳ `created_at` | number | Unix timestamp when contact was created | | ↳ `created_at` | number | Unix timestamp when contact was created |
| ↳ `updated_at` | number | Unix timestamp when contact was last updated | | ↳ `updated_at` | number | Unix timestamp when contact was last updated |
| ↳ `signed_up_at` | number | Unix timestamp when user signed up | | ↳ `workspace_id` | string | Workspace ID the contact belongs to |
| ↳ `last_seen_at` | number | Unix timestamp when user was last seen |
| ↳ `last_contacted_at` | number | Unix timestamp when contact was last contacted |
| ↳ `last_replied_at` | number | Unix timestamp when contact last replied |
| ↳ `last_email_opened_at` | number | Unix timestamp when contact last opened an email |
| ↳ `last_email_clicked_at` | number | Unix timestamp when contact last clicked an email link |
| ↳ `has_hard_bounced` | boolean | Whether email to this contact has hard bounced |
| ↳ `marked_email_as_spam` | boolean | Whether contact marked email as spam |
| ↳ `unsubscribed_from_emails` | boolean | Whether contact is unsubscribed from emails |
| ↳ `browser` | string | Browser used by contact |
| ↳ `browser_version` | string | Browser version |
| ↳ `browser_language` | string | Browser language setting |
| ↳ `os` | string | Operating system |
| ↳ `language_override` | string | Language override setting |
| ↳ `custom_attributes` | object | Custom attributes set on the contact | | ↳ `custom_attributes` | object | Custom attributes set on the contact |
| ↳ `tags` | object | Tags associated with the contact \(up to 10 displayed\) | | ↳ `tags` | object | Tags associated with the contact |
| ↳ `type` | string | List type identifier | | ↳ `notes` | object | Notes associated with the contact |
| ↳ `url` | string | URL to fetch full list | | ↳ `companies` | object | Companies associated with the contact |
| ↳ `data` | array | Array of objects \(up to 10\) |
| ↳ `has_more` | boolean | Whether there are more items beyond this list |
| ↳ `total_count` | number | Total number of items |
| ↳ `notes` | object | Notes associated with the contact \(up to 10 displayed\) |
| ↳ `type` | string | List type identifier |
| ↳ `url` | string | URL to fetch full list |
| ↳ `data` | array | Array of objects \(up to 10\) |
| ↳ `has_more` | boolean | Whether there are more items beyond this list |
| ↳ `total_count` | number | Total number of items |
| ↳ `companies` | object | Companies associated with the contact \(up to 10 displayed\) |
| ↳ `type` | string | List type identifier |
| ↳ `url` | string | URL to fetch full list |
| ↳ `data` | array | Array of objects \(up to 10\) |
| ↳ `has_more` | boolean | Whether there are more items beyond this list |
| ↳ `total_count` | number | Total number of items |
| ↳ `location` | object | Location information for the contact | | ↳ `location` | object | Location information for the contact |
| ↳ `type` | string | Object type \(location\) |
| ↳ `city` | string | City name |
| ↳ `region` | string | Region or state name |
| ↳ `country` | string | Country name |
| ↳ `country_code` | string | ISO country code |
| ↳ `continent_code` | string | Continent code |
| ↳ `social_profiles` | object | Social profiles of the contact | | ↳ `social_profiles` | object | Social profiles of the contact |
| ↳ `type` | string | Social network type \(e.g., twitter, facebook\) | | ↳ `unsubscribed_from_emails` | boolean | Whether contact is unsubscribed from emails |
| ↳ `name` | string | Social network name |
| ↳ `url` | string | Profile URL |
| ↳ `username` | string | Username on the social network |
| ↳ `id` | string | User ID on the social network |
### `intercom_update_contact` ### `intercom_update_contact`

View File

@@ -91,11 +91,5 @@ Search the web and return top 5 results with LLM-friendly content. Each result i
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `results` | array | Array of search results, each containing title, description, url, and LLM-friendly content | | `results` | array | Array of search results, each containing title, description, url, and LLM-friendly content |
| ↳ `title` | string | Page title |
| ↳ `description` | string | Page description or meta description |
| ↳ `url` | string | Page URL |
| ↳ `content` | string | LLM-friendly extracted content |
| ↳ `usage` | object | Token usage information |
| ↳ `tokens` | number | Number of tokens consumed by this request |

View File

@@ -53,33 +53,6 @@ Retrieve a list of prediction markets from Kalshi with all filtering options (V2
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `markets` | array | Array of market objects with all API fields | | `markets` | array | Array of market objects with all API fields |
| ↳ `ticker` | string | Unique market ticker identifier |
| ↳ `event_ticker` | string | Parent event ticker |
| ↳ `market_type` | string | Market type \(binary, etc.\) |
| ↳ `title` | string | Market title/question |
| ↳ `subtitle` | string | Market subtitle |
| ↳ `yes_sub_title` | string | Yes outcome subtitle |
| ↳ `no_sub_title` | string | No outcome subtitle |
| ↳ `open_time` | string | Market open time \(ISO 8601\) |
| ↳ `close_time` | string | Market close time \(ISO 8601\) |
| ↳ `expiration_time` | string | Contract expiration time |
| ↳ `status` | string | Market status \(open, closed, settled, etc.\) |
| ↳ `yes_bid` | number | Current best yes bid price in cents |
| ↳ `yes_ask` | number | Current best yes ask price in cents |
| ↳ `no_bid` | number | Current best no bid price in cents |
| ↳ `no_ask` | number | Current best no ask price in cents |
| ↳ `last_price` | number | Last trade price in cents |
| ↳ `previous_yes_bid` | number | Previous yes bid |
| ↳ `previous_yes_ask` | number | Previous yes ask |
| ↳ `previous_price` | number | Previous last price |
| ↳ `volume` | number | Total volume \(contracts traded\) |
| ↳ `volume_24h` | number | 24-hour trading volume |
| ↳ `liquidity` | number | Market liquidity measure |
| ↳ `open_interest` | number | Open interest \(outstanding contracts\) |
| ↳ `result` | string | Settlement result \(yes, no, null\) |
| ↳ `cap_strike` | number | Cap strike for ranged markets |
| ↳ `floor_strike` | number | Floor strike for ranged markets |
| ↳ `category` | string | Market category |
| `cursor` | string | Pagination cursor for fetching more results | | `cursor` | string | Pagination cursor for fetching more results |
### `kalshi_get_market` ### `kalshi_get_market`
@@ -168,19 +141,7 @@ Retrieve a list of events from Kalshi with optional filtering (V2 - exact API re
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `events` | array | Array of event objects | | `events` | array | Array of event objects |
| ↳ `event_ticker` | string | Unique event ticker identifier |
| ↳ `series_ticker` | string | Parent series ticker |
| ↳ `title` | string | Event title |
| ↳ `sub_title` | string | Event subtitle |
| ↳ `mutually_exclusive` | boolean | Whether markets are mutually exclusive |
| ↳ `category` | string | Event category |
| ↳ `strike_date` | string | Strike/settlement date |
| ↳ `status` | string | Event status |
| `milestones` | array | Array of milestone objects \(if requested\) | | `milestones` | array | Array of milestone objects \(if requested\) |
| ↳ `event_ticker` | string | Event ticker |
| ↳ `milestone_type` | string | Milestone type |
| ↳ `milestone_date` | string | Milestone date |
| ↳ `milestone_title` | string | Milestone title |
| `cursor` | string | Pagination cursor for fetching more results | | `cursor` | string | Pagination cursor for fetching more results |
### `kalshi_get_event` ### `kalshi_get_event`
@@ -252,21 +213,7 @@ Retrieve your open positions from Kalshi (V2 - exact API response)
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `market_positions` | array | Array of market position objects | | `market_positions` | array | Array of market position objects |
| ↳ `ticker` | string | Market ticker |
| ↳ `event_ticker` | string | Event ticker |
| ↳ `event_title` | string | Event title |
| ↳ `market_title` | string | Market title |
| ↳ `position` | number | Net position \(positive=yes, negative=no\) |
| ↳ `market_exposure` | number | Maximum potential loss in cents |
| ↳ `realized_pnl` | number | Realized profit/loss in cents |
| ↳ `total_traded` | number | Total contracts traded |
| ↳ `resting_orders_count` | number | Number of resting orders |
| ↳ `fees_paid` | number | Total fees paid in cents |
| `event_positions` | array | Array of event position objects | | `event_positions` | array | Array of event position objects |
| ↳ `event_ticker` | string | Event ticker |
| ↳ `event_exposure` | number | Event-level exposure in cents |
| ↳ `realized_pnl` | number | Realized P&L in cents |
| ↳ `total_cost` | number | Total cost basis in cents |
| `cursor` | string | Pagination cursor for fetching more results | | `cursor` | string | Pagination cursor for fetching more results |
### `kalshi_get_orders` ### `kalshi_get_orders`
@@ -290,24 +237,6 @@ Retrieve your orders from Kalshi with optional filtering (V2 with full API respo
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `orders` | array | Array of order objects with full API response fields | | `orders` | array | Array of order objects with full API response fields |
| ↳ `order_id` | string | Unique order identifier |
| ↳ `user_id` | string | User ID |
| ↳ `client_order_id` | string | Client-provided order ID |
| ↳ `ticker` | string | Market ticker |
| ↳ `side` | string | Order side \(yes/no\) |
| ↳ `action` | string | Order action \(buy/sell\) |
| ↳ `type` | string | Order type \(limit/market\) |
| ↳ `status` | string | Order status \(resting, canceled, executed\) |
| ↳ `yes_price` | number | Yes price in cents |
| ↳ `no_price` | number | No price in cents |
| ↳ `fill_count` | number | Number of contracts filled |
| ↳ `remaining_count` | number | Remaining contracts to fill |
| ↳ `initial_count` | number | Initial order size |
| ↳ `taker_fees` | number | Taker fees paid in cents |
| ↳ `maker_fees` | number | Maker fees paid in cents |
| ↳ `created_time` | string | Order creation time \(ISO 8601\) |
| ↳ `expiration_time` | string | Order expiration time |
| ↳ `last_update_time` | string | Last order update time |
| `cursor` | string | Pagination cursor for fetching more results | | `cursor` | string | Pagination cursor for fetching more results |
### `kalshi_get_order` ### `kalshi_get_order`
@@ -400,12 +329,6 @@ Retrieve recent trades with additional filtering options (V2 - includes trade_id
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `trades` | array | Array of trade objects with trade_id and count_fp | | `trades` | array | Array of trade objects with trade_id and count_fp |
| ↳ `ticker` | string | Market ticker |
| ↳ `yes_price` | number | Trade price for yes in cents |
| ↳ `no_price` | number | Trade price for no in cents |
| ↳ `count` | number | Number of contracts traded |
| ↳ `taker_side` | string | Taker side \(yes/no\) |
| ↳ `created_time` | string | Trade time \(ISO 8601\) |
| `cursor` | string | Pagination cursor for fetching more results | | `cursor` | string | Pagination cursor for fetching more results |
### `kalshi_get_candlesticks` ### `kalshi_get_candlesticks`
@@ -451,16 +374,6 @@ Retrieve your portfolio
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `fills` | array | Array of fill/trade objects with all API fields | | `fills` | array | Array of fill/trade objects with all API fields |
| ↳ `trade_id` | string | Unique trade identifier |
| ↳ `order_id` | string | Associated order ID |
| ↳ `ticker` | string | Market ticker |
| ↳ `side` | string | Trade side \(yes/no\) |
| ↳ `action` | string | Trade action \(buy/sell\) |
| ↳ `count` | number | Number of contracts |
| ↳ `yes_price` | number | Yes price in cents |
| ↳ `no_price` | number | No price in cents |
| ↳ `is_taker` | boolean | Whether this was a taker trade |
| ↳ `created_time` | string | Trade execution time \(ISO 8601\) |
| `cursor` | string | Pagination cursor for fetching more results | | `cursor` | string | Pagination cursor for fetching more results |
### `kalshi_get_series_by_ticker` ### `kalshi_get_series_by_ticker`

View File

@@ -59,27 +59,18 @@ Fetch and filter issues from Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `hasNextPage` | boolean | Whether there are more results |
| `endCursor` | string | Cursor for the next page |
| `issues` | array | Array of filtered issues from Linear | | `issues` | array | Array of filtered issues from Linear |
| ↳ `id` | string | Issue ID | | ↳ `id` | string | Issue ID |
| ↳ `title` | string | Issue title | | ↳ `title` | string | Issue title |
| ↳ `description` | string | Issue description | | ↳ `description` | string | Issue description |
| ↳ `priority` | number | Priority \(0=No priority, 1=Urgent, 2=High, 3=Normal, 4=Low\) | | ↳ `priority` | number | Issue priority |
| ↳ `estimate` | number | Estimate in points | | ↳ `estimate` | number | Issue estimate |
| ↳ `url` | string | Issue URL | | ↳ `url` | string | Issue URL |
| ↳ `dueDate` | string | Due date \(YYYY-MM-DD\) | | ↳ `dueDate` | string | Due date \(YYYY-MM-DD\) |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) | | ↳ `updatedAt` | string | Last update timestamp |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) | | ↳ `state` | object | Issue state |
| ↳ `state` | object | Workflow state/status | | ↳ `assignee` | object | Assigned user |
| ↳ `id` | string | State ID |
| ↳ `name` | string | State name \(e.g., "Todo", "In Progress"\) |
| ↳ `type` | string | State type \(unstarted, started, completed, canceled\) |
| ↳ `assignee` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teamId` | string | Team ID | | ↳ `teamId` | string | Team ID |
| ↳ `teamName` | string | Team name | | ↳ `teamName` | string | Team name |
| ↳ `projectId` | string | Project ID | | ↳ `projectId` | string | Project ID |
@@ -88,9 +79,8 @@ Fetch and filter issues from Linear
| ↳ `cycleNumber` | number | Cycle number | | ↳ `cycleNumber` | number | Cycle number |
| ↳ `cycleName` | string | Cycle name | | ↳ `cycleName` | string | Cycle name |
| ↳ `labels` | array | Issue labels | | ↳ `labels` | array | Issue labels |
| ↳ `id` | string | Label ID | | `hasNextPage` | boolean | Whether there are more results available |
| ↳ `name` | string | Label name | | `endCursor` | string | Cursor for fetching the next page \(use as |
| ↳ `color` | string | Label color \(hex\) |
### `linear_get_issue` ### `linear_get_issue`
@@ -110,29 +100,14 @@ Get a single issue by ID from Linear with full details
| ↳ `id` | string | Issue ID | | ↳ `id` | string | Issue ID |
| ↳ `title` | string | Issue title | | ↳ `title` | string | Issue title |
| ↳ `description` | string | Issue description | | ↳ `description` | string | Issue description |
| ↳ `priority` | number | Priority \(0=No priority, 1=Urgent, 2=High, 3=Normal, 4=Low\) | | ↳ `priority` | number | Issue priority \(0-4\) |
| ↳ `estimate` | number | Estimate in points | | ↳ `estimate` | number | Issue estimate in points |
| ↳ `url` | string | Issue URL | | ↳ `url` | string | Issue URL |
| ↳ `dueDate` | string | Due date \(YYYY-MM-DD\) | | ↳ `state` | object | Issue state/status |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `assignee` | object | Assigned user |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) |
| ↳ `completedAt` | string | Completion timestamp \(ISO 8601\) |
| ↳ `canceledAt` | string | Cancellation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
| ↳ `state` | object | Workflow state/status |
| ↳ `id` | string | State ID |
| ↳ `name` | string | State name \(e.g., "Todo", "In Progress"\) |
| ↳ `type` | string | State type \(unstarted, started, completed, canceled\) |
| ↳ `assignee` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teamId` | string | Team ID |
| ↳ `projectId` | string | Project ID |
| ↳ `labels` | array | Issue labels | | ↳ `labels` | array | Issue labels |
| ↳ `id` | string | Label ID | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `name` | string | Label name | | ↳ `updatedAt` | string | Last update timestamp |
| ↳ `color` | string | Label color \(hex\) |
### `linear_create_issue` ### `linear_create_issue`
@@ -165,29 +140,14 @@ Create a new issue in Linear
| ↳ `id` | string | Issue ID | | ↳ `id` | string | Issue ID |
| ↳ `title` | string | Issue title | | ↳ `title` | string | Issue title |
| ↳ `description` | string | Issue description | | ↳ `description` | string | Issue description |
| ↳ `priority` | number | Priority \(0=No priority, 1=Urgent, 2=High, 3=Normal, 4=Low\) | | ↳ `priority` | number | Issue priority |
| ↳ `estimate` | number | Estimate in points | | ↳ `estimate` | number | Issue estimate |
| ↳ `url` | string | Issue URL | | ↳ `url` | string | Issue URL |
| ↳ `dueDate` | string | Due date \(YYYY-MM-DD\) | | ↳ `dueDate` | string | Due date \(YYYY-MM-DD\) |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `state` | object | Issue state |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) | | ↳ `assignee` | object | Assigned user |
| ↳ `completedAt` | string | Completion timestamp \(ISO 8601\) |
| ↳ `canceledAt` | string | Cancellation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
| ↳ `state` | object | Workflow state/status |
| ↳ `id` | string | State ID |
| ↳ `name` | string | State name \(e.g., "Todo", "In Progress"\) |
| ↳ `type` | string | State type \(unstarted, started, completed, canceled\) |
| ↳ `assignee` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teamId` | string | Team ID | | ↳ `teamId` | string | Team ID |
| ↳ `projectId` | string | Project ID | | ↳ `projectId` | string | Project ID |
| ↳ `labels` | array | Issue labels |
| ↳ `id` | string | Label ID |
| ↳ `name` | string | Label name |
| ↳ `color` | string | Label color \(hex\) |
| ↳ `cycleId` | string | Cycle ID | | ↳ `cycleId` | string | Cycle ID |
| ↳ `cycleNumber` | number | Cycle number | | ↳ `cycleNumber` | number | Cycle number |
| ↳ `cycleName` | string | Cycle name | | ↳ `cycleName` | string | Cycle name |
@@ -195,6 +155,7 @@ Create a new issue in Linear
| ↳ `parentTitle` | string | Parent issue title | | ↳ `parentTitle` | string | Parent issue title |
| ↳ `projectMilestoneId` | string | Project milestone ID | | ↳ `projectMilestoneId` | string | Project milestone ID |
| ↳ `projectMilestoneName` | string | Project milestone name | | ↳ `projectMilestoneName` | string | Project milestone name |
| ↳ `labels` | array | Issue labels |
### `linear_update_issue` ### `linear_update_issue`
@@ -227,36 +188,19 @@ Update an existing issue in Linear
| ↳ `id` | string | Issue ID | | ↳ `id` | string | Issue ID |
| ↳ `title` | string | Issue title | | ↳ `title` | string | Issue title |
| ↳ `description` | string | Issue description | | ↳ `description` | string | Issue description |
| ↳ `priority` | number | Priority \(0=No priority, 1=Urgent, 2=High, 3=Normal, 4=Low\) | | ↳ `priority` | number | Issue priority |
| ↳ `estimate` | number | Estimate in points | | ↳ `estimate` | number | Issue estimate |
| ↳ `url` | string | Issue URL | | ↳ `state` | object | Issue state |
| ↳ `dueDate` | string | Due date \(YYYY-MM-DD\) | | ↳ `assignee` | object | Assigned user |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) |
| ↳ `completedAt` | string | Completion timestamp \(ISO 8601\) |
| ↳ `canceledAt` | string | Cancellation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
| ↳ `state` | object | Workflow state/status |
| ↳ `id` | string | State ID |
| ↳ `name` | string | State name \(e.g., "Todo", "In Progress"\) |
| ↳ `type` | string | State type \(unstarted, started, completed, canceled\) |
| ↳ `assignee` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teamId` | string | Team ID |
| ↳ `projectId` | string | Project ID |
| ↳ `labels` | array | Issue labels | | ↳ `labels` | array | Issue labels |
| ↳ `id` | string | Label ID | | ↳ `updatedAt` | string | Last update timestamp |
| ↳ `name` | string | Label name | | ↳ `dueDate` | string | Due date \(YYYY-MM-DD\) |
| ↳ `color` | string | Label color \(hex\) | | ↳ `projectId` | string | Project ID |
| ↳ `cycleId` | string | Cycle ID | | ↳ `cycleId` | string | Cycle ID |
| ↳ `cycleNumber` | number | Cycle number | | ↳ `cycleNumber` | number | Cycle number |
| ↳ `cycleName` | string | Cycle name | | ↳ `cycleName` | string | Cycle name |
| ↳ `parentId` | string | Parent issue ID | | ↳ `parentId` | string | Parent issue ID |
| ↳ `parentTitle` | string | Parent issue title | | ↳ `parentTitle` | string | Parent issue title |
| ↳ `projectMilestoneId` | string | Project milestone ID |
| ↳ `projectMilestoneName` | string | Project milestone name |
### `linear_archive_issue` ### `linear_archive_issue`
@@ -325,36 +269,17 @@ Search for issues in Linear using full-text search
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `issues` | array | Array of matching issues | | `issues` | array | Array of matching issues |
| ↳ `id` | string | Issue ID | | ↳ `id` | string | Issue ID |
| ↳ `title` | string | Issue title | | ↳ `title` | string | Issue title |
| ↳ `description` | string | Issue description | | ↳ `description` | string | Issue description |
| ↳ `priority` | number | Priority \(0=No priority, 1=Urgent, 2=High, 3=Normal, 4=Low\) | | ↳ `priority` | number | Issue priority |
| ↳ `estimate` | number | Estimate in points | | ↳ `state` | object | Issue state |
| ↳ `url` | string | Issue URL | | ↳ `assignee` | object | Assigned user |
| ↳ `dueDate` | string | Due date \(YYYY-MM-DD\) |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) |
| ↳ `completedAt` | string | Completion timestamp \(ISO 8601\) |
| ↳ `canceledAt` | string | Cancellation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
| ↳ `state` | object | Workflow state/status |
| ↳ `id` | string | State ID |
| ↳ `name` | string | State name \(e.g., "Todo", "In Progress"\) |
| ↳ `type` | string | State type \(unstarted, started, completed, canceled\) |
| ↳ `assignee` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teamId` | string | Team ID |
| ↳ `projectId` | string | Project ID |
| ↳ `labels` | array | Issue labels | | ↳ `labels` | array | Issue labels |
| ↳ `id` | string | Label ID | | `pageInfo` | object | Pagination information |
| ↳ `name` | string | Label name | | ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `color` | string | Label color \(hex\) | | ↳ `endCursor` | string | Cursor for next page |
### `linear_add_label_to_issue` ### `linear_add_label_to_issue`
@@ -409,16 +334,10 @@ Add a comment to an issue in Linear
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `comment` | object | The created comment | | `comment` | object | The created comment |
| ↳ `id` | string | Comment ID | | ↳ `id` | string | Comment ID |
| ↳ `body` | string | Comment text \(Markdown\) | | ↳ `body` | string | Comment text |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) | | ↳ `user` | object | User who created the comment |
| ↳ `user` | object | User object | | ↳ `issue` | object | Associated issue |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `issue` | object | Issue object |
| ↳ `id` | string | Issue ID |
| ↳ `title` | string | Issue title |
### `linear_update_comment` ### `linear_update_comment`
@@ -437,16 +356,9 @@ Edit a comment in Linear
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `comment` | object | The updated comment | | `comment` | object | The updated comment |
| ↳ `id` | string | Comment ID | | ↳ `id` | string | Comment ID |
| ↳ `body` | string | Comment text \(Markdown\) | | ↳ `body` | string | Comment text |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `updatedAt` | string | Last update timestamp |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) | | ↳ `user` | object | User who created the comment |
| ↳ `user` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `issue` | object | Issue object |
| ↳ `id` | string | Issue ID |
| ↳ `title` | string | Issue title |
### `linear_delete_comment` ### `linear_delete_comment`
@@ -480,21 +392,15 @@ List all comments on an issue in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `comments` | array | Array of comments on the issue | | `comments` | array | Array of comments on the issue |
| ↳ `id` | string | Comment ID | | ↳ `id` | string | Comment ID |
| ↳ `body` | string | Comment text \(Markdown\) | | ↳ `body` | string | Comment text |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) | | ↳ `updatedAt` | string | Last update timestamp |
| ↳ `user` | object | User object | | ↳ `user` | object | User who created the comment |
| ↳ `id` | string | User ID | | `pageInfo` | object | Pagination information |
| ↳ `name` | string | User name | | ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `email` | string | User email | | ↳ `endCursor` | string | Cursor for next page |
| ↳ `issue` | object | Issue object |
| ↳ `id` | string | Issue ID |
| ↳ `title` | string | Issue title |
### `linear_list_projects` ### `linear_list_projects`
@@ -513,25 +419,15 @@ List projects in Linear with optional filtering
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `projects` | array | Array of projects | | `projects` | array | Array of projects |
| ↳ `id` | string | Project ID | | ↳ `id` | string | Project ID |
| ↳ `name` | string | Project name | | ↳ `name` | string | Project name |
| ↳ `description` | string | Project description | | ↳ `description` | string | Project description |
| ↳ `state` | string | Project state \(planned, started, paused, completed, canceled\) | | ↳ `state` | string | Project state |
| ↳ `priority` | number | Project priority \(0-4\) | | ↳ `priority` | number | Project priority |
| ↳ `startDate` | string | Start date \(YYYY-MM-DD\) | | ↳ `lead` | object | Project lead |
| ↳ `targetDate` | string | Target date \(YYYY-MM-DD\) | | ↳ `teams` | array | Teams associated with project |
| ↳ `url` | string | Project URL | | `pageInfo` | object | Pagination information |
| ↳ `lead` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teams` | array | Associated teams |
| ↳ `id` | string | Team ID |
| ↳ `name` | string | Team name |
### `linear_get_project` ### `linear_get_project`
@@ -551,18 +447,12 @@ Get a single project by ID from Linear
| ↳ `id` | string | Project ID | | ↳ `id` | string | Project ID |
| ↳ `name` | string | Project name | | ↳ `name` | string | Project name |
| ↳ `description` | string | Project description | | ↳ `description` | string | Project description |
| ↳ `state` | string | Project state \(planned, started, paused, completed, canceled\) | | ↳ `state` | string | Project state |
| ↳ `priority` | number | Project priority \(0-4\) | | ↳ `priority` | number | Project priority |
| ↳ `startDate` | string | Start date \(YYYY-MM-DD\) | | ↳ `startDate` | string | Start date |
| ↳ `targetDate` | string | Target date \(YYYY-MM-DD\) | | ↳ `targetDate` | string | Target completion date |
| ↳ `url` | string | Project URL | | ↳ `lead` | object | Project lead |
| ↳ `lead` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teams` | array | Associated teams | | ↳ `teams` | array | Associated teams |
| ↳ `id` | string | Team ID |
| ↳ `name` | string | Team name |
### `linear_create_project` ### `linear_create_project`
@@ -588,18 +478,10 @@ Create a new project in Linear
| ↳ `id` | string | Project ID | | ↳ `id` | string | Project ID |
| ↳ `name` | string | Project name | | ↳ `name` | string | Project name |
| ↳ `description` | string | Project description | | ↳ `description` | string | Project description |
| ↳ `state` | string | Project state \(planned, started, paused, completed, canceled\) | | ↳ `state` | string | Project state |
| ↳ `priority` | number | Project priority \(0-4\) | | ↳ `priority` | number | Project priority |
| ↳ `startDate` | string | Start date \(YYYY-MM-DD\) | | ↳ `lead` | object | Project lead |
| ↳ `targetDate` | string | Target date \(YYYY-MM-DD\) |
| ↳ `url` | string | Project URL |
| ↳ `lead` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teams` | array | Associated teams | | ↳ `teams` | array | Associated teams |
| ↳ `id` | string | Team ID |
| ↳ `name` | string | Team name |
### `linear_update_project` ### `linear_update_project`
@@ -626,18 +508,12 @@ Update an existing project in Linear
| ↳ `id` | string | Project ID | | ↳ `id` | string | Project ID |
| ↳ `name` | string | Project name | | ↳ `name` | string | Project name |
| ↳ `description` | string | Project description | | ↳ `description` | string | Project description |
| ↳ `state` | string | Project state \(planned, started, paused, completed, canceled\) | | ↳ `state` | string | Project state |
| ↳ `priority` | number | Project priority \(0-4\) | | ↳ `priority` | number | Project priority |
| ↳ `startDate` | string | Start date \(YYYY-MM-DD\) | | ↳ `startDate` | string | Project start date |
| ↳ `targetDate` | string | Target date \(YYYY-MM-DD\) | | ↳ `targetDate` | string | Project target date |
| ↳ `url` | string | Project URL | | ↳ `lead` | object | Project lead |
| ↳ `lead` | object | User object |
| ↳ `id` | string | User ID |
| ↳ `name` | string | User name |
| ↳ `email` | string | User email |
| ↳ `teams` | array | Associated teams | | ↳ `teams` | array | Associated teams |
| ↳ `id` | string | Team ID |
| ↳ `name` | string | Team name |
### `linear_archive_project` ### `linear_archive_project`
@@ -672,9 +548,6 @@ List all users in the Linear workspace
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `users` | array | Array of workspace users | | `users` | array | Array of workspace users |
| ↳ `id` | string | User ID | | ↳ `id` | string | User ID |
| ↳ `name` | string | User name | | ↳ `name` | string | User name |
@@ -683,6 +556,7 @@ List all users in the Linear workspace
| ↳ `active` | boolean | Whether user is active | | ↳ `active` | boolean | Whether user is active |
| ↳ `admin` | boolean | Whether user is admin | | ↳ `admin` | boolean | Whether user is admin |
| ↳ `avatarUrl` | string | Avatar URL | | ↳ `avatarUrl` | string | Avatar URL |
| `pageInfo` | object | Pagination information |
### `linear_list_teams` ### `linear_list_teams`
@@ -699,14 +573,12 @@ List all teams in the Linear workspace
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `teams` | array | Array of teams | | `teams` | array | Array of teams |
| ↳ `id` | string | Team ID | | ↳ `id` | string | Team ID |
| ↳ `name` | string | Team name | | ↳ `name` | string | Team name |
| ↳ `key` | string | Team key \(used in issue identifiers\) | | ↳ `key` | string | Team key \(used in issue identifiers\) |
| ↳ `description` | string | Team description | | ↳ `description` | string | Team description |
| `pageInfo` | object | Pagination information |
### `linear_get_viewer` ### `linear_get_viewer`
@@ -746,17 +618,13 @@ List all labels in Linear workspace or team
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `labels` | array | Array of labels | | `labels` | array | Array of labels |
| ↳ `id` | string | Label ID | | ↳ `id` | string | Label ID |
| ↳ `name` | string | Label name | | ↳ `name` | string | Label name |
| ↳ `color` | string | Label color \(hex\) | | ↳ `color` | string | Label color \(hex\) |
| ↳ `description` | string | Label description | | ↳ `description` | string | Label description |
| ↳ `team` | object | Team object | | ↳ `team` | object | Team this label belongs to |
| ↳ `id` | string | Team ID | | `pageInfo` | object | Pagination information |
| ↳ `name` | string | Team name |
### `linear_create_label` ### `linear_create_label`
@@ -778,11 +646,9 @@ Create a new label in Linear
| `label` | object | The created label | | `label` | object | The created label |
| ↳ `id` | string | Label ID | | ↳ `id` | string | Label ID |
| ↳ `name` | string | Label name | | ↳ `name` | string | Label name |
| ↳ `color` | string | Label color \(hex\) | | ↳ `color` | string | Label color |
| ↳ `description` | string | Label description | | ↳ `description` | string | Label description |
| ↳ `team` | object | Team object | | ↳ `team` | object | Team this label belongs to |
| ↳ `id` | string | Team ID |
| ↳ `name` | string | Team name |
### `linear_update_label` ### `linear_update_label`
@@ -804,11 +670,8 @@ Update an existing label in Linear
| `label` | object | The updated label | | `label` | object | The updated label |
| ↳ `id` | string | Label ID | | ↳ `id` | string | Label ID |
| ↳ `name` | string | Label name | | ↳ `name` | string | Label name |
| ↳ `color` | string | Label color \(hex\) | | ↳ `color` | string | Label color |
| ↳ `description` | string | Label description | | ↳ `description` | string | Label description |
| ↳ `team` | object | Team object |
| ↳ `id` | string | Team ID |
| ↳ `name` | string | Team name |
### `linear_archive_label` ### `linear_archive_label`
@@ -843,18 +706,14 @@ List all workflow states (statuses) in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `states` | array | Array of workflow states | | `states` | array | Array of workflow states |
| ↳ `id` | string | State ID | | ↳ `id` | string | State ID |
| ↳ `name` | string | State name \(e.g., "Todo", "In Progress"\) | | ↳ `name` | string | State name \(e.g., |
| ↳ `type` | string | State type \(unstarted, started, completed, canceled\) | | ↳ `type` | string | State type \(e.g., |
| ↳ `color` | string | State color \(hex\) | | ↳ `color` | string | State color |
| ↳ `position` | number | State position in workflow | | ↳ `position` | number | State position in workflow |
| ↳ `team` | object | Team object | | ↳ `team` | object | Team this state belongs to |
| ↳ `id` | string | Team ID | | `pageInfo` | object | Pagination information |
| ↳ `name` | string | Team name |
### `linear_create_workflow_state` ### `linear_create_workflow_state`
@@ -924,20 +783,16 @@ List cycles (sprints/iterations) in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `cycles` | array | Array of cycles | | `cycles` | array | Array of cycles |
| ↳ `id` | string | Cycle ID | | ↳ `id` | string | Cycle ID |
| ↳ `number` | number | Cycle number | | ↳ `number` | number | Cycle number |
| ↳ `name` | string | Cycle name | | ↳ `name` | string | Cycle name |
| ↳ `startsAt` | string | Start date \(ISO 8601\) | | ↳ `startsAt` | string | Start date |
| ↳ `endsAt` | string | End date \(ISO 8601\) | | ↳ `endsAt` | string | End date |
| ↳ `completedAt` | string | Completion date \(ISO 8601\) | | ↳ `completedAt` | string | Completion date |
| ↳ `progress` | number | Progress percentage \(0-1\) | | ↳ `progress` | number | Progress percentage \(0-1\) |
| ↳ `team` | object | Team object | | ↳ `team` | object | Team this cycle belongs to |
| ↳ `id` | string | Team ID | | `pageInfo` | object | Pagination information |
| ↳ `name` | string | Team name |
### `linear_get_cycle` ### `linear_get_cycle`
@@ -957,13 +812,10 @@ Get a single cycle by ID from Linear
| ↳ `id` | string | Cycle ID | | ↳ `id` | string | Cycle ID |
| ↳ `number` | number | Cycle number | | ↳ `number` | number | Cycle number |
| ↳ `name` | string | Cycle name | | ↳ `name` | string | Cycle name |
| ↳ `startsAt` | string | Start date \(ISO 8601\) | | ↳ `startsAt` | string | Start date |
| ↳ `endsAt` | string | End date \(ISO 8601\) | | ↳ `endsAt` | string | End date |
| ↳ `completedAt` | string | Completion date \(ISO 8601\) | | ↳ `progress` | number | Progress percentage |
| ↳ `progress` | number | Progress percentage \(0-1\) | | ↳ `team` | object | Team this cycle belongs to |
| ↳ `team` | object | Team object |
| ↳ `id` | string | Team ID |
| ↳ `name` | string | Team name |
### `linear_create_cycle` ### `linear_create_cycle`
@@ -1035,8 +887,7 @@ Add an attachment to an issue in Linear
| ↳ `title` | string | Attachment title | | ↳ `title` | string | Attachment title |
| ↳ `subtitle` | string | Attachment subtitle | | ↳ `subtitle` | string | Attachment subtitle |
| ↳ `url` | string | Attachment URL | | ↳ `url` | string | Attachment URL |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) |
### `linear_list_attachments` ### `linear_list_attachments`
@@ -1054,16 +905,13 @@ List all attachments on an issue in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `attachments` | array | Array of attachments | | `attachments` | array | Array of attachments |
| ↳ `id` | string | Attachment ID | | ↳ `id` | string | Attachment ID |
| ↳ `title` | string | Attachment title | | ↳ `title` | string | Attachment title |
| ↳ `subtitle` | string | Attachment subtitle | | ↳ `subtitle` | string | Attachment subtitle |
| ↳ `url` | string | Attachment URL | | ↳ `url` | string | Attachment URL |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) | | `pageInfo` | object | Pagination information |
### `linear_update_attachment` ### `linear_update_attachment`
@@ -1086,8 +934,7 @@ Update an attachment metadata in Linear
| ↳ `title` | string | Attachment title | | ↳ `title` | string | Attachment title |
| ↳ `subtitle` | string | Attachment subtitle | | ↳ `subtitle` | string | Attachment subtitle |
| ↳ `url` | string | Attachment URL | | ↳ `url` | string | Attachment URL |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `updatedAt` | string | Last update timestamp |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) |
### `linear_delete_attachment` ### `linear_delete_attachment`
@@ -1331,11 +1178,11 @@ Create a new customer in Linear
| ↳ `id` | string | Customer ID | | ↳ `id` | string | Customer ID |
| ↳ `name` | string | Customer name | | ↳ `name` | string | Customer name |
| ↳ `domains` | array | Associated domains | | ↳ `domains` | array | Associated domains |
| ↳ `externalIds` | array | External IDs from other systems | | ↳ `externalIds` | array | External IDs |
| ↳ `logoUrl` | string | Logo URL | | ↳ `logoUrl` | string | Logo URL |
| ↳ `approximateNeedCount` | number | Number of customer needs | | ↳ `approximateNeedCount` | number | Number of customer needs |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) | | ↳ `archivedAt` | string | Archive timestamp \(null if not archived\) |
### `linear_list_customers` ### `linear_list_customers`
@@ -1353,18 +1200,16 @@ List all customers in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results |
| ↳ `endCursor` | string | Cursor for the next page |
| `customers` | array | Array of customers | | `customers` | array | Array of customers |
| ↳ `id` | string | Customer ID | | ↳ `id` | string | Customer ID |
| ↳ `name` | string | Customer name | | ↳ `name` | string | Customer name |
| ↳ `domains` | array | Associated domains | | ↳ `domains` | array | Associated domains |
| ↳ `externalIds` | array | External IDs from other systems | | ↳ `externalIds` | array | External IDs |
| ↳ `logoUrl` | string | Logo URL | | ↳ `logoUrl` | string | Logo URL |
| ↳ `approximateNeedCount` | number | Number of customer needs | | ↳ `approximateNeedCount` | number | Number of customer needs |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) | | ↳ `archivedAt` | string | Archive timestamp \(null if not archived\) |
| `pageInfo` | object | Pagination information |
### `linear_create_customer_request` ### `linear_create_customer_request`
@@ -1477,11 +1322,11 @@ Get a single customer by ID in Linear
| ↳ `id` | string | Customer ID | | ↳ `id` | string | Customer ID |
| ↳ `name` | string | Customer name | | ↳ `name` | string | Customer name |
| ↳ `domains` | array | Associated domains | | ↳ `domains` | array | Associated domains |
| ↳ `externalIds` | array | External IDs from other systems | | ↳ `externalIds` | array | External IDs |
| ↳ `logoUrl` | string | Logo URL | | ↳ `logoUrl` | string | Logo URL |
| ↳ `approximateNeedCount` | number | Number of customer needs | | ↳ `approximateNeedCount` | number | Number of customer needs |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) | | ↳ `createdAt` | string | Creation timestamp |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) | | ↳ `archivedAt` | string | Archive timestamp \(null if not archived\) |
### `linear_update_customer` ### `linear_update_customer`
@@ -1507,14 +1352,6 @@ Update a customer in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customer` | object | The updated customer | | `customer` | object | The updated customer |
| ↳ `id` | string | Customer ID |
| ↳ `name` | string | Customer name |
| ↳ `domains` | array | Associated domains |
| ↳ `externalIds` | array | External IDs from other systems |
| ↳ `logoUrl` | string | Logo URL |
| ↳ `approximateNeedCount` | number | Number of customer needs |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
### `linear_delete_customer` ### `linear_delete_customer`
@@ -1568,14 +1405,6 @@ Create a new customer status in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customerStatus` | object | The created customer status | | `customerStatus` | object | The created customer status |
| ↳ `id` | string | Customer status ID |
| ↳ `name` | string | Status name |
| ↳ `displayName` | string | Display name |
| ↳ `description` | string | Status description |
| ↳ `color` | string | Status color \(hex\) |
| ↳ `position` | number | Position in list |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
### `linear_update_customer_status` ### `linear_update_customer_status`
@@ -1628,14 +1457,6 @@ List all customer statuses in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customerStatuses` | array | List of customer statuses | | `customerStatuses` | array | List of customer statuses |
| ↳ `id` | string | Customer status ID |
| ↳ `name` | string | Status name |
| ↳ `displayName` | string | Display name |
| ↳ `description` | string | Status description |
| ↳ `color` | string | Status color \(hex\) |
| ↳ `position` | number | Position in list |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
### `linear_create_customer_tier` ### `linear_create_customer_tier`
@@ -1656,14 +1477,6 @@ Create a new customer tier in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customerTier` | object | The created customer tier | | `customerTier` | object | The created customer tier |
| ↳ `id` | string | Customer tier ID |
| ↳ `name` | string | Tier name |
| ↳ `displayName` | string | Display name |
| ↳ `description` | string | Tier description |
| ↳ `color` | string | Tier color \(hex\) |
| ↳ `position` | number | Position in list |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
### `linear_update_customer_tier` ### `linear_update_customer_tier`
@@ -1716,14 +1529,6 @@ List all customer tiers in Linear
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customerTiers` | array | List of customer tiers | | `customerTiers` | array | List of customer tiers |
| ↳ `id` | string | Customer tier ID |
| ↳ `name` | string | Tier name |
| ↳ `displayName` | string | Display name |
| ↳ `description` | string | Tier description |
| ↳ `color` | string | Tier color \(hex\) |
| ↳ `position` | number | Position in list |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `archivedAt` | string | Archive timestamp \(ISO 8601\) |
### `linear_delete_project` ### `linear_delete_project`

View File

@@ -52,10 +52,6 @@ Add memories to Mem0 for persistent storage and retrieval
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ids` | array | Array of memory IDs that were created | | `ids` | array | Array of memory IDs that were created |
| `memories` | array | Array of memory objects that were created | | `memories` | array | Array of memory objects that were created |
| ↳ `id` | string | Unique identifier for the memory |
| ↳ `memory` | string | The content of the memory |
| ↳ `event` | string | Event type indicating operation performed \(ADD, UPDATE, DELETE, NOOP\) |
| ↳ `metadata` | json | Custom metadata associated with the memory |
### `mem0_search_memories` ### `mem0_search_memories`
@@ -74,19 +70,7 @@ Search for memories in Mem0 using semantic search
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `searchResults` | array | Array of search results with memory data and similarity scores | | `searchResults` | array | Array of search results with memory data, each containing id, data, and score |
| ↳ `id` | string | Unique identifier for the memory |
| ↳ `memory` | string | The content of the memory |
| ↳ `user_id` | string | User ID associated with this memory |
| ↳ `agent_id` | string | Agent ID associated with this memory |
| ↳ `app_id` | string | App ID associated with this memory |
| ↳ `run_id` | string | Run/session ID associated with this memory |
| ↳ `hash` | string | Hash of the memory content |
| ↳ `metadata` | json | Custom metadata associated with the memory |
| ↳ `categories` | json | Auto-assigned categories for the memory |
| ↳ `created_at` | string | ISO 8601 timestamp when the memory was created |
| ↳ `updated_at` | string | ISO 8601 timestamp when the memory was last updated |
| ↳ `score` | number | Similarity score from vector search |
| `ids` | array | Array of memory IDs found in the search results | | `ids` | array | Array of memory IDs found in the search results |
### `mem0_get_memories` ### `mem0_get_memories`
@@ -109,21 +93,6 @@ Retrieve memories from Mem0 by ID or filter criteria
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `memories` | array | Array of retrieved memory objects | | `memories` | array | Array of retrieved memory objects |
| ↳ `id` | string | Unique identifier for the memory |
| ↳ `memory` | string | The content of the memory |
| ↳ `user_id` | string | User ID associated with this memory |
| ↳ `agent_id` | string | Agent ID associated with this memory |
| ↳ `app_id` | string | App ID associated with this memory |
| ↳ `run_id` | string | Run/session ID associated with this memory |
| ↳ `hash` | string | Hash of the memory content |
| ↳ `metadata` | json | Custom metadata associated with the memory |
| ↳ `categories` | json | Auto-assigned categories for the memory |
| ↳ `created_at` | string | ISO 8601 timestamp when the memory was created |
| ↳ `updated_at` | string | ISO 8601 timestamp when the memory was last updated |
| ↳ `owner` | string | Owner of the memory |
| ↳ `organization` | string | Organization associated with the memory |
| ↳ `immutable` | boolean | Whether the memory can be modified |
| ↳ `expiration_date` | string | Expiration date after which memory is not retrieved |
| `ids` | array | Array of memory IDs that were retrieved | | `ids` | array | Array of memory IDs that were retrieved |

View File

@@ -9,7 +9,6 @@
"arxiv", "arxiv",
"asana", "asana",
"browser_use", "browser_use",
"calcom",
"calendly", "calendly",
"circleback", "circleback",
"clay", "clay",
@@ -97,7 +96,6 @@
"sftp", "sftp",
"sharepoint", "sharepoint",
"shopify", "shopify",
"similarweb",
"slack", "slack",
"smtp", "smtp",
"sqs", "sqs",

View File

@@ -69,7 +69,7 @@ Parse PDF documents using Mistral OCR API
| ↳ `height` | number | Page height in pixels | | ↳ `height` | number | Page height in pixels |
| ↳ `width` | number | Page width in pixels | | ↳ `width` | number | Page width in pixels |
| ↳ `tables` | array | Extracted tables as HTML/markdown \(when table_format is set\). Referenced via placeholders like \[tbl-0.html\] | | ↳ `tables` | array | Extracted tables as HTML/markdown \(when table_format is set\). Referenced via placeholders like \[tbl-0.html\] |
| ↳ `hyperlinks` | array | Array of URL strings detected in the page \(e.g., \["https://...", "mailto:..."\]\) | | ↳ `hyperlinks` | array | Array of URL strings detected in the page \(e.g., \[ |
| ↳ `header` | string | Page header content \(when extract_header=true\) | | ↳ `header` | string | Page header content \(when extract_header=true\) |
| ↳ `footer` | string | Page footer content \(when extract_footer=true\) | | ↳ `footer` | string | Page footer content \(when extract_footer=true\) |
| `model` | string | Mistral OCR model identifier \(e.g., mistral-ocr-latest\) | | `model` | string | Mistral OCR model identifier \(e.g., mistral-ocr-latest\) |

View File

@@ -32,11 +32,11 @@ Read content from a Notion page
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `url` | string | Notion page URL |
| `created_time` | string | ISO 8601 creation timestamp |
| `last_edited_time` | string | ISO 8601 last edit timestamp |
| `content` | string | Page content in markdown format | | `content` | string | Page content in markdown format |
| `title` | string | Page title | | `title` | string | Page title |
| `url` | string | Page URL |
| `created_time` | string | Creation timestamp |
| `last_edited_time` | string | Last edit timestamp |
### `notion_read_database` ### `notion_read_database`
@@ -52,12 +52,12 @@ Read database information and structure from Notion
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `id` | string | Database UUID | | `id` | string | Database ID |
| `url` | string | Notion database URL |
| `created_time` | string | ISO 8601 creation timestamp |
| `last_edited_time` | string | ISO 8601 last edit timestamp |
| `properties` | object | Database properties schema |
| `title` | string | Database title | | `title` | string | Database title |
| `url` | string | Database URL |
| `created_time` | string | Creation timestamp |
| `last_edited_time` | string | Last edit timestamp |
| `properties` | object | Database properties schema |
### `notion_write` ### `notion_write`
@@ -92,11 +92,11 @@ Create a new page in Notion
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `id` | string | Page UUID | | `id` | string | Page ID |
| `url` | string | Notion page URL |
| `created_time` | string | ISO 8601 creation timestamp |
| `last_edited_time` | string | ISO 8601 last edit timestamp |
| `title` | string | Page title | | `title` | string | Page title |
| `url` | string | Page URL |
| `created_time` | string | Creation timestamp |
| `last_edited_time` | string | Last edit timestamp |
### `notion_query_database` ### `notion_query_database`
@@ -115,43 +115,13 @@ Query and filter Notion database entries with advanced filtering
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `results` | array | Array of page objects from the database | | `results` | array | Array of Notion page objects from the database |
| ↳ `object` | string | Always "page" | | ↳ `id` | string | Page ID |
| ↳ `id` | string | Page UUID | | ↳ `created_time` | string | Creation timestamp |
| ↳ `created_time` | string | ISO 8601 creation timestamp | | ↳ `last_edited_time` | string | Last edit timestamp |
| ↳ `last_edited_time` | string | ISO 8601 last edit timestamp | | ↳ `url` | string | Page URL |
| ↳ `created_by` | object | Partial user object |
| ↳ `object` | string | Always "user" |
| ↳ `id` | string | User UUID |
| ↳ `last_edited_by` | object | Partial user object |
| ↳ `object` | string | Always "user" |
| ↳ `id` | string | User UUID |
| ↳ `archived` | boolean | Whether the page is archived |
| ↳ `in_trash` | boolean | Whether the page is in trash |
| ↳ `url` | string | Notion page URL |
| ↳ `public_url` | string | Public web URL if shared, null otherwise |
| ↳ `parent` | object | Parent object specifying hierarchical relationship |
| ↳ `type` | string | Parent type: "database_id", "data_source_id", "page_id", "workspace", or "block_id" |
| ↳ `database_id` | string | Parent database UUID \(if type is database_id\) |
| ↳ `data_source_id` | string | Parent data source UUID \(if type is data_source_id\) |
| ↳ `page_id` | string | Parent page UUID \(if type is page_id\) |
| ↳ `workspace` | boolean | True if parent is workspace \(if type is workspace\) |
| ↳ `block_id` | string | Parent block UUID \(if type is block_id\) |
| ↳ `icon` | object | Page/database icon \(emoji, custom_emoji, or file\) |
| ↳ `url` | string | Authenticated URL valid for one hour |
| ↳ `expiry_time` | string | ISO 8601 timestamp when URL expires |
| ↳ `cover` | object | Page/database cover image |
| ↳ `type` | string | File type: "file", "file_upload", or "external" |
| ↳ `file` | object | Notion-hosted file object \(when type is "file"\) |
| ↳ `url` | string | Authenticated URL valid for one hour |
| ↳ `expiry_time` | string | ISO 8601 timestamp when URL expires |
| ↳ `file_upload` | object | API-uploaded file object \(when type is "file_upload"\) |
| ↳ `id` | string | File upload UUID |
| ↳ `external` | object | External file object \(when type is "external"\) |
| ↳ `url` | string | External file URL \(never expires\) |
| ↳ `properties` | object | Page property values \(structure depends on parent type - database properties or title only\) |
| `has_more` | boolean | Whether more results are available | | `has_more` | boolean | Whether more results are available |
| `next_cursor` | string | Cursor for next page of results | | `next_cursor` | string | Cursor for pagination |
| `total_results` | number | Number of results returned | | `total_results` | number | Number of results returned |
### `notion_search` ### `notion_search`
@@ -170,31 +140,14 @@ Search across all pages and databases in Notion workspace
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `results` | array | Array of search results \(pages and/or databases\) | | `results` | array | Array of search results \(pages and databases\) |
| ↳ `object` | string | Object type: "page" or "database" | | ↳ `id` | string | Object ID |
| ↳ `id` | string | Object UUID | | ↳ `object` | string | Object type \(page or database\) |
| ↳ `created_time` | string | ISO 8601 creation timestamp |
| ↳ `last_edited_time` | string | ISO 8601 last edit timestamp |
| ↳ `created_by` | object | Partial user object |
| ↳ `object` | string | Always "user" |
| ↳ `id` | string | User UUID |
| ↳ `last_edited_by` | object | Partial user object |
| ↳ `object` | string | Always "user" |
| ↳ `id` | string | User UUID |
| ↳ `archived` | boolean | Whether the object is archived |
| ↳ `in_trash` | boolean | Whether the object is in trash |
| ↳ `url` | string | Object URL | | ↳ `url` | string | Object URL |
| ↳ `public_url` | string | Public web URL if shared | | ↳ `created_time` | string | Creation timestamp |
| ↳ `parent` | object | Parent object specifying hierarchical relationship | | ↳ `last_edited_time` | string | Last edit timestamp |
| ↳ `type` | string | Parent type: "database_id", "data_source_id", "page_id", "workspace", or "block_id" |
| ↳ `database_id` | string | Parent database UUID \(if type is database_id\) |
| ↳ `data_source_id` | string | Parent data source UUID \(if type is data_source_id\) |
| ↳ `page_id` | string | Parent page UUID \(if type is page_id\) |
| ↳ `workspace` | boolean | True if parent is workspace \(if type is workspace\) |
| ↳ `block_id` | string | Parent block UUID \(if type is block_id\) |
| ↳ `properties` | object | Object properties |
| `has_more` | boolean | Whether more results are available | | `has_more` | boolean | Whether more results are available |
| `next_cursor` | string | Cursor for next page of results | | `next_cursor` | string | Cursor for pagination |
| `total_results` | number | Number of results returned | | `total_results` | number | Number of results returned |
### `notion_create_database` ### `notion_create_database`
@@ -213,11 +166,11 @@ Create a new database in Notion with custom properties
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `id` | string | Database UUID | | `id` | string | Database ID |
| `url` | string | Notion database URL |
| `created_time` | string | ISO 8601 creation timestamp |
| `properties` | object | Database properties schema |
| `title` | string | Database title | | `title` | string | Database title |
| `url` | string | Database URL |
| `created_time` | string | Creation timestamp |
| `properties` | object | Database properties schema |
### `notion_add_database_row` ### `notion_add_database_row`
@@ -234,10 +187,10 @@ Add a new row to a Notion database with specified properties
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `id` | string | Page UUID | | `id` | string | Page/row ID |
| `url` | string | Notion page URL | | `url` | string | Page/row URL |
| `created_time` | string | ISO 8601 creation timestamp |
| `last_edited_time` | string | ISO 8601 last edit timestamp |
| `title` | string | Row title | | `title` | string | Row title |
| `created_time` | string | Creation timestamp |
| `last_edited_time` | string | Last edit timestamp |

View File

@@ -115,29 +115,6 @@ Read emails from Outlook
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Success or status message | | `message` | string | Success or status message |
| `results` | array | Array of email message objects | | `results` | array | Array of email message objects |
| ↳ `id` | string | Unique message identifier |
| ↳ `subject` | string | Email subject |
| ↳ `bodyPreview` | string | Preview of the message body |
| ↳ `body` | object | Message body |
| ↳ `contentType` | string | Body content type \(text or html\) |
| ↳ `content` | string | Body content |
| ↳ `sender` | object | Sender information |
| ↳ `name` | string | Display name of the person or entity |
| ↳ `address` | string | Email address |
| ↳ `from` | object | From address information |
| ↳ `name` | string | Display name of the person or entity |
| ↳ `address` | string | Email address |
| ↳ `toRecipients` | array | To recipients |
| ↳ `name` | string | Display name of the person or entity |
| ↳ `address` | string | Email address |
| ↳ `ccRecipients` | array | CC recipients |
| ↳ `name` | string | Display name of the person or entity |
| ↳ `address` | string | Email address |
| ↳ `receivedDateTime` | string | When the message was received \(ISO 8601\) |
| ↳ `sentDateTime` | string | When the message was sent \(ISO 8601\) |
| ↳ `hasAttachments` | boolean | Whether the message has attachments |
| ↳ `isRead` | boolean | Whether the message has been read |
| ↳ `importance` | string | Message importance \(low, normal, high\) |
| `attachments` | file[] | All email attachments flattened from all emails | | `attachments` | file[] | All email attachments flattened from all emails |
### `outlook_forward` ### `outlook_forward`

View File

@@ -87,7 +87,7 @@ Get ranked search results from Perplexity
| ↳ `title` | string | Title of the search result | | ↳ `title` | string | Title of the search result |
| ↳ `url` | string | URL of the search result | | ↳ `url` | string | URL of the search result |
| ↳ `snippet` | string | Brief excerpt or summary of the content | | ↳ `snippet` | string | Brief excerpt or summary of the content |
| ↳ `date` | string | Date the page was crawled and added to Perplexity's index | | ↳ `date` | string | Date the page was crawled and added to Perplexity |
| ↳ `last_updated` | string | Date the page was last updated in Perplexity's index | | ↳ `last_updated` | string | Date the page was last updated in Perplexity |

View File

@@ -55,25 +55,7 @@ Retrieve all deals from Pipedrive with optional filters
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `deals` | array | Array of deal objects from Pipedrive | | `deals` | array | Array of deal objects from Pipedrive |
| ↳ `id` | number | Deal ID |
| ↳ `title` | string | Deal title |
| ↳ `value` | number | Deal value |
| ↳ `currency` | string | Currency code |
| ↳ `status` | string | Deal status \(open, won, lost, deleted\) |
| ↳ `stage_id` | number | Pipeline stage ID |
| ↳ `pipeline_id` | number | Pipeline ID |
| ↳ `person_id` | number | Associated person ID |
| ↳ `org_id` | number | Associated organization ID |
| ↳ `owner_id` | number | Deal owner user ID |
| ↳ `add_time` | string | When the deal was created \(ISO 8601\) |
| ↳ `update_time` | string | When the deal was last updated \(ISO 8601\) |
| ↳ `won_time` | string | When the deal was won |
| ↳ `lost_time` | string | When the deal was lost |
| ↳ `close_time` | string | When the deal was closed |
| ↳ `expected_close_date` | string | Expected close date |
| `metadata` | object | Pagination metadata for the response | | `metadata` | object | Pagination metadata for the response |
| ↳ `total_items` | number | Total number of items |
| ↳ `has_more` | boolean | Whether more items are available |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
### `pipedrive_get_deal` ### `pipedrive_get_deal`
@@ -158,16 +140,6 @@ Retrieve files from Pipedrive with optional filters
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `files` | array | Array of file objects from Pipedrive | | `files` | array | Array of file objects from Pipedrive |
| ↳ `id` | number | File ID |
| ↳ `name` | string | File name |
| ↳ `file_type` | string | File type/extension |
| ↳ `file_size` | number | File size in bytes |
| ↳ `add_time` | string | When the file was uploaded |
| ↳ `update_time` | string | When the file was last updated |
| ↳ `deal_id` | number | Associated deal ID |
| ↳ `person_id` | number | Associated person ID |
| ↳ `org_id` | number | Associated organization ID |
| ↳ `url` | string | File download URL |
| `total_items` | number | Total number of files returned | | `total_items` | number | Total number of files returned |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -226,14 +198,6 @@ Retrieve all pipelines from Pipedrive
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `pipelines` | array | Array of pipeline objects from Pipedrive | | `pipelines` | array | Array of pipeline objects from Pipedrive |
| ↳ `id` | number | Pipeline ID |
| ↳ `name` | string | Pipeline name |
| ↳ `url_title` | string | URL-friendly title |
| ↳ `order_nr` | number | Pipeline order number |
| ↳ `active` | boolean | Whether the pipeline is active |
| ↳ `deal_probability` | boolean | Whether deal probability is enabled |
| ↳ `add_time` | string | When the pipeline was created |
| ↳ `update_time` | string | When the pipeline was last updated |
| `total_items` | number | Total number of pipelines returned | | `total_items` | number | Total number of pipelines returned |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -319,19 +283,6 @@ Retrieve activities (tasks) from Pipedrive with optional filters
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `activities` | array | Array of activity objects from Pipedrive | | `activities` | array | Array of activity objects from Pipedrive |
| ↳ `id` | number | Activity ID |
| ↳ `subject` | string | Activity subject |
| ↳ `type` | string | Activity type \(call, meeting, task, etc.\) |
| ↳ `due_date` | string | Due date \(YYYY-MM-DD\) |
| ↳ `due_time` | string | Due time \(HH:MM\) |
| ↳ `duration` | string | Duration \(HH:MM\) |
| ↳ `deal_id` | number | Associated deal ID |
| ↳ `person_id` | number | Associated person ID |
| ↳ `org_id` | number | Associated organization ID |
| ↳ `done` | boolean | Whether the activity is done |
| ↳ `note` | string | Activity note |
| ↳ `add_time` | string | When the activity was created |
| ↳ `update_time` | string | When the activity was last updated |
| `total_items` | number | Total number of activities returned | | `total_items` | number | Total number of activities returned |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
@@ -403,33 +354,7 @@ Retrieve all leads or a specific lead from Pipedrive
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `leads` | array | Array of lead objects \(when listing all\) | | `leads` | array | Array of lead objects \(when listing all\) |
| ↳ `id` | string | Lead ID \(UUID\) |
| ↳ `title` | string | Lead title |
| ↳ `person_id` | number | ID of the associated person |
| ↳ `organization_id` | number | ID of the associated organization |
| ↳ `owner_id` | number | ID of the lead owner |
| ↳ `value` | object | Lead value |
| ↳ `amount` | number | Value amount |
| ↳ `currency` | string | Currency code \(e.g., USD, EUR\) |
| ↳ `expected_close_date` | string | Expected close date \(YYYY-MM-DD\) |
| ↳ `is_archived` | boolean | Whether the lead is archived |
| ↳ `was_seen` | boolean | Whether the lead was seen |
| ↳ `add_time` | string | When the lead was created \(ISO 8601\) |
| ↳ `update_time` | string | When the lead was last updated \(ISO 8601\) |
| `lead` | object | Single lead object \(when lead_id is provided\) | | `lead` | object | Single lead object \(when lead_id is provided\) |
| ↳ `id` | string | Lead ID \(UUID\) |
| ↳ `title` | string | Lead title |
| ↳ `person_id` | number | ID of the associated person |
| ↳ `organization_id` | number | ID of the associated organization |
| ↳ `owner_id` | number | ID of the lead owner |
| ↳ `value` | object | Lead value |
| ↳ `amount` | number | Value amount |
| ↳ `currency` | string | Currency code \(e.g., USD, EUR\) |
| ↳ `expected_close_date` | string | Expected close date \(YYYY-MM-DD\) |
| ↳ `is_archived` | boolean | Whether the lead is archived |
| ↳ `was_seen` | boolean | Whether the lead was seen |
| ↳ `add_time` | string | When the lead was created \(ISO 8601\) |
| ↳ `update_time` | string | When the lead was last updated \(ISO 8601\) |
| `total_items` | number | Total number of leads returned | | `total_items` | number | Total number of leads returned |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |

View File

@@ -179,27 +179,6 @@ Introspect PostgreSQL database schema to retrieve table structures, columns, and
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `tables` | array | Array of table schemas with columns, keys, and indexes | | `tables` | array | Array of table schemas with columns, keys, and indexes |
| ↳ `name` | string | Table name |
| ↳ `schema` | string | Schema name \(e.g., public\) |
| ↳ `columns` | array | Table columns |
| ↳ `name` | string | Column name |
| ↳ `type` | string | Data type \(e.g., integer, varchar, timestamp\) |
| ↳ `nullable` | boolean | Whether the column allows NULL values |
| ↳ `default` | string | Default value expression |
| ↳ `isPrimaryKey` | boolean | Whether the column is part of the primary key |
| ↳ `isForeignKey` | boolean | Whether the column is a foreign key |
| ↳ `references` | object | Foreign key reference information |
| ↳ `table` | string | Referenced table name |
| ↳ `column` | string | Referenced column name |
| ↳ `primaryKey` | array | Primary key column names |
| ↳ `foreignKeys` | array | Foreign key constraints |
| ↳ `column` | string | Local column name |
| ↳ `referencesTable` | string | Referenced table name |
| ↳ `referencesColumn` | string | Referenced column name |
| ↳ `indexes` | array | Table indexes |
| ↳ `name` | string | Index name |
| ↳ `columns` | array | Columns included in the index |
| ↳ `unique` | boolean | Whether the index enforces uniqueness |
| `schemas` | array | List of available schemas in the database | | `schemas` | array | List of available schemas in the database |

View File

@@ -56,10 +56,8 @@ Insert or update points in a Qdrant collection
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `status` | string | Operation status \(ok, error\) | | `status` | string | Status of the upsert operation |
| `data` | object | Result data from the upsert operation | | `data` | object | Result data from the upsert operation |
| ↳ `operation_id` | number | Operation ID for async tracking |
| ↳ `status` | string | Operation status \(acknowledged, completed\) |
### `qdrant_search_vector` ### `qdrant_search_vector`
@@ -83,15 +81,8 @@ Search for similar vectors in a Qdrant collection
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `status` | string | Operation status \(ok, error\) |
| `data` | array | Vector search results with ID, score, payload, and optional vector data | | `data` | array | Vector search results with ID, score, payload, and optional vector data |
| ↳ `id` | string | Point ID \(integer or UUID string\) | | `status` | string | Status of the search operation |
| ↳ `version` | number | Point version number |
| ↳ `score` | number | Similarity score |
| ↳ `payload` | json | Point payload data \(key-value pairs\) |
| ↳ `vector` | json | Point vector\(s\) - single array or named vectors object |
| ↳ `shard_key` | string | Shard key for routing |
| ↳ `order_value` | number | Order value for sorting |
### `qdrant_fetch_points` ### `qdrant_fetch_points`
@@ -113,12 +104,7 @@ Fetch points by ID from a Qdrant collection
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `status` | string | Operation status \(ok, error\) |
| `data` | array | Fetched points with ID, payload, and optional vector data | | `data` | array | Fetched points with ID, payload, and optional vector data |
| ↳ `id` | string | Point ID \(integer or UUID string\) | | `status` | string | Status of the fetch operation |
| ↳ `payload` | json | Point payload data \(key-value pairs\) |
| ↳ `vector` | json | Point vector\(s\) - single array or named vectors object |
| ↳ `shard_key` | string | Shard key for routing |
| ↳ `order_value` | number | Order value for sorting |

View File

@@ -208,10 +208,6 @@ Submit a new post to a subreddit (text or link)
| `success` | boolean | Whether the post was submitted successfully | | `success` | boolean | Whether the post was submitted successfully |
| `message` | string | Success or error message | | `message` | string | Success or error message |
| `data` | object | Post data including ID, name, URL, and permalink | | `data` | object | Post data including ID, name, URL, and permalink |
| ↳ `id` | string | New post ID |
| ↳ `name` | string | Thing fullname \(t3_xxxxx\) |
| ↳ `url` | string | Post URL from API response |
| ↳ `permalink` | string | Full Reddit permalink |
### `reddit_vote` ### `reddit_vote`
@@ -283,10 +279,6 @@ Add a comment reply to a Reddit post or comment
| `success` | boolean | Whether the reply was posted successfully | | `success` | boolean | Whether the reply was posted successfully |
| `message` | string | Success or error message | | `message` | string | Success or error message |
| `data` | object | Comment data including ID, name, permalink, and body | | `data` | object | Comment data including ID, name, permalink, and body |
| ↳ `id` | string | New comment ID |
| ↳ `name` | string | Thing fullname \(t1_xxxxx\) |
| ↳ `permalink` | string | Comment permalink |
| ↳ `body` | string | Comment body text |
### `reddit_edit` ### `reddit_edit`
@@ -306,9 +298,6 @@ Edit the text of your own Reddit post or comment
| `success` | boolean | Whether the edit was successful | | `success` | boolean | Whether the edit was successful |
| `message` | string | Success or error message | | `message` | string | Success or error message |
| `data` | object | Updated content data | | `data` | object | Updated content data |
| ↳ `id` | string | Edited thing ID |
| ↳ `body` | string | Updated comment body \(for comments\) |
| ↳ `selftext` | string | Updated post text \(for self posts\) |
### `reddit_delete` ### `reddit_delete`

View File

@@ -53,14 +53,14 @@ Retrieve accounts from Salesforce CRM
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Accounts data | | `output` | object | Accounts data |
| ↳ `paging` | object | Pagination information from Salesforce API |
| ↳ `nextRecordsUrl` | string | URL to fetch the next batch of records \(present when done is false\) |
| ↳ `totalSize` | number | Total number of records matching the query \(may exceed records returned\) |
| ↳ `done` | boolean | Whether all records have been returned \(false if more batches exist\) |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records exist \(inverse of done\) |
| ↳ `accounts` | array | Array of account objects | | ↳ `accounts` | array | Array of account objects |
| ↳ `paging` | object | Pagination information |
| ↳ `nextRecordsUrl` | string | URL for next page of results |
| ↳ `totalSize` | number | Total number of records |
| ↳ `done` | boolean | Whether all records returned |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of accounts returned |
| ↳ `hasMore` | boolean | Whether more records exist |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |
### `salesforce_create_account` ### `salesforce_create_account`
@@ -93,9 +93,9 @@ Create a new account in Salesforce CRM
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Created account data | | `output` | object | Created account data |
| ↳ `id` | string | The Salesforce ID of the newly created record | | ↳ `id` | string | Created account ID |
| ↳ `success` | boolean | Whether the create operation was successful | | ↳ `success` | boolean | Salesforce operation success |
| ↳ `created` | boolean | Whether the record was created \(always true on success\) | | ↳ `created` | boolean | Whether account was created |
### `salesforce_update_account` ### `salesforce_update_account`
@@ -128,8 +128,8 @@ Update an existing account in Salesforce CRM
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Updated account data | | `output` | object | Updated account data |
| ↳ `id` | string | The Salesforce ID of the updated record | | ↳ `id` | string | Updated account ID |
| ↳ `updated` | boolean | Whether the record was updated \(always true on success\) | | ↳ `updated` | boolean | Whether account was updated |
### `salesforce_delete_account` ### `salesforce_delete_account`
@@ -149,8 +149,8 @@ Delete an account from Salesforce CRM
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Deleted account data | | `output` | object | Deleted account data |
| ↳ `id` | string | The Salesforce ID of the deleted record | | ↳ `id` | string | Deleted account ID |
| ↳ `deleted` | boolean | Whether the record was deleted \(always true on success\) | | ↳ `deleted` | boolean | Whether account was deleted |
### `salesforce_get_contacts` ### `salesforce_get_contacts`
@@ -173,15 +173,15 @@ Get contact(s) from Salesforce - single contact if ID provided, or list if not
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Contact\(s\) data | | `output` | object | Contact\(s\) data |
| ↳ `paging` | object | Pagination information from Salesforce API |
| ↳ `nextRecordsUrl` | string | URL to fetch the next batch of records \(present when done is false\) |
| ↳ `totalSize` | number | Total number of records matching the query \(may exceed records returned\) |
| ↳ `done` | boolean | Whether all records have been returned \(false if more batches exist\) |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records exist \(inverse of done\) |
| ↳ `contacts` | array | Array of contacts \(list query\) | | ↳ `contacts` | array | Array of contacts \(list query\) |
| ↳ `contact` | object | Single contact \(by ID\) | | ↳ `contact` | object | Single contact \(by ID\) |
| ↳ `paging` | object | Pagination information |
| ↳ `nextRecordsUrl` | string | URL for next page of results |
| ↳ `totalSize` | number | Total number of records |
| ↳ `done` | boolean | Whether all records returned |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of contacts returned |
| ↳ `hasMore` | boolean | Whether more records exist |
| ↳ `singleContact` | boolean | Whether single contact was returned | | ↳ `singleContact` | boolean | Whether single contact was returned |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |
@@ -215,9 +215,9 @@ Create a new contact in Salesforce CRM
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Created contact data | | `output` | object | Created contact data |
| ↳ `id` | string | The Salesforce ID of the newly created record | | ↳ `id` | string | Created contact ID |
| ↳ `success` | boolean | Whether the create operation was successful | | ↳ `success` | boolean | Salesforce operation success |
| ↳ `created` | boolean | Whether the record was created \(always true on success\) | | ↳ `created` | boolean | Whether contact was created |
### `salesforce_update_contact` ### `salesforce_update_contact`
@@ -250,8 +250,8 @@ Update an existing contact in Salesforce CRM
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Updated contact data | | `output` | object | Updated contact data |
| ↳ `id` | string | The Salesforce ID of the updated record | | ↳ `id` | string | Updated contact ID |
| ↳ `updated` | boolean | Whether the record was updated \(always true on success\) | | ↳ `updated` | boolean | Whether contact was updated |
### `salesforce_delete_contact` ### `salesforce_delete_contact`
@@ -271,8 +271,8 @@ Delete a contact from Salesforce CRM
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Deleted contact data | | `output` | object | Deleted contact data |
| ↳ `id` | string | The Salesforce ID of the deleted record | | ↳ `id` | string | Deleted contact ID |
| ↳ `deleted` | boolean | Whether the record was deleted \(always true on success\) | | ↳ `deleted` | boolean | Whether contact was deleted |
### `salesforce_get_leads` ### `salesforce_get_leads`
@@ -295,15 +295,15 @@ Get lead(s) from Salesforce
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Lead data | | `output` | object | Lead data |
| ↳ `paging` | object | Pagination information from Salesforce API |
| ↳ `nextRecordsUrl` | string | URL to fetch the next batch of records \(present when done is false\) |
| ↳ `totalSize` | number | Total number of records matching the query \(may exceed records returned\) |
| ↳ `done` | boolean | Whether all records have been returned \(false if more batches exist\) |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records exist \(inverse of done\) |
| ↳ `lead` | object | Single lead object \(when leadId provided\) | | ↳ `lead` | object | Single lead object \(when leadId provided\) |
| ↳ `leads` | array | Array of lead objects \(when listing\) | | ↳ `leads` | array | Array of lead objects \(when listing\) |
| ↳ `paging` | object | Pagination information |
| ↳ `nextRecordsUrl` | string | URL for next page of results |
| ↳ `totalSize` | number | Total number of records |
| ↳ `done` | boolean | Whether all records returned |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of leads returned |
| ↳ `hasMore` | boolean | Whether more records exist |
| ↳ `singleLead` | boolean | Whether single lead was returned | | ↳ `singleLead` | boolean | Whether single lead was returned |
| ↳ `success` | boolean | Operation success status | | ↳ `success` | boolean | Operation success status |
@@ -333,9 +333,9 @@ Create a new lead
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Created lead data | | `output` | object | Created lead data |
| ↳ `id` | string | The Salesforce ID of the newly created record | | ↳ `id` | string | Created lead ID |
| ↳ `success` | boolean | Whether the create operation was successful | | ↳ `success` | boolean | Salesforce operation success |
| ↳ `created` | boolean | Whether the record was created \(always true on success\) | | ↳ `created` | boolean | Whether lead was created |
### `salesforce_update_lead` ### `salesforce_update_lead`
@@ -364,8 +364,8 @@ Update an existing lead
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Updated lead data | | `output` | object | Updated lead data |
| ↳ `id` | string | The Salesforce ID of the updated record | | ↳ `id` | string | Updated lead ID |
| ↳ `updated` | boolean | Whether the record was updated \(always true on success\) | | ↳ `updated` | boolean | Whether lead was updated |
### `salesforce_delete_lead` ### `salesforce_delete_lead`
@@ -385,8 +385,8 @@ Delete a lead
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Deleted lead data | | `output` | object | Deleted lead data |
| ↳ `id` | string | The Salesforce ID of the deleted record | | ↳ `id` | string | Deleted lead ID |
| ↳ `deleted` | boolean | Whether the record was deleted \(always true on success\) | | ↳ `deleted` | boolean | Whether lead was deleted |
### `salesforce_get_opportunities` ### `salesforce_get_opportunities`
@@ -409,15 +409,15 @@ Get opportunity(ies) from Salesforce
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Opportunity data | | `output` | object | Opportunity data |
| ↳ `paging` | object | Pagination information from Salesforce API |
| ↳ `nextRecordsUrl` | string | URL to fetch the next batch of records \(present when done is false\) |
| ↳ `totalSize` | number | Total number of records matching the query \(may exceed records returned\) |
| ↳ `done` | boolean | Whether all records have been returned \(false if more batches exist\) |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records exist \(inverse of done\) |
| ↳ `opportunity` | object | Single opportunity object \(when opportunityId provided\) | | ↳ `opportunity` | object | Single opportunity object \(when opportunityId provided\) |
| ↳ `opportunities` | array | Array of opportunity objects \(when listing\) | | ↳ `opportunities` | array | Array of opportunity objects \(when listing\) |
| ↳ `paging` | object | Pagination information |
| ↳ `nextRecordsUrl` | string | URL for next page of results |
| ↳ `totalSize` | number | Total number of records |
| ↳ `done` | boolean | Whether all records returned |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of opportunities returned |
| ↳ `hasMore` | boolean | Whether more records exist |
| ↳ `success` | boolean | Operation success status | | ↳ `success` | boolean | Operation success status |
### `salesforce_create_opportunity` ### `salesforce_create_opportunity`
@@ -444,9 +444,9 @@ Create a new opportunity
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Created opportunity data | | `output` | object | Created opportunity data |
| ↳ `id` | string | The Salesforce ID of the newly created record | | ↳ `id` | string | Created opportunity ID |
| ↳ `success` | boolean | Whether the create operation was successful | | ↳ `success` | boolean | Salesforce operation success |
| ↳ `created` | boolean | Whether the record was created \(always true on success\) | | ↳ `created` | boolean | Whether opportunity was created |
### `salesforce_update_opportunity` ### `salesforce_update_opportunity`
@@ -473,8 +473,8 @@ Update an existing opportunity
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Updated opportunity data | | `output` | object | Updated opportunity data |
| ↳ `id` | string | The Salesforce ID of the updated record | | ↳ `id` | string | Updated opportunity ID |
| ↳ `updated` | boolean | Whether the record was updated \(always true on success\) | | ↳ `updated` | boolean | Whether opportunity was updated |
### `salesforce_delete_opportunity` ### `salesforce_delete_opportunity`
@@ -494,8 +494,8 @@ Delete an opportunity
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Deleted opportunity data | | `output` | object | Deleted opportunity data |
| ↳ `id` | string | The Salesforce ID of the deleted record | | ↳ `id` | string | Deleted opportunity ID |
| ↳ `deleted` | boolean | Whether the record was deleted \(always true on success\) | | ↳ `deleted` | boolean | Whether opportunity was deleted |
### `salesforce_get_cases` ### `salesforce_get_cases`
@@ -518,15 +518,15 @@ Get case(s) from Salesforce
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Case data | | `output` | object | Case data |
| ↳ `paging` | object | Pagination information from Salesforce API |
| ↳ `nextRecordsUrl` | string | URL to fetch the next batch of records \(present when done is false\) |
| ↳ `totalSize` | number | Total number of records matching the query \(may exceed records returned\) |
| ↳ `done` | boolean | Whether all records have been returned \(false if more batches exist\) |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records exist \(inverse of done\) |
| ↳ `case` | object | Single case object \(when caseId provided\) | | ↳ `case` | object | Single case object \(when caseId provided\) |
| ↳ `cases` | array | Array of case objects \(when listing\) | | ↳ `cases` | array | Array of case objects \(when listing\) |
| ↳ `paging` | object | Pagination information |
| ↳ `nextRecordsUrl` | string | URL for next page of results |
| ↳ `totalSize` | number | Total number of records |
| ↳ `done` | boolean | Whether all records returned |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of cases returned |
| ↳ `hasMore` | boolean | Whether more records exist |
| ↳ `success` | boolean | Operation success status | | ↳ `success` | boolean | Operation success status |
### `salesforce_create_case` ### `salesforce_create_case`
@@ -553,9 +553,9 @@ Create a new case
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Created case data | | `output` | object | Created case data |
| ↳ `id` | string | The Salesforce ID of the newly created record | | ↳ `id` | string | Created case ID |
| ↳ `success` | boolean | Whether the create operation was successful | | ↳ `success` | boolean | Salesforce operation success |
| ↳ `created` | boolean | Whether the record was created \(always true on success\) | | ↳ `created` | boolean | Whether case was created |
### `salesforce_update_case` ### `salesforce_update_case`
@@ -579,8 +579,8 @@ Update an existing case
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Updated case data | | `output` | object | Updated case data |
| ↳ `id` | string | The Salesforce ID of the updated record | | ↳ `id` | string | Updated case ID |
| ↳ `updated` | boolean | Whether the record was updated \(always true on success\) | | ↳ `updated` | boolean | Whether case was updated |
### `salesforce_delete_case` ### `salesforce_delete_case`
@@ -600,8 +600,8 @@ Delete a case
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Deleted case data | | `output` | object | Deleted case data |
| ↳ `id` | string | The Salesforce ID of the deleted record | | ↳ `id` | string | Deleted case ID |
| ↳ `deleted` | boolean | Whether the record was deleted \(always true on success\) | | ↳ `deleted` | boolean | Whether case was deleted |
### `salesforce_get_tasks` ### `salesforce_get_tasks`
@@ -624,15 +624,15 @@ Get task(s) from Salesforce
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Task data | | `output` | object | Task data |
| ↳ `paging` | object | Pagination information from Salesforce API |
| ↳ `nextRecordsUrl` | string | URL to fetch the next batch of records \(present when done is false\) |
| ↳ `totalSize` | number | Total number of records matching the query \(may exceed records returned\) |
| ↳ `done` | boolean | Whether all records have been returned \(false if more batches exist\) |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records exist \(inverse of done\) |
| ↳ `task` | object | Single task object \(when taskId provided\) | | ↳ `task` | object | Single task object \(when taskId provided\) |
| ↳ `tasks` | array | Array of task objects \(when listing\) | | ↳ `tasks` | array | Array of task objects \(when listing\) |
| ↳ `paging` | object | Pagination information |
| ↳ `nextRecordsUrl` | string | URL for next page of results |
| ↳ `totalSize` | number | Total number of records |
| ↳ `done` | boolean | Whether all records returned |
| ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of tasks returned |
| ↳ `hasMore` | boolean | Whether more records exist |
| ↳ `success` | boolean | Operation success status | | ↳ `success` | boolean | Operation success status |
### `salesforce_create_task` ### `salesforce_create_task`
@@ -659,9 +659,9 @@ Create a new task
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Created task data | | `output` | object | Created task data |
| ↳ `id` | string | The Salesforce ID of the newly created record | | ↳ `id` | string | Created task ID |
| ↳ `success` | boolean | Whether the create operation was successful | | ↳ `success` | boolean | Salesforce operation success |
| ↳ `created` | boolean | Whether the record was created \(always true on success\) | | ↳ `created` | boolean | Whether task was created |
### `salesforce_update_task` ### `salesforce_update_task`
@@ -686,8 +686,8 @@ Update an existing task
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Updated task data | | `output` | object | Updated task data |
| ↳ `id` | string | The Salesforce ID of the updated record | | ↳ `id` | string | Updated task ID |
| ↳ `updated` | boolean | Whether the record was updated \(always true on success\) | | ↳ `updated` | boolean | Whether task was updated |
### `salesforce_delete_task` ### `salesforce_delete_task`
@@ -707,8 +707,8 @@ Delete a task
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Deleted task data | | `output` | object | Deleted task data |
| ↳ `id` | string | The Salesforce ID of the deleted record | | ↳ `id` | string | Deleted task ID |
| ↳ `deleted` | boolean | Whether the record was deleted \(always true on success\) | | ↳ `deleted` | boolean | Whether task was deleted |
### `salesforce_list_reports` ### `salesforce_list_reports`
@@ -729,9 +729,9 @@ Get a list of reports accessible by the current user
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Reports data | | `output` | object | Reports data |
| ↳ `totalReturned` | number | Number of items returned |
| ↳ `success` | boolean | Salesforce operation success |
| ↳ `reports` | array | Array of report objects | | ↳ `reports` | array | Array of report objects |
| ↳ `totalReturned` | number | Number of reports returned |
| ↳ `success` | boolean | Salesforce operation success |
### `salesforce_get_report` ### `salesforce_get_report`
@@ -776,15 +776,15 @@ Execute a report and retrieve the results
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Report results | | `output` | object | Report results |
| ↳ `reportId` | string | Report ID | | ↳ `reportId` | string | Report ID |
| ↳ `reportMetadata` | object | Report metadata including name, format, and filter definitions | | ↳ `reportMetadata` | object | Report metadata |
| ↳ `reportExtendedMetadata` | object | Extended metadata for aggregate columns and groupings | | ↳ `reportExtendedMetadata` | object | Extended metadata |
| ↳ `factMap` | object | Report data organized by groupings with aggregates and row data | | ↳ `factMap` | object | Report data organized by groupings |
| ↳ `groupingsDown` | object | Row grouping hierarchy and values | | ↳ `groupingsDown` | object | Row groupings |
| ↳ `groupingsAcross` | object | Column grouping hierarchy and values | | ↳ `groupingsAcross` | object | Column groupings |
| ↳ `hasDetailRows` | boolean | Whether the report includes detail-level row data | | ↳ `hasDetailRows` | boolean | Whether report has detail rows |
| ↳ `allData` | boolean | Whether all data is returned \(false if truncated due to size limits\) | | ↳ `allData` | boolean | Whether all data is returned |
| ↳ `reportName` | string | Display name of the report | | ↳ `reportName` | string | Report name |
| ↳ `reportFormat` | string | Report format type \(TABULAR, SUMMARY, MATRIX, JOINED\) | | ↳ `reportFormat` | string | Report format type |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |
### `salesforce_list_report_types` ### `salesforce_list_report_types`
@@ -804,9 +804,9 @@ Get a list of available report types
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Report types data | | `output` | object | Report types data |
| ↳ `totalReturned` | number | Number of items returned |
| ↳ `success` | boolean | Salesforce operation success |
| ↳ `reportTypes` | array | Array of report type objects | | ↳ `reportTypes` | array | Array of report type objects |
| ↳ `totalReturned` | number | Number of report types returned |
| ↳ `success` | boolean | Salesforce operation success |
### `salesforce_list_dashboards` ### `salesforce_list_dashboards`
@@ -826,9 +826,9 @@ Get a list of dashboards accessible by the current user
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Dashboards data | | `output` | object | Dashboards data |
| ↳ `totalReturned` | number | Number of items returned |
| ↳ `success` | boolean | Salesforce operation success |
| ↳ `dashboards` | array | Array of dashboard objects | | ↳ `dashboards` | array | Array of dashboard objects |
| ↳ `totalReturned` | number | Number of dashboards returned |
| ↳ `success` | boolean | Salesforce operation success |
### `salesforce_get_dashboard` ### `salesforce_get_dashboard`
@@ -848,12 +848,12 @@ Get details and results for a specific dashboard
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Dashboard data | | `output` | object | Dashboard data |
| ↳ `dashboard` | object | Full dashboard details object | | ↳ `dashboard` | object | Dashboard details |
| ↳ `dashboardId` | string | Dashboard ID | | ↳ `dashboardId` | string | Dashboard ID |
| ↳ `components` | array | Array of dashboard component data with visualizations and filters | | ↳ `components` | array | Dashboard component data |
| ↳ `dashboardName` | string | Display name of the dashboard | | ↳ `dashboardName` | string | Dashboard name |
| ↳ `folderId` | string | ID of the folder containing the dashboard | | ↳ `folderId` | string | Folder ID containing the dashboard |
| ↳ `runningUser` | object | User context under which the dashboard data was retrieved | | ↳ `runningUser` | object | Running user information |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |
### `salesforce_refresh_dashboard` ### `salesforce_refresh_dashboard`
@@ -874,12 +874,12 @@ Refresh a dashboard to get the latest data
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Refreshed dashboard data | | `output` | object | Refreshed dashboard data |
| ↳ `dashboard` | object | Full dashboard details object | | ↳ `dashboard` | object | Dashboard details |
| ↳ `dashboardId` | string | Dashboard ID | | ↳ `dashboardId` | string | Dashboard ID |
| ↳ `components` | array | Array of dashboard component data with fresh visualizations | | ↳ `components` | array | Dashboard component data |
| ↳ `status` | object | Dashboard refresh status information | | ↳ `status` | object | Dashboard status |
| ↳ `dashboardName` | string | Display name of the dashboard | | ↳ `dashboardName` | string | Dashboard name |
| ↳ `refreshDate` | string | ISO 8601 timestamp when the dashboard was last refreshed | | ↳ `refreshDate` | string | Date when dashboard was refreshed |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |
### `salesforce_query` ### `salesforce_query`
@@ -900,11 +900,14 @@ Execute a custom SOQL query to retrieve data from Salesforce
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Query results | | `output` | object | Query results |
| ↳ `records` | array | Array of sObject records matching the query | | ↳ `records` | array | Array of record objects |
| ↳ `totalSize` | number | Total number of records matching query |
| ↳ `done` | boolean | Whether all records have been returned |
| ↳ `nextRecordsUrl` | string | URL to fetch next batch of records |
| ↳ `query` | string | The executed SOQL query | | ↳ `query` | string | The executed SOQL query |
| ↳ `metadata` | object | Response metadata | | ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response | | ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records exist \(inverse of done\) | | ↳ `hasMore` | boolean | Whether more records exist |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |
### `salesforce_query_more` ### `salesforce_query_more`
@@ -925,10 +928,13 @@ Retrieve additional query results using the nextRecordsUrl from a previous query
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Query results | | `output` | object | Query results |
| ↳ `records` | array | Array of sObject records matching the query | | ↳ `records` | array | Array of record objects |
| ↳ `totalSize` | number | Total number of records matching query |
| ↳ `done` | boolean | Whether all records have been returned |
| ↳ `nextRecordsUrl` | string | URL to fetch next batch of records |
| ↳ `metadata` | object | Response metadata | | ↳ `metadata` | object | Response metadata |
| ↳ `totalReturned` | number | Number of records returned in this response | | ↳ `totalReturned` | number | Number of records returned in this response |
| ↳ `hasMore` | boolean | Whether more records exist \(inverse of done\) | | ↳ `hasMore` | boolean | Whether more records exist |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |
### `salesforce_describe_object` ### `salesforce_describe_object`
@@ -949,41 +955,18 @@ Get metadata and field information for a Salesforce object
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Object metadata | | `output` | object | Object metadata |
| ↳ `objectName` | string | API name of the object \(e.g., Account, Contact\) | | ↳ `objectName` | string | API name of the object |
| ↳ `label` | string | Human-readable singular label for the object | | ↳ `label` | string | Display label |
| ↳ `labelPlural` | string | Human-readable plural label for the object | | ↳ `labelPlural` | string | Plural display label |
| ↳ `fields` | array | Array of field metadata objects | | ↳ `fields` | array | Array of field definitions |
| ↳ `name` | string | API name of the field | | ↳ `keyPrefix` | string | ID prefix for this object type |
| ↳ `label` | string | Display label of the field | | ↳ `queryable` | boolean | Whether object can be queried |
| ↳ `type` | string | Field data type \(string, boolean, int, double, date, etc.\) | | ↳ `createable` | boolean | Whether records can be created |
| ↳ `length` | number | Maximum length for text fields | | ↳ `updateable` | boolean | Whether records can be updated |
| ↳ `precision` | number | Precision for numeric fields | | ↳ `deletable` | boolean | Whether records can be deleted |
| ↳ `scale` | number | Scale for numeric fields | | ↳ `childRelationships` | array | Child relationship definitions |
| ↳ `nillable` | boolean | Whether the field can be null | | ↳ `recordTypeInfos` | array | Record type information |
| ↳ `unique` | boolean | Whether values must be unique | | ↳ `fieldCount` | number | Number of fields in the object |
| ↳ `createable` | boolean | Whether field can be set on create |
| ↳ `updateable` | boolean | Whether field can be updated |
| ↳ `defaultedOnCreate` | boolean | Whether field has default value on create |
| ↳ `calculated` | boolean | Whether field is a formula field |
| ↳ `autoNumber` | boolean | Whether field is auto-number |
| ↳ `externalId` | boolean | Whether field is an external ID |
| ↳ `idLookup` | boolean | Whether field can be used in ID lookup |
| ↳ `inlineHelpText` | string | Help text for the field |
| ↳ `picklistValues` | array | Available picklist values for picklist fields |
| ↳ `referenceTo` | array | Objects this field can reference \(for lookup fields\) |
| ↳ `relationshipName` | string | Relationship name for lookup fields |
| ↳ `custom` | boolean | Whether this is a custom field |
| ↳ `filterable` | boolean | Whether field can be used in SOQL filter |
| ↳ `groupable` | boolean | Whether field can be used in GROUP BY |
| ↳ `sortable` | boolean | Whether field can be used in ORDER BY |
| ↳ `keyPrefix` | string | Three-character prefix used in record IDs \(e.g., "001" for Account\) |
| ↳ `queryable` | boolean | Whether the object can be queried via SOQL |
| ↳ `createable` | boolean | Whether records can be created for this object |
| ↳ `updateable` | boolean | Whether records can be updated for this object |
| ↳ `deletable` | boolean | Whether records can be deleted for this object |
| ↳ `childRelationships` | array | Array of child relationship metadata for related objects |
| ↳ `recordTypeInfos` | array | Array of record type information for the object |
| ↳ `fieldCount` | number | Total number of fields on the object |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |
### `salesforce_list_objects` ### `salesforce_list_objects`
@@ -1003,25 +986,9 @@ Get a list of all available Salesforce objects
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `success` | boolean | Operation success status | | `success` | boolean | Operation success status |
| `output` | object | Objects list | | `output` | object | Objects list |
| ↳ `objects` | array | Array of sObject metadata | | ↳ `objects` | array | Array of available Salesforce objects |
| ↳ `name` | string | API name of the object | | ↳ `encoding` | string | Encoding used |
| ↳ `label` | string | Display label of the object | | ↳ `maxBatchSize` | number | Maximum batch size |
| ↳ `labelPlural` | string | Plural display label |
| ↳ `keyPrefix` | string | Three-character ID prefix |
| ↳ `custom` | boolean | Whether this is a custom object |
| ↳ `queryable` | boolean | Whether object can be queried |
| ↳ `createable` | boolean | Whether records can be created |
| ↳ `updateable` | boolean | Whether records can be updated |
| ↳ `deletable` | boolean | Whether records can be deleted |
| ↳ `searchable` | boolean | Whether object is searchable |
| ↳ `triggerable` | boolean | Whether triggers are supported |
| ↳ `layoutable` | boolean | Whether page layouts are supported |
| ↳ `replicateable` | boolean | Whether object can be replicated |
| ↳ `retrieveable` | boolean | Whether records can be retrieved |
| ↳ `undeletable` | boolean | Whether records can be undeleted |
| ↳ `urls` | object | URLs for accessing object resources |
| ↳ `encoding` | string | Character encoding for the organization \(e.g., UTF-8\) |
| ↳ `maxBatchSize` | number | Maximum number of records that can be returned in a single query batch \(typically 200\) |
| ↳ `totalReturned` | number | Number of objects returned | | ↳ `totalReturned` | number | Number of objects returned |
| ↳ `success` | boolean | Salesforce operation success | | ↳ `success` | boolean | Salesforce operation success |

View File

@@ -35,7 +35,7 @@ Integrate Serper into the workflow. Can search the web.
### `serper_search` ### `serper_search`
A powerful web search tool that provides access to Google search results through Serper.dev API. Supports different types of searches including regular web search, news, places, images, videos, and shopping. Returns comprehensive results including organic results, knowledge graph, answer box, people also ask, related searches, and top stories. A powerful web search tool that provides access to Google search results through Serper.dev API. Supports different types of searches including regular web search, news, places, and images, with each result containing relevant metadata like titles, URLs, snippets, and type-specific information.
#### Input #### Input
@@ -53,17 +53,5 @@ A powerful web search tool that provides access to Google search results through
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `searchResults` | array | Search results with titles, links, snippets, and type-specific metadata \(date for news, rating for places, imageUrl for images\) | | `searchResults` | array | Search results with titles, links, snippets, and type-specific metadata \(date for news, rating for places, imageUrl for images\) |
| ↳ `title` | string | Result title |
| ↳ `link` | string | Result URL |
| ↳ `snippet` | string | Result description/snippet |
| ↳ `position` | number | Position in search results |
| ↳ `date` | string | Publication date \(news/videos\) |
| ↳ `imageUrl` | string | Image URL \(images/news/shopping\) |
| ↳ `source` | string | Source name \(news/videos/shopping\) |
| ↳ `rating` | number | Rating \(places\) |
| ↳ `ratingCount` | number | Number of reviews \(places\) |
| ↳ `address` | string | Address \(places\) |
| ↳ `price` | string | Price \(shopping\) |
| ↳ `duration` | string | Duration \(videos\) |

View File

@@ -53,18 +53,6 @@ Create a new product in your Shopify store
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `product` | object | The created product | | `product` | object | The created product |
| ↳ `id` | string | Unique product identifier \(GID\) |
| ↳ `title` | string | Product title |
| ↳ `handle` | string | URL-friendly product identifier |
| ↳ `descriptionHtml` | string | Product description in HTML format |
| ↳ `vendor` | string | Product vendor or manufacturer |
| ↳ `productType` | string | Product type classification |
| ↳ `tags` | array | Product tags for categorization |
| ↳ `status` | string | Product status \(ACTIVE, DRAFT, ARCHIVED\) |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `variants` | object | Product variants with edges/nodes structure |
| ↳ `images` | object | Product images with edges/nodes structure |
### `shopify_get_product` ### `shopify_get_product`
@@ -82,18 +70,6 @@ Get a single product by ID from your Shopify store
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `product` | object | The product details | | `product` | object | The product details |
| ↳ `id` | string | Unique product identifier \(GID\) |
| ↳ `title` | string | Product title |
| ↳ `handle` | string | URL-friendly product identifier |
| ↳ `descriptionHtml` | string | Product description in HTML format |
| ↳ `vendor` | string | Product vendor or manufacturer |
| ↳ `productType` | string | Product type classification |
| ↳ `tags` | array | Product tags for categorization |
| ↳ `status` | string | Product status \(ACTIVE, DRAFT, ARCHIVED\) |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `variants` | object | Product variants with edges/nodes structure |
| ↳ `images` | object | Product images with edges/nodes structure |
### `shopify_list_products` ### `shopify_list_products`
@@ -112,21 +88,7 @@ List products from your Shopify store with optional filtering
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `products` | array | List of products | | `products` | array | List of products |
| ↳ `id` | string | Unique product identifier \(GID\) |
| ↳ `title` | string | Product title |
| ↳ `handle` | string | URL-friendly product identifier |
| ↳ `descriptionHtml` | string | Product description in HTML format |
| ↳ `vendor` | string | Product vendor or manufacturer |
| ↳ `productType` | string | Product type classification |
| ↳ `tags` | array | Product tags for categorization |
| ↳ `status` | string | Product status \(ACTIVE, DRAFT, ARCHIVED\) |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `variants` | object | Product variants with edges/nodes structure |
| ↳ `images` | object | Product images with edges/nodes structure |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results after this page |
| ↳ `hasPreviousPage` | boolean | Whether there are results before this page |
### `shopify_update_product` ### `shopify_update_product`
@@ -150,18 +112,6 @@ Update an existing product in your Shopify store
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `product` | object | The updated product | | `product` | object | The updated product |
| ↳ `id` | string | Unique product identifier \(GID\) |
| ↳ `title` | string | Product title |
| ↳ `handle` | string | URL-friendly product identifier |
| ↳ `descriptionHtml` | string | Product description in HTML format |
| ↳ `vendor` | string | Product vendor or manufacturer |
| ↳ `productType` | string | Product type classification |
| ↳ `tags` | array | Product tags for categorization |
| ↳ `status` | string | Product status \(ACTIVE, DRAFT, ARCHIVED\) |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `variants` | object | Product variants with edges/nodes structure |
| ↳ `images` | object | Product images with edges/nodes structure |
### `shopify_delete_product` ### `shopify_delete_product`
@@ -196,27 +146,6 @@ Get a single order by ID from your Shopify store
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `order` | object | The order details | | `order` | object | The order details |
| ↳ `id` | string | Unique order identifier \(GID\) |
| ↳ `name` | string | Order name \(e.g., #1001\) |
| ↳ `email` | string | Customer email for the order |
| ↳ `phone` | string | Customer phone for the order |
| ↳ `createdAt` | string | Order creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `cancelledAt` | string | Cancellation timestamp \(ISO 8601\) |
| ↳ `closedAt` | string | Closure timestamp \(ISO 8601\) |
| ↳ `displayFinancialStatus` | string | Financial status \(PENDING, AUTHORIZED, PARTIALLY_PAID, PAID, PARTIALLY_REFUNDED, REFUNDED, VOIDED\) |
| ↳ `displayFulfillmentStatus` | string | Fulfillment status \(UNFULFILLED, PARTIALLY_FULFILLED, FULFILLED, RESTOCKED, PENDING_FULFILLMENT, OPEN, IN_PROGRESS, ON_HOLD, SCHEDULED\) |
| ↳ `totalPriceSet` | object | Total order price |
| ↳ `subtotalPriceSet` | object | Order subtotal \(before shipping and taxes\) |
| ↳ `totalTaxSet` | object | Total tax amount |
| ↳ `totalShippingPriceSet` | object | Total shipping price |
| ↳ `note` | string | Order note |
| ↳ `tags` | array | Order tags |
| ↳ `customer` | object | Customer who placed the order |
| ↳ `lineItems` | object | Order line items with edges/nodes structure |
| ↳ `shippingAddress` | object | Shipping address |
| ↳ `billingAddress` | object | Billing address |
| ↳ `fulfillments` | array | Order fulfillments |
### `shopify_list_orders` ### `shopify_list_orders`
@@ -236,30 +165,7 @@ List orders from your Shopify store with optional filtering
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `orders` | array | List of orders | | `orders` | array | List of orders |
| ↳ `id` | string | Unique order identifier \(GID\) |
| ↳ `name` | string | Order name \(e.g., #1001\) |
| ↳ `email` | string | Customer email for the order |
| ↳ `phone` | string | Customer phone for the order |
| ↳ `createdAt` | string | Order creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `cancelledAt` | string | Cancellation timestamp \(ISO 8601\) |
| ↳ `closedAt` | string | Closure timestamp \(ISO 8601\) |
| ↳ `displayFinancialStatus` | string | Financial status \(PENDING, AUTHORIZED, PARTIALLY_PAID, PAID, PARTIALLY_REFUNDED, REFUNDED, VOIDED\) |
| ↳ `displayFulfillmentStatus` | string | Fulfillment status \(UNFULFILLED, PARTIALLY_FULFILLED, FULFILLED, RESTOCKED, PENDING_FULFILLMENT, OPEN, IN_PROGRESS, ON_HOLD, SCHEDULED\) |
| ↳ `totalPriceSet` | object | Total order price |
| ↳ `subtotalPriceSet` | object | Order subtotal \(before shipping and taxes\) |
| ↳ `totalTaxSet` | object | Total tax amount |
| ↳ `totalShippingPriceSet` | object | Total shipping price |
| ↳ `note` | string | Order note |
| ↳ `tags` | array | Order tags |
| ↳ `customer` | object | Customer who placed the order |
| ↳ `lineItems` | object | Order line items with edges/nodes structure |
| ↳ `shippingAddress` | object | Shipping address |
| ↳ `billingAddress` | object | Billing address |
| ↳ `fulfillments` | array | Order fulfillments |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results after this page |
| ↳ `hasPreviousPage` | boolean | Whether there are results before this page |
### `shopify_update_order` ### `shopify_update_order`
@@ -280,27 +186,6 @@ Update an existing order in your Shopify store (note, tags, email)
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `order` | object | The updated order | | `order` | object | The updated order |
| ↳ `id` | string | Unique order identifier \(GID\) |
| ↳ `name` | string | Order name \(e.g., #1001\) |
| ↳ `email` | string | Customer email for the order |
| ↳ `phone` | string | Customer phone for the order |
| ↳ `createdAt` | string | Order creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `cancelledAt` | string | Cancellation timestamp \(ISO 8601\) |
| ↳ `closedAt` | string | Closure timestamp \(ISO 8601\) |
| ↳ `displayFinancialStatus` | string | Financial status \(PENDING, AUTHORIZED, PARTIALLY_PAID, PAID, PARTIALLY_REFUNDED, REFUNDED, VOIDED\) |
| ↳ `displayFulfillmentStatus` | string | Fulfillment status \(UNFULFILLED, PARTIALLY_FULFILLED, FULFILLED, RESTOCKED, PENDING_FULFILLMENT, OPEN, IN_PROGRESS, ON_HOLD, SCHEDULED\) |
| ↳ `totalPriceSet` | object | Total order price |
| ↳ `subtotalPriceSet` | object | Order subtotal \(before shipping and taxes\) |
| ↳ `totalTaxSet` | object | Total tax amount |
| ↳ `totalShippingPriceSet` | object | Total shipping price |
| ↳ `note` | string | Order note |
| ↳ `tags` | array | Order tags |
| ↳ `customer` | object | Customer who placed the order |
| ↳ `lineItems` | object | Order line items with edges/nodes structure |
| ↳ `shippingAddress` | object | Shipping address |
| ↳ `billingAddress` | object | Billing address |
| ↳ `fulfillments` | array | Order fulfillments |
### `shopify_cancel_order` ### `shopify_cancel_order`
@@ -323,9 +208,6 @@ Cancel an order in your Shopify store
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `order` | object | The cancellation result | | `order` | object | The cancellation result |
| ↳ `id` | string | Job identifier for the cancellation |
| ↳ `cancelled` | boolean | Whether the cancellation completed |
| ↳ `message` | string | Status message |
### `shopify_create_customer` ### `shopify_create_customer`
@@ -349,18 +231,6 @@ Create a new customer in your Shopify store
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customer` | object | The created customer | | `customer` | object | The created customer |
| ↳ `id` | string | Unique customer identifier \(GID\) |
| ↳ `email` | string | Customer email address |
| ↳ `firstName` | string | Customer first name |
| ↳ `lastName` | string | Customer last name |
| ↳ `phone` | string | Customer phone number |
| ↳ `createdAt` | string | Account creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `note` | string | Internal notes about the customer |
| ↳ `tags` | array | Customer tags for categorization |
| ↳ `amountSpent` | object | Total amount spent by customer |
| ↳ `addresses` | array | Customer addresses |
| ↳ `defaultAddress` | object | Customer default address |
### `shopify_get_customer` ### `shopify_get_customer`
@@ -378,18 +248,6 @@ Get a single customer by ID from your Shopify store
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customer` | object | The customer details | | `customer` | object | The customer details |
| ↳ `id` | string | Unique customer identifier \(GID\) |
| ↳ `email` | string | Customer email address |
| ↳ `firstName` | string | Customer first name |
| ↳ `lastName` | string | Customer last name |
| ↳ `phone` | string | Customer phone number |
| ↳ `createdAt` | string | Account creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `note` | string | Internal notes about the customer |
| ↳ `tags` | array | Customer tags for categorization |
| ↳ `amountSpent` | object | Total amount spent by customer |
| ↳ `addresses` | array | Customer addresses |
| ↳ `defaultAddress` | object | Customer default address |
### `shopify_list_customers` ### `shopify_list_customers`
@@ -408,21 +266,7 @@ List customers from your Shopify store with optional filtering
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customers` | array | List of customers | | `customers` | array | List of customers |
| ↳ `id` | string | Unique customer identifier \(GID\) |
| ↳ `email` | string | Customer email address |
| ↳ `firstName` | string | Customer first name |
| ↳ `lastName` | string | Customer last name |
| ↳ `phone` | string | Customer phone number |
| ↳ `createdAt` | string | Account creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `note` | string | Internal notes about the customer |
| ↳ `tags` | array | Customer tags for categorization |
| ↳ `amountSpent` | object | Total amount spent by customer |
| ↳ `addresses` | array | Customer addresses |
| ↳ `defaultAddress` | object | Customer default address |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results after this page |
| ↳ `hasPreviousPage` | boolean | Whether there are results before this page |
### `shopify_update_customer` ### `shopify_update_customer`
@@ -446,18 +290,6 @@ Update an existing customer in your Shopify store
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `customer` | object | The updated customer | | `customer` | object | The updated customer |
| ↳ `id` | string | Unique customer identifier \(GID\) |
| ↳ `email` | string | Customer email address |
| ↳ `firstName` | string | Customer first name |
| ↳ `lastName` | string | Customer last name |
| ↳ `phone` | string | Customer phone number |
| ↳ `createdAt` | string | Account creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `note` | string | Internal notes about the customer |
| ↳ `tags` | array | Customer tags for categorization |
| ↳ `amountSpent` | object | Total amount spent by customer |
| ↳ `addresses` | array | Customer addresses |
| ↳ `defaultAddress` | object | Customer default address |
### `shopify_delete_customer` ### `shopify_delete_customer`
@@ -493,26 +325,7 @@ List inventory items from your Shopify store. Use this to find inventory item ID
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `inventoryItems` | array | List of inventory items with their IDs, SKUs, and stock levels | | `inventoryItems` | array | List of inventory items with their IDs, SKUs, and stock levels |
| ↳ `id` | string | Unique inventory item identifier \(GID\) |
| ↳ `sku` | string | Stock keeping unit |
| ↳ `tracked` | boolean | Whether inventory is tracked |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `variant` | object | Associated product variant |
| ↳ `id` | string | Variant identifier \(GID\) |
| ↳ `title` | string | Variant title |
| ↳ `product` | object | Associated product |
| ↳ `id` | string | Product identifier \(GID\) |
| ↳ `title` | string | Product title |
| ↳ `inventoryLevels` | array | Inventory levels at different locations |
| ↳ `id` | string | Inventory level identifier \(GID\) |
| ↳ `available` | number | Available quantity |
| ↳ `location` | object | Location for this inventory level |
| ↳ `id` | string | Location identifier \(GID\) |
| ↳ `name` | string | Location name |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results after this page |
| ↳ `hasPreviousPage` | boolean | Whether there are results before this page |
### `shopify_get_inventory_level` ### `shopify_get_inventory_level`
@@ -531,19 +344,6 @@ Get inventory level for a product variant at a specific location
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `inventoryLevel` | object | The inventory level details | | `inventoryLevel` | object | The inventory level details |
| ↳ `id` | string | Inventory item identifier \(GID\) |
| ↳ `sku` | string | Stock keeping unit |
| ↳ `tracked` | boolean | Whether inventory is tracked |
| ↳ `levels` | array | Inventory levels at different locations |
| ↳ `id` | string | Inventory level identifier \(GID\) |
| ↳ `available` | number | Available quantity |
| ↳ `onHand` | number | On-hand quantity |
| ↳ `committed` | number | Committed quantity |
| ↳ `incoming` | number | Incoming quantity |
| ↳ `reserved` | number | Reserved quantity |
| ↳ `location` | object | Location for this inventory level |
| ↳ `id` | string | Location identifier \(GID\) |
| ↳ `name` | string | Location name |
### `shopify_adjust_inventory` ### `shopify_adjust_inventory`
@@ -563,19 +363,6 @@ Adjust inventory quantity for a product variant at a specific location
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `inventoryLevel` | object | The inventory adjustment result | | `inventoryLevel` | object | The inventory adjustment result |
| ↳ `adjustmentGroup` | object | Inventory adjustment group details |
| ↳ `createdAt` | string | Adjustment timestamp \(ISO 8601\) |
| ↳ `reason` | string | Adjustment reason |
| ↳ `changes` | array | Inventory changes applied |
| ↳ `name` | string | Quantity name \(e.g., available\) |
| ↳ `delta` | number | Quantity change amount |
| ↳ `quantityAfterChange` | number | Quantity after adjustment |
| ↳ `item` | object | Inventory item |
| ↳ `id` | string | Inventory item identifier \(GID\) |
| ↳ `sku` | string | Stock keeping unit |
| ↳ `location` | object | Location of the adjustment |
| ↳ `id` | string | Location identifier \(GID\) |
| ↳ `name` | string | Location name |
### `shopify_list_locations` ### `shopify_list_locations`
@@ -594,14 +381,7 @@ List inventory locations from your Shopify store. Use this to find location IDs
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `locations` | array | List of locations with their IDs, names, and addresses | | `locations` | array | List of locations with their IDs, names, and addresses |
| ↳ `id` | string | Unique location identifier \(GID\) |
| ↳ `name` | string | Location name |
| ↳ `isActive` | boolean | Whether the location is active |
| ↳ `fulfillsOnlineOrders` | boolean | Whether the location fulfills online orders |
| ↳ `address` | object | Location address |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results after this page |
| ↳ `hasPreviousPage` | boolean | Whether there are results before this page |
### `shopify_create_fulfillment` ### `shopify_create_fulfillment`
@@ -623,16 +403,6 @@ Create a fulfillment to mark order items as shipped. Requires a fulfillment orde
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `fulfillment` | object | The created fulfillment with tracking info and fulfilled items | | `fulfillment` | object | The created fulfillment with tracking info and fulfilled items |
| ↳ `id` | string | Unique fulfillment identifier \(GID\) |
| ↳ `status` | string | Fulfillment status \(pending, open, success, cancelled, error, failure\) |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `trackingInfo` | array | Tracking information for shipments |
| ↳ `fulfillmentLineItems` | array | Fulfilled line items |
| ↳ `id` | string | Fulfillment line item identifier \(GID\) |
| ↳ `quantity` | number | Quantity fulfilled |
| ↳ `lineItem` | object | Associated order line item |
| ↳ `title` | string | Product title |
### `shopify_list_collections` ### `shopify_list_collections`
@@ -651,18 +421,7 @@ List product collections from your Shopify store. Filter by title, type (custom/
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `collections` | array | List of collections with their IDs, titles, and product counts | | `collections` | array | List of collections with their IDs, titles, and product counts |
| ↳ `id` | string | Unique collection identifier \(GID\) |
| ↳ `title` | string | Collection title |
| ↳ `handle` | string | URL-friendly collection identifier |
| ↳ `description` | string | Plain text description |
| ↳ `descriptionHtml` | string | HTML-formatted description |
| ↳ `productsCount` | number | Number of products in the collection |
| ↳ `sortOrder` | string | Product sort order in the collection |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `image` | object | Collection image |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `hasNextPage` | boolean | Whether there are more results after this page |
| ↳ `hasPreviousPage` | boolean | Whether there are results before this page |
### `shopify_get_collection` ### `shopify_get_collection`
@@ -681,15 +440,5 @@ Get a specific collection by ID, including its products. Use this to retrieve pr
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `collection` | object | The collection details including its products | | `collection` | object | The collection details including its products |
| ↳ `id` | string | Unique collection identifier \(GID\) |
| ↳ `title` | string | Collection title |
| ↳ `handle` | string | URL-friendly collection identifier |
| ↳ `description` | string | Plain text description |
| ↳ `descriptionHtml` | string | HTML-formatted description |
| ↳ `productsCount` | number | Number of products in the collection |
| ↳ `sortOrder` | string | Product sort order in the collection |
| ↳ `updatedAt` | string | Last modification timestamp \(ISO 8601\) |
| ↳ `image` | object | Collection image |
| ↳ `products` | array | Products in the collection |

View File

@@ -1,183 +0,0 @@
---
title: Similarweb
description: Website traffic and analytics data
---
import { BlockInfoCard } from "@/components/ui/block-info-card"
<BlockInfoCard
type="similarweb"
color="#000922"
/>
{/* MANUAL-CONTENT-START:intro */}
[Similarweb](https://www.similarweb.com/) is a leading platform for web analytics that provides in-depth traffic and engagement data for millions of websites. Similarweb gives you insights into website visits, traffic sources, audience behavior, and competitive benchmarks.
With Similarweb in Sim, your agents can:
- **Analyze website traffic**: Retrieve key metrics such as monthly visits, average duration, bounce rates, and top countries.
- **Understand audience engagement**: Gain insights into how users interact with websites, including pages per visit and engagement duration.
- **Track rankings and performance**: Access global, country, and category ranks to benchmark sites against competitors.
- **Discover traffic sources**: Break down traffic by channels like direct, search, social, referrals, and more.
Use Sim's Similarweb integration to automate the monitoring of competitors, track your sites performance, or surface actionable market research—all integrated directly into your workflows and automations. Empower your agents to access and utilize reliable web analytics data easily and programmatically.
{/* MANUAL-CONTENT-END */}
## Usage Instructions
Access comprehensive website analytics including traffic estimates, engagement metrics, rankings, and traffic sources using the Similarweb API.
## Tools
### `similarweb_website_overview`
Get comprehensive website analytics including traffic, rankings, engagement, and traffic sources
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `apiKey` | string | Yes | SimilarWeb API key |
| `domain` | string | Yes | Website domain to analyze \(without www or protocol\) |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `siteName` | string | Website name |
| `description` | string | Website description |
| `globalRank` | number | Global traffic rank |
| `countryRank` | number | Country traffic rank |
| `categoryRank` | number | Category traffic rank |
| `category` | string | Website category |
| `monthlyVisits` | number | Estimated monthly visits |
| `engagementVisitDuration` | number | Average visit duration in seconds |
| `engagementPagesPerVisit` | number | Average pages per visit |
| `engagementBounceRate` | number | Bounce rate \(0-1\) |
| `topCountries` | array | Top countries by traffic share |
| ↳ `country` | string | Country code |
| ↳ `share` | number | Traffic share \(0-1\) |
| `trafficSources` | json | Traffic source breakdown |
| ↳ `direct` | number | Direct traffic share |
| ↳ `referrals` | number | Referral traffic share |
| ↳ `search` | number | Search traffic share |
| ↳ `social` | number | Social traffic share |
| ↳ `mail` | number | Email traffic share |
| ↳ `paidReferrals` | number | Paid referral traffic share |
### `similarweb_traffic_visits`
Get total website visits over time (desktop and mobile combined)
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `apiKey` | string | Yes | SimilarWeb API key |
| `domain` | string | Yes | Website domain to analyze \(without www or protocol\) |
| `country` | string | Yes | 2-letter ISO country code or "world" for worldwide data |
| `granularity` | string | Yes | Data granularity: daily, weekly, or monthly |
| `startDate` | string | No | Start date in YYYY-MM format |
| `endDate` | string | No | End date in YYYY-MM format |
| `mainDomainOnly` | boolean | No | Exclude subdomains from results |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `domain` | string | Analyzed domain |
| `country` | string | Country filter applied |
| `granularity` | string | Data granularity |
| `lastUpdated` | string | Data last updated timestamp |
| `visits` | array | Visit data over time |
| ↳ `date` | string | Date \(YYYY-MM-DD\) |
| ↳ `visits` | number | Number of visits |
### `similarweb_bounce_rate`
Get website bounce rate over time (desktop and mobile combined)
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `apiKey` | string | Yes | SimilarWeb API key |
| `domain` | string | Yes | Website domain to analyze \(without www or protocol\) |
| `country` | string | Yes | 2-letter ISO country code or "world" for worldwide data |
| `granularity` | string | Yes | Data granularity: daily, weekly, or monthly |
| `startDate` | string | No | Start date in YYYY-MM format |
| `endDate` | string | No | End date in YYYY-MM format |
| `mainDomainOnly` | boolean | No | Exclude subdomains from results |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `domain` | string | Analyzed domain |
| `country` | string | Country filter applied |
| `granularity` | string | Data granularity |
| `lastUpdated` | string | Data last updated timestamp |
| `bounceRate` | array | Bounce rate data over time |
| ↳ `date` | string | Date \(YYYY-MM-DD\) |
| ↳ `bounceRate` | number | Bounce rate \(0-1\) |
### `similarweb_pages_per_visit`
Get average pages per visit over time (desktop and mobile combined)
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `apiKey` | string | Yes | SimilarWeb API key |
| `domain` | string | Yes | Website domain to analyze \(without www or protocol\) |
| `country` | string | Yes | 2-letter ISO country code or "world" for worldwide data |
| `granularity` | string | Yes | Data granularity: daily, weekly, or monthly |
| `startDate` | string | No | Start date in YYYY-MM format |
| `endDate` | string | No | End date in YYYY-MM format |
| `mainDomainOnly` | boolean | No | Exclude subdomains from results |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `domain` | string | Analyzed domain |
| `country` | string | Country filter applied |
| `granularity` | string | Data granularity |
| `lastUpdated` | string | Data last updated timestamp |
| `pagesPerVisit` | array | Pages per visit data over time |
| ↳ `date` | string | Date \(YYYY-MM-DD\) |
| ↳ `pagesPerVisit` | number | Average pages per visit |
### `similarweb_visit_duration`
Get average desktop visit duration over time (in seconds)
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `apiKey` | string | Yes | SimilarWeb API key |
| `domain` | string | Yes | Website domain to analyze \(without www or protocol\) |
| `country` | string | Yes | 2-letter ISO country code or "world" for worldwide data |
| `granularity` | string | Yes | Data granularity: daily, weekly, or monthly |
| `startDate` | string | No | Start date in YYYY-MM format |
| `endDate` | string | No | End date in YYYY-MM format |
| `mainDomainOnly` | boolean | No | Exclude subdomains from results |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `domain` | string | Analyzed domain |
| `country` | string | Country filter applied |
| `granularity` | string | Data granularity |
| `lastUpdated` | string | Data last updated timestamp |
| `averageVisitDuration` | array | Desktop visit duration data over time |
| ↳ `date` | string | Date \(YYYY-MM-DD\) |
| ↳ `durationSeconds` | number | Average visit duration in seconds |

View File

@@ -97,60 +97,6 @@ Send messages to Slack channels or direct messages. Supports Slack mrkdwn format
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | object | Complete message object with all properties returned by Slack | | `message` | object | Complete message object with all properties returned by Slack |
| ↳ `type` | string | Message type \(usually "message"\) |
| ↳ `ts` | string | Message timestamp \(unique identifier\) |
| ↳ `text` | string | Message text content |
| ↳ `user` | string | User ID who sent the message |
| ↳ `bot_id` | string | Bot ID if sent by a bot |
| ↳ `username` | string | Display username |
| ↳ `channel` | string | Channel ID |
| ↳ `team` | string | Team/workspace ID |
| ↳ `thread_ts` | string | Parent message timestamp \(for threaded replies\) |
| ↳ `parent_user_id` | string | User ID of thread parent message author |
| ↳ `reply_count` | number | Total number of replies in thread |
| ↳ `reply_users_count` | number | Number of unique users who replied |
| ↳ `latest_reply` | string | Timestamp of most recent reply |
| ↳ `subscribed` | boolean | Whether user is subscribed to thread |
| ↳ `last_read` | string | Timestamp of last read message |
| ↳ `unread_count` | number | Number of unread messages in thread |
| ↳ `subtype` | string | Message subtype \(bot_message, file_share, etc.\) |
| ↳ `is_starred` | boolean | Whether message is starred by user |
| ↳ `pinned_to` | array | Channel IDs where message is pinned |
| ↳ `permalink` | string | Permanent URL to the message |
| ↳ `reactions` | array | Reactions on this message |
| ↳ `name` | string | Emoji name \(without colons\) |
| ↳ `count` | number | Number of times this reaction was added |
| ↳ `users` | array | Array of user IDs who reacted |
| ↳ `files` | array | Files attached to the message |
| ↳ `id` | string | Unique file identifier |
| ↳ `name` | string | File name |
| ↳ `mimetype` | string | MIME type of the file |
| ↳ `size` | number | File size in bytes |
| ↳ `url_private` | string | Private download URL \(requires auth\) |
| ↳ `permalink` | string | Permanent link to the file |
| ↳ `mode` | string | File mode \(hosted, external, etc.\) |
| ↳ `attachments` | array | Legacy attachments on the message |
| ↳ `id` | number | Attachment ID |
| ↳ `fallback` | string | Plain text summary |
| ↳ `text` | string | Main attachment text |
| ↳ `pretext` | string | Text shown before attachment |
| ↳ `color` | string | Color bar hex code or preset |
| ↳ `author_name` | string | Author display name |
| ↳ `author_link` | string | Author link URL |
| ↳ `author_icon` | string | Author icon URL |
| ↳ `title` | string | Attachment title |
| ↳ `title_link` | string | Title link URL |
| ↳ `image_url` | string | Image URL |
| ↳ `thumb_url` | string | Thumbnail URL |
| ↳ `footer` | string | Footer text |
| ↳ `footer_icon` | string | Footer icon URL |
| ↳ `ts` | string | Timestamp shown in footer |
| ↳ `blocks` | array | Block Kit blocks in the message |
| ↳ `type` | string | Block type \(section, divider, image, actions, etc.\) |
| ↳ `block_id` | string | Unique block identifier |
| ↳ `edited` | object | Edit information if message was edited |
| ↳ `user` | string | User ID who edited the message |
| ↳ `ts` | string | Timestamp of the edit |
| `ts` | string | Message timestamp | | `ts` | string | Message timestamp |
| `channel` | string | Channel ID where message was sent | | `channel` | string | Channel ID where message was sent |
| `fileCount` | number | Number of files uploaded \(when files are attached\) | | `fileCount` | number | Number of files uploaded \(when files are attached\) |
@@ -174,9 +120,9 @@ Create and share Slack canvases in channels. Canvases are collaborative document
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `canvas_id` | string | Unique canvas identifier | | `canvas_id` | string | ID of the created canvas |
| `channel` | string | Channel where canvas was created | | `channel` | string | Channel where canvas was created |
| `title` | string | Canvas title | | `title` | string | Title of the canvas |
### `slack_message_reader` ### `slack_message_reader`
@@ -200,60 +146,43 @@ Read the latest messages from Slack channels. Retrieve conversation history with
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `messages` | array | Array of message objects from the channel | | `messages` | array | Array of message objects from the channel |
| ↳ `type` | string | Message type \(usually "message"\) | | ↳ `type` | string | Message type |
| ↳ `ts` | string | Message timestamp \(unique identifier\) | | ↳ `ts` | string | Message timestamp |
| ↳ `text` | string | Message text content | | ↳ `text` | string | Message text content |
| ↳ `user` | string | User ID who sent the message | | ↳ `user` | string | User ID who sent the message |
| ↳ `bot_id` | string | Bot ID if sent by a bot | | ↳ `bot_id` | string | Bot ID if sent by a bot |
| ↳ `username` | string | Display username | | ↳ `username` | string | Display username |
| ↳ `channel` | string | Channel ID | | ↳ `channel` | string | Channel ID |
| ↳ `team` | string | Team/workspace ID | | ↳ `team` | string | Team ID |
| ↳ `thread_ts` | string | Parent message timestamp \(for threaded replies\) | | ↳ `thread_ts` | string | Thread parent message timestamp |
| ↳ `parent_user_id` | string | User ID of thread parent message author | | ↳ `parent_user_id` | string | User ID of thread parent |
| ↳ `reply_count` | number | Total number of replies in thread | | ↳ `reply_count` | number | Number of thread replies |
| ↳ `reply_users_count` | number | Number of unique users who replied | | ↳ `reply_users_count` | number | Number of users who replied |
| ↳ `latest_reply` | string | Timestamp of most recent reply | | ↳ `latest_reply` | string | Timestamp of latest reply |
| ↳ `subscribed` | boolean | Whether user is subscribed to thread | | ↳ `subscribed` | boolean | Whether user is subscribed to thread |
| ↳ `last_read` | string | Timestamp of last read message | | ↳ `last_read` | string | Last read timestamp |
| ↳ `unread_count` | number | Number of unread messages in thread | | ↳ `unread_count` | number | Number of unread messages |
| ↳ `subtype` | string | Message subtype \(bot_message, file_share, etc.\) | | ↳ `subtype` | string | Message subtype |
| ↳ `is_starred` | boolean | Whether message is starred by user | | ↳ `reactions` | array | Array of reactions on this message |
| ↳ `pinned_to` | array | Channel IDs where message is pinned | | ↳ `name` | string | Emoji name |
| ↳ `permalink` | string | Permanent URL to the message | | ↳ `count` | number | Number of reactions |
| ↳ `reactions` | array | Reactions on this message |
| ↳ `name` | string | Emoji name \(without colons\) |
| ↳ `count` | number | Number of times this reaction was added |
| ↳ `users` | array | Array of user IDs who reacted | | ↳ `users` | array | Array of user IDs who reacted |
| ↳ `files` | array | Files attached to the message | | ↳ `is_starred` | boolean | Whether message is starred |
| ↳ `id` | string | Unique file identifier | | ↳ `pinned_to` | array | Array of channel IDs where message is pinned |
| ↳ `files` | array | Array of files attached to message |
| ↳ `id` | string | File ID |
| ↳ `name` | string | File name | | ↳ `name` | string | File name |
| ↳ `mimetype` | string | MIME type of the file | | ↳ `mimetype` | string | MIME type |
| ↳ `size` | number | File size in bytes | | ↳ `size` | number | File size in bytes |
| ↳ `url_private` | string | Private download URL \(requires auth\) | | ↳ `url_private` | string | Private download URL |
| ↳ `permalink` | string | Permanent link to the file | | ↳ `permalink` | string | Permanent link to file |
| ↳ `mode` | string | File mode \(hosted, external, etc.\) | | ↳ `mode` | string | File mode |
| ↳ `attachments` | array | Legacy attachments on the message | | ↳ `attachments` | array | Array of legacy attachments |
| ↳ `id` | number | Attachment ID | | ↳ `blocks` | array | Array of Block Kit blocks |
| ↳ `fallback` | string | Plain text summary |
| ↳ `text` | string | Main attachment text |
| ↳ `pretext` | string | Text shown before attachment |
| ↳ `color` | string | Color bar hex code or preset |
| ↳ `author_name` | string | Author display name |
| ↳ `author_link` | string | Author link URL |
| ↳ `author_icon` | string | Author icon URL |
| ↳ `title` | string | Attachment title |
| ↳ `title_link` | string | Title link URL |
| ↳ `image_url` | string | Image URL |
| ↳ `thumb_url` | string | Thumbnail URL |
| ↳ `footer` | string | Footer text |
| ↳ `footer_icon` | string | Footer icon URL |
| ↳ `ts` | string | Timestamp shown in footer |
| ↳ `blocks` | array | Block Kit blocks in the message |
| ↳ `type` | string | Block type \(section, divider, image, actions, etc.\) |
| ↳ `block_id` | string | Unique block identifier |
| ↳ `edited` | object | Edit information if message was edited | | ↳ `edited` | object | Edit information if message was edited |
| ↳ `user` | string | User ID who edited the message | | ↳ `user` | string | User ID who edited |
| ↳ `ts` | string | Timestamp of the edit | | ↳ `ts` | string | Edit timestamp |
| ↳ `permalink` | string | Permanent link to message |
### `slack_get_message` ### `slack_get_message`
@@ -273,60 +202,39 @@ Retrieve a specific message by its timestamp. Useful for getting a thread parent
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | object | The retrieved message object | | `message` | object | The retrieved message object |
| ↳ `type` | string | Message type \(usually "message"\) | | ↳ `type` | string | Message type |
| ↳ `ts` | string | Message timestamp \(unique identifier\) | | ↳ `ts` | string | Message timestamp |
| ↳ `text` | string | Message text content | | ↳ `text` | string | Message text content |
| ↳ `user` | string | User ID who sent the message | | ↳ `user` | string | User ID who sent the message |
| ↳ `bot_id` | string | Bot ID if sent by a bot | | ↳ `bot_id` | string | Bot ID if sent by a bot |
| ↳ `username` | string | Display username | | ↳ `username` | string | Display username |
| ↳ `channel` | string | Channel ID | | ↳ `channel` | string | Channel ID |
| ↳ `team` | string | Team/workspace ID | | ↳ `team` | string | Team ID |
| ↳ `thread_ts` | string | Parent message timestamp \(for threaded replies\) | | ↳ `thread_ts` | string | Thread parent timestamp |
| ↳ `parent_user_id` | string | User ID of thread parent message author | | ↳ `parent_user_id` | string | User ID of thread parent |
| ↳ `reply_count` | number | Total number of replies in thread | | ↳ `reply_count` | number | Number of thread replies |
| ↳ `reply_users_count` | number | Number of unique users who replied | | ↳ `reply_users_count` | number | Number of users who replied |
| ↳ `latest_reply` | string | Timestamp of most recent reply | | ↳ `latest_reply` | string | Timestamp of latest reply |
| ↳ `subscribed` | boolean | Whether user is subscribed to thread | | ↳ `subtype` | string | Message subtype |
| ↳ `last_read` | string | Timestamp of last read message | | ↳ `reactions` | array | Array of reactions on this message |
| ↳ `unread_count` | number | Number of unread messages in thread | | ↳ `name` | string | Emoji name |
| ↳ `subtype` | string | Message subtype \(bot_message, file_share, etc.\) | | ↳ `count` | number | Number of reactions |
| ↳ `is_starred` | boolean | Whether message is starred by user | | ↳ `users` | array | User IDs who reacted |
| ↳ `is_starred` | boolean | Whether message is starred |
| ↳ `pinned_to` | array | Channel IDs where message is pinned | | ↳ `pinned_to` | array | Channel IDs where message is pinned |
| ↳ `permalink` | string | Permanent URL to the message | | ↳ `files` | array | Files attached to message |
| ↳ `reactions` | array | Reactions on this message | | ↳ `id` | string | File ID |
| ↳ `name` | string | Emoji name \(without colons\) |
| ↳ `count` | number | Number of times this reaction was added |
| ↳ `users` | array | Array of user IDs who reacted |
| ↳ `files` | array | Files attached to the message |
| ↳ `id` | string | Unique file identifier |
| ↳ `name` | string | File name | | ↳ `name` | string | File name |
| ↳ `mimetype` | string | MIME type of the file | | ↳ `mimetype` | string | MIME type |
| ↳ `size` | number | File size in bytes | | ↳ `size` | number | File size in bytes |
| ↳ `url_private` | string | Private download URL \(requires auth\) | | ↳ `url_private` | string | Private download URL |
| ↳ `permalink` | string | Permanent link to the file | | ↳ `permalink` | string | Permanent link to file |
| ↳ `mode` | string | File mode \(hosted, external, etc.\) | | ↳ `attachments` | array | Legacy attachments |
| ↳ `attachments` | array | Legacy attachments on the message | | ↳ `blocks` | array | Block Kit blocks |
| ↳ `id` | number | Attachment ID |
| ↳ `fallback` | string | Plain text summary |
| ↳ `text` | string | Main attachment text |
| ↳ `pretext` | string | Text shown before attachment |
| ↳ `color` | string | Color bar hex code or preset |
| ↳ `author_name` | string | Author display name |
| ↳ `author_link` | string | Author link URL |
| ↳ `author_icon` | string | Author icon URL |
| ↳ `title` | string | Attachment title |
| ↳ `title_link` | string | Title link URL |
| ↳ `image_url` | string | Image URL |
| ↳ `thumb_url` | string | Thumbnail URL |
| ↳ `footer` | string | Footer text |
| ↳ `footer_icon` | string | Footer icon URL |
| ↳ `ts` | string | Timestamp shown in footer |
| ↳ `blocks` | array | Block Kit blocks in the message |
| ↳ `type` | string | Block type \(section, divider, image, actions, etc.\) |
| ↳ `block_id` | string | Unique block identifier |
| ↳ `edited` | object | Edit information if message was edited | | ↳ `edited` | object | Edit information if message was edited |
| ↳ `user` | string | User ID who edited the message | | ↳ `user` | string | User ID who edited |
| ↳ `ts` | string | Timestamp of the edit | | ↳ `ts` | string | Edit timestamp |
| ↳ `permalink` | string | Permanent link to message |
### `slack_get_thread` ### `slack_get_thread`
@@ -347,170 +255,31 @@ Retrieve an entire thread including the parent message and all replies. Useful f
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `parentMessage` | object | The thread parent message | | `parentMessage` | object | The thread parent message |
| ↳ `type` | string | Message type \(usually "message"\) | | ↳ `type` | string | Message type |
| ↳ `ts` | string | Message timestamp \(unique identifier\) | | ↳ `ts` | string | Message timestamp |
| ↳ `text` | string | Message text content | | ↳ `text` | string | Message text content |
| ↳ `user` | string | User ID who sent the message | | ↳ `user` | string | User ID who sent the message |
| ↳ `bot_id` | string | Bot ID if sent by a bot | | ↳ `bot_id` | string | Bot ID if sent by a bot |
| ↳ `username` | string | Display username | | ↳ `username` | string | Display username |
| ↳ `channel` | string | Channel ID | | ↳ `reply_count` | number | Total number of thread replies |
| ↳ `team` | string | Team/workspace ID | | ↳ `reply_users_count` | number | Number of users who replied |
| ↳ `thread_ts` | string | Parent message timestamp \(for threaded replies\) | | ↳ `latest_reply` | string | Timestamp of latest reply |
| ↳ `parent_user_id` | string | User ID of thread parent message author | | ↳ `reactions` | array | Array of reactions on the parent message |
| ↳ `reply_count` | number | Total number of replies in thread | | ↳ `name` | string | Emoji name |
| ↳ `reply_users_count` | number | Number of unique users who replied | | ↳ `count` | number | Number of reactions |
| ↳ `latest_reply` | string | Timestamp of most recent reply | | ↳ `users` | array | User IDs who reacted |
| ↳ `subscribed` | boolean | Whether user is subscribed to thread | | ↳ `files` | array | Files attached to the parent message |
| ↳ `last_read` | string | Timestamp of last read message | | ↳ `id` | string | File ID |
| ↳ `unread_count` | number | Number of unread messages in thread |
| ↳ `subtype` | string | Message subtype \(bot_message, file_share, etc.\) |
| ↳ `is_starred` | boolean | Whether message is starred by user |
| ↳ `pinned_to` | array | Channel IDs where message is pinned |
| ↳ `permalink` | string | Permanent URL to the message |
| ↳ `reactions` | array | Reactions on this message |
| ↳ `name` | string | Emoji name \(without colons\) |
| ↳ `count` | number | Number of times this reaction was added |
| ↳ `users` | array | Array of user IDs who reacted |
| ↳ `files` | array | Files attached to the message |
| ↳ `id` | string | Unique file identifier |
| ↳ `name` | string | File name | | ↳ `name` | string | File name |
| ↳ `mimetype` | string | MIME type of the file | | ↳ `mimetype` | string | MIME type |
| ↳ `size` | number | File size in bytes | | ↳ `size` | number | File size in bytes |
| ↳ `url_private` | string | Private download URL \(requires auth\) |
| ↳ `permalink` | string | Permanent link to the file |
| ↳ `mode` | string | File mode \(hosted, external, etc.\) |
| ↳ `attachments` | array | Legacy attachments on the message |
| ↳ `id` | number | Attachment ID |
| ↳ `fallback` | string | Plain text summary |
| ↳ `text` | string | Main attachment text |
| ↳ `pretext` | string | Text shown before attachment |
| ↳ `color` | string | Color bar hex code or preset |
| ↳ `author_name` | string | Author display name |
| ↳ `author_link` | string | Author link URL |
| ↳ `author_icon` | string | Author icon URL |
| ↳ `title` | string | Attachment title |
| ↳ `title_link` | string | Title link URL |
| ↳ `image_url` | string | Image URL |
| ↳ `thumb_url` | string | Thumbnail URL |
| ↳ `footer` | string | Footer text |
| ↳ `footer_icon` | string | Footer icon URL |
| ↳ `ts` | string | Timestamp shown in footer |
| ↳ `blocks` | array | Block Kit blocks in the message |
| ↳ `type` | string | Block type \(section, divider, image, actions, etc.\) |
| ↳ `block_id` | string | Unique block identifier |
| ↳ `edited` | object | Edit information if message was edited |
| ↳ `user` | string | User ID who edited the message |
| ↳ `ts` | string | Timestamp of the edit |
| `replies` | array | Array of reply messages in the thread \(excluding the parent\) | | `replies` | array | Array of reply messages in the thread \(excluding the parent\) |
| ↳ `type` | string | Message type \(usually "message"\) | | ↳ `ts` | string | Message timestamp |
| ↳ `ts` | string | Message timestamp \(unique identifier\) |
| ↳ `text` | string | Message text content | | ↳ `text` | string | Message text content |
| ↳ `user` | string | User ID who sent the message | | ↳ `user` | string | User ID who sent the reply |
| ↳ `bot_id` | string | Bot ID if sent by a bot | | ↳ `reactions` | array | Reactions on the reply |
| ↳ `username` | string | Display username | | ↳ `files` | array | Files attached to the reply |
| ↳ `channel` | string | Channel ID |
| ↳ `team` | string | Team/workspace ID |
| ↳ `thread_ts` | string | Parent message timestamp \(for threaded replies\) |
| ↳ `parent_user_id` | string | User ID of thread parent message author |
| ↳ `reply_count` | number | Total number of replies in thread |
| ↳ `reply_users_count` | number | Number of unique users who replied |
| ↳ `latest_reply` | string | Timestamp of most recent reply |
| ↳ `subscribed` | boolean | Whether user is subscribed to thread |
| ↳ `last_read` | string | Timestamp of last read message |
| ↳ `unread_count` | number | Number of unread messages in thread |
| ↳ `subtype` | string | Message subtype \(bot_message, file_share, etc.\) |
| ↳ `is_starred` | boolean | Whether message is starred by user |
| ↳ `pinned_to` | array | Channel IDs where message is pinned |
| ↳ `permalink` | string | Permanent URL to the message |
| ↳ `reactions` | array | Reactions on this message |
| ↳ `name` | string | Emoji name \(without colons\) |
| ↳ `count` | number | Number of times this reaction was added |
| ↳ `users` | array | Array of user IDs who reacted |
| ↳ `files` | array | Files attached to the message |
| ↳ `id` | string | Unique file identifier |
| ↳ `name` | string | File name |
| ↳ `mimetype` | string | MIME type of the file |
| ↳ `size` | number | File size in bytes |
| ↳ `url_private` | string | Private download URL \(requires auth\) |
| ↳ `permalink` | string | Permanent link to the file |
| ↳ `mode` | string | File mode \(hosted, external, etc.\) |
| ↳ `attachments` | array | Legacy attachments on the message |
| ↳ `id` | number | Attachment ID |
| ↳ `fallback` | string | Plain text summary |
| ↳ `text` | string | Main attachment text |
| ↳ `pretext` | string | Text shown before attachment |
| ↳ `color` | string | Color bar hex code or preset |
| ↳ `author_name` | string | Author display name |
| ↳ `author_link` | string | Author link URL |
| ↳ `author_icon` | string | Author icon URL |
| ↳ `title` | string | Attachment title |
| ↳ `title_link` | string | Title link URL |
| ↳ `image_url` | string | Image URL |
| ↳ `thumb_url` | string | Thumbnail URL |
| ↳ `footer` | string | Footer text |
| ↳ `footer_icon` | string | Footer icon URL |
| ↳ `ts` | string | Timestamp shown in footer |
| ↳ `blocks` | array | Block Kit blocks in the message |
| ↳ `type` | string | Block type \(section, divider, image, actions, etc.\) |
| ↳ `block_id` | string | Unique block identifier |
| ↳ `edited` | object | Edit information if message was edited |
| ↳ `user` | string | User ID who edited the message |
| ↳ `ts` | string | Timestamp of the edit |
| `messages` | array | All messages in the thread \(parent + replies\) in chronological order | | `messages` | array | All messages in the thread \(parent + replies\) in chronological order |
| ↳ `type` | string | Message type \(usually "message"\) |
| ↳ `ts` | string | Message timestamp \(unique identifier\) |
| ↳ `text` | string | Message text content |
| ↳ `user` | string | User ID who sent the message |
| ↳ `bot_id` | string | Bot ID if sent by a bot |
| ↳ `username` | string | Display username |
| ↳ `channel` | string | Channel ID |
| ↳ `team` | string | Team/workspace ID |
| ↳ `thread_ts` | string | Parent message timestamp \(for threaded replies\) |
| ↳ `parent_user_id` | string | User ID of thread parent message author |
| ↳ `reply_count` | number | Total number of replies in thread |
| ↳ `reply_users_count` | number | Number of unique users who replied |
| ↳ `latest_reply` | string | Timestamp of most recent reply |
| ↳ `subscribed` | boolean | Whether user is subscribed to thread |
| ↳ `last_read` | string | Timestamp of last read message |
| ↳ `unread_count` | number | Number of unread messages in thread |
| ↳ `subtype` | string | Message subtype \(bot_message, file_share, etc.\) |
| ↳ `is_starred` | boolean | Whether message is starred by user |
| ↳ `pinned_to` | array | Channel IDs where message is pinned |
| ↳ `permalink` | string | Permanent URL to the message |
| ↳ `reactions` | array | Reactions on this message |
| ↳ `name` | string | Emoji name \(without colons\) |
| ↳ `count` | number | Number of times this reaction was added |
| ↳ `users` | array | Array of user IDs who reacted |
| ↳ `files` | array | Files attached to the message |
| ↳ `id` | string | Unique file identifier |
| ↳ `name` | string | File name |
| ↳ `mimetype` | string | MIME type of the file |
| ↳ `size` | number | File size in bytes |
| ↳ `url_private` | string | Private download URL \(requires auth\) |
| ↳ `permalink` | string | Permanent link to the file |
| ↳ `mode` | string | File mode \(hosted, external, etc.\) |
| ↳ `attachments` | array | Legacy attachments on the message |
| ↳ `id` | number | Attachment ID |
| ↳ `fallback` | string | Plain text summary |
| ↳ `text` | string | Main attachment text |
| ↳ `pretext` | string | Text shown before attachment |
| ↳ `color` | string | Color bar hex code or preset |
| ↳ `author_name` | string | Author display name |
| ↳ `author_link` | string | Author link URL |
| ↳ `author_icon` | string | Author icon URL |
| ↳ `title` | string | Attachment title |
| ↳ `title_link` | string | Title link URL |
| ↳ `image_url` | string | Image URL |
| ↳ `thumb_url` | string | Thumbnail URL |
| ↳ `footer` | string | Footer text |
| ↳ `footer_icon` | string | Footer icon URL |
| ↳ `ts` | string | Timestamp shown in footer |
| ↳ `blocks` | array | Block Kit blocks in the message |
| ↳ `type` | string | Block type \(section, divider, image, actions, etc.\) |
| ↳ `block_id` | string | Unique block identifier |
| ↳ `edited` | object | Edit information if message was edited |
| ↳ `user` | string | User ID who edited the message |
| ↳ `ts` | string | Timestamp of the edit |
| `replyCount` | number | Number of replies returned in this response | | `replyCount` | number | Number of replies returned in this response |
| `hasMore` | boolean | Whether there are more messages in the thread \(pagination needed\) | | `hasMore` | boolean | Whether there are more messages in the thread \(pagination needed\) |
@@ -535,20 +304,14 @@ List all channels in a Slack workspace. Returns public and private channels the
| `channels` | array | Array of channel objects from the workspace | | `channels` | array | Array of channel objects from the workspace |
| ↳ `id` | string | Channel ID \(e.g., C1234567890\) | | ↳ `id` | string | Channel ID \(e.g., C1234567890\) |
| ↳ `name` | string | Channel name without # prefix | | ↳ `name` | string | Channel name without # prefix |
| ↳ `is_channel` | boolean | Whether this is a channel | | ↳ `is_private` | boolean | Whether the channel is private |
| ↳ `is_private` | boolean | Whether channel is private | | ↳ `is_archived` | boolean | Whether the channel is archived |
| ↳ `is_archived` | boolean | Whether channel is archived | | ↳ `is_member` | boolean | Whether the bot is a member of the channel |
| ↳ `is_general` | boolean | Whether this is the general channel |
| ↳ `is_member` | boolean | Whether the bot/user is a member |
| ↳ `is_shared` | boolean | Whether channel is shared across workspaces |
| ↳ `is_ext_shared` | boolean | Whether channel is externally shared |
| ↳ `is_org_shared` | boolean | Whether channel is org-wide shared |
| ↳ `num_members` | number | Number of members in the channel | | ↳ `num_members` | number | Number of members in the channel |
| ↳ `topic` | string | Channel topic | | ↳ `topic` | string | Channel topic |
| ↳ `purpose` | string | Channel purpose/description | | ↳ `purpose` | string | Channel purpose/description |
| ↳ `created` | number | Unix timestamp when channel was created | | ↳ `created` | number | Unix timestamp when channel was created |
| ↳ `creator` | string | User ID of channel creator | | ↳ `creator` | string | User ID of channel creator |
| ↳ `updated` | number | Unix timestamp of last update |
| `ids` | array | Array of channel IDs for easy access | | `ids` | array | Array of channel IDs for easy access |
| `names` | array | Array of channel names for easy access | | `names` | array | Array of channel names for easy access |
| `count` | number | Total number of channels returned | | `count` | number | Total number of channels returned |
@@ -624,8 +387,7 @@ Get detailed information about a specific Slack user by their user ID.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `user` | object | Detailed user information | | `user` | object | Detailed user information |
| ↳ `id` | string | User ID \(e.g., U1234567890\) | | ↳ `id` | string | User ID |
| ↳ `team_id` | string | Workspace/team ID |
| ↳ `name` | string | Username \(handle\) | | ↳ `name` | string | Username \(handle\) |
| ↳ `real_name` | string | Full real name | | ↳ `real_name` | string | Full real name |
| ↳ `display_name` | string | Display name shown in Slack | | ↳ `display_name` | string | Display name shown in Slack |
@@ -640,14 +402,10 @@ Get detailed information about a specific Slack user by their user ID.
| ↳ `is_primary_owner` | boolean | Whether the user is the primary owner | | ↳ `is_primary_owner` | boolean | Whether the user is the primary owner |
| ↳ `is_restricted` | boolean | Whether the user is a guest \(restricted\) | | ↳ `is_restricted` | boolean | Whether the user is a guest \(restricted\) |
| ↳ `is_ultra_restricted` | boolean | Whether the user is a single-channel guest | | ↳ `is_ultra_restricted` | boolean | Whether the user is a single-channel guest |
| ↳ `is_app_user` | boolean | Whether user is an app user |
| ↳ `is_stranger` | boolean | Whether user is from different workspace |
| ↳ `deleted` | boolean | Whether the user is deactivated | | ↳ `deleted` | boolean | Whether the user is deactivated |
| ↳ `color` | string | User color for display |
| ↳ `timezone` | string | Timezone identifier \(e.g., America/Los_Angeles\) | | ↳ `timezone` | string | Timezone identifier \(e.g., America/Los_Angeles\) |
| ↳ `timezone_label` | string | Human-readable timezone label | | ↳ `timezone_label` | string | Human-readable timezone label |
| ↳ `timezone_offset` | number | Timezone offset in seconds from UTC | | ↳ `timezone_offset` | number | Timezone offset in seconds from UTC |
| ↳ `avatar` | string | URL to user avatar image |
| ↳ `avatar_24` | string | URL to 24px avatar | | ↳ `avatar_24` | string | URL to 24px avatar |
| ↳ `avatar_48` | string | URL to 48px avatar | | ↳ `avatar_48` | string | URL to 48px avatar |
| ↳ `avatar_72` | string | URL to 72px avatar | | ↳ `avatar_72` | string | URL to 72px avatar |
@@ -657,7 +415,6 @@ Get detailed information about a specific Slack user by their user ID.
| ↳ `status_emoji` | string | Custom status emoji | | ↳ `status_emoji` | string | Custom status emoji |
| ↳ `status_expiration` | number | Unix timestamp when status expires | | ↳ `status_expiration` | number | Unix timestamp when status expires |
| ↳ `updated` | number | Unix timestamp of last profile update | | ↳ `updated` | number | Unix timestamp of last profile update |
| ↳ `has_2fa` | boolean | Whether two-factor auth is enabled |
### `slack_download` ### `slack_download`
@@ -697,60 +454,6 @@ Update a message previously sent by the bot in Slack
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | object | Complete updated message object with all properties returned by Slack | | `message` | object | Complete updated message object with all properties returned by Slack |
| ↳ `type` | string | Message type \(usually "message"\) |
| ↳ `ts` | string | Message timestamp \(unique identifier\) |
| ↳ `text` | string | Message text content |
| ↳ `user` | string | User ID who sent the message |
| ↳ `bot_id` | string | Bot ID if sent by a bot |
| ↳ `username` | string | Display username |
| ↳ `channel` | string | Channel ID |
| ↳ `team` | string | Team/workspace ID |
| ↳ `thread_ts` | string | Parent message timestamp \(for threaded replies\) |
| ↳ `parent_user_id` | string | User ID of thread parent message author |
| ↳ `reply_count` | number | Total number of replies in thread |
| ↳ `reply_users_count` | number | Number of unique users who replied |
| ↳ `latest_reply` | string | Timestamp of most recent reply |
| ↳ `subscribed` | boolean | Whether user is subscribed to thread |
| ↳ `last_read` | string | Timestamp of last read message |
| ↳ `unread_count` | number | Number of unread messages in thread |
| ↳ `subtype` | string | Message subtype \(bot_message, file_share, etc.\) |
| ↳ `is_starred` | boolean | Whether message is starred by user |
| ↳ `pinned_to` | array | Channel IDs where message is pinned |
| ↳ `permalink` | string | Permanent URL to the message |
| ↳ `reactions` | array | Reactions on this message |
| ↳ `name` | string | Emoji name \(without colons\) |
| ↳ `count` | number | Number of times this reaction was added |
| ↳ `users` | array | Array of user IDs who reacted |
| ↳ `files` | array | Files attached to the message |
| ↳ `id` | string | Unique file identifier |
| ↳ `name` | string | File name |
| ↳ `mimetype` | string | MIME type of the file |
| ↳ `size` | number | File size in bytes |
| ↳ `url_private` | string | Private download URL \(requires auth\) |
| ↳ `permalink` | string | Permanent link to the file |
| ↳ `mode` | string | File mode \(hosted, external, etc.\) |
| ↳ `attachments` | array | Legacy attachments on the message |
| ↳ `id` | number | Attachment ID |
| ↳ `fallback` | string | Plain text summary |
| ↳ `text` | string | Main attachment text |
| ↳ `pretext` | string | Text shown before attachment |
| ↳ `color` | string | Color bar hex code or preset |
| ↳ `author_name` | string | Author display name |
| ↳ `author_link` | string | Author link URL |
| ↳ `author_icon` | string | Author icon URL |
| ↳ `title` | string | Attachment title |
| ↳ `title_link` | string | Title link URL |
| ↳ `image_url` | string | Image URL |
| ↳ `thumb_url` | string | Thumbnail URL |
| ↳ `footer` | string | Footer text |
| ↳ `footer_icon` | string | Footer icon URL |
| ↳ `ts` | string | Timestamp shown in footer |
| ↳ `blocks` | array | Block Kit blocks in the message |
| ↳ `type` | string | Block type \(section, divider, image, actions, etc.\) |
| ↳ `block_id` | string | Unique block identifier |
| ↳ `edited` | object | Edit information if message was edited |
| ↳ `user` | string | User ID who edited the message |
| ↳ `ts` | string | Timestamp of the edit |
| `content` | string | Success message | | `content` | string | Success message |
| `metadata` | object | Updated message metadata | | `metadata` | object | Updated message metadata |
| ↳ `channel` | string | Channel ID | | ↳ `channel` | string | Channel ID |

View File

@@ -79,19 +79,13 @@ Run an autonomous web agent to complete tasks and extract structured data
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `agentResult` | object | Result from the Stagehand agent execution | | `agentResult` | object | Result from the Stagehand agent execution |
| ↳ `success` | boolean | Whether the agent task completed successfully without errors | | ↳ `success` | boolean | Whether the agent task completed successfully |
| ↳ `completed` | boolean | Whether the agent finished executing \(may be false if max steps reached\) | | ↳ `completed` | boolean | Whether the task was fully completed |
| ↳ `message` | string | Final status message or result summary from the agent | | ↳ `message` | string | Status message or final result |
| ↳ `actions` | array | List of all actions performed by the agent during task execution | | ↳ `actions` | array | Type of action performed |
| ↳ `type` | string | Type of action performed \(e.g., "act", "observe", "ariaTree", "close", "wait", "navigate"\) | | ↳ `type` | string | Type of action performed |
| ↳ `reasoning` | string | AI reasoning for why this action was taken | | ↳ `params` | object | Parameters used for the action |
| ↳ `taskCompleted` | boolean | Whether the task was completed after this action | | ↳ `result` | object | Result of the action |
| ↳ `action` | string | Description of the action taken \(e.g., "click the submit button"\) |
| ↳ `instruction` | string | Instruction that triggered this action |
| ↳ `pageUrl` | string | URL of the page when this action was performed |
| ↳ `pageText` | string | Page text content \(for ariaTree actions\) |
| ↳ `timestamp` | number | Unix timestamp when the action was performed |
| ↳ `timeMs` | number | Time in milliseconds \(for wait actions\) |
| `structuredOutput` | object | Extracted data matching the provided output schema | | `structuredOutput` | object | Extracted data matching the provided output schema |

File diff suppressed because it is too large Load Diff

View File

@@ -74,11 +74,6 @@ Transcribe audio to text using OpenAI Whisper
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `transcript` | string | Full transcribed text | | `transcript` | string | Full transcribed text |
| `segments` | array | Timestamped segments | | `segments` | array | Timestamped segments |
| ↳ `text` | string | Transcribed text for this segment |
| ↳ `start` | number | Start time in seconds |
| ↳ `end` | number | End time in seconds |
| ↳ `speaker` | string | Speaker identifier \(if diarization enabled\) |
| ↳ `confidence` | number | Confidence score \(0-1\) |
| `language` | string | Detected or specified language | | `language` | string | Detected or specified language |
| `duration` | number | Audio duration in seconds | | `duration` | number | Audio duration in seconds |
@@ -106,11 +101,6 @@ Transcribe audio to text using Deepgram
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `transcript` | string | Full transcribed text | | `transcript` | string | Full transcribed text |
| `segments` | array | Timestamped segments with speaker labels | | `segments` | array | Timestamped segments with speaker labels |
| ↳ `text` | string | Transcribed text for this segment |
| ↳ `start` | number | Start time in seconds |
| ↳ `end` | number | End time in seconds |
| ↳ `speaker` | string | Speaker identifier \(if diarization enabled\) |
| ↳ `confidence` | number | Confidence score \(0-1\) |
| `language` | string | Detected or specified language | | `language` | string | Detected or specified language |
| `duration` | number | Audio duration in seconds | | `duration` | number | Audio duration in seconds |
| `confidence` | number | Overall confidence score | | `confidence` | number | Overall confidence score |
@@ -170,25 +160,11 @@ Transcribe audio to text using AssemblyAI with advanced NLP features
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `transcript` | string | Full transcribed text | | `transcript` | string | Full transcribed text |
| `segments` | array | Timestamped segments with speaker labels | | `segments` | array | Timestamped segments with speaker labels |
| ↳ `text` | string | Transcribed text for this segment |
| ↳ `start` | number | Start time in seconds |
| ↳ `end` | number | End time in seconds |
| ↳ `speaker` | string | Speaker identifier \(if diarization enabled\) |
| ↳ `confidence` | number | Confidence score \(0-1\) |
| `language` | string | Detected or specified language | | `language` | string | Detected or specified language |
| `duration` | number | Audio duration in seconds | | `duration` | number | Audio duration in seconds |
| `confidence` | number | Overall confidence score | | `confidence` | number | Overall confidence score |
| `sentiment` | array | Sentiment analysis results | | `sentiment` | array | Sentiment analysis results |
| ↳ `text` | string | Text that was analyzed |
| ↳ `sentiment` | string | Sentiment \(POSITIVE, NEGATIVE, NEUTRAL\) |
| ↳ `confidence` | number | Confidence score |
| ↳ `start` | number | Start time in milliseconds |
| ↳ `end` | number | End time in milliseconds |
| `entities` | array | Detected entities | | `entities` | array | Detected entities |
| ↳ `entity_type` | string | Entity type \(e.g., person_name, location, organization\) |
| ↳ `text` | string | Entity text |
| ↳ `start` | number | Start time in milliseconds |
| ↳ `end` | number | End time in milliseconds |
| `summary` | string | Auto-generated summary | | `summary` | string | Auto-generated summary |
### `stt_gemini` ### `stt_gemini`

View File

@@ -282,24 +282,9 @@ Introspect Supabase database schema to get table structures, columns, and relati
| ↳ `name` | string | Table name | | ↳ `name` | string | Table name |
| ↳ `schema` | string | Database schema name | | ↳ `schema` | string | Database schema name |
| ↳ `columns` | array | Array of column definitions | | ↳ `columns` | array | Array of column definitions |
| ↳ `name` | string | Column name |
| ↳ `type` | string | Column data type |
| ↳ `nullable` | boolean | Whether the column allows null values |
| ↳ `default` | string | Default value for the column |
| ↳ `isPrimaryKey` | boolean | Whether the column is a primary key |
| ↳ `isForeignKey` | boolean | Whether the column is a foreign key |
| ↳ `references` | object | Foreign key reference details |
| ↳ `table` | string | Referenced table name |
| ↳ `column` | string | Referenced column name |
| ↳ `primaryKey` | array | Array of primary key column names | | ↳ `primaryKey` | array | Array of primary key column names |
| ↳ `foreignKeys` | array | Array of foreign key relationships | | ↳ `foreignKeys` | array | Array of foreign key relationships |
| ↳ `column` | string | Local column name |
| ↳ `referencesTable` | string | Referenced table name |
| ↳ `referencesColumn` | string | Referenced column name |
| ↳ `indexes` | array | Array of index definitions | | ↳ `indexes` | array | Array of index definitions |
| ↳ `name` | string | Index name |
| ↳ `columns` | array | Columns included in the index |
| ↳ `unique` | boolean | Whether the index enforces uniqueness |
| `schemas` | array | List of schemas found in the database | | `schemas` | array | List of schemas found in the database |
### `supabase_storage_upload` ### `supabase_storage_upload`
@@ -325,9 +310,6 @@ Upload a file to a Supabase storage bucket
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `results` | object | Upload result including file path, bucket, and public URL | | `results` | object | Upload result including file path, bucket, and public URL |
| ↳ `id` | string | Unique identifier for the uploaded file |
| ↳ `path` | string | Path to the uploaded file within the bucket |
| ↳ `fullPath` | string | Full path including bucket name |
### `supabase_storage_download` ### `supabase_storage_download`
@@ -373,19 +355,6 @@ List files in a Supabase storage bucket
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `results` | array | Array of file objects with metadata | | `results` | array | Array of file objects with metadata |
| ↳ `id` | string | Unique file identifier |
| ↳ `name` | string | File name |
| ↳ `bucket_id` | string | Bucket identifier the file belongs to |
| ↳ `owner` | string | Owner identifier |
| ↳ `created_at` | string | File creation timestamp |
| ↳ `updated_at` | string | Last update timestamp |
| ↳ `last_accessed_at` | string | Last access timestamp |
| ↳ `metadata` | object | File metadata including size and MIME type |
| ↳ `size` | number | File size in bytes |
| ↳ `mimetype` | string | MIME type of the file |
| ↳ `cacheControl` | string | Cache control header value |
| ↳ `lastModified` | string | Last modified timestamp |
| ↳ `eTag` | string | Entity tag for caching |
### `supabase_storage_delete` ### `supabase_storage_delete`
@@ -406,13 +375,6 @@ Delete files from a Supabase storage bucket
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `results` | array | Array of deleted file objects | | `results` | array | Array of deleted file objects |
| ↳ `name` | string | Name of the deleted file |
| ↳ `bucket_id` | string | Bucket identifier |
| ↳ `owner` | string | Owner identifier |
| ↳ `id` | string | Unique file identifier |
| ↳ `updated_at` | string | Last update timestamp |
| ↳ `created_at` | string | File creation timestamp |
| ↳ `last_accessed_at` | string | Last access timestamp |
### `supabase_storage_move` ### `supabase_storage_move`
@@ -434,7 +396,6 @@ Move a file within a Supabase storage bucket
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `results` | object | Move operation result | | `results` | object | Move operation result |
| ↳ `message` | string | Operation status message |
### `supabase_storage_copy` ### `supabase_storage_copy`
@@ -456,7 +417,6 @@ Copy a file within a Supabase storage bucket
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `results` | object | Copy operation result | | `results` | object | Copy operation result |
| ↳ `message` | string | Operation status message |
### `supabase_storage_create_bucket` ### `supabase_storage_create_bucket`
@@ -479,7 +439,6 @@ Create a new storage bucket in Supabase
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `results` | object | Created bucket information | | `results` | object | Created bucket information |
| ↳ `name` | string | Created bucket name |
### `supabase_storage_list_buckets` ### `supabase_storage_list_buckets`
@@ -498,14 +457,6 @@ List all storage buckets in Supabase
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `results` | array | Array of bucket objects | | `results` | array | Array of bucket objects |
| ↳ `id` | string | Unique bucket identifier |
| ↳ `name` | string | Bucket name |
| ↳ `owner` | string | Owner identifier |
| ↳ `public` | boolean | Whether the bucket is publicly accessible |
| ↳ `created_at` | string | Bucket creation timestamp |
| ↳ `updated_at` | string | Last update timestamp |
| ↳ `file_size_limit` | number | Maximum file size allowed in bytes |
| ↳ `allowed_mime_types` | array | List of allowed MIME types for uploads |
### `supabase_storage_delete_bucket` ### `supabase_storage_delete_bucket`
@@ -525,7 +476,6 @@ Delete a storage bucket in Supabase
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `message` | string | Operation status message | | `message` | string | Operation status message |
| `results` | object | Delete operation result | | `results` | object | Delete operation result |
| ↳ `message` | string | Operation status message |
### `supabase_storage_get_public_url` ### `supabase_storage_get_public_url`

View File

@@ -65,17 +65,9 @@ Perform AI-powered web searches using Tavily
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `query` | string | The search query that was executed | | `query` | string | The search query that was executed |
| `results` | array | Ranked search results with titles, URLs, content snippets, and optional metadata | | `results` | array | Search results with titles, URLs, content snippets, and optional metadata |
| ↳ `title` | string | Result title |
| ↳ `url` | string | Result URL |
| ↳ `content` | string | Brief description or content snippet |
| ↳ `score` | number | Relevance score |
| ↳ `raw_content` | string | Full parsed HTML content \(if requested\) |
| ↳ `favicon` | string | Favicon URL for the domain |
| `answer` | string | LLM-generated answer to the query \(if requested\) | | `answer` | string | LLM-generated answer to the query \(if requested\) |
| `images` | array | Query-related images \(if requested\) | | `images` | array | Query-related images \(if requested\) |
| ↳ `url` | string | Image URL |
| ↳ `description` | string | Image description |
| `auto_parameters` | object | Automatically selected parameters based on query intent \(if enabled\) | | `auto_parameters` | object | Automatically selected parameters based on query intent \(if enabled\) |
| `response_time` | number | Time taken for the search request in seconds | | `response_time` | number | Time taken for the search request in seconds |
@@ -98,14 +90,13 @@ Extract raw content from multiple web pages simultaneously using Tavily
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `results` | array | Successfully extracted content from URLs | | `results` | array | The URL that was extracted |
| ↳ `url` | string | The source URL | | ↳ `url` | string | The URL that was extracted |
| ↳ `raw_content` | string | Full extracted content from the page | | ↳ `raw_content` | string | The raw text content from the webpage |
| ↳ `images` | array | Image URLs \(when include_images is true\) | | ↳ `favicon` | string | Favicon URL \(if requested\) |
| ↳ `favicon` | string | Favicon URL for the result | | `failed_results` | array | The URL that failed extraction |
| `failed_results` | array | URLs that failed to extract content |
| ↳ `url` | string | The URL that failed extraction | | ↳ `url` | string | The URL that failed extraction |
| ↳ `error` | string | Error message describing why extraction failed | | ↳ `error` | string | Error message for the failed extraction |
| `response_time` | number | Time taken for the extraction request in seconds | | `response_time` | number | Time taken for the extraction request in seconds |
### `tavily_crawl` ### `tavily_crawl`
@@ -137,10 +128,10 @@ Systematically crawl and extract content from websites using Tavily
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `base_url` | string | The base URL that was crawled | | `base_url` | string | The base URL that was crawled |
| `results` | array | Array of crawled pages with extracted content | | `results` | array | The crawled page URL |
| ↳ `url` | string | The crawled page URL | | ↳ `url` | string | The crawled page URL |
| ↳ `raw_content` | string | Full extracted page content | | ↳ `raw_content` | string | Extracted content from the page |
| ↳ `favicon` | string | Favicon URL for the result | | ↳ `favicon` | string | Favicon URL \(if requested\) |
| `response_time` | number | Time taken for the crawl request in seconds | | `response_time` | number | Time taken for the crawl request in seconds |
| `request_id` | string | Unique identifier for support reference | | `request_id` | string | Unique identifier for support reference |
@@ -169,7 +160,7 @@ Discover and visualize website structure using Tavily
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `base_url` | string | The base URL that was mapped | | `base_url` | string | The base URL that was mapped |
| `results` | array | Array of discovered URLs during mapping | | `results` | array | Discovered URL |
| ↳ `url` | string | Discovered URL | | ↳ `url` | string | Discovered URL |
| `response_time` | number | Time taken for the map request in seconds | | `response_time` | number | Time taken for the map request in seconds |
| `request_id` | string | Unique identifier for support reference | | `request_id` | string | Unique identifier for support reference |

View File

@@ -173,8 +173,8 @@ Send videos to Telegram channels or users through the Telegram Bot API.
| ↳ `from` | object | Information about the sender | | ↳ `from` | object | Information about the sender |
| ↳ `id` | number | Sender ID | | ↳ `id` | number | Sender ID |
| ↳ `is_bot` | boolean | Whether the chat is a bot or not | | ↳ `is_bot` | boolean | Whether the chat is a bot or not |
| ↳ `first_name` | string | Sender's first name \(if available\) | | ↳ `first_name` | string | Sender |
| ↳ `username` | string | Sender's username \(if available\) | | ↳ `username` | string | Sender |
| ↳ `chat` | object | Information about the chat where message was sent | | ↳ `chat` | object | Information about the chat where message was sent |
| ↳ `id` | number | Chat ID | | ↳ `id` | number | Chat ID |
| ↳ `first_name` | string | Chat first name \(if private chat\) | | ↳ `first_name` | string | Chat first name \(if private chat\) |
@@ -245,8 +245,8 @@ Send audio files to Telegram channels or users through the Telegram Bot API.
| ↳ `from` | object | Information about the sender | | ↳ `from` | object | Information about the sender |
| ↳ `id` | number | Sender ID | | ↳ `id` | number | Sender ID |
| ↳ `is_bot` | boolean | Whether the chat is a bot or not | | ↳ `is_bot` | boolean | Whether the chat is a bot or not |
| ↳ `first_name` | string | Sender's first name \(if available\) | | ↳ `first_name` | string | Sender |
| ↳ `username` | string | Sender's username \(if available\) | | ↳ `username` | string | Sender |
| ↳ `chat` | object | Information about the chat where the message was sent | | ↳ `chat` | object | Information about the chat where the message was sent |
| ↳ `id` | number | Chat ID | | ↳ `id` | number | Chat ID |
| ↳ `first_name` | string | Chat first name \(if private chat\) | | ↳ `first_name` | string | Chat first name \(if private chat\) |
@@ -287,8 +287,8 @@ Send animations (GIFs) to Telegram channels or users through the Telegram Bot AP
| ↳ `from` | object | Information about the sender | | ↳ `from` | object | Information about the sender |
| ↳ `id` | number | Sender ID | | ↳ `id` | number | Sender ID |
| ↳ `is_bot` | boolean | Whether the chat is a bot or not | | ↳ `is_bot` | boolean | Whether the chat is a bot or not |
| ↳ `first_name` | string | Sender's first name \(if available\) | | ↳ `first_name` | string | Sender |
| ↳ `username` | string | Sender's username \(if available\) | | ↳ `username` | string | Sender |
| ↳ `chat` | object | Information about the chat where message was sent | | ↳ `chat` | object | Information about the chat where message was sent |
| ↳ `id` | number | Chat ID | | ↳ `id` | number | Chat ID |
| ↳ `first_name` | string | Chat first name \(if private chat\) | | ↳ `first_name` | string | Chat first name \(if private chat\) |
@@ -359,8 +359,8 @@ Send documents (PDF, ZIP, DOC, etc.) to Telegram channels or users through the T
| ↳ `from` | object | Information about the sender | | ↳ `from` | object | Information about the sender |
| ↳ `id` | number | Sender ID | | ↳ `id` | number | Sender ID |
| ↳ `is_bot` | boolean | Whether the chat is a bot or not | | ↳ `is_bot` | boolean | Whether the chat is a bot or not |
| ↳ `first_name` | string | Sender's first name \(if available\) | | ↳ `first_name` | string | Sender |
| ↳ `username` | string | Sender's username \(if available\) | | ↳ `username` | string | Sender |
| ↳ `chat` | object | Information about the chat where message was sent | | ↳ `chat` | object | Information about the chat where message was sent |
| ↳ `id` | number | Chat ID | | ↳ `id` | number | Chat ID |
| ↳ `first_name` | string | Chat first name \(if private chat\) | | ↳ `first_name` | string | Chat first name \(if private chat\) |

View File

@@ -51,19 +51,8 @@ List all items from a Webflow CMS collection
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `items` | array | Array of collection items | | `items` | json | Array of collection items |
| ↳ `id` | string | Unique item ID | | `metadata` | json | Metadata about the query |
| ↳ `cmsLocaleId` | string | CMS locale ID |
| ↳ `lastPublished` | string | Last published date \(ISO 8601\) |
| ↳ `lastUpdated` | string | Last updated date \(ISO 8601\) |
| ↳ `createdOn` | string | Creation date \(ISO 8601\) |
| ↳ `isArchived` | boolean | Whether the item is archived |
| ↳ `isDraft` | boolean | Whether the item is a draft |
| ↳ `fieldData` | object | Collection-specific field data \(varies by collection schema\) |
| `metadata` | object | Metadata about the query |
| ↳ `itemCount` | number | Number of items returned |
| ↳ `offset` | number | Pagination offset |
| ↳ `limit` | number | Maximum items per page |
### `webflow_get_item` ### `webflow_get_item`

View File

@@ -47,39 +47,12 @@ Get a summary and metadata for a specific Wikipedia page.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `summary` | object | Wikipedia page summary and metadata | | `summary` | object | Wikipedia page summary and metadata |
| ↳ `type` | string | Page type \(standard, disambiguation, etc.\) |
| ↳ `title` | string | Page title | | ↳ `title` | string | Page title |
| ↳ `displaytitle` | string | Display title with formatting |
| ↳ `description` | string | Short page description |
| ↳ `extract` | string | Page extract/summary text | | ↳ `extract` | string | Page extract/summary text |
| ↳ `extract_html` | string | Extract in HTML format | | ↳ `description` | string | Short page description |
| ↳ `thumbnail` | object | Thumbnail image data | | ↳ `thumbnail` | object | Thumbnail image data |
| ↳ `source` | string | Thumbnail image URL |
| ↳ `width` | number | Thumbnail width in pixels |
| ↳ `height` | number | Thumbnail height in pixels |
| ↳ `originalimage` | object | Original image data |
| ↳ `source` | string | Thumbnail image URL |
| ↳ `width` | number | Thumbnail width in pixels |
| ↳ `height` | number | Thumbnail height in pixels |
| ↳ `content_urls` | object | URLs to access the page | | ↳ `content_urls` | object | URLs to access the page |
| ↳ `desktop` | object | Desktop URLs |
| ↳ `page` | string | Page URL |
| ↳ `revisions` | string | Revisions URL |
| ↳ `edit` | string | Edit URL |
| ↳ `talk` | string | Talk page URL |
| ↳ `mobile` | object | Mobile URLs |
| ↳ `page` | string | Page URL |
| ↳ `revisions` | string | Revisions URL |
| ↳ `edit` | string | Edit URL |
| ↳ `talk` | string | Talk page URL |
| ↳ `lang` | string | Page language code |
| ↳ `dir` | string | Text direction \(ltr or rtl\) |
| ↳ `timestamp` | string | Last modification timestamp |
| ↳ `pageid` | number | Wikipedia page ID | | ↳ `pageid` | number | Wikipedia page ID |
| ↳ `wikibase_item` | string | Wikidata item ID |
| ↳ `coordinates` | object | Geographic coordinates |
| ↳ `lat` | number | Latitude |
| ↳ `lon` | number | Longitude |
### `wikipedia_search` ### `wikipedia_search`
@@ -97,20 +70,6 @@ Search for Wikipedia pages by title or content.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `searchResults` | array | Array of matching Wikipedia pages | | `searchResults` | array | Array of matching Wikipedia pages |
| ↳ `id` | number | Result index |
| ↳ `key` | string | URL-friendly page key |
| ↳ `title` | string | Page title |
| ↳ `excerpt` | string | Search result excerpt |
| ↳ `matched_title` | string | Matched title variant |
| ↳ `description` | string | Page description |
| ↳ `thumbnail` | object | Thumbnail data |
| ↳ `mimetype` | string | Image MIME type |
| ↳ `size` | number | File size in bytes |
| ↳ `width` | number | Width in pixels |
| ↳ `height` | number | Height in pixels |
| ↳ `duration` | number | Duration for video |
| ↳ `url` | string | Thumbnail URL |
| ↳ `url` | string | Page URL |
| `totalHits` | number | Total number of search results found | | `totalHits` | number | Total number of search results found |
| `query` | string | The search query that was executed | | `query` | string | The search query that was executed |
@@ -133,10 +92,7 @@ Get the full HTML content of a Wikipedia page.
| ↳ `pageid` | number | Wikipedia page ID | | ↳ `pageid` | number | Wikipedia page ID |
| ↳ `html` | string | Full HTML content of the page | | ↳ `html` | string | Full HTML content of the page |
| ↳ `revision` | number | Page revision number | | ↳ `revision` | number | Page revision number |
| ↳ `tid` | string | Transaction ID \(ETag\) |
| ↳ `timestamp` | string | Last modified timestamp | | ↳ `timestamp` | string | Last modified timestamp |
| ↳ `content_model` | string | Content model \(wikitext\) |
| ↳ `content_format` | string | Content format \(text/html\) |
### `wikipedia_random` ### `wikipedia_random`
@@ -152,22 +108,10 @@ Get a random Wikipedia page.
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `randomPage` | object | Random Wikipedia page data | | `randomPage` | object | Random Wikipedia page data |
| ↳ `type` | string | Page type |
| ↳ `title` | string | Page title | | ↳ `title` | string | Page title |
| ↳ `displaytitle` | string | Display title |
| ↳ `description` | string | Page description |
| ↳ `extract` | string | Page extract/summary | | ↳ `extract` | string | Page extract/summary |
| ↳ `description` | string | Page description |
| ↳ `thumbnail` | object | Thumbnail image data | | ↳ `thumbnail` | object | Thumbnail image data |
| ↳ `source` | string | Thumbnail image URL |
| ↳ `width` | number | Thumbnail width in pixels |
| ↳ `height` | number | Thumbnail height in pixels |
| ↳ `content_urls` | object | URLs to access the page | | ↳ `content_urls` | object | URLs to access the page |
| ↳ `desktop` | object | Desktop URL |
| ↳ `page` | string | Page URL |
| ↳ `mobile` | object | Mobile URL |
| ↳ `page` | string | Page URL |
| ↳ `lang` | string | Language code |
| ↳ `timestamp` | string | Timestamp |
| ↳ `pageid` | number | Page ID |

View File

@@ -26,15 +26,78 @@ In Sim, the YouTube integration enables your agents to programmatically search a
## Usage Instructions ## Usage Instructions
Integrate YouTube into the workflow. Can search for videos, get trending videos, get video details, get video categories, get channel information, get all videos from a channel, get channel playlists, get playlist items, and get video comments. Integrate YouTube into the workflow. Can search for videos, get video details, get channel information, get all videos from a channel, get channel playlists, get playlist items, find related videos, and get video comments.
## Tools ## Tools
### `youtube_search`
Search for videos on YouTube using the YouTube Data API. Supports advanced filtering by channel, date range, duration, category, quality, captions, and more.
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `query` | string | Yes | Search query for YouTube videos |
| `maxResults` | number | No | Maximum number of videos to return \(1-50\) |
| `apiKey` | string | Yes | YouTube API Key |
| `channelId` | string | No | Filter results to a specific YouTube channel ID |
| `publishedAfter` | string | No | Only return videos published after this date \(RFC 3339 format: "2024-01-01T00:00:00Z"\) |
| `publishedBefore` | string | No | Only return videos published before this date \(RFC 3339 format: "2024-01-01T00:00:00Z"\) |
| `videoDuration` | string | No | Filter by video length: "short" \(&lt;4 min\), "medium" \(4-20 min\), "long" \(&gt;20 min\), "any" |
| `order` | string | No | Sort results by: "date", "rating", "relevance" \(default\), "title", "videoCount", "viewCount" |
| `videoCategoryId` | string | No | Filter by YouTube category ID \(e.g., "10" for Music, "20" for Gaming\) |
| `videoDefinition` | string | No | Filter by video quality: "high" \(HD\), "standard", "any" |
| `videoCaption` | string | No | Filter by caption availability: "closedCaption" \(has captions\), "none" \(no captions\), "any" |
| `regionCode` | string | No | Return results relevant to a specific region \(ISO 3166-1 alpha-2 country code, e.g., "US", "GB"\) |
| `relevanceLanguage` | string | No | Return results most relevant to a language \(ISO 639-1 code, e.g., "en", "es"\) |
| `safeSearch` | string | No | Content filtering level: "moderate" \(default\), "none", "strict" |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `items` | array | Array of YouTube videos matching the search query |
| ↳ `videoId` | string | YouTube video ID |
| ↳ `title` | string | Video title |
| ↳ `description` | string | Video description |
| ↳ `thumbnail` | string | Video thumbnail URL |
| `totalResults` | number | Total number of search results available |
| `nextPageToken` | string | Token for accessing the next page of results |
### `youtube_video_details`
Get detailed information about a specific YouTube video.
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `videoId` | string | Yes | YouTube video ID |
| `apiKey` | string | Yes | YouTube API Key |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `videoId` | string | YouTube video ID |
| `title` | string | Video title |
| `description` | string | Video description |
| `channelId` | string | Channel ID |
| `channelTitle` | string | Channel name |
| `publishedAt` | string | Published date and time |
| `duration` | string | Video duration in ISO 8601 format |
| `viewCount` | number | Number of views |
| `likeCount` | number | Number of likes |
| `commentCount` | number | Number of comments |
| `thumbnail` | string | Video thumbnail URL |
| `tags` | array | Video tags |
### `youtube_channel_info` ### `youtube_channel_info`
Get detailed information about a YouTube channel including statistics, branding, and content details. Get detailed information about a YouTube channel.
#### Input #### Input
@@ -51,20 +114,43 @@ Get detailed information about a YouTube channel including statistics, branding,
| `channelId` | string | YouTube channel ID | | `channelId` | string | YouTube channel ID |
| `title` | string | Channel name | | `title` | string | Channel name |
| `description` | string | Channel description | | `description` | string | Channel description |
| `subscriberCount` | number | Number of subscribers \(0 if hidden\) | | `subscriberCount` | number | Number of subscribers |
| `videoCount` | number | Number of public videos | | `videoCount` | number | Number of videos |
| `viewCount` | number | Total channel views | | `viewCount` | number | Total channel views |
| `publishedAt` | string | Channel creation date | | `publishedAt` | string | Channel creation date |
| `thumbnail` | string | Channel thumbnail/avatar URL | | `thumbnail` | string | Channel thumbnail URL |
| `customUrl` | string | Channel custom URL \(handle\) | | `customUrl` | string | Channel custom URL |
| `country` | string | Country the channel is associated with |
| `uploadsPlaylistId` | string | Playlist ID containing all channel uploads \(use with playlist_items\) | ### `youtube_channel_videos`
| `bannerImageUrl` | string | Channel banner image URL |
| `hiddenSubscriberCount` | boolean | Whether the subscriber count is hidden | Get all videos from a specific YouTube channel, with sorting options.
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `channelId` | string | Yes | YouTube channel ID to get videos from |
| `maxResults` | number | No | Maximum number of videos to return \(1-50\) |
| `order` | string | No | Sort order: "date" \(newest first\), "rating", "relevance", "title", "viewCount" |
| `pageToken` | string | No | Page token for pagination |
| `apiKey` | string | Yes | YouTube API Key |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `items` | array | Array of videos from the channel |
| ↳ `videoId` | string | YouTube video ID |
| ↳ `title` | string | Video title |
| ↳ `description` | string | Video description |
| ↳ `thumbnail` | string | Video thumbnail URL |
| ↳ `publishedAt` | string | Video publish date |
| `totalResults` | number | Total number of videos in the channel |
| `nextPageToken` | string | Token for accessing the next page of results |
### `youtube_channel_playlists` ### `youtube_channel_playlists`
Get all public playlists from a specific YouTube channel. Get all playlists from a specific YouTube channel.
#### Input #### Input
@@ -86,80 +172,19 @@ Get all public playlists from a specific YouTube channel.
| ↳ `thumbnail` | string | Playlist thumbnail URL | | ↳ `thumbnail` | string | Playlist thumbnail URL |
| ↳ `itemCount` | number | Number of videos in playlist | | ↳ `itemCount` | number | Number of videos in playlist |
| ↳ `publishedAt` | string | Playlist creation date | | ↳ `publishedAt` | string | Playlist creation date |
| ↳ `channelTitle` | string | Channel name |
| `totalResults` | number | Total number of playlists in the channel | | `totalResults` | number | Total number of playlists in the channel |
| `nextPageToken` | string | Token for accessing the next page of results | | `nextPageToken` | string | Token for accessing the next page of results |
### `youtube_channel_videos`
Search for videos from a specific YouTube channel with sorting options. For complete channel video list, use channel_info to get uploadsPlaylistId, then use playlist_items.
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `channelId` | string | Yes | YouTube channel ID to get videos from |
| `maxResults` | number | No | Maximum number of videos to return \(1-50\) |
| `order` | string | No | Sort order: "date" \(newest first, default\), "rating", "relevance", "title", "viewCount" |
| `pageToken` | string | No | Page token for pagination |
| `apiKey` | string | Yes | YouTube API Key |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `items` | array | Array of videos from the channel |
| ↳ `videoId` | string | YouTube video ID |
| ↳ `title` | string | Video title |
| ↳ `description` | string | Video description |
| ↳ `thumbnail` | string | Video thumbnail URL |
| ↳ `publishedAt` | string | Video publish date |
| ↳ `channelTitle` | string | Channel name |
| `totalResults` | number | Total number of videos in the channel |
| `nextPageToken` | string | Token for accessing the next page of results |
### `youtube_comments`
Get top-level comments from a YouTube video with author details and engagement.
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `videoId` | string | Yes | YouTube video ID |
| `maxResults` | number | No | Maximum number of comments to return \(1-100\) |
| `order` | string | No | Order of comments: "time" \(newest first\) or "relevance" \(most relevant first\) |
| `pageToken` | string | No | Page token for pagination |
| `apiKey` | string | Yes | YouTube API Key |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `items` | array | Array of top-level comments from the video |
| ↳ `commentId` | string | Comment ID |
| ↳ `authorDisplayName` | string | Comment author display name |
| ↳ `authorChannelUrl` | string | Comment author channel URL |
| ↳ `authorProfileImageUrl` | string | Comment author profile image URL |
| ↳ `textDisplay` | string | Comment text \(HTML formatted\) |
| ↳ `textOriginal` | string | Comment text \(plain text\) |
| ↳ `likeCount` | number | Number of likes on the comment |
| ↳ `publishedAt` | string | When the comment was posted |
| ↳ `updatedAt` | string | When the comment was last edited |
| ↳ `replyCount` | number | Number of replies to this comment |
| `totalResults` | number | Total number of comment threads available |
| `nextPageToken` | string | Token for accessing the next page of results |
### `youtube_playlist_items` ### `youtube_playlist_items`
Get videos from a YouTube playlist. Can be used with a channel uploads playlist to get all channel videos. Get videos from a YouTube playlist.
#### Input #### Input
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `playlistId` | string | Yes | YouTube playlist ID. Use uploadsPlaylistId from channel_info to get all channel videos. | | `playlistId` | string | Yes | YouTube playlist ID |
| `maxResults` | number | No | Maximum number of videos to return \(1-50\) | | `maxResults` | number | No | Maximum number of videos to return |
| `pageToken` | string | No | Page token for pagination | | `pageToken` | string | No | Page token for pagination |
| `apiKey` | string | Yes | YouTube API Key | | `apiKey` | string | Yes | YouTube API Key |
@@ -173,65 +198,22 @@ Get videos from a YouTube playlist. Can be used with a channel uploads playlist
| ↳ `description` | string | Video description | | ↳ `description` | string | Video description |
| ↳ `thumbnail` | string | Video thumbnail URL | | ↳ `thumbnail` | string | Video thumbnail URL |
| ↳ `publishedAt` | string | Date added to playlist | | ↳ `publishedAt` | string | Date added to playlist |
| ↳ `channelTitle` | string | Playlist owner channel name | | ↳ `channelTitle` | string | Channel name |
| ↳ `position` | number | Position in playlist \(0-indexed\) | | ↳ `position` | number | Position in playlist |
| ↳ `videoOwnerChannelId` | string | Channel ID of the video owner |
| ↳ `videoOwnerChannelTitle` | string | Channel name of the video owner |
| `totalResults` | number | Total number of items in playlist | | `totalResults` | number | Total number of items in playlist |
| `nextPageToken` | string | Token for accessing the next page of results | | `nextPageToken` | string | Token for accessing the next page of results |
### `youtube_search` ### `youtube_comments`
Search for videos on YouTube using the YouTube Data API. Supports advanced filtering by channel, date range, duration, category, quality, captions, live streams, and more. Get comments from a YouTube video.
#### Input #### Input
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `query` | string | Yes | Search query for YouTube videos | | `videoId` | string | Yes | YouTube video ID |
| `maxResults` | number | No | Maximum number of videos to return \(1-50\) | | `maxResults` | number | No | Maximum number of comments to return |
| `pageToken` | string | No | Page token for pagination \(use nextPageToken from previous response\) | | `order` | string | No | Order of comments: time or relevance |
| `apiKey` | string | Yes | YouTube API Key |
| `channelId` | string | No | Filter results to a specific YouTube channel ID |
| `publishedAfter` | string | No | Only return videos published after this date \(RFC 3339 format: "2024-01-01T00:00:00Z"\) |
| `publishedBefore` | string | No | Only return videos published before this date \(RFC 3339 format: "2024-01-01T00:00:00Z"\) |
| `videoDuration` | string | No | Filter by video length: "short" \(&lt;4 min\), "medium" \(4-20 min\), "long" \(&gt;20 min\), "any" |
| `order` | string | No | Sort results by: "date", "rating", "relevance" \(default\), "title", "videoCount", "viewCount" |
| `videoCategoryId` | string | No | Filter by YouTube category ID \(e.g., "10" for Music, "20" for Gaming\). Use video_categories to list IDs. |
| `videoDefinition` | string | No | Filter by video quality: "high" \(HD\), "standard", "any" |
| `videoCaption` | string | No | Filter by caption availability: "closedCaption" \(has captions\), "none" \(no captions\), "any" |
| `eventType` | string | No | Filter by live broadcast status: "live" \(currently live\), "upcoming" \(scheduled\), "completed" \(past streams\) |
| `regionCode` | string | No | Return results relevant to a specific region \(ISO 3166-1 alpha-2 country code, e.g., "US", "GB"\) |
| `relevanceLanguage` | string | No | Return results most relevant to a language \(ISO 639-1 code, e.g., "en", "es"\) |
| `safeSearch` | string | No | Content filtering level: "moderate" \(default\), "none", "strict" |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `items` | array | Array of YouTube videos matching the search query |
| ↳ `videoId` | string | YouTube video ID |
| ↳ `title` | string | Video title |
| ↳ `description` | string | Video description |
| ↳ `thumbnail` | string | Video thumbnail URL |
| ↳ `channelId` | string | Channel ID that uploaded the video |
| ↳ `channelTitle` | string | Channel name |
| ↳ `publishedAt` | string | Video publish date |
| ↳ `liveBroadcastContent` | string | Live broadcast status: |
| `totalResults` | number | Total number of search results available |
| `nextPageToken` | string | Token for accessing the next page of results |
### `youtube_trending`
Get the most popular/trending videos on YouTube. Can filter by region and video category.
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `regionCode` | string | No | ISO 3166-1 alpha-2 country code to get trending videos for \(e.g., "US", "GB", "JP"\). Defaults to US. |
| `videoCategoryId` | string | No | Filter by video category ID \(e.g., "10" for Music, "20" for Gaming, "17" for Sports\) |
| `maxResults` | number | No | Maximum number of trending videos to return \(1-50\) |
| `pageToken` | string | No | Page token for pagination | | `pageToken` | string | No | Page token for pagination |
| `apiKey` | string | Yes | YouTube API Key | | `apiKey` | string | Yes | YouTube API Key |
@@ -239,84 +221,17 @@ Get the most popular/trending videos on YouTube. Can filter by region and video
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `items` | array | Array of trending videos | | `items` | array | Array of comments from the video |
| ↳ `videoId` | string | YouTube video ID | | ↳ `commentId` | string | Comment ID |
| ↳ `title` | string | Video title | | ↳ `authorDisplayName` | string | Comment author name |
| ↳ `description` | string | Video description | | ↳ `authorChannelUrl` | string | Comment author channel URL |
| ↳ `thumbnail` | string | Video thumbnail URL | | ↳ `textDisplay` | string | Comment text \(HTML formatted\) |
| ↳ `channelId` | string | Channel ID | | ↳ `textOriginal` | string | Comment text \(plain text\) |
| ↳ `channelTitle` | string | Channel name |
| ↳ `publishedAt` | string | Video publish date |
| ↳ `viewCount` | number | Number of views |
| ↳ `likeCount` | number | Number of likes | | ↳ `likeCount` | number | Number of likes |
| ↳ `commentCount` | number | Number of comments | | ↳ `publishedAt` | string | Comment publish date |
| ↳ `duration` | string | Video duration in ISO 8601 format | | ↳ `updatedAt` | string | Comment last updated date |
| `totalResults` | number | Total number of trending videos available | | ↳ `replyCount` | number | Number of replies |
| `totalResults` | number | Total number of comments |
| `nextPageToken` | string | Token for accessing the next page of results | | `nextPageToken` | string | Token for accessing the next page of results |
### `youtube_video_categories`
Get a list of video categories available on YouTube. Use this to discover valid category IDs for filtering search and trending results.
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `regionCode` | string | No | ISO 3166-1 alpha-2 country code to get categories for \(e.g., "US", "GB", "JP"\). Defaults to US. |
| `hl` | string | No | Language for category titles \(e.g., "en", "es", "fr"\). Defaults to English. |
| `apiKey` | string | Yes | YouTube API Key |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `items` | array | Array of video categories available in the specified region |
| ↳ `categoryId` | string | Category ID to use in search/trending filters \(e.g., |
| ↳ `title` | string | Human-readable category name |
| ↳ `assignable` | boolean | Whether videos can be tagged with this category |
| `totalResults` | number | Total number of categories available |
### `youtube_video_details`
Get detailed information about a specific YouTube video including statistics, content details, live streaming info, and metadata.
#### Input
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `videoId` | string | Yes | YouTube video ID |
| `apiKey` | string | Yes | YouTube API Key |
#### Output
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `videoId` | string | YouTube video ID |
| `title` | string | Video title |
| `description` | string | Video description |
| `channelId` | string | Channel ID |
| `channelTitle` | string | Channel name |
| `publishedAt` | string | Published date and time |
| `duration` | string | Video duration in ISO 8601 format \(e.g., |
| `viewCount` | number | Number of views |
| `likeCount` | number | Number of likes |
| `commentCount` | number | Number of comments |
| `favoriteCount` | number | Number of times added to favorites |
| `thumbnail` | string | Video thumbnail URL |
| `tags` | array | Video tags |
| `categoryId` | string | YouTube video category ID |
| `definition` | string | Video definition: |
| `caption` | string | Whether captions are available: |
| `licensedContent` | boolean | Whether the video is licensed content |
| `privacyStatus` | string | Video privacy status: |
| `liveBroadcastContent` | string | Live broadcast status: |
| `defaultLanguage` | string | Default language of the video metadata |
| `defaultAudioLanguage` | string | Default audio language of the video |
| `isLiveContent` | boolean | Whether this video is or was a live stream |
| `scheduledStartTime` | string | Scheduled start time for upcoming live streams \(ISO 8601\) |
| `actualStartTime` | string | When the live stream actually started \(ISO 8601\) |
| `actualEndTime` | string | When the live stream ended \(ISO 8601\) |
| `concurrentViewers` | number | Current number of viewers \(only for active live streams\) |
| `activeLiveChatId` | string | Live chat ID for the stream \(only for active live streams\) |

View File

@@ -77,65 +77,13 @@ Retrieve a list of tickets from Zendesk with optional filtering
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `tickets` | array | Array of ticket objects | | `tickets` | array | Array of ticket objects |
| ↳ `id` | number | Automatically assigned ticket ID |
| ↳ `url` | string | API URL of the ticket |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `via` | object | How the ticket was created |
| ↳ `channel` | string | Channel through which the ticket was created \(e.g., email, web, api\) |
| ↳ `source` | object | Source details for the channel |
| ↳ `from` | object | Information about the source sender |
| ↳ `address` | string | Email address or other identifier |
| ↳ `name` | string | Name of the sender |
| ↳ `to` | object | Information about the recipient |
| ↳ `address` | string | Email address or other identifier |
| ↳ `name` | string | Name of the recipient |
| ↳ `rel` | string | Relationship type |
| ↳ `created_at` | string | When the ticket was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the ticket was last updated \(ISO 8601 format\) |
| ↳ `type` | string | Ticket type \(problem, incident, question, task\) |
| ↳ `subject` | string | Subject of the ticket |
| ↳ `raw_subject` | string | Subject of the ticket as entered by the requester |
| ↳ `description` | string | Read-only first comment on the ticket |
| ↳ `priority` | string | Priority level \(low, normal, high, urgent\) |
| ↳ `status` | string | Ticket status \(new, open, pending, hold, solved, closed\) |
| ↳ `recipient` | string | Original recipient email address |
| ↳ `requester_id` | number | User ID of the ticket requester |
| ↳ `submitter_id` | number | User ID of the ticket submitter |
| ↳ `assignee_id` | number | User ID of the agent assigned to the ticket |
| ↳ `organization_id` | number | Organization ID of the requester |
| ↳ `group_id` | number | Group ID assigned to the ticket |
| ↳ `collaborator_ids` | array | User IDs of collaborators \(CC\) |
| ↳ `follower_ids` | array | User IDs of followers |
| ↳ `email_cc_ids` | array | User IDs of email CCs |
| ↳ `forum_topic_id` | number | Topic ID in the community forum |
| ↳ `problem_id` | number | For incident tickets, the ID of the associated problem ticket |
| ↳ `has_incidents` | boolean | Whether the ticket has incident tickets linked |
| ↳ `is_public` | boolean | Whether the first comment is public |
| ↳ `due_at` | string | Due date for task tickets \(ISO 8601 format\) |
| ↳ `tags` | array | Tags associated with the ticket |
| ↳ `custom_fields` | array | Custom ticket fields |
| ↳ `id` | number | Custom field ID |
| ↳ `value` | string | Custom field value |
| ↳ `custom_status_id` | number | Custom status ID |
| ↳ `satisfaction_rating` | object | Customer satisfaction rating |
| ↳ `id` | number | Satisfaction rating ID |
| ↳ `score` | string | Rating score \(e.g., good, bad, offered, unoffered\) |
| ↳ `comment` | string | Comment left with the rating |
| ↳ `sharing_agreement_ids` | array | Sharing agreement IDs |
| ↳ `followup_ids` | array | IDs of follow-up tickets |
| ↳ `brand_id` | number | Brand ID the ticket belongs to |
| ↳ `allow_attachments` | boolean | Whether attachments are allowed |
| ↳ `allow_channelback` | boolean | Whether channelback is enabled |
| ↳ `from_messaging_channel` | boolean | Whether the ticket originated from a messaging channel |
| ↳ `ticket_form_id` | number | Ticket form ID |
| ↳ `generated_timestamp` | number | Unix timestamp of the ticket generation |
| `paging` | object | Pagination information | | `paging` | object | Pagination information |
| ↳ `next_page` | string | URL for next page of results | | ↳ `next_page` | string | URL for next page of results |
| ↳ `previous_page` | string | URL for previous page of results | | ↳ `previous_page` | string | URL for previous page of results |
| ↳ `count` | number | Total count of items | | ↳ `count` | number | Total count of tickets |
| `metadata` | object | Response metadata | | `metadata` | object | Response metadata |
| ↳ `total_returned` | number | Number of items returned in this response | | ↳ `total_returned` | number | Number of tickets returned in this response |
| ↳ `has_more` | boolean | Whether more items are available | | ↳ `has_more` | boolean | Whether more tickets are available |
### `zendesk_get_ticket` ### `zendesk_get_ticket`
@@ -155,58 +103,6 @@ Get a single ticket by ID from Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ticket` | object | Ticket object | | `ticket` | object | Ticket object |
| ↳ `id` | number | Automatically assigned ticket ID |
| ↳ `url` | string | API URL of the ticket |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `via` | object | How the ticket was created |
| ↳ `channel` | string | Channel through which the ticket was created \(e.g., email, web, api\) |
| ↳ `source` | object | Source details for the channel |
| ↳ `from` | object | Information about the source sender |
| ↳ `address` | string | Email address or other identifier |
| ↳ `name` | string | Name of the sender |
| ↳ `to` | object | Information about the recipient |
| ↳ `address` | string | Email address or other identifier |
| ↳ `name` | string | Name of the recipient |
| ↳ `rel` | string | Relationship type |
| ↳ `created_at` | string | When the ticket was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the ticket was last updated \(ISO 8601 format\) |
| ↳ `type` | string | Ticket type \(problem, incident, question, task\) |
| ↳ `subject` | string | Subject of the ticket |
| ↳ `raw_subject` | string | Subject of the ticket as entered by the requester |
| ↳ `description` | string | Read-only first comment on the ticket |
| ↳ `priority` | string | Priority level \(low, normal, high, urgent\) |
| ↳ `status` | string | Ticket status \(new, open, pending, hold, solved, closed\) |
| ↳ `recipient` | string | Original recipient email address |
| ↳ `requester_id` | number | User ID of the ticket requester |
| ↳ `submitter_id` | number | User ID of the ticket submitter |
| ↳ `assignee_id` | number | User ID of the agent assigned to the ticket |
| ↳ `organization_id` | number | Organization ID of the requester |
| ↳ `group_id` | number | Group ID assigned to the ticket |
| ↳ `collaborator_ids` | array | User IDs of collaborators \(CC\) |
| ↳ `follower_ids` | array | User IDs of followers |
| ↳ `email_cc_ids` | array | User IDs of email CCs |
| ↳ `forum_topic_id` | number | Topic ID in the community forum |
| ↳ `problem_id` | number | For incident tickets, the ID of the associated problem ticket |
| ↳ `has_incidents` | boolean | Whether the ticket has incident tickets linked |
| ↳ `is_public` | boolean | Whether the first comment is public |
| ↳ `due_at` | string | Due date for task tickets \(ISO 8601 format\) |
| ↳ `tags` | array | Tags associated with the ticket |
| ↳ `custom_fields` | array | Custom ticket fields |
| ↳ `id` | number | Custom field ID |
| ↳ `value` | string | Custom field value |
| ↳ `custom_status_id` | number | Custom status ID |
| ↳ `satisfaction_rating` | object | Customer satisfaction rating |
| ↳ `id` | number | Satisfaction rating ID |
| ↳ `score` | string | Rating score \(e.g., good, bad, offered, unoffered\) |
| ↳ `comment` | string | Comment left with the rating |
| ↳ `sharing_agreement_ids` | array | Sharing agreement IDs |
| ↳ `followup_ids` | array | IDs of follow-up tickets |
| ↳ `brand_id` | number | Brand ID the ticket belongs to |
| ↳ `allow_attachments` | boolean | Whether attachments are allowed |
| ↳ `allow_channelback` | boolean | Whether channelback is enabled |
| ↳ `from_messaging_channel` | boolean | Whether the ticket originated from a messaging channel |
| ↳ `ticket_form_id` | number | Ticket form ID |
| ↳ `generated_timestamp` | number | Unix timestamp of the ticket generation |
| `ticket_id` | number | The ticket ID | | `ticket_id` | number | The ticket ID |
### `zendesk_create_ticket` ### `zendesk_create_ticket`
@@ -236,58 +132,6 @@ Create a new ticket in Zendesk with support for custom fields
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ticket` | object | Created ticket object | | `ticket` | object | Created ticket object |
| ↳ `id` | number | Automatically assigned ticket ID |
| ↳ `url` | string | API URL of the ticket |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `via` | object | How the ticket was created |
| ↳ `channel` | string | Channel through which the ticket was created \(e.g., email, web, api\) |
| ↳ `source` | object | Source details for the channel |
| ↳ `from` | object | Information about the source sender |
| ↳ `address` | string | Email address or other identifier |
| ↳ `name` | string | Name of the sender |
| ↳ `to` | object | Information about the recipient |
| ↳ `address` | string | Email address or other identifier |
| ↳ `name` | string | Name of the recipient |
| ↳ `rel` | string | Relationship type |
| ↳ `created_at` | string | When the ticket was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the ticket was last updated \(ISO 8601 format\) |
| ↳ `type` | string | Ticket type \(problem, incident, question, task\) |
| ↳ `subject` | string | Subject of the ticket |
| ↳ `raw_subject` | string | Subject of the ticket as entered by the requester |
| ↳ `description` | string | Read-only first comment on the ticket |
| ↳ `priority` | string | Priority level \(low, normal, high, urgent\) |
| ↳ `status` | string | Ticket status \(new, open, pending, hold, solved, closed\) |
| ↳ `recipient` | string | Original recipient email address |
| ↳ `requester_id` | number | User ID of the ticket requester |
| ↳ `submitter_id` | number | User ID of the ticket submitter |
| ↳ `assignee_id` | number | User ID of the agent assigned to the ticket |
| ↳ `organization_id` | number | Organization ID of the requester |
| ↳ `group_id` | number | Group ID assigned to the ticket |
| ↳ `collaborator_ids` | array | User IDs of collaborators \(CC\) |
| ↳ `follower_ids` | array | User IDs of followers |
| ↳ `email_cc_ids` | array | User IDs of email CCs |
| ↳ `forum_topic_id` | number | Topic ID in the community forum |
| ↳ `problem_id` | number | For incident tickets, the ID of the associated problem ticket |
| ↳ `has_incidents` | boolean | Whether the ticket has incident tickets linked |
| ↳ `is_public` | boolean | Whether the first comment is public |
| ↳ `due_at` | string | Due date for task tickets \(ISO 8601 format\) |
| ↳ `tags` | array | Tags associated with the ticket |
| ↳ `custom_fields` | array | Custom ticket fields |
| ↳ `id` | number | Custom field ID |
| ↳ `value` | string | Custom field value |
| ↳ `custom_status_id` | number | Custom status ID |
| ↳ `satisfaction_rating` | object | Customer satisfaction rating |
| ↳ `id` | number | Satisfaction rating ID |
| ↳ `score` | string | Rating score \(e.g., good, bad, offered, unoffered\) |
| ↳ `comment` | string | Comment left with the rating |
| ↳ `sharing_agreement_ids` | array | Sharing agreement IDs |
| ↳ `followup_ids` | array | IDs of follow-up tickets |
| ↳ `brand_id` | number | Brand ID the ticket belongs to |
| ↳ `allow_attachments` | boolean | Whether attachments are allowed |
| ↳ `allow_channelback` | boolean | Whether channelback is enabled |
| ↳ `from_messaging_channel` | boolean | Whether the ticket originated from a messaging channel |
| ↳ `ticket_form_id` | number | Ticket form ID |
| ↳ `generated_timestamp` | number | Unix timestamp of the ticket generation |
| `ticket_id` | number | The created ticket ID | | `ticket_id` | number | The created ticket ID |
### `zendesk_create_tickets_bulk` ### `zendesk_create_tickets_bulk`
@@ -307,21 +151,7 @@ Create multiple tickets in Zendesk at once (max 100)
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `job_status` | object | Job status object for bulk operations | | `job_status` | object | Job status object |
| ↳ `id` | string | Automatically assigned job ID |
| ↳ `url` | string | URL to poll for status updates |
| ↳ `status` | string | Current job status \(queued, working, failed, completed\) |
| ↳ `job_type` | string | Category of background task |
| ↳ `total` | number | Total number of tasks in this job |
| ↳ `progress` | number | Number of tasks already completed |
| ↳ `message` | string | Message from the job worker |
| ↳ `results` | array | Array of result objects from the job |
| ↳ `id` | number | ID of the created or updated resource |
| ↳ `index` | number | Position of the result in the batch |
| ↳ `action` | string | Action performed \(e.g., create, update\) |
| ↳ `success` | boolean | Whether the operation succeeded |
| ↳ `status` | string | Status message \(e.g., Updated, Created\) |
| ↳ `error` | string | Error message if operation failed |
| `job_id` | string | The bulk operation job ID | | `job_id` | string | The bulk operation job ID |
### `zendesk_update_ticket` ### `zendesk_update_ticket`
@@ -351,58 +181,6 @@ Update an existing ticket in Zendesk with support for custom fields
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `ticket` | object | Updated ticket object | | `ticket` | object | Updated ticket object |
| ↳ `id` | number | Automatically assigned ticket ID |
| ↳ `url` | string | API URL of the ticket |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `via` | object | How the ticket was created |
| ↳ `channel` | string | Channel through which the ticket was created \(e.g., email, web, api\) |
| ↳ `source` | object | Source details for the channel |
| ↳ `from` | object | Information about the source sender |
| ↳ `address` | string | Email address or other identifier |
| ↳ `name` | string | Name of the sender |
| ↳ `to` | object | Information about the recipient |
| ↳ `address` | string | Email address or other identifier |
| ↳ `name` | string | Name of the recipient |
| ↳ `rel` | string | Relationship type |
| ↳ `created_at` | string | When the ticket was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the ticket was last updated \(ISO 8601 format\) |
| ↳ `type` | string | Ticket type \(problem, incident, question, task\) |
| ↳ `subject` | string | Subject of the ticket |
| ↳ `raw_subject` | string | Subject of the ticket as entered by the requester |
| ↳ `description` | string | Read-only first comment on the ticket |
| ↳ `priority` | string | Priority level \(low, normal, high, urgent\) |
| ↳ `status` | string | Ticket status \(new, open, pending, hold, solved, closed\) |
| ↳ `recipient` | string | Original recipient email address |
| ↳ `requester_id` | number | User ID of the ticket requester |
| ↳ `submitter_id` | number | User ID of the ticket submitter |
| ↳ `assignee_id` | number | User ID of the agent assigned to the ticket |
| ↳ `organization_id` | number | Organization ID of the requester |
| ↳ `group_id` | number | Group ID assigned to the ticket |
| ↳ `collaborator_ids` | array | User IDs of collaborators \(CC\) |
| ↳ `follower_ids` | array | User IDs of followers |
| ↳ `email_cc_ids` | array | User IDs of email CCs |
| ↳ `forum_topic_id` | number | Topic ID in the community forum |
| ↳ `problem_id` | number | For incident tickets, the ID of the associated problem ticket |
| ↳ `has_incidents` | boolean | Whether the ticket has incident tickets linked |
| ↳ `is_public` | boolean | Whether the first comment is public |
| ↳ `due_at` | string | Due date for task tickets \(ISO 8601 format\) |
| ↳ `tags` | array | Tags associated with the ticket |
| ↳ `custom_fields` | array | Custom ticket fields |
| ↳ `id` | number | Custom field ID |
| ↳ `value` | string | Custom field value |
| ↳ `custom_status_id` | number | Custom status ID |
| ↳ `satisfaction_rating` | object | Customer satisfaction rating |
| ↳ `id` | number | Satisfaction rating ID |
| ↳ `score` | string | Rating score \(e.g., good, bad, offered, unoffered\) |
| ↳ `comment` | string | Comment left with the rating |
| ↳ `sharing_agreement_ids` | array | Sharing agreement IDs |
| ↳ `followup_ids` | array | IDs of follow-up tickets |
| ↳ `brand_id` | number | Brand ID the ticket belongs to |
| ↳ `allow_attachments` | boolean | Whether attachments are allowed |
| ↳ `allow_channelback` | boolean | Whether channelback is enabled |
| ↳ `from_messaging_channel` | boolean | Whether the ticket originated from a messaging channel |
| ↳ `ticket_form_id` | number | Ticket form ID |
| ↳ `generated_timestamp` | number | Unix timestamp of the ticket generation |
| `ticket_id` | number | The updated ticket ID | | `ticket_id` | number | The updated ticket ID |
### `zendesk_update_tickets_bulk` ### `zendesk_update_tickets_bulk`
@@ -427,21 +205,7 @@ Update multiple tickets in Zendesk at once (max 100)
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `job_status` | object | Job status object for bulk operations | | `job_status` | object | Job status object |
| ↳ `id` | string | Automatically assigned job ID |
| ↳ `url` | string | URL to poll for status updates |
| ↳ `status` | string | Current job status \(queued, working, failed, completed\) |
| ↳ `job_type` | string | Category of background task |
| ↳ `total` | number | Total number of tasks in this job |
| ↳ `progress` | number | Number of tasks already completed |
| ↳ `message` | string | Message from the job worker |
| ↳ `results` | array | Array of result objects from the job |
| ↳ `id` | number | ID of the created or updated resource |
| ↳ `index` | number | Position of the result in the batch |
| ↳ `action` | string | Action performed \(e.g., create, update\) |
| ↳ `success` | boolean | Whether the operation succeeded |
| ↳ `status` | string | Status message \(e.g., Updated, Created\) |
| ↳ `error` | string | Error message if operation failed |
| `job_id` | string | The bulk operation job ID | | `job_id` | string | The bulk operation job ID |
### `zendesk_delete_ticket` ### `zendesk_delete_ticket`
@@ -483,21 +247,7 @@ Merge multiple tickets into a target ticket
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `job_status` | object | Job status object for bulk operations | | `job_status` | object | Job status object |
| ↳ `id` | string | Automatically assigned job ID |
| ↳ `url` | string | URL to poll for status updates |
| ↳ `status` | string | Current job status \(queued, working, failed, completed\) |
| ↳ `job_type` | string | Category of background task |
| ↳ `total` | number | Total number of tasks in this job |
| ↳ `progress` | number | Number of tasks already completed |
| ↳ `message` | string | Message from the job worker |
| ↳ `results` | array | Array of result objects from the job |
| ↳ `id` | number | ID of the created or updated resource |
| ↳ `index` | number | Position of the result in the batch |
| ↳ `action` | string | Action performed \(e.g., create, update\) |
| ↳ `success` | boolean | Whether the operation succeeded |
| ↳ `status` | string | Status message \(e.g., Updated, Created\) |
| ↳ `error` | string | Error message if operation failed |
| `job_id` | string | The merge job ID | | `job_id` | string | The merge job ID |
| `target_ticket_id` | string | The target ticket ID that tickets were merged into | | `target_ticket_id` | string | The target ticket ID that tickets were merged into |
@@ -522,54 +272,13 @@ Retrieve a list of users from Zendesk with optional filtering
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `users` | array | Array of user objects | | `users` | array | Array of user objects |
| ↳ `id` | number | Automatically assigned user ID |
| ↳ `url` | string | API URL of the user |
| ↳ `name` | string | User name |
| ↳ `email` | string | Primary email address |
| ↳ `created_at` | string | When the user was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the user was last updated \(ISO 8601 format\) |
| ↳ `time_zone` | string | Time zone \(e.g., Eastern Time \(US & Canada\)\) |
| ↳ `iana_time_zone` | string | IANA time zone \(e.g., America/New_York\) |
| ↳ `phone` | string | Phone number |
| ↳ `shared_phone_number` | boolean | Whether the phone number is shared |
| ↳ `photo` | object | User photo details |
| ↳ `content_url` | string | URL to the photo |
| ↳ `file_name` | string | Photo file name |
| ↳ `size` | number | File size in bytes |
| ↳ `locale` | string | Locale \(e.g., en-US\) |
| ↳ `locale_id` | number | Locale ID |
| ↳ `organization_id` | number | Primary organization ID |
| ↳ `role` | string | User role \(end-user, agent, admin\) |
| ↳ `role_type` | number | Role type identifier |
| ↳ `custom_role_id` | number | Custom role ID |
| ↳ `active` | boolean | Whether the user is active \(false if deleted\) |
| ↳ `verified` | boolean | Whether any user identity has been verified |
| ↳ `alias` | string | Alias displayed to end users |
| ↳ `details` | string | Details about the user |
| ↳ `notes` | string | Notes about the user |
| ↳ `signature` | string | User signature for email replies |
| ↳ `default_group_id` | number | Default group ID for the user |
| ↳ `tags` | array | Tags associated with the user |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `restricted_agent` | boolean | Whether the agent has restrictions |
| ↳ `suspended` | boolean | Whether the user is suspended |
| ↳ `moderator` | boolean | Whether the user has moderator permissions |
| ↳ `chat_only` | boolean | Whether the user is a chat-only agent |
| ↳ `only_private_comments` | boolean | Whether the user can only create private comments |
| ↳ `two_factor_auth_enabled` | boolean | Whether two-factor auth is enabled |
| ↳ `last_login_at` | string | Last login time \(ISO 8601 format\) |
| ↳ `ticket_restriction` | string | Ticket access restriction \(organization, groups, assigned, requested\) |
| ↳ `user_fields` | json | Custom user fields \(dynamic key-value pairs\) |
| ↳ `shared` | boolean | Whether the user is shared from a different Zendesk |
| ↳ `shared_agent` | boolean | Whether the agent is shared from a different Zendesk |
| ↳ `remote_photo_url` | string | URL to a remote photo |
| `paging` | object | Pagination information | | `paging` | object | Pagination information |
| ↳ `next_page` | string | URL for next page of results | | ↳ `next_page` | string | URL for next page of results |
| ↳ `previous_page` | string | URL for previous page of results | | ↳ `previous_page` | string | URL for previous page of results |
| ↳ `count` | number | Total count of items | | ↳ `count` | number | Total count of users |
| `metadata` | object | Response metadata | | `metadata` | object | Response metadata |
| ↳ `total_returned` | number | Number of items returned in this response | | ↳ `total_returned` | number | Number of users returned in this response |
| ↳ `has_more` | boolean | Whether more items are available | | ↳ `has_more` | boolean | Whether more users are available |
### `zendesk_get_user` ### `zendesk_get_user`
@@ -589,47 +298,6 @@ Get a single user by ID from Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `user` | object | User object | | `user` | object | User object |
| ↳ `id` | number | Automatically assigned user ID |
| ↳ `url` | string | API URL of the user |
| ↳ `name` | string | User name |
| ↳ `email` | string | Primary email address |
| ↳ `created_at` | string | When the user was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the user was last updated \(ISO 8601 format\) |
| ↳ `time_zone` | string | Time zone \(e.g., Eastern Time \(US & Canada\)\) |
| ↳ `iana_time_zone` | string | IANA time zone \(e.g., America/New_York\) |
| ↳ `phone` | string | Phone number |
| ↳ `shared_phone_number` | boolean | Whether the phone number is shared |
| ↳ `photo` | object | User photo details |
| ↳ `content_url` | string | URL to the photo |
| ↳ `file_name` | string | Photo file name |
| ↳ `size` | number | File size in bytes |
| ↳ `locale` | string | Locale \(e.g., en-US\) |
| ↳ `locale_id` | number | Locale ID |
| ↳ `organization_id` | number | Primary organization ID |
| ↳ `role` | string | User role \(end-user, agent, admin\) |
| ↳ `role_type` | number | Role type identifier |
| ↳ `custom_role_id` | number | Custom role ID |
| ↳ `active` | boolean | Whether the user is active \(false if deleted\) |
| ↳ `verified` | boolean | Whether any user identity has been verified |
| ↳ `alias` | string | Alias displayed to end users |
| ↳ `details` | string | Details about the user |
| ↳ `notes` | string | Notes about the user |
| ↳ `signature` | string | User signature for email replies |
| ↳ `default_group_id` | number | Default group ID for the user |
| ↳ `tags` | array | Tags associated with the user |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `restricted_agent` | boolean | Whether the agent has restrictions |
| ↳ `suspended` | boolean | Whether the user is suspended |
| ↳ `moderator` | boolean | Whether the user has moderator permissions |
| ↳ `chat_only` | boolean | Whether the user is a chat-only agent |
| ↳ `only_private_comments` | boolean | Whether the user can only create private comments |
| ↳ `two_factor_auth_enabled` | boolean | Whether two-factor auth is enabled |
| ↳ `last_login_at` | string | Last login time \(ISO 8601 format\) |
| ↳ `ticket_restriction` | string | Ticket access restriction \(organization, groups, assigned, requested\) |
| ↳ `user_fields` | json | Custom user fields \(dynamic key-value pairs\) |
| ↳ `shared` | boolean | Whether the user is shared from a different Zendesk |
| ↳ `shared_agent` | boolean | Whether the agent is shared from a different Zendesk |
| ↳ `remote_photo_url` | string | URL to a remote photo |
| `user_id` | number | The user ID | | `user_id` | number | The user ID |
### `zendesk_get_current_user` ### `zendesk_get_current_user`
@@ -649,47 +317,6 @@ Get the currently authenticated user from Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `user` | object | Current user object | | `user` | object | Current user object |
| ↳ `id` | number | Automatically assigned user ID |
| ↳ `url` | string | API URL of the user |
| ↳ `name` | string | User name |
| ↳ `email` | string | Primary email address |
| ↳ `created_at` | string | When the user was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the user was last updated \(ISO 8601 format\) |
| ↳ `time_zone` | string | Time zone \(e.g., Eastern Time \(US & Canada\)\) |
| ↳ `iana_time_zone` | string | IANA time zone \(e.g., America/New_York\) |
| ↳ `phone` | string | Phone number |
| ↳ `shared_phone_number` | boolean | Whether the phone number is shared |
| ↳ `photo` | object | User photo details |
| ↳ `content_url` | string | URL to the photo |
| ↳ `file_name` | string | Photo file name |
| ↳ `size` | number | File size in bytes |
| ↳ `locale` | string | Locale \(e.g., en-US\) |
| ↳ `locale_id` | number | Locale ID |
| ↳ `organization_id` | number | Primary organization ID |
| ↳ `role` | string | User role \(end-user, agent, admin\) |
| ↳ `role_type` | number | Role type identifier |
| ↳ `custom_role_id` | number | Custom role ID |
| ↳ `active` | boolean | Whether the user is active \(false if deleted\) |
| ↳ `verified` | boolean | Whether any user identity has been verified |
| ↳ `alias` | string | Alias displayed to end users |
| ↳ `details` | string | Details about the user |
| ↳ `notes` | string | Notes about the user |
| ↳ `signature` | string | User signature for email replies |
| ↳ `default_group_id` | number | Default group ID for the user |
| ↳ `tags` | array | Tags associated with the user |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `restricted_agent` | boolean | Whether the agent has restrictions |
| ↳ `suspended` | boolean | Whether the user is suspended |
| ↳ `moderator` | boolean | Whether the user has moderator permissions |
| ↳ `chat_only` | boolean | Whether the user is a chat-only agent |
| ↳ `only_private_comments` | boolean | Whether the user can only create private comments |
| ↳ `two_factor_auth_enabled` | boolean | Whether two-factor auth is enabled |
| ↳ `last_login_at` | string | Last login time \(ISO 8601 format\) |
| ↳ `ticket_restriction` | string | Ticket access restriction \(organization, groups, assigned, requested\) |
| ↳ `user_fields` | json | Custom user fields \(dynamic key-value pairs\) |
| ↳ `shared` | boolean | Whether the user is shared from a different Zendesk |
| ↳ `shared_agent` | boolean | Whether the agent is shared from a different Zendesk |
| ↳ `remote_photo_url` | string | URL to a remote photo |
| `user_id` | number | The current user ID | | `user_id` | number | The current user ID |
### `zendesk_search_users` ### `zendesk_search_users`
@@ -713,54 +340,13 @@ Search for users in Zendesk using a query string
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `users` | array | Array of user objects | | `users` | array | Array of user objects |
| ↳ `id` | number | Automatically assigned user ID |
| ↳ `url` | string | API URL of the user |
| ↳ `name` | string | User name |
| ↳ `email` | string | Primary email address |
| ↳ `created_at` | string | When the user was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the user was last updated \(ISO 8601 format\) |
| ↳ `time_zone` | string | Time zone \(e.g., Eastern Time \(US & Canada\)\) |
| ↳ `iana_time_zone` | string | IANA time zone \(e.g., America/New_York\) |
| ↳ `phone` | string | Phone number |
| ↳ `shared_phone_number` | boolean | Whether the phone number is shared |
| ↳ `photo` | object | User photo details |
| ↳ `content_url` | string | URL to the photo |
| ↳ `file_name` | string | Photo file name |
| ↳ `size` | number | File size in bytes |
| ↳ `locale` | string | Locale \(e.g., en-US\) |
| ↳ `locale_id` | number | Locale ID |
| ↳ `organization_id` | number | Primary organization ID |
| ↳ `role` | string | User role \(end-user, agent, admin\) |
| ↳ `role_type` | number | Role type identifier |
| ↳ `custom_role_id` | number | Custom role ID |
| ↳ `active` | boolean | Whether the user is active \(false if deleted\) |
| ↳ `verified` | boolean | Whether any user identity has been verified |
| ↳ `alias` | string | Alias displayed to end users |
| ↳ `details` | string | Details about the user |
| ↳ `notes` | string | Notes about the user |
| ↳ `signature` | string | User signature for email replies |
| ↳ `default_group_id` | number | Default group ID for the user |
| ↳ `tags` | array | Tags associated with the user |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `restricted_agent` | boolean | Whether the agent has restrictions |
| ↳ `suspended` | boolean | Whether the user is suspended |
| ↳ `moderator` | boolean | Whether the user has moderator permissions |
| ↳ `chat_only` | boolean | Whether the user is a chat-only agent |
| ↳ `only_private_comments` | boolean | Whether the user can only create private comments |
| ↳ `two_factor_auth_enabled` | boolean | Whether two-factor auth is enabled |
| ↳ `last_login_at` | string | Last login time \(ISO 8601 format\) |
| ↳ `ticket_restriction` | string | Ticket access restriction \(organization, groups, assigned, requested\) |
| ↳ `user_fields` | json | Custom user fields \(dynamic key-value pairs\) |
| ↳ `shared` | boolean | Whether the user is shared from a different Zendesk |
| ↳ `shared_agent` | boolean | Whether the agent is shared from a different Zendesk |
| ↳ `remote_photo_url` | string | URL to a remote photo |
| `paging` | object | Pagination information | | `paging` | object | Pagination information |
| ↳ `next_page` | string | URL for next page of results | | ↳ `next_page` | string | URL for next page of results |
| ↳ `previous_page` | string | URL for previous page of results | | ↳ `previous_page` | string | URL for previous page of results |
| ↳ `count` | number | Total count of items | | ↳ `count` | number | Total count of users |
| `metadata` | object | Response metadata | | `metadata` | object | Response metadata |
| ↳ `total_returned` | number | Number of items returned in this response | | ↳ `total_returned` | number | Number of users returned in this response |
| ↳ `has_more` | boolean | Whether more items are available | | ↳ `has_more` | boolean | Whether more users are available |
### `zendesk_create_user` ### `zendesk_create_user`
@@ -787,47 +373,6 @@ Create a new user in Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `user` | object | Created user object | | `user` | object | Created user object |
| ↳ `id` | number | Automatically assigned user ID |
| ↳ `url` | string | API URL of the user |
| ↳ `name` | string | User name |
| ↳ `email` | string | Primary email address |
| ↳ `created_at` | string | When the user was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the user was last updated \(ISO 8601 format\) |
| ↳ `time_zone` | string | Time zone \(e.g., Eastern Time \(US & Canada\)\) |
| ↳ `iana_time_zone` | string | IANA time zone \(e.g., America/New_York\) |
| ↳ `phone` | string | Phone number |
| ↳ `shared_phone_number` | boolean | Whether the phone number is shared |
| ↳ `photo` | object | User photo details |
| ↳ `content_url` | string | URL to the photo |
| ↳ `file_name` | string | Photo file name |
| ↳ `size` | number | File size in bytes |
| ↳ `locale` | string | Locale \(e.g., en-US\) |
| ↳ `locale_id` | number | Locale ID |
| ↳ `organization_id` | number | Primary organization ID |
| ↳ `role` | string | User role \(end-user, agent, admin\) |
| ↳ `role_type` | number | Role type identifier |
| ↳ `custom_role_id` | number | Custom role ID |
| ↳ `active` | boolean | Whether the user is active \(false if deleted\) |
| ↳ `verified` | boolean | Whether any user identity has been verified |
| ↳ `alias` | string | Alias displayed to end users |
| ↳ `details` | string | Details about the user |
| ↳ `notes` | string | Notes about the user |
| ↳ `signature` | string | User signature for email replies |
| ↳ `default_group_id` | number | Default group ID for the user |
| ↳ `tags` | array | Tags associated with the user |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `restricted_agent` | boolean | Whether the agent has restrictions |
| ↳ `suspended` | boolean | Whether the user is suspended |
| ↳ `moderator` | boolean | Whether the user has moderator permissions |
| ↳ `chat_only` | boolean | Whether the user is a chat-only agent |
| ↳ `only_private_comments` | boolean | Whether the user can only create private comments |
| ↳ `two_factor_auth_enabled` | boolean | Whether two-factor auth is enabled |
| ↳ `last_login_at` | string | Last login time \(ISO 8601 format\) |
| ↳ `ticket_restriction` | string | Ticket access restriction \(organization, groups, assigned, requested\) |
| ↳ `user_fields` | json | Custom user fields \(dynamic key-value pairs\) |
| ↳ `shared` | boolean | Whether the user is shared from a different Zendesk |
| ↳ `shared_agent` | boolean | Whether the agent is shared from a different Zendesk |
| ↳ `remote_photo_url` | string | URL to a remote photo |
| `user_id` | number | The created user ID | | `user_id` | number | The created user ID |
### `zendesk_create_users_bulk` ### `zendesk_create_users_bulk`
@@ -847,21 +392,7 @@ Create multiple users in Zendesk using bulk import
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `job_status` | object | Job status object for bulk operations | | `job_status` | object | Job status object |
| ↳ `id` | string | Automatically assigned job ID |
| ↳ `url` | string | URL to poll for status updates |
| ↳ `status` | string | Current job status \(queued, working, failed, completed\) |
| ↳ `job_type` | string | Category of background task |
| ↳ `total` | number | Total number of tasks in this job |
| ↳ `progress` | number | Number of tasks already completed |
| ↳ `message` | string | Message from the job worker |
| ↳ `results` | array | Array of result objects from the job |
| ↳ `id` | number | ID of the created or updated resource |
| ↳ `index` | number | Position of the result in the batch |
| ↳ `action` | string | Action performed \(e.g., create, update\) |
| ↳ `success` | boolean | Whether the operation succeeded |
| ↳ `status` | string | Status message \(e.g., Updated, Created\) |
| ↳ `error` | string | Error message if operation failed |
| `job_id` | string | The bulk operation job ID | | `job_id` | string | The bulk operation job ID |
### `zendesk_update_user` ### `zendesk_update_user`
@@ -889,48 +420,7 @@ Update an existing user in Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `user` | object | Updated user object | | `user` | json | Updated user object |
| ↳ `id` | number | Automatically assigned user ID |
| ↳ `url` | string | API URL of the user |
| ↳ `name` | string | User name |
| ↳ `email` | string | Primary email address |
| ↳ `created_at` | string | When the user was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the user was last updated \(ISO 8601 format\) |
| ↳ `time_zone` | string | Time zone \(e.g., Eastern Time \(US & Canada\)\) |
| ↳ `iana_time_zone` | string | IANA time zone \(e.g., America/New_York\) |
| ↳ `phone` | string | Phone number |
| ↳ `shared_phone_number` | boolean | Whether the phone number is shared |
| ↳ `photo` | object | User photo details |
| ↳ `content_url` | string | URL to the photo |
| ↳ `file_name` | string | Photo file name |
| ↳ `size` | number | File size in bytes |
| ↳ `locale` | string | Locale \(e.g., en-US\) |
| ↳ `locale_id` | number | Locale ID |
| ↳ `organization_id` | number | Primary organization ID |
| ↳ `role` | string | User role \(end-user, agent, admin\) |
| ↳ `role_type` | number | Role type identifier |
| ↳ `custom_role_id` | number | Custom role ID |
| ↳ `active` | boolean | Whether the user is active \(false if deleted\) |
| ↳ `verified` | boolean | Whether any user identity has been verified |
| ↳ `alias` | string | Alias displayed to end users |
| ↳ `details` | string | Details about the user |
| ↳ `notes` | string | Notes about the user |
| ↳ `signature` | string | User signature for email replies |
| ↳ `default_group_id` | number | Default group ID for the user |
| ↳ `tags` | array | Tags associated with the user |
| ↳ `external_id` | string | External ID for linking to external records |
| ↳ `restricted_agent` | boolean | Whether the agent has restrictions |
| ↳ `suspended` | boolean | Whether the user is suspended |
| ↳ `moderator` | boolean | Whether the user has moderator permissions |
| ↳ `chat_only` | boolean | Whether the user is a chat-only agent |
| ↳ `only_private_comments` | boolean | Whether the user can only create private comments |
| ↳ `two_factor_auth_enabled` | boolean | Whether two-factor auth is enabled |
| ↳ `last_login_at` | string | Last login time \(ISO 8601 format\) |
| ↳ `ticket_restriction` | string | Ticket access restriction \(organization, groups, assigned, requested\) |
| ↳ `user_fields` | json | Custom user fields \(dynamic key-value pairs\) |
| ↳ `shared` | boolean | Whether the user is shared from a different Zendesk |
| ↳ `shared_agent` | boolean | Whether the agent is shared from a different Zendesk |
| ↳ `remote_photo_url` | string | URL to a remote photo |
| `user_id` | number | The updated user ID | | `user_id` | number | The updated user ID |
### `zendesk_update_users_bulk` ### `zendesk_update_users_bulk`
@@ -950,21 +440,7 @@ Update multiple users in Zendesk using bulk update
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `job_status` | object | Job status object for bulk operations | | `job_status` | object | Job status object |
| ↳ `id` | string | Automatically assigned job ID |
| ↳ `url` | string | URL to poll for status updates |
| ↳ `status` | string | Current job status \(queued, working, failed, completed\) |
| ↳ `job_type` | string | Category of background task |
| ↳ `total` | number | Total number of tasks in this job |
| ↳ `progress` | number | Number of tasks already completed |
| ↳ `message` | string | Message from the job worker |
| ↳ `results` | array | Array of result objects from the job |
| ↳ `id` | number | ID of the created or updated resource |
| ↳ `index` | number | Position of the result in the batch |
| ↳ `action` | string | Action performed \(e.g., create, update\) |
| ↳ `success` | boolean | Whether the operation succeeded |
| ↳ `status` | string | Status message \(e.g., Updated, Created\) |
| ↳ `error` | string | Error message if operation failed |
| `job_id` | string | The bulk operation job ID | | `job_id` | string | The bulk operation job ID |
### `zendesk_delete_user` ### `zendesk_delete_user`
@@ -1006,27 +482,13 @@ Retrieve a list of organizations from Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `organizations` | array | Array of organization objects | | `organizations` | array | Array of organization objects |
| ↳ `id` | number | Automatically assigned organization ID |
| ↳ `url` | string | API URL of the organization |
| ↳ `name` | string | Unique organization name |
| ↳ `domain_names` | array | Domain names for automatic user assignment |
| ↳ `details` | string | Details about the organization |
| ↳ `notes` | string | Notes about the organization |
| ↳ `group_id` | number | Group ID for auto-routing new tickets |
| ↳ `shared_tickets` | boolean | Whether end users can see each others tickets |
| ↳ `shared_comments` | boolean | Whether end users can see each others comments |
| ↳ `tags` | array | Tags associated with the organization |
| ↳ `organization_fields` | json | Custom organization fields \(dynamic key-value pairs\) |
| ↳ `created_at` | string | When the organization was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the organization was last updated \(ISO 8601 format\) |
| ↳ `external_id` | string | External ID for linking to external records |
| `paging` | object | Pagination information | | `paging` | object | Pagination information |
| ↳ `next_page` | string | URL for next page of results | | ↳ `next_page` | string | URL for next page of results |
| ↳ `previous_page` | string | URL for previous page of results | | ↳ `previous_page` | string | URL for previous page of results |
| ↳ `count` | number | Total count of items | | ↳ `count` | number | Total count of organizations |
| `metadata` | object | Response metadata | | `metadata` | object | Response metadata |
| ↳ `total_returned` | number | Number of items returned in this response | | ↳ `total_returned` | number | Number of organizations returned in this response |
| ↳ `has_more` | boolean | Whether more items are available | | ↳ `has_more` | boolean | Whether more organizations are available |
### `zendesk_get_organization` ### `zendesk_get_organization`
@@ -1045,21 +507,7 @@ Get a single organization by ID from Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `organization` | object | Organization object | | `organization` | json | Organization object |
| ↳ `id` | number | Automatically assigned organization ID |
| ↳ `url` | string | API URL of the organization |
| ↳ `name` | string | Unique organization name |
| ↳ `domain_names` | array | Domain names for automatic user assignment |
| ↳ `details` | string | Details about the organization |
| ↳ `notes` | string | Notes about the organization |
| ↳ `group_id` | number | Group ID for auto-routing new tickets |
| ↳ `shared_tickets` | boolean | Whether end users can see each others tickets |
| ↳ `shared_comments` | boolean | Whether end users can see each others comments |
| ↳ `tags` | array | Tags associated with the organization |
| ↳ `organization_fields` | json | Custom organization fields \(dynamic key-value pairs\) |
| ↳ `created_at` | string | When the organization was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the organization was last updated \(ISO 8601 format\) |
| ↳ `external_id` | string | External ID for linking to external records |
| `organization_id` | number | The organization ID | | `organization_id` | number | The organization ID |
### `zendesk_autocomplete_organizations` ### `zendesk_autocomplete_organizations`
@@ -1082,27 +530,13 @@ Autocomplete organizations in Zendesk by name prefix (for name matching/autocomp
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `organizations` | array | Array of organization objects | | `organizations` | array | Array of organization objects |
| ↳ `id` | number | Automatically assigned organization ID |
| ↳ `url` | string | API URL of the organization |
| ↳ `name` | string | Unique organization name |
| ↳ `domain_names` | array | Domain names for automatic user assignment |
| ↳ `details` | string | Details about the organization |
| ↳ `notes` | string | Notes about the organization |
| ↳ `group_id` | number | Group ID for auto-routing new tickets |
| ↳ `shared_tickets` | boolean | Whether end users can see each others tickets |
| ↳ `shared_comments` | boolean | Whether end users can see each others comments |
| ↳ `tags` | array | Tags associated with the organization |
| ↳ `organization_fields` | json | Custom organization fields \(dynamic key-value pairs\) |
| ↳ `created_at` | string | When the organization was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the organization was last updated \(ISO 8601 format\) |
| ↳ `external_id` | string | External ID for linking to external records |
| `paging` | object | Pagination information | | `paging` | object | Pagination information |
| ↳ `next_page` | string | URL for next page of results | | ↳ `next_page` | string | URL for next page of results |
| ↳ `previous_page` | string | URL for previous page of results | | ↳ `previous_page` | string | URL for previous page of results |
| ↳ `count` | number | Total count of items | | ↳ `count` | number | Total count of organizations |
| `metadata` | object | Response metadata | | `metadata` | object | Response metadata |
| ↳ `total_returned` | number | Number of items returned in this response | | ↳ `total_returned` | number | Number of organizations returned in this response |
| ↳ `has_more` | boolean | Whether more items are available | | ↳ `has_more` | boolean | Whether more organizations are available |
### `zendesk_create_organization` ### `zendesk_create_organization`
@@ -1126,21 +560,7 @@ Create a new organization in Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `organization` | object | Created organization object | | `organization` | json | Created organization object |
| ↳ `id` | number | Automatically assigned organization ID |
| ↳ `url` | string | API URL of the organization |
| ↳ `name` | string | Unique organization name |
| ↳ `domain_names` | array | Domain names for automatic user assignment |
| ↳ `details` | string | Details about the organization |
| ↳ `notes` | string | Notes about the organization |
| ↳ `group_id` | number | Group ID for auto-routing new tickets |
| ↳ `shared_tickets` | boolean | Whether end users can see each others tickets |
| ↳ `shared_comments` | boolean | Whether end users can see each others comments |
| ↳ `tags` | array | Tags associated with the organization |
| ↳ `organization_fields` | json | Custom organization fields \(dynamic key-value pairs\) |
| ↳ `created_at` | string | When the organization was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the organization was last updated \(ISO 8601 format\) |
| ↳ `external_id` | string | External ID for linking to external records |
| `organization_id` | number | The created organization ID | | `organization_id` | number | The created organization ID |
### `zendesk_create_organizations_bulk` ### `zendesk_create_organizations_bulk`
@@ -1160,21 +580,7 @@ Create multiple organizations in Zendesk using bulk import
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `job_status` | object | Job status object for bulk operations | | `job_status` | object | Job status object |
| ↳ `id` | string | Automatically assigned job ID |
| ↳ `url` | string | URL to poll for status updates |
| ↳ `status` | string | Current job status \(queued, working, failed, completed\) |
| ↳ `job_type` | string | Category of background task |
| ↳ `total` | number | Total number of tasks in this job |
| ↳ `progress` | number | Number of tasks already completed |
| ↳ `message` | string | Message from the job worker |
| ↳ `results` | array | Array of result objects from the job |
| ↳ `id` | number | ID of the created or updated resource |
| ↳ `index` | number | Position of the result in the batch |
| ↳ `action` | string | Action performed \(e.g., create, update\) |
| ↳ `success` | boolean | Whether the operation succeeded |
| ↳ `status` | string | Status message \(e.g., Updated, Created\) |
| ↳ `error` | string | Error message if operation failed |
| `job_id` | string | The bulk operation job ID | | `job_id` | string | The bulk operation job ID |
### `zendesk_update_organization` ### `zendesk_update_organization`
@@ -1200,21 +606,7 @@ Update an existing organization in Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `organization` | object | Updated organization object | | `organization` | json | Updated organization object |
| ↳ `id` | number | Automatically assigned organization ID |
| ↳ `url` | string | API URL of the organization |
| ↳ `name` | string | Unique organization name |
| ↳ `domain_names` | array | Domain names for automatic user assignment |
| ↳ `details` | string | Details about the organization |
| ↳ `notes` | string | Notes about the organization |
| ↳ `group_id` | number | Group ID for auto-routing new tickets |
| ↳ `shared_tickets` | boolean | Whether end users can see each others tickets |
| ↳ `shared_comments` | boolean | Whether end users can see each others comments |
| ↳ `tags` | array | Tags associated with the organization |
| ↳ `organization_fields` | json | Custom organization fields \(dynamic key-value pairs\) |
| ↳ `created_at` | string | When the organization was created \(ISO 8601 format\) |
| ↳ `updated_at` | string | When the organization was last updated \(ISO 8601 format\) |
| ↳ `external_id` | string | External ID for linking to external records |
| `organization_id` | number | The updated organization ID | | `organization_id` | number | The updated organization ID |
### `zendesk_delete_organization` ### `zendesk_delete_organization`
@@ -1258,14 +650,14 @@ Unified search across tickets, users, and organizations in Zendesk
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `results` | array | Array of result objects |
| `paging` | object | Pagination information | | `paging` | object | Pagination information |
| ↳ `next_page` | string | URL for next page of results | | ↳ `next_page` | string | URL for next page of results |
| ↳ `previous_page` | string | URL for previous page of results | | ↳ `previous_page` | string | URL for previous page of results |
| ↳ `count` | number | Total count of items | | ↳ `count` | number | Total count of results |
| `metadata` | object | Response metadata | | `metadata` | object | Response metadata |
| ↳ `total_returned` | number | Number of items returned in this response | | ↳ `total_returned` | number | Number of results returned in this response |
| ↳ `has_more` | boolean | Whether more items are available | | ↳ `has_more` | boolean | Whether more results are available |
| `results` | array | Array of result objects \(tickets, users, or organizations depending on search query\) |
### `zendesk_search_count` ### `zendesk_search_count`

View File

@@ -52,10 +52,10 @@ Start a new conversation thread in Zep
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `threadId` | string | Thread identifier | | `threadId` | string | The thread ID |
| `userId` | string | Associated user ID | | `userId` | string | The user ID |
| `uuid` | string | Internal UUID | | `uuid` | string | Internal UUID |
| `createdAt` | string | Creation timestamp \(ISO 8601\) | | `createdAt` | string | Creation timestamp |
| `projectUuid` | string | Project UUID | | `projectUuid` | string | Project UUID |
### `zep_get_threads` ### `zep_get_threads`
@@ -77,15 +77,8 @@ List all conversation threads
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `threads` | array | Array of thread objects | | `threads` | array | Array of thread objects |
| ↳ `threadId` | string | Thread identifier | | `responseCount` | number | Number of threads in this response |
| ↳ `userId` | string | Associated user ID | | `totalCount` | number | Total number of threads available |
| ↳ `uuid` | string | Internal UUID |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) |
| ↳ `projectUuid` | string | Project UUID |
| ↳ `metadata` | object | Custom metadata \(dynamic key-value pairs\) |
| `responseCount` | number | Number of items in this response |
| `totalCount` | number | Total number of items available |
### `zep_delete_thread` ### `zep_delete_thread`
@@ -142,16 +135,8 @@ Retrieve messages from a thread
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `messages` | array | Array of message objects | | `messages` | array | Array of message objects |
| ↳ `uuid` | string | Message UUID | | `rowCount` | number | Number of messages in this response |
| ↳ `role` | string | Message role \(user, assistant, system, tool\) | | `totalCount` | number | Total number of messages in the thread |
| ↳ `roleType` | string | Role type \(AI, human, tool\) |
| ↳ `content` | string | Message content |
| ↳ `name` | string | Sender name |
| ↳ `createdAt` | string | Timestamp \(RFC3339 format\) |
| ↳ `metadata` | object | Message metadata \(dynamic key-value pairs\) |
| ↳ `processed` | boolean | Whether message has been processed |
| `rowCount` | number | Number of rows returned |
| `totalCount` | number | Total number of items available |
### `zep_add_messages` ### `zep_add_messages`
@@ -169,7 +154,7 @@ Add messages to an existing thread
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `threadId` | string | Thread identifier | | `threadId` | string | The thread ID |
| `added` | boolean | Whether messages were added successfully | | `added` | boolean | Whether messages were added successfully |
| `messageIds` | array | Array of added message UUIDs | | `messageIds` | array | Array of added message UUIDs |
@@ -192,13 +177,13 @@ Create a new user in Zep
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `userId` | string | User identifier | | `userId` | string | The user ID |
| `email` | string | User email address | | `email` | string | User email |
| `firstName` | string | User first name | | `firstName` | string | User first name |
| `lastName` | string | User last name | | `lastName` | string | User last name |
| `uuid` | string | Internal UUID | | `uuid` | string | Internal UUID |
| `createdAt` | string | Creation timestamp \(ISO 8601\) | | `createdAt` | string | Creation timestamp |
| `metadata` | object | User metadata \(dynamic key-value pairs\) | | `metadata` | object | User metadata |
### `zep_get_user` ### `zep_get_user`
@@ -215,14 +200,14 @@ Retrieve user information from Zep
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `userId` | string | User identifier | | `userId` | string | The user ID |
| `email` | string | User email address | | `email` | string | User email |
| `firstName` | string | User first name | | `firstName` | string | User first name |
| `lastName` | string | User last name | | `lastName` | string | User last name |
| `uuid` | string | Internal UUID | | `uuid` | string | Internal UUID |
| `createdAt` | string | Creation timestamp \(ISO 8601\) | | `createdAt` | string | Creation timestamp |
| `updatedAt` | string | Last update timestamp \(ISO 8601\) | | `updatedAt` | string | Last update timestamp |
| `metadata` | object | User metadata \(dynamic key-value pairs\) | | `metadata` | object | User metadata |
### `zep_get_user_threads` ### `zep_get_user_threads`
@@ -240,14 +225,7 @@ List all conversation threads for a specific user
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `threads` | array | Array of thread objects | | `threads` | array | Array of thread objects for this user |
| ↳ `threadId` | string | Thread identifier | | `totalCount` | number | Total number of threads returned |
| ↳ `userId` | string | Associated user ID |
| ↳ `uuid` | string | Internal UUID |
| ↳ `createdAt` | string | Creation timestamp \(ISO 8601\) |
| ↳ `updatedAt` | string | Last update timestamp \(ISO 8601\) |
| ↳ `projectUuid` | string | Project UUID |
| ↳ `metadata` | object | Custom metadata \(dynamic key-value pairs\) |
| `totalCount` | number | Total number of items available |

View File

@@ -72,46 +72,19 @@ Create a new Zoom meeting
| ↳ `id` | number | Meeting ID | | ↳ `id` | number | Meeting ID |
| ↳ `uuid` | string | Meeting UUID | | ↳ `uuid` | string | Meeting UUID |
| ↳ `host_id` | string | Host user ID | | ↳ `host_id` | string | Host user ID |
| ↳ `host_email` | string | Host email address | | ↳ `host_email` | string | Host email |
| ↳ `topic` | string | Meeting topic | | ↳ `topic` | string | Meeting topic |
| ↳ `type` | number | Meeting type: 1=instant, 2=scheduled, 3=recurring no fixed time, 8=recurring fixed time | | ↳ `type` | number | Meeting type |
| ↳ `status` | string | Meeting status \(e.g., waiting, started\) | | ↳ `status` | string | Meeting status |
| ↳ `start_time` | string | Start time in ISO 8601 format | | ↳ `start_time` | string | Start time |
| ↳ `duration` | number | Duration in minutes | | ↳ `duration` | number | Duration in minutes |
| ↳ `timezone` | string | Timezone \(e.g., America/Los_Angeles\) | | ↳ `timezone` | string | Timezone |
| ↳ `agenda` | string | Meeting agenda | | ↳ `agenda` | string | Meeting agenda |
| ↳ `created_at` | string | Creation timestamp in ISO 8601 format | | ↳ `created_at` | string | Creation timestamp |
| ↳ `start_url` | string | URL for host to start the meeting | | ↳ `start_url` | string | Host start URL |
| ↳ `join_url` | string | URL for participants to join the meeting | | ↳ `join_url` | string | Participant join URL |
| ↳ `password` | string | Meeting password | | ↳ `password` | string | Meeting password |
| ↳ `h323_password` | string | H.323/SIP room system password |
| ↳ `pstn_password` | string | PSTN password for phone dial-in |
| ↳ `encrypted_password` | string | Encrypted password for joining |
| ↳ `settings` | object | Meeting settings | | ↳ `settings` | object | Meeting settings |
| ↳ `host_video` | boolean | Start with host video on |
| ↳ `participant_video` | boolean | Start with participant video on |
| ↳ `join_before_host` | boolean | Allow participants to join before host |
| ↳ `mute_upon_entry` | boolean | Mute participants upon entry |
| ↳ `watermark` | boolean | Add watermark when viewing shared screen |
| ↳ `audio` | string | Audio options: both, telephony, or voip |
| ↳ `auto_recording` | string | Auto recording: local, cloud, or none |
| ↳ `waiting_room` | boolean | Enable waiting room |
| ↳ `meeting_authentication` | boolean | Require meeting authentication |
| ↳ `approval_type` | number | Approval type: 0=auto, 1=manual, 2=none |
| ↳ `recurrence` | object | Recurrence settings for recurring meetings |
| ↳ `type` | number | Recurrence type: 1=daily, 2=weekly, 3=monthly |
| ↳ `repeat_interval` | number | Interval between recurring meetings |
| ↳ `weekly_days` | string | Days of week for weekly recurrence \(1-7, comma-separated\) |
| ↳ `monthly_day` | number | Day of month for monthly recurrence |
| ↳ `monthly_week` | number | Week of month for monthly recurrence |
| ↳ `monthly_week_day` | number | Day of week for monthly recurrence |
| ↳ `end_times` | number | Number of occurrences |
| ↳ `end_date_time` | string | End date time in ISO 8601 format |
| ↳ `occurrences` | array | Meeting occurrences for recurring meetings |
| ↳ `occurrence_id` | string | Occurrence ID |
| ↳ `start_time` | string | Start time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `status` | string | Occurrence status |
### `zoom_list_meetings` ### `zoom_list_meetings`
@@ -131,23 +104,12 @@ List all meetings for a Zoom user
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `meetings` | array | List of meetings | | `meetings` | array | List of meetings |
| ↳ `id` | number | Meeting ID |
| ↳ `uuid` | string | Meeting UUID |
| ↳ `host_id` | string | Host user ID |
| ↳ `topic` | string | Meeting topic |
| ↳ `type` | number | Meeting type |
| ↳ `start_time` | string | Start time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `timezone` | string | Timezone |
| ↳ `agenda` | string | Meeting agenda |
| ↳ `created_at` | string | Creation timestamp |
| ↳ `join_url` | string | URL for participants to join |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `pageCount` | number | Total number of pages | | ↳ `pageCount` | number | Total number of pages |
| ↳ `pageNumber` | number | Current page number | | ↳ `pageNumber` | number | Current page number |
| ↳ `pageSize` | number | Number of records per page | | ↳ `pageSize` | number | Number of records per page |
| ↳ `totalRecords` | number | Total number of records | | ↳ `totalRecords` | number | Total number of records |
| ↳ `nextPageToken` | string | Token for next page of results | | ↳ `nextPageToken` | string | Token for next page |
### `zoom_get_meeting` ### `zoom_get_meeting`
@@ -169,46 +131,21 @@ Get details of a specific Zoom meeting
| ↳ `id` | number | Meeting ID | | ↳ `id` | number | Meeting ID |
| ↳ `uuid` | string | Meeting UUID | | ↳ `uuid` | string | Meeting UUID |
| ↳ `host_id` | string | Host user ID | | ↳ `host_id` | string | Host user ID |
| ↳ `host_email` | string | Host email address | | ↳ `host_email` | string | Host email |
| ↳ `topic` | string | Meeting topic | | ↳ `topic` | string | Meeting topic |
| ↳ `type` | number | Meeting type: 1=instant, 2=scheduled, 3=recurring no fixed time, 8=recurring fixed time | | ↳ `type` | number | Meeting type |
| ↳ `status` | string | Meeting status \(e.g., waiting, started\) | | ↳ `status` | string | Meeting status |
| ↳ `start_time` | string | Start time in ISO 8601 format | | ↳ `start_time` | string | Start time |
| ↳ `duration` | number | Duration in minutes | | ↳ `duration` | number | Duration in minutes |
| ↳ `timezone` | string | Timezone \(e.g., America/Los_Angeles\) | | ↳ `timezone` | string | Timezone |
| ↳ `agenda` | string | Meeting agenda | | ↳ `agenda` | string | Meeting agenda |
| ↳ `created_at` | string | Creation timestamp in ISO 8601 format | | ↳ `created_at` | string | Creation timestamp |
| ↳ `start_url` | string | URL for host to start the meeting | | ↳ `start_url` | string | Host start URL |
| ↳ `join_url` | string | URL for participants to join the meeting | | ↳ `join_url` | string | Participant join URL |
| ↳ `password` | string | Meeting password | | ↳ `password` | string | Meeting password |
| ↳ `h323_password` | string | H.323/SIP room system password |
| ↳ `pstn_password` | string | PSTN password for phone dial-in |
| ↳ `encrypted_password` | string | Encrypted password for joining |
| ↳ `settings` | object | Meeting settings | | ↳ `settings` | object | Meeting settings |
| ↳ `host_video` | boolean | Start with host video on | | ↳ `recurrence` | object | Recurrence settings |
| ↳ `participant_video` | boolean | Start with participant video on | | ↳ `occurrences` | array | Meeting occurrences |
| ↳ `join_before_host` | boolean | Allow participants to join before host |
| ↳ `mute_upon_entry` | boolean | Mute participants upon entry |
| ↳ `watermark` | boolean | Add watermark when viewing shared screen |
| ↳ `audio` | string | Audio options: both, telephony, or voip |
| ↳ `auto_recording` | string | Auto recording: local, cloud, or none |
| ↳ `waiting_room` | boolean | Enable waiting room |
| ↳ `meeting_authentication` | boolean | Require meeting authentication |
| ↳ `approval_type` | number | Approval type: 0=auto, 1=manual, 2=none |
| ↳ `recurrence` | object | Recurrence settings for recurring meetings |
| ↳ `type` | number | Recurrence type: 1=daily, 2=weekly, 3=monthly |
| ↳ `repeat_interval` | number | Interval between recurring meetings |
| ↳ `weekly_days` | string | Days of week for weekly recurrence \(1-7, comma-separated\) |
| ↳ `monthly_day` | number | Day of month for monthly recurrence |
| ↳ `monthly_week` | number | Week of month for monthly recurrence |
| ↳ `monthly_week_day` | number | Day of week for monthly recurrence |
| ↳ `end_times` | number | Number of occurrences |
| ↳ `end_date_time` | string | End date time in ISO 8601 format |
| ↳ `occurrences` | array | Meeting occurrences for recurring meetings |
| ↳ `occurrence_id` | string | Occurrence ID |
| ↳ `start_time` | string | Start time in ISO 8601 format |
| ↳ `duration` | number | Duration in minutes |
| ↳ `status` | string | Occurrence status |
### `zoom_update_meeting` ### `zoom_update_meeting`
@@ -294,35 +231,12 @@ List all cloud recordings for a Zoom user
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `recordings` | array | List of recordings | | `recordings` | array | List of recordings |
| ↳ `uuid` | string | Meeting UUID |
| ↳ `id` | number | Meeting ID |
| ↳ `account_id` | string | Account ID |
| ↳ `host_id` | string | Host user ID |
| ↳ `topic` | string | Meeting topic |
| ↳ `type` | number | Meeting type |
| ↳ `start_time` | string | Meeting start time |
| ↳ `duration` | number | Meeting duration in minutes |
| ↳ `total_size` | number | Total size of all recordings in bytes |
| ↳ `recording_count` | number | Number of recording files |
| ↳ `share_url` | string | URL to share recordings |
| ↳ `recording_files` | array | List of recording files |
| ↳ `id` | string | Recording file ID |
| ↳ `meeting_id` | string | Meeting ID associated with the recording |
| ↳ `recording_start` | string | Start time of the recording |
| ↳ `recording_end` | string | End time of the recording |
| ↳ `file_type` | string | Type of recording file \(MP4, M4A, etc.\) |
| ↳ `file_extension` | string | File extension |
| ↳ `file_size` | number | File size in bytes |
| ↳ `play_url` | string | URL to play the recording |
| ↳ `download_url` | string | URL to download the recording |
| ↳ `status` | string | Recording status |
| ↳ `recording_type` | string | Type of recording \(shared_screen, audio_only, etc.\) |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `from` | string | Start date of query range | | ↳ `from` | string | Start date of query range |
| ↳ `to` | string | End date of query range | | ↳ `to` | string | End date of query range |
| ↳ `pageSize` | number | Number of records per page | | ↳ `pageSize` | number | Number of records per page |
| ↳ `totalRecords` | number | Total number of records | | ↳ `totalRecords` | number | Total number of records |
| ↳ `nextPageToken` | string | Token for next page of results | | ↳ `nextPageToken` | string | Token for next page |
### `zoom_get_meeting_recordings` ### `zoom_get_meeting_recordings`
@@ -343,27 +257,12 @@ Get all recordings for a specific Zoom meeting
| `recording` | object | The meeting recording with all files | | `recording` | object | The meeting recording with all files |
| ↳ `uuid` | string | Meeting UUID | | ↳ `uuid` | string | Meeting UUID |
| ↳ `id` | number | Meeting ID | | ↳ `id` | number | Meeting ID |
| ↳ `account_id` | string | Account ID |
| ↳ `host_id` | string | Host user ID |
| ↳ `topic` | string | Meeting topic | | ↳ `topic` | string | Meeting topic |
| ↳ `type` | number | Meeting type |
| ↳ `start_time` | string | Meeting start time | | ↳ `start_time` | string | Meeting start time |
| ↳ `duration` | number | Meeting duration in minutes | | ↳ `duration` | number | Meeting duration in minutes |
| ↳ `total_size` | number | Total size of all recordings in bytes | | ↳ `total_size` | number | Total size of recordings in bytes |
| ↳ `recording_count` | number | Number of recording files |
| ↳ `share_url` | string | URL to share recordings | | ↳ `share_url` | string | URL to share recordings |
| ↳ `recording_files` | array | List of recording files | | ↳ `recording_files` | array | List of recording files |
| ↳ `id` | string | Recording file ID |
| ↳ `meeting_id` | string | Meeting ID associated with the recording |
| ↳ `recording_start` | string | Start time of the recording |
| ↳ `recording_end` | string | End time of the recording |
| ↳ `file_type` | string | Type of recording file \(MP4, M4A, etc.\) |
| ↳ `file_extension` | string | File extension |
| ↳ `file_size` | number | File size in bytes |
| ↳ `play_url` | string | URL to play the recording |
| ↳ `download_url` | string | URL to download the recording |
| ↳ `status` | string | Recording status |
| ↳ `recording_type` | string | Type of recording \(shared_screen, audio_only, etc.\) |
### `zoom_delete_recording` ### `zoom_delete_recording`
@@ -400,19 +299,9 @@ List participants from a past Zoom meeting
| Parameter | Type | Description | | Parameter | Type | Description |
| --------- | ---- | ----------- | | --------- | ---- | ----------- |
| `participants` | array | List of meeting participants | | `participants` | array | List of meeting participants |
| ↳ `id` | string | Participant unique identifier |
| ↳ `user_id` | string | User ID if registered Zoom user |
| ↳ `name` | string | Participant display name |
| ↳ `user_email` | string | Participant email address |
| ↳ `join_time` | string | Time when participant joined \(ISO 8601\) |
| ↳ `leave_time` | string | Time when participant left \(ISO 8601\) |
| ↳ `duration` | number | Duration in seconds participant was in meeting |
| ↳ `attentiveness_score` | string | Attentiveness score \(deprecated\) |
| ↳ `failover` | boolean | Whether participant failed over to another data center |
| ↳ `status` | string | Participant status |
| `pageInfo` | object | Pagination information | | `pageInfo` | object | Pagination information |
| ↳ `pageSize` | number | Number of records per page | | ↳ `pageSize` | number | Number of records per page |
| ↳ `totalRecords` | number | Total number of records | | ↳ `totalRecords` | number | Total number of records |
| ↳ `nextPageToken` | string | Token for next page of results | | ↳ `nextPageToken` | string | Token for next page |

View File

@@ -4,22 +4,22 @@ import { auth } from '@/lib/auth'
import { isAuthDisabled } from '@/lib/core/config/feature-flags' import { isAuthDisabled } from '@/lib/core/config/feature-flags'
export async function POST() { export async function POST() {
try {
if (isAuthDisabled) { if (isAuthDisabled) {
return NextResponse.json({ token: 'anonymous-socket-token' }) return NextResponse.json({ token: 'anonymous-socket-token' })
} }
try {
const hdrs = await headers() const hdrs = await headers()
const response = await auth.api.generateOneTimeToken({ const response = await auth.api.generateOneTimeToken({
headers: hdrs, headers: hdrs,
}) })
if (!response?.token) { if (!response) {
return NextResponse.json({ error: 'Authentication required' }, { status: 401 }) return NextResponse.json({ error: 'Failed to generate token' }, { status: 500 })
} }
return NextResponse.json({ token: response.token }) return NextResponse.json({ token: response.token })
} catch { } catch (error) {
return NextResponse.json({ error: 'Failed to generate token' }, { status: 500 }) return NextResponse.json({ error: 'Failed to generate token' }, { status: 500 })
} }
} }

View File

@@ -56,7 +56,7 @@ export async function GET(_request: NextRequest, { params }: { params: Promise<{
deploymentVersionName: workflowDeploymentVersion.name, deploymentVersionName: workflowDeploymentVersion.name,
}) })
.from(workflowExecutionLogs) .from(workflowExecutionLogs)
.leftJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id)) .innerJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id))
.leftJoin( .leftJoin(
workflowDeploymentVersion, workflowDeploymentVersion,
eq(workflowDeploymentVersion.id, workflowExecutionLogs.deploymentVersionId) eq(workflowDeploymentVersion.id, workflowExecutionLogs.deploymentVersionId)
@@ -65,7 +65,7 @@ export async function GET(_request: NextRequest, { params }: { params: Promise<{
permissions, permissions,
and( and(
eq(permissions.entityType, 'workspace'), eq(permissions.entityType, 'workspace'),
eq(permissions.entityId, workflowExecutionLogs.workspaceId), eq(permissions.entityId, workflow.workspaceId),
eq(permissions.userId, userId) eq(permissions.userId, userId)
) )
) )
@@ -77,8 +77,7 @@ export async function GET(_request: NextRequest, { params }: { params: Promise<{
return NextResponse.json({ error: 'Not found' }, { status: 404 }) return NextResponse.json({ error: 'Not found' }, { status: 404 })
} }
const workflowSummary = log.workflowId const workflowSummary = {
? {
id: log.workflowId, id: log.workflowId,
name: log.workflowName, name: log.workflowName,
description: log.workflowDescription, description: log.workflowDescription,
@@ -89,7 +88,6 @@ export async function GET(_request: NextRequest, { params }: { params: Promise<{
createdAt: log.workflowCreatedAt, createdAt: log.workflowCreatedAt,
updatedAt: log.workflowUpdatedAt, updatedAt: log.workflowUpdatedAt,
} }
: null
const response = { const response = {
id: log.id, id: log.id,

View File

@@ -1,5 +1,5 @@
import { db } from '@sim/db' import { db } from '@sim/db'
import { subscription, user, workflowExecutionLogs, workspace } from '@sim/db/schema' import { subscription, user, workflow, workflowExecutionLogs } from '@sim/db/schema'
import { createLogger } from '@sim/logger' import { createLogger } from '@sim/logger'
import { and, eq, inArray, lt, sql } from 'drizzle-orm' import { and, eq, inArray, lt, sql } from 'drizzle-orm'
import { type NextRequest, NextResponse } from 'next/server' import { type NextRequest, NextResponse } from 'next/server'
@@ -40,17 +40,17 @@ export async function GET(request: NextRequest) {
const freeUserIds = freeUsers.map((u) => u.userId) const freeUserIds = freeUsers.map((u) => u.userId)
const workspacesQuery = await db const workflowsQuery = await db
.select({ id: workspace.id }) .select({ id: workflow.id })
.from(workspace) .from(workflow)
.where(inArray(workspace.billedAccountUserId, freeUserIds)) .where(inArray(workflow.userId, freeUserIds))
if (workspacesQuery.length === 0) { if (workflowsQuery.length === 0) {
logger.info('No workspaces found for free users') logger.info('No workflows found for free users')
return NextResponse.json({ message: 'No workspaces found for cleanup' }) return NextResponse.json({ message: 'No workflows found for cleanup' })
} }
const workspaceIds = workspacesQuery.map((w) => w.id) const workflowIds = workflowsQuery.map((w) => w.id)
const results = { const results = {
enhancedLogs: { enhancedLogs: {
@@ -77,7 +77,7 @@ export async function GET(request: NextRequest) {
let batchesProcessed = 0 let batchesProcessed = 0
let hasMoreLogs = true let hasMoreLogs = true
logger.info(`Starting enhanced logs cleanup for ${workspaceIds.length} workspaces`) logger.info(`Starting enhanced logs cleanup for ${workflowIds.length} workflows`)
while (hasMoreLogs && batchesProcessed < MAX_BATCHES) { while (hasMoreLogs && batchesProcessed < MAX_BATCHES) {
const oldEnhancedLogs = await db const oldEnhancedLogs = await db
@@ -99,7 +99,7 @@ export async function GET(request: NextRequest) {
.from(workflowExecutionLogs) .from(workflowExecutionLogs)
.where( .where(
and( and(
inArray(workflowExecutionLogs.workspaceId, workspaceIds), inArray(workflowExecutionLogs.workflowId, workflowIds),
lt(workflowExecutionLogs.createdAt, retentionDate) lt(workflowExecutionLogs.createdAt, retentionDate)
) )
) )
@@ -127,7 +127,7 @@ export async function GET(request: NextRequest) {
customKey: enhancedLogKey, customKey: enhancedLogKey,
metadata: { metadata: {
logId: String(log.id), logId: String(log.id),
workflowId: String(log.workflowId ?? ''), workflowId: String(log.workflowId),
executionId: String(log.executionId), executionId: String(log.executionId),
logType: 'enhanced', logType: 'enhanced',
archivedAt: new Date().toISOString(), archivedAt: new Date().toISOString(),

View File

@@ -6,11 +6,10 @@ import {
workflowExecutionSnapshots, workflowExecutionSnapshots,
} from '@sim/db/schema' } from '@sim/db/schema'
import { createLogger } from '@sim/logger' import { createLogger } from '@sim/logger'
import { and, eq, inArray } from 'drizzle-orm' import { and, eq } from 'drizzle-orm'
import { type NextRequest, NextResponse } from 'next/server' import { type NextRequest, NextResponse } from 'next/server'
import { checkHybridAuth } from '@/lib/auth/hybrid' import { checkHybridAuth } from '@/lib/auth/hybrid'
import { generateRequestId } from '@/lib/core/utils/request' import { generateRequestId } from '@/lib/core/utils/request'
import type { TraceSpan, WorkflowExecutionLog } from '@/lib/logs/types'
const logger = createLogger('LogsByExecutionIdAPI') const logger = createLogger('LogsByExecutionIdAPI')
@@ -49,15 +48,14 @@ export async function GET(
endedAt: workflowExecutionLogs.endedAt, endedAt: workflowExecutionLogs.endedAt,
totalDurationMs: workflowExecutionLogs.totalDurationMs, totalDurationMs: workflowExecutionLogs.totalDurationMs,
cost: workflowExecutionLogs.cost, cost: workflowExecutionLogs.cost,
executionData: workflowExecutionLogs.executionData,
}) })
.from(workflowExecutionLogs) .from(workflowExecutionLogs)
.leftJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id)) .innerJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id))
.innerJoin( .innerJoin(
permissions, permissions,
and( and(
eq(permissions.entityType, 'workspace'), eq(permissions.entityType, 'workspace'),
eq(permissions.entityId, workflowExecutionLogs.workspaceId), eq(permissions.entityId, workflow.workspaceId),
eq(permissions.userId, authenticatedUserId) eq(permissions.userId, authenticatedUserId)
) )
) )
@@ -80,42 +78,10 @@ export async function GET(
return NextResponse.json({ error: 'Workflow state snapshot not found' }, { status: 404 }) return NextResponse.json({ error: 'Workflow state snapshot not found' }, { status: 404 })
} }
const executionData = workflowLog.executionData as WorkflowExecutionLog['executionData']
const traceSpans = (executionData?.traceSpans as TraceSpan[]) || []
const childSnapshotIds = new Set<string>()
const collectSnapshotIds = (spans: TraceSpan[]) => {
spans.forEach((span) => {
const snapshotId = span.childWorkflowSnapshotId
if (typeof snapshotId === 'string') {
childSnapshotIds.add(snapshotId)
}
if (span.children?.length) {
collectSnapshotIds(span.children)
}
})
}
if (traceSpans.length > 0) {
collectSnapshotIds(traceSpans)
}
const childWorkflowSnapshots =
childSnapshotIds.size > 0
? await db
.select()
.from(workflowExecutionSnapshots)
.where(inArray(workflowExecutionSnapshots.id, Array.from(childSnapshotIds)))
: []
const childSnapshotMap = childWorkflowSnapshots.reduce<Record<string, unknown>>((acc, snap) => {
acc[snap.id] = snap.stateData
return acc
}, {})
const response = { const response = {
executionId, executionId,
workflowId: workflowLog.workflowId, workflowId: workflowLog.workflowId,
workflowState: snapshot.stateData, workflowState: snapshot.stateData,
childWorkflowSnapshots: childSnapshotMap,
executionMetadata: { executionMetadata: {
trigger: workflowLog.trigger, trigger: workflowLog.trigger,
startedAt: workflowLog.startedAt.toISOString(), startedAt: workflowLog.startedAt.toISOString(),

View File

@@ -1,7 +1,7 @@
import { db } from '@sim/db' import { db } from '@sim/db'
import { permissions, workflow, workflowExecutionLogs } from '@sim/db/schema' import { permissions, workflow, workflowExecutionLogs } from '@sim/db/schema'
import { createLogger } from '@sim/logger' import { createLogger } from '@sim/logger'
import { and, desc, eq, sql } from 'drizzle-orm' import { and, desc, eq } from 'drizzle-orm'
import { type NextRequest, NextResponse } from 'next/server' import { type NextRequest, NextResponse } from 'next/server'
import { getSession } from '@/lib/auth' import { getSession } from '@/lib/auth'
import { buildFilterConditions, LogFilterParamsSchema } from '@/lib/logs/filters' import { buildFilterConditions, LogFilterParamsSchema } from '@/lib/logs/filters'
@@ -41,7 +41,7 @@ export async function GET(request: NextRequest) {
totalDurationMs: workflowExecutionLogs.totalDurationMs, totalDurationMs: workflowExecutionLogs.totalDurationMs,
cost: workflowExecutionLogs.cost, cost: workflowExecutionLogs.cost,
executionData: workflowExecutionLogs.executionData, executionData: workflowExecutionLogs.executionData,
workflowName: sql<string>`COALESCE(${workflow.name}, 'Deleted Workflow')`, workflowName: workflow.name,
} }
const workspaceCondition = eq(workflowExecutionLogs.workspaceId, params.workspaceId) const workspaceCondition = eq(workflowExecutionLogs.workspaceId, params.workspaceId)
@@ -74,7 +74,7 @@ export async function GET(request: NextRequest) {
const rows = await db const rows = await db
.select(selectColumns) .select(selectColumns)
.from(workflowExecutionLogs) .from(workflowExecutionLogs)
.leftJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id)) .innerJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id))
.innerJoin( .innerJoin(
permissions, permissions,
and( and(

View File

@@ -116,7 +116,7 @@ export async function GET(request: NextRequest) {
workflowDeploymentVersion, workflowDeploymentVersion,
eq(workflowDeploymentVersion.id, workflowExecutionLogs.deploymentVersionId) eq(workflowDeploymentVersion.id, workflowExecutionLogs.deploymentVersionId)
) )
.leftJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id)) .innerJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id))
.innerJoin( .innerJoin(
permissions, permissions,
and( and(
@@ -190,7 +190,7 @@ export async function GET(request: NextRequest) {
pausedExecutions, pausedExecutions,
eq(pausedExecutions.executionId, workflowExecutionLogs.executionId) eq(pausedExecutions.executionId, workflowExecutionLogs.executionId)
) )
.leftJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id)) .innerJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id))
.innerJoin( .innerJoin(
permissions, permissions,
and( and(
@@ -314,8 +314,7 @@ export async function GET(request: NextRequest) {
} catch {} } catch {}
} }
const workflowSummary = log.workflowId const workflowSummary = {
? {
id: log.workflowId, id: log.workflowId,
name: log.workflowName, name: log.workflowName,
description: log.workflowDescription, description: log.workflowDescription,
@@ -326,7 +325,6 @@ export async function GET(request: NextRequest) {
createdAt: log.workflowCreatedAt, createdAt: log.workflowCreatedAt,
updatedAt: log.workflowUpdatedAt, updatedAt: log.workflowUpdatedAt,
} }
: null
return { return {
id: log.id, id: log.id,

View File

@@ -72,7 +72,7 @@ export async function GET(request: NextRequest) {
maxTime: sql<string>`MAX(${workflowExecutionLogs.startedAt})`, maxTime: sql<string>`MAX(${workflowExecutionLogs.startedAt})`,
}) })
.from(workflowExecutionLogs) .from(workflowExecutionLogs)
.leftJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id)) .innerJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id))
.innerJoin( .innerJoin(
permissions, permissions,
and( and(
@@ -103,8 +103,8 @@ export async function GET(request: NextRequest) {
const statsQuery = await db const statsQuery = await db
.select({ .select({
workflowId: sql<string>`COALESCE(${workflowExecutionLogs.workflowId}, 'deleted')`, workflowId: workflowExecutionLogs.workflowId,
workflowName: sql<string>`COALESCE(${workflow.name}, 'Deleted Workflow')`, workflowName: workflow.name,
segmentIndex: segmentIndex:
sql<number>`FLOOR(EXTRACT(EPOCH FROM (${workflowExecutionLogs.startedAt} - ${startTimeIso}::timestamp)) * 1000 / ${segmentMs})`.as( sql<number>`FLOOR(EXTRACT(EPOCH FROM (${workflowExecutionLogs.startedAt} - ${startTimeIso}::timestamp)) * 1000 / ${segmentMs})`.as(
'segment_index' 'segment_index'
@@ -120,7 +120,7 @@ export async function GET(request: NextRequest) {
), ),
}) })
.from(workflowExecutionLogs) .from(workflowExecutionLogs)
.leftJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id)) .innerJoin(workflow, eq(workflowExecutionLogs.workflowId, workflow.id))
.innerJoin( .innerJoin(
permissions, permissions,
and( and(
@@ -130,11 +130,7 @@ export async function GET(request: NextRequest) {
) )
) )
.where(whereCondition) .where(whereCondition)
.groupBy( .groupBy(workflowExecutionLogs.workflowId, workflow.name, sql`segment_index`)
sql`COALESCE(${workflowExecutionLogs.workflowId}, 'deleted')`,
sql`COALESCE(${workflow.name}, 'Deleted Workflow')`,
sql`segment_index`
)
const workflowMap = new Map< const workflowMap = new Map<
string, string,

View File

@@ -9,7 +9,7 @@ import { hasAccessControlAccess } from '@/lib/billing'
import { import {
type PermissionGroupConfig, type PermissionGroupConfig,
parsePermissionGroupConfig, parsePermissionGroupConfig,
} from '@/lib/permission-groups/types' } from '@/ee/access-control/lib/types'
const logger = createLogger('PermissionGroup') const logger = createLogger('PermissionGroup')

View File

@@ -10,7 +10,7 @@ import {
DEFAULT_PERMISSION_GROUP_CONFIG, DEFAULT_PERMISSION_GROUP_CONFIG,
type PermissionGroupConfig, type PermissionGroupConfig,
parsePermissionGroupConfig, parsePermissionGroupConfig,
} from '@/lib/permission-groups/types' } from '@/ee/access-control/lib/types'
const logger = createLogger('PermissionGroups') const logger = createLogger('PermissionGroups')

View File

@@ -4,7 +4,7 @@ import { and, eq } from 'drizzle-orm'
import { NextResponse } from 'next/server' import { NextResponse } from 'next/server'
import { getSession } from '@/lib/auth' import { getSession } from '@/lib/auth'
import { isOrganizationOnEnterprisePlan } from '@/lib/billing' import { isOrganizationOnEnterprisePlan } from '@/lib/billing'
import { parsePermissionGroupConfig } from '@/lib/permission-groups/types' import { parsePermissionGroupConfig } from '@/ee/access-control/lib/types'
export async function GET(req: Request) { export async function GET(req: Request) {
const session = await getSession() const session = await getSession()

View File

@@ -97,10 +97,7 @@ export async function POST(
const socketServerUrl = env.SOCKET_SERVER_URL || 'http://localhost:3002' const socketServerUrl = env.SOCKET_SERVER_URL || 'http://localhost:3002'
await fetch(`${socketServerUrl}/api/workflow-reverted`, { await fetch(`${socketServerUrl}/api/workflow-reverted`, {
method: 'POST', method: 'POST',
headers: { headers: { 'Content-Type': 'application/json' },
'Content-Type': 'application/json',
'x-api-key': env.INTERNAL_API_SECRET,
},
body: JSON.stringify({ workflowId: id, timestamp: Date.now() }), body: JSON.stringify({ workflowId: id, timestamp: Date.now() }),
}) })
} catch (e) { } catch (e) {

View File

@@ -616,8 +616,6 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
input: callbackData.input, input: callbackData.input,
error: callbackData.output.error, error: callbackData.output.error,
durationMs: callbackData.executionTime || 0, durationMs: callbackData.executionTime || 0,
startedAt: callbackData.startedAt,
endedAt: callbackData.endedAt,
...(iterationContext && { ...(iterationContext && {
iterationCurrent: iterationContext.iterationCurrent, iterationCurrent: iterationContext.iterationCurrent,
iterationTotal: iterationContext.iterationTotal, iterationTotal: iterationContext.iterationTotal,
@@ -643,8 +641,6 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
input: callbackData.input, input: callbackData.input,
output: callbackData.output, output: callbackData.output,
durationMs: callbackData.executionTime || 0, durationMs: callbackData.executionTime || 0,
startedAt: callbackData.startedAt,
endedAt: callbackData.endedAt,
...(iterationContext && { ...(iterationContext && {
iterationCurrent: iterationContext.iterationCurrent, iterationCurrent: iterationContext.iterationCurrent,
iterationTotal: iterationContext.iterationTotal, iterationTotal: iterationContext.iterationTotal,

View File

@@ -133,7 +133,9 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
const finalWorkflowData = { const finalWorkflowData = {
...workflowData, ...workflowData,
state: { state: {
// Default values for expected properties
deploymentStatuses: {}, deploymentStatuses: {},
// Data from normalized tables
blocks: normalizedData.blocks, blocks: normalizedData.blocks,
edges: normalizedData.edges, edges: normalizedData.edges,
loops: normalizedData.loops, loops: normalizedData.loops,
@@ -141,11 +143,8 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
lastSaved: Date.now(), lastSaved: Date.now(),
isDeployed: workflowData.isDeployed || false, isDeployed: workflowData.isDeployed || false,
deployedAt: workflowData.deployedAt, deployedAt: workflowData.deployedAt,
metadata: {
name: workflowData.name,
description: workflowData.description,
},
}, },
// Include workflow variables
variables: workflowData.variables || {}, variables: workflowData.variables || {},
} }
@@ -167,10 +166,6 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
lastSaved: Date.now(), lastSaved: Date.now(),
isDeployed: workflowData.isDeployed || false, isDeployed: workflowData.isDeployed || false,
deployedAt: workflowData.deployedAt, deployedAt: workflowData.deployedAt,
metadata: {
name: workflowData.name,
description: workflowData.description,
},
}, },
variables: workflowData.variables || {}, variables: workflowData.variables || {},
} }
@@ -361,10 +356,7 @@ export async function DELETE(
const socketUrl = env.SOCKET_SERVER_URL || 'http://localhost:3002' const socketUrl = env.SOCKET_SERVER_URL || 'http://localhost:3002'
const socketResponse = await fetch(`${socketUrl}/api/workflow-deleted`, { const socketResponse = await fetch(`${socketUrl}/api/workflow-deleted`, {
method: 'POST', method: 'POST',
headers: { headers: { 'Content-Type': 'application/json' },
'Content-Type': 'application/json',
'x-api-key': env.INTERNAL_API_SECRET,
},
body: JSON.stringify({ workflowId }), body: JSON.stringify({ workflowId }),
}) })

View File

@@ -254,10 +254,7 @@ export async function PUT(request: NextRequest, { params }: { params: Promise<{
const socketUrl = env.SOCKET_SERVER_URL || 'http://localhost:3002' const socketUrl = env.SOCKET_SERVER_URL || 'http://localhost:3002'
const notifyResponse = await fetch(`${socketUrl}/api/workflow-updated`, { const notifyResponse = await fetch(`${socketUrl}/api/workflow-updated`, {
method: 'POST', method: 'POST',
headers: { headers: { 'Content-Type': 'application/json' },
'Content-Type': 'application/json',
'x-api-key': env.INTERNAL_API_SECRET,
},
body: JSON.stringify({ workflowId }), body: JSON.stringify({ workflowId }),
}) })

View File

@@ -215,7 +215,6 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
} }
for (const log of logs) { for (const log of logs) {
if (!log.workflowId) continue // Skip logs for deleted workflows
const idx = Math.min( const idx = Math.min(
segments - 1, segments - 1,
Math.max(0, Math.floor((log.startedAt.getTime() - start.getTime()) / segmentMs)) Math.max(0, Math.floor((log.startedAt.getTime() - start.getTime()) / segmentMs))

View File

@@ -24,7 +24,6 @@ import {
Cursor, Cursor,
DatePicker, DatePicker,
DocumentAttachment, DocumentAttachment,
Download,
Duplicate, Duplicate,
Expand, Expand,
Eye, Eye,
@@ -52,7 +51,6 @@ import {
NoWrap, NoWrap,
PanelLeft, PanelLeft,
Play, Play,
PlayOutline,
Popover, Popover,
PopoverBackButton, PopoverBackButton,
PopoverContent, PopoverContent,
@@ -216,9 +214,6 @@ export default function PlaygroundPage() {
<VariantRow label='primary'> <VariantRow label='primary'>
<Button variant='primary'>Primary</Button> <Button variant='primary'>Primary</Button>
</VariantRow> </VariantRow>
<VariantRow label='destructive'>
<Button variant='destructive'>Destructive</Button>
</VariantRow>
<VariantRow label='secondary'> <VariantRow label='secondary'>
<Button variant='secondary'>Secondary</Button> <Button variant='secondary'>Secondary</Button>
</VariantRow> </VariantRow>
@@ -295,9 +290,6 @@ export default function PlaygroundPage() {
<VariantRow label='outline'> <VariantRow label='outline'>
<Badge variant='outline'>Outline</Badge> <Badge variant='outline'>Outline</Badge>
</VariantRow> </VariantRow>
<VariantRow label='type'>
<Badge variant='type'>Type</Badge>
</VariantRow>
<VariantRow label='green'> <VariantRow label='green'>
<Badge variant='green'>Green</Badge> <Badge variant='green'>Green</Badge>
<Badge variant='green' dot> <Badge variant='green' dot>
@@ -331,9 +323,6 @@ export default function PlaygroundPage() {
<VariantRow label='teal'> <VariantRow label='teal'>
<Badge variant='teal'>Teal</Badge> <Badge variant='teal'>Teal</Badge>
</VariantRow> </VariantRow>
<VariantRow label='cyan'>
<Badge variant='cyan'>Cyan</Badge>
</VariantRow>
<VariantRow label='gray'> <VariantRow label='gray'>
<Badge variant='gray'>Gray</Badge> <Badge variant='gray'>Gray</Badge>
</VariantRow> </VariantRow>
@@ -1007,7 +996,6 @@ export default function PlaygroundPage() {
{ Icon: Copy, name: 'Copy' }, { Icon: Copy, name: 'Copy' },
{ Icon: Cursor, name: 'Cursor' }, { Icon: Cursor, name: 'Cursor' },
{ Icon: DocumentAttachment, name: 'DocumentAttachment' }, { Icon: DocumentAttachment, name: 'DocumentAttachment' },
{ Icon: Download, name: 'Download' },
{ Icon: Duplicate, name: 'Duplicate' }, { Icon: Duplicate, name: 'Duplicate' },
{ Icon: Expand, name: 'Expand' }, { Icon: Expand, name: 'Expand' },
{ Icon: Eye, name: 'Eye' }, { Icon: Eye, name: 'Eye' },
@@ -1023,7 +1011,6 @@ export default function PlaygroundPage() {
{ Icon: NoWrap, name: 'NoWrap' }, { Icon: NoWrap, name: 'NoWrap' },
{ Icon: PanelLeft, name: 'PanelLeft' }, { Icon: PanelLeft, name: 'PanelLeft' },
{ Icon: Play, name: 'Play' }, { Icon: Play, name: 'Play' },
{ Icon: PlayOutline, name: 'PlayOutline' },
{ Icon: Redo, name: 'Redo' }, { Icon: Redo, name: 'Redo' },
{ Icon: Rocket, name: 'Rocket' }, { Icon: Rocket, name: 'Rocket' },
{ Icon: Trash, name: 'Trash' }, { Icon: Trash, name: 'Trash' },

View File

@@ -1,9 +1,5 @@
import { memo } from 'react' import { memo } from 'react'
import { cn } from '@/lib/core/utils/cn' import { cn } from '@/lib/core/utils/cn'
import {
DELETED_WORKFLOW_COLOR,
DELETED_WORKFLOW_LABEL,
} from '@/app/workspace/[workspaceId]/logs/utils'
import { useWorkflowRegistry } from '@/stores/workflows/registry/store' import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
import { StatusBar, type StatusBarSegment } from '..' import { StatusBar, type StatusBarSegment } from '..'
@@ -65,32 +61,22 @@ export function WorkflowsList({
<div> <div>
{filteredExecutions.map((workflow, idx) => { {filteredExecutions.map((workflow, idx) => {
const isSelected = expandedWorkflowId === workflow.workflowId const isSelected = expandedWorkflowId === workflow.workflowId
const isDeletedWorkflow = workflow.workflowName === DELETED_WORKFLOW_LABEL
const workflowColor = isDeletedWorkflow
? DELETED_WORKFLOW_COLOR
: workflows[workflow.workflowId]?.color || '#64748b'
const canToggle = !isDeletedWorkflow
return ( return (
<div <div
key={workflow.workflowId} key={workflow.workflowId}
className={cn( className={cn(
'flex h-[44px] items-center gap-[16px] px-[24px] hover:bg-[var(--surface-3)] dark:hover:bg-[var(--surface-4)]', 'flex h-[44px] cursor-pointer items-center gap-[16px] px-[24px] hover:bg-[var(--surface-3)] dark:hover:bg-[var(--surface-4)]',
canToggle ? 'cursor-pointer' : 'cursor-default',
isSelected && 'bg-[var(--surface-3)] dark:bg-[var(--surface-4)]' isSelected && 'bg-[var(--surface-3)] dark:bg-[var(--surface-4)]'
)} )}
onClick={() => { onClick={() => onToggleWorkflow(workflow.workflowId)}
if (canToggle) {
onToggleWorkflow(workflow.workflowId)
}
}}
> >
{/* Workflow name with color */} {/* Workflow name with color */}
<div className='flex w-[160px] flex-shrink-0 items-center gap-[8px] pr-[8px]'> <div className='flex w-[160px] flex-shrink-0 items-center gap-[8px] pr-[8px]'>
<div <div
className='h-[10px] w-[10px] flex-shrink-0 rounded-[3px]' className='h-[10px] w-[10px] flex-shrink-0 rounded-[3px]'
style={{ style={{
backgroundColor: workflowColor, backgroundColor: workflows[workflow.workflowId]?.color || '#64748b',
}} }}
/> />
<span className='min-w-0 truncate font-medium text-[12px] text-[var(--text-primary)]'> <span className='min-w-0 truncate font-medium text-[12px] text-[var(--text-primary)]'>

View File

@@ -80,9 +80,6 @@ export function ExecutionSnapshot({
}, [executionId, closeMenu]) }, [executionId, closeMenu])
const workflowState = data?.workflowState as WorkflowState | undefined const workflowState = data?.workflowState as WorkflowState | undefined
const childWorkflowSnapshots = data?.childWorkflowSnapshots as
| Record<string, WorkflowState>
| undefined
const renderContent = () => { const renderContent = () => {
if (isLoading) { if (isLoading) {
@@ -151,7 +148,6 @@ export function ExecutionSnapshot({
key={executionId} key={executionId}
workflowState={workflowState} workflowState={workflowState}
traceSpans={traceSpans} traceSpans={traceSpans}
childWorkflowSnapshots={childWorkflowSnapshots}
className={className} className={className}
height={height} height={height}
width={width} width={width}

View File

@@ -26,8 +26,6 @@ import {
} from '@/app/workspace/[workspaceId]/logs/components' } from '@/app/workspace/[workspaceId]/logs/components'
import { useLogDetailsResize } from '@/app/workspace/[workspaceId]/logs/hooks' import { useLogDetailsResize } from '@/app/workspace/[workspaceId]/logs/hooks'
import { import {
DELETED_WORKFLOW_COLOR,
DELETED_WORKFLOW_LABEL,
formatDate, formatDate,
getDisplayStatus, getDisplayStatus,
StatusBadge, StatusBadge,
@@ -388,6 +386,7 @@ export const LogDetails = memo(function LogDetails({
</div> </div>
{/* Workflow Card */} {/* Workflow Card */}
{log.workflow && (
<div className='flex w-0 min-w-0 flex-1 flex-col gap-[8px]'> <div className='flex w-0 min-w-0 flex-1 flex-col gap-[8px]'>
<div className='font-medium text-[12px] text-[var(--text-tertiary)]'> <div className='font-medium text-[12px] text-[var(--text-tertiary)]'>
Workflow Workflow
@@ -395,18 +394,14 @@ export const LogDetails = memo(function LogDetails({
<div className='flex min-w-0 items-center gap-[8px]'> <div className='flex min-w-0 items-center gap-[8px]'>
<div <div
className='h-[10px] w-[10px] flex-shrink-0 rounded-[3px]' className='h-[10px] w-[10px] flex-shrink-0 rounded-[3px]'
style={{ style={{ backgroundColor: log.workflow?.color }}
backgroundColor:
log.workflow?.color ||
(!log.workflowId ? DELETED_WORKFLOW_COLOR : undefined),
}}
/> />
<span className='min-w-0 flex-1 truncate font-medium text-[14px] text-[var(--text-secondary)]'> <span className='min-w-0 flex-1 truncate font-medium text-[14px] text-[var(--text-secondary)]'>
{log.workflow?.name || {log.workflow.name}
(!log.workflowId ? DELETED_WORKFLOW_LABEL : 'Unknown')}
</span> </span>
</div> </div>
</div> </div>
)}
</div> </div>
{/* Execution ID */} {/* Execution ID */}

View File

@@ -7,8 +7,6 @@ import { List, type RowComponentProps, useListRef } from 'react-window'
import { Badge, buttonVariants } from '@/components/emcn' import { Badge, buttonVariants } from '@/components/emcn'
import { cn } from '@/lib/core/utils/cn' import { cn } from '@/lib/core/utils/cn'
import { import {
DELETED_WORKFLOW_COLOR,
DELETED_WORKFLOW_LABEL,
formatDate, formatDate,
formatDuration, formatDuration,
getDisplayStatus, getDisplayStatus,
@@ -35,11 +33,6 @@ interface LogRowProps {
const LogRow = memo( const LogRow = memo(
function LogRow({ log, isSelected, onClick, onContextMenu, selectedRowRef }: LogRowProps) { function LogRow({ log, isSelected, onClick, onContextMenu, selectedRowRef }: LogRowProps) {
const formattedDate = useMemo(() => formatDate(log.createdAt), [log.createdAt]) const formattedDate = useMemo(() => formatDate(log.createdAt), [log.createdAt])
const isDeletedWorkflow = !log.workflow?.id && !log.workflowId
const workflowName = isDeletedWorkflow
? DELETED_WORKFLOW_LABEL
: log.workflow?.name || 'Unknown'
const workflowColor = isDeletedWorkflow ? DELETED_WORKFLOW_COLOR : log.workflow?.color
const handleClick = useCallback(() => onClick(log), [onClick, log]) const handleClick = useCallback(() => onClick(log), [onClick, log])
@@ -85,15 +78,10 @@ const LogRow = memo(
> >
<div <div
className='h-[10px] w-[10px] flex-shrink-0 rounded-[3px]' className='h-[10px] w-[10px] flex-shrink-0 rounded-[3px]'
style={{ backgroundColor: workflowColor }} style={{ backgroundColor: log.workflow?.color }}
/> />
<span <span className='min-w-0 truncate font-medium text-[12px] text-[var(--text-primary)]'>
className={cn( {log.workflow?.name || 'Unknown'}
'min-w-0 truncate font-medium text-[12px]',
isDeletedWorkflow ? 'text-[var(--text-tertiary)]' : 'text-[var(--text-primary)]'
)}
>
{workflowName}
</span> </span>
</div> </div>

View File

@@ -27,9 +27,6 @@ export const LOG_COLUMN_ORDER: readonly LogColumnKey[] = [
'duration', 'duration',
] as const ] as const
export const DELETED_WORKFLOW_LABEL = 'Deleted Workflow'
export const DELETED_WORKFLOW_COLOR = 'var(--text-tertiary)'
export type LogStatus = 'error' | 'pending' | 'running' | 'info' | 'cancelled' export type LogStatus = 'error' | 'pending' | 'running' | 'info' | 'cancelled'
/** /**

View File

@@ -530,13 +530,18 @@ export const NoteBlock = memo(function NoteBlock({
<div className='group relative'> <div className='group relative'>
<div <div
className={cn( className={cn(
'note-drag-handle relative z-[20] w-[250px] cursor-grab select-none rounded-[8px] border border-[var(--border)] bg-[var(--surface-2)] [&:active]:cursor-grabbing' 'relative z-[20] w-[250px] cursor-default select-none rounded-[8px] border border-[var(--border)] bg-[var(--surface-2)]'
)} )}
onClick={handleClick} onClick={handleClick}
> >
<ActionBar blockId={id} blockType={type} disabled={!userPermissions.canEdit} /> <ActionBar blockId={id} blockType={type} disabled={!userPermissions.canEdit} />
<div className='flex items-center justify-between border-[var(--divider)] border-b p-[8px]'> <div
className='note-drag-handle flex cursor-grab items-center justify-between border-[var(--divider)] border-b p-[8px] [&:active]:cursor-grabbing'
onMouseDown={(event) => {
event.stopPropagation()
}}
>
<div className='flex min-w-0 flex-1 items-center'> <div className='flex min-w-0 flex-1 items-center'>
<span <span
className={cn( className={cn(

View File

@@ -1,6 +1,6 @@
'use client' 'use client'
import { createElement, useCallback, useEffect, useMemo, useState } from 'react' import { useCallback, useEffect, useMemo, useState } from 'react'
import { createLogger } from '@sim/logger' import { createLogger } from '@sim/logger'
import { ExternalLink, Users } from 'lucide-react' import { ExternalLink, Users } from 'lucide-react'
import { Button, Combobox } from '@/components/emcn/components' import { Button, Combobox } from '@/components/emcn/components'
@@ -203,7 +203,7 @@ export function CredentialSelector({
if (!baseProviderConfig) { if (!baseProviderConfig) {
return <ExternalLink className='h-3 w-3' /> return <ExternalLink className='h-3 w-3' />
} }
return createElement(baseProviderConfig.icon, { className: 'h-3 w-3' }) return baseProviderConfig.icon({ className: 'h-3 w-3' })
}, []) }, [])
const getProviderName = useCallback((providerName: OAuthProvider) => { const getProviderName = useCallback((providerName: OAuthProvider) => {

View File

@@ -23,7 +23,6 @@ interface SelectorComboboxProps {
readOnly?: boolean readOnly?: boolean
onOptionChange?: (value: string) => void onOptionChange?: (value: string) => void
allowSearch?: boolean allowSearch?: boolean
missingOptionLabel?: string
} }
export function SelectorCombobox({ export function SelectorCombobox({
@@ -38,7 +37,6 @@ export function SelectorCombobox({
readOnly, readOnly,
onOptionChange, onOptionChange,
allowSearch = true, allowSearch = true,
missingOptionLabel,
}: SelectorComboboxProps) { }: SelectorComboboxProps) {
const [storeValueRaw, setStoreValue] = useSubBlockValue<string | null | undefined>( const [storeValueRaw, setStoreValue] = useSubBlockValue<string | null | undefined>(
blockId, blockId,
@@ -62,16 +60,7 @@ export function SelectorCombobox({
detailId: activeValue, detailId: activeValue,
}) })
const optionMap = useSelectorOptionMap(options, detailOption ?? undefined) const optionMap = useSelectorOptionMap(options, detailOption ?? undefined)
const hasMissingOption = const selectedLabel = activeValue ? (optionMap.get(activeValue)?.label ?? activeValue) : ''
Boolean(activeValue) &&
Boolean(missingOptionLabel) &&
!isLoading &&
!optionMap.get(activeValue!)
const selectedLabel = activeValue
? hasMissingOption
? missingOptionLabel
: (optionMap.get(activeValue)?.label ?? activeValue)
: ''
const [inputValue, setInputValue] = useState(selectedLabel) const [inputValue, setInputValue] = useState(selectedLabel)
const previousActiveValue = useRef<string | undefined>(activeValue) const previousActiveValue = useRef<string | undefined>(activeValue)

View File

@@ -1,5 +1,5 @@
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react' import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'
import { Wand2 } from 'lucide-react' import { Check, Copy, Wand2 } from 'lucide-react'
import { useReactFlow } from 'reactflow' import { useReactFlow } from 'reactflow'
import { Input } from '@/components/emcn' import { Input } from '@/components/emcn'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
@@ -40,6 +40,8 @@ interface ShortInputProps {
disabled?: boolean disabled?: boolean
/** Whether the input is read-only */ /** Whether the input is read-only */
readOnly?: boolean readOnly?: boolean
/** Whether to show a copy button */
showCopyButton?: boolean
/** Whether to use webhook URL as value */ /** Whether to use webhook URL as value */
useWebhookUrl?: boolean useWebhookUrl?: boolean
/** Ref to expose wand control handlers to parent */ /** Ref to expose wand control handlers to parent */
@@ -57,6 +59,7 @@ interface ShortInputProps {
* - Handles drag-and-drop for connections and variable references * - Handles drag-and-drop for connections and variable references
* - Provides environment variable and tag autocomplete * - Provides environment variable and tag autocomplete
* - Password masking with reveal on focus * - Password masking with reveal on focus
* - Copy to clipboard functionality
* - Integrates with ReactFlow for zoom control * - Integrates with ReactFlow for zoom control
*/ */
export const ShortInput = memo(function ShortInput({ export const ShortInput = memo(function ShortInput({
@@ -71,12 +74,14 @@ export const ShortInput = memo(function ShortInput({
previewValue, previewValue,
disabled = false, disabled = false,
readOnly = false, readOnly = false,
showCopyButton = false,
useWebhookUrl = false, useWebhookUrl = false,
wandControlRef, wandControlRef,
hideInternalWand = false, hideInternalWand = false,
}: ShortInputProps) { }: ShortInputProps) {
const [localContent, setLocalContent] = useState<string>('') const [localContent, setLocalContent] = useState<string>('')
const [isFocused, setIsFocused] = useState(false) const [isFocused, setIsFocused] = useState(false)
const [copied, setCopied] = useState(false)
const persistSubBlockValueRef = useRef<(value: string) => void>(() => {}) const persistSubBlockValueRef = useRef<(value: string) => void>(() => {})
const justPastedRef = useRef(false) const justPastedRef = useRef(false)
@@ -273,6 +278,18 @@ export const ShortInput = memo(function ShortInput({
[reactFlowInstance] [reactFlowInstance]
) )
/**
* Handles copying the value to the clipboard.
*/
const handleCopy = useCallback(() => {
const textToCopy = useWebhookUrl ? webhookManagement?.webhookUrl : value?.toString()
if (textToCopy) {
navigator.clipboard.writeText(textToCopy)
setCopied(true)
setTimeout(() => setCopied(false), 2000)
}
}, [useWebhookUrl, webhookManagement?.webhookUrl, value])
const handleBlur = useCallback(() => { const handleBlur = useCallback(() => {
setIsFocused(false) setIsFocused(false)
}, []) }, [])
@@ -349,7 +366,10 @@ export const ShortInput = memo(function ShortInput({
<> <>
<Input <Input
ref={ref as React.RefObject<HTMLInputElement>} ref={ref as React.RefObject<HTMLInputElement>}
className='allow-scroll w-full overflow-auto text-transparent caret-foreground [-ms-overflow-style:none] [scrollbar-width:none] placeholder:text-muted-foreground/50 [&::-webkit-scrollbar]:hidden' className={cn(
'allow-scroll w-full overflow-auto text-transparent caret-foreground [-ms-overflow-style:none] [scrollbar-width:none] placeholder:text-muted-foreground/50 [&::-webkit-scrollbar]:hidden',
showCopyButton && 'pr-14'
)}
readOnly={readOnly} readOnly={readOnly}
placeholder={placeholder ?? ''} placeholder={placeholder ?? ''}
type='text' type='text'
@@ -372,7 +392,8 @@ export const ShortInput = memo(function ShortInput({
<div <div
ref={overlayRef} ref={overlayRef}
className={cn( className={cn(
'pointer-events-none absolute inset-0 flex items-center overflow-x-auto bg-transparent px-[8px] py-[6px] pr-3 font-medium font-sans text-foreground text-sm [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden', 'pointer-events-none absolute inset-0 flex items-center overflow-x-auto bg-transparent px-[8px] py-[6px] font-medium font-sans text-foreground text-sm [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden',
showCopyButton ? 'pr-14' : 'pr-3',
(isPreview || disabled) && 'opacity-50' (isPreview || disabled) && 'opacity-50'
)} )}
> >
@@ -383,6 +404,27 @@ export const ShortInput = memo(function ShortInput({
}} }}
</SubBlockInputController> </SubBlockInputController>
{/* Copy Button */}
{showCopyButton && value && (
<div className='pointer-events-none absolute top-0 right-0 bottom-0 z-10 flex w-14 items-center justify-end pr-2 opacity-0 transition-opacity group-hover:opacity-100'>
<Button
type='button'
variant='ghost'
size='icon'
onClick={handleCopy}
disabled={!value}
className='pointer-events-auto h-6 w-6 p-0'
aria-label='Copy value'
>
{copied ? (
<Check className='h-3.5 w-3.5 text-green-500' />
) : (
<Copy className='h-3.5 w-3.5 text-muted-foreground' />
)}
</Button>
</div>
)}
{/* Wand Button - only show if not hidden by parent */} {/* Wand Button - only show if not hidden by parent */}
{isWandEnabled && !isPreview && !wandHook.isStreaming && !hideInternalWand && ( {isWandEnabled && !isPreview && !wandHook.isStreaming && !hideInternalWand && (
<div className='-translate-y-1/2 absolute top-1/2 right-3 z-10 flex items-center gap-1 opacity-0 transition-opacity group-hover:opacity-100'> <div className='-translate-y-1/2 absolute top-1/2 right-3 z-10 flex items-center gap-1 opacity-0 transition-opacity group-hover:opacity-100'>

View File

@@ -14,8 +14,6 @@ interface KeyboardNavigationHandlerProps {
flatTagList: Array<{ tag: string; group?: BlockTagGroup }> flatTagList: Array<{ tag: string; group?: BlockTagGroup }>
nestedBlockTagGroups: NestedBlockTagGroup[] nestedBlockTagGroups: NestedBlockTagGroup[]
handleTagSelect: (tag: string, group?: BlockTagGroup) => void handleTagSelect: (tag: string, group?: BlockTagGroup) => void
/** Called when entering a folder from root level via keyboard navigation */
onFolderEnter?: () => void
} }
/** /**
@@ -109,7 +107,6 @@ export const KeyboardNavigationHandler: React.FC<KeyboardNavigationHandlerProps>
flatTagList, flatTagList,
nestedBlockTagGroups, nestedBlockTagGroups,
handleTagSelect, handleTagSelect,
onFolderEnter,
}) => { }) => {
const { openFolder, closeFolder, isInFolder, currentFolder, setKeyboardNav } = usePopoverContext() const { openFolder, closeFolder, isInFolder, currentFolder, setKeyboardNav } = usePopoverContext()
const nestedNav = useNestedNavigation() const nestedNav = useNestedNavigation()
@@ -254,7 +251,7 @@ export const KeyboardNavigationHandler: React.FC<KeyboardNavigationHandlerProps>
} else if (currentVisibleIndex < visibleIndices.length - 1) { } else if (currentVisibleIndex < visibleIndices.length - 1) {
newIndex = visibleIndices[currentVisibleIndex + 1] newIndex = visibleIndices[currentVisibleIndex + 1]
} else { } else {
newIndex = selectedIndex newIndex = visibleIndices[0]
} }
setSelectedIndex(newIndex) setSelectedIndex(newIndex)
scrollIntoView() scrollIntoView()
@@ -272,7 +269,7 @@ export const KeyboardNavigationHandler: React.FC<KeyboardNavigationHandlerProps>
} else if (currentVisibleIndex > 0) { } else if (currentVisibleIndex > 0) {
newIndex = visibleIndices[currentVisibleIndex - 1] newIndex = visibleIndices[currentVisibleIndex - 1]
} else { } else {
newIndex = selectedIndex newIndex = visibleIndices[visibleIndices.length - 1]
} }
setSelectedIndex(newIndex) setSelectedIndex(newIndex)
scrollIntoView() scrollIntoView()
@@ -298,7 +295,6 @@ export const KeyboardNavigationHandler: React.FC<KeyboardNavigationHandlerProps>
currentFolderInfo.parentTag, currentFolderInfo.parentTag,
currentFolderInfo.group currentFolderInfo.group
) )
onFolderEnter?.()
} }
} }
break break
@@ -350,7 +346,6 @@ export const KeyboardNavigationHandler: React.FC<KeyboardNavigationHandlerProps>
handleTagSelect, handleTagSelect,
nestedNav, nestedNav,
setKeyboardNav, setKeyboardNav,
onFolderEnter,
]) ])
return null return null

View File

@@ -444,12 +444,10 @@ interface NestedTagRendererProps {
nestedTag: NestedTag nestedTag: NestedTag
group: NestedBlockTagGroup group: NestedBlockTagGroup
flatTagList: Array<{ tag: string; group?: BlockTagGroup }> flatTagList: Array<{ tag: string; group?: BlockTagGroup }>
/** Map from tag string to index for O(1) lookups */
flatTagIndexMap: Map<string, number>
selectedIndex: number selectedIndex: number
setSelectedIndex: (index: number) => void setSelectedIndex: (index: number) => void
handleTagSelect: (tag: string, blockGroup?: BlockTagGroup) => void handleTagSelect: (tag: string, blockGroup?: BlockTagGroup) => void
itemRefs: React.RefObject<Map<string, HTMLElement>> itemRefs: React.RefObject<Map<number, HTMLElement>>
blocks: Record<string, BlockState> blocks: Record<string, BlockState>
getMergedSubBlocks: (blockId: string) => Record<string, any> getMergedSubBlocks: (blockId: string) => Record<string, any>
} }
@@ -471,7 +469,6 @@ interface FolderContentsProps extends NestedTagRendererProps {
const FolderContentsInner: React.FC<FolderContentsProps> = ({ const FolderContentsInner: React.FC<FolderContentsProps> = ({
group, group,
flatTagList, flatTagList,
flatTagIndexMap,
selectedIndex, selectedIndex,
setSelectedIndex, setSelectedIndex,
handleTagSelect, handleTagSelect,
@@ -486,7 +483,7 @@ const FolderContentsInner: React.FC<FolderContentsProps> = ({
const currentNestedTag = nestedPath.length > 0 ? nestedPath[nestedPath.length - 1] : nestedTag const currentNestedTag = nestedPath.length > 0 ? nestedPath[nestedPath.length - 1] : nestedTag
const parentTagIndex = currentNestedTag.parentTag const parentTagIndex = currentNestedTag.parentTag
? (flatTagIndexMap.get(currentNestedTag.parentTag) ?? -1) ? flatTagList.findIndex((item) => item.tag === currentNestedTag.parentTag)
: -1 : -1
return ( return (
@@ -496,6 +493,7 @@ const FolderContentsInner: React.FC<FolderContentsProps> = ({
<PopoverItem <PopoverItem
active={parentTagIndex === selectedIndex && parentTagIndex >= 0} active={parentTagIndex === selectedIndex && parentTagIndex >= 0}
onMouseEnter={() => { onMouseEnter={() => {
// Skip selection update during keyboard navigation to prevent scroll-triggered selection changes
if (isKeyboardNav) return if (isKeyboardNav) return
setKeyboardNav(false) setKeyboardNav(false)
if (parentTagIndex >= 0) setSelectedIndex(parentTagIndex) if (parentTagIndex >= 0) setSelectedIndex(parentTagIndex)
@@ -506,8 +504,8 @@ const FolderContentsInner: React.FC<FolderContentsProps> = ({
handleTagSelect(currentNestedTag.parentTag!, group) handleTagSelect(currentNestedTag.parentTag!, group)
}} }}
ref={(el) => { ref={(el) => {
if (el && currentNestedTag.parentTag) { if (el && parentTagIndex >= 0) {
itemRefs.current?.set(currentNestedTag.parentTag, el) itemRefs.current?.set(parentTagIndex, el)
} }
}} }}
> >
@@ -517,7 +515,7 @@ const FolderContentsInner: React.FC<FolderContentsProps> = ({
{/* Render leaf children as PopoverItems */} {/* Render leaf children as PopoverItems */}
{currentNestedTag.children?.map((child) => { {currentNestedTag.children?.map((child) => {
const childGlobalIndex = flatTagIndexMap.get(child.fullTag) ?? -1 const childGlobalIndex = flatTagList.findIndex((item) => item.tag === child.fullTag)
const tagParts = child.fullTag.split('.') const tagParts = child.fullTag.split('.')
const outputPath = tagParts.slice(1).join('.') const outputPath = tagParts.slice(1).join('.')
@@ -552,8 +550,8 @@ const FolderContentsInner: React.FC<FolderContentsProps> = ({
handleTagSelect(child.fullTag, group) handleTagSelect(child.fullTag, group)
}} }}
ref={(el) => { ref={(el) => {
if (el) { if (el && childGlobalIndex >= 0) {
itemRefs.current?.set(child.fullTag, el) itemRefs.current?.set(childGlobalIndex, el)
} }
}} }}
> >
@@ -570,7 +568,7 @@ const FolderContentsInner: React.FC<FolderContentsProps> = ({
{/* Render nested children as clickable folder items */} {/* Render nested children as clickable folder items */}
{currentNestedTag.nestedChildren?.map((nestedChild) => { {currentNestedTag.nestedChildren?.map((nestedChild) => {
const parentGlobalIndex = nestedChild.parentTag const parentGlobalIndex = nestedChild.parentTag
? (flatTagIndexMap.get(nestedChild.parentTag) ?? -1) ? flatTagList.findIndex((item) => item.tag === nestedChild.parentTag)
: -1 : -1
return ( return (
@@ -585,11 +583,12 @@ const FolderContentsInner: React.FC<FolderContentsProps> = ({
onMouseDown={(e) => { onMouseDown={(e) => {
e.preventDefault() e.preventDefault()
e.stopPropagation() e.stopPropagation()
// Navigate into the subfolder on click
onNavigateIn(nestedChild) onNavigateIn(nestedChild)
}} }}
ref={(el) => { ref={(el) => {
if (el && nestedChild.parentTag) { if (el && parentGlobalIndex >= 0) {
itemRefs.current?.set(nestedChild.parentTag, el) itemRefs.current?.set(parentGlobalIndex, el)
} }
}} }}
> >
@@ -606,7 +605,7 @@ const FolderContentsInner: React.FC<FolderContentsProps> = ({
* Wrapper component that uses shared nested navigation state from context. * Wrapper component that uses shared nested navigation state from context.
* Handles registration of the base folder and navigation callbacks. * Handles registration of the base folder and navigation callbacks.
*/ */
const FolderContents: React.FC<Omit<NestedTagRendererProps, never>> = (props) => { const FolderContents: React.FC<NestedTagRendererProps> = (props) => {
const nestedNav = useNestedNavigation() const nestedNav = useNestedNavigation()
const { currentFolder } = usePopoverContext() const { currentFolder } = usePopoverContext()
@@ -639,7 +638,6 @@ const NestedTagRenderer: React.FC<NestedTagRendererProps> = ({
nestedTag, nestedTag,
group, group,
flatTagList, flatTagList,
flatTagIndexMap,
selectedIndex, selectedIndex,
setSelectedIndex, setSelectedIndex,
handleTagSelect, handleTagSelect,
@@ -655,7 +653,7 @@ const NestedTagRenderer: React.FC<NestedTagRendererProps> = ({
const folderId = `${group.blockId}-${nestedTag.key}` const folderId = `${group.blockId}-${nestedTag.key}`
const parentGlobalIndex = nestedTag.parentTag const parentGlobalIndex = nestedTag.parentTag
? (flatTagIndexMap.get(nestedTag.parentTag) ?? -1) ? flatTagList.findIndex((item) => item.tag === nestedTag.parentTag)
: -1 : -1
return ( return (
@@ -677,8 +675,8 @@ const NestedTagRenderer: React.FC<NestedTagRendererProps> = ({
} }
}} }}
ref={(el) => { ref={(el) => {
if (el && nestedTag.parentTag) { if (el && parentGlobalIndex >= 0) {
itemRefs.current?.set(nestedTag.parentTag, el) itemRefs.current?.set(parentGlobalIndex, el)
} }
}} }}
> >
@@ -686,7 +684,6 @@ const NestedTagRenderer: React.FC<NestedTagRendererProps> = ({
nestedTag={nestedTag} nestedTag={nestedTag}
group={group} group={group}
flatTagList={flatTagList} flatTagList={flatTagList}
flatTagIndexMap={flatTagIndexMap}
selectedIndex={selectedIndex} selectedIndex={selectedIndex}
setSelectedIndex={setSelectedIndex} setSelectedIndex={setSelectedIndex}
handleTagSelect={handleTagSelect} handleTagSelect={handleTagSelect}
@@ -698,7 +695,10 @@ const NestedTagRenderer: React.FC<NestedTagRendererProps> = ({
) )
} }
const globalIndex = nestedTag.fullTag ? (flatTagIndexMap.get(nestedTag.fullTag) ?? -1) : -1 // Leaf tag - render as a simple PopoverItem
const globalIndex = nestedTag.fullTag
? flatTagList.findIndex((item) => item.tag === nestedTag.fullTag)
: -1
let tagDescription = '' let tagDescription = ''
@@ -751,8 +751,8 @@ const NestedTagRenderer: React.FC<NestedTagRendererProps> = ({
} }
}} }}
ref={(el) => { ref={(el) => {
if (el && nestedTag.fullTag) { if (el && globalIndex >= 0) {
itemRefs.current?.set(nestedTag.fullTag, el) itemRefs.current?.set(globalIndex, el)
} }
}} }}
> >
@@ -767,7 +767,7 @@ const NestedTagRenderer: React.FC<NestedTagRendererProps> = ({
} }
/** /**
* Hook to get mouse enter handler that respects keyboard navigation state. * Hook to get mouse enter handler that respects keyboard navigation mode.
* Returns a handler that only updates selection if not in keyboard mode. * Returns a handler that only updates selection if not in keyboard mode.
*/ */
const useKeyboardAwareMouseEnter = ( const useKeyboardAwareMouseEnter = (
@@ -794,7 +794,7 @@ const VariableTagItem: React.FC<{
selectedIndex: number selectedIndex: number
setSelectedIndex: (index: number) => void setSelectedIndex: (index: number) => void
handleTagSelect: (tag: string) => void handleTagSelect: (tag: string) => void
itemRefs: React.RefObject<Map<string, HTMLElement>> itemRefs: React.RefObject<Map<number, HTMLElement>>
variableInfo: { type: string; id: string } | null variableInfo: { type: string; id: string } | null
}> = ({ }> = ({
tag, tag,
@@ -819,8 +819,8 @@ const VariableTagItem: React.FC<{
handleTagSelect(tag) handleTagSelect(tag)
}} }}
ref={(el) => { ref={(el) => {
if (el) { if (el && globalIndex >= 0) {
itemRefs.current?.set(tag, el) itemRefs.current?.set(globalIndex, el)
} }
}} }}
> >
@@ -845,7 +845,7 @@ const BlockRootTagItem: React.FC<{
selectedIndex: number selectedIndex: number
setSelectedIndex: (index: number) => void setSelectedIndex: (index: number) => void
handleTagSelect: (tag: string, group?: BlockTagGroup) => void handleTagSelect: (tag: string, group?: BlockTagGroup) => void
itemRefs: React.RefObject<Map<string, HTMLElement>> itemRefs: React.RefObject<Map<number, HTMLElement>>
group: BlockTagGroup group: BlockTagGroup
tagIcon: string | React.ComponentType<{ className?: string }> tagIcon: string | React.ComponentType<{ className?: string }>
blockColor: string blockColor: string
@@ -875,8 +875,8 @@ const BlockRootTagItem: React.FC<{
handleTagSelect(rootTag, group) handleTagSelect(rootTag, group)
}} }}
ref={(el) => { ref={(el) => {
if (el) { if (el && rootTagGlobalIndex >= 0) {
itemRefs.current?.set(rootTag, el) itemRefs.current?.set(rootTagGlobalIndex, el)
} }
}} }}
> >
@@ -916,12 +916,16 @@ const TagDropdownBackButton: React.FC = () => {
const handleBackClick = (e: React.MouseEvent) => { const handleBackClick = (e: React.MouseEvent) => {
e.stopPropagation() e.stopPropagation()
// Try to navigate back in nested path first
if (nestedNav?.navigateBack()) { if (nestedNav?.navigateBack()) {
// Successfully navigated back one level
return return
} }
// At root folder level, close the folder
closeFolder() closeFolder()
} }
// Just render the back button - the parent tag is rendered as the first item in FolderContentsInner
return ( return (
<div <div
className={cn( className={cn(
@@ -982,7 +986,7 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
inputRef, inputRef,
}) => { }) => {
const [selectedIndex, setSelectedIndex] = useState(0) const [selectedIndex, setSelectedIndex] = useState(0)
const itemRefs = useRef<Map<string, HTMLElement>>(new Map()) const itemRefs = useRef<Map<number, HTMLElement>>(new Map())
const [nestedPath, setNestedPath] = useState<NestedTag[]>([]) const [nestedPath, setNestedPath] = useState<NestedTag[]>([])
const baseFolderRef = useRef<{ const baseFolderRef = useRef<{
@@ -994,11 +998,6 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
const handleTagSelectRef = useRef<((tag: string, group?: BlockTagGroup) => void) | null>(null) const handleTagSelectRef = useRef<((tag: string, group?: BlockTagGroup) => void) | null>(null)
const scrollAreaRef = useRef<HTMLDivElement>(null) const scrollAreaRef = useRef<HTMLDivElement>(null)
const inputValueRef = useRef(inputValue)
const cursorPositionRef = useRef(cursorPosition)
inputValueRef.current = inputValue
cursorPositionRef.current = cursorPosition
const { blocks, edges, loops, parallels } = useWorkflowStore( const { blocks, edges, loops, parallels } = useWorkflowStore(
useShallow((state) => ({ useShallow((state) => ({
blocks: state.blocks, blocks: state.blocks,
@@ -1701,23 +1700,27 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
return list return list
}, [variableTags, nestedBlockTagGroups]) }, [variableTags, nestedBlockTagGroups])
const flatTagIndexMap = useMemo(() => { useEffect(() => {
const map = new Map<string, number>() if (!visible || selectedIndex < 0) return
flatTagList.forEach((item, index) => {
map.set(item.tag, index) const element = itemRefs.current.get(selectedIndex)
if (element) {
element.scrollIntoView({
behavior: 'auto',
block: 'nearest',
}) })
return map }
}, [flatTagList]) }, [selectedIndex, visible])
const handleTagSelect = useCallback( const handleTagSelect = useCallback(
(tag: string, blockGroup?: BlockTagGroup) => { (tag: string, blockGroup?: BlockTagGroup) => {
let liveCursor = cursorPositionRef.current let liveCursor = cursorPosition
let liveValue = inputValueRef.current let liveValue = inputValue
if (typeof window !== 'undefined' && document?.activeElement) { if (typeof window !== 'undefined' && document?.activeElement) {
const activeEl = document.activeElement as HTMLInputElement | HTMLTextAreaElement | null const activeEl = document.activeElement as HTMLInputElement | HTMLTextAreaElement | null
if (activeEl && typeof activeEl.selectionStart === 'number') { if (activeEl && typeof activeEl.selectionStart === 'number') {
liveCursor = activeEl.selectionStart ?? cursorPositionRef.current liveCursor = activeEl.selectionStart ?? cursorPosition
if ('value' in activeEl && typeof activeEl.value === 'string') { if ('value' in activeEl && typeof activeEl.value === 'string') {
liveValue = activeEl.value liveValue = activeEl.value
} }
@@ -1802,7 +1805,7 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
onSelect(newValue) onSelect(newValue)
onClose?.() onClose?.()
}, },
[workflowVariables, onSelect, onClose, getMergedSubBlocks] [inputValue, cursorPosition, workflowVariables, onSelect, onClose, getMergedSubBlocks]
) )
handleTagSelectRef.current = handleTagSelect handleTagSelectRef.current = handleTagSelect
@@ -1874,6 +1877,9 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
}, },
registerFolder: (folderId, folderTitle, baseTag, group) => { registerFolder: (folderId, folderTitle, baseTag, group) => {
baseFolderRef.current = { id: folderId, title: folderTitle, baseTag, group } baseFolderRef.current = { id: folderId, title: folderTitle, baseTag, group }
if (scrollAreaRef.current) {
scrollAreaRef.current.scrollTop = 0
}
}, },
}), }),
[nestedPath] [nestedPath]
@@ -1886,9 +1892,13 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
} }
}, [visible]) }, [visible])
useEffect(() => setSelectedIndex(0), [searchTerm])
useEffect(() => { useEffect(() => {
setSelectedIndex(0) if (selectedIndex >= flatTagList.length) {
}, [flatTagList.length]) setSelectedIndex(Math.max(0, flatTagList.length - 1))
}
}, [flatTagList.length, selectedIndex])
useEffect(() => { useEffect(() => {
if (visible) { if (visible) {
@@ -1946,11 +1956,6 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
flatTagList={flatTagList} flatTagList={flatTagList}
nestedBlockTagGroups={nestedBlockTagGroups} nestedBlockTagGroups={nestedBlockTagGroups}
handleTagSelect={handleTagSelect} handleTagSelect={handleTagSelect}
onFolderEnter={() => {
if (scrollAreaRef.current) {
scrollAreaRef.current.scrollTop = 0
}
}}
/> />
<PopoverContent <PopoverContent
maxHeight={240} maxHeight={240}
@@ -1979,7 +1984,7 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
</PopoverSection> </PopoverSection>
{variableTags.map((tag: string) => { {variableTags.map((tag: string) => {
const variableInfo = variableInfoMap?.[tag] || null const variableInfo = variableInfoMap?.[tag] || null
const globalIndex = flatTagIndexMap.get(tag) ?? -1 const globalIndex = flatTagList.findIndex((item) => item.tag === tag)
return ( return (
<VariableTagItem <VariableTagItem
@@ -2022,7 +2027,7 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
const rootTagFromTags = group.tags.find((tag) => tag === normalizedBlockName) const rootTagFromTags = group.tags.find((tag) => tag === normalizedBlockName)
const rootTag = rootTagFromTags || normalizedBlockName const rootTag = rootTagFromTags || normalizedBlockName
const rootTagGlobalIndex = flatTagIndexMap.get(rootTag) ?? -1 const rootTagGlobalIndex = flatTagList.findIndex((item) => item.tag === rootTag)
return ( return (
<div key={group.blockId}> <div key={group.blockId}>
@@ -2049,7 +2054,6 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
nestedTag={nestedTag} nestedTag={nestedTag}
group={group} group={group}
flatTagList={flatTagList} flatTagList={flatTagList}
flatTagIndexMap={flatTagIndexMap}
selectedIndex={selectedIndex} selectedIndex={selectedIndex}
setSelectedIndex={setSelectedIndex} setSelectedIndex={setSelectedIndex}
handleTagSelect={handleTagSelect} handleTagSelect={handleTagSelect}

View File

@@ -17,7 +17,7 @@ interface TextProps {
* *
* @remarks * @remarks
* - Automatically detects and renders HTML content safely * - Automatically detects and renders HTML content safely
* - Applies consistent styling for HTML content (links, code, lists, etc.) * - Applies prose styling for HTML content (links, code, lists, etc.)
* - Falls back to plain text rendering for non-HTML content * - Falls back to plain text rendering for non-HTML content
* *
* Note: This component renders trusted, internally-defined content only * Note: This component renders trusted, internally-defined content only
@@ -33,7 +33,7 @@ export function Text({ blockId, subBlockId, content, className }: TextProps) {
className={`rounded-md border bg-[var(--surface-2)] p-4 shadow-sm ${className || ''}`} className={`rounded-md border bg-[var(--surface-2)] p-4 shadow-sm ${className || ''}`}
> >
<div <div
className='max-w-none break-words text-[var(--text-secondary)] text-sm [&_a]:text-[var(--brand-secondary)] [&_a]:underline [&_a]:underline-offset-2 [&_a]:hover:brightness-110 [&_code]:rounded [&_code]:bg-[var(--surface-5)] [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-[var(--text-tertiary)] [&_code]:text-xs [&_strong]:font-medium [&_strong]:text-[var(--text-primary)] [&_ul]:ml-5 [&_ul]:list-disc [&_ul]:marker:text-[var(--text-muted)]' className='prose prose-sm dark:prose-invert max-w-none break-words text-sm [&_a]:text-blue-600 [&_a]:underline [&_a]:hover:text-blue-700 [&_a]:dark:text-blue-400 [&_a]:dark:hover:text-blue-300 [&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-xs [&_strong]:font-semibold [&_ul]:ml-5 [&_ul]:list-disc'
dangerouslySetInnerHTML={{ __html: content }} dangerouslySetInnerHTML={{ __html: content }}
/> />
</div> </div>
@@ -43,7 +43,7 @@ export function Text({ blockId, subBlockId, content, className }: TextProps) {
return ( return (
<div <div
id={`${blockId}-${subBlockId}`} id={`${blockId}-${subBlockId}`}
className={`whitespace-pre-wrap break-words rounded-md border bg-[var(--surface-2)] p-4 text-[var(--text-secondary)] text-sm shadow-sm ${className || ''}`} className={`whitespace-pre-wrap break-words rounded-md border bg-[var(--surface-2)] p-4 text-muted-foreground text-sm shadow-sm ${className || ''}`}
> >
{content} {content}
</div> </div>

View File

@@ -1,4 +1,4 @@
import { createElement, useCallback, useEffect, useMemo, useState } from 'react' import { useCallback, useEffect, useMemo, useState } from 'react'
import { ExternalLink } from 'lucide-react' import { ExternalLink } from 'lucide-react'
import { Button, Combobox } from '@/components/emcn/components' import { Button, Combobox } from '@/components/emcn/components'
import { import {
@@ -22,7 +22,7 @@ const getProviderIcon = (providerName: OAuthProvider) => {
if (!baseProviderConfig) { if (!baseProviderConfig) {
return <ExternalLink className='h-3 w-3' /> return <ExternalLink className='h-3 w-3' />
} }
return createElement(baseProviderConfig.icon, { className: 'h-3 w-3' }) return baseProviderConfig.icon({ className: 'h-3 w-3' })
} }
const getProviderName = (providerName: OAuthProvider) => { const getProviderName = (providerName: OAuthProvider) => {

View File

@@ -1,7 +1,6 @@
'use client' 'use client'
import { useMemo } from 'react' import { useMemo } from 'react'
import { DELETED_WORKFLOW_LABEL } from '@/app/workspace/[workspaceId]/logs/utils'
import { SelectorCombobox } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/selector-combobox/selector-combobox' import { SelectorCombobox } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/selector-combobox/selector-combobox'
import type { SubBlockConfig } from '@/blocks/types' import type { SubBlockConfig } from '@/blocks/types'
import type { SelectorContext } from '@/hooks/selectors/types' import type { SelectorContext } from '@/hooks/selectors/types'
@@ -41,7 +40,6 @@ export function WorkflowSelectorInput({
isPreview={isPreview} isPreview={isPreview}
previewValue={previewValue} previewValue={previewValue}
placeholder={subBlock.placeholder || 'Select workflow...'} placeholder={subBlock.placeholder || 'Select workflow...'}
missingOptionLabel={DELETED_WORKFLOW_LABEL}
/> />
) )
} }

View File

@@ -1,261 +0,0 @@
/**
* @vitest-environment node
*/
import { describe, expect, it } from 'vitest'
import type { SubBlockConfig } from '@/blocks/types'
const isFieldRequired = (config: SubBlockConfig, subBlockValues?: Record<string, any>): boolean => {
if (!config.required) return false
if (typeof config.required === 'boolean') return config.required
const evalCond = (
cond: {
field: string
value: string | number | boolean | Array<string | number | boolean>
not?: boolean
and?: {
field: string
value: string | number | boolean | Array<string | number | boolean> | undefined
not?: boolean
}
},
values: Record<string, any>
): boolean => {
const fieldValue = values[cond.field]?.value
const condValue = cond.value
let match: boolean
if (Array.isArray(condValue)) {
match = condValue.includes(fieldValue)
} else {
match = fieldValue === condValue
}
if (cond.not) match = !match
if (cond.and) {
const andFieldValue = values[cond.and.field]?.value
const andCondValue = cond.and.value
let andMatch: boolean
if (Array.isArray(andCondValue)) {
andMatch = andCondValue.includes(andFieldValue)
} else {
andMatch = andFieldValue === andCondValue
}
if (cond.and.not) andMatch = !andMatch
match = match && andMatch
}
return match
}
const condition = typeof config.required === 'function' ? config.required() : config.required
return evalCond(condition, subBlockValues || {})
}
describe('isFieldRequired', () => {
describe('boolean required', () => {
it.concurrent('returns false when required is not set', () => {
const config = { id: 'test', type: 'short-input' } as SubBlockConfig
expect(isFieldRequired(config, {})).toBe(false)
})
it.concurrent('returns false when required is false', () => {
const config = { id: 'test', type: 'short-input', required: false } as SubBlockConfig
expect(isFieldRequired(config, {})).toBe(false)
})
it.concurrent('returns true when required is true', () => {
const config = { id: 'test', type: 'short-input', required: true } as SubBlockConfig
expect(isFieldRequired(config, {})).toBe(true)
})
})
describe('conditional required - simple value matching', () => {
it.concurrent('returns true when field value matches condition value', () => {
const config = {
id: 'test',
type: 'short-input',
required: { field: 'operation', value: 'create_booking' },
} as SubBlockConfig
const values = { operation: { value: 'create_booking' } }
expect(isFieldRequired(config, values)).toBe(true)
})
it.concurrent('returns false when field value does not match condition value', () => {
const config = {
id: 'test',
type: 'short-input',
required: { field: 'operation', value: 'create_booking' },
} as SubBlockConfig
const values = { operation: { value: 'cancel_booking' } }
expect(isFieldRequired(config, values)).toBe(false)
})
it.concurrent('returns false when field is missing', () => {
const config = {
id: 'test',
type: 'short-input',
required: { field: 'operation', value: 'create_booking' },
} as SubBlockConfig
expect(isFieldRequired(config, {})).toBe(false)
})
it.concurrent('returns false when field value is undefined', () => {
const config = {
id: 'test',
type: 'short-input',
required: { field: 'operation', value: 'create_booking' },
} as SubBlockConfig
const values = { operation: { value: undefined } }
expect(isFieldRequired(config, values)).toBe(false)
})
})
describe('conditional required - array value matching', () => {
it.concurrent('returns true when field value is in condition array', () => {
const config = {
id: 'test',
type: 'short-input',
required: { field: 'operation', value: ['create_booking', 'update_booking'] },
} as SubBlockConfig
const values = { operation: { value: 'create_booking' } }
expect(isFieldRequired(config, values)).toBe(true)
})
it.concurrent('returns false when field value is not in condition array', () => {
const config = {
id: 'test',
type: 'short-input',
required: { field: 'operation', value: ['create_booking', 'update_booking'] },
} as SubBlockConfig
const values = { operation: { value: 'cancel_booking' } }
expect(isFieldRequired(config, values)).toBe(false)
})
})
describe('conditional required - negation', () => {
it.concurrent('returns false when field matches but not is true', () => {
const config = {
id: 'test',
type: 'short-input',
required: { field: 'operation', value: 'create_booking', not: true },
} as SubBlockConfig
const values = { operation: { value: 'create_booking' } }
expect(isFieldRequired(config, values)).toBe(false)
})
it.concurrent('returns true when field does not match and not is true', () => {
const config = {
id: 'test',
type: 'short-input',
required: { field: 'operation', value: 'create_booking', not: true },
} as SubBlockConfig
const values = { operation: { value: 'cancel_booking' } }
expect(isFieldRequired(config, values)).toBe(true)
})
})
describe('conditional required - compound conditions', () => {
it.concurrent('returns true when both conditions match', () => {
const config = {
id: 'test',
type: 'short-input',
required: {
field: 'operation',
value: 'create_booking',
and: { field: 'hasEmail', value: true },
},
} as SubBlockConfig
const values = {
operation: { value: 'create_booking' },
hasEmail: { value: true },
}
expect(isFieldRequired(config, values)).toBe(true)
})
it.concurrent('returns false when first matches but and fails', () => {
const config = {
id: 'test',
type: 'short-input',
required: {
field: 'operation',
value: 'create_booking',
and: { field: 'hasEmail', value: true },
},
} as SubBlockConfig
const values = {
operation: { value: 'create_booking' },
hasEmail: { value: false },
}
expect(isFieldRequired(config, values)).toBe(false)
})
})
})
describe('condition + required equivalence', () => {
const conditionValue = { field: 'operation', value: 'calcom_create_booking' }
const configWithConditionalRequired = {
id: 'attendeeName',
type: 'short-input',
condition: conditionValue,
required: conditionValue,
} as SubBlockConfig
const configWithSimpleRequired = {
id: 'attendeeName',
type: 'short-input',
condition: conditionValue,
required: true,
} as SubBlockConfig
describe('when condition IS met (field is visible)', () => {
const valuesWhenVisible = { operation: { value: 'calcom_create_booking' } }
it.concurrent('conditional required returns true', () => {
expect(isFieldRequired(configWithConditionalRequired, valuesWhenVisible)).toBe(true)
})
it.concurrent('simple required returns true', () => {
expect(isFieldRequired(configWithSimpleRequired, valuesWhenVisible)).toBe(true)
})
it.concurrent('both configs produce the same result', () => {
const conditionalResult = isFieldRequired(configWithConditionalRequired, valuesWhenVisible)
const simpleResult = isFieldRequired(configWithSimpleRequired, valuesWhenVisible)
expect(conditionalResult).toBe(simpleResult)
})
})
describe('when condition is NOT met (field is hidden)', () => {
const valuesWhenHidden = { operation: { value: 'calcom_cancel_booking' } }
it.concurrent('conditional required returns false', () => {
expect(isFieldRequired(configWithConditionalRequired, valuesWhenHidden)).toBe(false)
})
it.concurrent('simple required returns true but field is hidden', () => {
expect(isFieldRequired(configWithSimpleRequired, valuesWhenHidden)).toBe(true)
})
it.concurrent('results differ but field is hidden when condition fails', () => {
const conditionalResult = isFieldRequired(configWithConditionalRequired, valuesWhenHidden)
const simpleResult = isFieldRequired(configWithSimpleRequired, valuesWhenHidden)
expect(conditionalResult).not.toBe(simpleResult)
})
})
describe('practical equivalence for user-facing behavior', () => {
it.concurrent('when field is visible both show required indicator', () => {
const valuesWhenVisible = { operation: { value: 'calcom_create_booking' } }
const showsRequiredIndicatorA = isFieldRequired(
configWithConditionalRequired,
valuesWhenVisible
)
const showsRequiredIndicatorB = isFieldRequired(configWithSimpleRequired, valuesWhenVisible)
expect(showsRequiredIndicatorA).toBe(true)
expect(showsRequiredIndicatorB).toBe(true)
})
})
})

View File

@@ -1,6 +1,6 @@
import { type JSX, type MouseEvent, memo, useCallback, useRef, useState } from 'react' import { type JSX, type MouseEvent, memo, useRef, useState } from 'react'
import { isEqual } from 'lodash' import { isEqual } from 'lodash'
import { AlertTriangle, ArrowLeftRight, ArrowUp, Check, Clipboard } from 'lucide-react' import { AlertTriangle, ArrowLeftRight, ArrowUp } from 'lucide-react'
import { Button, Input, Label, Tooltip } from '@/components/emcn/components' import { Button, Input, Label, Tooltip } from '@/components/emcn/components'
import { cn } from '@/lib/core/utils/cn' import { cn } from '@/lib/core/utils/cn'
import type { FieldDiffStatus } from '@/lib/workflows/diff/types' import type { FieldDiffStatus } from '@/lib/workflows/diff/types'
@@ -44,7 +44,6 @@ import {
} from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components' } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components'
import { useDependsOnGate } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/hooks/use-depends-on-gate' import { useDependsOnGate } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/hooks/use-depends-on-gate'
import type { SubBlockConfig } from '@/blocks/types' import type { SubBlockConfig } from '@/blocks/types'
import { useWebhookManagement } from '@/hooks/use-webhook-management'
/** /**
* Interface for wand control handlers exposed by sub-block inputs * Interface for wand control handlers exposed by sub-block inputs
@@ -196,12 +195,7 @@ const renderLabel = (
disabled?: boolean disabled?: boolean
onToggle?: () => void onToggle?: () => void
}, },
canonicalToggleIsDisabled?: boolean, canonicalToggleIsDisabled?: boolean
copyState?: {
showCopyButton: boolean
copied: boolean
onCopy: () => void
}
): JSX.Element | null => { ): JSX.Element | null => {
if (config.type === 'switch') return null if (config.type === 'switch') return null
if (!config.title) return null if (!config.title) return null
@@ -209,7 +203,6 @@ const renderLabel = (
const required = isFieldRequired(config, subBlockValues) const required = isFieldRequired(config, subBlockValues)
const showWand = wandState?.isWandEnabled && !wandState.isPreview && !wandState.disabled const showWand = wandState?.isWandEnabled && !wandState.isPreview && !wandState.disabled
const showCanonicalToggle = !!canonicalToggle && !wandState?.isPreview const showCanonicalToggle = !!canonicalToggle && !wandState?.isPreview
const showCopy = copyState?.showCopyButton && !wandState?.isPreview
const canonicalToggleDisabledResolved = canonicalToggleIsDisabled ?? canonicalToggle?.disabled const canonicalToggleDisabledResolved = canonicalToggleIsDisabled ?? canonicalToggle?.disabled
return ( return (
@@ -233,28 +226,7 @@ const renderLabel = (
</Tooltip.Root> </Tooltip.Root>
)} )}
</Label> </Label>
<div className='flex min-w-0 flex-1 items-center justify-end gap-[6px]'> <div className='flex items-center gap-[6px]'>
{showCopy && (
<Tooltip.Root>
<Tooltip.Trigger asChild>
<button
type='button'
onClick={copyState.onCopy}
className='-my-1 flex h-5 w-5 items-center justify-center'
aria-label='Copy value'
>
{copyState.copied ? (
<Check className='h-3 w-3 text-green-500' />
) : (
<Clipboard className='h-3 w-3 text-muted-foreground' />
)}
</button>
</Tooltip.Trigger>
<Tooltip.Content side='top'>
<p>{copyState.copied ? 'Copied!' : 'Copy'}</p>
</Tooltip.Content>
</Tooltip.Root>
)}
{showWand && ( {showWand && (
<> <>
{!wandState.isSearchActive ? ( {!wandState.isSearchActive ? (
@@ -266,19 +238,14 @@ const renderLabel = (
Generate Generate
</Button> </Button>
) : ( ) : (
<div className='-my-1 flex min-w-[120px] max-w-[280px] flex-1 items-center gap-[4px]'> <div className='-my-1 flex items-center gap-[4px]'>
<Input <Input
ref={wandState.searchInputRef} ref={wandState.searchInputRef}
value={wandState.isStreaming ? 'Generating...' : wandState.searchQuery} value={wandState.isStreaming ? 'Generating...' : wandState.searchQuery}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
wandState.onSearchChange(e.target.value) wandState.onSearchChange(e.target.value)
} }
onBlur={(e: React.FocusEvent<HTMLInputElement>) => { onBlur={wandState.onSearchBlur}
// Only close if clicking outside the input container (not on the submit button)
const relatedTarget = e.relatedTarget as HTMLElement | null
if (relatedTarget?.closest('button')) return
wandState.onSearchBlur()
}}
onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => { onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
if ( if (
e.key === 'Enter' && e.key === 'Enter' &&
@@ -292,7 +259,7 @@ const renderLabel = (
}} }}
disabled={wandState.isStreaming} disabled={wandState.isStreaming}
className={cn( className={cn(
'h-5 min-w-[80px] flex-1 text-[11px]', 'h-5 max-w-[200px] flex-1 text-[11px]',
wandState.isStreaming && 'text-muted-foreground' wandState.isStreaming && 'text-muted-foreground'
)} )}
placeholder='Generate with AI...' placeholder='Generate with AI...'
@@ -418,18 +385,9 @@ function SubBlockComponent({
const [isValidJson, setIsValidJson] = useState(true) const [isValidJson, setIsValidJson] = useState(true)
const [isSearchActive, setIsSearchActive] = useState(false) const [isSearchActive, setIsSearchActive] = useState(false)
const [searchQuery, setSearchQuery] = useState('') const [searchQuery, setSearchQuery] = useState('')
const [copied, setCopied] = useState(false)
const searchInputRef = useRef<HTMLInputElement>(null) const searchInputRef = useRef<HTMLInputElement>(null)
const wandControlRef = useRef<WandControlHandlers | null>(null) const wandControlRef = useRef<WandControlHandlers | null>(null)
// Use webhook management hook when config has useWebhookUrl enabled
const webhookManagement = useWebhookManagement({
blockId,
triggerId: undefined,
isPreview,
useWebhookUrl: config.useWebhookUrl,
})
const handleMouseDown = (e: MouseEvent<HTMLDivElement>): void => { const handleMouseDown = (e: MouseEvent<HTMLDivElement>): void => {
e.stopPropagation() e.stopPropagation()
} }
@@ -440,18 +398,6 @@ function SubBlockComponent({
const isWandEnabled = config.wandConfig?.enabled ?? false const isWandEnabled = config.wandConfig?.enabled ?? false
/**
* Handles copying the webhook URL to clipboard.
*/
const handleCopy = useCallback(() => {
const textToCopy = webhookManagement?.webhookUrl
if (textToCopy) {
navigator.clipboard.writeText(textToCopy)
setCopied(true)
setTimeout(() => setCopied(false), 2000)
}
}, [webhookManagement?.webhookUrl])
/** /**
* Handles wand icon click to activate inline prompt mode. * Handles wand icon click to activate inline prompt mode.
* Focuses the input after a brief delay to ensure DOM is ready. * Focuses the input after a brief delay to ensure DOM is ready.
@@ -536,6 +482,7 @@ function SubBlockComponent({
placeholder={config.placeholder} placeholder={config.placeholder}
password={config.password} password={config.password}
readOnly={config.readOnly} readOnly={config.readOnly}
showCopyButton={config.showCopyButton}
useWebhookUrl={config.useWebhookUrl} useWebhookUrl={config.useWebhookUrl}
config={config} config={config}
isPreview={isPreview} isPreview={isPreview}
@@ -1032,12 +979,7 @@ function SubBlockComponent({
searchInputRef, searchInputRef,
}, },
canonicalToggle, canonicalToggle,
Boolean(canonicalToggle?.disabled || disabled || isPreview), Boolean(canonicalToggle?.disabled || disabled || isPreview)
{
showCopyButton: Boolean(config.showCopyButton && config.useWebhookUrl),
copied,
onCopy: handleCopy,
}
)} )}
{renderInput()} {renderInput()}
</div> </div>

View File

@@ -58,9 +58,7 @@ export function getBlockColor(blockType: string): string {
*/ */
export function formatDuration(ms?: number): string { export function formatDuration(ms?: number): string {
if (ms === undefined || ms === null) return '-' if (ms === undefined || ms === null) return '-'
if (ms < 1000) { if (ms < 1000) return `${ms}ms`
return `${Math.round(ms)}ms`
}
return `${(ms / 1000).toFixed(2)}s` return `${(ms / 1000).toFixed(2)}s`
} }

View File

@@ -964,8 +964,8 @@ export function useWorkflowExecution() {
const isContainerBlock = data.blockType === 'loop' || data.blockType === 'parallel' const isContainerBlock = data.blockType === 'loop' || data.blockType === 'parallel'
if (isContainerBlock) return if (isContainerBlock) return
const startedAt = data.startedAt const startedAt = new Date(Date.now() - data.durationMs).toISOString()
const endedAt = data.endedAt const endedAt = new Date().toISOString()
accumulatedBlockLogs.push({ accumulatedBlockLogs.push({
blockId: data.blockId, blockId: data.blockId,
@@ -1013,8 +1013,8 @@ export function useWorkflowExecution() {
// Track failed block execution in run path // Track failed block execution in run path
setBlockRunStatus(data.blockId, 'error') setBlockRunStatus(data.blockId, 'error')
const startedAt = data.startedAt const startedAt = new Date(Date.now() - data.durationMs).toISOString()
const endedAt = data.endedAt const endedAt = new Date().toISOString()
// Accumulate block error log for the execution result // Accumulate block error log for the execution result
accumulatedBlockLogs.push({ accumulatedBlockLogs.push({
@@ -1603,8 +1603,8 @@ export function useWorkflowExecution() {
const isContainerBlock = data.blockType === 'loop' || data.blockType === 'parallel' const isContainerBlock = data.blockType === 'loop' || data.blockType === 'parallel'
if (isContainerBlock) return if (isContainerBlock) return
const startedAt = data.startedAt const startedAt = new Date(Date.now() - data.durationMs).toISOString()
const endedAt = data.endedAt const endedAt = new Date().toISOString()
accumulatedBlockLogs.push({ accumulatedBlockLogs.push({
blockId: data.blockId, blockId: data.blockId,
@@ -1642,8 +1642,8 @@ export function useWorkflowExecution() {
setBlockRunStatus(data.blockId, 'error') setBlockRunStatus(data.blockId, 'error')
const startedAt = data.startedAt const startedAt = new Date(Date.now() - data.durationMs).toISOString()
const endedAt = data.endedAt const endedAt = new Date().toISOString()
accumulatedBlockLogs.push({ accumulatedBlockLogs.push({
blockId: data.blockId, blockId: data.blockId,

View File

@@ -4,14 +4,11 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { import {
ArrowDown, ArrowDown,
ArrowUp, ArrowUp,
Check,
ChevronDown as ChevronDownIcon, ChevronDown as ChevronDownIcon,
ChevronUp, ChevronUp,
Clipboard,
ExternalLink, ExternalLink,
Maximize2, Maximize2,
RepeatIcon, RepeatIcon,
Search,
SplitIcon, SplitIcon,
X, X,
} from 'lucide-react' } from 'lucide-react'
@@ -37,7 +34,6 @@ import {
isSubBlockFeatureEnabled, isSubBlockFeatureEnabled,
isSubBlockVisibleForMode, isSubBlockVisibleForMode,
} from '@/lib/workflows/subblocks/visibility' } from '@/lib/workflows/subblocks/visibility'
import { DELETED_WORKFLOW_LABEL } from '@/app/workspace/[workspaceId]/logs/utils'
import { SubBlock } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components' import { SubBlock } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components'
import { PreviewContextMenu } from '@/app/workspace/[workspaceId]/w/components/preview/components/preview-context-menu' import { PreviewContextMenu } from '@/app/workspace/[workspaceId]/w/components/preview/components/preview-context-menu'
import { PreviewWorkflow } from '@/app/workspace/[workspaceId]/w/components/preview/components/preview-workflow' import { PreviewWorkflow } from '@/app/workspace/[workspaceId]/w/components/preview/components/preview-workflow'
@@ -694,7 +690,6 @@ interface ExecutionData {
output?: unknown output?: unknown
status?: string status?: string
durationMs?: number durationMs?: number
childWorkflowSnapshotId?: string
} }
interface WorkflowVariable { interface WorkflowVariable {
@@ -719,8 +714,6 @@ interface PreviewEditorProps {
parallels?: Record<string, Parallel> parallels?: Record<string, Parallel>
/** When true, shows "Not Executed" badge if no executionData is provided */ /** When true, shows "Not Executed" badge if no executionData is provided */
isExecutionMode?: boolean isExecutionMode?: boolean
/** Child workflow snapshots keyed by snapshot ID (execution mode only) */
childWorkflowSnapshots?: Record<string, WorkflowState>
/** Optional close handler - if not provided, no close button is shown */ /** Optional close handler - if not provided, no close button is shown */
onClose?: () => void onClose?: () => void
/** Callback to drill down into a nested workflow block */ /** Callback to drill down into a nested workflow block */
@@ -746,7 +739,6 @@ function PreviewEditorContent({
loops, loops,
parallels, parallels,
isExecutionMode = false, isExecutionMode = false,
childWorkflowSnapshots,
onClose, onClose,
onDrillDown, onDrillDown,
}: PreviewEditorProps) { }: PreviewEditorProps) {
@@ -776,35 +768,17 @@ function PreviewEditorContent({
const { data: childWorkflowState, isLoading: isLoadingChildWorkflow } = useWorkflowState( const { data: childWorkflowState, isLoading: isLoadingChildWorkflow } = useWorkflowState(
childWorkflowId ?? undefined childWorkflowId ?? undefined
) )
const childWorkflowSnapshotId = executionData?.childWorkflowSnapshotId
const childWorkflowSnapshotState = childWorkflowSnapshotId
? childWorkflowSnapshots?.[childWorkflowSnapshotId]
: undefined
const resolvedChildWorkflowState = isExecutionMode
? childWorkflowSnapshotState
: childWorkflowState
const resolvedIsLoadingChildWorkflow = isExecutionMode ? false : isLoadingChildWorkflow
const isMissingChildWorkflow =
Boolean(childWorkflowId) && !resolvedIsLoadingChildWorkflow && !resolvedChildWorkflowState
/** Drills down into the child workflow or opens it in a new tab */ /** Drills down into the child workflow or opens it in a new tab */
const handleExpandChildWorkflow = useCallback(() => { const handleExpandChildWorkflow = useCallback(() => {
if (!childWorkflowId) return if (!childWorkflowId || !childWorkflowState) return
if (isExecutionMode && onDrillDown) { if (isExecutionMode && onDrillDown) {
if (!childWorkflowSnapshotState) return onDrillDown(block.id, childWorkflowState)
onDrillDown(block.id, childWorkflowSnapshotState)
} else if (workspaceId) { } else if (workspaceId) {
window.open(`/workspace/${workspaceId}/w/${childWorkflowId}`, '_blank', 'noopener,noreferrer') window.open(`/workspace/${workspaceId}/w/${childWorkflowId}`, '_blank', 'noopener,noreferrer')
} }
}, [ }, [childWorkflowId, childWorkflowState, isExecutionMode, onDrillDown, block.id, workspaceId])
childWorkflowId,
childWorkflowSnapshotState,
isExecutionMode,
onDrillDown,
block.id,
workspaceId,
])
const contentRef = useRef<HTMLDivElement>(null) const contentRef = useRef<HTMLDivElement>(null)
const subBlocksRef = useRef<HTMLDivElement>(null) const subBlocksRef = useRef<HTMLDivElement>(null)
@@ -839,13 +813,6 @@ function PreviewEditorContent({
} = useContextMenu() } = useContextMenu()
const [contextMenuData, setContextMenuData] = useState({ content: '', copyOnly: false }) const [contextMenuData, setContextMenuData] = useState({ content: '', copyOnly: false })
const [copiedSection, setCopiedSection] = useState<'input' | 'output' | null>(null)
const handleCopySection = useCallback((content: string, section: 'input' | 'output') => {
navigator.clipboard.writeText(content)
setCopiedSection(section)
setTimeout(() => setCopiedSection(null), 1500)
}, [])
const openContextMenu = useCallback( const openContextMenu = useCallback(
(e: React.MouseEvent, content: string, copyOnly: boolean) => { (e: React.MouseEvent, content: string, copyOnly: boolean) => {
@@ -895,6 +862,9 @@ function PreviewEditorContent({
} }
}, [contextMenuData.content]) }, [contextMenuData.content])
/**
* Handles mouse down event on the resize handle to initiate resizing
*/
const handleConnectionsResizeMouseDown = useCallback( const handleConnectionsResizeMouseDown = useCallback(
(e: React.MouseEvent) => { (e: React.MouseEvent) => {
setIsResizing(true) setIsResizing(true)
@@ -904,12 +874,18 @@ function PreviewEditorContent({
[connectionsHeight] [connectionsHeight]
) )
/**
* Toggle connections collapsed state
*/
const toggleConnectionsCollapsed = useCallback(() => { const toggleConnectionsCollapsed = useCallback(() => {
setConnectionsHeight((prev) => setConnectionsHeight((prev) =>
prev <= MIN_CONNECTIONS_HEIGHT ? DEFAULT_CONNECTIONS_HEIGHT : MIN_CONNECTIONS_HEIGHT prev <= MIN_CONNECTIONS_HEIGHT ? DEFAULT_CONNECTIONS_HEIGHT : MIN_CONNECTIONS_HEIGHT
) )
}, []) }, [])
/**
* Sets up resize event listeners during resize operations
*/
useEffect(() => { useEffect(() => {
if (!isResizing) return if (!isResizing) return
@@ -1229,11 +1205,7 @@ function PreviewEditorContent({
} }
emptyMessage='No input data' emptyMessage='No input data'
> >
<div <div onContextMenu={handleExecutionContextMenu} ref={contentRef}>
onContextMenu={handleExecutionContextMenu}
ref={contentRef}
className='relative'
>
<Code.Viewer <Code.Viewer
code={formatValueAsJson(executionData.input)} code={formatValueAsJson(executionData.input)}
language='json' language='json'
@@ -1243,49 +1215,6 @@ function PreviewEditorContent({
currentMatchIndex={currentMatchIndex} currentMatchIndex={currentMatchIndex}
onMatchCountChange={handleMatchCountChange} onMatchCountChange={handleMatchCountChange}
/> />
{/* Action buttons overlay */}
{!isSearchActive && (
<div className='absolute top-[7px] right-[6px] z-10 flex gap-[4px]'>
<Tooltip.Root>
<Tooltip.Trigger asChild>
<Button
type='button'
variant='ghost'
onClick={(e) => {
e.stopPropagation()
handleCopySection(formatValueAsJson(executionData.input), 'input')
}}
className='h-[20px] w-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-sm hover:bg-[var(--surface-4)]'
>
{copiedSection === 'input' ? (
<Check className='h-[10px] w-[10px] text-[var(--text-success)]' />
) : (
<Clipboard className='h-[10px] w-[10px]' />
)}
</Button>
</Tooltip.Trigger>
<Tooltip.Content side='top'>
{copiedSection === 'input' ? 'Copied' : 'Copy'}
</Tooltip.Content>
</Tooltip.Root>
<Tooltip.Root>
<Tooltip.Trigger asChild>
<Button
type='button'
variant='ghost'
onClick={(e) => {
e.stopPropagation()
activateSearch()
}}
className='h-[20px] w-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-sm hover:bg-[var(--surface-4)]'
>
<Search className='h-[10px] w-[10px]' />
</Button>
</Tooltip.Trigger>
<Tooltip.Content side='top'>Search</Tooltip.Content>
</Tooltip.Root>
</div>
)}
</div> </div>
</CollapsibleSection> </CollapsibleSection>
)} )}
@@ -1302,7 +1231,7 @@ function PreviewEditorContent({
emptyMessage='No output data' emptyMessage='No output data'
isError={executionData.status === 'error'} isError={executionData.status === 'error'}
> >
<div onContextMenu={handleExecutionContextMenu} className='relative'> <div onContextMenu={handleExecutionContextMenu}>
<Code.Viewer <Code.Viewer
code={formatValueAsJson(executionData.output)} code={formatValueAsJson(executionData.output)}
language='json' language='json'
@@ -1315,49 +1244,6 @@ function PreviewEditorContent({
currentMatchIndex={currentMatchIndex} currentMatchIndex={currentMatchIndex}
onMatchCountChange={handleMatchCountChange} onMatchCountChange={handleMatchCountChange}
/> />
{/* Action buttons overlay */}
{!isSearchActive && (
<div className='absolute top-[7px] right-[6px] z-10 flex gap-[4px]'>
<Tooltip.Root>
<Tooltip.Trigger asChild>
<Button
type='button'
variant='ghost'
onClick={(e) => {
e.stopPropagation()
handleCopySection(formatValueAsJson(executionData.output), 'output')
}}
className='h-[20px] w-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-sm hover:bg-[var(--surface-4)]'
>
{copiedSection === 'output' ? (
<Check className='h-[10px] w-[10px] text-[var(--text-success)]' />
) : (
<Clipboard className='h-[10px] w-[10px]' />
)}
</Button>
</Tooltip.Trigger>
<Tooltip.Content side='top'>
{copiedSection === 'output' ? 'Copied' : 'Copy'}
</Tooltip.Content>
</Tooltip.Root>
<Tooltip.Root>
<Tooltip.Trigger asChild>
<Button
type='button'
variant='ghost'
onClick={(e) => {
e.stopPropagation()
activateSearch()
}}
className='h-[20px] w-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-sm hover:bg-[var(--surface-4)]'
>
<Search className='h-[10px] w-[10px]' />
</Button>
</Tooltip.Trigger>
<Tooltip.Content side='top'>Search</Tooltip.Content>
</Tooltip.Root>
</div>
)}
</div> </div>
</CollapsibleSection> </CollapsibleSection>
)} )}
@@ -1370,7 +1256,7 @@ function PreviewEditorContent({
Workflow Preview Workflow Preview
</div> </div>
<div className='relative h-[160px] overflow-hidden rounded-[4px] border border-[var(--border)]'> <div className='relative h-[160px] overflow-hidden rounded-[4px] border border-[var(--border)]'>
{resolvedIsLoadingChildWorkflow ? ( {isLoadingChildWorkflow ? (
<div className='flex h-full items-center justify-center bg-[var(--surface-3)]'> <div className='flex h-full items-center justify-center bg-[var(--surface-3)]'>
<div <div
className='h-[18px] w-[18px] animate-spin rounded-full' className='h-[18px] w-[18px] animate-spin rounded-full'
@@ -1383,11 +1269,11 @@ function PreviewEditorContent({
}} }}
/> />
</div> </div>
) : resolvedChildWorkflowState ? ( ) : childWorkflowState ? (
<> <>
<div className='[&_*:active]:!cursor-grabbing [&_*]:!cursor-grab [&_.react-flow__handle]:!hidden h-full w-full'> <div className='[&_*:active]:!cursor-grabbing [&_*]:!cursor-grab [&_.react-flow__handle]:!hidden h-full w-full'>
<PreviewWorkflow <PreviewWorkflow
workflowState={resolvedChildWorkflowState} workflowState={childWorkflowState}
height={160} height={160}
width='100%' width='100%'
isPannable={true} isPannable={true}
@@ -1419,9 +1305,7 @@ function PreviewEditorContent({
) : ( ) : (
<div className='flex h-full items-center justify-center bg-[var(--surface-3)]'> <div className='flex h-full items-center justify-center bg-[var(--surface-3)]'>
<span className='text-[13px] text-[var(--text-tertiary)]'> <span className='text-[13px] text-[var(--text-tertiary)]'>
{isMissingChildWorkflow Unable to load preview
? DELETED_WORKFLOW_LABEL
: 'Unable to load preview'}
</span> </span>
</div> </div>
)} )}

View File

@@ -9,7 +9,6 @@ import {
isSubBlockFeatureEnabled, isSubBlockFeatureEnabled,
isSubBlockVisibleForMode, isSubBlockVisibleForMode,
} from '@/lib/workflows/subblocks/visibility' } from '@/lib/workflows/subblocks/visibility'
import { DELETED_WORKFLOW_LABEL } from '@/app/workspace/[workspaceId]/logs/utils'
import { getDisplayValue } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/workflow-block' import { getDisplayValue } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/workflow-block'
import { getBlock } from '@/blocks' import { getBlock } from '@/blocks'
import { SELECTOR_TYPES_HYDRATION_REQUIRED, type SubBlockConfig } from '@/blocks/types' import { SELECTOR_TYPES_HYDRATION_REQUIRED, type SubBlockConfig } from '@/blocks/types'
@@ -113,7 +112,7 @@ function resolveWorkflowName(
if (!rawValue || typeof rawValue !== 'string') return null if (!rawValue || typeof rawValue !== 'string') return null
const workflowMap = useWorkflowRegistry.getState().workflows const workflowMap = useWorkflowRegistry.getState().workflows
return workflowMap[rawValue]?.name ?? DELETED_WORKFLOW_LABEL return workflowMap[rawValue]?.name ?? null
} }
/** /**
@@ -461,14 +460,12 @@ function WorkflowPreviewBlockInner({ data }: NodeProps<WorkflowPreviewBlockData>
className={`flex items-center justify-between p-[8px] ${hasContentBelowHeader ? 'border-[var(--border-1)] border-b' : ''}`} className={`flex items-center justify-between p-[8px] ${hasContentBelowHeader ? 'border-[var(--border-1)] border-b' : ''}`}
> >
<div className='relative z-10 flex min-w-0 flex-1 items-center gap-[10px]'> <div className='relative z-10 flex min-w-0 flex-1 items-center gap-[10px]'>
{!isNoteBlock && (
<div <div
className='flex h-[24px] w-[24px] flex-shrink-0 items-center justify-center rounded-[6px]' className='flex h-[24px] w-[24px] flex-shrink-0 items-center justify-center rounded-[6px]'
style={{ background: enabled ? blockConfig.bgColor : 'gray' }} style={{ background: enabled ? blockConfig.bgColor : 'gray' }}
> >
<IconComponent className='h-[16px] w-[16px] text-white' /> <IconComponent className='h-[16px] w-[16px] text-white' />
</div> </div>
)}
<span <span
className={`truncate font-medium text-[16px] ${!enabled ? 'text-[var(--text-muted)]' : ''}`} className={`truncate font-medium text-[16px] ${!enabled ? 'text-[var(--text-muted)]' : ''}`}
title={name} title={name}

View File

@@ -19,8 +19,6 @@ interface TraceSpan {
status?: string status?: string
duration?: number duration?: number
children?: TraceSpan[] children?: TraceSpan[]
childWorkflowSnapshotId?: string
childWorkflowId?: string
} }
interface BlockExecutionData { interface BlockExecutionData {
@@ -30,7 +28,6 @@ interface BlockExecutionData {
durationMs: number durationMs: number
/** Child trace spans for nested workflow blocks */ /** Child trace spans for nested workflow blocks */
children?: TraceSpan[] children?: TraceSpan[]
childWorkflowSnapshotId?: string
} }
/** Represents a level in the workflow navigation stack */ /** Represents a level in the workflow navigation stack */
@@ -38,7 +35,6 @@ interface WorkflowStackEntry {
workflowState: WorkflowState workflowState: WorkflowState
traceSpans: TraceSpan[] traceSpans: TraceSpan[]
blockExecutions: Record<string, BlockExecutionData> blockExecutions: Record<string, BlockExecutionData>
workflowName: string
} }
/** /**
@@ -93,7 +89,6 @@ export function buildBlockExecutions(spans: TraceSpan[]): Record<string, BlockEx
status: span.status || 'unknown', status: span.status || 'unknown',
durationMs: span.duration || 0, durationMs: span.duration || 0,
children: span.children, children: span.children,
childWorkflowSnapshotId: span.childWorkflowSnapshotId,
} }
} }
} }
@@ -108,8 +103,6 @@ interface PreviewProps {
traceSpans?: TraceSpan[] traceSpans?: TraceSpan[]
/** Pre-computed block executions (optional - will be built from traceSpans if not provided) */ /** Pre-computed block executions (optional - will be built from traceSpans if not provided) */
blockExecutions?: Record<string, BlockExecutionData> blockExecutions?: Record<string, BlockExecutionData>
/** Child workflow snapshots keyed by snapshot ID (execution mode only) */
childWorkflowSnapshots?: Record<string, WorkflowState>
/** Additional CSS class names */ /** Additional CSS class names */
className?: string className?: string
/** Height of the component */ /** Height of the component */
@@ -142,7 +135,6 @@ export function Preview({
workflowState: rootWorkflowState, workflowState: rootWorkflowState,
traceSpans: rootTraceSpans, traceSpans: rootTraceSpans,
blockExecutions: providedBlockExecutions, blockExecutions: providedBlockExecutions,
childWorkflowSnapshots,
className, className,
height = '100%', height = '100%',
width = '100%', width = '100%',
@@ -152,6 +144,7 @@ export function Preview({
initialSelectedBlockId, initialSelectedBlockId,
autoSelectLeftmost = true, autoSelectLeftmost = true,
}: PreviewProps) { }: PreviewProps) {
/** Initialize pinnedBlockId synchronously to ensure sidebar is present from first render */
const [pinnedBlockId, setPinnedBlockId] = useState<string | null>(() => { const [pinnedBlockId, setPinnedBlockId] = useState<string | null>(() => {
if (initialSelectedBlockId) return initialSelectedBlockId if (initialSelectedBlockId) return initialSelectedBlockId
if (autoSelectLeftmost) { if (autoSelectLeftmost) {
@@ -160,14 +153,17 @@ export function Preview({
return null return null
}) })
/** Stack for nested workflow navigation. Empty means we're at the root level. */
const [workflowStack, setWorkflowStack] = useState<WorkflowStackEntry[]>([]) const [workflowStack, setWorkflowStack] = useState<WorkflowStackEntry[]>([])
/** Block executions for the root level */
const rootBlockExecutions = useMemo(() => { const rootBlockExecutions = useMemo(() => {
if (providedBlockExecutions) return providedBlockExecutions if (providedBlockExecutions) return providedBlockExecutions
if (!rootTraceSpans || !Array.isArray(rootTraceSpans)) return {} if (!rootTraceSpans || !Array.isArray(rootTraceSpans)) return {}
return buildBlockExecutions(rootTraceSpans) return buildBlockExecutions(rootTraceSpans)
}, [providedBlockExecutions, rootTraceSpans]) }, [providedBlockExecutions, rootTraceSpans])
/** Current block executions - either from stack or root */
const blockExecutions = useMemo(() => { const blockExecutions = useMemo(() => {
if (workflowStack.length > 0) { if (workflowStack.length > 0) {
return workflowStack[workflowStack.length - 1].blockExecutions return workflowStack[workflowStack.length - 1].blockExecutions
@@ -175,6 +171,7 @@ export function Preview({
return rootBlockExecutions return rootBlockExecutions
}, [workflowStack, rootBlockExecutions]) }, [workflowStack, rootBlockExecutions])
/** Current workflow state - either from stack or root */
const workflowState = useMemo(() => { const workflowState = useMemo(() => {
if (workflowStack.length > 0) { if (workflowStack.length > 0) {
return workflowStack[workflowStack.length - 1].workflowState return workflowStack[workflowStack.length - 1].workflowState
@@ -182,39 +179,41 @@ export function Preview({
return rootWorkflowState return rootWorkflowState
}, [workflowStack, rootWorkflowState]) }, [workflowStack, rootWorkflowState])
/** Whether we're in execution mode (have trace spans/block executions) */
const isExecutionMode = useMemo(() => { const isExecutionMode = useMemo(() => {
return Object.keys(blockExecutions).length > 0 return Object.keys(blockExecutions).length > 0
}, [blockExecutions]) }, [blockExecutions])
/** Handler to drill down into a nested workflow block */
const handleDrillDown = useCallback( const handleDrillDown = useCallback(
(blockId: string, childWorkflowState: WorkflowState) => { (blockId: string, childWorkflowState: WorkflowState) => {
const blockExecution = blockExecutions[blockId] const blockExecution = blockExecutions[blockId]
const childTraceSpans = extractChildTraceSpans(blockExecution) const childTraceSpans = extractChildTraceSpans(blockExecution)
const childBlockExecutions = buildBlockExecutions(childTraceSpans) const childBlockExecutions = buildBlockExecutions(childTraceSpans)
const workflowName = childWorkflowState.metadata?.name || 'Nested Workflow'
setWorkflowStack((prev) => [ setWorkflowStack((prev) => [
...prev, ...prev,
{ {
workflowState: childWorkflowState, workflowState: childWorkflowState,
traceSpans: childTraceSpans, traceSpans: childTraceSpans,
blockExecutions: childBlockExecutions, blockExecutions: childBlockExecutions,
workflowName,
}, },
]) ])
/** Set pinned block synchronously to avoid double fitView from sidebar resize */
const leftmostId = getLeftmostBlockId(childWorkflowState) const leftmostId = getLeftmostBlockId(childWorkflowState)
setPinnedBlockId(leftmostId) setPinnedBlockId(leftmostId)
}, },
[blockExecutions] [blockExecutions]
) )
/** Handler to go back up the stack */
const handleGoBack = useCallback(() => { const handleGoBack = useCallback(() => {
setWorkflowStack((prev) => prev.slice(0, -1)) setWorkflowStack((prev) => prev.slice(0, -1))
setPinnedBlockId(null) setPinnedBlockId(null)
}, []) }, [])
/** Handlers for node interactions - memoized to prevent unnecessary re-renders */
const handleNodeClick = useCallback((blockId: string) => { const handleNodeClick = useCallback((blockId: string) => {
setPinnedBlockId(blockId) setPinnedBlockId(blockId)
}, []) }, [])
@@ -233,8 +232,6 @@ export function Preview({
const isNested = workflowStack.length > 0 const isNested = workflowStack.length > 0
const currentWorkflowName = isNested ? workflowStack[workflowStack.length - 1].workflowName : null
return ( return (
<div <div
style={{ height, width }} style={{ height, width }}
@@ -245,27 +242,20 @@ export function Preview({
)} )}
> >
{isNested && ( {isNested && (
<div className='absolute top-[12px] left-[12px] z-20 flex items-center gap-[6px]'> <div className='absolute top-[12px] left-[12px] z-20'>
<Tooltip.Root> <Tooltip.Root>
<Tooltip.Trigger asChild> <Tooltip.Trigger asChild>
<Button <Button
variant='ghost' variant='ghost'
onClick={handleGoBack} onClick={handleGoBack}
className='flex h-[28px] items-center gap-[5px] rounded-[6px] border border-[var(--border)] bg-[var(--surface-2)] px-[10px] text-[var(--text-secondary)] shadow-sm hover:bg-[var(--surface-4)] hover:text-[var(--text-primary)]' className='flex h-[30px] items-center gap-[5px] border border-[var(--border)] bg-[var(--surface-2)] px-[10px] hover:bg-[var(--surface-4)]'
> >
<ArrowLeft className='h-[12px] w-[12px]' /> <ArrowLeft className='h-[13px] w-[13px]' />
<span className='font-medium text-[12px]'>Back</span> <span className='font-medium text-[13px]'>Back</span>
</Button> </Button>
</Tooltip.Trigger> </Tooltip.Trigger>
<Tooltip.Content side='bottom'>Go back to parent workflow</Tooltip.Content> <Tooltip.Content side='bottom'>Go back to parent workflow</Tooltip.Content>
</Tooltip.Root> </Tooltip.Root>
{currentWorkflowName && (
<div className='flex h-[28px] max-w-[200px] items-center rounded-[6px] border border-[var(--border)] bg-[var(--surface-2)] px-[10px] shadow-sm'>
<span className='truncate font-medium text-[12px] text-[var(--text-secondary)]'>
{currentWorkflowName}
</span>
</div>
)}
</div> </div>
)} )}
@@ -294,7 +284,6 @@ export function Preview({
loops={workflowState.loops} loops={workflowState.loops}
parallels={workflowState.parallels} parallels={workflowState.parallels}
isExecutionMode={isExecutionMode} isExecutionMode={isExecutionMode}
childWorkflowSnapshots={childWorkflowSnapshots}
onClose={handleEditorClose} onClose={handleEditorClose}
onDrillDown={handleDrillDown} onDrillDown={handleDrillDown}
/> />

View File

@@ -1,4 +1,3 @@
export { AccessControl } from './access-control/access-control'
export { ApiKeys } from './api-keys/api-keys' export { ApiKeys } from './api-keys/api-keys'
export { BYOK } from './byok/byok' export { BYOK } from './byok/byok'
export { Copilot } from './copilot/copilot' export { Copilot } from './copilot/copilot'
@@ -10,7 +9,6 @@ export { Files as FileUploads } from './files/files'
export { General } from './general/general' export { General } from './general/general'
export { Integrations } from './integrations/integrations' export { Integrations } from './integrations/integrations'
export { MCP } from './mcp/mcp' export { MCP } from './mcp/mcp'
export { SSO } from './sso/sso'
export { Subscription } from './subscription/subscription' export { Subscription } from './subscription/subscription'
export { TeamManagement } from './team-management/team-management' export { TeamManagement } from './team-management/team-management'
export { WorkflowMcpServers } from './workflow-mcp-servers/workflow-mcp-servers' export { WorkflowMcpServers } from './workflow-mcp-servers/workflow-mcp-servers'

View File

@@ -1,6 +1,6 @@
'use client' 'use client'
import { createElement, useEffect, useRef, useState } from 'react' import { useEffect, useRef, useState } from 'react'
import { createLogger } from '@sim/logger' import { createLogger } from '@sim/logger'
import { Check, ChevronDown, ExternalLink, Search } from 'lucide-react' import { Check, ChevronDown, ExternalLink, Search } from 'lucide-react'
import { useRouter, useSearchParams } from 'next/navigation' import { useRouter, useSearchParams } from 'next/navigation'
@@ -339,7 +339,9 @@ export function Integrations({ onOpenChange, registerCloseHandler }: Integration
> >
<div className='flex items-center gap-[12px]'> <div className='flex items-center gap-[12px]'>
<div className='flex h-9 w-9 flex-shrink-0 items-center justify-center overflow-hidden rounded-[6px] bg-[var(--surface-5)]'> <div className='flex h-9 w-9 flex-shrink-0 items-center justify-center overflow-hidden rounded-[6px] bg-[var(--surface-5)]'>
{createElement(service.icon, { className: 'h-4 w-4' })} {typeof service.icon === 'function'
? service.icon({ className: 'h-4 w-4' })
: service.icon}
</div> </div>
<div className='flex flex-col justify-center gap-[1px]'> <div className='flex flex-col justify-center gap-[1px]'>
<span className='font-medium text-[14px]'>{service.name}</span> <span className='font-medium text-[14px]'>{service.name}</span>

View File

@@ -41,7 +41,6 @@ import { getEnv, isTruthy } from '@/lib/core/config/env'
import { isHosted } from '@/lib/core/config/feature-flags' import { isHosted } from '@/lib/core/config/feature-flags'
import { getUserRole } from '@/lib/workspaces/organization' import { getUserRole } from '@/lib/workspaces/organization'
import { import {
AccessControl,
ApiKeys, ApiKeys,
BYOK, BYOK,
Copilot, Copilot,
@@ -53,15 +52,15 @@ import {
General, General,
Integrations, Integrations,
MCP, MCP,
SSO,
Subscription, Subscription,
TeamManagement, TeamManagement,
WorkflowMcpServers, WorkflowMcpServers,
} from '@/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components' } from '@/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components'
import { TemplateProfile } from '@/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/template-profile/template-profile' import { TemplateProfile } from '@/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/template-profile/template-profile'
import { AccessControl } from '@/ee/access-control'
import { SSO, ssoKeys, useSSOProviders } from '@/ee/sso'
import { generalSettingsKeys, useGeneralSettings } from '@/hooks/queries/general-settings' import { generalSettingsKeys, useGeneralSettings } from '@/hooks/queries/general-settings'
import { organizationKeys, useOrganizations } from '@/hooks/queries/organization' import { organizationKeys, useOrganizations } from '@/hooks/queries/organization'
import { ssoKeys, useSSOProviders } from '@/hooks/queries/sso'
import { subscriptionKeys, useSubscriptionData } from '@/hooks/queries/subscription' import { subscriptionKeys, useSubscriptionData } from '@/hooks/queries/subscription'
import { usePermissionConfig } from '@/hooks/use-permission-config' import { usePermissionConfig } from '@/hooks/use-permission-config'
import { useSettingsModalStore } from '@/stores/modals/settings/store' import { useSettingsModalStore } from '@/stores/modals/settings/store'

View File

@@ -21,9 +21,8 @@ interface DeleteModalProps {
isDeleting: boolean isDeleting: boolean
/** /**
* Type of item being deleted * Type of item being deleted
* - 'mixed' is used when both workflows and folders are selected
*/ */
itemType: 'workflow' | 'folder' | 'workspace' | 'mixed' itemType: 'workflow' | 'folder' | 'workspace'
/** /**
* Name(s) of the item(s) being deleted (optional, for display) * Name(s) of the item(s) being deleted (optional, for display)
* Can be a single name or an array of names for multiple items * Can be a single name or an array of names for multiple items
@@ -55,9 +54,7 @@ export function DeleteModal({
if (itemType === 'workflow') { if (itemType === 'workflow') {
title = isMultiple ? 'Delete Workflows' : 'Delete Workflow' title = isMultiple ? 'Delete Workflows' : 'Delete Workflow'
} else if (itemType === 'folder') { } else if (itemType === 'folder') {
title = isMultiple ? 'Delete Folders' : 'Delete Folder' title = 'Delete Folder'
} else if (itemType === 'mixed') {
title = 'Delete Items'
} else { } else {
title = 'Delete Workspace' title = 'Delete Workspace'
} }
@@ -88,18 +85,6 @@ export function DeleteModal({
} }
if (itemType === 'folder') { if (itemType === 'folder') {
if (isMultiple) {
return (
<>
Are you sure you want to delete{' '}
<span className='font-medium text-[var(--text-primary)]'>
{displayNames.join(', ')}
</span>
? This will permanently remove all workflows, logs, and knowledge bases within these
folders.
</>
)
}
if (isSingle && displayNames.length > 0) { if (isSingle && displayNames.length > 0) {
return ( return (
<> <>
@@ -112,23 +97,6 @@ export function DeleteModal({
return 'Are you sure you want to delete this folder? This will permanently remove all associated workflows, logs, and knowledge bases.' return 'Are you sure you want to delete this folder? This will permanently remove all associated workflows, logs, and knowledge bases.'
} }
if (itemType === 'mixed') {
if (displayNames.length > 0) {
return (
<>
Are you sure you want to delete{' '}
<span className='font-medium text-[var(--text-primary)]'>
{displayNames.join(', ')}
</span>
? This will permanently remove all selected workflows and folders, including their
contents.
</>
)
}
return 'Are you sure you want to delete the selected items? This will permanently remove all selected workflows and folders, including their contents.'
}
// workspace type
if (isSingle && displayNames.length > 0) { if (isSingle && displayNames.length > 0) {
return ( return (
<> <>

View File

@@ -1,6 +1,6 @@
'use client' 'use client'
import { useCallback, useMemo, useRef, useState } from 'react' import { useCallback, useMemo, useState } from 'react'
import { createLogger } from '@sim/logger' import { createLogger } from '@sim/logger'
import clsx from 'clsx' import clsx from 'clsx'
import { ChevronRight, Folder, FolderOpen, MoreHorizontal } from 'lucide-react' import { ChevronRight, Folder, FolderOpen, MoreHorizontal } from 'lucide-react'
@@ -14,23 +14,17 @@ import {
useFolderExpand, useFolderExpand,
useItemDrag, useItemDrag,
useItemRename, useItemRename,
useSidebarDragContext,
} from '@/app/workspace/[workspaceId]/w/components/sidebar/hooks' } from '@/app/workspace/[workspaceId]/w/components/sidebar/hooks'
import { SIDEBAR_SCROLL_EVENT } from '@/app/workspace/[workspaceId]/w/components/sidebar/sidebar' import { SIDEBAR_SCROLL_EVENT } from '@/app/workspace/[workspaceId]/w/components/sidebar/sidebar'
import { import {
useCanDelete, useCanDelete,
useDeleteFolder, useDeleteFolder,
useDeleteSelection,
useDuplicateFolder, useDuplicateFolder,
useDuplicateSelection,
useExportFolder, useExportFolder,
useExportSelection,
} from '@/app/workspace/[workspaceId]/w/hooks' } from '@/app/workspace/[workspaceId]/w/hooks'
import { useCreateFolder, useUpdateFolder } from '@/hooks/queries/folders' import { useCreateFolder, useUpdateFolder } from '@/hooks/queries/folders'
import { useCreateWorkflow } from '@/hooks/queries/workflows' import { useCreateWorkflow } from '@/hooks/queries/workflows'
import { useFolderStore } from '@/stores/folders/store'
import type { FolderTreeNode } from '@/stores/folders/types' import type { FolderTreeNode } from '@/stores/folders/types'
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
import { generateCreativeWorkflowName } from '@/stores/workflows/registry/utils' import { generateCreativeWorkflowName } from '@/stores/workflows/registry/utils'
const logger = createLogger('FolderItem') const logger = createLogger('FolderItem')
@@ -43,21 +37,26 @@ interface FolderItemProps {
onDragEnter?: (e: React.DragEvent<HTMLElement>) => void onDragEnter?: (e: React.DragEvent<HTMLElement>) => void
onDragLeave?: (e: React.DragEvent<HTMLElement>) => void onDragLeave?: (e: React.DragEvent<HTMLElement>) => void
} }
onFolderClick?: (folderId: string, shiftKey: boolean, metaKey: boolean) => void
onDragStart?: () => void onDragStart?: () => void
onDragEnd?: () => void onDragEnd?: () => void
} }
/**
* FolderItem component displaying a single folder with drag and expand/collapse support.
* Uses item drag and folder expand hooks for unified behavior.
* Supports hover-to-expand during drag operations via hoverHandlers.
*
* @param props - Component props
* @returns Folder item with drag and expand support
*/
export function FolderItem({ export function FolderItem({
folder, folder,
level, level,
dragDisabled = false, dragDisabled = false,
hoverHandlers, hoverHandlers,
onFolderClick,
onDragStart: onDragStartProp, onDragStart: onDragStartProp,
onDragEnd: onDragEndProp, onDragEnd: onDragEndProp,
}: FolderItemProps) { }: FolderItemProps) {
const { isAnyDragActive } = useSidebarDragContext()
const params = useParams() const params = useParams()
const router = useRouter() const router = useRouter()
const workspaceId = params.workspaceId as string const workspaceId = params.workspaceId as string
@@ -65,64 +64,27 @@ export function FolderItem({
const createWorkflowMutation = useCreateWorkflow() const createWorkflowMutation = useCreateWorkflow()
const createFolderMutation = useCreateFolder() const createFolderMutation = useCreateFolder()
const userPermissions = useUserPermissionsContext() const userPermissions = useUserPermissionsContext()
const selectedFolders = useFolderStore((state) => state.selectedFolders)
const isSelected = selectedFolders.has(folder.id)
const { canDeleteFolder, canDeleteWorkflows } = useCanDelete({ workspaceId }) const { canDeleteFolder } = useCanDelete({ workspaceId })
const canDelete = useMemo(() => canDeleteFolder(folder.id), [canDeleteFolder, folder.id])
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false) const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false)
const [deleteItemType, setDeleteItemType] = useState<'folder' | 'mixed'>('folder')
const [deleteItemNames, setDeleteItemNames] = useState<string | string[]>(folder.name)
const capturedSelectionRef = useRef<{ const { isDeleting, handleDeleteFolder } = useDeleteFolder({
workflowIds: string[]
folderIds: string[]
isMixed: boolean
names: string[]
} | null>(null)
const [canDeleteSelection, setCanDeleteSelection] = useState(true)
const { isDeleting: isDeletingThisFolder, handleDeleteFolder: handleDeleteThisFolder } =
useDeleteFolder({
workspaceId, workspaceId,
folderIds: folder.id, folderIds: folder.id,
onSuccess: () => setIsDeleteModalOpen(false), onSuccess: () => setIsDeleteModalOpen(false),
}) })
const { isDeleting: isDeletingSelection, handleDeleteSelection } = useDeleteSelection({ const { handleDuplicateFolder } = useDuplicateFolder({
workspaceId,
workflowIds: capturedSelectionRef.current?.workflowIds || [],
folderIds: capturedSelectionRef.current?.folderIds || [],
isActiveWorkflow: (id) => id === params.workflowId,
onSuccess: () => setIsDeleteModalOpen(false),
})
const isDeleting = isDeletingThisFolder || isDeletingSelection
const { handleDuplicateFolder: handleDuplicateThisFolder } = useDuplicateFolder({
workspaceId, workspaceId,
folderIds: folder.id, folderIds: folder.id,
}) })
const { isDuplicating: isDuplicatingSelection, handleDuplicateSelection } = useDuplicateSelection( const { isExporting, hasWorkflows, handleExportFolder } = useExportFolder({
{
workspaceId,
}
)
const {
isExporting: isExportingThisFolder,
hasWorkflows,
handleExportFolder: handleExportThisFolder,
} = useExportFolder({
folderId: folder.id, folderId: folder.id,
}) })
const { isExporting: isExportingSelection, handleExportSelection } = useExportSelection()
const isExporting = isExportingThisFolder || isExportingSelection
const { const {
isExpanded, isExpanded,
handleToggleExpanded, handleToggleExpanded,
@@ -132,8 +94,11 @@ export function FolderItem({
folderId: folder.id, folderId: folder.id,
}) })
const isEditingRef = useRef(false) /**
* Handle create workflow in folder using React Query mutation.
* Generates name and color upfront for optimistic UI updates.
* The UI disables the trigger when isPending, so no guard needed here.
*/
const handleCreateWorkflowInFolder = useCallback(async () => { const handleCreateWorkflowInFolder = useCallback(async () => {
try { try {
const name = generateCreativeWorkflowName() const name = generateCreativeWorkflowName()
@@ -158,6 +123,10 @@ export function FolderItem({
} }
}, [createWorkflowMutation, workspaceId, folder.id, router, expandFolder]) }, [createWorkflowMutation, workspaceId, folder.id, router, expandFolder])
/**
* Handle create sub-folder using React Query mutation.
* Creates a new folder inside the current folder.
*/
const handleCreateFolderInFolder = useCallback(async () => { const handleCreateFolderInFolder = useCallback(async () => {
try { try {
const result = await createFolderMutation.mutateAsync({ const result = await createFolderMutation.mutateAsync({
@@ -178,25 +147,12 @@ export function FolderItem({
const onDragStart = useCallback( const onDragStart = useCallback(
(e: React.DragEvent) => { (e: React.DragEvent) => {
if (isEditingRef.current) { if (isEditing) {
e.preventDefault() e.preventDefault()
return return
} }
const { selectedWorkflows, selectedFolders } = useFolderStore.getState() e.dataTransfer.setData('folder-id', folder.id)
const isCurrentlySelected = selectedFolders.has(folder.id)
const selection = isCurrentlySelected
? {
workflowIds: Array.from(selectedWorkflows),
folderIds: Array.from(selectedFolders),
}
: {
workflowIds: [],
folderIds: [folder.id],
}
e.dataTransfer.setData('sidebar-selection', JSON.stringify(selection))
e.dataTransfer.effectAllowed = 'move' e.dataTransfer.effectAllowed = 'move'
onDragStartProp?.() onDragStartProp?.()
}, },
@@ -221,59 +177,11 @@ export function FolderItem({
isOpen: isContextMenuOpen, isOpen: isContextMenuOpen,
position, position,
menuRef, menuRef,
handleContextMenu: handleContextMenuBase, handleContextMenu,
closeMenu, closeMenu,
preventDismiss, preventDismiss,
} = useContextMenu() } = useContextMenu()
const captureSelectionState = useCallback(() => {
const store = useFolderStore.getState()
const isFolderSelected = store.selectedFolders.has(folder.id)
if (!isFolderSelected) {
store.selectFolder(folder.id)
}
const finalFolderSelection = useFolderStore.getState().selectedFolders
const finalWorkflowSelection = useFolderStore.getState().selectedWorkflows
const folderIds = Array.from(finalFolderSelection)
const workflowIds = Array.from(finalWorkflowSelection)
const isMixed = folderIds.length > 0 && workflowIds.length > 0
const { folders } = useFolderStore.getState()
const { workflows } = useWorkflowRegistry.getState()
const names: string[] = []
for (const id of folderIds) {
const f = folders[id]
if (f) names.push(f.name)
}
for (const id of workflowIds) {
const w = workflows[id]
if (w) names.push(w.name)
}
capturedSelectionRef.current = {
workflowIds,
folderIds,
isMixed,
names,
}
const canDeleteAllFolders = folderIds.every((id) => canDeleteFolder(id))
const canDeleteAllWorkflows = workflowIds.length === 0 || canDeleteWorkflows(workflowIds)
setCanDeleteSelection(canDeleteAllFolders && canDeleteAllWorkflows)
}, [folder.id, canDeleteFolder, canDeleteWorkflows])
const handleContextMenu = useCallback(
(e: React.MouseEvent) => {
captureSelectionState()
handleContextMenuBase(e)
},
[captureSelectionState, handleContextMenuBase]
)
const { const {
isEditing, isEditing,
editValue, editValue,
@@ -296,8 +204,9 @@ export function FolderItem({
itemId: folder.id, itemId: folder.id,
}) })
isEditingRef.current = isEditing /**
* Handle double-click on folder name to enter rename mode
*/
const handleDoubleClick = useCallback( const handleDoubleClick = useCallback(
(e: React.MouseEvent) => { (e: React.MouseEvent) => {
e.preventDefault() e.preventDefault()
@@ -307,6 +216,11 @@ export function FolderItem({
[handleStartEdit] [handleStartEdit]
) )
/**
* Handle click - toggles folder expansion
*
* @param e - React mouse event
*/
const handleClick = useCallback( const handleClick = useCallback(
(e: React.MouseEvent<HTMLDivElement>) => { (e: React.MouseEvent<HTMLDivElement>) => {
e.stopPropagation() e.stopPropagation()
@@ -315,21 +229,14 @@ export function FolderItem({
e.preventDefault() e.preventDefault()
return return
} }
const isModifierClick = e.shiftKey || e.metaKey || e.ctrlKey
if (isModifierClick && onFolderClick) {
e.preventDefault()
onFolderClick(folder.id, e.shiftKey, e.metaKey || e.ctrlKey)
return
}
useFolderStore.getState().clearFolderSelection()
handleToggleExpanded() handleToggleExpanded()
}, },
[handleToggleExpanded, shouldPreventClickRef, isEditing, onFolderClick, folder.id] [handleToggleExpanded, shouldPreventClickRef, isEditing]
) )
/**
* Combined keyboard handler for both expand and rename
*/
const handleKeyDown = useCallback( const handleKeyDown = useCallback(
(e: React.KeyboardEvent<HTMLDivElement>) => { (e: React.KeyboardEvent<HTMLDivElement>) => {
if (isEditing) { if (isEditing) {
@@ -341,12 +248,18 @@ export function FolderItem({
[isEditing, handleRenameKeyDown, handleExpandKeyDown] [isEditing, handleRenameKeyDown, handleExpandKeyDown]
) )
/**
* Handle more button pointerdown - prevents click-outside dismissal when toggling
*/
const handleMorePointerDown = useCallback(() => { const handleMorePointerDown = useCallback(() => {
if (isContextMenuOpen) { if (isContextMenuOpen) {
preventDismiss() preventDismiss()
} }
}, [isContextMenuOpen, preventDismiss]) }, [isContextMenuOpen, preventDismiss])
/**
* Handle more button click - toggles context menu at button position
*/
const handleMoreClick = useCallback( const handleMoreClick = useCallback(
(e: React.MouseEvent<HTMLButtonElement>) => { (e: React.MouseEvent<HTMLButtonElement>) => {
e.preventDefault() e.preventDefault()
@@ -357,83 +270,17 @@ export function FolderItem({
return return
} }
captureSelectionState()
const rect = e.currentTarget.getBoundingClientRect() const rect = e.currentTarget.getBoundingClientRect()
handleContextMenuBase({ handleContextMenu({
preventDefault: () => {}, preventDefault: () => {},
stopPropagation: () => {}, stopPropagation: () => {},
clientX: rect.right, clientX: rect.right,
clientY: rect.top, clientY: rect.top,
} as React.MouseEvent) } as React.MouseEvent)
}, },
[isContextMenuOpen, closeMenu, captureSelectionState, handleContextMenuBase] [isContextMenuOpen, closeMenu, handleContextMenu]
) )
const handleOpenDeleteModal = useCallback(() => {
if (!capturedSelectionRef.current) return
const { isMixed, names, folderIds } = capturedSelectionRef.current
if (isMixed) {
setDeleteItemType('mixed')
setDeleteItemNames(names)
} else if (folderIds.length > 1) {
setDeleteItemType('folder')
setDeleteItemNames(names)
} else {
setDeleteItemType('folder')
setDeleteItemNames(folder.name)
}
setIsDeleteModalOpen(true)
}, [folder.name])
const handleConfirmDelete = useCallback(async () => {
if (!capturedSelectionRef.current) return
const { isMixed, folderIds } = capturedSelectionRef.current
if (isMixed || folderIds.length > 1) {
await handleDeleteSelection()
} else {
await handleDeleteThisFolder()
}
}, [handleDeleteSelection, handleDeleteThisFolder])
const handleExport = useCallback(async () => {
if (!capturedSelectionRef.current) return
const { isMixed, workflowIds, folderIds } = capturedSelectionRef.current
if (isMixed || folderIds.length > 1) {
await handleExportSelection(workflowIds, folderIds)
} else {
await handleExportThisFolder()
}
}, [handleExportSelection, handleExportThisFolder])
const handleDuplicate = useCallback(async () => {
if (!capturedSelectionRef.current) return
const { isMixed, workflowIds, folderIds } = capturedSelectionRef.current
if (isMixed || folderIds.length > 1) {
await handleDuplicateSelection(workflowIds, folderIds)
} else {
await handleDuplicateThisFolder()
}
}, [handleDuplicateSelection, handleDuplicateThisFolder])
const isMixedSelection = useMemo(() => {
return capturedSelectionRef.current?.isMixed ?? false
}, [isContextMenuOpen])
const hasExportableContent = useMemo(() => {
if (!capturedSelectionRef.current) return hasWorkflows
const { workflowIds } = capturedSelectionRef.current
return workflowIds.length > 0 || hasWorkflows
}, [isContextMenuOpen, hasWorkflows])
return ( return (
<> <>
<div <div
@@ -443,10 +290,8 @@ export function FolderItem({
aria-expanded={isExpanded} aria-expanded={isExpanded}
aria-label={`${folder.name} folder, ${isExpanded ? 'expanded' : 'collapsed'}`} aria-label={`${folder.name} folder, ${isExpanded ? 'expanded' : 'collapsed'}`}
className={clsx( className={clsx(
'group flex h-[26px] cursor-pointer items-center gap-[8px] rounded-[8px] px-[6px] text-[14px]', 'group flex h-[26px] cursor-pointer items-center gap-[8px] rounded-[8px] px-[6px] text-[14px] hover:bg-[var(--surface-6)] dark:hover:bg-[var(--surface-5)]',
!isAnyDragActive && 'hover:bg-[var(--surface-6)] dark:hover:bg-[var(--surface-5)]', isDragging ? 'opacity-50' : ''
isSelected ? 'bg-[var(--surface-6)] dark:bg-[var(--surface-5)]' : '',
(isDragging || (isAnyDragActive && isSelected)) && 'opacity-50'
)} )}
onClick={handleClick} onClick={handleClick}
onKeyDown={handleKeyDown} onKeyDown={handleKeyDown}
@@ -458,26 +303,20 @@ export function FolderItem({
> >
<ChevronRight <ChevronRight
className={clsx( className={clsx(
'h-3.5 w-3.5 flex-shrink-0 text-[var(--text-tertiary)] transition-transform duration-100', 'h-3.5 w-3.5 flex-shrink-0 transition-transform duration-100',
!isAnyDragActive && 'group-hover:text-[var(--text-primary)]', 'text-[var(--text-tertiary)] group-hover:text-[var(--text-primary)]',
isExpanded && 'rotate-90' isExpanded && 'rotate-90'
)} )}
aria-hidden='true' aria-hidden='true'
/> />
{isExpanded ? ( {isExpanded ? (
<FolderOpen <FolderOpen
className={clsx( className='h-[14px] w-[14px] flex-shrink-0 text-[var(--text-tertiary)] group-hover:text-[var(--text-primary)]'
'h-[14px] w-[14px] flex-shrink-0 text-[var(--text-tertiary)]',
!isAnyDragActive && 'group-hover:text-[var(--text-primary)]'
)}
aria-hidden='true' aria-hidden='true'
/> />
) : ( ) : (
<Folder <Folder
className={clsx( className='h-[14px] w-[14px] flex-shrink-0 text-[var(--text-tertiary)] group-hover:text-[var(--text-primary)]'
'h-[14px] w-[14px] flex-shrink-0 text-[var(--text-tertiary)]',
!isAnyDragActive && 'group-hover:text-[var(--text-primary)]'
)}
aria-hidden='true' aria-hidden='true'
/> />
)} )}
@@ -505,23 +344,16 @@ export function FolderItem({
) : ( ) : (
<div className='flex min-w-0 flex-1 items-center gap-[8px]'> <div className='flex min-w-0 flex-1 items-center gap-[8px]'>
<span <span
className={clsx( className='min-w-0 flex-1 truncate font-medium text-[var(--text-tertiary)] group-hover:text-[var(--text-primary)]'
'min-w-0 flex-1 truncate font-medium text-[var(--text-tertiary)]',
!isAnyDragActive && 'group-hover:text-[var(--text-primary)]'
)}
onDoubleClick={handleDoubleClick} onDoubleClick={handleDoubleClick}
> >
{folder.name} {folder.name}
</span> </span>
<button <button
type='button' type='button'
aria-label='Folder options'
onPointerDown={handleMorePointerDown} onPointerDown={handleMorePointerDown}
onClick={handleMoreClick} onClick={handleMoreClick}
className={clsx( className='flex h-[18px] w-[18px] flex-shrink-0 items-center justify-center rounded-[4px] opacity-0 transition-opacity hover:bg-[var(--surface-7)] group-hover:opacity-100'
'flex h-[18px] w-[18px] flex-shrink-0 items-center justify-center rounded-[4px] opacity-0 transition-opacity hover:bg-[var(--surface-7)]',
!isAnyDragActive && 'group-hover:opacity-100'
)}
> >
<MoreHorizontal className='h-[14px] w-[14px] text-[var(--text-tertiary)]' /> <MoreHorizontal className='h-[14px] w-[14px] text-[var(--text-tertiary)]' />
</button> </button>
@@ -529,6 +361,7 @@ export function FolderItem({
)} )}
</div> </div>
{/* Context Menu */}
<ContextMenu <ContextMenu
isOpen={isContextMenuOpen} isOpen={isContextMenuOpen}
position={position} position={position}
@@ -537,31 +370,28 @@ export function FolderItem({
onRename={handleStartEdit} onRename={handleStartEdit}
onCreate={handleCreateWorkflowInFolder} onCreate={handleCreateWorkflowInFolder}
onCreateFolder={handleCreateFolderInFolder} onCreateFolder={handleCreateFolderInFolder}
onDuplicate={handleDuplicate} onDuplicate={handleDuplicateFolder}
onExport={handleExport} onExport={handleExportFolder}
onDelete={handleOpenDeleteModal} onDelete={() => setIsDeleteModalOpen(true)}
showCreate={!isMixedSelection} showCreate={true}
showCreateFolder={!isMixedSelection} showCreateFolder={true}
showRename={!isMixedSelection && selectedFolders.size <= 1}
showDuplicate={true}
showExport={true} showExport={true}
disableRename={!userPermissions.canEdit} disableRename={!userPermissions.canEdit}
disableCreate={!userPermissions.canEdit || createWorkflowMutation.isPending} disableCreate={!userPermissions.canEdit || createWorkflowMutation.isPending}
disableCreateFolder={!userPermissions.canEdit || createFolderMutation.isPending} disableCreateFolder={!userPermissions.canEdit || createFolderMutation.isPending}
disableDuplicate={ disableDuplicate={!userPermissions.canEdit || !hasWorkflows}
!userPermissions.canEdit || isDuplicatingSelection || !hasExportableContent disableExport={!userPermissions.canEdit || isExporting || !hasWorkflows}
} disableDelete={!userPermissions.canEdit || !canDelete}
disableExport={!userPermissions.canEdit || isExporting || !hasExportableContent}
disableDelete={!userPermissions.canEdit || !canDeleteSelection}
/> />
{/* Delete Modal */}
<DeleteModal <DeleteModal
isOpen={isDeleteModalOpen} isOpen={isDeleteModalOpen}
onClose={() => setIsDeleteModalOpen(false)} onClose={() => setIsDeleteModalOpen(false)}
onConfirm={handleConfirmDelete} onConfirm={handleDeleteFolder}
isDeleting={isDeleting} isDeleting={isDeleting}
itemType={deleteItemType} itemType='folder'
itemName={deleteItemNames} itemName={folder.name}
/> />
</> </>
) )

View File

@@ -51,7 +51,7 @@ function UserAvatar({ user, index }: UserAvatarProps) {
)} )}
<AvatarFallback <AvatarFallback
style={{ background: color }} style={{ background: color }}
className='border-0 font-semibold text-[7px] text-white leading-none' className='border-0 font-semibold text-[7px] text-white'
> >
{initials} {initials}
</AvatarFallback> </AvatarFallback>
@@ -132,7 +132,7 @@ export function Avatars({ workflowId }: AvatarsProps) {
<Tooltip.Root> <Tooltip.Root>
<Tooltip.Trigger asChild> <Tooltip.Trigger asChild>
<Avatar size='xs' style={{ zIndex: 0 } as CSSProperties}> <Avatar size='xs' style={{ zIndex: 0 } as CSSProperties}>
<AvatarFallback className='border-0 bg-[#404040] font-semibold text-[7px] text-white leading-none'> <AvatarFallback className='border-0 bg-[#404040] font-semibold text-[7px] text-white'>
+{overflowCount} +{overflowCount}
</AvatarFallback> </AvatarFallback>
</Avatar> </Avatar>

View File

@@ -1,6 +1,6 @@
'use client' 'use client'
import { useCallback, useMemo, useRef, useState } from 'react' import { useCallback, useRef, useState } from 'react'
import clsx from 'clsx' import clsx from 'clsx'
import { MoreHorizontal } from 'lucide-react' import { MoreHorizontal } from 'lucide-react'
import Link from 'next/link' import Link from 'next/link'
@@ -13,15 +13,11 @@ import {
useContextMenu, useContextMenu,
useItemDrag, useItemDrag,
useItemRename, useItemRename,
useSidebarDragContext,
} from '@/app/workspace/[workspaceId]/w/components/sidebar/hooks' } from '@/app/workspace/[workspaceId]/w/components/sidebar/hooks'
import { import {
useCanDelete, useCanDelete,
useDeleteSelection,
useDeleteWorkflow, useDeleteWorkflow,
useDuplicateSelection,
useDuplicateWorkflow, useDuplicateWorkflow,
useExportSelection,
useExportWorkflow, useExportWorkflow,
} from '@/app/workspace/[workspaceId]/w/hooks' } from '@/app/workspace/[workspaceId]/w/hooks'
import { useFolderStore } from '@/stores/folders/store' import { useFolderStore } from '@/stores/folders/store'
@@ -54,7 +50,6 @@ export function WorkflowItem({
onDragStart: onDragStartProp, onDragStart: onDragStartProp,
onDragEnd: onDragEndProp, onDragEnd: onDragEndProp,
}: WorkflowItemProps) { }: WorkflowItemProps) {
const { isAnyDragActive } = useSidebarDragContext()
const params = useParams() const params = useParams()
const workspaceId = params.workspaceId as string const workspaceId = params.workspaceId as string
const selectedWorkflows = useFolderStore((state) => state.selectedWorkflows) const selectedWorkflows = useFolderStore((state) => state.selectedWorkflows)
@@ -62,101 +57,50 @@ export function WorkflowItem({
const userPermissions = useUserPermissionsContext() const userPermissions = useUserPermissionsContext()
const isSelected = selectedWorkflows.has(workflow.id) const isSelected = selectedWorkflows.has(workflow.id)
const { canDeleteWorkflows, canDeleteFolder } = useCanDelete({ workspaceId }) const { canDeleteWorkflows } = useCanDelete({ workspaceId })
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false) const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false)
const [deleteItemType, setDeleteItemType] = useState<'workflow' | 'mixed'>('workflow') const [workflowIdsToDelete, setWorkflowIdsToDelete] = useState<string[]>([])
const [deleteModalNames, setDeleteModalNames] = useState<string | string[]>('') const [deleteModalNames, setDeleteModalNames] = useState<string | string[]>('')
const [canDeleteSelection, setCanDeleteSelection] = useState(true) const [canDeleteCaptured, setCanDeleteCaptured] = useState(true)
const capturedSelectionRef = useRef<{ const capturedSelectionRef = useRef<{
workflowIds: string[] workflowIds: string[]
folderIds: string[] workflowNames: string | string[]
isMixed: boolean
names: string[]
} | null>(null) } | null>(null)
/** /**
* Handle opening the delete modal - uses pre-captured selection state * Handle opening the delete modal - uses pre-captured selection state
*/ */
const handleOpenDeleteModal = useCallback(() => { const handleOpenDeleteModal = useCallback(() => {
if (!capturedSelectionRef.current) return if (capturedSelectionRef.current) {
setWorkflowIdsToDelete(capturedSelectionRef.current.workflowIds)
const { isMixed, names } = capturedSelectionRef.current setDeleteModalNames(capturedSelectionRef.current.workflowNames)
if (isMixed) {
setDeleteItemType('mixed')
} else {
setDeleteItemType('workflow')
}
setDeleteModalNames(names.length > 1 ? names : names[0] || '')
setIsDeleteModalOpen(true) setIsDeleteModalOpen(true)
}
}, []) }, [])
const { isDeleting: isDeletingWorkflows, handleDeleteWorkflow: handleDeleteWorkflows } = const { isDeleting, handleDeleteWorkflow } = useDeleteWorkflow({
useDeleteWorkflow({
workspaceId, workspaceId,
workflowIds: capturedSelectionRef.current?.workflowIds || [], workflowIds: workflowIdsToDelete,
isActive: (workflowIds) => workflowIds.includes(params.workflowId as string), isActive: (workflowIds) => workflowIds.includes(params.workflowId as string),
onSuccess: () => setIsDeleteModalOpen(false), onSuccess: () => setIsDeleteModalOpen(false),
}) })
const { isDeleting: isDeletingSelection, handleDeleteSelection } = useDeleteSelection({ const { handleDuplicateWorkflow: duplicateWorkflow } = useDuplicateWorkflow({ workspaceId })
workspaceId,
workflowIds: capturedSelectionRef.current?.workflowIds || [],
folderIds: capturedSelectionRef.current?.folderIds || [],
isActiveWorkflow: (id) => id === params.workflowId,
onSuccess: () => setIsDeleteModalOpen(false),
})
const isDeleting = isDeletingWorkflows || isDeletingSelection const { handleExportWorkflow: exportWorkflow } = useExportWorkflow()
const handleDuplicateWorkflow = useCallback(() => {
const handleConfirmDelete = useCallback(async () => { const workflowIds = capturedSelectionRef.current?.workflowIds || []
if (!capturedSelectionRef.current) return
const { isMixed } = capturedSelectionRef.current
if (isMixed) {
await handleDeleteSelection()
} else {
await handleDeleteWorkflows()
}
}, [handleDeleteSelection, handleDeleteWorkflows])
const { handleDuplicateWorkflow: duplicateWorkflows } = useDuplicateWorkflow({ workspaceId })
const { isDuplicating: isDuplicatingSelection, handleDuplicateSelection } = useDuplicateSelection(
{ workspaceId }
)
const { handleExportWorkflow: handleExportWorkflows } = useExportWorkflow()
const { handleExportSelection } = useExportSelection()
const handleDuplicate = useCallback(() => {
if (!capturedSelectionRef.current) return
const { isMixed, workflowIds, folderIds } = capturedSelectionRef.current
if (isMixed) {
handleDuplicateSelection(workflowIds, folderIds)
} else {
if (workflowIds.length === 0) return if (workflowIds.length === 0) return
duplicateWorkflows(workflowIds) duplicateWorkflow(workflowIds)
} }, [duplicateWorkflow])
}, [duplicateWorkflows, handleDuplicateSelection])
const handleExport = useCallback(() => { const handleExportWorkflow = useCallback(() => {
if (!capturedSelectionRef.current) return const workflowIds = capturedSelectionRef.current?.workflowIds || []
const { isMixed, workflowIds, folderIds } = capturedSelectionRef.current
if (isMixed) {
handleExportSelection(workflowIds, folderIds)
} else {
if (workflowIds.length === 0) return if (workflowIds.length === 0) return
handleExportWorkflows(workflowIds) exportWorkflow(workflowIds)
} }, [exportWorkflow])
}, [handleExportWorkflows, handleExportSelection])
const handleOpenInNewTab = useCallback(() => { const handleOpenInNewTab = useCallback(() => {
window.open(`/workspace/${workspaceId}/w/${workflow.id}`, '_blank') window.open(`/workspace/${workspaceId}/w/${workflow.id}`, '_blank')
@@ -180,51 +124,41 @@ export function WorkflowItem({
preventDismiss, preventDismiss,
} = useContextMenu() } = useContextMenu()
const isMixedSelection = useMemo(() => { /**
return capturedSelectionRef.current?.isMixed ?? false * Captures selection state for context menu operations
}, [isContextMenuOpen]) */
const captureSelectionState = useCallback(() => { const captureSelectionState = useCallback(() => {
const store = useFolderStore.getState() const { selectedWorkflows: currentSelection, selectOnly } = useFolderStore.getState()
const isCurrentlySelected = store.selectedWorkflows.has(workflow.id) const isCurrentlySelected = currentSelection.has(workflow.id)
if (!isCurrentlySelected) { if (!isCurrentlySelected) {
store.selectWorkflow(workflow.id) selectOnly(workflow.id)
} }
const finalWorkflowSelection = useFolderStore.getState().selectedWorkflows const finalSelection = useFolderStore.getState().selectedWorkflows
const finalFolderSelection = useFolderStore.getState().selectedFolders const finalIsSelected = finalSelection.has(workflow.id)
const workflowIds = Array.from(finalWorkflowSelection) const workflowIds =
const folderIds = Array.from(finalFolderSelection) finalIsSelected && finalSelection.size > 1 ? Array.from(finalSelection) : [workflow.id]
const isMixed = workflowIds.length > 0 && folderIds.length > 0
const { workflows } = useWorkflowRegistry.getState() const { workflows } = useWorkflowRegistry.getState()
const { folders } = useFolderStore.getState() const workflowNames = workflowIds
.map((id) => workflows[id]?.name)
const names: string[] = [] .filter((name): name is string => !!name)
for (const id of workflowIds) {
const w = workflows[id]
if (w) names.push(w.name)
}
for (const id of folderIds) {
const f = folders[id]
if (f) names.push(f.name)
}
capturedSelectionRef.current = { capturedSelectionRef.current = {
workflowIds, workflowIds,
folderIds, workflowNames: workflowNames.length > 1 ? workflowNames : workflowNames[0],
isMixed,
names,
} }
const canDeleteAllWorkflows = canDeleteWorkflows(workflowIds) setCanDeleteCaptured(canDeleteWorkflows(workflowIds))
const canDeleteAllFolders = }, [workflow.id, canDeleteWorkflows])
folderIds.length === 0 || folderIds.every((id) => canDeleteFolder(id))
setCanDeleteSelection(canDeleteAllWorkflows && canDeleteAllFolders)
}, [workflow.id, canDeleteWorkflows, canDeleteFolder])
/**
* Handle right-click - ensure proper selection behavior and capture selection state
* If right-clicking on an unselected workflow, select only that workflow
* If right-clicking on a selected workflow with multiple selections, keep all selections
*/
const handleContextMenu = useCallback( const handleContextMenu = useCallback(
(e: React.MouseEvent) => { (e: React.MouseEvent) => {
captureSelectionState() captureSelectionState()
@@ -233,12 +167,18 @@ export function WorkflowItem({
[captureSelectionState, handleContextMenuBase] [captureSelectionState, handleContextMenuBase]
) )
/**
* Handle more button pointerdown - prevents click-outside dismissal when toggling
*/
const handleMorePointerDown = useCallback(() => { const handleMorePointerDown = useCallback(() => {
if (isContextMenuOpen) { if (isContextMenuOpen) {
preventDismiss() preventDismiss()
} }
}, [isContextMenuOpen, preventDismiss]) }, [isContextMenuOpen, preventDismiss])
/**
* Handle more button click - toggles context menu at button position
*/
const handleMoreClick = useCallback( const handleMoreClick = useCallback(
(e: React.MouseEvent<HTMLButtonElement>) => { (e: React.MouseEvent<HTMLButtonElement>) => {
e.preventDefault() e.preventDefault()
@@ -288,20 +228,14 @@ export function WorkflowItem({
return return
} }
const { selectedWorkflows, selectedFolders } = useFolderStore.getState() const currentSelection = useFolderStore.getState().selectedWorkflows
const isCurrentlySelected = selectedWorkflows.has(workflow.id) const isCurrentlySelected = currentSelection.has(workflow.id)
const workflowIds =
isCurrentlySelected && currentSelection.size > 1
? Array.from(currentSelection)
: [workflow.id]
const selection = isCurrentlySelected e.dataTransfer.setData('workflow-ids', JSON.stringify(workflowIds))
? {
workflowIds: Array.from(selectedWorkflows),
folderIds: Array.from(selectedFolders),
}
: {
workflowIds: [workflow.id],
folderIds: [],
}
e.dataTransfer.setData('sidebar-selection', JSON.stringify(selection))
e.dataTransfer.effectAllowed = 'move' e.dataTransfer.effectAllowed = 'move'
onDragStartProp?.() onDragStartProp?.()
}, },
@@ -322,6 +256,9 @@ export function WorkflowItem({
onDragEndProp?.() onDragEndProp?.()
}, [handleDragEndBase, onDragEndProp]) }, [handleDragEndBase, onDragEndProp])
/**
* Handle double-click on workflow name to enter rename mode
*/
const handleDoubleClick = useCallback( const handleDoubleClick = useCallback(
(e: React.MouseEvent) => { (e: React.MouseEvent) => {
e.preventDefault() e.preventDefault()
@@ -331,6 +268,11 @@ export function WorkflowItem({
[handleStartEdit] [handleStartEdit]
) )
/**
* Handle click - manages workflow selection with shift-key and cmd/ctrl-key support
*
* @param e - React mouse event
*/
const handleClick = useCallback( const handleClick = useCallback(
(e: React.MouseEvent<HTMLAnchorElement>) => { (e: React.MouseEvent<HTMLAnchorElement>) => {
e.stopPropagation() e.stopPropagation()
@@ -358,15 +300,13 @@ export function WorkflowItem({
data-item-id={workflow.id} data-item-id={workflow.id}
className={clsx( className={clsx(
'group flex h-[26px] items-center gap-[8px] rounded-[8px] px-[6px] text-[14px]', 'group flex h-[26px] items-center gap-[8px] rounded-[8px] px-[6px] text-[14px]',
active && 'bg-[var(--surface-6)] dark:bg-[var(--surface-5)]', active
!active && ? 'bg-[var(--surface-6)] dark:bg-[var(--surface-5)]'
!isAnyDragActive && : 'hover:bg-[var(--surface-6)] dark:hover:bg-[var(--surface-5)]',
'hover:bg-[var(--surface-6)] dark:hover:bg-[var(--surface-5)]', isSelected && selectedWorkflows.size > 1 && !active
isSelected && ? 'bg-[var(--surface-6)] dark:bg-[var(--surface-5)]'
selectedWorkflows.size > 1 && : '',
!active && isDragging ? 'opacity-50' : ''
'bg-[var(--surface-6)] dark:bg-[var(--surface-5)]',
(isDragging || (isAnyDragActive && isSelected)) && 'opacity-50'
)} )}
draggable={!isEditing && !dragDisabled} draggable={!isEditing && !dragDisabled}
onDragStart={handleDragStart} onDragStart={handleDragStart}
@@ -389,8 +329,9 @@ export function WorkflowItem({
onBlur={handleInputBlur} onBlur={handleInputBlur}
className={clsx( className={clsx(
'w-full min-w-0 border-0 bg-transparent p-0 font-medium text-[14px] outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0', 'w-full min-w-0 border-0 bg-transparent p-0 font-medium text-[14px] outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0',
active ? 'text-[var(--text-primary)]' : 'text-[var(--text-tertiary)]', active
!active && !isAnyDragActive && 'group-hover:text-[var(--text-primary)]' ? 'text-[var(--text-primary)]'
: 'text-[var(--text-tertiary)] group-hover:text-[var(--text-primary)]'
)} )}
maxLength={100} maxLength={100}
disabled={isRenaming} disabled={isRenaming}
@@ -407,8 +348,9 @@ export function WorkflowItem({
<div <div
className={clsx( className={clsx(
'min-w-0 truncate font-medium', 'min-w-0 truncate font-medium',
active ? 'text-[var(--text-primary)]' : 'text-[var(--text-tertiary)]', active
!active && !isAnyDragActive && 'group-hover:text-[var(--text-primary)]' ? 'text-[var(--text-primary)]'
: 'text-[var(--text-tertiary)] group-hover:text-[var(--text-primary)]'
)} )}
onDoubleClick={handleDoubleClick} onDoubleClick={handleDoubleClick}
> >
@@ -422,13 +364,9 @@ export function WorkflowItem({
<> <>
<button <button
type='button' type='button'
aria-label='Workflow options'
onPointerDown={handleMorePointerDown} onPointerDown={handleMorePointerDown}
onClick={handleMoreClick} onClick={handleMoreClick}
className={clsx( className='flex h-[18px] w-[18px] flex-shrink-0 items-center justify-center rounded-[4px] opacity-0 transition-opacity hover:bg-[var(--surface-7)] group-hover:opacity-100'
'flex h-[18px] w-[18px] flex-shrink-0 items-center justify-center rounded-[4px] opacity-0 transition-opacity hover:bg-[var(--surface-7)]',
!isAnyDragActive && 'group-hover:opacity-100'
)}
> >
<MoreHorizontal className='h-[14px] w-[14px] text-[var(--text-tertiary)]' /> <MoreHorizontal className='h-[14px] w-[14px] text-[var(--text-tertiary)]' />
</button> </button>
@@ -436,6 +374,7 @@ export function WorkflowItem({
)} )}
</Link> </Link>
{/* Context Menu */}
<ContextMenu <ContextMenu
isOpen={isContextMenuOpen} isOpen={isContextMenuOpen}
position={position} position={position}
@@ -443,29 +382,30 @@ export function WorkflowItem({
onClose={closeMenu} onClose={closeMenu}
onOpenInNewTab={handleOpenInNewTab} onOpenInNewTab={handleOpenInNewTab}
onRename={handleStartEdit} onRename={handleStartEdit}
onDuplicate={handleDuplicate} onDuplicate={handleDuplicateWorkflow}
onExport={handleExport} onExport={handleExportWorkflow}
onDelete={handleOpenDeleteModal} onDelete={handleOpenDeleteModal}
onColorChange={handleColorChange} onColorChange={handleColorChange}
currentColor={workflow.color} currentColor={workflow.color}
showOpenInNewTab={!isMixedSelection && selectedWorkflows.size <= 1} showOpenInNewTab={selectedWorkflows.size <= 1}
showRename={!isMixedSelection && selectedWorkflows.size <= 1} showRename={selectedWorkflows.size <= 1}
showDuplicate={true} showDuplicate={true}
showExport={true} showExport={true}
showColorChange={!isMixedSelection && selectedWorkflows.size <= 1} showColorChange={selectedWorkflows.size <= 1}
disableRename={!userPermissions.canEdit} disableRename={!userPermissions.canEdit}
disableDuplicate={!userPermissions.canEdit || isDuplicatingSelection} disableDuplicate={!userPermissions.canEdit}
disableExport={!userPermissions.canEdit} disableExport={!userPermissions.canEdit}
disableColorChange={!userPermissions.canEdit} disableColorChange={!userPermissions.canEdit}
disableDelete={!userPermissions.canEdit || !canDeleteSelection} disableDelete={!userPermissions.canEdit || !canDeleteCaptured}
/> />
{/* Delete Confirmation Modal */}
<DeleteModal <DeleteModal
isOpen={isDeleteModalOpen} isOpen={isDeleteModalOpen}
onClose={() => setIsDeleteModalOpen(false)} onClose={() => setIsDeleteModalOpen(false)}
onConfirm={handleConfirmDelete} onConfirm={handleDeleteWorkflow}
isDeleting={isDeleting} isDeleting={isDeleting}
itemType={deleteItemType} itemType='workflow'
itemName={deleteModalNames} itemName={deleteModalNames}
/> />
</> </>

View File

@@ -7,11 +7,8 @@ import { EmptyAreaContextMenu } from '@/app/workspace/[workspaceId]/w/components
import { FolderItem } from '@/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/folder-item/folder-item' import { FolderItem } from '@/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/folder-item/folder-item'
import { WorkflowItem } from '@/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item' import { WorkflowItem } from '@/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item'
import { import {
SidebarDragContext,
useContextMenu, useContextMenu,
useDragDrop, useDragDrop,
useFolderSelection,
useSidebarDragContextValue,
useWorkflowSelection, useWorkflowSelection,
} from '@/app/workspace/[workspaceId]/w/components/sidebar/hooks' } from '@/app/workspace/[workspaceId]/w/components/sidebar/hooks'
import { useFolders } from '@/hooks/queries/folders' import { useFolders } from '@/hooks/queries/folders'
@@ -49,22 +46,17 @@ interface WorkflowListProps {
const DropIndicatorLine = memo(function DropIndicatorLine({ const DropIndicatorLine = memo(function DropIndicatorLine({
show, show,
level = 0, level = 0,
position = 'before',
}: { }: {
show: boolean show: boolean
level?: number level?: number
position?: 'before' | 'after'
}) { }) {
if (!show) return null if (!show) return null
const positionStyle = position === 'before' ? { top: '-2px' } : { bottom: '-2px' }
return ( return (
<div <div
className='pointer-events-none absolute right-0 left-0 z-20' className='pointer-events-none absolute right-0 left-0 z-20 flex items-center'
style={{ ...positionStyle, paddingLeft: `${level * TREE_SPACING.INDENT_PER_LEVEL}px` }} style={{ paddingLeft: `${level * TREE_SPACING.INDENT_PER_LEVEL}px` }}
> >
<div className='h-[2px] rounded-full bg-[#33b4ff]/70' /> <div className='h-[2px] flex-1 rounded-full bg-[#33b4ff]/70' />
</div> </div>
) )
}) })
@@ -106,13 +98,10 @@ export function WorkflowList({
createEmptyFolderDropZone, createEmptyFolderDropZone,
createFolderContentDropZone, createFolderContentDropZone,
createRootDropZone, createRootDropZone,
createEdgeDropZone,
handleDragStart, handleDragStart,
handleDragEnd, handleDragEnd,
} = useDragDrop({ disabled: !canReorder }) } = useDragDrop({ disabled: !canReorder })
const dragContextValue = useSidebarDragContextValue(isDragging)
useEffect(() => { useEffect(() => {
if (scrollContainerRef.current) { if (scrollContainerRef.current) {
setScrollContainer(scrollContainerRef.current) setScrollContainer(scrollContainerRef.current)
@@ -168,32 +157,11 @@ export function WorkflowList({
return ids return ids
}, [folderTree, workflowsByFolder]) }, [folderTree, workflowsByFolder])
const orderedFolderIds = useMemo(() => {
const ids: string[] = []
const collectFolderIds = (folder: FolderTreeNode) => {
ids.push(folder.id)
for (const childFolder of folder.children) {
collectFolderIds(childFolder)
}
}
for (const folder of folderTree) {
collectFolderIds(folder)
}
return ids
}, [folderTree])
const { handleWorkflowClick } = useWorkflowSelection({ const { handleWorkflowClick } = useWorkflowSelection({
workflowIds: orderedWorkflowIds, workflowIds: orderedWorkflowIds,
activeWorkflowId: workflowId, activeWorkflowId: workflowId,
}) })
const { handleFolderClick } = useFolderSelection({
folderIds: orderedFolderIds,
})
const isWorkflowActive = useCallback( const isWorkflowActive = useCallback(
(wfId: string) => pathname === `/workspace/${workspaceId}/w/${wfId}`, (wfId: string) => pathname === `/workspace/${workspaceId}/w/${wfId}`,
[pathname, workspaceId] [pathname, workspaceId]
@@ -222,7 +190,7 @@ export function WorkflowList({
return ( return (
<div key={workflow.id} className='relative'> <div key={workflow.id} className='relative'>
<DropIndicatorLine show={showBefore} level={level} position='before' /> <DropIndicatorLine show={showBefore} level={level} />
<div <div
style={{ paddingLeft: `${level * TREE_SPACING.INDENT_PER_LEVEL}px` }} style={{ paddingLeft: `${level * TREE_SPACING.INDENT_PER_LEVEL}px` }}
{...createWorkflowDragHandlers(workflow.id, folderId)} {...createWorkflowDragHandlers(workflow.id, folderId)}
@@ -233,11 +201,11 @@ export function WorkflowList({
level={level} level={level}
dragDisabled={dragDisabled} dragDisabled={dragDisabled}
onWorkflowClick={handleWorkflowClick} onWorkflowClick={handleWorkflowClick}
onDragStart={() => handleDragStart(folderId)} onDragStart={() => handleDragStart('workflow', folderId)}
onDragEnd={handleDragEnd} onDragEnd={handleDragEnd}
/> />
</div> </div>
<DropIndicatorLine show={showAfter} level={level} position='after' /> <DropIndicatorLine show={showAfter} level={level} />
</div> </div>
) )
}, },
@@ -297,11 +265,12 @@ export function WorkflowList({
return ( return (
<div key={folder.id} className='relative'> <div key={folder.id} className='relative'>
<DropIndicatorLine show={showBefore} level={level} position='before' /> <DropIndicatorLine show={showBefore} level={level} />
{/* Drop target highlight overlay - covers entire folder section */}
<div <div
className={clsx( className={clsx(
'pointer-events-none absolute inset-0 z-10 rounded-[4px]', 'pointer-events-none absolute inset-0 z-10 rounded-[4px] transition-opacity duration-75',
showInside && isDragging ? 'bg-[#33b4ff1a]' : 'hidden' showInside && isDragging ? 'bg-[#33b4ff1a] opacity-100' : 'opacity-0'
)} )}
/> />
<div <div
@@ -312,12 +281,11 @@ export function WorkflowList({
folder={folder} folder={folder}
level={level} level={level}
dragDisabled={dragDisabled} dragDisabled={dragDisabled}
onFolderClick={handleFolderClick} onDragStart={() => handleDragStart('folder', parentFolderId)}
onDragStart={() => handleDragStart(parentFolderId)}
onDragEnd={handleDragEnd} onDragEnd={handleDragEnd}
/> />
</div> </div>
<DropIndicatorLine show={showAfter} level={level} position='after' /> <DropIndicatorLine show={showAfter} level={level} />
{isExpanded && (hasChildren || isDragging) && ( {isExpanded && (hasChildren || isDragging) && (
<div className='relative' {...createFolderContentDropZone(folder.id)}> <div className='relative' {...createFolderContentDropZone(folder.id)}>
@@ -351,7 +319,6 @@ export function WorkflowList({
createFolderContentDropZone, createFolderContentDropZone,
handleDragStart, handleDragStart,
handleDragEnd, handleDragEnd,
handleFolderClick,
renderWorkflowItem, renderWorkflowItem,
] ]
) )
@@ -389,19 +356,12 @@ export function WorkflowList({
}, [folderTree, rootWorkflows]) }, [folderTree, rootWorkflows])
const hasRootItems = rootItems.length > 0 const hasRootItems = rootItems.length > 0
const firstItemId = rootItems[0]?.id ?? null
const lastItemId = rootItems[rootItems.length - 1]?.id ?? null
const showRootInside = dropIndicator?.targetId === 'root' && dropIndicator?.position === 'inside' const showRootInside = dropIndicator?.targetId === 'root' && dropIndicator?.position === 'inside'
const showTopIndicator =
firstItemId && dropIndicator?.targetId === firstItemId && dropIndicator?.position === 'before'
const showBottomIndicator =
lastItemId && dropIndicator?.targetId === lastItemId && dropIndicator?.position === 'after'
const handleContainerClick = useCallback( const handleContainerClick = useCallback(
(e: React.MouseEvent<HTMLDivElement>) => { (e: React.MouseEvent<HTMLDivElement>) => {
if (e.target !== e.currentTarget) return if (e.target !== e.currentTarget) return
const { selectOnly, clearSelection, clearFolderSelection } = useFolderStore.getState() const { selectOnly, clearSelection } = useFolderStore.getState()
clearFolderSelection()
workflowId ? selectOnly(workflowId) : clearSelection() workflowId ? selectOnly(workflowId) : clearSelection()
}, },
[workflowId] [workflowId]
@@ -422,7 +382,7 @@ export function WorkflowList({
) )
return ( return (
<SidebarDragContext.Provider value={dragContextValue}> <>
<div <div
className='flex min-h-full flex-col pb-[8px]' className='flex min-h-full flex-col pb-[8px]'
onClick={handleContainerClick} onClick={handleContainerClick}
@@ -434,23 +394,13 @@ export function WorkflowList({
{...rootDropZoneHandlers} {...rootDropZoneHandlers}
data-empty-area data-empty-area
> >
{/* Root drop target highlight overlay */}
<div <div
className={clsx( className={clsx(
'pointer-events-none absolute inset-0 z-10 rounded-[4px]', 'pointer-events-none absolute inset-0 z-10 rounded-[4px] transition-opacity duration-75',
showRootInside && isDragging ? 'bg-[#33b4ff1a]' : 'hidden' showRootInside && isDragging ? 'bg-[#33b4ff1a] opacity-100' : 'opacity-0'
)} )}
/> />
{isDragging && hasRootItems && (
<div
className='absolute top-0 right-0 left-0 z-30 h-[12px]'
{...createEdgeDropZone(firstItemId, 'before')}
/>
)}
{showTopIndicator && (
<div className='pointer-events-none absolute top-0 right-0 left-0 z-20'>
<div className='h-[2px] rounded-full bg-[#33b4ff]/70' />
</div>
)}
<div className='space-y-[2px]' data-empty-area> <div className='space-y-[2px]' data-empty-area>
{rootItems.map((item) => {rootItems.map((item) =>
item.type === 'folder' item.type === 'folder'
@@ -458,17 +408,6 @@ export function WorkflowList({
: renderWorkflowItem(item.data as WorkflowMetadata, 0, null) : renderWorkflowItem(item.data as WorkflowMetadata, 0, null)
)} )}
</div> </div>
{isDragging && hasRootItems && (
<div
className='absolute right-0 bottom-0 left-0 z-30 h-[12px]'
{...createEdgeDropZone(lastItemId, 'after')}
/>
)}
{showBottomIndicator && (
<div className='pointer-events-none absolute right-0 bottom-0 left-0 z-20'>
<div className='h-[2px] rounded-full bg-[#33b4ff]/70' />
</div>
)}
</div> </div>
<input <input
@@ -493,6 +432,6 @@ export function WorkflowList({
disableCreateFolder={disableCreate} disableCreateFolder={disableCreate}
/> />
)} )}
</SidebarDragContext.Provider> </>
) )
} }

View File

@@ -50,8 +50,9 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
>({}) >({})
const [isSubmitting, setIsSubmitting] = useState(false) const [isSubmitting, setIsSubmitting] = useState(false)
const [isSaving, setIsSaving] = useState(false) const [isSaving, setIsSaving] = useState(false)
const cooldownIntervalsRef = useRef<Map<string, NodeJS.Timeout>>(new Map()) const [showSent, setShowSent] = useState(false)
const [errorMessage, setErrorMessage] = useState<string | null>(null) const [errorMessage, setErrorMessage] = useState<string | null>(null)
const [successMessage, setSuccessMessage] = useState<string | null>(null)
const [memberToRemove, setMemberToRemove] = useState<{ userId: string; email: string } | null>( const [memberToRemove, setMemberToRemove] = useState<{ userId: string; email: string } | null>(
null null
) )
@@ -120,17 +121,10 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
useEffect(() => { useEffect(() => {
if (open) { if (open) {
setErrorMessage(null) setErrorMessage(null)
setSuccessMessage(null)
} }
}, [open]) }, [open])
useEffect(() => {
const intervalsRef = cooldownIntervalsRef.current
return () => {
intervalsRef.forEach((interval) => clearInterval(interval))
intervalsRef.clear()
}
}, [])
const addEmail = useCallback( const addEmail = useCallback(
(email: string) => { (email: string) => {
if (!email.trim()) return false if (!email.trim()) return false
@@ -261,6 +255,11 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
} }
setExistingUserPermissionChanges({}) setExistingUserPermissionChanges({})
setSuccessMessage(
`Permission changes saved for ${updates.length} user${updates.length !== 1 ? 's' : ''}!`
)
setTimeout(() => setSuccessMessage(null), 3000)
} catch (error) { } catch (error) {
logger.error('Error saving permission changes:', error) logger.error('Error saving permission changes:', error)
const errorMsg = const errorMsg =
@@ -283,6 +282,9 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
if (!userPerms.canAdmin || !hasPendingChanges) return if (!userPerms.canAdmin || !hasPendingChanges) return
setExistingUserPermissionChanges({}) setExistingUserPermissionChanges({})
setSuccessMessage('Changes restored to original permissions!')
setTimeout(() => setSuccessMessage(null), 3000)
}, [userPerms.canAdmin, hasPendingChanges]) }, [userPerms.canAdmin, hasPendingChanges])
const handleRemoveMemberClick = useCallback((userId: string, email: string) => { const handleRemoveMemberClick = useCallback((userId: string, email: string) => {
@@ -335,6 +337,9 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
delete updated[memberToRemove.userId] delete updated[memberToRemove.userId]
return updated return updated
}) })
setSuccessMessage(`${memberToRemove.email} has been removed from the workspace`)
setTimeout(() => setSuccessMessage(null), 3000)
} catch (error) { } catch (error) {
logger.error('Error removing member:', error) logger.error('Error removing member:', error)
const errorMsg = const errorMsg =
@@ -380,6 +385,9 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
setPendingInvitations((prev) => setPendingInvitations((prev) =>
prev.filter((inv) => inv.invitationId !== invitationToRemove.invitationId) prev.filter((inv) => inv.invitationId !== invitationToRemove.invitationId)
) )
setSuccessMessage(`Invitation for ${invitationToRemove.email} has been cancelled`)
setTimeout(() => setSuccessMessage(null), 3000)
} catch (error) { } catch (error) {
logger.error('Error cancelling invitation:', error) logger.error('Error cancelling invitation:', error)
const errorMsg = const errorMsg =
@@ -419,6 +427,9 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
throw new Error(data.error || 'Failed to resend invitation') throw new Error(data.error || 'Failed to resend invitation')
} }
setSuccessMessage(`Invitation resent to ${email}`)
setTimeout(() => setSuccessMessage(null), 3000)
setResentInvitationIds((prev) => ({ ...prev, [invitationId]: true })) setResentInvitationIds((prev) => ({ ...prev, [invitationId]: true }))
setTimeout(() => { setTimeout(() => {
setResentInvitationIds((prev) => { setResentInvitationIds((prev) => {
@@ -439,12 +450,6 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
return next return next
}) })
setResendCooldowns((prev) => ({ ...prev, [invitationId]: 60 })) setResendCooldowns((prev) => ({ ...prev, [invitationId]: 60 }))
const existingInterval = cooldownIntervalsRef.current.get(invitationId)
if (existingInterval) {
clearInterval(existingInterval)
}
const interval = setInterval(() => { const interval = setInterval(() => {
setResendCooldowns((prev) => { setResendCooldowns((prev) => {
const current = prev[invitationId] const current = prev[invitationId]
@@ -453,14 +458,11 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
const next = { ...prev } const next = { ...prev }
delete next[invitationId] delete next[invitationId]
clearInterval(interval) clearInterval(interval)
cooldownIntervalsRef.current.delete(invitationId)
return next return next
} }
return { ...prev, [invitationId]: current - 1 } return { ...prev, [invitationId]: current - 1 }
}) })
}, 1000) }, 1000)
cooldownIntervalsRef.current.set(invitationId, interval)
} }
}, },
[workspaceId, userPerms.canAdmin, resendCooldowns] [workspaceId, userPerms.canAdmin, resendCooldowns]
@@ -471,6 +473,7 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
e.preventDefault() e.preventDefault()
setErrorMessage(null) setErrorMessage(null)
setSuccessMessage(null)
if (validEmails.length === 0 || !workspaceId) { if (validEmails.length === 0 || !workspaceId) {
return return
@@ -559,6 +562,11 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
setEmailItems([]) setEmailItems([])
setUserPermissions([]) setUserPermissions([])
} }
setShowSent(true)
setTimeout(() => {
setShowSent(false)
}, 4000)
} }
} catch (err) { } catch (err) {
logger.error('Error inviting members:', err) logger.error('Error inviting members:', err)
@@ -580,16 +588,13 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
setExistingUserPermissionChanges({}) setExistingUserPermissionChanges({})
setIsSubmitting(false) setIsSubmitting(false)
setIsSaving(false) setIsSaving(false)
setShowSent(false)
setErrorMessage(null) setErrorMessage(null)
setSuccessMessage(null)
setMemberToRemove(null) setMemberToRemove(null)
setIsRemovingMember(false) setIsRemovingMember(false)
setInvitationToRemove(null) setInvitationToRemove(null)
setIsRemovingInvitation(false) setIsRemovingInvitation(false)
setResendCooldowns({})
setResentInvitationIds({})
cooldownIntervalsRef.current.forEach((interval) => clearInterval(interval))
cooldownIntervalsRef.current.clear()
}, []) }, [])
return ( return (
@@ -698,6 +703,7 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
variant='default' variant='default'
disabled={isSaving || isSubmitting} disabled={isSaving || isSubmitting}
onClick={handleRestoreChanges} onClick={handleRestoreChanges}
className='h-[32px] gap-[8px] px-[12px] font-medium'
> >
Restore Changes Restore Changes
</Button> </Button>
@@ -706,6 +712,7 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
variant='tertiary' variant='tertiary'
disabled={isSaving || isSubmitting} disabled={isSaving || isSubmitting}
onClick={handleSaveChanges} onClick={handleSaveChanges}
className='h-[32px] gap-[8px] px-[12px] font-medium'
> >
{isSaving ? 'Saving...' : 'Save Changes'} {isSaving ? 'Saving...' : 'Save Changes'}
</Button> </Button>

Some files were not shown because too many files have changed in this diff Show More