@filen/sdk-rs 0.3.26 → 0.3.30
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/FilenSdkRsFramework.xcframework/ios-arm64/libfilen_sdk_rs.a +0 -0
- package/FilenSdkRsFramework.xcframework/ios-arm64-simulator/libfilen_sdk_rs.a +0 -0
- package/android/src/main/jniLibs/arm64-v8a/libfilen_sdk_rs.so +0 -0
- package/android/src/main/jniLibs/x86_64/libfilen_sdk_rs.so +0 -0
- package/cpp/generated/filen_sdk_rs.cpp +35 -0
- package/cpp/generated/filen_sdk_rs.hpp +2 -0
- package/package.json +29 -4
- package/sdk-rs.d.ts +292 -290
- package/sdk-rs.js +504 -496
- package/sdk-rs_bg.wasm +0 -0
- package/sdk-rs_bg.wasm.d.ts +91 -90
- package/service-worker/sdk-rs.d.ts +272 -0
- package/service-worker/sdk-rs.js +1207 -0
- package/service-worker/sdk-rs_bg.wasm +0 -0
- package/service-worker/sdk-rs_bg.wasm.d.ts +42 -0
- package/src/generated/filen_sdk_rs-ffi.ts +2 -0
- package/src/generated/filen_sdk_rs.ts +33 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -398,6 +398,9 @@ extern "C" {
|
|
|
398
398
|
/*handle*/ uint64_t uniffi_filen_sdk_rs_fn_method_jsclient_list_recents(
|
|
399
399
|
void * ptr
|
|
400
400
|
);
|
|
401
|
+
/*handle*/ uint64_t uniffi_filen_sdk_rs_fn_method_jsclient_list_trash(
|
|
402
|
+
void * ptr
|
|
403
|
+
);
|
|
401
404
|
/*handle*/ uint64_t uniffi_filen_sdk_rs_fn_method_jsclient_lock_drive(
|
|
402
405
|
void * ptr
|
|
403
406
|
);
|
|
@@ -979,6 +982,8 @@ extern "C" {
|
|
|
979
982
|
);
|
|
980
983
|
uint16_t uniffi_filen_sdk_rs_checksum_method_jsclient_list_recents(
|
|
981
984
|
);
|
|
985
|
+
uint16_t uniffi_filen_sdk_rs_checksum_method_jsclient_list_trash(
|
|
986
|
+
);
|
|
982
987
|
uint16_t uniffi_filen_sdk_rs_checksum_method_jsclient_lock_drive(
|
|
983
988
|
);
|
|
984
989
|
uint16_t uniffi_filen_sdk_rs_checksum_method_jsclient_mark_chat_read(
|
|
@@ -3135,6 +3140,14 @@ NativeFilenSdkRs::NativeFilenSdkRs(
|
|
|
3135
3140
|
return this->cpp_uniffi_filen_sdk_rs_fn_method_jsclient_list_recents(rt, thisVal, args, count);
|
|
3136
3141
|
}
|
|
3137
3142
|
);
|
|
3143
|
+
props["ubrn_uniffi_filen_sdk_rs_fn_method_jsclient_list_trash"] = jsi::Function::createFromHostFunction(
|
|
3144
|
+
rt,
|
|
3145
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_filen_sdk_rs_fn_method_jsclient_list_trash"),
|
|
3146
|
+
1,
|
|
3147
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3148
|
+
return this->cpp_uniffi_filen_sdk_rs_fn_method_jsclient_list_trash(rt, thisVal, args, count);
|
|
3149
|
+
}
|
|
3150
|
+
);
|
|
3138
3151
|
props["ubrn_uniffi_filen_sdk_rs_fn_method_jsclient_lock_drive"] = jsi::Function::createFromHostFunction(
|
|
3139
3152
|
rt,
|
|
3140
3153
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_filen_sdk_rs_fn_method_jsclient_lock_drive"),
|
|
@@ -4527,6 +4540,14 @@ NativeFilenSdkRs::NativeFilenSdkRs(
|
|
|
4527
4540
|
return this->cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_list_recents(rt, thisVal, args, count);
|
|
4528
4541
|
}
|
|
4529
4542
|
);
|
|
4543
|
+
props["ubrn_uniffi_filen_sdk_rs_checksum_method_jsclient_list_trash"] = jsi::Function::createFromHostFunction(
|
|
4544
|
+
rt,
|
|
4545
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_filen_sdk_rs_checksum_method_jsclient_list_trash"),
|
|
4546
|
+
0,
|
|
4547
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4548
|
+
return this->cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_list_trash(rt, thisVal, args, count);
|
|
4549
|
+
}
|
|
4550
|
+
);
|
|
4530
4551
|
props["ubrn_uniffi_filen_sdk_rs_checksum_method_jsclient_lock_drive"] = jsi::Function::createFromHostFunction(
|
|
4531
4552
|
rt,
|
|
4532
4553
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_filen_sdk_rs_checksum_method_jsclient_lock_drive"),
|
|
@@ -5458,6 +5479,13 @@ jsi::Value NativeFilenSdkRs::cpp_uniffi_filen_sdk_rs_fn_method_jsclient_list_rec
|
|
|
5458
5479
|
);
|
|
5459
5480
|
|
|
5460
5481
|
|
|
5482
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5483
|
+
}
|
|
5484
|
+
jsi::Value NativeFilenSdkRs::cpp_uniffi_filen_sdk_rs_fn_method_jsclient_list_trash(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5485
|
+
auto value = uniffi_filen_sdk_rs_fn_method_jsclient_list_trash(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0])
|
|
5486
|
+
);
|
|
5487
|
+
|
|
5488
|
+
|
|
5461
5489
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5462
5490
|
}
|
|
5463
5491
|
jsi::Value NativeFilenSdkRs::cpp_uniffi_filen_sdk_rs_fn_method_jsclient_lock_drive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -6732,6 +6760,13 @@ jsi::Value NativeFilenSdkRs::cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_li
|
|
|
6732
6760
|
);
|
|
6733
6761
|
|
|
6734
6762
|
|
|
6763
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6764
|
+
}
|
|
6765
|
+
jsi::Value NativeFilenSdkRs::cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_list_trash(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6766
|
+
auto value = uniffi_filen_sdk_rs_checksum_method_jsclient_list_trash(
|
|
6767
|
+
);
|
|
6768
|
+
|
|
6769
|
+
|
|
6735
6770
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6736
6771
|
}
|
|
6737
6772
|
jsi::Value NativeFilenSdkRs::cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_lock_drive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -87,6 +87,7 @@ class NativeFilenSdkRs : public jsi::HostObject {
|
|
|
87
87
|
jsi::Value cpp_uniffi_filen_sdk_rs_fn_method_jsclient_list_out_shared(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
88
88
|
jsi::Value cpp_uniffi_filen_sdk_rs_fn_method_jsclient_list_outgoing_contact_requests(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
89
89
|
jsi::Value cpp_uniffi_filen_sdk_rs_fn_method_jsclient_list_recents(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
90
|
+
jsi::Value cpp_uniffi_filen_sdk_rs_fn_method_jsclient_list_trash(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
90
91
|
jsi::Value cpp_uniffi_filen_sdk_rs_fn_method_jsclient_lock_drive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
91
92
|
jsi::Value cpp_uniffi_filen_sdk_rs_fn_method_jsclient_mark_chat_read(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
92
93
|
jsi::Value cpp_uniffi_filen_sdk_rs_fn_method_jsclient_mute_chat(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -261,6 +262,7 @@ class NativeFilenSdkRs : public jsi::HostObject {
|
|
|
261
262
|
jsi::Value cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_list_out_shared(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
262
263
|
jsi::Value cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_list_outgoing_contact_requests(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
263
264
|
jsi::Value cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_list_recents(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
265
|
+
jsi::Value cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_list_trash(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
264
266
|
jsi::Value cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_lock_drive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
265
267
|
jsi::Value cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_mark_chat_read(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
266
268
|
jsi::Value cpp_uniffi_filen_sdk_rs_checksum_method_jsclient_mute_chat(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@filen/sdk-rs",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.30",
|
|
4
4
|
"description": "Filen JS SDK using filen-sdk-rs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"sdk-rs.d.ts",
|
|
22
22
|
"sdk-rs.js",
|
|
23
23
|
"snippets",
|
|
24
|
+
"service-worker",
|
|
24
25
|
"filen-sdk-worker-thread.js",
|
|
25
26
|
"android/src/main/",
|
|
26
27
|
"android/build.gradle",
|
|
@@ -37,17 +38,38 @@
|
|
|
37
38
|
"exports": {
|
|
38
39
|
".": {
|
|
39
40
|
"react-native": {
|
|
40
|
-
"
|
|
41
|
-
|
|
41
|
+
"android": {
|
|
42
|
+
"import": "./src/index.tsx",
|
|
43
|
+
"require": "./src/index.tsx",
|
|
44
|
+
"types": "./src/index.tsx",
|
|
45
|
+
"default": "./src/index.tsx"
|
|
46
|
+
},
|
|
47
|
+
"ios": {
|
|
48
|
+
"import": "./src/index.tsx",
|
|
49
|
+
"require": "./src/index.tsx",
|
|
50
|
+
"types": "./src/index.tsx",
|
|
51
|
+
"default": "./src/index.tsx"
|
|
52
|
+
},
|
|
53
|
+
"import": "./src/index.tsx",
|
|
54
|
+
"require": "./src/index.tsx",
|
|
55
|
+
"types": "./src/index.tsx",
|
|
56
|
+
"default": "./src/index.tsx"
|
|
42
57
|
},
|
|
43
58
|
"browser": {
|
|
44
59
|
"import": "./sdk-rs.js",
|
|
45
60
|
"types": "./sdk-rs.d.ts"
|
|
46
61
|
},
|
|
47
62
|
"types": "./sdk-rs.d.ts",
|
|
63
|
+
"import": "./sdk-rs.js",
|
|
48
64
|
"default": "./sdk-rs.js"
|
|
49
65
|
},
|
|
50
|
-
"./sdk-rs_bg.wasm":
|
|
66
|
+
"./sdk-rs_bg.wasm": {
|
|
67
|
+
"import": "./sdk-rs_bg.wasm",
|
|
68
|
+
"default": "./sdk-rs_bg.wasm"
|
|
69
|
+
},
|
|
70
|
+
"./service-worker/sdk-rs.js": "./service-worker/sdk-rs.js",
|
|
71
|
+
"./service-worker/sdk-rs.d.ts": "./service-worker/sdk-rs.d.ts",
|
|
72
|
+
"./service-worker/sdk-rs_bg.wasm": "./service-worker/sdk-rs_bg.wasm"
|
|
51
73
|
},
|
|
52
74
|
"sideEffects": [
|
|
53
75
|
"./sdk-rs.js"
|
|
@@ -64,11 +86,14 @@
|
|
|
64
86
|
"node": ">=23"
|
|
65
87
|
},
|
|
66
88
|
"devDependencies": {
|
|
89
|
+
"@types/serviceworker": "^0.0.165",
|
|
67
90
|
"@vitest/browser": "^3.2.4",
|
|
68
91
|
"@zip.js/zip.js": "^2.7.72",
|
|
69
92
|
"playwright": "^1.56.0",
|
|
70
93
|
"typescript": "~5.8.3",
|
|
71
94
|
"vite": "^7.1.2",
|
|
95
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
96
|
+
"vite-plugin-pwa": "^1.1.0",
|
|
72
97
|
"vite-plugin-top-level-await": "^1.6.0",
|
|
73
98
|
"vite-plugin-wasm": "^3.5.0",
|
|
74
99
|
"vitest": "^3.2.4"
|