@mindstudio-ai/agent 0.1.57 → 0.1.59
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 +158 -59
- package/dist/index.d.ts +60 -59
- package/dist/index.js +141 -52
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +158 -59
- package/llms.txt +0 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -614,8 +614,30 @@ type UpdateInput<T> = Partial<Omit<T, SystemFields>>;
|
|
|
614
614
|
* compile to efficient SQL. If the predicate can't be compiled (function
|
|
615
615
|
* calls, regex, computed expressions), the SDK falls back to fetching all
|
|
616
616
|
* rows and evaluating in JS. Both paths produce identical results.
|
|
617
|
+
*
|
|
618
|
+
* For predicates that compare to outer-scope values (e.g.
|
|
619
|
+
* `o => o.companyId === input.companyId`), prefer the explicit-bindings
|
|
620
|
+
* form so the filter compiles to SQL instead of falling back to JS:
|
|
621
|
+
*
|
|
622
|
+
* ```ts
|
|
623
|
+
* Investments.filter(
|
|
624
|
+
* (i, $) => i.companyId === $.companyId,
|
|
625
|
+
* { companyId: input.companyId },
|
|
626
|
+
* )
|
|
627
|
+
* ```
|
|
628
|
+
*/
|
|
629
|
+
type Predicate<T> = (row: T, bindings?: any) => boolean;
|
|
630
|
+
/**
|
|
631
|
+
* Bindings for an explicit-bindings predicate — a plain object of named
|
|
632
|
+
* scalar values referenced via the predicate's second parameter.
|
|
633
|
+
*
|
|
634
|
+
* @example
|
|
635
|
+
* ```ts
|
|
636
|
+
* const bindings: PredicateBindings = { companyId: 'abc', minAmount: 1000 };
|
|
637
|
+
* Investments.filter((i, $) => i.companyId === $.companyId && i.amount >= $.minAmount, bindings);
|
|
638
|
+
* ```
|
|
617
639
|
*/
|
|
618
|
-
type
|
|
640
|
+
type PredicateBindings = Record<string, unknown>;
|
|
619
641
|
/**
|
|
620
642
|
* A field accessor function used by sortBy(), min(), max(), groupBy().
|
|
621
643
|
* Receives a typed row and returns the value to sort/aggregate by.
|
|
@@ -692,6 +714,15 @@ interface SqlResult {
|
|
|
692
714
|
rows: unknown[];
|
|
693
715
|
changes: number;
|
|
694
716
|
}
|
|
717
|
+
/**
|
|
718
|
+
* A predicate paired with its bindings. Stored internally on Query so that
|
|
719
|
+
* each filter call's bindings travel with its predicate through the chain.
|
|
720
|
+
* @internal
|
|
721
|
+
*/
|
|
722
|
+
interface PredicateEntry<T> {
|
|
723
|
+
fn: Predicate<T>;
|
|
724
|
+
bindings?: PredicateBindings;
|
|
725
|
+
}
|
|
695
726
|
|
|
696
727
|
/**
|
|
697
728
|
* Query chain builder — lazy, immutable query construction for database reads.
|
|
@@ -741,7 +772,7 @@ declare class Query<T, TResult = T[]> implements PromiseLike<TResult> {
|
|
|
741
772
|
/** @internal Post-process transform applied after row deserialization. */
|
|
742
773
|
readonly _postProcess: ((rows: T[]) => TResult) | undefined;
|
|
743
774
|
constructor(config: TableConfig, options?: {
|
|
744
|
-
predicates?:
|
|
775
|
+
predicates?: PredicateEntry<T>[];
|
|
745
776
|
sortAccessor?: Accessor<T>;
|
|
746
777
|
reversed?: boolean;
|
|
747
778
|
limit?: number;
|
|
@@ -752,6 +783,7 @@ declare class Query<T, TResult = T[]> implements PromiseLike<TResult> {
|
|
|
752
783
|
});
|
|
753
784
|
private _clone;
|
|
754
785
|
filter(predicate: Predicate<T>): Query<T>;
|
|
786
|
+
filter<B extends PredicateBindings>(predicate: (row: T, bindings: B) => boolean, bindings: B): Query<T>;
|
|
755
787
|
sortBy(accessor: Accessor<T>): Query<T>;
|
|
756
788
|
reverse(): Query<T>;
|
|
757
789
|
take(n: number): Query<T>;
|
|
@@ -801,7 +833,7 @@ interface CompiledQuery<T, TResult = T[]> {
|
|
|
801
833
|
/** Table config for deserialization. */
|
|
802
834
|
config: TableConfig;
|
|
803
835
|
/** JS predicates (only for fallback). */
|
|
804
|
-
predicates?:
|
|
836
|
+
predicates?: PredicateEntry<T>[];
|
|
805
837
|
/** Sort accessor (only for fallback). */
|
|
806
838
|
sortAccessor?: Accessor<T>;
|
|
807
839
|
/** Sort direction (only for fallback). */
|
|
@@ -902,13 +934,17 @@ declare class Table<T> {
|
|
|
902
934
|
get(id: string): Query<T, T | null>;
|
|
903
935
|
/** Find the first row matching a predicate. Returns null if none match. */
|
|
904
936
|
findOne(predicate: Predicate<T>): Query<T, T | null>;
|
|
937
|
+
findOne<B extends PredicateBindings>(predicate: (row: T, bindings: B) => boolean, bindings: B): Query<T, T | null>;
|
|
905
938
|
/** Count all rows, or rows matching a predicate. */
|
|
906
939
|
count(): Query<T, number>;
|
|
907
940
|
count(predicate: Predicate<T>): Query<T, number>;
|
|
941
|
+
count<B extends PredicateBindings>(predicate: (row: T, bindings: B) => boolean, bindings: B): Query<T, number>;
|
|
908
942
|
/** True if any row matches the predicate. */
|
|
909
943
|
some(predicate: Predicate<T>): Query<T, boolean>;
|
|
944
|
+
some<B extends PredicateBindings>(predicate: (row: T, bindings: B) => boolean, bindings: B): Query<T, boolean>;
|
|
910
945
|
/** True if all rows match the predicate. */
|
|
911
946
|
every(predicate: Predicate<T>): Promise<boolean>;
|
|
947
|
+
every<B extends PredicateBindings>(predicate: (row: T, bindings: B) => boolean, bindings: B): Promise<boolean>;
|
|
912
948
|
/** True if the table has zero rows. */
|
|
913
949
|
isEmpty(): Promise<boolean>;
|
|
914
950
|
/** Row with the minimum value for a field, or null if table is empty. */
|
|
@@ -921,6 +957,7 @@ declare class Table<T> {
|
|
|
921
957
|
toArray(): Query<T>;
|
|
922
958
|
/** Filter rows by a predicate. Returns a chainable Query. */
|
|
923
959
|
filter(predicate: Predicate<T>): Query<T>;
|
|
960
|
+
filter<B extends PredicateBindings>(predicate: (row: T, bindings: B) => boolean, bindings: B): Query<T>;
|
|
924
961
|
/** Sort rows by a field. Returns a chainable Query. */
|
|
925
962
|
sortBy(accessor: Accessor<T>): Query<T>;
|
|
926
963
|
/**
|
|
@@ -944,6 +981,7 @@ declare class Table<T> {
|
|
|
944
981
|
* Remove all rows matching a predicate. Returns the count removed.
|
|
945
982
|
*/
|
|
946
983
|
removeAll(predicate: Predicate<T>): Mutation<number>;
|
|
984
|
+
removeAll<B extends PredicateBindings>(predicate: (row: T, bindings: B) => boolean, bindings: B): Mutation<number>;
|
|
947
985
|
clear(): Mutation<number>;
|
|
948
986
|
/**
|
|
949
987
|
* Insert a row, or update it if a row with the same unique key already
|
|
@@ -1109,6 +1147,23 @@ interface Db {
|
|
|
1109
1147
|
ago(ms: number): number;
|
|
1110
1148
|
/** Returns a unix timestamp for (now + duration). Use with days/hours/minutes. */
|
|
1111
1149
|
fromNow(ms: number): number;
|
|
1150
|
+
/**
|
|
1151
|
+
* Type a plain UUID string as a `User` reference, for writing into
|
|
1152
|
+
* user-typed columns without an `as any` cast. Strips any existing
|
|
1153
|
+
* `@@user@@` prefix so the input is always a bare UUID in app code.
|
|
1154
|
+
*
|
|
1155
|
+
* The SDK adds the `@@user@@` prefix automatically on write — you do
|
|
1156
|
+
* not need to (and should not) add it yourself.
|
|
1157
|
+
*
|
|
1158
|
+
* @example
|
|
1159
|
+
* ```ts
|
|
1160
|
+
* await Orders.push({
|
|
1161
|
+
* requestedBy: db.userRef(someUuid),
|
|
1162
|
+
* ...
|
|
1163
|
+
* });
|
|
1164
|
+
* ```
|
|
1165
|
+
*/
|
|
1166
|
+
userRef(id: string): User;
|
|
1112
1167
|
/**
|
|
1113
1168
|
* Execute multiple reads and writes in a single round trip. All
|
|
1114
1169
|
* operations run on the same database connection, eliminating
|
|
@@ -3143,36 +3198,6 @@ interface GetMediaMetadataStepOutput {
|
|
|
3143
3198
|
/** JSON string containing the media file metadata */
|
|
3144
3199
|
metadata: string;
|
|
3145
3200
|
}
|
|
3146
|
-
interface HttpRequestStepInput {
|
|
3147
|
-
/** The request URL */
|
|
3148
|
-
url: string;
|
|
3149
|
-
/** HTTP method (GET, POST, PATCH, DELETE, or PUT) */
|
|
3150
|
-
method: string;
|
|
3151
|
-
/** Custom request headers as key-value pairs */
|
|
3152
|
-
headers: Record<string, unknown>;
|
|
3153
|
-
/** Query string parameters as key-value pairs */
|
|
3154
|
-
queryParams: Record<string, unknown>;
|
|
3155
|
-
/** Raw request body (used for JSON or custom content types) */
|
|
3156
|
-
body: string;
|
|
3157
|
-
/** Key-value body items (used for form data or URL-encoded content types) */
|
|
3158
|
-
bodyItems: Record<string, unknown>;
|
|
3159
|
-
/** The content type for the request body */
|
|
3160
|
-
contentType: "none" | "application/json" | "application/x-www-form-urlencoded" | "multipart/form-data" | "custom";
|
|
3161
|
-
/** Custom Content-Type header value (used when contentType is "custom") */
|
|
3162
|
-
customContentType: string;
|
|
3163
|
-
/** Test data for debug/preview mode */
|
|
3164
|
-
testData?: Record<string, unknown>;
|
|
3165
|
-
}
|
|
3166
|
-
interface HttpRequestStepOutput {
|
|
3167
|
-
/** Whether the HTTP response status code is in the 2xx range */
|
|
3168
|
-
ok: boolean;
|
|
3169
|
-
/** HTTP response status code */
|
|
3170
|
-
status: number;
|
|
3171
|
-
/** HTTP response status text */
|
|
3172
|
-
statusText: string;
|
|
3173
|
-
/** Response body as a string */
|
|
3174
|
-
response: string;
|
|
3175
|
-
}
|
|
3176
3201
|
interface HubspotCreateCompanyStepInput {
|
|
3177
3202
|
/** HubSpot OAuth connection ID */
|
|
3178
3203
|
connectionId?: string;
|
|
@@ -5071,7 +5096,7 @@ type GenerateAssetStepOutput = GeneratePdfStepOutput;
|
|
|
5071
5096
|
type GenerateTextStepInput = UserMessageStepInput;
|
|
5072
5097
|
type GenerateTextStepOutput = UserMessageStepOutput;
|
|
5073
5098
|
/** Union of all available step type names. */
|
|
5074
|
-
type StepName = "activeCampaignAddNote" | "activeCampaignCreateContact" | "addSubtitlesToVideo" | "airtableCreateUpdateRecord" | "airtableDeleteRecord" | "airtableGetRecord" | "airtableGetTableRecords" | "analyzeImage" | "analyzeVideo" | "captureThumbnail" | "checkAppRole" | "codaCreateUpdatePage" | "codaCreateUpdateRow" | "codaFindRow" | "codaGetPage" | "codaGetTableRows" | "convertPdfToImages" | "createDataSource" | "createGmailDraft" | "createGoogleCalendarEvent" | "createGoogleDoc" | "createGoogleSheet" | "deleteDataSource" | "deleteDataSourceDocument" | "deleteGmailEmail" | "deleteGoogleCalendarEvent" | "deleteGoogleSheetRows" | "detectChanges" | "detectPII" | "discordEditMessage" | "discordSendFollowUp" | "discordSendMessage" | "downloadVideo" | "enhanceImageGenerationPrompt" | "enhanceVideoGenerationPrompt" | "enrichPerson" | "extractAudioFromVideo" | "extractText" | "fetchDataSourceDocument" | "fetchGoogleDoc" | "fetchGoogleSheet" | "fetchSlackChannelHistory" | "fetchYoutubeCaptions" | "fetchYoutubeChannel" | "fetchYoutubeComments" | "fetchYoutubeVideo" | "generateChart" | "generateImage" | "generateLipsync" | "generateMusic" | "generatePdf" | "generateStaticVideoFromImage" | "generateVideo" | "getGmailAttachments" | "getGmailDraft" | "getGmailEmail" | "getGmailUnreadCount" | "getGoogleCalendarEvent" | "getGoogleDriveFile" | "getGoogleSheetInfo" | "getMediaMetadata" | "
|
|
5099
|
+
type StepName = "activeCampaignAddNote" | "activeCampaignCreateContact" | "addSubtitlesToVideo" | "airtableCreateUpdateRecord" | "airtableDeleteRecord" | "airtableGetRecord" | "airtableGetTableRecords" | "analyzeImage" | "analyzeVideo" | "captureThumbnail" | "checkAppRole" | "codaCreateUpdatePage" | "codaCreateUpdateRow" | "codaFindRow" | "codaGetPage" | "codaGetTableRows" | "convertPdfToImages" | "createDataSource" | "createGmailDraft" | "createGoogleCalendarEvent" | "createGoogleDoc" | "createGoogleSheet" | "deleteDataSource" | "deleteDataSourceDocument" | "deleteGmailEmail" | "deleteGoogleCalendarEvent" | "deleteGoogleSheetRows" | "detectChanges" | "detectPII" | "discordEditMessage" | "discordSendFollowUp" | "discordSendMessage" | "downloadVideo" | "enhanceImageGenerationPrompt" | "enhanceVideoGenerationPrompt" | "enrichPerson" | "extractAudioFromVideo" | "extractText" | "fetchDataSourceDocument" | "fetchGoogleDoc" | "fetchGoogleSheet" | "fetchSlackChannelHistory" | "fetchYoutubeCaptions" | "fetchYoutubeChannel" | "fetchYoutubeComments" | "fetchYoutubeVideo" | "generateChart" | "generateImage" | "generateLipsync" | "generateMusic" | "generatePdf" | "generateStaticVideoFromImage" | "generateVideo" | "getGmailAttachments" | "getGmailDraft" | "getGmailEmail" | "getGmailUnreadCount" | "getGoogleCalendarEvent" | "getGoogleDriveFile" | "getGoogleSheetInfo" | "getMediaMetadata" | "hubspotCreateCompany" | "hubspotCreateContact" | "hubspotGetCompany" | "hubspotGetContact" | "hunterApiCompanyEnrichment" | "hunterApiDomainSearch" | "hunterApiEmailFinder" | "hunterApiEmailVerification" | "hunterApiPersonEnrichment" | "imageFaceSwap" | "imageRemoveWatermark" | "insertVideoClips" | "listDataSources" | "listGmailDrafts" | "listGmailLabels" | "listGoogleCalendarEvents" | "listGoogleDriveFiles" | "listRecentGmailEmails" | "logic" | "makeDotComRunScenario" | "mergeAudio" | "mergeVideos" | "mixAudioIntoVideo" | "muteVideo" | "n8nRunNode" | "notionCreatePage" | "notionUpdatePage" | "peopleSearch" | "postToLinkedIn" | "postToSlackChannel" | "postToX" | "postToZapier" | "queryAppDatabase" | "queryDataSource" | "queryExternalDatabase" | "redactPII" | "removeBackgroundFromImage" | "replyToGmailEmail" | "resizeVideo" | "runFromConnectorRegistry" | "runPackagedWorkflow" | "scrapeFacebookPage" | "scrapeFacebookPosts" | "scrapeInstagramComments" | "scrapeInstagramMentions" | "scrapeInstagramPosts" | "scrapeInstagramProfile" | "scrapeInstagramReels" | "scrapeLinkedInCompany" | "scrapeLinkedInProfile" | "scrapeMetaThreadsProfile" | "scrapeUrl" | "scrapeXPost" | "scrapeXProfile" | "screenshotUrl" | "searchGmailEmails" | "searchGoogle" | "searchGoogleCalendarEvents" | "searchGoogleDrive" | "searchGoogleImages" | "searchGoogleNews" | "searchGoogleTrends" | "searchPerplexity" | "searchXPosts" | "searchYoutube" | "searchYoutubeTrends" | "sendEmail" | "sendGmailDraft" | "sendGmailMessage" | "sendSlackDirectMessage" | "sendSMS" | "setGmailReadStatus" | "setRunTitle" | "setVariable" | "telegramEditMessage" | "telegramReplyToMessage" | "telegramSendAudio" | "telegramSendFile" | "telegramSendImage" | "telegramSendMessage" | "telegramSendVideo" | "telegramSetTyping" | "textToSpeech" | "transcribeAudio" | "trimMedia" | "updateGmailLabels" | "updateGoogleCalendarEvent" | "updateGoogleDoc" | "updateGoogleSheet" | "uploadDataSourceDocument" | "upscaleImage" | "upscaleVideo" | "userMessage" | "videoFaceSwap" | "videoRemoveBackground" | "videoRemoveWatermark" | "watermarkImage" | "watermarkVideo";
|
|
5075
5100
|
/** Maps step names to their input types. */
|
|
5076
5101
|
interface StepInputMap {
|
|
5077
5102
|
activeCampaignAddNote: ActiveCampaignAddNoteStepInput;
|
|
@@ -5135,7 +5160,6 @@ interface StepInputMap {
|
|
|
5135
5160
|
getGoogleDriveFile: GetGoogleDriveFileStepInput;
|
|
5136
5161
|
getGoogleSheetInfo: GetGoogleSheetInfoStepInput;
|
|
5137
5162
|
getMediaMetadata: GetMediaMetadataStepInput;
|
|
5138
|
-
httpRequest: HttpRequestStepInput;
|
|
5139
5163
|
hubspotCreateCompany: HubspotCreateCompanyStepInput;
|
|
5140
5164
|
hubspotCreateContact: HubspotCreateContactStepInput;
|
|
5141
5165
|
hubspotGetCompany: HubspotGetCompanyStepInput;
|
|
@@ -5298,7 +5322,6 @@ interface StepOutputMap {
|
|
|
5298
5322
|
getGoogleDriveFile: GetGoogleDriveFileStepOutput;
|
|
5299
5323
|
getGoogleSheetInfo: GetGoogleSheetInfoStepOutput;
|
|
5300
5324
|
getMediaMetadata: GetMediaMetadataStepOutput;
|
|
5301
|
-
httpRequest: HttpRequestStepOutput;
|
|
5302
5325
|
hubspotCreateCompany: HubspotCreateCompanyStepOutput;
|
|
5303
5326
|
hubspotCreateContact: HubspotCreateContactStepOutput;
|
|
5304
5327
|
hubspotGetCompany: HubspotGetCompanyStepOutput;
|
|
@@ -6418,28 +6441,6 @@ interface StepMethods {
|
|
|
6418
6441
|
* ```
|
|
6419
6442
|
*/
|
|
6420
6443
|
getMediaMetadata(step: GetMediaMetadataStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<GetMediaMetadataStepOutput>>;
|
|
6421
|
-
/**
|
|
6422
|
-
* Make an HTTP request to an external endpoint and return the response.
|
|
6423
|
-
*
|
|
6424
|
-
* @remarks
|
|
6425
|
-
* - Supports GET, POST, PATCH, DELETE, and PUT methods.
|
|
6426
|
-
* - Body can be raw JSON/text, URL-encoded form data, or multipart form data.
|
|
6427
|
-
*
|
|
6428
|
-
* @example
|
|
6429
|
-
* ```typescript
|
|
6430
|
-
* const result = await agent.httpRequest({
|
|
6431
|
-
* url: ``,
|
|
6432
|
-
* method: ``,
|
|
6433
|
-
* headers: {},
|
|
6434
|
-
* queryParams: {},
|
|
6435
|
-
* body: ``,
|
|
6436
|
-
* bodyItems: {},
|
|
6437
|
-
* contentType: "none",
|
|
6438
|
-
* customContentType: ``,
|
|
6439
|
-
* });
|
|
6440
|
-
* ```
|
|
6441
|
-
*/
|
|
6442
|
-
httpRequest(step: HttpRequestStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<HttpRequestStepOutput>>;
|
|
6443
6444
|
/**
|
|
6444
6445
|
* Create a new company or update an existing one in HubSpot. Matches by domain.
|
|
6445
6446
|
*
|
|
@@ -8224,4 +8225,4 @@ declare const stream: (data: string | Record<string, unknown>) => Promise<void>;
|
|
|
8224
8225
|
*/
|
|
8225
8226
|
declare const resolveUser: (userId: string) => Promise<ResolvedUser | null>;
|
|
8226
8227
|
|
|
8227
|
-
export { type Accessor, type ActiveCampaignAddNoteStepInput, type ActiveCampaignAddNoteStepOutput, type ActiveCampaignCreateContactStepInput, type ActiveCampaignCreateContactStepOutput, type AddSubtitlesToVideoStepInput, type AddSubtitlesToVideoStepOutput, type AgentInfo, type AgentOptions, 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 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 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 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 HttpRequestStepInput, type HttpRequestStepOutput, 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 ListAgentsResult, type ListDataSourcesStepInput, type ListDataSourcesStepOutput, type ListGmailDraftsStepInput, type ListGmailDraftsStepOutput, type ListGmailLabelsStepInput, type ListGmailLabelsStepOutput, type ListGoogleCalendarEventsStepInput, type ListGoogleCalendarEventsStepOutput, type ListGoogleDriveFilesStepInput, type ListGoogleDriveFilesStepOutput, type ListRecentGmailEmailsStepInput, type ListRecentGmailEmailsStepOutput, type LogicStepInput, type LogicStepOutput, type MakeDotComRunScenarioStepInput, type MakeDotComRunScenarioStepOutput, type MergeAudioStepInput, type MergeAudioStepOutput, type MergeVideosStepInput, type MergeVideosStepOutput, 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 PeopleSearchStepInput, type PeopleSearchStepOutput, type PostToLinkedInStepInput, type PostToLinkedInStepOutput, type PostToSlackChannelStepInput, type PostToSlackChannelStepOutput, type PostToXStepInput, type PostToXStepOutput, type PostToZapierStepInput, type PostToZapierStepOutput, type Predicate, type PushInput, Query, type QueryAppDatabaseStepInput, type QueryAppDatabaseStepOutput, type QueryDataSourceStepInput, type QueryDataSourceStepOutput, type QueryExternalDatabaseStepInput, type QueryExternalDatabaseStepOutput, type RedactPIIStepInput, type RedactPIIStepOutput, type RemoveBackgroundFromImageStepInput, type RemoveBackgroundFromImageStepOutput, type ReplyToGmailEmailStepInput, type ReplyToGmailEmailStepOutput, type RequestContext, type ResizeVideoStepInput, type ResizeVideoStepOutput, type ResolvedUser, Roles, type RunAgentOptions, type RunAgentResult, type RunFromConnectorRegistryStepInput, type RunFromConnectorRegistryStepOutput, type RunPackagedWorkflowStepInput, type RunPackagedWorkflowStepOutput, type RunTaskOptions, type RunTaskResult, type ScrapeFacebookPageStepInput, type ScrapeFacebookPageStepOutput, type ScrapeFacebookPostsStepInput, type ScrapeFacebookPostsStepOutput, type ScrapeInstagramCommentsStepInput, type ScrapeInstagramCommentsStepOutput, type ScrapeInstagramMentionsStepInput, type ScrapeInstagramMentionsStepOutput, type ScrapeInstagramPostsStepInput, type ScrapeInstagramPostsStepOutput, type ScrapeInstagramProfileStepInput, type ScrapeInstagramProfileStepOutput, type ScrapeInstagramReelsStepInput, type ScrapeInstagramReelsStepOutput, type ScrapeLinkedInCompanyStepInput, type ScrapeLinkedInCompanyStepOutput, type ScrapeLinkedInProfileStepInput, type ScrapeLinkedInProfileStepOutput, type ScrapeMetaThreadsProfileStepInput, type ScrapeMetaThreadsProfileStepOutput, 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 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, 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 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 WatermarkImageStepInput, type WatermarkImageStepOutput, type WatermarkVideoStepInput, type WatermarkVideoStepOutput, auth, blockTypeAliases, db, mindstudio as default, getRequestContext, mindstudio, monacoSnippets, resolveUser, runWithContext, stepMetadata, stream };
|
|
8228
|
+
export { type Accessor, type ActiveCampaignAddNoteStepInput, type ActiveCampaignAddNoteStepOutput, type ActiveCampaignCreateContactStepInput, type ActiveCampaignCreateContactStepOutput, type AddSubtitlesToVideoStepInput, type AddSubtitlesToVideoStepOutput, type AgentInfo, type AgentOptions, 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 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 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 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 ListAgentsResult, type ListDataSourcesStepInput, type ListDataSourcesStepOutput, type ListGmailDraftsStepInput, type ListGmailDraftsStepOutput, type ListGmailLabelsStepInput, type ListGmailLabelsStepOutput, type ListGoogleCalendarEventsStepInput, type ListGoogleCalendarEventsStepOutput, type ListGoogleDriveFilesStepInput, type ListGoogleDriveFilesStepOutput, type ListRecentGmailEmailsStepInput, type ListRecentGmailEmailsStepOutput, type LogicStepInput, type LogicStepOutput, type MakeDotComRunScenarioStepInput, type MakeDotComRunScenarioStepOutput, type MergeAudioStepInput, type MergeAudioStepOutput, type MergeVideosStepInput, type MergeVideosStepOutput, 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 PeopleSearchStepInput, type PeopleSearchStepOutput, type PostToLinkedInStepInput, type PostToLinkedInStepOutput, type PostToSlackChannelStepInput, type PostToSlackChannelStepOutput, type PostToXStepInput, type PostToXStepOutput, type PostToZapierStepInput, type PostToZapierStepOutput, type Predicate, type PushInput, Query, type QueryAppDatabaseStepInput, type QueryAppDatabaseStepOutput, type QueryDataSourceStepInput, type QueryDataSourceStepOutput, type QueryExternalDatabaseStepInput, type QueryExternalDatabaseStepOutput, type RedactPIIStepInput, type RedactPIIStepOutput, type RemoveBackgroundFromImageStepInput, type RemoveBackgroundFromImageStepOutput, type ReplyToGmailEmailStepInput, type ReplyToGmailEmailStepOutput, type RequestContext, type ResizeVideoStepInput, type ResizeVideoStepOutput, type ResolvedUser, Roles, type RunAgentOptions, type RunAgentResult, type RunFromConnectorRegistryStepInput, type RunFromConnectorRegistryStepOutput, type RunPackagedWorkflowStepInput, type RunPackagedWorkflowStepOutput, type RunTaskOptions, type RunTaskResult, type ScrapeFacebookPageStepInput, type ScrapeFacebookPageStepOutput, type ScrapeFacebookPostsStepInput, type ScrapeFacebookPostsStepOutput, type ScrapeInstagramCommentsStepInput, type ScrapeInstagramCommentsStepOutput, type ScrapeInstagramMentionsStepInput, type ScrapeInstagramMentionsStepOutput, type ScrapeInstagramPostsStepInput, type ScrapeInstagramPostsStepOutput, type ScrapeInstagramProfileStepInput, type ScrapeInstagramProfileStepOutput, type ScrapeInstagramReelsStepInput, type ScrapeInstagramReelsStepOutput, type ScrapeLinkedInCompanyStepInput, type ScrapeLinkedInCompanyStepOutput, type ScrapeLinkedInProfileStepInput, type ScrapeLinkedInProfileStepOutput, type ScrapeMetaThreadsProfileStepInput, type ScrapeMetaThreadsProfileStepOutput, 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 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, 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 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 WatermarkImageStepInput, type WatermarkImageStepOutput, type WatermarkVideoStepInput, type WatermarkVideoStepOutput, auth, blockTypeAliases, db, mindstudio as default, getRequestContext, mindstudio, monacoSnippets, resolveUser, runWithContext, stepMetadata, stream };
|
package/dist/index.js
CHANGED
|
@@ -275,7 +275,7 @@ function serializeParam(val) {
|
|
|
275
275
|
function serializeColumnParam(val, columnName, columns) {
|
|
276
276
|
const col = columns.find((c) => c.name === columnName);
|
|
277
277
|
if (col?.type === "user" && typeof val === "string") {
|
|
278
|
-
return
|
|
278
|
+
return val.startsWith(USER_PREFIX) ? val : `${USER_PREFIX}${val}`;
|
|
279
279
|
}
|
|
280
280
|
return serializeParam(val);
|
|
281
281
|
}
|
|
@@ -293,7 +293,7 @@ function deserializeRow(row, columns) {
|
|
|
293
293
|
const result = {};
|
|
294
294
|
for (const [key, value] of Object.entries(row)) {
|
|
295
295
|
const col = columns.find((c) => c.name === key);
|
|
296
|
-
if (
|
|
296
|
+
if (typeof value === "string" && value.startsWith(USER_PREFIX)) {
|
|
297
297
|
result[key] = value.slice(USER_PREFIX.length);
|
|
298
298
|
} else if (col?.type === "json" && typeof value === "string") {
|
|
299
299
|
try {
|
|
@@ -396,16 +396,16 @@ function stripSystemColumns(data) {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
// src/db/predicate.ts
|
|
399
|
-
function compilePredicate(fn) {
|
|
399
|
+
function compilePredicate(fn, bindings) {
|
|
400
400
|
try {
|
|
401
401
|
const source = fn.toString();
|
|
402
|
-
const
|
|
403
|
-
if (!
|
|
402
|
+
const names = extractParamNames(source);
|
|
403
|
+
if (!names) return { type: "js", fn, reason: "could not extract parameter name" };
|
|
404
404
|
const body = extractBody(source);
|
|
405
405
|
if (!body) return { type: "js", fn, reason: "could not extract function body" };
|
|
406
406
|
const tokens = tokenize(body);
|
|
407
407
|
if (tokens.length === 0) return { type: "js", fn, reason: "empty token stream" };
|
|
408
|
-
const parser = new Parser(tokens,
|
|
408
|
+
const parser = new Parser(tokens, names.row, names.bindings, bindings, fn);
|
|
409
409
|
const ast = parser.parseExpression();
|
|
410
410
|
if (!ast) return { type: "js", fn, reason: "could not parse expression" };
|
|
411
411
|
if (parser.pos < tokens.length) return { type: "js", fn, reason: "unexpected tokens after expression" };
|
|
@@ -416,11 +416,44 @@ function compilePredicate(fn) {
|
|
|
416
416
|
return { type: "js", fn, reason: `compilation error: ${err?.message || "unknown"}` };
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
);
|
|
423
|
-
|
|
419
|
+
function extractParamNames(source) {
|
|
420
|
+
const arrowIdx = source.indexOf("=>");
|
|
421
|
+
if (arrowIdx === -1) return null;
|
|
422
|
+
let paramList = source.slice(0, arrowIdx).trim();
|
|
423
|
+
if (paramList.startsWith("(") && paramList.endsWith(")")) {
|
|
424
|
+
paramList = paramList.slice(1, -1).trim();
|
|
425
|
+
}
|
|
426
|
+
if (paramList.length === 0) return null;
|
|
427
|
+
const parts = splitParams(paramList);
|
|
428
|
+
if (parts.length === 0 || parts.length > 2) return null;
|
|
429
|
+
const row = stripTypeAnnotation(parts[0]);
|
|
430
|
+
if (!row) return null;
|
|
431
|
+
if (parts.length === 1) return { row };
|
|
432
|
+
const bindings = stripTypeAnnotation(parts[1]);
|
|
433
|
+
if (!bindings) return null;
|
|
434
|
+
return { row, bindings };
|
|
435
|
+
}
|
|
436
|
+
function splitParams(input) {
|
|
437
|
+
const parts = [];
|
|
438
|
+
let depth = 0;
|
|
439
|
+
let current = "";
|
|
440
|
+
for (const ch of input) {
|
|
441
|
+
if (ch === "<" || ch === "(") depth++;
|
|
442
|
+
else if (ch === ">" || ch === ")") depth--;
|
|
443
|
+
if (ch === "," && depth === 0) {
|
|
444
|
+
parts.push(current.trim());
|
|
445
|
+
current = "";
|
|
446
|
+
} else {
|
|
447
|
+
current += ch;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
if (current.trim()) parts.push(current.trim());
|
|
451
|
+
return parts;
|
|
452
|
+
}
|
|
453
|
+
function stripTypeAnnotation(part) {
|
|
454
|
+
const colonIdx = part.indexOf(":");
|
|
455
|
+
const name = (colonIdx === -1 ? part : part.slice(0, colonIdx)).trim();
|
|
456
|
+
return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name) ? name : null;
|
|
424
457
|
}
|
|
425
458
|
function extractBody(source) {
|
|
426
459
|
const arrowIdx = source.indexOf("=>");
|
|
@@ -531,9 +564,11 @@ function tokenize(expr) {
|
|
|
531
564
|
return tokens;
|
|
532
565
|
}
|
|
533
566
|
var Parser = class {
|
|
534
|
-
constructor(tokens, paramName, originalFn) {
|
|
567
|
+
constructor(tokens, paramName, bindingsName, bindingsValue, originalFn) {
|
|
535
568
|
this.tokens = tokens;
|
|
536
569
|
this.paramName = paramName;
|
|
570
|
+
this.bindingsName = bindingsName;
|
|
571
|
+
this.bindingsValue = bindingsValue;
|
|
537
572
|
this.originalFn = originalFn;
|
|
538
573
|
}
|
|
539
574
|
pos = 0;
|
|
@@ -630,6 +665,9 @@ var Parser = class {
|
|
|
630
665
|
if (this.match("identifier", this.paramName)) {
|
|
631
666
|
return this.parseFieldExpression();
|
|
632
667
|
}
|
|
668
|
+
if (this.bindingsName && this.match("identifier", this.bindingsName)) {
|
|
669
|
+
return this.parseBindingsArrayIncludes();
|
|
670
|
+
}
|
|
633
671
|
if (this.match("identifier")) {
|
|
634
672
|
return this.parseNonParamExpression();
|
|
635
673
|
}
|
|
@@ -666,6 +704,7 @@ var Parser = class {
|
|
|
666
704
|
if (!this.match("identifier")) return null;
|
|
667
705
|
const parts = [this.advance().value];
|
|
668
706
|
while (this.match("dot") && this.tokens[this.pos + 1]?.type === "identifier") {
|
|
707
|
+
if (this.tokens[this.pos + 2]?.type === "lparen") break;
|
|
669
708
|
this.advance();
|
|
670
709
|
parts.push(this.advance().value);
|
|
671
710
|
}
|
|
@@ -750,6 +789,68 @@ var Parser = class {
|
|
|
750
789
|
if (ident === "true" || ident === "false") return null;
|
|
751
790
|
return null;
|
|
752
791
|
}
|
|
792
|
+
/**
|
|
793
|
+
* Parse `$.ids.includes(o.field)` → IN expression with resolved values.
|
|
794
|
+
* The bindings identifier has been peeked but not consumed.
|
|
795
|
+
*
|
|
796
|
+
* Falls back (returns null) if the resolved bindings value isn't an array,
|
|
797
|
+
* or if the path doesn't exist on the bindings object.
|
|
798
|
+
*/
|
|
799
|
+
parseBindingsArrayIncludes() {
|
|
800
|
+
const bound = this.tryResolveBindingsValue();
|
|
801
|
+
if (bound === PARSE_FAILED) return null;
|
|
802
|
+
if (!Array.isArray(bound)) return null;
|
|
803
|
+
if (!this.eat("dot")) return null;
|
|
804
|
+
if (!this.match("identifier", "includes")) return null;
|
|
805
|
+
this.advance();
|
|
806
|
+
if (!this.eat("lparen")) return null;
|
|
807
|
+
if (!this.match("identifier", this.paramName)) return null;
|
|
808
|
+
this.advance();
|
|
809
|
+
const field = this.parseFieldPath();
|
|
810
|
+
if (!field) return null;
|
|
811
|
+
if (!this.eat("rparen")) return null;
|
|
812
|
+
return { kind: "in", field, values: bound };
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* If the current token is the bindings parameter name, walk a dotted path
|
|
816
|
+
* (`$.foo.bar`) and resolve the value from the bindings object. Returns
|
|
817
|
+
* the resolved value or `PARSE_FAILED`.
|
|
818
|
+
*
|
|
819
|
+
* Stops walking before a method call (e.g. doesn't consume `.includes` in
|
|
820
|
+
* `$.ids.includes(...)`) so the caller can dispatch on what follows.
|
|
821
|
+
*
|
|
822
|
+
* Restores `pos` on failure so callers can fall through cleanly.
|
|
823
|
+
*/
|
|
824
|
+
tryResolveBindingsValue() {
|
|
825
|
+
if (!this.bindingsName) return PARSE_FAILED;
|
|
826
|
+
if (!this.match("identifier", this.bindingsName)) return PARSE_FAILED;
|
|
827
|
+
if (this.bindingsValue == null) return PARSE_FAILED;
|
|
828
|
+
const startPos = this.pos;
|
|
829
|
+
this.advance();
|
|
830
|
+
const path = [];
|
|
831
|
+
while (this.match("dot") && this.tokens[this.pos + 1]?.type === "identifier") {
|
|
832
|
+
if (this.tokens[this.pos + 2]?.type === "lparen") break;
|
|
833
|
+
this.advance();
|
|
834
|
+
path.push(this.advance().value);
|
|
835
|
+
}
|
|
836
|
+
if (path.length === 0) {
|
|
837
|
+
this.pos = startPos;
|
|
838
|
+
return PARSE_FAILED;
|
|
839
|
+
}
|
|
840
|
+
let value = this.bindingsValue;
|
|
841
|
+
for (const key of path) {
|
|
842
|
+
if (value == null || typeof value !== "object") {
|
|
843
|
+
this.pos = startPos;
|
|
844
|
+
return PARSE_FAILED;
|
|
845
|
+
}
|
|
846
|
+
value = value[key];
|
|
847
|
+
}
|
|
848
|
+
if (value === void 0) {
|
|
849
|
+
this.pos = startPos;
|
|
850
|
+
return PARSE_FAILED;
|
|
851
|
+
}
|
|
852
|
+
return value;
|
|
853
|
+
}
|
|
753
854
|
/**
|
|
754
855
|
* Parse a literal value or closure variable reference.
|
|
755
856
|
*
|
|
@@ -784,6 +885,10 @@ var Parser = class {
|
|
|
784
885
|
this.advance();
|
|
785
886
|
return void 0;
|
|
786
887
|
}
|
|
888
|
+
if (this.bindingsName && t.value === this.bindingsName) {
|
|
889
|
+
const bound = this.tryResolveBindingsValue();
|
|
890
|
+
if (bound !== PARSE_FAILED) return bound;
|
|
891
|
+
}
|
|
787
892
|
return this.resolveClosureVariable();
|
|
788
893
|
}
|
|
789
894
|
if (t.type === "operator" && t.value === "-") {
|
|
@@ -918,11 +1023,10 @@ var Query = class _Query {
|
|
|
918
1023
|
rawWhereParams: this._rawWhereParams
|
|
919
1024
|
});
|
|
920
1025
|
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
return this._clone({ predicates: [...this._predicates, predicate] });
|
|
1026
|
+
filter(predicate, bindings) {
|
|
1027
|
+
return this._clone({
|
|
1028
|
+
predicates: [...this._predicates, { fn: predicate, bindings }]
|
|
1029
|
+
});
|
|
926
1030
|
}
|
|
927
1031
|
sortBy(accessor) {
|
|
928
1032
|
return this._clone({ sortAccessor: accessor });
|
|
@@ -979,7 +1083,7 @@ var Query = class _Query {
|
|
|
979
1083
|
if (this._predicates.length === 0) return true;
|
|
980
1084
|
const allRows = await this._fetchAllRows();
|
|
981
1085
|
return allRows.every(
|
|
982
|
-
(row) => this._predicates.every((
|
|
1086
|
+
(row) => this._predicates.every((p) => p.fn(row, p.bindings))
|
|
983
1087
|
);
|
|
984
1088
|
}
|
|
985
1089
|
min(accessor) {
|
|
@@ -1067,7 +1171,7 @@ var Query = class _Query {
|
|
|
1067
1171
|
if (compiled.query) {
|
|
1068
1172
|
return compiled.postProcess ? compiled.postProcess(rows) : rows;
|
|
1069
1173
|
}
|
|
1070
|
-
let filtered = compiled.predicates ? rows.filter((row) => compiled.predicates.every((
|
|
1174
|
+
let filtered = compiled.predicates ? rows.filter((row) => compiled.predicates.every((p) => p.fn(row, p.bindings))) : rows;
|
|
1071
1175
|
if (compiled.sortAccessor) {
|
|
1072
1176
|
const accessor = compiled.sortAccessor;
|
|
1073
1177
|
const reversed = compiled.reversed ?? false;
|
|
@@ -1157,7 +1261,7 @@ var Query = class _Query {
|
|
|
1157
1261
|
if (this._predicates.length === 0) {
|
|
1158
1262
|
return { allSql: true, sqlWhere: "", compiled: [] };
|
|
1159
1263
|
}
|
|
1160
|
-
const compiled = this._predicates.map((
|
|
1264
|
+
const compiled = this._predicates.map((p) => compilePredicate(p.fn, p.bindings));
|
|
1161
1265
|
const allSql = compiled.every((c) => c.type === "sql");
|
|
1162
1266
|
let sqlWhere = "";
|
|
1163
1267
|
if (allSql) {
|
|
@@ -1176,7 +1280,7 @@ var Query = class _Query {
|
|
|
1176
1280
|
);
|
|
1177
1281
|
}
|
|
1178
1282
|
return allRows.filter(
|
|
1179
|
-
(row) => this._predicates.every((
|
|
1283
|
+
(row) => this._predicates.every((p) => p.fn(row, p.bindings))
|
|
1180
1284
|
);
|
|
1181
1285
|
}
|
|
1182
1286
|
async _fetchAllRows() {
|
|
@@ -1296,21 +1400,18 @@ var Table = class {
|
|
|
1296
1400
|
postProcess: (rows) => rows[0] ?? null
|
|
1297
1401
|
});
|
|
1298
1402
|
}
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
return this.filter(predicate).first();
|
|
1403
|
+
findOne(predicate, bindings) {
|
|
1404
|
+
return this.filter(predicate, bindings).first();
|
|
1302
1405
|
}
|
|
1303
|
-
count(predicate) {
|
|
1304
|
-
if (predicate) return this.filter(predicate).count();
|
|
1406
|
+
count(predicate, bindings) {
|
|
1407
|
+
if (predicate) return this.filter(predicate, bindings).count();
|
|
1305
1408
|
return this.toArray().count();
|
|
1306
1409
|
}
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
return this.filter(predicate).some();
|
|
1410
|
+
some(predicate, bindings) {
|
|
1411
|
+
return this.filter(predicate, bindings).some();
|
|
1310
1412
|
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
return this.filter(predicate).every();
|
|
1413
|
+
async every(predicate, bindings) {
|
|
1414
|
+
return this.filter(predicate, bindings).every();
|
|
1314
1415
|
}
|
|
1315
1416
|
/** True if the table has zero rows. */
|
|
1316
1417
|
async isEmpty() {
|
|
@@ -1335,9 +1436,8 @@ var Table = class {
|
|
|
1335
1436
|
toArray() {
|
|
1336
1437
|
return new Query(this._config);
|
|
1337
1438
|
}
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
return new Query(this._config).filter(predicate);
|
|
1439
|
+
filter(predicate, bindings) {
|
|
1440
|
+
return new Query(this._config).filter(predicate, bindings);
|
|
1341
1441
|
}
|
|
1342
1442
|
/** Sort rows by a field. Returns a chainable Query. */
|
|
1343
1443
|
sortBy(accessor) {
|
|
@@ -1419,11 +1519,8 @@ var Table = class {
|
|
|
1419
1519
|
deleted: results[0].changes > 0
|
|
1420
1520
|
}));
|
|
1421
1521
|
}
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
*/
|
|
1425
|
-
removeAll(predicate) {
|
|
1426
|
-
const compiled = compilePredicate(predicate);
|
|
1522
|
+
removeAll(predicate, bindings) {
|
|
1523
|
+
const compiled = compilePredicate(predicate, bindings);
|
|
1427
1524
|
if (compiled.type === "sql") {
|
|
1428
1525
|
const query = buildDelete(this._config.tableName, compiled.where);
|
|
1429
1526
|
return new Mutation(this._config, [query], (results) => results[0].changes);
|
|
@@ -1440,7 +1537,7 @@ var Table = class {
|
|
|
1440
1537
|
this._config.columns
|
|
1441
1538
|
)
|
|
1442
1539
|
);
|
|
1443
|
-
const matching = allRows.filter((row) => predicate(row));
|
|
1540
|
+
const matching = allRows.filter((row) => predicate(row, bindings));
|
|
1444
1541
|
if (matching.length === 0) return 0;
|
|
1445
1542
|
const deleteQueries = matching.filter((row) => row.id).map((row) => buildDelete(this._config.tableName, `id = ?`, [row.id]));
|
|
1446
1543
|
if (deleteQueries.length > 0) {
|
|
@@ -1592,6 +1689,8 @@ function createDb(databases, executeBatch, authConfig, syncRoles) {
|
|
|
1592
1689
|
minutes: (n) => n * 6e4,
|
|
1593
1690
|
ago: (ms) => Date.now() - ms,
|
|
1594
1691
|
fromNow: (ms) => Date.now() + ms,
|
|
1692
|
+
// --- User references ---
|
|
1693
|
+
userRef: (id) => id.startsWith(USER_PREFIX) ? id.slice(USER_PREFIX.length) : id,
|
|
1595
1694
|
// --- Batch execution ---
|
|
1596
1695
|
batch: ((...operations) => {
|
|
1597
1696
|
return (async () => {
|
|
@@ -2160,13 +2259,6 @@ var stepMetadata = {
|
|
|
2160
2259
|
inputSchema: { "type": "object", "properties": { "mediaUrl": { "type": "string", "description": "URL of the audio or video file to analyze" } }, "required": ["mediaUrl"] },
|
|
2161
2260
|
outputSchema: { "type": "object", "properties": { "metadata": { "type": "string", "description": "JSON string containing the media file metadata" } }, "required": ["metadata"] }
|
|
2162
2261
|
},
|
|
2163
|
-
"httpRequest": {
|
|
2164
|
-
stepType: "httpRequest",
|
|
2165
|
-
description: "Make an HTTP request to an external endpoint and return the response.",
|
|
2166
|
-
usageNotes: "- Supports GET, POST, PATCH, DELETE, and PUT methods.\n- Body can be raw JSON/text, URL-encoded form data, or multipart form data.",
|
|
2167
|
-
inputSchema: { "type": "object", "properties": { "url": { "type": "string", "description": "The request URL" }, "method": { "type": "string", "description": "HTTP method (GET, POST, PATCH, DELETE, or PUT)" }, "headers": { "type": "object", "properties": {}, "required": [], "description": "Custom request headers as key-value pairs" }, "queryParams": { "type": "object", "properties": {}, "required": [], "description": "Query string parameters as key-value pairs" }, "body": { "type": "string", "description": "Raw request body (used for JSON or custom content types)" }, "bodyItems": { "type": "object", "properties": {}, "required": [], "description": "Key-value body items (used for form data or URL-encoded content types)" }, "contentType": { "enum": ["none", "application/json", "application/x-www-form-urlencoded", "multipart/form-data", "custom"], "type": "string", "description": "The content type for the request body" }, "customContentType": { "type": "string", "description": 'Custom Content-Type header value (used when contentType is "custom")' }, "testData": { "type": "object", "properties": {}, "required": [], "description": "Test data for debug/preview mode" } }, "required": ["url", "method", "headers", "queryParams", "body", "bodyItems", "contentType", "customContentType"], "description": "HTTP request configuration" },
|
|
2168
|
-
outputSchema: { "type": "object", "properties": { "ok": { "type": "boolean", "description": "Whether the HTTP response status code is in the 2xx range" }, "status": { "type": "number", "description": "HTTP response status code" }, "statusText": { "type": "string", "description": "HTTP response status text" }, "response": { "type": "string", "description": "Response body as a string" } }, "required": ["ok", "status", "statusText", "response"] }
|
|
2169
|
-
},
|
|
2170
2262
|
"hubspotCreateCompany": {
|
|
2171
2263
|
stepType: "hubspotCreateCompany",
|
|
2172
2264
|
description: "Create a new company or update an existing one in HubSpot. Matches by domain.",
|
|
@@ -3272,9 +3364,6 @@ function applyStepMethods(AgentClass) {
|
|
|
3272
3364
|
proto.getMediaMetadata = function(step, options) {
|
|
3273
3365
|
return this.executeStep("getMediaMetadata", step, options);
|
|
3274
3366
|
};
|
|
3275
|
-
proto.httpRequest = function(step, options) {
|
|
3276
|
-
return this.executeStep("httpRequest", step, options);
|
|
3277
|
-
};
|
|
3278
3367
|
proto.hubspotCreateCompany = function(step, options) {
|
|
3279
3368
|
return this.executeStep("hubspotCreateCompany", step, options);
|
|
3280
3369
|
};
|
|
@@ -4572,6 +4661,7 @@ var MindStudioAgent = class {
|
|
|
4572
4661
|
minutes: (n) => n * 6e4,
|
|
4573
4662
|
ago: (ms) => Date.now() - ms,
|
|
4574
4663
|
fromNow: (ms) => Date.now() + ms,
|
|
4664
|
+
userRef: (id) => id.startsWith("@@user@@") ? id.slice("@@user@@".length) : id,
|
|
4575
4665
|
// Batch needs context — hydrate first, then delegate to real db
|
|
4576
4666
|
batch: ((...queries) => {
|
|
4577
4667
|
return (async () => {
|
|
@@ -4818,7 +4908,6 @@ var monacoSnippets = {
|
|
|
4818
4908
|
"getGoogleDriveFile": { fields: [["fileId", "string"]], outputKeys: ["url", "name", "mimeType", "size"] },
|
|
4819
4909
|
"getGoogleSheetInfo": { fields: [["documentId", "string"]], outputKeys: ["title", "sheets"] },
|
|
4820
4910
|
"getMediaMetadata": { fields: [["mediaUrl", "string"]], outputKeys: ["metadata"] },
|
|
4821
|
-
"httpRequest": { fields: [["url", "string"], ["method", "string"], ["headers", "object"], ["queryParams", "object"], ["body", "string"], ["bodyItems", "object"], ["contentType", ["none", "application/json", "application/x-www-form-urlencoded", "multipart/form-data", "custom"]], ["customContentType", "string"]], outputKeys: ["ok", "status", "statusText", "response"] },
|
|
4822
4911
|
"hubspotCreateCompany": { fields: [["company", "object"], ["enabledProperties", "array"]], outputKeys: ["companyId"] },
|
|
4823
4912
|
"hubspotCreateContact": { fields: [["contact", "object"], ["enabledProperties", "array"], ["companyDomain", "string"]], outputKeys: ["contactId"] },
|
|
4824
4913
|
"hubspotGetCompany": { fields: [["searchBy", ["domain", "id"]], ["companyDomain", "string"], ["companyId", "string"], ["additionalProperties", "array"]], outputKeys: ["company"] },
|