@buildonspark/spark-sdk 0.5.0 → 0.5.1

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.
Files changed (81) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/bare/index.cjs +1608 -3635
  3. package/dist/bare/index.d.cts +27 -435
  4. package/dist/bare/index.d.ts +27 -435
  5. package/dist/bare/index.js +1608 -3634
  6. package/dist/{chunk-RU434ZAE.js → chunk-F3BFSHVR.js} +357 -391
  7. package/dist/{chunk-UYEB2VPG.js → chunk-IOIEBLMK.js} +7 -1
  8. package/dist/{chunk-EU3I7GFB.js → chunk-STB6WMU7.js} +1 -1
  9. package/dist/{chunk-JE3MXMPW.js → chunk-UTECVGQQ.js} +93 -202
  10. package/dist/{chunk-ZP6Z6DFX.js → chunk-YFVVYZCS.js} +37 -5
  11. package/dist/{client-D1dLzWu0.d.ts → client-C9kc4cog.d.cts} +9 -3
  12. package/dist/{client-CVn0R_eM.d.cts → client-eyjf4knu.d.ts} +9 -3
  13. package/dist/graphql/objects/index.cjs +7 -1
  14. package/dist/graphql/objects/index.d.cts +3 -3
  15. package/dist/graphql/objects/index.d.ts +3 -3
  16. package/dist/graphql/objects/index.js +1 -1
  17. package/dist/index.browser.d.ts +27 -435
  18. package/dist/index.browser.js +1613 -3639
  19. package/dist/index.node.cjs +1613 -3640
  20. package/dist/index.node.d.cts +7 -8
  21. package/dist/index.node.d.ts +7 -8
  22. package/dist/index.node.js +5 -7
  23. package/dist/native/index.react-native.cjs +1613 -3640
  24. package/dist/native/index.react-native.d.cts +27 -435
  25. package/dist/native/index.react-native.d.ts +27 -435
  26. package/dist/native/index.react-native.js +1613 -3639
  27. package/dist/proto/spark.cjs +93 -202
  28. package/dist/proto/spark.d.cts +1 -1
  29. package/dist/proto/spark.d.ts +1 -1
  30. package/dist/proto/spark.js +1 -1
  31. package/dist/proto/spark_token.cjs +36 -4
  32. package/dist/proto/spark_token.d.cts +4 -1
  33. package/dist/proto/spark_token.d.ts +4 -1
  34. package/dist/proto/spark_token.js +2 -2
  35. package/dist/{spark-2Fxnvl8K.d.cts → spark-d6w3BLGZ.d.cts} +10 -328
  36. package/dist/{spark-2Fxnvl8K.d.ts → spark-d6w3BLGZ.d.ts} +10 -328
  37. package/dist/{spark-wallet.node-DlhZiDgY.d.ts → spark-wallet.node-MReThHBY.d.ts} +6 -7
  38. package/dist/{spark-wallet.node-xKJXzAEd.d.cts → spark-wallet.node-eR0svGws.d.cts} +6 -7
  39. package/dist/tests/test-utils.cjs +409 -2429
  40. package/dist/tests/test-utils.d.cts +3 -3
  41. package/dist/tests/test-utils.d.ts +3 -3
  42. package/dist/tests/test-utils.js +5 -5
  43. package/dist/types/index.cjs +100 -203
  44. package/dist/types/index.d.cts +2 -2
  45. package/dist/types/index.d.ts +2 -2
  46. package/dist/types/index.js +3 -3
  47. package/package.json +3 -3
  48. package/src/graphql/client.ts +36 -1
  49. package/src/graphql/objects/LightningSendRequestStatus.ts +25 -13
  50. package/src/proto/common.ts +1 -1
  51. package/src/proto/google/protobuf/descriptor.ts +1 -1
  52. package/src/proto/google/protobuf/duration.ts +1 -1
  53. package/src/proto/google/protobuf/empty.ts +1 -1
  54. package/src/proto/google/protobuf/timestamp.ts +1 -1
  55. package/src/proto/mock.ts +1 -1
  56. package/src/proto/spark.ts +113 -446
  57. package/src/proto/spark_authn.ts +1 -1
  58. package/src/proto/spark_token.ts +41 -2
  59. package/src/proto/validate/validate.ts +1 -1
  60. package/src/services/connection/connection.ts +23 -60
  61. package/src/services/coop-exit.ts +3 -5
  62. package/src/services/deposit.ts +1 -1
  63. package/src/services/lightning.ts +1 -1
  64. package/src/services/signing.ts +5 -6
  65. package/src/services/transfer.ts +250 -240
  66. package/src/services/wallet-config.ts +22 -5
  67. package/src/spark-wallet/proto-descriptors.ts +1 -1
  68. package/src/spark-wallet/proto-reflection.ts +0 -2
  69. package/src/spark-wallet/spark-wallet.ts +2 -2
  70. package/src/spark_descriptors.pb +0 -0
  71. package/src/tests/bufbuild-reflection.test.ts +2 -3
  72. package/src/tests/integration/coop-exit.test.ts +6 -1
  73. package/src/tests/integration/htlc.test.ts +5 -0
  74. package/src/tests/integration/lightning.test.ts +24 -4
  75. package/src/tests/integration/time-sync.test.ts +18 -0
  76. package/src/tests/integration/transfer.test.ts +42 -7
  77. package/src/tests/ssp-client-retry.test.ts +161 -0
  78. package/src/tests/token-hashing.test.ts +92 -0
  79. package/src/utils/token-hashing.ts +4 -51
  80. package/src/utils/transaction.ts +1 -2
  81. package/src/utils/unilateral-exit.ts +139 -142
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.7.7
3
+ // protoc-gen-ts_proto v2.8.3
4
4
  // protoc v5.29.3
5
5
  // source: spark.proto
6
6
 
@@ -335,6 +335,7 @@ export function preimageRequestStatusToJSON(object: PreimageRequestStatus): stri
335
335
  export enum PreimageRequestRole {
336
336
  PREIMAGE_REQUEST_ROLE_RECEIVER = 0,
337
337
  PREIMAGE_REQUEST_ROLE_SENDER = 1,
338
+ PREIMAGE_REQUEST_ROLE_RECEIVER_AND_SENDER = 2,
338
339
  UNRECOGNIZED = -1,
339
340
  }
340
341
 
@@ -346,6 +347,9 @@ export function preimageRequestRoleFromJSON(object: any): PreimageRequestRole {
346
347
  case 1:
347
348
  case "PREIMAGE_REQUEST_ROLE_SENDER":
348
349
  return PreimageRequestRole.PREIMAGE_REQUEST_ROLE_SENDER;
350
+ case 2:
351
+ case "PREIMAGE_REQUEST_ROLE_RECEIVER_AND_SENDER":
352
+ return PreimageRequestRole.PREIMAGE_REQUEST_ROLE_RECEIVER_AND_SENDER;
349
353
  case -1:
350
354
  case "UNRECOGNIZED":
351
355
  default:
@@ -359,6 +363,8 @@ export function preimageRequestRoleToJSON(object: PreimageRequestRole): string {
359
363
  return "PREIMAGE_REQUEST_ROLE_RECEIVER";
360
364
  case PreimageRequestRole.PREIMAGE_REQUEST_ROLE_SENDER:
361
365
  return "PREIMAGE_REQUEST_ROLE_SENDER";
366
+ case PreimageRequestRole.PREIMAGE_REQUEST_ROLE_RECEIVER_AND_SENDER:
367
+ return "PREIMAGE_REQUEST_ROLE_RECEIVER_AND_SENDER";
362
368
  case PreimageRequestRole.UNRECOGNIZED:
363
369
  default:
364
370
  return "UNRECOGNIZED";
@@ -461,6 +467,7 @@ export enum TreeNodeStatus {
461
467
  TREE_NODE_STATUS_ON_CHAIN = 7,
462
468
  TREE_NODE_STATUS_AGGREGATE_LOCK = 8,
463
469
  TREE_NODE_STATUS_EXITED = 9,
470
+ TREE_NODE_STATUS_RENEW_LOCKED = 10,
464
471
  UNRECOGNIZED = -1,
465
472
  }
466
473
 
@@ -496,6 +503,9 @@ export function treeNodeStatusFromJSON(object: any): TreeNodeStatus {
496
503
  case 9:
497
504
  case "TREE_NODE_STATUS_EXITED":
498
505
  return TreeNodeStatus.TREE_NODE_STATUS_EXITED;
506
+ case 10:
507
+ case "TREE_NODE_STATUS_RENEW_LOCKED":
508
+ return TreeNodeStatus.TREE_NODE_STATUS_RENEW_LOCKED;
499
509
  case -1:
500
510
  case "UNRECOGNIZED":
501
511
  default:
@@ -525,6 +535,8 @@ export function treeNodeStatusToJSON(object: TreeNodeStatus): string {
525
535
  return "TREE_NODE_STATUS_AGGREGATE_LOCK";
526
536
  case TreeNodeStatus.TREE_NODE_STATUS_EXITED:
527
537
  return "TREE_NODE_STATUS_EXITED";
538
+ case TreeNodeStatus.TREE_NODE_STATUS_RENEW_LOCKED:
539
+ return "TREE_NODE_STATUS_RENEW_LOCKED";
528
540
  case TreeNodeStatus.UNRECOGNIZED:
529
541
  default:
530
542
  return "UNRECOGNIZED";
@@ -2053,10 +2065,15 @@ export interface AdaptorPublicKeyPackage {
2053
2065
  export interface WalletSetting {
2054
2066
  ownerIdentityPublicKey: Uint8Array;
2055
2067
  privateEnabled: boolean;
2068
+ masterIdentityPublicKey?: Uint8Array | undefined;
2056
2069
  }
2057
2070
 
2058
2071
  export interface UpdateWalletSettingRequest {
2059
2072
  privateEnabled?: boolean | undefined;
2073
+ masterIdentityPublicKey?: { $case: "setMasterIdentityPublicKey"; setMasterIdentityPublicKey: Uint8Array } | {
2074
+ $case: "clearMasterIdentityPublicKey";
2075
+ clearMasterIdentityPublicKey: boolean;
2076
+ } | undefined;
2060
2077
  }
2061
2078
 
2062
2079
  export interface UpdateWalletSettingResponse {
@@ -19323,7 +19340,7 @@ export const AdaptorPublicKeyPackage: MessageFns<AdaptorPublicKeyPackage> = {
19323
19340
  };
19324
19341
 
19325
19342
  function createBaseWalletSetting(): WalletSetting {
19326
- return { ownerIdentityPublicKey: new Uint8Array(0), privateEnabled: false };
19343
+ return { ownerIdentityPublicKey: new Uint8Array(0), privateEnabled: false, masterIdentityPublicKey: undefined };
19327
19344
  }
19328
19345
 
19329
19346
  export const WalletSetting: MessageFns<WalletSetting> = {
@@ -19334,6 +19351,9 @@ export const WalletSetting: MessageFns<WalletSetting> = {
19334
19351
  if (message.privateEnabled !== false) {
19335
19352
  writer.uint32(16).bool(message.privateEnabled);
19336
19353
  }
19354
+ if (message.masterIdentityPublicKey !== undefined) {
19355
+ writer.uint32(26).bytes(message.masterIdentityPublicKey);
19356
+ }
19337
19357
  return writer;
19338
19358
  },
19339
19359
 
@@ -19360,6 +19380,14 @@ export const WalletSetting: MessageFns<WalletSetting> = {
19360
19380
  message.privateEnabled = reader.bool();
19361
19381
  continue;
19362
19382
  }
19383
+ case 3: {
19384
+ if (tag !== 26) {
19385
+ break;
19386
+ }
19387
+
19388
+ message.masterIdentityPublicKey = reader.bytes();
19389
+ continue;
19390
+ }
19363
19391
  }
19364
19392
  if ((tag & 7) === 4 || tag === 0) {
19365
19393
  break;
@@ -19375,6 +19403,9 @@ export const WalletSetting: MessageFns<WalletSetting> = {
19375
19403
  ? bytesFromBase64(object.ownerIdentityPublicKey)
19376
19404
  : new Uint8Array(0),
19377
19405
  privateEnabled: isSet(object.privateEnabled) ? globalThis.Boolean(object.privateEnabled) : false,
19406
+ masterIdentityPublicKey: isSet(object.masterIdentityPublicKey)
19407
+ ? bytesFromBase64(object.masterIdentityPublicKey)
19408
+ : undefined,
19378
19409
  };
19379
19410
  },
19380
19411
 
@@ -19386,6 +19417,9 @@ export const WalletSetting: MessageFns<WalletSetting> = {
19386
19417
  if (message.privateEnabled !== false) {
19387
19418
  obj.privateEnabled = message.privateEnabled;
19388
19419
  }
19420
+ if (message.masterIdentityPublicKey !== undefined) {
19421
+ obj.masterIdentityPublicKey = base64FromBytes(message.masterIdentityPublicKey);
19422
+ }
19389
19423
  return obj;
19390
19424
  },
19391
19425
 
@@ -19396,12 +19430,13 @@ export const WalletSetting: MessageFns<WalletSetting> = {
19396
19430
  const message = createBaseWalletSetting();
19397
19431
  message.ownerIdentityPublicKey = object.ownerIdentityPublicKey ?? new Uint8Array(0);
19398
19432
  message.privateEnabled = object.privateEnabled ?? false;
19433
+ message.masterIdentityPublicKey = object.masterIdentityPublicKey ?? undefined;
19399
19434
  return message;
19400
19435
  },
19401
19436
  };
19402
19437
 
19403
19438
  function createBaseUpdateWalletSettingRequest(): UpdateWalletSettingRequest {
19404
- return { privateEnabled: undefined };
19439
+ return { privateEnabled: undefined, masterIdentityPublicKey: undefined };
19405
19440
  }
19406
19441
 
19407
19442
  export const UpdateWalletSettingRequest: MessageFns<UpdateWalletSettingRequest> = {
@@ -19409,6 +19444,14 @@ export const UpdateWalletSettingRequest: MessageFns<UpdateWalletSettingRequest>
19409
19444
  if (message.privateEnabled !== undefined) {
19410
19445
  writer.uint32(8).bool(message.privateEnabled);
19411
19446
  }
19447
+ switch (message.masterIdentityPublicKey?.$case) {
19448
+ case "setMasterIdentityPublicKey":
19449
+ writer.uint32(18).bytes(message.masterIdentityPublicKey.setMasterIdentityPublicKey);
19450
+ break;
19451
+ case "clearMasterIdentityPublicKey":
19452
+ writer.uint32(24).bool(message.masterIdentityPublicKey.clearMasterIdentityPublicKey);
19453
+ break;
19454
+ }
19412
19455
  return writer;
19413
19456
  },
19414
19457
 
@@ -19427,6 +19470,28 @@ export const UpdateWalletSettingRequest: MessageFns<UpdateWalletSettingRequest>
19427
19470
  message.privateEnabled = reader.bool();
19428
19471
  continue;
19429
19472
  }
19473
+ case 2: {
19474
+ if (tag !== 18) {
19475
+ break;
19476
+ }
19477
+
19478
+ message.masterIdentityPublicKey = {
19479
+ $case: "setMasterIdentityPublicKey",
19480
+ setMasterIdentityPublicKey: reader.bytes(),
19481
+ };
19482
+ continue;
19483
+ }
19484
+ case 3: {
19485
+ if (tag !== 24) {
19486
+ break;
19487
+ }
19488
+
19489
+ message.masterIdentityPublicKey = {
19490
+ $case: "clearMasterIdentityPublicKey",
19491
+ clearMasterIdentityPublicKey: reader.bool(),
19492
+ };
19493
+ continue;
19494
+ }
19430
19495
  }
19431
19496
  if ((tag & 7) === 4 || tag === 0) {
19432
19497
  break;
@@ -19437,7 +19502,20 @@ export const UpdateWalletSettingRequest: MessageFns<UpdateWalletSettingRequest>
19437
19502
  },
19438
19503
 
19439
19504
  fromJSON(object: any): UpdateWalletSettingRequest {
19440
- return { privateEnabled: isSet(object.privateEnabled) ? globalThis.Boolean(object.privateEnabled) : undefined };
19505
+ return {
19506
+ privateEnabled: isSet(object.privateEnabled) ? globalThis.Boolean(object.privateEnabled) : undefined,
19507
+ masterIdentityPublicKey: isSet(object.setMasterIdentityPublicKey)
19508
+ ? {
19509
+ $case: "setMasterIdentityPublicKey",
19510
+ setMasterIdentityPublicKey: bytesFromBase64(object.setMasterIdentityPublicKey),
19511
+ }
19512
+ : isSet(object.clearMasterIdentityPublicKey)
19513
+ ? {
19514
+ $case: "clearMasterIdentityPublicKey",
19515
+ clearMasterIdentityPublicKey: globalThis.Boolean(object.clearMasterIdentityPublicKey),
19516
+ }
19517
+ : undefined,
19518
+ };
19441
19519
  },
19442
19520
 
19443
19521
  toJSON(message: UpdateWalletSettingRequest): unknown {
@@ -19445,6 +19523,11 @@ export const UpdateWalletSettingRequest: MessageFns<UpdateWalletSettingRequest>
19445
19523
  if (message.privateEnabled !== undefined) {
19446
19524
  obj.privateEnabled = message.privateEnabled;
19447
19525
  }
19526
+ if (message.masterIdentityPublicKey?.$case === "setMasterIdentityPublicKey") {
19527
+ obj.setMasterIdentityPublicKey = base64FromBytes(message.masterIdentityPublicKey.setMasterIdentityPublicKey);
19528
+ } else if (message.masterIdentityPublicKey?.$case === "clearMasterIdentityPublicKey") {
19529
+ obj.clearMasterIdentityPublicKey = message.masterIdentityPublicKey.clearMasterIdentityPublicKey;
19530
+ }
19448
19531
  return obj;
19449
19532
  },
19450
19533
 
@@ -19454,6 +19537,32 @@ export const UpdateWalletSettingRequest: MessageFns<UpdateWalletSettingRequest>
19454
19537
  fromPartial(object: DeepPartial<UpdateWalletSettingRequest>): UpdateWalletSettingRequest {
19455
19538
  const message = createBaseUpdateWalletSettingRequest();
19456
19539
  message.privateEnabled = object.privateEnabled ?? undefined;
19540
+ switch (object.masterIdentityPublicKey?.$case) {
19541
+ case "setMasterIdentityPublicKey": {
19542
+ if (
19543
+ object.masterIdentityPublicKey?.setMasterIdentityPublicKey !== undefined &&
19544
+ object.masterIdentityPublicKey?.setMasterIdentityPublicKey !== null
19545
+ ) {
19546
+ message.masterIdentityPublicKey = {
19547
+ $case: "setMasterIdentityPublicKey",
19548
+ setMasterIdentityPublicKey: object.masterIdentityPublicKey.setMasterIdentityPublicKey,
19549
+ };
19550
+ }
19551
+ break;
19552
+ }
19553
+ case "clearMasterIdentityPublicKey": {
19554
+ if (
19555
+ object.masterIdentityPublicKey?.clearMasterIdentityPublicKey !== undefined &&
19556
+ object.masterIdentityPublicKey?.clearMasterIdentityPublicKey !== null
19557
+ ) {
19558
+ message.masterIdentityPublicKey = {
19559
+ $case: "clearMasterIdentityPublicKey",
19560
+ clearMasterIdentityPublicKey: object.masterIdentityPublicKey.clearMasterIdentityPublicKey,
19561
+ };
19562
+ }
19563
+ break;
19564
+ }
19565
+ }
19457
19566
  return message;
19458
19567
  },
19459
19568
  };
@@ -19651,50 +19760,6 @@ export const SparkServiceDefinition = {
19651
19760
  responseStream: false,
19652
19761
  options: {},
19653
19762
  },
19654
- /**
19655
- * This is deprecated, please use start_deposit_tree_creation instead.
19656
- *
19657
- * @deprecated
19658
- */
19659
- start_tree_creation: {
19660
- name: "start_tree_creation",
19661
- requestType: StartTreeCreationRequest,
19662
- requestStream: false,
19663
- responseType: StartTreeCreationResponse,
19664
- responseStream: false,
19665
- options: {},
19666
- },
19667
- /** @deprecated */
19668
- finalize_node_signatures: {
19669
- name: "finalize_node_signatures",
19670
- requestType: FinalizeNodeSignaturesRequest,
19671
- requestStream: false,
19672
- responseType: FinalizeNodeSignaturesResponse,
19673
- responseStream: false,
19674
- options: {},
19675
- },
19676
- /** @deprecated */
19677
- start_transfer: {
19678
- name: "start_transfer",
19679
- requestType: StartTransferRequest,
19680
- requestStream: false,
19681
- responseType: StartTransferResponse,
19682
- responseStream: false,
19683
- options: {},
19684
- },
19685
- /**
19686
- * This is deprecated, please use finalize_transfer_with_transfer_package instead.
19687
- *
19688
- * @deprecated
19689
- */
19690
- finalize_transfer: {
19691
- name: "finalize_transfer",
19692
- requestType: FinalizeTransferRequest,
19693
- requestStream: false,
19694
- responseType: FinalizeTransferResponse,
19695
- responseStream: false,
19696
- options: {},
19697
- },
19698
19763
  finalize_transfer_with_transfer_package: {
19699
19764
  name: "finalize_transfer_with_transfer_package",
19700
19765
  requestType: FinalizeTransferWithTransferPackageRequest,
@@ -19703,15 +19768,6 @@ export const SparkServiceDefinition = {
19703
19768
  responseStream: false,
19704
19769
  options: {},
19705
19770
  },
19706
- /** @deprecated */
19707
- cancel_transfer: {
19708
- name: "cancel_transfer",
19709
- requestType: CancelTransferRequest,
19710
- requestStream: false,
19711
- responseType: CancelTransferResponse,
19712
- responseStream: false,
19713
- options: {},
19714
- },
19715
19771
  query_pending_transfers: {
19716
19772
  name: "query_pending_transfers",
19717
19773
  requestType: TransferFilter,
@@ -19736,15 +19792,6 @@ export const SparkServiceDefinition = {
19736
19792
  responseStream: false,
19737
19793
  options: {},
19738
19794
  },
19739
- /** @deprecated */
19740
- claim_transfer_sign_refunds: {
19741
- name: "claim_transfer_sign_refunds",
19742
- requestType: ClaimTransferSignRefundsRequest,
19743
- requestStream: false,
19744
- responseType: ClaimTransferSignRefundsResponse,
19745
- responseStream: false,
19746
- options: {},
19747
- },
19748
19795
  store_preimage_share: {
19749
19796
  name: "store_preimage_share",
19750
19797
  requestType: StorePreimageShareRequest,
@@ -19765,24 +19812,6 @@ export const SparkServiceDefinition = {
19765
19812
  responseStream: false,
19766
19813
  options: {},
19767
19814
  },
19768
- /** @deprecated */
19769
- cooperative_exit: {
19770
- name: "cooperative_exit",
19771
- requestType: CooperativeExitRequest,
19772
- requestStream: false,
19773
- responseType: CooperativeExitResponse,
19774
- responseStream: false,
19775
- options: {},
19776
- },
19777
- /** @deprecated */
19778
- initiate_preimage_swap: {
19779
- name: "initiate_preimage_swap",
19780
- requestType: InitiatePreimageSwapRequest,
19781
- requestStream: false,
19782
- responseType: InitiatePreimageSwapResponse,
19783
- responseStream: false,
19784
- options: {},
19785
- },
19786
19815
  provide_preimage: {
19787
19816
  name: "provide_preimage",
19788
19817
  requestType: ProvidePreimageRequest,
@@ -19799,63 +19828,6 @@ export const SparkServiceDefinition = {
19799
19828
  responseStream: false,
19800
19829
  options: {},
19801
19830
  },
19802
- /**
19803
- * This is the exact same as start_transfer, but expresses to the SO
19804
- * this transfer is specifically for a leaf swap.
19805
- */
19806
- start_leaf_swap: {
19807
- name: "start_leaf_swap",
19808
- requestType: StartTransferRequest,
19809
- requestStream: false,
19810
- responseType: StartTransferResponse,
19811
- responseStream: false,
19812
- options: {},
19813
- },
19814
- /**
19815
- * This is deprecated, please use counter_leaf_swap instead.
19816
- *
19817
- * @deprecated
19818
- */
19819
- leaf_swap: {
19820
- name: "leaf_swap",
19821
- requestType: CounterLeafSwapRequest,
19822
- requestStream: false,
19823
- responseType: CounterLeafSwapResponse,
19824
- responseStream: false,
19825
- options: {},
19826
- },
19827
- /**
19828
- * This is the exact same as start_leaf_swap, but signs with
19829
- * an adaptor public key after a counterparty has begun the swap via start_leaf_swap.
19830
- *
19831
- * @deprecated
19832
- */
19833
- counter_leaf_swap: {
19834
- name: "counter_leaf_swap",
19835
- requestType: CounterLeafSwapRequest,
19836
- requestStream: false,
19837
- responseType: CounterLeafSwapResponse,
19838
- responseStream: false,
19839
- options: {},
19840
- },
19841
- /** @deprecated */
19842
- refresh_timelock: {
19843
- name: "refresh_timelock",
19844
- requestType: RefreshTimelockRequest,
19845
- requestStream: false,
19846
- responseType: RefreshTimelockResponse,
19847
- responseStream: false,
19848
- options: {},
19849
- },
19850
- /** @deprecated */
19851
- extend_leaf: {
19852
- name: "extend_leaf",
19853
- requestType: ExtendLeafRequest,
19854
- requestStream: false,
19855
- responseType: ExtendLeafResponse,
19856
- responseStream: false,
19857
- options: {},
19858
- },
19859
19831
  /**
19860
19832
  * Resets the timelocks for a leaf's transactions. Can be used to reset the
19861
19833
  * refund transaction timelock for a leaf (when the node transaction
@@ -19887,24 +19859,6 @@ export const SparkServiceDefinition = {
19887
19859
  responseStream: false,
19888
19860
  options: {},
19889
19861
  },
19890
- /** @deprecated */
19891
- query_nodes_distribution: {
19892
- name: "query_nodes_distribution",
19893
- requestType: QueryNodesDistributionRequest,
19894
- requestStream: false,
19895
- responseType: QueryNodesDistributionResponse,
19896
- responseStream: false,
19897
- options: {},
19898
- },
19899
- /** @deprecated */
19900
- query_nodes_by_value: {
19901
- name: "query_nodes_by_value",
19902
- requestType: QueryNodesByValueRequest,
19903
- requestStream: false,
19904
- responseType: QueryNodesByValueResponse,
19905
- responseStream: false,
19906
- options: {},
19907
- },
19908
19862
  query_balance: {
19909
19863
  name: "query_balance",
19910
19864
  requestType: QueryBalanceRequest,
@@ -19959,22 +19913,6 @@ export const SparkServiceDefinition = {
19959
19913
  responseStream: false,
19960
19914
  options: {},
19961
19915
  },
19962
- /**
19963
- * DEPRECATED: This unified method is being split for better clarity and type safety
19964
- *
19965
- * For swap operations: Use spark_ssp_internal.initiate_static_deposit_utxo_swap()
19966
- * For refund operations: Use initiate_static_deposit_utxo_refund()
19967
- *
19968
- * @deprecated
19969
- */
19970
- initiate_utxo_swap: {
19971
- name: "initiate_utxo_swap",
19972
- requestType: InitiateUtxoSwapRequest,
19973
- requestStream: false,
19974
- responseType: InitiateUtxoSwapResponse,
19975
- responseStream: false,
19976
- options: {},
19977
- },
19978
19916
  exit_single_node_trees: {
19979
19917
  name: "exit_single_node_trees",
19980
19918
  requestType: ExitSingleNodeTreesRequest,
@@ -19995,15 +19933,6 @@ export const SparkServiceDefinition = {
19995
19933
  responseStream: false,
19996
19934
  options: {},
19997
19935
  },
19998
- /** @deprecated */
19999
- extend_leaf_v2: {
20000
- name: "extend_leaf_v2",
20001
- requestType: ExtendLeafRequest,
20002
- requestStream: false,
20003
- responseType: ExtendLeafResponse,
20004
- responseStream: false,
20005
- options: {},
20006
- },
20007
19936
  claim_transfer_sign_refunds_v2: {
20008
19937
  name: "claim_transfer_sign_refunds_v2",
20009
19938
  requestType: ClaimTransferSignRefundsRequest,
@@ -20044,15 +19973,6 @@ export const SparkServiceDefinition = {
20044
19973
  responseStream: false,
20045
19974
  options: {},
20046
19975
  },
20047
- /** @deprecated */
20048
- counter_leaf_swap_v2: {
20049
- name: "counter_leaf_swap_v2",
20050
- requestType: CounterLeafSwapRequest,
20051
- requestStream: false,
20052
- responseType: CounterLeafSwapResponse,
20053
- responseStream: false,
20054
- options: {},
20055
- },
20056
19976
  start_transfer_v2: {
20057
19977
  name: "start_transfer_v2",
20058
19978
  requestType: StartTransferRequest,
@@ -20061,15 +19981,6 @@ export const SparkServiceDefinition = {
20061
19981
  responseStream: false,
20062
19982
  options: {},
20063
19983
  },
20064
- /** @deprecated */
20065
- refresh_timelock_v2: {
20066
- name: "refresh_timelock_v2",
20067
- requestType: RefreshTimelockRequest,
20068
- requestStream: false,
20069
- responseType: RefreshTimelockResponse,
20070
- responseStream: false,
20071
- options: {},
20072
- },
20073
19984
  get_utxos_for_address: {
20074
19985
  name: "get_utxos_for_address",
20075
19986
  requestType: GetUtxosForAddressRequest,
@@ -20132,43 +20043,10 @@ export interface SparkServiceImplementation<CallContextExt = {}> {
20132
20043
  request: StartDepositTreeCreationRequest,
20133
20044
  context: CallContext & CallContextExt,
20134
20045
  ): Promise<DeepPartial<StartDepositTreeCreationResponse>>;
20135
- /**
20136
- * This is deprecated, please use start_deposit_tree_creation instead.
20137
- *
20138
- * @deprecated
20139
- */
20140
- start_tree_creation(
20141
- request: StartTreeCreationRequest,
20142
- context: CallContext & CallContextExt,
20143
- ): Promise<DeepPartial<StartTreeCreationResponse>>;
20144
- /** @deprecated */
20145
- finalize_node_signatures(
20146
- request: FinalizeNodeSignaturesRequest,
20147
- context: CallContext & CallContextExt,
20148
- ): Promise<DeepPartial<FinalizeNodeSignaturesResponse>>;
20149
- /** @deprecated */
20150
- start_transfer(
20151
- request: StartTransferRequest,
20152
- context: CallContext & CallContextExt,
20153
- ): Promise<DeepPartial<StartTransferResponse>>;
20154
- /**
20155
- * This is deprecated, please use finalize_transfer_with_transfer_package instead.
20156
- *
20157
- * @deprecated
20158
- */
20159
- finalize_transfer(
20160
- request: FinalizeTransferRequest,
20161
- context: CallContext & CallContextExt,
20162
- ): Promise<DeepPartial<FinalizeTransferResponse>>;
20163
20046
  finalize_transfer_with_transfer_package(
20164
20047
  request: FinalizeTransferWithTransferPackageRequest,
20165
20048
  context: CallContext & CallContextExt,
20166
20049
  ): Promise<DeepPartial<FinalizeTransferResponse>>;
20167
- /** @deprecated */
20168
- cancel_transfer(
20169
- request: CancelTransferRequest,
20170
- context: CallContext & CallContextExt,
20171
- ): Promise<DeepPartial<CancelTransferResponse>>;
20172
20050
  query_pending_transfers(
20173
20051
  request: TransferFilter,
20174
20052
  context: CallContext & CallContextExt,
@@ -20181,11 +20059,6 @@ export interface SparkServiceImplementation<CallContextExt = {}> {
20181
20059
  request: ClaimTransferTweakKeysRequest,
20182
20060
  context: CallContext & CallContextExt,
20183
20061
  ): Promise<DeepPartial<Empty>>;
20184
- /** @deprecated */
20185
- claim_transfer_sign_refunds(
20186
- request: ClaimTransferSignRefundsRequest,
20187
- context: CallContext & CallContextExt,
20188
- ): Promise<DeepPartial<ClaimTransferSignRefundsResponse>>;
20189
20062
  store_preimage_share(
20190
20063
  request: StorePreimageShareRequest,
20191
20064
  context: CallContext & CallContextExt,
@@ -20198,58 +20071,11 @@ export interface SparkServiceImplementation<CallContextExt = {}> {
20198
20071
  request: GetSigningCommitmentsRequest,
20199
20072
  context: CallContext & CallContextExt,
20200
20073
  ): Promise<DeepPartial<GetSigningCommitmentsResponse>>;
20201
- /** @deprecated */
20202
- cooperative_exit(
20203
- request: CooperativeExitRequest,
20204
- context: CallContext & CallContextExt,
20205
- ): Promise<DeepPartial<CooperativeExitResponse>>;
20206
- /** @deprecated */
20207
- initiate_preimage_swap(
20208
- request: InitiatePreimageSwapRequest,
20209
- context: CallContext & CallContextExt,
20210
- ): Promise<DeepPartial<InitiatePreimageSwapResponse>>;
20211
20074
  provide_preimage(
20212
20075
  request: ProvidePreimageRequest,
20213
20076
  context: CallContext & CallContextExt,
20214
20077
  ): Promise<DeepPartial<ProvidePreimageResponse>>;
20215
20078
  query_htlc(request: QueryHtlcRequest, context: CallContext & CallContextExt): Promise<DeepPartial<QueryHtlcResponse>>;
20216
- /**
20217
- * This is the exact same as start_transfer, but expresses to the SO
20218
- * this transfer is specifically for a leaf swap.
20219
- */
20220
- start_leaf_swap(
20221
- request: StartTransferRequest,
20222
- context: CallContext & CallContextExt,
20223
- ): Promise<DeepPartial<StartTransferResponse>>;
20224
- /**
20225
- * This is deprecated, please use counter_leaf_swap instead.
20226
- *
20227
- * @deprecated
20228
- */
20229
- leaf_swap(
20230
- request: CounterLeafSwapRequest,
20231
- context: CallContext & CallContextExt,
20232
- ): Promise<DeepPartial<CounterLeafSwapResponse>>;
20233
- /**
20234
- * This is the exact same as start_leaf_swap, but signs with
20235
- * an adaptor public key after a counterparty has begun the swap via start_leaf_swap.
20236
- *
20237
- * @deprecated
20238
- */
20239
- counter_leaf_swap(
20240
- request: CounterLeafSwapRequest,
20241
- context: CallContext & CallContextExt,
20242
- ): Promise<DeepPartial<CounterLeafSwapResponse>>;
20243
- /** @deprecated */
20244
- refresh_timelock(
20245
- request: RefreshTimelockRequest,
20246
- context: CallContext & CallContextExt,
20247
- ): Promise<DeepPartial<RefreshTimelockResponse>>;
20248
- /** @deprecated */
20249
- extend_leaf(
20250
- request: ExtendLeafRequest,
20251
- context: CallContext & CallContextExt,
20252
- ): Promise<DeepPartial<ExtendLeafResponse>>;
20253
20079
  /**
20254
20080
  * Resets the timelocks for a leaf's transactions. Can be used to reset the
20255
20081
  * refund transaction timelock for a leaf (when the node transaction
@@ -20266,16 +20092,6 @@ export interface SparkServiceImplementation<CallContextExt = {}> {
20266
20092
  request: QueryNodesRequest,
20267
20093
  context: CallContext & CallContextExt,
20268
20094
  ): Promise<DeepPartial<QueryNodesResponse>>;
20269
- /** @deprecated */
20270
- query_nodes_distribution(
20271
- request: QueryNodesDistributionRequest,
20272
- context: CallContext & CallContextExt,
20273
- ): Promise<DeepPartial<QueryNodesDistributionResponse>>;
20274
- /** @deprecated */
20275
- query_nodes_by_value(
20276
- request: QueryNodesByValueRequest,
20277
- context: CallContext & CallContextExt,
20278
- ): Promise<DeepPartial<QueryNodesByValueResponse>>;
20279
20095
  query_balance(
20280
20096
  request: QueryBalanceRequest,
20281
20097
  context: CallContext & CallContextExt,
@@ -20306,18 +20122,6 @@ export interface SparkServiceImplementation<CallContextExt = {}> {
20306
20122
  request: InitiateStaticDepositUtxoRefundRequest,
20307
20123
  context: CallContext & CallContextExt,
20308
20124
  ): Promise<DeepPartial<InitiateStaticDepositUtxoRefundResponse>>;
20309
- /**
20310
- * DEPRECATED: This unified method is being split for better clarity and type safety
20311
- *
20312
- * For swap operations: Use spark_ssp_internal.initiate_static_deposit_utxo_swap()
20313
- * For refund operations: Use initiate_static_deposit_utxo_refund()
20314
- *
20315
- * @deprecated
20316
- */
20317
- initiate_utxo_swap(
20318
- request: InitiateUtxoSwapRequest,
20319
- context: CallContext & CallContextExt,
20320
- ): Promise<DeepPartial<InitiateUtxoSwapResponse>>;
20321
20125
  exit_single_node_trees(
20322
20126
  request: ExitSingleNodeTreesRequest,
20323
20127
  context: CallContext & CallContextExt,
@@ -20330,11 +20134,6 @@ export interface SparkServiceImplementation<CallContextExt = {}> {
20330
20134
  request: CooperativeExitRequest,
20331
20135
  context: CallContext & CallContextExt,
20332
20136
  ): Promise<DeepPartial<CooperativeExitResponse>>;
20333
- /** @deprecated */
20334
- extend_leaf_v2(
20335
- request: ExtendLeafRequest,
20336
- context: CallContext & CallContextExt,
20337
- ): Promise<DeepPartial<ExtendLeafResponse>>;
20338
20137
  claim_transfer_sign_refunds_v2(
20339
20138
  request: ClaimTransferSignRefundsRequest,
20340
20139
  context: CallContext & CallContextExt,
@@ -20355,20 +20154,10 @@ export interface SparkServiceImplementation<CallContextExt = {}> {
20355
20154
  request: StartTransferRequest,
20356
20155
  context: CallContext & CallContextExt,
20357
20156
  ): Promise<DeepPartial<StartTransferResponse>>;
20358
- /** @deprecated */
20359
- counter_leaf_swap_v2(
20360
- request: CounterLeafSwapRequest,
20361
- context: CallContext & CallContextExt,
20362
- ): Promise<DeepPartial<CounterLeafSwapResponse>>;
20363
20157
  start_transfer_v2(
20364
20158
  request: StartTransferRequest,
20365
20159
  context: CallContext & CallContextExt,
20366
20160
  ): Promise<DeepPartial<StartTransferResponse>>;
20367
- /** @deprecated */
20368
- refresh_timelock_v2(
20369
- request: RefreshTimelockRequest,
20370
- context: CallContext & CallContextExt,
20371
- ): Promise<DeepPartial<RefreshTimelockResponse>>;
20372
20161
  get_utxos_for_address(
20373
20162
  request: GetUtxosForAddressRequest,
20374
20163
  context: CallContext & CallContextExt,
@@ -20410,43 +20199,10 @@ export interface SparkServiceClient<CallOptionsExt = {}> {
20410
20199
  request: DeepPartial<StartDepositTreeCreationRequest>,
20411
20200
  options?: CallOptions & CallOptionsExt,
20412
20201
  ): Promise<StartDepositTreeCreationResponse>;
20413
- /**
20414
- * This is deprecated, please use start_deposit_tree_creation instead.
20415
- *
20416
- * @deprecated
20417
- */
20418
- start_tree_creation(
20419
- request: DeepPartial<StartTreeCreationRequest>,
20420
- options?: CallOptions & CallOptionsExt,
20421
- ): Promise<StartTreeCreationResponse>;
20422
- /** @deprecated */
20423
- finalize_node_signatures(
20424
- request: DeepPartial<FinalizeNodeSignaturesRequest>,
20425
- options?: CallOptions & CallOptionsExt,
20426
- ): Promise<FinalizeNodeSignaturesResponse>;
20427
- /** @deprecated */
20428
- start_transfer(
20429
- request: DeepPartial<StartTransferRequest>,
20430
- options?: CallOptions & CallOptionsExt,
20431
- ): Promise<StartTransferResponse>;
20432
- /**
20433
- * This is deprecated, please use finalize_transfer_with_transfer_package instead.
20434
- *
20435
- * @deprecated
20436
- */
20437
- finalize_transfer(
20438
- request: DeepPartial<FinalizeTransferRequest>,
20439
- options?: CallOptions & CallOptionsExt,
20440
- ): Promise<FinalizeTransferResponse>;
20441
20202
  finalize_transfer_with_transfer_package(
20442
20203
  request: DeepPartial<FinalizeTransferWithTransferPackageRequest>,
20443
20204
  options?: CallOptions & CallOptionsExt,
20444
20205
  ): Promise<FinalizeTransferResponse>;
20445
- /** @deprecated */
20446
- cancel_transfer(
20447
- request: DeepPartial<CancelTransferRequest>,
20448
- options?: CallOptions & CallOptionsExt,
20449
- ): Promise<CancelTransferResponse>;
20450
20206
  query_pending_transfers(
20451
20207
  request: DeepPartial<TransferFilter>,
20452
20208
  options?: CallOptions & CallOptionsExt,
@@ -20459,11 +20215,6 @@ export interface SparkServiceClient<CallOptionsExt = {}> {
20459
20215
  request: DeepPartial<ClaimTransferTweakKeysRequest>,
20460
20216
  options?: CallOptions & CallOptionsExt,
20461
20217
  ): Promise<Empty>;
20462
- /** @deprecated */
20463
- claim_transfer_sign_refunds(
20464
- request: DeepPartial<ClaimTransferSignRefundsRequest>,
20465
- options?: CallOptions & CallOptionsExt,
20466
- ): Promise<ClaimTransferSignRefundsResponse>;
20467
20218
  store_preimage_share(
20468
20219
  request: DeepPartial<StorePreimageShareRequest>,
20469
20220
  options?: CallOptions & CallOptionsExt,
@@ -20476,16 +20227,6 @@ export interface SparkServiceClient<CallOptionsExt = {}> {
20476
20227
  request: DeepPartial<GetSigningCommitmentsRequest>,
20477
20228
  options?: CallOptions & CallOptionsExt,
20478
20229
  ): Promise<GetSigningCommitmentsResponse>;
20479
- /** @deprecated */
20480
- cooperative_exit(
20481
- request: DeepPartial<CooperativeExitRequest>,
20482
- options?: CallOptions & CallOptionsExt,
20483
- ): Promise<CooperativeExitResponse>;
20484
- /** @deprecated */
20485
- initiate_preimage_swap(
20486
- request: DeepPartial<InitiatePreimageSwapRequest>,
20487
- options?: CallOptions & CallOptionsExt,
20488
- ): Promise<InitiatePreimageSwapResponse>;
20489
20230
  provide_preimage(
20490
20231
  request: DeepPartial<ProvidePreimageRequest>,
20491
20232
  options?: CallOptions & CallOptionsExt,
@@ -20494,43 +20235,6 @@ export interface SparkServiceClient<CallOptionsExt = {}> {
20494
20235
  request: DeepPartial<QueryHtlcRequest>,
20495
20236
  options?: CallOptions & CallOptionsExt,
20496
20237
  ): Promise<QueryHtlcResponse>;
20497
- /**
20498
- * This is the exact same as start_transfer, but expresses to the SO
20499
- * this transfer is specifically for a leaf swap.
20500
- */
20501
- start_leaf_swap(
20502
- request: DeepPartial<StartTransferRequest>,
20503
- options?: CallOptions & CallOptionsExt,
20504
- ): Promise<StartTransferResponse>;
20505
- /**
20506
- * This is deprecated, please use counter_leaf_swap instead.
20507
- *
20508
- * @deprecated
20509
- */
20510
- leaf_swap(
20511
- request: DeepPartial<CounterLeafSwapRequest>,
20512
- options?: CallOptions & CallOptionsExt,
20513
- ): Promise<CounterLeafSwapResponse>;
20514
- /**
20515
- * This is the exact same as start_leaf_swap, but signs with
20516
- * an adaptor public key after a counterparty has begun the swap via start_leaf_swap.
20517
- *
20518
- * @deprecated
20519
- */
20520
- counter_leaf_swap(
20521
- request: DeepPartial<CounterLeafSwapRequest>,
20522
- options?: CallOptions & CallOptionsExt,
20523
- ): Promise<CounterLeafSwapResponse>;
20524
- /** @deprecated */
20525
- refresh_timelock(
20526
- request: DeepPartial<RefreshTimelockRequest>,
20527
- options?: CallOptions & CallOptionsExt,
20528
- ): Promise<RefreshTimelockResponse>;
20529
- /** @deprecated */
20530
- extend_leaf(
20531
- request: DeepPartial<ExtendLeafRequest>,
20532
- options?: CallOptions & CallOptionsExt,
20533
- ): Promise<ExtendLeafResponse>;
20534
20238
  /**
20535
20239
  * Resets the timelocks for a leaf's transactions. Can be used to reset the
20536
20240
  * refund transaction timelock for a leaf (when the node transaction
@@ -20550,16 +20254,6 @@ export interface SparkServiceClient<CallOptionsExt = {}> {
20550
20254
  request: DeepPartial<QueryNodesRequest>,
20551
20255
  options?: CallOptions & CallOptionsExt,
20552
20256
  ): Promise<QueryNodesResponse>;
20553
- /** @deprecated */
20554
- query_nodes_distribution(
20555
- request: DeepPartial<QueryNodesDistributionRequest>,
20556
- options?: CallOptions & CallOptionsExt,
20557
- ): Promise<QueryNodesDistributionResponse>;
20558
- /** @deprecated */
20559
- query_nodes_by_value(
20560
- request: DeepPartial<QueryNodesByValueRequest>,
20561
- options?: CallOptions & CallOptionsExt,
20562
- ): Promise<QueryNodesByValueResponse>;
20563
20257
  query_balance(
20564
20258
  request: DeepPartial<QueryBalanceRequest>,
20565
20259
  options?: CallOptions & CallOptionsExt,
@@ -20590,18 +20284,6 @@ export interface SparkServiceClient<CallOptionsExt = {}> {
20590
20284
  request: DeepPartial<InitiateStaticDepositUtxoRefundRequest>,
20591
20285
  options?: CallOptions & CallOptionsExt,
20592
20286
  ): Promise<InitiateStaticDepositUtxoRefundResponse>;
20593
- /**
20594
- * DEPRECATED: This unified method is being split for better clarity and type safety
20595
- *
20596
- * For swap operations: Use spark_ssp_internal.initiate_static_deposit_utxo_swap()
20597
- * For refund operations: Use initiate_static_deposit_utxo_refund()
20598
- *
20599
- * @deprecated
20600
- */
20601
- initiate_utxo_swap(
20602
- request: DeepPartial<InitiateUtxoSwapRequest>,
20603
- options?: CallOptions & CallOptionsExt,
20604
- ): Promise<InitiateUtxoSwapResponse>;
20605
20287
  exit_single_node_trees(
20606
20288
  request: DeepPartial<ExitSingleNodeTreesRequest>,
20607
20289
  options?: CallOptions & CallOptionsExt,
@@ -20614,11 +20296,6 @@ export interface SparkServiceClient<CallOptionsExt = {}> {
20614
20296
  request: DeepPartial<CooperativeExitRequest>,
20615
20297
  options?: CallOptions & CallOptionsExt,
20616
20298
  ): Promise<CooperativeExitResponse>;
20617
- /** @deprecated */
20618
- extend_leaf_v2(
20619
- request: DeepPartial<ExtendLeafRequest>,
20620
- options?: CallOptions & CallOptionsExt,
20621
- ): Promise<ExtendLeafResponse>;
20622
20299
  claim_transfer_sign_refunds_v2(
20623
20300
  request: DeepPartial<ClaimTransferSignRefundsRequest>,
20624
20301
  options?: CallOptions & CallOptionsExt,
@@ -20639,20 +20316,10 @@ export interface SparkServiceClient<CallOptionsExt = {}> {
20639
20316
  request: DeepPartial<StartTransferRequest>,
20640
20317
  options?: CallOptions & CallOptionsExt,
20641
20318
  ): Promise<StartTransferResponse>;
20642
- /** @deprecated */
20643
- counter_leaf_swap_v2(
20644
- request: DeepPartial<CounterLeafSwapRequest>,
20645
- options?: CallOptions & CallOptionsExt,
20646
- ): Promise<CounterLeafSwapResponse>;
20647
20319
  start_transfer_v2(
20648
20320
  request: DeepPartial<StartTransferRequest>,
20649
20321
  options?: CallOptions & CallOptionsExt,
20650
20322
  ): Promise<StartTransferResponse>;
20651
- /** @deprecated */
20652
- refresh_timelock_v2(
20653
- request: DeepPartial<RefreshTimelockRequest>,
20654
- options?: CallOptions & CallOptionsExt,
20655
- ): Promise<RefreshTimelockResponse>;
20656
20323
  get_utxos_for_address(
20657
20324
  request: DeepPartial<GetUtxosForAddressRequest>,
20658
20325
  options?: CallOptions & CallOptionsExt,