@kvell007/embed-labs-protocol 0.1.0-alpha.2 → 0.1.0-alpha.21

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
@@ -129,6 +129,11 @@ export interface AccountCreateRequest {
129
129
  }
130
130
  export type AuthContextInfo = {
131
131
  kind: "admin";
132
+ roles?: string[];
133
+ } | {
134
+ kind: "user";
135
+ account_id: string;
136
+ user_id: string;
132
137
  } | {
133
138
  kind: "api_key";
134
139
  account_id: string;
@@ -176,6 +181,37 @@ export interface TokenUsageCreateRequest {
176
181
  request_id?: string;
177
182
  created_at?: string;
178
183
  }
184
+ export interface McpToolEventRecord {
185
+ event_id: string;
186
+ account_id?: string;
187
+ user_id?: string;
188
+ api_key_id?: string;
189
+ client: string;
190
+ tool_name: string;
191
+ mode: string;
192
+ server_model_used: boolean;
193
+ success: boolean;
194
+ request_id?: string;
195
+ duration_ms?: number;
196
+ input_summary?: string;
197
+ output_summary?: string;
198
+ metadata?: Record<string, unknown>;
199
+ created_at: string;
200
+ }
201
+ export interface McpToolEventCreateRequest {
202
+ account_id?: string;
203
+ client?: string;
204
+ tool_name: string;
205
+ mode?: string;
206
+ server_model_used?: boolean;
207
+ success?: boolean;
208
+ request_id?: string;
209
+ duration_ms?: number;
210
+ input_summary?: string;
211
+ output_summary?: string;
212
+ metadata?: Record<string, unknown>;
213
+ created_at?: string;
214
+ }
179
215
  export interface TokenUsageModelSummary {
180
216
  model: string;
181
217
  input_tokens: number;
@@ -391,6 +427,27 @@ export interface BillingRechargeSession {
391
427
  export interface BillingRechargeSessionList {
392
428
  recharge_sessions: BillingRechargeSession[];
393
429
  }
430
+ export interface BillingOnchainPaymentObservation {
431
+ chain: string;
432
+ token_symbol: string;
433
+ token_contract?: string;
434
+ receive_address: string;
435
+ token_amount_units: string;
436
+ tx_hash: string;
437
+ confirmations: number;
438
+ observed_at?: string;
439
+ block_height?: number;
440
+ }
441
+ export interface BillingOnchainPaymentObservationResult {
442
+ observation_id: string;
443
+ status: "confirming" | "paid" | "manual_review" | "duplicate";
444
+ reason?: string;
445
+ recharge_session?: BillingRechargeSession;
446
+ matched_session_ids: string[];
447
+ required_confirmations?: number;
448
+ confirmations: number;
449
+ observed_at: string;
450
+ }
394
451
  export interface BuildTemplateWorkspace {
395
452
  root_kind: string;
396
453
  seed_relative_path: string;
@@ -462,6 +519,7 @@ export interface BoardKnowledgeFile {
462
519
  observed_at: string;
463
520
  }
464
521
  export type BoardServerMethodOperation = "workspace.provision" | "source.list" | "source.read" | "source.write" | "app.build" | "app.compile" | "image.build" | "artifact.download" | "workspace.release";
522
+ export type ProductAccessTier = "free_registered" | "paid_resource" | "paid_managed_model";
465
523
  export interface BoardServerMethodSummary {
466
524
  method_id: string;
467
525
  operation: BoardServerMethodOperation;
@@ -474,6 +532,11 @@ export interface BoardServerMethodSummary {
474
532
  destructive: boolean;
475
533
  requires_approval: boolean;
476
534
  status: "available" | "mvp_stub" | "mvp_direct" | "planned";
535
+ access_tier?: ProductAccessTier;
536
+ free_for_registered_users?: boolean;
537
+ allocates_server_workspace?: boolean;
538
+ allocates_server_resource_lease?: boolean;
539
+ meters?: ServiceModeMeter[];
477
540
  input_schema: Record<string, unknown>;
478
541
  output_artifact_kinds?: ArtifactMetadata["kind"][];
479
542
  notes?: string[];
@@ -738,7 +801,7 @@ export interface ModelDefault {
738
801
  export type ServiceModeId = "managed-model-token" | "bring-your-own-model" | "resource-only";
739
802
  export type ServiceModeStatus = "available" | "not_configured" | "planned";
740
803
  export type ServiceModeModelTokenSource = "embed_labs" | "user" | "none";
741
- export type ServiceModeMeter = "managed_model_tokens" | "workspace_storage_tokens" | "build_compute_tokens" | "artifact_storage_tokens" | "subscription";
804
+ export type ServiceModeMeter = "managed_model_tokens" | "workspace_storage_tokens" | "build_compute_tokens" | "artifact_storage_tokens" | "local_tool_service_tokens" | "subscription";
742
805
  export interface ServiceModeSummary {
743
806
  mode: ServiceModeId;
744
807
  display_name: string;
@@ -751,6 +814,21 @@ export interface ServiceModeSummary {
751
814
  meters: ServiceModeMeter[];
752
815
  notes?: string[];
753
816
  }
817
+ export interface ProductCapabilityPolicy {
818
+ policy_id: string;
819
+ display_name: string;
820
+ access_tier: ProductAccessTier;
821
+ runtime: "local_bridge" | "cloud_api" | "scheduler_worker" | "hosted" | "mcp";
822
+ requires_registered_account: boolean;
823
+ requires_server_workspace: boolean;
824
+ allocates_server_workspace: boolean;
825
+ allocates_server_resource_lease: boolean;
826
+ destructive: boolean;
827
+ requires_approval: boolean;
828
+ meters: ServiceModeMeter[];
829
+ examples?: string[];
830
+ notes?: string[];
831
+ }
754
832
  export interface ServiceModeCatalog {
755
833
  default_mode: ServiceModeId;
756
834
  observed_at: string;
@@ -759,7 +837,12 @@ export interface ServiceModeCatalog {
759
837
  model_gateway: string;
760
838
  server_resource_orchestration: string;
761
839
  local_bridge: string;
840
+ free_registered_operations: string;
841
+ paid_server_operations: string;
762
842
  };
843
+ allocation_rule: string;
844
+ free_registered_capabilities: ProductCapabilityPolicy[];
845
+ paid_capabilities: ProductCapabilityPolicy[];
763
846
  }
764
847
  export interface BuildApplicationGenerateRequest {
765
848
  workspace_id: string;
@@ -786,7 +869,7 @@ export interface AgentTaskCreateRequest {
786
869
  kind?: string;
787
870
  }
788
871
  export interface DeviceLocator {
789
- transport: "usb" | "serial" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
872
+ transport: "usb" | "serial" | "tcp" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
790
873
  path?: string;
791
874
  host?: string;
792
875
  port?: number;
@@ -901,7 +984,7 @@ export interface DebugToolScanResult {
901
984
  warnings?: ErrorEnvelope[];
902
985
  }
903
986
  export type ToolRuntime = "local_bridge" | "cloud" | "mcp" | "hosted";
904
- export type ToolCapabilityId = "debug.tools.scan" | "device.scan" | "device.probe" | "taishanpi.deploy" | (string & {});
987
+ 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.status" | "rp2350.monitor.logic.capture" | "rp2350.monitor.logic.decode" | "rp2350.monitor.command" | "flash.plan" | "flash.run" | "taishanpi.deploy" | (string & {});
905
988
  export interface ToolCapabilitySummary {
906
989
  capability_id: ToolCapabilityId;
907
990
  display_name: string;
@@ -910,6 +993,14 @@ export interface ToolCapabilitySummary {
910
993
  category: string;
911
994
  destructive: boolean;
912
995
  requires_approval: boolean;
996
+ access_tier?: ProductAccessTier;
997
+ free_for_registered_users?: boolean;
998
+ requires_registered_account?: boolean;
999
+ requires_server_workspace?: boolean;
1000
+ allocates_server_workspace?: boolean;
1001
+ allocates_server_resource_lease?: boolean;
1002
+ meters?: ServiceModeMeter[];
1003
+ status?: "available" | "planned";
913
1004
  input_schema: Record<string, unknown>;
914
1005
  }
915
1006
  export interface ToolCapabilityList {
@@ -1068,6 +1159,72 @@ export interface FlashPlanRequest {
1068
1159
  export interface FlashRunRequest extends FlashPlanRequest {
1069
1160
  approved: boolean;
1070
1161
  }
1162
+ export interface BootLogoPackageRequest {
1163
+ account_id?: string;
1164
+ project_id?: string;
1165
+ board_id: string;
1166
+ variant_id?: string;
1167
+ logo_name?: string;
1168
+ logo_content_base64: string;
1169
+ logo_sha256?: string;
1170
+ kernel_logo_name?: string;
1171
+ kernel_logo_content_base64?: string;
1172
+ kernel_logo_sha256?: string;
1173
+ rotate?: string;
1174
+ scale?: string;
1175
+ }
1176
+ export interface BootLogoPackageResult {
1177
+ task_id: string;
1178
+ account_id: string;
1179
+ project_id: string;
1180
+ board_id: string;
1181
+ variant_id?: string;
1182
+ package_artifact_id: string;
1183
+ manifest_artifact_id: string;
1184
+ package_size_bytes: number;
1185
+ package_sha256: string;
1186
+ logo_sha256: string;
1187
+ kernel_logo_sha256?: string;
1188
+ server_generated: true;
1189
+ requires_server_workspace: false;
1190
+ allocates_server_resource_lease: false;
1191
+ free_for_registered_users: true;
1192
+ local_merge_required: true;
1193
+ full_image_download_required: false;
1194
+ observed_at: string;
1195
+ summary_for_user: string;
1196
+ }
1197
+ export interface DtbPackageRequest {
1198
+ account_id?: string;
1199
+ project_id?: string;
1200
+ board_id: string;
1201
+ variant_id?: string;
1202
+ dtb_name?: string;
1203
+ dtb_content_base64: string;
1204
+ dtb_sha256?: string;
1205
+ input_format?: "dtb" | "dts" | "auto";
1206
+ }
1207
+ export interface DtbPackageResult {
1208
+ task_id: string;
1209
+ account_id: string;
1210
+ project_id: string;
1211
+ board_id: string;
1212
+ variant_id?: string;
1213
+ package_artifact_id: string;
1214
+ manifest_artifact_id: string;
1215
+ package_size_bytes: number;
1216
+ package_sha256: string;
1217
+ input_dtb_sha256: string;
1218
+ generated_dtb_sha256: string;
1219
+ server_generated: true;
1220
+ requires_server_workspace: false;
1221
+ allocates_server_resource_lease: false;
1222
+ free_for_registered_users: true;
1223
+ local_merge_required: true;
1224
+ full_image_download_required: false;
1225
+ observed_at: string;
1226
+ summary_for_user: string;
1227
+ }
1071
1228
  export type BoardPackExecutionPlane = "cloud" | "local_bridge" | "board" | (string & {});
1072
1229
  export interface BoardPackVariant {
1073
1230
  variant_id: string;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAu5CA,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":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvell007/embed-labs-protocol",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.21",
4
4
  "description": "Shared TypeScript protocol contracts for Embed Labs Cloud. Experimental npm publish.",
5
5
  "private": false,
6
6
  "type": "module",