@breeztech/breez-sdk-spark 0.11.0-dev4 → 0.11.0

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.
Binary file
@@ -1189,15 +1189,15 @@ export interface Wallet {
1189
1189
  */
1190
1190
  seed: Seed;
1191
1191
  /**
1192
- * The label used for derivation.
1192
+ * The wallet name used for derivation.
1193
1193
  */
1194
- label: string;
1194
+ name: string;
1195
1195
  }
1196
1196
 
1197
1197
  /**
1198
- * Nostr relay configuration for passkey label operations.
1198
+ * Nostr relay configuration for passkey wallet name operations.
1199
1199
  *
1200
- * Used by `Passkey.listLabels` and `Passkey.storeLabel`.
1200
+ * Used by `Passkey.listWalletNames` and `Passkey.storeWalletName`.
1201
1201
  */
1202
1202
  export interface NostrRelayConfig {
1203
1203
  /**
@@ -1345,30 +1345,30 @@ export class IntoUnderlyingSource {
1345
1345
  export class Passkey {
1346
1346
  free(): void;
1347
1347
  /**
1348
- * Derive a wallet for a given label.
1348
+ * Derive a wallet for a given wallet name.
1349
1349
  *
1350
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1350
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
1351
1351
  *
1352
- * @param label - Optional label string (defaults to "Default")
1352
+ * @param walletName - Optional wallet name string (defaults to "Default")
1353
1353
  */
1354
- getWallet(label?: string | null): Promise<Wallet>;
1354
+ getWallet(wallet_name?: string | null): Promise<Wallet>;
1355
+ /**
1356
+ * Check if passkey PRF is available on this device.
1357
+ */
1358
+ isAvailable(): Promise<boolean>;
1355
1359
  /**
1356
- * List all labels published to Nostr for this passkey's identity.
1360
+ * List all wallet names published to Nostr for this passkey's identity.
1357
1361
  *
1358
1362
  * Requires 1 PRF call (for Nostr identity derivation).
1359
1363
  */
1360
- listLabels(): Promise<string[]>;
1364
+ listWalletNames(): Promise<string[]>;
1361
1365
  /**
1362
- * Publish a label to Nostr relays for this passkey's identity.
1366
+ * Publish a wallet name to Nostr relays for this passkey's identity.
1363
1367
  *
1364
- * Idempotent: if the label already exists, it is not published again.
1368
+ * Idempotent: if the wallet name already exists, it is not published again.
1365
1369
  * Requires 1 PRF call.
1366
1370
  */
1367
- storeLabel(label: string): Promise<void>;
1368
- /**
1369
- * Check if passkey PRF is available on this device.
1370
- */
1371
- isAvailable(): Promise<boolean>;
1371
+ storeWalletName(wallet_name: string): Promise<void>;
1372
1372
  /**
1373
1373
  * Create a new `Passkey` instance.
1374
1374
  *
@@ -1076,50 +1076,50 @@ export class Passkey {
1076
1076
  wasm.__wbg_passkey_free(ptr, 0);
1077
1077
  }
1078
1078
  /**
1079
- * Derive a wallet for a given label.
1079
+ * Derive a wallet for a given wallet name.
1080
1080
  *
1081
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1081
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
1082
1082
  *
1083
- * @param label - Optional label string (defaults to "Default")
1084
- * @param {string | null} [label]
1083
+ * @param walletName - Optional wallet name string (defaults to "Default")
1084
+ * @param {string | null} [wallet_name]
1085
1085
  * @returns {Promise<Wallet>}
1086
1086
  */
1087
- getWallet(label) {
1088
- var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1087
+ getWallet(wallet_name) {
1088
+ var ptr0 = isLikeNone(wallet_name) ? 0 : passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1089
1089
  var len0 = WASM_VECTOR_LEN;
1090
1090
  const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
1091
1091
  return ret;
1092
1092
  }
1093
1093
  /**
1094
- * List all labels published to Nostr for this passkey's identity.
1094
+ * Check if passkey PRF is available on this device.
1095
+ * @returns {Promise<boolean>}
1096
+ */
1097
+ isAvailable() {
1098
+ const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1099
+ return ret;
1100
+ }
1101
+ /**
1102
+ * List all wallet names published to Nostr for this passkey's identity.
1095
1103
  *
1096
1104
  * Requires 1 PRF call (for Nostr identity derivation).
1097
1105
  * @returns {Promise<string[]>}
1098
1106
  */
1099
- listLabels() {
1100
- const ret = wasm.passkey_listLabels(this.__wbg_ptr);
1107
+ listWalletNames() {
1108
+ const ret = wasm.passkey_listWalletNames(this.__wbg_ptr);
1101
1109
  return ret;
1102
1110
  }
1103
1111
  /**
1104
- * Publish a label to Nostr relays for this passkey's identity.
1112
+ * Publish a wallet name to Nostr relays for this passkey's identity.
1105
1113
  *
1106
- * Idempotent: if the label already exists, it is not published again.
1114
+ * Idempotent: if the wallet name already exists, it is not published again.
1107
1115
  * Requires 1 PRF call.
1108
- * @param {string} label
1116
+ * @param {string} wallet_name
1109
1117
  * @returns {Promise<void>}
1110
1118
  */
1111
- storeLabel(label) {
1112
- const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1119
+ storeWalletName(wallet_name) {
1120
+ const ptr0 = passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1113
1121
  const len0 = WASM_VECTOR_LEN;
1114
- const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
1115
- return ret;
1116
- }
1117
- /**
1118
- * Check if passkey PRF is available on this device.
1119
- * @returns {Promise<boolean>}
1120
- */
1121
- isAvailable() {
1122
- const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1122
+ const ret = wasm.passkey_storeWalletName(this.__wbg_ptr, ptr0, len0);
1123
1123
  return ret;
1124
1124
  }
1125
1125
  /**
@@ -2787,12 +2787,12 @@ export function __wbindgen_cb_drop(arg0) {
2787
2787
  return ret;
2788
2788
  };
2789
2789
 
2790
- export function __wbindgen_closure_wrapper10357(arg0, arg1, arg2) {
2790
+ export function __wbindgen_closure_wrapper10362(arg0, arg1, arg2) {
2791
2791
  const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_69);
2792
2792
  return ret;
2793
2793
  };
2794
2794
 
2795
- export function __wbindgen_closure_wrapper15769(arg0, arg1, arg2) {
2795
+ export function __wbindgen_closure_wrapper15774(arg0, arg1, arg2) {
2796
2796
  const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2797
2797
  return ret;
2798
2798
  };
@@ -76,9 +76,9 @@ export const getSparkStatus: () => any;
76
76
  export const initLogging: (a: any, b: number, c: number) => any;
77
77
  export const passkey_getWallet: (a: number, b: number, c: number) => any;
78
78
  export const passkey_isAvailable: (a: number) => any;
79
- export const passkey_listLabels: (a: number) => any;
79
+ export const passkey_listWalletNames: (a: number) => any;
80
80
  export const passkey_new: (a: any, b: number) => number;
81
- export const passkey_storeLabel: (a: number, b: number, c: number) => any;
81
+ export const passkey_storeWalletName: (a: number, b: number, c: number) => any;
82
82
  export const sdkbuilder_build: (a: number) => any;
83
83
  export const sdkbuilder_new: (a: any, b: any) => number;
84
84
  export const sdkbuilder_newWithSigner: (a: any, b: any) => number;
@@ -1189,15 +1189,15 @@ export interface Wallet {
1189
1189
  */
1190
1190
  seed: Seed;
1191
1191
  /**
1192
- * The label used for derivation.
1192
+ * The wallet name used for derivation.
1193
1193
  */
1194
- label: string;
1194
+ name: string;
1195
1195
  }
1196
1196
 
1197
1197
  /**
1198
- * Nostr relay configuration for passkey label operations.
1198
+ * Nostr relay configuration for passkey wallet name operations.
1199
1199
  *
1200
- * Used by `Passkey.listLabels` and `Passkey.storeLabel`.
1200
+ * Used by `Passkey.listWalletNames` and `Passkey.storeWalletName`.
1201
1201
  */
1202
1202
  export interface NostrRelayConfig {
1203
1203
  /**
@@ -1345,30 +1345,30 @@ export class IntoUnderlyingSource {
1345
1345
  export class Passkey {
1346
1346
  free(): void;
1347
1347
  /**
1348
- * Derive a wallet for a given label.
1348
+ * Derive a wallet for a given wallet name.
1349
1349
  *
1350
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1350
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
1351
1351
  *
1352
- * @param label - Optional label string (defaults to "Default")
1352
+ * @param walletName - Optional wallet name string (defaults to "Default")
1353
1353
  */
1354
- getWallet(label?: string | null): Promise<Wallet>;
1354
+ getWallet(wallet_name?: string | null): Promise<Wallet>;
1355
+ /**
1356
+ * Check if passkey PRF is available on this device.
1357
+ */
1358
+ isAvailable(): Promise<boolean>;
1355
1359
  /**
1356
- * List all labels published to Nostr for this passkey's identity.
1360
+ * List all wallet names published to Nostr for this passkey's identity.
1357
1361
  *
1358
1362
  * Requires 1 PRF call (for Nostr identity derivation).
1359
1363
  */
1360
- listLabels(): Promise<string[]>;
1364
+ listWalletNames(): Promise<string[]>;
1361
1365
  /**
1362
- * Publish a label to Nostr relays for this passkey's identity.
1366
+ * Publish a wallet name to Nostr relays for this passkey's identity.
1363
1367
  *
1364
- * Idempotent: if the label already exists, it is not published again.
1368
+ * Idempotent: if the wallet name already exists, it is not published again.
1365
1369
  * Requires 1 PRF call.
1366
1370
  */
1367
- storeLabel(label: string): Promise<void>;
1368
- /**
1369
- * Check if passkey PRF is available on this device.
1370
- */
1371
- isAvailable(): Promise<boolean>;
1371
+ storeWalletName(wallet_name: string): Promise<void>;
1372
1372
  /**
1373
1373
  * Create a new `Passkey` instance.
1374
1374
  *
@@ -1059,50 +1059,50 @@ export class Passkey {
1059
1059
  wasm.__wbg_passkey_free(ptr, 0);
1060
1060
  }
1061
1061
  /**
1062
- * Derive a wallet for a given label.
1062
+ * Derive a wallet for a given wallet name.
1063
1063
  *
1064
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1064
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
1065
1065
  *
1066
- * @param label - Optional label string (defaults to "Default")
1067
- * @param {string | null} [label]
1066
+ * @param walletName - Optional wallet name string (defaults to "Default")
1067
+ * @param {string | null} [wallet_name]
1068
1068
  * @returns {Promise<Wallet>}
1069
1069
  */
1070
- getWallet(label) {
1071
- var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1070
+ getWallet(wallet_name) {
1071
+ var ptr0 = isLikeNone(wallet_name) ? 0 : passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1072
1072
  var len0 = WASM_VECTOR_LEN;
1073
1073
  const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
1074
1074
  return ret;
1075
1075
  }
1076
1076
  /**
1077
- * List all labels published to Nostr for this passkey's identity.
1077
+ * Check if passkey PRF is available on this device.
1078
+ * @returns {Promise<boolean>}
1079
+ */
1080
+ isAvailable() {
1081
+ const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1082
+ return ret;
1083
+ }
1084
+ /**
1085
+ * List all wallet names published to Nostr for this passkey's identity.
1078
1086
  *
1079
1087
  * Requires 1 PRF call (for Nostr identity derivation).
1080
1088
  * @returns {Promise<string[]>}
1081
1089
  */
1082
- listLabels() {
1083
- const ret = wasm.passkey_listLabels(this.__wbg_ptr);
1090
+ listWalletNames() {
1091
+ const ret = wasm.passkey_listWalletNames(this.__wbg_ptr);
1084
1092
  return ret;
1085
1093
  }
1086
1094
  /**
1087
- * Publish a label to Nostr relays for this passkey's identity.
1095
+ * Publish a wallet name to Nostr relays for this passkey's identity.
1088
1096
  *
1089
- * Idempotent: if the label already exists, it is not published again.
1097
+ * Idempotent: if the wallet name already exists, it is not published again.
1090
1098
  * Requires 1 PRF call.
1091
- * @param {string} label
1099
+ * @param {string} wallet_name
1092
1100
  * @returns {Promise<void>}
1093
1101
  */
1094
- storeLabel(label) {
1095
- const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1102
+ storeWalletName(wallet_name) {
1103
+ const ptr0 = passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1096
1104
  const len0 = WASM_VECTOR_LEN;
1097
- const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
1098
- return ret;
1099
- }
1100
- /**
1101
- * Check if passkey PRF is available on this device.
1102
- * @returns {Promise<boolean>}
1103
- */
1104
- isAvailable() {
1105
- const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1105
+ const ret = wasm.passkey_storeWalletName(this.__wbg_ptr, ptr0, len0);
1106
1106
  return ret;
1107
1107
  }
1108
1108
  /**
@@ -2552,11 +2552,11 @@ const imports = {
2552
2552
  const ret = false;
2553
2553
  return ret;
2554
2554
  },
2555
- __wbindgen_closure_wrapper10357: function(arg0, arg1, arg2) {
2555
+ __wbindgen_closure_wrapper10362: function(arg0, arg1, arg2) {
2556
2556
  const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_69);
2557
2557
  return ret;
2558
2558
  },
2559
- __wbindgen_closure_wrapper15769: function(arg0, arg1, arg2) {
2559
+ __wbindgen_closure_wrapper15774: function(arg0, arg1, arg2) {
2560
2560
  const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2561
2561
  return ret;
2562
2562
  },
Binary file
@@ -76,9 +76,9 @@ export const getSparkStatus: () => any;
76
76
  export const initLogging: (a: any, b: number, c: number) => any;
77
77
  export const passkey_getWallet: (a: number, b: number, c: number) => any;
78
78
  export const passkey_isAvailable: (a: number) => any;
79
- export const passkey_listLabels: (a: number) => any;
79
+ export const passkey_listWalletNames: (a: number) => any;
80
80
  export const passkey_new: (a: any, b: number) => number;
81
- export const passkey_storeLabel: (a: number, b: number, c: number) => any;
81
+ export const passkey_storeWalletName: (a: number, b: number, c: number) => any;
82
82
  export const sdkbuilder_build: (a: number) => any;
83
83
  export const sdkbuilder_new: (a: any, b: any) => number;
84
84
  export const sdkbuilder_newWithSigner: (a: any, b: any) => number;
@@ -1189,15 +1189,15 @@ export interface Wallet {
1189
1189
  */
1190
1190
  seed: Seed;
1191
1191
  /**
1192
- * The label used for derivation.
1192
+ * The wallet name used for derivation.
1193
1193
  */
1194
- label: string;
1194
+ name: string;
1195
1195
  }
1196
1196
 
1197
1197
  /**
1198
- * Nostr relay configuration for passkey label operations.
1198
+ * Nostr relay configuration for passkey wallet name operations.
1199
1199
  *
1200
- * Used by `Passkey.listLabels` and `Passkey.storeLabel`.
1200
+ * Used by `Passkey.listWalletNames` and `Passkey.storeWalletName`.
1201
1201
  */
1202
1202
  export interface NostrRelayConfig {
1203
1203
  /**
@@ -1345,30 +1345,30 @@ export class IntoUnderlyingSource {
1345
1345
  export class Passkey {
1346
1346
  free(): void;
1347
1347
  /**
1348
- * Derive a wallet for a given label.
1348
+ * Derive a wallet for a given wallet name.
1349
1349
  *
1350
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1350
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
1351
1351
  *
1352
- * @param label - Optional label string (defaults to "Default")
1352
+ * @param walletName - Optional wallet name string (defaults to "Default")
1353
1353
  */
1354
- getWallet(label?: string | null): Promise<Wallet>;
1354
+ getWallet(wallet_name?: string | null): Promise<Wallet>;
1355
+ /**
1356
+ * Check if passkey PRF is available on this device.
1357
+ */
1358
+ isAvailable(): Promise<boolean>;
1355
1359
  /**
1356
- * List all labels published to Nostr for this passkey's identity.
1360
+ * List all wallet names published to Nostr for this passkey's identity.
1357
1361
  *
1358
1362
  * Requires 1 PRF call (for Nostr identity derivation).
1359
1363
  */
1360
- listLabels(): Promise<string[]>;
1364
+ listWalletNames(): Promise<string[]>;
1361
1365
  /**
1362
- * Publish a label to Nostr relays for this passkey's identity.
1366
+ * Publish a wallet name to Nostr relays for this passkey's identity.
1363
1367
  *
1364
- * Idempotent: if the label already exists, it is not published again.
1368
+ * Idempotent: if the wallet name already exists, it is not published again.
1365
1369
  * Requires 1 PRF call.
1366
1370
  */
1367
- storeLabel(label: string): Promise<void>;
1368
- /**
1369
- * Check if passkey PRF is available on this device.
1370
- */
1371
- isAvailable(): Promise<boolean>;
1371
+ storeWalletName(wallet_name: string): Promise<void>;
1372
1372
  /**
1373
1373
  * Create a new `Passkey` instance.
1374
1374
  *
@@ -1077,50 +1077,50 @@ class Passkey {
1077
1077
  wasm.__wbg_passkey_free(ptr, 0);
1078
1078
  }
1079
1079
  /**
1080
- * Derive a wallet for a given label.
1080
+ * Derive a wallet for a given wallet name.
1081
1081
  *
1082
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1082
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
1083
1083
  *
1084
- * @param label - Optional label string (defaults to "Default")
1085
- * @param {string | null} [label]
1084
+ * @param walletName - Optional wallet name string (defaults to "Default")
1085
+ * @param {string | null} [wallet_name]
1086
1086
  * @returns {Promise<Wallet>}
1087
1087
  */
1088
- getWallet(label) {
1089
- var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1088
+ getWallet(wallet_name) {
1089
+ var ptr0 = isLikeNone(wallet_name) ? 0 : passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1090
1090
  var len0 = WASM_VECTOR_LEN;
1091
1091
  const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
1092
1092
  return ret;
1093
1093
  }
1094
1094
  /**
1095
- * List all labels published to Nostr for this passkey's identity.
1095
+ * Check if passkey PRF is available on this device.
1096
+ * @returns {Promise<boolean>}
1097
+ */
1098
+ isAvailable() {
1099
+ const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1100
+ return ret;
1101
+ }
1102
+ /**
1103
+ * List all wallet names published to Nostr for this passkey's identity.
1096
1104
  *
1097
1105
  * Requires 1 PRF call (for Nostr identity derivation).
1098
1106
  * @returns {Promise<string[]>}
1099
1107
  */
1100
- listLabels() {
1101
- const ret = wasm.passkey_listLabels(this.__wbg_ptr);
1108
+ listWalletNames() {
1109
+ const ret = wasm.passkey_listWalletNames(this.__wbg_ptr);
1102
1110
  return ret;
1103
1111
  }
1104
1112
  /**
1105
- * Publish a label to Nostr relays for this passkey's identity.
1113
+ * Publish a wallet name to Nostr relays for this passkey's identity.
1106
1114
  *
1107
- * Idempotent: if the label already exists, it is not published again.
1115
+ * Idempotent: if the wallet name already exists, it is not published again.
1108
1116
  * Requires 1 PRF call.
1109
- * @param {string} label
1117
+ * @param {string} wallet_name
1110
1118
  * @returns {Promise<void>}
1111
1119
  */
1112
- storeLabel(label) {
1113
- const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1120
+ storeWalletName(wallet_name) {
1121
+ const ptr0 = passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1114
1122
  const len0 = WASM_VECTOR_LEN;
1115
- const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
1116
- return ret;
1117
- }
1118
- /**
1119
- * Check if passkey PRF is available on this device.
1120
- * @returns {Promise<boolean>}
1121
- */
1122
- isAvailable() {
1123
- const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1123
+ const ret = wasm.passkey_storeWalletName(this.__wbg_ptr, ptr0, len0);
1124
1124
  return ret;
1125
1125
  }
1126
1126
  /**
@@ -2791,12 +2791,12 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2791
2791
  return ret;
2792
2792
  };
2793
2793
 
2794
- module.exports.__wbindgen_closure_wrapper10357 = function(arg0, arg1, arg2) {
2794
+ module.exports.__wbindgen_closure_wrapper10362 = function(arg0, arg1, arg2) {
2795
2795
  const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_69);
2796
2796
  return ret;
2797
2797
  };
2798
2798
 
2799
- module.exports.__wbindgen_closure_wrapper15769 = function(arg0, arg1, arg2) {
2799
+ module.exports.__wbindgen_closure_wrapper15774 = function(arg0, arg1, arg2) {
2800
2800
  const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2801
2801
  return ret;
2802
2802
  };
Binary file
@@ -76,9 +76,9 @@ export const getSparkStatus: () => any;
76
76
  export const initLogging: (a: any, b: number, c: number) => any;
77
77
  export const passkey_getWallet: (a: number, b: number, c: number) => any;
78
78
  export const passkey_isAvailable: (a: number) => any;
79
- export const passkey_listLabels: (a: number) => any;
79
+ export const passkey_listWalletNames: (a: number) => any;
80
80
  export const passkey_new: (a: any, b: number) => number;
81
- export const passkey_storeLabel: (a: number, b: number, c: number) => any;
81
+ export const passkey_storeWalletName: (a: number, b: number, c: number) => any;
82
82
  export const sdkbuilder_build: (a: number) => any;
83
83
  export const sdkbuilder_new: (a: any, b: any) => number;
84
84
  export const sdkbuilder_newWithSigner: (a: any, b: any) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark",
3
- "version": "0.11.0-dev4",
3
+ "version": "0.11.0",
4
4
  "description": "Breez Spark SDK",
5
5
  "repository": "https://github.com/breez/spark-sdk",
6
6
  "author": "Breez <contact@breez.technology> (https://github.com/breez)",
@@ -1189,15 +1189,15 @@ export interface Wallet {
1189
1189
  */
1190
1190
  seed: Seed;
1191
1191
  /**
1192
- * The label used for derivation.
1192
+ * The wallet name used for derivation.
1193
1193
  */
1194
- label: string;
1194
+ name: string;
1195
1195
  }
1196
1196
 
1197
1197
  /**
1198
- * Nostr relay configuration for passkey label operations.
1198
+ * Nostr relay configuration for passkey wallet name operations.
1199
1199
  *
1200
- * Used by `Passkey.listLabels` and `Passkey.storeLabel`.
1200
+ * Used by `Passkey.listWalletNames` and `Passkey.storeWalletName`.
1201
1201
  */
1202
1202
  export interface NostrRelayConfig {
1203
1203
  /**
@@ -1345,30 +1345,30 @@ export class IntoUnderlyingSource {
1345
1345
  export class Passkey {
1346
1346
  free(): void;
1347
1347
  /**
1348
- * Derive a wallet for a given label.
1348
+ * Derive a wallet for a given wallet name.
1349
1349
  *
1350
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1350
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
1351
1351
  *
1352
- * @param label - Optional label string (defaults to "Default")
1352
+ * @param walletName - Optional wallet name string (defaults to "Default")
1353
1353
  */
1354
- getWallet(label?: string | null): Promise<Wallet>;
1354
+ getWallet(wallet_name?: string | null): Promise<Wallet>;
1355
+ /**
1356
+ * Check if passkey PRF is available on this device.
1357
+ */
1358
+ isAvailable(): Promise<boolean>;
1355
1359
  /**
1356
- * List all labels published to Nostr for this passkey's identity.
1360
+ * List all wallet names published to Nostr for this passkey's identity.
1357
1361
  *
1358
1362
  * Requires 1 PRF call (for Nostr identity derivation).
1359
1363
  */
1360
- listLabels(): Promise<string[]>;
1364
+ listWalletNames(): Promise<string[]>;
1361
1365
  /**
1362
- * Publish a label to Nostr relays for this passkey's identity.
1366
+ * Publish a wallet name to Nostr relays for this passkey's identity.
1363
1367
  *
1364
- * Idempotent: if the label already exists, it is not published again.
1368
+ * Idempotent: if the wallet name already exists, it is not published again.
1365
1369
  * Requires 1 PRF call.
1366
1370
  */
1367
- storeLabel(label: string): Promise<void>;
1368
- /**
1369
- * Check if passkey PRF is available on this device.
1370
- */
1371
- isAvailable(): Promise<boolean>;
1371
+ storeWalletName(wallet_name: string): Promise<void>;
1372
1372
  /**
1373
1373
  * Create a new `Passkey` instance.
1374
1374
  *
@@ -1485,9 +1485,9 @@ export interface InitOutput {
1485
1485
  readonly initLogging: (a: any, b: number, c: number) => any;
1486
1486
  readonly passkey_getWallet: (a: number, b: number, c: number) => any;
1487
1487
  readonly passkey_isAvailable: (a: number) => any;
1488
- readonly passkey_listLabels: (a: number) => any;
1488
+ readonly passkey_listWalletNames: (a: number) => any;
1489
1489
  readonly passkey_new: (a: any, b: number) => number;
1490
- readonly passkey_storeLabel: (a: number, b: number, c: number) => any;
1490
+ readonly passkey_storeWalletName: (a: number, b: number, c: number) => any;
1491
1491
  readonly sdkbuilder_build: (a: number) => any;
1492
1492
  readonly sdkbuilder_new: (a: any, b: any) => number;
1493
1493
  readonly sdkbuilder_newWithSigner: (a: any, b: any) => number;
@@ -1068,50 +1068,50 @@ export class Passkey {
1068
1068
  wasm.__wbg_passkey_free(ptr, 0);
1069
1069
  }
1070
1070
  /**
1071
- * Derive a wallet for a given label.
1071
+ * Derive a wallet for a given wallet name.
1072
1072
  *
1073
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1073
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
1074
1074
  *
1075
- * @param label - Optional label string (defaults to "Default")
1076
- * @param {string | null} [label]
1075
+ * @param walletName - Optional wallet name string (defaults to "Default")
1076
+ * @param {string | null} [wallet_name]
1077
1077
  * @returns {Promise<Wallet>}
1078
1078
  */
1079
- getWallet(label) {
1080
- var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1079
+ getWallet(wallet_name) {
1080
+ var ptr0 = isLikeNone(wallet_name) ? 0 : passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1081
1081
  var len0 = WASM_VECTOR_LEN;
1082
1082
  const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
1083
1083
  return ret;
1084
1084
  }
1085
1085
  /**
1086
- * List all labels published to Nostr for this passkey's identity.
1086
+ * Check if passkey PRF is available on this device.
1087
+ * @returns {Promise<boolean>}
1088
+ */
1089
+ isAvailable() {
1090
+ const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1091
+ return ret;
1092
+ }
1093
+ /**
1094
+ * List all wallet names published to Nostr for this passkey's identity.
1087
1095
  *
1088
1096
  * Requires 1 PRF call (for Nostr identity derivation).
1089
1097
  * @returns {Promise<string[]>}
1090
1098
  */
1091
- listLabels() {
1092
- const ret = wasm.passkey_listLabels(this.__wbg_ptr);
1099
+ listWalletNames() {
1100
+ const ret = wasm.passkey_listWalletNames(this.__wbg_ptr);
1093
1101
  return ret;
1094
1102
  }
1095
1103
  /**
1096
- * Publish a label to Nostr relays for this passkey's identity.
1104
+ * Publish a wallet name to Nostr relays for this passkey's identity.
1097
1105
  *
1098
- * Idempotent: if the label already exists, it is not published again.
1106
+ * Idempotent: if the wallet name already exists, it is not published again.
1099
1107
  * Requires 1 PRF call.
1100
- * @param {string} label
1108
+ * @param {string} wallet_name
1101
1109
  * @returns {Promise<void>}
1102
1110
  */
1103
- storeLabel(label) {
1104
- const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1111
+ storeWalletName(wallet_name) {
1112
+ const ptr0 = passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1105
1113
  const len0 = WASM_VECTOR_LEN;
1106
- const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
1107
- return ret;
1108
- }
1109
- /**
1110
- * Check if passkey PRF is available on this device.
1111
- * @returns {Promise<boolean>}
1112
- */
1113
- isAvailable() {
1114
- const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1114
+ const ret = wasm.passkey_storeWalletName(this.__wbg_ptr, ptr0, len0);
1115
1115
  return ret;
1116
1116
  }
1117
1117
  /**
@@ -2593,11 +2593,11 @@ function __wbg_get_imports() {
2593
2593
  const ret = false;
2594
2594
  return ret;
2595
2595
  };
2596
- imports.wbg.__wbindgen_closure_wrapper10357 = function(arg0, arg1, arg2) {
2596
+ imports.wbg.__wbindgen_closure_wrapper10362 = function(arg0, arg1, arg2) {
2597
2597
  const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_69);
2598
2598
  return ret;
2599
2599
  };
2600
- imports.wbg.__wbindgen_closure_wrapper15769 = function(arg0, arg1, arg2) {
2600
+ imports.wbg.__wbindgen_closure_wrapper15774 = function(arg0, arg1, arg2) {
2601
2601
  const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2602
2602
  return ret;
2603
2603
  };
Binary file
@@ -76,9 +76,9 @@ export const getSparkStatus: () => any;
76
76
  export const initLogging: (a: any, b: number, c: number) => any;
77
77
  export const passkey_getWallet: (a: number, b: number, c: number) => any;
78
78
  export const passkey_isAvailable: (a: number) => any;
79
- export const passkey_listLabels: (a: number) => any;
79
+ export const passkey_listWalletNames: (a: number) => any;
80
80
  export const passkey_new: (a: any, b: number) => number;
81
- export const passkey_storeLabel: (a: number, b: number, c: number) => any;
81
+ export const passkey_storeWalletName: (a: number, b: number, c: number) => any;
82
82
  export const sdkbuilder_build: (a: number) => any;
83
83
  export const sdkbuilder_new: (a: any, b: any) => number;
84
84
  export const sdkbuilder_newWithSigner: (a: any, b: any) => number;