@mindstudio-ai/agent 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +161 -6
- package/dist/index.js +269 -307
- package/dist/index.js.map +1 -1
- package/llms.txt +225 -0
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -12,6 +12,14 @@ var MindStudioError = class extends Error {
|
|
|
12
12
|
// src/http.ts
|
|
13
13
|
async function request(config, method, path, body) {
|
|
14
14
|
const url = `${config.baseUrl}/developer/v2${path}`;
|
|
15
|
+
await config.rateLimiter.acquire();
|
|
16
|
+
try {
|
|
17
|
+
return await requestWithRetry(config, method, url, body, 0);
|
|
18
|
+
} finally {
|
|
19
|
+
config.rateLimiter.release();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async function requestWithRetry(config, method, url, body, attempt) {
|
|
15
23
|
const res = await fetch(url, {
|
|
16
24
|
method,
|
|
17
25
|
headers: {
|
|
@@ -21,6 +29,13 @@ async function request(config, method, path, body) {
|
|
|
21
29
|
},
|
|
22
30
|
body: body != null ? JSON.stringify(body) : void 0
|
|
23
31
|
});
|
|
32
|
+
config.rateLimiter.updateFromHeaders(res.headers);
|
|
33
|
+
if (res.status === 429 && attempt < config.maxRetries) {
|
|
34
|
+
const retryAfter = res.headers.get("retry-after");
|
|
35
|
+
const waitMs = retryAfter ? parseFloat(retryAfter) * 1e3 : 1e3;
|
|
36
|
+
await sleep(waitMs);
|
|
37
|
+
return requestWithRetry(config, method, url, body, attempt + 1);
|
|
38
|
+
}
|
|
24
39
|
if (!res.ok) {
|
|
25
40
|
const errorBody = await res.json().catch(() => ({}));
|
|
26
41
|
throw new MindStudioError(
|
|
@@ -33,6 +48,77 @@ async function request(config, method, path, body) {
|
|
|
33
48
|
const data = await res.json();
|
|
34
49
|
return { data, headers: res.headers };
|
|
35
50
|
}
|
|
51
|
+
function sleep(ms) {
|
|
52
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// src/rate-limit.ts
|
|
56
|
+
var DEFAULTS = {
|
|
57
|
+
internal: { concurrency: 10, callCap: 500 },
|
|
58
|
+
apiKey: { concurrency: 20, callCap: Infinity }
|
|
59
|
+
};
|
|
60
|
+
var RateLimiter = class {
|
|
61
|
+
constructor(authType) {
|
|
62
|
+
this.authType = authType;
|
|
63
|
+
this.concurrencyLimit = DEFAULTS[authType].concurrency;
|
|
64
|
+
this.callCap = DEFAULTS[authType].callCap;
|
|
65
|
+
}
|
|
66
|
+
inflight = 0;
|
|
67
|
+
concurrencyLimit;
|
|
68
|
+
callCount = 0;
|
|
69
|
+
callCap;
|
|
70
|
+
queue = [];
|
|
71
|
+
/** Acquire a slot. Resolves when a concurrent slot is available. */
|
|
72
|
+
async acquire() {
|
|
73
|
+
if (this.callCount >= this.callCap) {
|
|
74
|
+
throw new MindStudioError(
|
|
75
|
+
`Call cap reached (${this.callCap} calls). Internal tokens are limited to 500 calls per execution.`,
|
|
76
|
+
"call_cap_exceeded",
|
|
77
|
+
429
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
if (this.inflight < this.concurrencyLimit) {
|
|
81
|
+
this.inflight++;
|
|
82
|
+
this.callCount++;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
return new Promise((resolve) => {
|
|
86
|
+
this.queue.push(() => {
|
|
87
|
+
this.inflight++;
|
|
88
|
+
this.callCount++;
|
|
89
|
+
resolve();
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/** Release a slot and let the next queued request proceed. */
|
|
94
|
+
release() {
|
|
95
|
+
this.inflight--;
|
|
96
|
+
const next = this.queue.shift();
|
|
97
|
+
if (next) next();
|
|
98
|
+
}
|
|
99
|
+
/** Update limits from response headers. */
|
|
100
|
+
updateFromHeaders(headers) {
|
|
101
|
+
const concurrency = headers.get("x-ratelimit-concurrency-limit");
|
|
102
|
+
if (concurrency) {
|
|
103
|
+
this.concurrencyLimit = parseInt(concurrency, 10);
|
|
104
|
+
}
|
|
105
|
+
const limit = headers.get("x-ratelimit-limit");
|
|
106
|
+
if (limit && this.authType === "internal") {
|
|
107
|
+
this.callCap = parseInt(limit, 10);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/** Read current rate limit state from response headers. */
|
|
111
|
+
static parseHeaders(headers) {
|
|
112
|
+
const remaining = headers.get("x-ratelimit-remaining");
|
|
113
|
+
const concurrencyRemaining = headers.get(
|
|
114
|
+
"x-ratelimit-concurrency-remaining"
|
|
115
|
+
);
|
|
116
|
+
return {
|
|
117
|
+
remaining: remaining != null ? parseInt(remaining, 10) : void 0,
|
|
118
|
+
concurrencyRemaining: concurrencyRemaining != null ? parseInt(concurrencyRemaining, 10) : void 0
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
};
|
|
36
122
|
|
|
37
123
|
// src/generated/steps.ts
|
|
38
124
|
function applyStepMethods(AgentClass) {
|
|
@@ -85,6 +171,9 @@ function applyStepMethods(AgentClass) {
|
|
|
85
171
|
proto.convertPdfToImages = function(step, options) {
|
|
86
172
|
return this.executeStep("convertPdfToImages", step, options);
|
|
87
173
|
};
|
|
174
|
+
proto.createDataSource = function(step, options) {
|
|
175
|
+
return this.executeStep("createDataSource", step, options);
|
|
176
|
+
};
|
|
88
177
|
proto.createGoogleCalendarEvent = function(step, options) {
|
|
89
178
|
return this.executeStep("createGoogleCalendarEvent", step, options);
|
|
90
179
|
};
|
|
@@ -94,6 +183,12 @@ function applyStepMethods(AgentClass) {
|
|
|
94
183
|
proto.createGoogleSheet = function(step, options) {
|
|
95
184
|
return this.executeStep("createGoogleSheet", step, options);
|
|
96
185
|
};
|
|
186
|
+
proto.deleteDataSource = function(step, options) {
|
|
187
|
+
return this.executeStep("deleteDataSource", step, options);
|
|
188
|
+
};
|
|
189
|
+
proto.deleteDataSourceDocument = function(step, options) {
|
|
190
|
+
return this.executeStep("deleteDataSourceDocument", step, options);
|
|
191
|
+
};
|
|
97
192
|
proto.deleteGoogleCalendarEvent = function(step, options) {
|
|
98
193
|
return this.executeStep("deleteGoogleCalendarEvent", step, options);
|
|
99
194
|
};
|
|
@@ -118,6 +213,9 @@ function applyStepMethods(AgentClass) {
|
|
|
118
213
|
proto.extractText = function(step, options) {
|
|
119
214
|
return this.executeStep("extractText", step, options);
|
|
120
215
|
};
|
|
216
|
+
proto.fetchDataSourceDocument = function(step, options) {
|
|
217
|
+
return this.executeStep("fetchDataSourceDocument", step, options);
|
|
218
|
+
};
|
|
121
219
|
proto.fetchGoogleDoc = function(step, options) {
|
|
122
220
|
return this.executeStep("fetchGoogleDoc", step, options);
|
|
123
221
|
};
|
|
@@ -205,6 +303,9 @@ function applyStepMethods(AgentClass) {
|
|
|
205
303
|
proto.insertVideoClips = function(step, options) {
|
|
206
304
|
return this.executeStep("insertVideoClips", step, options);
|
|
207
305
|
};
|
|
306
|
+
proto.listDataSources = function(step, options) {
|
|
307
|
+
return this.executeStep("listDataSources", step, options);
|
|
308
|
+
};
|
|
208
309
|
proto.listGoogleCalendarEvents = function(step, options) {
|
|
209
310
|
return this.executeStep("listGoogleCalendarEvents", step, options);
|
|
210
311
|
};
|
|
@@ -379,6 +480,9 @@ function applyStepMethods(AgentClass) {
|
|
|
379
480
|
proto.updateGoogleSheet = function(step, options) {
|
|
380
481
|
return this.executeStep("updateGoogleSheet", step, options);
|
|
381
482
|
};
|
|
483
|
+
proto.uploadDataSourceDocument = function(step, options) {
|
|
484
|
+
return this.executeStep("uploadDataSourceDocument", step, options);
|
|
485
|
+
};
|
|
382
486
|
proto.upscaleImage = function(step, options) {
|
|
383
487
|
return this.executeStep("upscaleImage", step, options);
|
|
384
488
|
};
|
|
@@ -424,13 +528,19 @@ function applyHelperMethods(AgentClass) {
|
|
|
424
528
|
|
|
425
529
|
// src/client.ts
|
|
426
530
|
var DEFAULT_BASE_URL = "https://v1.mindstudio-api.com";
|
|
531
|
+
var DEFAULT_MAX_RETRIES = 3;
|
|
427
532
|
var MindStudioAgent = class {
|
|
428
533
|
/** @internal */
|
|
429
534
|
_httpConfig;
|
|
430
535
|
constructor(options = {}) {
|
|
431
|
-
const token = resolveToken(options.apiKey);
|
|
536
|
+
const { token, authType } = resolveToken(options.apiKey);
|
|
432
537
|
const baseUrl = options.baseUrl ?? process.env.MINDSTUDIO_BASE_URL ?? process.env.REMOTE_HOSTNAME ?? DEFAULT_BASE_URL;
|
|
433
|
-
this._httpConfig = {
|
|
538
|
+
this._httpConfig = {
|
|
539
|
+
baseUrl,
|
|
540
|
+
token,
|
|
541
|
+
rateLimiter: new RateLimiter(authType),
|
|
542
|
+
maxRetries: options.maxRetries ?? DEFAULT_MAX_RETRIES
|
|
543
|
+
};
|
|
434
544
|
}
|
|
435
545
|
/**
|
|
436
546
|
* Execute any step by its type name. This is the low-level method that all
|
|
@@ -464,10 +574,12 @@ var MindStudioAgent = class {
|
|
|
464
574
|
} else {
|
|
465
575
|
output = void 0;
|
|
466
576
|
}
|
|
577
|
+
const remaining = headers.get("x-ratelimit-remaining");
|
|
467
578
|
return {
|
|
468
579
|
...output,
|
|
469
580
|
$appId: headers.get("x-mindstudio-app-id") ?? "",
|
|
470
|
-
$threadId: headers.get("x-mindstudio-thread-id") ?? ""
|
|
581
|
+
$threadId: headers.get("x-mindstudio-thread-id") ?? "",
|
|
582
|
+
$rateLimitRemaining: remaining != null ? parseInt(remaining, 10) : void 0
|
|
471
583
|
};
|
|
472
584
|
}
|
|
473
585
|
/** @internal Used by generated helper methods. */
|
|
@@ -478,9 +590,11 @@ var MindStudioAgent = class {
|
|
|
478
590
|
applyStepMethods(MindStudioAgent);
|
|
479
591
|
applyHelperMethods(MindStudioAgent);
|
|
480
592
|
function resolveToken(provided) {
|
|
481
|
-
if (provided) return provided;
|
|
482
|
-
if (process.env.MINDSTUDIO_API_KEY)
|
|
483
|
-
|
|
593
|
+
if (provided) return { token: provided, authType: "apiKey" };
|
|
594
|
+
if (process.env.MINDSTUDIO_API_KEY)
|
|
595
|
+
return { token: process.env.MINDSTUDIO_API_KEY, authType: "apiKey" };
|
|
596
|
+
if (process.env.CALLBACK_TOKEN)
|
|
597
|
+
return { token: process.env.CALLBACK_TOKEN, authType: "internal" };
|
|
484
598
|
throw new MindStudioError(
|
|
485
599
|
"No API key provided. Pass `apiKey` to the MindStudioAgent constructor, or set the MINDSTUDIO_API_KEY environment variable.",
|
|
486
600
|
"missing_api_key",
|
|
@@ -492,146 +606,137 @@ function resolveToken(provided) {
|
|
|
492
606
|
var stepSnippets = {
|
|
493
607
|
"activeCampaignAddNote": {
|
|
494
608
|
method: "activeCampaignAddNote",
|
|
495
|
-
snippet: "{\n contactId:
|
|
609
|
+
snippet: "{\n contactId: ``,\n note: ``,\n connectionId: ``,\n}",
|
|
496
610
|
outputKeys: []
|
|
497
611
|
},
|
|
498
612
|
"activeCampaignCreateContact": {
|
|
499
613
|
method: "activeCampaignCreateContact",
|
|
500
|
-
snippet: "{\n email:
|
|
614
|
+
snippet: "{\n email: ``,\n firstName: ``,\n lastName: ``,\n phone: ``,\n accountId: ``,\n customFields: {},\n connectionId: ``,\n}",
|
|
501
615
|
outputKeys: ["contactId"]
|
|
502
616
|
},
|
|
503
617
|
"addSubtitlesToVideo": {
|
|
504
618
|
method: "addSubtitlesToVideo",
|
|
505
|
-
snippet:
|
|
506
|
-
videoUrl: '',
|
|
507
|
-
language: '',
|
|
508
|
-
fontName: '',
|
|
509
|
-
fontSize: 0,
|
|
510
|
-
fontWeight: "normal",
|
|
511
|
-
fontColor: "white",
|
|
512
|
-
highlightColor: "white",
|
|
513
|
-
strokeWidth: 0,
|
|
514
|
-
strokeColor: "black",
|
|
515
|
-
backgroundColor: "black",
|
|
516
|
-
backgroundOpacity: 0,
|
|
517
|
-
position: "top",
|
|
518
|
-
yOffset: 0,
|
|
519
|
-
wordsPerSubtitle: 0,
|
|
520
|
-
enableAnimation: false,
|
|
521
|
-
}`,
|
|
619
|
+
snippet: '{\n videoUrl: ``,\n language: ``,\n fontName: ``,\n fontSize: 0,\n fontWeight: "normal",\n fontColor: "white",\n highlightColor: "white",\n strokeWidth: 0,\n strokeColor: "black",\n backgroundColor: "black",\n backgroundOpacity: 0,\n position: "top",\n yOffset: 0,\n wordsPerSubtitle: 0,\n enableAnimation: false,\n}',
|
|
522
620
|
outputKeys: ["videoUrl"]
|
|
523
621
|
},
|
|
524
622
|
"airtableCreateUpdateRecord": {
|
|
525
623
|
method: "airtableCreateUpdateRecord",
|
|
526
|
-
snippet: "{\n connectionId:
|
|
624
|
+
snippet: "{\n connectionId: ``,\n baseId: ``,\n tableId: ``,\n fields: ``,\n recordData: {},\n}",
|
|
527
625
|
outputKeys: ["recordId"]
|
|
528
626
|
},
|
|
529
627
|
"airtableDeleteRecord": {
|
|
530
628
|
method: "airtableDeleteRecord",
|
|
531
|
-
snippet: "{\n connectionId:
|
|
629
|
+
snippet: "{\n connectionId: ``,\n baseId: ``,\n tableId: ``,\n recordId: ``,\n}",
|
|
532
630
|
outputKeys: ["deleted"]
|
|
533
631
|
},
|
|
534
632
|
"airtableGetRecord": {
|
|
535
633
|
method: "airtableGetRecord",
|
|
536
|
-
snippet: "{\n connectionId:
|
|
634
|
+
snippet: "{\n connectionId: ``,\n baseId: ``,\n tableId: ``,\n recordId: ``,\n}",
|
|
537
635
|
outputKeys: ["record"]
|
|
538
636
|
},
|
|
539
637
|
"airtableGetTableRecords": {
|
|
540
638
|
method: "airtableGetTableRecords",
|
|
541
|
-
snippet: "{\n connectionId:
|
|
639
|
+
snippet: "{\n connectionId: ``,\n baseId: ``,\n tableId: ``,\n}",
|
|
542
640
|
outputKeys: ["records"]
|
|
543
641
|
},
|
|
544
642
|
"analyzeImage": {
|
|
545
643
|
method: "analyzeImage",
|
|
546
|
-
snippet: "{\n prompt:
|
|
644
|
+
snippet: "{\n prompt: ``,\n imageUrl: ``,\n}",
|
|
547
645
|
outputKeys: ["analysis"]
|
|
548
646
|
},
|
|
549
647
|
"analyzeVideo": {
|
|
550
648
|
method: "analyzeVideo",
|
|
551
|
-
snippet: "{\n prompt:
|
|
649
|
+
snippet: "{\n prompt: ``,\n videoUrl: ``,\n}",
|
|
552
650
|
outputKeys: ["analysis"]
|
|
553
651
|
},
|
|
554
652
|
"captureThumbnail": {
|
|
555
653
|
method: "captureThumbnail",
|
|
556
|
-
snippet: "{\n videoUrl:
|
|
654
|
+
snippet: "{\n videoUrl: ``,\n at: ``,\n}",
|
|
557
655
|
outputKeys: ["thumbnailUrl"]
|
|
558
656
|
},
|
|
559
657
|
"codaCreateUpdatePage": {
|
|
560
658
|
method: "codaCreateUpdatePage",
|
|
561
|
-
snippet: "{\n connectionId:
|
|
659
|
+
snippet: "{\n connectionId: ``,\n pageData: {},\n}",
|
|
562
660
|
outputKeys: ["pageId"]
|
|
563
661
|
},
|
|
564
662
|
"codaCreateUpdateRow": {
|
|
565
663
|
method: "codaCreateUpdateRow",
|
|
566
|
-
snippet: "{\n connectionId:
|
|
664
|
+
snippet: "{\n connectionId: ``,\n docId: ``,\n tableId: ``,\n rowData: {},\n}",
|
|
567
665
|
outputKeys: ["rowId"]
|
|
568
666
|
},
|
|
569
667
|
"codaFindRow": {
|
|
570
668
|
method: "codaFindRow",
|
|
571
|
-
snippet: "{\n connectionId:
|
|
669
|
+
snippet: "{\n connectionId: ``,\n docId: ``,\n tableId: ``,\n rowData: {},\n}",
|
|
572
670
|
outputKeys: ["row"]
|
|
573
671
|
},
|
|
574
672
|
"codaGetPage": {
|
|
575
673
|
method: "codaGetPage",
|
|
576
|
-
snippet: "{\n connectionId:
|
|
674
|
+
snippet: "{\n connectionId: ``,\n docId: ``,\n pageId: ``,\n}",
|
|
577
675
|
outputKeys: ["content"]
|
|
578
676
|
},
|
|
579
677
|
"codaGetTableRows": {
|
|
580
678
|
method: "codaGetTableRows",
|
|
581
|
-
snippet: "{\n connectionId:
|
|
679
|
+
snippet: "{\n connectionId: ``,\n docId: ``,\n tableId: ``,\n}",
|
|
582
680
|
outputKeys: ["rows"]
|
|
583
681
|
},
|
|
584
682
|
"convertPdfToImages": {
|
|
585
683
|
method: "convertPdfToImages",
|
|
586
|
-
snippet: "{\n pdfUrl:
|
|
684
|
+
snippet: "{\n pdfUrl: ``,\n}",
|
|
587
685
|
outputKeys: ["imageUrls"]
|
|
588
686
|
},
|
|
687
|
+
"createDataSource": {
|
|
688
|
+
method: "createDataSource",
|
|
689
|
+
snippet: "{\n name: ``,\n}",
|
|
690
|
+
outputKeys: []
|
|
691
|
+
},
|
|
589
692
|
"createGoogleCalendarEvent": {
|
|
590
693
|
method: "createGoogleCalendarEvent",
|
|
591
|
-
snippet: "{\n connectionId:
|
|
694
|
+
snippet: "{\n connectionId: ``,\n summary: ``,\n startDateTime: ``,\n endDateTime: ``,\n}",
|
|
592
695
|
outputKeys: ["eventId", "htmlLink"]
|
|
593
696
|
},
|
|
594
697
|
"createGoogleDoc": {
|
|
595
698
|
method: "createGoogleDoc",
|
|
596
|
-
snippet:
|
|
597
|
-
title: '',
|
|
598
|
-
text: '',
|
|
599
|
-
connectionId: '',
|
|
600
|
-
textType: "plain",
|
|
601
|
-
}`,
|
|
699
|
+
snippet: '{\n title: ``,\n text: ``,\n connectionId: ``,\n textType: "plain",\n}',
|
|
602
700
|
outputKeys: ["documentUrl"]
|
|
603
701
|
},
|
|
604
702
|
"createGoogleSheet": {
|
|
605
703
|
method: "createGoogleSheet",
|
|
606
|
-
snippet: "{\n title:
|
|
704
|
+
snippet: "{\n title: ``,\n text: ``,\n connectionId: ``,\n}",
|
|
607
705
|
outputKeys: ["spreadsheetUrl"]
|
|
608
706
|
},
|
|
707
|
+
"deleteDataSource": {
|
|
708
|
+
method: "deleteDataSource",
|
|
709
|
+
snippet: "{\n dataSourceId: ``,\n}",
|
|
710
|
+
outputKeys: []
|
|
711
|
+
},
|
|
712
|
+
"deleteDataSourceDocument": {
|
|
713
|
+
method: "deleteDataSourceDocument",
|
|
714
|
+
snippet: "{\n dataSourceId: ``,\n documentId: ``,\n}",
|
|
715
|
+
outputKeys: []
|
|
716
|
+
},
|
|
609
717
|
"deleteGoogleCalendarEvent": {
|
|
610
718
|
method: "deleteGoogleCalendarEvent",
|
|
611
|
-
snippet: "{\n connectionId:
|
|
719
|
+
snippet: "{\n connectionId: ``,\n eventId: ``,\n}",
|
|
612
720
|
outputKeys: []
|
|
613
721
|
},
|
|
614
722
|
"detectPII": {
|
|
615
723
|
method: "detectPII",
|
|
616
|
-
snippet: "{\n input:
|
|
724
|
+
snippet: "{\n input: ``,\n language: ``,\n entities: [],\n}",
|
|
617
725
|
outputKeys: ["detected", "detections"]
|
|
618
726
|
},
|
|
619
727
|
"downloadVideo": {
|
|
620
728
|
method: "downloadVideo",
|
|
621
|
-
snippet:
|
|
622
|
-
videoUrl: '',
|
|
623
|
-
format: "mp4",
|
|
624
|
-
}`,
|
|
729
|
+
snippet: '{\n videoUrl: ``,\n format: "mp4",\n}',
|
|
625
730
|
outputKeys: ["videoUrl"]
|
|
626
731
|
},
|
|
627
732
|
"enhanceImageGenerationPrompt": {
|
|
628
733
|
method: "enhanceImageGenerationPrompt",
|
|
629
|
-
snippet: "{\n initialPrompt:
|
|
734
|
+
snippet: "{\n initialPrompt: ``,\n includeNegativePrompt: false,\n systemPrompt: ``,\n}",
|
|
630
735
|
outputKeys: ["prompt"]
|
|
631
736
|
},
|
|
632
737
|
"enhanceVideoGenerationPrompt": {
|
|
633
738
|
method: "enhanceVideoGenerationPrompt",
|
|
634
|
-
snippet: "{\n initialPrompt:
|
|
739
|
+
snippet: "{\n initialPrompt: ``,\n includeNegativePrompt: false,\n systemPrompt: ``,\n}",
|
|
635
740
|
outputKeys: ["prompt"]
|
|
636
741
|
},
|
|
637
742
|
"enrichPerson": {
|
|
@@ -641,75 +746,57 @@ var stepSnippets = {
|
|
|
641
746
|
},
|
|
642
747
|
"extractAudioFromVideo": {
|
|
643
748
|
method: "extractAudioFromVideo",
|
|
644
|
-
snippet: "{\n videoUrl:
|
|
749
|
+
snippet: "{\n videoUrl: ``,\n}",
|
|
645
750
|
outputKeys: ["audioUrl"]
|
|
646
751
|
},
|
|
647
752
|
"extractText": {
|
|
648
753
|
method: "extractText",
|
|
649
|
-
snippet: "{\n url:
|
|
754
|
+
snippet: "{\n url: ``,\n}",
|
|
650
755
|
outputKeys: ["text"]
|
|
651
756
|
},
|
|
757
|
+
"fetchDataSourceDocument": {
|
|
758
|
+
method: "fetchDataSourceDocument",
|
|
759
|
+
snippet: "{\n dataSourceId: ``,\n documentId: ``,\n}",
|
|
760
|
+
outputKeys: []
|
|
761
|
+
},
|
|
652
762
|
"fetchGoogleDoc": {
|
|
653
763
|
method: "fetchGoogleDoc",
|
|
654
|
-
snippet:
|
|
655
|
-
documentId: '',
|
|
656
|
-
connectionId: '',
|
|
657
|
-
exportType: "html",
|
|
658
|
-
}`,
|
|
764
|
+
snippet: '{\n documentId: ``,\n connectionId: ``,\n exportType: "html",\n}',
|
|
659
765
|
outputKeys: ["content"]
|
|
660
766
|
},
|
|
661
767
|
"fetchGoogleSheet": {
|
|
662
768
|
method: "fetchGoogleSheet",
|
|
663
|
-
snippet:
|
|
664
|
-
spreadsheetId: '',
|
|
665
|
-
range: '',
|
|
666
|
-
connectionId: '',
|
|
667
|
-
exportType: "csv",
|
|
668
|
-
}`,
|
|
769
|
+
snippet: '{\n spreadsheetId: ``,\n range: ``,\n connectionId: ``,\n exportType: "csv",\n}',
|
|
669
770
|
outputKeys: ["content"]
|
|
670
771
|
},
|
|
671
772
|
"fetchSlackChannelHistory": {
|
|
672
773
|
method: "fetchSlackChannelHistory",
|
|
673
|
-
snippet: "{\n connectionId:
|
|
774
|
+
snippet: "{\n connectionId: ``,\n channelId: ``,\n}",
|
|
674
775
|
outputKeys: ["messages"]
|
|
675
776
|
},
|
|
676
777
|
"fetchYoutubeCaptions": {
|
|
677
778
|
method: "fetchYoutubeCaptions",
|
|
678
|
-
snippet:
|
|
679
|
-
videoUrl: '',
|
|
680
|
-
exportType: "text",
|
|
681
|
-
language: '',
|
|
682
|
-
}`,
|
|
779
|
+
snippet: '{\n videoUrl: ``,\n exportType: "text",\n language: ``,\n}',
|
|
683
780
|
outputKeys: ["transcripts"]
|
|
684
781
|
},
|
|
685
782
|
"fetchYoutubeChannel": {
|
|
686
783
|
method: "fetchYoutubeChannel",
|
|
687
|
-
snippet: "{\n channelUrl:
|
|
784
|
+
snippet: "{\n channelUrl: ``,\n}",
|
|
688
785
|
outputKeys: ["channel"]
|
|
689
786
|
},
|
|
690
787
|
"fetchYoutubeComments": {
|
|
691
788
|
method: "fetchYoutubeComments",
|
|
692
|
-
snippet:
|
|
693
|
-
videoUrl: '',
|
|
694
|
-
exportType: "text",
|
|
695
|
-
limitPages: '',
|
|
696
|
-
}`,
|
|
789
|
+
snippet: '{\n videoUrl: ``,\n exportType: "text",\n limitPages: ``,\n}',
|
|
697
790
|
outputKeys: ["comments"]
|
|
698
791
|
},
|
|
699
792
|
"fetchYoutubeVideo": {
|
|
700
793
|
method: "fetchYoutubeVideo",
|
|
701
|
-
snippet: "{\n videoUrl:
|
|
794
|
+
snippet: "{\n videoUrl: ``,\n}",
|
|
702
795
|
outputKeys: ["video"]
|
|
703
796
|
},
|
|
704
797
|
"generateAsset": {
|
|
705
798
|
method: "generateAsset",
|
|
706
|
-
snippet:
|
|
707
|
-
source: '',
|
|
708
|
-
sourceType: "html",
|
|
709
|
-
outputFormat: "pdf",
|
|
710
|
-
pageSize: "full",
|
|
711
|
-
testData: {},
|
|
712
|
-
}`,
|
|
799
|
+
snippet: '{\n source: ``,\n sourceType: "html",\n outputFormat: "pdf",\n pageSize: "full",\n testData: {},\n}',
|
|
713
800
|
outputKeys: ["url"]
|
|
714
801
|
},
|
|
715
802
|
"generateChart": {
|
|
@@ -719,7 +806,7 @@ var stepSnippets = {
|
|
|
719
806
|
},
|
|
720
807
|
"generateImage": {
|
|
721
808
|
method: "generateImage",
|
|
722
|
-
snippet: "{\n prompt:
|
|
809
|
+
snippet: "{\n prompt: ``,\n}",
|
|
723
810
|
outputKeys: ["imageUrl"]
|
|
724
811
|
},
|
|
725
812
|
"generateLipsync": {
|
|
@@ -729,152 +816,122 @@ var stepSnippets = {
|
|
|
729
816
|
},
|
|
730
817
|
"generateMusic": {
|
|
731
818
|
method: "generateMusic",
|
|
732
|
-
snippet: "{\n text:
|
|
819
|
+
snippet: "{\n text: ``,\n}",
|
|
733
820
|
outputKeys: []
|
|
734
821
|
},
|
|
735
822
|
"generatePdf": {
|
|
736
823
|
method: "generateAsset",
|
|
737
|
-
snippet:
|
|
738
|
-
source: '',
|
|
739
|
-
sourceType: "html",
|
|
740
|
-
outputFormat: "pdf",
|
|
741
|
-
pageSize: "full",
|
|
742
|
-
testData: {},
|
|
743
|
-
}`,
|
|
824
|
+
snippet: '{\n source: ``,\n sourceType: "html",\n outputFormat: "pdf",\n pageSize: "full",\n testData: {},\n}',
|
|
744
825
|
outputKeys: ["url"]
|
|
745
826
|
},
|
|
746
827
|
"generateStaticVideoFromImage": {
|
|
747
828
|
method: "generateStaticVideoFromImage",
|
|
748
|
-
snippet: "{\n imageUrl:
|
|
829
|
+
snippet: "{\n imageUrl: ``,\n duration: ``,\n}",
|
|
749
830
|
outputKeys: ["videoUrl"]
|
|
750
831
|
},
|
|
751
832
|
"generateText": {
|
|
752
833
|
method: "generateText",
|
|
753
|
-
snippet: "{\n message:
|
|
834
|
+
snippet: "{\n message: ``,\n}",
|
|
754
835
|
outputKeys: ["content"]
|
|
755
836
|
},
|
|
756
837
|
"generateVideo": {
|
|
757
838
|
method: "generateVideo",
|
|
758
|
-
snippet: "{\n prompt:
|
|
839
|
+
snippet: "{\n prompt: ``,\n}",
|
|
759
840
|
outputKeys: ["videoUrl"]
|
|
760
841
|
},
|
|
761
842
|
"getGoogleCalendarEvent": {
|
|
762
843
|
method: "getGoogleCalendarEvent",
|
|
763
|
-
snippet:
|
|
764
|
-
connectionId: '',
|
|
765
|
-
eventId: '',
|
|
766
|
-
exportType: "json",
|
|
767
|
-
}`,
|
|
844
|
+
snippet: '{\n connectionId: ``,\n eventId: ``,\n exportType: "json",\n}',
|
|
768
845
|
outputKeys: ["event"]
|
|
769
846
|
},
|
|
770
847
|
"getMediaMetadata": {
|
|
771
848
|
method: "getMediaMetadata",
|
|
772
|
-
snippet: "{\n mediaUrl:
|
|
849
|
+
snippet: "{\n mediaUrl: ``,\n}",
|
|
773
850
|
outputKeys: ["metadata"]
|
|
774
851
|
},
|
|
775
852
|
"httpRequest": {
|
|
776
853
|
method: "httpRequest",
|
|
777
|
-
snippet:
|
|
778
|
-
url: '',
|
|
779
|
-
method: '',
|
|
780
|
-
headers: {},
|
|
781
|
-
queryParams: {},
|
|
782
|
-
body: '',
|
|
783
|
-
bodyItems: {},
|
|
784
|
-
contentType: "none",
|
|
785
|
-
customContentType: '',
|
|
786
|
-
}`,
|
|
854
|
+
snippet: '{\n url: ``,\n method: ``,\n headers: {},\n queryParams: {},\n body: ``,\n bodyItems: {},\n contentType: "none",\n customContentType: ``,\n}',
|
|
787
855
|
outputKeys: ["ok", "status", "statusText", "response"]
|
|
788
856
|
},
|
|
789
857
|
"hubspotCreateCompany": {
|
|
790
858
|
method: "hubspotCreateCompany",
|
|
791
|
-
snippet: "{\n connectionId:
|
|
859
|
+
snippet: "{\n connectionId: ``,\n company: {},\n enabledProperties: [],\n}",
|
|
792
860
|
outputKeys: ["companyId"]
|
|
793
861
|
},
|
|
794
862
|
"hubspotCreateContact": {
|
|
795
863
|
method: "hubspotCreateContact",
|
|
796
|
-
snippet: "{\n connectionId:
|
|
864
|
+
snippet: "{\n connectionId: ``,\n contact: {},\n enabledProperties: [],\n companyDomain: ``,\n}",
|
|
797
865
|
outputKeys: ["contactId"]
|
|
798
866
|
},
|
|
799
867
|
"hubspotGetCompany": {
|
|
800
868
|
method: "hubspotGetCompany",
|
|
801
|
-
snippet:
|
|
802
|
-
connectionId: '',
|
|
803
|
-
searchBy: "domain",
|
|
804
|
-
companyDomain: '',
|
|
805
|
-
companyId: '',
|
|
806
|
-
additionalProperties: [],
|
|
807
|
-
}`,
|
|
869
|
+
snippet: '{\n connectionId: ``,\n searchBy: "domain",\n companyDomain: ``,\n companyId: ``,\n additionalProperties: [],\n}',
|
|
808
870
|
outputKeys: ["company"]
|
|
809
871
|
},
|
|
810
872
|
"hubspotGetContact": {
|
|
811
873
|
method: "hubspotGetContact",
|
|
812
|
-
snippet:
|
|
813
|
-
connectionId: '',
|
|
814
|
-
searchBy: "email",
|
|
815
|
-
contactEmail: '',
|
|
816
|
-
contactId: '',
|
|
817
|
-
additionalProperties: [],
|
|
818
|
-
}`,
|
|
874
|
+
snippet: '{\n connectionId: ``,\n searchBy: "email",\n contactEmail: ``,\n contactId: ``,\n additionalProperties: [],\n}',
|
|
819
875
|
outputKeys: ["contact"]
|
|
820
876
|
},
|
|
821
877
|
"hunterApiCompanyEnrichment": {
|
|
822
878
|
method: "hunterApiCompanyEnrichment",
|
|
823
|
-
snippet: "{\n domain:
|
|
879
|
+
snippet: "{\n domain: ``,\n}",
|
|
824
880
|
outputKeys: ["data"]
|
|
825
881
|
},
|
|
826
882
|
"hunterApiDomainSearch": {
|
|
827
883
|
method: "hunterApiDomainSearch",
|
|
828
|
-
snippet: "{\n domain:
|
|
884
|
+
snippet: "{\n domain: ``,\n}",
|
|
829
885
|
outputKeys: ["data"]
|
|
830
886
|
},
|
|
831
887
|
"hunterApiEmailFinder": {
|
|
832
888
|
method: "hunterApiEmailFinder",
|
|
833
|
-
snippet: "{\n domain:
|
|
889
|
+
snippet: "{\n domain: ``,\n firstName: ``,\n lastName: ``,\n}",
|
|
834
890
|
outputKeys: ["data"]
|
|
835
891
|
},
|
|
836
892
|
"hunterApiEmailVerification": {
|
|
837
893
|
method: "hunterApiEmailVerification",
|
|
838
|
-
snippet: "{\n email:
|
|
894
|
+
snippet: "{\n email: ``,\n}",
|
|
839
895
|
outputKeys: ["data"]
|
|
840
896
|
},
|
|
841
897
|
"hunterApiPersonEnrichment": {
|
|
842
898
|
method: "hunterApiPersonEnrichment",
|
|
843
|
-
snippet: "{\n email:
|
|
899
|
+
snippet: "{\n email: ``,\n}",
|
|
844
900
|
outputKeys: ["data"]
|
|
845
901
|
},
|
|
846
902
|
"imageFaceSwap": {
|
|
847
903
|
method: "imageFaceSwap",
|
|
848
|
-
snippet: "{\n imageUrl:
|
|
904
|
+
snippet: "{\n imageUrl: ``,\n faceImageUrl: ``,\n engine: ``,\n}",
|
|
849
905
|
outputKeys: ["imageUrl"]
|
|
850
906
|
},
|
|
851
907
|
"imageRemoveWatermark": {
|
|
852
908
|
method: "imageRemoveWatermark",
|
|
853
|
-
snippet: "{\n imageUrl:
|
|
909
|
+
snippet: "{\n imageUrl: ``,\n engine: ``,\n}",
|
|
854
910
|
outputKeys: ["imageUrl"]
|
|
855
911
|
},
|
|
856
912
|
"insertVideoClips": {
|
|
857
913
|
method: "insertVideoClips",
|
|
858
|
-
snippet: "{\n baseVideoUrl:
|
|
914
|
+
snippet: "{\n baseVideoUrl: ``,\n overlayVideos: [],\n}",
|
|
859
915
|
outputKeys: ["videoUrl"]
|
|
860
916
|
},
|
|
917
|
+
"listDataSources": {
|
|
918
|
+
method: "listDataSources",
|
|
919
|
+
snippet: "{}",
|
|
920
|
+
outputKeys: []
|
|
921
|
+
},
|
|
861
922
|
"listGoogleCalendarEvents": {
|
|
862
923
|
method: "listGoogleCalendarEvents",
|
|
863
|
-
snippet:
|
|
864
|
-
connectionId: '',
|
|
865
|
-
limit: 0,
|
|
866
|
-
exportType: "json",
|
|
867
|
-
}`,
|
|
924
|
+
snippet: '{\n connectionId: ``,\n limit: 0,\n exportType: "json",\n}',
|
|
868
925
|
outputKeys: ["events"]
|
|
869
926
|
},
|
|
870
927
|
"logic": {
|
|
871
928
|
method: "logic",
|
|
872
|
-
snippet: "{\n context:
|
|
929
|
+
snippet: "{\n context: ``,\n cases: [],\n}",
|
|
873
930
|
outputKeys: ["selectedCase"]
|
|
874
931
|
},
|
|
875
932
|
"makeDotComRunScenario": {
|
|
876
933
|
method: "makeDotComRunScenario",
|
|
877
|
-
snippet: "{\n webhookUrl:
|
|
934
|
+
snippet: "{\n webhookUrl: ``,\n input: {},\n}",
|
|
878
935
|
outputKeys: ["data"]
|
|
879
936
|
},
|
|
880
937
|
"mergeAudio": {
|
|
@@ -889,407 +946,312 @@ var stepSnippets = {
|
|
|
889
946
|
},
|
|
890
947
|
"mixAudioIntoVideo": {
|
|
891
948
|
method: "mixAudioIntoVideo",
|
|
892
|
-
snippet: "{\n videoUrl:
|
|
949
|
+
snippet: "{\n videoUrl: ``,\n audioUrl: ``,\n options: {},\n}",
|
|
893
950
|
outputKeys: ["videoUrl"]
|
|
894
951
|
},
|
|
895
952
|
"muteVideo": {
|
|
896
953
|
method: "muteVideo",
|
|
897
|
-
snippet: "{\n videoUrl:
|
|
954
|
+
snippet: "{\n videoUrl: ``,\n}",
|
|
898
955
|
outputKeys: ["videoUrl"]
|
|
899
956
|
},
|
|
900
957
|
"n8nRunNode": {
|
|
901
958
|
method: "n8nRunNode",
|
|
902
|
-
snippet:
|
|
903
|
-
method: '',
|
|
904
|
-
authentication: "none",
|
|
905
|
-
user: '',
|
|
906
|
-
password: '',
|
|
907
|
-
webhookUrl: '',
|
|
908
|
-
input: {},
|
|
909
|
-
}`,
|
|
959
|
+
snippet: '{\n method: ``,\n authentication: "none",\n user: ``,\n password: ``,\n webhookUrl: ``,\n input: {},\n}',
|
|
910
960
|
outputKeys: ["data"]
|
|
911
961
|
},
|
|
912
962
|
"notionCreatePage": {
|
|
913
963
|
method: "notionCreatePage",
|
|
914
|
-
snippet: "{\n pageId:
|
|
964
|
+
snippet: "{\n pageId: ``,\n content: ``,\n title: ``,\n connectionId: ``,\n}",
|
|
915
965
|
outputKeys: ["pageId", "pageUrl"]
|
|
916
966
|
},
|
|
917
967
|
"notionUpdatePage": {
|
|
918
968
|
method: "notionUpdatePage",
|
|
919
|
-
snippet:
|
|
920
|
-
pageId: '',
|
|
921
|
-
content: '',
|
|
922
|
-
mode: "append",
|
|
923
|
-
connectionId: '',
|
|
924
|
-
}`,
|
|
969
|
+
snippet: '{\n pageId: ``,\n content: ``,\n mode: "append",\n connectionId: ``,\n}',
|
|
925
970
|
outputKeys: ["pageId", "pageUrl"]
|
|
926
971
|
},
|
|
927
972
|
"peopleSearch": {
|
|
928
973
|
method: "peopleSearch",
|
|
929
|
-
snippet: "{\n smartQuery:
|
|
974
|
+
snippet: "{\n smartQuery: ``,\n enrichPeople: false,\n enrichOrganizations: false,\n limit: ``,\n page: ``,\n params: {},\n}",
|
|
930
975
|
outputKeys: ["results"]
|
|
931
976
|
},
|
|
932
977
|
"postToLinkedIn": {
|
|
933
978
|
method: "postToLinkedIn",
|
|
934
|
-
snippet:
|
|
935
|
-
message: '',
|
|
936
|
-
visibility: "PUBLIC",
|
|
937
|
-
connectionId: '',
|
|
938
|
-
}`,
|
|
979
|
+
snippet: '{\n message: ``,\n visibility: "PUBLIC",\n connectionId: ``,\n}',
|
|
939
980
|
outputKeys: []
|
|
940
981
|
},
|
|
941
982
|
"postToSlackChannel": {
|
|
942
983
|
method: "postToSlackChannel",
|
|
943
|
-
snippet:
|
|
944
|
-
channelId: '',
|
|
945
|
-
messageType: "string",
|
|
946
|
-
message: '',
|
|
947
|
-
connectionId: '',
|
|
948
|
-
}`,
|
|
984
|
+
snippet: '{\n channelId: ``,\n messageType: "string",\n message: ``,\n connectionId: ``,\n}',
|
|
949
985
|
outputKeys: []
|
|
950
986
|
},
|
|
951
987
|
"postToX": {
|
|
952
988
|
method: "postToX",
|
|
953
|
-
snippet: "{\n text:
|
|
989
|
+
snippet: "{\n text: ``,\n connectionId: ``,\n}",
|
|
954
990
|
outputKeys: []
|
|
955
991
|
},
|
|
956
992
|
"postToZapier": {
|
|
957
993
|
method: "postToZapier",
|
|
958
|
-
snippet: "{\n webhookUrl:
|
|
994
|
+
snippet: "{\n webhookUrl: ``,\n input: {},\n}",
|
|
959
995
|
outputKeys: ["data"]
|
|
960
996
|
},
|
|
961
997
|
"queryDataSource": {
|
|
962
998
|
method: "queryDataSource",
|
|
963
|
-
snippet: "{\n dataSourceId:
|
|
999
|
+
snippet: "{\n dataSourceId: ``,\n query: ``,\n maxResults: 0,\n}",
|
|
964
1000
|
outputKeys: ["text", "chunks", "query", "citations", "latencyMs"]
|
|
965
1001
|
},
|
|
966
1002
|
"queryExternalDatabase": {
|
|
967
1003
|
method: "queryExternalDatabase",
|
|
968
|
-
snippet:
|
|
969
|
-
connectionId: '',
|
|
970
|
-
query: '',
|
|
971
|
-
outputFormat: "json",
|
|
972
|
-
}`,
|
|
1004
|
+
snippet: '{\n connectionId: ``,\n query: ``,\n outputFormat: "json",\n}',
|
|
973
1005
|
outputKeys: ["data"]
|
|
974
1006
|
},
|
|
975
1007
|
"redactPII": {
|
|
976
1008
|
method: "redactPII",
|
|
977
|
-
snippet: "{\n input:
|
|
1009
|
+
snippet: "{\n input: ``,\n language: ``,\n entities: [],\n}",
|
|
978
1010
|
outputKeys: ["text"]
|
|
979
1011
|
},
|
|
980
1012
|
"removeBackgroundFromImage": {
|
|
981
1013
|
method: "removeBackgroundFromImage",
|
|
982
|
-
snippet: "{\n imageUrl:
|
|
1014
|
+
snippet: "{\n imageUrl: ``,\n}",
|
|
983
1015
|
outputKeys: ["imageUrl"]
|
|
984
1016
|
},
|
|
985
1017
|
"resizeVideo": {
|
|
986
1018
|
method: "resizeVideo",
|
|
987
|
-
snippet:
|
|
988
|
-
videoUrl: '',
|
|
989
|
-
mode: "fit",
|
|
990
|
-
}`,
|
|
1019
|
+
snippet: '{\n videoUrl: ``,\n mode: "fit",\n}',
|
|
991
1020
|
outputKeys: ["videoUrl"]
|
|
992
1021
|
},
|
|
993
1022
|
"runPackagedWorkflow": {
|
|
994
1023
|
method: "runPackagedWorkflow",
|
|
995
|
-
snippet: "{\n appId:
|
|
1024
|
+
snippet: "{\n appId: ``,\n workflowId: ``,\n inputVariables: {},\n outputVariables: {},\n name: ``,\n}",
|
|
996
1025
|
outputKeys: ["data"]
|
|
997
1026
|
},
|
|
998
1027
|
"scrapeFacebookPage": {
|
|
999
1028
|
method: "scrapeFacebookPage",
|
|
1000
|
-
snippet: "{\n pageUrl:
|
|
1029
|
+
snippet: "{\n pageUrl: ``,\n}",
|
|
1001
1030
|
outputKeys: ["data"]
|
|
1002
1031
|
},
|
|
1003
1032
|
"scrapeFacebookPosts": {
|
|
1004
1033
|
method: "scrapeFacebookPosts",
|
|
1005
|
-
snippet: "{\n pageUrl:
|
|
1034
|
+
snippet: "{\n pageUrl: ``,\n}",
|
|
1006
1035
|
outputKeys: ["data"]
|
|
1007
1036
|
},
|
|
1008
1037
|
"scrapeInstagramComments": {
|
|
1009
1038
|
method: "scrapeInstagramComments",
|
|
1010
|
-
snippet: "{\n postUrl:
|
|
1039
|
+
snippet: "{\n postUrl: ``,\n resultsLimit: ``,\n}",
|
|
1011
1040
|
outputKeys: ["data"]
|
|
1012
1041
|
},
|
|
1013
1042
|
"scrapeInstagramMentions": {
|
|
1014
1043
|
method: "scrapeInstagramMentions",
|
|
1015
|
-
snippet: "{\n profileUrl:
|
|
1044
|
+
snippet: "{\n profileUrl: ``,\n resultsLimit: ``,\n}",
|
|
1016
1045
|
outputKeys: ["data"]
|
|
1017
1046
|
},
|
|
1018
1047
|
"scrapeInstagramPosts": {
|
|
1019
1048
|
method: "scrapeInstagramPosts",
|
|
1020
|
-
snippet: "{\n profileUrl:
|
|
1049
|
+
snippet: "{\n profileUrl: ``,\n resultsLimit: ``,\n onlyPostsNewerThan: ``,\n}",
|
|
1021
1050
|
outputKeys: ["data"]
|
|
1022
1051
|
},
|
|
1023
1052
|
"scrapeInstagramProfile": {
|
|
1024
1053
|
method: "scrapeInstagramProfile",
|
|
1025
|
-
snippet: "{\n profileUrl:
|
|
1054
|
+
snippet: "{\n profileUrl: ``,\n}",
|
|
1026
1055
|
outputKeys: ["data"]
|
|
1027
1056
|
},
|
|
1028
1057
|
"scrapeInstagramReels": {
|
|
1029
1058
|
method: "scrapeInstagramReels",
|
|
1030
|
-
snippet: "{\n profileUrl:
|
|
1059
|
+
snippet: "{\n profileUrl: ``,\n resultsLimit: ``,\n}",
|
|
1031
1060
|
outputKeys: ["data"]
|
|
1032
1061
|
},
|
|
1033
1062
|
"scrapeLinkedInCompany": {
|
|
1034
1063
|
method: "scrapeLinkedInCompany",
|
|
1035
|
-
snippet: "{\n url:
|
|
1064
|
+
snippet: "{\n url: ``,\n}",
|
|
1036
1065
|
outputKeys: ["company"]
|
|
1037
1066
|
},
|
|
1038
1067
|
"scrapeLinkedInProfile": {
|
|
1039
1068
|
method: "scrapeLinkedInProfile",
|
|
1040
|
-
snippet: "{\n url:
|
|
1069
|
+
snippet: "{\n url: ``,\n}",
|
|
1041
1070
|
outputKeys: ["profile"]
|
|
1042
1071
|
},
|
|
1043
1072
|
"scrapeMetaThreadsProfile": {
|
|
1044
1073
|
method: "scrapeMetaThreadsProfile",
|
|
1045
|
-
snippet: "{\n profileUrl:
|
|
1074
|
+
snippet: "{\n profileUrl: ``,\n}",
|
|
1046
1075
|
outputKeys: ["data"]
|
|
1047
1076
|
},
|
|
1048
1077
|
"scrapeUrl": {
|
|
1049
1078
|
method: "scrapeUrl",
|
|
1050
|
-
snippet: "{\n url:
|
|
1079
|
+
snippet: "{\n url: ``,\n}",
|
|
1051
1080
|
outputKeys: ["content"]
|
|
1052
1081
|
},
|
|
1053
1082
|
"scrapeXPost": {
|
|
1054
1083
|
method: "scrapeXPost",
|
|
1055
|
-
snippet: "{\n url:
|
|
1084
|
+
snippet: "{\n url: ``,\n}",
|
|
1056
1085
|
outputKeys: ["post"]
|
|
1057
1086
|
},
|
|
1058
1087
|
"scrapeXProfile": {
|
|
1059
1088
|
method: "scrapeXProfile",
|
|
1060
|
-
snippet: "{\n url:
|
|
1089
|
+
snippet: "{\n url: ``,\n}",
|
|
1061
1090
|
outputKeys: ["profile"]
|
|
1062
1091
|
},
|
|
1063
1092
|
"searchGoogle": {
|
|
1064
1093
|
method: "searchGoogle",
|
|
1065
|
-
snippet:
|
|
1066
|
-
query: '',
|
|
1067
|
-
exportType: "text",
|
|
1068
|
-
}`,
|
|
1094
|
+
snippet: '{\n query: ``,\n exportType: "text",\n}',
|
|
1069
1095
|
outputKeys: ["results"]
|
|
1070
1096
|
},
|
|
1071
1097
|
"searchGoogleImages": {
|
|
1072
1098
|
method: "searchGoogleImages",
|
|
1073
|
-
snippet:
|
|
1074
|
-
query: '',
|
|
1075
|
-
exportType: "text",
|
|
1076
|
-
}`,
|
|
1099
|
+
snippet: '{\n query: ``,\n exportType: "text",\n}',
|
|
1077
1100
|
outputKeys: ["images"]
|
|
1078
1101
|
},
|
|
1079
1102
|
"searchGoogleNews": {
|
|
1080
1103
|
method: "searchGoogleNews",
|
|
1081
|
-
snippet:
|
|
1082
|
-
text: '',
|
|
1083
|
-
exportType: "text",
|
|
1084
|
-
}`,
|
|
1104
|
+
snippet: '{\n text: ``,\n exportType: "text",\n}',
|
|
1085
1105
|
outputKeys: ["articles"]
|
|
1086
1106
|
},
|
|
1087
1107
|
"searchGoogleTrends": {
|
|
1088
1108
|
method: "searchGoogleTrends",
|
|
1089
|
-
snippet:
|
|
1090
|
-
text: '',
|
|
1091
|
-
hl: '',
|
|
1092
|
-
geo: '',
|
|
1093
|
-
data_type: "TIMESERIES",
|
|
1094
|
-
cat: '',
|
|
1095
|
-
date: '',
|
|
1096
|
-
ts: '',
|
|
1097
|
-
}`,
|
|
1109
|
+
snippet: '{\n text: ``,\n hl: ``,\n geo: ``,\n data_type: "TIMESERIES",\n cat: ``,\n date: ``,\n ts: ``,\n}',
|
|
1098
1110
|
outputKeys: ["trends"]
|
|
1099
1111
|
},
|
|
1100
1112
|
"searchPerplexity": {
|
|
1101
1113
|
method: "searchPerplexity",
|
|
1102
|
-
snippet:
|
|
1103
|
-
query: '',
|
|
1104
|
-
exportType: "text",
|
|
1105
|
-
}`,
|
|
1114
|
+
snippet: '{\n query: ``,\n exportType: "text",\n}',
|
|
1106
1115
|
outputKeys: ["results"]
|
|
1107
1116
|
},
|
|
1108
1117
|
"searchXPosts": {
|
|
1109
1118
|
method: "searchXPosts",
|
|
1110
|
-
snippet:
|
|
1111
|
-
query: '',
|
|
1112
|
-
scope: "recent",
|
|
1113
|
-
options: {},
|
|
1114
|
-
}`,
|
|
1119
|
+
snippet: '{\n query: ``,\n scope: "recent",\n options: {},\n}',
|
|
1115
1120
|
outputKeys: ["posts"]
|
|
1116
1121
|
},
|
|
1117
1122
|
"searchYoutube": {
|
|
1118
1123
|
method: "searchYoutube",
|
|
1119
|
-
snippet: "{\n query:
|
|
1124
|
+
snippet: "{\n query: ``,\n limitPages: ``,\n filter: ``,\n filterType: ``,\n}",
|
|
1120
1125
|
outputKeys: ["results"]
|
|
1121
1126
|
},
|
|
1122
1127
|
"searchYoutubeTrends": {
|
|
1123
1128
|
method: "searchYoutubeTrends",
|
|
1124
|
-
snippet:
|
|
1125
|
-
bp: "now",
|
|
1126
|
-
hl: '',
|
|
1127
|
-
gl: '',
|
|
1128
|
-
}`,
|
|
1129
|
+
snippet: '{\n bp: "now",\n hl: ``,\n gl: ``,\n}',
|
|
1129
1130
|
outputKeys: ["trends"]
|
|
1130
1131
|
},
|
|
1131
1132
|
"sendEmail": {
|
|
1132
1133
|
method: "sendEmail",
|
|
1133
|
-
snippet: "{\n subject:
|
|
1134
|
+
snippet: "{\n subject: ``,\n body: ``,\n connectionId: ``,\n}",
|
|
1134
1135
|
outputKeys: ["recipients"]
|
|
1135
1136
|
},
|
|
1136
1137
|
"sendSMS": {
|
|
1137
1138
|
method: "sendSMS",
|
|
1138
|
-
snippet: "{\n body:
|
|
1139
|
+
snippet: "{\n body: ``,\n connectionId: ``,\n}",
|
|
1139
1140
|
outputKeys: []
|
|
1140
1141
|
},
|
|
1141
1142
|
"setRunTitle": {
|
|
1142
1143
|
method: "setRunTitle",
|
|
1143
|
-
snippet: "{\n title:
|
|
1144
|
+
snippet: "{\n title: ``,\n}",
|
|
1144
1145
|
outputKeys: []
|
|
1145
1146
|
},
|
|
1146
1147
|
"setVariable": {
|
|
1147
1148
|
method: "setVariable",
|
|
1148
|
-
snippet:
|
|
1149
|
-
value: '',
|
|
1150
|
-
type: "imageUrl",
|
|
1151
|
-
}`,
|
|
1149
|
+
snippet: '{\n value: ``,\n type: "imageUrl",\n}',
|
|
1152
1150
|
outputKeys: ["variableName", "value"]
|
|
1153
1151
|
},
|
|
1154
1152
|
"telegramSendAudio": {
|
|
1155
1153
|
method: "telegramSendAudio",
|
|
1156
|
-
snippet:
|
|
1157
|
-
botToken: '',
|
|
1158
|
-
chatId: '',
|
|
1159
|
-
audioUrl: '',
|
|
1160
|
-
mode: "audio",
|
|
1161
|
-
}`,
|
|
1154
|
+
snippet: '{\n botToken: ``,\n chatId: ``,\n audioUrl: ``,\n mode: "audio",\n}',
|
|
1162
1155
|
outputKeys: []
|
|
1163
1156
|
},
|
|
1164
1157
|
"telegramSendFile": {
|
|
1165
1158
|
method: "telegramSendFile",
|
|
1166
|
-
snippet: "{\n botToken:
|
|
1159
|
+
snippet: "{\n botToken: ``,\n chatId: ``,\n fileUrl: ``,\n}",
|
|
1167
1160
|
outputKeys: []
|
|
1168
1161
|
},
|
|
1169
1162
|
"telegramSendImage": {
|
|
1170
1163
|
method: "telegramSendImage",
|
|
1171
|
-
snippet: "{\n botToken:
|
|
1164
|
+
snippet: "{\n botToken: ``,\n chatId: ``,\n imageUrl: ``,\n}",
|
|
1172
1165
|
outputKeys: []
|
|
1173
1166
|
},
|
|
1174
1167
|
"telegramSendMessage": {
|
|
1175
1168
|
method: "telegramSendMessage",
|
|
1176
|
-
snippet: "{\n botToken:
|
|
1169
|
+
snippet: "{\n botToken: ``,\n chatId: ``,\n text: ``,\n}",
|
|
1177
1170
|
outputKeys: []
|
|
1178
1171
|
},
|
|
1179
1172
|
"telegramSendVideo": {
|
|
1180
1173
|
method: "telegramSendVideo",
|
|
1181
|
-
snippet: "{\n botToken:
|
|
1174
|
+
snippet: "{\n botToken: ``,\n chatId: ``,\n videoUrl: ``,\n}",
|
|
1182
1175
|
outputKeys: []
|
|
1183
1176
|
},
|
|
1184
1177
|
"telegramSetTyping": {
|
|
1185
1178
|
method: "telegramSetTyping",
|
|
1186
|
-
snippet: "{\n botToken:
|
|
1179
|
+
snippet: "{\n botToken: ``,\n chatId: ``,\n}",
|
|
1187
1180
|
outputKeys: []
|
|
1188
1181
|
},
|
|
1189
1182
|
"textToSpeech": {
|
|
1190
1183
|
method: "textToSpeech",
|
|
1191
|
-
snippet: "{\n text:
|
|
1184
|
+
snippet: "{\n text: ``,\n}",
|
|
1192
1185
|
outputKeys: ["audioUrl"]
|
|
1193
1186
|
},
|
|
1194
1187
|
"transcribeAudio": {
|
|
1195
1188
|
method: "transcribeAudio",
|
|
1196
|
-
snippet: "{\n audioUrl:
|
|
1189
|
+
snippet: "{\n audioUrl: ``,\n prompt: ``,\n}",
|
|
1197
1190
|
outputKeys: ["text"]
|
|
1198
1191
|
},
|
|
1199
1192
|
"trimMedia": {
|
|
1200
1193
|
method: "trimMedia",
|
|
1201
|
-
snippet: "{\n inputUrl:
|
|
1194
|
+
snippet: "{\n inputUrl: ``,\n}",
|
|
1202
1195
|
outputKeys: ["mediaUrl"]
|
|
1203
1196
|
},
|
|
1204
1197
|
"updateGoogleCalendarEvent": {
|
|
1205
1198
|
method: "updateGoogleCalendarEvent",
|
|
1206
|
-
snippet: "{\n connectionId:
|
|
1199
|
+
snippet: "{\n connectionId: ``,\n eventId: ``,\n}",
|
|
1207
1200
|
outputKeys: ["eventId", "htmlLink"]
|
|
1208
1201
|
},
|
|
1209
1202
|
"updateGoogleDoc": {
|
|
1210
1203
|
method: "updateGoogleDoc",
|
|
1211
|
-
snippet:
|
|
1212
|
-
documentId: '',
|
|
1213
|
-
connectionId: '',
|
|
1214
|
-
text: '',
|
|
1215
|
-
textType: "plain",
|
|
1216
|
-
operationType: "addToTop",
|
|
1217
|
-
}`,
|
|
1204
|
+
snippet: '{\n documentId: ``,\n connectionId: ``,\n text: ``,\n textType: "plain",\n operationType: "addToTop",\n}',
|
|
1218
1205
|
outputKeys: ["documentUrl"]
|
|
1219
1206
|
},
|
|
1220
1207
|
"updateGoogleSheet": {
|
|
1221
1208
|
method: "updateGoogleSheet",
|
|
1222
|
-
snippet:
|
|
1223
|
-
text: '',
|
|
1224
|
-
connectionId: '',
|
|
1225
|
-
spreadsheetId: '',
|
|
1226
|
-
range: '',
|
|
1227
|
-
operationType: "addToBottom",
|
|
1228
|
-
}`,
|
|
1209
|
+
snippet: '{\n text: ``,\n connectionId: ``,\n spreadsheetId: ``,\n range: ``,\n operationType: "addToBottom",\n}',
|
|
1229
1210
|
outputKeys: ["spreadsheetUrl"]
|
|
1230
1211
|
},
|
|
1212
|
+
"uploadDataSourceDocument": {
|
|
1213
|
+
method: "uploadDataSourceDocument",
|
|
1214
|
+
snippet: "{\n dataSourceId: ``,\n file: ``,\n fileName: ``,\n}",
|
|
1215
|
+
outputKeys: []
|
|
1216
|
+
},
|
|
1231
1217
|
"upscaleImage": {
|
|
1232
1218
|
method: "upscaleImage",
|
|
1233
|
-
snippet:
|
|
1234
|
-
imageUrl: '',
|
|
1235
|
-
targetResolution: "2k",
|
|
1236
|
-
engine: "standard",
|
|
1237
|
-
}`,
|
|
1219
|
+
snippet: '{\n imageUrl: ``,\n targetResolution: "2k",\n engine: "standard",\n}',
|
|
1238
1220
|
outputKeys: ["imageUrl"]
|
|
1239
1221
|
},
|
|
1240
1222
|
"upscaleVideo": {
|
|
1241
1223
|
method: "upscaleVideo",
|
|
1242
|
-
snippet:
|
|
1243
|
-
videoUrl: '',
|
|
1244
|
-
targetResolution: "720p",
|
|
1245
|
-
engine: "standard",
|
|
1246
|
-
}`,
|
|
1224
|
+
snippet: '{\n videoUrl: ``,\n targetResolution: "720p",\n engine: "standard",\n}',
|
|
1247
1225
|
outputKeys: ["videoUrl"]
|
|
1248
1226
|
},
|
|
1249
1227
|
"userMessage": {
|
|
1250
1228
|
method: "generateText",
|
|
1251
|
-
snippet: "{\n message:
|
|
1229
|
+
snippet: "{\n message: ``,\n}",
|
|
1252
1230
|
outputKeys: ["content"]
|
|
1253
1231
|
},
|
|
1254
1232
|
"videoFaceSwap": {
|
|
1255
1233
|
method: "videoFaceSwap",
|
|
1256
|
-
snippet: "{\n videoUrl:
|
|
1234
|
+
snippet: "{\n videoUrl: ``,\n faceImageUrl: ``,\n targetIndex: 0,\n engine: ``,\n}",
|
|
1257
1235
|
outputKeys: ["videoUrl"]
|
|
1258
1236
|
},
|
|
1259
1237
|
"videoRemoveBackground": {
|
|
1260
1238
|
method: "videoRemoveBackground",
|
|
1261
|
-
snippet:
|
|
1262
|
-
videoUrl: '',
|
|
1263
|
-
newBackground: "transparent",
|
|
1264
|
-
engine: '',
|
|
1265
|
-
}`,
|
|
1239
|
+
snippet: '{\n videoUrl: ``,\n newBackground: "transparent",\n engine: ``,\n}',
|
|
1266
1240
|
outputKeys: ["videoUrl"]
|
|
1267
1241
|
},
|
|
1268
1242
|
"videoRemoveWatermark": {
|
|
1269
1243
|
method: "videoRemoveWatermark",
|
|
1270
|
-
snippet: "{\n videoUrl:
|
|
1244
|
+
snippet: "{\n videoUrl: ``,\n engine: ``,\n}",
|
|
1271
1245
|
outputKeys: ["videoUrl"]
|
|
1272
1246
|
},
|
|
1273
1247
|
"watermarkImage": {
|
|
1274
1248
|
method: "watermarkImage",
|
|
1275
|
-
snippet:
|
|
1276
|
-
imageUrl: '',
|
|
1277
|
-
watermarkImageUrl: '',
|
|
1278
|
-
corner: "top-left",
|
|
1279
|
-
paddingPx: 0,
|
|
1280
|
-
widthPx: 0,
|
|
1281
|
-
}`,
|
|
1249
|
+
snippet: '{\n imageUrl: ``,\n watermarkImageUrl: ``,\n corner: "top-left",\n paddingPx: 0,\n widthPx: 0,\n}',
|
|
1282
1250
|
outputKeys: ["imageUrl"]
|
|
1283
1251
|
},
|
|
1284
1252
|
"watermarkVideo": {
|
|
1285
1253
|
method: "watermarkVideo",
|
|
1286
|
-
snippet:
|
|
1287
|
-
videoUrl: '',
|
|
1288
|
-
imageUrl: '',
|
|
1289
|
-
corner: "top-left",
|
|
1290
|
-
paddingPx: 0,
|
|
1291
|
-
widthPx: 0,
|
|
1292
|
-
}`,
|
|
1254
|
+
snippet: '{\n videoUrl: ``,\n imageUrl: ``,\n corner: "top-left",\n paddingPx: 0,\n widthPx: 0,\n}',
|
|
1293
1255
|
outputKeys: ["videoUrl"]
|
|
1294
1256
|
}
|
|
1295
1257
|
};
|