@ai-matrx/api 0.1.2 → 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 +6 -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,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.1.2
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
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
package/dist/architecture.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
|
|
|
@@ -35,27 +35,27 @@ function servingCheck(api, args, options) {
|
|
|
35
35
|
}
|
|
36
36
|
var $searchAsKinds = { m: "POST", p: "/search-kinds/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.search_as_kinds" };
|
|
37
37
|
function searchAsKinds(api, args, options) {
|
|
38
|
-
return
|
|
38
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $searchAsKinds, args, options);
|
|
39
39
|
}
|
|
40
40
|
var $rankLandscapeAsKinds = { m: "POST", p: "/rank-kinds/landscape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rank_landscape_as_kinds" };
|
|
41
41
|
function rankLandscapeAsKinds(api, args, options) {
|
|
42
|
-
return
|
|
42
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $rankLandscapeAsKinds, args, options);
|
|
43
43
|
}
|
|
44
44
|
var $ragSearchAsKinds = { m: "POST", p: "/rag-kinds/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rag_search_as_kinds" };
|
|
45
45
|
function ragSearchAsKinds(api, args, options) {
|
|
46
|
-
return
|
|
46
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $ragSearchAsKinds, args, options);
|
|
47
47
|
}
|
|
48
48
|
var $tableReadAsKinds = { m: "POST", p: "/table-kinds/read", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.table_read_as_kinds" };
|
|
49
49
|
function tableReadAsKinds(api, args, options) {
|
|
50
|
-
return
|
|
50
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $tableReadAsKinds, args, options);
|
|
51
51
|
}
|
|
52
52
|
var $scrapeAsKind = { m: "POST", p: "/scraper-kinds/scrape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.scrape_as_kind" };
|
|
53
53
|
function scrapeAsKind(api, args, options) {
|
|
54
|
-
return
|
|
54
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $scrapeAsKind, args, options);
|
|
55
55
|
}
|
|
56
56
|
var $scrapeManyAsKind = { m: "POST", p: "/scraper-kinds/scrape-many", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.scrape_many_as_kind" };
|
|
57
57
|
function scrapeManyAsKind(api, args, options) {
|
|
58
|
-
return
|
|
58
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $scrapeManyAsKind, args, options);
|
|
59
59
|
}
|
|
60
60
|
var $saveOutput = { m: "POST", p: "/kind-outputs/save", d: "aidream", a: "guest", o: "required", n: "architecture.save_output" };
|
|
61
61
|
function saveOutput(api, args, options) {
|
|
@@ -79,7 +79,7 @@ function operationStatus(api, args, options) {
|
|
|
79
79
|
}
|
|
80
80
|
var $rejoinOperationStream = { m: "POST", p: "/runtime/operations/{request_id}/rejoin", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rejoin_operation_stream" };
|
|
81
81
|
function rejoinOperationStream(api, args, options) {
|
|
82
|
-
return
|
|
82
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $rejoinOperationStream, args, options);
|
|
83
83
|
}
|
|
84
84
|
var $operationsByLink = { m: "GET", p: "/runtime/operations/by-link/{link_kind}/{link_id}", d: "aidream", a: "guest", o: "optional", n: "architecture.operations_by_link" };
|
|
85
85
|
function operationsByLink(api, args, options) {
|
|
@@ -91,7 +91,7 @@ function operationEvents(api, args, options) {
|
|
|
91
91
|
}
|
|
92
92
|
var $operationEventsStream = { m: "GET", p: "/runtime/executions/{execution_id}/events/stream", d: "aidream", a: "guest", o: "optional", s: "sse", n: "architecture.operation_events_stream" };
|
|
93
93
|
function operationEventsStream(api, args, options) {
|
|
94
|
-
return
|
|
94
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $operationEventsStream, args, options);
|
|
95
95
|
}
|
|
96
96
|
var $listComputeTargets = { m: "GET", p: "/compute-targets/", d: "aidream", a: "user", o: "required", n: "architecture.list_compute_targets" };
|
|
97
97
|
function listComputeTargets(api, args, options) {
|
|
@@ -109,6 +109,10 @@ var $reportProviderSessionFailure = { m: "POST", p: "/broker/provider-failures",
|
|
|
109
109
|
function reportProviderSessionFailure(api, args, options) {
|
|
110
110
|
return api.call($reportProviderSessionFailure, args, options);
|
|
111
111
|
}
|
|
112
|
+
var $reportProviderSessionUsage = { m: "POST", p: "/broker/usage", d: "aidream", a: "user", o: "required", n: "architecture.report_provider_session_usage" };
|
|
113
|
+
function reportProviderSessionUsage(api, args, options) {
|
|
114
|
+
return api.call($reportProviderSessionUsage, args, options);
|
|
115
|
+
}
|
|
112
116
|
var $anthropicMessages = { m: "POST", p: "/broker/gateway/anthropic/v1/messages", d: "aidream", a: "scoped", o: "required", s: "bytes", n: "architecture.anthropic_messages" };
|
|
113
117
|
function anthropicMessages(api, args, options) {
|
|
114
118
|
return api.send($anthropicMessages, args, options).then((x) => x.response);
|
|
@@ -665,17 +669,17 @@ var $extendSandbox = { m: "POST", p: "/sandboxes/{sandbox_id}/extend", d: "sandb
|
|
|
665
669
|
function extendSandbox(api, args, options) {
|
|
666
670
|
return api.call($extendSandbox, args, options);
|
|
667
671
|
}
|
|
668
|
-
var $
|
|
669
|
-
function
|
|
670
|
-
return api.call($
|
|
672
|
+
var $orchestratorProxyFs = { m: "GET", p: "/sandboxes/{sandbox_id}/fs/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", n: "architecture.orchestrator_proxy_fs" };
|
|
673
|
+
function orchestratorProxyFs(api, args, options) {
|
|
674
|
+
return api.call($orchestratorProxyFs, args, options);
|
|
671
675
|
}
|
|
672
676
|
var $orchestratorProxyFsPost = { m: "POST", p: "/sandboxes/{sandbox_id}/fs/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", n: "architecture.orchestrator_proxy_fs_post" };
|
|
673
677
|
function orchestratorProxyFsPost(api, args, options) {
|
|
674
678
|
return api.call($orchestratorProxyFsPost, args, options);
|
|
675
679
|
}
|
|
676
|
-
var $
|
|
677
|
-
function
|
|
678
|
-
return api.call($
|
|
680
|
+
var $orchestratorProxyFsPut = { m: "PUT", p: "/sandboxes/{sandbox_id}/fs/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", n: "architecture.orchestrator_proxy_fs_put" };
|
|
681
|
+
function orchestratorProxyFsPut(api, args, options) {
|
|
682
|
+
return api.call($orchestratorProxyFsPut, args, options);
|
|
679
683
|
}
|
|
680
684
|
var $orchestratorProxyFsPatch = { m: "PATCH", p: "/sandboxes/{sandbox_id}/fs/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", n: "architecture.orchestrator_proxy_fs_patch" };
|
|
681
685
|
function orchestratorProxyFsPatch(api, args, options) {
|
|
@@ -687,7 +691,7 @@ function orchestratorProxyFsDelete(api, args, options) {
|
|
|
687
691
|
}
|
|
688
692
|
var $proxyExecStream = { m: "POST", p: "/sandboxes/{sandbox_id}/exec/stream", d: "sandbox-orchestrator", a: "scoped", o: "exempt", s: "sse", n: "architecture.proxy_exec_stream" };
|
|
689
693
|
function proxyExecStream(api, args, options) {
|
|
690
|
-
return
|
|
694
|
+
return chunkDMJ3ZRN7_cjs.openStream(api, $proxyExecStream, args, options);
|
|
691
695
|
}
|
|
692
696
|
var $orchestratorProxyGit = { m: "GET", p: "/sandboxes/{sandbox_id}/git/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", n: "architecture.orchestrator_proxy_git" };
|
|
693
697
|
function orchestratorProxyGit(api, args, options) {
|
|
@@ -737,17 +741,17 @@ var $settleAgentPresence = { m: "POST", p: "/sandboxes/{sandbox_id}/agent-presen
|
|
|
737
741
|
function settleAgentPresence(api, args, options) {
|
|
738
742
|
return api.call($settleAgentPresence, args, options);
|
|
739
743
|
}
|
|
740
|
-
var $
|
|
741
|
-
function
|
|
742
|
-
return api.send($
|
|
744
|
+
var $orchestratorProxyToContainer = { m: "GET", p: "/sandboxes/{sandbox_id}/proxy/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", s: "bytes", n: "architecture.orchestrator_proxy_to_container" };
|
|
745
|
+
function orchestratorProxyToContainer(api, args, options) {
|
|
746
|
+
return api.send($orchestratorProxyToContainer, args, options).then((x) => x.response);
|
|
743
747
|
}
|
|
744
748
|
var $orchestratorProxyToContainerPost = { m: "POST", p: "/sandboxes/{sandbox_id}/proxy/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", s: "bytes", n: "architecture.orchestrator_proxy_to_container_post" };
|
|
745
749
|
function orchestratorProxyToContainerPost(api, args, options) {
|
|
746
750
|
return api.send($orchestratorProxyToContainerPost, args, options).then((x) => x.response);
|
|
747
751
|
}
|
|
748
|
-
var $
|
|
749
|
-
function
|
|
750
|
-
return api.send($
|
|
752
|
+
var $orchestratorProxyToContainerPut = { m: "PUT", p: "/sandboxes/{sandbox_id}/proxy/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", s: "bytes", n: "architecture.orchestrator_proxy_to_container_put" };
|
|
753
|
+
function orchestratorProxyToContainerPut(api, args, options) {
|
|
754
|
+
return api.send($orchestratorProxyToContainerPut, args, options).then((x) => x.response);
|
|
751
755
|
}
|
|
752
756
|
var $orchestratorProxyToContainerPatch = { m: "PATCH", p: "/sandboxes/{sandbox_id}/proxy/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", s: "bytes", n: "architecture.orchestrator_proxy_to_container_patch" };
|
|
753
757
|
function orchestratorProxyToContainerPatch(api, args, options) {
|
|
@@ -844,6 +848,7 @@ var TABLE = {
|
|
|
844
848
|
"POST /compute-targets/resolve": $resolveComputeTarget,
|
|
845
849
|
"POST /broker/tokens": $mintToken,
|
|
846
850
|
"POST /broker/provider-failures": $reportProviderSessionFailure,
|
|
851
|
+
"POST /broker/usage": $reportProviderSessionUsage,
|
|
847
852
|
"POST /broker/gateway/anthropic/v1/messages/count_tokens": $anthropicCountTokens,
|
|
848
853
|
"GET /sandboxes/internal/default-browser-profile": $getDefaultBrowserProfileForUser,
|
|
849
854
|
"GET /admin/debug-traces/files": $listTraceFiles,
|
|
@@ -978,9 +983,9 @@ var TABLE = {
|
|
|
978
983
|
"POST /sandboxes/{sandbox_id}/complete": $sandboxComplete,
|
|
979
984
|
"POST /sandboxes/{sandbox_id}/error": $sandboxError,
|
|
980
985
|
"POST /sandboxes/{sandbox_id}/extend": $extendSandbox,
|
|
981
|
-
"GET /sandboxes/{sandbox_id}/fs/{path}": $
|
|
986
|
+
"GET /sandboxes/{sandbox_id}/fs/{path}": $orchestratorProxyFs,
|
|
982
987
|
"POST /sandboxes/{sandbox_id}/fs/{path}": $orchestratorProxyFsPost,
|
|
983
|
-
"PUT /sandboxes/{sandbox_id}/fs/{path}": $
|
|
988
|
+
"PUT /sandboxes/{sandbox_id}/fs/{path}": $orchestratorProxyFsPut,
|
|
984
989
|
"PATCH /sandboxes/{sandbox_id}/fs/{path}": $orchestratorProxyFsPatch,
|
|
985
990
|
"DELETE /sandboxes/{sandbox_id}/fs/{path}": $orchestratorProxyFsDelete,
|
|
986
991
|
"GET /sandboxes/{sandbox_id}/git/{path}": $orchestratorProxyGit,
|
|
@@ -1135,9 +1140,9 @@ exports.orchestratorProxyCredentials = orchestratorProxyCredentials;
|
|
|
1135
1140
|
exports.orchestratorProxyCredentialsPost = orchestratorProxyCredentialsPost;
|
|
1136
1141
|
exports.orchestratorProxyFs = orchestratorProxyFs;
|
|
1137
1142
|
exports.orchestratorProxyFsDelete = orchestratorProxyFsDelete;
|
|
1138
|
-
exports.orchestratorProxyFsGet = orchestratorProxyFsGet;
|
|
1139
1143
|
exports.orchestratorProxyFsPatch = orchestratorProxyFsPatch;
|
|
1140
1144
|
exports.orchestratorProxyFsPost = orchestratorProxyFsPost;
|
|
1145
|
+
exports.orchestratorProxyFsPut = orchestratorProxyFsPut;
|
|
1141
1146
|
exports.orchestratorProxyGit = orchestratorProxyGit;
|
|
1142
1147
|
exports.orchestratorProxyGitPost = orchestratorProxyGitPost;
|
|
1143
1148
|
exports.orchestratorProxyProcesses = orchestratorProxyProcesses;
|
|
@@ -1146,11 +1151,11 @@ exports.orchestratorProxySearch = orchestratorProxySearch;
|
|
|
1146
1151
|
exports.orchestratorProxySearchPost = orchestratorProxySearchPost;
|
|
1147
1152
|
exports.orchestratorProxyToContainer = orchestratorProxyToContainer;
|
|
1148
1153
|
exports.orchestratorProxyToContainerDelete = orchestratorProxyToContainerDelete;
|
|
1149
|
-
exports.orchestratorProxyToContainerGet = orchestratorProxyToContainerGet;
|
|
1150
1154
|
exports.orchestratorProxyToContainerHead = orchestratorProxyToContainerHead;
|
|
1151
1155
|
exports.orchestratorProxyToContainerOptions = orchestratorProxyToContainerOptions;
|
|
1152
1156
|
exports.orchestratorProxyToContainerPatch = orchestratorProxyToContainerPatch;
|
|
1153
1157
|
exports.orchestratorProxyToContainerPost = orchestratorProxyToContainerPost;
|
|
1158
|
+
exports.orchestratorProxyToContainerPut = orchestratorProxyToContainerPut;
|
|
1154
1159
|
exports.overview = overview;
|
|
1155
1160
|
exports.patchTask = patchTask;
|
|
1156
1161
|
exports.patchTrigger = patchTrigger;
|
|
@@ -1176,6 +1181,7 @@ exports.removeSuppression = removeSuppression;
|
|
|
1176
1181
|
exports.replayBatch = replayBatch;
|
|
1177
1182
|
exports.replayOne = replayOne;
|
|
1178
1183
|
exports.reportProviderSessionFailure = reportProviderSessionFailure;
|
|
1184
|
+
exports.reportProviderSessionUsage = reportProviderSessionUsage;
|
|
1179
1185
|
exports.requestAccess = requestAccess;
|
|
1180
1186
|
exports.resetSandbox = resetSandbox;
|
|
1181
1187
|
exports.resolveBatch = resolveBatch;
|