@bitwarden/commercial-sdk-internal 0.2.0-main.393 → 0.2.0-main.395
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/bitwarden_wasm_internal.d.ts +60 -55
- package/bitwarden_wasm_internal_bg.js +204 -203
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +20 -20
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +60 -55
- package/node/bitwarden_wasm_internal.js +202 -201
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +18 -18
- package/package.json +1 -1
|
@@ -127,6 +127,11 @@ export enum UriMatchType {
|
|
|
127
127
|
Never = 5,
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated Use PasswordManagerClient instead
|
|
132
|
+
*/
|
|
133
|
+
export type BitwardenClient = PasswordManagerClient;
|
|
134
|
+
|
|
130
135
|
import { Tagged } from "type-fest";
|
|
131
136
|
|
|
132
137
|
/**
|
|
@@ -1826,61 +1831,6 @@ export class AuthClient {
|
|
|
1826
1831
|
*/
|
|
1827
1832
|
send_access(): SendAccessClient;
|
|
1828
1833
|
}
|
|
1829
|
-
/**
|
|
1830
|
-
* The main entry point for the Bitwarden SDK in WebAssembly environments
|
|
1831
|
-
*/
|
|
1832
|
-
export class BitwardenClient {
|
|
1833
|
-
free(): void;
|
|
1834
|
-
[Symbol.dispose](): void;
|
|
1835
|
-
/**
|
|
1836
|
-
* Initialize a new instance of the SDK client
|
|
1837
|
-
*/
|
|
1838
|
-
constructor(token_provider: any, settings?: ClientSettings | null);
|
|
1839
|
-
/**
|
|
1840
|
-
* Test method, echoes back the input
|
|
1841
|
-
*/
|
|
1842
|
-
echo(msg: string): string;
|
|
1843
|
-
/**
|
|
1844
|
-
* Returns the current SDK version
|
|
1845
|
-
*/
|
|
1846
|
-
version(): string;
|
|
1847
|
-
/**
|
|
1848
|
-
* Test method, always throws an error
|
|
1849
|
-
*/
|
|
1850
|
-
throw(msg: string): void;
|
|
1851
|
-
/**
|
|
1852
|
-
* Test method, calls http endpoint
|
|
1853
|
-
*/
|
|
1854
|
-
http_get(url: string): Promise<string>;
|
|
1855
|
-
/**
|
|
1856
|
-
* Auth related operations.
|
|
1857
|
-
*/
|
|
1858
|
-
auth(): AuthClient;
|
|
1859
|
-
/**
|
|
1860
|
-
* Bitwarden licensed operations.
|
|
1861
|
-
*/
|
|
1862
|
-
commercial(): CommercialPasswordManagerClient;
|
|
1863
|
-
/**
|
|
1864
|
-
* Crypto related operations.
|
|
1865
|
-
*/
|
|
1866
|
-
crypto(): CryptoClient;
|
|
1867
|
-
/**
|
|
1868
|
-
* Vault item related operations.
|
|
1869
|
-
*/
|
|
1870
|
-
vault(): VaultClient;
|
|
1871
|
-
/**
|
|
1872
|
-
* Constructs a specific client for platform-specific functionality
|
|
1873
|
-
*/
|
|
1874
|
-
platform(): PlatformClient;
|
|
1875
|
-
/**
|
|
1876
|
-
* Constructs a specific client for generating passwords and passphrases
|
|
1877
|
-
*/
|
|
1878
|
-
generator(): GeneratorClient;
|
|
1879
|
-
/**
|
|
1880
|
-
* Exporter related operations.
|
|
1881
|
-
*/
|
|
1882
|
-
exporters(): ExporterClient;
|
|
1883
|
-
}
|
|
1884
1834
|
/**
|
|
1885
1835
|
* Client for evaluating credential risk for login ciphers.
|
|
1886
1836
|
*/
|
|
@@ -2311,6 +2261,61 @@ export class OutgoingMessage {
|
|
|
2311
2261
|
get topic(): string | undefined;
|
|
2312
2262
|
set topic(value: string | null | undefined);
|
|
2313
2263
|
}
|
|
2264
|
+
/**
|
|
2265
|
+
* The main entry point for the Bitwarden SDK in WebAssembly environments
|
|
2266
|
+
*/
|
|
2267
|
+
export class PasswordManagerClient {
|
|
2268
|
+
free(): void;
|
|
2269
|
+
[Symbol.dispose](): void;
|
|
2270
|
+
/**
|
|
2271
|
+
* Initialize a new instance of the SDK client
|
|
2272
|
+
*/
|
|
2273
|
+
constructor(token_provider: any, settings?: ClientSettings | null);
|
|
2274
|
+
/**
|
|
2275
|
+
* Test method, echoes back the input
|
|
2276
|
+
*/
|
|
2277
|
+
echo(msg: string): string;
|
|
2278
|
+
/**
|
|
2279
|
+
* Returns the current SDK version
|
|
2280
|
+
*/
|
|
2281
|
+
version(): string;
|
|
2282
|
+
/**
|
|
2283
|
+
* Test method, always throws an error
|
|
2284
|
+
*/
|
|
2285
|
+
throw(msg: string): void;
|
|
2286
|
+
/**
|
|
2287
|
+
* Test method, calls http endpoint
|
|
2288
|
+
*/
|
|
2289
|
+
http_get(url: string): Promise<string>;
|
|
2290
|
+
/**
|
|
2291
|
+
* Auth related operations.
|
|
2292
|
+
*/
|
|
2293
|
+
auth(): AuthClient;
|
|
2294
|
+
/**
|
|
2295
|
+
* Bitwarden licensed operations.
|
|
2296
|
+
*/
|
|
2297
|
+
commercial(): CommercialPasswordManagerClient;
|
|
2298
|
+
/**
|
|
2299
|
+
* Crypto related operations.
|
|
2300
|
+
*/
|
|
2301
|
+
crypto(): CryptoClient;
|
|
2302
|
+
/**
|
|
2303
|
+
* Vault item related operations.
|
|
2304
|
+
*/
|
|
2305
|
+
vault(): VaultClient;
|
|
2306
|
+
/**
|
|
2307
|
+
* Constructs a specific client for platform-specific functionality
|
|
2308
|
+
*/
|
|
2309
|
+
platform(): PlatformClient;
|
|
2310
|
+
/**
|
|
2311
|
+
* Constructs a specific client for generating passwords and passphrases
|
|
2312
|
+
*/
|
|
2313
|
+
generator(): GeneratorClient;
|
|
2314
|
+
/**
|
|
2315
|
+
* Exporter related operations.
|
|
2316
|
+
*/
|
|
2317
|
+
exporters(): ExporterClient;
|
|
2318
|
+
}
|
|
2314
2319
|
export class PlatformClient {
|
|
2315
2320
|
private constructor();
|
|
2316
2321
|
free(): void;
|
|
@@ -868,14 +868,6 @@ export function isEncryptFileError(error) {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
function wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009(arg0, arg1, arg2) {
|
|
872
|
-
wasm.wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009(
|
|
873
|
-
arg0,
|
|
874
|
-
arg1,
|
|
875
|
-
addHeapObject(arg2),
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
871
|
function wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b(arg0, arg1, arg2) {
|
|
880
872
|
try {
|
|
881
873
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -899,6 +891,14 @@ function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg
|
|
|
899
891
|
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
900
892
|
}
|
|
901
893
|
|
|
894
|
+
function wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009(arg0, arg1, arg2) {
|
|
895
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009(
|
|
896
|
+
arg0,
|
|
897
|
+
arg1,
|
|
898
|
+
addHeapObject(arg2),
|
|
899
|
+
);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
902
|
function wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(arg0, arg1, arg2, arg3) {
|
|
903
903
|
wasm.wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(
|
|
904
904
|
arg0,
|
|
@@ -1178,171 +1178,6 @@ export class AuthClient {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
if (Symbol.dispose) AuthClient.prototype[Symbol.dispose] = AuthClient.prototype.free;
|
|
1180
1180
|
|
|
1181
|
-
const BitwardenClientFinalization =
|
|
1182
|
-
typeof FinalizationRegistry === "undefined"
|
|
1183
|
-
? { register: () => {}, unregister: () => {} }
|
|
1184
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_bitwardenclient_free(ptr >>> 0, 1));
|
|
1185
|
-
/**
|
|
1186
|
-
* The main entry point for the Bitwarden SDK in WebAssembly environments
|
|
1187
|
-
*/
|
|
1188
|
-
export class BitwardenClient {
|
|
1189
|
-
__destroy_into_raw() {
|
|
1190
|
-
const ptr = this.__wbg_ptr;
|
|
1191
|
-
this.__wbg_ptr = 0;
|
|
1192
|
-
BitwardenClientFinalization.unregister(this);
|
|
1193
|
-
return ptr;
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
free() {
|
|
1197
|
-
const ptr = this.__destroy_into_raw();
|
|
1198
|
-
wasm.__wbg_bitwardenclient_free(ptr, 0);
|
|
1199
|
-
}
|
|
1200
|
-
/**
|
|
1201
|
-
* Initialize a new instance of the SDK client
|
|
1202
|
-
* @param {any} token_provider
|
|
1203
|
-
* @param {ClientSettings | null} [settings]
|
|
1204
|
-
*/
|
|
1205
|
-
constructor(token_provider, settings) {
|
|
1206
|
-
const ret = wasm.bitwardenclient_new(
|
|
1207
|
-
addHeapObject(token_provider),
|
|
1208
|
-
isLikeNone(settings) ? 0 : addHeapObject(settings),
|
|
1209
|
-
);
|
|
1210
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1211
|
-
BitwardenClientFinalization.register(this, this.__wbg_ptr, this);
|
|
1212
|
-
return this;
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* Test method, echoes back the input
|
|
1216
|
-
* @param {string} msg
|
|
1217
|
-
* @returns {string}
|
|
1218
|
-
*/
|
|
1219
|
-
echo(msg) {
|
|
1220
|
-
let deferred2_0;
|
|
1221
|
-
let deferred2_1;
|
|
1222
|
-
try {
|
|
1223
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1224
|
-
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1225
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1226
|
-
wasm.bitwardenclient_echo(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1227
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1228
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1229
|
-
deferred2_0 = r0;
|
|
1230
|
-
deferred2_1 = r1;
|
|
1231
|
-
return getStringFromWasm0(r0, r1);
|
|
1232
|
-
} finally {
|
|
1233
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1234
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
/**
|
|
1238
|
-
* Returns the current SDK version
|
|
1239
|
-
* @returns {string}
|
|
1240
|
-
*/
|
|
1241
|
-
version() {
|
|
1242
|
-
let deferred1_0;
|
|
1243
|
-
let deferred1_1;
|
|
1244
|
-
try {
|
|
1245
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1246
|
-
wasm.bitwardenclient_version(retptr, this.__wbg_ptr);
|
|
1247
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1248
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1249
|
-
deferred1_0 = r0;
|
|
1250
|
-
deferred1_1 = r1;
|
|
1251
|
-
return getStringFromWasm0(r0, r1);
|
|
1252
|
-
} finally {
|
|
1253
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1254
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
/**
|
|
1258
|
-
* Test method, always throws an error
|
|
1259
|
-
* @param {string} msg
|
|
1260
|
-
*/
|
|
1261
|
-
throw(msg) {
|
|
1262
|
-
try {
|
|
1263
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1264
|
-
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1265
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1266
|
-
wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1267
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1268
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1269
|
-
if (r1) {
|
|
1270
|
-
throw takeObject(r0);
|
|
1271
|
-
}
|
|
1272
|
-
} finally {
|
|
1273
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
/**
|
|
1277
|
-
* Test method, calls http endpoint
|
|
1278
|
-
* @param {string} url
|
|
1279
|
-
* @returns {Promise<string>}
|
|
1280
|
-
*/
|
|
1281
|
-
http_get(url) {
|
|
1282
|
-
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1283
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1284
|
-
const ret = wasm.bitwardenclient_http_get(this.__wbg_ptr, ptr0, len0);
|
|
1285
|
-
return takeObject(ret);
|
|
1286
|
-
}
|
|
1287
|
-
/**
|
|
1288
|
-
* Auth related operations.
|
|
1289
|
-
* @returns {AuthClient}
|
|
1290
|
-
*/
|
|
1291
|
-
auth() {
|
|
1292
|
-
const ret = wasm.bitwardenclient_auth(this.__wbg_ptr);
|
|
1293
|
-
return AuthClient.__wrap(ret);
|
|
1294
|
-
}
|
|
1295
|
-
/**
|
|
1296
|
-
* Bitwarden licensed operations.
|
|
1297
|
-
* @returns {CommercialPasswordManagerClient}
|
|
1298
|
-
*/
|
|
1299
|
-
commercial() {
|
|
1300
|
-
const ret = wasm.bitwardenclient_commercial(this.__wbg_ptr);
|
|
1301
|
-
return CommercialPasswordManagerClient.__wrap(ret);
|
|
1302
|
-
}
|
|
1303
|
-
/**
|
|
1304
|
-
* Crypto related operations.
|
|
1305
|
-
* @returns {CryptoClient}
|
|
1306
|
-
*/
|
|
1307
|
-
crypto() {
|
|
1308
|
-
const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
|
|
1309
|
-
return CryptoClient.__wrap(ret);
|
|
1310
|
-
}
|
|
1311
|
-
/**
|
|
1312
|
-
* Vault item related operations.
|
|
1313
|
-
* @returns {VaultClient}
|
|
1314
|
-
*/
|
|
1315
|
-
vault() {
|
|
1316
|
-
const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
|
|
1317
|
-
return VaultClient.__wrap(ret);
|
|
1318
|
-
}
|
|
1319
|
-
/**
|
|
1320
|
-
* Constructs a specific client for platform-specific functionality
|
|
1321
|
-
* @returns {PlatformClient}
|
|
1322
|
-
*/
|
|
1323
|
-
platform() {
|
|
1324
|
-
const ret = wasm.bitwardenclient_platform(this.__wbg_ptr);
|
|
1325
|
-
return PlatformClient.__wrap(ret);
|
|
1326
|
-
}
|
|
1327
|
-
/**
|
|
1328
|
-
* Constructs a specific client for generating passwords and passphrases
|
|
1329
|
-
* @returns {GeneratorClient}
|
|
1330
|
-
*/
|
|
1331
|
-
generator() {
|
|
1332
|
-
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
1333
|
-
return GeneratorClient.__wrap(ret);
|
|
1334
|
-
}
|
|
1335
|
-
/**
|
|
1336
|
-
* Exporter related operations.
|
|
1337
|
-
* @returns {ExporterClient}
|
|
1338
|
-
*/
|
|
1339
|
-
exporters() {
|
|
1340
|
-
const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
|
|
1341
|
-
return ExporterClient.__wrap(ret);
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
if (Symbol.dispose) BitwardenClient.prototype[Symbol.dispose] = BitwardenClient.prototype.free;
|
|
1345
|
-
|
|
1346
1181
|
const CipherRiskClientFinalization =
|
|
1347
1182
|
typeof FinalizationRegistry === "undefined"
|
|
1348
1183
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3224,6 +3059,172 @@ export class OutgoingMessage {
|
|
|
3224
3059
|
}
|
|
3225
3060
|
if (Symbol.dispose) OutgoingMessage.prototype[Symbol.dispose] = OutgoingMessage.prototype.free;
|
|
3226
3061
|
|
|
3062
|
+
const PasswordManagerClientFinalization =
|
|
3063
|
+
typeof FinalizationRegistry === "undefined"
|
|
3064
|
+
? { register: () => {}, unregister: () => {} }
|
|
3065
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_passwordmanagerclient_free(ptr >>> 0, 1));
|
|
3066
|
+
/**
|
|
3067
|
+
* The main entry point for the Bitwarden SDK in WebAssembly environments
|
|
3068
|
+
*/
|
|
3069
|
+
export class PasswordManagerClient {
|
|
3070
|
+
__destroy_into_raw() {
|
|
3071
|
+
const ptr = this.__wbg_ptr;
|
|
3072
|
+
this.__wbg_ptr = 0;
|
|
3073
|
+
PasswordManagerClientFinalization.unregister(this);
|
|
3074
|
+
return ptr;
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
free() {
|
|
3078
|
+
const ptr = this.__destroy_into_raw();
|
|
3079
|
+
wasm.__wbg_passwordmanagerclient_free(ptr, 0);
|
|
3080
|
+
}
|
|
3081
|
+
/**
|
|
3082
|
+
* Initialize a new instance of the SDK client
|
|
3083
|
+
* @param {any} token_provider
|
|
3084
|
+
* @param {ClientSettings | null} [settings]
|
|
3085
|
+
*/
|
|
3086
|
+
constructor(token_provider, settings) {
|
|
3087
|
+
const ret = wasm.passwordmanagerclient_new(
|
|
3088
|
+
addHeapObject(token_provider),
|
|
3089
|
+
isLikeNone(settings) ? 0 : addHeapObject(settings),
|
|
3090
|
+
);
|
|
3091
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3092
|
+
PasswordManagerClientFinalization.register(this, this.__wbg_ptr, this);
|
|
3093
|
+
return this;
|
|
3094
|
+
}
|
|
3095
|
+
/**
|
|
3096
|
+
* Test method, echoes back the input
|
|
3097
|
+
* @param {string} msg
|
|
3098
|
+
* @returns {string}
|
|
3099
|
+
*/
|
|
3100
|
+
echo(msg) {
|
|
3101
|
+
let deferred2_0;
|
|
3102
|
+
let deferred2_1;
|
|
3103
|
+
try {
|
|
3104
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3105
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3106
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3107
|
+
wasm.passwordmanagerclient_echo(retptr, this.__wbg_ptr, ptr0, len0);
|
|
3108
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3109
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3110
|
+
deferred2_0 = r0;
|
|
3111
|
+
deferred2_1 = r1;
|
|
3112
|
+
return getStringFromWasm0(r0, r1);
|
|
3113
|
+
} finally {
|
|
3114
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3115
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
/**
|
|
3119
|
+
* Returns the current SDK version
|
|
3120
|
+
* @returns {string}
|
|
3121
|
+
*/
|
|
3122
|
+
version() {
|
|
3123
|
+
let deferred1_0;
|
|
3124
|
+
let deferred1_1;
|
|
3125
|
+
try {
|
|
3126
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3127
|
+
wasm.passwordmanagerclient_version(retptr, this.__wbg_ptr);
|
|
3128
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3129
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3130
|
+
deferred1_0 = r0;
|
|
3131
|
+
deferred1_1 = r1;
|
|
3132
|
+
return getStringFromWasm0(r0, r1);
|
|
3133
|
+
} finally {
|
|
3134
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3135
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
/**
|
|
3139
|
+
* Test method, always throws an error
|
|
3140
|
+
* @param {string} msg
|
|
3141
|
+
*/
|
|
3142
|
+
throw(msg) {
|
|
3143
|
+
try {
|
|
3144
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3145
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3146
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3147
|
+
wasm.passwordmanagerclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
|
|
3148
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3149
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3150
|
+
if (r1) {
|
|
3151
|
+
throw takeObject(r0);
|
|
3152
|
+
}
|
|
3153
|
+
} finally {
|
|
3154
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
/**
|
|
3158
|
+
* Test method, calls http endpoint
|
|
3159
|
+
* @param {string} url
|
|
3160
|
+
* @returns {Promise<string>}
|
|
3161
|
+
*/
|
|
3162
|
+
http_get(url) {
|
|
3163
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3164
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3165
|
+
const ret = wasm.passwordmanagerclient_http_get(this.__wbg_ptr, ptr0, len0);
|
|
3166
|
+
return takeObject(ret);
|
|
3167
|
+
}
|
|
3168
|
+
/**
|
|
3169
|
+
* Auth related operations.
|
|
3170
|
+
* @returns {AuthClient}
|
|
3171
|
+
*/
|
|
3172
|
+
auth() {
|
|
3173
|
+
const ret = wasm.passwordmanagerclient_auth(this.__wbg_ptr);
|
|
3174
|
+
return AuthClient.__wrap(ret);
|
|
3175
|
+
}
|
|
3176
|
+
/**
|
|
3177
|
+
* Bitwarden licensed operations.
|
|
3178
|
+
* @returns {CommercialPasswordManagerClient}
|
|
3179
|
+
*/
|
|
3180
|
+
commercial() {
|
|
3181
|
+
const ret = wasm.passwordmanagerclient_commercial(this.__wbg_ptr);
|
|
3182
|
+
return CommercialPasswordManagerClient.__wrap(ret);
|
|
3183
|
+
}
|
|
3184
|
+
/**
|
|
3185
|
+
* Crypto related operations.
|
|
3186
|
+
* @returns {CryptoClient}
|
|
3187
|
+
*/
|
|
3188
|
+
crypto() {
|
|
3189
|
+
const ret = wasm.passwordmanagerclient_crypto(this.__wbg_ptr);
|
|
3190
|
+
return CryptoClient.__wrap(ret);
|
|
3191
|
+
}
|
|
3192
|
+
/**
|
|
3193
|
+
* Vault item related operations.
|
|
3194
|
+
* @returns {VaultClient}
|
|
3195
|
+
*/
|
|
3196
|
+
vault() {
|
|
3197
|
+
const ret = wasm.passwordmanagerclient_vault(this.__wbg_ptr);
|
|
3198
|
+
return VaultClient.__wrap(ret);
|
|
3199
|
+
}
|
|
3200
|
+
/**
|
|
3201
|
+
* Constructs a specific client for platform-specific functionality
|
|
3202
|
+
* @returns {PlatformClient}
|
|
3203
|
+
*/
|
|
3204
|
+
platform() {
|
|
3205
|
+
const ret = wasm.passwordmanagerclient_platform(this.__wbg_ptr);
|
|
3206
|
+
return PlatformClient.__wrap(ret);
|
|
3207
|
+
}
|
|
3208
|
+
/**
|
|
3209
|
+
* Constructs a specific client for generating passwords and passphrases
|
|
3210
|
+
* @returns {GeneratorClient}
|
|
3211
|
+
*/
|
|
3212
|
+
generator() {
|
|
3213
|
+
const ret = wasm.passwordmanagerclient_generator(this.__wbg_ptr);
|
|
3214
|
+
return GeneratorClient.__wrap(ret);
|
|
3215
|
+
}
|
|
3216
|
+
/**
|
|
3217
|
+
* Exporter related operations.
|
|
3218
|
+
* @returns {ExporterClient}
|
|
3219
|
+
*/
|
|
3220
|
+
exporters() {
|
|
3221
|
+
const ret = wasm.passwordmanagerclient_exporters(this.__wbg_ptr);
|
|
3222
|
+
return ExporterClient.__wrap(ret);
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
if (Symbol.dispose)
|
|
3226
|
+
PasswordManagerClient.prototype[Symbol.dispose] = PasswordManagerClient.prototype.free;
|
|
3227
|
+
|
|
3227
3228
|
const PlatformClientFinalization =
|
|
3228
3229
|
typeof FinalizationRegistry === "undefined"
|
|
3229
3230
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3253,7 +3254,7 @@ export class PlatformClient {
|
|
|
3253
3254
|
* @returns {StateClient}
|
|
3254
3255
|
*/
|
|
3255
3256
|
state() {
|
|
3256
|
-
const ret = wasm.
|
|
3257
|
+
const ret = wasm.passwordmanagerclient_platform(this.__wbg_ptr);
|
|
3257
3258
|
return StateClient.__wrap(ret);
|
|
3258
3259
|
}
|
|
3259
3260
|
/**
|
|
@@ -4506,7 +4507,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
|
|
|
4506
4507
|
}, arguments);
|
|
4507
4508
|
}
|
|
4508
4509
|
|
|
4509
|
-
export function
|
|
4510
|
+
export function __wbg_cipher_834d4613cdda1244(arg0) {
|
|
4510
4511
|
const ret = getObject(arg0).cipher;
|
|
4511
4512
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4512
4513
|
}
|
|
@@ -4599,7 +4600,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4599
4600
|
return addHeapObject(ret);
|
|
4600
4601
|
}
|
|
4601
4602
|
|
|
4602
|
-
export function
|
|
4603
|
+
export function __wbg_folder_23552597752ca903(arg0) {
|
|
4603
4604
|
const ret = getObject(arg0).folder;
|
|
4604
4605
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4605
4606
|
}
|
|
@@ -4626,7 +4627,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4626
4627
|
return ret;
|
|
4627
4628
|
}
|
|
4628
4629
|
|
|
4629
|
-
export function
|
|
4630
|
+
export function __wbg_get_43e4ac53ac36428e() {
|
|
4630
4631
|
return handleError(function (arg0, arg1, arg2) {
|
|
4631
4632
|
let deferred0_0;
|
|
4632
4633
|
let deferred0_1;
|
|
@@ -4646,7 +4647,7 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
|
4646
4647
|
return addHeapObject(ret);
|
|
4647
4648
|
}
|
|
4648
4649
|
|
|
4649
|
-
export function
|
|
4650
|
+
export function __wbg_get_8e79bf8b6bd9390e() {
|
|
4650
4651
|
return handleError(function (arg0, arg1, arg2) {
|
|
4651
4652
|
let deferred0_0;
|
|
4652
4653
|
let deferred0_1;
|
|
@@ -4661,7 +4662,7 @@ export function __wbg_get_7f6c3ff94df2aa6c() {
|
|
|
4661
4662
|
}, arguments);
|
|
4662
4663
|
}
|
|
4663
4664
|
|
|
4664
|
-
export function
|
|
4665
|
+
export function __wbg_get_access_token_ea0e045156900f0d(arg0) {
|
|
4665
4666
|
const ret = getObject(arg0).get_access_token();
|
|
4666
4667
|
return addHeapObject(ret);
|
|
4667
4668
|
}
|
|
@@ -4857,14 +4858,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
4857
4858
|
return ret;
|
|
4858
4859
|
}
|
|
4859
4860
|
|
|
4860
|
-
export function
|
|
4861
|
+
export function __wbg_list_baea5261a20d24cc() {
|
|
4861
4862
|
return handleError(function (arg0) {
|
|
4862
4863
|
const ret = getObject(arg0).list();
|
|
4863
4864
|
return addHeapObject(ret);
|
|
4864
4865
|
}, arguments);
|
|
4865
4866
|
}
|
|
4866
4867
|
|
|
4867
|
-
export function
|
|
4868
|
+
export function __wbg_list_c9ca45f34538dc57() {
|
|
4868
4869
|
return handleError(function (arg0) {
|
|
4869
4870
|
const ret = getObject(arg0).list();
|
|
4870
4871
|
return addHeapObject(ret);
|
|
@@ -5108,7 +5109,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
5108
5109
|
}, arguments);
|
|
5109
5110
|
}
|
|
5110
5111
|
|
|
5111
|
-
export function
|
|
5112
|
+
export function __wbg_remove_2757c99997349f4f() {
|
|
5112
5113
|
return handleError(function (arg0, arg1, arg2) {
|
|
5113
5114
|
let deferred0_0;
|
|
5114
5115
|
let deferred0_1;
|
|
@@ -5123,7 +5124,7 @@ export function __wbg_remove_80c407e6bc79ddd7() {
|
|
|
5123
5124
|
}, arguments);
|
|
5124
5125
|
}
|
|
5125
5126
|
|
|
5126
|
-
export function
|
|
5127
|
+
export function __wbg_remove_62dc5d88c7d98213() {
|
|
5127
5128
|
return handleError(function (arg0, arg1, arg2) {
|
|
5128
5129
|
let deferred0_0;
|
|
5129
5130
|
let deferred0_1;
|
|
@@ -5169,7 +5170,11 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5169
5170
|
return addHeapObject(ret);
|
|
5170
5171
|
}
|
|
5171
5172
|
|
|
5172
|
-
export function
|
|
5173
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5174
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5177
|
+
export function __wbg_set_8574bc378894487e() {
|
|
5173
5178
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5174
5179
|
let deferred0_0;
|
|
5175
5180
|
let deferred0_1;
|
|
@@ -5184,15 +5189,26 @@ export function __wbg_set_3362502ce1828512() {
|
|
|
5184
5189
|
}, arguments);
|
|
5185
5190
|
}
|
|
5186
5191
|
|
|
5187
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5188
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5189
|
-
}
|
|
5190
|
-
|
|
5191
5192
|
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5192
5193
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5193
5194
|
return addHeapObject(ret);
|
|
5194
5195
|
}
|
|
5195
5196
|
|
|
5197
|
+
export function __wbg_set_a27e21e310ea67b0() {
|
|
5198
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5199
|
+
let deferred0_0;
|
|
5200
|
+
let deferred0_1;
|
|
5201
|
+
try {
|
|
5202
|
+
deferred0_0 = arg1;
|
|
5203
|
+
deferred0_1 = arg2;
|
|
5204
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5205
|
+
return addHeapObject(ret);
|
|
5206
|
+
} finally {
|
|
5207
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5208
|
+
}
|
|
5209
|
+
}, arguments);
|
|
5210
|
+
}
|
|
5211
|
+
|
|
5196
5212
|
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5197
5213
|
getObject(arg0).body = getObject(arg1);
|
|
5198
5214
|
}
|
|
@@ -5212,21 +5228,6 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
|
|
|
5212
5228
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5213
5229
|
}
|
|
5214
5230
|
|
|
5215
|
-
export function __wbg_set_e017ea27f0d2d9f4() {
|
|
5216
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5217
|
-
let deferred0_0;
|
|
5218
|
-
let deferred0_1;
|
|
5219
|
-
try {
|
|
5220
|
-
deferred0_0 = arg1;
|
|
5221
|
-
deferred0_1 = arg2;
|
|
5222
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5223
|
-
return addHeapObject(ret);
|
|
5224
|
-
} finally {
|
|
5225
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5226
|
-
}
|
|
5227
|
-
}, arguments);
|
|
5228
|
-
}
|
|
5229
|
-
|
|
5230
5231
|
export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
|
|
5231
5232
|
getObject(arg0).headers = getObject(arg1);
|
|
5232
5233
|
}
|
|
Binary file
|