mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
improvement(blocks): update luma styling and linkup field modes (#3370)
* improvement(blocks): update luma styling and linkup field modes * improvement(fireflies): move optional fields to advanced mode * improvement(blocks): move optional fields to advanced mode for 10 integrations * improvement(blocks): move optional fields to advanced mode for 6 more integrations
This commit is contained in:
@@ -3996,7 +3996,7 @@ export function LumaIcon(props: SVGProps<SVGSVGElement>) {
|
||||
<svg {...props} fill='none' viewBox='0 0 133 134' xmlns='http://www.w3.org/2000/svg'>
|
||||
<path
|
||||
d='M133 67C96.282 67 66.5 36.994 66.5 0c0 36.994-29.782 67-66.5 67 36.718 0 66.5 30.006 66.5 67 0-36.994 29.782-67 66.5-67'
|
||||
fill='currentColor'
|
||||
fill='#000000'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="luma"
|
||||
color="#FF5C35"
|
||||
color="#FFFFFF"
|
||||
/>
|
||||
|
||||
{/* MANUAL-CONTENT-START:intro */}
|
||||
|
||||
@@ -46,6 +46,7 @@ export const AhrefsBlock: BlockConfig<AhrefsResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD (defaults to today)',
|
||||
condition: { field: 'operation', value: 'ahrefs_domain_rating' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -81,6 +82,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'domain',
|
||||
condition: { field: 'operation', value: 'ahrefs_backlinks' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'limit',
|
||||
@@ -88,6 +90,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'ahrefs_backlinks' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'offset',
|
||||
@@ -95,6 +98,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '0',
|
||||
condition: { field: 'operation', value: 'ahrefs_backlinks' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'date',
|
||||
@@ -102,6 +106,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD (defaults to today)',
|
||||
condition: { field: 'operation', value: 'ahrefs_backlinks' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -137,6 +142,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'domain',
|
||||
condition: { field: 'operation', value: 'ahrefs_backlinks_stats' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'date',
|
||||
@@ -144,6 +150,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD (defaults to today)',
|
||||
condition: { field: 'operation', value: 'ahrefs_backlinks_stats' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -179,6 +186,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'domain',
|
||||
condition: { field: 'operation', value: 'ahrefs_referring_domains' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'limit',
|
||||
@@ -186,6 +194,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'ahrefs_referring_domains' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'offset',
|
||||
@@ -193,6 +202,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '0',
|
||||
condition: { field: 'operation', value: 'ahrefs_referring_domains' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'date',
|
||||
@@ -200,6 +210,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD (defaults to today)',
|
||||
condition: { field: 'operation', value: 'ahrefs_referring_domains' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -246,6 +257,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'us',
|
||||
condition: { field: 'operation', value: 'ahrefs_organic_keywords' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'mode',
|
||||
@@ -259,6 +271,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'domain',
|
||||
condition: { field: 'operation', value: 'ahrefs_organic_keywords' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'limit',
|
||||
@@ -266,6 +279,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'ahrefs_organic_keywords' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'offset',
|
||||
@@ -273,6 +287,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '0',
|
||||
condition: { field: 'operation', value: 'ahrefs_organic_keywords' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'date',
|
||||
@@ -280,6 +295,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD (defaults to today)',
|
||||
condition: { field: 'operation', value: 'ahrefs_organic_keywords' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -326,6 +342,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'us',
|
||||
condition: { field: 'operation', value: 'ahrefs_top_pages' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'mode',
|
||||
@@ -338,6 +355,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'domain',
|
||||
condition: { field: 'operation', value: 'ahrefs_top_pages' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'limit',
|
||||
@@ -345,6 +363,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'ahrefs_top_pages' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'offset',
|
||||
@@ -352,6 +371,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '0',
|
||||
condition: { field: 'operation', value: 'ahrefs_top_pages' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'date',
|
||||
@@ -359,6 +379,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD (defaults to today)',
|
||||
condition: { field: 'operation', value: 'ahrefs_top_pages' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -405,6 +426,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'us',
|
||||
condition: { field: 'operation', value: 'ahrefs_keyword_overview' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Broken Backlinks operation inputs
|
||||
{
|
||||
@@ -427,6 +449,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
],
|
||||
value: () => 'domain',
|
||||
condition: { field: 'operation', value: 'ahrefs_broken_backlinks' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'limit',
|
||||
@@ -434,6 +457,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'ahrefs_broken_backlinks' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'offset',
|
||||
@@ -441,6 +465,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: '0',
|
||||
condition: { field: 'operation', value: 'ahrefs_broken_backlinks' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'date',
|
||||
@@ -448,6 +473,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD (defaults to today)',
|
||||
condition: { field: 'operation', value: 'ahrefs_broken_backlinks' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
|
||||
@@ -64,6 +64,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["CEO", "VP of Sales"]',
|
||||
condition: { field: 'operation', value: 'people_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'person_locations',
|
||||
@@ -71,6 +72,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["San Francisco, CA", "New York, NY"]',
|
||||
condition: { field: 'operation', value: 'people_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'organization_names',
|
||||
@@ -78,6 +80,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["Company A", "Company B"]',
|
||||
condition: { field: 'operation', value: 'people_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'person_seniorities',
|
||||
@@ -85,6 +88,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["senior", "manager", "director"]',
|
||||
condition: { field: 'operation', value: 'people_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'contact_stage_ids',
|
||||
@@ -92,6 +96,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["stage_id_1", "stage_id_2"]',
|
||||
condition: { field: 'operation', value: 'contact_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// People Enrich Fields
|
||||
@@ -161,6 +166,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
field: 'operation',
|
||||
value: ['people_enrich', 'people_bulk_enrich'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'reveal_phone_number',
|
||||
@@ -170,6 +176,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
field: 'operation',
|
||||
value: ['people_enrich', 'people_bulk_enrich'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Bulk Enrich Fields
|
||||
@@ -197,6 +204,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["San Francisco, CA"]',
|
||||
condition: { field: 'operation', value: 'organization_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'organization_num_employees_ranges',
|
||||
@@ -204,6 +212,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["1-10", "11-50", "51-200"]',
|
||||
condition: { field: 'operation', value: 'organization_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'q_organization_keyword_tags',
|
||||
@@ -211,6 +220,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["saas", "b2b", "enterprise"]',
|
||||
condition: { field: 'operation', value: 'organization_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'q_organization_name',
|
||||
@@ -238,6 +248,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
field: 'operation',
|
||||
value: ['contact_create', 'contact_update'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'account_id',
|
||||
@@ -276,6 +287,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
'opportunity_update',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Contact Bulk Operations
|
||||
@@ -301,6 +313,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
title: 'Run Deduplication',
|
||||
type: 'switch',
|
||||
condition: { field: 'operation', value: 'contact_bulk_create' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Account Fields
|
||||
@@ -327,6 +340,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
field: 'operation',
|
||||
value: ['account_create', 'account_update'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'phone',
|
||||
@@ -337,6 +351,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
field: 'operation',
|
||||
value: ['account_create', 'account_update'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Account Search Fields
|
||||
@@ -356,6 +371,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
type: 'code',
|
||||
placeholder: '["stage_id_1", "stage_id_2"]',
|
||||
condition: { field: 'operation', value: 'account_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Account Bulk Operations
|
||||
@@ -401,6 +417,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
field: 'operation',
|
||||
value: ['opportunity_create', 'opportunity_update'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'stage_id',
|
||||
@@ -411,6 +428,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
field: 'operation',
|
||||
value: ['opportunity_create', 'opportunity_update'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'close_date',
|
||||
@@ -421,6 +439,7 @@ export const ApolloBlock: BlockConfig<ApolloResponse> = {
|
||||
field: 'operation',
|
||||
value: ['opportunity_create', 'opportunity_update'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -444,6 +463,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
field: 'operation',
|
||||
value: ['opportunity_create', 'opportunity_update'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Opportunity Get
|
||||
@@ -466,6 +486,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'code',
|
||||
placeholder: '["account_id_1", "account_id_2"]',
|
||||
condition: { field: 'operation', value: 'opportunity_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'stage_ids',
|
||||
@@ -473,6 +494,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'code',
|
||||
placeholder: '["stage_id_1", "stage_id_2"]',
|
||||
condition: { field: 'operation', value: 'opportunity_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'owner_ids',
|
||||
@@ -480,6 +502,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'code',
|
||||
placeholder: '["user_id_1", "user_id_2"]',
|
||||
condition: { field: 'operation', value: 'opportunity_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Sequence Search Fields
|
||||
@@ -495,6 +518,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
title: 'Active Only',
|
||||
type: 'switch',
|
||||
condition: { field: 'operation', value: 'sequence_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Sequence Fields
|
||||
@@ -530,6 +554,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
type: 'short-input',
|
||||
placeholder: 'ISO date (e.g., 2024-12-31T23:59:59Z)',
|
||||
condition: { field: 'operation', value: 'task_create' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate an ISO 8601 timestamp based on the user's description.
|
||||
@@ -550,6 +575,7 @@ Return ONLY the timestamp string in ISO 8601 format - no explanations, no quotes
|
||||
title: 'Completed',
|
||||
type: 'switch',
|
||||
condition: { field: 'operation', value: 'task_search' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// Pagination
|
||||
@@ -570,6 +596,7 @@ Return ONLY the timestamp string in ISO 8601 format - no explanations, no quotes
|
||||
'task_search',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'per_page',
|
||||
@@ -588,6 +615,7 @@ Return ONLY the timestamp string in ISO 8601 format - no explanations, no quotes
|
||||
'task_search',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
|
||||
@@ -55,6 +55,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by email (comma-separated)',
|
||||
condition: { field: 'operation', value: 'clerk_list_users' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'usernameFilter',
|
||||
@@ -62,6 +63,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by username (comma-separated)',
|
||||
condition: { field: 'operation', value: 'clerk_list_users' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Get User params
|
||||
{
|
||||
@@ -92,6 +94,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: '+1234567890 (comma-separated for multiple)',
|
||||
condition: { field: 'operation', value: 'clerk_create_user' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'username',
|
||||
@@ -99,6 +102,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'johndoe',
|
||||
condition: { field: 'operation', value: ['clerk_create_user', 'clerk_update_user'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'password',
|
||||
@@ -128,6 +132,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Your system user ID',
|
||||
condition: { field: 'operation', value: ['clerk_create_user', 'clerk_update_user'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'publicMetadata',
|
||||
@@ -136,6 +141,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
language: 'json',
|
||||
placeholder: '{"role": "admin"}',
|
||||
condition: { field: 'operation', value: ['clerk_create_user', 'clerk_update_user'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'privateMetadata',
|
||||
@@ -144,6 +150,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
language: 'json',
|
||||
placeholder: '{"internalId": "123"}',
|
||||
condition: { field: 'operation', value: ['clerk_create_user', 'clerk_update_user'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Organization params
|
||||
{
|
||||
@@ -152,12 +159,14 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Search by name, ID, or slug',
|
||||
condition: { field: 'operation', value: 'clerk_list_organizations' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'includeMembersCount',
|
||||
title: 'Include Members Count',
|
||||
type: 'switch',
|
||||
condition: { field: 'operation', value: 'clerk_list_organizations' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'organizationId',
|
||||
@@ -189,6 +198,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'acme-corp',
|
||||
condition: { field: 'operation', value: 'clerk_create_organization' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'maxAllowedMemberships',
|
||||
@@ -196,6 +206,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: '0 for unlimited',
|
||||
condition: { field: 'operation', value: 'clerk_create_organization' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Session params
|
||||
{
|
||||
@@ -204,6 +215,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'user_...',
|
||||
condition: { field: 'operation', value: 'clerk_list_sessions' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'clientId',
|
||||
@@ -211,6 +223,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'client_...',
|
||||
condition: { field: 'operation', value: 'clerk_list_sessions' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'sessionStatus',
|
||||
@@ -227,6 +240,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
],
|
||||
value: () => '',
|
||||
condition: { field: 'operation', value: 'clerk_list_sessions' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'sessionId',
|
||||
@@ -246,6 +260,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
field: 'operation',
|
||||
value: ['clerk_list_users', 'clerk_list_organizations', 'clerk_list_sessions'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'offset',
|
||||
@@ -256,6 +271,7 @@ export const ClerkBlock: BlockConfig<ClerkResponse> = {
|
||||
field: 'operation',
|
||||
value: ['clerk_list_users', 'clerk_list_organizations', 'clerk_list_sessions'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
@@ -184,6 +184,7 @@ Return the event description text directly - no extra formatting needed.`,
|
||||
],
|
||||
value: () => 'info',
|
||||
condition: { field: 'operation', value: 'datadog_create_event' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'priority',
|
||||
@@ -195,6 +196,7 @@ Return the event description text directly - no extra formatting needed.`,
|
||||
],
|
||||
value: () => 'normal',
|
||||
condition: { field: 'operation', value: 'datadog_create_event' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'tags',
|
||||
@@ -202,6 +204,7 @@ Return the event description text directly - no extra formatting needed.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'env:production, service:api',
|
||||
condition: { field: 'operation', value: 'datadog_create_event' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// ========================
|
||||
@@ -267,6 +270,7 @@ Return ONLY the monitor query string - no explanations.`,
|
||||
type: 'long-input',
|
||||
placeholder: 'Alert! CPU usage is high. @slack-alerts',
|
||||
condition: { field: 'operation', value: 'datadog_create_monitor' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Datadog monitor notification message based on the user's description.
|
||||
@@ -285,6 +289,7 @@ Return the notification message text directly.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'team:backend, priority:high',
|
||||
condition: { field: 'operation', value: 'datadog_create_monitor' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'monitorPriority',
|
||||
@@ -292,6 +297,7 @@ Return the notification message text directly.`,
|
||||
type: 'short-input',
|
||||
placeholder: '3',
|
||||
condition: { field: 'operation', value: 'datadog_create_monitor' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'options',
|
||||
@@ -299,6 +305,7 @@ Return the notification message text directly.`,
|
||||
type: 'code',
|
||||
placeholder: '{"notify_no_data": true, "thresholds": {"critical": 90}}',
|
||||
condition: { field: 'operation', value: 'datadog_create_monitor' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate Datadog monitor options JSON based on the user's description.
|
||||
@@ -336,6 +343,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'CPU',
|
||||
condition: { field: 'operation', value: 'datadog_list_monitors' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'listMonitorTags',
|
||||
@@ -343,6 +351,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'env:production',
|
||||
condition: { field: 'operation', value: 'datadog_list_monitors' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// ========================
|
||||
@@ -362,6 +371,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'host:myhost (optional)',
|
||||
condition: { field: 'operation', value: 'datadog_mute_monitor' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'end',
|
||||
@@ -369,6 +379,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Leave empty for indefinite',
|
||||
condition: { field: 'operation', value: 'datadog_mute_monitor' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Unix timestamp (seconds since epoch) based on the user's description.
|
||||
@@ -456,6 +467,7 @@ Return ONLY the relative time string - no explanations, no quotes, no extra text
|
||||
type: 'short-input',
|
||||
placeholder: '50',
|
||||
condition: { field: 'operation', value: 'datadog_query_logs' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// ========================
|
||||
@@ -508,6 +520,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
|
||||
type: 'long-input',
|
||||
placeholder: 'Scheduled maintenance',
|
||||
condition: { field: 'operation', value: 'datadog_create_downtime' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a downtime message for Datadog based on the user's description.
|
||||
@@ -524,6 +537,7 @@ Return the message text directly - no extra formatting.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Leave empty for now',
|
||||
condition: { field: 'operation', value: 'datadog_create_downtime' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Unix timestamp (seconds since epoch) based on the user's description.
|
||||
@@ -544,6 +558,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 1701450000',
|
||||
condition: { field: 'operation', value: 'datadog_create_downtime' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Unix timestamp (seconds since epoch) based on the user's description.
|
||||
@@ -564,6 +579,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
|
||||
type: 'short-input',
|
||||
placeholder: '12345678',
|
||||
condition: { field: 'operation', value: 'datadog_create_downtime' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// ========================
|
||||
@@ -574,6 +590,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
|
||||
title: 'Current Only',
|
||||
type: 'switch',
|
||||
condition: { field: 'operation', value: 'datadog_list_downtimes' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
|
||||
// ========================
|
||||
@@ -635,6 +652,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
|
||||
{ label: 'US1-FED (ddog-gov.com)', id: 'ddog-gov.com' },
|
||||
],
|
||||
value: () => 'datadoghq.com',
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
|
||||
@@ -96,6 +96,7 @@ export const FirefliesBlock: BlockConfig<FirefliesResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 2024-01-01T00:00:00Z',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_list_transcripts',
|
||||
@@ -121,6 +122,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 2024-12-31T23:59:59Z',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_list_transcripts',
|
||||
@@ -146,6 +148,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by host email',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_list_transcripts',
|
||||
@@ -157,6 +160,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated participant emails',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_list_transcripts',
|
||||
@@ -168,6 +172,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Max 50 (default: 50)',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['fireflies_list_transcripts', 'fireflies_list_bites'],
|
||||
@@ -248,6 +253,7 @@ Return ONLY the title - no quotes, no explanations.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., es, de, fr (default: English)',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['fireflies_upload_audio', 'fireflies_add_to_live_meeting'],
|
||||
@@ -279,6 +285,7 @@ Return ONLY the two-letter language code - no explanations, no quotes.`,
|
||||
placeholder: '[{"displayName": "John", "email": "john@example.com"}]',
|
||||
description: 'JSON array of attendees',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_upload_audio',
|
||||
@@ -305,6 +312,7 @@ Return ONLY the valid JSON array - no explanations, no markdown code blocks.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Custom tracking ID',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_upload_audio',
|
||||
@@ -330,6 +338,7 @@ Return ONLY the valid JSON array - no explanations, no markdown code blocks.`,
|
||||
placeholder: 'Optional meeting password',
|
||||
password: true,
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_add_to_live_meeting',
|
||||
@@ -341,6 +350,7 @@ Return ONLY the valid JSON array - no explanations, no markdown code blocks.`,
|
||||
type: 'short-input',
|
||||
placeholder: '60 (15-120 minutes)',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_add_to_live_meeting',
|
||||
@@ -375,6 +385,7 @@ Return ONLY the valid JSON array - no explanations, no markdown code blocks.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Name for this highlight',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_create_bite',
|
||||
@@ -386,6 +397,7 @@ Return ONLY the valid JSON array - no explanations, no markdown code blocks.`,
|
||||
type: 'long-input',
|
||||
placeholder: 'Brief description of the highlight',
|
||||
required: false,
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'fireflies_create_bite',
|
||||
|
||||
@@ -169,6 +169,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., main (leave empty for default)',
|
||||
condition: { field: 'operation', value: 'github_latest_commit' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Comment operations parameters
|
||||
{
|
||||
@@ -201,6 +202,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 30 (default: 30, max: 100)',
|
||||
condition: { field: 'operation', value: 'github_list_issue_comments' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'comment_id',
|
||||
@@ -240,6 +242,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 30 (default: 30, max: 100)',
|
||||
condition: { field: 'operation', value: 'github_list_pr_comments' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Pull request operations parameters
|
||||
{
|
||||
@@ -272,6 +275,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'long-input',
|
||||
placeholder: 'Enter pull request description (optional)',
|
||||
condition: { field: 'operation', value: 'github_create_pr' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'draft',
|
||||
@@ -282,6 +286,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Yes', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_create_pr' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'pullNumber',
|
||||
@@ -297,6 +302,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Enter new title (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_pr' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'body',
|
||||
@@ -304,6 +310,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'long-input',
|
||||
placeholder: 'Enter new description (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_pr' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'state',
|
||||
@@ -314,6 +321,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Closed', id: 'closed' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_update_pr' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'pullNumber',
|
||||
@@ -333,6 +341,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Rebase', id: 'rebase' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_merge_pr' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'commit_title',
|
||||
@@ -340,6 +349,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Enter commit title (optional)',
|
||||
condition: { field: 'operation', value: 'github_merge_pr' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'state',
|
||||
@@ -351,6 +361,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'All', id: 'all' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_list_prs' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'per_page',
|
||||
@@ -358,6 +369,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 30 (default: 30, max: 100)',
|
||||
condition: { field: 'operation', value: 'github_list_prs' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'pullNumber',
|
||||
@@ -389,6 +401,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated: user1,user2',
|
||||
condition: { field: 'operation', value: 'github_request_reviewers' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'team_reviewers',
|
||||
@@ -396,6 +409,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated: team1,team2',
|
||||
condition: { field: 'operation', value: 'github_request_reviewers' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// File operations parameters
|
||||
{
|
||||
@@ -412,6 +426,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., main (optional)',
|
||||
condition: { field: 'operation', value: 'github_get_file_content' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'path',
|
||||
@@ -443,6 +458,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., main (optional)',
|
||||
condition: { field: 'operation', value: 'github_create_file' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'path',
|
||||
@@ -482,6 +498,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., main (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_file' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'path',
|
||||
@@ -513,6 +530,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., main (optional)',
|
||||
condition: { field: 'operation', value: 'github_delete_file' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'path',
|
||||
@@ -520,6 +538,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., src (leave empty for root)',
|
||||
condition: { field: 'operation', value: 'github_get_tree' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'ref',
|
||||
@@ -527,6 +546,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., main (optional)',
|
||||
condition: { field: 'operation', value: 'github_get_tree' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Branch operations parameters
|
||||
{
|
||||
@@ -539,6 +559,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Unprotected', id: 'false' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_list_branches' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'branch',
|
||||
@@ -594,6 +615,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'JSON: {"strict":true,"contexts":["ci/test"]}',
|
||||
condition: { field: 'operation', value: 'github_update_branch_protection' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'enforce_admins',
|
||||
@@ -604,6 +626,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Yes', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_update_branch_protection' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'required_pull_request_reviews',
|
||||
@@ -611,6 +634,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'JSON: {"required_approving_review_count":1}',
|
||||
condition: { field: 'operation', value: 'github_update_branch_protection' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Issue operations parameters
|
||||
{
|
||||
@@ -627,6 +651,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'long-input',
|
||||
placeholder: 'Enter issue description (optional)',
|
||||
condition: { field: 'operation', value: 'github_create_issue' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'labels',
|
||||
@@ -634,6 +659,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated: bug,enhancement',
|
||||
condition: { field: 'operation', value: 'github_create_issue' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'assignees',
|
||||
@@ -641,6 +667,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated: user1,user2',
|
||||
condition: { field: 'operation', value: 'github_create_issue' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'issue_number',
|
||||
@@ -656,6 +683,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Enter new title (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_issue' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'body',
|
||||
@@ -663,6 +691,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'long-input',
|
||||
placeholder: 'Enter new description (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_issue' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'state',
|
||||
@@ -673,6 +702,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Closed', id: 'closed' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_update_issue' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'state',
|
||||
@@ -684,6 +714,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'All', id: 'all' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_list_issues' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'per_page',
|
||||
@@ -691,6 +722,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 30 (default: 30, max: 100)',
|
||||
condition: { field: 'operation', value: 'github_list_issues' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'issue_number',
|
||||
@@ -771,6 +803,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., Version 1.0.0',
|
||||
condition: { field: 'operation', value: 'github_create_release' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'body',
|
||||
@@ -778,6 +811,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'long-input',
|
||||
placeholder: 'Enter release notes (optional)',
|
||||
condition: { field: 'operation', value: 'github_create_release' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'draft',
|
||||
@@ -788,6 +822,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Yes', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_create_release' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'prerelease',
|
||||
@@ -798,6 +833,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Yes', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_create_release' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'release_id',
|
||||
@@ -813,6 +849,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., v1.0.1 (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_release' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'name',
|
||||
@@ -820,6 +857,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Enter new name (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_release' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'body',
|
||||
@@ -827,6 +865,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'long-input',
|
||||
placeholder: 'Enter updated notes (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_release' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'per_page',
|
||||
@@ -834,6 +873,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 30 (default: 30, max: 100)',
|
||||
condition: { field: 'operation', value: 'github_list_releases' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'release_id',
|
||||
@@ -858,6 +898,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 30 (default: 30, max: 100)',
|
||||
condition: { field: 'operation', value: 'github_list_workflows' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'workflow_id',
|
||||
@@ -889,6 +930,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'long-input',
|
||||
placeholder: 'JSON: {"key":"value"}',
|
||||
condition: { field: 'operation', value: 'github_trigger_workflow' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'workflow_id',
|
||||
@@ -896,6 +938,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 123456 or ci.yml (optional)',
|
||||
condition: { field: 'operation', value: 'github_list_workflow_runs' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'status',
|
||||
@@ -908,6 +951,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Completed', id: 'completed' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_list_workflow_runs' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'per_page',
|
||||
@@ -915,6 +959,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., 30 (default: 30, max: 100)',
|
||||
condition: { field: 'operation', value: 'github_list_workflow_runs' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'run_id',
|
||||
@@ -1017,6 +1062,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Enter new title (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_project' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'project_public',
|
||||
@@ -1027,6 +1073,7 @@ export const GitHubBlock: BlockConfig<GitHubResponse> = {
|
||||
{ label: 'Public', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_update_project' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'project_id',
|
||||
@@ -1083,6 +1130,7 @@ Return ONLY the search query - no explanations.`,
|
||||
{ label: 'Updated', id: 'updated' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_search_repos' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'order',
|
||||
@@ -1102,6 +1150,7 @@ Return ONLY the search query - no explanations.`,
|
||||
'github_search_users',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Commit operations parameters
|
||||
{
|
||||
@@ -1110,6 +1159,7 @@ Return ONLY the search query - no explanations.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., main or abc123',
|
||||
condition: { field: 'operation', value: 'github_list_commits' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'author',
|
||||
@@ -1117,6 +1167,7 @@ Return ONLY the search query - no explanations.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'GitHub username or email',
|
||||
condition: { field: 'operation', value: 'github_list_commits' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'since',
|
||||
@@ -1124,6 +1175,7 @@ Return ONLY the search query - no explanations.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'ISO 8601: 2024-01-01T00:00:00Z',
|
||||
condition: { field: 'operation', value: ['github_list_commits', 'github_list_gists'] },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate an ISO 8601 timestamp based on the user's description.
|
||||
@@ -1146,6 +1198,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'ISO 8601: 2024-12-31T23:59:59Z',
|
||||
condition: { field: 'operation', value: 'github_list_commits' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate an ISO 8601 timestamp based on the user's description.
|
||||
@@ -1210,6 +1263,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Gist description',
|
||||
condition: { field: 'operation', value: ['github_create_gist', 'github_update_gist'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'files',
|
||||
@@ -1266,6 +1320,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
{ label: 'Public', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_create_gist' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'username',
|
||||
@@ -1273,6 +1328,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'GitHub username (optional)',
|
||||
condition: { field: 'operation', value: 'github_list_gists' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Fork operations parameters
|
||||
{
|
||||
@@ -1281,6 +1337,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Fork to org (optional)',
|
||||
condition: { field: 'operation', value: 'github_fork_repo' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'fork_name',
|
||||
@@ -1288,6 +1345,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Custom name (optional)',
|
||||
condition: { field: 'operation', value: 'github_fork_repo' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'default_branch_only',
|
||||
@@ -1298,6 +1356,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
{ label: 'Yes', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_fork_repo' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'fork_sort',
|
||||
@@ -1310,6 +1369,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
{ label: 'Watchers', id: 'watchers' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_list_forks' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Milestone operations parameters
|
||||
{
|
||||
@@ -1326,6 +1386,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Updated title (optional)',
|
||||
condition: { field: 'operation', value: 'github_update_milestone' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'milestone_description',
|
||||
@@ -1336,6 +1397,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
field: 'operation',
|
||||
value: ['github_create_milestone', 'github_update_milestone'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'due_on',
|
||||
@@ -1346,6 +1408,7 @@ Return ONLY valid JSON - no explanations, no markdown formatting.`,
|
||||
field: 'operation',
|
||||
value: ['github_create_milestone', 'github_update_milestone'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate an ISO 8601 timestamp for a milestone due date based on the user's description.
|
||||
@@ -1383,6 +1446,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
{ label: 'All', id: 'all' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_list_milestones' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'milestone_sort',
|
||||
@@ -1393,6 +1457,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
{ label: 'Completeness', id: 'completeness' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_list_milestones' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Reaction operations parameters
|
||||
{
|
||||
@@ -1469,6 +1534,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
'github_list_stargazers',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'apiKey',
|
||||
@@ -1498,6 +1564,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
{ label: 'File-specific Comment', id: 'file_comment' },
|
||||
],
|
||||
condition: { field: 'operation', value: 'github_comment' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'path',
|
||||
@@ -1512,6 +1579,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
value: 'file_comment',
|
||||
},
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'line',
|
||||
@@ -1526,6 +1594,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
value: 'file_comment',
|
||||
},
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
|
||||
@@ -245,6 +245,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
title: 'Labels',
|
||||
type: 'short-input',
|
||||
placeholder: 'Enter labels (comma-separated)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -263,6 +264,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
title: 'Assignee IDs',
|
||||
type: 'short-input',
|
||||
placeholder: 'Enter assignee user IDs (comma-separated)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -279,6 +281,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
title: 'Milestone ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'Enter milestone ID',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['gitlab_create_issue', 'gitlab_update_issue'],
|
||||
@@ -295,6 +298,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
{ label: 'Closed', id: 'closed' },
|
||||
],
|
||||
value: () => 'all',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['gitlab_list_issues'],
|
||||
@@ -312,6 +316,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
{ label: 'Merged', id: 'merged' },
|
||||
],
|
||||
value: () => 'all',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['gitlab_list_merge_requests'],
|
||||
@@ -328,6 +333,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
{ label: 'Reopen', id: 'reopen' },
|
||||
],
|
||||
value: () => '',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['gitlab_update_issue', 'gitlab_update_merge_request'],
|
||||
@@ -348,6 +354,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
{ label: 'Skipped', id: 'skipped' },
|
||||
],
|
||||
value: () => '',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['gitlab_list_pipelines'],
|
||||
@@ -358,6 +365,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
id: 'removeSourceBranch',
|
||||
title: 'Remove Source Branch',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['gitlab_create_merge_request', 'gitlab_merge_merge_request'],
|
||||
@@ -368,6 +376,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
id: 'squash',
|
||||
title: 'Squash Commits',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['gitlab_merge_merge_request'],
|
||||
@@ -379,6 +388,7 @@ Return ONLY the comment text - no explanations, no extra formatting.`,
|
||||
title: 'Merge Commit Message',
|
||||
type: 'long-input',
|
||||
placeholder: 'Enter custom merge commit message (optional)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['gitlab_merge_merge_request'],
|
||||
@@ -398,6 +408,7 @@ Return ONLY the commit message - no explanations, no extra text.`,
|
||||
title: 'Results Per Page',
|
||||
type: 'short-input',
|
||||
placeholder: 'Number of results per page (default: 20, max: 100)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -414,6 +425,7 @@ Return ONLY the commit message - no explanations, no extra text.`,
|
||||
title: 'Page Number',
|
||||
type: 'short-input',
|
||||
placeholder: 'Page number (default: 1)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
|
||||
@@ -96,6 +96,7 @@ export const KalshiBlock: BlockConfig = {
|
||||
{ label: 'Settled', id: 'settled' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_markets', 'get_events'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'seriesTicker',
|
||||
@@ -103,6 +104,7 @@ export const KalshiBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by series ticker',
|
||||
condition: { field: 'operation', value: ['get_markets', 'get_events'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'eventTicker',
|
||||
@@ -134,6 +136,7 @@ export const KalshiBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by market ticker (optional)',
|
||||
condition: { field: 'operation', value: ['get_orders', 'get_positions'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Nested markets option
|
||||
{
|
||||
@@ -145,6 +148,7 @@ export const KalshiBlock: BlockConfig = {
|
||||
{ label: 'Yes', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_events', 'get_event'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Get Positions fields
|
||||
{
|
||||
@@ -157,6 +161,7 @@ export const KalshiBlock: BlockConfig = {
|
||||
{ label: 'Settled', id: 'settled' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_positions'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Get Orders fields
|
||||
{
|
||||
@@ -170,6 +175,7 @@ export const KalshiBlock: BlockConfig = {
|
||||
{ label: 'Executed', id: 'executed' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_orders'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Get Fills timestamp filters
|
||||
{
|
||||
@@ -178,6 +184,7 @@ export const KalshiBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Minimum timestamp (Unix milliseconds)',
|
||||
condition: { field: 'operation', value: ['get_fills'] },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Unix timestamp in milliseconds based on the user's description.
|
||||
@@ -198,6 +205,7 @@ Return ONLY the numeric timestamp (milliseconds since Unix epoch) - no explanati
|
||||
type: 'short-input',
|
||||
placeholder: 'Maximum timestamp (Unix milliseconds)',
|
||||
condition: { field: 'operation', value: ['get_fills'] },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Unix timestamp in milliseconds based on the user's description.
|
||||
@@ -290,6 +298,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by market ticker (optional)',
|
||||
condition: { field: 'operation', value: ['get_fills'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'orderId',
|
||||
@@ -297,6 +306,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by order ID (optional)',
|
||||
condition: { field: 'operation', value: ['get_fills'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Get Series by Ticker fields
|
||||
{
|
||||
@@ -398,6 +408,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
type: 'short-input',
|
||||
placeholder: 'Custom order identifier (optional)',
|
||||
condition: { field: 'operation', value: ['create_order'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'clientOrderIdAmend',
|
||||
@@ -425,6 +436,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
{ label: 'Immediate or Cancel', id: 'immediate_or_cancel' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['create_order'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'expirationTs',
|
||||
@@ -432,6 +444,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
type: 'short-input',
|
||||
placeholder: 'Unix timestamp for order expiration',
|
||||
condition: { field: 'operation', value: ['create_order'] },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Unix timestamp in seconds based on the user's description for when the order should expire.
|
||||
@@ -455,6 +468,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
{ label: 'Yes', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['create_order'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'reduceOnly',
|
||||
@@ -465,6 +479,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
{ label: 'Yes', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['create_order'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Pagination fields
|
||||
{
|
||||
@@ -483,6 +498,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
'get_fills',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'cursor',
|
||||
@@ -500,6 +516,7 @@ Return ONLY the numeric timestamp (seconds since Unix epoch) - no explanations,
|
||||
'get_fills',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
|
||||
@@ -45,22 +45,26 @@ export const LinkupBlock: BlockConfig<LinkupSearchToolResponse> = {
|
||||
id: 'includeImages',
|
||||
title: 'Include Images',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'includeInlineCitations',
|
||||
title: 'Include Inline Citations',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'includeSources',
|
||||
title: 'Include Sources',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'fromDate',
|
||||
title: 'From Date',
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD',
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -80,6 +84,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
title: 'To Date',
|
||||
type: 'short-input',
|
||||
placeholder: 'YYYY-MM-DD',
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a date in YYYY-MM-DD format based on the user's description.
|
||||
@@ -99,12 +104,14 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
|
||||
title: 'Include Domains',
|
||||
type: 'long-input',
|
||||
placeholder: 'example.com, another.com (comma-separated)',
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'excludeDomains',
|
||||
title: 'Exclude Domains',
|
||||
type: 'long-input',
|
||||
placeholder: 'example.com, another.com (comma-separated)',
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'apiKey',
|
||||
|
||||
@@ -9,7 +9,7 @@ export const LumaBlock: BlockConfig = {
|
||||
'Integrate Luma into the workflow. Can create events, update events, get event details, list calendar events, get guest lists, and add guests to events.',
|
||||
docsLink: 'https://docs.sim.ai/tools/luma',
|
||||
category: 'tools',
|
||||
bgColor: '#FF5C35',
|
||||
bgColor: '#FFFFFF',
|
||||
icon: LumaIcon,
|
||||
authMode: AuthMode.ApiKey,
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ export const MongoDBBlock: BlockConfig<MongoDBResponse | MongoDBIntrospectRespon
|
||||
title: 'Auth Source',
|
||||
type: 'short-input',
|
||||
placeholder: 'admin',
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'ssl',
|
||||
@@ -80,6 +81,7 @@ export const MongoDBBlock: BlockConfig<MongoDBResponse | MongoDBIntrospectRespon
|
||||
{ label: 'Preferred', id: 'preferred' },
|
||||
],
|
||||
value: () => 'preferred',
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'collection',
|
||||
@@ -451,6 +453,7 @@ Return ONLY the JSON array pipeline - no explanations, no markdown, no extra tex
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'query' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'sort',
|
||||
@@ -458,6 +461,7 @@ Return ONLY the JSON array pipeline - no explanations, no markdown, no extra tex
|
||||
type: 'code',
|
||||
placeholder: '{"createdAt": -1}',
|
||||
condition: { field: 'operation', value: 'query' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
maintainHistory: true,
|
||||
@@ -680,6 +684,7 @@ Generate the MongoDB update operation that safely and accurately fulfills the us
|
||||
],
|
||||
value: () => 'false',
|
||||
condition: { field: 'operation', value: 'update' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'multi',
|
||||
@@ -691,6 +696,7 @@ Generate the MongoDB update operation that safely and accurately fulfills the us
|
||||
],
|
||||
value: () => 'false',
|
||||
condition: { field: 'operation', value: 'update' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'filter',
|
||||
@@ -796,6 +802,7 @@ Return ONLY the MongoDB query filter as valid JSON - no explanations, no markdow
|
||||
],
|
||||
value: () => 'false',
|
||||
condition: { field: 'operation', value: 'delete' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
|
||||
@@ -103,6 +103,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Wallet address (optional filter)',
|
||||
condition: { field: 'operation', value: ['get_trades'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Market/Event filter for positions and trades
|
||||
{
|
||||
@@ -111,6 +112,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Condition ID filter (comma-separated)',
|
||||
condition: { field: 'operation', value: ['get_positions', 'get_trades'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'positionEventId',
|
||||
@@ -118,6 +120,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Event ID filter (alternative to Condition ID)',
|
||||
condition: { field: 'operation', value: ['get_positions', 'get_trades'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Positions-specific filters
|
||||
{
|
||||
@@ -126,6 +129,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Minimum position size (default: 1)',
|
||||
condition: { field: 'operation', value: ['get_positions'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'redeemable',
|
||||
@@ -137,6 +141,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Non-Redeemable Only', id: 'false' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_positions'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'mergeable',
|
||||
@@ -148,6 +153,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Non-Mergeable Only', id: 'false' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_positions'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'positionSortBy',
|
||||
@@ -165,6 +171,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Avg Price', id: 'AVGPRICE' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_positions'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'positionSortDirection',
|
||||
@@ -175,6 +182,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Ascending', id: 'ASC' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_positions'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'positionTitle',
|
||||
@@ -182,6 +190,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Search by title',
|
||||
condition: { field: 'operation', value: ['get_positions'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Trades-specific filters
|
||||
{
|
||||
@@ -194,6 +203,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Sell', id: 'SELL' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_trades'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'takerOnly',
|
||||
@@ -204,6 +214,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'No', id: 'false' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_trades'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'filterType',
|
||||
@@ -215,6 +226,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Tokens', id: 'TOKENS' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_trades'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'filterAmount',
|
||||
@@ -222,6 +234,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Minimum amount threshold',
|
||||
condition: { field: 'operation', value: ['get_trades'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Activity-specific fields
|
||||
{
|
||||
@@ -247,6 +260,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Maker Rebate', id: 'MAKER_REBATE' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_activity'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'activityMarket',
|
||||
@@ -254,6 +268,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Condition ID filter (comma-separated)',
|
||||
condition: { field: 'operation', value: ['get_activity'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'activityEventId',
|
||||
@@ -261,6 +276,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Event ID filter (comma-separated)',
|
||||
condition: { field: 'operation', value: ['get_activity'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'activitySide',
|
||||
@@ -272,6 +288,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Sell', id: 'SELL' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_activity'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'activitySortBy',
|
||||
@@ -283,6 +300,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Cash', id: 'CASH' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_activity'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'activitySortDirection',
|
||||
@@ -293,6 +311,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Ascending', id: 'ASC' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_activity'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'activityStart',
|
||||
@@ -300,6 +319,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Unix timestamp (seconds)',
|
||||
condition: { field: 'operation', value: ['get_activity'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'activityEnd',
|
||||
@@ -307,6 +327,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Unix timestamp (seconds)',
|
||||
condition: { field: 'operation', value: ['get_activity'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Leaderboard-specific fields
|
||||
{
|
||||
@@ -326,6 +347,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Finance', id: 'FINANCE' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_leaderboard'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'leaderboardTimePeriod',
|
||||
@@ -338,6 +360,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'All Time', id: 'ALL' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_leaderboard'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'leaderboardOrderBy',
|
||||
@@ -348,6 +371,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Volume', id: 'VOL' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_leaderboard'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'leaderboardUser',
|
||||
@@ -355,6 +379,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by specific user wallet',
|
||||
condition: { field: 'operation', value: ['get_leaderboard'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'leaderboardUserName',
|
||||
@@ -362,6 +387,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by username',
|
||||
condition: { field: 'operation', value: ['get_leaderboard'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Market Holders-specific fields
|
||||
{
|
||||
@@ -378,6 +404,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Minimum balance threshold (default: 1)',
|
||||
condition: { field: 'operation', value: ['get_holders'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Token ID for CLOB operations
|
||||
{
|
||||
@@ -426,6 +453,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
{ label: 'Max', id: 'max' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_price_history'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'fidelity',
|
||||
@@ -433,6 +461,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Data resolution in minutes (e.g., 60)',
|
||||
condition: { field: 'operation', value: ['get_price_history'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'startTs',
|
||||
@@ -440,6 +469,7 @@ export const PolymarketBlock: BlockConfig = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Unix timestamp UTC (if no interval)',
|
||||
condition: { field: 'operation', value: ['get_price_history'] },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Unix timestamp (seconds since epoch) based on the user's description.
|
||||
@@ -459,6 +489,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
type: 'short-input',
|
||||
placeholder: 'Unix timestamp UTC (if no interval)',
|
||||
condition: { field: 'operation', value: ['get_price_history'] },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate a Unix timestamp (seconds since epoch) based on the user's description.
|
||||
@@ -483,6 +514,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
{ label: 'Closed Only', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_markets', 'get_events'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'order',
|
||||
@@ -498,6 +530,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
{ label: 'Updated At', id: 'updatedAt' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_markets'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'orderEvents',
|
||||
@@ -513,6 +546,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
{ label: 'Updated At', id: 'updatedAt' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_events'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'ascending',
|
||||
@@ -523,6 +557,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
{ label: 'Ascending', id: 'true' },
|
||||
],
|
||||
condition: { field: 'operation', value: ['get_markets', 'get_events'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'tagId',
|
||||
@@ -530,6 +565,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
type: 'short-input',
|
||||
placeholder: 'Filter by tag ID',
|
||||
condition: { field: 'operation', value: ['get_markets', 'get_events'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Pagination fields
|
||||
{
|
||||
@@ -552,6 +588,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
'get_holders',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'offset',
|
||||
@@ -571,6 +608,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
'get_leaderboard',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'page',
|
||||
@@ -578,6 +616,7 @@ Return ONLY the Unix timestamp as a number - no explanations, no quotes, no extr
|
||||
type: 'short-input',
|
||||
placeholder: 'Page number (1-indexed)',
|
||||
condition: { field: 'operation', value: ['search'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
|
||||
@@ -66,6 +66,7 @@ export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Sender Name',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'to',
|
||||
@@ -81,6 +82,7 @@ export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Recipient Name',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'mailSubject',
|
||||
@@ -113,6 +115,7 @@ export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'cc@example.com',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'bcc',
|
||||
@@ -120,6 +123,7 @@ export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'bcc@example.com',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'replyTo',
|
||||
@@ -127,6 +131,7 @@ export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'replyto@example.com',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'replyToName',
|
||||
@@ -134,6 +139,7 @@ export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Reply To Name',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'mailTemplateId',
|
||||
@@ -141,6 +147,7 @@ export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'SendGrid template ID',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'dynamicTemplateData',
|
||||
@@ -148,6 +155,7 @@ export const SendGridBlock: BlockConfig<SendMailResult> = {
|
||||
type: 'code',
|
||||
placeholder: '{"name": "John", "order_id": "12345"}',
|
||||
condition: { field: 'operation', value: 'send_mail' },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate SendGrid dynamic template data JSON based on the user's description.
|
||||
@@ -232,6 +240,7 @@ Return ONLY the JSON object.`,
|
||||
type: 'code',
|
||||
placeholder: '{"custom_field_1": "value1"}',
|
||||
condition: { field: 'operation', value: ['add_contact'] },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
prompt: `Generate SendGrid custom fields JSON based on the user's description.
|
||||
@@ -264,6 +273,7 @@ Return ONLY the JSON object.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated list IDs',
|
||||
condition: { field: 'operation', value: ['add_contact'] },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'contactId',
|
||||
@@ -373,6 +383,7 @@ Return ONLY the JSON array.`,
|
||||
type: 'short-input',
|
||||
placeholder: '100',
|
||||
condition: { field: 'operation', value: 'list_all_lists' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Template fields
|
||||
{
|
||||
@@ -411,6 +422,7 @@ Return ONLY the JSON array.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'legacy, dynamic, or both',
|
||||
condition: { field: 'operation', value: 'list_templates' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'templatePageSize',
|
||||
@@ -418,6 +430,7 @@ Return ONLY the JSON array.`,
|
||||
type: 'short-input',
|
||||
placeholder: '20',
|
||||
condition: { field: 'operation', value: 'list_templates' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'versionName',
|
||||
@@ -514,6 +527,7 @@ Return ONLY the HTML content.`,
|
||||
type: 'long-input',
|
||||
placeholder: 'Plain text content',
|
||||
condition: { field: 'operation', value: 'create_template_version' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'active',
|
||||
@@ -525,6 +539,7 @@ Return ONLY the HTML content.`,
|
||||
],
|
||||
value: () => 'true',
|
||||
condition: { field: 'operation', value: 'create_template_version' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
@@ -119,6 +119,7 @@ Output: {"short_description": "Network outage", "description": "Network connecti
|
||||
placeholder: 'active=true^priority=1',
|
||||
condition: { field: 'operation', value: 'servicenow_read_record' },
|
||||
description: 'ServiceNow encoded query string',
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'limit',
|
||||
@@ -126,6 +127,7 @@ Output: {"short_description": "Network outage", "description": "Network connecti
|
||||
type: 'short-input',
|
||||
placeholder: '10',
|
||||
condition: { field: 'operation', value: 'servicenow_read_record' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'fields',
|
||||
@@ -134,6 +136,7 @@ Output: {"short_description": "Network outage", "description": "Network connecti
|
||||
placeholder: 'number,short_description,priority',
|
||||
condition: { field: 'operation', value: 'servicenow_read_record' },
|
||||
description: 'Comma-separated list of fields',
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Update-specific: sysId and fields
|
||||
{
|
||||
|
||||
@@ -176,6 +176,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: ['update_payment_intent'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'payment_method',
|
||||
@@ -252,6 +253,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: ['create_customer', 'update_customer'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'address',
|
||||
@@ -262,6 +264,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: ['create_customer', 'update_customer'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Subscription specific fields - REQUIRED for create_subscription
|
||||
{
|
||||
@@ -295,6 +298,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'create_subscription',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'default_payment_method',
|
||||
@@ -305,6 +309,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'create_subscription',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'cancel_at_period_end',
|
||||
@@ -318,6 +323,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: ['create_subscription', 'update_subscription'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Invoice specific fields
|
||||
{
|
||||
@@ -332,6 +338,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'create_invoice',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'auto_advance',
|
||||
@@ -345,6 +352,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: ['create_invoice', 'update_invoice', 'finalize_invoice'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Charge specific fields
|
||||
{
|
||||
@@ -369,6 +377,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'create_charge',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Product specific fields
|
||||
{
|
||||
@@ -383,6 +392,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: ['create_product', 'update_product', 'update_price'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'images',
|
||||
@@ -393,6 +403,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: ['create_product', 'update_product'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Price specific fields
|
||||
{
|
||||
@@ -447,6 +458,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
'update_product',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Common metadata field
|
||||
{
|
||||
@@ -473,6 +485,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
'update_price',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// List/Search common fields
|
||||
{
|
||||
@@ -500,6 +513,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
'search_prices',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'query',
|
||||
@@ -530,6 +544,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: ['list_subscriptions', 'list_invoices'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'receipt_email',
|
||||
@@ -540,6 +555,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'create_payment_intent',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'cancellation_reason',
|
||||
@@ -550,6 +566,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'cancel_payment_intent',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'amount_to_capture',
|
||||
@@ -560,6 +577,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'capture_payment_intent',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'prorate',
|
||||
@@ -573,6 +591,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'cancel_subscription',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'invoice_now',
|
||||
@@ -586,6 +605,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'cancel_subscription',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'paid_out_of_band',
|
||||
@@ -599,6 +619,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'pay_invoice',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'type',
|
||||
@@ -609,6 +630,7 @@ export const StripeBlock: BlockConfig<StripeResponse> = {
|
||||
field: 'operation',
|
||||
value: 'list_events',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
...getTrigger('stripe_webhook').subBlocks,
|
||||
],
|
||||
|
||||
@@ -118,6 +118,7 @@ export const WebflowBlock: BlockConfig<WebflowResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Pagination offset (optional)',
|
||||
condition: { field: 'operation', value: 'list' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'limit',
|
||||
@@ -125,6 +126,7 @@ export const WebflowBlock: BlockConfig<WebflowResponse> = {
|
||||
type: 'short-input',
|
||||
placeholder: 'Max items to return (optional)',
|
||||
condition: { field: 'operation', value: 'list' },
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'fieldData',
|
||||
|
||||
@@ -175,6 +175,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Excerpt',
|
||||
type: 'long-input',
|
||||
placeholder: 'Post or page excerpt',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -192,6 +193,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Slug',
|
||||
type: 'short-input',
|
||||
placeholder: 'URL slug (optional)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -209,6 +211,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Categories',
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated category IDs',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['wordpress_create_post', 'wordpress_update_post'],
|
||||
@@ -221,6 +224,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Tags',
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated tag IDs',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['wordpress_create_post', 'wordpress_update_post'],
|
||||
@@ -233,6 +237,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Featured Image ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'Media ID for featured image',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -266,6 +271,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Parent Page ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'Parent page ID (for hierarchy)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['wordpress_create_page', 'wordpress_update_page'],
|
||||
@@ -278,6 +284,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Menu Order',
|
||||
type: 'short-input',
|
||||
placeholder: 'Order in menu (number)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['wordpress_create_page', 'wordpress_update_page'],
|
||||
@@ -312,6 +319,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Filename Override',
|
||||
type: 'short-input',
|
||||
placeholder: 'Optional: Override filename (e.g., image.jpg)',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_upload_media' },
|
||||
},
|
||||
{
|
||||
@@ -319,6 +327,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Media Title',
|
||||
type: 'short-input',
|
||||
placeholder: 'Title for the media',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_upload_media' },
|
||||
},
|
||||
{
|
||||
@@ -326,6 +335,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Caption',
|
||||
type: 'short-input',
|
||||
placeholder: 'Media caption',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_upload_media' },
|
||||
},
|
||||
{
|
||||
@@ -333,6 +343,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Alt Text',
|
||||
type: 'short-input',
|
||||
placeholder: 'Alternative text for accessibility',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_upload_media' },
|
||||
},
|
||||
{
|
||||
@@ -361,6 +372,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
{ label: 'Application', id: 'application' },
|
||||
],
|
||||
value: () => '',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_list_media' },
|
||||
},
|
||||
|
||||
@@ -409,6 +421,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
{ label: 'Trash', id: 'trash' },
|
||||
],
|
||||
value: () => 'approved',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_update_comment' },
|
||||
},
|
||||
|
||||
@@ -426,6 +439,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Description',
|
||||
type: 'long-input',
|
||||
placeholder: 'Category description',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_create_category' },
|
||||
},
|
||||
{
|
||||
@@ -433,6 +447,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Parent Category ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'Parent category ID',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_create_category' },
|
||||
},
|
||||
{
|
||||
@@ -440,6 +455,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Category Slug',
|
||||
type: 'short-input',
|
||||
placeholder: 'URL slug (optional)',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_create_category' },
|
||||
},
|
||||
|
||||
@@ -457,6 +473,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Description',
|
||||
type: 'long-input',
|
||||
placeholder: 'Tag description',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_create_tag' },
|
||||
},
|
||||
{
|
||||
@@ -464,6 +481,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Tag Slug',
|
||||
type: 'short-input',
|
||||
placeholder: 'URL slug (optional)',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_create_tag' },
|
||||
},
|
||||
|
||||
@@ -481,6 +499,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'User Roles',
|
||||
type: 'short-input',
|
||||
placeholder: 'Comma-separated role names (e.g., administrator, editor)',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_list_users' },
|
||||
},
|
||||
|
||||
@@ -504,6 +523,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
{ label: 'Attachment', id: 'attachment' },
|
||||
],
|
||||
value: () => '',
|
||||
mode: 'advanced',
|
||||
condition: { field: 'operation', value: 'wordpress_search_content' },
|
||||
},
|
||||
|
||||
@@ -513,6 +533,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Results Per Page',
|
||||
type: 'short-input',
|
||||
placeholder: '10 (max 100)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -532,6 +553,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Page Number',
|
||||
type: 'short-input',
|
||||
placeholder: '1',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -551,6 +573,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
title: 'Search Filter',
|
||||
type: 'short-input',
|
||||
placeholder: 'Search term to filter results',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -576,6 +599,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
{ label: 'Modified', id: 'modified' },
|
||||
],
|
||||
value: () => 'date',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -595,6 +619,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
{ label: 'Ascending', id: 'asc' },
|
||||
],
|
||||
value: () => 'desc',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
@@ -622,6 +647,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
{ label: 'Private', id: 'private' },
|
||||
],
|
||||
value: () => '',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['wordpress_list_posts', 'wordpress_list_pages'],
|
||||
@@ -633,6 +659,7 @@ export const WordPressBlock: BlockConfig<WordPressResponse> = {
|
||||
id: 'force',
|
||||
title: 'Force Delete',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: [
|
||||
|
||||
@@ -146,6 +146,7 @@ Return ONLY the description text - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['get_tickets', 'create_ticket', 'update_ticket'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'priority',
|
||||
@@ -156,6 +157,7 @@ Return ONLY the description text - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['get_tickets', 'create_ticket', 'update_ticket'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'type',
|
||||
@@ -166,6 +168,7 @@ Return ONLY the description text - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['get_tickets', 'create_ticket', 'update_ticket'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'tags',
|
||||
@@ -176,6 +179,7 @@ Return ONLY the description text - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['create_ticket', 'update_ticket'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'assigneeId',
|
||||
@@ -186,6 +190,7 @@ Return ONLY the description text - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['get_tickets', 'create_ticket', 'update_ticket'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'groupId',
|
||||
@@ -196,6 +201,7 @@ Return ONLY the description text - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['create_ticket', 'update_ticket'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'customFields',
|
||||
@@ -222,6 +228,7 @@ Return ONLY the JSON array - no explanations.`,
|
||||
placeholder: 'Describe the custom field values to set...',
|
||||
generationType: 'json-object',
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'tickets',
|
||||
@@ -310,6 +317,7 @@ Return ONLY the JSON array - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['create_user', 'update_user'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'users',
|
||||
@@ -475,6 +483,7 @@ Return ONLY the search query - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['get_tickets'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
// Pagination fields
|
||||
{
|
||||
@@ -493,6 +502,7 @@ Return ONLY the search query - no explanations.`,
|
||||
'search',
|
||||
],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'pageAfter',
|
||||
@@ -504,6 +514,7 @@ Return ONLY the search query - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['get_tickets', 'get_users', 'get_organizations', 'search'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
{
|
||||
id: 'page',
|
||||
@@ -515,6 +526,7 @@ Return ONLY the search query - no explanations.`,
|
||||
field: 'operation',
|
||||
value: ['search_users', 'autocomplete_organizations'],
|
||||
},
|
||||
mode: 'advanced',
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
|
||||
@@ -114,6 +114,7 @@ export const ZoomBlock: BlockConfig<ZoomResponse> = {
|
||||
title: 'Topic',
|
||||
type: 'short-input',
|
||||
placeholder: 'Meeting topic (optional)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_update_meeting'],
|
||||
@@ -180,6 +181,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
title: 'Timezone',
|
||||
type: 'short-input',
|
||||
placeholder: 'America/Los_Angeles',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -191,6 +193,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
title: 'Password',
|
||||
type: 'short-input',
|
||||
placeholder: 'Meeting password',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -202,6 +205,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
title: 'Agenda',
|
||||
type: 'long-input',
|
||||
placeholder: 'Meeting agenda',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -212,6 +216,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
id: 'hostVideo',
|
||||
title: 'Host Video',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -221,6 +226,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
id: 'participantVideo',
|
||||
title: 'Participant Video',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -230,6 +236,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
id: 'joinBeforeHost',
|
||||
title: 'Join Before Host',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -239,6 +246,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
id: 'muteUponEntry',
|
||||
title: 'Mute Upon Entry',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -248,6 +256,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
id: 'waitingRoom',
|
||||
title: 'Waiting Room',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -263,6 +272,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
{ label: 'Cloud', id: 'cloud' },
|
||||
],
|
||||
value: () => 'none',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_create_meeting', 'zoom_update_meeting'],
|
||||
@@ -281,6 +291,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
{ label: 'Previous Meetings', id: 'previous_meetings' },
|
||||
],
|
||||
value: () => 'scheduled',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_list_meetings'],
|
||||
@@ -292,6 +303,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
title: 'Page Size',
|
||||
type: 'short-input',
|
||||
placeholder: 'Number of results (max 300)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_list_meetings', 'zoom_list_recordings', 'zoom_list_past_participants'],
|
||||
@@ -302,6 +314,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
title: 'Page Token',
|
||||
type: 'short-input',
|
||||
placeholder: 'Token for next page',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_list_meetings', 'zoom_list_recordings', 'zoom_list_past_participants'],
|
||||
@@ -313,6 +326,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
title: 'From Date',
|
||||
type: 'short-input',
|
||||
placeholder: 'yyyy-mm-dd (within last 6 months)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_list_recordings'],
|
||||
@@ -338,6 +352,7 @@ Return ONLY the date string - no explanations, no quotes, no extra text.`,
|
||||
title: 'To Date',
|
||||
type: 'short-input',
|
||||
placeholder: 'yyyy-mm-dd',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_list_recordings'],
|
||||
@@ -364,6 +379,7 @@ Return ONLY the date string - no explanations, no quotes, no extra text.`,
|
||||
title: 'Recording ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'Specific recording file ID (optional)',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_delete_recording'],
|
||||
@@ -379,6 +395,7 @@ Return ONLY the date string - no explanations, no quotes, no extra text.`,
|
||||
{ label: 'Permanently Delete', id: 'delete' },
|
||||
],
|
||||
value: () => 'trash',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_delete_recording'],
|
||||
@@ -390,6 +407,7 @@ Return ONLY the date string - no explanations, no quotes, no extra text.`,
|
||||
title: 'Occurrence ID',
|
||||
type: 'short-input',
|
||||
placeholder: 'For recurring meetings',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_get_meeting', 'zoom_delete_meeting'],
|
||||
@@ -399,6 +417,7 @@ Return ONLY the date string - no explanations, no quotes, no extra text.`,
|
||||
id: 'cancelMeetingReminder',
|
||||
title: 'Send Cancellation Email',
|
||||
type: 'switch',
|
||||
mode: 'advanced',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: ['zoom_delete_meeting'],
|
||||
|
||||
@@ -3996,7 +3996,7 @@ export function LumaIcon(props: SVGProps<SVGSVGElement>) {
|
||||
<svg {...props} fill='none' viewBox='0 0 133 134' xmlns='http://www.w3.org/2000/svg'>
|
||||
<path
|
||||
d='M133 67C96.282 67 66.5 36.994 66.5 0c0 36.994-29.782 67-66.5 67 36.718 0 66.5 30.006 66.5 67 0-36.994 29.782-67 66.5-67'
|
||||
fill='currentColor'
|
||||
fill='#000000'
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user