@kvell007/embed-labs-protocol 0.1.0-alpha.2 → 0.1.0-alpha.4
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 +128 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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;
|
|
@@ -391,6 +396,27 @@ export interface BillingRechargeSession {
|
|
|
391
396
|
export interface BillingRechargeSessionList {
|
|
392
397
|
recharge_sessions: BillingRechargeSession[];
|
|
393
398
|
}
|
|
399
|
+
export interface BillingOnchainPaymentObservation {
|
|
400
|
+
chain: string;
|
|
401
|
+
token_symbol: string;
|
|
402
|
+
token_contract?: string;
|
|
403
|
+
receive_address: string;
|
|
404
|
+
token_amount_units: string;
|
|
405
|
+
tx_hash: string;
|
|
406
|
+
confirmations: number;
|
|
407
|
+
observed_at?: string;
|
|
408
|
+
block_height?: number;
|
|
409
|
+
}
|
|
410
|
+
export interface BillingOnchainPaymentObservationResult {
|
|
411
|
+
observation_id: string;
|
|
412
|
+
status: "confirming" | "paid" | "manual_review" | "duplicate";
|
|
413
|
+
reason?: string;
|
|
414
|
+
recharge_session?: BillingRechargeSession;
|
|
415
|
+
matched_session_ids: string[];
|
|
416
|
+
required_confirmations?: number;
|
|
417
|
+
confirmations: number;
|
|
418
|
+
observed_at: string;
|
|
419
|
+
}
|
|
394
420
|
export interface BuildTemplateWorkspace {
|
|
395
421
|
root_kind: string;
|
|
396
422
|
seed_relative_path: string;
|
|
@@ -462,6 +488,7 @@ export interface BoardKnowledgeFile {
|
|
|
462
488
|
observed_at: string;
|
|
463
489
|
}
|
|
464
490
|
export type BoardServerMethodOperation = "workspace.provision" | "source.list" | "source.read" | "source.write" | "app.build" | "app.compile" | "image.build" | "artifact.download" | "workspace.release";
|
|
491
|
+
export type ProductAccessTier = "free_registered" | "paid_resource" | "paid_managed_model";
|
|
465
492
|
export interface BoardServerMethodSummary {
|
|
466
493
|
method_id: string;
|
|
467
494
|
operation: BoardServerMethodOperation;
|
|
@@ -474,6 +501,11 @@ export interface BoardServerMethodSummary {
|
|
|
474
501
|
destructive: boolean;
|
|
475
502
|
requires_approval: boolean;
|
|
476
503
|
status: "available" | "mvp_stub" | "mvp_direct" | "planned";
|
|
504
|
+
access_tier?: ProductAccessTier;
|
|
505
|
+
free_for_registered_users?: boolean;
|
|
506
|
+
allocates_server_workspace?: boolean;
|
|
507
|
+
allocates_server_resource_lease?: boolean;
|
|
508
|
+
meters?: ServiceModeMeter[];
|
|
477
509
|
input_schema: Record<string, unknown>;
|
|
478
510
|
output_artifact_kinds?: ArtifactMetadata["kind"][];
|
|
479
511
|
notes?: string[];
|
|
@@ -738,7 +770,7 @@ export interface ModelDefault {
|
|
|
738
770
|
export type ServiceModeId = "managed-model-token" | "bring-your-own-model" | "resource-only";
|
|
739
771
|
export type ServiceModeStatus = "available" | "not_configured" | "planned";
|
|
740
772
|
export type ServiceModeModelTokenSource = "embed_labs" | "user" | "none";
|
|
741
|
-
export type ServiceModeMeter = "managed_model_tokens" | "workspace_storage_tokens" | "build_compute_tokens" | "artifact_storage_tokens" | "subscription";
|
|
773
|
+
export type ServiceModeMeter = "managed_model_tokens" | "workspace_storage_tokens" | "build_compute_tokens" | "artifact_storage_tokens" | "local_tool_service_tokens" | "subscription";
|
|
742
774
|
export interface ServiceModeSummary {
|
|
743
775
|
mode: ServiceModeId;
|
|
744
776
|
display_name: string;
|
|
@@ -751,6 +783,21 @@ export interface ServiceModeSummary {
|
|
|
751
783
|
meters: ServiceModeMeter[];
|
|
752
784
|
notes?: string[];
|
|
753
785
|
}
|
|
786
|
+
export interface ProductCapabilityPolicy {
|
|
787
|
+
policy_id: string;
|
|
788
|
+
display_name: string;
|
|
789
|
+
access_tier: ProductAccessTier;
|
|
790
|
+
runtime: "local_bridge" | "cloud_api" | "scheduler_worker" | "hosted" | "mcp";
|
|
791
|
+
requires_registered_account: boolean;
|
|
792
|
+
requires_server_workspace: boolean;
|
|
793
|
+
allocates_server_workspace: boolean;
|
|
794
|
+
allocates_server_resource_lease: boolean;
|
|
795
|
+
destructive: boolean;
|
|
796
|
+
requires_approval: boolean;
|
|
797
|
+
meters: ServiceModeMeter[];
|
|
798
|
+
examples?: string[];
|
|
799
|
+
notes?: string[];
|
|
800
|
+
}
|
|
754
801
|
export interface ServiceModeCatalog {
|
|
755
802
|
default_mode: ServiceModeId;
|
|
756
803
|
observed_at: string;
|
|
@@ -759,7 +806,12 @@ export interface ServiceModeCatalog {
|
|
|
759
806
|
model_gateway: string;
|
|
760
807
|
server_resource_orchestration: string;
|
|
761
808
|
local_bridge: string;
|
|
809
|
+
free_registered_operations: string;
|
|
810
|
+
paid_server_operations: string;
|
|
762
811
|
};
|
|
812
|
+
allocation_rule: string;
|
|
813
|
+
free_registered_capabilities: ProductCapabilityPolicy[];
|
|
814
|
+
paid_capabilities: ProductCapabilityPolicy[];
|
|
763
815
|
}
|
|
764
816
|
export interface BuildApplicationGenerateRequest {
|
|
765
817
|
workspace_id: string;
|
|
@@ -901,7 +953,7 @@ export interface DebugToolScanResult {
|
|
|
901
953
|
warnings?: ErrorEnvelope[];
|
|
902
954
|
}
|
|
903
955
|
export type ToolRuntime = "local_bridge" | "cloud" | "mcp" | "hosted";
|
|
904
|
-
export type ToolCapabilityId = "debug.tools.scan" | "device.scan" | "device.probe" | "taishanpi.deploy" | (string & {});
|
|
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 & {});
|
|
905
957
|
export interface ToolCapabilitySummary {
|
|
906
958
|
capability_id: ToolCapabilityId;
|
|
907
959
|
display_name: string;
|
|
@@ -910,6 +962,14 @@ export interface ToolCapabilitySummary {
|
|
|
910
962
|
category: string;
|
|
911
963
|
destructive: boolean;
|
|
912
964
|
requires_approval: boolean;
|
|
965
|
+
access_tier?: ProductAccessTier;
|
|
966
|
+
free_for_registered_users?: boolean;
|
|
967
|
+
requires_registered_account?: boolean;
|
|
968
|
+
requires_server_workspace?: boolean;
|
|
969
|
+
allocates_server_workspace?: boolean;
|
|
970
|
+
allocates_server_resource_lease?: boolean;
|
|
971
|
+
meters?: ServiceModeMeter[];
|
|
972
|
+
status?: "available" | "planned";
|
|
913
973
|
input_schema: Record<string, unknown>;
|
|
914
974
|
}
|
|
915
975
|
export interface ToolCapabilityList {
|
|
@@ -1068,6 +1128,72 @@ export interface FlashPlanRequest {
|
|
|
1068
1128
|
export interface FlashRunRequest extends FlashPlanRequest {
|
|
1069
1129
|
approved: boolean;
|
|
1070
1130
|
}
|
|
1131
|
+
export interface BootLogoPackageRequest {
|
|
1132
|
+
account_id?: string;
|
|
1133
|
+
project_id?: string;
|
|
1134
|
+
board_id: string;
|
|
1135
|
+
variant_id?: string;
|
|
1136
|
+
logo_name?: string;
|
|
1137
|
+
logo_content_base64: string;
|
|
1138
|
+
logo_sha256?: string;
|
|
1139
|
+
kernel_logo_name?: string;
|
|
1140
|
+
kernel_logo_content_base64?: string;
|
|
1141
|
+
kernel_logo_sha256?: string;
|
|
1142
|
+
rotate?: string;
|
|
1143
|
+
scale?: string;
|
|
1144
|
+
}
|
|
1145
|
+
export interface BootLogoPackageResult {
|
|
1146
|
+
task_id: string;
|
|
1147
|
+
account_id: string;
|
|
1148
|
+
project_id: string;
|
|
1149
|
+
board_id: string;
|
|
1150
|
+
variant_id?: string;
|
|
1151
|
+
package_artifact_id: string;
|
|
1152
|
+
manifest_artifact_id: string;
|
|
1153
|
+
package_size_bytes: number;
|
|
1154
|
+
package_sha256: string;
|
|
1155
|
+
logo_sha256: string;
|
|
1156
|
+
kernel_logo_sha256?: string;
|
|
1157
|
+
server_generated: true;
|
|
1158
|
+
requires_server_workspace: false;
|
|
1159
|
+
allocates_server_resource_lease: false;
|
|
1160
|
+
free_for_registered_users: true;
|
|
1161
|
+
local_merge_required: true;
|
|
1162
|
+
full_image_download_required: false;
|
|
1163
|
+
observed_at: string;
|
|
1164
|
+
summary_for_user: string;
|
|
1165
|
+
}
|
|
1166
|
+
export interface DtbPackageRequest {
|
|
1167
|
+
account_id?: string;
|
|
1168
|
+
project_id?: string;
|
|
1169
|
+
board_id: string;
|
|
1170
|
+
variant_id?: string;
|
|
1171
|
+
dtb_name?: string;
|
|
1172
|
+
dtb_content_base64: string;
|
|
1173
|
+
dtb_sha256?: string;
|
|
1174
|
+
input_format?: "dtb" | "dts" | "auto";
|
|
1175
|
+
}
|
|
1176
|
+
export interface DtbPackageResult {
|
|
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
|
+
input_dtb_sha256: string;
|
|
1187
|
+
generated_dtb_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
|
+
}
|
|
1071
1197
|
export type BoardPackExecutionPlane = "cloud" | "local_bridge" | "board" | (string & {});
|
|
1072
1198
|
export interface BoardPackVariant {
|
|
1073
1199
|
variant_id: 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":"AAkiDA,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