@mindstudio-ai/agent 0.1.171 → 0.1.172

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
@@ -4320,6 +4320,15 @@ type TaskToolConfig = string | {
4320
4320
  * which a function tool reuses) — recursion is yours to bound.
4321
4321
  */
4322
4322
  execute: (input: Record<string, unknown>) => Promise<unknown> | unknown;
4323
+ /**
4324
+ * For a tool whose result is the state of something now (a page, a
4325
+ * board), which a newer result makes stale: a key shared by the tools
4326
+ * that report that state. Each successful result replaces the earlier
4327
+ * ones under the same key in what the model is sent with a one-line
4328
+ * note, so a long run keeps only the latest in full. `toolCalls`,
4329
+ * `onEvent` and the trace still carry every result.
4330
+ */
4331
+ supersedes?: string;
4323
4332
  };
4324
4333
  /** Options shared by both output modes of {@link MindStudioAgent.runTask}. */
4325
4334
  interface RunTaskOptionsBase {
@@ -4450,6 +4459,314 @@ interface RunTaskResult<T = unknown> {
4450
4459
  traceId: string;
4451
4460
  }
4452
4461
 
4462
+ /**
4463
+ * The `browser` namespace — a real Chrome your app drives.
4464
+ *
4465
+ * `browser.open()` starts a session: one browser with one page, which stays
4466
+ * open while you use it. It closes itself after `idleTimeoutSeconds` with no
4467
+ * action (5 minutes by default), and at most an hour after it opens. Every
4468
+ * action answers with the page as it is afterward: its URL, its title, and a
4469
+ * snapshot, a compact outline of the page in which everything you can act on
4470
+ * carries a ref (`[ref=e12]`) to name it by next.
4471
+ *
4472
+ * ```ts
4473
+ * import { browser } from '@mindstudio-ai/agent';
4474
+ * import { Shots } from './files/shots';
4475
+ *
4476
+ * export async function captureDashboard() {
4477
+ * const session = await browser.open({ url: 'https://app.example.com/login' });
4478
+ * await session.type({ label: 'Email' }, process.env.DEMO_EMAIL!);
4479
+ * await session.type({ label: 'Password' }, process.env.DEMO_PASSWORD!, { submit: true });
4480
+ * await session.waitFor('Dashboard');
4481
+ * const shot = await session.screenshot();
4482
+ * const file = await Shots.put(shot.data, { contentType: shot.contentType });
4483
+ * await session.close();
4484
+ * return { url: file.url };
4485
+ * }
4486
+ * ```
4487
+ *
4488
+ * To let a model drive instead, hand a task agent the session's tools:
4489
+ * `mindstudio.runTask({ ..., tools: session.tools() })`.
4490
+ *
4491
+ * Elements are named by a ref from the latest snapshot, or by how a person
4492
+ * would describe them: `{ text: 'Sign in' }`, `{ role: 'button', text: 'Save' }`,
4493
+ * `{ label: 'Email' }`, or a CSS `{ selector }`. A ref is only good until the
4494
+ * next snapshot; every action takes one, so use the refs from the latest.
4495
+ *
4496
+ * Clicks, taps and typing are the browser's own input events, as a person's
4497
+ * would be. A password field's value never appears in a snapshot.
4498
+ */
4499
+
4500
+ /** @internal Transport provided by the client (POST /_internal/v2/browser/<op>). */
4501
+ type BrowserTransport = (op: string, body: unknown) => Promise<any>;
4502
+ /** @internal The client's `executeStep`, for the screenshot tool's description (`analyzeImage`). */
4503
+ type BrowserStepRunner = (stepType: string, step: Record<string, unknown>) => Promise<any>;
4504
+ /**
4505
+ * Which element an action is about: a ref from the latest snapshot (`'e12'`),
4506
+ * or a description of it.
4507
+ */
4508
+ type BrowserTarget = string | {
4509
+ /** A ref from the latest snapshot. */
4510
+ ref?: string;
4511
+ /** The element's accessible name or visible text. */
4512
+ text?: string;
4513
+ /** With `text`, only elements of this role (`button`, `link`, `textbox`…). */
4514
+ role?: string;
4515
+ /** A form control, by its label. */
4516
+ label?: string;
4517
+ /** A CSS selector, for when nothing else names it. */
4518
+ selector?: string;
4519
+ };
4520
+ interface BrowserViewport {
4521
+ width: number;
4522
+ height: number;
4523
+ deviceScaleFactor: number;
4524
+ mobile: boolean;
4525
+ }
4526
+ interface BrowserOpenOptions {
4527
+ /** A page to open straight away, as `goto(url)` would. */
4528
+ url?: string;
4529
+ /**
4530
+ * `'desktop'` (1280×800, the default), `'mobile'` (390×844 at 2×, with a
4531
+ * phone's user agent, touch, and taps for clicks), or an exact size in
4532
+ * pixels.
4533
+ */
4534
+ viewport?: 'desktop' | 'mobile' | {
4535
+ width: number;
4536
+ height: number;
4537
+ };
4538
+ /**
4539
+ * How long the session waits for its next action before closing itself.
4540
+ * 5 minutes by default; at least 30 seconds, at most 30 minutes.
4541
+ */
4542
+ idleTimeoutSeconds?: number;
4543
+ }
4544
+ /** The page after an action. */
4545
+ interface BrowserPage {
4546
+ url: string;
4547
+ title: string;
4548
+ /**
4549
+ * The page as a compact outline: one line per element worth knowing about
4550
+ * (`button "Sign in" [ref=e4]`), indented by nesting, with a ref on
4551
+ * everything that can be acted on.
4552
+ */
4553
+ snapshot: string;
4554
+ /** Alerts and confirms the page opened since the last action. Each was accepted. */
4555
+ dialogs?: {
4556
+ type: string;
4557
+ message: string;
4558
+ }[];
4559
+ }
4560
+ /** Where an element was, in viewport CSS pixels. */
4561
+ interface BrowserBox {
4562
+ x: number;
4563
+ y: number;
4564
+ width: number;
4565
+ height: number;
4566
+ }
4567
+ /** The page after an action on an element, and which element it was. */
4568
+ interface BrowserElementResult extends BrowserPage {
4569
+ /** The element as the snapshot names it (`button "Sign in" [ref=e4]`). */
4570
+ matched: string;
4571
+ /** Where it was when the action landed: for drawing a highlight on a screenshot. */
4572
+ box: BrowserBox;
4573
+ }
4574
+ interface BrowserScreenshot {
4575
+ data: Buffer;
4576
+ contentType: 'image/png';
4577
+ /** In CSS pixels. The image is `deviceScaleFactor` times this. */
4578
+ width: number;
4579
+ height: number;
4580
+ deviceScaleFactor: number;
4581
+ }
4582
+ /** A screenshot saved straight into a store: the stored file, and the page's size it was taken at. */
4583
+ type BrowserStoredScreenshot = StoredFile & {
4584
+ /** In CSS pixels. The image is `deviceScaleFactor` times this. */
4585
+ width: number;
4586
+ height: number;
4587
+ deviceScaleFactor: number;
4588
+ };
4589
+ interface BrowserToolsOptions {
4590
+ /**
4591
+ * Values the model may type without ever seeing them, by name:
4592
+ * `{ password: process.env.APP_PASSWORD! }` lets a `type` step name
4593
+ * "password" for a field it chooses, in place of the text.
4594
+ */
4595
+ secrets?: Record<string, string>;
4596
+ /**
4597
+ * A store for the screenshots the model takes. With one, the model also
4598
+ * gets `browser_screenshot`, which saves a screenshot here and answers with
4599
+ * a written description of it (an `analyzeImage` call), so it can see what
4600
+ * the page's outline doesn't say. Every shot is kept, and its key is in the
4601
+ * answer.
4602
+ */
4603
+ screenshots?: Store;
4604
+ }
4605
+ interface SessionInfo {
4606
+ id: string;
4607
+ viewport: BrowserViewport;
4608
+ expiresAt: number;
4609
+ }
4610
+ /** One open browser session. Get one from `browser.open()` or `browser.session(id)`. */
4611
+ declare class BrowserSession {
4612
+ private readonly call;
4613
+ private readonly steps;
4614
+ /** Pass to `browser.session(id)` from a later call to pick this session up again. */
4615
+ readonly id: string;
4616
+ readonly viewport: BrowserViewport;
4617
+ /** When the session closes, however busy it is. Milliseconds since epoch. */
4618
+ readonly expiresAt: number;
4619
+ /** @internal Use `browser.open()`. */
4620
+ constructor(info: SessionInfo, call: BrowserTransport, steps: BrowserStepRunner);
4621
+ /** Every action so far, chained: see `run`. */
4622
+ private queue;
4623
+ /**
4624
+ * One action at a time, in the order they were called. A session has one
4625
+ * page, so actions started together (a `Promise.all`, or a task agent's
4626
+ * tools from one turn, which run concurrently) would otherwise reach it in
4627
+ * whatever order their requests landed: a click on Submit before the field
4628
+ * it submits was typed.
4629
+ */
4630
+ private run;
4631
+ /**
4632
+ * One action's request, asked again under the same id when the answer
4633
+ * didn't get back (a dropped connection, an api pod rolling). The platform
4634
+ * runs an id once, so asking again waits on the action already under way
4635
+ * rather than clicking twice.
4636
+ */
4637
+ private send;
4638
+ /** Open a URL and wait for it to load. */
4639
+ goto(url: string): Promise<BrowserPage>;
4640
+ /** The page as it is now. */
4641
+ snapshot(): Promise<BrowserPage>;
4642
+ /** Click an element (tap, on a mobile viewport), and wait for what it started to settle. */
4643
+ click(target: BrowserTarget): Promise<BrowserElementResult>;
4644
+ /**
4645
+ * Click into a field and type. `clear` replaces what's there; `submit`
4646
+ * presses Enter after.
4647
+ */
4648
+ type(target: BrowserTarget, text: string, options?: {
4649
+ clear?: boolean;
4650
+ submit?: boolean;
4651
+ }): Promise<BrowserElementResult>;
4652
+ /** Choose an option of a `<select>`, by its text, value or label. */
4653
+ select(target: BrowserTarget, option: string): Promise<BrowserElementResult>;
4654
+ /**
4655
+ * Press a key on whatever has focus: `Enter`, `Tab`, `Escape`, `Backspace`,
4656
+ * `Delete`, the arrows, `PageUp`, `PageDown`, `Home`, `End`, `' '`, or any
4657
+ * single character.
4658
+ */
4659
+ press(key: string): Promise<BrowserPage>;
4660
+ /** Scroll an element into view, or the page by `by` pixels (most of a screen, by default). */
4661
+ scroll(options?: {
4662
+ to?: BrowserTarget;
4663
+ by?: number;
4664
+ }): Promise<BrowserPage>;
4665
+ /** Wait for text to appear on the page. Throws once `timeoutSeconds` (15 by default) pass without it. */
4666
+ waitFor(text: string, options?: {
4667
+ timeoutSeconds?: number;
4668
+ }): Promise<BrowserPage>;
4669
+ /**
4670
+ * A PNG of the viewport, or of the whole page with `fullPage`. With a
4671
+ * `store` it goes straight into that store, under `key` or a new one, and
4672
+ * you get the stored file back; without, you get the bytes, which a full
4673
+ * page past a few megabytes is too large for. The cursor is left out unless
4674
+ * `cursor` keeps it in, for a shot that shows where the last action landed.
4675
+ *
4676
+ * ```ts
4677
+ * const shot = await session.screenshot({ store: Shots, cursor: true });
4678
+ * await Steps.push({ screenshot: shot.key, highlight: clicked.box });
4679
+ * ```
4680
+ */
4681
+ screenshot(options?: {
4682
+ fullPage?: boolean;
4683
+ cursor?: boolean;
4684
+ }): Promise<BrowserScreenshot>;
4685
+ screenshot(options: {
4686
+ fullPage?: boolean;
4687
+ cursor?: boolean;
4688
+ store: Store;
4689
+ key?: string;
4690
+ }): Promise<BrowserStoredScreenshot>;
4691
+ /**
4692
+ * Run a function in the page and get back what it returns (as JSON). The
4693
+ * function is sent as source, so it can't use variables from your code:
4694
+ * pass what it needs as `arg`.
4695
+ *
4696
+ * ```ts
4697
+ * const prices = await session.evaluate(
4698
+ * (selector) => [...document.querySelectorAll(selector)].map((el) => el.textContent),
4699
+ * '.price',
4700
+ * );
4701
+ * ```
4702
+ */
4703
+ evaluate<R, A = undefined>(fn: (arg: A) => R, arg?: A): Promise<Awaited<R>>;
4704
+ /**
4705
+ * A tool for `mindstudio.runTask()` that drives this session, so a model can
4706
+ * browse. It takes a list of steps (open a URL, read the page, click, type,
4707
+ * choose an option, press a key, scroll, wait for text), runs them in order,
4708
+ * stops at the first that fails, and answers with each step's outcome and
4709
+ * the page after the last one. A model plans "fill the form and submit it"
4710
+ * as one call rather than one turn a field. Only the latest page stays in
4711
+ * the task's transcript (`supersedes`), so a long walk doesn't fill it.
4712
+ *
4713
+ * With `screenshots`, a second tool, `browser_screenshot`, lets the model
4714
+ * see the page: each shot goes into that store and the model reads a
4715
+ * description of it. Those answers all stay in the transcript, since each
4716
+ * names a kept file.
4717
+ */
4718
+ tools(options?: BrowserToolsOptions): TaskToolConfig[];
4719
+ /**
4720
+ * The screenshot tool: the shot into the store, then a vision model's
4721
+ * description of it. A description that fails still answers with the kept
4722
+ * shot's key, so the model can name it.
4723
+ */
4724
+ private describeScreen;
4725
+ /** The tool's steps, in order, stopping at the first that fails. */
4726
+ private runSteps;
4727
+ private runStep;
4728
+ /**
4729
+ * A grant to watch this session live, for your frontend: return it from a
4730
+ * method and hand its `token` to `browser.view()` in
4731
+ * `@mindstudio-ai/interface`. Whoever holds it sees the page until it
4732
+ * expires, so check your own access first, as for `events.grant()`.
4733
+ * `ttlSeconds` is clamped to 60 through 3600 (900 by default); the frontend
4734
+ * asks again through your method when it runs out.
4735
+ *
4736
+ * ```ts
4737
+ * export async function watchRun({ runId }: { runId: string }) {
4738
+ * auth.requireRole('admin');
4739
+ * const run = await Runs.get(runId);
4740
+ * const session = await browser.session(run.browserSessionId);
4741
+ * return session.grantView();
4742
+ * }
4743
+ * ```
4744
+ */
4745
+ grantView(options?: {
4746
+ ttlSeconds?: number;
4747
+ }): Promise<{
4748
+ token: string;
4749
+ expiresAt: number;
4750
+ ttlSeconds: number;
4751
+ }>;
4752
+ /** Close the session and its browser. */
4753
+ close(): Promise<void>;
4754
+ }
4755
+ /** The `browser` namespace object. */
4756
+ interface Browser {
4757
+ /**
4758
+ * Start a browser session, and wait for its browser to be ready: seconds
4759
+ * when one starts on a warm host, longer when it's the first in a while.
4760
+ */
4761
+ open(options?: BrowserOpenOptions): Promise<BrowserSession>;
4762
+ /**
4763
+ * Pick up a session an earlier call opened, by its `id`: a run that spans
4764
+ * several calls, or a cron that resumes where the last one stopped. Throws
4765
+ * `browser_session_not_found` once it has closed.
4766
+ */
4767
+ session(id: string): Promise<BrowserSession>;
4768
+ }
4769
+
4453
4770
  /**
4454
4771
  * Client for the MindStudio direct step execution API.
4455
4772
  *
@@ -4520,6 +4837,7 @@ declare class MindStudioAgent$1 {
4520
4837
  private _analytics;
4521
4838
  private _email;
4522
4839
  private _events;
4840
+ private _browser;
4523
4841
  /** @internal Auth type — 'internal' for CALLBACK_TOKEN (managed mode), 'apiKey' otherwise. */
4524
4842
  private _authType;
4525
4843
  /** @internal Usage source sent on step executions (from MINDSTUDIO_REQUEST_SOURCE).
@@ -4897,6 +5215,12 @@ declare class MindStudioAgent$1 {
4897
5215
  * ```
4898
5216
  */
4899
5217
  get events(): Events;
5218
+ /**
5219
+ * The `browser` namespace — a real Chrome your app drives. `open()` starts
5220
+ * a session; every action answers with the page afterward. See
5221
+ * {@link Browser}.
5222
+ */
5223
+ get browser(): Browser;
4900
5224
  /**
4901
5225
  * Outbound email: sending, the per-recipient delivery log, blast stats, and
4902
5226
  * this app's unsubscribe list.
@@ -4997,6 +5321,12 @@ declare class MindStudioAgent$1 {
4997
5321
  * `delivered: 0`, never as an HTTP failure.
4998
5322
  */
4999
5323
  private _eventsRequest;
5324
+ /**
5325
+ * @internal Transport for the `browser` namespace —
5326
+ * POST /_internal/v2/browser/<op> with the raw hook token. No 429 retry:
5327
+ * an action repeated is a second click.
5328
+ */
5329
+ private _browserRequest;
5000
5330
  private _analyticsRequest;
5001
5331
  /**
5002
5332
  * @internal Shared shape for the brokered `/_internal/v2/<ns>/<op>` data
@@ -12916,6 +13246,23 @@ declare const email: Email;
12916
13246
  * ```
12917
13247
  */
12918
13248
  declare const events: Events;
13249
+ /**
13250
+ * A real Chrome your app drives. `browser.open()` starts a session; every
13251
+ * action answers with the page afterward, as an outline with a ref on
13252
+ * everything you can act on. Hand `session.tools()` to `runTask` and a model
13253
+ * drives it instead. See {@link Browser}.
13254
+ *
13255
+ * @example
13256
+ * ```ts
13257
+ * import { browser } from '@mindstudio-ai/agent';
13258
+ *
13259
+ * const session = await browser.open({ url: 'https://example.com', viewport: 'mobile' });
13260
+ * await session.click({ role: 'link', text: 'Pricing' });
13261
+ * const shot = await session.screenshot({ fullPage: true });
13262
+ * await session.close();
13263
+ * ```
13264
+ */
13265
+ declare const browser: Browser;
12919
13266
  /**
12920
13267
  * Originating-session identity for this invocation — set when the method was
12921
13268
  * triggered by a conversational surface (a voice call's tool use, an
@@ -13026,5 +13373,5 @@ declare const prerender: {
13026
13373
  }>;
13027
13374
  };
13028
13375
 
13029
- export { AuthContext, HttpResponse, MAX_EVENT_PAYLOAD_CHARS, MindStudioAgent, MindStudioError, Query, RESPONSE_BODY_MAX_BYTES, RawQuery, Roles, Store, Table, analytics, auth, blockTypeAliases, dataSources, db, mindstudio as default, defineJewel, defineMapper, defineReader, deletes, documents, email, events, files, getRequestContext, mindstudio, monacoSnippets, passthrough, prerender, reportIssue, resolveUser, respond, runWithContext, session, skip, stepMetadata, stream, voice, waitUntil };
13030
- export type { Accessor, ActiveCampaignAddNoteStepInput, ActiveCampaignAddNoteStepOutput, ActiveCampaignCreateContactStepInput, ActiveCampaignCreateContactStepOutput, AddSubtitlesToVideoStepInput, AddSubtitlesToVideoStepOutput, AddThumbnailToVideoStepInput, AddThumbnailToVideoStepOutput, AgentInfo, AgentOptions, AggregateRow, AggregateSelect, AggregateTerm, AiSourceVendor, AirtableCreateUpdateRecordStepInput, AirtableCreateUpdateRecordStepOutput, AirtableDeleteRecordStepInput, AirtableDeleteRecordStepOutput, AirtableGetRecordStepInput, AirtableGetRecordStepOutput, AirtableGetTableRecordsStepInput, AirtableGetTableRecordsStepOutput, Analytics, AnalyticsDateRange, AnalyticsDimension, AnalyticsFilter, AnalyticsFilterOp, AnalyticsGranularity, AnalyticsMetric, AnalyticsQueryResponse, AnalyticsQueryResultRow, AnalyticsQuerySpec, AnalyticsReadOptions, AnalyzeImageStepInput, AnalyzeImageStepOutput, AnalyzeVideoStepInput, AnalyzeVideoStepOutput, AppAuthContext, AppContextResult, AppDatabase, AppDatabaseColumnSchema, AppDatabaseTable, AppRoleAssignment, AuthTableConfig, BatchStepInput, BatchStepResult, Batchable, CaptureThumbnailStepInput, CaptureThumbnailStepOutput, CheckAppRoleStepInput, CheckAppRoleStepOutput, CodaCreateUpdatePageStepInput, CodaCreateUpdatePageStepOutput, CodaCreateUpdateRowStepInput, CodaCreateUpdateRowStepOutput, CodaFindRowStepInput, CodaFindRowStepOutput, CodaGetPageStepInput, CodaGetPageStepOutput, CodaGetTableRowsStepInput, CodaGetTableRowsStepOutput, Connection, ConnectorActionDetail, ConnectorService, ConvertPdfToImagesStepInput, ConvertPdfToImagesStepOutput, CrawlerBucket, CrawlerHit, CrawlerOverview, CreateDataSourceStepInput, CreateDataSourceStepOutput, CreateGmailDraftStepInput, CreateGmailDraftStepOutput, CreateGoogleCalendarEventStepInput, CreateGoogleCalendarEventStepOutput, CreateGoogleDocStepInput, CreateGoogleDocStepOutput, CreateGoogleSheetStepInput, CreateGoogleSheetStepOutput, Db, DecomposeImageStepInput, DecomposeImageStepOutput, DefineStoreOptions, DefineTableOptions, DeleteDataSourceDocumentStepInput, DeleteDataSourceDocumentStepOutput, DeleteDataSourceStepInput, DeleteDataSourceStepOutput, DeleteGmailEmailStepInput, DeleteGmailEmailStepOutput, DeleteGoogleCalendarEventStepInput, DeleteGoogleCalendarEventStepOutput, DeleteGoogleSheetRowsStepInput, DeleteGoogleSheetRowsStepOutput, DetectChangesStepInput, DetectChangesStepOutput, DetectPIIStepInput, DetectPIIStepOutput, DownloadVideoStepInput, DownloadVideoStepOutput, EnhanceImageGenerationPromptStepInput, EnhanceImageGenerationPromptStepOutput, EnhanceVideoGenerationPromptStepInput, EnhanceVideoGenerationPromptStepOutput, EnrichPersonStepInput, EnrichPersonStepOutput, EvaluateDecisionStepInput, EvaluateDecisionStepOutput, EventGrantOptions, EventGrantResult, Events, ExecuteStepBatchOptions, ExecuteStepBatchResult, ExtractAudioFromVideoStepInput, ExtractAudioFromVideoStepOutput, ExtractTextStepInput, ExtractTextStepOutput, FetchDataSourceDocumentStepInput, FetchDataSourceDocumentStepOutput, FetchGoogleDocStepInput, FetchGoogleDocStepOutput, FetchGoogleSheetStepInput, FetchGoogleSheetStepOutput, FetchSlackChannelHistoryStepInput, FetchSlackChannelHistoryStepOutput, FetchYoutubeCaptionsStepInput, FetchYoutubeCaptionsStepOutput, FetchYoutubeChannelStepInput, FetchYoutubeChannelStepOutput, FetchYoutubeCommentsStepInput, FetchYoutubeCommentsStepOutput, FetchYoutubeVideoStepInput, FetchYoutubeVideoStepOutput, FileAccess, Files, FromSchema, Generate3dModelStepInput, Generate3dModelStepOutput, GenerateAssetStepInput, GenerateAssetStepOutput, GenerateImageStepInput, GenerateImageStepOutput, GenerateLipsyncStepInput, GenerateLipsyncStepOutput, GenerateMusicStepInput, GenerateMusicStepOutput, GeneratePdfStepInput, GeneratePdfStepOutput, GenerateSoundStepInput, GenerateSoundStepOutput, GenerateStaticVideoFromImageStepInput, GenerateStaticVideoFromImageStepOutput, GenerateTextStepInput, GenerateTextStepOutput, GenerateVideoStepInput, GenerateVideoStepOutput, GetGmailAttachmentsStepInput, GetGmailAttachmentsStepOutput, GetGmailDraftStepInput, GetGmailDraftStepOutput, GetGmailEmailStepInput, GetGmailEmailStepOutput, GetGmailUnreadCountStepInput, GetGmailUnreadCountStepOutput, GetGoogleCalendarEventStepInput, GetGoogleCalendarEventStepOutput, GetGoogleDriveFileStepInput, GetGoogleDriveFileStepOutput, GetGoogleSheetInfoStepInput, GetGoogleSheetInfoStepOutput, GetMediaMetadataStepInput, GetMediaMetadataStepOutput, GetStreamOptions, HttpResponseFile, HttpResponseHeaders, HttpResponseInit, HttpResponseOptions, HubspotCreateCompanyStepInput, HubspotCreateCompanyStepOutput, HubspotCreateContactStepInput, HubspotCreateContactStepOutput, HubspotGetCompanyStepInput, HubspotGetCompanyStepOutput, HubspotGetContactStepInput, HubspotGetContactStepOutput, HunterApiCompanyEnrichmentStepInput, HunterApiCompanyEnrichmentStepOutput, HunterApiDomainSearchStepInput, HunterApiDomainSearchStepOutput, HunterApiEmailFinderStepInput, HunterApiEmailFinderStepOutput, HunterApiEmailVerificationStepInput, HunterApiEmailVerificationStepOutput, HunterApiPersonEnrichmentStepInput, HunterApiPersonEnrichmentStepOutput, ImageFaceSwapStepInput, ImageFaceSwapStepOutput, ImageRemoveWatermarkStepInput, ImageRemoveWatermarkStepOutput, ImportFromUrlStepInput, ImportFromUrlStepOutput, InsertVideoClipsStepInput, InsertVideoClipsStepOutput, Jewel, JewelConfig, JewelGradeContext, JewelMethod, JewelMethodInput, JewelPairRecord, JewelProposal, JewelProposeOutcome, JewelProposeResult, JewelQueueItem, JewelQueueResolution, JewelQueueResolveResult, JewelRunParams, JewelVerdict, JewelsApi, JsonObjectSchema, JsonSchema, JsonSchemaTypeName, ListAgentsResult, ListDataSourcesStepInput, ListDataSourcesStepOutput, ListGmailDraftsStepInput, ListGmailDraftsStepOutput, ListGmailLabelsStepInput, ListGmailLabelsStepOutput, ListGoogleCalendarEventsStepInput, ListGoogleCalendarEventsStepOutput, ListGoogleDriveFilesStepInput, ListGoogleDriveFilesStepOutput, ListOptions, ListRecentGmailEmailsStepInput, ListRecentGmailEmailsStepOutput, LiveNow, LogicStepInput, LogicStepOutput, MakeDotComRunScenarioStepInput, MakeDotComRunScenarioStepOutput, MapObject, MapOutcome, MapPoint, MapRunObject, MapRunOutcome, MapRunParams, MapRunRecord, MapRunResult, MappedDocument, Mapper, MapperConfig, MergeAudioStepInput, MergeAudioStepOutput, MergeVideosStepInput, MergeVideosStepOutput, MeshyAnimateStepInput, MeshyAnimateStepOutput, MeshyImageTo3dStepInput, MeshyImageTo3dStepOutput, MeshyRemeshStepInput, MeshyRemeshStepOutput, MeshyRigStepInput, MeshyRigStepOutput, MeshyTextTo3dStepInput, MeshyTextTo3dStepOutput, MeshyTextureStepInput, MeshyTextureStepOutput, MindStudioModel, MindStudioModelSummary, MixAudioIntoVideoStepInput, MixAudioIntoVideoStepOutput, ModelType, MonacoSnippet, MonacoSnippetField, MonacoSnippetFieldType, MuteVideoStepInput, MuteVideoStepOutput, N8nRunNodeStepInput, N8nRunNodeStepOutput, NotionCreatePageStepInput, NotionCreatePageStepOutput, NotionUpdatePageStepInput, NotionUpdatePageStepOutput, PackagedWorkflow, PackagedWorkflowInput, PackagedWorkflowSignature, PeopleSearchStepInput, PeopleSearchStepOutput, PostToLinkedInStepInput, PostToLinkedInStepOutput, PostToSlackChannelStepInput, PostToSlackChannelStepOutput, PostToXStepInput, PostToXStepOutput, PostToZapierStepInput, PostToZapierStepOutput, Predicate, PushInput, PutOptions, PutStream, QueryDataSourceStepInput, QueryDataSourceStepOutput, QueryExternalDatabaseStepInput, QueryExternalDatabaseStepOutput, QuickbooksApiRequestStepInput, QuickbooksApiRequestStepOutput, ReadDelivery, ReadRunParams, ReadRunRecord, ReadRunResult, Reader, ReaderConfig, ReaderDocument, RedactPIIStepInput, RedactPIIStepOutput, RemoveBackgroundFromImageStepInput, RemoveBackgroundFromImageStepOutput, RenderVideoFromHtmlCompositionStepInput, RenderVideoFromHtmlCompositionStepOutput, ReplyToGmailEmailStepInput, ReplyToGmailEmailStepOutput, ReportIssueInput, ReportedIssue, RequestContext, ResizeVideoStepInput, ResizeVideoStepOutput, ResolvedUser, RunAgentOptions, RunAgentResult, RunFfmpegStepInput, RunFfmpegStepOutput, RunFromConnectorRegistryStepInput, RunFromConnectorRegistryStepOutput, RunTaskOptions, RunTaskOptionsWithExample, RunTaskOptionsWithSchema, RunTaskResult, SchemaValidationError, ScrapeLinkedInCompanyStepInput, ScrapeLinkedInCompanyStepOutput, ScrapeLinkedInProfileStepInput, ScrapeLinkedInProfileStepOutput, ScrapeUrlStepInput, ScrapeUrlStepOutput, ScrapeXPostStepInput, ScrapeXPostStepOutput, ScrapeXProfileStepInput, ScrapeXProfileStepOutput, ScreenshotUrlStepInput, ScreenshotUrlStepOutput, SearchGmailEmailsStepInput, SearchGmailEmailsStepOutput, SearchGoogleCalendarEventsStepInput, SearchGoogleCalendarEventsStepOutput, SearchGoogleDriveStepInput, SearchGoogleDriveStepOutput, SearchGoogleImagesStepInput, SearchGoogleImagesStepOutput, SearchGoogleNewsStepInput, SearchGoogleNewsStepOutput, SearchGoogleStepInput, SearchGoogleStepOutput, SearchGoogleTrendsStepInput, SearchGoogleTrendsStepOutput, SearchPerplexityStepInput, SearchPerplexityStepOutput, SearchXPostsStepInput, SearchXPostsStepOutput, SearchYoutubeStepInput, SearchYoutubeStepOutput, SearchYoutubeTrendsStepInput, SearchYoutubeTrendsStepOutput, SendEmailStepInput, SendEmailStepOutput, SendGmailDraftStepInput, SendGmailDraftStepOutput, SendGmailMessageStepInput, SendGmailMessageStepOutput, SendSMSStepInput, SendSMSStepOutput, SendSlackDirectMessageStepInput, SendSlackDirectMessageStepOutput, SessionContext, SetGmailReadStatusStepInput, SetGmailReadStatusStepOutput, SetRunTitleStepInput, SetRunTitleStepOutput, SetVariableStepInput, SetVariableStepOutput, SettableSystemColumns, StepCostEstimateEntry, StepExecutionMeta, StepExecutionOptions, StepExecutionResult, StepInputMap, StepLogEvent, StepMetadata, StepMethods, StepName, StepOutputMap, StoredFile, SystemFields, TaskEvent, TaskToolCall, TaskToolConfig, TaskUsage, TextToSpeechStepInput, TextToSpeechStepOutput, TopSource, TranscribeAudioStepInput, TranscribeAudioStepOutput, TrimMediaStepInput, TrimMediaStepOutput, TypesafeEvaluateStepInput, TypesafeEvaluateStepOutput, UpdateGmailLabelsStepInput, UpdateGmailLabelsStepOutput, UpdateGoogleCalendarEventStepInput, UpdateGoogleCalendarEventStepOutput, UpdateGoogleDocStepInput, UpdateGoogleDocStepOutput, UpdateGoogleSheetStepInput, UpdateGoogleSheetStepOutput, UpdateInput, UploadDataSourceDocumentStepInput, UploadDataSourceDocumentStepOutput, UploadFileResult, UploadToken, UpscaleImageStepInput, UpscaleImageStepOutput, UpscaleVideoStepInput, UpscaleVideoStepOutput, User, UserInfoResult, UserMessageStepInput, UserMessageStepOutput, VideoFaceSwapStepInput, VideoFaceSwapStepOutput, VideoRemoveBackgroundStepInput, VideoRemoveBackgroundStepOutput, VideoRemoveWatermarkStepInput, VideoRemoveWatermarkStepOutput, Voice, VoiceCallResult, WatermarkImageStepInput, WatermarkImageStepOutput, WatermarkVideoStepInput, WatermarkVideoStepOutput, YouDotComFinanceResearchStepInput, YouDotComFinanceResearchStepOutput, YouDotComGetPageContentStepInput, YouDotComGetPageContentStepOutput, YouDotComLiveNewsStepInput, YouDotComLiveNewsStepOutput, YouDotComWebResearchStepInput, YouDotComWebResearchStepOutput, YouDotComWebSearchStepInput, YouDotComWebSearchStepOutput };
13376
+ export { AuthContext, BrowserSession, HttpResponse, MAX_EVENT_PAYLOAD_CHARS, MindStudioAgent, MindStudioError, Query, RESPONSE_BODY_MAX_BYTES, RawQuery, Roles, Store, Table, analytics, auth, blockTypeAliases, browser, dataSources, db, mindstudio as default, defineJewel, defineMapper, defineReader, deletes, documents, email, events, files, getRequestContext, mindstudio, monacoSnippets, passthrough, prerender, reportIssue, resolveUser, respond, runWithContext, session, skip, stepMetadata, stream, voice, waitUntil };
13377
+ export type { Accessor, ActiveCampaignAddNoteStepInput, ActiveCampaignAddNoteStepOutput, ActiveCampaignCreateContactStepInput, ActiveCampaignCreateContactStepOutput, AddSubtitlesToVideoStepInput, AddSubtitlesToVideoStepOutput, AddThumbnailToVideoStepInput, AddThumbnailToVideoStepOutput, AgentInfo, AgentOptions, AggregateRow, AggregateSelect, AggregateTerm, AiSourceVendor, AirtableCreateUpdateRecordStepInput, AirtableCreateUpdateRecordStepOutput, AirtableDeleteRecordStepInput, AirtableDeleteRecordStepOutput, AirtableGetRecordStepInput, AirtableGetRecordStepOutput, AirtableGetTableRecordsStepInput, AirtableGetTableRecordsStepOutput, Analytics, AnalyticsDateRange, AnalyticsDimension, AnalyticsFilter, AnalyticsFilterOp, AnalyticsGranularity, AnalyticsMetric, AnalyticsQueryResponse, AnalyticsQueryResultRow, AnalyticsQuerySpec, AnalyticsReadOptions, AnalyzeImageStepInput, AnalyzeImageStepOutput, AnalyzeVideoStepInput, AnalyzeVideoStepOutput, AppAuthContext, AppContextResult, AppDatabase, AppDatabaseColumnSchema, AppDatabaseTable, AppRoleAssignment, AuthTableConfig, BatchStepInput, BatchStepResult, Batchable, Browser, BrowserBox, BrowserElementResult, BrowserOpenOptions, BrowserPage, BrowserScreenshot, BrowserStoredScreenshot, BrowserTarget, BrowserToolsOptions, BrowserViewport, CaptureThumbnailStepInput, CaptureThumbnailStepOutput, CheckAppRoleStepInput, CheckAppRoleStepOutput, CodaCreateUpdatePageStepInput, CodaCreateUpdatePageStepOutput, CodaCreateUpdateRowStepInput, CodaCreateUpdateRowStepOutput, CodaFindRowStepInput, CodaFindRowStepOutput, CodaGetPageStepInput, CodaGetPageStepOutput, CodaGetTableRowsStepInput, CodaGetTableRowsStepOutput, Connection, ConnectorActionDetail, ConnectorService, ConvertPdfToImagesStepInput, ConvertPdfToImagesStepOutput, CrawlerBucket, CrawlerHit, CrawlerOverview, CreateDataSourceStepInput, CreateDataSourceStepOutput, CreateGmailDraftStepInput, CreateGmailDraftStepOutput, CreateGoogleCalendarEventStepInput, CreateGoogleCalendarEventStepOutput, CreateGoogleDocStepInput, CreateGoogleDocStepOutput, CreateGoogleSheetStepInput, CreateGoogleSheetStepOutput, Db, DecomposeImageStepInput, DecomposeImageStepOutput, DefineStoreOptions, DefineTableOptions, DeleteDataSourceDocumentStepInput, DeleteDataSourceDocumentStepOutput, DeleteDataSourceStepInput, DeleteDataSourceStepOutput, DeleteGmailEmailStepInput, DeleteGmailEmailStepOutput, DeleteGoogleCalendarEventStepInput, DeleteGoogleCalendarEventStepOutput, DeleteGoogleSheetRowsStepInput, DeleteGoogleSheetRowsStepOutput, DetectChangesStepInput, DetectChangesStepOutput, DetectPIIStepInput, DetectPIIStepOutput, DownloadVideoStepInput, DownloadVideoStepOutput, EnhanceImageGenerationPromptStepInput, EnhanceImageGenerationPromptStepOutput, EnhanceVideoGenerationPromptStepInput, EnhanceVideoGenerationPromptStepOutput, EnrichPersonStepInput, EnrichPersonStepOutput, EvaluateDecisionStepInput, EvaluateDecisionStepOutput, EventGrantOptions, EventGrantResult, Events, ExecuteStepBatchOptions, ExecuteStepBatchResult, ExtractAudioFromVideoStepInput, ExtractAudioFromVideoStepOutput, ExtractTextStepInput, ExtractTextStepOutput, FetchDataSourceDocumentStepInput, FetchDataSourceDocumentStepOutput, FetchGoogleDocStepInput, FetchGoogleDocStepOutput, FetchGoogleSheetStepInput, FetchGoogleSheetStepOutput, FetchSlackChannelHistoryStepInput, FetchSlackChannelHistoryStepOutput, FetchYoutubeCaptionsStepInput, FetchYoutubeCaptionsStepOutput, FetchYoutubeChannelStepInput, FetchYoutubeChannelStepOutput, FetchYoutubeCommentsStepInput, FetchYoutubeCommentsStepOutput, FetchYoutubeVideoStepInput, FetchYoutubeVideoStepOutput, FileAccess, Files, FromSchema, Generate3dModelStepInput, Generate3dModelStepOutput, GenerateAssetStepInput, GenerateAssetStepOutput, GenerateImageStepInput, GenerateImageStepOutput, GenerateLipsyncStepInput, GenerateLipsyncStepOutput, GenerateMusicStepInput, GenerateMusicStepOutput, GeneratePdfStepInput, GeneratePdfStepOutput, GenerateSoundStepInput, GenerateSoundStepOutput, GenerateStaticVideoFromImageStepInput, GenerateStaticVideoFromImageStepOutput, GenerateTextStepInput, GenerateTextStepOutput, GenerateVideoStepInput, GenerateVideoStepOutput, GetGmailAttachmentsStepInput, GetGmailAttachmentsStepOutput, GetGmailDraftStepInput, GetGmailDraftStepOutput, GetGmailEmailStepInput, GetGmailEmailStepOutput, GetGmailUnreadCountStepInput, GetGmailUnreadCountStepOutput, GetGoogleCalendarEventStepInput, GetGoogleCalendarEventStepOutput, GetGoogleDriveFileStepInput, GetGoogleDriveFileStepOutput, GetGoogleSheetInfoStepInput, GetGoogleSheetInfoStepOutput, GetMediaMetadataStepInput, GetMediaMetadataStepOutput, GetStreamOptions, HttpResponseFile, HttpResponseHeaders, HttpResponseInit, HttpResponseOptions, HubspotCreateCompanyStepInput, HubspotCreateCompanyStepOutput, HubspotCreateContactStepInput, HubspotCreateContactStepOutput, HubspotGetCompanyStepInput, HubspotGetCompanyStepOutput, HubspotGetContactStepInput, HubspotGetContactStepOutput, HunterApiCompanyEnrichmentStepInput, HunterApiCompanyEnrichmentStepOutput, HunterApiDomainSearchStepInput, HunterApiDomainSearchStepOutput, HunterApiEmailFinderStepInput, HunterApiEmailFinderStepOutput, HunterApiEmailVerificationStepInput, HunterApiEmailVerificationStepOutput, HunterApiPersonEnrichmentStepInput, HunterApiPersonEnrichmentStepOutput, ImageFaceSwapStepInput, ImageFaceSwapStepOutput, ImageRemoveWatermarkStepInput, ImageRemoveWatermarkStepOutput, ImportFromUrlStepInput, ImportFromUrlStepOutput, InsertVideoClipsStepInput, InsertVideoClipsStepOutput, Jewel, JewelConfig, JewelGradeContext, JewelMethod, JewelMethodInput, JewelPairRecord, JewelProposal, JewelProposeOutcome, JewelProposeResult, JewelQueueItem, JewelQueueResolution, JewelQueueResolveResult, JewelRunParams, JewelVerdict, JewelsApi, JsonObjectSchema, JsonSchema, JsonSchemaTypeName, ListAgentsResult, ListDataSourcesStepInput, ListDataSourcesStepOutput, ListGmailDraftsStepInput, ListGmailDraftsStepOutput, ListGmailLabelsStepInput, ListGmailLabelsStepOutput, ListGoogleCalendarEventsStepInput, ListGoogleCalendarEventsStepOutput, ListGoogleDriveFilesStepInput, ListGoogleDriveFilesStepOutput, ListOptions, ListRecentGmailEmailsStepInput, ListRecentGmailEmailsStepOutput, LiveNow, LogicStepInput, LogicStepOutput, MakeDotComRunScenarioStepInput, MakeDotComRunScenarioStepOutput, MapObject, MapOutcome, MapPoint, MapRunObject, MapRunOutcome, MapRunParams, MapRunRecord, MapRunResult, MappedDocument, Mapper, MapperConfig, MergeAudioStepInput, MergeAudioStepOutput, MergeVideosStepInput, MergeVideosStepOutput, MeshyAnimateStepInput, MeshyAnimateStepOutput, MeshyImageTo3dStepInput, MeshyImageTo3dStepOutput, MeshyRemeshStepInput, MeshyRemeshStepOutput, MeshyRigStepInput, MeshyRigStepOutput, MeshyTextTo3dStepInput, MeshyTextTo3dStepOutput, MeshyTextureStepInput, MeshyTextureStepOutput, MindStudioModel, MindStudioModelSummary, MixAudioIntoVideoStepInput, MixAudioIntoVideoStepOutput, ModelType, MonacoSnippet, MonacoSnippetField, MonacoSnippetFieldType, MuteVideoStepInput, MuteVideoStepOutput, N8nRunNodeStepInput, N8nRunNodeStepOutput, NotionCreatePageStepInput, NotionCreatePageStepOutput, NotionUpdatePageStepInput, NotionUpdatePageStepOutput, PackagedWorkflow, PackagedWorkflowInput, PackagedWorkflowSignature, PeopleSearchStepInput, PeopleSearchStepOutput, PostToLinkedInStepInput, PostToLinkedInStepOutput, PostToSlackChannelStepInput, PostToSlackChannelStepOutput, PostToXStepInput, PostToXStepOutput, PostToZapierStepInput, PostToZapierStepOutput, Predicate, PushInput, PutOptions, PutStream, QueryDataSourceStepInput, QueryDataSourceStepOutput, QueryExternalDatabaseStepInput, QueryExternalDatabaseStepOutput, QuickbooksApiRequestStepInput, QuickbooksApiRequestStepOutput, ReadDelivery, ReadRunParams, ReadRunRecord, ReadRunResult, Reader, ReaderConfig, ReaderDocument, RedactPIIStepInput, RedactPIIStepOutput, RemoveBackgroundFromImageStepInput, RemoveBackgroundFromImageStepOutput, RenderVideoFromHtmlCompositionStepInput, RenderVideoFromHtmlCompositionStepOutput, ReplyToGmailEmailStepInput, ReplyToGmailEmailStepOutput, ReportIssueInput, ReportedIssue, RequestContext, ResizeVideoStepInput, ResizeVideoStepOutput, ResolvedUser, RunAgentOptions, RunAgentResult, RunFfmpegStepInput, RunFfmpegStepOutput, RunFromConnectorRegistryStepInput, RunFromConnectorRegistryStepOutput, RunTaskOptions, RunTaskOptionsWithExample, RunTaskOptionsWithSchema, RunTaskResult, SchemaValidationError, ScrapeLinkedInCompanyStepInput, ScrapeLinkedInCompanyStepOutput, ScrapeLinkedInProfileStepInput, ScrapeLinkedInProfileStepOutput, ScrapeUrlStepInput, ScrapeUrlStepOutput, ScrapeXPostStepInput, ScrapeXPostStepOutput, ScrapeXProfileStepInput, ScrapeXProfileStepOutput, ScreenshotUrlStepInput, ScreenshotUrlStepOutput, SearchGmailEmailsStepInput, SearchGmailEmailsStepOutput, SearchGoogleCalendarEventsStepInput, SearchGoogleCalendarEventsStepOutput, SearchGoogleDriveStepInput, SearchGoogleDriveStepOutput, SearchGoogleImagesStepInput, SearchGoogleImagesStepOutput, SearchGoogleNewsStepInput, SearchGoogleNewsStepOutput, SearchGoogleStepInput, SearchGoogleStepOutput, SearchGoogleTrendsStepInput, SearchGoogleTrendsStepOutput, SearchPerplexityStepInput, SearchPerplexityStepOutput, SearchXPostsStepInput, SearchXPostsStepOutput, SearchYoutubeStepInput, SearchYoutubeStepOutput, SearchYoutubeTrendsStepInput, SearchYoutubeTrendsStepOutput, SendEmailStepInput, SendEmailStepOutput, SendGmailDraftStepInput, SendGmailDraftStepOutput, SendGmailMessageStepInput, SendGmailMessageStepOutput, SendSMSStepInput, SendSMSStepOutput, SendSlackDirectMessageStepInput, SendSlackDirectMessageStepOutput, SessionContext, SetGmailReadStatusStepInput, SetGmailReadStatusStepOutput, SetRunTitleStepInput, SetRunTitleStepOutput, SetVariableStepInput, SetVariableStepOutput, SettableSystemColumns, StepCostEstimateEntry, StepExecutionMeta, StepExecutionOptions, StepExecutionResult, StepInputMap, StepLogEvent, StepMetadata, StepMethods, StepName, StepOutputMap, StoredFile, SystemFields, TaskEvent, TaskToolCall, TaskToolConfig, TaskUsage, TextToSpeechStepInput, TextToSpeechStepOutput, TopSource, TranscribeAudioStepInput, TranscribeAudioStepOutput, TrimMediaStepInput, TrimMediaStepOutput, TypesafeEvaluateStepInput, TypesafeEvaluateStepOutput, UpdateGmailLabelsStepInput, UpdateGmailLabelsStepOutput, UpdateGoogleCalendarEventStepInput, UpdateGoogleCalendarEventStepOutput, UpdateGoogleDocStepInput, UpdateGoogleDocStepOutput, UpdateGoogleSheetStepInput, UpdateGoogleSheetStepOutput, UpdateInput, UploadDataSourceDocumentStepInput, UploadDataSourceDocumentStepOutput, UploadFileResult, UploadToken, UpscaleImageStepInput, UpscaleImageStepOutput, UpscaleVideoStepInput, UpscaleVideoStepOutput, User, UserInfoResult, UserMessageStepInput, UserMessageStepOutput, VideoFaceSwapStepInput, VideoFaceSwapStepOutput, VideoRemoveBackgroundStepInput, VideoRemoveBackgroundStepOutput, VideoRemoveWatermarkStepInput, VideoRemoveWatermarkStepOutput, Voice, VoiceCallResult, WatermarkImageStepInput, WatermarkImageStepOutput, WatermarkVideoStepInput, WatermarkVideoStepOutput, YouDotComFinanceResearchStepInput, YouDotComFinanceResearchStepOutput, YouDotComGetPageContentStepInput, YouDotComGetPageContentStepOutput, YouDotComLiveNewsStepInput, YouDotComLiveNewsStepOutput, YouDotComWebResearchStepInput, YouDotComWebResearchStepOutput, YouDotComWebSearchStepInput, YouDotComWebSearchStepOutput };