@mindstudio-ai/agent 0.1.104 → 0.1.106
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/cli.js +105 -10
- package/dist/index.d.ts +247 -3
- package/dist/index.js +99 -4
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +105 -10
- package/llms.txt +38 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2071,8 +2071,10 @@ interface Jewel<M extends JewelMethod, S> {
|
|
|
2071
2071
|
* - `disabled` — the method has no jewel or autonomy is `manual`. Returned,
|
|
2072
2072
|
* never thrown: dialing a method down must not break the app code that
|
|
2073
2073
|
* proposes to it.
|
|
2074
|
-
* - `skipped` —
|
|
2075
|
-
*
|
|
2074
|
+
* - `skipped` — jewel-descended recursion, unsampled (sampleRate), or a dev
|
|
2075
|
+
* session whose CLI didn't report jewel metadata. Dev sessions otherwise
|
|
2076
|
+
* run the full behavioral flow (queue items scoped to the session, auto
|
|
2077
|
+
* commits against the dev database) without recording any training data.
|
|
2076
2078
|
* - `failed` — an auto commit was attempted and the method rejected it
|
|
2077
2079
|
* (e.g. the state was consumed concurrently). The moment stays pending.
|
|
2078
2080
|
* - `pending` — a concurrent replay: the original propose for this
|
|
@@ -2673,6 +2675,192 @@ interface Voice {
|
|
|
2673
2675
|
}): Promise<VoiceCallResult>;
|
|
2674
2676
|
}
|
|
2675
2677
|
|
|
2678
|
+
type AnalyticsMetric = 'pageviews' | 'visitors' | 'visits' | 'events';
|
|
2679
|
+
type AnalyticsDimension = 'path' | 'referrerHost' | 'sourceCategory' | 'country' | 'city' | 'deviceType' | 'browser' | 'os' | 'language' | 'visitorType' | 'utmSource' | 'utmMedium' | 'utmCampaign' | 'utmTerm' | 'utmContent' | 'eventName';
|
|
2680
|
+
type AnalyticsFilterOp = 'is' | 'is_not' | 'contains';
|
|
2681
|
+
/**
|
|
2682
|
+
* `[op, dimension, values]`. `is` matches any of the values; `is_not`
|
|
2683
|
+
* excludes all of them (rows missing the dimension still match); `contains`
|
|
2684
|
+
* is case-insensitive substring. Only `is` filters can be served from the
|
|
2685
|
+
* lifetime rollup — the others read the 90-day event table. `city` filters
|
|
2686
|
+
* take plain city names (matching any country) and always read the 90-day
|
|
2687
|
+
* event table.
|
|
2688
|
+
*/
|
|
2689
|
+
type AnalyticsFilter = [AnalyticsFilterOp, AnalyticsDimension, string[]];
|
|
2690
|
+
type AnalyticsGranularity = '5m' | 'hour' | 'day' | 'week' | 'month';
|
|
2691
|
+
/** Shorthand ("30d", "all") or explicit `[startISO, endISO]`. Default "24h". */
|
|
2692
|
+
type AnalyticsDateRange = '1h' | '24h' | '7d' | '30d' | '90d' | 'all' | [string, string];
|
|
2693
|
+
interface AnalyticsQuerySpec {
|
|
2694
|
+
/** At least one of: pageviews, visitors, visits, events. */
|
|
2695
|
+
metrics: AnalyticsMetric[];
|
|
2696
|
+
/** At most one entity dimension OR `'time'` (not both, yet). */
|
|
2697
|
+
dimensions?: (AnalyticsDimension | 'time')[];
|
|
2698
|
+
/**
|
|
2699
|
+
* Required when `'time'` is in dimensions. With `dateRange: 'all'` it is
|
|
2700
|
+
* a minimum — the server coarsens automatically once the app's history
|
|
2701
|
+
* outgrows the grain.
|
|
2702
|
+
*/
|
|
2703
|
+
granularity?: AnalyticsGranularity;
|
|
2704
|
+
/** IANA zone for calendar grains (day/week/month boundaries). Default UTC. */
|
|
2705
|
+
timezone?: string;
|
|
2706
|
+
filters?: AnalyticsFilter[];
|
|
2707
|
+
dateRange?: AnalyticsDateRange;
|
|
2708
|
+
/** Grouped queries only: one `['pageviews' | 'events', 'asc' | 'desc']`. */
|
|
2709
|
+
orderBy?: ['pageviews' | 'events', 'asc' | 'desc'][];
|
|
2710
|
+
/** Grouped queries only. Default 25, max 1000. */
|
|
2711
|
+
limit?: number;
|
|
2712
|
+
offset?: number;
|
|
2713
|
+
/** Scope to one release (rarely needed — analytics is app-wide). */
|
|
2714
|
+
releaseId?: string;
|
|
2715
|
+
}
|
|
2716
|
+
interface AnalyticsQueryResultRow {
|
|
2717
|
+
/** Group keys: the entity dimension and/or `time` (bucket-start ISO). */
|
|
2718
|
+
dimensions: Record<string, string>;
|
|
2719
|
+
/** Only the requested-and-available metrics appear. */
|
|
2720
|
+
metrics: Partial<Record<AnalyticsMetric, number>>;
|
|
2721
|
+
}
|
|
2722
|
+
interface AnalyticsQueryResponse {
|
|
2723
|
+
results: AnalyticsQueryResultRow[];
|
|
2724
|
+
meta: {
|
|
2725
|
+
/** Which store answered: 'rollup' = lifetime, 'events' = 90-day raw. */
|
|
2726
|
+
source: 'rollup' | 'events';
|
|
2727
|
+
window: {
|
|
2728
|
+
requested: [string, string];
|
|
2729
|
+
served: [string, string];
|
|
2730
|
+
};
|
|
2731
|
+
/** True when an events-path window was cut to the retention horizon. */
|
|
2732
|
+
clamped: boolean;
|
|
2733
|
+
/** Requested metrics this query shape can't carry. */
|
|
2734
|
+
metricsOmitted?: AnalyticsMetric[];
|
|
2735
|
+
/** Grouped queries: unpaginated distinct-group count, for paging. */
|
|
2736
|
+
total?: number;
|
|
2737
|
+
};
|
|
2738
|
+
}
|
|
2739
|
+
/** Shared options for the special reads (same grammar as `query`). */
|
|
2740
|
+
interface AnalyticsReadOptions {
|
|
2741
|
+
dateRange?: AnalyticsDateRange;
|
|
2742
|
+
filters?: AnalyticsFilter[];
|
|
2743
|
+
releaseId?: string;
|
|
2744
|
+
limit?: number;
|
|
2745
|
+
offset?: number;
|
|
2746
|
+
}
|
|
2747
|
+
interface LiveNow {
|
|
2748
|
+
/** Visitors on the app right now. */
|
|
2749
|
+
count: number;
|
|
2750
|
+
countries: {
|
|
2751
|
+
country: string;
|
|
2752
|
+
count: number;
|
|
2753
|
+
}[];
|
|
2754
|
+
/** Last hour of live-count samples, one per minute. `ts` is an ISO string. */
|
|
2755
|
+
sparkline: {
|
|
2756
|
+
ts: string;
|
|
2757
|
+
count: number;
|
|
2758
|
+
}[];
|
|
2759
|
+
}
|
|
2760
|
+
interface TopSource {
|
|
2761
|
+
sourceType: 'utm' | 'referrer' | 'direct';
|
|
2762
|
+
sourceLabel: string;
|
|
2763
|
+
visits: number;
|
|
2764
|
+
uniqueVisitors: number;
|
|
2765
|
+
/** ai_assistant | search | social | email | direct | other. */
|
|
2766
|
+
category: string;
|
|
2767
|
+
/** Vendor display name for classified hosts (e.g. "OpenAI"), else null. */
|
|
2768
|
+
vendor: string | null;
|
|
2769
|
+
}
|
|
2770
|
+
interface MapPoint {
|
|
2771
|
+
city: string;
|
|
2772
|
+
country: string;
|
|
2773
|
+
latitude: number;
|
|
2774
|
+
longitude: number;
|
|
2775
|
+
pageviews: number;
|
|
2776
|
+
uniqueVisitors: number;
|
|
2777
|
+
}
|
|
2778
|
+
interface AiSourceVendor {
|
|
2779
|
+
vendor: string;
|
|
2780
|
+
pageviews: number;
|
|
2781
|
+
uniqueVisitors: number;
|
|
2782
|
+
hosts: string[];
|
|
2783
|
+
}
|
|
2784
|
+
interface CrawlerOverview {
|
|
2785
|
+
totalHits: number;
|
|
2786
|
+
byVendor: {
|
|
2787
|
+
vendor: string;
|
|
2788
|
+
count: number;
|
|
2789
|
+
}[];
|
|
2790
|
+
topPages: {
|
|
2791
|
+
path: string;
|
|
2792
|
+
count: number;
|
|
2793
|
+
}[];
|
|
2794
|
+
}
|
|
2795
|
+
interface CrawlerBucket {
|
|
2796
|
+
start: string;
|
|
2797
|
+
total: number;
|
|
2798
|
+
byVendor: Record<string, number>;
|
|
2799
|
+
}
|
|
2800
|
+
interface CrawlerHit {
|
|
2801
|
+
id: string;
|
|
2802
|
+
releaseId: string;
|
|
2803
|
+
path: string;
|
|
2804
|
+
host: string | null;
|
|
2805
|
+
botVendor: string;
|
|
2806
|
+
botName: string;
|
|
2807
|
+
country: string | null;
|
|
2808
|
+
createdAt: string;
|
|
2809
|
+
}
|
|
2810
|
+
/** The `analytics` namespace object. */
|
|
2811
|
+
interface Analytics {
|
|
2812
|
+
/** The general read: metrics × dimensions × filters × time. */
|
|
2813
|
+
query(spec: AnalyticsQuerySpec): Promise<AnalyticsQueryResponse>;
|
|
2814
|
+
/**
|
|
2815
|
+
* Up to 10 queries in one round trip, results in request order — the right
|
|
2816
|
+
* shape for a page composed of several reads (KPIs + timeseries + a few
|
|
2817
|
+
* breakdowns), instead of a parallel burst of `query()` calls competing
|
|
2818
|
+
* with each other against the per-app rate limit. Each query in the batch
|
|
2819
|
+
* counts as one read against the limit. One invalid query fails the whole
|
|
2820
|
+
* batch (the error names its index).
|
|
2821
|
+
*/
|
|
2822
|
+
batch(specs: AnalyticsQuerySpec[]): Promise<AnalyticsQueryResponse[]>;
|
|
2823
|
+
/** Who's on the app right now (Redis presence, no time window). */
|
|
2824
|
+
live(): Promise<LiveNow>;
|
|
2825
|
+
/**
|
|
2826
|
+
* Ranked traffic sources — each session attributed to its first pageview's
|
|
2827
|
+
* source (UTM > referrer > direct), classified by category/vendor. Always
|
|
2828
|
+
* reads raw events (90-day window).
|
|
2829
|
+
*/
|
|
2830
|
+
sources(options?: AnalyticsReadOptions): Promise<{
|
|
2831
|
+
results: TopSource[];
|
|
2832
|
+
total: number;
|
|
2833
|
+
}>;
|
|
2834
|
+
/** City-level visitor points with coordinates. */
|
|
2835
|
+
map(options?: AnalyticsReadOptions): Promise<{
|
|
2836
|
+
points: MapPoint[];
|
|
2837
|
+
total: number;
|
|
2838
|
+
}>;
|
|
2839
|
+
/** AI-assistant referral traffic, aggregated per vendor. */
|
|
2840
|
+
aiSources(options?: Omit<AnalyticsReadOptions, 'filters' | 'offset'>): Promise<{
|
|
2841
|
+
results: AiSourceVendor[];
|
|
2842
|
+
hosts: {
|
|
2843
|
+
host: string;
|
|
2844
|
+
pageviews: number;
|
|
2845
|
+
uniqueVisitors: number;
|
|
2846
|
+
}[];
|
|
2847
|
+
}>;
|
|
2848
|
+
/** Bot / AI-crawler ingestion of the app's pages. */
|
|
2849
|
+
crawlers: {
|
|
2850
|
+
overview(options?: Omit<AnalyticsReadOptions, 'filters' | 'limit' | 'offset'> & {
|
|
2851
|
+
topPagesLimit?: number;
|
|
2852
|
+
}): Promise<CrawlerOverview>;
|
|
2853
|
+
timeseries(options?: Omit<AnalyticsReadOptions, 'filters' | 'limit' | 'offset'> & {
|
|
2854
|
+
buckets?: number;
|
|
2855
|
+
}): Promise<{
|
|
2856
|
+
buckets: CrawlerBucket[];
|
|
2857
|
+
}>;
|
|
2858
|
+
recent(options?: Pick<AnalyticsReadOptions, 'dateRange' | 'releaseId' | 'limit'>): Promise<{
|
|
2859
|
+
results: CrawlerHit[];
|
|
2860
|
+
}>;
|
|
2861
|
+
};
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2676
2864
|
/**
|
|
2677
2865
|
* JSON Schema support for task-agent structured output.
|
|
2678
2866
|
*
|
|
@@ -2966,6 +3154,7 @@ declare class MindStudioAgent$1 {
|
|
|
2966
3154
|
private _files;
|
|
2967
3155
|
private _dataSources;
|
|
2968
3156
|
private _voice;
|
|
3157
|
+
private _analytics;
|
|
2969
3158
|
/** @internal Auth type — 'internal' for CALLBACK_TOKEN (managed mode), 'apiKey' otherwise. */
|
|
2970
3159
|
private _authType;
|
|
2971
3160
|
/** @internal Usage source sent on step executions (from MINDSTUDIO_REQUEST_SOURCE).
|
|
@@ -3289,6 +3478,23 @@ declare class MindStudioAgent$1 {
|
|
|
3289
3478
|
* ```
|
|
3290
3479
|
*/
|
|
3291
3480
|
get files(): Files;
|
|
3481
|
+
/**
|
|
3482
|
+
* The `analytics` namespace — read the app's own traffic + event analytics
|
|
3483
|
+
* (auto-tracked pageviews, `analytics.track()` events). One general
|
|
3484
|
+
* `query()` (metrics × dimensions × filters × time) plus `live()`,
|
|
3485
|
+
* `sources()`, `map()`, `aiSources()`, `crawlers.*`. See {@link Analytics}
|
|
3486
|
+
* for the lifetime-rollup vs 90-day-events split.
|
|
3487
|
+
*
|
|
3488
|
+
* @example
|
|
3489
|
+
* ```ts
|
|
3490
|
+
* const top = await agent.analytics.query({
|
|
3491
|
+
* metrics: ['pageviews', 'visitors'],
|
|
3492
|
+
* dimensions: ['path'],
|
|
3493
|
+
* dateRange: 'all',
|
|
3494
|
+
* });
|
|
3495
|
+
* ```
|
|
3496
|
+
*/
|
|
3497
|
+
get analytics(): Analytics;
|
|
3292
3498
|
/**
|
|
3293
3499
|
* Jewel surfaces: arrival-shaped triggers (`propose`) and the app-native
|
|
3294
3500
|
* approval queue (`queue.list` / `queue.resolve`). See {@link JewelsApi}.
|
|
@@ -3334,6 +3540,17 @@ declare class MindStudioAgent$1 {
|
|
|
3334
3540
|
* POST /_internal/v2/voice/<op> with the raw hook token.
|
|
3335
3541
|
*/
|
|
3336
3542
|
private _voiceRequest;
|
|
3543
|
+
/**
|
|
3544
|
+
* @internal Transport for the `analytics` namespace —
|
|
3545
|
+
* POST /_internal/v2/analytics/<op> with the raw hook token.
|
|
3546
|
+
*
|
|
3547
|
+
* Retries a single 429 after a short jittered backoff: analytics reads are
|
|
3548
|
+
* idempotent and a 429 means the read never executed, so one retry lets a
|
|
3549
|
+
* momentary burst (a page's fan-out racing a live poller) self-heal instead
|
|
3550
|
+
* of surfacing as empty data. Deliberately single-shot and scoped to this
|
|
3551
|
+
* namespace — the other brokered transports keep their semantics.
|
|
3552
|
+
*/
|
|
3553
|
+
private _analyticsRequest;
|
|
3337
3554
|
/**
|
|
3338
3555
|
* @internal Shared shape for the brokered `/_internal/v2/<ns>/<op>` data
|
|
3339
3556
|
* planes. Factored out rather than copied per namespace so error handling
|
|
@@ -6735,6 +6952,8 @@ interface SendEmailStepInput {
|
|
|
6735
6952
|
inReplyTo?: string;
|
|
6736
6953
|
/** Prior Message-IDs in the thread, for inbox threading (References header). */
|
|
6737
6954
|
references?: string[];
|
|
6955
|
+
/** `marketing` (default) adds one-click unsubscribe headers and skips recipients who unsubscribed from this app. Use `transactional` for receipts, alerts and password resets: no unsubscribe header, never suppressed, and cc/bcc preserved on a single message. */
|
|
6956
|
+
category?: "transactional" | "marketing";
|
|
6738
6957
|
}
|
|
6739
6958
|
interface SendEmailStepOutput {
|
|
6740
6959
|
/** To addresses the message was sent to. */
|
|
@@ -6745,6 +6964,8 @@ interface SendEmailStepOutput {
|
|
|
6745
6964
|
bcc: string[];
|
|
6746
6965
|
/** The resolved sender address the message went out as (auto-selected when no `from` is given). */
|
|
6747
6966
|
from: string;
|
|
6967
|
+
/** Recipients skipped because they unsubscribed from this app. Always empty for a `transactional` send. */
|
|
6968
|
+
suppressed: string[];
|
|
6748
6969
|
}
|
|
6749
6970
|
interface SendGmailDraftStepInput {
|
|
6750
6971
|
/** Gmail draft ID to send */
|
|
@@ -9850,6 +10071,8 @@ interface StepMethods {
|
|
|
9850
10071
|
* - For threaded replies in a shared inbox, set inReplyTo (the Message-ID being replied to) and references (prior Message-IDs in the thread).
|
|
9851
10072
|
* - connectionId can be a comma-separated list to send to multiple recipients.
|
|
9852
10073
|
* - The special connectionId "trigger_email" uses the email address that triggered the workflow.
|
|
10074
|
+
* - Sends default to category "marketing": every message carries a one-click unsubscribe header pointing at the app's own domain, and recipients who previously unsubscribed from this app are skipped and returned in "suppressed". Because the unsubscribe link is per-recipient, a marketing send delivers one separate message per recipient and cc/bcc are folded into that list.
|
|
10075
|
+
* - Set category to "transactional" for receipts, alerts, password resets and anything a recipient must not be able to opt out of. Transactional sends carry no unsubscribe header, ignore the unsubscribe list, and keep cc/bcc on a single message — use it whenever cc/bcc semantics matter.
|
|
9853
10076
|
*
|
|
9854
10077
|
* @example
|
|
9855
10078
|
* ```typescript
|
|
@@ -10694,6 +10917,27 @@ declare const dataSources: DataSources;
|
|
|
10694
10917
|
* ```
|
|
10695
10918
|
*/
|
|
10696
10919
|
declare const voice: Voice;
|
|
10920
|
+
/**
|
|
10921
|
+
* Top-level `analytics` namespace bound to the default singleton.
|
|
10922
|
+
*
|
|
10923
|
+
* Read the app's own traffic + event analytics from method code. Queries
|
|
10924
|
+
* touching at most one dimension with `is` filters read a lifetime rollup;
|
|
10925
|
+
* cross-dimension / `is_not` / `contains` reads scan 90-day raw events —
|
|
10926
|
+
* `meta.source` and `meta.clamped` report which. See the `analytics` module
|
|
10927
|
+
* docs.
|
|
10928
|
+
*
|
|
10929
|
+
* @example
|
|
10930
|
+
* ```ts
|
|
10931
|
+
* import { analytics } from '@mindstudio-ai/agent';
|
|
10932
|
+
*
|
|
10933
|
+
* const top = await analytics.query({
|
|
10934
|
+
* metrics: ['pageviews', 'visitors'],
|
|
10935
|
+
* dimensions: ['path'],
|
|
10936
|
+
* dateRange: 'all',
|
|
10937
|
+
* });
|
|
10938
|
+
* ```
|
|
10939
|
+
*/
|
|
10940
|
+
declare const analytics: Analytics;
|
|
10697
10941
|
/**
|
|
10698
10942
|
* Originating-session identity for this invocation — set when the method was
|
|
10699
10943
|
* triggered by a conversational surface (a voice call's tool use, an
|
|
@@ -10801,4 +11045,4 @@ declare const prerender: {
|
|
|
10801
11045
|
}>;
|
|
10802
11046
|
};
|
|
10803
11047
|
|
|
10804
|
-
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 AirtableCreateUpdateRecordStepInput, type AirtableCreateUpdateRecordStepOutput, type AirtableDeleteRecordStepInput, type AirtableDeleteRecordStepOutput, type AirtableGetRecordStepInput, type AirtableGetRecordStepOutput, type AirtableGetTableRecordsStepInput, type AirtableGetTableRecordsStepOutput, type AnalyzeImageStepInput, type AnalyzeImageStepOutput, type AnalyzeVideoStepInput, type AnalyzeVideoStepOutput, type AppAuthContext, type AppContextResult, type AppDatabase, type AppDatabaseColumnSchema, type AppDatabaseTable, type AppRoleAssignment, AuthContext, type AuthTableConfig, type BatchStepInput, type BatchStepResult, type 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 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 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 LogicStepInput, type LogicStepOutput, type MakeDotComRunScenarioStepInput, type MakeDotComRunScenarioStepOutput, type MergeAudioStepInput, type MergeAudioStepOutput, type MergeVideosStepInput, type MergeVideosStepOutput, type MeshyAnimateStepInput, type MeshyAnimateStepOutput, type MeshyImageTo3dStepInput, type MeshyImageTo3dStepOutput, type MeshyRemeshStepInput, type MeshyRemeshStepOutput, type MeshyRigStepInput, type MeshyRigStepOutput, type MeshyTextTo3dStepInput, type MeshyTextTo3dStepOutput, type MeshyTextureStepInput, type MeshyTextureStepOutput, MindStudioAgent, MindStudioError, type MindStudioModel, type MindStudioModelSummary, type MixAudioIntoVideoStepInput, type MixAudioIntoVideoStepOutput, type ModelType, type MonacoSnippet, type MonacoSnippetField, type MonacoSnippetFieldType, type MuteVideoStepInput, type MuteVideoStepOutput, type N8nRunNodeStepInput, type N8nRunNodeStepOutput, type NotionCreatePageStepInput, type NotionCreatePageStepOutput, type NotionUpdatePageStepInput, type NotionUpdatePageStepOutput, type PackagedWorkflow, type PackagedWorkflowInput, type PackagedWorkflowSignature, type 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 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, auth, blockTypeAliases, dataSources, db, mindstudio as default, defineJewel, files, getRequestContext, mindstudio, monacoSnippets, prerender, reportIssue, resolveUser, runWithContext, session, stepMetadata, stream, voice, waitUntil };
|
|
11048
|
+
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 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, 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, files, getRequestContext, mindstudio, monacoSnippets, prerender, reportIssue, resolveUser, runWithContext, session, stepMetadata, stream, voice, waitUntil };
|
package/dist/index.js
CHANGED
|
@@ -2778,6 +2778,42 @@ function createVoice(call) {
|
|
|
2778
2778
|
};
|
|
2779
2779
|
}
|
|
2780
2780
|
|
|
2781
|
+
// src/analytics/index.ts
|
|
2782
|
+
function createAnalytics(call) {
|
|
2783
|
+
return {
|
|
2784
|
+
query(spec) {
|
|
2785
|
+
return call("query", spec);
|
|
2786
|
+
},
|
|
2787
|
+
async batch(specs) {
|
|
2788
|
+
const res = await call("query-batch", { queries: specs });
|
|
2789
|
+
return res.results;
|
|
2790
|
+
},
|
|
2791
|
+
live() {
|
|
2792
|
+
return call("live", {});
|
|
2793
|
+
},
|
|
2794
|
+
sources(options) {
|
|
2795
|
+
return call("sources", options ?? {});
|
|
2796
|
+
},
|
|
2797
|
+
map(options) {
|
|
2798
|
+
return call("map", options ?? {});
|
|
2799
|
+
},
|
|
2800
|
+
aiSources(options) {
|
|
2801
|
+
return call("ai-sources", options ?? {});
|
|
2802
|
+
},
|
|
2803
|
+
crawlers: {
|
|
2804
|
+
overview(options) {
|
|
2805
|
+
return call("crawlers-overview", options ?? {});
|
|
2806
|
+
},
|
|
2807
|
+
timeseries(options) {
|
|
2808
|
+
return call("crawlers-timeseries", options ?? {});
|
|
2809
|
+
},
|
|
2810
|
+
recent(options) {
|
|
2811
|
+
return call("crawlers-recent", options ?? {});
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
};
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2781
2817
|
// src/task/index.ts
|
|
2782
2818
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
2783
2819
|
|
|
@@ -3759,9 +3795,11 @@ var stepMetadata = {
|
|
|
3759
3795
|
- Set replyTo to control the Reply-To address for replies.
|
|
3760
3796
|
- For threaded replies in a shared inbox, set inReplyTo (the Message-ID being replied to) and references (prior Message-IDs in the thread).
|
|
3761
3797
|
- connectionId can be a comma-separated list to send to multiple recipients.
|
|
3762
|
-
- The special connectionId "trigger_email" uses the email address that triggered the workflow
|
|
3763
|
-
|
|
3764
|
-
|
|
3798
|
+
- The special connectionId "trigger_email" uses the email address that triggered the workflow.
|
|
3799
|
+
- Sends default to category "marketing": every message carries a one-click unsubscribe header pointing at the app's own domain, and recipients who previously unsubscribed from this app are skipped and returned in "suppressed". Because the unsubscribe link is per-recipient, a marketing send delivers one separate message per recipient and cc/bcc are folded into that list.
|
|
3800
|
+
- Set category to "transactional" for receipts, alerts, password resets and anything a recipient must not be able to opt out of. Transactional sends carry no unsubscribe header, ignore the unsubscribe list, and keep cc/bcc on a single message \u2014 use it whenever cc/bcc semantics matter.`,
|
|
3801
|
+
inputSchema: { "type": "object", "properties": { "subject": { "type": "string", "description": "Email subject line" }, "body": { "type": "string", "description": "Email body content (plain text, markdown, HTML, or a CDN URL to an HTML file)" }, "to": { "anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] }, "cc": { "anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] }, "bcc": { "anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] }, "connectionId": { "type": "string", "description": "OAuth connection ID(s) for the recipient(s), comma-separated for multiple" }, "generateHtml": { "type": "boolean", "description": "When true, auto-convert the body text into a styled HTML email using AI" }, "generateHtmlInstructions": { "type": "string", "description": "Natural language instructions for the HTML generation style" }, "generateHtmlModelOverride": { "type": "object", "properties": { "model": { "type": "string", "description": 'Model identifier (e.g. "gpt-4", "claude-3-opus")' }, "temperature": { "type": "number", "description": "Sampling temperature for the model (0-2)" }, "maxResponseTokens": { "type": "number", "description": "Maximum number of tokens in the model's response" }, "ignorePreamble": { "type": "boolean", "description": "Whether to skip the system preamble/instructions" }, "userMessagePreprocessor": { "type": "object", "properties": { "dataSource": { "type": "string", "description": "Data source identifier for the preprocessor" }, "messageTemplate": { "type": "string", "description": "Template string applied to user messages before sending to the model" }, "maxResults": { "type": "number", "description": "Maximum number of results to include from the data source" }, "enabled": { "type": "boolean", "description": "Whether the preprocessor is active" }, "shouldInherit": { "type": "boolean", "description": "Whether child steps should inherit this preprocessor configuration" } }, "description": "Preprocessor applied to user messages before sending to the model" }, "preamble": { "type": "string", "description": "System preamble/instructions for the model" }, "multiModelEnabled": { "type": "boolean", "description": "Whether multi-model candidate generation is enabled" }, "editResponseEnabled": { "type": "boolean", "description": "Whether the user can edit the model's response" }, "config": { "type": "object", "properties": {}, "required": [], "description": "Additional model-specific configuration" } }, "required": ["model", "temperature", "maxResponseTokens"], "description": "Model settings override for HTML generation" }, "attachments": { "type": "array", "items": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "url": { "type": "string" }, "filename": { "type": "string" }, "contentType": { "type": "string" } }, "required": ["url"] }] }, "description": "Files to attach: each entry is a URL string, or an object `{ url, filename?, contentType? }` to control the displayed filename and MIME type." }, "from": { "type": "string", "description": "Custom sender handle \u2014 only for apps with a custom domain or subdomain. Bare handle (`support`), full `support@your-domain.com`, or `Name <support@your-domain.com>`. Must resolve to a domain the app owns." }, "bodyType": { "enum": ["auto", "html", "markdown", "text"], "type": "string", "description": "How to interpret `body`: `auto` (default \u2014 detect HTML, else render markdown), `html` (send as-is), `markdown` (render to HTML), or `text` (send as plain text only, no HTML part). Every send includes a text/plain alternative." }, "text": { "type": "string", "description": "Explicit text/plain alternative body. Auto-derived from `body` if omitted." }, "replyTo": { "type": "string", "description": "Reply-To address for the email." }, "inReplyTo": { "type": "string", "description": "Message-ID this email replies to, for inbox threading (In-Reply-To header)." }, "references": { "type": "array", "items": { "type": "string" }, "description": "Prior Message-IDs in the thread, for inbox threading (References header)." }, "category": { "enum": ["transactional", "marketing"], "type": "string", "description": "`marketing` (default) adds one-click unsubscribe headers and skips recipients who unsubscribed from this app. Use `transactional` for receipts, alerts and password resets: no unsubscribe header, never suppressed, and cc/bcc preserved on a single message." } }, "required": ["subject", "body"] },
|
|
3802
|
+
outputSchema: { "type": "object", "properties": { "recipients": { "type": "array", "items": { "type": "string" }, "description": "To addresses the message was sent to." }, "cc": { "type": "array", "items": { "type": "string" }, "description": "Cc addresses on the message (empty if none)." }, "bcc": { "type": "array", "items": { "type": "string" }, "description": "Bcc addresses on the message (empty if none)." }, "from": { "type": "string", "description": "The resolved sender address the message went out as (auto-selected when no `from` is given)." }, "suppressed": { "type": "array", "items": { "type": "string" }, "description": "Recipients skipped because they unsubscribed from this app. Always empty for a `transactional` send." } }, "required": ["recipients", "cc", "bcc", "from", "suppressed"] }
|
|
3765
3803
|
},
|
|
3766
3804
|
"sendGmailDraft": {
|
|
3767
3805
|
stepType: "sendGmailDraft",
|
|
@@ -5452,6 +5490,7 @@ var MindStudioAgent = class {
|
|
|
5452
5490
|
_files;
|
|
5453
5491
|
_dataSources;
|
|
5454
5492
|
_voice;
|
|
5493
|
+
_analytics;
|
|
5455
5494
|
/** @internal Auth type — 'internal' for CALLBACK_TOKEN (managed mode), 'apiKey' otherwise. */
|
|
5456
5495
|
_authType;
|
|
5457
5496
|
/** @internal Usage source sent on step executions (from MINDSTUDIO_REQUEST_SOURCE).
|
|
@@ -6468,6 +6507,27 @@ var MindStudioAgent = class {
|
|
|
6468
6507
|
get files() {
|
|
6469
6508
|
return this._files ??= createFiles(this._filesRequest.bind(this));
|
|
6470
6509
|
}
|
|
6510
|
+
/**
|
|
6511
|
+
* The `analytics` namespace — read the app's own traffic + event analytics
|
|
6512
|
+
* (auto-tracked pageviews, `analytics.track()` events). One general
|
|
6513
|
+
* `query()` (metrics × dimensions × filters × time) plus `live()`,
|
|
6514
|
+
* `sources()`, `map()`, `aiSources()`, `crawlers.*`. See {@link Analytics}
|
|
6515
|
+
* for the lifetime-rollup vs 90-day-events split.
|
|
6516
|
+
*
|
|
6517
|
+
* @example
|
|
6518
|
+
* ```ts
|
|
6519
|
+
* const top = await agent.analytics.query({
|
|
6520
|
+
* metrics: ['pageviews', 'visitors'],
|
|
6521
|
+
* dimensions: ['path'],
|
|
6522
|
+
* dateRange: 'all',
|
|
6523
|
+
* });
|
|
6524
|
+
* ```
|
|
6525
|
+
*/
|
|
6526
|
+
get analytics() {
|
|
6527
|
+
return this._analytics ??= createAnalytics(
|
|
6528
|
+
this._analyticsRequest.bind(this)
|
|
6529
|
+
);
|
|
6530
|
+
}
|
|
6471
6531
|
/**
|
|
6472
6532
|
* Jewel surfaces: arrival-shaped triggers (`propose`) and the app-native
|
|
6473
6533
|
* approval queue (`queue.list` / `queue.resolve`). See {@link JewelsApi}.
|
|
@@ -6596,6 +6656,33 @@ var MindStudioAgent = class {
|
|
|
6596
6656
|
fallbackCode: "voice_error"
|
|
6597
6657
|
});
|
|
6598
6658
|
}
|
|
6659
|
+
/**
|
|
6660
|
+
* @internal Transport for the `analytics` namespace —
|
|
6661
|
+
* POST /_internal/v2/analytics/<op> with the raw hook token.
|
|
6662
|
+
*
|
|
6663
|
+
* Retries a single 429 after a short jittered backoff: analytics reads are
|
|
6664
|
+
* idempotent and a 429 means the read never executed, so one retry lets a
|
|
6665
|
+
* momentary burst (a page's fan-out racing a live poller) self-heal instead
|
|
6666
|
+
* of surfacing as empty data. Deliberately single-shot and scoped to this
|
|
6667
|
+
* namespace — the other brokered transports keep their semantics.
|
|
6668
|
+
*/
|
|
6669
|
+
async _analyticsRequest(op, body) {
|
|
6670
|
+
const call = () => this._brokeredRequest("analytics", op, body, {
|
|
6671
|
+
fallbackMessage: "Analytics read failed",
|
|
6672
|
+
fallbackCode: "analytics_error"
|
|
6673
|
+
});
|
|
6674
|
+
try {
|
|
6675
|
+
return await call();
|
|
6676
|
+
} catch (err) {
|
|
6677
|
+
if (err instanceof MindStudioError && err.status === 429) {
|
|
6678
|
+
await new Promise(
|
|
6679
|
+
(resolve) => setTimeout(resolve, 750 + Math.random() * 750)
|
|
6680
|
+
);
|
|
6681
|
+
return call();
|
|
6682
|
+
}
|
|
6683
|
+
throw err;
|
|
6684
|
+
}
|
|
6685
|
+
}
|
|
6599
6686
|
/**
|
|
6600
6687
|
* @internal Shared shape for the brokered `/_internal/v2/<ns>/<op>` data
|
|
6601
6688
|
* planes. Factored out rather than copied per namespace so error handling
|
|
@@ -7387,7 +7474,7 @@ var monacoSnippets = {
|
|
|
7387
7474
|
"searchXPosts": { fields: [["query", "string"], ["scope", ["recent", "all"]], ["options", "object"]], outputKeys: ["posts"] },
|
|
7388
7475
|
"searchYoutube": { fields: [["query", "string"], ["limitPages", "string"], ["filter", "string"], ["filterType", "string"]], outputKeys: ["results"] },
|
|
7389
7476
|
"searchYoutubeTrends": { fields: [["bp", ["now", "music", "gaming", "films"]], ["hl", "string"], ["gl", "string"]], outputKeys: [] },
|
|
7390
|
-
"sendEmail": { fields: [["subject", "string"], ["body", "string"]], outputKeys: ["recipients", "cc", "bcc", "from"] },
|
|
7477
|
+
"sendEmail": { fields: [["subject", "string"], ["body", "string"]], outputKeys: ["recipients", "cc", "bcc", "from", "suppressed"] },
|
|
7391
7478
|
"sendGmailDraft": { fields: [["draftId", "string"]], outputKeys: [] },
|
|
7392
7479
|
"sendGmailMessage": { fields: [["to", "string"], ["subject", "string"], ["message", "string"], ["messageType", ["plain", "html", "markdown"]]], outputKeys: ["messageId"] },
|
|
7393
7480
|
"sendSlackDirectMessage": { fields: [["slackUserId", "string"], ["messageType", ["string", "blocks"]], ["message", "string"]], outputKeys: [] },
|
|
@@ -7476,6 +7563,13 @@ var voice = new Proxy({}, {
|
|
|
7476
7563
|
return typeof value === "function" ? value.bind(target) : value;
|
|
7477
7564
|
}
|
|
7478
7565
|
});
|
|
7566
|
+
var analytics = new Proxy({}, {
|
|
7567
|
+
get(_, prop) {
|
|
7568
|
+
const target = mindstudio.analytics;
|
|
7569
|
+
const value = Reflect.get(target, prop, target);
|
|
7570
|
+
return typeof value === "function" ? value.bind(target) : value;
|
|
7571
|
+
}
|
|
7572
|
+
});
|
|
7479
7573
|
var session = new Proxy(
|
|
7480
7574
|
{},
|
|
7481
7575
|
{
|
|
@@ -7497,6 +7591,7 @@ export {
|
|
|
7497
7591
|
MindStudioAgent2 as MindStudioAgent,
|
|
7498
7592
|
MindStudioError,
|
|
7499
7593
|
Roles,
|
|
7594
|
+
analytics,
|
|
7500
7595
|
auth,
|
|
7501
7596
|
blockTypeAliases,
|
|
7502
7597
|
dataSources,
|