@kvell007/embed-labs-protocol 0.1.0-alpha.20 → 0.1.0-alpha.22

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 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;
@@ -186,6 +197,10 @@ export interface McpToolEventRecord {
186
197
  account_id?: string;
187
198
  user_id?: string;
188
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;
189
204
  client: string;
190
205
  tool_name: string;
191
206
  mode: string;
@@ -200,6 +215,10 @@ export interface McpToolEventRecord {
200
215
  }
201
216
  export interface McpToolEventCreateRequest {
202
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;
203
222
  client?: string;
204
223
  tool_name: string;
205
224
  mode?: string;
@@ -212,6 +231,45 @@ export interface McpToolEventCreateRequest {
212
231
  metadata?: Record<string, unknown>;
213
232
  created_at?: string;
214
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
+ }
215
273
  export interface TokenUsageModelSummary {
216
274
  model: string;
217
275
  input_tokens: number;
@@ -895,6 +953,7 @@ export interface SerialPortInfo {
895
953
  }
896
954
  export interface DeviceSummary {
897
955
  device_id: string;
956
+ local_device_id?: string;
898
957
  board_id?: string;
899
958
  variant_id?: string;
900
959
  hardware_profile_id?: string;
@@ -1020,6 +1079,8 @@ export interface ToolInvokeResult {
1020
1079
  export interface AgentLocalToolRunRequest {
1021
1080
  prompt: string;
1022
1081
  account_id?: string;
1082
+ client_device_id?: string;
1083
+ local_device_id?: string;
1023
1084
  workspace_id?: string;
1024
1085
  provider?: AgentProviderInput;
1025
1086
  model?: string;
@@ -1038,6 +1099,11 @@ export interface AgentLocalToolPlan {
1038
1099
  plan_id: string;
1039
1100
  request_id: string;
1040
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;
1041
1107
  workspace_id?: string;
1042
1108
  provider: AgentProvider;
1043
1109
  model: string;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAukDA,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2oDA,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvell007/embed-labs-protocol",
3
- "version": "0.1.0-alpha.20",
3
+ "version": "0.1.0-alpha.22",
4
4
  "description": "Shared TypeScript protocol contracts for Embed Labs Cloud. Experimental npm publish.",
5
5
  "private": false,
6
6
  "type": "module",