@synonymdev/react-native-pubky 0.9.0 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +17 -13
- package/android/src/main/java/com/pubky/PubkyModule.kt +1 -1
- package/android/src/main/java/uniffi/{pubkymobile/pubkymobile.kt → pubkycore/pubkycore.kt} +185 -150
- package/android/src/main/jniLibs/arm64-v8a/{libpubkymobile.so → libpubkycore.so} +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libpubkycore.so +0 -0
- package/android/src/main/jniLibs/x86/{libpubkymobile.so → libpubkycore.so} +0 -0
- package/android/src/main/jniLibs/x86_64/{libpubkymobile.so → libpubkycore.so} +0 -0
- package/ios/Frameworks/{PubkyMobile.xcframework → PubkyCore.xcframework}/Info.plist +8 -8
- package/ios/Frameworks/{PubkyMobile.xcframework → PubkyCore.xcframework}/ios-arm64/Headers/module.modulemap +2 -2
- package/ios/Frameworks/PubkyCore.xcframework/ios-arm64/Headers/pubkycoreFFI.h +297 -0
- package/ios/Frameworks/{PubkyMobile.xcframework/ios-arm64/libpubkymobile.a → PubkyCore.xcframework/ios-arm64/libpubkycore.a} +0 -0
- package/ios/Frameworks/{PubkyMobile.xcframework → PubkyCore.xcframework}/ios-arm64-simulator/Headers/module.modulemap +2 -2
- package/ios/Frameworks/PubkyCore.xcframework/ios-arm64-simulator/Headers/pubkycoreFFI.h +297 -0
- package/ios/Frameworks/{PubkyMobile.xcframework/ios-arm64-simulator/libpubkymobile.a → PubkyCore.xcframework/ios-arm64-simulator/libpubkycore.a} +0 -0
- package/ios/{pubkymobile.swift → pubkycore.swift} +81 -48
- package/lib/typescript/commonjs/src/index.d.ts +9 -10
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +9 -10
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +12 -7
- package/react-native-pubky.podspec +1 -1
- package/src/index.tsx +9 -9
- package/android/src/main/jniLibs/armeabi-v7a/libpubkymobile.so +0 -0
- package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64/Headers/mobileFFI.h +0 -188
- package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64/Headers/pubkymobileFFI.h +0 -292
- package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64/libmobile.a +0 -0
- package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64-simulator/Headers/mobileFFI.h +0 -188
- package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64-simulator/Headers/pubkymobileFFI.h +0 -292
- package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64-simulator/libmobile.a +0 -0
package/src/index.tsx
CHANGED
@@ -53,12 +53,12 @@ export async function auth(
|
|
53
53
|
return ok(res[1]);
|
54
54
|
}
|
55
55
|
|
56
|
-
type Capability = {
|
56
|
+
export type Capability = {
|
57
57
|
path: string;
|
58
58
|
permission: string;
|
59
59
|
};
|
60
60
|
|
61
|
-
type PubkyAuthDetails = {
|
61
|
+
export type PubkyAuthDetails = {
|
62
62
|
relay: string;
|
63
63
|
capabilities: Capability[];
|
64
64
|
secret: string;
|
@@ -95,7 +95,7 @@ export async function publish(
|
|
95
95
|
}
|
96
96
|
}
|
97
97
|
|
98
|
-
interface ITxt {
|
98
|
+
export interface ITxt {
|
99
99
|
cache_flush: boolean;
|
100
100
|
class: string;
|
101
101
|
name: string;
|
@@ -105,7 +105,7 @@ interface ITxt {
|
|
105
105
|
};
|
106
106
|
ttl: number;
|
107
107
|
}
|
108
|
-
interface IDNSPacket {
|
108
|
+
export interface IDNSPacket {
|
109
109
|
signed_packet: string;
|
110
110
|
public_key: string;
|
111
111
|
signature: string;
|
@@ -208,7 +208,7 @@ export async function publishHttps(
|
|
208
208
|
}
|
209
209
|
}
|
210
210
|
|
211
|
-
interface IHttpsRecord {
|
211
|
+
export interface IHttpsRecord {
|
212
212
|
name: string;
|
213
213
|
class: string;
|
214
214
|
ttl: number;
|
@@ -218,7 +218,7 @@ interface IHttpsRecord {
|
|
218
218
|
alpn?: string[];
|
219
219
|
}
|
220
220
|
|
221
|
-
interface IHttpsResolveResult {
|
221
|
+
export interface IHttpsResolveResult {
|
222
222
|
public_key: string;
|
223
223
|
https_records: IHttpsRecord[];
|
224
224
|
}
|
@@ -261,7 +261,7 @@ export async function deleteFile(url: string): Promise<Result<string[]>> {
|
|
261
261
|
}
|
262
262
|
}
|
263
263
|
|
264
|
-
interface SessionInfo {
|
264
|
+
export interface SessionInfo {
|
265
265
|
pubky: string;
|
266
266
|
capabilities: string[];
|
267
267
|
}
|
@@ -278,11 +278,11 @@ export async function session(pubky: string): Promise<Result<SessionInfo>> {
|
|
278
278
|
}
|
279
279
|
}
|
280
280
|
|
281
|
-
interface IPublicKeyInfo {
|
281
|
+
export interface IPublicKeyInfo {
|
282
282
|
public_key: string;
|
283
283
|
uri: string;
|
284
284
|
}
|
285
|
-
interface IGenerateSecretKey extends IPublicKeyInfo {
|
285
|
+
export interface IGenerateSecretKey extends IPublicKeyInfo {
|
286
286
|
secret_key: string;
|
287
287
|
}
|
288
288
|
export async function generateSecretKey(): Promise<Result<IGenerateSecretKey>> {
|
Binary file
|
@@ -1,188 +0,0 @@
|
|
1
|
-
// This file was autogenerated by some hot garbage in the `uniffi` crate.
|
2
|
-
// Trust me, you don't want to mess with it!
|
3
|
-
|
4
|
-
#pragma once
|
5
|
-
|
6
|
-
#include <stdbool.h>
|
7
|
-
#include <stddef.h>
|
8
|
-
#include <stdint.h>
|
9
|
-
|
10
|
-
// The following structs are used to implement the lowest level
|
11
|
-
// of the FFI, and thus useful to multiple uniffied crates.
|
12
|
-
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
|
13
|
-
#ifdef UNIFFI_SHARED_H
|
14
|
-
// We also try to prevent mixing versions of shared uniffi header structs.
|
15
|
-
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
|
16
|
-
#ifndef UNIFFI_SHARED_HEADER_V4
|
17
|
-
#error Combining helper code from multiple versions of uniffi is not supported
|
18
|
-
#endif // ndef UNIFFI_SHARED_HEADER_V4
|
19
|
-
#else
|
20
|
-
#define UNIFFI_SHARED_H
|
21
|
-
#define UNIFFI_SHARED_HEADER_V4
|
22
|
-
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
23
|
-
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
24
|
-
|
25
|
-
typedef struct RustBuffer
|
26
|
-
{
|
27
|
-
int32_t capacity;
|
28
|
-
int32_t len;
|
29
|
-
uint8_t *_Nullable data;
|
30
|
-
} RustBuffer;
|
31
|
-
|
32
|
-
typedef int32_t (*ForeignCallback)(uint64_t, int32_t, const uint8_t *_Nonnull, int32_t, RustBuffer *_Nonnull);
|
33
|
-
|
34
|
-
// Task defined in Rust that Swift executes
|
35
|
-
typedef void (*UniFfiRustTaskCallback)(const void * _Nullable, int8_t);
|
36
|
-
|
37
|
-
// Callback to execute Rust tasks using a Swift Task
|
38
|
-
//
|
39
|
-
// Args:
|
40
|
-
// executor: ForeignExecutor lowered into a size_t value
|
41
|
-
// delay: Delay in MS
|
42
|
-
// task: UniFfiRustTaskCallback to call
|
43
|
-
// task_data: data to pass the task callback
|
44
|
-
typedef int8_t (*UniFfiForeignExecutorCallback)(size_t, uint32_t, UniFfiRustTaskCallback _Nullable, const void * _Nullable);
|
45
|
-
|
46
|
-
typedef struct ForeignBytes
|
47
|
-
{
|
48
|
-
int32_t len;
|
49
|
-
const uint8_t *_Nullable data;
|
50
|
-
} ForeignBytes;
|
51
|
-
|
52
|
-
// Error definitions
|
53
|
-
typedef struct RustCallStatus {
|
54
|
-
int8_t code;
|
55
|
-
RustBuffer errorBuf;
|
56
|
-
} RustCallStatus;
|
57
|
-
|
58
|
-
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
59
|
-
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
60
|
-
#endif // def UNIFFI_SHARED_H
|
61
|
-
|
62
|
-
// Continuation callback for UniFFI Futures
|
63
|
-
typedef void (*UniFfiRustFutureContinuation)(void * _Nonnull, int8_t);
|
64
|
-
|
65
|
-
// Scaffolding functions
|
66
|
-
void* _Nonnull uniffi_mobile_fn_func_auth(RustBuffer url, RustBuffer secret_key
|
67
|
-
);
|
68
|
-
RustBuffer ffi_mobile_rustbuffer_alloc(int32_t size, RustCallStatus *_Nonnull out_status
|
69
|
-
);
|
70
|
-
RustBuffer ffi_mobile_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
|
71
|
-
);
|
72
|
-
void ffi_mobile_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
|
73
|
-
);
|
74
|
-
RustBuffer ffi_mobile_rustbuffer_reserve(RustBuffer buf, int32_t additional, RustCallStatus *_Nonnull out_status
|
75
|
-
);
|
76
|
-
void ffi_mobile_rust_future_continuation_callback_set(UniFfiRustFutureContinuation _Nonnull callback
|
77
|
-
);
|
78
|
-
void ffi_mobile_rust_future_poll_u8(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
79
|
-
);
|
80
|
-
void ffi_mobile_rust_future_cancel_u8(void* _Nonnull handle
|
81
|
-
);
|
82
|
-
void ffi_mobile_rust_future_free_u8(void* _Nonnull handle
|
83
|
-
);
|
84
|
-
uint8_t ffi_mobile_rust_future_complete_u8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
85
|
-
);
|
86
|
-
void ffi_mobile_rust_future_poll_i8(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
87
|
-
);
|
88
|
-
void ffi_mobile_rust_future_cancel_i8(void* _Nonnull handle
|
89
|
-
);
|
90
|
-
void ffi_mobile_rust_future_free_i8(void* _Nonnull handle
|
91
|
-
);
|
92
|
-
int8_t ffi_mobile_rust_future_complete_i8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
93
|
-
);
|
94
|
-
void ffi_mobile_rust_future_poll_u16(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
95
|
-
);
|
96
|
-
void ffi_mobile_rust_future_cancel_u16(void* _Nonnull handle
|
97
|
-
);
|
98
|
-
void ffi_mobile_rust_future_free_u16(void* _Nonnull handle
|
99
|
-
);
|
100
|
-
uint16_t ffi_mobile_rust_future_complete_u16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
101
|
-
);
|
102
|
-
void ffi_mobile_rust_future_poll_i16(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
103
|
-
);
|
104
|
-
void ffi_mobile_rust_future_cancel_i16(void* _Nonnull handle
|
105
|
-
);
|
106
|
-
void ffi_mobile_rust_future_free_i16(void* _Nonnull handle
|
107
|
-
);
|
108
|
-
int16_t ffi_mobile_rust_future_complete_i16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
109
|
-
);
|
110
|
-
void ffi_mobile_rust_future_poll_u32(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
111
|
-
);
|
112
|
-
void ffi_mobile_rust_future_cancel_u32(void* _Nonnull handle
|
113
|
-
);
|
114
|
-
void ffi_mobile_rust_future_free_u32(void* _Nonnull handle
|
115
|
-
);
|
116
|
-
uint32_t ffi_mobile_rust_future_complete_u32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
117
|
-
);
|
118
|
-
void ffi_mobile_rust_future_poll_i32(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
119
|
-
);
|
120
|
-
void ffi_mobile_rust_future_cancel_i32(void* _Nonnull handle
|
121
|
-
);
|
122
|
-
void ffi_mobile_rust_future_free_i32(void* _Nonnull handle
|
123
|
-
);
|
124
|
-
int32_t ffi_mobile_rust_future_complete_i32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
125
|
-
);
|
126
|
-
void ffi_mobile_rust_future_poll_u64(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
127
|
-
);
|
128
|
-
void ffi_mobile_rust_future_cancel_u64(void* _Nonnull handle
|
129
|
-
);
|
130
|
-
void ffi_mobile_rust_future_free_u64(void* _Nonnull handle
|
131
|
-
);
|
132
|
-
uint64_t ffi_mobile_rust_future_complete_u64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
133
|
-
);
|
134
|
-
void ffi_mobile_rust_future_poll_i64(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
135
|
-
);
|
136
|
-
void ffi_mobile_rust_future_cancel_i64(void* _Nonnull handle
|
137
|
-
);
|
138
|
-
void ffi_mobile_rust_future_free_i64(void* _Nonnull handle
|
139
|
-
);
|
140
|
-
int64_t ffi_mobile_rust_future_complete_i64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
141
|
-
);
|
142
|
-
void ffi_mobile_rust_future_poll_f32(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
143
|
-
);
|
144
|
-
void ffi_mobile_rust_future_cancel_f32(void* _Nonnull handle
|
145
|
-
);
|
146
|
-
void ffi_mobile_rust_future_free_f32(void* _Nonnull handle
|
147
|
-
);
|
148
|
-
float ffi_mobile_rust_future_complete_f32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
149
|
-
);
|
150
|
-
void ffi_mobile_rust_future_poll_f64(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
151
|
-
);
|
152
|
-
void ffi_mobile_rust_future_cancel_f64(void* _Nonnull handle
|
153
|
-
);
|
154
|
-
void ffi_mobile_rust_future_free_f64(void* _Nonnull handle
|
155
|
-
);
|
156
|
-
double ffi_mobile_rust_future_complete_f64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
157
|
-
);
|
158
|
-
void ffi_mobile_rust_future_poll_pointer(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
159
|
-
);
|
160
|
-
void ffi_mobile_rust_future_cancel_pointer(void* _Nonnull handle
|
161
|
-
);
|
162
|
-
void ffi_mobile_rust_future_free_pointer(void* _Nonnull handle
|
163
|
-
);
|
164
|
-
void*_Nonnull ffi_mobile_rust_future_complete_pointer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
165
|
-
);
|
166
|
-
void ffi_mobile_rust_future_poll_rust_buffer(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
167
|
-
);
|
168
|
-
void ffi_mobile_rust_future_cancel_rust_buffer(void* _Nonnull handle
|
169
|
-
);
|
170
|
-
void ffi_mobile_rust_future_free_rust_buffer(void* _Nonnull handle
|
171
|
-
);
|
172
|
-
RustBuffer ffi_mobile_rust_future_complete_rust_buffer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
173
|
-
);
|
174
|
-
void ffi_mobile_rust_future_poll_void(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
175
|
-
);
|
176
|
-
void ffi_mobile_rust_future_cancel_void(void* _Nonnull handle
|
177
|
-
);
|
178
|
-
void ffi_mobile_rust_future_free_void(void* _Nonnull handle
|
179
|
-
);
|
180
|
-
void ffi_mobile_rust_future_complete_void(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
181
|
-
);
|
182
|
-
uint16_t uniffi_mobile_checksum_func_auth(void
|
183
|
-
|
184
|
-
);
|
185
|
-
uint32_t ffi_mobile_uniffi_contract_version(void
|
186
|
-
|
187
|
-
);
|
188
|
-
|
@@ -1,292 +0,0 @@
|
|
1
|
-
// This file was autogenerated by some hot garbage in the `uniffi` crate.
|
2
|
-
// Trust me, you don't want to mess with it!
|
3
|
-
|
4
|
-
#pragma once
|
5
|
-
|
6
|
-
#include <stdbool.h>
|
7
|
-
#include <stddef.h>
|
8
|
-
#include <stdint.h>
|
9
|
-
|
10
|
-
// The following structs are used to implement the lowest level
|
11
|
-
// of the FFI, and thus useful to multiple uniffied crates.
|
12
|
-
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
|
13
|
-
#ifdef UNIFFI_SHARED_H
|
14
|
-
// We also try to prevent mixing versions of shared uniffi header structs.
|
15
|
-
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
|
16
|
-
#ifndef UNIFFI_SHARED_HEADER_V4
|
17
|
-
#error Combining helper code from multiple versions of uniffi is not supported
|
18
|
-
#endif // ndef UNIFFI_SHARED_HEADER_V4
|
19
|
-
#else
|
20
|
-
#define UNIFFI_SHARED_H
|
21
|
-
#define UNIFFI_SHARED_HEADER_V4
|
22
|
-
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
23
|
-
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
24
|
-
|
25
|
-
typedef struct RustBuffer
|
26
|
-
{
|
27
|
-
int32_t capacity;
|
28
|
-
int32_t len;
|
29
|
-
uint8_t *_Nullable data;
|
30
|
-
} RustBuffer;
|
31
|
-
|
32
|
-
typedef int32_t (*ForeignCallback)(uint64_t, int32_t, const uint8_t *_Nonnull, int32_t, RustBuffer *_Nonnull);
|
33
|
-
|
34
|
-
// Task defined in Rust that Swift executes
|
35
|
-
typedef void (*UniFfiRustTaskCallback)(const void * _Nullable, int8_t);
|
36
|
-
|
37
|
-
// Callback to execute Rust tasks using a Swift Task
|
38
|
-
//
|
39
|
-
// Args:
|
40
|
-
// executor: ForeignExecutor lowered into a size_t value
|
41
|
-
// delay: Delay in MS
|
42
|
-
// task: UniFfiRustTaskCallback to call
|
43
|
-
// task_data: data to pass the task callback
|
44
|
-
typedef int8_t (*UniFfiForeignExecutorCallback)(size_t, uint32_t, UniFfiRustTaskCallback _Nullable, const void * _Nullable);
|
45
|
-
|
46
|
-
typedef struct ForeignBytes
|
47
|
-
{
|
48
|
-
int32_t len;
|
49
|
-
const uint8_t *_Nullable data;
|
50
|
-
} ForeignBytes;
|
51
|
-
|
52
|
-
// Error definitions
|
53
|
-
typedef struct RustCallStatus {
|
54
|
-
int8_t code;
|
55
|
-
RustBuffer errorBuf;
|
56
|
-
} RustCallStatus;
|
57
|
-
|
58
|
-
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
59
|
-
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
60
|
-
#endif // def UNIFFI_SHARED_H
|
61
|
-
|
62
|
-
// Continuation callback for UniFFI Futures
|
63
|
-
typedef void (*UniFfiRustFutureContinuation)(void * _Nonnull, int8_t);
|
64
|
-
|
65
|
-
// Scaffolding functions
|
66
|
-
void uniffi_pubkymobile_fn_free_eventnotifier(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
67
|
-
);
|
68
|
-
void uniffi_pubkymobile_fn_init_callback_eventlistener(ForeignCallback _Nonnull callback_stub, RustCallStatus *_Nonnull out_status
|
69
|
-
);
|
70
|
-
RustBuffer uniffi_pubkymobile_fn_func_auth(RustBuffer url, RustBuffer secret_key, RustCallStatus *_Nonnull out_status
|
71
|
-
);
|
72
|
-
RustBuffer uniffi_pubkymobile_fn_func_create_recovery_file(RustBuffer secret_key, RustBuffer passphrase, RustCallStatus *_Nonnull out_status
|
73
|
-
);
|
74
|
-
RustBuffer uniffi_pubkymobile_fn_func_decrypt_recovery_file(RustBuffer recovery_file, RustBuffer passphrase, RustCallStatus *_Nonnull out_status
|
75
|
-
);
|
76
|
-
RustBuffer uniffi_pubkymobile_fn_func_delete_file(RustBuffer url, RustCallStatus *_Nonnull out_status
|
77
|
-
);
|
78
|
-
RustBuffer uniffi_pubkymobile_fn_func_generate_secret_key(RustCallStatus *_Nonnull out_status
|
79
|
-
|
80
|
-
);
|
81
|
-
RustBuffer uniffi_pubkymobile_fn_func_get(RustBuffer url, RustCallStatus *_Nonnull out_status
|
82
|
-
);
|
83
|
-
RustBuffer uniffi_pubkymobile_fn_func_get_public_key_from_secret_key(RustBuffer secret_key, RustCallStatus *_Nonnull out_status
|
84
|
-
);
|
85
|
-
RustBuffer uniffi_pubkymobile_fn_func_list(RustBuffer url, RustCallStatus *_Nonnull out_status
|
86
|
-
);
|
87
|
-
RustBuffer uniffi_pubkymobile_fn_func_parse_auth_url(RustBuffer url, RustCallStatus *_Nonnull out_status
|
88
|
-
);
|
89
|
-
RustBuffer uniffi_pubkymobile_fn_func_publish(RustBuffer record_name, RustBuffer record_content, RustBuffer secret_key, RustCallStatus *_Nonnull out_status
|
90
|
-
);
|
91
|
-
RustBuffer uniffi_pubkymobile_fn_func_publish_https(RustBuffer record_name, RustBuffer target, RustBuffer secret_key, RustCallStatus *_Nonnull out_status
|
92
|
-
);
|
93
|
-
RustBuffer uniffi_pubkymobile_fn_func_put(RustBuffer url, RustBuffer content, RustCallStatus *_Nonnull out_status
|
94
|
-
);
|
95
|
-
void uniffi_pubkymobile_fn_func_remove_event_listener(RustCallStatus *_Nonnull out_status
|
96
|
-
|
97
|
-
);
|
98
|
-
RustBuffer uniffi_pubkymobile_fn_func_resolve(RustBuffer public_key, RustCallStatus *_Nonnull out_status
|
99
|
-
);
|
100
|
-
RustBuffer uniffi_pubkymobile_fn_func_resolve_https(RustBuffer public_key, RustCallStatus *_Nonnull out_status
|
101
|
-
);
|
102
|
-
RustBuffer uniffi_pubkymobile_fn_func_session(RustBuffer pubky, RustCallStatus *_Nonnull out_status
|
103
|
-
);
|
104
|
-
void uniffi_pubkymobile_fn_func_set_event_listener(uint64_t listener, RustCallStatus *_Nonnull out_status
|
105
|
-
);
|
106
|
-
RustBuffer uniffi_pubkymobile_fn_func_sign_in(RustBuffer secret_key, RustCallStatus *_Nonnull out_status
|
107
|
-
);
|
108
|
-
RustBuffer uniffi_pubkymobile_fn_func_sign_out(RustBuffer secret_key, RustCallStatus *_Nonnull out_status
|
109
|
-
);
|
110
|
-
RustBuffer uniffi_pubkymobile_fn_func_sign_up(RustBuffer secret_key, RustBuffer homeserver, RustCallStatus *_Nonnull out_status
|
111
|
-
);
|
112
|
-
RustBuffer ffi_pubkymobile_rustbuffer_alloc(int32_t size, RustCallStatus *_Nonnull out_status
|
113
|
-
);
|
114
|
-
RustBuffer ffi_pubkymobile_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
|
115
|
-
);
|
116
|
-
void ffi_pubkymobile_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
|
117
|
-
);
|
118
|
-
RustBuffer ffi_pubkymobile_rustbuffer_reserve(RustBuffer buf, int32_t additional, RustCallStatus *_Nonnull out_status
|
119
|
-
);
|
120
|
-
void ffi_pubkymobile_rust_future_continuation_callback_set(UniFfiRustFutureContinuation _Nonnull callback
|
121
|
-
);
|
122
|
-
void ffi_pubkymobile_rust_future_poll_u8(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
123
|
-
);
|
124
|
-
void ffi_pubkymobile_rust_future_cancel_u8(void* _Nonnull handle
|
125
|
-
);
|
126
|
-
void ffi_pubkymobile_rust_future_free_u8(void* _Nonnull handle
|
127
|
-
);
|
128
|
-
uint8_t ffi_pubkymobile_rust_future_complete_u8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
129
|
-
);
|
130
|
-
void ffi_pubkymobile_rust_future_poll_i8(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
131
|
-
);
|
132
|
-
void ffi_pubkymobile_rust_future_cancel_i8(void* _Nonnull handle
|
133
|
-
);
|
134
|
-
void ffi_pubkymobile_rust_future_free_i8(void* _Nonnull handle
|
135
|
-
);
|
136
|
-
int8_t ffi_pubkymobile_rust_future_complete_i8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
137
|
-
);
|
138
|
-
void ffi_pubkymobile_rust_future_poll_u16(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
139
|
-
);
|
140
|
-
void ffi_pubkymobile_rust_future_cancel_u16(void* _Nonnull handle
|
141
|
-
);
|
142
|
-
void ffi_pubkymobile_rust_future_free_u16(void* _Nonnull handle
|
143
|
-
);
|
144
|
-
uint16_t ffi_pubkymobile_rust_future_complete_u16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
145
|
-
);
|
146
|
-
void ffi_pubkymobile_rust_future_poll_i16(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
147
|
-
);
|
148
|
-
void ffi_pubkymobile_rust_future_cancel_i16(void* _Nonnull handle
|
149
|
-
);
|
150
|
-
void ffi_pubkymobile_rust_future_free_i16(void* _Nonnull handle
|
151
|
-
);
|
152
|
-
int16_t ffi_pubkymobile_rust_future_complete_i16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
153
|
-
);
|
154
|
-
void ffi_pubkymobile_rust_future_poll_u32(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
155
|
-
);
|
156
|
-
void ffi_pubkymobile_rust_future_cancel_u32(void* _Nonnull handle
|
157
|
-
);
|
158
|
-
void ffi_pubkymobile_rust_future_free_u32(void* _Nonnull handle
|
159
|
-
);
|
160
|
-
uint32_t ffi_pubkymobile_rust_future_complete_u32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
161
|
-
);
|
162
|
-
void ffi_pubkymobile_rust_future_poll_i32(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
163
|
-
);
|
164
|
-
void ffi_pubkymobile_rust_future_cancel_i32(void* _Nonnull handle
|
165
|
-
);
|
166
|
-
void ffi_pubkymobile_rust_future_free_i32(void* _Nonnull handle
|
167
|
-
);
|
168
|
-
int32_t ffi_pubkymobile_rust_future_complete_i32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
169
|
-
);
|
170
|
-
void ffi_pubkymobile_rust_future_poll_u64(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
171
|
-
);
|
172
|
-
void ffi_pubkymobile_rust_future_cancel_u64(void* _Nonnull handle
|
173
|
-
);
|
174
|
-
void ffi_pubkymobile_rust_future_free_u64(void* _Nonnull handle
|
175
|
-
);
|
176
|
-
uint64_t ffi_pubkymobile_rust_future_complete_u64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
177
|
-
);
|
178
|
-
void ffi_pubkymobile_rust_future_poll_i64(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
179
|
-
);
|
180
|
-
void ffi_pubkymobile_rust_future_cancel_i64(void* _Nonnull handle
|
181
|
-
);
|
182
|
-
void ffi_pubkymobile_rust_future_free_i64(void* _Nonnull handle
|
183
|
-
);
|
184
|
-
int64_t ffi_pubkymobile_rust_future_complete_i64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
185
|
-
);
|
186
|
-
void ffi_pubkymobile_rust_future_poll_f32(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
187
|
-
);
|
188
|
-
void ffi_pubkymobile_rust_future_cancel_f32(void* _Nonnull handle
|
189
|
-
);
|
190
|
-
void ffi_pubkymobile_rust_future_free_f32(void* _Nonnull handle
|
191
|
-
);
|
192
|
-
float ffi_pubkymobile_rust_future_complete_f32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
193
|
-
);
|
194
|
-
void ffi_pubkymobile_rust_future_poll_f64(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
195
|
-
);
|
196
|
-
void ffi_pubkymobile_rust_future_cancel_f64(void* _Nonnull handle
|
197
|
-
);
|
198
|
-
void ffi_pubkymobile_rust_future_free_f64(void* _Nonnull handle
|
199
|
-
);
|
200
|
-
double ffi_pubkymobile_rust_future_complete_f64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
201
|
-
);
|
202
|
-
void ffi_pubkymobile_rust_future_poll_pointer(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
203
|
-
);
|
204
|
-
void ffi_pubkymobile_rust_future_cancel_pointer(void* _Nonnull handle
|
205
|
-
);
|
206
|
-
void ffi_pubkymobile_rust_future_free_pointer(void* _Nonnull handle
|
207
|
-
);
|
208
|
-
void*_Nonnull ffi_pubkymobile_rust_future_complete_pointer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
209
|
-
);
|
210
|
-
void ffi_pubkymobile_rust_future_poll_rust_buffer(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
211
|
-
);
|
212
|
-
void ffi_pubkymobile_rust_future_cancel_rust_buffer(void* _Nonnull handle
|
213
|
-
);
|
214
|
-
void ffi_pubkymobile_rust_future_free_rust_buffer(void* _Nonnull handle
|
215
|
-
);
|
216
|
-
RustBuffer ffi_pubkymobile_rust_future_complete_rust_buffer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
217
|
-
);
|
218
|
-
void ffi_pubkymobile_rust_future_poll_void(void* _Nonnull handle, void* _Nonnull uniffi_callback
|
219
|
-
);
|
220
|
-
void ffi_pubkymobile_rust_future_cancel_void(void* _Nonnull handle
|
221
|
-
);
|
222
|
-
void ffi_pubkymobile_rust_future_free_void(void* _Nonnull handle
|
223
|
-
);
|
224
|
-
void ffi_pubkymobile_rust_future_complete_void(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
|
225
|
-
);
|
226
|
-
uint16_t uniffi_pubkymobile_checksum_func_auth(void
|
227
|
-
|
228
|
-
);
|
229
|
-
uint16_t uniffi_pubkymobile_checksum_func_create_recovery_file(void
|
230
|
-
|
231
|
-
);
|
232
|
-
uint16_t uniffi_pubkymobile_checksum_func_decrypt_recovery_file(void
|
233
|
-
|
234
|
-
);
|
235
|
-
uint16_t uniffi_pubkymobile_checksum_func_delete_file(void
|
236
|
-
|
237
|
-
);
|
238
|
-
uint16_t uniffi_pubkymobile_checksum_func_generate_secret_key(void
|
239
|
-
|
240
|
-
);
|
241
|
-
uint16_t uniffi_pubkymobile_checksum_func_get(void
|
242
|
-
|
243
|
-
);
|
244
|
-
uint16_t uniffi_pubkymobile_checksum_func_get_public_key_from_secret_key(void
|
245
|
-
|
246
|
-
);
|
247
|
-
uint16_t uniffi_pubkymobile_checksum_func_list(void
|
248
|
-
|
249
|
-
);
|
250
|
-
uint16_t uniffi_pubkymobile_checksum_func_parse_auth_url(void
|
251
|
-
|
252
|
-
);
|
253
|
-
uint16_t uniffi_pubkymobile_checksum_func_publish(void
|
254
|
-
|
255
|
-
);
|
256
|
-
uint16_t uniffi_pubkymobile_checksum_func_publish_https(void
|
257
|
-
|
258
|
-
);
|
259
|
-
uint16_t uniffi_pubkymobile_checksum_func_put(void
|
260
|
-
|
261
|
-
);
|
262
|
-
uint16_t uniffi_pubkymobile_checksum_func_remove_event_listener(void
|
263
|
-
|
264
|
-
);
|
265
|
-
uint16_t uniffi_pubkymobile_checksum_func_resolve(void
|
266
|
-
|
267
|
-
);
|
268
|
-
uint16_t uniffi_pubkymobile_checksum_func_resolve_https(void
|
269
|
-
|
270
|
-
);
|
271
|
-
uint16_t uniffi_pubkymobile_checksum_func_session(void
|
272
|
-
|
273
|
-
);
|
274
|
-
uint16_t uniffi_pubkymobile_checksum_func_set_event_listener(void
|
275
|
-
|
276
|
-
);
|
277
|
-
uint16_t uniffi_pubkymobile_checksum_func_sign_in(void
|
278
|
-
|
279
|
-
);
|
280
|
-
uint16_t uniffi_pubkymobile_checksum_func_sign_out(void
|
281
|
-
|
282
|
-
);
|
283
|
-
uint16_t uniffi_pubkymobile_checksum_func_sign_up(void
|
284
|
-
|
285
|
-
);
|
286
|
-
uint16_t uniffi_pubkymobile_checksum_method_eventlistener_on_event_occurred(void
|
287
|
-
|
288
|
-
);
|
289
|
-
uint32_t ffi_pubkymobile_uniffi_contract_version(void
|
290
|
-
|
291
|
-
);
|
292
|
-
|
Binary file
|