@ai-matrx/api 0.0.0-stage → 0.1.1
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 +31 -0
- package/LICENSE +21 -0
- package/README.md +22 -2
- package/dist/account.cjs +670 -0
- package/dist/account.d.cts +3246 -0
- package/dist/account.d.ts +3246 -0
- package/dist/account.js +558 -0
- package/dist/agents.cjs +598 -0
- package/dist/agents.d.cts +3417 -0
- package/dist/agents.d.ts +3417 -0
- package/dist/agents.js +497 -0
- package/dist/ai.cjs +109 -0
- package/dist/ai.d.cts +493 -0
- package/dist/ai.d.ts +493 -0
- package/dist/ai.js +91 -0
- package/dist/apps.cjs +394 -0
- package/dist/apps.d.cts +1094 -0
- package/dist/apps.d.ts +1094 -0
- package/dist/apps.js +328 -0
- package/dist/architecture.cjs +1223 -0
- package/dist/architecture.d.cts +4701 -0
- package/dist/architecture.d.ts +4701 -0
- package/dist/architecture.js +1016 -0
- package/dist/audio.cjs +226 -0
- package/dist/audio.d.cts +723 -0
- package/dist/audio.d.ts +723 -0
- package/dist/audio.js +188 -0
- package/dist/chat.cjs +538 -0
- package/dist/chat.d.cts +2251 -0
- package/dist/chat.d.ts +2251 -0
- package/dist/chat.js +447 -0
- package/dist/chunk-2SXAAKGV.cjs +279 -0
- package/dist/chunk-5WJLKYH6.cjs +48 -0
- package/dist/chunk-FNIYADWI.cjs +59 -0
- package/dist/chunk-HER22VVH.cjs +1047 -0
- package/dist/chunk-KIEAFMKB.js +264 -0
- package/dist/chunk-TSHL7Z53.js +1012 -0
- package/dist/chunk-VTZKJMSY.js +43 -0
- package/dist/chunk-YTEOFGFC.js +57 -0
- package/dist/code.cjs +561 -0
- package/dist/code.d.cts +1976 -0
- package/dist/code.d.ts +1976 -0
- package/dist/code.js +467 -0
- package/dist/commerce.cjs +22 -0
- package/dist/commerce.d.cts +45 -0
- package/dist/commerce.d.ts +45 -0
- package/dist/commerce.js +18 -0
- package/dist/communications.cjs +215 -0
- package/dist/communications.d.cts +948 -0
- package/dist/communications.d.ts +948 -0
- package/dist/communications.js +179 -0
- package/dist/computer.cjs +330 -0
- package/dist/computer.d.cts +733 -0
- package/dist/computer.d.ts +733 -0
- package/dist/computer.js +275 -0
- package/dist/content.cjs +425 -0
- package/dist/content.d.cts +1796 -0
- package/dist/content.d.ts +1796 -0
- package/dist/content.js +354 -0
- package/dist/credentials.cjs +22 -0
- package/dist/credentials.d.cts +82 -0
- package/dist/credentials.d.ts +82 -0
- package/dist/credentials.js +1 -0
- package/dist/crm.cjs +271 -0
- package/dist/crm.d.cts +1731 -0
- package/dist/crm.d.ts +1731 -0
- package/dist/crm.js +226 -0
- package/dist/data.cjs +382 -0
- package/dist/data.d.cts +1860 -0
- package/dist/data.d.ts +1860 -0
- package/dist/data.js +318 -0
- package/dist/education.cjs +28 -0
- package/dist/education.d.cts +73 -0
- package/dist/education.d.ts +73 -0
- package/dist/education.js +23 -0
- package/dist/files.cjs +1330 -0
- package/dist/files.d.cts +4956 -0
- package/dist/files.d.ts +4956 -0
- package/dist/files.js +1104 -0
- package/dist/human-resources.cjs +178 -0
- package/dist/human-resources.d.cts +1208 -0
- package/dist/human-resources.d.ts +1208 -0
- package/dist/human-resources.js +148 -0
- package/dist/index-C2E-Cp19.d.ts +385 -0
- package/dist/index-wC2vtb70.d.cts +385 -0
- package/dist/index.cjs +2016 -0
- package/dist/index.d.cts +2069 -0
- package/dist/index.d.ts +2069 -0
- package/dist/index.js +1746 -0
- package/dist/integrations.cjs +5116 -0
- package/dist/integrations.d.cts +19213 -0
- package/dist/integrations.d.ts +19213 -0
- package/dist/integrations.js +4263 -0
- package/dist/intelligence.cjs +1305 -0
- package/dist/intelligence.d.cts +4658 -0
- package/dist/intelligence.d.ts +4658 -0
- package/dist/intelligence.js +1196 -0
- package/dist/knowledge.cjs +1113 -0
- package/dist/knowledge.d.cts +5427 -0
- package/dist/knowledge.d.ts +5427 -0
- package/dist/knowledge.js +921 -0
- package/dist/legal.cjs +225 -0
- package/dist/legal.d.cts +1038 -0
- package/dist/legal.d.ts +1038 -0
- package/dist/legal.js +187 -0
- package/dist/marketing.cjs +1155 -0
- package/dist/marketing.d.cts +7741 -0
- package/dist/marketing.d.ts +7741 -0
- package/dist/marketing.js +951 -0
- package/dist/masterwork.cjs +283 -0
- package/dist/masterwork.d.cts +1938 -0
- package/dist/masterwork.d.ts +1938 -0
- package/dist/masterwork.js +231 -0
- package/dist/media.cjs +610 -0
- package/dist/media.d.cts +2270 -0
- package/dist/media.d.ts +2270 -0
- package/dist/media.js +507 -0
- package/dist/net.cjs +67 -0
- package/dist/net.d.cts +204 -0
- package/dist/net.d.ts +204 -0
- package/dist/net.js +2 -0
- package/dist/platform.cjs +150 -0
- package/dist/platform.d.cts +572 -0
- package/dist/platform.d.ts +572 -0
- package/dist/platform.js +125 -0
- package/dist/publish.cjs +248 -0
- package/dist/publish.d.cts +1431 -0
- package/dist/publish.d.ts +1431 -0
- package/dist/publish.js +206 -0
- package/dist/schemas.cjs +2 -0
- package/dist/schemas.d.cts +1353 -0
- package/dist/schemas.d.ts +1353 -0
- package/dist/schemas.js +1 -0
- package/dist/stream.cjs +44 -0
- package/dist/stream.d.cts +2 -0
- package/dist/stream.d.ts +2 -0
- package/dist/stream.js +3 -0
- package/dist/web.cjs +1045 -0
- package/dist/web.d.cts +4186 -0
- package/dist/web.d.ts +4186 -0
- package/dist/web.js +867 -0
- package/dist/workflows.cjs +825 -0
- package/dist/workflows.d.cts +4699 -0
- package/dist/workflows.d.ts +4699 -0
- package/dist/workflows.js +686 -0
- package/package.json +419 -4
package/dist/ai.d.cts
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-wC2vtb70.cjs';
|
|
2
|
+
import { JsonValue } from './schemas.cjs';
|
|
3
|
+
import './credentials.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
7
|
+
* CONTRACT_SHA256 50a790edb39e682b46e0fa9e674faf5ce2a0ba7de2cd01930a497fca4c47844a
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** AgentUsageReportResponse */
|
|
11
|
+
type AgentUsageReportResponse = {
|
|
12
|
+
agents: AgentUsageRollupEntry[];
|
|
13
|
+
total_agents: number;
|
|
14
|
+
total_usages: number;
|
|
15
|
+
};
|
|
16
|
+
/** AgentUsageRollupEntry */
|
|
17
|
+
type AgentUsageRollupEntry = {
|
|
18
|
+
agent_id: string;
|
|
19
|
+
agent_name?: string | null;
|
|
20
|
+
usage_count?: number;
|
|
21
|
+
breaking?: number;
|
|
22
|
+
silent_breaking?: number;
|
|
23
|
+
warning?: number;
|
|
24
|
+
info?: number;
|
|
25
|
+
};
|
|
26
|
+
/** AiCatalogReloadSummary */
|
|
27
|
+
type AiCatalogReloadSummary = {
|
|
28
|
+
endpoints: number;
|
|
29
|
+
apis: number;
|
|
30
|
+
offerings: number;
|
|
31
|
+
settings: number;
|
|
32
|
+
providers: number;
|
|
33
|
+
models: number;
|
|
34
|
+
aliases: number;
|
|
35
|
+
quarantined: number;
|
|
36
|
+
refreshed_model_rows: number;
|
|
37
|
+
quarantined_rows: QuarantinedRowSummary[];
|
|
38
|
+
};
|
|
39
|
+
/** AiModelsResponse */
|
|
40
|
+
type AiModelsResponse = {
|
|
41
|
+
models?: {
|
|
42
|
+
[key: string]: JsonValue;
|
|
43
|
+
}[];
|
|
44
|
+
count: number;
|
|
45
|
+
};
|
|
46
|
+
/** AnalyzeRequest */
|
|
47
|
+
type AnalyzeRequest_MatrxLocal = {
|
|
48
|
+
url: string;
|
|
49
|
+
hardware?: HardwareInfo | null;
|
|
50
|
+
};
|
|
51
|
+
/** AvailabilityDriftSummary */
|
|
52
|
+
type AvailabilityDriftSummary = {
|
|
53
|
+
mode: "off" | "report" | "park";
|
|
54
|
+
checked_providers: string[];
|
|
55
|
+
unservable?: UnservableOffering[];
|
|
56
|
+
parked?: string[];
|
|
57
|
+
restored?: string[];
|
|
58
|
+
held_back?: {
|
|
59
|
+
[key: string]: string;
|
|
60
|
+
};
|
|
61
|
+
write_failures?: string[];
|
|
62
|
+
};
|
|
63
|
+
/** One declared code usage — mirrors a row of public.agx_usage_registry. */
|
|
64
|
+
type CodeAgentUsage = {
|
|
65
|
+
usage_key: string;
|
|
66
|
+
source_system: "matrx-ai" | "aidream";
|
|
67
|
+
ref_kind: "version" | "agent" | "builtin";
|
|
68
|
+
agent_version_id?: string | null;
|
|
69
|
+
agent_id?: string | null;
|
|
70
|
+
purpose: string;
|
|
71
|
+
code_path: string;
|
|
72
|
+
};
|
|
73
|
+
/** Stable public API name for the provider-owned embedding input contract. */
|
|
74
|
+
type EmbeddingPart = {
|
|
75
|
+
type: "text" | "uri" | "inline";
|
|
76
|
+
text?: string | null;
|
|
77
|
+
uri?: string | null;
|
|
78
|
+
data?: string | null;
|
|
79
|
+
mime_type?: string | null;
|
|
80
|
+
};
|
|
81
|
+
/** EmbeddingRequest */
|
|
82
|
+
type EmbeddingRequest = {
|
|
83
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
84
|
+
organization_id?: string | null;
|
|
85
|
+
/** Optional associated project selected by the caller. */
|
|
86
|
+
project_id?: string | null;
|
|
87
|
+
/** Optional associated task selected by the caller. */
|
|
88
|
+
task_id?: string | null;
|
|
89
|
+
/** Stable application slug that initiated the request. */
|
|
90
|
+
source_app?: string | null;
|
|
91
|
+
/** Stable feature slug within the source application. */
|
|
92
|
+
source_feature?: string | null;
|
|
93
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
94
|
+
initiation?: ("user" | "auto") | null;
|
|
95
|
+
model: string;
|
|
96
|
+
inputs: (string | EmbeddingPart[])[];
|
|
97
|
+
output_dimensionality?: number;
|
|
98
|
+
task_type?: string | null;
|
|
99
|
+
title?: string | null;
|
|
100
|
+
};
|
|
101
|
+
/** EmbeddingResponse */
|
|
102
|
+
type EmbeddingResponse = {
|
|
103
|
+
model: string;
|
|
104
|
+
dimensions: number;
|
|
105
|
+
vectors: number[][];
|
|
106
|
+
};
|
|
107
|
+
/** HardwareInfo */
|
|
108
|
+
type HardwareInfo = {
|
|
109
|
+
total_ram_mb: number;
|
|
110
|
+
gpu_vram_mb?: number | null;
|
|
111
|
+
supports_cuda?: boolean;
|
|
112
|
+
supports_metal?: boolean;
|
|
113
|
+
is_apple_silicon?: boolean;
|
|
114
|
+
};
|
|
115
|
+
/** HfAssistRequest */
|
|
116
|
+
type HfAssistRequest = {
|
|
117
|
+
has_account?: boolean;
|
|
118
|
+
};
|
|
119
|
+
/** HfAssistResponse */
|
|
120
|
+
type HfAssistResponse = {
|
|
121
|
+
status: "opened" | "token_ready" | "manual";
|
|
122
|
+
token?: string | null;
|
|
123
|
+
reason?: string | null;
|
|
124
|
+
};
|
|
125
|
+
/** ModelFileEntry */
|
|
126
|
+
type ModelFileEntry = {
|
|
127
|
+
filename: string;
|
|
128
|
+
format: "gguf" | "safetensors" | "bin" | "onnx" | "other";
|
|
129
|
+
role: "main_model" | "mmproj" | "adapter" | "tokenizer" | "config" | "other";
|
|
130
|
+
quant: string | null;
|
|
131
|
+
is_split: boolean;
|
|
132
|
+
split_group: string | null;
|
|
133
|
+
part_index: number | null;
|
|
134
|
+
total_parts: number | null;
|
|
135
|
+
size_bytes: number;
|
|
136
|
+
total_size_bytes: number;
|
|
137
|
+
ram_required_gb: number;
|
|
138
|
+
compatibility_status: "works" | "needs_more_ram" | "accessory_only" | "incompatible_format";
|
|
139
|
+
compatibility_reason: string;
|
|
140
|
+
download_urls: string[];
|
|
141
|
+
recommended: boolean;
|
|
142
|
+
};
|
|
143
|
+
/** What the parameter-facts stage did. ``written`` is False on a dry run. */
|
|
144
|
+
type ParameterFactsSummary = {
|
|
145
|
+
written: boolean;
|
|
146
|
+
sources: {
|
|
147
|
+
[key: string]: string;
|
|
148
|
+
};
|
|
149
|
+
providers: {
|
|
150
|
+
[key: string]: {
|
|
151
|
+
[key: string]: number;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
write_failures?: string[];
|
|
155
|
+
};
|
|
156
|
+
/** Which providers to refresh. Omit ``provider_slugs`` for all supported. */
|
|
157
|
+
type ProviderModelsRefreshRequest = {
|
|
158
|
+
/** ai.provider.slug values to refresh (openai, anthropic, groq, google, xai). Omit or null to refresh every supported provider. */
|
|
159
|
+
provider_slugs?: string[] | null;
|
|
160
|
+
/** Also rebuild provider_models_cache.parameter_facts (per-offering parameter truth from the provider snapshots, models.dev, OpenRouter and the Vercel AI Gateway). */
|
|
161
|
+
parameter_facts?: boolean;
|
|
162
|
+
};
|
|
163
|
+
/** ProviderModelsRefreshSummary */
|
|
164
|
+
type ProviderModelsRefreshSummary = {
|
|
165
|
+
started_at: string;
|
|
166
|
+
refreshed: number;
|
|
167
|
+
missing_key: number;
|
|
168
|
+
no_provider_row: number;
|
|
169
|
+
failed: number;
|
|
170
|
+
results?: ProviderRefreshResult[];
|
|
171
|
+
parameter_facts?: ParameterFactsSummary | null;
|
|
172
|
+
availability?: AvailabilityDriftSummary | null;
|
|
173
|
+
};
|
|
174
|
+
/** What happened for ONE provider. Every status is reported, never dropped. */
|
|
175
|
+
type ProviderRefreshResult = {
|
|
176
|
+
provider_slug: string;
|
|
177
|
+
provider_label: string;
|
|
178
|
+
provider_id?: string | null;
|
|
179
|
+
status: "refreshed" | "missing_key" | "no_provider_row" | "failed";
|
|
180
|
+
model_count?: number;
|
|
181
|
+
fetched_at?: string | null;
|
|
182
|
+
detail?: string | null;
|
|
183
|
+
};
|
|
184
|
+
/** QuarantinedRowSummary */
|
|
185
|
+
type QuarantinedRowSummary = {
|
|
186
|
+
kind: string;
|
|
187
|
+
row_id: string;
|
|
188
|
+
name: string;
|
|
189
|
+
errors: string[];
|
|
190
|
+
};
|
|
191
|
+
/** RegistryDbRow */
|
|
192
|
+
type RegistryDbRow = {
|
|
193
|
+
source_system: string;
|
|
194
|
+
usage_key: string;
|
|
195
|
+
ref_kind: string;
|
|
196
|
+
agent_id: string | null;
|
|
197
|
+
agent_version_id: string | null;
|
|
198
|
+
status: string;
|
|
199
|
+
purpose: string | null;
|
|
200
|
+
code_path: string | null;
|
|
201
|
+
last_synced_at: string | null;
|
|
202
|
+
};
|
|
203
|
+
/** RegistryDiffResponse */
|
|
204
|
+
type RegistryDiffResponse = {
|
|
205
|
+
declared_count: number;
|
|
206
|
+
db_count: number;
|
|
207
|
+
declared: CodeAgentUsage[];
|
|
208
|
+
db_rows: RegistryDbRow[];
|
|
209
|
+
in_code_not_in_db: string[];
|
|
210
|
+
in_db_not_in_code: string[];
|
|
211
|
+
import_failures: string[];
|
|
212
|
+
};
|
|
213
|
+
/** RegistrySyncReport */
|
|
214
|
+
type RegistrySyncReport = {
|
|
215
|
+
declared?: number;
|
|
216
|
+
created?: number;
|
|
217
|
+
updated?: number;
|
|
218
|
+
unchanged?: number;
|
|
219
|
+
vanished?: number;
|
|
220
|
+
broken_pins?: string[];
|
|
221
|
+
import_failures?: string[];
|
|
222
|
+
applied?: boolean;
|
|
223
|
+
skipped_reason?: string | null;
|
|
224
|
+
};
|
|
225
|
+
/** RepoAnalysisResult */
|
|
226
|
+
type RepoAnalysisResult = {
|
|
227
|
+
provider: string;
|
|
228
|
+
repo_id: string;
|
|
229
|
+
repo_url: string;
|
|
230
|
+
author: string | null;
|
|
231
|
+
model_name: string | null;
|
|
232
|
+
architecture: string | null;
|
|
233
|
+
total_files: number;
|
|
234
|
+
hardware_label: string | null;
|
|
235
|
+
effective_capacity_gb: number | null;
|
|
236
|
+
files: ModelFileEntry[];
|
|
237
|
+
};
|
|
238
|
+
/** ScanSummary */
|
|
239
|
+
type ScanSummary = {
|
|
240
|
+
success: boolean;
|
|
241
|
+
result_summary: string;
|
|
242
|
+
metadata: {
|
|
243
|
+
[key: string]: unknown;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
/** SettingsProbeOutcome */
|
|
247
|
+
type SettingsProbeOutcome = {
|
|
248
|
+
offering_id: string;
|
|
249
|
+
model_name: string;
|
|
250
|
+
api: string;
|
|
251
|
+
setting_key: string;
|
|
252
|
+
label: string;
|
|
253
|
+
value?: JsonValue;
|
|
254
|
+
wire?: {
|
|
255
|
+
[key: string]: JsonValue;
|
|
256
|
+
};
|
|
257
|
+
outcome: string;
|
|
258
|
+
detail?: string;
|
|
259
|
+
provider_message?: string | null;
|
|
260
|
+
provider_param?: string | null;
|
|
261
|
+
error_type?: string | null;
|
|
262
|
+
fingerprint?: string | null;
|
|
263
|
+
cost_usd?: number;
|
|
264
|
+
cell_id?: string | null;
|
|
265
|
+
evidence?: string;
|
|
266
|
+
};
|
|
267
|
+
/** One offering to probe now (settings-translation I2). */
|
|
268
|
+
type SettingsProbeRequest = {
|
|
269
|
+
/** The ai.offering id to probe (one routable chat offering). */
|
|
270
|
+
offering_id: string;
|
|
271
|
+
/** Write each result as translation-cell evidence when the cell tables exist. */
|
|
272
|
+
write_evidence?: boolean;
|
|
273
|
+
};
|
|
274
|
+
/** SettingsProbeResponse */
|
|
275
|
+
type SettingsProbeResponse = {
|
|
276
|
+
summary: string;
|
|
277
|
+
source: string;
|
|
278
|
+
started_at: string;
|
|
279
|
+
finished_at?: string | null;
|
|
280
|
+
catalog: string;
|
|
281
|
+
offerings_planned: number;
|
|
282
|
+
probes_planned: number;
|
|
283
|
+
probes_sent: number;
|
|
284
|
+
budget: {
|
|
285
|
+
[key: string]: number;
|
|
286
|
+
};
|
|
287
|
+
stopped_by_budget: boolean;
|
|
288
|
+
left_unprobed: number;
|
|
289
|
+
cost_usd: number;
|
|
290
|
+
evidence_mode: string;
|
|
291
|
+
evidence_reason: string;
|
|
292
|
+
outcomes: SettingsProbeOutcome[];
|
|
293
|
+
skipped_offerings: SettingsProbeSkippedOffering[];
|
|
294
|
+
};
|
|
295
|
+
/** SettingsProbeSkippedOffering */
|
|
296
|
+
type SettingsProbeSkippedOffering = {
|
|
297
|
+
offering_id: string;
|
|
298
|
+
model_name: string;
|
|
299
|
+
api: string;
|
|
300
|
+
modality: string;
|
|
301
|
+
why: string;
|
|
302
|
+
};
|
|
303
|
+
/** An AVAILABLE offering the provider's own fresh list says it cannot serve. */
|
|
304
|
+
type UnservableOffering = {
|
|
305
|
+
offering_id: string;
|
|
306
|
+
model_definition_id: string;
|
|
307
|
+
model_name: string;
|
|
308
|
+
provider_slug: string;
|
|
309
|
+
provider_model_id: string;
|
|
310
|
+
reason: "absent_from_provider_list" | "not_serverless";
|
|
311
|
+
retirement_candidate: boolean;
|
|
312
|
+
};
|
|
313
|
+
type GetAllAiModelsArgs = {
|
|
314
|
+
[key: string]: never;
|
|
315
|
+
};
|
|
316
|
+
type GetAllAiModelsResult = AiModelsResponse;
|
|
317
|
+
/** Get All Ai Models */
|
|
318
|
+
/** `GET /ai-models` · aidream · auth guest · org optional */
|
|
319
|
+
declare function getAllAiModels(api: Api, args?: GetAllAiModelsArgs, options?: CallOptions): Promise<GetAllAiModelsResult>;
|
|
320
|
+
type CreateEmbeddingsArgs = {
|
|
321
|
+
body: EmbeddingRequest;
|
|
322
|
+
};
|
|
323
|
+
type CreateEmbeddingsResult = EmbeddingResponse;
|
|
324
|
+
/** Create Embeddings */
|
|
325
|
+
/** `POST /ai/google/embeddings` · aidream · auth guest · org required */
|
|
326
|
+
declare function createEmbeddings(api: Api, args: CreateEmbeddingsArgs, options?: CallOptions): Promise<CreateEmbeddingsResult>;
|
|
327
|
+
type SyncRegisteredUsagesEndpointArgs = {
|
|
328
|
+
[key: string]: never;
|
|
329
|
+
};
|
|
330
|
+
type SyncRegisteredUsagesEndpointResult = RegistrySyncReport;
|
|
331
|
+
/** Sync Registered Usages Endpoint */
|
|
332
|
+
/** `POST /agent-usage/sync` · aidream · auth admin · org exempt */
|
|
333
|
+
declare function syncRegisteredUsagesEndpoint(api: Api, args?: SyncRegisteredUsagesEndpointArgs, options?: CallOptions): Promise<SyncRegisteredUsagesEndpointResult>;
|
|
334
|
+
type RegistryDiffEndpointArgs = {
|
|
335
|
+
[key: string]: never;
|
|
336
|
+
};
|
|
337
|
+
type RegistryDiffEndpointResult = RegistryDiffResponse;
|
|
338
|
+
/** Registry Diff Endpoint */
|
|
339
|
+
/** `GET /agent-usage/registry` · aidream · auth admin · org exempt */
|
|
340
|
+
declare function registryDiffEndpoint(api: Api, args?: RegistryDiffEndpointArgs, options?: CallOptions): Promise<RegistryDiffEndpointResult>;
|
|
341
|
+
type RunScanEndpointArgs = {
|
|
342
|
+
[key: string]: never;
|
|
343
|
+
};
|
|
344
|
+
type RunScanEndpointResult = ScanSummary;
|
|
345
|
+
/** Run Scan Endpoint */
|
|
346
|
+
/** `POST /agent-usage/scan` · aidream · auth admin · org exempt */
|
|
347
|
+
declare function runScanEndpoint(api: Api, args?: RunScanEndpointArgs, options?: CallOptions): Promise<RunScanEndpointResult>;
|
|
348
|
+
type ReportEndpointArgs = {
|
|
349
|
+
[key: string]: never;
|
|
350
|
+
};
|
|
351
|
+
type ReportEndpointResult = AgentUsageReportResponse;
|
|
352
|
+
/** Report Endpoint */
|
|
353
|
+
/** `GET /agent-usage/report` · aidream · auth admin · org exempt */
|
|
354
|
+
declare function reportEndpoint(api: Api, args?: ReportEndpointArgs, options?: CallOptions): Promise<ReportEndpointResult>;
|
|
355
|
+
type ReloadCatalogArgs = {
|
|
356
|
+
[key: string]: never;
|
|
357
|
+
};
|
|
358
|
+
type ReloadCatalogResult = AiCatalogReloadSummary;
|
|
359
|
+
/** Reload Catalog */
|
|
360
|
+
/** `POST /admin/ai-catalog/reload` · aidream · auth admin · org exempt */
|
|
361
|
+
declare function reloadCatalog(api: Api, args?: ReloadCatalogArgs, options?: CallOptions): Promise<ReloadCatalogResult>;
|
|
362
|
+
type RefreshProviderModelsArgs = {
|
|
363
|
+
body?: ProviderModelsRefreshRequest | null;
|
|
364
|
+
};
|
|
365
|
+
type RefreshProviderModelsResult = ProviderModelsRefreshSummary;
|
|
366
|
+
/** Refresh Provider Models */
|
|
367
|
+
/** `POST /admin/ai-catalog/provider-models/refresh` · aidream · auth admin · org exempt */
|
|
368
|
+
declare function refreshProviderModels(api: Api, args?: RefreshProviderModelsArgs, options?: CallOptions): Promise<RefreshProviderModelsResult>;
|
|
369
|
+
type RunSettingsProbeArgs = {
|
|
370
|
+
body: SettingsProbeRequest;
|
|
371
|
+
};
|
|
372
|
+
type RunSettingsProbeResult = SettingsProbeResponse;
|
|
373
|
+
/** Run Settings Probe */
|
|
374
|
+
/** `POST /admin/ai-catalog/settings-probe` · aidream · auth admin · org exempt */
|
|
375
|
+
declare function runSettingsProbe(api: Api, args: RunSettingsProbeArgs, options?: CallOptions): Promise<RunSettingsProbeResult>;
|
|
376
|
+
type AnalyzeRepoArgs = {
|
|
377
|
+
body: AnalyzeRequest_MatrxLocal;
|
|
378
|
+
};
|
|
379
|
+
type AnalyzeRepoResult = RepoAnalysisResult;
|
|
380
|
+
/** Analyze Repo */
|
|
381
|
+
/** `POST /model-repo/analyze` · matrx-local · auth loopback_token · org exempt */
|
|
382
|
+
declare function analyzeRepo(api: Api, args: AnalyzeRepoArgs, options?: CallOptions): Promise<AnalyzeRepoResult>;
|
|
383
|
+
type ListModelsArgs = {
|
|
384
|
+
[key: string]: never;
|
|
385
|
+
};
|
|
386
|
+
type ListModelsResult = {
|
|
387
|
+
[key: string]: unknown;
|
|
388
|
+
};
|
|
389
|
+
/** List Models */
|
|
390
|
+
/** `GET /v1/models` · matrx-local · auth loopback_token · org exempt */
|
|
391
|
+
declare function listModels(api: Api, args?: ListModelsArgs, options?: CallOptions): Promise<ListModelsResult>;
|
|
392
|
+
type ChatCompletionsArgs = {
|
|
393
|
+
[key: string]: never;
|
|
394
|
+
};
|
|
395
|
+
type ChatCompletionsResult = unknown;
|
|
396
|
+
/** Chat Completions */
|
|
397
|
+
/** `POST /v1/chat/completions` · matrx-local · auth loopback_token · org exempt · sse_or_json */
|
|
398
|
+
declare function chatCompletions(api: Api, args?: ChatCompletionsArgs, options?: CallOptions): Promise<JsonOrStream<ChatCompletionsResult, SseEvent>>;
|
|
399
|
+
type AudioSpeechArgs = {
|
|
400
|
+
[key: string]: never;
|
|
401
|
+
};
|
|
402
|
+
type AudioSpeechResult = unknown;
|
|
403
|
+
/** Audio Speech */
|
|
404
|
+
/** `POST /v1/audio/speech` · matrx-local · auth loopback_token · org exempt */
|
|
405
|
+
declare function audioSpeech(api: Api, args?: AudioSpeechArgs, options?: CallOptions): Promise<AudioSpeechResult>;
|
|
406
|
+
type AudioTranscriptionsArgs = {
|
|
407
|
+
body: FormData;
|
|
408
|
+
};
|
|
409
|
+
type AudioTranscriptionsResult = unknown;
|
|
410
|
+
/** Audio Transcriptions */
|
|
411
|
+
/** `POST /v1/audio/transcriptions` · matrx-local · auth loopback_token · org exempt */
|
|
412
|
+
declare function audioTranscriptions(api: Api, args: AudioTranscriptionsArgs, options?: CallOptions): Promise<AudioTranscriptionsResult>;
|
|
413
|
+
type EmbeddingsArgs = {
|
|
414
|
+
[key: string]: never;
|
|
415
|
+
};
|
|
416
|
+
type EmbeddingsResult = unknown;
|
|
417
|
+
/** Embeddings */
|
|
418
|
+
/** `POST /v1/embeddings` · matrx-local · auth loopback_token · org exempt */
|
|
419
|
+
declare function embeddings(api: Api, args?: EmbeddingsArgs, options?: CallOptions): Promise<EmbeddingsResult>;
|
|
420
|
+
type HfTokenAssistArgs = {
|
|
421
|
+
body: HfAssistRequest;
|
|
422
|
+
};
|
|
423
|
+
type HfTokenAssistResult = HfAssistResponse;
|
|
424
|
+
/** Hf Token Assist */
|
|
425
|
+
/** `POST /hf-token/assist` · matrx-local · auth loopback_token · org exempt */
|
|
426
|
+
declare function hfTokenAssist(api: Api, args: HfTokenAssistArgs, options?: CallOptions): Promise<HfTokenAssistResult>;
|
|
427
|
+
/** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
|
|
428
|
+
interface Operations {
|
|
429
|
+
"GET /ai-models": {
|
|
430
|
+
args: GetAllAiModelsArgs;
|
|
431
|
+
result: GetAllAiModelsResult;
|
|
432
|
+
};
|
|
433
|
+
"POST /ai/google/embeddings": {
|
|
434
|
+
args: CreateEmbeddingsArgs;
|
|
435
|
+
result: CreateEmbeddingsResult;
|
|
436
|
+
};
|
|
437
|
+
"POST /agent-usage/sync": {
|
|
438
|
+
args: SyncRegisteredUsagesEndpointArgs;
|
|
439
|
+
result: SyncRegisteredUsagesEndpointResult;
|
|
440
|
+
};
|
|
441
|
+
"GET /agent-usage/registry": {
|
|
442
|
+
args: RegistryDiffEndpointArgs;
|
|
443
|
+
result: RegistryDiffEndpointResult;
|
|
444
|
+
};
|
|
445
|
+
"POST /agent-usage/scan": {
|
|
446
|
+
args: RunScanEndpointArgs;
|
|
447
|
+
result: RunScanEndpointResult;
|
|
448
|
+
};
|
|
449
|
+
"GET /agent-usage/report": {
|
|
450
|
+
args: ReportEndpointArgs;
|
|
451
|
+
result: ReportEndpointResult;
|
|
452
|
+
};
|
|
453
|
+
"POST /admin/ai-catalog/reload": {
|
|
454
|
+
args: ReloadCatalogArgs;
|
|
455
|
+
result: ReloadCatalogResult;
|
|
456
|
+
};
|
|
457
|
+
"POST /admin/ai-catalog/provider-models/refresh": {
|
|
458
|
+
args: RefreshProviderModelsArgs;
|
|
459
|
+
result: RefreshProviderModelsResult;
|
|
460
|
+
};
|
|
461
|
+
"POST /admin/ai-catalog/settings-probe": {
|
|
462
|
+
args: RunSettingsProbeArgs;
|
|
463
|
+
result: RunSettingsProbeResult;
|
|
464
|
+
};
|
|
465
|
+
"POST /model-repo/analyze": {
|
|
466
|
+
args: AnalyzeRepoArgs;
|
|
467
|
+
result: AnalyzeRepoResult;
|
|
468
|
+
};
|
|
469
|
+
"GET /v1/models": {
|
|
470
|
+
args: ListModelsArgs;
|
|
471
|
+
result: ListModelsResult;
|
|
472
|
+
};
|
|
473
|
+
"POST /v1/audio/speech": {
|
|
474
|
+
args: AudioSpeechArgs;
|
|
475
|
+
result: AudioSpeechResult;
|
|
476
|
+
};
|
|
477
|
+
"POST /v1/audio/transcriptions": {
|
|
478
|
+
args: AudioTranscriptionsArgs;
|
|
479
|
+
result: AudioTranscriptionsResult;
|
|
480
|
+
};
|
|
481
|
+
"POST /v1/embeddings": {
|
|
482
|
+
args: EmbeddingsArgs;
|
|
483
|
+
result: EmbeddingsResult;
|
|
484
|
+
};
|
|
485
|
+
"POST /hf-token/assist": {
|
|
486
|
+
args: HfTokenAssistArgs;
|
|
487
|
+
result: HfTokenAssistResult;
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
491
|
+
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
492
|
+
|
|
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 };
|