@mindstudio-ai/agent 0.1.66 → 0.1.68
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 +90 -88
- package/dist/index.d.ts +92 -185
- package/dist/index.js +80 -88
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +90 -88
- package/llms.txt +0 -46
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -192,6 +192,41 @@ interface ResolvedUser {
|
|
|
192
192
|
/** Profile picture URL, if set. */
|
|
193
193
|
profilePictureUrl?: string | null;
|
|
194
194
|
}
|
|
195
|
+
/** Input for {@link MindStudioAgent.reportIssue}. */
|
|
196
|
+
interface ReportIssueInput {
|
|
197
|
+
/** Short summary. Required, non-empty, ≤ 300 chars (trimmed server-side). */
|
|
198
|
+
title: string;
|
|
199
|
+
/** Longer description. Optional, ≤ 10,000 chars. Defaults to `""`. */
|
|
200
|
+
body?: string;
|
|
201
|
+
/** Report kind. Defaults to `"bug"`. */
|
|
202
|
+
kind?: 'bug' | 'idea';
|
|
203
|
+
/**
|
|
204
|
+
* Free-form label for who reported it — a name, email, or ticket id.
|
|
205
|
+
* ≤ 200 chars. Display-only; NOT an identity check and NOT tied to a user.
|
|
206
|
+
* Omit for an anonymous report.
|
|
207
|
+
*/
|
|
208
|
+
reporter?: string;
|
|
209
|
+
}
|
|
210
|
+
/** A filed issue, returned by {@link MindStudioAgent.reportIssue}. */
|
|
211
|
+
interface ReportedIssue {
|
|
212
|
+
id: string;
|
|
213
|
+
/** Friendly per-app number — show the user "Reported as #42". */
|
|
214
|
+
number: number;
|
|
215
|
+
title: string;
|
|
216
|
+
body: string;
|
|
217
|
+
kind: 'bug' | 'idea';
|
|
218
|
+
status: 'open';
|
|
219
|
+
/** `"sdk"` for in-app reports filed through this method. */
|
|
220
|
+
authorKind: 'sdk';
|
|
221
|
+
authorUserId: string | null;
|
|
222
|
+
/** Echoes the `reporter` that was sent, or null. */
|
|
223
|
+
reporter: string | null;
|
|
224
|
+
/** ISO-8601. */
|
|
225
|
+
createdAt: string;
|
|
226
|
+
/** ISO-8601. */
|
|
227
|
+
updatedAt: string;
|
|
228
|
+
closedAt: string | null;
|
|
229
|
+
}
|
|
195
230
|
/** An AI model available on MindStudio. */
|
|
196
231
|
interface MindStudioModel {
|
|
197
232
|
id?: string;
|
|
@@ -1722,6 +1757,47 @@ declare class MindStudioAgent$1 {
|
|
|
1722
1757
|
resolveUsers(userIds: string[]): Promise<{
|
|
1723
1758
|
users: ResolvedUser[];
|
|
1724
1759
|
}>;
|
|
1760
|
+
/**
|
|
1761
|
+
* File a bug report or feature idea into this app's issue tracker.
|
|
1762
|
+
*
|
|
1763
|
+
* For building an in-app "Report a bug" feature: wire the frontend UI to
|
|
1764
|
+
* an app backend method that calls this. The issue lands in the app's
|
|
1765
|
+
* issue tracker, visible to the app's team and available to the Remy agent.
|
|
1766
|
+
*
|
|
1767
|
+
* **Backend / managed-context only.** It authenticates with the app's hook
|
|
1768
|
+
* token (the same credential used for `db` queries), and the app id is
|
|
1769
|
+
* derived from that token server-side. Calling it outside a managed
|
|
1770
|
+
* context (e.g. with a plain API key) will fail with `401`.
|
|
1771
|
+
*
|
|
1772
|
+
* Rate limited per app (20 / 60s). On the limit this throws a
|
|
1773
|
+
* `MindStudioError` with `code === 'rate_limited'` and `status === 429` —
|
|
1774
|
+
* catch it to show a graceful "try again shortly" message. Every call
|
|
1775
|
+
* creates a new issue (no dedupe), so guard against double-submit in the UI.
|
|
1776
|
+
*
|
|
1777
|
+
* @returns The filed issue. Show `issue.number` to confirm "Reported as #42".
|
|
1778
|
+
*
|
|
1779
|
+
* @example
|
|
1780
|
+
* ```ts
|
|
1781
|
+
* // app backend method, e.g. exported as `reportBug`
|
|
1782
|
+
* export async function reportBug({ title, details, userEmail }) {
|
|
1783
|
+
* try {
|
|
1784
|
+
* const { number } = await mindstudio.reportIssue({
|
|
1785
|
+
* title,
|
|
1786
|
+
* body: details,
|
|
1787
|
+
* kind: 'bug',
|
|
1788
|
+
* reporter: userEmail, // free-form label; omit for anonymous
|
|
1789
|
+
* });
|
|
1790
|
+
* return { ok: true, issueNumber: number };
|
|
1791
|
+
* } catch (e) {
|
|
1792
|
+
* if (e instanceof MindStudioError && e.code === 'rate_limited') {
|
|
1793
|
+
* return { ok: false, retry: true };
|
|
1794
|
+
* }
|
|
1795
|
+
* throw e;
|
|
1796
|
+
* }
|
|
1797
|
+
* }
|
|
1798
|
+
* ```
|
|
1799
|
+
*/
|
|
1800
|
+
reportIssue(input: ReportIssueInput): Promise<ReportedIssue>;
|
|
1725
1801
|
/**
|
|
1726
1802
|
* Get auth and database context for an app.
|
|
1727
1803
|
*
|
|
@@ -4394,72 +4470,6 @@ interface RunPackagedWorkflowStepOutput {
|
|
|
4394
4470
|
/** The result data returned from the packaged workflow */
|
|
4395
4471
|
data: unknown;
|
|
4396
4472
|
}
|
|
4397
|
-
interface ScrapeFacebookPageStepInput {
|
|
4398
|
-
/** Full URL to the Facebook page to scrape */
|
|
4399
|
-
pageUrl: string;
|
|
4400
|
-
}
|
|
4401
|
-
interface ScrapeFacebookPageStepOutput {
|
|
4402
|
-
/** The result data returned from the Apify actor run */
|
|
4403
|
-
data: unknown;
|
|
4404
|
-
}
|
|
4405
|
-
interface ScrapeFacebookPostsStepInput {
|
|
4406
|
-
/** Full URL to the Facebook page to scrape posts from */
|
|
4407
|
-
pageUrl: string;
|
|
4408
|
-
}
|
|
4409
|
-
interface ScrapeFacebookPostsStepOutput {
|
|
4410
|
-
/** The result data returned from the Apify actor run */
|
|
4411
|
-
data: unknown;
|
|
4412
|
-
}
|
|
4413
|
-
interface ScrapeInstagramCommentsStepInput {
|
|
4414
|
-
/** Full URL to the Instagram post to scrape comments from */
|
|
4415
|
-
postUrl: string;
|
|
4416
|
-
/** Maximum number of comments to return */
|
|
4417
|
-
resultsLimit: string;
|
|
4418
|
-
}
|
|
4419
|
-
interface ScrapeInstagramCommentsStepOutput {
|
|
4420
|
-
/** The result data returned from the Apify actor run */
|
|
4421
|
-
data: unknown;
|
|
4422
|
-
}
|
|
4423
|
-
interface ScrapeInstagramMentionsStepInput {
|
|
4424
|
-
/** Instagram profile URL or username to scrape mentions for */
|
|
4425
|
-
profileUrl: string;
|
|
4426
|
-
/** Maximum number of mentions to return */
|
|
4427
|
-
resultsLimit: string;
|
|
4428
|
-
}
|
|
4429
|
-
interface ScrapeInstagramMentionsStepOutput {
|
|
4430
|
-
/** The result data returned from the Apify actor run */
|
|
4431
|
-
data: unknown;
|
|
4432
|
-
}
|
|
4433
|
-
interface ScrapeInstagramPostsStepInput {
|
|
4434
|
-
/** Instagram profile URL or username to scrape posts from */
|
|
4435
|
-
profileUrl: string;
|
|
4436
|
-
/** Maximum number of posts to return */
|
|
4437
|
-
resultsLimit: string;
|
|
4438
|
-
/** Only return posts newer than this date (ISO 8601 format) */
|
|
4439
|
-
onlyPostsNewerThan: string;
|
|
4440
|
-
}
|
|
4441
|
-
interface ScrapeInstagramPostsStepOutput {
|
|
4442
|
-
/** The result data returned from the Apify actor run */
|
|
4443
|
-
data: unknown;
|
|
4444
|
-
}
|
|
4445
|
-
interface ScrapeInstagramProfileStepInput {
|
|
4446
|
-
/** Instagram profile URL or username to scrape */
|
|
4447
|
-
profileUrl: string;
|
|
4448
|
-
}
|
|
4449
|
-
interface ScrapeInstagramProfileStepOutput {
|
|
4450
|
-
/** The result data returned from the Apify actor run */
|
|
4451
|
-
data: unknown;
|
|
4452
|
-
}
|
|
4453
|
-
interface ScrapeInstagramReelsStepInput {
|
|
4454
|
-
/** Instagram profile URL or username to scrape reels from */
|
|
4455
|
-
profileUrl: string;
|
|
4456
|
-
/** Maximum number of reels to return */
|
|
4457
|
-
resultsLimit: string;
|
|
4458
|
-
}
|
|
4459
|
-
interface ScrapeInstagramReelsStepOutput {
|
|
4460
|
-
/** The result data returned from the Apify actor run */
|
|
4461
|
-
data: unknown;
|
|
4462
|
-
}
|
|
4463
4473
|
interface ScrapeLinkedInCompanyStepInput {
|
|
4464
4474
|
/** LinkedIn company page URL (e.g. https://www.linkedin.com/company/mindstudioai) */
|
|
4465
4475
|
url: string;
|
|
@@ -4476,14 +4486,6 @@ interface ScrapeLinkedInProfileStepOutput {
|
|
|
4476
4486
|
/** Scraped LinkedIn profile data */
|
|
4477
4487
|
profile: unknown;
|
|
4478
4488
|
}
|
|
4479
|
-
interface ScrapeMetaThreadsProfileStepInput {
|
|
4480
|
-
/** Meta Threads profile URL or username to scrape */
|
|
4481
|
-
profileUrl: string;
|
|
4482
|
-
}
|
|
4483
|
-
interface ScrapeMetaThreadsProfileStepOutput {
|
|
4484
|
-
/** The result data returned from the Apify actor run */
|
|
4485
|
-
data: unknown;
|
|
4486
|
-
}
|
|
4487
4489
|
interface ScrapeUrlStepInput {
|
|
4488
4490
|
/** URL(s) to scrape. Accepts a single URL, JSON array, or comma/newline-separated list */
|
|
4489
4491
|
url: string;
|
|
@@ -5527,7 +5529,7 @@ type GenerateAssetStepOutput = GeneratePdfStepOutput;
|
|
|
5527
5529
|
type GenerateTextStepInput = UserMessageStepInput;
|
|
5528
5530
|
type GenerateTextStepOutput = UserMessageStepOutput;
|
|
5529
5531
|
/** Union of all available step type names. */
|
|
5530
|
-
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" | "generate3dModel" | "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" | "meshyAnimate" | "meshyImageTo3d" | "meshyRemesh" | "meshyRig" | "meshyTextTo3d" | "meshyTexture" | "mixAudioIntoVideo" | "muteVideo" | "n8nRunNode" | "notionCreatePage" | "notionUpdatePage" | "particlePodcastsFindMentions" | "particlePodcastsGetEpisode" | "particlePodcastsGetEpisodeTranscript" | "particlePodcastsSearchCompanies" | "particlePodcastsSearchDialogue" | "particlePodcastsSearchPodcasts" | "peopleSearch" | "postToLinkedIn" | "postToSlackChannel" | "postToX" | "postToZapier" | "queryAppDatabase" | "queryDataSource" | "queryExternalDatabase" | "redactPII" | "removeBackgroundFromImage" | "replyToGmailEmail" | "resizeVideo" | "runFromConnectorRegistry" | "runPackagedWorkflow" | "
|
|
5532
|
+
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" | "generate3dModel" | "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" | "meshyAnimate" | "meshyImageTo3d" | "meshyRemesh" | "meshyRig" | "meshyTextTo3d" | "meshyTexture" | "mixAudioIntoVideo" | "muteVideo" | "n8nRunNode" | "notionCreatePage" | "notionUpdatePage" | "particlePodcastsFindMentions" | "particlePodcastsGetEpisode" | "particlePodcastsGetEpisodeTranscript" | "particlePodcastsSearchCompanies" | "particlePodcastsSearchDialogue" | "particlePodcastsSearchPodcasts" | "peopleSearch" | "postToLinkedIn" | "postToSlackChannel" | "postToX" | "postToZapier" | "queryAppDatabase" | "queryDataSource" | "queryExternalDatabase" | "redactPII" | "removeBackgroundFromImage" | "replyToGmailEmail" | "resizeVideo" | "runFromConnectorRegistry" | "runPackagedWorkflow" | "scrapeLinkedInCompany" | "scrapeLinkedInProfile" | "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" | "youDotComFinanceResearch" | "youDotComGetPageContent" | "youDotComLiveNews" | "youDotComWebResearch" | "youDotComWebSearch";
|
|
5531
5533
|
/** Maps step names to their input types. */
|
|
5532
5534
|
interface StepInputMap {
|
|
5533
5535
|
activeCampaignAddNote: ActiveCampaignAddNoteStepInput;
|
|
@@ -5645,16 +5647,8 @@ interface StepInputMap {
|
|
|
5645
5647
|
resizeVideo: ResizeVideoStepInput;
|
|
5646
5648
|
runFromConnectorRegistry: RunFromConnectorRegistryStepInput;
|
|
5647
5649
|
runPackagedWorkflow: RunPackagedWorkflowStepInput;
|
|
5648
|
-
scrapeFacebookPage: ScrapeFacebookPageStepInput;
|
|
5649
|
-
scrapeFacebookPosts: ScrapeFacebookPostsStepInput;
|
|
5650
|
-
scrapeInstagramComments: ScrapeInstagramCommentsStepInput;
|
|
5651
|
-
scrapeInstagramMentions: ScrapeInstagramMentionsStepInput;
|
|
5652
|
-
scrapeInstagramPosts: ScrapeInstagramPostsStepInput;
|
|
5653
|
-
scrapeInstagramProfile: ScrapeInstagramProfileStepInput;
|
|
5654
|
-
scrapeInstagramReels: ScrapeInstagramReelsStepInput;
|
|
5655
5650
|
scrapeLinkedInCompany: ScrapeLinkedInCompanyStepInput;
|
|
5656
5651
|
scrapeLinkedInProfile: ScrapeLinkedInProfileStepInput;
|
|
5657
|
-
scrapeMetaThreadsProfile: ScrapeMetaThreadsProfileStepInput;
|
|
5658
5652
|
scrapeUrl: ScrapeUrlStepInput;
|
|
5659
5653
|
scrapeXPost: ScrapeXPostStepInput;
|
|
5660
5654
|
scrapeXProfile: ScrapeXProfileStepInput;
|
|
@@ -5825,16 +5819,8 @@ interface StepOutputMap {
|
|
|
5825
5819
|
resizeVideo: ResizeVideoStepOutput;
|
|
5826
5820
|
runFromConnectorRegistry: RunFromConnectorRegistryStepOutput;
|
|
5827
5821
|
runPackagedWorkflow: RunPackagedWorkflowStepOutput;
|
|
5828
|
-
scrapeFacebookPage: ScrapeFacebookPageStepOutput;
|
|
5829
|
-
scrapeFacebookPosts: ScrapeFacebookPostsStepOutput;
|
|
5830
|
-
scrapeInstagramComments: ScrapeInstagramCommentsStepOutput;
|
|
5831
|
-
scrapeInstagramMentions: ScrapeInstagramMentionsStepOutput;
|
|
5832
|
-
scrapeInstagramPosts: ScrapeInstagramPostsStepOutput;
|
|
5833
|
-
scrapeInstagramProfile: ScrapeInstagramProfileStepOutput;
|
|
5834
|
-
scrapeInstagramReels: ScrapeInstagramReelsStepOutput;
|
|
5835
5822
|
scrapeLinkedInCompany: ScrapeLinkedInCompanyStepOutput;
|
|
5836
5823
|
scrapeLinkedInProfile: ScrapeLinkedInProfileStepOutput;
|
|
5837
|
-
scrapeMetaThreadsProfile: ScrapeMetaThreadsProfileStepOutput;
|
|
5838
5824
|
scrapeUrl: ScrapeUrlStepOutput;
|
|
5839
5825
|
scrapeXPost: ScrapeXPostStepOutput;
|
|
5840
5826
|
scrapeXProfile: ScrapeXProfileStepOutput;
|
|
@@ -7801,88 +7787,6 @@ interface StepMethods {
|
|
|
7801
7787
|
* ```
|
|
7802
7788
|
*/
|
|
7803
7789
|
runPackagedWorkflow(step: RunPackagedWorkflowStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<RunPackagedWorkflowStepOutput>>;
|
|
7804
|
-
/**
|
|
7805
|
-
* Scrape a Facebook page
|
|
7806
|
-
*
|
|
7807
|
-
* @example
|
|
7808
|
-
* ```typescript
|
|
7809
|
-
* const result = await agent.scrapeFacebookPage({
|
|
7810
|
-
* pageUrl: ``,
|
|
7811
|
-
* });
|
|
7812
|
-
* ```
|
|
7813
|
-
*/
|
|
7814
|
-
scrapeFacebookPage(step: ScrapeFacebookPageStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeFacebookPageStepOutput>>;
|
|
7815
|
-
/**
|
|
7816
|
-
* Get all the posts for a Facebook page
|
|
7817
|
-
*
|
|
7818
|
-
* @example
|
|
7819
|
-
* ```typescript
|
|
7820
|
-
* const result = await agent.scrapeFacebookPosts({
|
|
7821
|
-
* pageUrl: ``,
|
|
7822
|
-
* });
|
|
7823
|
-
* ```
|
|
7824
|
-
*/
|
|
7825
|
-
scrapeFacebookPosts(step: ScrapeFacebookPostsStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeFacebookPostsStepOutput>>;
|
|
7826
|
-
/**
|
|
7827
|
-
* Get all the comments for an Instagram post
|
|
7828
|
-
*
|
|
7829
|
-
* @example
|
|
7830
|
-
* ```typescript
|
|
7831
|
-
* const result = await agent.scrapeInstagramComments({
|
|
7832
|
-
* postUrl: ``,
|
|
7833
|
-
* resultsLimit: ``,
|
|
7834
|
-
* });
|
|
7835
|
-
* ```
|
|
7836
|
-
*/
|
|
7837
|
-
scrapeInstagramComments(step: ScrapeInstagramCommentsStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeInstagramCommentsStepOutput>>;
|
|
7838
|
-
/**
|
|
7839
|
-
* Scrape an Instagram profile's mentions
|
|
7840
|
-
*
|
|
7841
|
-
* @example
|
|
7842
|
-
* ```typescript
|
|
7843
|
-
* const result = await agent.scrapeInstagramMentions({
|
|
7844
|
-
* profileUrl: ``,
|
|
7845
|
-
* resultsLimit: ``,
|
|
7846
|
-
* });
|
|
7847
|
-
* ```
|
|
7848
|
-
*/
|
|
7849
|
-
scrapeInstagramMentions(step: ScrapeInstagramMentionsStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeInstagramMentionsStepOutput>>;
|
|
7850
|
-
/**
|
|
7851
|
-
* Get all the posts for an Instagram profile
|
|
7852
|
-
*
|
|
7853
|
-
* @example
|
|
7854
|
-
* ```typescript
|
|
7855
|
-
* const result = await agent.scrapeInstagramPosts({
|
|
7856
|
-
* profileUrl: ``,
|
|
7857
|
-
* resultsLimit: ``,
|
|
7858
|
-
* onlyPostsNewerThan: ``,
|
|
7859
|
-
* });
|
|
7860
|
-
* ```
|
|
7861
|
-
*/
|
|
7862
|
-
scrapeInstagramPosts(step: ScrapeInstagramPostsStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeInstagramPostsStepOutput>>;
|
|
7863
|
-
/**
|
|
7864
|
-
* Scrape an Instagram profile
|
|
7865
|
-
*
|
|
7866
|
-
* @example
|
|
7867
|
-
* ```typescript
|
|
7868
|
-
* const result = await agent.scrapeInstagramProfile({
|
|
7869
|
-
* profileUrl: ``,
|
|
7870
|
-
* });
|
|
7871
|
-
* ```
|
|
7872
|
-
*/
|
|
7873
|
-
scrapeInstagramProfile(step: ScrapeInstagramProfileStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeInstagramProfileStepOutput>>;
|
|
7874
|
-
/**
|
|
7875
|
-
* Get all the reels for an Instagram profile
|
|
7876
|
-
*
|
|
7877
|
-
* @example
|
|
7878
|
-
* ```typescript
|
|
7879
|
-
* const result = await agent.scrapeInstagramReels({
|
|
7880
|
-
* profileUrl: ``,
|
|
7881
|
-
* resultsLimit: ``,
|
|
7882
|
-
* });
|
|
7883
|
-
* ```
|
|
7884
|
-
*/
|
|
7885
|
-
scrapeInstagramReels(step: ScrapeInstagramReelsStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeInstagramReelsStepOutput>>;
|
|
7886
7790
|
/**
|
|
7887
7791
|
* Scrape public company data from a LinkedIn company page.
|
|
7888
7792
|
*
|
|
@@ -7913,17 +7817,6 @@ interface StepMethods {
|
|
|
7913
7817
|
* ```
|
|
7914
7818
|
*/
|
|
7915
7819
|
scrapeLinkedInProfile(step: ScrapeLinkedInProfileStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeLinkedInProfileStepOutput>>;
|
|
7916
|
-
/**
|
|
7917
|
-
* Scrape a Meta Threads profile
|
|
7918
|
-
*
|
|
7919
|
-
* @example
|
|
7920
|
-
* ```typescript
|
|
7921
|
-
* const result = await agent.scrapeMetaThreadsProfile({
|
|
7922
|
-
* profileUrl: ``,
|
|
7923
|
-
* });
|
|
7924
|
-
* ```
|
|
7925
|
-
*/
|
|
7926
|
-
scrapeMetaThreadsProfile(step: ScrapeMetaThreadsProfileStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<ScrapeMetaThreadsProfileStepOutput>>;
|
|
7927
7820
|
/**
|
|
7928
7821
|
* Extract text, HTML, or structured content from one or more web pages.
|
|
7929
7822
|
*
|
|
@@ -8994,5 +8887,19 @@ declare const stream: (data: string | Record<string, unknown>) => Promise<void>;
|
|
|
8994
8887
|
* ```
|
|
8995
8888
|
*/
|
|
8996
8889
|
declare const resolveUser: (userId: string) => Promise<ResolvedUser | null>;
|
|
8890
|
+
/**
|
|
8891
|
+
* File a bug report or feature idea into this app's issue tracker.
|
|
8892
|
+
* Bound to the default singleton. Backend / managed-context only.
|
|
8893
|
+
*
|
|
8894
|
+
* @example
|
|
8895
|
+
* ```ts
|
|
8896
|
+
* import { reportIssue } from '@mindstudio-ai/agent';
|
|
8897
|
+
*
|
|
8898
|
+
* const { number } = await reportIssue({ title: 'Checkout fails', kind: 'bug' });
|
|
8899
|
+
* ```
|
|
8900
|
+
*
|
|
8901
|
+
* @see {@link MindStudioAgent.reportIssue}
|
|
8902
|
+
*/
|
|
8903
|
+
declare const reportIssue: (input: ReportIssueInput) => Promise<ReportedIssue>;
|
|
8997
8904
|
|
|
8998
|
-
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 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 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, 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, 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, type YouDotComFinanceResearchStepInput, type YouDotComFinanceResearchStepOutput, type YouDotComGetPageContentStepInput, type YouDotComGetPageContentStepOutput, type YouDotComLiveNewsStepInput, type YouDotComLiveNewsStepOutput, type YouDotComWebResearchStepInput, type YouDotComWebResearchStepOutput, type YouDotComWebSearchStepInput, type YouDotComWebSearchStepOutput, auth, blockTypeAliases, db, mindstudio as default, getRequestContext, mindstudio, monacoSnippets, resolveUser, runWithContext, stepMetadata, stream };
|
|
8905
|
+
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 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 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, 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, 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 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 RunTaskResult, 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 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, type YouDotComFinanceResearchStepInput, type YouDotComFinanceResearchStepOutput, type YouDotComGetPageContentStepInput, type YouDotComGetPageContentStepOutput, type YouDotComLiveNewsStepInput, type YouDotComLiveNewsStepOutput, type YouDotComWebResearchStepInput, type YouDotComWebResearchStepOutput, type YouDotComWebSearchStepInput, type YouDotComWebSearchStepOutput, auth, blockTypeAliases, db, mindstudio as default, getRequestContext, mindstudio, monacoSnippets, reportIssue, resolveUser, runWithContext, stepMetadata, stream };
|
package/dist/index.js
CHANGED
|
@@ -2646,55 +2646,6 @@ var stepMetadata = {
|
|
|
2646
2646
|
inputSchema: { "type": "object", "properties": { "appId": { "type": "string", "description": "The app ID of the packaged workflow source" }, "workflowId": { "type": "string", "description": "The source workflow ID to execute" }, "inputVariables": { "type": "object", "properties": {}, "required": [], "description": "Variables to pass as input to the packaged workflow" }, "outputVariables": { "type": "object", "properties": {}, "required": [], "description": "Variables to capture from the packaged workflow output" }, "name": { "type": "string", "description": "Display name of the packaged workflow" } }, "required": ["appId", "workflowId", "inputVariables", "outputVariables", "name"], "description": "Configuration for the packaged workflow step" },
|
|
2647
2647
|
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the packaged workflow" } }, "required": ["data"] }
|
|
2648
2648
|
},
|
|
2649
|
-
"scrapeFacebookPage": {
|
|
2650
|
-
stepType: "scrapeFacebookPage",
|
|
2651
|
-
description: "Scrape a Facebook page",
|
|
2652
|
-
usageNotes: "",
|
|
2653
|
-
inputSchema: { "type": "object", "properties": { "pageUrl": { "type": "string", "description": "Full URL to the Facebook page to scrape" } }, "required": ["pageUrl"] },
|
|
2654
|
-
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the Apify actor run" } }, "required": ["data"] }
|
|
2655
|
-
},
|
|
2656
|
-
"scrapeFacebookPosts": {
|
|
2657
|
-
stepType: "scrapeFacebookPosts",
|
|
2658
|
-
description: "Get all the posts for a Facebook page",
|
|
2659
|
-
usageNotes: "",
|
|
2660
|
-
inputSchema: { "type": "object", "properties": { "pageUrl": { "type": "string", "description": "Full URL to the Facebook page to scrape posts from" } }, "required": ["pageUrl"] },
|
|
2661
|
-
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the Apify actor run" } }, "required": ["data"] }
|
|
2662
|
-
},
|
|
2663
|
-
"scrapeInstagramComments": {
|
|
2664
|
-
stepType: "scrapeInstagramComments",
|
|
2665
|
-
description: "Get all the comments for an Instagram post",
|
|
2666
|
-
usageNotes: "",
|
|
2667
|
-
inputSchema: { "type": "object", "properties": { "postUrl": { "type": "string", "description": "Full URL to the Instagram post to scrape comments from" }, "resultsLimit": { "type": "string", "description": "Maximum number of comments to return" } }, "required": ["postUrl", "resultsLimit"] },
|
|
2668
|
-
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the Apify actor run" } }, "required": ["data"] }
|
|
2669
|
-
},
|
|
2670
|
-
"scrapeInstagramMentions": {
|
|
2671
|
-
stepType: "scrapeInstagramMentions",
|
|
2672
|
-
description: "Scrape an Instagram profile's mentions",
|
|
2673
|
-
usageNotes: "",
|
|
2674
|
-
inputSchema: { "type": "object", "properties": { "profileUrl": { "type": "string", "description": "Instagram profile URL or username to scrape mentions for" }, "resultsLimit": { "type": "string", "description": "Maximum number of mentions to return" } }, "required": ["profileUrl", "resultsLimit"] },
|
|
2675
|
-
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the Apify actor run" } }, "required": ["data"] }
|
|
2676
|
-
},
|
|
2677
|
-
"scrapeInstagramPosts": {
|
|
2678
|
-
stepType: "scrapeInstagramPosts",
|
|
2679
|
-
description: "Get all the posts for an Instagram profile",
|
|
2680
|
-
usageNotes: "",
|
|
2681
|
-
inputSchema: { "type": "object", "properties": { "profileUrl": { "type": "string", "description": "Instagram profile URL or username to scrape posts from" }, "resultsLimit": { "type": "string", "description": "Maximum number of posts to return" }, "onlyPostsNewerThan": { "type": "string", "description": "Only return posts newer than this date (ISO 8601 format)" } }, "required": ["profileUrl", "resultsLimit", "onlyPostsNewerThan"] },
|
|
2682
|
-
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the Apify actor run" } }, "required": ["data"] }
|
|
2683
|
-
},
|
|
2684
|
-
"scrapeInstagramProfile": {
|
|
2685
|
-
stepType: "scrapeInstagramProfile",
|
|
2686
|
-
description: "Scrape an Instagram profile",
|
|
2687
|
-
usageNotes: "",
|
|
2688
|
-
inputSchema: { "type": "object", "properties": { "profileUrl": { "type": "string", "description": "Instagram profile URL or username to scrape" } }, "required": ["profileUrl"] },
|
|
2689
|
-
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the Apify actor run" } }, "required": ["data"] }
|
|
2690
|
-
},
|
|
2691
|
-
"scrapeInstagramReels": {
|
|
2692
|
-
stepType: "scrapeInstagramReels",
|
|
2693
|
-
description: "Get all the reels for an Instagram profile",
|
|
2694
|
-
usageNotes: "",
|
|
2695
|
-
inputSchema: { "type": "object", "properties": { "profileUrl": { "type": "string", "description": "Instagram profile URL or username to scrape reels from" }, "resultsLimit": { "type": "string", "description": "Maximum number of reels to return" } }, "required": ["profileUrl", "resultsLimit"] },
|
|
2696
|
-
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the Apify actor run" } }, "required": ["data"] }
|
|
2697
|
-
},
|
|
2698
2649
|
"scrapeLinkedInCompany": {
|
|
2699
2650
|
stepType: "scrapeLinkedInCompany",
|
|
2700
2651
|
description: "Scrape public company data from a LinkedIn company page.",
|
|
@@ -2709,13 +2660,6 @@ var stepMetadata = {
|
|
|
2709
2660
|
inputSchema: { "type": "object", "properties": { "url": { "type": "string", "description": "LinkedIn profile URL (e.g. https://www.linkedin.com/in/username)" } }, "required": ["url"] },
|
|
2710
2661
|
outputSchema: { "type": "object", "properties": { "profile": { "description": "Scraped LinkedIn profile data" } }, "required": ["profile"] }
|
|
2711
2662
|
},
|
|
2712
|
-
"scrapeMetaThreadsProfile": {
|
|
2713
|
-
stepType: "scrapeMetaThreadsProfile",
|
|
2714
|
-
description: "Scrape a Meta Threads profile",
|
|
2715
|
-
usageNotes: "",
|
|
2716
|
-
inputSchema: { "type": "object", "properties": { "profileUrl": { "type": "string", "description": "Meta Threads profile URL or username to scrape" } }, "required": ["profileUrl"] },
|
|
2717
|
-
outputSchema: { "type": "object", "properties": { "data": { "description": "The result data returned from the Apify actor run" } }, "required": ["data"] }
|
|
2718
|
-
},
|
|
2719
2663
|
"scrapeUrl": {
|
|
2720
2664
|
stepType: "scrapeUrl",
|
|
2721
2665
|
description: "Extract text, HTML, or structured content from one or more web pages.",
|
|
@@ -3655,36 +3599,12 @@ function applyStepMethods(AgentClass) {
|
|
|
3655
3599
|
proto.runPackagedWorkflow = function(step, options) {
|
|
3656
3600
|
return this.executeStep("runPackagedWorkflow", step, options);
|
|
3657
3601
|
};
|
|
3658
|
-
proto.scrapeFacebookPage = function(step, options) {
|
|
3659
|
-
return this.executeStep("scrapeFacebookPage", step, options);
|
|
3660
|
-
};
|
|
3661
|
-
proto.scrapeFacebookPosts = function(step, options) {
|
|
3662
|
-
return this.executeStep("scrapeFacebookPosts", step, options);
|
|
3663
|
-
};
|
|
3664
|
-
proto.scrapeInstagramComments = function(step, options) {
|
|
3665
|
-
return this.executeStep("scrapeInstagramComments", step, options);
|
|
3666
|
-
};
|
|
3667
|
-
proto.scrapeInstagramMentions = function(step, options) {
|
|
3668
|
-
return this.executeStep("scrapeInstagramMentions", step, options);
|
|
3669
|
-
};
|
|
3670
|
-
proto.scrapeInstagramPosts = function(step, options) {
|
|
3671
|
-
return this.executeStep("scrapeInstagramPosts", step, options);
|
|
3672
|
-
};
|
|
3673
|
-
proto.scrapeInstagramProfile = function(step, options) {
|
|
3674
|
-
return this.executeStep("scrapeInstagramProfile", step, options);
|
|
3675
|
-
};
|
|
3676
|
-
proto.scrapeInstagramReels = function(step, options) {
|
|
3677
|
-
return this.executeStep("scrapeInstagramReels", step, options);
|
|
3678
|
-
};
|
|
3679
3602
|
proto.scrapeLinkedInCompany = function(step, options) {
|
|
3680
3603
|
return this.executeStep("scrapeLinkedInCompany", step, options);
|
|
3681
3604
|
};
|
|
3682
3605
|
proto.scrapeLinkedInProfile = function(step, options) {
|
|
3683
3606
|
return this.executeStep("scrapeLinkedInProfile", step, options);
|
|
3684
3607
|
};
|
|
3685
|
-
proto.scrapeMetaThreadsProfile = function(step, options) {
|
|
3686
|
-
return this.executeStep("scrapeMetaThreadsProfile", step, options);
|
|
3687
|
-
};
|
|
3688
3608
|
proto.scrapeUrl = function(step, options) {
|
|
3689
3609
|
return this.executeStep("scrapeUrl", step, options);
|
|
3690
3610
|
};
|
|
@@ -4950,6 +4870,84 @@ var MindStudioAgent = class {
|
|
|
4950
4870
|
return data;
|
|
4951
4871
|
}
|
|
4952
4872
|
// -------------------------------------------------------------------------
|
|
4873
|
+
// Issue reporting
|
|
4874
|
+
// -------------------------------------------------------------------------
|
|
4875
|
+
/**
|
|
4876
|
+
* File a bug report or feature idea into this app's issue tracker.
|
|
4877
|
+
*
|
|
4878
|
+
* For building an in-app "Report a bug" feature: wire the frontend UI to
|
|
4879
|
+
* an app backend method that calls this. The issue lands in the app's
|
|
4880
|
+
* issue tracker, visible to the app's team and available to the Remy agent.
|
|
4881
|
+
*
|
|
4882
|
+
* **Backend / managed-context only.** It authenticates with the app's hook
|
|
4883
|
+
* token (the same credential used for `db` queries), and the app id is
|
|
4884
|
+
* derived from that token server-side. Calling it outside a managed
|
|
4885
|
+
* context (e.g. with a plain API key) will fail with `401`.
|
|
4886
|
+
*
|
|
4887
|
+
* Rate limited per app (20 / 60s). On the limit this throws a
|
|
4888
|
+
* `MindStudioError` with `code === 'rate_limited'` and `status === 429` —
|
|
4889
|
+
* catch it to show a graceful "try again shortly" message. Every call
|
|
4890
|
+
* creates a new issue (no dedupe), so guard against double-submit in the UI.
|
|
4891
|
+
*
|
|
4892
|
+
* @returns The filed issue. Show `issue.number` to confirm "Reported as #42".
|
|
4893
|
+
*
|
|
4894
|
+
* @example
|
|
4895
|
+
* ```ts
|
|
4896
|
+
* // app backend method, e.g. exported as `reportBug`
|
|
4897
|
+
* export async function reportBug({ title, details, userEmail }) {
|
|
4898
|
+
* try {
|
|
4899
|
+
* const { number } = await mindstudio.reportIssue({
|
|
4900
|
+
* title,
|
|
4901
|
+
* body: details,
|
|
4902
|
+
* kind: 'bug',
|
|
4903
|
+
* reporter: userEmail, // free-form label; omit for anonymous
|
|
4904
|
+
* });
|
|
4905
|
+
* return { ok: true, issueNumber: number };
|
|
4906
|
+
* } catch (e) {
|
|
4907
|
+
* if (e instanceof MindStudioError && e.code === 'rate_limited') {
|
|
4908
|
+
* return { ok: false, retry: true };
|
|
4909
|
+
* }
|
|
4910
|
+
* throw e;
|
|
4911
|
+
* }
|
|
4912
|
+
* }
|
|
4913
|
+
* ```
|
|
4914
|
+
*/
|
|
4915
|
+
async reportIssue(input) {
|
|
4916
|
+
const title = input.title?.trim();
|
|
4917
|
+
if (!title) {
|
|
4918
|
+
throw new MindStudioError("title is required", "missing_title", 400);
|
|
4919
|
+
}
|
|
4920
|
+
const url = `${this._currentHttpConfig.baseUrl}/_internal/v2/report-issue`;
|
|
4921
|
+
const res = await fetch(url, {
|
|
4922
|
+
method: "POST",
|
|
4923
|
+
headers: {
|
|
4924
|
+
"Content-Type": "application/json",
|
|
4925
|
+
Authorization: this._token
|
|
4926
|
+
},
|
|
4927
|
+
body: JSON.stringify({
|
|
4928
|
+
title,
|
|
4929
|
+
...input.body !== void 0 && { body: input.body },
|
|
4930
|
+
...input.kind !== void 0 && { kind: input.kind },
|
|
4931
|
+
...input.reporter !== void 0 && { reporter: input.reporter }
|
|
4932
|
+
})
|
|
4933
|
+
});
|
|
4934
|
+
if (!res.ok) {
|
|
4935
|
+
let code = "report_issue_error";
|
|
4936
|
+
let message = `Report issue failed: ${res.status} ${res.statusText}`;
|
|
4937
|
+
let details;
|
|
4938
|
+
try {
|
|
4939
|
+
const body = await res.json();
|
|
4940
|
+
details = body;
|
|
4941
|
+
if (typeof body.errorString === "string") code = body.errorString;
|
|
4942
|
+
message = typeof body.errorMessage === "string" && body.errorMessage || typeof body.errorString === "string" && body.errorString || message;
|
|
4943
|
+
} catch {
|
|
4944
|
+
}
|
|
4945
|
+
throw new MindStudioError(message, code, res.status, details);
|
|
4946
|
+
}
|
|
4947
|
+
const data = await res.json();
|
|
4948
|
+
return data.issue;
|
|
4949
|
+
}
|
|
4950
|
+
// -------------------------------------------------------------------------
|
|
4953
4951
|
// App context
|
|
4954
4952
|
// -------------------------------------------------------------------------
|
|
4955
4953
|
/**
|
|
@@ -5177,16 +5175,8 @@ var monacoSnippets = {
|
|
|
5177
5175
|
"resizeVideo": { fields: [["videoUrl", "string"], ["mode", ["fit", "exact"]]], outputKeys: ["videoUrl"] },
|
|
5178
5176
|
"runFromConnectorRegistry": { fields: [["actionId", "string"], ["displayName", "string"], ["icon", "string"], ["configurationValues", "object"]], outputKeys: ["data"] },
|
|
5179
5177
|
"runPackagedWorkflow": { fields: [["appId", "string"], ["workflowId", "string"], ["inputVariables", "object"], ["outputVariables", "object"], ["name", "string"]], outputKeys: ["data"] },
|
|
5180
|
-
"scrapeFacebookPage": { fields: [["pageUrl", "string"]], outputKeys: ["data"] },
|
|
5181
|
-
"scrapeFacebookPosts": { fields: [["pageUrl", "string"]], outputKeys: ["data"] },
|
|
5182
|
-
"scrapeInstagramComments": { fields: [["postUrl", "string"], ["resultsLimit", "string"]], outputKeys: ["data"] },
|
|
5183
|
-
"scrapeInstagramMentions": { fields: [["profileUrl", "string"], ["resultsLimit", "string"]], outputKeys: ["data"] },
|
|
5184
|
-
"scrapeInstagramPosts": { fields: [["profileUrl", "string"], ["resultsLimit", "string"], ["onlyPostsNewerThan", "string"]], outputKeys: ["data"] },
|
|
5185
|
-
"scrapeInstagramProfile": { fields: [["profileUrl", "string"]], outputKeys: ["data"] },
|
|
5186
|
-
"scrapeInstagramReels": { fields: [["profileUrl", "string"], ["resultsLimit", "string"]], outputKeys: ["data"] },
|
|
5187
5178
|
"scrapeLinkedInCompany": { fields: [["url", "string"]], outputKeys: ["company"] },
|
|
5188
5179
|
"scrapeLinkedInProfile": { fields: [["url", "string"]], outputKeys: ["profile"] },
|
|
5189
|
-
"scrapeMetaThreadsProfile": { fields: [["profileUrl", "string"]], outputKeys: ["data"] },
|
|
5190
5180
|
"scrapeUrl": { fields: [["url", "string"]], outputKeys: ["content"] },
|
|
5191
5181
|
"scrapeXPost": { fields: [["url", "string"]], outputKeys: ["post"] },
|
|
5192
5182
|
"scrapeXProfile": { fields: [["url", "string"]], outputKeys: ["profile"] },
|
|
@@ -5281,6 +5271,7 @@ var db = new Proxy(
|
|
|
5281
5271
|
);
|
|
5282
5272
|
var stream = (data) => mindstudio.stream(data);
|
|
5283
5273
|
var resolveUser = (userId) => mindstudio.resolveUser(userId);
|
|
5274
|
+
var reportIssue = (input) => mindstudio.reportIssue(input);
|
|
5284
5275
|
export {
|
|
5285
5276
|
AuthContext,
|
|
5286
5277
|
MindStudioAgent2 as MindStudioAgent,
|
|
@@ -5293,6 +5284,7 @@ export {
|
|
|
5293
5284
|
getRequestContext,
|
|
5294
5285
|
mindstudio,
|
|
5295
5286
|
monacoSnippets,
|
|
5287
|
+
reportIssue,
|
|
5296
5288
|
resolveUser,
|
|
5297
5289
|
runWithContext,
|
|
5298
5290
|
stepMetadata,
|