@breeztech/breez-sdk-spark-react-native 0.1.8-dev1 → 0.1.8-dev2
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.
- package/cpp/generated/breez_sdk_common.cpp +83 -81
- package/cpp/generated/breez_sdk_common.hpp +8 -6
- package/lib/commonjs/generated/breez_sdk_common.js +18 -18
- package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
- package/lib/module/generated/breez_sdk_common.js +18 -18
- package/lib/module/generated/breez_sdk_common.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_common-ffi.ts +9 -9
- package/src/generated/breez_sdk_common.ts +24 -24
|
@@ -31,18 +31,18 @@ interface NativeModuleInterface {
|
|
|
31
31
|
ptr: bigint,
|
|
32
32
|
uniffi_out_err: UniffiRustCallStatus
|
|
33
33
|
): void;
|
|
34
|
-
|
|
34
|
+
ubrn_uniffi_breez_sdk_common_fn_method_restclient_get_request(
|
|
35
35
|
ptr: bigint,
|
|
36
36
|
url: Uint8Array,
|
|
37
37
|
headers: Uint8Array
|
|
38
38
|
): bigint;
|
|
39
|
-
|
|
39
|
+
ubrn_uniffi_breez_sdk_common_fn_method_restclient_post_request(
|
|
40
40
|
ptr: bigint,
|
|
41
41
|
url: Uint8Array,
|
|
42
42
|
headers: Uint8Array,
|
|
43
43
|
body: Uint8Array
|
|
44
44
|
): bigint;
|
|
45
|
-
|
|
45
|
+
ubrn_uniffi_breez_sdk_common_fn_method_restclient_delete_request(
|
|
46
46
|
ptr: bigint,
|
|
47
47
|
url: Uint8Array,
|
|
48
48
|
headers: Uint8Array,
|
|
@@ -193,9 +193,9 @@ interface NativeModuleInterface {
|
|
|
193
193
|
handle: bigint,
|
|
194
194
|
uniffi_out_err: UniffiRustCallStatus
|
|
195
195
|
): void;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
ubrn_uniffi_breez_sdk_common_checksum_method_restclient_get_request(): number;
|
|
197
|
+
ubrn_uniffi_breez_sdk_common_checksum_method_restclient_post_request(): number;
|
|
198
|
+
ubrn_uniffi_breez_sdk_common_checksum_method_restclient_delete_request(): number;
|
|
199
199
|
ubrn_ffi_breez_sdk_common_uniffi_contract_version(): number;
|
|
200
200
|
ubrn_uniffi_breez_sdk_common_fn_init_callback_vtable_restclient(
|
|
201
201
|
vtable: UniffiVTableCallbackInterfaceRestClient
|
|
@@ -353,9 +353,9 @@ type UniffiCallbackInterfaceRestClientMethod2 = (
|
|
|
353
353
|
uniffiCallbackData: bigint
|
|
354
354
|
) => UniffiResult<UniffiForeignFuture>;
|
|
355
355
|
export type UniffiVTableCallbackInterfaceRestClient = {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
356
|
+
getRequest: UniffiCallbackInterfaceRestClientMethod0;
|
|
357
|
+
postRequest: UniffiCallbackInterfaceRestClientMethod1;
|
|
358
|
+
deleteRequest: UniffiCallbackInterfaceRestClientMethod2;
|
|
359
359
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
360
360
|
};
|
|
361
361
|
|
|
@@ -4880,7 +4880,7 @@ export interface RestClient {
|
|
|
4880
4880
|
* - `url`: the URL on which GET will be called
|
|
4881
4881
|
* - `headers`: optional headers that will be set on the request
|
|
4882
4882
|
*/
|
|
4883
|
-
|
|
4883
|
+
getRequest(
|
|
4884
4884
|
url: string,
|
|
4885
4885
|
headers: Map<string, string> | undefined,
|
|
4886
4886
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -4892,7 +4892,7 @@ export interface RestClient {
|
|
|
4892
4892
|
* - `headers`: the optional POST headers
|
|
4893
4893
|
* - `body`: the optional POST body
|
|
4894
4894
|
*/
|
|
4895
|
-
|
|
4895
|
+
postRequest(
|
|
4896
4896
|
url: string,
|
|
4897
4897
|
headers: Map<string, string> | undefined,
|
|
4898
4898
|
body: string | undefined,
|
|
@@ -4905,7 +4905,7 @@ export interface RestClient {
|
|
|
4905
4905
|
* - `headers`: the optional DELETE headers
|
|
4906
4906
|
* - `body`: the optional DELETE body
|
|
4907
4907
|
*/
|
|
4908
|
-
|
|
4908
|
+
deleteRequest(
|
|
4909
4909
|
url: string,
|
|
4910
4910
|
headers: Map<string, string> | undefined,
|
|
4911
4911
|
body: string | undefined,
|
|
@@ -4931,7 +4931,7 @@ export class RestClientImpl extends UniffiAbstractObject implements RestClient {
|
|
|
4931
4931
|
* - `url`: the URL on which GET will be called
|
|
4932
4932
|
* - `headers`: optional headers that will be set on the request
|
|
4933
4933
|
*/
|
|
4934
|
-
public async
|
|
4934
|
+
public async getRequest(
|
|
4935
4935
|
url: string,
|
|
4936
4936
|
headers: Map<string, string> | undefined,
|
|
4937
4937
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -4941,7 +4941,7 @@ export class RestClientImpl extends UniffiAbstractObject implements RestClient {
|
|
|
4941
4941
|
return await uniffiRustCallAsync(
|
|
4942
4942
|
/*rustCaller:*/ uniffiCaller,
|
|
4943
4943
|
/*rustFutureFunc:*/ () => {
|
|
4944
|
-
return nativeModule().
|
|
4944
|
+
return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_get_request(
|
|
4945
4945
|
uniffiTypeRestClientImplObjectFactory.clonePointer(this),
|
|
4946
4946
|
FfiConverterString.lower(url),
|
|
4947
4947
|
FfiConverterOptionalMapStringString.lower(headers)
|
|
@@ -4979,7 +4979,7 @@ export class RestClientImpl extends UniffiAbstractObject implements RestClient {
|
|
|
4979
4979
|
* - `headers`: the optional POST headers
|
|
4980
4980
|
* - `body`: the optional POST body
|
|
4981
4981
|
*/
|
|
4982
|
-
public async
|
|
4982
|
+
public async postRequest(
|
|
4983
4983
|
url: string,
|
|
4984
4984
|
headers: Map<string, string> | undefined,
|
|
4985
4985
|
body: string | undefined,
|
|
@@ -4990,7 +4990,7 @@ export class RestClientImpl extends UniffiAbstractObject implements RestClient {
|
|
|
4990
4990
|
return await uniffiRustCallAsync(
|
|
4991
4991
|
/*rustCaller:*/ uniffiCaller,
|
|
4992
4992
|
/*rustFutureFunc:*/ () => {
|
|
4993
|
-
return nativeModule().
|
|
4993
|
+
return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_post_request(
|
|
4994
4994
|
uniffiTypeRestClientImplObjectFactory.clonePointer(this),
|
|
4995
4995
|
FfiConverterString.lower(url),
|
|
4996
4996
|
FfiConverterOptionalMapStringString.lower(headers),
|
|
@@ -5029,7 +5029,7 @@ export class RestClientImpl extends UniffiAbstractObject implements RestClient {
|
|
|
5029
5029
|
* - `headers`: the optional DELETE headers
|
|
5030
5030
|
* - `body`: the optional DELETE body
|
|
5031
5031
|
*/
|
|
5032
|
-
public async
|
|
5032
|
+
public async deleteRequest(
|
|
5033
5033
|
url: string,
|
|
5034
5034
|
headers: Map<string, string> | undefined,
|
|
5035
5035
|
body: string | undefined,
|
|
@@ -5040,7 +5040,7 @@ export class RestClientImpl extends UniffiAbstractObject implements RestClient {
|
|
|
5040
5040
|
return await uniffiRustCallAsync(
|
|
5041
5041
|
/*rustCaller:*/ uniffiCaller,
|
|
5042
5042
|
/*rustFutureFunc:*/ () => {
|
|
5043
|
-
return nativeModule().
|
|
5043
|
+
return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_delete_request(
|
|
5044
5044
|
uniffiTypeRestClientImplObjectFactory.clonePointer(this),
|
|
5045
5045
|
FfiConverterString.lower(url),
|
|
5046
5046
|
FfiConverterOptionalMapStringString.lower(headers),
|
|
@@ -5166,7 +5166,7 @@ const uniffiCallbackInterfaceRestClient: {
|
|
|
5166
5166
|
// Create the VTable using a series of closures.
|
|
5167
5167
|
// ts automatically converts these into C callback functions.
|
|
5168
5168
|
vtable: {
|
|
5169
|
-
|
|
5169
|
+
getRequest: (
|
|
5170
5170
|
uniffiHandle: bigint,
|
|
5171
5171
|
url: Uint8Array,
|
|
5172
5172
|
headers: Uint8Array,
|
|
@@ -5177,7 +5177,7 @@ const uniffiCallbackInterfaceRestClient: {
|
|
|
5177
5177
|
signal: AbortSignal
|
|
5178
5178
|
): Promise<RestResponse> => {
|
|
5179
5179
|
const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
|
|
5180
|
-
return await jsCallback.
|
|
5180
|
+
return await jsCallback.getRequest(
|
|
5181
5181
|
FfiConverterString.lift(url),
|
|
5182
5182
|
FfiConverterOptionalMapStringString.lift(headers),
|
|
5183
5183
|
{ signal }
|
|
@@ -5214,7 +5214,7 @@ const uniffiCallbackInterfaceRestClient: {
|
|
|
5214
5214
|
);
|
|
5215
5215
|
return UniffiResult.success(uniffiForeignFuture);
|
|
5216
5216
|
},
|
|
5217
|
-
|
|
5217
|
+
postRequest: (
|
|
5218
5218
|
uniffiHandle: bigint,
|
|
5219
5219
|
url: Uint8Array,
|
|
5220
5220
|
headers: Uint8Array,
|
|
@@ -5226,7 +5226,7 @@ const uniffiCallbackInterfaceRestClient: {
|
|
|
5226
5226
|
signal: AbortSignal
|
|
5227
5227
|
): Promise<RestResponse> => {
|
|
5228
5228
|
const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
|
|
5229
|
-
return await jsCallback.
|
|
5229
|
+
return await jsCallback.postRequest(
|
|
5230
5230
|
FfiConverterString.lift(url),
|
|
5231
5231
|
FfiConverterOptionalMapStringString.lift(headers),
|
|
5232
5232
|
FfiConverterOptionalString.lift(body),
|
|
@@ -5264,7 +5264,7 @@ const uniffiCallbackInterfaceRestClient: {
|
|
|
5264
5264
|
);
|
|
5265
5265
|
return UniffiResult.success(uniffiForeignFuture);
|
|
5266
5266
|
},
|
|
5267
|
-
|
|
5267
|
+
deleteRequest: (
|
|
5268
5268
|
uniffiHandle: bigint,
|
|
5269
5269
|
url: Uint8Array,
|
|
5270
5270
|
headers: Uint8Array,
|
|
@@ -5276,7 +5276,7 @@ const uniffiCallbackInterfaceRestClient: {
|
|
|
5276
5276
|
signal: AbortSignal
|
|
5277
5277
|
): Promise<RestResponse> => {
|
|
5278
5278
|
const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
|
|
5279
|
-
return await jsCallback.
|
|
5279
|
+
return await jsCallback.deleteRequest(
|
|
5280
5280
|
FfiConverterString.lift(url),
|
|
5281
5281
|
FfiConverterOptionalMapStringString.lift(headers),
|
|
5282
5282
|
FfiConverterOptionalString.lift(body),
|
|
@@ -5423,27 +5423,27 @@ function uniffiEnsureInitialized() {
|
|
|
5423
5423
|
);
|
|
5424
5424
|
}
|
|
5425
5425
|
if (
|
|
5426
|
-
nativeModule().
|
|
5427
|
-
|
|
5426
|
+
nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_get_request() !==
|
|
5427
|
+
1702
|
|
5428
5428
|
) {
|
|
5429
5429
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
5430
|
-
'
|
|
5430
|
+
'uniffi_breez_sdk_common_checksum_method_restclient_get_request'
|
|
5431
5431
|
);
|
|
5432
5432
|
}
|
|
5433
5433
|
if (
|
|
5434
|
-
nativeModule().
|
|
5435
|
-
|
|
5434
|
+
nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_post_request() !==
|
|
5435
|
+
38998
|
|
5436
5436
|
) {
|
|
5437
5437
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
5438
|
-
'
|
|
5438
|
+
'uniffi_breez_sdk_common_checksum_method_restclient_post_request'
|
|
5439
5439
|
);
|
|
5440
5440
|
}
|
|
5441
5441
|
if (
|
|
5442
|
-
nativeModule().
|
|
5443
|
-
|
|
5442
|
+
nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_delete_request() !==
|
|
5443
|
+
26893
|
|
5444
5444
|
) {
|
|
5445
5445
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
5446
|
-
'
|
|
5446
|
+
'uniffi_breez_sdk_common_checksum_method_restclient_delete_request'
|
|
5447
5447
|
);
|
|
5448
5448
|
}
|
|
5449
5449
|
|