@mindstudio-ai/agent 0.1.180 → 0.1.182

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.
@@ -19,7 +19,7 @@ export interface ActiveCampaignCreateContactStepInput {
19
19
  /** ActiveCampaign account ID to associate the contact with */
20
20
  accountId: string;
21
21
  /** Custom field values keyed by field ID */
22
- customFields: Record<string, unknown>;
22
+ customFields: Record<string, string>;
23
23
  /** ActiveCampaign OAuth connection ID */
24
24
  connectionId?: string;
25
25
  }
@@ -536,6 +536,31 @@ export interface DeleteGoogleSheetRowsStepInput {
536
536
  connectionId?: string;
537
537
  }
538
538
  export type DeleteGoogleSheetRowsStepOutput = unknown;
539
+ export interface DescribeExternalModelStepInput {
540
+ /** A public community model on Replicate */
541
+ replicate: {
542
+ /** The model, as `owner/name`, or `owner/name:version` for one version of it. Without a version, the latest */
543
+ model: string;
544
+ };
545
+ }
546
+ export interface DescribeExternalModelStepOutput {
547
+ /** The model pinned to a version, as `owner/name:version`: what `runExternalModel` takes */
548
+ model: string;
549
+ /** The model's page */
550
+ url: string;
551
+ /** What the model does, in its author's words */
552
+ description: string;
553
+ /** The JSON Schema of the model's input: its field names, types, defaults and which are required */
554
+ inputSchema: Record<string, unknown>;
555
+ /** The JSON Schema of what the model returns */
556
+ outputSchema: Record<string, unknown>;
557
+ /** Where the model's licence is published, when its author names one */
558
+ licenseUrl?: string;
559
+ /** Dollars a second of run time costs */
560
+ pricePerSecond: number;
561
+ /** True when the model's own price couldn't be read, and `pricePerSecond` is the highest rate a run can bill at */
562
+ priceIsUpperBound: boolean;
563
+ }
539
564
  export interface DetectChangesStepInput {
540
565
  /** Detection mode: 'comparison' for strict string inequality, 'ai' for LLM-based. Default: 'comparison' */
541
566
  mode: "ai" | "comparison";
@@ -708,7 +733,28 @@ export interface EvaluateDecisionStepInput {
708
733
  /** The content to evaluate. A string, or a JSON object or array. */
709
734
  state: string | Record<string, unknown> | unknown[];
710
735
  /** Questions to ask about the state, keyed by an id you choose. */
711
- questions: Record<string, unknown>;
736
+ questions: Record<string, {
737
+ type: string;
738
+ /** The yes/no question. An object can hold the question in one field and data it refers to in others. */
739
+ instructions: string | Record<string, unknown> | unknown[];
740
+ /** What a yes (near 1) and a no (near 0) mean. */
741
+ criteria?: {
742
+ true?: string;
743
+ false?: string;
744
+ };
745
+ } | {
746
+ type: string;
747
+ /** What the model should decide. An object can hold the question in one field and data it refers to in others. */
748
+ instructions: string | Record<string, unknown> | unknown[];
749
+ /** Option id to a description of that option. Null when the id is enough. At most 255 options. */
750
+ criteria: Record<string, string | null>;
751
+ } | {
752
+ type: string;
753
+ /** What the model should rate. An object can hold the question in one field and data it refers to in others. */
754
+ instructions: string | Record<string, unknown> | unknown[];
755
+ /** Ordered level descriptions, from low to high. At least 2, at most 10. */
756
+ criteria: string[];
757
+ }>;
712
758
  /** Images for a model that reads them (Clef, Clef Flash, GPT-6 Luna Decisions). Each entry is a URL or a data URL. A model that reads none refuses the call. */
713
759
  images?: string[];
714
760
  /** Optional model override. Uses the workspace's default decision model (Jev) if not specified */
@@ -723,7 +769,31 @@ export interface EvaluateDecisionStepOutput {
723
769
  /** Versioned model id that answered, such as jev-1.13.0. */
724
770
  model: string;
725
771
  /** One answer per question, under the same ids. */
726
- answers: Record<string, unknown>;
772
+ answers: Record<string, {
773
+ type: string;
774
+ /** Probability the answer is yes, from 0 to 1. */
775
+ noul: number;
776
+ } | {
777
+ type: string;
778
+ /** The highest-probability option. */
779
+ choice: string;
780
+ /** How certain the model is, derived from the probabilities. */
781
+ confidence: number;
782
+ /** Every option mapped to its probability. The values sum to 1. */
783
+ probabilities: Record<string, number>;
784
+ } | {
785
+ type: string;
786
+ /** Probability-weighted rating. It can land between levels. */
787
+ score: number;
788
+ /** How certain the model is, derived from the probabilities. */
789
+ confidence: number;
790
+ /** Level index mapped back to its description. */
791
+ legend: Record<string, string>;
792
+ /** Each level, as a string index, mapped to its probability. */
793
+ probabilities: Record<string, number>;
794
+ } | {
795
+ type: string;
796
+ }>;
727
797
  /** Token counts for the call. Input tokens are what the model bills. */
728
798
  usage: {
729
799
  input_tokens: number;
@@ -1252,7 +1322,29 @@ export interface FetchYoutubeChannelStepInput {
1252
1322
  /** YouTube channel URL (e.g. https://www.youtube.com/@ChannelName or /channel/ID) */
1253
1323
  channelUrl: string;
1254
1324
  }
1255
- export type FetchYoutubeChannelStepOutput = Record<string, unknown>;
1325
+ export interface FetchYoutubeChannelStepOutput {
1326
+ /** The channel's videos, most recent first */
1327
+ videos?: {
1328
+ position?: number;
1329
+ id?: string;
1330
+ title?: string;
1331
+ link?: string;
1332
+ views?: number;
1333
+ /** The video's length as YouTube shows it, e.g. "3:26:40" */
1334
+ length?: string;
1335
+ /** When it was published, relative to now, e.g. "18 hours ago" */
1336
+ published_time?: string;
1337
+ channel?: {
1338
+ is_verified?: boolean;
1339
+ };
1340
+ /** URLs of the still thumbnail and the animated preview */
1341
+ thumbnail?: {
1342
+ static?: string;
1343
+ rich?: string;
1344
+ };
1345
+ }[];
1346
+ [key: string]: unknown;
1347
+ }
1256
1348
  export interface FetchYoutubeCommentsStepInput {
1257
1349
  /** YouTube video URL to fetch comments for */
1258
1350
  videoUrl: string;
@@ -1288,7 +1380,67 @@ export interface FetchYoutubeVideoStepInput {
1288
1380
  /** YouTube video URL to fetch metadata for */
1289
1381
  videoUrl: string;
1290
1382
  }
1291
- export type FetchYoutubeVideoStepOutput = Record<string, unknown>;
1383
+ export interface FetchYoutubeVideoStepOutput {
1384
+ /** The video itself */
1385
+ video?: {
1386
+ id?: string;
1387
+ title?: string;
1388
+ description?: string;
1389
+ /** The channel's name */
1390
+ author?: string;
1391
+ category?: string;
1392
+ length_seconds?: number;
1393
+ views?: number;
1394
+ likes?: number;
1395
+ /** The publish date as YouTube shows it */
1396
+ published_time?: string;
1397
+ keywords?: string[];
1398
+ is_family_safe?: boolean;
1399
+ /** URL of the video's thumbnail */
1400
+ thumbnail?: string;
1401
+ };
1402
+ /** The channel that published it */
1403
+ channel?: {
1404
+ id?: string;
1405
+ name?: string;
1406
+ link?: string;
1407
+ subscribers?: number;
1408
+ thumbnail?: string;
1409
+ };
1410
+ comment?: {
1411
+ /** How many comments the video has */
1412
+ total?: number;
1413
+ };
1414
+ chapters?: {
1415
+ title?: string;
1416
+ timestamp?: string;
1417
+ thumbnail?: string;
1418
+ }[];
1419
+ key_moments?: {
1420
+ title?: string;
1421
+ start_seconds?: number;
1422
+ thumbnail?: string;
1423
+ }[];
1424
+ /** The languages `fetchYoutubeCaptions` can return for this video */
1425
+ available_transcripts_languages?: {
1426
+ name?: string;
1427
+ lang?: string;
1428
+ }[];
1429
+ recommended_videos?: {
1430
+ videos?: {
1431
+ position?: number;
1432
+ id?: string;
1433
+ title?: string;
1434
+ link?: string;
1435
+ views?: number;
1436
+ channel?: string;
1437
+ length?: string;
1438
+ published_time?: string;
1439
+ thumbnail?: string;
1440
+ }[];
1441
+ };
1442
+ [key: string]: unknown;
1443
+ }
1292
1444
  export interface Generate3dModelStepInput {
1293
1445
  /** Text prompt for text-to-3D models, or optional guidance for image-to-3D models */
1294
1446
  prompt?: string;
@@ -1309,7 +1461,7 @@ export interface Generate3dModelStepOutput {
1309
1461
  objUrl?: string;
1310
1462
  usdzUrl?: string;
1311
1463
  thumbnailUrl?: string;
1312
- textureUrls?: Record<string, unknown>[];
1464
+ textureUrls?: Record<string, string>[];
1313
1465
  providerTaskId?: string;
1314
1466
  resolvedConfig?: Record<string, unknown>;
1315
1467
  }
@@ -1405,7 +1557,9 @@ export interface GeneratePdfStepInput {
1405
1557
  /** Last compiled source (cached) */
1406
1558
  lastCompiledSource?: string;
1407
1559
  /** Multi-file SPA source */
1408
- files?: Record<string, unknown>;
1560
+ files?: Record<string, {
1561
+ value: string;
1562
+ }>;
1409
1563
  /** Available route paths in the SPA */
1410
1564
  paths: string[];
1411
1565
  /** Root URL of the SPA bundle */
@@ -1630,6 +1784,7 @@ export interface GetGoogleCalendarEventStepOutput {
1630
1784
  displayName?: string | null;
1631
1785
  email?: string | null;
1632
1786
  responseStatus?: string | null;
1787
+ [key: string]: unknown;
1633
1788
  })[] | null;
1634
1789
  };
1635
1790
  }
@@ -1742,7 +1897,7 @@ export interface HubspotGetCompanyStepOutput {
1742
1897
  /** The retrieved HubSpot company, or null if not found */
1743
1898
  company: {
1744
1899
  id: string;
1745
- properties: Record<string, unknown>;
1900
+ properties: Record<string, string | null>;
1746
1901
  createdAt: string;
1747
1902
  updatedAt: string;
1748
1903
  archived: boolean;
@@ -1764,7 +1919,7 @@ export interface HubspotGetContactStepOutput {
1764
1919
  /** The retrieved HubSpot contact, or null if not found */
1765
1920
  contact: {
1766
1921
  id: string;
1767
- properties: Record<string, unknown>;
1922
+ properties: Record<string, string | null>;
1768
1923
  createdAt: string;
1769
1924
  updatedAt: string;
1770
1925
  archived: boolean;
@@ -2121,6 +2276,7 @@ export interface ListGoogleCalendarEventsStepOutput {
2121
2276
  displayName?: string | null;
2122
2277
  email?: string | null;
2123
2278
  responseStatus?: string | null;
2279
+ [key: string]: unknown;
2124
2280
  })[] | null;
2125
2281
  })[];
2126
2282
  }
@@ -2236,7 +2392,7 @@ export interface MakeDotComRunScenarioStepInput {
2236
2392
  /** Make.com webhook URL for the scenario */
2237
2393
  webhookUrl: string;
2238
2394
  /** Key-value pairs to send as the JSON POST body */
2239
- input: Record<string, unknown>;
2395
+ input: Record<string, string>;
2240
2396
  }
2241
2397
  export interface MakeDotComRunScenarioStepOutput {
2242
2398
  /** Response from the Make.com scenario (JSON or string depending on scenario configuration) */
@@ -2246,7 +2402,7 @@ export interface MergeAudioStepInput {
2246
2402
  /** URLs of the MP3 audio clips to merge in order */
2247
2403
  mp3Urls: string[];
2248
2404
  /** FFmpeg MP3 metadata key-value pairs to embed in the output file */
2249
- fileMetadata?: Record<string, unknown>;
2405
+ fileMetadata?: Record<string, string>;
2250
2406
  /** URL of an image to embed as album art in the output file */
2251
2407
  albumArtUrl?: string;
2252
2408
  /** When true, the asset is created but hidden from the user's gallery (tagged as intermediate) */
@@ -2282,7 +2438,7 @@ export interface MeshyAnimateStepOutput {
2282
2438
  objUrl?: string;
2283
2439
  usdzUrl?: string;
2284
2440
  thumbnailUrl?: string;
2285
- textureUrls?: Record<string, unknown>[];
2441
+ textureUrls?: Record<string, string>[];
2286
2442
  animations?: {
2287
2443
  name: string;
2288
2444
  glbUrl?: string;
@@ -2312,7 +2468,7 @@ export interface MeshyImageTo3dStepOutput {
2312
2468
  objUrl?: string;
2313
2469
  usdzUrl?: string;
2314
2470
  thumbnailUrl?: string;
2315
- textureUrls?: Record<string, unknown>[];
2471
+ textureUrls?: Record<string, string>[];
2316
2472
  animations?: {
2317
2473
  name: string;
2318
2474
  glbUrl?: string;
@@ -2338,7 +2494,7 @@ export interface MeshyRemeshStepOutput {
2338
2494
  objUrl?: string;
2339
2495
  usdzUrl?: string;
2340
2496
  thumbnailUrl?: string;
2341
- textureUrls?: Record<string, unknown>[];
2497
+ textureUrls?: Record<string, string>[];
2342
2498
  animations?: {
2343
2499
  name: string;
2344
2500
  glbUrl?: string;
@@ -2360,7 +2516,7 @@ export interface MeshyRigStepOutput {
2360
2516
  objUrl?: string;
2361
2517
  usdzUrl?: string;
2362
2518
  thumbnailUrl?: string;
2363
- textureUrls?: Record<string, unknown>[];
2519
+ textureUrls?: Record<string, string>[];
2364
2520
  animations?: {
2365
2521
  name: string;
2366
2522
  glbUrl?: string;
@@ -2388,7 +2544,7 @@ export interface MeshyTextTo3dStepOutput {
2388
2544
  objUrl?: string;
2389
2545
  usdzUrl?: string;
2390
2546
  thumbnailUrl?: string;
2391
- textureUrls?: Record<string, unknown>[];
2547
+ textureUrls?: Record<string, string>[];
2392
2548
  animations?: {
2393
2549
  name: string;
2394
2550
  glbUrl?: string;
@@ -2416,7 +2572,7 @@ export interface MeshyTextureStepOutput {
2416
2572
  objUrl?: string;
2417
2573
  usdzUrl?: string;
2418
2574
  thumbnailUrl?: string;
2419
- textureUrls?: Record<string, unknown>[];
2575
+ textureUrls?: Record<string, string>[];
2420
2576
  animations?: {
2421
2577
  name: string;
2422
2578
  glbUrl?: string;
@@ -2469,7 +2625,7 @@ export interface N8nRunNodeStepInput {
2469
2625
  /** n8n webhook URL for the workflow node */
2470
2626
  webhookUrl: string;
2471
2627
  /** Key-value pairs sent as query params (GET) or JSON body (POST) */
2472
- input: Record<string, unknown>;
2628
+ input: Record<string, string>;
2473
2629
  }
2474
2630
  export interface N8nRunNodeStepOutput {
2475
2631
  /** Response from the n8n node (JSON or string depending on node configuration) */
@@ -2599,7 +2755,7 @@ export interface PostToZapierStepInput {
2599
2755
  /** Zapier webhook URL to send data to */
2600
2756
  webhookUrl: string;
2601
2757
  /** Key-value pairs to send as the JSON POST body */
2602
- input: Record<string, unknown>;
2758
+ input: Record<string, string>;
2603
2759
  }
2604
2760
  export interface PostToZapierStepOutput {
2605
2761
  /** Parsed webhook response from Zapier (JSON object, array, or string) */
@@ -2645,7 +2801,7 @@ export interface QuickbooksApiRequestStepInput {
2645
2801
  /** Relative Accounting API path (e.g. "account" or "query") */
2646
2802
  route: string;
2647
2803
  /** Query string parameters */
2648
- queryParams: Record<string, unknown>;
2804
+ queryParams: Record<string, string>;
2649
2805
  /** JSON body for POST, PUT, and PATCH */
2650
2806
  body: string;
2651
2807
  }
@@ -2743,9 +2899,28 @@ export interface ResizeVideoStepOutput {
2743
2899
  /** URL of the resized video */
2744
2900
  videoUrl: string;
2745
2901
  }
2902
+ export interface RunExternalModelStepInput {
2903
+ /** A public community model on Replicate */
2904
+ replicate: {
2905
+ /** The model and the version of it to run, as `owner/name:version`. `describeExternalModel` returns it */
2906
+ model: string;
2907
+ /** The model's input, by the field names its input schema gives. A file is a URL, and one of the app's own private files is signed for the run */
2908
+ input: Record<string, unknown>;
2909
+ /** Seconds the whole run may take, a cold start included, before it's cancelled. 600 by default, at most 1500 */
2910
+ timeoutSeconds?: number;
2911
+ };
2912
+ /** When true, the output's files are created but hidden from the user's gallery (tagged as intermediate) */
2913
+ intermediateAsset?: boolean;
2914
+ }
2915
+ export interface RunExternalModelStepOutput {
2916
+ /** The model's output, in the model's own shape. Every file in it is a URL in the app's store when the call named one, on the CDN otherwise */
2917
+ output: unknown;
2918
+ /** Seconds the model ran, which is what the run is billed for */
2919
+ runSeconds: number;
2920
+ }
2746
2921
  export interface RunFfmpegStepInput {
2747
2922
  /** Input files by name, each a URL; `{in:<name>}` in an argument is its local path */
2748
- inputs: Record<string, unknown>;
2923
+ inputs: Record<string, string>;
2749
2924
  /** ffmpeg's arguments, run as given; `{out:<file.ext>}` in an argument is an output's path */
2750
2925
  args: string[];
2751
2926
  /** When true, the assets are created but hidden from the user's gallery (tagged as intermediate) */
@@ -2753,7 +2928,7 @@ export interface RunFfmpegStepInput {
2753
2928
  }
2754
2929
  export interface RunFfmpegStepOutput {
2755
2930
  /** Each output's URL, by the file name `{out:<file.ext>}` gave it */
2756
- outputs: Record<string, unknown>;
2931
+ outputs: Record<string, string>;
2757
2932
  }
2758
2933
  export interface RunFromConnectorRegistryStepInput {
2759
2934
  /** The connector action identifier in the format serviceId/actionId */
@@ -2763,7 +2938,7 @@ export interface RunFromConnectorRegistryStepInput {
2763
2938
  /** Icon URL for the connector */
2764
2939
  icon: string;
2765
2940
  /** Key-value configuration parameters for the connector action */
2766
- configurationValues: Record<string, unknown>;
2941
+ configurationValues: Record<string, string>;
2767
2942
  /** OAuth connection ID used to authenticate the connector request */
2768
2943
  __connectionId?: string;
2769
2944
  }
@@ -2807,7 +2982,7 @@ export interface ScrapeUrlStepInput {
2807
2982
  /** Whether to convert relative URLs to absolute URLs in the result */
2808
2983
  replaceAllPathsWithAbsolutePaths: boolean;
2809
2984
  /** Custom HTTP request headers as key-value pairs */
2810
- headers: Record<string, unknown>;
2985
+ headers: Record<string, string>;
2811
2986
  /** HTML tags to remove from the scraped result. Firecrawl only. */
2812
2987
  removeTags: string[];
2813
2988
  /** Whether to scrape using a mobile user-agent. Firecrawl only. */
@@ -3100,6 +3275,7 @@ export interface SearchGoogleCalendarEventsStepOutput {
3100
3275
  displayName?: string | null;
3101
3276
  email?: string | null;
3102
3277
  responseStatus?: string | null;
3278
+ [key: string]: unknown;
3103
3279
  })[] | null;
3104
3280
  })[];
3105
3281
  }
@@ -3298,7 +3474,57 @@ export interface SearchYoutubeTrendsStepInput {
3298
3474
  /** Country code (e.g. "US") */
3299
3475
  gl: string;
3300
3476
  }
3301
- export type SearchYoutubeTrendsStepOutput = Record<string, unknown>;
3477
+ export interface SearchYoutubeTrendsStepOutput {
3478
+ /** The videos trending in the category and region */
3479
+ trending?: {
3480
+ position?: number;
3481
+ id?: string;
3482
+ title?: string;
3483
+ link?: string;
3484
+ views?: number;
3485
+ channel?: {
3486
+ id?: string;
3487
+ title?: string;
3488
+ link?: string;
3489
+ is_verified?: boolean;
3490
+ thumbnail?: string;
3491
+ };
3492
+ /** The video's length as YouTube shows it */
3493
+ length?: string;
3494
+ /** When it was published, relative to now */
3495
+ published_time?: string;
3496
+ thumbnail?: string;
3497
+ }[];
3498
+ recently_trending?: {
3499
+ position?: number;
3500
+ id?: string;
3501
+ title?: string;
3502
+ link?: string;
3503
+ views?: number;
3504
+ channel?: {
3505
+ id?: string;
3506
+ title?: string;
3507
+ link?: string;
3508
+ is_verified?: boolean;
3509
+ thumbnail?: string;
3510
+ };
3511
+ /** The video's length as YouTube shows it */
3512
+ length?: string;
3513
+ /** When it was published, relative to now */
3514
+ published_time?: string;
3515
+ thumbnail?: string;
3516
+ }[];
3517
+ /** Trending Shorts */
3518
+ shorts?: {
3519
+ position?: number;
3520
+ id?: string;
3521
+ title?: string;
3522
+ link?: string;
3523
+ views?: number;
3524
+ thumbnail?: string;
3525
+ }[];
3526
+ [key: string]: unknown;
3527
+ }
3302
3528
  export interface SendEmailStepInput {
3303
3529
  /** Email subject line */
3304
3530
  subject: string;
@@ -3545,7 +3771,28 @@ export interface TypesafeEvaluateStepInput {
3545
3771
  /** The content to evaluate. A string, or a JSON object or array. */
3546
3772
  state: string | Record<string, unknown> | unknown[];
3547
3773
  /** Questions to ask about the state, keyed by an id you choose. */
3548
- questions: Record<string, unknown>;
3774
+ questions: Record<string, {
3775
+ type: string;
3776
+ /** The yes/no question. An object can hold the question in one field and data it refers to in others. */
3777
+ instructions: string | Record<string, unknown> | unknown[];
3778
+ /** What a yes (near 1) and a no (near 0) mean. */
3779
+ criteria?: {
3780
+ true?: string;
3781
+ false?: string;
3782
+ };
3783
+ } | {
3784
+ type: string;
3785
+ /** What the model should decide. An object can hold the question in one field and data it refers to in others. */
3786
+ instructions: string | Record<string, unknown> | unknown[];
3787
+ /** Option id to a description of that option. Null when the id is enough. At most 255 options. */
3788
+ criteria: Record<string, string | null>;
3789
+ } | {
3790
+ type: string;
3791
+ /** What the model should rate. An object can hold the question in one field and data it refers to in others. */
3792
+ instructions: string | Record<string, unknown> | unknown[];
3793
+ /** Ordered level descriptions, from low to high. At least 2, at most 10. */
3794
+ criteria: string[];
3795
+ }>;
3549
3796
  /** Model id or alias. Defaults to the workspace's default decision model (jev-latest). Every model evaluateDecision takes: jev-preview, a pinned version such as jev-1.13.0, clef and clef-flash, gpt-6-luna-decisions. */
3550
3797
  model?: string;
3551
3798
  /** Images for a model that reads them (Clef, Clef Flash, GPT-6 Luna Decisions). Each entry is a URL or a data URL. A model that reads none refuses the call. */
@@ -3555,7 +3802,31 @@ export interface TypesafeEvaluateStepOutput {
3555
3802
  /** Versioned model id that answered, such as jev-1.13.0. */
3556
3803
  model: string;
3557
3804
  /** One answer per question, under the same ids. */
3558
- answers: Record<string, unknown>;
3805
+ answers: Record<string, {
3806
+ type: string;
3807
+ /** Probability the answer is yes, from 0 to 1. */
3808
+ noul: number;
3809
+ } | {
3810
+ type: string;
3811
+ /** The highest-probability option. */
3812
+ choice: string;
3813
+ /** How certain the model is, derived from the probabilities. */
3814
+ confidence: number;
3815
+ /** Every option mapped to its probability. The values sum to 1. */
3816
+ probabilities: Record<string, number>;
3817
+ } | {
3818
+ type: string;
3819
+ /** Probability-weighted rating. It can land between levels. */
3820
+ score: number;
3821
+ /** How certain the model is, derived from the probabilities. */
3822
+ confidence: number;
3823
+ /** Level index mapped back to its description. */
3824
+ legend: Record<string, string>;
3825
+ /** Each level, as a string index, mapped to its probability. */
3826
+ probabilities: Record<string, number>;
3827
+ } | {
3828
+ type: string;
3829
+ }>;
3559
3830
  /** Token counts for the call. Input tokens are what the model bills. */
3560
3831
  usage: {
3561
3832
  input_tokens: number;
@@ -3909,7 +4180,7 @@ export type GenerateAssetStepOutput = GeneratePdfStepOutput;
3909
4180
  export type GenerateTextStepInput = UserMessageStepInput;
3910
4181
  export type GenerateTextStepOutput = UserMessageStepOutput;
3911
4182
  /** Union of all available step type names. */
3912
- export type StepName = "activeCampaignAddNote" | "activeCampaignCreateContact" | "addSubtitlesToVideo" | "addThumbnailToVideo" | "airtableCreateUpdateRecord" | "airtableDeleteRecord" | "airtableGetRecord" | "airtableGetTableRecords" | "analyzeImage" | "analyzeVideo" | "captureThumbnail" | "checkAppRole" | "codaCreateUpdatePage" | "codaCreateUpdateRow" | "codaFindRow" | "codaGetPage" | "codaGetTableRows" | "convertPdfToImages" | "createDataSource" | "createGmailDraft" | "createGoogleCalendarEvent" | "createGoogleDoc" | "createGoogleSheet" | "decomposeImage" | "deleteDataSource" | "deleteDataSourceDocument" | "deleteGmailEmail" | "deleteGoogleCalendarEvent" | "deleteGoogleSheetRows" | "detectChanges" | "detectPII" | "downloadVideo" | "enhanceImageGenerationPrompt" | "enhanceVideoGenerationPrompt" | "enrichPerson" | "evaluateDecision" | "extractAudioFromVideo" | "extractText" | "fetchDataSourceDocument" | "fetchGoogleDoc" | "fetchGoogleSheet" | "fetchSlackChannelHistory" | "fetchYoutubeCaptions" | "fetchYoutubeChannel" | "fetchYoutubeComments" | "fetchYoutubeVideo" | "generate3dModel" | "generateImage" | "generateLipsync" | "generateMusic" | "generatePdf" | "generateSound" | "generateStaticVideoFromImage" | "generateVideo" | "getGmailAttachments" | "getGmailDraft" | "getGmailEmail" | "getGmailUnreadCount" | "getGoogleCalendarEvent" | "getGoogleDriveFile" | "getGoogleSheetInfo" | "getMediaMetadata" | "hubspotCreateCompany" | "hubspotCreateContact" | "hubspotGetCompany" | "hubspotGetContact" | "hunterApiCompanyEnrichment" | "hunterApiDomainSearch" | "hunterApiEmailFinder" | "hunterApiEmailVerification" | "hunterApiPersonEnrichment" | "imageFaceSwap" | "imageRemoveWatermark" | "importFromUrl" | "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" | "queryDataSource" | "queryExternalDatabase" | "quickbooksApiRequest" | "redactPII" | "removeBackgroundFromImage" | "renderVideoFromHtmlComposition" | "replyToGmailEmail" | "resizeVideo" | "runFfmpeg" | "runFromConnectorRegistry" | "scrapeLinkedInCompany" | "scrapeLinkedInProfile" | "scrapeUrl" | "scrapeXPost" | "scrapeXProfile" | "screenshotUrl" | "searchGmailEmails" | "searchGoogle" | "searchGoogleCalendarEvents" | "searchGoogleDrive" | "searchGoogleImages" | "searchGoogleNews" | "searchGoogleTrends" | "searchPerplexity" | "searchXPosts" | "searchYoutube" | "searchYoutubeTrends" | "sendEmail" | "sendGmailDraft" | "sendGmailMessage" | "sendSlackDirectMessage" | "sendSMS" | "setGmailReadStatus" | "setRunTitle" | "setVariable" | "textToSpeech" | "transcribeAudio" | "trimMedia" | "typesafeEvaluate" | "updateGmailLabels" | "updateGoogleCalendarEvent" | "updateGoogleDoc" | "updateGoogleSheet" | "uploadDataSourceDocument" | "upscaleImage" | "upscaleVideo" | "userMessage" | "videoFaceSwap" | "videoRemoveBackground" | "videoRemoveWatermark" | "watermarkImage" | "watermarkVideo" | "youDotComFinanceResearch" | "youDotComGetPageContent" | "youDotComLiveNews" | "youDotComWebResearch" | "youDotComWebSearch";
4183
+ export type StepName = "activeCampaignAddNote" | "activeCampaignCreateContact" | "addSubtitlesToVideo" | "addThumbnailToVideo" | "airtableCreateUpdateRecord" | "airtableDeleteRecord" | "airtableGetRecord" | "airtableGetTableRecords" | "analyzeImage" | "analyzeVideo" | "captureThumbnail" | "checkAppRole" | "codaCreateUpdatePage" | "codaCreateUpdateRow" | "codaFindRow" | "codaGetPage" | "codaGetTableRows" | "convertPdfToImages" | "createDataSource" | "createGmailDraft" | "createGoogleCalendarEvent" | "createGoogleDoc" | "createGoogleSheet" | "decomposeImage" | "deleteDataSource" | "deleteDataSourceDocument" | "deleteGmailEmail" | "deleteGoogleCalendarEvent" | "deleteGoogleSheetRows" | "describeExternalModel" | "detectChanges" | "detectPII" | "downloadVideo" | "enhanceImageGenerationPrompt" | "enhanceVideoGenerationPrompt" | "enrichPerson" | "evaluateDecision" | "extractAudioFromVideo" | "extractText" | "fetchDataSourceDocument" | "fetchGoogleDoc" | "fetchGoogleSheet" | "fetchSlackChannelHistory" | "fetchYoutubeCaptions" | "fetchYoutubeChannel" | "fetchYoutubeComments" | "fetchYoutubeVideo" | "generate3dModel" | "generateImage" | "generateLipsync" | "generateMusic" | "generatePdf" | "generateSound" | "generateStaticVideoFromImage" | "generateVideo" | "getGmailAttachments" | "getGmailDraft" | "getGmailEmail" | "getGmailUnreadCount" | "getGoogleCalendarEvent" | "getGoogleDriveFile" | "getGoogleSheetInfo" | "getMediaMetadata" | "hubspotCreateCompany" | "hubspotCreateContact" | "hubspotGetCompany" | "hubspotGetContact" | "hunterApiCompanyEnrichment" | "hunterApiDomainSearch" | "hunterApiEmailFinder" | "hunterApiEmailVerification" | "hunterApiPersonEnrichment" | "imageFaceSwap" | "imageRemoveWatermark" | "importFromUrl" | "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" | "queryDataSource" | "queryExternalDatabase" | "quickbooksApiRequest" | "redactPII" | "removeBackgroundFromImage" | "renderVideoFromHtmlComposition" | "replyToGmailEmail" | "resizeVideo" | "runExternalModel" | "runFfmpeg" | "runFromConnectorRegistry" | "scrapeLinkedInCompany" | "scrapeLinkedInProfile" | "scrapeUrl" | "scrapeXPost" | "scrapeXProfile" | "screenshotUrl" | "searchGmailEmails" | "searchGoogle" | "searchGoogleCalendarEvents" | "searchGoogleDrive" | "searchGoogleImages" | "searchGoogleNews" | "searchGoogleTrends" | "searchPerplexity" | "searchXPosts" | "searchYoutube" | "searchYoutubeTrends" | "sendEmail" | "sendGmailDraft" | "sendGmailMessage" | "sendSlackDirectMessage" | "sendSMS" | "setGmailReadStatus" | "setRunTitle" | "setVariable" | "textToSpeech" | "transcribeAudio" | "trimMedia" | "typesafeEvaluate" | "updateGmailLabels" | "updateGoogleCalendarEvent" | "updateGoogleDoc" | "updateGoogleSheet" | "uploadDataSourceDocument" | "upscaleImage" | "upscaleVideo" | "userMessage" | "videoFaceSwap" | "videoRemoveBackground" | "videoRemoveWatermark" | "watermarkImage" | "watermarkVideo" | "youDotComFinanceResearch" | "youDotComGetPageContent" | "youDotComLiveNews" | "youDotComWebResearch" | "youDotComWebSearch";
3913
4184
  /** Maps step names to their input types. */
3914
4185
  export interface StepInputMap {
3915
4186
  activeCampaignAddNote: ActiveCampaignAddNoteStepInput;
@@ -3941,6 +4212,7 @@ export interface StepInputMap {
3941
4212
  deleteGmailEmail: DeleteGmailEmailStepInput;
3942
4213
  deleteGoogleCalendarEvent: DeleteGoogleCalendarEventStepInput;
3943
4214
  deleteGoogleSheetRows: DeleteGoogleSheetRowsStepInput;
4215
+ describeExternalModel: DescribeExternalModelStepInput;
3944
4216
  detectChanges: DetectChangesStepInput;
3945
4217
  detectPII: DetectPIIStepInput;
3946
4218
  downloadVideo: DownloadVideoStepInput;
@@ -4021,6 +4293,7 @@ export interface StepInputMap {
4021
4293
  renderVideoFromHtmlComposition: RenderVideoFromHtmlCompositionStepInput;
4022
4294
  replyToGmailEmail: ReplyToGmailEmailStepInput;
4023
4295
  resizeVideo: ResizeVideoStepInput;
4296
+ runExternalModel: RunExternalModelStepInput;
4024
4297
  runFfmpeg: RunFfmpegStepInput;
4025
4298
  runFromConnectorRegistry: RunFromConnectorRegistryStepInput;
4026
4299
  scrapeLinkedInCompany: ScrapeLinkedInCompanyStepInput;
@@ -4102,6 +4375,7 @@ export interface StepOutputMap {
4102
4375
  deleteGmailEmail: DeleteGmailEmailStepOutput;
4103
4376
  deleteGoogleCalendarEvent: DeleteGoogleCalendarEventStepOutput;
4104
4377
  deleteGoogleSheetRows: DeleteGoogleSheetRowsStepOutput;
4378
+ describeExternalModel: DescribeExternalModelStepOutput;
4105
4379
  detectChanges: DetectChangesStepOutput;
4106
4380
  detectPII: DetectPIIStepOutput;
4107
4381
  downloadVideo: DownloadVideoStepOutput;
@@ -4182,6 +4456,7 @@ export interface StepOutputMap {
4182
4456
  renderVideoFromHtmlComposition: RenderVideoFromHtmlCompositionStepOutput;
4183
4457
  replyToGmailEmail: ReplyToGmailEmailStepOutput;
4184
4458
  resizeVideo: ResizeVideoStepOutput;
4459
+ runExternalModel: RunExternalModelStepOutput;
4185
4460
  runFfmpeg: RunFfmpegStepOutput;
4186
4461
  runFromConnectorRegistry: RunFromConnectorRegistryStepOutput;
4187
4462
  scrapeLinkedInCompany: ScrapeLinkedInCompanyStepOutput;