@bitwarden/commercial-sdk-internal 0.2.0-main.394 → 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 +200 -199
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +18 -18
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +60 -55
- package/node/bitwarden_wasm_internal.js +194 -193
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +19 -19
- 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;
|
|
@@ -866,6 +866,10 @@ function wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009(arg0, arg
|
|
|
866
866
|
);
|
|
867
867
|
}
|
|
868
868
|
|
|
869
|
+
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
870
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
871
|
+
}
|
|
872
|
+
|
|
869
873
|
function wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b(arg0, arg1, arg2) {
|
|
870
874
|
try {
|
|
871
875
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -885,10 +889,6 @@ function wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b(arg0, arg
|
|
|
885
889
|
}
|
|
886
890
|
}
|
|
887
891
|
|
|
888
|
-
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
889
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
890
|
-
}
|
|
891
|
-
|
|
892
892
|
function wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(arg0, arg1, arg2, arg3) {
|
|
893
893
|
wasm.wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(
|
|
894
894
|
arg0,
|
|
@@ -1172,173 +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
|
-
* Bitwarden licensed operations.
|
|
1291
|
-
* @returns {CommercialPasswordManagerClient}
|
|
1292
|
-
*/
|
|
1293
|
-
commercial() {
|
|
1294
|
-
const ret = wasm.bitwardenclient_commercial(this.__wbg_ptr);
|
|
1295
|
-
return CommercialPasswordManagerClient.__wrap(ret);
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* Crypto related operations.
|
|
1299
|
-
* @returns {CryptoClient}
|
|
1300
|
-
*/
|
|
1301
|
-
crypto() {
|
|
1302
|
-
const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
|
|
1303
|
-
return CryptoClient.__wrap(ret);
|
|
1304
|
-
}
|
|
1305
|
-
/**
|
|
1306
|
-
* Vault item related operations.
|
|
1307
|
-
* @returns {VaultClient}
|
|
1308
|
-
*/
|
|
1309
|
-
vault() {
|
|
1310
|
-
const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
|
|
1311
|
-
return VaultClient.__wrap(ret);
|
|
1312
|
-
}
|
|
1313
|
-
/**
|
|
1314
|
-
* Constructs a specific client for platform-specific functionality
|
|
1315
|
-
* @returns {PlatformClient}
|
|
1316
|
-
*/
|
|
1317
|
-
platform() {
|
|
1318
|
-
const ret = wasm.bitwardenclient_platform(this.__wbg_ptr);
|
|
1319
|
-
return PlatformClient.__wrap(ret);
|
|
1320
|
-
}
|
|
1321
|
-
/**
|
|
1322
|
-
* Constructs a specific client for generating passwords and passphrases
|
|
1323
|
-
* @returns {GeneratorClient}
|
|
1324
|
-
*/
|
|
1325
|
-
generator() {
|
|
1326
|
-
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
1327
|
-
return GeneratorClient.__wrap(ret);
|
|
1328
|
-
}
|
|
1329
|
-
/**
|
|
1330
|
-
* Exporter related operations.
|
|
1331
|
-
* @returns {ExporterClient}
|
|
1332
|
-
*/
|
|
1333
|
-
exporters() {
|
|
1334
|
-
const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
|
|
1335
|
-
return ExporterClient.__wrap(ret);
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
if (Symbol.dispose) BitwardenClient.prototype[Symbol.dispose] = BitwardenClient.prototype.free;
|
|
1339
|
-
|
|
1340
|
-
exports.BitwardenClient = BitwardenClient;
|
|
1341
|
-
|
|
1342
1175
|
const CipherRiskClientFinalization =
|
|
1343
1176
|
typeof FinalizationRegistry === "undefined"
|
|
1344
1177
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3254,6 +3087,174 @@ if (Symbol.dispose) OutgoingMessage.prototype[Symbol.dispose] = OutgoingMessage.
|
|
|
3254
3087
|
|
|
3255
3088
|
exports.OutgoingMessage = OutgoingMessage;
|
|
3256
3089
|
|
|
3090
|
+
const PasswordManagerClientFinalization =
|
|
3091
|
+
typeof FinalizationRegistry === "undefined"
|
|
3092
|
+
? { register: () => {}, unregister: () => {} }
|
|
3093
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_passwordmanagerclient_free(ptr >>> 0, 1));
|
|
3094
|
+
/**
|
|
3095
|
+
* The main entry point for the Bitwarden SDK in WebAssembly environments
|
|
3096
|
+
*/
|
|
3097
|
+
class PasswordManagerClient {
|
|
3098
|
+
__destroy_into_raw() {
|
|
3099
|
+
const ptr = this.__wbg_ptr;
|
|
3100
|
+
this.__wbg_ptr = 0;
|
|
3101
|
+
PasswordManagerClientFinalization.unregister(this);
|
|
3102
|
+
return ptr;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
free() {
|
|
3106
|
+
const ptr = this.__destroy_into_raw();
|
|
3107
|
+
wasm.__wbg_passwordmanagerclient_free(ptr, 0);
|
|
3108
|
+
}
|
|
3109
|
+
/**
|
|
3110
|
+
* Initialize a new instance of the SDK client
|
|
3111
|
+
* @param {any} token_provider
|
|
3112
|
+
* @param {ClientSettings | null} [settings]
|
|
3113
|
+
*/
|
|
3114
|
+
constructor(token_provider, settings) {
|
|
3115
|
+
const ret = wasm.passwordmanagerclient_new(
|
|
3116
|
+
addHeapObject(token_provider),
|
|
3117
|
+
isLikeNone(settings) ? 0 : addHeapObject(settings),
|
|
3118
|
+
);
|
|
3119
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3120
|
+
PasswordManagerClientFinalization.register(this, this.__wbg_ptr, this);
|
|
3121
|
+
return this;
|
|
3122
|
+
}
|
|
3123
|
+
/**
|
|
3124
|
+
* Test method, echoes back the input
|
|
3125
|
+
* @param {string} msg
|
|
3126
|
+
* @returns {string}
|
|
3127
|
+
*/
|
|
3128
|
+
echo(msg) {
|
|
3129
|
+
let deferred2_0;
|
|
3130
|
+
let deferred2_1;
|
|
3131
|
+
try {
|
|
3132
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3133
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3134
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3135
|
+
wasm.passwordmanagerclient_echo(retptr, this.__wbg_ptr, ptr0, len0);
|
|
3136
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3137
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3138
|
+
deferred2_0 = r0;
|
|
3139
|
+
deferred2_1 = r1;
|
|
3140
|
+
return getStringFromWasm0(r0, r1);
|
|
3141
|
+
} finally {
|
|
3142
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3143
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
/**
|
|
3147
|
+
* Returns the current SDK version
|
|
3148
|
+
* @returns {string}
|
|
3149
|
+
*/
|
|
3150
|
+
version() {
|
|
3151
|
+
let deferred1_0;
|
|
3152
|
+
let deferred1_1;
|
|
3153
|
+
try {
|
|
3154
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3155
|
+
wasm.passwordmanagerclient_version(retptr, this.__wbg_ptr);
|
|
3156
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3157
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3158
|
+
deferred1_0 = r0;
|
|
3159
|
+
deferred1_1 = r1;
|
|
3160
|
+
return getStringFromWasm0(r0, r1);
|
|
3161
|
+
} finally {
|
|
3162
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3163
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
/**
|
|
3167
|
+
* Test method, always throws an error
|
|
3168
|
+
* @param {string} msg
|
|
3169
|
+
*/
|
|
3170
|
+
throw(msg) {
|
|
3171
|
+
try {
|
|
3172
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3173
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3174
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3175
|
+
wasm.passwordmanagerclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
|
|
3176
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3177
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3178
|
+
if (r1) {
|
|
3179
|
+
throw takeObject(r0);
|
|
3180
|
+
}
|
|
3181
|
+
} finally {
|
|
3182
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
/**
|
|
3186
|
+
* Test method, calls http endpoint
|
|
3187
|
+
* @param {string} url
|
|
3188
|
+
* @returns {Promise<string>}
|
|
3189
|
+
*/
|
|
3190
|
+
http_get(url) {
|
|
3191
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3192
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3193
|
+
const ret = wasm.passwordmanagerclient_http_get(this.__wbg_ptr, ptr0, len0);
|
|
3194
|
+
return takeObject(ret);
|
|
3195
|
+
}
|
|
3196
|
+
/**
|
|
3197
|
+
* Auth related operations.
|
|
3198
|
+
* @returns {AuthClient}
|
|
3199
|
+
*/
|
|
3200
|
+
auth() {
|
|
3201
|
+
const ret = wasm.passwordmanagerclient_auth(this.__wbg_ptr);
|
|
3202
|
+
return AuthClient.__wrap(ret);
|
|
3203
|
+
}
|
|
3204
|
+
/**
|
|
3205
|
+
* Bitwarden licensed operations.
|
|
3206
|
+
* @returns {CommercialPasswordManagerClient}
|
|
3207
|
+
*/
|
|
3208
|
+
commercial() {
|
|
3209
|
+
const ret = wasm.passwordmanagerclient_commercial(this.__wbg_ptr);
|
|
3210
|
+
return CommercialPasswordManagerClient.__wrap(ret);
|
|
3211
|
+
}
|
|
3212
|
+
/**
|
|
3213
|
+
* Crypto related operations.
|
|
3214
|
+
* @returns {CryptoClient}
|
|
3215
|
+
*/
|
|
3216
|
+
crypto() {
|
|
3217
|
+
const ret = wasm.passwordmanagerclient_crypto(this.__wbg_ptr);
|
|
3218
|
+
return CryptoClient.__wrap(ret);
|
|
3219
|
+
}
|
|
3220
|
+
/**
|
|
3221
|
+
* Vault item related operations.
|
|
3222
|
+
* @returns {VaultClient}
|
|
3223
|
+
*/
|
|
3224
|
+
vault() {
|
|
3225
|
+
const ret = wasm.passwordmanagerclient_vault(this.__wbg_ptr);
|
|
3226
|
+
return VaultClient.__wrap(ret);
|
|
3227
|
+
}
|
|
3228
|
+
/**
|
|
3229
|
+
* Constructs a specific client for platform-specific functionality
|
|
3230
|
+
* @returns {PlatformClient}
|
|
3231
|
+
*/
|
|
3232
|
+
platform() {
|
|
3233
|
+
const ret = wasm.passwordmanagerclient_platform(this.__wbg_ptr);
|
|
3234
|
+
return PlatformClient.__wrap(ret);
|
|
3235
|
+
}
|
|
3236
|
+
/**
|
|
3237
|
+
* Constructs a specific client for generating passwords and passphrases
|
|
3238
|
+
* @returns {GeneratorClient}
|
|
3239
|
+
*/
|
|
3240
|
+
generator() {
|
|
3241
|
+
const ret = wasm.passwordmanagerclient_generator(this.__wbg_ptr);
|
|
3242
|
+
return GeneratorClient.__wrap(ret);
|
|
3243
|
+
}
|
|
3244
|
+
/**
|
|
3245
|
+
* Exporter related operations.
|
|
3246
|
+
* @returns {ExporterClient}
|
|
3247
|
+
*/
|
|
3248
|
+
exporters() {
|
|
3249
|
+
const ret = wasm.passwordmanagerclient_exporters(this.__wbg_ptr);
|
|
3250
|
+
return ExporterClient.__wrap(ret);
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
if (Symbol.dispose)
|
|
3254
|
+
PasswordManagerClient.prototype[Symbol.dispose] = PasswordManagerClient.prototype.free;
|
|
3255
|
+
|
|
3256
|
+
exports.PasswordManagerClient = PasswordManagerClient;
|
|
3257
|
+
|
|
3257
3258
|
const PlatformClientFinalization =
|
|
3258
3259
|
typeof FinalizationRegistry === "undefined"
|
|
3259
3260
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3283,7 +3284,7 @@ class PlatformClient {
|
|
|
3283
3284
|
* @returns {StateClient}
|
|
3284
3285
|
*/
|
|
3285
3286
|
state() {
|
|
3286
|
-
const ret = wasm.
|
|
3287
|
+
const ret = wasm.passwordmanagerclient_platform(this.__wbg_ptr);
|
|
3287
3288
|
return StateClient.__wrap(ret);
|
|
3288
3289
|
}
|
|
3289
3290
|
/**
|
|
@@ -4548,7 +4549,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
|
|
|
4548
4549
|
}, arguments);
|
|
4549
4550
|
};
|
|
4550
4551
|
|
|
4551
|
-
exports.
|
|
4552
|
+
exports.__wbg_cipher_834d4613cdda1244 = function (arg0) {
|
|
4552
4553
|
const ret = getObject(arg0).cipher;
|
|
4553
4554
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4554
4555
|
};
|
|
@@ -4641,7 +4642,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
|
|
|
4641
4642
|
return addHeapObject(ret);
|
|
4642
4643
|
};
|
|
4643
4644
|
|
|
4644
|
-
exports.
|
|
4645
|
+
exports.__wbg_folder_23552597752ca903 = function (arg0) {
|
|
4645
4646
|
const ret = getObject(arg0).folder;
|
|
4646
4647
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4647
4648
|
};
|
|
@@ -4668,7 +4669,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
|
|
|
4668
4669
|
return ret;
|
|
4669
4670
|
};
|
|
4670
4671
|
|
|
4671
|
-
exports.
|
|
4672
|
+
exports.__wbg_get_43e4ac53ac36428e = function () {
|
|
4672
4673
|
return handleError(function (arg0, arg1, arg2) {
|
|
4673
4674
|
let deferred0_0;
|
|
4674
4675
|
let deferred0_1;
|
|
@@ -4683,7 +4684,12 @@ exports.__wbg_get_3c2f69a2a0b542fa = function () {
|
|
|
4683
4684
|
}, arguments);
|
|
4684
4685
|
};
|
|
4685
4686
|
|
|
4686
|
-
exports.
|
|
4687
|
+
exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
|
|
4688
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4689
|
+
return addHeapObject(ret);
|
|
4690
|
+
};
|
|
4691
|
+
|
|
4692
|
+
exports.__wbg_get_8e79bf8b6bd9390e = function () {
|
|
4687
4693
|
return handleError(function (arg0, arg1, arg2) {
|
|
4688
4694
|
let deferred0_0;
|
|
4689
4695
|
let deferred0_1;
|
|
@@ -4698,12 +4704,7 @@ exports.__wbg_get_729bb17622e32fbe = function () {
|
|
|
4698
4704
|
}, arguments);
|
|
4699
4705
|
};
|
|
4700
4706
|
|
|
4701
|
-
exports.
|
|
4702
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4703
|
-
return addHeapObject(ret);
|
|
4704
|
-
};
|
|
4705
|
-
|
|
4706
|
-
exports.__wbg_get_access_token_8ae90d4959cc3fed = function (arg0) {
|
|
4707
|
+
exports.__wbg_get_access_token_ea0e045156900f0d = function (arg0) {
|
|
4707
4708
|
const ret = getObject(arg0).get_access_token();
|
|
4708
4709
|
return addHeapObject(ret);
|
|
4709
4710
|
};
|
|
@@ -4899,14 +4900,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
|
|
|
4899
4900
|
return ret;
|
|
4900
4901
|
};
|
|
4901
4902
|
|
|
4902
|
-
exports.
|
|
4903
|
+
exports.__wbg_list_baea5261a20d24cc = function () {
|
|
4903
4904
|
return handleError(function (arg0) {
|
|
4904
4905
|
const ret = getObject(arg0).list();
|
|
4905
4906
|
return addHeapObject(ret);
|
|
4906
4907
|
}, arguments);
|
|
4907
4908
|
};
|
|
4908
4909
|
|
|
4909
|
-
exports.
|
|
4910
|
+
exports.__wbg_list_c9ca45f34538dc57 = function () {
|
|
4910
4911
|
return handleError(function (arg0) {
|
|
4911
4912
|
const ret = getObject(arg0).list();
|
|
4912
4913
|
return addHeapObject(ret);
|
|
@@ -5150,7 +5151,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
5150
5151
|
}, arguments);
|
|
5151
5152
|
};
|
|
5152
5153
|
|
|
5153
|
-
exports.
|
|
5154
|
+
exports.__wbg_remove_2757c99997349f4f = function () {
|
|
5154
5155
|
return handleError(function (arg0, arg1, arg2) {
|
|
5155
5156
|
let deferred0_0;
|
|
5156
5157
|
let deferred0_1;
|
|
@@ -5165,7 +5166,7 @@ exports.__wbg_remove_065dfc4de9f12f65 = function () {
|
|
|
5165
5166
|
}, arguments);
|
|
5166
5167
|
};
|
|
5167
5168
|
|
|
5168
|
-
exports.
|
|
5169
|
+
exports.__wbg_remove_62dc5d88c7d98213 = function () {
|
|
5169
5170
|
return handleError(function (arg0, arg1, arg2) {
|
|
5170
5171
|
let deferred0_0;
|
|
5171
5172
|
let deferred0_1;
|
|
@@ -5215,7 +5216,7 @@ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
|
5215
5216
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5216
5217
|
};
|
|
5217
5218
|
|
|
5218
|
-
exports.
|
|
5219
|
+
exports.__wbg_set_8574bc378894487e = function () {
|
|
5219
5220
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5220
5221
|
let deferred0_0;
|
|
5221
5222
|
let deferred0_1;
|
|
@@ -5230,7 +5231,12 @@ exports.__wbg_set_4881b2237c76b95f = function () {
|
|
|
5230
5231
|
}, arguments);
|
|
5231
5232
|
};
|
|
5232
5233
|
|
|
5233
|
-
exports.
|
|
5234
|
+
exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
|
|
5235
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5236
|
+
return addHeapObject(ret);
|
|
5237
|
+
};
|
|
5238
|
+
|
|
5239
|
+
exports.__wbg_set_a27e21e310ea67b0 = function () {
|
|
5234
5240
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5235
5241
|
let deferred0_0;
|
|
5236
5242
|
let deferred0_1;
|
|
@@ -5245,11 +5251,6 @@ exports.__wbg_set_68faafa99a28839c = function () {
|
|
|
5245
5251
|
}, arguments);
|
|
5246
5252
|
};
|
|
5247
5253
|
|
|
5248
|
-
exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
|
|
5249
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5250
|
-
return addHeapObject(ret);
|
|
5251
|
-
};
|
|
5252
|
-
|
|
5253
5254
|
exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
|
|
5254
5255
|
getObject(arg0).body = getObject(arg1);
|
|
5255
5256
|
};
|
|
Binary file
|
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
16
|
-
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_commercial: (a: number) => number;
|
|
12
|
+
export const passwordmanagerclient_crypto: (a: number) => number;
|
|
13
|
+
export const passwordmanagerclient_vault: (a: number) => number;
|
|
14
|
+
export const passwordmanagerclient_platform: (a: number) => number;
|
|
15
|
+
export const passwordmanagerclient_generator: (a: number) => number;
|
|
16
|
+
export const passwordmanagerclient_exporters: (a: number) => number;
|
|
17
17
|
export const init_sdk: (a: number) => void;
|
|
18
18
|
export const platformclient_load_flags: (a: number, b: number, c: number) => void;
|
|
19
19
|
export const stateclient_register_cipher_repository: (a: number, b: number) => void;
|
|
@@ -440,6 +440,12 @@ export const wasm_bindgen__convert__closures_____invoke__hbb2542ae4cb45009: (
|
|
|
440
440
|
b: number,
|
|
441
441
|
c: number,
|
|
442
442
|
) => void;
|
|
443
|
+
export const wasm_bindgen__closure__destroy__h23c4eb650ac78f8a: (a: number, b: number) => void;
|
|
444
|
+
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
445
|
+
a: number,
|
|
446
|
+
b: number,
|
|
447
|
+
) => void;
|
|
448
|
+
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
443
449
|
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
444
450
|
export const wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b: (
|
|
445
451
|
a: number,
|
|
@@ -447,12 +453,6 @@ export const wasm_bindgen__convert__closures_____invoke__hd5a28d1a4ac42f9b: (
|
|
|
447
453
|
c: number,
|
|
448
454
|
d: number,
|
|
449
455
|
) => void;
|
|
450
|
-
export const wasm_bindgen__closure__destroy__h23c4eb650ac78f8a: (a: number, b: number) => void;
|
|
451
|
-
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
452
|
-
a: number,
|
|
453
|
-
b: number,
|
|
454
|
-
) => void;
|
|
455
|
-
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
456
456
|
export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
|
|
457
457
|
a: number,
|
|
458
458
|
b: number,
|