@ai-matrx/api 0.1.4 → 0.1.6
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 +13 -0
- package/dist/account.d.cts +2 -2
- package/dist/account.d.ts +2 -2
- package/dist/agents.cjs +11 -12
- package/dist/agents.d.cts +2 -2
- package/dist/agents.d.ts +2 -2
- package/dist/agents.js +1 -2
- package/dist/ai.cjs +2 -3
- package/dist/ai.d.cts +2 -2
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +1 -2
- package/dist/apps.cjs +5 -6
- package/dist/apps.d.cts +2 -2
- package/dist/apps.d.ts +2 -2
- package/dist/apps.js +1 -2
- package/dist/architecture.cjs +10 -11
- package/dist/architecture.d.cts +2 -2
- package/dist/architecture.d.ts +2 -2
- package/dist/architecture.js +1 -2
- package/dist/audio.cjs +4 -5
- package/dist/audio.d.cts +2 -2
- package/dist/audio.d.ts +2 -2
- package/dist/audio.js +1 -2
- package/dist/chat.cjs +11 -12
- package/dist/chat.d.cts +2 -2
- package/dist/chat.d.ts +2 -2
- package/dist/chat.js +1 -2
- package/dist/{chunk-6UOESA3L.js → chunk-2FJPWNXG.js} +1 -3
- package/dist/chunk-K27FH34N.js +1 -0
- package/dist/chunk-PJXXT3GB.cjs +12 -0
- package/dist/{chunk-DMJ3ZRN7.cjs → chunk-UO3H55R3.cjs} +5 -7
- package/dist/code.cjs +6 -7
- package/dist/code.d.cts +2 -2
- package/dist/code.d.ts +2 -2
- package/dist/code.js +1 -2
- package/dist/commerce.d.cts +2 -2
- package/dist/commerce.d.ts +2 -2
- package/dist/communications.cjs +4 -5
- package/dist/communications.d.cts +2 -2
- package/dist/communications.d.ts +2 -2
- package/dist/communications.js +1 -2
- package/dist/computer.cjs +3 -4
- package/dist/computer.d.cts +2 -2
- package/dist/computer.d.ts +2 -2
- package/dist/computer.js +1 -2
- package/dist/content.cjs +4 -5
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +1 -2
- package/dist/credentials.cjs +1 -19
- package/dist/credentials.d.cts +1 -82
- package/dist/credentials.d.ts +1 -82
- package/dist/credentials.js +1 -1
- package/dist/crm.cjs +2 -3
- package/dist/crm.d.cts +2 -2
- package/dist/crm.d.ts +2 -2
- package/dist/crm.js +1 -2
- package/dist/data.d.cts +2 -2
- package/dist/data.d.ts +2 -2
- package/dist/education.cjs +4 -5
- package/dist/education.d.cts +2 -2
- package/dist/education.d.ts +2 -2
- package/dist/education.js +1 -2
- package/dist/files.cjs +20 -21
- package/dist/files.d.cts +2 -2
- package/dist/files.d.ts +2 -2
- package/dist/files.js +1 -2
- package/dist/human-resources.d.cts +2 -2
- package/dist/human-resources.d.ts +2 -2
- package/dist/{index-BUb7OxrB.d.ts → index-Xx6L_pWk.d.cts} +1 -1
- package/dist/{index-DCyEAVSW.d.cts → index-Xx6L_pWk.d.ts} +1 -1
- package/dist/index.cjs +57 -74
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -6
- package/dist/integrations.cjs +3 -4
- package/dist/integrations.d.cts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.js +1 -2
- package/dist/intelligence.cjs +6 -7
- package/dist/intelligence.d.cts +2 -2
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +1 -2
- package/dist/knowledge.cjs +42 -43
- package/dist/knowledge.d.cts +2 -2
- package/dist/knowledge.d.ts +2 -2
- package/dist/knowledge.js +1 -2
- package/dist/legal.cjs +6 -7
- package/dist/legal.d.cts +2 -2
- package/dist/legal.d.ts +2 -2
- package/dist/legal.js +1 -2
- package/dist/marketing.cjs +76 -77
- package/dist/marketing.d.cts +2 -2
- package/dist/marketing.d.ts +2 -2
- package/dist/marketing.js +1 -2
- package/dist/masterwork.cjs +32 -33
- package/dist/masterwork.d.cts +2 -2
- package/dist/masterwork.d.ts +2 -2
- package/dist/masterwork.js +1 -2
- package/dist/media.cjs +11 -12
- package/dist/media.d.cts +2 -2
- package/dist/media.d.ts +2 -2
- package/dist/media.js +1 -2
- package/dist/platform.cjs +3 -4
- package/dist/platform.d.cts +2 -2
- package/dist/platform.d.ts +2 -2
- package/dist/platform.js +1 -2
- package/dist/publish.cjs +7 -8
- package/dist/publish.d.cts +2 -2
- package/dist/publish.d.ts +2 -2
- package/dist/publish.js +1 -2
- package/dist/stream.cjs +10 -11
- package/dist/stream.d.cts +2 -2
- package/dist/stream.d.ts +2 -2
- package/dist/stream.js +1 -2
- package/dist/web.cjs +26 -27
- package/dist/web.d.cts +2 -2
- package/dist/web.d.ts +2 -2
- package/dist/web.js +1 -2
- package/dist/workflows.cjs +13 -14
- package/dist/workflows.d.cts +2 -2
- package/dist/workflows.d.ts +2 -2
- package/dist/workflows.js +1 -2
- package/package.json +6 -6
- package/dist/chunk-5WJLKYH6.cjs +0 -48
- package/dist/chunk-VTZKJMSY.js +0 -43
package/dist/web.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
|
-
require('./chunk-5WJLKYH6.cjs');
|
|
6
5
|
|
|
7
6
|
// src/generated/web.ts
|
|
8
7
|
var $linkPreview = { m: "GET", p: "/web/link-preview", d: "aidream", a: "guest", o: "required", n: "web.link_preview" };
|
|
@@ -67,19 +66,19 @@ function browserInspect(api, args, options) {
|
|
|
67
66
|
}
|
|
68
67
|
var $quickScrape = { m: "POST", p: "/scraper/quick-scrape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "web.quick_scrape" };
|
|
69
68
|
function quickScrape(api, args, options) {
|
|
70
|
-
return
|
|
69
|
+
return chunkUO3H55R3_cjs.openStream(api, $quickScrape, args, options);
|
|
71
70
|
}
|
|
72
71
|
var $searchKeywords = { m: "POST", p: "/scraper/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "web.search_keywords" };
|
|
73
72
|
function searchKeywords(api, args, options) {
|
|
74
|
-
return
|
|
73
|
+
return chunkUO3H55R3_cjs.openStream(api, $searchKeywords, args, options);
|
|
75
74
|
}
|
|
76
75
|
var $searchAndScrape = { m: "POST", p: "/scraper/search-and-scrape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "web.search_and_scrape" };
|
|
77
76
|
function searchAndScrape(api, args, options) {
|
|
78
|
-
return
|
|
77
|
+
return chunkUO3H55R3_cjs.openStream(api, $searchAndScrape, args, options);
|
|
79
78
|
}
|
|
80
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" };
|
|
81
80
|
function searchAndScrapeLimited(api, args, options) {
|
|
82
|
-
return
|
|
81
|
+
return chunkUO3H55R3_cjs.openStream(api, $searchAndScrapeLimited, args, options);
|
|
83
82
|
}
|
|
84
83
|
var $batchScrape = { m: "POST", p: "/scraper/batch", d: "aidream", a: "guest", o: "required", n: "web.batch_scrape" };
|
|
85
84
|
function batchScrape(api, args, options) {
|
|
@@ -291,7 +290,7 @@ function browserRuntimeStatus(api, args, options) {
|
|
|
291
290
|
}
|
|
292
291
|
var $installBrowserRuntime = { m: "POST", p: "/browser-runtime/install", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "web.install_browser_runtime" };
|
|
293
292
|
function installBrowserRuntime(api, args, options) {
|
|
294
|
-
return
|
|
293
|
+
return chunkUO3H55R3_cjs.openStream(api, $installBrowserRuntime, args, options);
|
|
295
294
|
}
|
|
296
295
|
var $remoteScraperStatus = { m: "GET", p: "/remote-scraper/status", d: "matrx-local", a: "public", o: "exempt", n: "web.remote_scraper_status" };
|
|
297
296
|
function remoteScraperStatus(api, args, options) {
|
|
@@ -303,7 +302,7 @@ function remoteScrape(api, args, options) {
|
|
|
303
302
|
}
|
|
304
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" };
|
|
305
304
|
function remoteScrapeStream(api, args, options) {
|
|
306
|
-
return
|
|
305
|
+
return chunkUO3H55R3_cjs.openStream(api, $remoteScrapeStream, args, options);
|
|
307
306
|
}
|
|
308
307
|
var $remoteSearch = { m: "POST", p: "/remote-scraper/search", d: "matrx-local", a: "loopback_token", o: "exempt", n: "web.remote_search" };
|
|
309
308
|
function remoteSearch(api, args, options) {
|
|
@@ -315,7 +314,7 @@ function remoteSearchAndScrape(api, args, options) {
|
|
|
315
314
|
}
|
|
316
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" };
|
|
317
316
|
function remoteSearchAndScrapeStream(api, args, options) {
|
|
318
|
-
return
|
|
317
|
+
return chunkUO3H55R3_cjs.openStream(api, $remoteSearchAndScrapeStream, args, options);
|
|
319
318
|
}
|
|
320
319
|
var $remoteResearch = { m: "POST", p: "/remote-scraper/research", d: "matrx-local", a: "loopback_token", o: "exempt", n: "web.remote_research" };
|
|
321
320
|
function remoteResearch(api, args, options) {
|
|
@@ -323,7 +322,7 @@ function remoteResearch(api, args, options) {
|
|
|
323
322
|
}
|
|
324
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" };
|
|
325
324
|
function remoteResearchStream(api, args, options) {
|
|
326
|
-
return
|
|
325
|
+
return chunkUO3H55R3_cjs.openStream(api, $remoteResearchStream, args, options);
|
|
327
326
|
}
|
|
328
327
|
var $saveContent = { m: "POST", p: "/remote-scraper/content/save", d: "matrx-local", a: "loopback_token", o: "exempt", n: "web.save_content" };
|
|
329
328
|
function saveContent(api, args, options) {
|
|
@@ -467,19 +466,19 @@ function browserInspectOnScraper(api, args, options) {
|
|
|
467
466
|
}
|
|
468
467
|
var $quickScrapeOnScraper = { m: "POST", p: "/api/scraper/quick-scrape", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.quick_scrape" };
|
|
469
468
|
function quickScrapeOnScraper(api, args, options) {
|
|
470
|
-
return
|
|
469
|
+
return chunkUO3H55R3_cjs.openStream(api, $quickScrapeOnScraper, args, options);
|
|
471
470
|
}
|
|
472
471
|
var $searchKeywordsOnScraper = { m: "POST", p: "/api/scraper/search", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.search_keywords" };
|
|
473
472
|
function searchKeywordsOnScraper(api, args, options) {
|
|
474
|
-
return
|
|
473
|
+
return chunkUO3H55R3_cjs.openStream(api, $searchKeywordsOnScraper, args, options);
|
|
475
474
|
}
|
|
476
475
|
var $searchAndScrapeOnScraper = { m: "POST", p: "/api/scraper/search-and-scrape", d: "scraper", a: "user", o: "required", s: "ndjson", n: "web.search_and_scrape" };
|
|
477
476
|
function searchAndScrapeOnScraper(api, args, options) {
|
|
478
|
-
return
|
|
477
|
+
return chunkUO3H55R3_cjs.openStream(api, $searchAndScrapeOnScraper, args, options);
|
|
479
478
|
}
|
|
480
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" };
|
|
481
480
|
function searchAndScrapeLimitedOnScraper(api, args, options) {
|
|
482
|
-
return
|
|
481
|
+
return chunkUO3H55R3_cjs.openStream(api, $searchAndScrapeLimitedOnScraper, args, options);
|
|
483
482
|
}
|
|
484
483
|
var $batchScrapeOnScraper = { m: "POST", p: "/api/scraper/batch", d: "scraper", a: "user", o: "required", n: "web.batch_scrape" };
|
|
485
484
|
function batchScrapeOnScraper(api, args, options) {
|
|
@@ -591,51 +590,51 @@ function preview(api, args, options) {
|
|
|
591
590
|
}
|
|
592
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" };
|
|
593
592
|
function startCrawl(api, args, options) {
|
|
594
|
-
return
|
|
593
|
+
return chunkUO3H55R3_cjs.openStream(api, $startCrawl, args, options);
|
|
595
594
|
}
|
|
596
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" };
|
|
597
596
|
function resumeCrawl(api, args, options) {
|
|
598
|
-
return
|
|
597
|
+
return chunkUO3H55R3_cjs.openStream(api, $resumeCrawl, args, options);
|
|
599
598
|
}
|
|
600
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" };
|
|
601
600
|
function bootstrapSite(api, args, options) {
|
|
602
|
-
return
|
|
601
|
+
return chunkUO3H55R3_cjs.openStream(api, $bootstrapSite, args, options);
|
|
603
602
|
}
|
|
604
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" };
|
|
605
604
|
function fetchPage(api, args, options) {
|
|
606
|
-
return
|
|
605
|
+
return chunkUO3H55R3_cjs.openStream(api, $fetchPage, args, options);
|
|
607
606
|
}
|
|
608
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" };
|
|
609
608
|
function initializeSite(api, args, options) {
|
|
610
|
-
return
|
|
609
|
+
return chunkUO3H55R3_cjs.openStream(api, $initializeSite, args, options);
|
|
611
610
|
}
|
|
612
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" };
|
|
613
612
|
function syncSitemaps(api, args, options) {
|
|
614
|
-
return
|
|
613
|
+
return chunkUO3H55R3_cjs.openStream(api, $syncSitemaps, args, options);
|
|
615
614
|
}
|
|
616
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" };
|
|
617
616
|
function syncGsc(api, args, options) {
|
|
618
|
-
return
|
|
617
|
+
return chunkUO3H55R3_cjs.openStream(api, $syncGsc, args, options);
|
|
619
618
|
}
|
|
620
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" };
|
|
621
620
|
function resolveLinks(api, args, options) {
|
|
622
|
-
return
|
|
621
|
+
return chunkUO3H55R3_cjs.openStream(api, $resolveLinks, args, options);
|
|
623
622
|
}
|
|
624
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" };
|
|
625
624
|
function scoreLinks(api, args, options) {
|
|
626
|
-
return
|
|
625
|
+
return chunkUO3H55R3_cjs.openStream(api, $scoreLinks, args, options);
|
|
627
626
|
}
|
|
628
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" };
|
|
629
628
|
function reconcileUrls(api, args, options) {
|
|
630
|
-
return
|
|
629
|
+
return chunkUO3H55R3_cjs.openStream(api, $reconcileUrls, args, options);
|
|
631
630
|
}
|
|
632
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" };
|
|
633
632
|
function checkLinks(api, args, options) {
|
|
634
|
-
return
|
|
633
|
+
return chunkUO3H55R3_cjs.openStream(api, $checkLinks, args, options);
|
|
635
634
|
}
|
|
636
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" };
|
|
637
636
|
function analyzeSite(api, args, options) {
|
|
638
|
-
return
|
|
637
|
+
return chunkUO3H55R3_cjs.openStream(api, $analyzeSite, args, options);
|
|
639
638
|
}
|
|
640
639
|
var $cancelCrawl = { m: "POST", p: "/api/scraper/crawler/sessions/{session_id}/cancel", d: "scraper", a: "user", o: "required", n: "web.cancel_crawl" };
|
|
641
640
|
function cancelCrawl(api, args, options) {
|
|
@@ -695,7 +694,7 @@ function previewRecrawlConfig(api, args, options) {
|
|
|
695
694
|
}
|
|
696
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" };
|
|
697
696
|
function rescrapeSite(api, args, options) {
|
|
698
|
-
return
|
|
697
|
+
return chunkUO3H55R3_cjs.openStream(api, $rescrapeSite, args, options);
|
|
699
698
|
}
|
|
700
699
|
var $healthOnScraper = { m: "GET", p: "/health", d: "scraper", a: "public", o: "exempt", n: "web.health" };
|
|
701
700
|
function healthOnScraper(api, args, options) {
|
package/dist/web.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
|
-
import '
|
|
3
|
+
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
package/dist/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
|
-
import '
|
|
3
|
+
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
package/dist/web.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
1
|
+
import { openStream } from './chunk-2FJPWNXG.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
|
-
import './chunk-VTZKJMSY.js';
|
|
4
3
|
|
|
5
4
|
// src/generated/web.ts
|
|
6
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,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
|
-
require('./chunk-5WJLKYH6.cjs');
|
|
6
5
|
|
|
7
6
|
// src/generated/workflows.ts
|
|
8
7
|
var $runAssignments = { m: "POST", p: "/ai/agent-assignments", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.run_assignments" };
|
|
9
8
|
function runAssignments(api, args, options) {
|
|
10
|
-
return
|
|
9
|
+
return chunkUO3H55R3_cjs.openStream(api, $runAssignments, args, options);
|
|
11
10
|
}
|
|
12
11
|
var $getSession = { m: "GET", p: "/ai/agent-assignments/sessions/{session_id}", d: "aidream", a: "guest", o: "required", n: "workflows.get_session" };
|
|
13
12
|
function getSession(api, args, options) {
|
|
@@ -131,7 +130,7 @@ function validateWorkflow(api, args, options) {
|
|
|
131
130
|
}
|
|
132
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" };
|
|
133
132
|
function testSingleNode(api, args, options) {
|
|
134
|
-
return
|
|
133
|
+
return chunkUO3H55R3_cjs.openStream(api, $testSingleNode, args, options);
|
|
135
134
|
}
|
|
136
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" };
|
|
137
136
|
function getNodeDataSlots(api, args, options) {
|
|
@@ -211,11 +210,11 @@ function listRunsForWorkflow(api, args, options) {
|
|
|
211
210
|
}
|
|
212
211
|
var $startWorkflowRun = { m: "POST", p: "/workflows/{definition_id}/runs", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_workflow_run" };
|
|
213
212
|
function startWorkflowRun(api, args, options) {
|
|
214
|
-
return
|
|
213
|
+
return chunkUO3H55R3_cjs.openStream(api, $startWorkflowRun, args, options);
|
|
215
214
|
}
|
|
216
215
|
var $resumeWorkflowRun = { m: "POST", p: "/runs/{run_id}/resume", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.resume_workflow_run" };
|
|
217
216
|
function resumeWorkflowRun(api, args, options) {
|
|
218
|
-
return
|
|
217
|
+
return chunkUO3H55R3_cjs.openStream(api, $resumeWorkflowRun, args, options);
|
|
219
218
|
}
|
|
220
219
|
var $listRuns = { m: "GET", p: "/runs", d: "aidream", a: "guest", o: "optional", n: "workflows.list_runs" };
|
|
221
220
|
function listRuns(api, args, options) {
|
|
@@ -223,7 +222,7 @@ function listRuns(api, args, options) {
|
|
|
223
222
|
}
|
|
224
223
|
var $streamRunAnnouncements = { m: "GET", p: "/runs/stream", d: "aidream", a: "guest", o: "optional", s: "sse", n: "workflows.stream_run_announcements" };
|
|
225
224
|
function streamRunAnnouncements(api, args, options) {
|
|
226
|
-
return
|
|
225
|
+
return chunkUO3H55R3_cjs.openStream(api, $streamRunAnnouncements, args, options);
|
|
227
226
|
}
|
|
228
227
|
var $listWaitingRunsEndpoint = { m: "GET", p: "/runs/waiting", d: "aidream", a: "guest", o: "optional", n: "workflows.list_waiting_runs_endpoint" };
|
|
229
228
|
function listWaitingRunsEndpoint(api, args, options) {
|
|
@@ -243,7 +242,7 @@ function pauseRun(api, args, options) {
|
|
|
243
242
|
}
|
|
244
243
|
var $resumePausedRun = { m: "POST", p: "/runs/{run_id}/resume-paused", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.resume_paused_run" };
|
|
245
244
|
function resumePausedRun(api, args, options) {
|
|
246
|
-
return
|
|
245
|
+
return chunkUO3H55R3_cjs.openStream(api, $resumePausedRun, args, options);
|
|
247
246
|
}
|
|
248
247
|
var $injectRun = { m: "POST", p: "/runs/{run_id}/inject", d: "aidream", a: "guest", o: "required", n: "workflows.inject_run" };
|
|
249
248
|
function injectRun(api, args, options) {
|
|
@@ -291,7 +290,7 @@ function streamRunEvents(api, args, options) {
|
|
|
291
290
|
}
|
|
292
291
|
var $streamRunDebug = { m: "GET", p: "/runs/{run_id}/stream/debug", d: "aidream", a: "guest", o: "optional", s: "sse", n: "workflows.stream_run_debug" };
|
|
293
292
|
function streamRunDebug(api, args, options) {
|
|
294
|
-
return
|
|
293
|
+
return chunkUO3H55R3_cjs.openStream(api, $streamRunDebug, args, options);
|
|
295
294
|
}
|
|
296
295
|
var $listRunEvents = { m: "GET", p: "/runs/{run_id}/events", d: "aidream", a: "guest", o: "optional", n: "workflows.list_run_events" };
|
|
297
296
|
function listRunEvents(api, args, options) {
|
|
@@ -347,7 +346,7 @@ function getSystemRun(api, args, options) {
|
|
|
347
346
|
}
|
|
348
347
|
var $startSystemRun = { m: "POST", p: "/workflows/system/{key}/runs", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_system_run" };
|
|
349
348
|
function startSystemRun(api, args, options) {
|
|
350
|
-
return
|
|
349
|
+
return chunkUO3H55R3_cjs.openStream(api, $startSystemRun, args, options);
|
|
351
350
|
}
|
|
352
351
|
var $createBuilderWorkflow = { m: "POST", p: "/workflow-builder/workflows", d: "aidream", a: "guest", o: "required", n: "workflows.create_builder_workflow" };
|
|
353
352
|
function createBuilderWorkflow(api, args, options) {
|
|
@@ -451,7 +450,7 @@ function dissolvePlan(api, args, options) {
|
|
|
451
450
|
}
|
|
452
451
|
var $planAssist = { m: "POST", p: "/plans/{plan_id}/assist", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.plan_assist" };
|
|
453
452
|
function planAssist(api, args, options) {
|
|
454
|
-
return
|
|
453
|
+
return chunkUO3H55R3_cjs.openStream(api, $planAssist, args, options);
|
|
455
454
|
}
|
|
456
455
|
var $syncPlanAnchor = { m: "POST", p: "/plans/{plan_id}/sync", d: "aidream", a: "guest", o: "required", n: "workflows.sync_plan_anchor" };
|
|
457
456
|
function syncPlanAnchor(api, args, options) {
|
|
@@ -471,7 +470,7 @@ function applyWorkflowPatchEndpoint(api, args, options) {
|
|
|
471
470
|
}
|
|
472
471
|
var $runSuggestions = { m: "POST", p: "/runs/{run_id}/suggestions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.run_suggestions" };
|
|
473
472
|
function runSuggestions(api, args, options) {
|
|
474
|
-
return
|
|
473
|
+
return chunkUO3H55R3_cjs.openStream(api, $runSuggestions, args, options);
|
|
475
474
|
}
|
|
476
475
|
var $getExtractProposal = { m: "GET", p: "/workflows/{definition_id}/extract-proposal", d: "aidream", a: "guest", o: "optional", n: "workflows.get_extract_proposal" };
|
|
477
476
|
function getExtractProposal(api, args, options) {
|
|
@@ -515,11 +514,11 @@ function getPublicWorkflow(api, args, options) {
|
|
|
515
514
|
}
|
|
516
515
|
var $startComparison = { m: "POST", p: "/workflows/comparisons", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_comparison" };
|
|
517
516
|
function startComparison(api, args, options) {
|
|
518
|
-
return
|
|
517
|
+
return chunkUO3H55R3_cjs.openStream(api, $startComparison, args, options);
|
|
519
518
|
}
|
|
520
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" };
|
|
521
520
|
function rerunComparisonArm(api, args, options) {
|
|
522
|
-
return
|
|
521
|
+
return chunkUO3H55R3_cjs.openStream(api, $rerunComparisonArm, args, options);
|
|
523
522
|
}
|
|
524
523
|
var $validateCron = { m: "POST", p: "/scheduling/validate-cron", d: "aidream", a: "guest", o: "required", n: "workflows.validate_cron" };
|
|
525
524
|
function validateCron(api, args, options) {
|
package/dist/workflows.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.cjs';
|
|
2
2
|
import { JsonValue, RunNowResponse, ClientContext, UserOverrides, ContextAnchor, ComputeNextDueResponse, ValidateCronRequest, ValidateCronResponse } from './schemas.cjs';
|
|
3
|
-
import '
|
|
3
|
+
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
package/dist/workflows.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.js';
|
|
2
2
|
import { JsonValue, RunNowResponse, ClientContext, UserOverrides, ContextAnchor, ComputeNextDueResponse, ValidateCronRequest, ValidateCronResponse } from './schemas.js';
|
|
3
|
-
import '
|
|
3
|
+
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
package/dist/workflows.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
1
|
+
import { openStream } from './chunk-2FJPWNXG.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
|
-
import './chunk-VTZKJMSY.js';
|
|
4
3
|
|
|
5
4
|
// src/generated/workflows.ts
|
|
6
5
|
var $runAssignments = { m: "POST", p: "/ai/agent-assignments", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.run_assignments" };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "The one way every app talks to every AI Matrx server: generated from the server contract, split by domain so an app loads only the requests it calls. Transport, five credential kinds, organization binding, streams, job follow. No screens, app state or database code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -364,7 +364,8 @@
|
|
|
364
364
|
"./package.json": "./package.json"
|
|
365
365
|
},
|
|
366
366
|
"dependencies": {
|
|
367
|
-
"@ai-matrx/kit": "latest"
|
|
367
|
+
"@ai-matrx/kit": "latest",
|
|
368
|
+
"@ai-matrx/auth": "latest"
|
|
368
369
|
},
|
|
369
370
|
"devDependencies": {
|
|
370
371
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
@@ -373,8 +374,7 @@
|
|
|
373
374
|
"publint": "^0.3.24",
|
|
374
375
|
"tsup": "^8.5.1",
|
|
375
376
|
"typescript": "^6.0.3",
|
|
376
|
-
"vitest": "^5.0.1"
|
|
377
|
-
"@ai-matrx/auth": "0.1.0"
|
|
377
|
+
"vitest": "^5.0.1"
|
|
378
378
|
},
|
|
379
379
|
"publishConfig": {
|
|
380
380
|
"access": "public",
|
|
@@ -411,11 +411,11 @@
|
|
|
411
411
|
"check:generated": "node scripts/generate.mjs --check",
|
|
412
412
|
"build": "pnpm clean && tsup && node ../scripts/check-node-env-not-inlined.mjs",
|
|
413
413
|
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
414
|
-
"check:package": "node scripts/generate.mjs --check && pnpm build && node ../scripts/check-exports-agreement.mjs && publint && pnpm check:sections && pnpm verify:tarball",
|
|
414
|
+
"check:package": "node scripts/generate.mjs --check && pnpm build && node ../scripts/check-exports-agreement.mjs && publint && pnpm check:sections && pnpm verify:tarball && node ../scripts/check-tarball-relative-imports.mjs --self-test && node ../scripts/check-tarball-relative-imports.mjs --pack .",
|
|
415
415
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
416
416
|
"test": "vitest run",
|
|
417
417
|
"check:sections": "node scripts/section-probe.mjs \"$PWD\"",
|
|
418
418
|
"verify:tarball": "node scripts/verify-tarball.mjs"
|
|
419
419
|
},
|
|
420
|
-
"gitHead": "
|
|
420
|
+
"gitHead": "52e133afe2930ba938d0aacb7d002e584fcaaae7"
|
|
421
421
|
}
|
package/dist/chunk-5WJLKYH6.cjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// ../auth/src/credentials.ts
|
|
4
|
-
var MATRX_HEADERS = {
|
|
5
|
-
authorization: "Authorization",
|
|
6
|
-
fingerprint: "X-Fingerprint-ID",
|
|
7
|
-
organization: "X-Organization-Id",
|
|
8
|
-
actingUser: "X-Matrx-User-Id",
|
|
9
|
-
requestId: "X-Request-Id"
|
|
10
|
-
};
|
|
11
|
-
var API_KEY_PREFIX = "mx_";
|
|
12
|
-
function credentialToHeaders(credential) {
|
|
13
|
-
if (credential === null) return {};
|
|
14
|
-
switch (credential.kind) {
|
|
15
|
-
case "user":
|
|
16
|
-
return { [MATRX_HEADERS.authorization]: `Bearer ${credential.accessToken}` };
|
|
17
|
-
case "guest":
|
|
18
|
-
return { [MATRX_HEADERS.fingerprint]: credential.fingerprintId };
|
|
19
|
-
case "scoped":
|
|
20
|
-
return { [MATRX_HEADERS.authorization]: `Bearer ${credential.token}` };
|
|
21
|
-
case "service": {
|
|
22
|
-
const header = credential.secretHeader ?? MATRX_HEADERS.authorization;
|
|
23
|
-
const headers = header.toLowerCase() === "authorization" ? { [MATRX_HEADERS.authorization]: `Bearer ${credential.secret}` } : { [header]: credential.secret };
|
|
24
|
-
if (credential.actingUserId) headers[MATRX_HEADERS.actingUser] = credential.actingUserId;
|
|
25
|
-
return headers;
|
|
26
|
-
}
|
|
27
|
-
case "api_key": {
|
|
28
|
-
if (!credential.apiKey.startsWith(API_KEY_PREFIX)) {
|
|
29
|
-
throw new Error(
|
|
30
|
-
`credentialToHeaders: an api_key credential must start with "${API_KEY_PREFIX}" (AI Matrx API keys look like mx_live_...)`
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
return { [MATRX_HEADERS.authorization]: `Bearer ${credential.apiKey}` };
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function toCredentialsPort(setting) {
|
|
38
|
-
if (setting === void 0 || setting === null) return { get: async () => null };
|
|
39
|
-
if (typeof setting === "function") return { get: async () => setting() };
|
|
40
|
-
if ("get" in setting && typeof setting.get === "function") return setting;
|
|
41
|
-
const fixed = setting;
|
|
42
|
-
return { get: async () => fixed };
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
exports.API_KEY_PREFIX = API_KEY_PREFIX;
|
|
46
|
-
exports.MATRX_HEADERS = MATRX_HEADERS;
|
|
47
|
-
exports.credentialToHeaders = credentialToHeaders;
|
|
48
|
-
exports.toCredentialsPort = toCredentialsPort;
|
package/dist/chunk-VTZKJMSY.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// ../auth/src/credentials.ts
|
|
2
|
-
var MATRX_HEADERS = {
|
|
3
|
-
authorization: "Authorization",
|
|
4
|
-
fingerprint: "X-Fingerprint-ID",
|
|
5
|
-
organization: "X-Organization-Id",
|
|
6
|
-
actingUser: "X-Matrx-User-Id",
|
|
7
|
-
requestId: "X-Request-Id"
|
|
8
|
-
};
|
|
9
|
-
var API_KEY_PREFIX = "mx_";
|
|
10
|
-
function credentialToHeaders(credential) {
|
|
11
|
-
if (credential === null) return {};
|
|
12
|
-
switch (credential.kind) {
|
|
13
|
-
case "user":
|
|
14
|
-
return { [MATRX_HEADERS.authorization]: `Bearer ${credential.accessToken}` };
|
|
15
|
-
case "guest":
|
|
16
|
-
return { [MATRX_HEADERS.fingerprint]: credential.fingerprintId };
|
|
17
|
-
case "scoped":
|
|
18
|
-
return { [MATRX_HEADERS.authorization]: `Bearer ${credential.token}` };
|
|
19
|
-
case "service": {
|
|
20
|
-
const header = credential.secretHeader ?? MATRX_HEADERS.authorization;
|
|
21
|
-
const headers = header.toLowerCase() === "authorization" ? { [MATRX_HEADERS.authorization]: `Bearer ${credential.secret}` } : { [header]: credential.secret };
|
|
22
|
-
if (credential.actingUserId) headers[MATRX_HEADERS.actingUser] = credential.actingUserId;
|
|
23
|
-
return headers;
|
|
24
|
-
}
|
|
25
|
-
case "api_key": {
|
|
26
|
-
if (!credential.apiKey.startsWith(API_KEY_PREFIX)) {
|
|
27
|
-
throw new Error(
|
|
28
|
-
`credentialToHeaders: an api_key credential must start with "${API_KEY_PREFIX}" (AI Matrx API keys look like mx_live_...)`
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
return { [MATRX_HEADERS.authorization]: `Bearer ${credential.apiKey}` };
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function toCredentialsPort(setting) {
|
|
36
|
-
if (setting === void 0 || setting === null) return { get: async () => null };
|
|
37
|
-
if (typeof setting === "function") return { get: async () => setting() };
|
|
38
|
-
if ("get" in setting && typeof setting.get === "function") return setting;
|
|
39
|
-
const fixed = setting;
|
|
40
|
-
return { get: async () => fixed };
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { API_KEY_PREFIX, MATRX_HEADERS, credentialToHeaders, toCredentialsPort };
|