@mindstudio-ai/agent 0.1.117 → 0.1.119

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
@@ -1953,7 +1953,7 @@ interface JewelGradeContext<I> {
1953
1953
  proposed: I | null;
1954
1954
  actual: I;
1955
1955
  }
1956
- type MaybePromise<T> = T | Promise<T>;
1956
+ type MaybePromise$1<T> = T | Promise<T>;
1957
1957
  /**
1958
1958
  * Authoring config. Declare `subject` before `propose` — the subject type
1959
1959
  * is inferred from the projection's return and flows into `propose`'s
@@ -1970,7 +1970,7 @@ interface JewelConfig<M extends JewelMethod, S> {
1970
1970
  * for context, model calls via runTask). Throwing never propagates — it
1971
1971
  * becomes an `error` on the pair record.
1972
1972
  */
1973
- propose: (subject: NoInfer<S>) => MaybePromise<JewelProposal<JewelMethodInput<M>>>;
1973
+ propose: (subject: NoInfer<S>) => MaybePromise$1<JewelProposal<JewelMethodInput<M>>>;
1974
1974
  /**
1975
1975
  * The custom assertion. Omit for deep-equal on the method input. May be
1976
1976
  * async and call models. Throwing softens to verdict `'skip'`.
@@ -1987,7 +1987,7 @@ interface JewelConfig<M extends JewelMethod, S> {
1987
1987
  * }
1988
1988
  * ```
1989
1989
  */
1990
- grade?: (ctx: JewelGradeContext<JewelMethodInput<M>>) => MaybePromise<JewelVerdict>;
1990
+ grade?: (ctx: JewelGradeContext<JewelMethodInput<M>>) => MaybePromise$1<JewelVerdict>;
1991
1991
  }
1992
1992
  /**
1993
1993
  * Executor params — constructed by the platform (or dev tooling), exactly
@@ -2064,8 +2064,8 @@ interface Jewel<M extends JewelMethod, S> {
2064
2064
  readonly kind: 'jewel';
2065
2065
  readonly method: M;
2066
2066
  readonly subject: (input: JewelMethodInput<M>) => S;
2067
- readonly propose: (subject: S) => MaybePromise<JewelProposal<JewelMethodInput<M>>>;
2068
- readonly grade: ((ctx: JewelGradeContext<JewelMethodInput<M>>) => MaybePromise<JewelVerdict>) | undefined;
2067
+ readonly propose: (subject: S) => MaybePromise$1<JewelProposal<JewelMethodInput<M>>>;
2068
+ readonly grade: ((ctx: JewelGradeContext<JewelMethodInput<M>>) => MaybePromise$1<JewelVerdict>) | undefined;
2069
2069
  }
2070
2070
  /**
2071
2071
  * What the platform did with a proposal, routed by the method's autonomy:
@@ -2230,9 +2230,14 @@ interface Citation {
2230
2230
  bottomRightY: number;
2231
2231
  };
2232
2232
  /**
2233
- * Stable on-domain URL for the source document. Drop it in an `<a href>` —
2234
- * a same-origin logged-in request authorizes automatically, so there's
2235
- * nothing to await.
2233
+ * Stable path on the app's own domain for the source document
2234
+ * (`/_/datasources/<sourceId>/documents/<documentId>`), the same shape as a
2235
+ * private file's `url`: a signed-in user's same-origin request authorizes
2236
+ * against their session and redirects to the file, so there's nothing to
2237
+ * sign or await. It is not a public link. For a public app or another
2238
+ * origin, mint one that needs no session the way you would for a file:
2239
+ * `search(q, { shareCitations: 3600 })` signs every citation in the response,
2240
+ * or {@link DataSource.shareUrl} signs one document on demand.
2236
2241
  */
2237
2242
  url: string;
2238
2243
  }
@@ -2460,6 +2465,15 @@ interface SearchOptions {
2460
2465
  * chunk that actually matched.
2461
2466
  */
2462
2467
  expand?: number;
2468
+ /**
2469
+ * Return every `citation.url` as an absolute, signed link that works with
2470
+ * **no** session, valid for this many seconds (`true` = 24h; clamped to
2471
+ * 60s–90d). The same link {@link DataSource.shareUrl} mints one at a time,
2472
+ * done for the whole response in one round trip — the render path of a
2473
+ * public search tool. Each link is a bearer capability until it expires, so
2474
+ * sign at render time rather than storing signed results.
2475
+ */
2476
+ shareCitations?: number | true;
2463
2477
  }
2464
2478
  interface AddOptions {
2465
2479
  /**
@@ -2476,6 +2490,25 @@ interface AddOptions {
2476
2490
  */
2477
2491
  metadata?: DocumentMetadata;
2478
2492
  }
2493
+ /** What {@link DataSource.add} returns. */
2494
+ interface AddResult {
2495
+ /**
2496
+ * The document, or the first of them on a mapped source. Null only when a
2497
+ * mapper answered `deletes` — nothing was added.
2498
+ */
2499
+ document: DataSourceDocument | null;
2500
+ /** Every document the bytes became. One entry on an unmapped source. */
2501
+ documents: DataSourceDocument[];
2502
+ /** Whether any of them was queued for a build (the rest were already current). */
2503
+ queued: boolean;
2504
+ /**
2505
+ * How the source took the bytes: `unmapped` (no mapper — the bytes are the
2506
+ * document), or the mapper's outcome.
2507
+ */
2508
+ outcome: 'unmapped' | 'documents' | 'passthrough' | 'deletes';
2509
+ /** Documents removed or superseded as a result — a `deletes` outcome, a `replaces`. */
2510
+ removed: number;
2511
+ }
2479
2512
  interface DataSourceDocument {
2480
2513
  id: string;
2481
2514
  filename: string | null;
@@ -2550,6 +2583,136 @@ interface DataSourceStats {
2550
2583
  };
2551
2584
  } | null;
2552
2585
  }
2586
+ /**
2587
+ * Which documents a bulk removal selects. The row-level half of
2588
+ * {@link SearchFilter} — `metadata`, `filename`, `documentIds` — plus
2589
+ * `externalIdPrefix`, the identity a bulk job or S3 connector recorded for each
2590
+ * document (a customer's object key, say). Everything ANDs. Chunk-level fields
2591
+ * (`pages`, `contains`, `phrase`) do not select documents and are refused, and
2592
+ * so is an empty selector: whole-source deletion is an owner operation
2593
+ * (`remy-admin datasources delete`), never something app code does.
2594
+ */
2595
+ interface DocumentSelector {
2596
+ metadata?: Record<string, MetadataValue | MetadataValue[] | MetadataRange>;
2597
+ filename?: string | string[];
2598
+ documentIds?: string[];
2599
+ /** Documents whose recorded external id starts with this — e.g. a key prefix. */
2600
+ externalIdPrefix?: string;
2601
+ }
2602
+ /**
2603
+ * planning → planned → running ⇄ paused → done | failed | cancelled.
2604
+ *
2605
+ * A `planned` job is waiting for a human: its plan exceeded the budget or the
2606
+ * capacity of where the source lives (`error` says which), and the owner
2607
+ * approves it with `remy-admin datasources jobs approve <id>`.
2608
+ */
2609
+ type DataSourceJobState = 'planning' | 'planned' | 'running' | 'paused' | 'done' | 'failed' | 'cancelled';
2610
+ /**
2611
+ * What a job would cost before any of it is spent — an extrapolation from a
2612
+ * sample of about a hundred documents at today's rates. `credits` are in
2613
+ * nano-dollars; divide by 1e9 for dollars.
2614
+ */
2615
+ interface DataSourceJobPlan {
2616
+ objects: number;
2617
+ bytes: number;
2618
+ /**
2619
+ * Mapped sources only: what the mapper did with the sampled objects. The
2620
+ * skip share is the baseline the run's skip gate pauses against.
2621
+ */
2622
+ mapping: {
2623
+ objects: number;
2624
+ documentsPerObject: number;
2625
+ passthroughShare: number;
2626
+ skipShare: number;
2627
+ errorShare: number;
2628
+ deleteShare: number;
2629
+ secondsPerObject: number;
2630
+ } | null;
2631
+ projected: {
2632
+ documents: number;
2633
+ chunks: number;
2634
+ tokens: number;
2635
+ credits: {
2636
+ embedding: number;
2637
+ extraction: number;
2638
+ contextual: number;
2639
+ total: number;
2640
+ };
2641
+ };
2642
+ capacity: {
2643
+ placement: 'shared' | 'dedicated';
2644
+ maxPoints: number;
2645
+ heldPoints: number;
2646
+ /** False means the job will not run until the source moves or the resource grows. */
2647
+ fits: boolean;
2648
+ };
2649
+ durationMinutes: number;
2650
+ warnings: string[];
2651
+ computedAt: string;
2652
+ }
2653
+ /**
2654
+ * A bulk ingestion job — a sync, a corpus load started from the CLI, a remap
2655
+ * of a mapped source's raw copies, or a replay of an earlier job's quarantine.
2656
+ */
2657
+ interface DataSourceJob {
2658
+ id: string;
2659
+ state: DataSourceJobState;
2660
+ source: {
2661
+ type: 'store';
2662
+ store: string;
2663
+ access: string;
2664
+ prefix: string;
2665
+ } | {
2666
+ type: 'manifest';
2667
+ key: string;
2668
+ } | {
2669
+ type: 'connector';
2670
+ connectorId: string;
2671
+ } | {
2672
+ type: 'sample';
2673
+ fromDataSourceId: string;
2674
+ size: number;
2675
+ } | {
2676
+ type: 'remap';
2677
+ } | {
2678
+ type: 'replay';
2679
+ fromJobId: string;
2680
+ kind: 'skip' | 'error' | null;
2681
+ };
2682
+ /** Objects the mapper skipped or failed on (mapped sources; zero otherwise). */
2683
+ quarantine: {
2684
+ skipped: number;
2685
+ errors: number;
2686
+ };
2687
+ plan: DataSourceJobPlan | null;
2688
+ /** The ceiling this job pauses at, in dollars; null when none was set. */
2689
+ budgetDollars: number | null;
2690
+ /** Model spend so far at catalog rates — an estimate, not the ledger. */
2691
+ estimatedDollars: number;
2692
+ counts: {
2693
+ objectsSeen: number;
2694
+ documentsDone: number;
2695
+ documentsSkipped: number;
2696
+ documentsFailed: number;
2697
+ chunks: number;
2698
+ };
2699
+ /** Recent per-document failures, newest first, at most twenty. */
2700
+ samples: {
2701
+ ref: string;
2702
+ message: string;
2703
+ at: string;
2704
+ }[];
2705
+ error: string | null;
2706
+ /**
2707
+ * Why a running job stopped: the owner, the budget, repeated batch
2708
+ * failures, or (mapped sources) a skip share far above the plan's.
2709
+ */
2710
+ pauseReason: 'user' | 'budget' | 'errors' | 'skips' | null;
2711
+ stalled: boolean;
2712
+ createdAt: string;
2713
+ startedAt: string | null;
2714
+ finishedAt: string | null;
2715
+ }
2553
2716
  /**
2554
2717
  * A typed handle to one data source. Lazy — nothing executes until a method is
2555
2718
  * awaited, so it's safe to `defineDataSource()` at module scope and import the
@@ -2577,12 +2740,35 @@ declare class DataSource {
2577
2740
  * Alongside `results` and `latencyMs` comes {@link SearchRan} — what the
2578
2741
  * search actually did, which is the first thing to check when results don't
2579
2742
  * look like the options you passed.
2743
+ *
2744
+ * **Throws `index_warming`** (HTTP 503) when a large corpus's index is being
2745
+ * reloaded after an eviction: the platform keeps a working set of indexes
2746
+ * resident and reloads the rest on first use, which for a big source takes a
2747
+ * minute or two in the background. Treat it as "loading", never as "empty" —
2748
+ * tell the user the knowledge base is warming up and retry shortly. Small
2749
+ * corpora reload inside the search and never raise it. Sources on dedicated
2750
+ * capacity are never evicted, so they never raise it either; they raise
2751
+ * `capacity_hibernated` and friends instead when their capacity is parked.
2580
2752
  */
2581
2753
  search(query: string, options?: SearchOptions): Promise<{
2582
2754
  results: SearchHit[];
2583
2755
  mode?: SearchRan;
2584
2756
  latencyMs: number;
2585
2757
  }>;
2758
+ /**
2759
+ * Mint an ABSOLUTE, signed link to one document that works with **no**
2760
+ * session — the same verb as `store.shareUrl()` for a file. Takes a
2761
+ * document id or anything carrying one (`hit.citation`). Expires (default
2762
+ * 24h; clamped to 60s–90d); each click still redirects to a fresh
2763
+ * short-lived storage URL, so the expiry you pass is the only one that
2764
+ * matters. For every citation of a search at once, pass
2765
+ * {@link SearchOptions.shareCitations} instead.
2766
+ */
2767
+ shareUrl(document: string | {
2768
+ documentId: string;
2769
+ }, options?: {
2770
+ expiresIn?: number;
2771
+ }): Promise<string>;
2586
2772
  /**
2587
2773
  * What is in the corpus, and how it was built.
2588
2774
  *
@@ -2617,15 +2803,96 @@ declare class DataSource {
2617
2803
  * bytes under its current configuration. Reconfiguring the source is what
2618
2804
  * makes a re-add do work again — and that is an explicit, owner-triggered
2619
2805
  * migration, never something a deploy causes.
2620
- */
2621
- add(content: Buffer | Uint8Array | string, options: AddOptions): Promise<{
2622
- document: DataSourceDocument;
2623
- queued: boolean;
2624
- }>;
2625
- /** Every document in the corpus, with ingest status. */
2626
- documents(): Promise<DataSourceDocument[]>;
2806
+ *
2807
+ * **On a source with a mapper** (`dataSources[].mapper` in mindstudio.json,
2808
+ * see `defineMapper`) the bytes are a raw object and the mapper decides
2809
+ * what they become: `documents` holds everything it produced (one object
2810
+ * can become many documents), `document` is the first of them for
2811
+ * convenience, and `outcome` says which way the mapper went. A
2812
+ * `passthrough` is one document from the bytes themselves; a `deletes`
2813
+ * outcome removes the named documents and returns none. A document whose
2814
+ * `externalId` (or `replaces`) names an existing one supersedes it as soon
2815
+ * as the new one is registered, before its build lands; a search in that
2816
+ * window sees neither. **Throws `mapper_skipped`** (HTTP 422) when the
2817
+ * mapper skipped the object — a specific thing it refused, which the caller
2818
+ * should see — and `mapper_error` when the mapper threw.
2819
+ */
2820
+ add(content: Buffer | Uint8Array | string, options: AddOptions): Promise<AddResult>;
2821
+ /**
2822
+ * Documents in the corpus, with ingest status.
2823
+ *
2824
+ * Without options this is the first thousand, newest first: enough to show
2825
+ * a small corpus, not a way to walk a large one (a corpus of any size is
2826
+ * loaded and inspected from the CLI). To follow what {@link add} just
2827
+ * queued, pass the ids it returned: `documents({ ids })` answers only those,
2828
+ * at most two hundred per call.
2829
+ */
2830
+ documents(options?: {
2831
+ /** Only these documents (at most 200). */
2832
+ ids?: string[];
2833
+ }): Promise<DataSourceDocument[]>;
2627
2834
  /** Remove a document and its vectors. */
2628
2835
  remove(documentId: string): Promise<void>;
2836
+ /**
2837
+ * Remove every document matching a selector — by metadata tags, filename,
2838
+ * ids, or the external id prefix a bulk load or connector recorded.
2839
+ *
2840
+ * Works in pages of a thousand and keeps going until nothing matches (or a
2841
+ * very large removal has run for a hundred pages, in which case `remaining`
2842
+ * says how many are left and a second call continues). Vectors, the catalog
2843
+ * row and the stored bytes all go; the removal is immediate and shared
2844
+ * across dev and prod like every data-source write.
2845
+ *
2846
+ * ```ts
2847
+ * await Policies.removeWhere({ metadata: { department: 'legal', year: 2019 } });
2848
+ * await Policies.removeWhere({ externalIdPrefix: 'archive/2019/' });
2849
+ * ```
2850
+ */
2851
+ removeWhere(selector: DocumentSelector): Promise<{
2852
+ deleted: number;
2853
+ remaining: number;
2854
+ }>;
2855
+ /**
2856
+ * Bring the source up to date with the S3 bucket it is connected to.
2857
+ *
2858
+ * Lists the bucket, diffs it against what was ingested before (by ETag), and
2859
+ * runs an ingestion job over what is new or changed; keys that disappeared
2860
+ * upstream are removed at the end when the connector's deletion policy says
2861
+ * so. Returns as soon as the job is started — it plans, then runs in the
2862
+ * background. Poll {@link job} for progress, or read the latest sync from
2863
+ * {@link jobs}.
2864
+ *
2865
+ * The job auto-approves under the connector's per-sync budget. A plan over
2866
+ * that budget, or over the capacity of where the source lives, waits in
2867
+ * `planned` for a human (`remy-admin datasources jobs approve <id>`) — so the
2868
+ * first backfill of a large bucket stops for approval by itself, and the
2869
+ * steady-state deltas run unattended. Nothing is spent when nothing changed.
2870
+ *
2871
+ * The connection itself — which bucket, which app secrets hold the keys — is
2872
+ * created by the app's owner with `remy-admin datasources connect`, never
2873
+ * from code. A nightly sync is an ordinary cron interface job whose method
2874
+ * calls this:
2875
+ *
2876
+ * ```ts
2877
+ * // methods/sync-archive.ts, scheduled "0 3 * * *" in the cron interface
2878
+ * export default async function () {
2879
+ * await Archive.sync();
2880
+ * }
2881
+ * ```
2882
+ *
2883
+ * @throws `connector_not_found` when the source is not connected;
2884
+ * `data_source_busy` while another job or a move is in flight.
2885
+ */
2886
+ sync(options?: {
2887
+ /** Override the connector's per-sync budget for this run, in dollars. */
2888
+ budgetDollars?: number;
2889
+ }): Promise<{
2890
+ job: DataSourceJob;
2891
+ }>;
2892
+ /** Recent ingestion jobs on this source (syncs and CLI loads), newest first. */
2893
+ jobs(): Promise<DataSourceJob[]>;
2894
+ /** One job by id — progress, plan, failures, and why it paused if it did. */
2895
+ job(id: string): Promise<DataSourceJob>;
2629
2896
  /**
2630
2897
  * Create the data source if it doesn't exist yet.
2631
2898
  *
@@ -11433,6 +11700,178 @@ declare function getRequestContext(): RequestContext | undefined;
11433
11700
  */
11434
11701
  declare function runWithContext<T>(ctx: RequestContext, fn: () => T | Promise<T>): T | Promise<T>;
11435
11702
 
11703
+ /**
11704
+ * Mappers — customer code that turns raw objects into documents.
11705
+ *
11706
+ * A data source takes every object it is given as one document through
11707
+ * built-in extraction. When the file is not the document — a JSON record
11708
+ * that should become markdown plus metadata, a JSONL object that holds a
11709
+ * thousand articles, a kill notice that means "remove this story" — the
11710
+ * source declares a MAPPER: a `<slug>.mapper.ts` file beside the source's
11711
+ * definition, exporting `defineMapper(Source, { map })`.
11712
+ *
11713
+ * ```ts
11714
+ * // datasources/archive.mapper.ts
11715
+ * export default defineMapper(Archive, {
11716
+ * map: async (object) => {
11717
+ * if (!object.key.endsWith('.json')) return passthrough();
11718
+ * const { item } = await object.json();
11719
+ * if (item.pubstatus === 'canceled') return deletes([item.uri]);
11720
+ * return documents([{
11721
+ * externalId: item.uri,
11722
+ * title: item.headline,
11723
+ * markdown: toMarkdown(item),
11724
+ * metadata: { date: item.versioncreated.slice(0, 10), language: item.language },
11725
+ * replaces: item.altids?.original_id,
11726
+ * }]);
11727
+ * },
11728
+ * });
11729
+ * ```
11730
+ *
11731
+ * One object in, one of four outcomes out:
11732
+ * - `documents([...])` — the object becomes these documents (an array is
11733
+ * one object → many). Each is `{ externalId, title, markdown, metadata?,
11734
+ * replaces? }`; `externalId` is the identity the platform replaces by.
11735
+ * - `passthrough({ metadata? })` — ingest the raw object itself through
11736
+ * built-in extraction, as an unmapped source would. What lets a mapped
11737
+ * source still accept a PDF.
11738
+ * - `skip(reason)` — not a document. Quarantined on the job with the reason;
11739
+ * an `add()` of a skipped object throws `mapper_skipped`.
11740
+ * - `deletes([externalId, ...])` — the live documents with these external ids
11741
+ * are removed.
11742
+ * A thrown error is the object's `error` outcome: quarantined, the job goes on.
11743
+ *
11744
+ * `defineMapper` returns a CALLABLE — the executor — with the config attached
11745
+ * (the same pattern as `defineJewel`). The platform runs it as an ordinary
11746
+ * execution frame: one call maps a slice of objects and returns their
11747
+ * outcomes. Everything a method can do, a mapper can do — call models via
11748
+ * `runTask`, `fetch` an external API, read the app's tables — and every call
11749
+ * is spend per object. The mapper's `map` runs under a per-object timeout
11750
+ * (declared in `mindstudio.json`, default 30 s); the executor never throws.
11751
+ *
11752
+ * Declared in `mindstudio.json`:
11753
+ * ```json
11754
+ * "dataSources": [{ "slug": "archive", "mapper": { "path": "dist/datasources/archive.mapper.ts" } }]
11755
+ * ```
11756
+ * Everything that enters a mapped source is mapped: bulk jobs, connector
11757
+ * syncs, and `Source.add()` alike. Mapper fixes are re-applied with
11758
+ * `remy-admin datasources remap` from the platform's copy of each raw object.
11759
+ */
11760
+
11761
+ /** The raw object handed to `map`. Bytes are read lazily, once. */
11762
+ interface MapObject {
11763
+ /** The key the object is known by: a store key, a bucket key, a URL, a filename. */
11764
+ key: string;
11765
+ size: number | null;
11766
+ contentType: string | null;
11767
+ /** Bucket objects carry these; other origins report null. */
11768
+ etag: string | null;
11769
+ lastModified: string | null;
11770
+ /** Metadata the origin supplied (a manifest line's `metadata`), or null. */
11771
+ metadata: DocumentMetadata | null;
11772
+ bytes(): Promise<Uint8Array>;
11773
+ text(): Promise<string>;
11774
+ json<T = unknown>(): Promise<T>;
11775
+ }
11776
+ interface MappedDocument {
11777
+ /**
11778
+ * The identity the platform replaces by. A later object producing the same
11779
+ * external id (a new version of the story) supersedes this document; a
11780
+ * `deletes([...])` naming it removes it. Filterable at search time via
11781
+ * `externalIdPrefix`.
11782
+ */
11783
+ externalId: string;
11784
+ title: string;
11785
+ /** The document's text. Chunked and embedded as markdown. */
11786
+ markdown: string;
11787
+ /** Scalars only, up to 16 keys — see `AddOptions.metadata`. */
11788
+ metadata?: DocumentMetadata;
11789
+ /** External ids this document replaces (a writethru's original id). */
11790
+ replaces?: string | string[];
11791
+ }
11792
+ type MapOutcome = {
11793
+ kind: 'documents';
11794
+ documents: MappedDocument[];
11795
+ } | {
11796
+ kind: 'passthrough';
11797
+ metadata?: DocumentMetadata;
11798
+ } | {
11799
+ kind: 'skip';
11800
+ reason: string;
11801
+ } | {
11802
+ kind: 'deletes';
11803
+ externalIds: string[];
11804
+ };
11805
+ type MaybePromise<T> = T | Promise<T>;
11806
+ interface MapperConfig {
11807
+ /** One raw object in; an outcome out. Throwing is the object's `error` outcome. */
11808
+ map: (object: MapObject) => MaybePromise<MapOutcome>;
11809
+ }
11810
+ /** One object as the platform hands it to the executor: metadata plus a read URL. */
11811
+ interface MapRunObject {
11812
+ key: string;
11813
+ size: number | null;
11814
+ contentType: string | null;
11815
+ etag: string | null;
11816
+ lastModified: string | null;
11817
+ metadata: DocumentMetadata | null;
11818
+ /** Short-lived read URL for the object's bytes. */
11819
+ url: string;
11820
+ }
11821
+ interface MapRunParams {
11822
+ v: 1;
11823
+ objects: MapRunObject[];
11824
+ /** Per-object budget for `map`, in milliseconds. */
11825
+ timeoutMs?: number;
11826
+ /** Objects mapped at once inside the frame. */
11827
+ concurrency?: number;
11828
+ }
11829
+ type MapRunOutcome = MapOutcome | {
11830
+ kind: 'error';
11831
+ error: {
11832
+ message: string;
11833
+ stack?: string;
11834
+ };
11835
+ };
11836
+ interface MapRunResult {
11837
+ key: string;
11838
+ outcome: MapRunOutcome;
11839
+ durationMs: number;
11840
+ }
11841
+ /** What one executor call returns: one result per input object, in order. */
11842
+ interface MapRunRecord {
11843
+ v: 1;
11844
+ source: string;
11845
+ outcomes: MapRunResult[];
11846
+ startedAt: number;
11847
+ durationMs: number;
11848
+ }
11849
+ /** The callable executor with its config attached. */
11850
+ interface Mapper {
11851
+ (params: MapRunParams): Promise<MapRunRecord>;
11852
+ readonly kind: 'mapper';
11853
+ /** The data source's slug. */
11854
+ readonly source: string;
11855
+ readonly config: MapperConfig;
11856
+ }
11857
+ /** The object becomes these documents. One document may be passed bare. */
11858
+ declare function documents(list: MappedDocument | MappedDocument[]): MapOutcome;
11859
+ /** Ingest the raw object itself through built-in extraction. */
11860
+ declare function passthrough(options?: {
11861
+ metadata?: DocumentMetadata;
11862
+ }): MapOutcome;
11863
+ /** Not a document. Quarantined with the reason. */
11864
+ declare function skip(reason: string): MapOutcome;
11865
+ /** Remove the live documents with these external ids. */
11866
+ declare function deletes(externalIds: string | string[]): MapOutcome;
11867
+ /**
11868
+ * Define a mapper — the code that turns each raw object entering a data
11869
+ * source into documents. See the module doc for the four outcomes.
11870
+ */
11871
+ declare function defineMapper(source: {
11872
+ readonly name: string;
11873
+ }, config: MapperConfig): Mapper;
11874
+
11436
11875
  type MonacoSnippetFieldType = 'string' | 'number' | 'boolean' | 'array' | 'object' | string[];
11437
11876
  type MonacoSnippetField = [name: string, type: MonacoSnippetFieldType];
11438
11877
  interface MonacoSnippet {
@@ -11717,4 +12156,4 @@ declare const prerender: {
11717
12156
  }>;
11718
12157
  };
11719
12158
 
11720
- export { type Accessor, type ActiveCampaignAddNoteStepInput, type ActiveCampaignAddNoteStepOutput, type ActiveCampaignCreateContactStepInput, type ActiveCampaignCreateContactStepOutput, type AddSubtitlesToVideoStepInput, type AddSubtitlesToVideoStepOutput, type AgentInfo, type AgentOptions, type AggregateRow, type AggregateSelect, type AggregateTerm, type AiSourceVendor, type AirtableCreateUpdateRecordStepInput, type AirtableCreateUpdateRecordStepOutput, type AirtableDeleteRecordStepInput, type AirtableDeleteRecordStepOutput, type AirtableGetRecordStepInput, type AirtableGetRecordStepOutput, type AirtableGetTableRecordsStepInput, type AirtableGetTableRecordsStepOutput, type Analytics, type AnalyticsDateRange, type AnalyticsDimension, type AnalyticsFilter, type AnalyticsFilterOp, type AnalyticsGranularity, type AnalyticsMetric, type AnalyticsQueryResponse, type AnalyticsQueryResultRow, type AnalyticsQuerySpec, type AnalyticsReadOptions, type AnalyzeImageStepInput, type AnalyzeImageStepOutput, type AnalyzeVideoStepInput, type AnalyzeVideoStepOutput, type AppAuthContext, type AppContextResult, type AppDatabase, type AppDatabaseColumnSchema, type AppDatabaseTable, type AppRoleAssignment, AuthContext, type AuthTableConfig, type BatchStepInput, type BatchStepResult, type Batchable, type CaptureThumbnailStepInput, type CaptureThumbnailStepOutput, type CheckAppRoleStepInput, type CheckAppRoleStepOutput, type CodaCreateUpdatePageStepInput, type CodaCreateUpdatePageStepOutput, type CodaCreateUpdateRowStepInput, type CodaCreateUpdateRowStepOutput, type CodaFindRowStepInput, type CodaFindRowStepOutput, type CodaGetPageStepInput, type CodaGetPageStepOutput, type CodaGetTableRowsStepInput, type CodaGetTableRowsStepOutput, type Connection, type ConnectorActionDetail, type ConnectorService, type ConvertPdfToImagesStepInput, type ConvertPdfToImagesStepOutput, type CrawlerBucket, type CrawlerHit, type CrawlerOverview, type CreateDataSourceStepInput, type CreateDataSourceStepOutput, type CreateGmailDraftStepInput, type CreateGmailDraftStepOutput, type CreateGoogleCalendarEventStepInput, type CreateGoogleCalendarEventStepOutput, type CreateGoogleDocStepInput, type CreateGoogleDocStepOutput, type CreateGoogleSheetStepInput, type CreateGoogleSheetStepOutput, type Db, type DefineStoreOptions, type DefineTableOptions, type DeleteDataSourceDocumentStepInput, type DeleteDataSourceDocumentStepOutput, type DeleteDataSourceStepInput, type DeleteDataSourceStepOutput, type DeleteGmailEmailStepInput, type DeleteGmailEmailStepOutput, type DeleteGoogleCalendarEventStepInput, type DeleteGoogleCalendarEventStepOutput, type DeleteGoogleSheetRowsStepInput, type DeleteGoogleSheetRowsStepOutput, type DetectChangesStepInput, type DetectChangesStepOutput, type DetectPIIStepInput, type DetectPIIStepOutput, type DiscordEditMessageStepInput, type DiscordEditMessageStepOutput, type DiscordSendFollowUpStepInput, type DiscordSendFollowUpStepOutput, type DiscordSendMessageStepInput, type DiscordSendMessageStepOutput, type DownloadVideoStepInput, type DownloadVideoStepOutput, type EnhanceImageGenerationPromptStepInput, type EnhanceImageGenerationPromptStepOutput, type EnhanceVideoGenerationPromptStepInput, type EnhanceVideoGenerationPromptStepOutput, type EnrichPersonStepInput, type EnrichPersonStepOutput, type EventGrantOptions, type EventGrantResult, type Events, type ExecuteStepBatchOptions, type ExecuteStepBatchResult, type ExtractAudioFromVideoStepInput, type ExtractAudioFromVideoStepOutput, type ExtractTextStepInput, type ExtractTextStepOutput, type FetchDataSourceDocumentStepInput, type FetchDataSourceDocumentStepOutput, type FetchGoogleDocStepInput, type FetchGoogleDocStepOutput, type FetchGoogleSheetStepInput, type FetchGoogleSheetStepOutput, type FetchSlackChannelHistoryStepInput, type FetchSlackChannelHistoryStepOutput, type FetchYoutubeCaptionsStepInput, type FetchYoutubeCaptionsStepOutput, type FetchYoutubeChannelStepInput, type FetchYoutubeChannelStepOutput, type FetchYoutubeCommentsStepInput, type FetchYoutubeCommentsStepOutput, type FetchYoutubeVideoStepInput, type FetchYoutubeVideoStepOutput, type FileAccess, type Files, type FromSchema, type Generate3dModelStepInput, type Generate3dModelStepOutput, type GenerateAssetStepInput, type GenerateAssetStepOutput, type GenerateChartStepInput, type GenerateChartStepOutput, type GenerateImageStepInput, type GenerateImageStepOutput, type GenerateLipsyncStepInput, type GenerateLipsyncStepOutput, type GenerateMusicStepInput, type GenerateMusicStepOutput, type GeneratePdfStepInput, type GeneratePdfStepOutput, type GenerateStaticVideoFromImageStepInput, type GenerateStaticVideoFromImageStepOutput, type GenerateTextStepInput, type GenerateTextStepOutput, type GenerateVideoStepInput, type GenerateVideoStepOutput, type GetGmailAttachmentsStepInput, type GetGmailAttachmentsStepOutput, type GetGmailDraftStepInput, type GetGmailDraftStepOutput, type GetGmailEmailStepInput, type GetGmailEmailStepOutput, type GetGmailUnreadCountStepInput, type GetGmailUnreadCountStepOutput, type GetGoogleCalendarEventStepInput, type GetGoogleCalendarEventStepOutput, type GetGoogleDriveFileStepInput, type GetGoogleDriveFileStepOutput, type GetGoogleSheetInfoStepInput, type GetGoogleSheetInfoStepOutput, type GetMediaMetadataStepInput, type GetMediaMetadataStepOutput, type HubspotCreateCompanyStepInput, type HubspotCreateCompanyStepOutput, type HubspotCreateContactStepInput, type HubspotCreateContactStepOutput, type HubspotGetCompanyStepInput, type HubspotGetCompanyStepOutput, type HubspotGetContactStepInput, type HubspotGetContactStepOutput, type HunterApiCompanyEnrichmentStepInput, type HunterApiCompanyEnrichmentStepOutput, type HunterApiDomainSearchStepInput, type HunterApiDomainSearchStepOutput, type HunterApiEmailFinderStepInput, type HunterApiEmailFinderStepOutput, type HunterApiEmailVerificationStepInput, type HunterApiEmailVerificationStepOutput, type HunterApiPersonEnrichmentStepInput, type HunterApiPersonEnrichmentStepOutput, type ImageFaceSwapStepInput, type ImageFaceSwapStepOutput, type ImageRemoveWatermarkStepInput, type ImageRemoveWatermarkStepOutput, type InsertVideoClipsStepInput, type InsertVideoClipsStepOutput, type Jewel, type JewelConfig, type JewelGradeContext, type JewelMethod, type JewelMethodInput, type JewelPairRecord, type JewelProposal, type JewelProposeOutcome, type JewelProposeResult, type JewelQueueItem, type JewelQueueResolution, type JewelQueueResolveResult, type JewelRunParams, type JewelVerdict, type JewelsApi, type JsonObjectSchema, type JsonSchema, type JsonSchemaTypeName, type ListAgentsResult, type ListDataSourcesStepInput, type ListDataSourcesStepOutput, type ListGmailDraftsStepInput, type ListGmailDraftsStepOutput, type ListGmailLabelsStepInput, type ListGmailLabelsStepOutput, type ListGoogleCalendarEventsStepInput, type ListGoogleCalendarEventsStepOutput, type ListGoogleDriveFilesStepInput, type ListGoogleDriveFilesStepOutput, type ListOptions, type ListRecentGmailEmailsStepInput, type ListRecentGmailEmailsStepOutput, type LiveNow, type LogicStepInput, type LogicStepOutput, MAX_EVENT_PAYLOAD_CHARS, type MakeDotComRunScenarioStepInput, type MakeDotComRunScenarioStepOutput, type MapPoint, type MergeAudioStepInput, type MergeAudioStepOutput, type MergeVideosStepInput, type MergeVideosStepOutput, type MeshyAnimateStepInput, type MeshyAnimateStepOutput, type MeshyImageTo3dStepInput, type MeshyImageTo3dStepOutput, type MeshyRemeshStepInput, type MeshyRemeshStepOutput, type MeshyRigStepInput, type MeshyRigStepOutput, type MeshyTextTo3dStepInput, type MeshyTextTo3dStepOutput, type MeshyTextureStepInput, type MeshyTextureStepOutput, MindStudioAgent, MindStudioError, type MindStudioModel, type MindStudioModelSummary, type MixAudioIntoVideoStepInput, type MixAudioIntoVideoStepOutput, type ModelType, type MonacoSnippet, type MonacoSnippetField, type MonacoSnippetFieldType, type MuteVideoStepInput, type MuteVideoStepOutput, type N8nRunNodeStepInput, type N8nRunNodeStepOutput, type NotionCreatePageStepInput, type NotionCreatePageStepOutput, type NotionUpdatePageStepInput, type NotionUpdatePageStepOutput, type PackagedWorkflow, type PackagedWorkflowInput, type PackagedWorkflowSignature, type ParticlePodcastsFindMentionsStepInput, type ParticlePodcastsFindMentionsStepOutput, type ParticlePodcastsGetEpisodeStepInput, type ParticlePodcastsGetEpisodeStepOutput, type ParticlePodcastsGetEpisodeTranscriptStepInput, type ParticlePodcastsGetEpisodeTranscriptStepOutput, type ParticlePodcastsSearchCompaniesStepInput, type ParticlePodcastsSearchCompaniesStepOutput, type ParticlePodcastsSearchDialogueStepInput, type ParticlePodcastsSearchDialogueStepOutput, type ParticlePodcastsSearchPodcastsStepInput, type ParticlePodcastsSearchPodcastsStepOutput, type PeopleSearchStepInput, type PeopleSearchStepOutput, type PostToLinkedInStepInput, type PostToLinkedInStepOutput, type PostToSlackChannelStepInput, type PostToSlackChannelStepOutput, type PostToXStepInput, type PostToXStepOutput, type PostToZapierStepInput, type PostToZapierStepOutput, type Predicate, type PushInput, type PutOptions, Query, type QueryDataSourceStepInput, type QueryDataSourceStepOutput, type QueryExternalDatabaseStepInput, type QueryExternalDatabaseStepOutput, RawQuery, type RedactPIIStepInput, type RedactPIIStepOutput, type RemoveBackgroundFromImageStepInput, type RemoveBackgroundFromImageStepOutput, type ReplyToGmailEmailStepInput, type ReplyToGmailEmailStepOutput, type ReportIssueInput, type ReportedIssue, type RequestContext, type ResizeVideoStepInput, type ResizeVideoStepOutput, type ResolvedUser, Roles, type RunAgentOptions, type RunAgentResult, type RunFromConnectorRegistryStepInput, type RunFromConnectorRegistryStepOutput, type RunPackagedWorkflowStepInput, type RunPackagedWorkflowStepOutput, type RunTaskOptions, type RunTaskOptionsWithExample, type RunTaskOptionsWithSchema, type RunTaskResult, type SchemaValidationError, type ScrapeLinkedInCompanyStepInput, type ScrapeLinkedInCompanyStepOutput, type ScrapeLinkedInProfileStepInput, type ScrapeLinkedInProfileStepOutput, type ScrapeUrlStepInput, type ScrapeUrlStepOutput, type ScrapeXPostStepInput, type ScrapeXPostStepOutput, type ScrapeXProfileStepInput, type ScrapeXProfileStepOutput, type ScreenshotUrlStepInput, type ScreenshotUrlStepOutput, type SearchGmailEmailsStepInput, type SearchGmailEmailsStepOutput, type SearchGoogleCalendarEventsStepInput, type SearchGoogleCalendarEventsStepOutput, type SearchGoogleDriveStepInput, type SearchGoogleDriveStepOutput, type SearchGoogleImagesStepInput, type SearchGoogleImagesStepOutput, type SearchGoogleNewsStepInput, type SearchGoogleNewsStepOutput, type SearchGoogleStepInput, type SearchGoogleStepOutput, type SearchGoogleTrendsStepInput, type SearchGoogleTrendsStepOutput, type SearchPerplexityStepInput, type SearchPerplexityStepOutput, type SearchXPostsStepInput, type SearchXPostsStepOutput, type SearchYoutubeStepInput, type SearchYoutubeStepOutput, type SearchYoutubeTrendsStepInput, type SearchYoutubeTrendsStepOutput, type SendEmailStepInput, type SendEmailStepOutput, type SendGmailDraftStepInput, type SendGmailDraftStepOutput, type SendGmailMessageStepInput, type SendGmailMessageStepOutput, type SendSMSStepInput, type SendSMSStepOutput, type SendSlackDirectMessageStepInput, type SendSlackDirectMessageStepOutput, type SessionContext, type SetGmailReadStatusStepInput, type SetGmailReadStatusStepOutput, type SetRunTitleStepInput, type SetRunTitleStepOutput, type SetVariableStepInput, type SetVariableStepOutput, type StepCostEstimateEntry, type StepExecutionMeta, type StepExecutionOptions, type StepExecutionResult, type StepInputMap, type StepLogEvent, type StepMetadata, type StepMethods, type StepName, type StepOutputMap, Store, type StoredFile, type SystemFields, Table, type TaskEvent, type TaskToolCall, type TaskToolConfig, type TaskUsage, type TelegramEditMessageStepInput, type TelegramEditMessageStepOutput, type TelegramReplyToMessageStepInput, type TelegramReplyToMessageStepOutput, type TelegramSendAudioStepInput, type TelegramSendAudioStepOutput, type TelegramSendFileStepInput, type TelegramSendFileStepOutput, type TelegramSendImageStepInput, type TelegramSendImageStepOutput, type TelegramSendMessageStepInput, type TelegramSendMessageStepOutput, type TelegramSendVideoStepInput, type TelegramSendVideoStepOutput, type TelegramSetTypingStepInput, type TelegramSetTypingStepOutput, type TextToSpeechStepInput, type TextToSpeechStepOutput, type TopSource, type TranscribeAudioStepInput, type TranscribeAudioStepOutput, type TrimMediaStepInput, type TrimMediaStepOutput, type UpdateGmailLabelsStepInput, type UpdateGmailLabelsStepOutput, type UpdateGoogleCalendarEventStepInput, type UpdateGoogleCalendarEventStepOutput, type UpdateGoogleDocStepInput, type UpdateGoogleDocStepOutput, type UpdateGoogleSheetStepInput, type UpdateGoogleSheetStepOutput, type UpdateInput, type UploadDataSourceDocumentStepInput, type UploadDataSourceDocumentStepOutput, type UploadFileResult, type UploadToken, type UpscaleImageStepInput, type UpscaleImageStepOutput, type UpscaleVideoStepInput, type UpscaleVideoStepOutput, type User, type UserInfoResult, type UserMessageStepInput, type UserMessageStepOutput, type VideoFaceSwapStepInput, type VideoFaceSwapStepOutput, type VideoRemoveBackgroundStepInput, type VideoRemoveBackgroundStepOutput, type VideoRemoveWatermarkStepInput, type VideoRemoveWatermarkStepOutput, type Voice, type VoiceCallResult, type WatermarkImageStepInput, type WatermarkImageStepOutput, type WatermarkVideoStepInput, type WatermarkVideoStepOutput, type YouDotComFinanceResearchStepInput, type YouDotComFinanceResearchStepOutput, type YouDotComGetPageContentStepInput, type YouDotComGetPageContentStepOutput, type YouDotComLiveNewsStepInput, type YouDotComLiveNewsStepOutput, type YouDotComWebResearchStepInput, type YouDotComWebResearchStepOutput, type YouDotComWebSearchStepInput, type YouDotComWebSearchStepOutput, analytics, auth, blockTypeAliases, dataSources, db, mindstudio as default, defineJewel, email, events, files, getRequestContext, mindstudio, monacoSnippets, prerender, reportIssue, resolveUser, runWithContext, session, stepMetadata, stream, voice, waitUntil };
12159
+ export { type Accessor, type ActiveCampaignAddNoteStepInput, type ActiveCampaignAddNoteStepOutput, type ActiveCampaignCreateContactStepInput, type ActiveCampaignCreateContactStepOutput, type AddSubtitlesToVideoStepInput, type AddSubtitlesToVideoStepOutput, type AgentInfo, type AgentOptions, type AggregateRow, type AggregateSelect, type AggregateTerm, type AiSourceVendor, type AirtableCreateUpdateRecordStepInput, type AirtableCreateUpdateRecordStepOutput, type AirtableDeleteRecordStepInput, type AirtableDeleteRecordStepOutput, type AirtableGetRecordStepInput, type AirtableGetRecordStepOutput, type AirtableGetTableRecordsStepInput, type AirtableGetTableRecordsStepOutput, type Analytics, type AnalyticsDateRange, type AnalyticsDimension, type AnalyticsFilter, type AnalyticsFilterOp, type AnalyticsGranularity, type AnalyticsMetric, type AnalyticsQueryResponse, type AnalyticsQueryResultRow, type AnalyticsQuerySpec, type AnalyticsReadOptions, type AnalyzeImageStepInput, type AnalyzeImageStepOutput, type AnalyzeVideoStepInput, type AnalyzeVideoStepOutput, type AppAuthContext, type AppContextResult, type AppDatabase, type AppDatabaseColumnSchema, type AppDatabaseTable, type AppRoleAssignment, AuthContext, type AuthTableConfig, type BatchStepInput, type BatchStepResult, type Batchable, type CaptureThumbnailStepInput, type CaptureThumbnailStepOutput, type CheckAppRoleStepInput, type CheckAppRoleStepOutput, type CodaCreateUpdatePageStepInput, type CodaCreateUpdatePageStepOutput, type CodaCreateUpdateRowStepInput, type CodaCreateUpdateRowStepOutput, type CodaFindRowStepInput, type CodaFindRowStepOutput, type CodaGetPageStepInput, type CodaGetPageStepOutput, type CodaGetTableRowsStepInput, type CodaGetTableRowsStepOutput, type Connection, type ConnectorActionDetail, type ConnectorService, type ConvertPdfToImagesStepInput, type ConvertPdfToImagesStepOutput, type CrawlerBucket, type CrawlerHit, type CrawlerOverview, type CreateDataSourceStepInput, type CreateDataSourceStepOutput, type CreateGmailDraftStepInput, type CreateGmailDraftStepOutput, type CreateGoogleCalendarEventStepInput, type CreateGoogleCalendarEventStepOutput, type CreateGoogleDocStepInput, type CreateGoogleDocStepOutput, type CreateGoogleSheetStepInput, type CreateGoogleSheetStepOutput, type Db, type DefineStoreOptions, type DefineTableOptions, type DeleteDataSourceDocumentStepInput, type DeleteDataSourceDocumentStepOutput, type DeleteDataSourceStepInput, type DeleteDataSourceStepOutput, type DeleteGmailEmailStepInput, type DeleteGmailEmailStepOutput, type DeleteGoogleCalendarEventStepInput, type DeleteGoogleCalendarEventStepOutput, type DeleteGoogleSheetRowsStepInput, type DeleteGoogleSheetRowsStepOutput, type DetectChangesStepInput, type DetectChangesStepOutput, type DetectPIIStepInput, type DetectPIIStepOutput, type DiscordEditMessageStepInput, type DiscordEditMessageStepOutput, type DiscordSendFollowUpStepInput, type DiscordSendFollowUpStepOutput, type DiscordSendMessageStepInput, type DiscordSendMessageStepOutput, type DownloadVideoStepInput, type DownloadVideoStepOutput, type EnhanceImageGenerationPromptStepInput, type EnhanceImageGenerationPromptStepOutput, type EnhanceVideoGenerationPromptStepInput, type EnhanceVideoGenerationPromptStepOutput, type EnrichPersonStepInput, type EnrichPersonStepOutput, type EventGrantOptions, type EventGrantResult, type Events, type ExecuteStepBatchOptions, type ExecuteStepBatchResult, type ExtractAudioFromVideoStepInput, type ExtractAudioFromVideoStepOutput, type ExtractTextStepInput, type ExtractTextStepOutput, type FetchDataSourceDocumentStepInput, type FetchDataSourceDocumentStepOutput, type FetchGoogleDocStepInput, type FetchGoogleDocStepOutput, type FetchGoogleSheetStepInput, type FetchGoogleSheetStepOutput, type FetchSlackChannelHistoryStepInput, type FetchSlackChannelHistoryStepOutput, type FetchYoutubeCaptionsStepInput, type FetchYoutubeCaptionsStepOutput, type FetchYoutubeChannelStepInput, type FetchYoutubeChannelStepOutput, type FetchYoutubeCommentsStepInput, type FetchYoutubeCommentsStepOutput, type FetchYoutubeVideoStepInput, type FetchYoutubeVideoStepOutput, type FileAccess, type Files, type FromSchema, type Generate3dModelStepInput, type Generate3dModelStepOutput, type GenerateAssetStepInput, type GenerateAssetStepOutput, type GenerateChartStepInput, type GenerateChartStepOutput, type GenerateImageStepInput, type GenerateImageStepOutput, type GenerateLipsyncStepInput, type GenerateLipsyncStepOutput, type GenerateMusicStepInput, type GenerateMusicStepOutput, type GeneratePdfStepInput, type GeneratePdfStepOutput, type GenerateStaticVideoFromImageStepInput, type GenerateStaticVideoFromImageStepOutput, type GenerateTextStepInput, type GenerateTextStepOutput, type GenerateVideoStepInput, type GenerateVideoStepOutput, type GetGmailAttachmentsStepInput, type GetGmailAttachmentsStepOutput, type GetGmailDraftStepInput, type GetGmailDraftStepOutput, type GetGmailEmailStepInput, type GetGmailEmailStepOutput, type GetGmailUnreadCountStepInput, type GetGmailUnreadCountStepOutput, type GetGoogleCalendarEventStepInput, type GetGoogleCalendarEventStepOutput, type GetGoogleDriveFileStepInput, type GetGoogleDriveFileStepOutput, type GetGoogleSheetInfoStepInput, type GetGoogleSheetInfoStepOutput, type GetMediaMetadataStepInput, type GetMediaMetadataStepOutput, type HubspotCreateCompanyStepInput, type HubspotCreateCompanyStepOutput, type HubspotCreateContactStepInput, type HubspotCreateContactStepOutput, type HubspotGetCompanyStepInput, type HubspotGetCompanyStepOutput, type HubspotGetContactStepInput, type HubspotGetContactStepOutput, type HunterApiCompanyEnrichmentStepInput, type HunterApiCompanyEnrichmentStepOutput, type HunterApiDomainSearchStepInput, type HunterApiDomainSearchStepOutput, type HunterApiEmailFinderStepInput, type HunterApiEmailFinderStepOutput, type HunterApiEmailVerificationStepInput, type HunterApiEmailVerificationStepOutput, type HunterApiPersonEnrichmentStepInput, type HunterApiPersonEnrichmentStepOutput, type ImageFaceSwapStepInput, type ImageFaceSwapStepOutput, type ImageRemoveWatermarkStepInput, type ImageRemoveWatermarkStepOutput, type InsertVideoClipsStepInput, type InsertVideoClipsStepOutput, type Jewel, type JewelConfig, type JewelGradeContext, type JewelMethod, type JewelMethodInput, type JewelPairRecord, type JewelProposal, type JewelProposeOutcome, type JewelProposeResult, type JewelQueueItem, type JewelQueueResolution, type JewelQueueResolveResult, type JewelRunParams, type JewelVerdict, type JewelsApi, type JsonObjectSchema, type JsonSchema, type JsonSchemaTypeName, type ListAgentsResult, type ListDataSourcesStepInput, type ListDataSourcesStepOutput, type ListGmailDraftsStepInput, type ListGmailDraftsStepOutput, type ListGmailLabelsStepInput, type ListGmailLabelsStepOutput, type ListGoogleCalendarEventsStepInput, type ListGoogleCalendarEventsStepOutput, type ListGoogleDriveFilesStepInput, type ListGoogleDriveFilesStepOutput, type ListOptions, type ListRecentGmailEmailsStepInput, type ListRecentGmailEmailsStepOutput, type LiveNow, type LogicStepInput, type LogicStepOutput, MAX_EVENT_PAYLOAD_CHARS, type MakeDotComRunScenarioStepInput, type MakeDotComRunScenarioStepOutput, type MapObject, type MapOutcome, type MapPoint, type MapRunObject, type MapRunOutcome, type MapRunParams, type MapRunRecord, type MapRunResult, type MappedDocument, type Mapper, type MapperConfig, type MergeAudioStepInput, type MergeAudioStepOutput, type MergeVideosStepInput, type MergeVideosStepOutput, type MeshyAnimateStepInput, type MeshyAnimateStepOutput, type MeshyImageTo3dStepInput, type MeshyImageTo3dStepOutput, type MeshyRemeshStepInput, type MeshyRemeshStepOutput, type MeshyRigStepInput, type MeshyRigStepOutput, type MeshyTextTo3dStepInput, type MeshyTextTo3dStepOutput, type MeshyTextureStepInput, type MeshyTextureStepOutput, MindStudioAgent, MindStudioError, type MindStudioModel, type MindStudioModelSummary, type MixAudioIntoVideoStepInput, type MixAudioIntoVideoStepOutput, type ModelType, type MonacoSnippet, type MonacoSnippetField, type MonacoSnippetFieldType, type MuteVideoStepInput, type MuteVideoStepOutput, type N8nRunNodeStepInput, type N8nRunNodeStepOutput, type NotionCreatePageStepInput, type NotionCreatePageStepOutput, type NotionUpdatePageStepInput, type NotionUpdatePageStepOutput, type PackagedWorkflow, type PackagedWorkflowInput, type PackagedWorkflowSignature, type ParticlePodcastsFindMentionsStepInput, type ParticlePodcastsFindMentionsStepOutput, type ParticlePodcastsGetEpisodeStepInput, type ParticlePodcastsGetEpisodeStepOutput, type ParticlePodcastsGetEpisodeTranscriptStepInput, type ParticlePodcastsGetEpisodeTranscriptStepOutput, type ParticlePodcastsSearchCompaniesStepInput, type ParticlePodcastsSearchCompaniesStepOutput, type ParticlePodcastsSearchDialogueStepInput, type ParticlePodcastsSearchDialogueStepOutput, type ParticlePodcastsSearchPodcastsStepInput, type ParticlePodcastsSearchPodcastsStepOutput, type PeopleSearchStepInput, type PeopleSearchStepOutput, type PostToLinkedInStepInput, type PostToLinkedInStepOutput, type PostToSlackChannelStepInput, type PostToSlackChannelStepOutput, type PostToXStepInput, type PostToXStepOutput, type PostToZapierStepInput, type PostToZapierStepOutput, type Predicate, type PushInput, type PutOptions, Query, type QueryDataSourceStepInput, type QueryDataSourceStepOutput, type QueryExternalDatabaseStepInput, type QueryExternalDatabaseStepOutput, RawQuery, type RedactPIIStepInput, type RedactPIIStepOutput, type RemoveBackgroundFromImageStepInput, type RemoveBackgroundFromImageStepOutput, type ReplyToGmailEmailStepInput, type ReplyToGmailEmailStepOutput, type ReportIssueInput, type ReportedIssue, type RequestContext, type ResizeVideoStepInput, type ResizeVideoStepOutput, type ResolvedUser, Roles, type RunAgentOptions, type RunAgentResult, type RunFromConnectorRegistryStepInput, type RunFromConnectorRegistryStepOutput, type RunPackagedWorkflowStepInput, type RunPackagedWorkflowStepOutput, type RunTaskOptions, type RunTaskOptionsWithExample, type RunTaskOptionsWithSchema, type RunTaskResult, type SchemaValidationError, type ScrapeLinkedInCompanyStepInput, type ScrapeLinkedInCompanyStepOutput, type ScrapeLinkedInProfileStepInput, type ScrapeLinkedInProfileStepOutput, type ScrapeUrlStepInput, type ScrapeUrlStepOutput, type ScrapeXPostStepInput, type ScrapeXPostStepOutput, type ScrapeXProfileStepInput, type ScrapeXProfileStepOutput, type ScreenshotUrlStepInput, type ScreenshotUrlStepOutput, type SearchGmailEmailsStepInput, type SearchGmailEmailsStepOutput, type SearchGoogleCalendarEventsStepInput, type SearchGoogleCalendarEventsStepOutput, type SearchGoogleDriveStepInput, type SearchGoogleDriveStepOutput, type SearchGoogleImagesStepInput, type SearchGoogleImagesStepOutput, type SearchGoogleNewsStepInput, type SearchGoogleNewsStepOutput, type SearchGoogleStepInput, type SearchGoogleStepOutput, type SearchGoogleTrendsStepInput, type SearchGoogleTrendsStepOutput, type SearchPerplexityStepInput, type SearchPerplexityStepOutput, type SearchXPostsStepInput, type SearchXPostsStepOutput, type SearchYoutubeStepInput, type SearchYoutubeStepOutput, type SearchYoutubeTrendsStepInput, type SearchYoutubeTrendsStepOutput, type SendEmailStepInput, type SendEmailStepOutput, type SendGmailDraftStepInput, type SendGmailDraftStepOutput, type SendGmailMessageStepInput, type SendGmailMessageStepOutput, type SendSMSStepInput, type SendSMSStepOutput, type SendSlackDirectMessageStepInput, type SendSlackDirectMessageStepOutput, type SessionContext, type SetGmailReadStatusStepInput, type SetGmailReadStatusStepOutput, type SetRunTitleStepInput, type SetRunTitleStepOutput, type SetVariableStepInput, type SetVariableStepOutput, type StepCostEstimateEntry, type StepExecutionMeta, type StepExecutionOptions, type StepExecutionResult, type StepInputMap, type StepLogEvent, type StepMetadata, type StepMethods, type StepName, type StepOutputMap, Store, type StoredFile, type SystemFields, Table, type TaskEvent, type TaskToolCall, type TaskToolConfig, type TaskUsage, type TelegramEditMessageStepInput, type TelegramEditMessageStepOutput, type TelegramReplyToMessageStepInput, type TelegramReplyToMessageStepOutput, type TelegramSendAudioStepInput, type TelegramSendAudioStepOutput, type TelegramSendFileStepInput, type TelegramSendFileStepOutput, type TelegramSendImageStepInput, type TelegramSendImageStepOutput, type TelegramSendMessageStepInput, type TelegramSendMessageStepOutput, type TelegramSendVideoStepInput, type TelegramSendVideoStepOutput, type TelegramSetTypingStepInput, type TelegramSetTypingStepOutput, type TextToSpeechStepInput, type TextToSpeechStepOutput, type TopSource, type TranscribeAudioStepInput, type TranscribeAudioStepOutput, type TrimMediaStepInput, type TrimMediaStepOutput, type UpdateGmailLabelsStepInput, type UpdateGmailLabelsStepOutput, type UpdateGoogleCalendarEventStepInput, type UpdateGoogleCalendarEventStepOutput, type UpdateGoogleDocStepInput, type UpdateGoogleDocStepOutput, type UpdateGoogleSheetStepInput, type UpdateGoogleSheetStepOutput, type UpdateInput, type UploadDataSourceDocumentStepInput, type UploadDataSourceDocumentStepOutput, type UploadFileResult, type UploadToken, type UpscaleImageStepInput, type UpscaleImageStepOutput, type UpscaleVideoStepInput, type UpscaleVideoStepOutput, type User, type UserInfoResult, type UserMessageStepInput, type UserMessageStepOutput, type VideoFaceSwapStepInput, type VideoFaceSwapStepOutput, type VideoRemoveBackgroundStepInput, type VideoRemoveBackgroundStepOutput, type VideoRemoveWatermarkStepInput, type VideoRemoveWatermarkStepOutput, type Voice, type VoiceCallResult, type WatermarkImageStepInput, type WatermarkImageStepOutput, type WatermarkVideoStepInput, type WatermarkVideoStepOutput, type YouDotComFinanceResearchStepInput, type YouDotComFinanceResearchStepOutput, type YouDotComGetPageContentStepInput, type YouDotComGetPageContentStepOutput, type YouDotComLiveNewsStepInput, type YouDotComLiveNewsStepOutput, type YouDotComWebResearchStepInput, type YouDotComWebResearchStepOutput, type YouDotComWebSearchStepInput, type YouDotComWebSearchStepOutput, analytics, auth, blockTypeAliases, dataSources, db, mindstudio as default, defineJewel, defineMapper, deletes, documents, email, events, files, getRequestContext, mindstudio, monacoSnippets, passthrough, prerender, reportIssue, resolveUser, runWithContext, session, skip, stepMetadata, stream, voice, waitUntil };