@breeztech/breez-sdk-spark-react-native 0.3.1 → 0.3.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.
Files changed (28) hide show
  1. package/cpp/generated/breez_sdk_spark.cpp +556 -41
  2. package/cpp/generated/breez_sdk_spark.hpp +33 -7
  3. package/lib/commonjs/generated/breez_sdk_common.js +52 -1
  4. package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
  5. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  6. package/lib/commonjs/generated/breez_sdk_spark.js +553 -20
  7. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  8. package/lib/module/generated/breez_sdk_common.js +51 -0
  9. package/lib/module/generated/breez_sdk_common.js.map +1 -1
  10. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  11. package/lib/module/generated/breez_sdk_spark.js +551 -18
  12. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  13. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +44 -0
  14. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -1
  15. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +15 -2
  16. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  17. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +459 -6
  18. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  19. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +44 -0
  20. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -1
  21. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +15 -2
  22. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  23. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +459 -6
  24. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/generated/breez_sdk_common.ts +76 -0
  27. package/src/generated/breez_sdk_spark-ffi.ts +40 -2
  28. package/src/generated/breez_sdk_spark.ts +907 -70
@@ -102,6 +102,9 @@ protected:
102
102
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
103
103
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
104
104
  size_t count);
105
+ jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_parse(
106
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
107
+ size_t count);
105
108
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(
106
109
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
107
110
  size_t count);
@@ -131,6 +134,15 @@ protected:
131
134
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment(
132
135
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
133
136
  size_t count);
137
+ jsi::Value cpp_uniffi_breez_sdk_spark_fn_clone_paymentobserver(
138
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
139
+ size_t count);
140
+ jsi::Value cpp_uniffi_breez_sdk_spark_fn_free_paymentobserver(
141
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
142
+ size_t count);
143
+ jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_paymentobserver_before_send(
144
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
145
+ size_t count);
134
146
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_clone_sdkbuilder(
135
147
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
136
148
  size_t count);
@@ -156,6 +168,10 @@ protected:
156
168
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
157
169
  size_t count);
158
170
  jsi::Value
171
+ cpp_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_payment_observer(
172
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
173
+ size_t count);
174
+ jsi::Value
159
175
  cpp_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_rest_chain_service(
160
176
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
161
177
  size_t count);
@@ -214,10 +230,6 @@ protected:
214
230
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_func_init_logging(
215
231
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
216
232
  size_t count);
217
- jsi::Value cpp_uniffi_breez_sdk_spark_fn_func_parse(jsi::Runtime &rt,
218
- const jsi::Value &thisVal,
219
- const jsi::Value *args,
220
- size_t count);
221
233
  jsi::Value cpp_ffi_breez_sdk_spark_rust_future_poll_u8(
222
234
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
223
235
  size_t count);
@@ -386,9 +398,6 @@ protected:
386
398
  jsi::Value cpp_uniffi_breez_sdk_spark_checksum_func_init_logging(
387
399
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
388
400
  size_t count);
389
- jsi::Value cpp_uniffi_breez_sdk_spark_checksum_func_parse(
390
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
391
- size_t count);
392
401
  jsi::Value
393
402
  cpp_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos(
394
403
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -455,6 +464,9 @@ protected:
455
464
  jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay(
456
465
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
457
466
  size_t count);
467
+ jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse(
468
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
469
+ size_t count);
458
470
  jsi::Value
459
471
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay(
460
472
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -488,6 +500,10 @@ protected:
488
500
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment(
489
501
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
490
502
  size_t count);
503
+ jsi::Value
504
+ cpp_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send(
505
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
506
+ size_t count);
491
507
  jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build(
492
508
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
493
509
  size_t count);
@@ -507,6 +523,10 @@ protected:
507
523
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
508
524
  size_t count);
509
525
  jsi::Value
526
+ cpp_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer(
527
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
528
+ size_t count);
529
+ jsi::Value
510
530
  cpp_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service(
511
531
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
512
532
  size_t count);
@@ -572,6 +592,9 @@ protected:
572
592
  cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
573
593
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
574
594
  size_t count);
595
+ jsi::Value cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
596
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
597
+ size_t count);
575
598
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
576
599
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
577
600
  size_t count);
@@ -582,6 +605,9 @@ protected:
582
605
  jsi::Value cpp_uniffi_internal_fn_method_breezsdk_ffi__bless_pointer(
583
606
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
584
607
  size_t count);
608
+ jsi::Value cpp_uniffi_internal_fn_method_paymentobserver_ffi__bless_pointer(
609
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
610
+ size_t count);
585
611
  jsi::Value cpp_uniffi_internal_fn_method_sdkbuilder_ffi__bless_pointer(
586
612
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
587
613
  size_t count);
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.UrlSuccessActionData = exports.TokensPaymentDetails = exports.Symbol = exports.SuccessAction_Tags = exports.SuccessActionProcessed_Tags = exports.SuccessActionProcessed = exports.SuccessAction = exports.SparkInvoiceFields = exports.SparkAddressPaymentType_Tags = exports.SparkAddressPaymentType = exports.SparkAddressDetails = exports.SparkAddress = exports.SilentPaymentAddressDetails = exports.ServiceConnectivityError_Tags = exports.ServiceConnectivityError = exports.SatsPaymentDetails = exports.RestResponse = exports.RestClientImpl = exports.Rate = exports.PaymentRequestSource = exports.MessageSuccessActionData = exports.LocalizedName = exports.LocaleOverrides = exports.LnurlWithdrawRequestDetails = exports.LnurlPayRequestDetails = exports.LnurlErrorDetails = exports.LnurlCallbackStatus_Tags = exports.LnurlCallbackStatus = exports.LnurlAuthRequestDetails = exports.LightningAddressDetails = exports.InputType_Tags = exports.InputType = exports.FiatServiceImpl = exports.FiatCurrency = exports.CurrencyInfo = exports.Bolt12OfferDetails = exports.Bolt12OfferBlindedPath = exports.Bolt12Offer = exports.Bolt12InvoiceRequestDetails = exports.Bolt12InvoiceDetails = exports.Bolt12Invoice = exports.Bolt11RouteHintHop = exports.Bolt11RouteHint = exports.Bolt11InvoiceDetails = exports.Bolt11Invoice = exports.BitcoinNetwork = exports.BitcoinAddressDetails = exports.Bip21Extra = exports.Bip21Details = exports.Amount_Tags = exports.Amount = exports.AesSuccessActionDataResult_Tags = exports.AesSuccessActionDataResult = exports.AesSuccessActionDataDecrypted = exports.AesSuccessActionData = void 0;
6
+ exports.default = exports.UrlSuccessActionData = exports.TokensPaymentDetails = exports.Symbol = exports.SuccessAction_Tags = exports.SuccessActionProcessed_Tags = exports.SuccessActionProcessed = exports.SuccessAction = exports.SparkInvoiceFields = exports.SparkAddressPaymentType_Tags = exports.SparkAddressPaymentType = exports.SparkAddressDetails = exports.SparkAddress = exports.SilentPaymentAddressDetails = exports.ServiceConnectivityError_Tags = exports.ServiceConnectivityError = exports.SatsPaymentDetails = exports.RestResponse = exports.RestClientImpl = exports.Rate = exports.PaymentRequestSource = exports.MessageSuccessActionData = exports.LocalizedName = exports.LocaleOverrides = exports.LnurlWithdrawRequestDetails = exports.LnurlPayRequestDetails = exports.LnurlErrorDetails = exports.LnurlCallbackStatus_Tags = exports.LnurlCallbackStatus = exports.LnurlAuthRequestDetails = exports.LightningAddressDetails = exports.InputType_Tags = exports.InputType = exports.FiatServiceImpl = exports.FiatCurrency = exports.ExternalInputParser = exports.CurrencyInfo = exports.Bolt12OfferDetails = exports.Bolt12OfferBlindedPath = exports.Bolt12Offer = exports.Bolt12InvoiceRequestDetails = exports.Bolt12InvoiceDetails = exports.Bolt12Invoice = exports.Bolt11RouteHintHop = exports.Bolt11RouteHint = exports.Bolt11InvoiceDetails = exports.Bolt11Invoice = exports.BitcoinNetwork = exports.BitcoinAddressDetails = exports.Bip21Extra = exports.Bip21Details = exports.Amount_Tags = exports.Amount = exports.AesSuccessActionDataResult_Tags = exports.AesSuccessActionDataResult = exports.AesSuccessActionDataDecrypted = exports.AesSuccessActionData = void 0;
7
7
  var _breez_sdk_commonFfi = _interopRequireDefault(require("./breez_sdk_common-ffi.js"));
8
8
  var _uniffiBindgenReactNative = require("uniffi-bindgen-react-native");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -780,6 +780,56 @@ const FfiConverterTypeCurrencyInfo = (() => {
780
780
  return new FFIConverter();
781
781
  })();
782
782
 
783
+ /**
784
+ * Configuration for an external input parser
785
+ */
786
+
787
+ /**
788
+ * Generated factory for {@link ExternalInputParser} record objects.
789
+ */
790
+ const ExternalInputParser = exports.ExternalInputParser = (() => {
791
+ const defaults = () => ({});
792
+ const create = (() => {
793
+ return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
794
+ })();
795
+ return Object.freeze({
796
+ /**
797
+ * Create a frozen instance of {@link ExternalInputParser}, with defaults specified
798
+ * in Rust, in the {@link breez_sdk_common} crate.
799
+ */
800
+ create,
801
+ /**
802
+ * Create a frozen instance of {@link ExternalInputParser}, with defaults specified
803
+ * in Rust, in the {@link breez_sdk_common} crate.
804
+ */
805
+ new: create,
806
+ /**
807
+ * Defaults specified in the {@link breez_sdk_common} crate.
808
+ */
809
+ defaults: () => Object.freeze(defaults())
810
+ });
811
+ })();
812
+ const FfiConverterTypeExternalInputParser = (() => {
813
+ class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
814
+ read(from) {
815
+ return {
816
+ providerId: FfiConverterString.read(from),
817
+ inputRegex: FfiConverterString.read(from),
818
+ parserUrl: FfiConverterString.read(from)
819
+ };
820
+ }
821
+ write(value, into) {
822
+ FfiConverterString.write(value.providerId, into);
823
+ FfiConverterString.write(value.inputRegex, into);
824
+ FfiConverterString.write(value.parserUrl, into);
825
+ }
826
+ allocationSize(value) {
827
+ return FfiConverterString.allocationSize(value.providerId) + FfiConverterString.allocationSize(value.inputRegex) + FfiConverterString.allocationSize(value.parserUrl);
828
+ }
829
+ }
830
+ return new FFIConverter();
831
+ })();
832
+
783
833
  /**
784
834
  * Wrapper around the [`CurrencyInfo`] of a fiat currency
785
835
  */
@@ -4136,6 +4186,7 @@ var _default = exports.default = Object.freeze({
4136
4186
  FfiConverterTypeBolt12OfferBlindedPath,
4137
4187
  FfiConverterTypeBolt12OfferDetails,
4138
4188
  FfiConverterTypeCurrencyInfo,
4189
+ FfiConverterTypeExternalInputParser,
4139
4190
  FfiConverterTypeFiatCurrency,
4140
4191
  FfiConverterTypeFiatService,
4141
4192
  FfiConverterTypeInputType,