@kvell007/embed-labs-protocol 0.1.0-alpha.4 → 0.1.0-alpha.40
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/dist/index.d.ts +102 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ export interface AccountStatus {
|
|
|
120
120
|
account_id: string;
|
|
121
121
|
email: string;
|
|
122
122
|
display_name?: string;
|
|
123
|
+
device_limit?: number;
|
|
123
124
|
created_at: string;
|
|
124
125
|
updated_at: string;
|
|
125
126
|
}
|
|
@@ -138,12 +139,16 @@ export type AuthContextInfo = {
|
|
|
138
139
|
kind: "api_key";
|
|
139
140
|
account_id: string;
|
|
140
141
|
api_key_id: string;
|
|
142
|
+
client_device_id?: string;
|
|
143
|
+
device_id?: string;
|
|
141
144
|
};
|
|
142
145
|
export interface ApiKeySummary {
|
|
143
146
|
api_key_id: string;
|
|
144
147
|
account_id: string;
|
|
145
148
|
name?: string;
|
|
146
149
|
key_prefix: string;
|
|
150
|
+
api_key?: string;
|
|
151
|
+
secret_available?: boolean;
|
|
147
152
|
created_at: string;
|
|
148
153
|
last_used_at?: string;
|
|
149
154
|
revoked_at?: string;
|
|
@@ -159,6 +164,10 @@ export interface TokenUsageRecord {
|
|
|
159
164
|
usage_id: string;
|
|
160
165
|
account_id: string;
|
|
161
166
|
api_key_id: string;
|
|
167
|
+
client_device_id?: string;
|
|
168
|
+
local_device_id?: string;
|
|
169
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
170
|
+
device_id?: string;
|
|
162
171
|
provider?: string;
|
|
163
172
|
model: string;
|
|
164
173
|
operation?: string;
|
|
@@ -172,6 +181,10 @@ export interface TokenUsageRecord {
|
|
|
172
181
|
export interface TokenUsageCreateRequest {
|
|
173
182
|
api_key?: string;
|
|
174
183
|
api_key_id?: string;
|
|
184
|
+
client_device_id?: string;
|
|
185
|
+
local_device_id?: string;
|
|
186
|
+
/** @deprecated Use client_device_id for account_devices rows or local_device_id for boards. */
|
|
187
|
+
device_id?: string;
|
|
175
188
|
provider?: string;
|
|
176
189
|
model: string;
|
|
177
190
|
operation?: string;
|
|
@@ -181,6 +194,84 @@ export interface TokenUsageCreateRequest {
|
|
|
181
194
|
request_id?: string;
|
|
182
195
|
created_at?: string;
|
|
183
196
|
}
|
|
197
|
+
export interface McpToolEventRecord {
|
|
198
|
+
event_id: string;
|
|
199
|
+
account_id?: string;
|
|
200
|
+
user_id?: string;
|
|
201
|
+
api_key_id?: string;
|
|
202
|
+
client_device_id?: string;
|
|
203
|
+
local_device_id?: string;
|
|
204
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
205
|
+
device_id?: string;
|
|
206
|
+
client: string;
|
|
207
|
+
tool_name: string;
|
|
208
|
+
mode: string;
|
|
209
|
+
server_model_used: boolean;
|
|
210
|
+
success: boolean;
|
|
211
|
+
request_id?: string;
|
|
212
|
+
duration_ms?: number;
|
|
213
|
+
input_summary?: string;
|
|
214
|
+
output_summary?: string;
|
|
215
|
+
metadata?: Record<string, unknown>;
|
|
216
|
+
created_at: string;
|
|
217
|
+
}
|
|
218
|
+
export interface McpToolEventCreateRequest {
|
|
219
|
+
account_id?: string;
|
|
220
|
+
client_device_id?: string;
|
|
221
|
+
local_device_id?: string;
|
|
222
|
+
/** @deprecated Use client_device_id for account_devices rows or local_device_id for boards. */
|
|
223
|
+
device_id?: string;
|
|
224
|
+
client?: string;
|
|
225
|
+
tool_name: string;
|
|
226
|
+
mode?: string;
|
|
227
|
+
server_model_used?: boolean;
|
|
228
|
+
success?: boolean;
|
|
229
|
+
request_id?: string;
|
|
230
|
+
duration_ms?: number;
|
|
231
|
+
input_summary?: string;
|
|
232
|
+
output_summary?: string;
|
|
233
|
+
metadata?: Record<string, unknown>;
|
|
234
|
+
created_at?: string;
|
|
235
|
+
}
|
|
236
|
+
export interface ClientDeviceContext {
|
|
237
|
+
device_id: string;
|
|
238
|
+
fingerprint_hash: string;
|
|
239
|
+
platform?: string;
|
|
240
|
+
arch?: string;
|
|
241
|
+
label?: string;
|
|
242
|
+
}
|
|
243
|
+
export interface ClientDeviceRegistrationRequest {
|
|
244
|
+
fingerprint_hash: string;
|
|
245
|
+
public_key: string;
|
|
246
|
+
label?: string;
|
|
247
|
+
platform?: string;
|
|
248
|
+
arch?: string;
|
|
249
|
+
hostname_hash?: string;
|
|
250
|
+
client_name?: string;
|
|
251
|
+
client_version?: string;
|
|
252
|
+
metadata?: Record<string, unknown>;
|
|
253
|
+
}
|
|
254
|
+
export interface AccountDeviceRecord {
|
|
255
|
+
device_id: string;
|
|
256
|
+
account_id: string;
|
|
257
|
+
api_key_id?: string;
|
|
258
|
+
fingerprint_hash: string;
|
|
259
|
+
public_key?: string;
|
|
260
|
+
label?: string;
|
|
261
|
+
platform?: string;
|
|
262
|
+
arch?: string;
|
|
263
|
+
hostname_hash?: string;
|
|
264
|
+
status: "active" | "revoked";
|
|
265
|
+
first_seen_at: string;
|
|
266
|
+
last_seen_at: string;
|
|
267
|
+
revoked_at?: string;
|
|
268
|
+
metadata?: Record<string, unknown>;
|
|
269
|
+
}
|
|
270
|
+
export interface ClientDeviceRegistrationResult {
|
|
271
|
+
device: AccountDeviceRecord;
|
|
272
|
+
device_limit: number;
|
|
273
|
+
active_device_count: number;
|
|
274
|
+
}
|
|
184
275
|
export interface TokenUsageModelSummary {
|
|
185
276
|
model: string;
|
|
186
277
|
input_tokens: number;
|
|
@@ -487,7 +578,7 @@ export interface BoardKnowledgeFile {
|
|
|
487
578
|
content_base64: string;
|
|
488
579
|
observed_at: string;
|
|
489
580
|
}
|
|
490
|
-
export type BoardServerMethodOperation = "workspace.provision" | "source.list" | "source.read" | "source.write" | "app.build" | "app.compile" | "image.build" | "artifact.download" | "workspace.release";
|
|
581
|
+
export type BoardServerMethodOperation = "workspace.provision" | "source.list" | "source.read" | "source.write" | "app.build" | "app.compile" | "image.build" | "artifact.download" | "workspace.release" | "monitor.capabilities" | "monitor.status" | "monitor.gpio.read" | "monitor.gpio.write" | "monitor.uart.write" | "monitor.i2c.transfer" | "monitor.spi.transfer" | "monitor.logic.capture" | "monitor.logic.decode" | "monitor.wifi.manage" | "monitor.probe.debug" | "monitor.firmware.flash" | "initial_firmware.flash" | "flash.plan" | "flash.run";
|
|
491
582
|
export type ProductAccessTier = "free_registered" | "paid_resource" | "paid_managed_model";
|
|
492
583
|
export interface BoardServerMethodSummary {
|
|
493
584
|
method_id: string;
|
|
@@ -838,7 +929,7 @@ export interface AgentTaskCreateRequest {
|
|
|
838
929
|
kind?: string;
|
|
839
930
|
}
|
|
840
931
|
export interface DeviceLocator {
|
|
841
|
-
transport: "usb" | "serial" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
932
|
+
transport: "usb" | "serial" | "tcp" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
842
933
|
path?: string;
|
|
843
934
|
host?: string;
|
|
844
935
|
port?: number;
|
|
@@ -864,6 +955,7 @@ export interface SerialPortInfo {
|
|
|
864
955
|
}
|
|
865
956
|
export interface DeviceSummary {
|
|
866
957
|
device_id: string;
|
|
958
|
+
local_device_id?: string;
|
|
867
959
|
board_id?: string;
|
|
868
960
|
variant_id?: string;
|
|
869
961
|
hardware_profile_id?: string;
|
|
@@ -953,7 +1045,7 @@ export interface DebugToolScanResult {
|
|
|
953
1045
|
warnings?: ErrorEnvelope[];
|
|
954
1046
|
}
|
|
955
1047
|
export type ToolRuntime = "local_bridge" | "cloud" | "mcp" | "hosted";
|
|
956
|
-
export type ToolCapabilityId = "debug.tools.scan" | "device.scan" | "device.probe" | "wifi.scan" | "bluetooth.scan" | "chip.cpu.frequency" | "chip.temperature" | "qml.runtime.status" | "qml.runtime.start" | "flash.plan" | "flash.run" | "taishanpi.deploy" | (string & {});
|
|
1048
|
+
export type ToolCapabilityId = "debug.tools.scan" | "device.scan" | "device.probe" | "wifi.scan" | "bluetooth.scan" | "chip.cpu.frequency" | "chip.temperature" | "qml.runtime.status" | "qml.runtime.start" | "rp2350.monitor.capabilities" | "rp2350.monitor.status" | "rp2350.monitor.operation" | "rp2350.monitor.gpio.read" | "rp2350.monitor.gpio.write" | "rp2350.monitor.uart.write" | "rp2350.monitor.i2c.transfer" | "rp2350.monitor.logic.capture" | "rp2350.monitor.logic.decode" | "rp2350.monitor.spi.transfer" | "rp2350.monitor.wifi.manage" | "rp2350.monitor.probe.debug" | "rp2350.monitor.command" | "flash.plan" | "flash.run" | "taishanpi.deploy" | (string & {});
|
|
957
1049
|
export interface ToolCapabilitySummary {
|
|
958
1050
|
capability_id: ToolCapabilityId;
|
|
959
1051
|
display_name: string;
|
|
@@ -989,6 +1081,8 @@ export interface ToolInvokeResult {
|
|
|
989
1081
|
export interface AgentLocalToolRunRequest {
|
|
990
1082
|
prompt: string;
|
|
991
1083
|
account_id?: string;
|
|
1084
|
+
client_device_id?: string;
|
|
1085
|
+
local_device_id?: string;
|
|
992
1086
|
workspace_id?: string;
|
|
993
1087
|
provider?: AgentProviderInput;
|
|
994
1088
|
model?: string;
|
|
@@ -1007,6 +1101,11 @@ export interface AgentLocalToolPlan {
|
|
|
1007
1101
|
plan_id: string;
|
|
1008
1102
|
request_id: string;
|
|
1009
1103
|
account_id?: string;
|
|
1104
|
+
api_key_id?: string;
|
|
1105
|
+
client_device_id?: string;
|
|
1106
|
+
local_device_id?: string;
|
|
1107
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
1108
|
+
device_id?: string;
|
|
1010
1109
|
workspace_id?: string;
|
|
1011
1110
|
provider: AgentProvider;
|
|
1012
1111
|
model: string;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqqDA,MAAM,UAAU,EAAE,CAAI,IAAO;IAC3B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,IAAY,EAAE,OAAe,EAAE,UAAmD,EAAE;IACvG,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,CAAC;AAC7D,CAAC"}
|
package/package.json
CHANGED