@ai-matrx/api 0.1.29 → 0.1.30
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 +10 -1
- package/dist/account.d.cts +2 -2
- package/dist/account.d.ts +2 -2
- package/dist/agents.cjs +11 -11
- package/dist/agents.d.cts +2 -2
- package/dist/agents.d.ts +2 -2
- package/dist/agents.js +1 -1
- package/dist/ai.cjs +2 -2
- package/dist/ai.d.cts +2 -2
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +1 -1
- package/dist/apps.cjs +5 -5
- package/dist/apps.d.cts +2 -2
- package/dist/apps.d.ts +2 -2
- package/dist/apps.js +1 -1
- package/dist/architecture.cjs +12 -12
- package/dist/architecture.d.cts +2 -2
- package/dist/architecture.d.ts +2 -2
- package/dist/architecture.js +1 -1
- package/dist/audio.cjs +39 -39
- package/dist/audio.d.cts +2 -2
- package/dist/audio.d.ts +2 -2
- package/dist/audio.js +2 -2
- package/dist/chat.cjs +11 -11
- package/dist/chat.d.cts +14 -2
- package/dist/chat.d.ts +14 -2
- package/dist/chat.js +1 -1
- package/dist/{chunk-IAB7JCVA.js → chunk-35BH3TJW.js} +1 -1
- package/dist/{chunk-BI6C3CD7.cjs → chunk-FFXB3EDM.cjs} +3 -3
- package/dist/{chunk-Z2UOMPC4.js → chunk-I4AWZ7GN.js} +1 -1
- package/dist/{chunk-G3OJBGCU.cjs → chunk-ILAZVNEL.cjs} +1 -1
- package/dist/{chunk-BIHYNQOU.js → chunk-KZD6TVJ4.js} +1 -1
- package/dist/{chunk-VGXUUEFE.cjs → chunk-NH7VE36B.cjs} +4 -4
- package/dist/{chunk-QCDALTHR.js → chunk-RIIIDGZJ.js} +1 -1
- package/dist/{chunk-Q6BD7FVP.cjs → chunk-VU3BK4NY.cjs} +37 -37
- package/dist/code.cjs +6 -6
- package/dist/code.d.cts +2 -2
- package/dist/code.d.ts +2 -2
- package/dist/code.js +1 -1
- package/dist/commerce.d.cts +2 -2
- package/dist/commerce.d.ts +2 -2
- package/dist/communications.cjs +4 -4
- package/dist/communications.d.cts +4 -2
- package/dist/communications.d.ts +4 -2
- package/dist/communications.js +1 -1
- package/dist/computer.cjs +4 -4
- package/dist/computer.d.cts +2 -2
- package/dist/computer.d.ts +2 -2
- package/dist/computer.js +1 -1
- package/dist/content.cjs +4 -4
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +1 -1
- package/dist/crm.cjs +2 -2
- package/dist/crm.d.cts +2 -2
- package/dist/crm.d.ts +2 -2
- package/dist/crm.js +1 -1
- package/dist/data.cjs +4 -4
- package/dist/data.d.cts +2 -2
- package/dist/data.d.ts +2 -2
- package/dist/data.js +1 -1
- package/dist/education.cjs +4 -4
- package/dist/education.d.cts +2 -2
- package/dist/education.d.ts +2 -2
- package/dist/education.js +1 -1
- package/dist/files.cjs +228 -228
- package/dist/files.d.cts +2 -2
- package/dist/files.d.ts +2 -2
- package/dist/files.js +2 -2
- package/dist/human-resources.d.cts +2 -2
- package/dist/human-resources.d.ts +2 -2
- package/dist/{index-DyDNKgdB.d.cts → index-B6p8TJkh.d.cts} +2 -2
- package/dist/{index-DyDNKgdB.d.ts → index-B6p8TJkh.d.ts} +2 -2
- package/dist/index.cjs +58 -58
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/integrations.cjs +5 -5
- package/dist/integrations.d.cts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.js +1 -1
- package/dist/intelligence.cjs +16 -9
- package/dist/intelligence.d.cts +4 -3
- package/dist/intelligence.d.ts +4 -3
- package/dist/intelligence.js +11 -4
- package/dist/{keys.generated-DE-t9kzx.d.ts → keys.generated-B0M-0PPo.d.cts} +11 -4
- package/dist/{keys.generated-DE-t9kzx.d.cts → keys.generated-B0M-0PPo.d.ts} +11 -4
- package/dist/knowledge.cjs +42 -42
- package/dist/knowledge.d.cts +2 -2
- package/dist/knowledge.d.ts +2 -2
- package/dist/knowledge.js +1 -1
- package/dist/legal.cjs +6 -6
- package/dist/legal.d.cts +2 -2
- package/dist/legal.d.ts +2 -2
- package/dist/legal.js +1 -1
- package/dist/marketing.cjs +78 -78
- package/dist/marketing.d.cts +2 -2
- package/dist/marketing.d.ts +2 -2
- package/dist/marketing.js +1 -1
- package/dist/masterwork.cjs +32 -32
- package/dist/masterwork.d.cts +2 -2
- package/dist/masterwork.d.ts +2 -2
- package/dist/masterwork.js +1 -1
- package/dist/media.cjs +11 -11
- package/dist/media.d.cts +2 -2
- package/dist/media.d.ts +2 -2
- package/dist/media.js +1 -1
- package/dist/platform.cjs +27 -27
- package/dist/platform.d.cts +2 -2
- package/dist/platform.d.ts +2 -2
- package/dist/platform.js +2 -2
- package/dist/publish.cjs +7 -7
- package/dist/publish.d.cts +2 -2
- package/dist/publish.d.ts +2 -2
- package/dist/publish.js +1 -1
- package/dist/recording.cjs +17 -17
- package/dist/recording.js +4 -4
- package/dist/schemas.d.cts +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/stream.cjs +10 -10
- package/dist/stream.d.cts +1 -1
- package/dist/stream.d.ts +1 -1
- package/dist/stream.js +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/web.cjs +26 -26
- package/dist/web.d.cts +2 -2
- package/dist/web.d.ts +2 -2
- package/dist/web.js +1 -1
- package/dist/workflows.cjs +13 -13
- package/dist/workflows.d.cts +14 -2
- package/dist/workflows.d.ts +14 -2
- package/dist/workflows.js +1 -1
- package/package.json +2 -2
package/dist/workflows.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkILAZVNEL_cjs = require('./chunk-ILAZVNEL.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.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 chunkILAZVNEL_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 chunkILAZVNEL_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 chunkILAZVNEL_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 chunkILAZVNEL_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 chunkILAZVNEL_cjs.openStream(api, $streamRunAnnouncements, args, options);
|
|
226
226
|
}
|
|
227
227
|
var $listOpenGatesEndpoint = { m: "GET", p: "/runs/gates", d: "aidream", a: "guest", o: "optional", n: "workflows.list_open_gates_endpoint" };
|
|
228
228
|
function listOpenGatesEndpoint(api, args, options) {
|
|
@@ -246,7 +246,7 @@ function pauseRun(api, args, options) {
|
|
|
246
246
|
}
|
|
247
247
|
var $resumePausedRun = { m: "POST", p: "/runs/{run_id}/resume-paused", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.resume_paused_run" };
|
|
248
248
|
function resumePausedRun(api, args, options) {
|
|
249
|
-
return
|
|
249
|
+
return chunkILAZVNEL_cjs.openStream(api, $resumePausedRun, args, options);
|
|
250
250
|
}
|
|
251
251
|
var $injectRun = { m: "POST", p: "/runs/{run_id}/inject", d: "aidream", a: "guest", o: "required", n: "workflows.inject_run" };
|
|
252
252
|
function injectRun(api, args, options) {
|
|
@@ -294,7 +294,7 @@ function streamRunEvents(api, args, options) {
|
|
|
294
294
|
}
|
|
295
295
|
var $streamRunDebug = { m: "GET", p: "/runs/{run_id}/stream/debug", d: "aidream", a: "guest", o: "optional", s: "sse", n: "workflows.stream_run_debug" };
|
|
296
296
|
function streamRunDebug(api, args, options) {
|
|
297
|
-
return
|
|
297
|
+
return chunkILAZVNEL_cjs.openStream(api, $streamRunDebug, args, options);
|
|
298
298
|
}
|
|
299
299
|
var $getRunValues = { m: "GET", p: "/runs/{run_id}/values", d: "aidream", a: "guest", o: "optional", n: "workflows.get_run_values" };
|
|
300
300
|
function getRunValues(api, args, options) {
|
|
@@ -354,7 +354,7 @@ function getSystemRun(api, args, options) {
|
|
|
354
354
|
}
|
|
355
355
|
var $startSystemRun = { m: "POST", p: "/workflows/system/{key}/runs", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_system_run" };
|
|
356
356
|
function startSystemRun(api, args, options) {
|
|
357
|
-
return
|
|
357
|
+
return chunkILAZVNEL_cjs.openStream(api, $startSystemRun, args, options);
|
|
358
358
|
}
|
|
359
359
|
var $createBuilderWorkflow = { m: "POST", p: "/workflow-builder/workflows", d: "aidream", a: "guest", o: "required", n: "workflows.create_builder_workflow" };
|
|
360
360
|
function createBuilderWorkflow(api, args, options) {
|
|
@@ -458,7 +458,7 @@ function dissolvePlan(api, args, options) {
|
|
|
458
458
|
}
|
|
459
459
|
var $planAssist = { m: "POST", p: "/plans/{plan_id}/assist", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.plan_assist" };
|
|
460
460
|
function planAssist(api, args, options) {
|
|
461
|
-
return
|
|
461
|
+
return chunkILAZVNEL_cjs.openStream(api, $planAssist, args, options);
|
|
462
462
|
}
|
|
463
463
|
var $syncPlanAnchor = { m: "POST", p: "/plans/{plan_id}/sync", d: "aidream", a: "guest", o: "required", n: "workflows.sync_plan_anchor" };
|
|
464
464
|
function syncPlanAnchor(api, args, options) {
|
|
@@ -478,7 +478,7 @@ function applyWorkflowPatchEndpoint(api, args, options) {
|
|
|
478
478
|
}
|
|
479
479
|
var $runSuggestions = { m: "POST", p: "/runs/{run_id}/suggestions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.run_suggestions" };
|
|
480
480
|
function runSuggestions(api, args, options) {
|
|
481
|
-
return
|
|
481
|
+
return chunkILAZVNEL_cjs.openStream(api, $runSuggestions, args, options);
|
|
482
482
|
}
|
|
483
483
|
var $getExtractProposal = { m: "GET", p: "/workflows/{definition_id}/extract-proposal", d: "aidream", a: "guest", o: "optional", n: "workflows.get_extract_proposal" };
|
|
484
484
|
function getExtractProposal(api, args, options) {
|
|
@@ -522,11 +522,11 @@ function getPublicWorkflow(api, args, options) {
|
|
|
522
522
|
}
|
|
523
523
|
var $startComparison = { m: "POST", p: "/workflows/comparisons", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_comparison" };
|
|
524
524
|
function startComparison(api, args, options) {
|
|
525
|
-
return
|
|
525
|
+
return chunkILAZVNEL_cjs.openStream(api, $startComparison, args, options);
|
|
526
526
|
}
|
|
527
527
|
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" };
|
|
528
528
|
function rerunComparisonArm(api, args, options) {
|
|
529
|
-
return
|
|
529
|
+
return chunkILAZVNEL_cjs.openStream(api, $rerunComparisonArm, args, options);
|
|
530
530
|
}
|
|
531
531
|
var $validateCron = { m: "POST", p: "/scheduling/validate-cron", d: "aidream", a: "guest", o: "required", n: "workflows.validate_cron" };
|
|
532
532
|
function validateCron(api, args, options) {
|
package/dist/workflows.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-B6p8TJkh.cjs';
|
|
2
2
|
import { JsonValue, HostTurn, ClientContext, UserOverrides, ContextAnchor, RunNowResponse, ComputeNextDueResponse, ValidateCronRequest, ValidateCronResponse } from './schemas.cjs';
|
|
3
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.
|
|
7
|
-
* CONTRACT_SHA256
|
|
7
|
+
* CONTRACT_SHA256 1be6854fef4b55295a81f3b38e5801322cbf96de671625e0d642bc53c0939781
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** AddEdgeOp */
|
|
@@ -1917,6 +1917,18 @@ type ResumeQueuedRunResponse = {
|
|
|
1917
1917
|
};
|
|
1918
1918
|
/** ResumeRunRequest */
|
|
1919
1919
|
type ResumeRunRequest = {
|
|
1920
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
1921
|
+
organization_id?: string | null;
|
|
1922
|
+
/** Optional associated project selected by the caller. */
|
|
1923
|
+
project_id?: string | null;
|
|
1924
|
+
/** Optional associated task selected by the caller. */
|
|
1925
|
+
task_id?: string | null;
|
|
1926
|
+
/** Stable application slug that initiated the request. */
|
|
1927
|
+
source_app?: string | null;
|
|
1928
|
+
/** Stable feature slug within the source application. */
|
|
1929
|
+
source_feature?: string | null;
|
|
1930
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
1931
|
+
initiation?: ("user" | "auto") | null;
|
|
1920
1932
|
/** The interrupt checkpoint to resume from. REQUIRED for an 'interrupted' run; omitted for an 'awaiting_input' run (a start-time park has no checkpoint — supply the missing values in `inputs` instead and */
|
|
1921
1933
|
checkpoint_id?: string | null;
|
|
1922
1934
|
resume_value?: {
|
package/dist/workflows.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-B6p8TJkh.js';
|
|
2
2
|
import { JsonValue, HostTurn, ClientContext, UserOverrides, ContextAnchor, RunNowResponse, ComputeNextDueResponse, ValidateCronRequest, ValidateCronResponse } from './schemas.js';
|
|
3
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.
|
|
7
|
-
* CONTRACT_SHA256
|
|
7
|
+
* CONTRACT_SHA256 1be6854fef4b55295a81f3b38e5801322cbf96de671625e0d642bc53c0939781
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** AddEdgeOp */
|
|
@@ -1917,6 +1917,18 @@ type ResumeQueuedRunResponse = {
|
|
|
1917
1917
|
};
|
|
1918
1918
|
/** ResumeRunRequest */
|
|
1919
1919
|
type ResumeRunRequest = {
|
|
1920
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
1921
|
+
organization_id?: string | null;
|
|
1922
|
+
/** Optional associated project selected by the caller. */
|
|
1923
|
+
project_id?: string | null;
|
|
1924
|
+
/** Optional associated task selected by the caller. */
|
|
1925
|
+
task_id?: string | null;
|
|
1926
|
+
/** Stable application slug that initiated the request. */
|
|
1927
|
+
source_app?: string | null;
|
|
1928
|
+
/** Stable feature slug within the source application. */
|
|
1929
|
+
source_feature?: string | null;
|
|
1930
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
1931
|
+
initiation?: ("user" | "auto") | null;
|
|
1920
1932
|
/** The interrupt checkpoint to resume from. REQUIRED for an 'interrupted' run; omitted for an 'awaiting_input' run (a start-time park has no checkpoint — supply the missing values in `inputs` instead and */
|
|
1921
1933
|
checkpoint_id?: string | null;
|
|
1922
1934
|
resume_value?: {
|
package/dist/workflows.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
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",
|
|
@@ -439,5 +439,5 @@
|
|
|
439
439
|
"check:sections": "node scripts/section-probe.mjs \"$PWD\"",
|
|
440
440
|
"verify:tarball": "node scripts/verify-tarball.mjs"
|
|
441
441
|
},
|
|
442
|
-
"gitHead": "
|
|
442
|
+
"gitHead": "db608866be09bf4a710e4c3c3103d1ac1d86a7ac"
|
|
443
443
|
}
|