@breeztech/breez-sdk-spark-react-native 0.18.0 → 0.19.2

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.
@@ -133,6 +133,21 @@ export declare function defaultExternalSigners(mnemonic: string, passphrase: str
133
133
  * an invalid-input error
134
134
  */
135
135
  export declare function defaultServerConfig(network: Network): Config;
136
+ /**
137
+ * The session store `backend` provides for `identity` on `network` (its own
138
+ * persistence: `PostgreSQL`/`MySQL` when the backend is DB-backed, else an
139
+ * in-memory store).
140
+ *
141
+ * Returned so it can be wrapped in a decorating [`SessionStore`] and passed to
142
+ * [`SdkBuilder::with_session_store`](crate::SdkBuilder::with_session_store),
143
+ * keeping the backend's persistence. A typical use is at-rest encryption (the
144
+ * SDK does not encrypt tokens itself): wrap it in a store that encrypts on
145
+ * write and decrypts on read. `identity` is the wallet identity public key
146
+ * bytes (the same value the SDK derives from the signer).
147
+ */
148
+ export declare function defaultSessionStore(backend: StorageBackend, network: Network, identity: ArrayBuffer, asyncOpts_?: {
149
+ signal: AbortSignal;
150
+ }): Promise<SessionStore>;
136
151
  /**
137
152
  * File-based `SQLite` storage rooted at `storage_dir` — the default for
138
153
  * mobile and desktop apps. Each tenant gets its own database file under the
@@ -654,6 +669,51 @@ export declare const Bolt12OfferDetails: Readonly<{
654
669
  */
655
670
  defaults: () => Partial<Bolt12OfferDetails>;
656
671
  }>;
672
+ export type BuildUnsignedLnurlPayPackageRequest = {
673
+ prepareResponse: PrepareLnurlPayResponse;
674
+ };
675
+ /**
676
+ * Generated factory for {@link BuildUnsignedLnurlPayPackageRequest} record objects.
677
+ */
678
+ export declare const BuildUnsignedLnurlPayPackageRequest: Readonly<{
679
+ /**
680
+ * Create a frozen instance of {@link BuildUnsignedLnurlPayPackageRequest}, with defaults specified
681
+ * in Rust, in the {@link breez_sdk_spark} crate.
682
+ */
683
+ create: (partial: Partial<BuildUnsignedLnurlPayPackageRequest> & Required<Omit<BuildUnsignedLnurlPayPackageRequest, never>>) => BuildUnsignedLnurlPayPackageRequest;
684
+ /**
685
+ * Create a frozen instance of {@link BuildUnsignedLnurlPayPackageRequest}, with defaults specified
686
+ * in Rust, in the {@link breez_sdk_spark} crate.
687
+ */
688
+ new: (partial: Partial<BuildUnsignedLnurlPayPackageRequest> & Required<Omit<BuildUnsignedLnurlPayPackageRequest, never>>) => BuildUnsignedLnurlPayPackageRequest;
689
+ /**
690
+ * Defaults specified in the {@link breez_sdk_spark} crate.
691
+ */
692
+ defaults: () => Partial<BuildUnsignedLnurlPayPackageRequest>;
693
+ }>;
694
+ export type BuildUnsignedTransferPackageRequest = {
695
+ prepareResponse: PrepareSendPaymentResponse;
696
+ options: BuildTransferPackageOptions | undefined;
697
+ };
698
+ /**
699
+ * Generated factory for {@link BuildUnsignedTransferPackageRequest} record objects.
700
+ */
701
+ export declare const BuildUnsignedTransferPackageRequest: Readonly<{
702
+ /**
703
+ * Create a frozen instance of {@link BuildUnsignedTransferPackageRequest}, with defaults specified
704
+ * in Rust, in the {@link breez_sdk_spark} crate.
705
+ */
706
+ create: (partial: Partial<BuildUnsignedTransferPackageRequest> & Required<Omit<BuildUnsignedTransferPackageRequest, "options">>) => BuildUnsignedTransferPackageRequest;
707
+ /**
708
+ * Create a frozen instance of {@link BuildUnsignedTransferPackageRequest}, with defaults specified
709
+ * in Rust, in the {@link breez_sdk_spark} crate.
710
+ */
711
+ new: (partial: Partial<BuildUnsignedTransferPackageRequest> & Required<Omit<BuildUnsignedTransferPackageRequest, "options">>) => BuildUnsignedTransferPackageRequest;
712
+ /**
713
+ * Defaults specified in the {@link breez_sdk_spark} crate.
714
+ */
715
+ defaults: () => Partial<BuildUnsignedTransferPackageRequest>;
716
+ }>;
657
717
  export type BurnIssuerTokenRequest = {
658
718
  amount: U128;
659
719
  };
@@ -1081,10 +1141,11 @@ export type ConnectWithPasskeyRequest = {
1081
1141
  */
1082
1142
  label: string | undefined;
1083
1143
  /**
1084
- * Optional credential IDs to restrict the silent sign-in
1085
- * attempt to (reauthentication path). See
1086
- * [`SignInRequest::allow_credentials`]. Ignored on the fallback
1087
- * registration path.
1144
+ * Optional credential IDs to restrict the sign-in attempt to
1145
+ * (reauthentication path). A non-empty list runs the modal sign-in
1146
+ * rather than the immediate probe (a pin means a credential is already
1147
+ * known). See [`SignInRequest::allow_credentials`]. Ignored on the
1148
+ * fallback registration path.
1088
1149
  */
1089
1150
  allowCredentials: Array<ArrayBuffer> | undefined;
1090
1151
  /**
@@ -1121,10 +1182,17 @@ export declare const ConnectWithPasskeyRequest: Readonly<{
1121
1182
  * registered, when the provider surfaces it. The register path also
1122
1183
  * populates the attestation fields (`aaguid`, `backup_eligible`); the
1123
1184
  * sign-in path sets only `credential_id`.
1185
+ *
1186
+ * `labels` is the user's discovered label set when `request.label` was
1187
+ * `None` (the returning-user multi-wallet case): `wallet` is the default
1188
+ * label, and a host showing more than one entry lets the user pick
1189
+ * another via [`PasskeyClient::sign_in`]. Empty on the register path (a
1190
+ * new user has no other labels) and when a specific label was requested.
1124
1191
  */
1125
1192
  export type ConnectWithPasskeyResponse = {
1126
1193
  wallet: Wallet;
1127
1194
  credential: PasskeyCredential | undefined;
1195
+ labels: Array<string>;
1128
1196
  };
1129
1197
  /**
1130
1198
  * Generated factory for {@link ConnectWithPasskeyResponse} record objects.
@@ -3603,6 +3671,30 @@ export declare const LnurlInfo: Readonly<{
3603
3671
  */
3604
3672
  defaults: () => Partial<LnurlInfo>;
3605
3673
  }>;
3674
+ export type LnurlPayContext = {
3675
+ payRequest: LnurlPayRequestDetails;
3676
+ comment: string | undefined;
3677
+ successAction: SuccessAction | undefined;
3678
+ };
3679
+ /**
3680
+ * Generated factory for {@link LnurlPayContext} record objects.
3681
+ */
3682
+ export declare const LnurlPayContext: Readonly<{
3683
+ /**
3684
+ * Create a frozen instance of {@link LnurlPayContext}, with defaults specified
3685
+ * in Rust, in the {@link breez_sdk_spark} crate.
3686
+ */
3687
+ create: (partial: Partial<LnurlPayContext> & Required<Omit<LnurlPayContext, never>>) => LnurlPayContext;
3688
+ /**
3689
+ * Create a frozen instance of {@link LnurlPayContext}, with defaults specified
3690
+ * in Rust, in the {@link breez_sdk_spark} crate.
3691
+ */
3692
+ new: (partial: Partial<LnurlPayContext> & Required<Omit<LnurlPayContext, never>>) => LnurlPayContext;
3693
+ /**
3694
+ * Defaults specified in the {@link breez_sdk_spark} crate.
3695
+ */
3696
+ defaults: () => Partial<LnurlPayContext>;
3697
+ }>;
3606
3698
  /**
3607
3699
  * Represents the payment LNURL info
3608
3700
  */
@@ -4632,6 +4724,50 @@ export declare const PublicKeyBytes: Readonly<{
4632
4724
  */
4633
4725
  defaults: () => Partial<PublicKeyBytes>;
4634
4726
  }>;
4727
+ export type PublishSignedLnurlPayPackageRequest = {
4728
+ signedPackage: SignedTransferPackage;
4729
+ };
4730
+ /**
4731
+ * Generated factory for {@link PublishSignedLnurlPayPackageRequest} record objects.
4732
+ */
4733
+ export declare const PublishSignedLnurlPayPackageRequest: Readonly<{
4734
+ /**
4735
+ * Create a frozen instance of {@link PublishSignedLnurlPayPackageRequest}, with defaults specified
4736
+ * in Rust, in the {@link breez_sdk_spark} crate.
4737
+ */
4738
+ create: (partial: Partial<PublishSignedLnurlPayPackageRequest> & Required<Omit<PublishSignedLnurlPayPackageRequest, never>>) => PublishSignedLnurlPayPackageRequest;
4739
+ /**
4740
+ * Create a frozen instance of {@link PublishSignedLnurlPayPackageRequest}, with defaults specified
4741
+ * in Rust, in the {@link breez_sdk_spark} crate.
4742
+ */
4743
+ new: (partial: Partial<PublishSignedLnurlPayPackageRequest> & Required<Omit<PublishSignedLnurlPayPackageRequest, never>>) => PublishSignedLnurlPayPackageRequest;
4744
+ /**
4745
+ * Defaults specified in the {@link breez_sdk_spark} crate.
4746
+ */
4747
+ defaults: () => Partial<PublishSignedLnurlPayPackageRequest>;
4748
+ }>;
4749
+ export type PublishSignedTransferPackageRequest = {
4750
+ signedPackage: SignedTransferPackage;
4751
+ };
4752
+ /**
4753
+ * Generated factory for {@link PublishSignedTransferPackageRequest} record objects.
4754
+ */
4755
+ export declare const PublishSignedTransferPackageRequest: Readonly<{
4756
+ /**
4757
+ * Create a frozen instance of {@link PublishSignedTransferPackageRequest}, with defaults specified
4758
+ * in Rust, in the {@link breez_sdk_spark} crate.
4759
+ */
4760
+ create: (partial: Partial<PublishSignedTransferPackageRequest> & Required<Omit<PublishSignedTransferPackageRequest, never>>) => PublishSignedTransferPackageRequest;
4761
+ /**
4762
+ * Create a frozen instance of {@link PublishSignedTransferPackageRequest}, with defaults specified
4763
+ * in Rust, in the {@link breez_sdk_spark} crate.
4764
+ */
4765
+ new: (partial: Partial<PublishSignedTransferPackageRequest> & Required<Omit<PublishSignedTransferPackageRequest, never>>) => PublishSignedTransferPackageRequest;
4766
+ /**
4767
+ * Defaults specified in the {@link breez_sdk_spark} crate.
4768
+ */
4769
+ defaults: () => Partial<PublishSignedTransferPackageRequest>;
4770
+ }>;
4635
4771
  /**
4636
4772
  * Denominator in an exchange rate
4637
4773
  */
@@ -5496,6 +5632,29 @@ export declare const SignMessageResponse: Readonly<{
5496
5632
  */
5497
5633
  defaults: () => Partial<SignMessageResponse>;
5498
5634
  }>;
5635
+ export type SignedTransferPackage = {
5636
+ unsigned: UnsignedTransferPackage;
5637
+ signature: TransferSignature;
5638
+ };
5639
+ /**
5640
+ * Generated factory for {@link SignedTransferPackage} record objects.
5641
+ */
5642
+ export declare const SignedTransferPackage: Readonly<{
5643
+ /**
5644
+ * Create a frozen instance of {@link SignedTransferPackage}, with defaults specified
5645
+ * in Rust, in the {@link breez_sdk_spark} crate.
5646
+ */
5647
+ create: (partial: Partial<SignedTransferPackage> & Required<Omit<SignedTransferPackage, never>>) => SignedTransferPackage;
5648
+ /**
5649
+ * Create a frozen instance of {@link SignedTransferPackage}, with defaults specified
5650
+ * in Rust, in the {@link breez_sdk_spark} crate.
5651
+ */
5652
+ new: (partial: Partial<SignedTransferPackage> & Required<Omit<SignedTransferPackage, never>>) => SignedTransferPackage;
5653
+ /**
5654
+ * Defaults specified in the {@link breez_sdk_spark} crate.
5655
+ */
5656
+ defaults: () => Partial<SignedTransferPackage>;
5657
+ }>;
5499
5658
  /**
5500
5659
  * A signing-only external signer paired with the Spark signer, for wallets that
5501
5660
  * connect via [`connect_with_signing_only_signer`]. The Breez half performs
@@ -5617,6 +5776,12 @@ export type SparkConfig = {
5617
5776
  * Expected relative block locktime for token withdrawals.
5618
5777
  */
5619
5778
  expectedWithdrawRelativeBlockLocktime: bigint;
5779
+ /**
5780
+ * Cap on the inputs a single token transaction may spend. A send needing
5781
+ * more first consolidates the wallet's token outputs. Unset uses the SDK
5782
+ * default (500).
5783
+ */
5784
+ maxTokenTransactionInputs: /*u32*/ number | undefined;
5620
5785
  };
5621
5786
  /**
5622
5787
  * Generated factory for {@link SparkConfig} record objects.
@@ -6352,10 +6517,34 @@ export type TurnkeyConfig = {
6352
6517
  * either backend.
6353
6518
  */
6354
6519
  accountNumber: /*u32*/ number | undefined;
6520
+ /**
6521
+ * The wallet's identity public key (compressed, hex), to skip fetching it
6522
+ * from Turnkey on init. Obtain it once from a freshly-built signer via
6523
+ * [`ExternalSparkSigner::get_identity_public_key`] — the simplest source,
6524
+ * available right after `create_turnkey_signer` with no separate connect —
6525
+ * or, if you only have a connected SDK, from `identity_pubkey` on the
6526
+ * get-info response. Pass it back on later inits: the signer then serves the
6527
+ * identity key and its Spark address from this value instead of the per-init
6528
+ * Turnkey round-trips, making signer setup network-free. Unset fetches
6529
+ * lazily, as before. It is a stable, non-secret, per-wallet value; a value
6530
+ * that does not match the wallet yields a signer that signs with the wrong
6531
+ * identity, so only pass one read from this same wallet.
6532
+ *
6533
+ * [`ExternalSparkSigner::get_identity_public_key`]: crate::signer::ExternalSparkSigner::get_identity_public_key
6534
+ */
6535
+ identityPublicKey: string | undefined;
6355
6536
  /**
6356
6537
  * Retry policy for Turnkey requests. Unset uses the default policy.
6357
6538
  */
6358
6539
  retry: TurnkeyRetryConfig | undefined;
6540
+ /**
6541
+ * Maximum requests per second the client issues to this suborganization,
6542
+ * across all concurrent operations. The client paces itself to this rate.
6543
+ * Unset uses Turnkey's documented per-suborganization cap of 10 RPS; set it
6544
+ * to the account's actual limit if a different one is provisioned. Must be
6545
+ * greater than 0 when set: 0 is rejected at connect.
6546
+ */
6547
+ maxRps: /*u32*/ number | undefined;
6359
6548
  };
6360
6549
  /**
6361
6550
  * Generated factory for {@link TurnkeyConfig} record objects.
@@ -6365,12 +6554,12 @@ export declare const TurnkeyConfig: Readonly<{
6365
6554
  * Create a frozen instance of {@link TurnkeyConfig}, with defaults specified
6366
6555
  * in Rust, in the {@link breez_sdk_spark} crate.
6367
6556
  */
6368
- create: (partial: Partial<TurnkeyConfig> & Required<Omit<TurnkeyConfig, never>>) => TurnkeyConfig;
6557
+ create: (partial: Partial<TurnkeyConfig> & Required<Omit<TurnkeyConfig, "maxRps">>) => TurnkeyConfig;
6369
6558
  /**
6370
6559
  * Create a frozen instance of {@link TurnkeyConfig}, with defaults specified
6371
6560
  * in Rust, in the {@link breez_sdk_spark} crate.
6372
6561
  */
6373
- new: (partial: Partial<TurnkeyConfig> & Required<Omit<TurnkeyConfig, never>>) => TurnkeyConfig;
6562
+ new: (partial: Partial<TurnkeyConfig> & Required<Omit<TurnkeyConfig, "maxRps">>) => TurnkeyConfig;
6374
6563
  /**
6375
6564
  * Defaults specified in the {@link breez_sdk_spark} crate.
6376
6565
  */
@@ -7303,6 +7492,105 @@ export declare enum BitcoinNetwork {
7303
7492
  Signet = 3,
7304
7493
  Regtest = 4
7305
7494
  }
7495
+ export declare enum BuildTransferPackageOptions_Tags {
7496
+ BitcoinAddress = "BitcoinAddress",
7497
+ Bolt11Invoice = "Bolt11Invoice"
7498
+ }
7499
+ export declare const BuildTransferPackageOptions: Readonly<{
7500
+ instanceOf: (obj: any) => obj is BuildTransferPackageOptions;
7501
+ BitcoinAddress: {
7502
+ new (inner: {
7503
+ confirmationSpeed: OnchainConfirmationSpeed;
7504
+ }): {
7505
+ readonly tag: BuildTransferPackageOptions_Tags.BitcoinAddress;
7506
+ readonly inner: Readonly<{
7507
+ confirmationSpeed: OnchainConfirmationSpeed;
7508
+ }>;
7509
+ /**
7510
+ * @private
7511
+ * This field is private and should not be used, use `tag` instead.
7512
+ */
7513
+ readonly [uniffiTypeNameSymbol]: "BuildTransferPackageOptions";
7514
+ };
7515
+ "new"(inner: {
7516
+ confirmationSpeed: OnchainConfirmationSpeed;
7517
+ }): {
7518
+ readonly tag: BuildTransferPackageOptions_Tags.BitcoinAddress;
7519
+ readonly inner: Readonly<{
7520
+ confirmationSpeed: OnchainConfirmationSpeed;
7521
+ }>;
7522
+ /**
7523
+ * @private
7524
+ * This field is private and should not be used, use `tag` instead.
7525
+ */
7526
+ readonly [uniffiTypeNameSymbol]: "BuildTransferPackageOptions";
7527
+ };
7528
+ instanceOf(obj: any): obj is {
7529
+ readonly tag: BuildTransferPackageOptions_Tags.BitcoinAddress;
7530
+ readonly inner: Readonly<{
7531
+ confirmationSpeed: OnchainConfirmationSpeed;
7532
+ }>;
7533
+ /**
7534
+ * @private
7535
+ * This field is private and should not be used, use `tag` instead.
7536
+ */
7537
+ readonly [uniffiTypeNameSymbol]: "BuildTransferPackageOptions";
7538
+ };
7539
+ };
7540
+ Bolt11Invoice: {
7541
+ new (inner: {
7542
+ preferSpark: boolean;
7543
+ /**
7544
+ * If set, publishing the package waits up to this many seconds for the
7545
+ * payment to complete before returning it while still pending. If unset,
7546
+ * publishing returns immediately after initiating the payment.
7547
+ */ completionTimeoutSecs: /*u32*/ number | undefined;
7548
+ }): {
7549
+ readonly tag: BuildTransferPackageOptions_Tags.Bolt11Invoice;
7550
+ readonly inner: Readonly<{
7551
+ preferSpark: boolean;
7552
+ completionTimeoutSecs: /*u32*/ number | undefined;
7553
+ }>;
7554
+ /**
7555
+ * @private
7556
+ * This field is private and should not be used, use `tag` instead.
7557
+ */
7558
+ readonly [uniffiTypeNameSymbol]: "BuildTransferPackageOptions";
7559
+ };
7560
+ "new"(inner: {
7561
+ preferSpark: boolean;
7562
+ /**
7563
+ * If set, publishing the package waits up to this many seconds for the
7564
+ * payment to complete before returning it while still pending. If unset,
7565
+ * publishing returns immediately after initiating the payment.
7566
+ */ completionTimeoutSecs: /*u32*/ number | undefined;
7567
+ }): {
7568
+ readonly tag: BuildTransferPackageOptions_Tags.Bolt11Invoice;
7569
+ readonly inner: Readonly<{
7570
+ preferSpark: boolean;
7571
+ completionTimeoutSecs: /*u32*/ number | undefined;
7572
+ }>;
7573
+ /**
7574
+ * @private
7575
+ * This field is private and should not be used, use `tag` instead.
7576
+ */
7577
+ readonly [uniffiTypeNameSymbol]: "BuildTransferPackageOptions";
7578
+ };
7579
+ instanceOf(obj: any): obj is {
7580
+ readonly tag: BuildTransferPackageOptions_Tags.Bolt11Invoice;
7581
+ readonly inner: Readonly<{
7582
+ preferSpark: boolean;
7583
+ completionTimeoutSecs: /*u32*/ number | undefined;
7584
+ }>;
7585
+ /**
7586
+ * @private
7587
+ * This field is private and should not be used, use `tag` instead.
7588
+ */
7589
+ readonly [uniffiTypeNameSymbol]: "BuildTransferPackageOptions";
7590
+ };
7591
+ };
7592
+ }>;
7593
+ export type BuildTransferPackageOptions = InstanceType<(typeof BuildTransferPackageOptions)[keyof Omit<typeof BuildTransferPackageOptions, 'instanceOf'>]>;
7306
7594
  export declare enum BuyBitcoinRequest_Tags {
7307
7595
  Moonpay = "Moonpay",
7308
7596
  CashApp = "CashApp"
@@ -12645,140 +12933,286 @@ export declare const ProvisionalPaymentDetails: Readonly<{
12645
12933
  };
12646
12934
  }>;
12647
12935
  export type ProvisionalPaymentDetails = InstanceType<(typeof ProvisionalPaymentDetails)[keyof Omit<typeof ProvisionalPaymentDetails, 'instanceOf'>]>;
12648
- export declare enum ReceivePaymentMethod_Tags {
12649
- SparkAddress = "SparkAddress",
12650
- SparkInvoice = "SparkInvoice",
12651
- BitcoinAddress = "BitcoinAddress",
12652
- Bolt11Invoice = "Bolt11Invoice"
12936
+ export declare enum PublishSignedLnurlPayResponse_Tags {
12937
+ SwapCompleted = "SwapCompleted",
12938
+ PaymentSent = "PaymentSent"
12653
12939
  }
12654
- export declare const ReceivePaymentMethod: Readonly<{
12655
- instanceOf: (obj: any) => obj is ReceivePaymentMethod;
12656
- SparkAddress: {
12940
+ export declare const PublishSignedLnurlPayResponse: Readonly<{
12941
+ instanceOf: (obj: any) => obj is PublishSignedLnurlPayResponse;
12942
+ SwapCompleted: {
12657
12943
  new (): {
12658
- readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
12944
+ readonly tag: PublishSignedLnurlPayResponse_Tags.SwapCompleted;
12659
12945
  /**
12660
12946
  * @private
12661
12947
  * This field is private and should not be used, use `tag` instead.
12662
12948
  */
12663
- readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
12949
+ readonly [uniffiTypeNameSymbol]: "PublishSignedLnurlPayResponse";
12664
12950
  };
12665
12951
  "new"(): {
12666
- readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
12952
+ readonly tag: PublishSignedLnurlPayResponse_Tags.SwapCompleted;
12667
12953
  /**
12668
12954
  * @private
12669
12955
  * This field is private and should not be used, use `tag` instead.
12670
12956
  */
12671
- readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
12957
+ readonly [uniffiTypeNameSymbol]: "PublishSignedLnurlPayResponse";
12672
12958
  };
12673
12959
  instanceOf(obj: any): obj is {
12674
- readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
12960
+ readonly tag: PublishSignedLnurlPayResponse_Tags.SwapCompleted;
12675
12961
  /**
12676
12962
  * @private
12677
12963
  * This field is private and should not be used, use `tag` instead.
12678
12964
  */
12679
- readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
12965
+ readonly [uniffiTypeNameSymbol]: "PublishSignedLnurlPayResponse";
12680
12966
  };
12681
12967
  };
12682
- SparkInvoice: {
12968
+ PaymentSent: {
12683
12969
  new (inner: {
12684
- /**
12685
- * Amount to receive. Denominated in sats if token identifier is empty, otherwise in the token base units
12686
- */ amount: U128 | undefined;
12687
- /**
12688
- * The presence of this field indicates that the payment is for a token
12689
- * If empty, it is a Bitcoin payment
12690
- */ tokenIdentifier: string | undefined;
12691
- /**
12692
- * The expiry time of the invoice as a unix timestamp in seconds
12693
- */ expiryTime: /*u64*/ bigint | undefined;
12694
- /**
12695
- * A description to embed in the invoice.
12696
- */ description: string | undefined;
12697
- /**
12698
- * If set, the invoice may only be fulfilled by a payer with this public key
12699
- */ senderPublicKey: string | undefined;
12970
+ response: LnurlPayResponse;
12700
12971
  }): {
12701
- readonly tag: ReceivePaymentMethod_Tags.SparkInvoice;
12972
+ readonly tag: PublishSignedLnurlPayResponse_Tags.PaymentSent;
12702
12973
  readonly inner: Readonly<{
12703
- amount: U128 | undefined;
12704
- tokenIdentifier: string | undefined;
12705
- expiryTime: /*u64*/ bigint | undefined;
12706
- description: string | undefined;
12707
- senderPublicKey: string | undefined;
12974
+ response: LnurlPayResponse;
12708
12975
  }>;
12709
12976
  /**
12710
12977
  * @private
12711
12978
  * This field is private and should not be used, use `tag` instead.
12712
12979
  */
12713
- readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
12980
+ readonly [uniffiTypeNameSymbol]: "PublishSignedLnurlPayResponse";
12714
12981
  };
12715
12982
  "new"(inner: {
12716
- /**
12717
- * Amount to receive. Denominated in sats if token identifier is empty, otherwise in the token base units
12718
- */ amount: U128 | undefined;
12719
- /**
12720
- * The presence of this field indicates that the payment is for a token
12721
- * If empty, it is a Bitcoin payment
12722
- */ tokenIdentifier: string | undefined;
12723
- /**
12724
- * The expiry time of the invoice as a unix timestamp in seconds
12725
- */ expiryTime: /*u64*/ bigint | undefined;
12726
- /**
12727
- * A description to embed in the invoice.
12728
- */ description: string | undefined;
12729
- /**
12730
- * If set, the invoice may only be fulfilled by a payer with this public key
12731
- */ senderPublicKey: string | undefined;
12983
+ response: LnurlPayResponse;
12732
12984
  }): {
12733
- readonly tag: ReceivePaymentMethod_Tags.SparkInvoice;
12985
+ readonly tag: PublishSignedLnurlPayResponse_Tags.PaymentSent;
12734
12986
  readonly inner: Readonly<{
12735
- amount: U128 | undefined;
12736
- tokenIdentifier: string | undefined;
12737
- expiryTime: /*u64*/ bigint | undefined;
12738
- description: string | undefined;
12739
- senderPublicKey: string | undefined;
12987
+ response: LnurlPayResponse;
12740
12988
  }>;
12741
12989
  /**
12742
12990
  * @private
12743
12991
  * This field is private and should not be used, use `tag` instead.
12744
12992
  */
12745
- readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
12993
+ readonly [uniffiTypeNameSymbol]: "PublishSignedLnurlPayResponse";
12746
12994
  };
12747
12995
  instanceOf(obj: any): obj is {
12748
- readonly tag: ReceivePaymentMethod_Tags.SparkInvoice;
12996
+ readonly tag: PublishSignedLnurlPayResponse_Tags.PaymentSent;
12749
12997
  readonly inner: Readonly<{
12750
- amount: U128 | undefined;
12751
- tokenIdentifier: string | undefined;
12752
- expiryTime: /*u64*/ bigint | undefined;
12753
- description: string | undefined;
12754
- senderPublicKey: string | undefined;
12998
+ response: LnurlPayResponse;
12755
12999
  }>;
12756
13000
  /**
12757
13001
  * @private
12758
13002
  * This field is private and should not be used, use `tag` instead.
12759
13003
  */
12760
- readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13004
+ readonly [uniffiTypeNameSymbol]: "PublishSignedLnurlPayResponse";
12761
13005
  };
12762
13006
  };
12763
- BitcoinAddress: {
12764
- new (inner: {
12765
- /**
12766
- * If true, rotate to a new deposit address. Previous ones remain valid.
12767
- * If false or absent, return the existing address (creating one if none
12768
- * exists yet).
12769
- */ newAddress: boolean | undefined;
12770
- }): {
12771
- readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
12772
- readonly inner: Readonly<{
12773
- newAddress: boolean | undefined;
12774
- }>;
13007
+ }>;
13008
+ export type PublishSignedLnurlPayResponse = InstanceType<(typeof PublishSignedLnurlPayResponse)[keyof Omit<typeof PublishSignedLnurlPayResponse, 'instanceOf'>]>;
13009
+ export declare enum PublishSignedTransferPackageResponse_Tags {
13010
+ SwapCompleted = "SwapCompleted",
13011
+ PaymentSent = "PaymentSent"
13012
+ }
13013
+ export declare const PublishSignedTransferPackageResponse: Readonly<{
13014
+ instanceOf: (obj: any) => obj is PublishSignedTransferPackageResponse;
13015
+ SwapCompleted: {
13016
+ new (): {
13017
+ readonly tag: PublishSignedTransferPackageResponse_Tags.SwapCompleted;
12775
13018
  /**
12776
13019
  * @private
12777
13020
  * This field is private and should not be used, use `tag` instead.
12778
13021
  */
12779
- readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13022
+ readonly [uniffiTypeNameSymbol]: "PublishSignedTransferPackageResponse";
12780
13023
  };
12781
- "new"(inner: {
13024
+ "new"(): {
13025
+ readonly tag: PublishSignedTransferPackageResponse_Tags.SwapCompleted;
13026
+ /**
13027
+ * @private
13028
+ * This field is private and should not be used, use `tag` instead.
13029
+ */
13030
+ readonly [uniffiTypeNameSymbol]: "PublishSignedTransferPackageResponse";
13031
+ };
13032
+ instanceOf(obj: any): obj is {
13033
+ readonly tag: PublishSignedTransferPackageResponse_Tags.SwapCompleted;
13034
+ /**
13035
+ * @private
13036
+ * This field is private and should not be used, use `tag` instead.
13037
+ */
13038
+ readonly [uniffiTypeNameSymbol]: "PublishSignedTransferPackageResponse";
13039
+ };
13040
+ };
13041
+ PaymentSent: {
13042
+ new (inner: {
13043
+ payment: Payment;
13044
+ }): {
13045
+ readonly tag: PublishSignedTransferPackageResponse_Tags.PaymentSent;
13046
+ readonly inner: Readonly<{
13047
+ payment: Payment;
13048
+ }>;
13049
+ /**
13050
+ * @private
13051
+ * This field is private and should not be used, use `tag` instead.
13052
+ */
13053
+ readonly [uniffiTypeNameSymbol]: "PublishSignedTransferPackageResponse";
13054
+ };
13055
+ "new"(inner: {
13056
+ payment: Payment;
13057
+ }): {
13058
+ readonly tag: PublishSignedTransferPackageResponse_Tags.PaymentSent;
13059
+ readonly inner: Readonly<{
13060
+ payment: Payment;
13061
+ }>;
13062
+ /**
13063
+ * @private
13064
+ * This field is private and should not be used, use `tag` instead.
13065
+ */
13066
+ readonly [uniffiTypeNameSymbol]: "PublishSignedTransferPackageResponse";
13067
+ };
13068
+ instanceOf(obj: any): obj is {
13069
+ readonly tag: PublishSignedTransferPackageResponse_Tags.PaymentSent;
13070
+ readonly inner: Readonly<{
13071
+ payment: Payment;
13072
+ }>;
13073
+ /**
13074
+ * @private
13075
+ * This field is private and should not be used, use `tag` instead.
13076
+ */
13077
+ readonly [uniffiTypeNameSymbol]: "PublishSignedTransferPackageResponse";
13078
+ };
13079
+ };
13080
+ }>;
13081
+ export type PublishSignedTransferPackageResponse = InstanceType<(typeof PublishSignedTransferPackageResponse)[keyof Omit<typeof PublishSignedTransferPackageResponse, 'instanceOf'>]>;
13082
+ export declare enum ReceivePaymentMethod_Tags {
13083
+ SparkAddress = "SparkAddress",
13084
+ SparkInvoice = "SparkInvoice",
13085
+ BitcoinAddress = "BitcoinAddress",
13086
+ Bolt11Invoice = "Bolt11Invoice"
13087
+ }
13088
+ export declare const ReceivePaymentMethod: Readonly<{
13089
+ instanceOf: (obj: any) => obj is ReceivePaymentMethod;
13090
+ SparkAddress: {
13091
+ new (): {
13092
+ readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
13093
+ /**
13094
+ * @private
13095
+ * This field is private and should not be used, use `tag` instead.
13096
+ */
13097
+ readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13098
+ };
13099
+ "new"(): {
13100
+ readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
13101
+ /**
13102
+ * @private
13103
+ * This field is private and should not be used, use `tag` instead.
13104
+ */
13105
+ readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13106
+ };
13107
+ instanceOf(obj: any): obj is {
13108
+ readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
13109
+ /**
13110
+ * @private
13111
+ * This field is private and should not be used, use `tag` instead.
13112
+ */
13113
+ readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13114
+ };
13115
+ };
13116
+ SparkInvoice: {
13117
+ new (inner: {
13118
+ /**
13119
+ * Amount to receive. Denominated in sats if token identifier is empty, otherwise in the token base units
13120
+ */ amount: U128 | undefined;
13121
+ /**
13122
+ * The presence of this field indicates that the payment is for a token
13123
+ * If empty, it is a Bitcoin payment
13124
+ */ tokenIdentifier: string | undefined;
13125
+ /**
13126
+ * The expiry time of the invoice as a unix timestamp in seconds
13127
+ */ expiryTime: /*u64*/ bigint | undefined;
13128
+ /**
13129
+ * A description to embed in the invoice.
13130
+ */ description: string | undefined;
13131
+ /**
13132
+ * If set, the invoice may only be fulfilled by a payer with this public key
13133
+ */ senderPublicKey: string | undefined;
13134
+ }): {
13135
+ readonly tag: ReceivePaymentMethod_Tags.SparkInvoice;
13136
+ readonly inner: Readonly<{
13137
+ amount: U128 | undefined;
13138
+ tokenIdentifier: string | undefined;
13139
+ expiryTime: /*u64*/ bigint | undefined;
13140
+ description: string | undefined;
13141
+ senderPublicKey: string | undefined;
13142
+ }>;
13143
+ /**
13144
+ * @private
13145
+ * This field is private and should not be used, use `tag` instead.
13146
+ */
13147
+ readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13148
+ };
13149
+ "new"(inner: {
13150
+ /**
13151
+ * Amount to receive. Denominated in sats if token identifier is empty, otherwise in the token base units
13152
+ */ amount: U128 | undefined;
13153
+ /**
13154
+ * The presence of this field indicates that the payment is for a token
13155
+ * If empty, it is a Bitcoin payment
13156
+ */ tokenIdentifier: string | undefined;
13157
+ /**
13158
+ * The expiry time of the invoice as a unix timestamp in seconds
13159
+ */ expiryTime: /*u64*/ bigint | undefined;
13160
+ /**
13161
+ * A description to embed in the invoice.
13162
+ */ description: string | undefined;
13163
+ /**
13164
+ * If set, the invoice may only be fulfilled by a payer with this public key
13165
+ */ senderPublicKey: string | undefined;
13166
+ }): {
13167
+ readonly tag: ReceivePaymentMethod_Tags.SparkInvoice;
13168
+ readonly inner: Readonly<{
13169
+ amount: U128 | undefined;
13170
+ tokenIdentifier: string | undefined;
13171
+ expiryTime: /*u64*/ bigint | undefined;
13172
+ description: string | undefined;
13173
+ senderPublicKey: string | undefined;
13174
+ }>;
13175
+ /**
13176
+ * @private
13177
+ * This field is private and should not be used, use `tag` instead.
13178
+ */
13179
+ readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13180
+ };
13181
+ instanceOf(obj: any): obj is {
13182
+ readonly tag: ReceivePaymentMethod_Tags.SparkInvoice;
13183
+ readonly inner: Readonly<{
13184
+ amount: U128 | undefined;
13185
+ tokenIdentifier: string | undefined;
13186
+ expiryTime: /*u64*/ bigint | undefined;
13187
+ description: string | undefined;
13188
+ senderPublicKey: string | undefined;
13189
+ }>;
13190
+ /**
13191
+ * @private
13192
+ * This field is private and should not be used, use `tag` instead.
13193
+ */
13194
+ readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13195
+ };
13196
+ };
13197
+ BitcoinAddress: {
13198
+ new (inner: {
13199
+ /**
13200
+ * If true, rotate to a new deposit address. Previous ones remain valid.
13201
+ * If false or absent, return the existing address (creating one if none
13202
+ * exists yet).
13203
+ */ newAddress: boolean | undefined;
13204
+ }): {
13205
+ readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
13206
+ readonly inner: Readonly<{
13207
+ newAddress: boolean | undefined;
13208
+ }>;
13209
+ /**
13210
+ * @private
13211
+ * This field is private and should not be used, use `tag` instead.
13212
+ */
13213
+ readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
13214
+ };
13215
+ "new"(inner: {
12782
13216
  /**
12783
13217
  * If true, rotate to a new deposit address. Previous ones remain valid.
12784
13218
  * If false or absent, return the existing address (creating one if none
@@ -17361,6 +17795,437 @@ export declare enum TokenTransactionType {
17361
17795
  Mint = 1,
17362
17796
  Burn = 2
17363
17797
  }
17798
+ export declare enum TransferSignature_Tags {
17799
+ Transfer = "Transfer",
17800
+ Token = "Token"
17801
+ }
17802
+ export declare const TransferSignature: Readonly<{
17803
+ instanceOf: (obj: any) => obj is TransferSignature;
17804
+ Transfer: {
17805
+ new (inner: {
17806
+ signed: ExternalPreparedTransfer;
17807
+ }): {
17808
+ readonly tag: TransferSignature_Tags.Transfer;
17809
+ readonly inner: Readonly<{
17810
+ signed: ExternalPreparedTransfer;
17811
+ }>;
17812
+ /**
17813
+ * @private
17814
+ * This field is private and should not be used, use `tag` instead.
17815
+ */
17816
+ readonly [uniffiTypeNameSymbol]: "TransferSignature";
17817
+ };
17818
+ "new"(inner: {
17819
+ signed: ExternalPreparedTransfer;
17820
+ }): {
17821
+ readonly tag: TransferSignature_Tags.Transfer;
17822
+ readonly inner: Readonly<{
17823
+ signed: ExternalPreparedTransfer;
17824
+ }>;
17825
+ /**
17826
+ * @private
17827
+ * This field is private and should not be used, use `tag` instead.
17828
+ */
17829
+ readonly [uniffiTypeNameSymbol]: "TransferSignature";
17830
+ };
17831
+ instanceOf(obj: any): obj is {
17832
+ readonly tag: TransferSignature_Tags.Transfer;
17833
+ readonly inner: Readonly<{
17834
+ signed: ExternalPreparedTransfer;
17835
+ }>;
17836
+ /**
17837
+ * @private
17838
+ * This field is private and should not be used, use `tag` instead.
17839
+ */
17840
+ readonly [uniffiTypeNameSymbol]: "TransferSignature";
17841
+ };
17842
+ };
17843
+ Token: {
17844
+ new (inner: {
17845
+ signed: ExternalPreparedTokenTransaction;
17846
+ }): {
17847
+ readonly tag: TransferSignature_Tags.Token;
17848
+ readonly inner: Readonly<{
17849
+ signed: ExternalPreparedTokenTransaction;
17850
+ }>;
17851
+ /**
17852
+ * @private
17853
+ * This field is private and should not be used, use `tag` instead.
17854
+ */
17855
+ readonly [uniffiTypeNameSymbol]: "TransferSignature";
17856
+ };
17857
+ "new"(inner: {
17858
+ signed: ExternalPreparedTokenTransaction;
17859
+ }): {
17860
+ readonly tag: TransferSignature_Tags.Token;
17861
+ readonly inner: Readonly<{
17862
+ signed: ExternalPreparedTokenTransaction;
17863
+ }>;
17864
+ /**
17865
+ * @private
17866
+ * This field is private and should not be used, use `tag` instead.
17867
+ */
17868
+ readonly [uniffiTypeNameSymbol]: "TransferSignature";
17869
+ };
17870
+ instanceOf(obj: any): obj is {
17871
+ readonly tag: TransferSignature_Tags.Token;
17872
+ readonly inner: Readonly<{
17873
+ signed: ExternalPreparedTokenTransaction;
17874
+ }>;
17875
+ /**
17876
+ * @private
17877
+ * This field is private and should not be used, use `tag` instead.
17878
+ */
17879
+ readonly [uniffiTypeNameSymbol]: "TransferSignature";
17880
+ };
17881
+ };
17882
+ }>;
17883
+ export type TransferSignature = InstanceType<(typeof TransferSignature)[keyof Omit<typeof TransferSignature, 'instanceOf'>]>;
17884
+ export declare enum TransferTarget_Tags {
17885
+ Spark = "Spark",
17886
+ Lightning = "Lightning",
17887
+ CoopExit = "CoopExit"
17888
+ }
17889
+ export declare const TransferTarget: Readonly<{
17890
+ instanceOf: (obj: any) => obj is TransferTarget;
17891
+ Spark: {
17892
+ new (inner: {
17893
+ address: string;
17894
+ sparkInvoice: string | undefined;
17895
+ }): {
17896
+ readonly tag: TransferTarget_Tags.Spark;
17897
+ readonly inner: Readonly<{
17898
+ address: string;
17899
+ sparkInvoice: string | undefined;
17900
+ }>;
17901
+ /**
17902
+ * @private
17903
+ * This field is private and should not be used, use `tag` instead.
17904
+ */
17905
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
17906
+ };
17907
+ "new"(inner: {
17908
+ address: string;
17909
+ sparkInvoice: string | undefined;
17910
+ }): {
17911
+ readonly tag: TransferTarget_Tags.Spark;
17912
+ readonly inner: Readonly<{
17913
+ address: string;
17914
+ sparkInvoice: string | undefined;
17915
+ }>;
17916
+ /**
17917
+ * @private
17918
+ * This field is private and should not be used, use `tag` instead.
17919
+ */
17920
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
17921
+ };
17922
+ instanceOf(obj: any): obj is {
17923
+ readonly tag: TransferTarget_Tags.Spark;
17924
+ readonly inner: Readonly<{
17925
+ address: string;
17926
+ sparkInvoice: string | undefined;
17927
+ }>;
17928
+ /**
17929
+ * @private
17930
+ * This field is private and should not be used, use `tag` instead.
17931
+ */
17932
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
17933
+ };
17934
+ };
17935
+ Lightning: {
17936
+ new (inner: {
17937
+ bolt11: string;
17938
+ lnurlPay: LnurlPayContext | undefined;
17939
+ feePolicy: FeePolicy;
17940
+ completionTimeoutSecs: /*u32*/ number | undefined;
17941
+ }): {
17942
+ readonly tag: TransferTarget_Tags.Lightning;
17943
+ readonly inner: Readonly<{
17944
+ bolt11: string;
17945
+ lnurlPay: LnurlPayContext | undefined;
17946
+ feePolicy: FeePolicy;
17947
+ completionTimeoutSecs: /*u32*/ number | undefined;
17948
+ }>;
17949
+ /**
17950
+ * @private
17951
+ * This field is private and should not be used, use `tag` instead.
17952
+ */
17953
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
17954
+ };
17955
+ "new"(inner: {
17956
+ bolt11: string;
17957
+ lnurlPay: LnurlPayContext | undefined;
17958
+ feePolicy: FeePolicy;
17959
+ completionTimeoutSecs: /*u32*/ number | undefined;
17960
+ }): {
17961
+ readonly tag: TransferTarget_Tags.Lightning;
17962
+ readonly inner: Readonly<{
17963
+ bolt11: string;
17964
+ lnurlPay: LnurlPayContext | undefined;
17965
+ feePolicy: FeePolicy;
17966
+ completionTimeoutSecs: /*u32*/ number | undefined;
17967
+ }>;
17968
+ /**
17969
+ * @private
17970
+ * This field is private and should not be used, use `tag` instead.
17971
+ */
17972
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
17973
+ };
17974
+ instanceOf(obj: any): obj is {
17975
+ readonly tag: TransferTarget_Tags.Lightning;
17976
+ readonly inner: Readonly<{
17977
+ bolt11: string;
17978
+ lnurlPay: LnurlPayContext | undefined;
17979
+ feePolicy: FeePolicy;
17980
+ completionTimeoutSecs: /*u32*/ number | undefined;
17981
+ }>;
17982
+ /**
17983
+ * @private
17984
+ * This field is private and should not be used, use `tag` instead.
17985
+ */
17986
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
17987
+ };
17988
+ };
17989
+ CoopExit: {
17990
+ new (inner: {
17991
+ address: string;
17992
+ feeQuote: SendOnchainFeeQuote;
17993
+ confirmationSpeed: OnchainConfirmationSpeed;
17994
+ }): {
17995
+ readonly tag: TransferTarget_Tags.CoopExit;
17996
+ readonly inner: Readonly<{
17997
+ address: string;
17998
+ feeQuote: SendOnchainFeeQuote;
17999
+ confirmationSpeed: OnchainConfirmationSpeed;
18000
+ }>;
18001
+ /**
18002
+ * @private
18003
+ * This field is private and should not be used, use `tag` instead.
18004
+ */
18005
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
18006
+ };
18007
+ "new"(inner: {
18008
+ address: string;
18009
+ feeQuote: SendOnchainFeeQuote;
18010
+ confirmationSpeed: OnchainConfirmationSpeed;
18011
+ }): {
18012
+ readonly tag: TransferTarget_Tags.CoopExit;
18013
+ readonly inner: Readonly<{
18014
+ address: string;
18015
+ feeQuote: SendOnchainFeeQuote;
18016
+ confirmationSpeed: OnchainConfirmationSpeed;
18017
+ }>;
18018
+ /**
18019
+ * @private
18020
+ * This field is private and should not be used, use `tag` instead.
18021
+ */
18022
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
18023
+ };
18024
+ instanceOf(obj: any): obj is {
18025
+ readonly tag: TransferTarget_Tags.CoopExit;
18026
+ readonly inner: Readonly<{
18027
+ address: string;
18028
+ feeQuote: SendOnchainFeeQuote;
18029
+ confirmationSpeed: OnchainConfirmationSpeed;
18030
+ }>;
18031
+ /**
18032
+ * @private
18033
+ * This field is private and should not be used, use `tag` instead.
18034
+ */
18035
+ readonly [uniffiTypeNameSymbol]: "TransferTarget";
18036
+ };
18037
+ };
18038
+ }>;
18039
+ export type TransferTarget = InstanceType<(typeof TransferTarget)[keyof Omit<typeof TransferTarget, 'instanceOf'>]>;
18040
+ export declare enum UnsignedTransferPackage_Tags {
18041
+ Swap = "Swap",
18042
+ Transfer = "Transfer",
18043
+ Token = "Token"
18044
+ }
18045
+ export declare const UnsignedTransferPackage: Readonly<{
18046
+ instanceOf: (obj: any) => obj is UnsignedTransferPackage;
18047
+ Swap: {
18048
+ new (inner: {
18049
+ prepareTransfer: ExternalPrepareTransferRequest;
18050
+ targetAmounts: Array</*u64*/ bigint>;
18051
+ amountSat: bigint;
18052
+ feeSat: bigint;
18053
+ }): {
18054
+ readonly tag: UnsignedTransferPackage_Tags.Swap;
18055
+ readonly inner: Readonly<{
18056
+ prepareTransfer: ExternalPrepareTransferRequest;
18057
+ targetAmounts: Array</*u64*/ bigint>;
18058
+ amountSat: bigint;
18059
+ feeSat: bigint;
18060
+ }>;
18061
+ /**
18062
+ * @private
18063
+ * This field is private and should not be used, use `tag` instead.
18064
+ */
18065
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18066
+ };
18067
+ "new"(inner: {
18068
+ prepareTransfer: ExternalPrepareTransferRequest;
18069
+ targetAmounts: Array</*u64*/ bigint>;
18070
+ amountSat: bigint;
18071
+ feeSat: bigint;
18072
+ }): {
18073
+ readonly tag: UnsignedTransferPackage_Tags.Swap;
18074
+ readonly inner: Readonly<{
18075
+ prepareTransfer: ExternalPrepareTransferRequest;
18076
+ targetAmounts: Array</*u64*/ bigint>;
18077
+ amountSat: bigint;
18078
+ feeSat: bigint;
18079
+ }>;
18080
+ /**
18081
+ * @private
18082
+ * This field is private and should not be used, use `tag` instead.
18083
+ */
18084
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18085
+ };
18086
+ instanceOf(obj: any): obj is {
18087
+ readonly tag: UnsignedTransferPackage_Tags.Swap;
18088
+ readonly inner: Readonly<{
18089
+ prepareTransfer: ExternalPrepareTransferRequest;
18090
+ targetAmounts: Array</*u64*/ bigint>;
18091
+ amountSat: bigint;
18092
+ feeSat: bigint;
18093
+ }>;
18094
+ /**
18095
+ * @private
18096
+ * This field is private and should not be used, use `tag` instead.
18097
+ */
18098
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18099
+ };
18100
+ };
18101
+ Transfer: {
18102
+ new (inner: {
18103
+ prepareTransfer: ExternalPrepareTransferRequest;
18104
+ amountSat: bigint;
18105
+ feeSat: bigint;
18106
+ target: TransferTarget;
18107
+ }): {
18108
+ readonly tag: UnsignedTransferPackage_Tags.Transfer;
18109
+ readonly inner: Readonly<{
18110
+ prepareTransfer: ExternalPrepareTransferRequest;
18111
+ amountSat: bigint;
18112
+ feeSat: bigint;
18113
+ target: TransferTarget;
18114
+ }>;
18115
+ /**
18116
+ * @private
18117
+ * This field is private and should not be used, use `tag` instead.
18118
+ */
18119
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18120
+ };
18121
+ "new"(inner: {
18122
+ prepareTransfer: ExternalPrepareTransferRequest;
18123
+ amountSat: bigint;
18124
+ feeSat: bigint;
18125
+ target: TransferTarget;
18126
+ }): {
18127
+ readonly tag: UnsignedTransferPackage_Tags.Transfer;
18128
+ readonly inner: Readonly<{
18129
+ prepareTransfer: ExternalPrepareTransferRequest;
18130
+ amountSat: bigint;
18131
+ feeSat: bigint;
18132
+ target: TransferTarget;
18133
+ }>;
18134
+ /**
18135
+ * @private
18136
+ * This field is private and should not be used, use `tag` instead.
18137
+ */
18138
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18139
+ };
18140
+ instanceOf(obj: any): obj is {
18141
+ readonly tag: UnsignedTransferPackage_Tags.Transfer;
18142
+ readonly inner: Readonly<{
18143
+ prepareTransfer: ExternalPrepareTransferRequest;
18144
+ amountSat: bigint;
18145
+ feeSat: bigint;
18146
+ target: TransferTarget;
18147
+ }>;
18148
+ /**
18149
+ * @private
18150
+ * This field is private and should not be used, use `tag` instead.
18151
+ */
18152
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18153
+ };
18154
+ };
18155
+ Token: {
18156
+ new (inner: {
18157
+ prepareTokenTransaction: ExternalPrepareTokenTransactionRequest;
18158
+ tokenContext: ArrayBuffer;
18159
+ tokenIdentifier: string;
18160
+ amount: U128;
18161
+ fee: U128;
18162
+ /**
18163
+ * When set, this package re-shapes the wallet's token outputs instead of
18164
+ * sending a payment. Publishing it returns `SwapCompleted`: rebuild the
18165
+ * original send from the same prepare response and submit again.
18166
+ */ isSwap: boolean;
18167
+ }): {
18168
+ readonly tag: UnsignedTransferPackage_Tags.Token;
18169
+ readonly inner: Readonly<{
18170
+ prepareTokenTransaction: ExternalPrepareTokenTransactionRequest;
18171
+ tokenContext: ArrayBuffer;
18172
+ tokenIdentifier: string;
18173
+ amount: U128;
18174
+ fee: U128;
18175
+ isSwap: boolean;
18176
+ }>;
18177
+ /**
18178
+ * @private
18179
+ * This field is private and should not be used, use `tag` instead.
18180
+ */
18181
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18182
+ };
18183
+ "new"(inner: {
18184
+ prepareTokenTransaction: ExternalPrepareTokenTransactionRequest;
18185
+ tokenContext: ArrayBuffer;
18186
+ tokenIdentifier: string;
18187
+ amount: U128;
18188
+ fee: U128;
18189
+ /**
18190
+ * When set, this package re-shapes the wallet's token outputs instead of
18191
+ * sending a payment. Publishing it returns `SwapCompleted`: rebuild the
18192
+ * original send from the same prepare response and submit again.
18193
+ */ isSwap: boolean;
18194
+ }): {
18195
+ readonly tag: UnsignedTransferPackage_Tags.Token;
18196
+ readonly inner: Readonly<{
18197
+ prepareTokenTransaction: ExternalPrepareTokenTransactionRequest;
18198
+ tokenContext: ArrayBuffer;
18199
+ tokenIdentifier: string;
18200
+ amount: U128;
18201
+ fee: U128;
18202
+ isSwap: boolean;
18203
+ }>;
18204
+ /**
18205
+ * @private
18206
+ * This field is private and should not be used, use `tag` instead.
18207
+ */
18208
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18209
+ };
18210
+ instanceOf(obj: any): obj is {
18211
+ readonly tag: UnsignedTransferPackage_Tags.Token;
18212
+ readonly inner: Readonly<{
18213
+ prepareTokenTransaction: ExternalPrepareTokenTransactionRequest;
18214
+ tokenContext: ArrayBuffer;
18215
+ tokenIdentifier: string;
18216
+ amount: U128;
18217
+ fee: U128;
18218
+ isSwap: boolean;
18219
+ }>;
18220
+ /**
18221
+ * @private
18222
+ * This field is private and should not be used, use `tag` instead.
18223
+ */
18224
+ readonly [uniffiTypeNameSymbol]: "UnsignedTransferPackage";
18225
+ };
18226
+ };
18227
+ }>;
18228
+ export type UnsignedTransferPackage = InstanceType<(typeof UnsignedTransferPackage)[keyof Omit<typeof UnsignedTransferPackage, 'instanceOf'>]>;
17364
18229
  export declare enum UpdateDepositPayload_Tags {
17365
18230
  ClaimError = "ClaimError",
17366
18231
  Refund = "Refund"
@@ -17693,6 +18558,12 @@ export interface BreezSdkInterface {
17693
18558
  authorizeLightningAddressTransfer(request: AuthorizeTransferRequest, asyncOpts_?: {
17694
18559
  signal: AbortSignal;
17695
18560
  }): Promise<TransferAuthorization>;
18561
+ buildUnsignedLnurlPayPackage(request: BuildUnsignedLnurlPayPackageRequest, asyncOpts_?: {
18562
+ signal: AbortSignal;
18563
+ }): Promise<UnsignedTransferPackage>;
18564
+ buildUnsignedTransferPackage(request: BuildUnsignedTransferPackageRequest, asyncOpts_?: {
18565
+ signal: AbortSignal;
18566
+ }): Promise<UnsignedTransferPackage>;
17696
18567
  /**
17697
18568
  * Initiates a Bitcoin purchase flow via an external provider.
17698
18569
  *
@@ -17945,6 +18816,12 @@ export interface BreezSdkInterface {
17945
18816
  prepareSendPayment(request: PrepareSendPaymentRequest, asyncOpts_?: {
17946
18817
  signal: AbortSignal;
17947
18818
  }): Promise<PrepareSendPaymentResponse>;
18819
+ publishSignedLnurlPayPackage(request: PublishSignedLnurlPayPackageRequest, asyncOpts_?: {
18820
+ signal: AbortSignal;
18821
+ }): Promise<PublishSignedLnurlPayResponse>;
18822
+ publishSignedTransferPackage(request: PublishSignedTransferPackageRequest, asyncOpts_?: {
18823
+ signal: AbortSignal;
18824
+ }): Promise<PublishSignedTransferPackageResponse>;
17948
18825
  receivePayment(request: ReceivePaymentRequest, asyncOpts_?: {
17949
18826
  signal: AbortSignal;
17950
18827
  }): Promise<ReceivePaymentResponse>;
@@ -18111,6 +18988,12 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
18111
18988
  authorizeLightningAddressTransfer(request: AuthorizeTransferRequest, asyncOpts_?: {
18112
18989
  signal: AbortSignal;
18113
18990
  }): Promise<TransferAuthorization>;
18991
+ buildUnsignedLnurlPayPackage(request: BuildUnsignedLnurlPayPackageRequest, asyncOpts_?: {
18992
+ signal: AbortSignal;
18993
+ }): Promise<UnsignedTransferPackage>;
18994
+ buildUnsignedTransferPackage(request: BuildUnsignedTransferPackageRequest, asyncOpts_?: {
18995
+ signal: AbortSignal;
18996
+ }): Promise<UnsignedTransferPackage>;
18114
18997
  /**
18115
18998
  * Initiates a Bitcoin purchase flow via an external provider.
18116
18999
  *
@@ -18363,6 +19246,12 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
18363
19246
  prepareSendPayment(request: PrepareSendPaymentRequest, asyncOpts_?: {
18364
19247
  signal: AbortSignal;
18365
19248
  }): Promise<PrepareSendPaymentResponse>;
19249
+ publishSignedLnurlPayPackage(request: PublishSignedLnurlPayPackageRequest, asyncOpts_?: {
19250
+ signal: AbortSignal;
19251
+ }): Promise<PublishSignedLnurlPayResponse>;
19252
+ publishSignedTransferPackage(request: PublishSignedTransferPackageRequest, asyncOpts_?: {
19253
+ signal: AbortSignal;
19254
+ }): Promise<PublishSignedTransferPackageResponse>;
18366
19255
  receivePayment(request: ReceivePaymentRequest, asyncOpts_?: {
18367
19256
  signal: AbortSignal;
18368
19257
  }): Promise<ReceivePaymentResponse>;
@@ -18882,6 +19771,13 @@ export interface ExternalSparkSigner {
18882
19771
  getPublicKeyForLeaf(leafId: ExternalTreeNodeId, asyncOpts_?: {
18883
19772
  signal: AbortSignal;
18884
19773
  }): Promise<PublicKeyBytes>;
19774
+ /**
19775
+ * Whether this signer is backed by a remote service, so its operations are
19776
+ * network round-trips rather than local computation. Local signers return
19777
+ * false; a hosted signer like Turnkey returns true so the SDK can avoid
19778
+ * redundant calls, e.g. re-deriving keys for leaves it has already verified.
19779
+ */
19780
+ isRemote(): boolean;
18885
19781
  /**
18886
19782
  * The static-deposit signing public key at `index`.
18887
19783
  */
@@ -18981,6 +19877,13 @@ export declare class ExternalSparkSignerImpl extends UniffiAbstractObject implem
18981
19877
  getPublicKeyForLeaf(leafId: ExternalTreeNodeId, asyncOpts_?: {
18982
19878
  signal: AbortSignal;
18983
19879
  }): Promise<PublicKeyBytes>;
19880
+ /**
19881
+ * Whether this signer is backed by a remote service, so its operations are
19882
+ * network round-trips rather than local computation. Local signers return
19883
+ * false; a hosted signer like Turnkey returns true so the SDK can avoid
19884
+ * redundant calls, e.g. re-deriving keys for leaves it has already verified.
19885
+ */
19886
+ isRemote(): boolean;
18984
19887
  /**
18985
19888
  * The static-deposit signing public key at `index`.
18986
19889
  */
@@ -19137,8 +20040,7 @@ export interface PasskeyClientInterface {
19137
20040
  }): Promise<PasskeyAvailability>;
19138
20041
  /**
19139
20042
  * Single-CTA onboarding: silent sign-in, falling through to
19140
- * registration when no credential exists on the device. The returned
19141
- * [`ConnectFlow`] tells the caller which path ran.
20043
+ * registration when no credential exists on the device.
19142
20044
  *
19143
20045
  * The silent sign-in pins `prefer_immediately_available_credentials =
19144
20046
  * true` regardless of [`SignInRequest`]: the fallback depends on the OS
@@ -19147,11 +20049,12 @@ export interface PasskeyClientInterface {
19147
20049
  * register path; every other error (`Cancel`, `Timeout`, ...) propagates
19148
20050
  * unchanged.
19149
20051
  *
19150
- * Mobile-only: meant for iOS 18+ / Android 9+ where
19151
- * `preferImmediatelyAvailableCredentials` is honored. The web
19152
- * equivalent (`mediation: 'immediate'`) is not yet stable
19153
- * cross-browser, so this is not surfaced on WASM; web hosts call
19154
- * [`Self::sign_in`] and catch `CredentialNotFound` themselves.
20052
+ * On WASM the silent sign-in maps to `WebAuthn` `uiMode: 'immediate'`
20053
+ * where the browser advertises it. Web hosts gate on the browser's
20054
+ * immediate-mediation capability (the WASM client surfaces it):
20055
+ * without it the probe shows the standard picker and a dismiss is a
20056
+ * cancel, not `CredentialNotFound`, so it never reaches register.
20057
+ * Present an explicit create / sign-in choice there instead.
19155
20058
  */
19156
20059
  connectWithPasskey(request: ConnectWithPasskeyRequest, asyncOpts_?: {
19157
20060
  signal: AbortSignal;
@@ -19216,8 +20119,7 @@ export declare class PasskeyClient extends UniffiAbstractObject implements Passk
19216
20119
  }): Promise<PasskeyAvailability>;
19217
20120
  /**
19218
20121
  * Single-CTA onboarding: silent sign-in, falling through to
19219
- * registration when no credential exists on the device. The returned
19220
- * [`ConnectFlow`] tells the caller which path ran.
20122
+ * registration when no credential exists on the device.
19221
20123
  *
19222
20124
  * The silent sign-in pins `prefer_immediately_available_credentials =
19223
20125
  * true` regardless of [`SignInRequest`]: the fallback depends on the OS
@@ -19226,11 +20128,12 @@ export declare class PasskeyClient extends UniffiAbstractObject implements Passk
19226
20128
  * register path; every other error (`Cancel`, `Timeout`, ...) propagates
19227
20129
  * unchanged.
19228
20130
  *
19229
- * Mobile-only: meant for iOS 18+ / Android 9+ where
19230
- * `preferImmediatelyAvailableCredentials` is honored. The web
19231
- * equivalent (`mediation: 'immediate'`) is not yet stable
19232
- * cross-browser, so this is not surfaced on WASM; web hosts call
19233
- * [`Self::sign_in`] and catch `CredentialNotFound` themselves.
20131
+ * On WASM the silent sign-in maps to `WebAuthn` `uiMode: 'immediate'`
20132
+ * where the browser advertises it. Web hosts gate on the browser's
20133
+ * immediate-mediation capability (the WASM client surfaces it):
20134
+ * without it the probe shows the standard picker and a dismiss is a
20135
+ * cancel, not `CredentialNotFound`, so it never reaches register.
20136
+ * Present an explicit create / sign-in choice there instead.
19234
20137
  */
19235
20138
  connectWithPasskey(request: ConnectWithPasskeyRequest, asyncOpts_?: {
19236
20139
  signal: AbortSignal;
@@ -19681,6 +20584,18 @@ export interface SdkBuilderInterface {
19681
20584
  withRestChainService(url: string, apiType: ChainApiType, credentials: Credentials | undefined, asyncOpts_?: {
19682
20585
  signal: AbortSignal;
19683
20586
  }): Promise<void>;
20587
+ /**
20588
+ * Overrides the session store used to cache auth tokens, replacing the one
20589
+ * the backend provides. Supply any [`SessionStore`]: for example one that
20590
+ * wraps the backend's own store (from
20591
+ * [`default_session_store`](crate::default_session_store)) to add at-rest
20592
+ * encryption, which the SDK does not apply itself.
20593
+ * Arguments:
20594
+ * - `session_store`: The session store to use in place of the backend's.
20595
+ */
20596
+ withSessionStore(sessionStore: SessionStore, asyncOpts_?: {
20597
+ signal: AbortSignal;
20598
+ }): Promise<void>;
19684
20599
  /**
19685
20600
  * Threads a shared [`SdkContext`](crate::SdkContext) into the builder.
19686
20601
  *
@@ -19820,6 +20735,18 @@ export declare class SdkBuilder extends UniffiAbstractObject implements SdkBuild
19820
20735
  withRestChainService(url: string, apiType: ChainApiType, credentials: Credentials | undefined, asyncOpts_?: {
19821
20736
  signal: AbortSignal;
19822
20737
  }): Promise<void>;
20738
+ /**
20739
+ * Overrides the session store used to cache auth tokens, replacing the one
20740
+ * the backend provides. Supply any [`SessionStore`]: for example one that
20741
+ * wraps the backend's own store (from
20742
+ * [`default_session_store`](crate::default_session_store)) to add at-rest
20743
+ * encryption, which the SDK does not apply itself.
20744
+ * Arguments:
20745
+ * - `session_store`: The session store to use in place of the backend's.
20746
+ */
20747
+ withSessionStore(sessionStore: SessionStore, asyncOpts_?: {
20748
+ signal: AbortSignal;
20749
+ }): Promise<void>;
19823
20750
  /**
19824
20751
  * Threads a shared [`SdkContext`](crate::SdkContext) into the builder.
19825
20752
  *
@@ -20883,6 +21810,27 @@ declare const _default: Readonly<{
20883
21810
  lower(value: Bolt12OfferDetails): UniffiByteArray;
20884
21811
  };
20885
21812
  FfiConverterTypeBreezSdk: FfiConverterObject<BreezSdkInterface>;
21813
+ FfiConverterTypeBuildTransferPackageOptions: {
21814
+ read(from: RustBuffer): BuildTransferPackageOptions;
21815
+ write(value: BuildTransferPackageOptions, into: RustBuffer): void;
21816
+ allocationSize(value: BuildTransferPackageOptions): number;
21817
+ lift(value: UniffiByteArray): BuildTransferPackageOptions;
21818
+ lower(value: BuildTransferPackageOptions): UniffiByteArray;
21819
+ };
21820
+ FfiConverterTypeBuildUnsignedLnurlPayPackageRequest: {
21821
+ read(from: RustBuffer): BuildUnsignedLnurlPayPackageRequest;
21822
+ write(value: BuildUnsignedLnurlPayPackageRequest, into: RustBuffer): void;
21823
+ allocationSize(value: BuildUnsignedLnurlPayPackageRequest): number;
21824
+ lift(value: UniffiByteArray): BuildUnsignedLnurlPayPackageRequest;
21825
+ lower(value: BuildUnsignedLnurlPayPackageRequest): UniffiByteArray;
21826
+ };
21827
+ FfiConverterTypeBuildUnsignedTransferPackageRequest: {
21828
+ read(from: RustBuffer): BuildUnsignedTransferPackageRequest;
21829
+ write(value: BuildUnsignedTransferPackageRequest, into: RustBuffer): void;
21830
+ allocationSize(value: BuildUnsignedTransferPackageRequest): number;
21831
+ lift(value: UniffiByteArray): BuildUnsignedTransferPackageRequest;
21832
+ lower(value: BuildUnsignedTransferPackageRequest): UniffiByteArray;
21833
+ };
20886
21834
  FfiConverterTypeBurnIssuerTokenRequest: {
20887
21835
  read(from: RustBuffer): BurnIssuerTokenRequest;
20888
21836
  write(value: BurnIssuerTokenRequest, into: RustBuffer): void;
@@ -21720,6 +22668,13 @@ declare const _default: Readonly<{
21720
22668
  lift(value: UniffiByteArray): LnurlInfo;
21721
22669
  lower(value: LnurlInfo): UniffiByteArray;
21722
22670
  };
22671
+ FfiConverterTypeLnurlPayContext: {
22672
+ read(from: RustBuffer): LnurlPayContext;
22673
+ write(value: LnurlPayContext, into: RustBuffer): void;
22674
+ allocationSize(value: LnurlPayContext): number;
22675
+ lift(value: UniffiByteArray): LnurlPayContext;
22676
+ lower(value: LnurlPayContext): UniffiByteArray;
22677
+ };
21723
22678
  FfiConverterTypeLnurlPayInfo: {
21724
22679
  read(from: RustBuffer): LnurlPayInfo;
21725
22680
  write(value: LnurlPayInfo, into: RustBuffer): void;
@@ -22054,6 +23009,34 @@ declare const _default: Readonly<{
22054
23009
  lift(value: UniffiByteArray): PublicKeyBytes;
22055
23010
  lower(value: PublicKeyBytes): UniffiByteArray;
22056
23011
  };
23012
+ FfiConverterTypePublishSignedLnurlPayPackageRequest: {
23013
+ read(from: RustBuffer): PublishSignedLnurlPayPackageRequest;
23014
+ write(value: PublishSignedLnurlPayPackageRequest, into: RustBuffer): void;
23015
+ allocationSize(value: PublishSignedLnurlPayPackageRequest): number;
23016
+ lift(value: UniffiByteArray): PublishSignedLnurlPayPackageRequest;
23017
+ lower(value: PublishSignedLnurlPayPackageRequest): UniffiByteArray;
23018
+ };
23019
+ FfiConverterTypePublishSignedLnurlPayResponse: {
23020
+ read(from: RustBuffer): PublishSignedLnurlPayResponse;
23021
+ write(value: PublishSignedLnurlPayResponse, into: RustBuffer): void;
23022
+ allocationSize(value: PublishSignedLnurlPayResponse): number;
23023
+ lift(value: UniffiByteArray): PublishSignedLnurlPayResponse;
23024
+ lower(value: PublishSignedLnurlPayResponse): UniffiByteArray;
23025
+ };
23026
+ FfiConverterTypePublishSignedTransferPackageRequest: {
23027
+ read(from: RustBuffer): PublishSignedTransferPackageRequest;
23028
+ write(value: PublishSignedTransferPackageRequest, into: RustBuffer): void;
23029
+ allocationSize(value: PublishSignedTransferPackageRequest): number;
23030
+ lift(value: UniffiByteArray): PublishSignedTransferPackageRequest;
23031
+ lower(value: PublishSignedTransferPackageRequest): UniffiByteArray;
23032
+ };
23033
+ FfiConverterTypePublishSignedTransferPackageResponse: {
23034
+ read(from: RustBuffer): PublishSignedTransferPackageResponse;
23035
+ write(value: PublishSignedTransferPackageResponse, into: RustBuffer): void;
23036
+ allocationSize(value: PublishSignedTransferPackageResponse): number;
23037
+ lift(value: UniffiByteArray): PublishSignedTransferPackageResponse;
23038
+ lower(value: PublishSignedTransferPackageResponse): UniffiByteArray;
23039
+ };
22057
23040
  FfiConverterTypeRate: {
22058
23041
  read(from: RustBuffer): Rate;
22059
23042
  write(value: Rate, into: RustBuffer): void;
@@ -22332,6 +23315,13 @@ declare const _default: Readonly<{
22332
23315
  lift(value: UniffiByteArray): SignMessageResponse;
22333
23316
  lower(value: SignMessageResponse): UniffiByteArray;
22334
23317
  };
23318
+ FfiConverterTypeSignedTransferPackage: {
23319
+ read(from: RustBuffer): SignedTransferPackage;
23320
+ write(value: SignedTransferPackage, into: RustBuffer): void;
23321
+ allocationSize(value: SignedTransferPackage): number;
23322
+ lift(value: UniffiByteArray): SignedTransferPackage;
23323
+ lower(value: SignedTransferPackage): UniffiByteArray;
23324
+ };
22335
23325
  FfiConverterTypeSignerError: {
22336
23326
  read(from: RustBuffer): SignerError;
22337
23327
  write(value: SignerError, into: RustBuffer): void;
@@ -22552,6 +23542,20 @@ declare const _default: Readonly<{
22552
23542
  lift(value: UniffiByteArray): TransferAuthorization;
22553
23543
  lower(value: TransferAuthorization): UniffiByteArray;
22554
23544
  };
23545
+ FfiConverterTypeTransferSignature: {
23546
+ read(from: RustBuffer): TransferSignature;
23547
+ write(value: TransferSignature, into: RustBuffer): void;
23548
+ allocationSize(value: TransferSignature): number;
23549
+ lift(value: UniffiByteArray): TransferSignature;
23550
+ lower(value: TransferSignature): UniffiByteArray;
23551
+ };
23552
+ FfiConverterTypeTransferTarget: {
23553
+ read(from: RustBuffer): TransferTarget;
23554
+ write(value: TransferTarget, into: RustBuffer): void;
23555
+ allocationSize(value: TransferTarget): number;
23556
+ lift(value: UniffiByteArray): TransferTarget;
23557
+ lower(value: TransferTarget): UniffiByteArray;
23558
+ };
22555
23559
  FfiConverterTypeTurnkeyConfig: {
22556
23560
  read(from: RustBuffer): TurnkeyConfig;
22557
23561
  write(value: TurnkeyConfig, into: RustBuffer): void;
@@ -22594,6 +23598,13 @@ declare const _default: Readonly<{
22594
23598
  lift(value: UniffiByteArray): UnregisterWebhookRequest;
22595
23599
  lower(value: UnregisterWebhookRequest): UniffiByteArray;
22596
23600
  };
23601
+ FfiConverterTypeUnsignedTransferPackage: {
23602
+ read(from: RustBuffer): UnsignedTransferPackage;
23603
+ write(value: UnsignedTransferPackage, into: RustBuffer): void;
23604
+ allocationSize(value: UnsignedTransferPackage): number;
23605
+ lift(value: UniffiByteArray): UnsignedTransferPackage;
23606
+ lower(value: UnsignedTransferPackage): UniffiByteArray;
23607
+ };
22597
23608
  FfiConverterTypeUnversionedRecordChange: {
22598
23609
  read(from: RustBuffer): UnversionedRecordChange;
22599
23610
  write(value: UnversionedRecordChange, into: RustBuffer): void;