@bitwarden/sdk-internal 0.2.0-main.394 → 0.2.0-main.396
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/VERSION +1 -1
- package/bitwarden_wasm_internal.d.ts +56 -51
- package/bitwarden_wasm_internal_bg.js +233 -232
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +19 -19
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +56 -51
- package/node/bitwarden_wasm_internal.js +237 -236
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +16 -16
- package/package.json +1 -1
|
@@ -858,18 +858,10 @@ exports.isEncryptFileError = function (error) {
|
|
|
858
858
|
}
|
|
859
859
|
};
|
|
860
860
|
|
|
861
|
-
function
|
|
862
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h9d7e5f8887506d31(
|
|
863
|
-
arg0,
|
|
864
|
-
arg1,
|
|
865
|
-
addHeapObject(arg2),
|
|
866
|
-
);
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
function wasm_bindgen__convert__closures_____invoke__hd11035e31e1056de(arg0, arg1, arg2) {
|
|
861
|
+
function wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5(arg0, arg1, arg2) {
|
|
870
862
|
try {
|
|
871
863
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
872
|
-
wasm.
|
|
864
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5(
|
|
873
865
|
retptr,
|
|
874
866
|
arg0,
|
|
875
867
|
arg1,
|
|
@@ -885,6 +877,14 @@ function wasm_bindgen__convert__closures_____invoke__hd11035e31e1056de(arg0, arg
|
|
|
885
877
|
}
|
|
886
878
|
}
|
|
887
879
|
|
|
880
|
+
function wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(arg0, arg1, arg2) {
|
|
881
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(
|
|
882
|
+
arg0,
|
|
883
|
+
arg1,
|
|
884
|
+
addHeapObject(arg2),
|
|
885
|
+
);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
888
|
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
889
889
|
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
890
890
|
}
|
|
@@ -1172,165 +1172,6 @@ if (Symbol.dispose) AuthClient.prototype[Symbol.dispose] = AuthClient.prototype.
|
|
|
1172
1172
|
|
|
1173
1173
|
exports.AuthClient = AuthClient;
|
|
1174
1174
|
|
|
1175
|
-
const BitwardenClientFinalization =
|
|
1176
|
-
typeof FinalizationRegistry === "undefined"
|
|
1177
|
-
? { register: () => {}, unregister: () => {} }
|
|
1178
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_bitwardenclient_free(ptr >>> 0, 1));
|
|
1179
|
-
/**
|
|
1180
|
-
* The main entry point for the Bitwarden SDK in WebAssembly environments
|
|
1181
|
-
*/
|
|
1182
|
-
class BitwardenClient {
|
|
1183
|
-
__destroy_into_raw() {
|
|
1184
|
-
const ptr = this.__wbg_ptr;
|
|
1185
|
-
this.__wbg_ptr = 0;
|
|
1186
|
-
BitwardenClientFinalization.unregister(this);
|
|
1187
|
-
return ptr;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
free() {
|
|
1191
|
-
const ptr = this.__destroy_into_raw();
|
|
1192
|
-
wasm.__wbg_bitwardenclient_free(ptr, 0);
|
|
1193
|
-
}
|
|
1194
|
-
/**
|
|
1195
|
-
* Initialize a new instance of the SDK client
|
|
1196
|
-
* @param {any} token_provider
|
|
1197
|
-
* @param {ClientSettings | null} [settings]
|
|
1198
|
-
*/
|
|
1199
|
-
constructor(token_provider, settings) {
|
|
1200
|
-
const ret = wasm.bitwardenclient_new(
|
|
1201
|
-
addHeapObject(token_provider),
|
|
1202
|
-
isLikeNone(settings) ? 0 : addHeapObject(settings),
|
|
1203
|
-
);
|
|
1204
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1205
|
-
BitwardenClientFinalization.register(this, this.__wbg_ptr, this);
|
|
1206
|
-
return this;
|
|
1207
|
-
}
|
|
1208
|
-
/**
|
|
1209
|
-
* Test method, echoes back the input
|
|
1210
|
-
* @param {string} msg
|
|
1211
|
-
* @returns {string}
|
|
1212
|
-
*/
|
|
1213
|
-
echo(msg) {
|
|
1214
|
-
let deferred2_0;
|
|
1215
|
-
let deferred2_1;
|
|
1216
|
-
try {
|
|
1217
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1218
|
-
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1219
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1220
|
-
wasm.bitwardenclient_echo(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1221
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1222
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1223
|
-
deferred2_0 = r0;
|
|
1224
|
-
deferred2_1 = r1;
|
|
1225
|
-
return getStringFromWasm0(r0, r1);
|
|
1226
|
-
} finally {
|
|
1227
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1228
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* Returns the current SDK version
|
|
1233
|
-
* @returns {string}
|
|
1234
|
-
*/
|
|
1235
|
-
version() {
|
|
1236
|
-
let deferred1_0;
|
|
1237
|
-
let deferred1_1;
|
|
1238
|
-
try {
|
|
1239
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1240
|
-
wasm.bitwardenclient_version(retptr, this.__wbg_ptr);
|
|
1241
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1242
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1243
|
-
deferred1_0 = r0;
|
|
1244
|
-
deferred1_1 = r1;
|
|
1245
|
-
return getStringFromWasm0(r0, r1);
|
|
1246
|
-
} finally {
|
|
1247
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1248
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
/**
|
|
1252
|
-
* Test method, always throws an error
|
|
1253
|
-
* @param {string} msg
|
|
1254
|
-
*/
|
|
1255
|
-
throw(msg) {
|
|
1256
|
-
try {
|
|
1257
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1258
|
-
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1259
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1260
|
-
wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1261
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1262
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1263
|
-
if (r1) {
|
|
1264
|
-
throw takeObject(r0);
|
|
1265
|
-
}
|
|
1266
|
-
} finally {
|
|
1267
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
/**
|
|
1271
|
-
* Test method, calls http endpoint
|
|
1272
|
-
* @param {string} url
|
|
1273
|
-
* @returns {Promise<string>}
|
|
1274
|
-
*/
|
|
1275
|
-
http_get(url) {
|
|
1276
|
-
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1277
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1278
|
-
const ret = wasm.bitwardenclient_http_get(this.__wbg_ptr, ptr0, len0);
|
|
1279
|
-
return takeObject(ret);
|
|
1280
|
-
}
|
|
1281
|
-
/**
|
|
1282
|
-
* Auth related operations.
|
|
1283
|
-
* @returns {AuthClient}
|
|
1284
|
-
*/
|
|
1285
|
-
auth() {
|
|
1286
|
-
const ret = wasm.bitwardenclient_auth(this.__wbg_ptr);
|
|
1287
|
-
return AuthClient.__wrap(ret);
|
|
1288
|
-
}
|
|
1289
|
-
/**
|
|
1290
|
-
* Crypto related operations.
|
|
1291
|
-
* @returns {CryptoClient}
|
|
1292
|
-
*/
|
|
1293
|
-
crypto() {
|
|
1294
|
-
const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
|
|
1295
|
-
return CryptoClient.__wrap(ret);
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* Vault item related operations.
|
|
1299
|
-
* @returns {VaultClient}
|
|
1300
|
-
*/
|
|
1301
|
-
vault() {
|
|
1302
|
-
const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
|
|
1303
|
-
return VaultClient.__wrap(ret);
|
|
1304
|
-
}
|
|
1305
|
-
/**
|
|
1306
|
-
* Constructs a specific client for platform-specific functionality
|
|
1307
|
-
* @returns {PlatformClient}
|
|
1308
|
-
*/
|
|
1309
|
-
platform() {
|
|
1310
|
-
const ret = wasm.bitwardenclient_platform(this.__wbg_ptr);
|
|
1311
|
-
return PlatformClient.__wrap(ret);
|
|
1312
|
-
}
|
|
1313
|
-
/**
|
|
1314
|
-
* Constructs a specific client for generating passwords and passphrases
|
|
1315
|
-
* @returns {GeneratorClient}
|
|
1316
|
-
*/
|
|
1317
|
-
generator() {
|
|
1318
|
-
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
1319
|
-
return GeneratorClient.__wrap(ret);
|
|
1320
|
-
}
|
|
1321
|
-
/**
|
|
1322
|
-
* Exporter related operations.
|
|
1323
|
-
* @returns {ExporterClient}
|
|
1324
|
-
*/
|
|
1325
|
-
exporters() {
|
|
1326
|
-
const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
|
|
1327
|
-
return ExporterClient.__wrap(ret);
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
if (Symbol.dispose) BitwardenClient.prototype[Symbol.dispose] = BitwardenClient.prototype.free;
|
|
1331
|
-
|
|
1332
|
-
exports.BitwardenClient = BitwardenClient;
|
|
1333
|
-
|
|
1334
1175
|
const CipherRiskClientFinalization =
|
|
1335
1176
|
typeof FinalizationRegistry === "undefined"
|
|
1336
1177
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3171,6 +3012,166 @@ if (Symbol.dispose) OutgoingMessage.prototype[Symbol.dispose] = OutgoingMessage.
|
|
|
3171
3012
|
|
|
3172
3013
|
exports.OutgoingMessage = OutgoingMessage;
|
|
3173
3014
|
|
|
3015
|
+
const PasswordManagerClientFinalization =
|
|
3016
|
+
typeof FinalizationRegistry === "undefined"
|
|
3017
|
+
? { register: () => {}, unregister: () => {} }
|
|
3018
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_passwordmanagerclient_free(ptr >>> 0, 1));
|
|
3019
|
+
/**
|
|
3020
|
+
* The main entry point for the Bitwarden SDK in WebAssembly environments
|
|
3021
|
+
*/
|
|
3022
|
+
class PasswordManagerClient {
|
|
3023
|
+
__destroy_into_raw() {
|
|
3024
|
+
const ptr = this.__wbg_ptr;
|
|
3025
|
+
this.__wbg_ptr = 0;
|
|
3026
|
+
PasswordManagerClientFinalization.unregister(this);
|
|
3027
|
+
return ptr;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
free() {
|
|
3031
|
+
const ptr = this.__destroy_into_raw();
|
|
3032
|
+
wasm.__wbg_passwordmanagerclient_free(ptr, 0);
|
|
3033
|
+
}
|
|
3034
|
+
/**
|
|
3035
|
+
* Initialize a new instance of the SDK client
|
|
3036
|
+
* @param {any} token_provider
|
|
3037
|
+
* @param {ClientSettings | null} [settings]
|
|
3038
|
+
*/
|
|
3039
|
+
constructor(token_provider, settings) {
|
|
3040
|
+
const ret = wasm.passwordmanagerclient_new(
|
|
3041
|
+
addHeapObject(token_provider),
|
|
3042
|
+
isLikeNone(settings) ? 0 : addHeapObject(settings),
|
|
3043
|
+
);
|
|
3044
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3045
|
+
PasswordManagerClientFinalization.register(this, this.__wbg_ptr, this);
|
|
3046
|
+
return this;
|
|
3047
|
+
}
|
|
3048
|
+
/**
|
|
3049
|
+
* Test method, echoes back the input
|
|
3050
|
+
* @param {string} msg
|
|
3051
|
+
* @returns {string}
|
|
3052
|
+
*/
|
|
3053
|
+
echo(msg) {
|
|
3054
|
+
let deferred2_0;
|
|
3055
|
+
let deferred2_1;
|
|
3056
|
+
try {
|
|
3057
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3058
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3059
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3060
|
+
wasm.passwordmanagerclient_echo(retptr, this.__wbg_ptr, ptr0, len0);
|
|
3061
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3062
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3063
|
+
deferred2_0 = r0;
|
|
3064
|
+
deferred2_1 = r1;
|
|
3065
|
+
return getStringFromWasm0(r0, r1);
|
|
3066
|
+
} finally {
|
|
3067
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3068
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
/**
|
|
3072
|
+
* Returns the current SDK version
|
|
3073
|
+
* @returns {string}
|
|
3074
|
+
*/
|
|
3075
|
+
version() {
|
|
3076
|
+
let deferred1_0;
|
|
3077
|
+
let deferred1_1;
|
|
3078
|
+
try {
|
|
3079
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3080
|
+
wasm.passwordmanagerclient_version(retptr, this.__wbg_ptr);
|
|
3081
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3082
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3083
|
+
deferred1_0 = r0;
|
|
3084
|
+
deferred1_1 = r1;
|
|
3085
|
+
return getStringFromWasm0(r0, r1);
|
|
3086
|
+
} finally {
|
|
3087
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3088
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
/**
|
|
3092
|
+
* Test method, always throws an error
|
|
3093
|
+
* @param {string} msg
|
|
3094
|
+
*/
|
|
3095
|
+
throw(msg) {
|
|
3096
|
+
try {
|
|
3097
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3098
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3099
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3100
|
+
wasm.passwordmanagerclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
|
|
3101
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3102
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3103
|
+
if (r1) {
|
|
3104
|
+
throw takeObject(r0);
|
|
3105
|
+
}
|
|
3106
|
+
} finally {
|
|
3107
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
/**
|
|
3111
|
+
* Test method, calls http endpoint
|
|
3112
|
+
* @param {string} url
|
|
3113
|
+
* @returns {Promise<string>}
|
|
3114
|
+
*/
|
|
3115
|
+
http_get(url) {
|
|
3116
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3117
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3118
|
+
const ret = wasm.passwordmanagerclient_http_get(this.__wbg_ptr, ptr0, len0);
|
|
3119
|
+
return takeObject(ret);
|
|
3120
|
+
}
|
|
3121
|
+
/**
|
|
3122
|
+
* Auth related operations.
|
|
3123
|
+
* @returns {AuthClient}
|
|
3124
|
+
*/
|
|
3125
|
+
auth() {
|
|
3126
|
+
const ret = wasm.passwordmanagerclient_auth(this.__wbg_ptr);
|
|
3127
|
+
return AuthClient.__wrap(ret);
|
|
3128
|
+
}
|
|
3129
|
+
/**
|
|
3130
|
+
* Crypto related operations.
|
|
3131
|
+
* @returns {CryptoClient}
|
|
3132
|
+
*/
|
|
3133
|
+
crypto() {
|
|
3134
|
+
const ret = wasm.passwordmanagerclient_crypto(this.__wbg_ptr);
|
|
3135
|
+
return CryptoClient.__wrap(ret);
|
|
3136
|
+
}
|
|
3137
|
+
/**
|
|
3138
|
+
* Vault item related operations.
|
|
3139
|
+
* @returns {VaultClient}
|
|
3140
|
+
*/
|
|
3141
|
+
vault() {
|
|
3142
|
+
const ret = wasm.passwordmanagerclient_vault(this.__wbg_ptr);
|
|
3143
|
+
return VaultClient.__wrap(ret);
|
|
3144
|
+
}
|
|
3145
|
+
/**
|
|
3146
|
+
* Constructs a specific client for platform-specific functionality
|
|
3147
|
+
* @returns {PlatformClient}
|
|
3148
|
+
*/
|
|
3149
|
+
platform() {
|
|
3150
|
+
const ret = wasm.passwordmanagerclient_platform(this.__wbg_ptr);
|
|
3151
|
+
return PlatformClient.__wrap(ret);
|
|
3152
|
+
}
|
|
3153
|
+
/**
|
|
3154
|
+
* Constructs a specific client for generating passwords and passphrases
|
|
3155
|
+
* @returns {GeneratorClient}
|
|
3156
|
+
*/
|
|
3157
|
+
generator() {
|
|
3158
|
+
const ret = wasm.passwordmanagerclient_generator(this.__wbg_ptr);
|
|
3159
|
+
return GeneratorClient.__wrap(ret);
|
|
3160
|
+
}
|
|
3161
|
+
/**
|
|
3162
|
+
* Exporter related operations.
|
|
3163
|
+
* @returns {ExporterClient}
|
|
3164
|
+
*/
|
|
3165
|
+
exporters() {
|
|
3166
|
+
const ret = wasm.passwordmanagerclient_exporters(this.__wbg_ptr);
|
|
3167
|
+
return ExporterClient.__wrap(ret);
|
|
3168
|
+
}
|
|
3169
|
+
}
|
|
3170
|
+
if (Symbol.dispose)
|
|
3171
|
+
PasswordManagerClient.prototype[Symbol.dispose] = PasswordManagerClient.prototype.free;
|
|
3172
|
+
|
|
3173
|
+
exports.PasswordManagerClient = PasswordManagerClient;
|
|
3174
|
+
|
|
3174
3175
|
const PlatformClientFinalization =
|
|
3175
3176
|
typeof FinalizationRegistry === "undefined"
|
|
3176
3177
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3200,7 +3201,7 @@ class PlatformClient {
|
|
|
3200
3201
|
* @returns {StateClient}
|
|
3201
3202
|
*/
|
|
3202
3203
|
state() {
|
|
3203
|
-
const ret = wasm.
|
|
3204
|
+
const ret = wasm.passwordmanagerclient_platform(this.__wbg_ptr);
|
|
3204
3205
|
return StateClient.__wrap(ret);
|
|
3205
3206
|
}
|
|
3206
3207
|
/**
|
|
@@ -4465,7 +4466,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
|
|
|
4465
4466
|
}, arguments);
|
|
4466
4467
|
};
|
|
4467
4468
|
|
|
4468
|
-
exports.
|
|
4469
|
+
exports.__wbg_cipher_063587a007184a5b = function (arg0) {
|
|
4469
4470
|
const ret = getObject(arg0).cipher;
|
|
4470
4471
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4471
4472
|
};
|
|
@@ -4558,7 +4559,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
|
|
|
4558
4559
|
return addHeapObject(ret);
|
|
4559
4560
|
};
|
|
4560
4561
|
|
|
4561
|
-
exports.
|
|
4562
|
+
exports.__wbg_folder_95171ac6b8c27a8c = function (arg0) {
|
|
4562
4563
|
const ret = getObject(arg0).folder;
|
|
4563
4564
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4564
4565
|
};
|
|
@@ -4585,22 +4586,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
|
|
|
4585
4586
|
return ret;
|
|
4586
4587
|
};
|
|
4587
4588
|
|
|
4588
|
-
exports.
|
|
4589
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
4590
|
-
let deferred0_0;
|
|
4591
|
-
let deferred0_1;
|
|
4592
|
-
try {
|
|
4593
|
-
deferred0_0 = arg1;
|
|
4594
|
-
deferred0_1 = arg2;
|
|
4595
|
-
const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
|
|
4596
|
-
return addHeapObject(ret);
|
|
4597
|
-
} finally {
|
|
4598
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4599
|
-
}
|
|
4600
|
-
}, arguments);
|
|
4601
|
-
};
|
|
4602
|
-
|
|
4603
|
-
exports.__wbg_get_729bb17622e32fbe = function () {
|
|
4589
|
+
exports.__wbg_get_1838d0ffbb0df13f = function () {
|
|
4604
4590
|
return handleError(function (arg0, arg1, arg2) {
|
|
4605
4591
|
let deferred0_0;
|
|
4606
4592
|
let deferred0_1;
|
|
@@ -4620,7 +4606,7 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
|
|
|
4620
4606
|
return addHeapObject(ret);
|
|
4621
4607
|
};
|
|
4622
4608
|
|
|
4623
|
-
exports.
|
|
4609
|
+
exports.__wbg_get_access_token_67b9a6854891236e = function (arg0) {
|
|
4624
4610
|
const ret = getObject(arg0).get_access_token();
|
|
4625
4611
|
return addHeapObject(ret);
|
|
4626
4612
|
};
|
|
@@ -4632,6 +4618,21 @@ exports.__wbg_get_efcb449f58ec27c2 = function () {
|
|
|
4632
4618
|
}, arguments);
|
|
4633
4619
|
};
|
|
4634
4620
|
|
|
4621
|
+
exports.__wbg_get_f97d1609fe1ef27f = function () {
|
|
4622
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
4623
|
+
let deferred0_0;
|
|
4624
|
+
let deferred0_1;
|
|
4625
|
+
try {
|
|
4626
|
+
deferred0_0 = arg1;
|
|
4627
|
+
deferred0_1 = arg2;
|
|
4628
|
+
const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
|
|
4629
|
+
return addHeapObject(ret);
|
|
4630
|
+
} finally {
|
|
4631
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4632
|
+
}
|
|
4633
|
+
}, arguments);
|
|
4634
|
+
};
|
|
4635
|
+
|
|
4635
4636
|
exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function (arg0, arg1) {
|
|
4636
4637
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
4637
4638
|
return addHeapObject(ret);
|
|
@@ -4816,14 +4817,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
|
|
|
4816
4817
|
return ret;
|
|
4817
4818
|
};
|
|
4818
4819
|
|
|
4819
|
-
exports.
|
|
4820
|
+
exports.__wbg_list_61f135d00ba1fd36 = function () {
|
|
4820
4821
|
return handleError(function (arg0) {
|
|
4821
4822
|
const ret = getObject(arg0).list();
|
|
4822
4823
|
return addHeapObject(ret);
|
|
4823
4824
|
}, arguments);
|
|
4824
4825
|
};
|
|
4825
4826
|
|
|
4826
|
-
exports.
|
|
4827
|
+
exports.__wbg_list_a02566fdc340b1ad = function () {
|
|
4827
4828
|
return handleError(function (arg0) {
|
|
4828
4829
|
const ret = getObject(arg0).list();
|
|
4829
4830
|
return addHeapObject(ret);
|
|
@@ -5067,7 +5068,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
5067
5068
|
}, arguments);
|
|
5068
5069
|
};
|
|
5069
5070
|
|
|
5070
|
-
exports.
|
|
5071
|
+
exports.__wbg_remove_3594f15e8fca4743 = function () {
|
|
5071
5072
|
return handleError(function (arg0, arg1, arg2) {
|
|
5072
5073
|
let deferred0_0;
|
|
5073
5074
|
let deferred0_1;
|
|
@@ -5082,7 +5083,7 @@ exports.__wbg_remove_065dfc4de9f12f65 = function () {
|
|
|
5082
5083
|
}, arguments);
|
|
5083
5084
|
};
|
|
5084
5085
|
|
|
5085
|
-
exports.
|
|
5086
|
+
exports.__wbg_remove_9c4c3e3b67e6b3a1 = function () {
|
|
5086
5087
|
return handleError(function (arg0, arg1, arg2) {
|
|
5087
5088
|
let deferred0_0;
|
|
5088
5089
|
let deferred0_1;
|
|
@@ -5128,11 +5129,7 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
5128
5129
|
return addHeapObject(ret);
|
|
5129
5130
|
};
|
|
5130
5131
|
|
|
5131
|
-
exports.
|
|
5132
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5133
|
-
};
|
|
5134
|
-
|
|
5135
|
-
exports.__wbg_set_4881b2237c76b95f = function () {
|
|
5132
|
+
exports.__wbg_set_0159738cb1dd7a1d = function () {
|
|
5136
5133
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5137
5134
|
let deferred0_0;
|
|
5138
5135
|
let deferred0_1;
|
|
@@ -5147,7 +5144,11 @@ exports.__wbg_set_4881b2237c76b95f = function () {
|
|
|
5147
5144
|
}, arguments);
|
|
5148
5145
|
};
|
|
5149
5146
|
|
|
5150
|
-
exports.
|
|
5147
|
+
exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
5148
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5149
|
+
};
|
|
5150
|
+
|
|
5151
|
+
exports.__wbg_set_834a40164c1f126c = function () {
|
|
5151
5152
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5152
5153
|
let deferred0_0;
|
|
5153
5154
|
let deferred0_1;
|
|
@@ -5350,23 +5351,23 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
|
|
|
5350
5351
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5351
5352
|
};
|
|
5352
5353
|
|
|
5353
|
-
exports.
|
|
5354
|
-
// Cast intrinsic for `
|
|
5355
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
5356
|
-
return addHeapObject(ret);
|
|
5357
|
-
};
|
|
5358
|
-
|
|
5359
|
-
exports.__wbindgen_cast_3bdbc0e1dbbca79e = function (arg0, arg1) {
|
|
5360
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 548, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5354
|
+
exports.__wbindgen_cast_1e9dc1058b799ead = function (arg0, arg1) {
|
|
5355
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5361
5356
|
const ret = makeMutClosure(
|
|
5362
5357
|
arg0,
|
|
5363
5358
|
arg1,
|
|
5364
|
-
wasm.
|
|
5365
|
-
|
|
5359
|
+
wasm.wasm_bindgen__closure__destroy__h1470697583ce3ba3,
|
|
5360
|
+
wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
|
|
5366
5361
|
);
|
|
5367
5362
|
return addHeapObject(ret);
|
|
5368
5363
|
};
|
|
5369
5364
|
|
|
5365
|
+
exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
|
|
5366
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
5367
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
5368
|
+
return addHeapObject(ret);
|
|
5369
|
+
};
|
|
5370
|
+
|
|
5370
5371
|
exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
|
|
5371
5372
|
// Cast intrinsic for `U64 -> Externref`.
|
|
5372
5373
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -5381,6 +5382,17 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
|
|
|
5381
5382
|
return addHeapObject(ret);
|
|
5382
5383
|
};
|
|
5383
5384
|
|
|
5385
|
+
exports.__wbindgen_cast_6b441f2e42512d6e = function (arg0, arg1) {
|
|
5386
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 545, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5387
|
+
const ret = makeMutClosure(
|
|
5388
|
+
arg0,
|
|
5389
|
+
arg1,
|
|
5390
|
+
wasm.wasm_bindgen__closure__destroy__hfcb631b72e5e985c,
|
|
5391
|
+
wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
|
|
5392
|
+
);
|
|
5393
|
+
return addHeapObject(ret);
|
|
5394
|
+
};
|
|
5395
|
+
|
|
5384
5396
|
exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
|
|
5385
5397
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5386
5398
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5395,35 +5407,13 @@ exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
|
|
|
5395
5407
|
return addHeapObject(ret);
|
|
5396
5408
|
};
|
|
5397
5409
|
|
|
5398
|
-
exports.
|
|
5399
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5410
|
+
exports.__wbindgen_cast_c5e8bf91c85dc4ef = function (arg0, arg1) {
|
|
5411
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5400
5412
|
const ret = makeMutClosure(
|
|
5401
5413
|
arg0,
|
|
5402
5414
|
arg1,
|
|
5403
5415
|
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5404
|
-
|
|
5405
|
-
);
|
|
5406
|
-
return addHeapObject(ret);
|
|
5407
|
-
};
|
|
5408
|
-
|
|
5409
|
-
exports.__wbindgen_cast_c56a9a44151353f2 = function (arg0, arg1) {
|
|
5410
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 39, function: Function { arguments: [NamedExternref("Event")], shim_idx: 42, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5411
|
-
const ret = makeMutClosure(
|
|
5412
|
-
arg0,
|
|
5413
|
-
arg1,
|
|
5414
|
-
wasm.wasm_bindgen__closure__destroy__hc8374e511fe7ebd1,
|
|
5415
|
-
wasm_bindgen__convert__closures_____invoke__hd11035e31e1056de,
|
|
5416
|
-
);
|
|
5417
|
-
return addHeapObject(ret);
|
|
5418
|
-
};
|
|
5419
|
-
|
|
5420
|
-
exports.__wbindgen_cast_c6953dec10624911 = function (arg0, arg1) {
|
|
5421
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 39, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 40, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5422
|
-
const ret = makeMutClosure(
|
|
5423
|
-
arg0,
|
|
5424
|
-
arg1,
|
|
5425
|
-
wasm.wasm_bindgen__closure__destroy__hc8374e511fe7ebd1,
|
|
5426
|
-
wasm_bindgen__convert__closures_____invoke__h9d7e5f8887506d31,
|
|
5416
|
+
wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
|
|
5427
5417
|
);
|
|
5428
5418
|
return addHeapObject(ret);
|
|
5429
5419
|
};
|
|
@@ -5440,8 +5430,8 @@ exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
|
|
|
5440
5430
|
return addHeapObject(ret);
|
|
5441
5431
|
};
|
|
5442
5432
|
|
|
5443
|
-
exports.
|
|
5444
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5433
|
+
exports.__wbindgen_cast_d87bfd09ab1288e4 = function (arg0, arg1) {
|
|
5434
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5445
5435
|
const ret = makeMutClosure(
|
|
5446
5436
|
arg0,
|
|
5447
5437
|
arg1,
|
|
@@ -5451,6 +5441,17 @@ exports.__wbindgen_cast_e1b8613407289e9c = function (arg0, arg1) {
|
|
|
5451
5441
|
return addHeapObject(ret);
|
|
5452
5442
|
};
|
|
5453
5443
|
|
|
5444
|
+
exports.__wbindgen_cast_daac1d8e48fc3ba0 = function (arg0, arg1) {
|
|
5445
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5446
|
+
const ret = makeMutClosure(
|
|
5447
|
+
arg0,
|
|
5448
|
+
arg1,
|
|
5449
|
+
wasm.wasm_bindgen__closure__destroy__h1470697583ce3ba3,
|
|
5450
|
+
wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5,
|
|
5451
|
+
);
|
|
5452
|
+
return addHeapObject(ret);
|
|
5453
|
+
};
|
|
5454
|
+
|
|
5454
5455
|
exports.__wbindgen_cast_ef90a087adb7475d = function (arg0, arg1) {
|
|
5455
5456
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5456
5457
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
Binary file
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
4
|
+
export const __wbg_passwordmanagerclient_free: (a: number, b: number) => void;
|
|
5
|
+
export const passwordmanagerclient_new: (a: number, b: number) => number;
|
|
6
|
+
export const passwordmanagerclient_echo: (a: number, b: number, c: number, d: number) => void;
|
|
7
|
+
export const passwordmanagerclient_version: (a: number, b: number) => void;
|
|
8
|
+
export const passwordmanagerclient_throw: (a: number, b: number, c: number, d: number) => void;
|
|
9
|
+
export const passwordmanagerclient_http_get: (a: number, b: number, c: number) => number;
|
|
10
|
+
export const passwordmanagerclient_auth: (a: number) => number;
|
|
11
|
+
export const passwordmanagerclient_crypto: (a: number) => number;
|
|
12
|
+
export const passwordmanagerclient_vault: (a: number) => number;
|
|
13
|
+
export const passwordmanagerclient_platform: (a: number) => number;
|
|
14
|
+
export const passwordmanagerclient_generator: (a: number) => number;
|
|
15
|
+
export const passwordmanagerclient_exporters: (a: number) => number;
|
|
16
16
|
export const init_sdk: (a: number) => void;
|
|
17
17
|
export const platformclient_load_flags: (a: number, b: number, c: number) => void;
|
|
18
18
|
export const stateclient_register_cipher_repository: (a: number, b: number) => void;
|
|
@@ -431,17 +431,17 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
|
431
431
|
export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
432
432
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
433
433
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
434
|
-
export const
|
|
434
|
+
export const wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5: (
|
|
435
435
|
a: number,
|
|
436
436
|
b: number,
|
|
437
437
|
c: number,
|
|
438
|
+
d: number,
|
|
438
439
|
) => void;
|
|
439
|
-
export const
|
|
440
|
-
export const
|
|
440
|
+
export const wasm_bindgen__closure__destroy__h1470697583ce3ba3: (a: number, b: number) => void;
|
|
441
|
+
export const wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5: (
|
|
441
442
|
a: number,
|
|
442
443
|
b: number,
|
|
443
444
|
c: number,
|
|
444
|
-
d: number,
|
|
445
445
|
) => void;
|
|
446
446
|
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
447
447
|
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|