@bitwarden/sdk-internal 0.2.0-main.437 → 0.2.0-main.439
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 +135 -52
- package/bitwarden_wasm_internal_bg.js +125 -86
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +11 -8
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +135 -52
- package/node/bitwarden_wasm_internal.js +121 -82
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +8 -5
- package/package.json +1 -1
|
@@ -180,10 +180,6 @@ export interface TokenProvider {
|
|
|
180
180
|
get_access_token(): Promise<string | undefined>;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
export interface IndexedDbConfiguration {
|
|
184
|
-
db_name: string;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
183
|
export interface Repositories {
|
|
188
184
|
cipher: Repository<Cipher> | null;
|
|
189
185
|
folder: Repository<Folder> | null;
|
|
@@ -194,37 +190,47 @@ export interface Repositories {
|
|
|
194
190
|
*/
|
|
195
191
|
export interface FeatureFlags extends Map<string, boolean> {}
|
|
196
192
|
|
|
193
|
+
export interface IndexedDbConfiguration {
|
|
194
|
+
db_name: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* Credentials for sending an OTP to the user\'s email address.
|
|
199
|
+
* This is used when the send requires email verification with an OTP.
|
|
199
200
|
*/
|
|
200
|
-
export
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
export interface SendEmailCredentials {
|
|
202
|
+
/**
|
|
203
|
+
* The email address to which the OTP will be sent.
|
|
204
|
+
*/
|
|
205
|
+
email: string;
|
|
206
|
+
}
|
|
204
207
|
|
|
205
208
|
/**
|
|
206
|
-
*
|
|
209
|
+
* Credentials for getting a send access token using an email and OTP.
|
|
207
210
|
*/
|
|
208
|
-
export interface
|
|
211
|
+
export interface SendEmailOtpCredentials {
|
|
209
212
|
/**
|
|
210
|
-
* The
|
|
213
|
+
* The email address to which the OTP will be sent.
|
|
211
214
|
*/
|
|
212
|
-
|
|
215
|
+
email: string;
|
|
213
216
|
/**
|
|
214
|
-
* The
|
|
217
|
+
* The one-time password (OTP) that the user has received via email.
|
|
215
218
|
*/
|
|
216
|
-
|
|
219
|
+
otp: string;
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
/**
|
|
220
|
-
*
|
|
221
|
-
* This is used when the send requires email verification with an OTP.
|
|
223
|
+
* A request structure for requesting a send access token from the API.
|
|
222
224
|
*/
|
|
223
|
-
export interface
|
|
225
|
+
export interface SendAccessTokenRequest {
|
|
224
226
|
/**
|
|
225
|
-
* The
|
|
227
|
+
* The id of the send for which the access token is requested.
|
|
226
228
|
*/
|
|
227
|
-
|
|
229
|
+
sendId: string;
|
|
230
|
+
/**
|
|
231
|
+
* The optional send access credentials.
|
|
232
|
+
*/
|
|
233
|
+
sendAccessCredentials?: SendAccessCredentials;
|
|
228
234
|
}
|
|
229
235
|
|
|
230
236
|
/**
|
|
@@ -240,18 +246,12 @@ export interface SendPasswordCredentials {
|
|
|
240
246
|
}
|
|
241
247
|
|
|
242
248
|
/**
|
|
243
|
-
*
|
|
249
|
+
* The credentials used for send access requests.
|
|
244
250
|
*/
|
|
245
|
-
export
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
email: string;
|
|
250
|
-
/**
|
|
251
|
-
* The one-time password (OTP) that the user has received via email.
|
|
252
|
-
*/
|
|
253
|
-
otp: string;
|
|
254
|
-
}
|
|
251
|
+
export type SendAccessCredentials =
|
|
252
|
+
| SendPasswordCredentials
|
|
253
|
+
| SendEmailOtpCredentials
|
|
254
|
+
| SendEmailCredentials;
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
257
|
* A send access token which can be used to access a send.
|
|
@@ -267,14 +267,6 @@ export interface SendAccessTokenResponse {
|
|
|
267
267
|
expiresAt: number;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
/**
|
|
271
|
-
* Represents errors that can occur when requesting a send access token.
|
|
272
|
-
* It includes expected and unexpected API errors.
|
|
273
|
-
*/
|
|
274
|
-
export type SendAccessTokenError =
|
|
275
|
-
| { kind: "unexpected"; data: UnexpectedIdentityError }
|
|
276
|
-
| { kind: "expected"; data: SendAccessTokenApiErrorResponse };
|
|
277
|
-
|
|
278
270
|
/**
|
|
279
271
|
* Any unexpected error that occurs when making requests to identity. This could be
|
|
280
272
|
* local/transport/decoding failure from the HTTP client (DNS/TLS/connect/read timeout,
|
|
@@ -286,14 +278,21 @@ export type SendAccessTokenError =
|
|
|
286
278
|
export type UnexpectedIdentityError = string;
|
|
287
279
|
|
|
288
280
|
/**
|
|
289
|
-
*
|
|
281
|
+
* Represents errors that can occur when requesting a send access token.
|
|
282
|
+
* It includes expected and unexpected API errors.
|
|
290
283
|
*/
|
|
291
|
-
export type
|
|
292
|
-
| "
|
|
293
|
-
| "
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
284
|
+
export type SendAccessTokenError =
|
|
285
|
+
| { kind: "unexpected"; data: UnexpectedIdentityError }
|
|
286
|
+
| { kind: "expected"; data: SendAccessTokenApiErrorResponse };
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Invalid request errors - typically due to missing parameters.
|
|
290
|
+
*/
|
|
291
|
+
export type SendAccessTokenInvalidRequestError =
|
|
292
|
+
| "send_id_required"
|
|
293
|
+
| "password_hash_b64_required"
|
|
294
|
+
| "email_required"
|
|
295
|
+
| "email_and_otp_required_otp_sent"
|
|
297
296
|
| "unknown";
|
|
298
297
|
|
|
299
298
|
/**
|
|
@@ -317,15 +316,68 @@ export type SendAccessTokenApiErrorResponse =
|
|
|
317
316
|
| { error: "invalid_target"; error_description?: string };
|
|
318
317
|
|
|
319
318
|
/**
|
|
320
|
-
* Invalid
|
|
319
|
+
* Invalid grant errors - typically due to invalid credentials.
|
|
321
320
|
*/
|
|
322
|
-
export type
|
|
323
|
-
| "
|
|
324
|
-
| "
|
|
325
|
-
| "
|
|
326
|
-
| "
|
|
321
|
+
export type SendAccessTokenInvalidGrantError =
|
|
322
|
+
| "send_id_invalid"
|
|
323
|
+
| "password_hash_b64_invalid"
|
|
324
|
+
| "email_invalid"
|
|
325
|
+
| "otp_invalid"
|
|
326
|
+
| "otp_generation_failed"
|
|
327
327
|
| "unknown";
|
|
328
328
|
|
|
329
|
+
/**
|
|
330
|
+
* Result of TDE registration process.
|
|
331
|
+
*/
|
|
332
|
+
export interface TdeRegistrationResponse {
|
|
333
|
+
/**
|
|
334
|
+
* The account cryptographic state of the user
|
|
335
|
+
*/
|
|
336
|
+
account_cryptographic_state: WrappedAccountCryptographicState;
|
|
337
|
+
/**
|
|
338
|
+
* The device key
|
|
339
|
+
*/
|
|
340
|
+
device_key: B64;
|
|
341
|
+
/**
|
|
342
|
+
* The decrypted user key. This can be used to get the consuming client to an unlocked state.
|
|
343
|
+
*/
|
|
344
|
+
user_key: B64;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export interface RegistrationError extends Error {
|
|
348
|
+
name: "RegistrationError";
|
|
349
|
+
variant: "Api" | "Crypto";
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export function isRegistrationError(error: any): error is RegistrationError;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Request parameters for TDE (Trusted Device Encryption) registration.
|
|
356
|
+
*/
|
|
357
|
+
export interface TdeRegistrationRequest {
|
|
358
|
+
/**
|
|
359
|
+
* Organization ID to enroll in
|
|
360
|
+
*/
|
|
361
|
+
org_id: OrganizationId;
|
|
362
|
+
/**
|
|
363
|
+
* Organization\'s public key for encrypting the reset password key. This should be verified by
|
|
364
|
+
* the client and not verifying may compromise the security of the user\'s account.
|
|
365
|
+
*/
|
|
366
|
+
org_public_key: B64;
|
|
367
|
+
/**
|
|
368
|
+
* User ID for the account being initialized
|
|
369
|
+
*/
|
|
370
|
+
user_id: UserId;
|
|
371
|
+
/**
|
|
372
|
+
* Device identifier for TDE enrollment
|
|
373
|
+
*/
|
|
374
|
+
device_identifier: string;
|
|
375
|
+
/**
|
|
376
|
+
* Whether to trust this device for TDE
|
|
377
|
+
*/
|
|
378
|
+
trust_device: boolean;
|
|
379
|
+
}
|
|
380
|
+
|
|
329
381
|
/**
|
|
330
382
|
* NewType wrapper for `CollectionId`
|
|
331
383
|
*/
|
|
@@ -560,6 +612,13 @@ export interface VerifyAsymmetricKeysRequest {
|
|
|
560
612
|
userKeyEncryptedPrivateKey: EncString;
|
|
561
613
|
}
|
|
562
614
|
|
|
615
|
+
export interface MakeKeysError extends Error {
|
|
616
|
+
name: "MakeKeysError";
|
|
617
|
+
variant: "AccountCryptographyInitialization" | "RequestModelCreation" | "Crypto";
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export function isMakeKeysError(error: any): error is MakeKeysError;
|
|
621
|
+
|
|
563
622
|
/**
|
|
564
623
|
* Response for the `make_keys_for_user_crypto_v2`, containing a set of keys for a user
|
|
565
624
|
*/
|
|
@@ -790,6 +849,25 @@ export type UnsignedSharedKey = Tagged<string, "UnsignedSharedKey">;
|
|
|
790
849
|
|
|
791
850
|
export type EncString = Tagged<string, "EncString">;
|
|
792
851
|
|
|
852
|
+
export interface TrustDeviceResponse {
|
|
853
|
+
/**
|
|
854
|
+
* Base64 encoded device key
|
|
855
|
+
*/
|
|
856
|
+
device_key: B64;
|
|
857
|
+
/**
|
|
858
|
+
* UserKey encrypted with DevicePublicKey
|
|
859
|
+
*/
|
|
860
|
+
protected_user_key: UnsignedSharedKey;
|
|
861
|
+
/**
|
|
862
|
+
* DevicePrivateKey encrypted with [DeviceKey]
|
|
863
|
+
*/
|
|
864
|
+
protected_device_private_key: EncString;
|
|
865
|
+
/**
|
|
866
|
+
* DevicePublicKey encrypted with [UserKey](super::UserKey)
|
|
867
|
+
*/
|
|
868
|
+
protected_device_public_key: EncString;
|
|
869
|
+
}
|
|
870
|
+
|
|
793
871
|
export type SignedPublicKey = Tagged<string, "SignedPublicKey">;
|
|
794
872
|
|
|
795
873
|
/**
|
|
@@ -2511,6 +2589,11 @@ export class RegistrationClient {
|
|
|
2511
2589
|
private constructor();
|
|
2512
2590
|
free(): void;
|
|
2513
2591
|
[Symbol.dispose](): void;
|
|
2592
|
+
/**
|
|
2593
|
+
* Initializes a new cryptographic state for a user and posts it to the server; enrolls in
|
|
2594
|
+
* admin password reset and finally enrolls the user to TDE unlock.
|
|
2595
|
+
*/
|
|
2596
|
+
post_keys_for_tde_registration(request: TdeRegistrationRequest): Promise<TdeRegistrationResponse>;
|
|
2514
2597
|
}
|
|
2515
2598
|
/**
|
|
2516
2599
|
* The `SendAccessClient` is used to interact with the Bitwarden API to get send access tokens.
|
|
@@ -205,16 +205,6 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
205
205
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
209
|
-
ptr = ptr >>> 0;
|
|
210
|
-
const mem = getDataViewMemory0();
|
|
211
|
-
const result = [];
|
|
212
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
213
|
-
result.push(takeObject(mem.getUint32(i, true)));
|
|
214
|
-
}
|
|
215
|
-
return result;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
208
|
const CLOSURE_DTORS =
|
|
219
209
|
typeof FinalizationRegistry === "undefined"
|
|
220
210
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -247,6 +237,16 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
247
237
|
return real;
|
|
248
238
|
}
|
|
249
239
|
|
|
240
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
241
|
+
ptr = ptr >>> 0;
|
|
242
|
+
const mem = getDataViewMemory0();
|
|
243
|
+
const result = [];
|
|
244
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
245
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
|
246
|
+
}
|
|
247
|
+
return result;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
250
|
function passArray8ToWasm0(arg, malloc) {
|
|
251
251
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
252
252
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -348,6 +348,19 @@ exports.isTestError = function (error) {
|
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
|
|
351
|
+
/**
|
|
352
|
+
* @param {any} error
|
|
353
|
+
* @returns {boolean}
|
|
354
|
+
*/
|
|
355
|
+
exports.isRegistrationError = function (error) {
|
|
356
|
+
try {
|
|
357
|
+
const ret = wasm.isRegistrationError(addBorrowedObject(error));
|
|
358
|
+
return ret !== 0;
|
|
359
|
+
} finally {
|
|
360
|
+
heap[stack_pointer++] = undefined;
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
|
|
351
364
|
/**
|
|
352
365
|
* @param {any} error
|
|
353
366
|
* @returns {boolean}
|
|
@@ -426,6 +439,19 @@ exports.isDeriveKeyConnectorError = function (error) {
|
|
|
426
439
|
}
|
|
427
440
|
};
|
|
428
441
|
|
|
442
|
+
/**
|
|
443
|
+
* @param {any} error
|
|
444
|
+
* @returns {boolean}
|
|
445
|
+
*/
|
|
446
|
+
exports.isMakeKeysError = function (error) {
|
|
447
|
+
try {
|
|
448
|
+
const ret = wasm.isMakeKeysError(addBorrowedObject(error));
|
|
449
|
+
return ret !== 0;
|
|
450
|
+
} finally {
|
|
451
|
+
heap[stack_pointer++] = undefined;
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
|
|
429
455
|
/**
|
|
430
456
|
* @param {any} error
|
|
431
457
|
* @returns {boolean}
|
|
@@ -876,18 +902,18 @@ function wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg
|
|
|
876
902
|
wasm.wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1);
|
|
877
903
|
}
|
|
878
904
|
|
|
879
|
-
function
|
|
880
|
-
wasm.
|
|
905
|
+
function wasm_bindgen__convert__closures_____invoke__h5cc2c3c66229bc92(arg0, arg1, arg2) {
|
|
906
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5cc2c3c66229bc92(
|
|
881
907
|
arg0,
|
|
882
908
|
arg1,
|
|
883
909
|
addHeapObject(arg2),
|
|
884
910
|
);
|
|
885
911
|
}
|
|
886
912
|
|
|
887
|
-
function
|
|
913
|
+
function wasm_bindgen__convert__closures_____invoke__h55c4ad30869c1fdd(arg0, arg1, arg2) {
|
|
888
914
|
try {
|
|
889
915
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
890
|
-
wasm.
|
|
916
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h55c4ad30869c1fdd(
|
|
891
917
|
retptr,
|
|
892
918
|
arg0,
|
|
893
919
|
arg1,
|
|
@@ -4214,6 +4240,19 @@ class RegistrationClient {
|
|
|
4214
4240
|
const ptr = this.__destroy_into_raw();
|
|
4215
4241
|
wasm.__wbg_registrationclient_free(ptr, 0);
|
|
4216
4242
|
}
|
|
4243
|
+
/**
|
|
4244
|
+
* Initializes a new cryptographic state for a user and posts it to the server; enrolls in
|
|
4245
|
+
* admin password reset and finally enrolls the user to TDE unlock.
|
|
4246
|
+
* @param {TdeRegistrationRequest} request
|
|
4247
|
+
* @returns {Promise<TdeRegistrationResponse>}
|
|
4248
|
+
*/
|
|
4249
|
+
post_keys_for_tde_registration(request) {
|
|
4250
|
+
const ret = wasm.registrationclient_post_keys_for_tde_registration(
|
|
4251
|
+
this.__wbg_ptr,
|
|
4252
|
+
addHeapObject(request),
|
|
4253
|
+
);
|
|
4254
|
+
return takeObject(ret);
|
|
4255
|
+
}
|
|
4217
4256
|
}
|
|
4218
4257
|
if (Symbol.dispose)
|
|
4219
4258
|
RegistrationClient.prototype[Symbol.dispose] = RegistrationClient.prototype.free;
|
|
@@ -4642,7 +4681,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
|
|
|
4642
4681
|
}, arguments);
|
|
4643
4682
|
};
|
|
4644
4683
|
|
|
4645
|
-
exports.
|
|
4684
|
+
exports.__wbg_cipher_d8856dd2ce7150aa = function (arg0) {
|
|
4646
4685
|
const ret = getObject(arg0).cipher;
|
|
4647
4686
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4648
4687
|
};
|
|
@@ -4735,7 +4774,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
|
|
|
4735
4774
|
return addHeapObject(ret);
|
|
4736
4775
|
};
|
|
4737
4776
|
|
|
4738
|
-
exports.
|
|
4777
|
+
exports.__wbg_folder_9c099dc41053c5a6 = function (arg0) {
|
|
4739
4778
|
const ret = getObject(arg0).folder;
|
|
4740
4779
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4741
4780
|
};
|
|
@@ -4768,7 +4807,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
|
|
|
4768
4807
|
return ret;
|
|
4769
4808
|
};
|
|
4770
4809
|
|
|
4771
|
-
exports.
|
|
4810
|
+
exports.__wbg_get_72f445e17ec1aa21 = function () {
|
|
4772
4811
|
return handleError(function (arg0, arg1, arg2) {
|
|
4773
4812
|
let deferred0_0;
|
|
4774
4813
|
let deferred0_1;
|
|
@@ -4788,7 +4827,12 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
|
|
|
4788
4827
|
return addHeapObject(ret);
|
|
4789
4828
|
};
|
|
4790
4829
|
|
|
4791
|
-
exports.
|
|
4830
|
+
exports.__wbg_get_access_token_4c961c3c68d8878a = function (arg0) {
|
|
4831
|
+
const ret = getObject(arg0).get_access_token();
|
|
4832
|
+
return addHeapObject(ret);
|
|
4833
|
+
};
|
|
4834
|
+
|
|
4835
|
+
exports.__wbg_get_d96fcc610ee6c044 = function () {
|
|
4792
4836
|
return handleError(function (arg0, arg1, arg2) {
|
|
4793
4837
|
let deferred0_0;
|
|
4794
4838
|
let deferred0_1;
|
|
@@ -4803,11 +4847,6 @@ exports.__wbg_get_a500a1cf45d12e9b = function () {
|
|
|
4803
4847
|
}, arguments);
|
|
4804
4848
|
};
|
|
4805
4849
|
|
|
4806
|
-
exports.__wbg_get_access_token_acb10922a5e768ad = function (arg0) {
|
|
4807
|
-
const ret = getObject(arg0).get_access_token();
|
|
4808
|
-
return addHeapObject(ret);
|
|
4809
|
-
};
|
|
4810
|
-
|
|
4811
4850
|
exports.__wbg_get_efcb449f58ec27c2 = function () {
|
|
4812
4851
|
return handleError(function (arg0, arg1) {
|
|
4813
4852
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
@@ -4999,14 +5038,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
|
|
|
4999
5038
|
return ret;
|
|
5000
5039
|
};
|
|
5001
5040
|
|
|
5002
|
-
exports.
|
|
5041
|
+
exports.__wbg_list_8b9cc57047c9d5a0 = function () {
|
|
5003
5042
|
return handleError(function (arg0) {
|
|
5004
5043
|
const ret = getObject(arg0).list();
|
|
5005
5044
|
return addHeapObject(ret);
|
|
5006
5045
|
}, arguments);
|
|
5007
5046
|
};
|
|
5008
5047
|
|
|
5009
|
-
exports.
|
|
5048
|
+
exports.__wbg_list_99b0aedbac169079 = function () {
|
|
5010
5049
|
return handleError(function (arg0) {
|
|
5011
5050
|
const ret = getObject(arg0).list();
|
|
5012
5051
|
return addHeapObject(ret);
|
|
@@ -5250,7 +5289,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
5250
5289
|
}, arguments);
|
|
5251
5290
|
};
|
|
5252
5291
|
|
|
5253
|
-
exports.
|
|
5292
|
+
exports.__wbg_remove_30835cf5f8b44c8a = function () {
|
|
5254
5293
|
return handleError(function (arg0, arg1, arg2) {
|
|
5255
5294
|
let deferred0_0;
|
|
5256
5295
|
let deferred0_1;
|
|
@@ -5265,7 +5304,7 @@ exports.__wbg_remove_491c4cc200722fdc = function () {
|
|
|
5265
5304
|
}, arguments);
|
|
5266
5305
|
};
|
|
5267
5306
|
|
|
5268
|
-
exports.
|
|
5307
|
+
exports.__wbg_remove_4dc0918671fbf62d = function () {
|
|
5269
5308
|
return handleError(function (arg0, arg1, arg2) {
|
|
5270
5309
|
let deferred0_0;
|
|
5271
5310
|
let deferred0_1;
|
|
@@ -5320,6 +5359,21 @@ exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
|
|
|
5320
5359
|
return addHeapObject(ret);
|
|
5321
5360
|
};
|
|
5322
5361
|
|
|
5362
|
+
exports.__wbg_set_9bbfa30b630bbb2e = function () {
|
|
5363
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5364
|
+
let deferred0_0;
|
|
5365
|
+
let deferred0_1;
|
|
5366
|
+
try {
|
|
5367
|
+
deferred0_0 = arg1;
|
|
5368
|
+
deferred0_1 = arg2;
|
|
5369
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5370
|
+
return addHeapObject(ret);
|
|
5371
|
+
} finally {
|
|
5372
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5373
|
+
}
|
|
5374
|
+
}, arguments);
|
|
5375
|
+
};
|
|
5376
|
+
|
|
5323
5377
|
exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
|
|
5324
5378
|
getObject(arg0).body = getObject(arg1);
|
|
5325
5379
|
};
|
|
@@ -5339,22 +5393,7 @@ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
|
|
|
5339
5393
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5340
5394
|
};
|
|
5341
5395
|
|
|
5342
|
-
exports.
|
|
5343
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5344
|
-
let deferred0_0;
|
|
5345
|
-
let deferred0_1;
|
|
5346
|
-
try {
|
|
5347
|
-
deferred0_0 = arg1;
|
|
5348
|
-
deferred0_1 = arg2;
|
|
5349
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5350
|
-
return addHeapObject(ret);
|
|
5351
|
-
} finally {
|
|
5352
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5353
|
-
}
|
|
5354
|
-
}, arguments);
|
|
5355
|
-
};
|
|
5356
|
-
|
|
5357
|
-
exports.__wbg_set_f3daacef771cf194 = function () {
|
|
5396
|
+
exports.__wbg_set_ea5d171269c04495 = function () {
|
|
5358
5397
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5359
5398
|
let deferred0_0;
|
|
5360
5399
|
let deferred0_1;
|
|
@@ -5533,6 +5572,17 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
|
|
|
5533
5572
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5534
5573
|
};
|
|
5535
5574
|
|
|
5575
|
+
exports.__wbindgen_cast_20857c511765411e = function (arg0, arg1) {
|
|
5576
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("Event")], shim_idx: 46, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5577
|
+
const ret = makeMutClosure(
|
|
5578
|
+
arg0,
|
|
5579
|
+
arg1,
|
|
5580
|
+
wasm.wasm_bindgen__closure__destroy__h541fb5a7c811e354,
|
|
5581
|
+
wasm_bindgen__convert__closures_____invoke__h55c4ad30869c1fdd,
|
|
5582
|
+
);
|
|
5583
|
+
return addHeapObject(ret);
|
|
5584
|
+
};
|
|
5585
|
+
|
|
5536
5586
|
exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
|
|
5537
5587
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
5538
5588
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -5545,6 +5595,17 @@ exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
|
|
|
5545
5595
|
return addHeapObject(ret);
|
|
5546
5596
|
};
|
|
5547
5597
|
|
|
5598
|
+
exports.__wbindgen_cast_5774b2b6fba5c6d4 = function (arg0, arg1) {
|
|
5599
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5600
|
+
const ret = makeMutClosure(
|
|
5601
|
+
arg0,
|
|
5602
|
+
arg1,
|
|
5603
|
+
wasm.wasm_bindgen__closure__destroy__h541fb5a7c811e354,
|
|
5604
|
+
wasm_bindgen__convert__closures_____invoke__h5cc2c3c66229bc92,
|
|
5605
|
+
);
|
|
5606
|
+
return addHeapObject(ret);
|
|
5607
|
+
};
|
|
5608
|
+
|
|
5548
5609
|
exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
|
|
5549
5610
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5550
5611
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5553,17 +5614,6 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
|
|
|
5553
5614
|
return addHeapObject(ret);
|
|
5554
5615
|
};
|
|
5555
5616
|
|
|
5556
|
-
exports.__wbindgen_cast_66b9b6fddd3159a0 = function (arg0, arg1) {
|
|
5557
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [Externref], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5558
|
-
const ret = makeMutClosure(
|
|
5559
|
-
arg0,
|
|
5560
|
-
arg1,
|
|
5561
|
-
wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
|
|
5562
|
-
wasm_bindgen__convert__closures_____invoke__h8043935442c5d178,
|
|
5563
|
-
);
|
|
5564
|
-
return addHeapObject(ret);
|
|
5565
|
-
};
|
|
5566
|
-
|
|
5567
5617
|
exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
|
|
5568
5618
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5569
5619
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5578,12 +5628,12 @@ exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
|
|
|
5578
5628
|
return addHeapObject(ret);
|
|
5579
5629
|
};
|
|
5580
5630
|
|
|
5581
|
-
exports.
|
|
5582
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5631
|
+
exports.__wbindgen_cast_ab87f469c2c8c8ee = function (arg0, arg1) {
|
|
5632
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 311, function: Function { arguments: [], shim_idx: 312, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5583
5633
|
const ret = makeMutClosure(
|
|
5584
5634
|
arg0,
|
|
5585
5635
|
arg1,
|
|
5586
|
-
wasm.
|
|
5636
|
+
wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
|
|
5587
5637
|
wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
|
|
5588
5638
|
);
|
|
5589
5639
|
return addHeapObject(ret);
|
|
@@ -5595,40 +5645,18 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
|
|
|
5595
5645
|
return addHeapObject(ret);
|
|
5596
5646
|
};
|
|
5597
5647
|
|
|
5598
|
-
exports.__wbindgen_cast_d3c442d81884e8e4 = function (arg0, arg1) {
|
|
5599
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5600
|
-
const ret = makeMutClosure(
|
|
5601
|
-
arg0,
|
|
5602
|
-
arg1,
|
|
5603
|
-
wasm.wasm_bindgen__closure__destroy__h119ee11456c43c2a,
|
|
5604
|
-
wasm_bindgen__convert__closures_____invoke__hdcab5206aa3b5a3d,
|
|
5605
|
-
);
|
|
5606
|
-
return addHeapObject(ret);
|
|
5607
|
-
};
|
|
5608
|
-
|
|
5609
5648
|
exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
|
|
5610
5649
|
// Cast intrinsic for `F64 -> Externref`.
|
|
5611
5650
|
const ret = arg0;
|
|
5612
5651
|
return addHeapObject(ret);
|
|
5613
5652
|
};
|
|
5614
5653
|
|
|
5615
|
-
exports.
|
|
5616
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5654
|
+
exports.__wbindgen_cast_ebf67f1bd70fb06c = function (arg0, arg1) {
|
|
5655
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [], shim_idx: 312, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5617
5656
|
const ret = makeMutClosure(
|
|
5618
5657
|
arg0,
|
|
5619
5658
|
arg1,
|
|
5620
|
-
wasm.
|
|
5621
|
-
wasm_bindgen__convert__closures_____invoke__h8043935442c5d178,
|
|
5622
|
-
);
|
|
5623
|
-
return addHeapObject(ret);
|
|
5624
|
-
};
|
|
5625
|
-
|
|
5626
|
-
exports.__wbindgen_cast_e1b8613407289e9c = function (arg0, arg1) {
|
|
5627
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5628
|
-
const ret = makeMutClosure(
|
|
5629
|
-
arg0,
|
|
5630
|
-
arg1,
|
|
5631
|
-
wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
|
|
5659
|
+
wasm.wasm_bindgen__closure__destroy__he95e920b8d9de938,
|
|
5632
5660
|
wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
|
|
5633
5661
|
);
|
|
5634
5662
|
return addHeapObject(ret);
|
|
@@ -5642,6 +5670,17 @@ exports.__wbindgen_cast_ef90a087adb7475d = function (arg0, arg1) {
|
|
|
5642
5670
|
return addHeapObject(ret);
|
|
5643
5671
|
};
|
|
5644
5672
|
|
|
5673
|
+
exports.__wbindgen_cast_fc753a9bbf7da392 = function (arg0, arg1) {
|
|
5674
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 311, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5675
|
+
const ret = makeMutClosure(
|
|
5676
|
+
arg0,
|
|
5677
|
+
arg1,
|
|
5678
|
+
wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
|
|
5679
|
+
wasm_bindgen__convert__closures_____invoke__h5cc2c3c66229bc92,
|
|
5680
|
+
);
|
|
5681
|
+
return addHeapObject(ret);
|
|
5682
|
+
};
|
|
5683
|
+
|
|
5645
5684
|
exports.__wbindgen_object_clone_ref = function (arg0) {
|
|
5646
5685
|
const ret = getObject(arg0);
|
|
5647
5686
|
return addHeapObject(ret);
|
|
Binary file
|