@mindstudio-ai/agent 0.1.170 → 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/CHANGELOG.md +22 -0
- package/dist/cli.js +587 -21
- package/dist/index.d.ts +398 -14
- package/dist/index.js +580 -13
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +587 -21
- package/llms.txt +24 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -991,7 +991,8 @@ declare const Roles: Record<string, string>;
|
|
|
991
991
|
*
|
|
992
992
|
* Key concepts:
|
|
993
993
|
* - **SystemFields**: columns managed by the platform (id, timestamps, audit).
|
|
994
|
-
*
|
|
994
|
+
* Never part of a table's own write input; a write may still set the
|
|
995
|
+
* timestamps and the author (`SettableSystemColumns`), never `id`.
|
|
995
996
|
* - **Predicate / Accessor**: callback shapes used in filter(), sortBy(), etc.
|
|
996
997
|
* Predicates are compiled to SQL WHERE clauses when possible, with a JS
|
|
997
998
|
* fallback for complex expressions.
|
|
@@ -1005,10 +1006,11 @@ declare const Roles: Record<string, string>;
|
|
|
1005
1006
|
* - `id`: UUID primary key, generated on INSERT
|
|
1006
1007
|
* - `created_at`: unix timestamp (ms), set on INSERT
|
|
1007
1008
|
* - `updated_at`: unix timestamp (ms), set on INSERT and every UPDATE
|
|
1008
|
-
* - `last_updated_by`:
|
|
1009
|
+
* - `last_updated_by`: the user who last wrote this row
|
|
1009
1010
|
*
|
|
1010
|
-
* Both snake_case (platform convention) and camelCase (legacy) are
|
|
1011
|
-
*
|
|
1011
|
+
* Both snake_case (platform convention) and camelCase (legacy) are left
|
|
1012
|
+
* out of a table's own input types, to support either naming convention in
|
|
1013
|
+
* table interfaces. The snake_case ones come back as `SettableSystemColumns`.
|
|
1012
1014
|
*/
|
|
1013
1015
|
type SystemFields = 'id' | 'created_at' | 'createdAt' | 'updated_at' | 'updatedAt' | 'last_updated_by' | 'lastUpdatedBy';
|
|
1014
1016
|
/**
|
|
@@ -1024,22 +1026,39 @@ interface SystemColumns {
|
|
|
1024
1026
|
last_updated_by: string;
|
|
1025
1027
|
}
|
|
1026
1028
|
/**
|
|
1027
|
-
*
|
|
1028
|
-
*
|
|
1029
|
+
* The system columns a write may set, to carry a record's history in (an
|
|
1030
|
+
* import, a scenario's seed data). Whichever a write leaves out the platform
|
|
1031
|
+
* fills in: `created_at` and `updated_at` with now, and `last_updated_by` with
|
|
1032
|
+
* the signed-in user (or nobody). An update that leaves them out advances
|
|
1033
|
+
* `updated_at` and stamps `last_updated_by`, as every write does. `id` is
|
|
1034
|
+
* always the platform's.
|
|
1035
|
+
*/
|
|
1036
|
+
interface SettableSystemColumns {
|
|
1037
|
+
/** When the row was created, unix ms. */
|
|
1038
|
+
created_at?: number;
|
|
1039
|
+
/** When the row was last changed, unix ms. */
|
|
1040
|
+
updated_at?: number;
|
|
1041
|
+
/** The id of the user who last changed the row. */
|
|
1042
|
+
last_updated_by?: string;
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Input type for `Table.push()`. Excludes `id`, which the platform
|
|
1046
|
+
* generates, and takes the other system columns optionally
|
|
1047
|
+
* (`SettableSystemColumns`). Optional fields in T remain optional.
|
|
1029
1048
|
*
|
|
1030
1049
|
* @example
|
|
1031
1050
|
* ```ts
|
|
1032
1051
|
* // If Order has { item: string; amount: number }
|
|
1033
1052
|
* // then PushInput<Order> is { item: string; amount: number }
|
|
1034
|
-
* //
|
|
1053
|
+
* // plus optional created_at, updated_at and last_updated_by
|
|
1035
1054
|
* ```
|
|
1036
1055
|
*/
|
|
1037
|
-
type PushInput<T> = Omit<T, SystemFields
|
|
1056
|
+
type PushInput<T> = Omit<T, SystemFields> & SettableSystemColumns;
|
|
1038
1057
|
/**
|
|
1039
|
-
* Input type for `Table.update()`.
|
|
1040
|
-
*
|
|
1058
|
+
* Input type for `Table.update()`. Every field is optional (partial update),
|
|
1059
|
+
* the settable system columns included; `id` is never written.
|
|
1041
1060
|
*/
|
|
1042
|
-
type UpdateInput<T> = Partial<Omit<T, SystemFields
|
|
1061
|
+
type UpdateInput<T> = Partial<Omit<T, SystemFields>> & SettableSystemColumns;
|
|
1043
1062
|
/**
|
|
1044
1063
|
* A predicate function for filtering rows. Receives a typed row and
|
|
1045
1064
|
* returns a boolean.
|
|
@@ -1660,7 +1679,12 @@ declare class Table<T> {
|
|
|
1660
1679
|
select<K extends keyof T & string>(...columns: K[]): Query<Pick<T, K>>;
|
|
1661
1680
|
/**
|
|
1662
1681
|
* Insert one or more rows. Returns the created row(s) with system fields
|
|
1663
|
-
* populated (id,
|
|
1682
|
+
* populated (id, created_at, updated_at, last_updated_by).
|
|
1683
|
+
*
|
|
1684
|
+
* A row may give its own `created_at`, `updated_at` and `last_updated_by`
|
|
1685
|
+
* (an import, a scenario's history); the platform fills in whichever it
|
|
1686
|
+
* leaves out, and always generates `id`. So a row spread from one read
|
|
1687
|
+
* back (`push({ ...row, name })`) keeps that row's dates and author.
|
|
1664
1688
|
*
|
|
1665
1689
|
* Uses `INSERT ... RETURNING *` so the created row comes back in a
|
|
1666
1690
|
* single round trip — no separate SELECT needed.
|
|
@@ -1670,6 +1694,9 @@ declare class Table<T> {
|
|
|
1670
1694
|
/**
|
|
1671
1695
|
* Update a row by ID. Only the provided fields are changed.
|
|
1672
1696
|
* Returns the updated row via `UPDATE ... RETURNING *`.
|
|
1697
|
+
*
|
|
1698
|
+
* The platform advances `updated_at` and stamps `last_updated_by` with the
|
|
1699
|
+
* signed-in user unless the data changes them itself.
|
|
1673
1700
|
*/
|
|
1674
1701
|
update(id: string, data: UpdateInput<T>): Mutation<T>;
|
|
1675
1702
|
remove(id: string): Mutation<{
|
|
@@ -1691,6 +1718,8 @@ declare class Table<T> {
|
|
|
1691
1718
|
* @param conflictKey - Column name(s) that form the unique constraint.
|
|
1692
1719
|
* Pass a single string for single-column unique, or an array for compound.
|
|
1693
1720
|
* @param data - Row data to insert (or update on conflict). Defaults apply.
|
|
1721
|
+
* A `created_at`, `updated_at` or `last_updated_by` it gives is written
|
|
1722
|
+
* either way; whichever it leaves out the platform fills in.
|
|
1694
1723
|
*/
|
|
1695
1724
|
upsert(conflictKey: (keyof Omit<T, SystemFields> & string) | (keyof Omit<T, SystemFields> & string)[], data: PushInput<T>): Mutation<T>;
|
|
1696
1725
|
/**
|
|
@@ -3964,6 +3993,13 @@ interface Email {
|
|
|
3964
3993
|
* with `email.batch(batchId)` (`status`, `pending`, chunk counts); outcomes
|
|
3965
3994
|
* (delivered, bounced, complained) arrive later on `email.messages({ batchId })`.
|
|
3966
3995
|
*
|
|
3996
|
+
* Who you can mail depends on the sender. From the app's own subdomain or a
|
|
3997
|
+
* verified sending domain, anyone. An app with neither sends from the
|
|
3998
|
+
* platform's shared address, which only mails the app's verified users and its
|
|
3999
|
+
* workspace's members, in dev and live alike, and refuses the whole send with
|
|
4000
|
+
* `unverified_recipients` (400) otherwise. Mail to people who haven't signed in
|
|
4001
|
+
* (a form's acknowledgement, an invite) needs a subdomain or sending domain.
|
|
4002
|
+
*
|
|
3967
4003
|
* Throws `outbound_daily_cap_exceeded` (429) over the app's daily recipient
|
|
3968
4004
|
* quota — check `email.quota()` before a big send — and `sending_paused` (409)
|
|
3969
4005
|
* when the app's sending is paused for reputation or by support; a 409 will
|
|
@@ -4284,6 +4320,15 @@ type TaskToolConfig = string | {
|
|
|
4284
4320
|
* which a function tool reuses) — recursion is yours to bound.
|
|
4285
4321
|
*/
|
|
4286
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;
|
|
4287
4332
|
};
|
|
4288
4333
|
/** Options shared by both output modes of {@link MindStudioAgent.runTask}. */
|
|
4289
4334
|
interface RunTaskOptionsBase {
|
|
@@ -4414,6 +4459,314 @@ interface RunTaskResult<T = unknown> {
|
|
|
4414
4459
|
traceId: string;
|
|
4415
4460
|
}
|
|
4416
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
|
+
|
|
4417
4770
|
/**
|
|
4418
4771
|
* Client for the MindStudio direct step execution API.
|
|
4419
4772
|
*
|
|
@@ -4484,6 +4837,7 @@ declare class MindStudioAgent$1 {
|
|
|
4484
4837
|
private _analytics;
|
|
4485
4838
|
private _email;
|
|
4486
4839
|
private _events;
|
|
4840
|
+
private _browser;
|
|
4487
4841
|
/** @internal Auth type — 'internal' for CALLBACK_TOKEN (managed mode), 'apiKey' otherwise. */
|
|
4488
4842
|
private _authType;
|
|
4489
4843
|
/** @internal Usage source sent on step executions (from MINDSTUDIO_REQUEST_SOURCE).
|
|
@@ -4861,6 +5215,12 @@ declare class MindStudioAgent$1 {
|
|
|
4861
5215
|
* ```
|
|
4862
5216
|
*/
|
|
4863
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;
|
|
4864
5224
|
/**
|
|
4865
5225
|
* Outbound email: sending, the per-recipient delivery log, blast stats, and
|
|
4866
5226
|
* this app's unsubscribe list.
|
|
@@ -4961,6 +5321,12 @@ declare class MindStudioAgent$1 {
|
|
|
4961
5321
|
* `delivered: 0`, never as an HTTP failure.
|
|
4962
5322
|
*/
|
|
4963
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;
|
|
4964
5330
|
private _analyticsRequest;
|
|
4965
5331
|
/**
|
|
4966
5332
|
* @internal Shared shape for the brokered `/_internal/v2/<ns>/<op>` data
|
|
@@ -9993,6 +10359,7 @@ interface StepMethods {
|
|
|
9993
10359
|
* - jev-latest (the default) is TypeSafe's current stable release, text only, up to 64k tokens. jev-preview tracks TypeSafe's newest release. Pin a version such as jev-1.13.0 when a threshold was tuned against that version.
|
|
9994
10360
|
* - clef and clef-flash run Cloudflare Clef, which also reads up to 4 PNG, JPEG, or WebP images, each at most 4 MiB and 8 MiB together, and takes at most 64 questions, each id using only letters, digits, underscore, dot, and hyphen, up to 100 characters. clef is the larger model, clef-flash the faster one. @cf/cloudflare/clef and @cf/cloudflare/clef-flash name the same two.
|
|
9995
10361
|
* - mercury-decide runs Inception's Mercury Decide, which reads up to 64k tokens and up to 16 PNG, JPEG, WebP, or GIF images, each at most 10 MiB and 14 MiB together.
|
|
10362
|
+
* - drex-max, drex-v2.0 and drex-v1.5 run Nace.AI's Drex, served by DeepInfra, and take at most 16 questions. drex-max reads up to 262k tokens and up to 4 PNG, JPEG, WebP, or GIF images, 9 MiB together. drex-v2.0 and drex-v1.5 read text only, up to 128k tokens. nace-ai/drex-max, nace-ai/drex-v2.0 and nace-ai/drex-v1.5 name the same three.
|
|
9996
10363
|
* - gpt-6-luna-decisions runs OpenAI's Decisions API (in beta), which reads up to 922k tokens and PNG, JPEG, WebP, or GIF images of up to 20 MB each. It takes up to 200 questions, and a choice needs at least 2 options. gpt-6-luna names it too.
|
|
9997
10364
|
* - images is for a model that reads them. Pass URLs or data URLs. A model that reads none refuses the call.
|
|
9998
10365
|
* - The response model field is the version that answered.
|
|
@@ -12879,6 +13246,23 @@ declare const email: Email;
|
|
|
12879
13246
|
* ```
|
|
12880
13247
|
*/
|
|
12881
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;
|
|
12882
13266
|
/**
|
|
12883
13267
|
* Originating-session identity for this invocation — set when the method was
|
|
12884
13268
|
* triggered by a conversational surface (a voice call's tool use, an
|
|
@@ -12989,5 +13373,5 @@ declare const prerender: {
|
|
|
12989
13373
|
}>;
|
|
12990
13374
|
};
|
|
12991
13375
|
|
|
12992
|
-
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 };
|
|
12993
|
-
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, 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 };
|