@ai-matrx/api 0.1.9 → 0.1.10
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/CHANGELOG.md +5 -0
- package/README.md +1 -1
- package/dist/account.d.cts +1 -1
- package/dist/account.d.ts +1 -1
- package/dist/agents.cjs +12 -12
- package/dist/agents.d.cts +1 -1
- package/dist/agents.d.ts +1 -1
- package/dist/agents.js +2 -2
- package/dist/ai.cjs +3 -3
- package/dist/ai.d.cts +1 -1
- package/dist/ai.d.ts +1 -1
- package/dist/ai.js +2 -2
- package/dist/apps.cjs +6 -6
- package/dist/apps.d.cts +1 -1
- package/dist/apps.d.ts +1 -1
- package/dist/apps.js +2 -2
- package/dist/architecture.cjs +11 -11
- package/dist/architecture.d.cts +1 -1
- package/dist/architecture.d.ts +1 -1
- package/dist/architecture.js +2 -2
- package/dist/audio.cjs +5 -5
- package/dist/audio.d.cts +1 -1
- package/dist/audio.d.ts +1 -1
- package/dist/audio.js +2 -2
- package/dist/chat.cjs +12 -12
- package/dist/chat.d.cts +1 -1
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +2 -2
- package/dist/{chunk-PIVTHTVR.js → chunk-FLANGLCG.js} +260 -36
- package/dist/{chunk-KIEAFMKB.js → chunk-PIPE5OML.js} +100 -46
- package/dist/{chunk-2SXAAKGV.cjs → chunk-PKYPPATQ.cjs} +100 -45
- package/dist/{chunk-PMGKZ4FT.cjs → chunk-SPASYIUH.cjs} +268 -34
- package/dist/code.cjs +7 -7
- package/dist/code.d.cts +1 -1
- package/dist/code.d.ts +1 -1
- package/dist/code.js +2 -2
- package/dist/commerce.d.cts +1 -1
- package/dist/commerce.d.ts +1 -1
- package/dist/communications.cjs +5 -5
- package/dist/communications.d.cts +1 -1
- package/dist/communications.d.ts +1 -1
- package/dist/communications.js +2 -2
- package/dist/computer.cjs +4 -4
- package/dist/computer.d.cts +1 -1
- package/dist/computer.d.ts +1 -1
- package/dist/computer.js +2 -2
- package/dist/content.cjs +5 -5
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +2 -2
- package/dist/crm.cjs +3 -3
- package/dist/crm.d.cts +1 -1
- package/dist/crm.d.ts +1 -1
- package/dist/crm.js +2 -2
- package/dist/data.d.cts +1 -1
- package/dist/data.d.ts +1 -1
- package/dist/education.cjs +5 -5
- package/dist/education.d.cts +1 -1
- package/dist/education.d.ts +1 -1
- package/dist/education.js +2 -2
- package/dist/files.cjs +21 -21
- package/dist/files.d.cts +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.js +2 -2
- package/dist/human-resources.d.cts +1 -1
- package/dist/human-resources.d.ts +1 -1
- package/dist/{index-C3ZlP3BI.d.cts → index-Gj30ybjE.d.cts} +42 -3
- package/dist/{index-C3ZlP3BI.d.ts → index-Gj30ybjE.d.ts} +42 -3
- package/dist/index.cjs +183 -288
- package/dist/index.d.cts +129 -180
- package/dist/index.d.ts +129 -180
- package/dist/index.js +76 -206
- package/dist/integrations.cjs +4 -4
- package/dist/integrations.d.cts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.js +2 -2
- package/dist/intelligence.cjs +10 -8
- package/dist/intelligence.d.cts +13 -13
- package/dist/intelligence.d.ts +13 -13
- package/dist/intelligence.js +5 -3
- package/dist/{keys.generated-CK_C5UXG.d.cts → keys.generated-DZUiM-uA.d.cts} +5 -3
- package/dist/{keys.generated-CK_C5UXG.d.ts → keys.generated-DZUiM-uA.d.ts} +5 -3
- package/dist/knowledge.cjs +43 -43
- package/dist/knowledge.d.cts +13 -13
- package/dist/knowledge.d.ts +13 -13
- package/dist/knowledge.js +2 -2
- package/dist/legal.cjs +7 -7
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +2 -2
- package/dist/marketing.cjs +77 -77
- package/dist/marketing.d.cts +27 -27
- package/dist/marketing.d.ts +27 -27
- package/dist/marketing.js +2 -2
- package/dist/masterwork.cjs +33 -33
- package/dist/masterwork.d.cts +1 -1
- package/dist/masterwork.d.ts +1 -1
- package/dist/masterwork.js +2 -2
- package/dist/media.cjs +12 -12
- package/dist/media.d.cts +1 -1
- package/dist/media.d.ts +1 -1
- package/dist/media.js +2 -2
- package/dist/net.cjs +19 -20
- package/dist/net.d.cts +41 -41
- package/dist/net.d.ts +41 -41
- package/dist/net.js +1 -2
- package/dist/platform.cjs +4 -4
- package/dist/platform.d.cts +1 -1
- package/dist/platform.d.ts +1 -1
- package/dist/platform.js +2 -2
- package/dist/publish.cjs +8 -8
- package/dist/publish.d.cts +1 -1
- package/dist/publish.d.ts +1 -1
- package/dist/publish.js +2 -2
- package/dist/schemas.d.cts +78 -15
- package/dist/schemas.d.ts +78 -15
- package/dist/stream.cjs +11 -11
- package/dist/stream.d.cts +1 -1
- package/dist/stream.d.ts +1 -1
- package/dist/stream.js +2 -2
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +49823 -0
- package/dist/types.d.ts +49823 -0
- package/dist/types.js +1 -0
- package/dist/web.cjs +27 -27
- package/dist/web.d.cts +17 -17
- package/dist/web.d.ts +17 -17
- package/dist/web.js +2 -2
- package/dist/workflows.cjs +14 -14
- package/dist/workflows.d.cts +23 -26
- package/dist/workflows.d.ts +23 -26
- package/dist/workflows.js +2 -2
- package/package.json +14 -4
- package/dist/chunk-FNIYADWI.cjs +0 -59
- package/dist/chunk-YTEOFGFC.js +0 -57
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/web.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkSPASYIUH_cjs = require('./chunk-SPASYIUH.cjs');
|
|
4
|
+
require('./chunk-PKYPPATQ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/web.ts
|
|
7
7
|
var $linkPreview = { m: "GET", p: "/web/link-preview", d: "aidream", a: "guest", o: "required", n: "web.link_preview" };
|
|
@@ -66,19 +66,19 @@ function browserInspect(api, args, options) {
|
|
|
66
66
|
}
|
|
67
67
|
var $quickScrape = { m: "POST", p: "/scraper/quick-scrape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "web.quick_scrape" };
|
|
68
68
|
function quickScrape(api, args, options) {
|
|
69
|
-
return
|
|
69
|
+
return chunkSPASYIUH_cjs.openStream(api, $quickScrape, args, options);
|
|
70
70
|
}
|
|
71
71
|
var $searchKeywords = { m: "POST", p: "/scraper/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "web.search_keywords" };
|
|
72
72
|
function searchKeywords(api, args, options) {
|
|
73
|
-
return
|
|
73
|
+
return chunkSPASYIUH_cjs.openStream(api, $searchKeywords, args, options);
|
|
74
74
|
}
|
|
75
75
|
var $searchAndScrape = { m: "POST", p: "/scraper/search-and-scrape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "web.search_and_scrape" };
|
|
76
76
|
function searchAndScrape(api, args, options) {
|
|
77
|
-
return
|
|
77
|
+
return chunkSPASYIUH_cjs.openStream(api, $searchAndScrape, args, options);
|
|
78
78
|
}
|
|
79
79
|
var $searchAndScrapeLimited = { m: "POST", p: "/scraper/search-and-scrape-limited", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "web.search_and_scrape_limited" };
|
|
80
80
|
function searchAndScrapeLimited(api, args, options) {
|
|
81
|
-
return
|
|
81
|
+
return chunkSPASYIUH_cjs.openStream(api, $searchAndScrapeLimited, args, options);
|
|
82
82
|
}
|
|
83
83
|
var $batchScrape = { m: "POST", p: "/scraper/batch", d: "aidream", a: "guest", o: "required", n: "web.batch_scrape" };
|
|
84
84
|
function batchScrape(api, args, options) {
|
|
@@ -290,7 +290,7 @@ function browserRuntimeStatus(api, args, options) {
|
|
|
290
290
|
}
|
|
291
291
|
var $installBrowserRuntime = { m: "POST", p: "/browser-runtime/install", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "web.install_browser_runtime" };
|
|
292
292
|
function installBrowserRuntime(api, args, options) {
|
|
293
|
-
return
|
|
293
|
+
return chunkSPASYIUH_cjs.openStream(api, $installBrowserRuntime, args, options);
|
|
294
294
|
}
|
|
295
295
|
var $remoteScraperStatus = { m: "GET", p: "/remote-scraper/status", d: "matrx-local", a: "public", o: "exempt", n: "web.remote_scraper_status" };
|
|
296
296
|
function remoteScraperStatus(api, args, options) {
|
|
@@ -302,7 +302,7 @@ function remoteScrape(api, args, options) {
|
|
|
302
302
|
}
|
|
303
303
|
var $remoteScrapeStream = { m: "POST", p: "/remote-scraper/scrape/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "web.remote_scrape_stream" };
|
|
304
304
|
function remoteScrapeStream(api, args, options) {
|
|
305
|
-
return
|
|
305
|
+
return chunkSPASYIUH_cjs.openStream(api, $remoteScrapeStream, args, options);
|
|
306
306
|
}
|
|
307
307
|
var $remoteSearch = { m: "POST", p: "/remote-scraper/search", d: "matrx-local", a: "loopback_token", o: "exempt", n: "web.remote_search" };
|
|
308
308
|
function remoteSearch(api, args, options) {
|
|
@@ -314,7 +314,7 @@ function remoteSearchAndScrape(api, args, options) {
|
|
|
314
314
|
}
|
|
315
315
|
var $remoteSearchAndScrapeStream = { m: "POST", p: "/remote-scraper/search-and-scrape/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "web.remote_search_and_scrape_stream" };
|
|
316
316
|
function remoteSearchAndScrapeStream(api, args, options) {
|
|
317
|
-
return
|
|
317
|
+
return chunkSPASYIUH_cjs.openStream(api, $remoteSearchAndScrapeStream, args, options);
|
|
318
318
|
}
|
|
319
319
|
var $remoteResearch = { m: "POST", p: "/remote-scraper/research", d: "matrx-local", a: "loopback_token", o: "exempt", n: "web.remote_research" };
|
|
320
320
|
function remoteResearch(api, args, options) {
|
|
@@ -322,7 +322,7 @@ function remoteResearch(api, args, options) {
|
|
|
322
322
|
}
|
|
323
323
|
var $remoteResearchStream = { m: "POST", p: "/remote-scraper/research/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "web.remote_research_stream" };
|
|
324
324
|
function remoteResearchStream(api, args, options) {
|
|
325
|
-
return
|
|
325
|
+
return chunkSPASYIUH_cjs.openStream(api, $remoteResearchStream, args, options);
|
|
326
326
|
}
|
|
327
327
|
var $saveContent = { m: "POST", p: "/remote-scraper/content/save", d: "matrx-local", a: "loopback_token", o: "exempt", n: "web.save_content" };
|
|
328
328
|
function saveContent(api, args, options) {
|
|
@@ -466,19 +466,19 @@ function browserInspectOnScraper(api, args, options) {
|
|
|
466
466
|
}
|
|
467
467
|
var $quickScrapeOnScraper = { m: "POST", p: "/api/scraper/quick-scrape", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.quick_scrape" };
|
|
468
468
|
function quickScrapeOnScraper(api, args, options) {
|
|
469
|
-
return
|
|
469
|
+
return chunkSPASYIUH_cjs.openStream(api, $quickScrapeOnScraper, args, options);
|
|
470
470
|
}
|
|
471
471
|
var $searchKeywordsOnScraper = { m: "POST", p: "/api/scraper/search", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.search_keywords" };
|
|
472
472
|
function searchKeywordsOnScraper(api, args, options) {
|
|
473
|
-
return
|
|
473
|
+
return chunkSPASYIUH_cjs.openStream(api, $searchKeywordsOnScraper, args, options);
|
|
474
474
|
}
|
|
475
475
|
var $searchAndScrapeOnScraper = { m: "POST", p: "/api/scraper/search-and-scrape", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.search_and_scrape" };
|
|
476
476
|
function searchAndScrapeOnScraper(api, args, options) {
|
|
477
|
-
return
|
|
477
|
+
return chunkSPASYIUH_cjs.openStream(api, $searchAndScrapeOnScraper, args, options);
|
|
478
478
|
}
|
|
479
479
|
var $searchAndScrapeLimitedOnScraper = { m: "POST", p: "/api/scraper/search-and-scrape-limited", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.search_and_scrape_limited" };
|
|
480
480
|
function searchAndScrapeLimitedOnScraper(api, args, options) {
|
|
481
|
-
return
|
|
481
|
+
return chunkSPASYIUH_cjs.openStream(api, $searchAndScrapeLimitedOnScraper, args, options);
|
|
482
482
|
}
|
|
483
483
|
var $batchScrapeOnScraper = { m: "POST", p: "/api/scraper/batch", d: "scraper", a: "user", o: "required", n: "web.batch_scrape" };
|
|
484
484
|
function batchScrapeOnScraper(api, args, options) {
|
|
@@ -590,51 +590,51 @@ function preview(api, args, options) {
|
|
|
590
590
|
}
|
|
591
591
|
var $startCrawl = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/sessions", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.start_crawl" };
|
|
592
592
|
function startCrawl(api, args, options) {
|
|
593
|
-
return
|
|
593
|
+
return chunkSPASYIUH_cjs.openStream(api, $startCrawl, args, options);
|
|
594
594
|
}
|
|
595
595
|
var $resumeCrawl = { m: "POST", p: "/api/scraper/crawler/sessions/{session_id}/resume", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.resume_crawl" };
|
|
596
596
|
function resumeCrawl(api, args, options) {
|
|
597
|
-
return
|
|
597
|
+
return chunkSPASYIUH_cjs.openStream(api, $resumeCrawl, args, options);
|
|
598
598
|
}
|
|
599
599
|
var $bootstrapSite = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/bootstrap", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.bootstrap_site" };
|
|
600
600
|
function bootstrapSite(api, args, options) {
|
|
601
|
-
return
|
|
601
|
+
return chunkSPASYIUH_cjs.openStream(api, $bootstrapSite, args, options);
|
|
602
602
|
}
|
|
603
603
|
var $fetchPage = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/pages/fetch", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.fetch_page" };
|
|
604
604
|
function fetchPage(api, args, options) {
|
|
605
|
-
return
|
|
605
|
+
return chunkSPASYIUH_cjs.openStream(api, $fetchPage, args, options);
|
|
606
606
|
}
|
|
607
607
|
var $initializeSite = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/initialize", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.initialize_site" };
|
|
608
608
|
function initializeSite(api, args, options) {
|
|
609
|
-
return
|
|
609
|
+
return chunkSPASYIUH_cjs.openStream(api, $initializeSite, args, options);
|
|
610
610
|
}
|
|
611
611
|
var $syncSitemaps = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/sitemaps/sync", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.sync_sitemaps" };
|
|
612
612
|
function syncSitemaps(api, args, options) {
|
|
613
|
-
return
|
|
613
|
+
return chunkSPASYIUH_cjs.openStream(api, $syncSitemaps, args, options);
|
|
614
614
|
}
|
|
615
615
|
var $syncGsc = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/gsc/sync", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.sync_gsc" };
|
|
616
616
|
function syncGsc(api, args, options) {
|
|
617
|
-
return
|
|
617
|
+
return chunkSPASYIUH_cjs.openStream(api, $syncGsc, args, options);
|
|
618
618
|
}
|
|
619
619
|
var $resolveLinks = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/links/resolve", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.resolve_links" };
|
|
620
620
|
function resolveLinks(api, args, options) {
|
|
621
|
-
return
|
|
621
|
+
return chunkSPASYIUH_cjs.openStream(api, $resolveLinks, args, options);
|
|
622
622
|
}
|
|
623
623
|
var $scoreLinks = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/links/score", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.score_links" };
|
|
624
624
|
function scoreLinks(api, args, options) {
|
|
625
|
-
return
|
|
625
|
+
return chunkSPASYIUH_cjs.openStream(api, $scoreLinks, args, options);
|
|
626
626
|
}
|
|
627
627
|
var $reconcileUrls = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/urls/reconcile", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.reconcile_urls" };
|
|
628
628
|
function reconcileUrls(api, args, options) {
|
|
629
|
-
return
|
|
629
|
+
return chunkSPASYIUH_cjs.openStream(api, $reconcileUrls, args, options);
|
|
630
630
|
}
|
|
631
631
|
var $checkLinks = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/links/check", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.check_links" };
|
|
632
632
|
function checkLinks(api, args, options) {
|
|
633
|
-
return
|
|
633
|
+
return chunkSPASYIUH_cjs.openStream(api, $checkLinks, args, options);
|
|
634
634
|
}
|
|
635
635
|
var $analyzeSite = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/analyze", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.analyze_site" };
|
|
636
636
|
function analyzeSite(api, args, options) {
|
|
637
|
-
return
|
|
637
|
+
return chunkSPASYIUH_cjs.openStream(api, $analyzeSite, args, options);
|
|
638
638
|
}
|
|
639
639
|
var $cancelCrawl = { m: "POST", p: "/api/scraper/crawler/sessions/{session_id}/cancel", d: "scraper", a: "user", o: "required", n: "web.cancel_crawl" };
|
|
640
640
|
function cancelCrawl(api, args, options) {
|
|
@@ -694,7 +694,7 @@ function previewRecrawlConfig(api, args, options) {
|
|
|
694
694
|
}
|
|
695
695
|
var $rescrapeSite = { m: "POST", p: "/api/scraper/crawler/sites/{site_id}/rescrape", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.rescrape_site" };
|
|
696
696
|
function rescrapeSite(api, args, options) {
|
|
697
|
-
return
|
|
697
|
+
return chunkSPASYIUH_cjs.openStream(api, $rescrapeSite, args, options);
|
|
698
698
|
}
|
|
699
699
|
var $healthOnScraper = { m: "GET", p: "/health", d: "scraper", a: "public", o: "exempt", n: "web.health" };
|
|
700
700
|
function healthOnScraper(api, args, options) {
|
package/dist/web.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-Gj30ybjE.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@ type ActionEventFacts = {
|
|
|
26
26
|
};
|
|
27
27
|
/** ActivatePageCommand */
|
|
28
28
|
type ActivatePageCommand = {
|
|
29
|
-
command
|
|
29
|
+
command: "activate_page";
|
|
30
30
|
target_page_id: string;
|
|
31
31
|
};
|
|
32
32
|
/** ActivatePageResult */
|
|
@@ -331,7 +331,7 @@ type ClaimRequest = {
|
|
|
331
331
|
};
|
|
332
332
|
/** ClickCommand */
|
|
333
333
|
type ClickCommand = {
|
|
334
|
-
command
|
|
334
|
+
command: "click";
|
|
335
335
|
selector: string;
|
|
336
336
|
wait_after_ms?: number;
|
|
337
337
|
timeout_ms?: number;
|
|
@@ -359,7 +359,7 @@ type ClickResult = {
|
|
|
359
359
|
};
|
|
360
360
|
/** ClosePageCommand */
|
|
361
361
|
type ClosePageCommand = {
|
|
362
|
-
command
|
|
362
|
+
command: "close_page";
|
|
363
363
|
target_page_id: string;
|
|
364
364
|
};
|
|
365
365
|
/** ClosePageResult */
|
|
@@ -802,7 +802,7 @@ type EgressStatus = {
|
|
|
802
802
|
};
|
|
803
803
|
/** EvalJsCommand */
|
|
804
804
|
type EvalJsCommand = {
|
|
805
|
-
command
|
|
805
|
+
command: "eval_js";
|
|
806
806
|
expression: string;
|
|
807
807
|
};
|
|
808
808
|
/** EvalJsRequest */
|
|
@@ -854,7 +854,7 @@ type FileChooserRecord = {
|
|
|
854
854
|
};
|
|
855
855
|
/** FillCommand */
|
|
856
856
|
type FillCommand = {
|
|
857
|
-
command
|
|
857
|
+
command: "fill";
|
|
858
858
|
selector: string;
|
|
859
859
|
value: string;
|
|
860
860
|
timeout_ms?: number;
|
|
@@ -878,7 +878,7 @@ type FillResult = {
|
|
|
878
878
|
};
|
|
879
879
|
/** GetElementCommand */
|
|
880
880
|
type GetElementCommand = {
|
|
881
|
-
command
|
|
881
|
+
command: "get_element";
|
|
882
882
|
selector: string;
|
|
883
883
|
include_html?: boolean;
|
|
884
884
|
};
|
|
@@ -913,7 +913,7 @@ type GetElementResult = {
|
|
|
913
913
|
};
|
|
914
914
|
/** GetHtmlCommand */
|
|
915
915
|
type GetHtmlCommand = {
|
|
916
|
-
command
|
|
916
|
+
command: "get_html";
|
|
917
917
|
cap?: number;
|
|
918
918
|
};
|
|
919
919
|
/** GetHtmlRequest */
|
|
@@ -935,7 +935,7 @@ type GetHtmlResult = {
|
|
|
935
935
|
};
|
|
936
936
|
/** GetTextCommand */
|
|
937
937
|
type GetTextCommand = {
|
|
938
|
-
command
|
|
938
|
+
command: "get_text";
|
|
939
939
|
selector?: string;
|
|
940
940
|
cap?: number;
|
|
941
941
|
};
|
|
@@ -959,7 +959,7 @@ type GetTextResult = {
|
|
|
959
959
|
};
|
|
960
960
|
/** HandleDialogCommand */
|
|
961
961
|
type HandleDialogCommand = {
|
|
962
|
-
command
|
|
962
|
+
command: "handle_dialog";
|
|
963
963
|
dialog_id: string;
|
|
964
964
|
action: "accept" | "dismiss";
|
|
965
965
|
prompt_text?: string | null;
|
|
@@ -1238,7 +1238,7 @@ type MintViewRequest = {
|
|
|
1238
1238
|
};
|
|
1239
1239
|
/** NavigateCommand */
|
|
1240
1240
|
type NavigateCommand = {
|
|
1241
|
-
command
|
|
1241
|
+
command: "navigate";
|
|
1242
1242
|
url: string;
|
|
1243
1243
|
wait_until?: "load" | "domcontentloaded" | "networkidle";
|
|
1244
1244
|
timeout_ms?: number;
|
|
@@ -1503,7 +1503,7 @@ type ProgressSeries = {
|
|
|
1503
1503
|
};
|
|
1504
1504
|
/** QuerySelectorsCommand */
|
|
1505
1505
|
type QuerySelectorsCommand = {
|
|
1506
|
-
command
|
|
1506
|
+
command: "query_selectors";
|
|
1507
1507
|
selectors: string[];
|
|
1508
1508
|
attributes?: string[] | null;
|
|
1509
1509
|
limit_per_selector?: number;
|
|
@@ -1684,7 +1684,7 @@ type ScreenshotResponse = {
|
|
|
1684
1684
|
};
|
|
1685
1685
|
/** ScrollCommand */
|
|
1686
1686
|
type ScrollCommand = {
|
|
1687
|
-
command
|
|
1687
|
+
command: "scroll";
|
|
1688
1688
|
direction?: "up" | "down" | "top" | "bottom";
|
|
1689
1689
|
pixels?: number;
|
|
1690
1690
|
selector?: string | null;
|
|
@@ -1774,7 +1774,7 @@ type SearchRequest = {
|
|
|
1774
1774
|
};
|
|
1775
1775
|
/** SelectOptionCommand */
|
|
1776
1776
|
type SelectOptionCommand = {
|
|
1777
|
-
command
|
|
1777
|
+
command: "select_option";
|
|
1778
1778
|
selector: string;
|
|
1779
1779
|
value?: string | null;
|
|
1780
1780
|
label?: string | null;
|
|
@@ -1934,7 +1934,7 @@ type TypeResult = {
|
|
|
1934
1934
|
};
|
|
1935
1935
|
/** TypeTextCommand */
|
|
1936
1936
|
type TypeTextCommand = {
|
|
1937
|
-
command
|
|
1937
|
+
command: "type_text";
|
|
1938
1938
|
selector: string;
|
|
1939
1939
|
text: string;
|
|
1940
1940
|
clear_first?: boolean;
|
|
@@ -1966,7 +1966,7 @@ type ViewportBlock = {
|
|
|
1966
1966
|
};
|
|
1967
1967
|
/** WaitForCommand */
|
|
1968
1968
|
type WaitForCommand = {
|
|
1969
|
-
command
|
|
1969
|
+
command: "wait_for";
|
|
1970
1970
|
selector?: string | null;
|
|
1971
1971
|
text?: string | null;
|
|
1972
1972
|
state?: "visible" | "attached" | "detached" | "hidden";
|
|
@@ -1974,7 +1974,7 @@ type WaitForCommand = {
|
|
|
1974
1974
|
};
|
|
1975
1975
|
/** WaitForDownloadCommand */
|
|
1976
1976
|
type WaitForDownloadCommand = {
|
|
1977
|
-
command
|
|
1977
|
+
command: "wait_for_download";
|
|
1978
1978
|
download_id: string;
|
|
1979
1979
|
timeout_ms?: number;
|
|
1980
1980
|
};
|
package/dist/web.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-Gj30ybjE.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@ type ActionEventFacts = {
|
|
|
26
26
|
};
|
|
27
27
|
/** ActivatePageCommand */
|
|
28
28
|
type ActivatePageCommand = {
|
|
29
|
-
command
|
|
29
|
+
command: "activate_page";
|
|
30
30
|
target_page_id: string;
|
|
31
31
|
};
|
|
32
32
|
/** ActivatePageResult */
|
|
@@ -331,7 +331,7 @@ type ClaimRequest = {
|
|
|
331
331
|
};
|
|
332
332
|
/** ClickCommand */
|
|
333
333
|
type ClickCommand = {
|
|
334
|
-
command
|
|
334
|
+
command: "click";
|
|
335
335
|
selector: string;
|
|
336
336
|
wait_after_ms?: number;
|
|
337
337
|
timeout_ms?: number;
|
|
@@ -359,7 +359,7 @@ type ClickResult = {
|
|
|
359
359
|
};
|
|
360
360
|
/** ClosePageCommand */
|
|
361
361
|
type ClosePageCommand = {
|
|
362
|
-
command
|
|
362
|
+
command: "close_page";
|
|
363
363
|
target_page_id: string;
|
|
364
364
|
};
|
|
365
365
|
/** ClosePageResult */
|
|
@@ -802,7 +802,7 @@ type EgressStatus = {
|
|
|
802
802
|
};
|
|
803
803
|
/** EvalJsCommand */
|
|
804
804
|
type EvalJsCommand = {
|
|
805
|
-
command
|
|
805
|
+
command: "eval_js";
|
|
806
806
|
expression: string;
|
|
807
807
|
};
|
|
808
808
|
/** EvalJsRequest */
|
|
@@ -854,7 +854,7 @@ type FileChooserRecord = {
|
|
|
854
854
|
};
|
|
855
855
|
/** FillCommand */
|
|
856
856
|
type FillCommand = {
|
|
857
|
-
command
|
|
857
|
+
command: "fill";
|
|
858
858
|
selector: string;
|
|
859
859
|
value: string;
|
|
860
860
|
timeout_ms?: number;
|
|
@@ -878,7 +878,7 @@ type FillResult = {
|
|
|
878
878
|
};
|
|
879
879
|
/** GetElementCommand */
|
|
880
880
|
type GetElementCommand = {
|
|
881
|
-
command
|
|
881
|
+
command: "get_element";
|
|
882
882
|
selector: string;
|
|
883
883
|
include_html?: boolean;
|
|
884
884
|
};
|
|
@@ -913,7 +913,7 @@ type GetElementResult = {
|
|
|
913
913
|
};
|
|
914
914
|
/** GetHtmlCommand */
|
|
915
915
|
type GetHtmlCommand = {
|
|
916
|
-
command
|
|
916
|
+
command: "get_html";
|
|
917
917
|
cap?: number;
|
|
918
918
|
};
|
|
919
919
|
/** GetHtmlRequest */
|
|
@@ -935,7 +935,7 @@ type GetHtmlResult = {
|
|
|
935
935
|
};
|
|
936
936
|
/** GetTextCommand */
|
|
937
937
|
type GetTextCommand = {
|
|
938
|
-
command
|
|
938
|
+
command: "get_text";
|
|
939
939
|
selector?: string;
|
|
940
940
|
cap?: number;
|
|
941
941
|
};
|
|
@@ -959,7 +959,7 @@ type GetTextResult = {
|
|
|
959
959
|
};
|
|
960
960
|
/** HandleDialogCommand */
|
|
961
961
|
type HandleDialogCommand = {
|
|
962
|
-
command
|
|
962
|
+
command: "handle_dialog";
|
|
963
963
|
dialog_id: string;
|
|
964
964
|
action: "accept" | "dismiss";
|
|
965
965
|
prompt_text?: string | null;
|
|
@@ -1238,7 +1238,7 @@ type MintViewRequest = {
|
|
|
1238
1238
|
};
|
|
1239
1239
|
/** NavigateCommand */
|
|
1240
1240
|
type NavigateCommand = {
|
|
1241
|
-
command
|
|
1241
|
+
command: "navigate";
|
|
1242
1242
|
url: string;
|
|
1243
1243
|
wait_until?: "load" | "domcontentloaded" | "networkidle";
|
|
1244
1244
|
timeout_ms?: number;
|
|
@@ -1503,7 +1503,7 @@ type ProgressSeries = {
|
|
|
1503
1503
|
};
|
|
1504
1504
|
/** QuerySelectorsCommand */
|
|
1505
1505
|
type QuerySelectorsCommand = {
|
|
1506
|
-
command
|
|
1506
|
+
command: "query_selectors";
|
|
1507
1507
|
selectors: string[];
|
|
1508
1508
|
attributes?: string[] | null;
|
|
1509
1509
|
limit_per_selector?: number;
|
|
@@ -1684,7 +1684,7 @@ type ScreenshotResponse = {
|
|
|
1684
1684
|
};
|
|
1685
1685
|
/** ScrollCommand */
|
|
1686
1686
|
type ScrollCommand = {
|
|
1687
|
-
command
|
|
1687
|
+
command: "scroll";
|
|
1688
1688
|
direction?: "up" | "down" | "top" | "bottom";
|
|
1689
1689
|
pixels?: number;
|
|
1690
1690
|
selector?: string | null;
|
|
@@ -1774,7 +1774,7 @@ type SearchRequest = {
|
|
|
1774
1774
|
};
|
|
1775
1775
|
/** SelectOptionCommand */
|
|
1776
1776
|
type SelectOptionCommand = {
|
|
1777
|
-
command
|
|
1777
|
+
command: "select_option";
|
|
1778
1778
|
selector: string;
|
|
1779
1779
|
value?: string | null;
|
|
1780
1780
|
label?: string | null;
|
|
@@ -1934,7 +1934,7 @@ type TypeResult = {
|
|
|
1934
1934
|
};
|
|
1935
1935
|
/** TypeTextCommand */
|
|
1936
1936
|
type TypeTextCommand = {
|
|
1937
|
-
command
|
|
1937
|
+
command: "type_text";
|
|
1938
1938
|
selector: string;
|
|
1939
1939
|
text: string;
|
|
1940
1940
|
clear_first?: boolean;
|
|
@@ -1966,7 +1966,7 @@ type ViewportBlock = {
|
|
|
1966
1966
|
};
|
|
1967
1967
|
/** WaitForCommand */
|
|
1968
1968
|
type WaitForCommand = {
|
|
1969
|
-
command
|
|
1969
|
+
command: "wait_for";
|
|
1970
1970
|
selector?: string | null;
|
|
1971
1971
|
text?: string | null;
|
|
1972
1972
|
state?: "visible" | "attached" | "detached" | "hidden";
|
|
@@ -1974,7 +1974,7 @@ type WaitForCommand = {
|
|
|
1974
1974
|
};
|
|
1975
1975
|
/** WaitForDownloadCommand */
|
|
1976
1976
|
type WaitForDownloadCommand = {
|
|
1977
|
-
command
|
|
1977
|
+
command: "wait_for_download";
|
|
1978
1978
|
download_id: string;
|
|
1979
1979
|
timeout_ms?: number;
|
|
1980
1980
|
};
|
package/dist/web.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { openStream } from './chunk-FLANGLCG.js';
|
|
2
|
+
import './chunk-PIPE5OML.js';
|
|
3
3
|
|
|
4
4
|
// src/generated/web.ts
|
|
5
5
|
var $linkPreview = { m: "GET", p: "/web/link-preview", d: "aidream", a: "guest", o: "required", n: "web.link_preview" };
|
package/dist/workflows.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkSPASYIUH_cjs = require('./chunk-SPASYIUH.cjs');
|
|
4
|
+
require('./chunk-PKYPPATQ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/workflows.ts
|
|
7
7
|
var $runAssignments = { m: "POST", p: "/ai/agent-assignments", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.run_assignments" };
|
|
8
8
|
function runAssignments(api, args, options) {
|
|
9
|
-
return
|
|
9
|
+
return chunkSPASYIUH_cjs.openStream(api, $runAssignments, args, options);
|
|
10
10
|
}
|
|
11
11
|
var $getSession = { m: "GET", p: "/ai/agent-assignments/sessions/{session_id}", d: "aidream", a: "guest", o: "required", n: "workflows.get_session" };
|
|
12
12
|
function getSession(api, args, options) {
|
|
@@ -130,7 +130,7 @@ function validateWorkflow(api, args, options) {
|
|
|
130
130
|
}
|
|
131
131
|
var $testSingleNode = { m: "POST", p: "/workflows/{definition_id}/nodes/{node_id}/test", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.test_single_node" };
|
|
132
132
|
function testSingleNode(api, args, options) {
|
|
133
|
-
return
|
|
133
|
+
return chunkSPASYIUH_cjs.openStream(api, $testSingleNode, args, options);
|
|
134
134
|
}
|
|
135
135
|
var $getNodeDataSlots = { m: "GET", p: "/workflows/{definition_id}/nodes/{node_id}/slots", d: "aidream", a: "guest", o: "optional", n: "workflows.get_node_data_slots" };
|
|
136
136
|
function getNodeDataSlots(api, args, options) {
|
|
@@ -210,11 +210,11 @@ function listRunsForWorkflow(api, args, options) {
|
|
|
210
210
|
}
|
|
211
211
|
var $startWorkflowRun = { m: "POST", p: "/workflows/{definition_id}/runs", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_workflow_run" };
|
|
212
212
|
function startWorkflowRun(api, args, options) {
|
|
213
|
-
return
|
|
213
|
+
return chunkSPASYIUH_cjs.openStream(api, $startWorkflowRun, args, options);
|
|
214
214
|
}
|
|
215
215
|
var $resumeWorkflowRun = { m: "POST", p: "/runs/{run_id}/resume", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.resume_workflow_run" };
|
|
216
216
|
function resumeWorkflowRun(api, args, options) {
|
|
217
|
-
return
|
|
217
|
+
return chunkSPASYIUH_cjs.openStream(api, $resumeWorkflowRun, args, options);
|
|
218
218
|
}
|
|
219
219
|
var $listRuns = { m: "GET", p: "/runs", d: "aidream", a: "guest", o: "optional", n: "workflows.list_runs" };
|
|
220
220
|
function listRuns(api, args, options) {
|
|
@@ -222,7 +222,7 @@ function listRuns(api, args, options) {
|
|
|
222
222
|
}
|
|
223
223
|
var $streamRunAnnouncements = { m: "GET", p: "/runs/stream", d: "aidream", a: "guest", o: "optional", s: "sse", n: "workflows.stream_run_announcements" };
|
|
224
224
|
function streamRunAnnouncements(api, args, options) {
|
|
225
|
-
return
|
|
225
|
+
return chunkSPASYIUH_cjs.openStream(api, $streamRunAnnouncements, args, options);
|
|
226
226
|
}
|
|
227
227
|
var $listWaitingRunsEndpoint = { m: "GET", p: "/runs/waiting", d: "aidream", a: "guest", o: "optional", n: "workflows.list_waiting_runs_endpoint" };
|
|
228
228
|
function listWaitingRunsEndpoint(api, args, options) {
|
|
@@ -242,7 +242,7 @@ function pauseRun(api, args, options) {
|
|
|
242
242
|
}
|
|
243
243
|
var $resumePausedRun = { m: "POST", p: "/runs/{run_id}/resume-paused", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.resume_paused_run" };
|
|
244
244
|
function resumePausedRun(api, args, options) {
|
|
245
|
-
return
|
|
245
|
+
return chunkSPASYIUH_cjs.openStream(api, $resumePausedRun, args, options);
|
|
246
246
|
}
|
|
247
247
|
var $injectRun = { m: "POST", p: "/runs/{run_id}/inject", d: "aidream", a: "guest", o: "required", n: "workflows.inject_run" };
|
|
248
248
|
function injectRun(api, args, options) {
|
|
@@ -290,7 +290,7 @@ function streamRunEvents(api, args, options) {
|
|
|
290
290
|
}
|
|
291
291
|
var $streamRunDebug = { m: "GET", p: "/runs/{run_id}/stream/debug", d: "aidream", a: "guest", o: "optional", s: "sse", n: "workflows.stream_run_debug" };
|
|
292
292
|
function streamRunDebug(api, args, options) {
|
|
293
|
-
return
|
|
293
|
+
return chunkSPASYIUH_cjs.openStream(api, $streamRunDebug, args, options);
|
|
294
294
|
}
|
|
295
295
|
var $listRunEvents = { m: "GET", p: "/runs/{run_id}/events", d: "aidream", a: "guest", o: "optional", n: "workflows.list_run_events" };
|
|
296
296
|
function listRunEvents(api, args, options) {
|
|
@@ -346,7 +346,7 @@ function getSystemRun(api, args, options) {
|
|
|
346
346
|
}
|
|
347
347
|
var $startSystemRun = { m: "POST", p: "/workflows/system/{key}/runs", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_system_run" };
|
|
348
348
|
function startSystemRun(api, args, options) {
|
|
349
|
-
return
|
|
349
|
+
return chunkSPASYIUH_cjs.openStream(api, $startSystemRun, args, options);
|
|
350
350
|
}
|
|
351
351
|
var $createBuilderWorkflow = { m: "POST", p: "/workflow-builder/workflows", d: "aidream", a: "guest", o: "required", n: "workflows.create_builder_workflow" };
|
|
352
352
|
function createBuilderWorkflow(api, args, options) {
|
|
@@ -450,7 +450,7 @@ function dissolvePlan(api, args, options) {
|
|
|
450
450
|
}
|
|
451
451
|
var $planAssist = { m: "POST", p: "/plans/{plan_id}/assist", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.plan_assist" };
|
|
452
452
|
function planAssist(api, args, options) {
|
|
453
|
-
return
|
|
453
|
+
return chunkSPASYIUH_cjs.openStream(api, $planAssist, args, options);
|
|
454
454
|
}
|
|
455
455
|
var $syncPlanAnchor = { m: "POST", p: "/plans/{plan_id}/sync", d: "aidream", a: "guest", o: "required", n: "workflows.sync_plan_anchor" };
|
|
456
456
|
function syncPlanAnchor(api, args, options) {
|
|
@@ -470,7 +470,7 @@ function applyWorkflowPatchEndpoint(api, args, options) {
|
|
|
470
470
|
}
|
|
471
471
|
var $runSuggestions = { m: "POST", p: "/runs/{run_id}/suggestions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.run_suggestions" };
|
|
472
472
|
function runSuggestions(api, args, options) {
|
|
473
|
-
return
|
|
473
|
+
return chunkSPASYIUH_cjs.openStream(api, $runSuggestions, args, options);
|
|
474
474
|
}
|
|
475
475
|
var $getExtractProposal = { m: "GET", p: "/workflows/{definition_id}/extract-proposal", d: "aidream", a: "guest", o: "optional", n: "workflows.get_extract_proposal" };
|
|
476
476
|
function getExtractProposal(api, args, options) {
|
|
@@ -514,11 +514,11 @@ function getPublicWorkflow(api, args, options) {
|
|
|
514
514
|
}
|
|
515
515
|
var $startComparison = { m: "POST", p: "/workflows/comparisons", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_comparison" };
|
|
516
516
|
function startComparison(api, args, options) {
|
|
517
|
-
return
|
|
517
|
+
return chunkSPASYIUH_cjs.openStream(api, $startComparison, args, options);
|
|
518
518
|
}
|
|
519
519
|
var $rerunComparisonArm = { m: "POST", p: "/workflows/comparisons/{comparison_id}/arms/{arm_index}/rerun", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.rerun_comparison_arm" };
|
|
520
520
|
function rerunComparisonArm(api, args, options) {
|
|
521
|
-
return
|
|
521
|
+
return chunkSPASYIUH_cjs.openStream(api, $rerunComparisonArm, args, options);
|
|
522
522
|
}
|
|
523
523
|
var $validateCron = { m: "POST", p: "/scheduling/validate-cron", d: "aidream", a: "guest", o: "required", n: "workflows.validate_cron" };
|
|
524
524
|
function validateCron(api, args, options) {
|