@ai-matrx/api 0.1.1 → 0.1.3
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 -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 +8 -2
- package/dist/ai.d.cts +27 -3
- package/dist/ai.d.ts +27 -3
- package/dist/ai.js +7 -2
- 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 +32 -26
- package/dist/architecture.d.cts +48 -20
- package/dist/architecture.d.ts +48 -20
- package/dist/architecture.js +21 -16
- package/dist/audio.cjs +4 -4
- package/dist/audio.d.cts +2 -2
- package/dist/audio.d.ts +2 -2
- package/dist/audio.js +1 -1
- package/dist/chat.cjs +11 -11
- package/dist/chat.d.cts +2 -2
- package/dist/chat.d.ts +2 -2
- package/dist/chat.js +1 -1
- package/dist/{chunk-TSHL7Z53.js → chunk-6UOESA3L.js} +1 -1
- package/dist/{chunk-HER22VVH.cjs → chunk-DMJ3ZRN7.cjs} +1 -1
- package/dist/code.cjs +18 -6
- package/dist/code.d.cts +87 -4
- package/dist/code.d.ts +87 -4
- package/dist/code.js +12 -2
- package/dist/commerce.d.cts +2 -2
- package/dist/commerce.d.ts +2 -2
- package/dist/communications.cjs +70 -4
- package/dist/communications.d.cts +253 -5
- package/dist/communications.d.ts +253 -5
- package/dist/communications.js +57 -2
- package/dist/computer.cjs +3 -3
- 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.d.cts +4 -2
- package/dist/data.d.ts +4 -2
- 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 +31 -25
- package/dist/files.d.cts +25 -13
- package/dist/files.d.ts +25 -13
- package/dist/files.js +11 -6
- package/dist/human-resources.d.cts +2 -2
- package/dist/human-resources.d.ts +2 -2
- package/dist/{index-C2E-Cp19.d.ts → index-BUb7OxrB.d.ts} +2 -2
- package/dist/{index-wC2vtb70.d.cts → index-DCyEAVSW.d.cts} +2 -2
- package/dist/index.cjs +53 -53
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/integrations.cjs +253 -13
- package/dist/integrations.d.cts +756 -13
- package/dist/integrations.d.ts +756 -13
- package/dist/integrations.js +210 -10
- package/dist/intelligence.cjs +6 -6
- package/dist/intelligence.d.cts +11 -2
- package/dist/intelligence.d.ts +11 -2
- package/dist/intelligence.js +1 -1
- 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 +226 -72
- package/dist/marketing.d.cts +732 -3
- package/dist/marketing.d.ts +732 -3
- package/dist/marketing.js +129 -2
- 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 +30 -4
- package/dist/media.d.ts +30 -4
- package/dist/media.js +1 -1
- package/dist/platform.cjs +9 -3
- package/dist/platform.d.cts +29 -3
- package/dist/platform.d.ts +29 -3
- package/dist/platform.js +7 -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/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/web.cjs +26 -26
- package/dist/web.d.cts +3 -2
- package/dist/web.d.ts +3 -2
- package/dist/web.js +1 -1
- package/dist/workflows.cjs +29 -12
- package/dist/workflows.d.cts +85 -3
- package/dist/workflows.d.ts +85 -3
- package/dist/workflows.js +16 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/api
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/api/v0.1.2..npm/api/v0.1.3 -- apps/shared/api`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.1.2
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/api/v0.1.1..npm/api/v0.1.2 -- apps/shared/api`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.1.1
|
|
4
16
|
|
|
5
17
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -29,3 +41,4 @@ First release (package lines v3 steps 3–4).
|
|
|
29
41
|
|
|
30
42
|
None. `@ai-matrx/agents/matrx`, `@ai-matrx/agents/stream/*` and `@ai-matrx/data`'s credentials and `/net` keep their paths (they re-export from here from their next release).
|
|
31
43
|
|
|
44
|
+
|
package/dist/account.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions } from './index-DCyEAVSW.cjs';
|
|
2
2
|
import { JsonValue, UserAnalysisPreferencesResponse } from './schemas.cjs';
|
|
3
3
|
import './credentials.cjs';
|
|
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 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** Result of opening, completing, or re-minting an action request. */
|
package/dist/account.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions } from './index-BUb7OxrB.js';
|
|
2
2
|
import { JsonValue, UserAnalysisPreferencesResponse } from './schemas.js';
|
|
3
3
|
import './credentials.js';
|
|
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 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** Result of opening, completing, or re-minting an action request. */
|
package/dist/agents.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDMJ3ZRN7_cjs = require('./chunk-DMJ3ZRN7.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
require('./chunk-5WJLKYH6.cjs');
|
|
6
6
|
|
|
@@ -47,15 +47,15 @@ function getToolById(api, args, options) {
|
|
|
47
47
|
}
|
|
48
48
|
var $agentsStartAgent = { m: "POST", p: "/ai/agent/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent" };
|
|
49
49
|
function agentsStartAgent(api, args, options) {
|
|
50
|
-
return
|
|
50
|
+
return chunkDMJ3ZRN7_cjs.openJsonOrStream(api, $agentsStartAgent, args, options);
|
|
51
51
|
}
|
|
52
52
|
var $agentsStartAgentPost = { m: "POST", p: "/ai/agents/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent_post" };
|
|
53
53
|
function agentsStartAgentPost(api, args, options) {
|
|
54
|
-
return
|
|
54
|
+
return chunkDMJ3ZRN7_cjs.openJsonOrStream(api, $agentsStartAgentPost, args, options);
|
|
55
55
|
}
|
|
56
56
|
var $startMandatedAgent = { m: "POST", p: "/ai/mandates/{mandate_key}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_mandated_agent" };
|
|
57
57
|
function startMandatedAgent(api, args, options) {
|
|
58
|
-
return
|
|
58
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $startMandatedAgent, args, options);
|
|
59
59
|
}
|
|
60
60
|
var $invalidateAgentCache = { m: "POST", p: "/ai/agents/{agent_id}/invalidate-cache", d: "aidream", a: "guest", o: "required", n: "agents.invalidate_agent_cache" };
|
|
61
61
|
function invalidateAgentCache(api, args, options) {
|
|
@@ -63,7 +63,7 @@ function invalidateAgentCache(api, args, options) {
|
|
|
63
63
|
}
|
|
64
64
|
var $mockStream = { m: "POST", p: "/ai/mock-stream/{scenario}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.mock_stream" };
|
|
65
65
|
function mockStream(api, args, options) {
|
|
66
|
-
return
|
|
66
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $mockStream, args, options);
|
|
67
67
|
}
|
|
68
68
|
var $listScenarios = { m: "GET", p: "/ai/mock-stream/scenarios", d: "aidream", a: "guest", o: "optional", n: "agents.list_scenarios" };
|
|
69
69
|
function listScenarios(api, args, options) {
|
|
@@ -79,11 +79,11 @@ function getUserPromptsAndBuiltins(api, args, options) {
|
|
|
79
79
|
}
|
|
80
80
|
var $startPrompt = { m: "POST", p: "/ai/prompts/{prompt_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_prompt" };
|
|
81
81
|
function startPrompt(api, args, options) {
|
|
82
|
-
return
|
|
82
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $startPrompt, args, options);
|
|
83
83
|
}
|
|
84
84
|
var $startAgentBlocks = { m: "POST", p: "/ai/agents-blocks/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_agent_blocks" };
|
|
85
85
|
function startAgentBlocks(api, args, options) {
|
|
86
|
-
return
|
|
86
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $startAgentBlocks, args, options);
|
|
87
87
|
}
|
|
88
88
|
var $previewContext = { m: "POST", p: "/ai/context/preview", d: "aidream", a: "guest", o: "required", n: "agents.preview_context" };
|
|
89
89
|
function previewContext(api, args, options) {
|
|
@@ -227,11 +227,11 @@ function judgeFirstRuns(api, args, options) {
|
|
|
227
227
|
}
|
|
228
228
|
var $agentFromChat = { m: "POST", p: "/agent-studio/from-chat", d: "aidream", a: "user", o: "required", s: "ndjson", n: "agents.agent_from_chat" };
|
|
229
229
|
function agentFromChat(api, args, options) {
|
|
230
|
-
return
|
|
230
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $agentFromChat, args, options);
|
|
231
231
|
}
|
|
232
232
|
var $adminAgentFromChat = { m: "POST", p: "/admin/agent-studio/from-chat", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "agents.admin_agent_from_chat" };
|
|
233
233
|
function adminAgentFromChat(api, args, options) {
|
|
234
|
-
return
|
|
234
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $adminAgentFromChat, args, options);
|
|
235
235
|
}
|
|
236
236
|
var $adminToolsListTools = { m: "GET", p: "/admin/tools", d: "aidream", a: "admin", o: "exempt", n: "agents.admin_tools_list_tools" };
|
|
237
237
|
function adminToolsListTools(api, args, options) {
|
|
@@ -267,7 +267,7 @@ function getOrCreateTestSession(api, args, options) {
|
|
|
267
267
|
}
|
|
268
268
|
var $executeToolTest = { m: "POST", p: "/tools/test/execute", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.execute_tool_test" };
|
|
269
269
|
function executeToolTest(api, args, options) {
|
|
270
|
-
return
|
|
270
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $executeToolTest, args, options);
|
|
271
271
|
}
|
|
272
272
|
var $getDbSurfaceManifest = { m: "GET", p: "/surfaces/{client_name}/{surface_name}/manifest", d: "aidream", a: "guest", o: "exempt", n: "agents.get_db_surface_manifest" };
|
|
273
273
|
function getDbSurfaceManifest(api, args, options) {
|
|
@@ -299,7 +299,7 @@ function previewVariableBinding(api, args, options) {
|
|
|
299
299
|
}
|
|
300
300
|
var $runMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.run_matrix_battle" };
|
|
301
301
|
function runMatrixBattle(api, args, options) {
|
|
302
|
-
return
|
|
302
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $runMatrixBattle, args, options);
|
|
303
303
|
}
|
|
304
304
|
var $cancelMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/cancel", d: "aidream", a: "guest", o: "required", n: "agents.cancel_matrix_battle" };
|
|
305
305
|
function cancelMatrixBattle(api, args, options) {
|
package/dist/agents.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-DCyEAVSW.cjs';
|
|
2
2
|
import { JsonValue, ContextAnchor, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, LLMParams, AgentStartRequest, DirectiveItemApplied, DirectiveItemFailed, PageContext, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, ActionNeeded, PromptStartRequest } from './schemas.cjs';
|
|
3
3
|
import './credentials.cjs';
|
|
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 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** AgentBlocksStartRequest */
|
package/dist/agents.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-BUb7OxrB.js';
|
|
2
2
|
import { JsonValue, ContextAnchor, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, LLMParams, AgentStartRequest, DirectiveItemApplied, DirectiveItemFailed, PageContext, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, ActionNeeded, PromptStartRequest } from './schemas.js';
|
|
3
3
|
import './credentials.js';
|
|
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 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** AgentBlocksStartRequest */
|
package/dist/agents.js
CHANGED
package/dist/ai.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDMJ3ZRN7_cjs = require('./chunk-DMJ3ZRN7.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
require('./chunk-5WJLKYH6.cjs');
|
|
6
6
|
|
|
@@ -9,6 +9,10 @@ var $getAllAiModels = { m: "GET", p: "/ai-models", d: "aidream", a: "guest", o:
|
|
|
9
9
|
function getAllAiModels(api, args, options) {
|
|
10
10
|
return api.call($getAllAiModels, args, options);
|
|
11
11
|
}
|
|
12
|
+
var $clientLatencyReport = { m: "POST", p: "/ai/latency/client-report", d: "aidream", a: "guest", o: "required", n: "ai.client_latency_report" };
|
|
13
|
+
function clientLatencyReport(api, args, options) {
|
|
14
|
+
return api.call($clientLatencyReport, args, options);
|
|
15
|
+
}
|
|
12
16
|
var $createEmbeddings = { m: "POST", p: "/ai/google/embeddings", d: "aidream", a: "guest", o: "required", n: "ai.create_embeddings" };
|
|
13
17
|
function createEmbeddings(api, args, options) {
|
|
14
18
|
return api.call($createEmbeddings, args, options);
|
|
@@ -51,7 +55,7 @@ function listModels(api, args, options) {
|
|
|
51
55
|
}
|
|
52
56
|
var $chatCompletions = { m: "POST", p: "/v1/chat/completions", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse_or_json", n: "ai.chat_completions" };
|
|
53
57
|
function chatCompletions(api, args, options) {
|
|
54
|
-
return
|
|
58
|
+
return chunkDMJ3ZRN7_cjs.openJsonOrStream(api, $chatCompletions, args, options);
|
|
55
59
|
}
|
|
56
60
|
var $audioSpeech = { m: "POST", p: "/v1/audio/speech", d: "matrx-local", a: "loopback_token", o: "exempt", n: "ai.audio_speech" };
|
|
57
61
|
function audioSpeech(api, args, options) {
|
|
@@ -71,6 +75,7 @@ function hfTokenAssist(api, args, options) {
|
|
|
71
75
|
}
|
|
72
76
|
var TABLE = {
|
|
73
77
|
"GET /ai-models": $getAllAiModels,
|
|
78
|
+
"POST /ai/latency/client-report": $clientLatencyReport,
|
|
74
79
|
"POST /ai/google/embeddings": $createEmbeddings,
|
|
75
80
|
"POST /agent-usage/sync": $syncRegisteredUsagesEndpoint,
|
|
76
81
|
"GET /agent-usage/registry": $registryDiffEndpoint,
|
|
@@ -95,6 +100,7 @@ exports.audioSpeech = audioSpeech;
|
|
|
95
100
|
exports.audioTranscriptions = audioTranscriptions;
|
|
96
101
|
exports.call = call;
|
|
97
102
|
exports.chatCompletions = chatCompletions;
|
|
103
|
+
exports.clientLatencyReport = clientLatencyReport;
|
|
98
104
|
exports.createEmbeddings = createEmbeddings;
|
|
99
105
|
exports.embeddings = embeddings;
|
|
100
106
|
exports.getAllAiModels = getAllAiModels;
|
package/dist/ai.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-DCyEAVSW.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
3
|
import './credentials.cjs';
|
|
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 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** AgentUsageReportResponse */
|
|
@@ -60,6 +60,19 @@ type AvailabilityDriftSummary = {
|
|
|
60
60
|
};
|
|
61
61
|
write_failures?: string[];
|
|
62
62
|
};
|
|
63
|
+
/** ClientLatencyReport */
|
|
64
|
+
type ClientLatencyReport = {
|
|
65
|
+
latency_id: string;
|
|
66
|
+
request_id?: string;
|
|
67
|
+
client_prep_ms?: number | null;
|
|
68
|
+
client_wait_ms?: number | null;
|
|
69
|
+
client_render_ms?: number | null;
|
|
70
|
+
client_total_ms?: number | null;
|
|
71
|
+
};
|
|
72
|
+
/** ClientLatencyReportAck */
|
|
73
|
+
type ClientLatencyReportAck = {
|
|
74
|
+
recorded: boolean;
|
|
75
|
+
};
|
|
63
76
|
/** One declared code usage — mirrors a row of public.agx_usage_registry. */
|
|
64
77
|
type CodeAgentUsage = {
|
|
65
78
|
usage_key: string;
|
|
@@ -317,6 +330,13 @@ type GetAllAiModelsResult = AiModelsResponse;
|
|
|
317
330
|
/** Get All Ai Models */
|
|
318
331
|
/** `GET /ai-models` · aidream · auth guest · org optional */
|
|
319
332
|
declare function getAllAiModels(api: Api, args?: GetAllAiModelsArgs, options?: CallOptions): Promise<GetAllAiModelsResult>;
|
|
333
|
+
type ClientLatencyReportArgs = {
|
|
334
|
+
body: ClientLatencyReport;
|
|
335
|
+
};
|
|
336
|
+
type ClientLatencyReportResult = ClientLatencyReportAck;
|
|
337
|
+
/** Client Latency Report */
|
|
338
|
+
/** `POST /ai/latency/client-report` · aidream · auth guest · org required */
|
|
339
|
+
declare function clientLatencyReport(api: Api, args: ClientLatencyReportArgs, options?: CallOptions): Promise<ClientLatencyReportResult>;
|
|
320
340
|
type CreateEmbeddingsArgs = {
|
|
321
341
|
body: EmbeddingRequest;
|
|
322
342
|
};
|
|
@@ -430,6 +450,10 @@ interface Operations {
|
|
|
430
450
|
args: GetAllAiModelsArgs;
|
|
431
451
|
result: GetAllAiModelsResult;
|
|
432
452
|
};
|
|
453
|
+
"POST /ai/latency/client-report": {
|
|
454
|
+
args: ClientLatencyReportArgs;
|
|
455
|
+
result: ClientLatencyReportResult;
|
|
456
|
+
};
|
|
433
457
|
"POST /ai/google/embeddings": {
|
|
434
458
|
args: CreateEmbeddingsArgs;
|
|
435
459
|
result: CreateEmbeddingsResult;
|
|
@@ -490,4 +514,4 @@ interface Operations {
|
|
|
490
514
|
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
491
515
|
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
492
516
|
|
|
493
|
-
export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type ChatCompletionsArgs, type ChatCompletionsResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type UnservableOffering, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, createEmbeddings, embeddings, getAllAiModels, hfTokenAssist, listModels, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
|
517
|
+
export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type ChatCompletionsArgs, type ChatCompletionsResult, type ClientLatencyReport, type ClientLatencyReportAck, type ClientLatencyReportArgs, type ClientLatencyReportResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type UnservableOffering, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, embeddings, getAllAiModels, hfTokenAssist, listModels, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
package/dist/ai.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-BUb7OxrB.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
3
|
import './credentials.js';
|
|
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 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** AgentUsageReportResponse */
|
|
@@ -60,6 +60,19 @@ type AvailabilityDriftSummary = {
|
|
|
60
60
|
};
|
|
61
61
|
write_failures?: string[];
|
|
62
62
|
};
|
|
63
|
+
/** ClientLatencyReport */
|
|
64
|
+
type ClientLatencyReport = {
|
|
65
|
+
latency_id: string;
|
|
66
|
+
request_id?: string;
|
|
67
|
+
client_prep_ms?: number | null;
|
|
68
|
+
client_wait_ms?: number | null;
|
|
69
|
+
client_render_ms?: number | null;
|
|
70
|
+
client_total_ms?: number | null;
|
|
71
|
+
};
|
|
72
|
+
/** ClientLatencyReportAck */
|
|
73
|
+
type ClientLatencyReportAck = {
|
|
74
|
+
recorded: boolean;
|
|
75
|
+
};
|
|
63
76
|
/** One declared code usage — mirrors a row of public.agx_usage_registry. */
|
|
64
77
|
type CodeAgentUsage = {
|
|
65
78
|
usage_key: string;
|
|
@@ -317,6 +330,13 @@ type GetAllAiModelsResult = AiModelsResponse;
|
|
|
317
330
|
/** Get All Ai Models */
|
|
318
331
|
/** `GET /ai-models` · aidream · auth guest · org optional */
|
|
319
332
|
declare function getAllAiModels(api: Api, args?: GetAllAiModelsArgs, options?: CallOptions): Promise<GetAllAiModelsResult>;
|
|
333
|
+
type ClientLatencyReportArgs = {
|
|
334
|
+
body: ClientLatencyReport;
|
|
335
|
+
};
|
|
336
|
+
type ClientLatencyReportResult = ClientLatencyReportAck;
|
|
337
|
+
/** Client Latency Report */
|
|
338
|
+
/** `POST /ai/latency/client-report` · aidream · auth guest · org required */
|
|
339
|
+
declare function clientLatencyReport(api: Api, args: ClientLatencyReportArgs, options?: CallOptions): Promise<ClientLatencyReportResult>;
|
|
320
340
|
type CreateEmbeddingsArgs = {
|
|
321
341
|
body: EmbeddingRequest;
|
|
322
342
|
};
|
|
@@ -430,6 +450,10 @@ interface Operations {
|
|
|
430
450
|
args: GetAllAiModelsArgs;
|
|
431
451
|
result: GetAllAiModelsResult;
|
|
432
452
|
};
|
|
453
|
+
"POST /ai/latency/client-report": {
|
|
454
|
+
args: ClientLatencyReportArgs;
|
|
455
|
+
result: ClientLatencyReportResult;
|
|
456
|
+
};
|
|
433
457
|
"POST /ai/google/embeddings": {
|
|
434
458
|
args: CreateEmbeddingsArgs;
|
|
435
459
|
result: CreateEmbeddingsResult;
|
|
@@ -490,4 +514,4 @@ interface Operations {
|
|
|
490
514
|
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
491
515
|
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
492
516
|
|
|
493
|
-
export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type ChatCompletionsArgs, type ChatCompletionsResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type UnservableOffering, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, createEmbeddings, embeddings, getAllAiModels, hfTokenAssist, listModels, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
|
517
|
+
export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type ChatCompletionsArgs, type ChatCompletionsResult, type ClientLatencyReport, type ClientLatencyReportAck, type ClientLatencyReportArgs, type ClientLatencyReportResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type UnservableOffering, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, embeddings, getAllAiModels, hfTokenAssist, listModels, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
package/dist/ai.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openJsonOrStream } from './chunk-
|
|
1
|
+
import { openJsonOrStream } from './chunk-6UOESA3L.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
3
|
import './chunk-VTZKJMSY.js';
|
|
4
4
|
|
|
@@ -7,6 +7,10 @@ var $getAllAiModels = { m: "GET", p: "/ai-models", d: "aidream", a: "guest", o:
|
|
|
7
7
|
function getAllAiModels(api, args, options) {
|
|
8
8
|
return api.call($getAllAiModels, args, options);
|
|
9
9
|
}
|
|
10
|
+
var $clientLatencyReport = { m: "POST", p: "/ai/latency/client-report", d: "aidream", a: "guest", o: "required", n: "ai.client_latency_report" };
|
|
11
|
+
function clientLatencyReport(api, args, options) {
|
|
12
|
+
return api.call($clientLatencyReport, args, options);
|
|
13
|
+
}
|
|
10
14
|
var $createEmbeddings = { m: "POST", p: "/ai/google/embeddings", d: "aidream", a: "guest", o: "required", n: "ai.create_embeddings" };
|
|
11
15
|
function createEmbeddings(api, args, options) {
|
|
12
16
|
return api.call($createEmbeddings, args, options);
|
|
@@ -69,6 +73,7 @@ function hfTokenAssist(api, args, options) {
|
|
|
69
73
|
}
|
|
70
74
|
var TABLE = {
|
|
71
75
|
"GET /ai-models": $getAllAiModels,
|
|
76
|
+
"POST /ai/latency/client-report": $clientLatencyReport,
|
|
72
77
|
"POST /ai/google/embeddings": $createEmbeddings,
|
|
73
78
|
"POST /agent-usage/sync": $syncRegisteredUsagesEndpoint,
|
|
74
79
|
"GET /agent-usage/registry": $registryDiffEndpoint,
|
|
@@ -88,4 +93,4 @@ function call(api, key, args, options) {
|
|
|
88
93
|
return api.call(TABLE[key], args, options);
|
|
89
94
|
}
|
|
90
95
|
|
|
91
|
-
export { analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, createEmbeddings, embeddings, getAllAiModels, hfTokenAssist, listModels, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
|
96
|
+
export { analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, embeddings, getAllAiModels, hfTokenAssist, listModels, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
package/dist/apps.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDMJ3ZRN7_cjs = require('./chunk-DMJ3ZRN7.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
require('./chunk-5WJLKYH6.cjs');
|
|
6
6
|
|
|
@@ -219,7 +219,7 @@ function getInstallStatus(api, args, options) {
|
|
|
219
219
|
}
|
|
220
220
|
var $streamInstallProgress = { m: "GET", p: "/capabilities/install/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "apps.stream_install_progress" };
|
|
221
221
|
function streamInstallProgress(api, args, options) {
|
|
222
|
-
return
|
|
222
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $streamInstallProgress, args, options);
|
|
223
223
|
}
|
|
224
224
|
var $tunnelStatus = { m: "GET", p: "/tunnel/status", d: "matrx-local", a: "public", o: "exempt", n: "apps.tunnel_status" };
|
|
225
225
|
function tunnelStatus(api, args, options) {
|
|
@@ -239,15 +239,15 @@ function getSetupStatus(api, args, options) {
|
|
|
239
239
|
}
|
|
240
240
|
var $runInstall = { m: "POST", p: "/setup/install", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.run_install" };
|
|
241
241
|
function runInstall(api, args, options) {
|
|
242
|
-
return
|
|
242
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $runInstall, args, options);
|
|
243
243
|
}
|
|
244
244
|
var $installTranscription = { m: "POST", p: "/setup/install-transcription", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.install_transcription" };
|
|
245
245
|
function installTranscription(api, args, options) {
|
|
246
|
-
return
|
|
246
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $installTranscription, args, options);
|
|
247
247
|
}
|
|
248
248
|
var $streamLogs = { m: "GET", p: "/setup/logs", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.stream_logs" };
|
|
249
249
|
function streamLogs(api, args, options) {
|
|
250
|
-
return
|
|
250
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $streamLogs, args, options);
|
|
251
251
|
}
|
|
252
252
|
var $debugState = { m: "GET", p: "/setup/debug", d: "matrx-local", a: "loopback_open", o: "exempt", n: "apps.debug_state" };
|
|
253
253
|
function debugState(api, args, options) {
|
package/dist/apps.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-DCyEAVSW.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
3
|
import './credentials.cjs';
|
|
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 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** ApiKeySetRequest */
|
package/dist/apps.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-BUb7OxrB.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
3
|
import './credentials.js';
|
|
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 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** ApiKeySetRequest */
|
package/dist/apps.js
CHANGED