keymaster-api-protocol 0.1.1 → 0.1.3

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.
@@ -573,7 +573,7 @@ export interface WalletCreateResponse {
573
573
  }
574
574
  export interface WalletImportRequest {
575
575
  keyMaterial: string;
576
- password: string;
576
+ network: string;
577
577
  }
578
578
  export interface WalletImportResponse {
579
579
  ok: boolean;
package/dist/ws.d.ts CHANGED
@@ -94,7 +94,7 @@ export declare class KmWSClient {
94
94
  connectionPause(authorizationId: string): Promise<unknown>;
95
95
  connectExec(params: unknown): Promise<unknown>;
96
96
  walletCreate(password: string, network: string): Promise<unknown>;
97
- walletImport(password: string, keyMaterial: string): Promise<unknown>;
97
+ walletImport(keyMaterial: string, network: "test" | "main"): Promise<unknown>;
98
98
  private onMessage;
99
99
  private failAll;
100
100
  }
package/dist/ws.js CHANGED
@@ -504,8 +504,8 @@ export class KmWSClient {
504
504
  async walletCreate(password, network) {
505
505
  return this.call(undefined, "wallet.create", { password, network });
506
506
  }
507
- async walletImport(password, keyMaterial) {
508
- return this.call(undefined, "wallet.import", { password, keyMaterial });
507
+ async walletImport(keyMaterial, network) {
508
+ return this.call(undefined, "wallet.import", { keyMaterial, network });
509
509
  }
510
510
  onMessage(ev) {
511
511
  const data = ev.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keymaster-api-protocol",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Keymaster 后台业务 API v1 契约 SDK(DTO 与 WebSocket/进程内客户端,Go/TS 同契约)",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",