@kvell007/embed-labs-protocol 0.1.0-alpha.3 → 0.1.0-alpha.31
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 +99 -2
- 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,6 +139,8 @@ 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;
|
|
@@ -159,6 +162,10 @@ export interface TokenUsageRecord {
|
|
|
159
162
|
usage_id: string;
|
|
160
163
|
account_id: string;
|
|
161
164
|
api_key_id: string;
|
|
165
|
+
client_device_id?: string;
|
|
166
|
+
local_device_id?: string;
|
|
167
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
168
|
+
device_id?: string;
|
|
162
169
|
provider?: string;
|
|
163
170
|
model: string;
|
|
164
171
|
operation?: string;
|
|
@@ -172,6 +179,10 @@ export interface TokenUsageRecord {
|
|
|
172
179
|
export interface TokenUsageCreateRequest {
|
|
173
180
|
api_key?: string;
|
|
174
181
|
api_key_id?: string;
|
|
182
|
+
client_device_id?: string;
|
|
183
|
+
local_device_id?: string;
|
|
184
|
+
/** @deprecated Use client_device_id for account_devices rows or local_device_id for boards. */
|
|
185
|
+
device_id?: string;
|
|
175
186
|
provider?: string;
|
|
176
187
|
model: string;
|
|
177
188
|
operation?: string;
|
|
@@ -181,6 +192,84 @@ export interface TokenUsageCreateRequest {
|
|
|
181
192
|
request_id?: string;
|
|
182
193
|
created_at?: string;
|
|
183
194
|
}
|
|
195
|
+
export interface McpToolEventRecord {
|
|
196
|
+
event_id: string;
|
|
197
|
+
account_id?: string;
|
|
198
|
+
user_id?: string;
|
|
199
|
+
api_key_id?: string;
|
|
200
|
+
client_device_id?: string;
|
|
201
|
+
local_device_id?: string;
|
|
202
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
203
|
+
device_id?: string;
|
|
204
|
+
client: string;
|
|
205
|
+
tool_name: string;
|
|
206
|
+
mode: string;
|
|
207
|
+
server_model_used: boolean;
|
|
208
|
+
success: boolean;
|
|
209
|
+
request_id?: string;
|
|
210
|
+
duration_ms?: number;
|
|
211
|
+
input_summary?: string;
|
|
212
|
+
output_summary?: string;
|
|
213
|
+
metadata?: Record<string, unknown>;
|
|
214
|
+
created_at: string;
|
|
215
|
+
}
|
|
216
|
+
export interface McpToolEventCreateRequest {
|
|
217
|
+
account_id?: string;
|
|
218
|
+
client_device_id?: string;
|
|
219
|
+
local_device_id?: string;
|
|
220
|
+
/** @deprecated Use client_device_id for account_devices rows or local_device_id for boards. */
|
|
221
|
+
device_id?: string;
|
|
222
|
+
client?: string;
|
|
223
|
+
tool_name: string;
|
|
224
|
+
mode?: string;
|
|
225
|
+
server_model_used?: boolean;
|
|
226
|
+
success?: boolean;
|
|
227
|
+
request_id?: string;
|
|
228
|
+
duration_ms?: number;
|
|
229
|
+
input_summary?: string;
|
|
230
|
+
output_summary?: string;
|
|
231
|
+
metadata?: Record<string, unknown>;
|
|
232
|
+
created_at?: string;
|
|
233
|
+
}
|
|
234
|
+
export interface ClientDeviceContext {
|
|
235
|
+
device_id: string;
|
|
236
|
+
fingerprint_hash: string;
|
|
237
|
+
platform?: string;
|
|
238
|
+
arch?: string;
|
|
239
|
+
label?: string;
|
|
240
|
+
}
|
|
241
|
+
export interface ClientDeviceRegistrationRequest {
|
|
242
|
+
fingerprint_hash: string;
|
|
243
|
+
public_key: string;
|
|
244
|
+
label?: string;
|
|
245
|
+
platform?: string;
|
|
246
|
+
arch?: string;
|
|
247
|
+
hostname_hash?: string;
|
|
248
|
+
client_name?: string;
|
|
249
|
+
client_version?: string;
|
|
250
|
+
metadata?: Record<string, unknown>;
|
|
251
|
+
}
|
|
252
|
+
export interface AccountDeviceRecord {
|
|
253
|
+
device_id: string;
|
|
254
|
+
account_id: string;
|
|
255
|
+
api_key_id?: string;
|
|
256
|
+
fingerprint_hash: string;
|
|
257
|
+
public_key?: string;
|
|
258
|
+
label?: string;
|
|
259
|
+
platform?: string;
|
|
260
|
+
arch?: string;
|
|
261
|
+
hostname_hash?: string;
|
|
262
|
+
status: "active" | "revoked";
|
|
263
|
+
first_seen_at: string;
|
|
264
|
+
last_seen_at: string;
|
|
265
|
+
revoked_at?: string;
|
|
266
|
+
metadata?: Record<string, unknown>;
|
|
267
|
+
}
|
|
268
|
+
export interface ClientDeviceRegistrationResult {
|
|
269
|
+
device: AccountDeviceRecord;
|
|
270
|
+
device_limit: number;
|
|
271
|
+
active_device_count: number;
|
|
272
|
+
}
|
|
184
273
|
export interface TokenUsageModelSummary {
|
|
185
274
|
model: string;
|
|
186
275
|
input_tokens: number;
|
|
@@ -838,7 +927,7 @@ export interface AgentTaskCreateRequest {
|
|
|
838
927
|
kind?: string;
|
|
839
928
|
}
|
|
840
929
|
export interface DeviceLocator {
|
|
841
|
-
transport: "usb" | "serial" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
930
|
+
transport: "usb" | "serial" | "tcp" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
842
931
|
path?: string;
|
|
843
932
|
host?: string;
|
|
844
933
|
port?: number;
|
|
@@ -864,6 +953,7 @@ export interface SerialPortInfo {
|
|
|
864
953
|
}
|
|
865
954
|
export interface DeviceSummary {
|
|
866
955
|
device_id: string;
|
|
956
|
+
local_device_id?: string;
|
|
867
957
|
board_id?: string;
|
|
868
958
|
variant_id?: string;
|
|
869
959
|
hardware_profile_id?: string;
|
|
@@ -953,7 +1043,7 @@ export interface DebugToolScanResult {
|
|
|
953
1043
|
warnings?: ErrorEnvelope[];
|
|
954
1044
|
}
|
|
955
1045
|
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 & {});
|
|
1046
|
+
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
1047
|
export interface ToolCapabilitySummary {
|
|
958
1048
|
capability_id: ToolCapabilityId;
|
|
959
1049
|
display_name: string;
|
|
@@ -989,6 +1079,8 @@ export interface ToolInvokeResult {
|
|
|
989
1079
|
export interface AgentLocalToolRunRequest {
|
|
990
1080
|
prompt: string;
|
|
991
1081
|
account_id?: string;
|
|
1082
|
+
client_device_id?: string;
|
|
1083
|
+
local_device_id?: string;
|
|
992
1084
|
workspace_id?: string;
|
|
993
1085
|
provider?: AgentProviderInput;
|
|
994
1086
|
model?: string;
|
|
@@ -1007,6 +1099,11 @@ export interface AgentLocalToolPlan {
|
|
|
1007
1099
|
plan_id: string;
|
|
1008
1100
|
request_id: string;
|
|
1009
1101
|
account_id?: string;
|
|
1102
|
+
api_key_id?: string;
|
|
1103
|
+
client_device_id?: string;
|
|
1104
|
+
local_device_id?: string;
|
|
1105
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
1106
|
+
device_id?: string;
|
|
1010
1107
|
workspace_id?: string;
|
|
1011
1108
|
provider: AgentProvider;
|
|
1012
1109
|
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":"AAopDA,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