@mindstudio-ai/agent 0.1.62 → 0.1.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1745,12 +1745,13 @@ declare class MindStudioAgent$1 {
1745
1745
  /**
1746
1746
  * Upload a file to the MindStudio CDN.
1747
1747
  *
1748
- * Gets a signed upload URL, PUTs the file content, and returns the
1749
- * permanent public URL.
1748
+ * Gets a presigned upload request from the API, POSTs the file as
1749
+ * multipart/form-data, and returns the permanent public URL.
1750
1750
  */
1751
1751
  uploadFile(content: Buffer | Uint8Array, options: {
1752
1752
  extension: string;
1753
1753
  type?: string;
1754
+ filename?: string;
1754
1755
  }): Promise<UploadFileResult>;
1755
1756
  }
1756
1757
 
@@ -4232,6 +4233,8 @@ interface RedactPIIStepOutput {
4232
4233
  text: string;
4233
4234
  }
4234
4235
  interface RemoveBackgroundFromImageStepInput {
4236
+ /** One of: `standard`, `advanced`. */
4237
+ type?: "standard" | "advanced";
4235
4238
  /** URL of the source image to remove the background from */
4236
4239
  imageUrl: string;
4237
4240
  }
@@ -5339,12 +5342,108 @@ interface WatermarkVideoStepOutput {
5339
5342
  /** URL of the watermarked video */
5340
5343
  videoUrl: string;
5341
5344
  }
5345
+ interface YouDotComFinanceResearchStepInput {
5346
+ /** Financial research question */
5347
+ input: string;
5348
+ /** Depth of finance research to perform */
5349
+ researchEffort?: "deep" | "exhaustive";
5350
+ }
5351
+ interface YouDotComFinanceResearchStepOutput {
5352
+ /** Full response returned by the You.com API */
5353
+ data: Record<string, unknown> | unknown[];
5354
+ }
5355
+ interface YouDotComGetPageContentStepInput {
5356
+ /** URLs to fetch, max 10 */
5357
+ urls: string[];
5358
+ /** Content formats to return; defaults to markdown */
5359
+ formats?: ("markdown" | "html" | "metadata")[];
5360
+ /** Per-URL crawl timeout in seconds */
5361
+ crawlTimeout?: number;
5362
+ }
5363
+ interface YouDotComGetPageContentStepOutput {
5364
+ /** Full response returned by the You.com API */
5365
+ data: Record<string, unknown> | unknown[];
5366
+ }
5367
+ interface YouDotComLiveNewsStepInput {
5368
+ /** News query */
5369
+ query: string;
5370
+ /** Recency filter; defaults to day */
5371
+ freshness?: string;
5372
+ /** Max results per section, up to 100 */
5373
+ count?: number;
5374
+ /** ISO 3166-1 alpha-2 country code */
5375
+ country?: string;
5376
+ /** BCP 47 language code */
5377
+ language?: string;
5378
+ /** Content moderation level */
5379
+ safesearch?: "off" | "moderate" | "strict";
5380
+ /** Fetch full content for news or all results */
5381
+ livecrawl?: "news" | "all";
5382
+ /** Full-content formats to return when livecrawl is enabled */
5383
+ livecrawlFormats?: ("markdown" | "html")[];
5384
+ }
5385
+ interface YouDotComLiveNewsStepOutput {
5386
+ /** Full response returned by the You.com API */
5387
+ data: Record<string, unknown> | unknown[];
5388
+ }
5389
+ interface YouDotComWebResearchStepInput {
5390
+ /** Research question */
5391
+ input: string;
5392
+ /** Depth of research to perform */
5393
+ researchEffort?: "lite" | "standard" | "deep" | "exhaustive";
5394
+ /** Source constraints for the research agent */
5395
+ sourceControl?: {
5396
+ includeDomains?: string[];
5397
+ excludeDomains?: string[];
5398
+ boostDomains?: string[];
5399
+ freshness?: string;
5400
+ country?: string;
5401
+ } | string;
5402
+ /** JSON schema for structured output */
5403
+ outputSchema?: Record<string, unknown> | string;
5404
+ }
5405
+ interface YouDotComWebResearchStepOutput {
5406
+ /** Full response returned by the You.com API */
5407
+ data: Record<string, unknown> | unknown[];
5408
+ }
5409
+ interface YouDotComWebSearchStepInput {
5410
+ /** Search query; supports You.com search operators */
5411
+ query: string;
5412
+ /** Max results per section, up to 100 */
5413
+ count?: number;
5414
+ /** Recency filter: day, week, month, year, or YYYY-MM-DDtoYYYY-MM-DD */
5415
+ freshness?: string;
5416
+ /** ISO 3166-1 alpha-2 country code */
5417
+ country?: string;
5418
+ /** BCP 47 language code */
5419
+ language?: string;
5420
+ /** Pagination offset, 0-9 */
5421
+ offset?: number;
5422
+ /** Content moderation level */
5423
+ safesearch?: "off" | "moderate" | "strict";
5424
+ /** Fetch full content for web, news, or all results */
5425
+ livecrawl?: "web" | "news" | "all";
5426
+ /** Full-content formats to return when livecrawl is enabled */
5427
+ livecrawlFormats?: ("markdown" | "html")[];
5428
+ /** Maximum livecrawl timeout in seconds */
5429
+ crawlTimeout?: number;
5430
+ /** Restrict results to these domains */
5431
+ includeDomains?: string[];
5432
+ /** Exclude these domains */
5433
+ excludeDomains?: string[];
5434
+ /** Boost these domains without excluding other domains */
5435
+ boostDomains?: string[];
5436
+ }
5437
+ interface YouDotComWebSearchStepOutput {
5438
+ /** Full response returned by the You.com API */
5439
+ data: Record<string, unknown> | unknown[];
5440
+ }
5342
5441
  type GenerateAssetStepInput = GeneratePdfStepInput;
5343
5442
  type GenerateAssetStepOutput = GeneratePdfStepOutput;
5344
5443
  type GenerateTextStepInput = UserMessageStepInput;
5345
5444
  type GenerateTextStepOutput = UserMessageStepOutput;
5346
5445
  /** Union of all available step type names. */
5347
- type StepName = "activeCampaignAddNote" | "activeCampaignCreateContact" | "addSubtitlesToVideo" | "airtableCreateUpdateRecord" | "airtableDeleteRecord" | "airtableGetRecord" | "airtableGetTableRecords" | "analyzeImage" | "analyzeVideo" | "captureThumbnail" | "checkAppRole" | "codaCreateUpdatePage" | "codaCreateUpdateRow" | "codaFindRow" | "codaGetPage" | "codaGetTableRows" | "convertPdfToImages" | "createDataSource" | "createGmailDraft" | "createGoogleCalendarEvent" | "createGoogleDoc" | "createGoogleSheet" | "deleteDataSource" | "deleteDataSourceDocument" | "deleteGmailEmail" | "deleteGoogleCalendarEvent" | "deleteGoogleSheetRows" | "detectChanges" | "detectPII" | "discordEditMessage" | "discordSendFollowUp" | "discordSendMessage" | "downloadVideo" | "enhanceImageGenerationPrompt" | "enhanceVideoGenerationPrompt" | "enrichPerson" | "extractAudioFromVideo" | "extractText" | "fetchDataSourceDocument" | "fetchGoogleDoc" | "fetchGoogleSheet" | "fetchSlackChannelHistory" | "fetchYoutubeCaptions" | "fetchYoutubeChannel" | "fetchYoutubeComments" | "fetchYoutubeVideo" | "generate3dModel" | "generateChart" | "generateImage" | "generateLipsync" | "generateMusic" | "generatePdf" | "generateStaticVideoFromImage" | "generateVideo" | "getGmailAttachments" | "getGmailDraft" | "getGmailEmail" | "getGmailUnreadCount" | "getGoogleCalendarEvent" | "getGoogleDriveFile" | "getGoogleSheetInfo" | "getMediaMetadata" | "hubspotCreateCompany" | "hubspotCreateContact" | "hubspotGetCompany" | "hubspotGetContact" | "hunterApiCompanyEnrichment" | "hunterApiDomainSearch" | "hunterApiEmailFinder" | "hunterApiEmailVerification" | "hunterApiPersonEnrichment" | "imageFaceSwap" | "imageRemoveWatermark" | "insertVideoClips" | "listDataSources" | "listGmailDrafts" | "listGmailLabels" | "listGoogleCalendarEvents" | "listGoogleDriveFiles" | "listRecentGmailEmails" | "logic" | "makeDotComRunScenario" | "mergeAudio" | "mergeVideos" | "meshyAnimate" | "meshyImageTo3d" | "meshyRemesh" | "meshyRig" | "meshyTextTo3d" | "meshyTexture" | "mixAudioIntoVideo" | "muteVideo" | "n8nRunNode" | "notionCreatePage" | "notionUpdatePage" | "peopleSearch" | "postToLinkedIn" | "postToSlackChannel" | "postToX" | "postToZapier" | "queryAppDatabase" | "queryDataSource" | "queryExternalDatabase" | "redactPII" | "removeBackgroundFromImage" | "replyToGmailEmail" | "resizeVideo" | "runFromConnectorRegistry" | "runPackagedWorkflow" | "scrapeFacebookPage" | "scrapeFacebookPosts" | "scrapeInstagramComments" | "scrapeInstagramMentions" | "scrapeInstagramPosts" | "scrapeInstagramProfile" | "scrapeInstagramReels" | "scrapeLinkedInCompany" | "scrapeLinkedInProfile" | "scrapeMetaThreadsProfile" | "scrapeUrl" | "scrapeXPost" | "scrapeXProfile" | "screenshotUrl" | "searchGmailEmails" | "searchGoogle" | "searchGoogleCalendarEvents" | "searchGoogleDrive" | "searchGoogleImages" | "searchGoogleNews" | "searchGoogleTrends" | "searchPerplexity" | "searchXPosts" | "searchYoutube" | "searchYoutubeTrends" | "sendEmail" | "sendGmailDraft" | "sendGmailMessage" | "sendSlackDirectMessage" | "sendSMS" | "setGmailReadStatus" | "setRunTitle" | "setVariable" | "telegramEditMessage" | "telegramReplyToMessage" | "telegramSendAudio" | "telegramSendFile" | "telegramSendImage" | "telegramSendMessage" | "telegramSendVideo" | "telegramSetTyping" | "textToSpeech" | "transcribeAudio" | "trimMedia" | "updateGmailLabels" | "updateGoogleCalendarEvent" | "updateGoogleDoc" | "updateGoogleSheet" | "uploadDataSourceDocument" | "upscaleImage" | "upscaleVideo" | "userMessage" | "videoFaceSwap" | "videoRemoveBackground" | "videoRemoveWatermark" | "watermarkImage" | "watermarkVideo";
5446
+ type StepName = "activeCampaignAddNote" | "activeCampaignCreateContact" | "addSubtitlesToVideo" | "airtableCreateUpdateRecord" | "airtableDeleteRecord" | "airtableGetRecord" | "airtableGetTableRecords" | "analyzeImage" | "analyzeVideo" | "captureThumbnail" | "checkAppRole" | "codaCreateUpdatePage" | "codaCreateUpdateRow" | "codaFindRow" | "codaGetPage" | "codaGetTableRows" | "convertPdfToImages" | "createDataSource" | "createGmailDraft" | "createGoogleCalendarEvent" | "createGoogleDoc" | "createGoogleSheet" | "deleteDataSource" | "deleteDataSourceDocument" | "deleteGmailEmail" | "deleteGoogleCalendarEvent" | "deleteGoogleSheetRows" | "detectChanges" | "detectPII" | "discordEditMessage" | "discordSendFollowUp" | "discordSendMessage" | "downloadVideo" | "enhanceImageGenerationPrompt" | "enhanceVideoGenerationPrompt" | "enrichPerson" | "extractAudioFromVideo" | "extractText" | "fetchDataSourceDocument" | "fetchGoogleDoc" | "fetchGoogleSheet" | "fetchSlackChannelHistory" | "fetchYoutubeCaptions" | "fetchYoutubeChannel" | "fetchYoutubeComments" | "fetchYoutubeVideo" | "generate3dModel" | "generateChart" | "generateImage" | "generateLipsync" | "generateMusic" | "generatePdf" | "generateStaticVideoFromImage" | "generateVideo" | "getGmailAttachments" | "getGmailDraft" | "getGmailEmail" | "getGmailUnreadCount" | "getGoogleCalendarEvent" | "getGoogleDriveFile" | "getGoogleSheetInfo" | "getMediaMetadata" | "hubspotCreateCompany" | "hubspotCreateContact" | "hubspotGetCompany" | "hubspotGetContact" | "hunterApiCompanyEnrichment" | "hunterApiDomainSearch" | "hunterApiEmailFinder" | "hunterApiEmailVerification" | "hunterApiPersonEnrichment" | "imageFaceSwap" | "imageRemoveWatermark" | "insertVideoClips" | "listDataSources" | "listGmailDrafts" | "listGmailLabels" | "listGoogleCalendarEvents" | "listGoogleDriveFiles" | "listRecentGmailEmails" | "logic" | "makeDotComRunScenario" | "mergeAudio" | "mergeVideos" | "meshyAnimate" | "meshyImageTo3d" | "meshyRemesh" | "meshyRig" | "meshyTextTo3d" | "meshyTexture" | "mixAudioIntoVideo" | "muteVideo" | "n8nRunNode" | "notionCreatePage" | "notionUpdatePage" | "peopleSearch" | "postToLinkedIn" | "postToSlackChannel" | "postToX" | "postToZapier" | "queryAppDatabase" | "queryDataSource" | "queryExternalDatabase" | "redactPII" | "removeBackgroundFromImage" | "replyToGmailEmail" | "resizeVideo" | "runFromConnectorRegistry" | "runPackagedWorkflow" | "scrapeFacebookPage" | "scrapeFacebookPosts" | "scrapeInstagramComments" | "scrapeInstagramMentions" | "scrapeInstagramPosts" | "scrapeInstagramProfile" | "scrapeInstagramReels" | "scrapeLinkedInCompany" | "scrapeLinkedInProfile" | "scrapeMetaThreadsProfile" | "scrapeUrl" | "scrapeXPost" | "scrapeXProfile" | "screenshotUrl" | "searchGmailEmails" | "searchGoogle" | "searchGoogleCalendarEvents" | "searchGoogleDrive" | "searchGoogleImages" | "searchGoogleNews" | "searchGoogleTrends" | "searchPerplexity" | "searchXPosts" | "searchYoutube" | "searchYoutubeTrends" | "sendEmail" | "sendGmailDraft" | "sendGmailMessage" | "sendSlackDirectMessage" | "sendSMS" | "setGmailReadStatus" | "setRunTitle" | "setVariable" | "telegramEditMessage" | "telegramReplyToMessage" | "telegramSendAudio" | "telegramSendFile" | "telegramSendImage" | "telegramSendMessage" | "telegramSendVideo" | "telegramSetTyping" | "textToSpeech" | "transcribeAudio" | "trimMedia" | "updateGmailLabels" | "updateGoogleCalendarEvent" | "updateGoogleDoc" | "updateGoogleSheet" | "uploadDataSourceDocument" | "upscaleImage" | "upscaleVideo" | "userMessage" | "videoFaceSwap" | "videoRemoveBackground" | "videoRemoveWatermark" | "watermarkImage" | "watermarkVideo" | "youDotComFinanceResearch" | "youDotComGetPageContent" | "youDotComLiveNews" | "youDotComWebResearch" | "youDotComWebSearch";
5348
5447
  /** Maps step names to their input types. */
5349
5448
  interface StepInputMap {
5350
5449
  activeCampaignAddNote: ActiveCampaignAddNoteStepInput;
@@ -5513,6 +5612,11 @@ interface StepInputMap {
5513
5612
  videoRemoveWatermark: VideoRemoveWatermarkStepInput;
5514
5613
  watermarkImage: WatermarkImageStepInput;
5515
5614
  watermarkVideo: WatermarkVideoStepInput;
5615
+ youDotComFinanceResearch: YouDotComFinanceResearchStepInput;
5616
+ youDotComGetPageContent: YouDotComGetPageContentStepInput;
5617
+ youDotComLiveNews: YouDotComLiveNewsStepInput;
5618
+ youDotComWebResearch: YouDotComWebResearchStepInput;
5619
+ youDotComWebSearch: YouDotComWebSearchStepInput;
5516
5620
  }
5517
5621
  /** Maps step names to their output types. */
5518
5622
  interface StepOutputMap {
@@ -5682,6 +5786,11 @@ interface StepOutputMap {
5682
5786
  videoRemoveWatermark: VideoRemoveWatermarkStepOutput;
5683
5787
  watermarkImage: WatermarkImageStepOutput;
5684
5788
  watermarkVideo: WatermarkVideoStepOutput;
5789
+ youDotComFinanceResearch: YouDotComFinanceResearchStepOutput;
5790
+ youDotComGetPageContent: YouDotComGetPageContentStepOutput;
5791
+ youDotComLiveNews: YouDotComLiveNewsStepOutput;
5792
+ youDotComWebResearch: YouDotComWebResearchStepOutput;
5793
+ youDotComWebSearch: YouDotComWebSearchStepOutput;
5685
5794
  }
5686
5795
 
5687
5796
  interface StepMethods {
@@ -7419,7 +7528,8 @@ interface StepMethods {
7419
7528
  * Remove the background from an image using AI, producing a transparent PNG.
7420
7529
  *
7421
7530
  * @remarks
7422
- * - Uses the Bria background removal model via fal.ai.
7531
+ * - Uses the Bria background removal model via fal.ai by default.
7532
+ * - Uses WaveSpeed's Ideogram background removal model when type is "advanced".
7423
7533
  * - Output is re-hosted on the CDN as a PNG with transparency.
7424
7534
  *
7425
7535
  * @example
@@ -8420,6 +8530,104 @@ interface StepMethods {
8420
8530
  * ```
8421
8531
  */
8422
8532
  watermarkVideo(step: WatermarkVideoStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<WatermarkVideoStepOutput>>;
8533
+ /**
8534
+ * Ask a financial research question using You.com Finance Research and return the sourced response.
8535
+ *
8536
+ * @remarks
8537
+ * - Use this for financial questions such as company analysis, earnings, market research, filings, macroeconomics, and due diligence.
8538
+ * - researchEffort supports deep (default) or exhaustive.
8539
+ * - Finance Research returns the same response shape as Web Research, but searches a finance-optimized index.
8540
+ * - Use it for cited synthesis, not raw price feeds or structured time-series exports.
8541
+ *
8542
+ * @example
8543
+ * ```typescript
8544
+ * const result = await agent.youDotComFinanceResearch({
8545
+ * input: ``,
8546
+ * });
8547
+ * ```
8548
+ */
8549
+ youDotComFinanceResearch(step: YouDotComFinanceResearchStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<YouDotComFinanceResearchStepOutput>>;
8550
+ /**
8551
+ * Fetch clean Markdown, HTML, or metadata for known URLs using the You.com Contents API.
8552
+ *
8553
+ * @remarks
8554
+ * - Use this step when you already know the URLs. Use Web Search with livecrawl when You.com should discover pages from a query.
8555
+ * - A single request supports up to 10 URLs.
8556
+ * - Request only the formats you need. Markdown is recommended for LLM consumption.
8557
+ * - Increase crawlTimeout for JavaScript-heavy pages, up to 60 seconds.
8558
+ * - Individual pages can partially fail; check each returned item before processing.
8559
+ *
8560
+ * @example
8561
+ * ```typescript
8562
+ * const result = await agent.youDotComGetPageContent({
8563
+ * urls: [],
8564
+ * });
8565
+ * ```
8566
+ */
8567
+ youDotComGetPageContent(step: YouDotComGetPageContentStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<YouDotComGetPageContentStepOutput>>;
8568
+ /**
8569
+ * Fetch live news articles through the You.com Search API and return the full structured response.
8570
+ *
8571
+ * @remarks
8572
+ * - Defaults freshness to day for breaking or recent news.
8573
+ * - Use country and language together to monitor regional or non-English news.
8574
+ * - Use livecrawl: 'news' with livecrawlFormats: ['markdown'] when you need full article text.
8575
+ * - Use a custom freshness range like YYYY-MM-DDtoYYYY-MM-DD for historical news windows.
8576
+ *
8577
+ * @example
8578
+ * ```typescript
8579
+ * const result = await agent.youDotComLiveNews({
8580
+ * query: ``,
8581
+ * });
8582
+ * ```
8583
+ */
8584
+ youDotComLiveNews(step: YouDotComLiveNewsStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<YouDotComLiveNewsStepOutput>>;
8585
+ /**
8586
+ * Ask a research question and return a grounded You.com Research API answer with sources.
8587
+ *
8588
+ * @remarks
8589
+ * - Use Web Search when you need raw URLs and snippets. Use Web Research when you want a synthesized answer with citations.
8590
+ * - researchEffort controls depth and latency: lite, standard, deep, or exhaustive. standard is a good default.
8591
+ * - sourceControl can restrict, exclude, or boost domains, and can apply freshness or country filters.
8592
+ * - includeDomains cannot be combined with excludeDomains or boostDomains.
8593
+ * - outputSchema returns structured output.content and is supported by standard, deep, and exhaustive, not lite.
8594
+ *
8595
+ * @example
8596
+ * ```typescript
8597
+ * const result = await agent.youDotComWebResearch({
8598
+ * input: ``,
8599
+ * });
8600
+ * ```
8601
+ */
8602
+ youDotComWebResearch(step: YouDotComWebResearchStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<YouDotComWebResearchStepOutput>>;
8603
+ /**
8604
+ * Search the web and news using the You.com Search API and return the full structured response.
8605
+ *
8606
+ * @remarks
8607
+ * - Query supports You.com search operators:
8608
+ * | Operator | Description | Example |
8609
+ * | -------- | ----------- | ------- |
8610
+ * | site: | Search within a domain and its subdomains | site:uscourts.gov |
8611
+ * | filetype: | Search for a specific file type | filetype:pdf |
8612
+ * | + | Require the exact term after the operator | +GAAP |
8613
+ * | - | Exclude the exact term after the operator | -prs |
8614
+ * | AND | Require both expressions | guitar AND Fender |
8615
+ * | OR | Match either expression | guitar OR drum |
8616
+ * | NOT | Negate an expression | NOT site:uscourts.gov |
8617
+ * - Use livecrawl with livecrawlFormats: ['markdown'] when you need full page content instead of snippets.
8618
+ * - Use the Get Page Content step when you already know the URLs to fetch.
8619
+ * - Use freshness for recency: day, week, month, year, or YYYY-MM-DDtoYYYY-MM-DD.
8620
+ * - Use country (ISO 3166-1 alpha-2) and language (BCP 47) to focus results geographically or linguistically.
8621
+ * - includeDomains cannot be combined with excludeDomains or boostDomains.
8622
+ *
8623
+ * @example
8624
+ * ```typescript
8625
+ * const result = await agent.youDotComWebSearch({
8626
+ * query: ``,
8627
+ * });
8628
+ * ```
8629
+ */
8630
+ youDotComWebSearch(step: YouDotComWebSearchStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<YouDotComWebSearchStepOutput>>;
8423
8631
  }
8424
8632
 
8425
8633
  /**
@@ -8597,4 +8805,4 @@ declare const stream: (data: string | Record<string, unknown>) => Promise<void>;
8597
8805
  */
8598
8806
  declare const resolveUser: (userId: string) => Promise<ResolvedUser | null>;
8599
8807
 
8600
- export { type Accessor, type ActiveCampaignAddNoteStepInput, type ActiveCampaignAddNoteStepOutput, type ActiveCampaignCreateContactStepInput, type ActiveCampaignCreateContactStepOutput, type AddSubtitlesToVideoStepInput, type AddSubtitlesToVideoStepOutput, type AgentInfo, type AgentOptions, type AirtableCreateUpdateRecordStepInput, type AirtableCreateUpdateRecordStepOutput, type AirtableDeleteRecordStepInput, type AirtableDeleteRecordStepOutput, type AirtableGetRecordStepInput, type AirtableGetRecordStepOutput, type AirtableGetTableRecordsStepInput, type AirtableGetTableRecordsStepOutput, type AnalyzeImageStepInput, type AnalyzeImageStepOutput, type AnalyzeVideoStepInput, type AnalyzeVideoStepOutput, type AppAuthContext, type AppContextResult, type AppDatabase, type AppDatabaseColumnSchema, type AppDatabaseTable, type AppRoleAssignment, AuthContext, type AuthTableConfig, type BatchStepInput, type BatchStepResult, type CaptureThumbnailStepInput, type CaptureThumbnailStepOutput, type CheckAppRoleStepInput, type CheckAppRoleStepOutput, type CodaCreateUpdatePageStepInput, type CodaCreateUpdatePageStepOutput, type CodaCreateUpdateRowStepInput, type CodaCreateUpdateRowStepOutput, type CodaFindRowStepInput, type CodaFindRowStepOutput, type CodaGetPageStepInput, type CodaGetPageStepOutput, type CodaGetTableRowsStepInput, type CodaGetTableRowsStepOutput, type Connection, type ConnectorActionDetail, type ConnectorService, type ConvertPdfToImagesStepInput, type ConvertPdfToImagesStepOutput, type CreateDataSourceStepInput, type CreateDataSourceStepOutput, type CreateGmailDraftStepInput, type CreateGmailDraftStepOutput, type CreateGoogleCalendarEventStepInput, type CreateGoogleCalendarEventStepOutput, type CreateGoogleDocStepInput, type CreateGoogleDocStepOutput, type CreateGoogleSheetStepInput, type CreateGoogleSheetStepOutput, type Db, type DefineTableOptions, type DeleteDataSourceDocumentStepInput, type DeleteDataSourceDocumentStepOutput, type DeleteDataSourceStepInput, type DeleteDataSourceStepOutput, type DeleteGmailEmailStepInput, type DeleteGmailEmailStepOutput, type DeleteGoogleCalendarEventStepInput, type DeleteGoogleCalendarEventStepOutput, type DeleteGoogleSheetRowsStepInput, type DeleteGoogleSheetRowsStepOutput, type DetectChangesStepInput, type DetectChangesStepOutput, type DetectPIIStepInput, type DetectPIIStepOutput, type DiscordEditMessageStepInput, type DiscordEditMessageStepOutput, type DiscordSendFollowUpStepInput, type DiscordSendFollowUpStepOutput, type DiscordSendMessageStepInput, type DiscordSendMessageStepOutput, type DownloadVideoStepInput, type DownloadVideoStepOutput, type EnhanceImageGenerationPromptStepInput, type EnhanceImageGenerationPromptStepOutput, type EnhanceVideoGenerationPromptStepInput, type EnhanceVideoGenerationPromptStepOutput, type EnrichPersonStepInput, type EnrichPersonStepOutput, type ExecuteStepBatchOptions, type ExecuteStepBatchResult, type ExtractAudioFromVideoStepInput, type ExtractAudioFromVideoStepOutput, type ExtractTextStepInput, type ExtractTextStepOutput, type FetchDataSourceDocumentStepInput, type FetchDataSourceDocumentStepOutput, type FetchGoogleDocStepInput, type FetchGoogleDocStepOutput, type FetchGoogleSheetStepInput, type FetchGoogleSheetStepOutput, type FetchSlackChannelHistoryStepInput, type FetchSlackChannelHistoryStepOutput, type FetchYoutubeCaptionsStepInput, type FetchYoutubeCaptionsStepOutput, type FetchYoutubeChannelStepInput, type FetchYoutubeChannelStepOutput, type FetchYoutubeCommentsStepInput, type FetchYoutubeCommentsStepOutput, type FetchYoutubeVideoStepInput, type FetchYoutubeVideoStepOutput, type Generate3dModelStepInput, type Generate3dModelStepOutput, type GenerateAssetStepInput, type GenerateAssetStepOutput, type GenerateChartStepInput, type GenerateChartStepOutput, type GenerateImageStepInput, type GenerateImageStepOutput, type GenerateLipsyncStepInput, type GenerateLipsyncStepOutput, type GenerateMusicStepInput, type GenerateMusicStepOutput, type GeneratePdfStepInput, type GeneratePdfStepOutput, type GenerateStaticVideoFromImageStepInput, type GenerateStaticVideoFromImageStepOutput, type GenerateTextStepInput, type GenerateTextStepOutput, type GenerateVideoStepInput, type GenerateVideoStepOutput, type GetGmailAttachmentsStepInput, type GetGmailAttachmentsStepOutput, type GetGmailDraftStepInput, type GetGmailDraftStepOutput, type GetGmailEmailStepInput, type GetGmailEmailStepOutput, type GetGmailUnreadCountStepInput, type GetGmailUnreadCountStepOutput, type GetGoogleCalendarEventStepInput, type GetGoogleCalendarEventStepOutput, type GetGoogleDriveFileStepInput, type GetGoogleDriveFileStepOutput, type GetGoogleSheetInfoStepInput, type GetGoogleSheetInfoStepOutput, type GetMediaMetadataStepInput, type GetMediaMetadataStepOutput, type HubspotCreateCompanyStepInput, type HubspotCreateCompanyStepOutput, type HubspotCreateContactStepInput, type HubspotCreateContactStepOutput, type HubspotGetCompanyStepInput, type HubspotGetCompanyStepOutput, type HubspotGetContactStepInput, type HubspotGetContactStepOutput, type HunterApiCompanyEnrichmentStepInput, type HunterApiCompanyEnrichmentStepOutput, type HunterApiDomainSearchStepInput, type HunterApiDomainSearchStepOutput, type HunterApiEmailFinderStepInput, type HunterApiEmailFinderStepOutput, type HunterApiEmailVerificationStepInput, type HunterApiEmailVerificationStepOutput, type HunterApiPersonEnrichmentStepInput, type HunterApiPersonEnrichmentStepOutput, type ImageFaceSwapStepInput, type ImageFaceSwapStepOutput, type ImageRemoveWatermarkStepInput, type ImageRemoveWatermarkStepOutput, type InsertVideoClipsStepInput, type InsertVideoClipsStepOutput, type ListAgentsResult, type ListDataSourcesStepInput, type ListDataSourcesStepOutput, type ListGmailDraftsStepInput, type ListGmailDraftsStepOutput, type ListGmailLabelsStepInput, type ListGmailLabelsStepOutput, type ListGoogleCalendarEventsStepInput, type ListGoogleCalendarEventsStepOutput, type ListGoogleDriveFilesStepInput, type ListGoogleDriveFilesStepOutput, type ListRecentGmailEmailsStepInput, type ListRecentGmailEmailsStepOutput, type LogicStepInput, type LogicStepOutput, type MakeDotComRunScenarioStepInput, type MakeDotComRunScenarioStepOutput, type MergeAudioStepInput, type MergeAudioStepOutput, type MergeVideosStepInput, type MergeVideosStepOutput, type MeshyAnimateStepInput, type MeshyAnimateStepOutput, type MeshyImageTo3dStepInput, type MeshyImageTo3dStepOutput, type MeshyRemeshStepInput, type MeshyRemeshStepOutput, type MeshyRigStepInput, type MeshyRigStepOutput, type MeshyTextTo3dStepInput, type MeshyTextTo3dStepOutput, type MeshyTextureStepInput, type MeshyTextureStepOutput, MindStudioAgent, MindStudioError, type MindStudioModel, type MindStudioModelSummary, type MixAudioIntoVideoStepInput, type MixAudioIntoVideoStepOutput, type ModelType, type MonacoSnippet, type MonacoSnippetField, type MonacoSnippetFieldType, type MuteVideoStepInput, type MuteVideoStepOutput, type N8nRunNodeStepInput, type N8nRunNodeStepOutput, type NotionCreatePageStepInput, type NotionCreatePageStepOutput, type NotionUpdatePageStepInput, type NotionUpdatePageStepOutput, type PackagedWorkflow, type PackagedWorkflowInput, type PackagedWorkflowSignature, type PeopleSearchStepInput, type PeopleSearchStepOutput, type PostToLinkedInStepInput, type PostToLinkedInStepOutput, type PostToSlackChannelStepInput, type PostToSlackChannelStepOutput, type PostToXStepInput, type PostToXStepOutput, type PostToZapierStepInput, type PostToZapierStepOutput, type Predicate, type PushInput, Query, type QueryAppDatabaseStepInput, type QueryAppDatabaseStepOutput, type QueryDataSourceStepInput, type QueryDataSourceStepOutput, type QueryExternalDatabaseStepInput, type QueryExternalDatabaseStepOutput, type RedactPIIStepInput, type RedactPIIStepOutput, type RemoveBackgroundFromImageStepInput, type RemoveBackgroundFromImageStepOutput, type ReplyToGmailEmailStepInput, type ReplyToGmailEmailStepOutput, type RequestContext, type ResizeVideoStepInput, type ResizeVideoStepOutput, type ResolvedUser, Roles, type RunAgentOptions, type RunAgentResult, type RunFromConnectorRegistryStepInput, type RunFromConnectorRegistryStepOutput, type RunPackagedWorkflowStepInput, type RunPackagedWorkflowStepOutput, type RunTaskOptions, type RunTaskResult, type ScrapeFacebookPageStepInput, type ScrapeFacebookPageStepOutput, type ScrapeFacebookPostsStepInput, type ScrapeFacebookPostsStepOutput, type ScrapeInstagramCommentsStepInput, type ScrapeInstagramCommentsStepOutput, type ScrapeInstagramMentionsStepInput, type ScrapeInstagramMentionsStepOutput, type ScrapeInstagramPostsStepInput, type ScrapeInstagramPostsStepOutput, type ScrapeInstagramProfileStepInput, type ScrapeInstagramProfileStepOutput, type ScrapeInstagramReelsStepInput, type ScrapeInstagramReelsStepOutput, type ScrapeLinkedInCompanyStepInput, type ScrapeLinkedInCompanyStepOutput, type ScrapeLinkedInProfileStepInput, type ScrapeLinkedInProfileStepOutput, type ScrapeMetaThreadsProfileStepInput, type ScrapeMetaThreadsProfileStepOutput, type ScrapeUrlStepInput, type ScrapeUrlStepOutput, type ScrapeXPostStepInput, type ScrapeXPostStepOutput, type ScrapeXProfileStepInput, type ScrapeXProfileStepOutput, type ScreenshotUrlStepInput, type ScreenshotUrlStepOutput, type SearchGmailEmailsStepInput, type SearchGmailEmailsStepOutput, type SearchGoogleCalendarEventsStepInput, type SearchGoogleCalendarEventsStepOutput, type SearchGoogleDriveStepInput, type SearchGoogleDriveStepOutput, type SearchGoogleImagesStepInput, type SearchGoogleImagesStepOutput, type SearchGoogleNewsStepInput, type SearchGoogleNewsStepOutput, type SearchGoogleStepInput, type SearchGoogleStepOutput, type SearchGoogleTrendsStepInput, type SearchGoogleTrendsStepOutput, type SearchPerplexityStepInput, type SearchPerplexityStepOutput, type SearchXPostsStepInput, type SearchXPostsStepOutput, type SearchYoutubeStepInput, type SearchYoutubeStepOutput, type SearchYoutubeTrendsStepInput, type SearchYoutubeTrendsStepOutput, type SendEmailStepInput, type SendEmailStepOutput, type SendGmailDraftStepInput, type SendGmailDraftStepOutput, type SendGmailMessageStepInput, type SendGmailMessageStepOutput, type SendSMSStepInput, type SendSMSStepOutput, type SendSlackDirectMessageStepInput, type SendSlackDirectMessageStepOutput, type SetGmailReadStatusStepInput, type SetGmailReadStatusStepOutput, type SetRunTitleStepInput, type SetRunTitleStepOutput, type SetVariableStepInput, type SetVariableStepOutput, type StepCostEstimateEntry, type StepExecutionMeta, type StepExecutionOptions, type StepExecutionResult, type StepInputMap, type StepLogEvent, type StepMetadata, type StepMethods, type StepName, type StepOutputMap, type SystemFields, Table, type TaskEvent, type TaskToolCall, type TaskToolConfig, type TaskUsage, type TelegramEditMessageStepInput, type TelegramEditMessageStepOutput, type TelegramReplyToMessageStepInput, type TelegramReplyToMessageStepOutput, type TelegramSendAudioStepInput, type TelegramSendAudioStepOutput, type TelegramSendFileStepInput, type TelegramSendFileStepOutput, type TelegramSendImageStepInput, type TelegramSendImageStepOutput, type TelegramSendMessageStepInput, type TelegramSendMessageStepOutput, type TelegramSendVideoStepInput, type TelegramSendVideoStepOutput, type TelegramSetTypingStepInput, type TelegramSetTypingStepOutput, type TextToSpeechStepInput, type TextToSpeechStepOutput, type TranscribeAudioStepInput, type TranscribeAudioStepOutput, type TrimMediaStepInput, type TrimMediaStepOutput, type UpdateGmailLabelsStepInput, type UpdateGmailLabelsStepOutput, type UpdateGoogleCalendarEventStepInput, type UpdateGoogleCalendarEventStepOutput, type UpdateGoogleDocStepInput, type UpdateGoogleDocStepOutput, type UpdateGoogleSheetStepInput, type UpdateGoogleSheetStepOutput, type UpdateInput, type UploadDataSourceDocumentStepInput, type UploadDataSourceDocumentStepOutput, type UploadFileResult, type UpscaleImageStepInput, type UpscaleImageStepOutput, type UpscaleVideoStepInput, type UpscaleVideoStepOutput, type User, type UserInfoResult, type UserMessageStepInput, type UserMessageStepOutput, type VideoFaceSwapStepInput, type VideoFaceSwapStepOutput, type VideoRemoveBackgroundStepInput, type VideoRemoveBackgroundStepOutput, type VideoRemoveWatermarkStepInput, type VideoRemoveWatermarkStepOutput, type WatermarkImageStepInput, type WatermarkImageStepOutput, type WatermarkVideoStepInput, type WatermarkVideoStepOutput, auth, blockTypeAliases, db, mindstudio as default, getRequestContext, mindstudio, monacoSnippets, resolveUser, runWithContext, stepMetadata, stream };
8808
+ export { type Accessor, type ActiveCampaignAddNoteStepInput, type ActiveCampaignAddNoteStepOutput, type ActiveCampaignCreateContactStepInput, type ActiveCampaignCreateContactStepOutput, type AddSubtitlesToVideoStepInput, type AddSubtitlesToVideoStepOutput, type AgentInfo, type AgentOptions, type AirtableCreateUpdateRecordStepInput, type AirtableCreateUpdateRecordStepOutput, type AirtableDeleteRecordStepInput, type AirtableDeleteRecordStepOutput, type AirtableGetRecordStepInput, type AirtableGetRecordStepOutput, type AirtableGetTableRecordsStepInput, type AirtableGetTableRecordsStepOutput, type AnalyzeImageStepInput, type AnalyzeImageStepOutput, type AnalyzeVideoStepInput, type AnalyzeVideoStepOutput, type AppAuthContext, type AppContextResult, type AppDatabase, type AppDatabaseColumnSchema, type AppDatabaseTable, type AppRoleAssignment, AuthContext, type AuthTableConfig, type BatchStepInput, type BatchStepResult, type CaptureThumbnailStepInput, type CaptureThumbnailStepOutput, type CheckAppRoleStepInput, type CheckAppRoleStepOutput, type CodaCreateUpdatePageStepInput, type CodaCreateUpdatePageStepOutput, type CodaCreateUpdateRowStepInput, type CodaCreateUpdateRowStepOutput, type CodaFindRowStepInput, type CodaFindRowStepOutput, type CodaGetPageStepInput, type CodaGetPageStepOutput, type CodaGetTableRowsStepInput, type CodaGetTableRowsStepOutput, type Connection, type ConnectorActionDetail, type ConnectorService, type ConvertPdfToImagesStepInput, type ConvertPdfToImagesStepOutput, type CreateDataSourceStepInput, type CreateDataSourceStepOutput, type CreateGmailDraftStepInput, type CreateGmailDraftStepOutput, type CreateGoogleCalendarEventStepInput, type CreateGoogleCalendarEventStepOutput, type CreateGoogleDocStepInput, type CreateGoogleDocStepOutput, type CreateGoogleSheetStepInput, type CreateGoogleSheetStepOutput, type Db, type DefineTableOptions, type DeleteDataSourceDocumentStepInput, type DeleteDataSourceDocumentStepOutput, type DeleteDataSourceStepInput, type DeleteDataSourceStepOutput, type DeleteGmailEmailStepInput, type DeleteGmailEmailStepOutput, type DeleteGoogleCalendarEventStepInput, type DeleteGoogleCalendarEventStepOutput, type DeleteGoogleSheetRowsStepInput, type DeleteGoogleSheetRowsStepOutput, type DetectChangesStepInput, type DetectChangesStepOutput, type DetectPIIStepInput, type DetectPIIStepOutput, type DiscordEditMessageStepInput, type DiscordEditMessageStepOutput, type DiscordSendFollowUpStepInput, type DiscordSendFollowUpStepOutput, type DiscordSendMessageStepInput, type DiscordSendMessageStepOutput, type DownloadVideoStepInput, type DownloadVideoStepOutput, type EnhanceImageGenerationPromptStepInput, type EnhanceImageGenerationPromptStepOutput, type EnhanceVideoGenerationPromptStepInput, type EnhanceVideoGenerationPromptStepOutput, type EnrichPersonStepInput, type EnrichPersonStepOutput, type ExecuteStepBatchOptions, type ExecuteStepBatchResult, type ExtractAudioFromVideoStepInput, type ExtractAudioFromVideoStepOutput, type ExtractTextStepInput, type ExtractTextStepOutput, type FetchDataSourceDocumentStepInput, type FetchDataSourceDocumentStepOutput, type FetchGoogleDocStepInput, type FetchGoogleDocStepOutput, type FetchGoogleSheetStepInput, type FetchGoogleSheetStepOutput, type FetchSlackChannelHistoryStepInput, type FetchSlackChannelHistoryStepOutput, type FetchYoutubeCaptionsStepInput, type FetchYoutubeCaptionsStepOutput, type FetchYoutubeChannelStepInput, type FetchYoutubeChannelStepOutput, type FetchYoutubeCommentsStepInput, type FetchYoutubeCommentsStepOutput, type FetchYoutubeVideoStepInput, type FetchYoutubeVideoStepOutput, type Generate3dModelStepInput, type Generate3dModelStepOutput, type GenerateAssetStepInput, type GenerateAssetStepOutput, type GenerateChartStepInput, type GenerateChartStepOutput, type GenerateImageStepInput, type GenerateImageStepOutput, type GenerateLipsyncStepInput, type GenerateLipsyncStepOutput, type GenerateMusicStepInput, type GenerateMusicStepOutput, type GeneratePdfStepInput, type GeneratePdfStepOutput, type GenerateStaticVideoFromImageStepInput, type GenerateStaticVideoFromImageStepOutput, type GenerateTextStepInput, type GenerateTextStepOutput, type GenerateVideoStepInput, type GenerateVideoStepOutput, type GetGmailAttachmentsStepInput, type GetGmailAttachmentsStepOutput, type GetGmailDraftStepInput, type GetGmailDraftStepOutput, type GetGmailEmailStepInput, type GetGmailEmailStepOutput, type GetGmailUnreadCountStepInput, type GetGmailUnreadCountStepOutput, type GetGoogleCalendarEventStepInput, type GetGoogleCalendarEventStepOutput, type GetGoogleDriveFileStepInput, type GetGoogleDriveFileStepOutput, type GetGoogleSheetInfoStepInput, type GetGoogleSheetInfoStepOutput, type GetMediaMetadataStepInput, type GetMediaMetadataStepOutput, type HubspotCreateCompanyStepInput, type HubspotCreateCompanyStepOutput, type HubspotCreateContactStepInput, type HubspotCreateContactStepOutput, type HubspotGetCompanyStepInput, type HubspotGetCompanyStepOutput, type HubspotGetContactStepInput, type HubspotGetContactStepOutput, type HunterApiCompanyEnrichmentStepInput, type HunterApiCompanyEnrichmentStepOutput, type HunterApiDomainSearchStepInput, type HunterApiDomainSearchStepOutput, type HunterApiEmailFinderStepInput, type HunterApiEmailFinderStepOutput, type HunterApiEmailVerificationStepInput, type HunterApiEmailVerificationStepOutput, type HunterApiPersonEnrichmentStepInput, type HunterApiPersonEnrichmentStepOutput, type ImageFaceSwapStepInput, type ImageFaceSwapStepOutput, type ImageRemoveWatermarkStepInput, type ImageRemoveWatermarkStepOutput, type InsertVideoClipsStepInput, type InsertVideoClipsStepOutput, type ListAgentsResult, type ListDataSourcesStepInput, type ListDataSourcesStepOutput, type ListGmailDraftsStepInput, type ListGmailDraftsStepOutput, type ListGmailLabelsStepInput, type ListGmailLabelsStepOutput, type ListGoogleCalendarEventsStepInput, type ListGoogleCalendarEventsStepOutput, type ListGoogleDriveFilesStepInput, type ListGoogleDriveFilesStepOutput, type ListRecentGmailEmailsStepInput, type ListRecentGmailEmailsStepOutput, type LogicStepInput, type LogicStepOutput, type MakeDotComRunScenarioStepInput, type MakeDotComRunScenarioStepOutput, type MergeAudioStepInput, type MergeAudioStepOutput, type MergeVideosStepInput, type MergeVideosStepOutput, type MeshyAnimateStepInput, type MeshyAnimateStepOutput, type MeshyImageTo3dStepInput, type MeshyImageTo3dStepOutput, type MeshyRemeshStepInput, type MeshyRemeshStepOutput, type MeshyRigStepInput, type MeshyRigStepOutput, type MeshyTextTo3dStepInput, type MeshyTextTo3dStepOutput, type MeshyTextureStepInput, type MeshyTextureStepOutput, MindStudioAgent, MindStudioError, type MindStudioModel, type MindStudioModelSummary, type MixAudioIntoVideoStepInput, type MixAudioIntoVideoStepOutput, type ModelType, type MonacoSnippet, type MonacoSnippetField, type MonacoSnippetFieldType, type MuteVideoStepInput, type MuteVideoStepOutput, type N8nRunNodeStepInput, type N8nRunNodeStepOutput, type NotionCreatePageStepInput, type NotionCreatePageStepOutput, type NotionUpdatePageStepInput, type NotionUpdatePageStepOutput, type PackagedWorkflow, type PackagedWorkflowInput, type PackagedWorkflowSignature, type PeopleSearchStepInput, type PeopleSearchStepOutput, type PostToLinkedInStepInput, type PostToLinkedInStepOutput, type PostToSlackChannelStepInput, type PostToSlackChannelStepOutput, type PostToXStepInput, type PostToXStepOutput, type PostToZapierStepInput, type PostToZapierStepOutput, type Predicate, type PushInput, Query, type QueryAppDatabaseStepInput, type QueryAppDatabaseStepOutput, type QueryDataSourceStepInput, type QueryDataSourceStepOutput, type QueryExternalDatabaseStepInput, type QueryExternalDatabaseStepOutput, type RedactPIIStepInput, type RedactPIIStepOutput, type RemoveBackgroundFromImageStepInput, type RemoveBackgroundFromImageStepOutput, type ReplyToGmailEmailStepInput, type ReplyToGmailEmailStepOutput, type RequestContext, type ResizeVideoStepInput, type ResizeVideoStepOutput, type ResolvedUser, Roles, type RunAgentOptions, type RunAgentResult, type RunFromConnectorRegistryStepInput, type RunFromConnectorRegistryStepOutput, type RunPackagedWorkflowStepInput, type RunPackagedWorkflowStepOutput, type RunTaskOptions, type RunTaskResult, type ScrapeFacebookPageStepInput, type ScrapeFacebookPageStepOutput, type ScrapeFacebookPostsStepInput, type ScrapeFacebookPostsStepOutput, type ScrapeInstagramCommentsStepInput, type ScrapeInstagramCommentsStepOutput, type ScrapeInstagramMentionsStepInput, type ScrapeInstagramMentionsStepOutput, type ScrapeInstagramPostsStepInput, type ScrapeInstagramPostsStepOutput, type ScrapeInstagramProfileStepInput, type ScrapeInstagramProfileStepOutput, type ScrapeInstagramReelsStepInput, type ScrapeInstagramReelsStepOutput, type ScrapeLinkedInCompanyStepInput, type ScrapeLinkedInCompanyStepOutput, type ScrapeLinkedInProfileStepInput, type ScrapeLinkedInProfileStepOutput, type ScrapeMetaThreadsProfileStepInput, type ScrapeMetaThreadsProfileStepOutput, type ScrapeUrlStepInput, type ScrapeUrlStepOutput, type ScrapeXPostStepInput, type ScrapeXPostStepOutput, type ScrapeXProfileStepInput, type ScrapeXProfileStepOutput, type ScreenshotUrlStepInput, type ScreenshotUrlStepOutput, type SearchGmailEmailsStepInput, type SearchGmailEmailsStepOutput, type SearchGoogleCalendarEventsStepInput, type SearchGoogleCalendarEventsStepOutput, type SearchGoogleDriveStepInput, type SearchGoogleDriveStepOutput, type SearchGoogleImagesStepInput, type SearchGoogleImagesStepOutput, type SearchGoogleNewsStepInput, type SearchGoogleNewsStepOutput, type SearchGoogleStepInput, type SearchGoogleStepOutput, type SearchGoogleTrendsStepInput, type SearchGoogleTrendsStepOutput, type SearchPerplexityStepInput, type SearchPerplexityStepOutput, type SearchXPostsStepInput, type SearchXPostsStepOutput, type SearchYoutubeStepInput, type SearchYoutubeStepOutput, type SearchYoutubeTrendsStepInput, type SearchYoutubeTrendsStepOutput, type SendEmailStepInput, type SendEmailStepOutput, type SendGmailDraftStepInput, type SendGmailDraftStepOutput, type SendGmailMessageStepInput, type SendGmailMessageStepOutput, type SendSMSStepInput, type SendSMSStepOutput, type SendSlackDirectMessageStepInput, type SendSlackDirectMessageStepOutput, type SetGmailReadStatusStepInput, type SetGmailReadStatusStepOutput, type SetRunTitleStepInput, type SetRunTitleStepOutput, type SetVariableStepInput, type SetVariableStepOutput, type StepCostEstimateEntry, type StepExecutionMeta, type StepExecutionOptions, type StepExecutionResult, type StepInputMap, type StepLogEvent, type StepMetadata, type StepMethods, type StepName, type StepOutputMap, type SystemFields, Table, type TaskEvent, type TaskToolCall, type TaskToolConfig, type TaskUsage, type TelegramEditMessageStepInput, type TelegramEditMessageStepOutput, type TelegramReplyToMessageStepInput, type TelegramReplyToMessageStepOutput, type TelegramSendAudioStepInput, type TelegramSendAudioStepOutput, type TelegramSendFileStepInput, type TelegramSendFileStepOutput, type TelegramSendImageStepInput, type TelegramSendImageStepOutput, type TelegramSendMessageStepInput, type TelegramSendMessageStepOutput, type TelegramSendVideoStepInput, type TelegramSendVideoStepOutput, type TelegramSetTypingStepInput, type TelegramSetTypingStepOutput, type TextToSpeechStepInput, type TextToSpeechStepOutput, type TranscribeAudioStepInput, type TranscribeAudioStepOutput, type TrimMediaStepInput, type TrimMediaStepOutput, type UpdateGmailLabelsStepInput, type UpdateGmailLabelsStepOutput, type UpdateGoogleCalendarEventStepInput, type UpdateGoogleCalendarEventStepOutput, type UpdateGoogleDocStepInput, type UpdateGoogleDocStepOutput, type UpdateGoogleSheetStepInput, type UpdateGoogleSheetStepOutput, type UpdateInput, type UploadDataSourceDocumentStepInput, type UploadDataSourceDocumentStepOutput, type UploadFileResult, type UpscaleImageStepInput, type UpscaleImageStepOutput, type UpscaleVideoStepInput, type UpscaleVideoStepOutput, type User, type UserInfoResult, type UserMessageStepInput, type UserMessageStepOutput, type VideoFaceSwapStepInput, type VideoFaceSwapStepOutput, type VideoRemoveBackgroundStepInput, type VideoRemoveBackgroundStepOutput, type VideoRemoveWatermarkStepInput, type VideoRemoveWatermarkStepOutput, type WatermarkImageStepInput, type WatermarkImageStepOutput, type WatermarkVideoStepInput, type WatermarkVideoStepOutput, type YouDotComFinanceResearchStepInput, type YouDotComFinanceResearchStepOutput, type YouDotComGetPageContentStepInput, type YouDotComGetPageContentStepOutput, type YouDotComLiveNewsStepInput, type YouDotComLiveNewsStepOutput, type YouDotComWebResearchStepInput, type YouDotComWebResearchStepOutput, type YouDotComWebSearchStepInput, type YouDotComWebSearchStepOutput, auth, blockTypeAliases, db, mindstudio as default, getRequestContext, mindstudio, monacoSnippets, resolveUser, runWithContext, stepMetadata, stream };
package/dist/index.js CHANGED
@@ -57,12 +57,13 @@ async function requestWithRetry(config, method, url, body, attempt) {
57
57
  try {
58
58
  const body2 = JSON.parse(text);
59
59
  details = body2;
60
- const errMsg = (typeof body2.error === "string" ? body2.error : void 0) ?? (typeof body2.message === "string" ? body2.message : void 0) ?? (typeof body2.details === "string" ? body2.details : void 0);
60
+ const errMsg = (typeof body2.errorMessage === "string" ? body2.errorMessage : void 0) ?? (typeof body2.errorString === "string" ? body2.errorString : void 0) ?? (typeof body2.error === "string" ? body2.error : void 0) ?? (typeof body2.message === "string" ? body2.message : void 0) ?? (typeof body2.details === "string" ? body2.details : void 0);
61
61
  if (errMsg) message = errMsg;
62
62
  else if (body2.error || body2.message || body2.details) {
63
63
  message = JSON.stringify(body2.error ?? body2.message ?? body2.details);
64
64
  }
65
- if (body2.code) code = body2.code;
65
+ if (body2.code) code = String(body2.code);
66
+ else if (typeof body2.errorString === "string") code = body2.errorString;
66
67
  } catch {
67
68
  if (text) {
68
69
  const stripped = text.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
@@ -2567,8 +2568,10 @@ var stepMetadata = {
2567
2568
  "removeBackgroundFromImage": {
2568
2569
  stepType: "removeBackgroundFromImage",
2569
2570
  description: "Remove the background from an image using AI, producing a transparent PNG.",
2570
- usageNotes: "- Uses the Bria background removal model via fal.ai.\n- Output is re-hosted on the CDN as a PNG with transparency.",
2571
- inputSchema: { "type": "object", "properties": { "imageUrl": { "type": "string", "description": "URL of the source image to remove the background from" } }, "required": ["imageUrl"] },
2571
+ usageNotes: `- Uses the Bria background removal model via fal.ai by default.
2572
+ - Uses WaveSpeed's Ideogram background removal model when type is "advanced".
2573
+ - Output is re-hosted on the CDN as a PNG with transparency.`,
2574
+ inputSchema: { "type": "object", "properties": { "type": { "enum": ["standard", "advanced"], "type": "string" }, "imageUrl": { "type": "string", "description": "URL of the source image to remove the background from" } }, "required": ["imageUrl"] },
2572
2575
  outputSchema: { "type": "object", "properties": { "imageUrl": { "type": "string", "description": "CDN URL of the image with background removed (transparent PNG)" } }, "required": ["imageUrl"] }
2573
2576
  },
2574
2577
  "replyToGmailEmail": {
@@ -3015,6 +3018,41 @@ var stepMetadata = {
3015
3018
  usageNotes: "",
3016
3019
  inputSchema: { "type": "object", "properties": { "videoUrl": { "type": "string", "description": "URL of the source video" }, "imageUrl": { "type": "string", "description": "URL of the watermark image to overlay" }, "corner": { "enum": ["top-left", "top-right", "bottom-left", "bottom-right"], "type": "string", "description": "Corner position for the watermark placement" }, "paddingPx": { "type": "number", "description": "Padding from the corner in pixels" }, "widthPx": { "type": "number", "description": "Width of the watermark overlay in pixels" }, "intermediateAsset": { "type": "boolean", "description": "When true, the asset is created but hidden from the user's gallery (tagged as intermediate)" } }, "required": ["videoUrl", "imageUrl", "corner", "paddingPx", "widthPx"] },
3017
3020
  outputSchema: { "type": "object", "properties": { "videoUrl": { "type": "string", "description": "URL of the watermarked video" } }, "required": ["videoUrl"] }
3021
+ },
3022
+ "youDotComFinanceResearch": {
3023
+ stepType: "youDotComFinanceResearch",
3024
+ description: "Ask a financial research question using You.com Finance Research and return the sourced response.",
3025
+ usageNotes: "- Use this for financial questions such as company analysis, earnings, market research, filings, macroeconomics, and due diligence.\n- researchEffort supports deep (default) or exhaustive.\n- Finance Research returns the same response shape as Web Research, but searches a finance-optimized index.\n- Use it for cited synthesis, not raw price feeds or structured time-series exports.",
3026
+ inputSchema: { "type": "object", "properties": { "input": { "type": "string", "description": "Financial research question" }, "researchEffort": { "enum": ["deep", "exhaustive"], "type": "string", "description": "Depth of finance research to perform" } }, "required": ["input"] },
3027
+ outputSchema: { "type": "object", "properties": { "data": { "anyOf": [{ "type": "object", "properties": {}, "required": [] }, { "type": "array", "items": {} }] } }, "required": ["data"] }
3028
+ },
3029
+ "youDotComGetPageContent": {
3030
+ stepType: "youDotComGetPageContent",
3031
+ description: "Fetch clean Markdown, HTML, or metadata for known URLs using the You.com Contents API.",
3032
+ usageNotes: "- Use this step when you already know the URLs. Use Web Search with livecrawl when You.com should discover pages from a query.\n- A single request supports up to 10 URLs.\n- Request only the formats you need. Markdown is recommended for LLM consumption.\n- Increase crawlTimeout for JavaScript-heavy pages, up to 60 seconds.\n- Individual pages can partially fail; check each returned item before processing.",
3033
+ inputSchema: { "type": "object", "properties": { "urls": { "type": "array", "items": { "type": "string" }, "description": "URLs to fetch, max 10" }, "formats": { "type": "array", "items": { "enum": ["markdown", "html", "metadata"], "type": "string" }, "description": "Content formats to return; defaults to markdown" }, "crawlTimeout": { "type": "number", "description": "Per-URL crawl timeout in seconds" } }, "required": ["urls"] },
3034
+ outputSchema: { "type": "object", "properties": { "data": { "anyOf": [{ "type": "object", "properties": {}, "required": [] }, { "type": "array", "items": {} }] } }, "required": ["data"] }
3035
+ },
3036
+ "youDotComLiveNews": {
3037
+ stepType: "youDotComLiveNews",
3038
+ description: "Fetch live news articles through the You.com Search API and return the full structured response.",
3039
+ usageNotes: "- Defaults freshness to day for breaking or recent news.\n- Use country and language together to monitor regional or non-English news.\n- Use livecrawl: 'news' with livecrawlFormats: ['markdown'] when you need full article text.\n- Use a custom freshness range like YYYY-MM-DDtoYYYY-MM-DD for historical news windows.",
3040
+ inputSchema: { "type": "object", "properties": { "query": { "type": "string", "description": "News query" }, "freshness": { "type": "string", "description": "Recency filter; defaults to day" }, "count": { "type": "number", "description": "Max results per section, up to 100" }, "country": { "type": "string", "description": "ISO 3166-1 alpha-2 country code" }, "language": { "type": "string", "description": "BCP 47 language code" }, "safesearch": { "enum": ["off", "moderate", "strict"], "type": "string", "description": "Content moderation level" }, "livecrawl": { "enum": ["news", "all"], "type": "string", "description": "Fetch full content for news or all results" }, "livecrawlFormats": { "type": "array", "items": { "enum": ["markdown", "html"], "type": "string" }, "description": "Full-content formats to return when livecrawl is enabled" } }, "required": ["query"] },
3041
+ outputSchema: { "type": "object", "properties": { "data": { "anyOf": [{ "type": "object", "properties": {}, "required": [] }, { "type": "array", "items": {} }] } }, "required": ["data"] }
3042
+ },
3043
+ "youDotComWebResearch": {
3044
+ stepType: "youDotComWebResearch",
3045
+ description: "Ask a research question and return a grounded You.com Research API answer with sources.",
3046
+ usageNotes: "- Use Web Search when you need raw URLs and snippets. Use Web Research when you want a synthesized answer with citations.\n- researchEffort controls depth and latency: lite, standard, deep, or exhaustive. standard is a good default.\n- sourceControl can restrict, exclude, or boost domains, and can apply freshness or country filters.\n- includeDomains cannot be combined with excludeDomains or boostDomains.\n- outputSchema returns structured output.content and is supported by standard, deep, and exhaustive, not lite.",
3047
+ inputSchema: { "type": "object", "properties": { "input": { "type": "string", "description": "Research question" }, "researchEffort": { "enum": ["lite", "standard", "deep", "exhaustive"], "type": "string", "description": "Depth of research to perform" }, "sourceControl": { "anyOf": [{ "type": "object", "properties": { "includeDomains": { "type": "array", "items": { "type": "string" } }, "excludeDomains": { "type": "array", "items": { "type": "string" } }, "boostDomains": { "type": "array", "items": { "type": "string" } }, "freshness": { "type": "string" }, "country": { "type": "string" } } }, { "type": "string" }] }, "outputSchema": { "anyOf": [{ "type": "object", "properties": {}, "required": [] }, { "type": "string" }] } }, "required": ["input"] },
3048
+ outputSchema: { "type": "object", "properties": { "data": { "anyOf": [{ "type": "object", "properties": {}, "required": [] }, { "type": "array", "items": {} }] } }, "required": ["data"] }
3049
+ },
3050
+ "youDotComWebSearch": {
3051
+ stepType: "youDotComWebSearch",
3052
+ description: "Search the web and news using the You.com Search API and return the full structured response.",
3053
+ usageNotes: "- Query supports You.com search operators:\n\n| Operator | Description | Example |\n| -------- | ----------- | ------- |\n| site: | Search within a domain and its subdomains | site:uscourts.gov |\n| filetype: | Search for a specific file type | filetype:pdf |\n| + | Require the exact term after the operator | +GAAP |\n| - | Exclude the exact term after the operator | -prs |\n| AND | Require both expressions | guitar AND Fender |\n| OR | Match either expression | guitar OR drum |\n| NOT | Negate an expression | NOT site:uscourts.gov |\n\n- Use livecrawl with livecrawlFormats: ['markdown'] when you need full page content instead of snippets.\n- Use the Get Page Content step when you already know the URLs to fetch.\n- Use freshness for recency: day, week, month, year, or YYYY-MM-DDtoYYYY-MM-DD.\n- Use country (ISO 3166-1 alpha-2) and language (BCP 47) to focus results geographically or linguistically.\n- includeDomains cannot be combined with excludeDomains or boostDomains.",
3054
+ inputSchema: { "type": "object", "properties": { "query": { "type": "string", "description": "Search query; supports You.com search operators" }, "count": { "type": "number", "description": "Max results per section, up to 100" }, "freshness": { "type": "string", "description": "Recency filter: day, week, month, year, or YYYY-MM-DDtoYYYY-MM-DD" }, "country": { "type": "string", "description": "ISO 3166-1 alpha-2 country code" }, "language": { "type": "string", "description": "BCP 47 language code" }, "offset": { "type": "number", "description": "Pagination offset, 0-9" }, "safesearch": { "enum": ["off", "moderate", "strict"], "type": "string", "description": "Content moderation level" }, "livecrawl": { "enum": ["web", "news", "all"], "type": "string", "description": "Fetch full content for web, news, or all results" }, "livecrawlFormats": { "type": "array", "items": { "enum": ["markdown", "html"], "type": "string" }, "description": "Full-content formats to return when livecrawl is enabled" }, "crawlTimeout": { "type": "number", "description": "Maximum livecrawl timeout in seconds" }, "includeDomains": { "type": "array", "items": { "type": "string" }, "description": "Restrict results to these domains" }, "excludeDomains": { "type": "array", "items": { "type": "string" }, "description": "Exclude these domains" }, "boostDomains": { "type": "array", "items": { "type": "string" }, "description": "Boost these domains without excluding other domains" } }, "required": ["query"] },
3055
+ outputSchema: { "type": "object", "properties": { "data": { "anyOf": [{ "type": "object", "properties": {}, "required": [] }, { "type": "array", "items": {} }] } }, "required": ["data"] }
3018
3056
  }
3019
3057
  };
3020
3058
 
@@ -3728,6 +3766,21 @@ function applyStepMethods(AgentClass) {
3728
3766
  proto.watermarkVideo = function(step, options) {
3729
3767
  return this.executeStep("watermarkVideo", step, options);
3730
3768
  };
3769
+ proto.youDotComFinanceResearch = function(step, options) {
3770
+ return this.executeStep("youDotComFinanceResearch", step, options);
3771
+ };
3772
+ proto.youDotComGetPageContent = function(step, options) {
3773
+ return this.executeStep("youDotComGetPageContent", step, options);
3774
+ };
3775
+ proto.youDotComLiveNews = function(step, options) {
3776
+ return this.executeStep("youDotComLiveNews", step, options);
3777
+ };
3778
+ proto.youDotComWebResearch = function(step, options) {
3779
+ return this.executeStep("youDotComWebResearch", step, options);
3780
+ };
3781
+ proto.youDotComWebSearch = function(step, options) {
3782
+ return this.executeStep("youDotComWebSearch", step, options);
3783
+ };
3731
3784
  }
3732
3785
 
3733
3786
  // src/client.ts
@@ -4886,38 +4939,38 @@ var MindStudioAgent = class {
4886
4939
  /**
4887
4940
  * Upload a file to the MindStudio CDN.
4888
4941
  *
4889
- * Gets a signed upload URL, PUTs the file content, and returns the
4890
- * permanent public URL.
4942
+ * Gets a presigned upload request from the API, POSTs the file as
4943
+ * multipart/form-data, and returns the permanent public URL.
4891
4944
  */
4892
4945
  async uploadFile(content, options) {
4893
- const { data } = await request(
4894
- this._currentHttpConfig,
4895
- "POST",
4896
- "/account/upload",
4897
- {
4898
- extension: options.extension,
4899
- ...options.type != null && { type: options.type }
4900
- }
4901
- );
4946
+ const filename = options.filename ?? `upload.${options.extension}`;
4947
+ const { data } = await request(this._currentHttpConfig, "POST", "/account/upload", { filename });
4948
+ const form = new FormData();
4949
+ for (const [k, v] of Object.entries(data.fields)) form.append(k, v);
4902
4950
  const buf = content.buffer.slice(
4903
4951
  content.byteOffset,
4904
4952
  content.byteOffset + content.byteLength
4905
4953
  );
4906
- const res = await fetch(data.uploadUrl, {
4907
- method: "PUT",
4908
- body: buf,
4909
- headers: options.type ? { "Content-Type": options.type } : {}
4910
- });
4954
+ const fileBlob = new Blob([buf], options.type ? { type: options.type } : void 0);
4955
+ form.append("file", fileBlob, filename);
4956
+ const res = await fetch(data.url, { method: "POST", body: form });
4911
4957
  if (!res.ok) {
4912
- const errorBody = await res.json().catch(() => ({}));
4958
+ const errorText = await res.text().catch(() => "");
4913
4959
  throw new MindStudioError(
4914
- errorBody.message ?? errorBody.error ?? `Upload failed: ${res.status} ${res.statusText}`,
4915
- errorBody.code ?? "upload_error",
4960
+ `Upload failed: ${res.status} ${res.statusText}${errorText ? ` \u2014 ${errorText.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim().slice(0, 200)}` : ""}`,
4961
+ "upload_error",
4916
4962
  res.status,
4917
- errorBody
4963
+ errorText || void 0
4964
+ );
4965
+ }
4966
+ if (!data.publicUrl) {
4967
+ throw new MindStudioError(
4968
+ "Upload succeeded but server did not return a public URL.",
4969
+ "missing_public_url",
4970
+ 500
4918
4971
  );
4919
4972
  }
4920
- return { url: data.url };
4973
+ return { url: data.publicUrl };
4921
4974
  }
4922
4975
  };
4923
4976
  function sleep3(ms) {
@@ -5114,7 +5167,12 @@ var monacoSnippets = {
5114
5167
  "videoRemoveBackground": { fields: [["videoUrl", "string"], ["newBackground", ["transparent", "image"]], ["engine", "string"]], outputKeys: ["videoUrl"] },
5115
5168
  "videoRemoveWatermark": { fields: [["videoUrl", "string"], ["engine", "string"]], outputKeys: ["videoUrl"] },
5116
5169
  "watermarkImage": { fields: [["imageUrl", "string"], ["watermarkImageUrl", "string"], ["corner", ["top-left", "top-right", "bottom-left", "bottom-right"]], ["paddingPx", "number"], ["widthPx", "number"]], outputKeys: ["imageUrl"] },
5117
- "watermarkVideo": { fields: [["videoUrl", "string"], ["imageUrl", "string"], ["corner", ["top-left", "top-right", "bottom-left", "bottom-right"]], ["paddingPx", "number"], ["widthPx", "number"]], outputKeys: ["videoUrl"] }
5170
+ "watermarkVideo": { fields: [["videoUrl", "string"], ["imageUrl", "string"], ["corner", ["top-left", "top-right", "bottom-left", "bottom-right"]], ["paddingPx", "number"], ["widthPx", "number"]], outputKeys: ["videoUrl"] },
5171
+ "youDotComFinanceResearch": { fields: [["input", "string"]], outputKeys: ["data"] },
5172
+ "youDotComGetPageContent": { fields: [["urls", "array"]], outputKeys: ["data"] },
5173
+ "youDotComLiveNews": { fields: [["query", "string"]], outputKeys: ["data"] },
5174
+ "youDotComWebResearch": { fields: [["input", "string"]], outputKeys: ["data"] },
5175
+ "youDotComWebSearch": { fields: [["query", "string"]], outputKeys: ["data"] }
5118
5176
  };
5119
5177
  var blockTypeAliases = {
5120
5178
  "userMessage": "generateText",