@bitcredit/bcr-ebill-wasm 0.4.5 → 0.4.7
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/index.d.ts +61 -10
- package/index.js +132 -24
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ export interface LightSignedByWeb {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
export interface EndorsementWeb {
|
|
115
|
-
pay_to_the_order_of:
|
|
115
|
+
pay_to_the_order_of: LightBillParticipantWeb;
|
|
116
116
|
signed: LightSignedByWeb;
|
|
117
117
|
signing_timestamp: number;
|
|
118
118
|
signing_address: PostalAddressWeb | undefined;
|
|
@@ -245,6 +245,7 @@ export interface BillStatusWeb {
|
|
|
245
245
|
mint: BillMintStatusWeb;
|
|
246
246
|
redeemed_funds_available: boolean;
|
|
247
247
|
has_requested_funds: boolean;
|
|
248
|
+
last_block_time: number;
|
|
248
249
|
}
|
|
249
250
|
|
|
250
251
|
export interface BillAcceptanceStatusWeb {
|
|
@@ -520,6 +521,18 @@ export interface SeedPhrase {
|
|
|
520
521
|
seed_phrase: string;
|
|
521
522
|
}
|
|
522
523
|
|
|
524
|
+
export interface IdentityProofWeb {
|
|
525
|
+
id: string;
|
|
526
|
+
node_id: string;
|
|
527
|
+
stamp: string;
|
|
528
|
+
url: string;
|
|
529
|
+
timestamp: number;
|
|
530
|
+
status: IdentityProofStatusWeb;
|
|
531
|
+
status_last_checked_timestamp: number;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
export type IdentityProofStatusWeb = "Success" | "NotFound" | "FailureConnect" | "FailureClient" | "FailureServer";
|
|
535
|
+
|
|
523
536
|
export interface NotificationStatusWeb {
|
|
524
537
|
node_id: string;
|
|
525
538
|
active: boolean;
|
|
@@ -635,7 +648,7 @@ export interface UploadFileResponse {
|
|
|
635
648
|
file_upload_id: string;
|
|
636
649
|
}
|
|
637
650
|
|
|
638
|
-
export type JsErrorType = "FieldEmpty" | "InvalidSum" | "InvalidCurrency" | "InvalidPaymentAddress" | "InvalidContentType" | "IdentityCantBeAnon" | "IdentityIsNotBillIssuer" | "InvalidContactType" | "InvalidIdentityType" | "InvalidDate" | "SelfDraftedBillCantBeBlank" | "RequestToMintForBillAndMintAlreadyActive" | "SignerCantBeAnon" | "ContactIsAnonymous" | "InvalidContact" | "InvalidMint" | "IssueDateAfterMaturityDate" | "MaturityDateInThePast" | "InvalidFileUploadId" | "InvalidNodeId" | "InvalidBillId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "CancelMintRequestNotPending" | "RejectMintRequestNotOffered" | "AcceptMintRequestNotOffered" | "AcceptMintOfferExpired" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Io" | "Crypto" | "Persistence" | "Blockchain" | "InvalidRelayUrl" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRejectedToRecourse" | "BillRequestToRecourseExpired" | "BillWasRecoursedToTheEnd" | "BillAlreadyRequestedToAccept" | "BillNotAccepted" | "CallerIsNotDrawee" | "CallerIsNotHolder" | "CallerIsNotRecoursee" | "CallerIsNotBuyer" | "RequestAlreadyExpired" | "RequestAlreadyRejected" | "BillAlreadyPaid" | "BillWasNotRequestedToAccept" | "BillWasNotRequestedToPay" | "BillWasNotOfferedToSell" | "BillRequestToAcceptDidNotExpireAndWasNotRejected" | "BillRequestToPayDidNotExpireAndWasNotRejected" | "RecourseeNotPastHolder" | "BillWasNotRequestedToRecourse" | "BillIsNotRequestedToRecourseAndWaitingForPayment" | "BillIsNotOfferToSellWaitingForPayment" | "BillSellDataInvalid" | "BillRecourseDataInvalid" | "BillIsRequestedToPayAndWaitingForPayment" | "BillIsOfferedToSellAndWaitingForPayment" | "BillIsInRecourseAndWaitingForPayment" | "BillWasRequestedToPay" | "DrawerIsNotBillIssuer" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "InvalidSecp256k1Key" | "FileIsTooBig" | "FileIsEmpty" | "TooManyFiles" | "InvalidFileName" | "UnknownNodeId" | "BackupNotSupported" | "CallerMustBeSignatory";
|
|
651
|
+
export type JsErrorType = "FieldEmpty" | "InvalidSum" | "InvalidCurrency" | "InvalidPaymentAddress" | "InvalidContentType" | "IdentityCantBeAnon" | "IdentityIsNotBillIssuer" | "InvalidContactType" | "InvalidIdentityType" | "InvalidDate" | "SelfDraftedBillCantBeBlank" | "RequestToMintForBillAndMintAlreadyActive" | "SignerCantBeAnon" | "ContactIsAnonymous" | "InvalidContact" | "InvalidMint" | "IssueDateAfterMaturityDate" | "MaturityDateInThePast" | "InvalidFileUploadId" | "InvalidNodeId" | "InvalidBillId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "CancelMintRequestNotPending" | "RejectMintRequestNotOffered" | "AcceptMintRequestNotOffered" | "AcceptMintOfferExpired" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Io" | "Crypto" | "Persistence" | "Blockchain" | "InvalidRelayUrl" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRejectedToRecourse" | "BillRequestToRecourseExpired" | "BillWasRecoursedToTheEnd" | "BillAlreadyRequestedToAccept" | "BillNotAccepted" | "CallerIsNotDrawee" | "CallerIsNotHolder" | "CallerIsNotRecoursee" | "CallerIsNotBuyer" | "RequestAlreadyExpired" | "RequestAlreadyRejected" | "BillAlreadyPaid" | "BillWasNotRequestedToAccept" | "BillWasNotRequestedToPay" | "BillWasNotOfferedToSell" | "BillRequestToAcceptDidNotExpireAndWasNotRejected" | "BillRequestToPayDidNotExpireAndWasNotRejected" | "RecourseeNotPastHolder" | "BillWasNotRequestedToRecourse" | "BillIsNotRequestedToRecourseAndWaitingForPayment" | "BillIsNotOfferToSellWaitingForPayment" | "BillSellDataInvalid" | "BillRecourseDataInvalid" | "BillIsRequestedToPayAndWaitingForPayment" | "BillIsOfferedToSellAndWaitingForPayment" | "BillIsInRecourseAndWaitingForPayment" | "BillWasRequestedToPay" | "DrawerIsNotBillIssuer" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "InvalidSecp256k1Key" | "FileIsTooBig" | "FileIsEmpty" | "TooManyFiles" | "InvalidFileName" | "UnknownNodeId" | "BackupNotSupported" | "CallerMustBeSignatory" | "InvalidBase58" | "InvalidSignature" | "InvalidUrl" | "InvalidIdentityProofStatus";
|
|
639
652
|
|
|
640
653
|
export interface JsErrorData {
|
|
641
654
|
error: JsErrorType;
|
|
@@ -655,6 +668,7 @@ export interface Config {
|
|
|
655
668
|
default_mint_url: string;
|
|
656
669
|
default_mint_node_id: string;
|
|
657
670
|
num_confirmations_for_payment: number;
|
|
671
|
+
dev_mode: boolean;
|
|
658
672
|
}
|
|
659
673
|
|
|
660
674
|
export interface MintRequestStateWeb {
|
|
@@ -692,6 +706,7 @@ export class Api {
|
|
|
692
706
|
static general(): General;
|
|
693
707
|
static contact(): Contact;
|
|
694
708
|
static identity(): Identity;
|
|
709
|
+
static identity_proof(): IdentityProof;
|
|
695
710
|
static notification(): Notification;
|
|
696
711
|
static company(): Company;
|
|
697
712
|
static bill(): Bill;
|
|
@@ -746,6 +761,7 @@ export class Bill {
|
|
|
746
761
|
* Given a bill id, resync the chain via block transport
|
|
747
762
|
*/
|
|
748
763
|
sync_bill_chain(payload: ResyncBillPayload): Promise<void>;
|
|
764
|
+
dev_mode_get_full_bill_chain(bill_id: string): Promise<string[]>;
|
|
749
765
|
}
|
|
750
766
|
export class Company {
|
|
751
767
|
private constructor();
|
|
@@ -802,11 +818,37 @@ export class Identity {
|
|
|
802
818
|
seed_backup(): Promise<SeedPhrase>;
|
|
803
819
|
seed_recover(payload: SeedPhrase): Promise<void>;
|
|
804
820
|
}
|
|
821
|
+
export class IdentityProof {
|
|
822
|
+
private constructor();
|
|
823
|
+
free(): void;
|
|
824
|
+
static new(): IdentityProof;
|
|
825
|
+
/**
|
|
826
|
+
* Get identity stamp to post on social media for the currently selected identity
|
|
827
|
+
*/
|
|
828
|
+
get_identity_stamp(): Promise<string>;
|
|
829
|
+
/**
|
|
830
|
+
* Fetch identity proofs for the currently selected identity
|
|
831
|
+
*/
|
|
832
|
+
list(): Promise<IdentityProofWeb[]>;
|
|
833
|
+
/**
|
|
834
|
+
* Add identity proof for the currently selected identity
|
|
835
|
+
*/
|
|
836
|
+
add(url: string, stamp: string): Promise<IdentityProofWeb>;
|
|
837
|
+
/**
|
|
838
|
+
* Archive the identity proof with the given id for the currently selected identity
|
|
839
|
+
*/
|
|
840
|
+
archive(id: string): Promise<void>;
|
|
841
|
+
/**
|
|
842
|
+
* Re-check the identity proof by its URL with the given id for the currently selected identity
|
|
843
|
+
* returning the new result
|
|
844
|
+
*/
|
|
845
|
+
re_check(id: string): Promise<IdentityProofWeb>;
|
|
846
|
+
}
|
|
805
847
|
export class Notification {
|
|
806
848
|
private constructor();
|
|
807
849
|
free(): void;
|
|
808
850
|
static new(): Notification;
|
|
809
|
-
active_notifications_for_node_ids(node_ids:
|
|
851
|
+
active_notifications_for_node_ids(node_ids: string[]): Promise<NotificationStatusWeb[]>;
|
|
810
852
|
subscribe(callback: Function): Promise<void>;
|
|
811
853
|
list(filters: NotificationFilters): Promise<NotificationWeb[]>;
|
|
812
854
|
mark_as_done(notification_id: string): Promise<void>;
|
|
@@ -862,6 +904,7 @@ export interface InitOutput {
|
|
|
862
904
|
readonly bill_request_to_recourse_bill_acceptance: (a: number, b: any) => any;
|
|
863
905
|
readonly bill_clear_bill_cache: (a: number) => any;
|
|
864
906
|
readonly bill_sync_bill_chain: (a: number, b: any) => any;
|
|
907
|
+
readonly bill_dev_mode_get_full_bill_chain: (a: number, b: number, c: number) => any;
|
|
865
908
|
readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
866
909
|
readonly company_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
867
910
|
readonly company_upload: (a: number, b: any) => any;
|
|
@@ -897,6 +940,11 @@ export interface InitOutput {
|
|
|
897
940
|
readonly identity_switch: (a: number, b: any) => any;
|
|
898
941
|
readonly identity_seed_backup: (a: number) => any;
|
|
899
942
|
readonly identity_seed_recover: (a: number, b: any) => any;
|
|
943
|
+
readonly identityproof_get_identity_stamp: (a: number) => any;
|
|
944
|
+
readonly identityproof_list: (a: number) => any;
|
|
945
|
+
readonly identityproof_add: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
946
|
+
readonly identityproof_archive: (a: number, b: number, c: number) => any;
|
|
947
|
+
readonly identityproof_re_check: (a: number, b: number, c: number) => any;
|
|
900
948
|
readonly notification_active_notifications_for_node_ids: (a: number, b: any) => any;
|
|
901
949
|
readonly notification_subscribe: (a: number, b: any) => any;
|
|
902
950
|
readonly notification_list: (a: number, b: any) => any;
|
|
@@ -917,19 +965,22 @@ export interface InitOutput {
|
|
|
917
965
|
readonly contact_new: () => number;
|
|
918
966
|
readonly general_new: () => number;
|
|
919
967
|
readonly identity_new: () => number;
|
|
968
|
+
readonly identityproof_new: () => number;
|
|
920
969
|
readonly notification_new: () => number;
|
|
921
970
|
readonly bill_new: () => number;
|
|
922
971
|
readonly api_general: () => number;
|
|
923
972
|
readonly api_identity: () => number;
|
|
973
|
+
readonly api_identity_proof: () => number;
|
|
924
974
|
readonly api_notification: () => number;
|
|
925
975
|
readonly api_contact: () => number;
|
|
926
976
|
readonly api_company: () => number;
|
|
927
|
-
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
928
977
|
readonly __wbg_notification_free: (a: number, b: number) => void;
|
|
978
|
+
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
929
979
|
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
930
|
-
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
931
980
|
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
981
|
+
readonly __wbg_identityproof_free: (a: number, b: number) => void;
|
|
932
982
|
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
983
|
+
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
933
984
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
934
985
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
935
986
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -938,11 +989,11 @@ export interface InitOutput {
|
|
|
938
989
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
939
990
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
940
991
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
941
|
-
readonly
|
|
942
|
-
readonly
|
|
943
|
-
readonly
|
|
944
|
-
readonly
|
|
945
|
-
readonly
|
|
992
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0172cc400d3e2d99: (a: number, b: number) => void;
|
|
993
|
+
readonly closure353_externref_shim: (a: number, b: number, c: any) => void;
|
|
994
|
+
readonly wasm_bindgen__convert__closures_____invoke__h40be9c133f5df086: (a: number, b: number) => void;
|
|
995
|
+
readonly closure861_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
|
|
996
|
+
readonly closure643_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
946
997
|
readonly __wbindgen_start: () => void;
|
|
947
998
|
}
|
|
948
999
|
|
package/index.js
CHANGED
|
@@ -262,26 +262,26 @@ export function task_worker_entry_point(ptr) {
|
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
function __wbg_adapter_52(arg0, arg1) {
|
|
265
|
-
wasm.
|
|
265
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0172cc400d3e2d99(arg0, arg1);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
269
|
-
wasm.
|
|
269
|
+
wasm.closure353_externref_shim(arg0, arg1, arg2);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
function __wbg_adapter_58(arg0, arg1) {
|
|
273
|
-
wasm.
|
|
273
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h40be9c133f5df086(arg0, arg1);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
function __wbg_adapter_65(arg0, arg1, arg2) {
|
|
277
|
-
const ret = wasm.
|
|
277
|
+
const ret = wasm.closure861_externref_shim_multivalue_shim(arg0, arg1, arg2);
|
|
278
278
|
if (ret[1]) {
|
|
279
279
|
throw takeFromExternrefTable0(ret[0]);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
function
|
|
284
|
-
wasm.
|
|
283
|
+
function __wbg_adapter_260(arg0, arg1, arg2, arg3) {
|
|
284
|
+
wasm.closure643_externref_shim(arg0, arg1, arg2, arg3);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
/**
|
|
@@ -357,6 +357,13 @@ export class Api {
|
|
|
357
357
|
const ret = wasm.api_bill();
|
|
358
358
|
return Identity.__wrap(ret);
|
|
359
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
* @returns {IdentityProof}
|
|
362
|
+
*/
|
|
363
|
+
static identity_proof() {
|
|
364
|
+
const ret = wasm.api_bill();
|
|
365
|
+
return IdentityProof.__wrap(ret);
|
|
366
|
+
}
|
|
360
367
|
/**
|
|
361
368
|
* @returns {Notification}
|
|
362
369
|
*/
|
|
@@ -741,6 +748,16 @@ export class Bill {
|
|
|
741
748
|
const ret = wasm.bill_sync_bill_chain(this.__wbg_ptr, payload);
|
|
742
749
|
return ret;
|
|
743
750
|
}
|
|
751
|
+
/**
|
|
752
|
+
* @param {string} bill_id
|
|
753
|
+
* @returns {string[]}
|
|
754
|
+
*/
|
|
755
|
+
dev_mode_get_full_bill_chain(bill_id) {
|
|
756
|
+
const ptr0 = passStringToWasm0(bill_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
757
|
+
const len0 = WASM_VECTOR_LEN;
|
|
758
|
+
const ret = wasm.bill_dev_mode_get_full_bill_chain(this.__wbg_ptr, ptr0, len0);
|
|
759
|
+
return ret;
|
|
760
|
+
}
|
|
744
761
|
}
|
|
745
762
|
|
|
746
763
|
const CompanyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1188,6 +1205,93 @@ export class Identity {
|
|
|
1188
1205
|
}
|
|
1189
1206
|
}
|
|
1190
1207
|
|
|
1208
|
+
const IdentityProofFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1209
|
+
? { register: () => {}, unregister: () => {} }
|
|
1210
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_identityproof_free(ptr >>> 0, 1));
|
|
1211
|
+
|
|
1212
|
+
export class IdentityProof {
|
|
1213
|
+
|
|
1214
|
+
static __wrap(ptr) {
|
|
1215
|
+
ptr = ptr >>> 0;
|
|
1216
|
+
const obj = Object.create(IdentityProof.prototype);
|
|
1217
|
+
obj.__wbg_ptr = ptr;
|
|
1218
|
+
IdentityProofFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1219
|
+
return obj;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
__destroy_into_raw() {
|
|
1223
|
+
const ptr = this.__wbg_ptr;
|
|
1224
|
+
this.__wbg_ptr = 0;
|
|
1225
|
+
IdentityProofFinalization.unregister(this);
|
|
1226
|
+
return ptr;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
free() {
|
|
1230
|
+
const ptr = this.__destroy_into_raw();
|
|
1231
|
+
wasm.__wbg_identityproof_free(ptr, 0);
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* @returns {IdentityProof}
|
|
1235
|
+
*/
|
|
1236
|
+
static new() {
|
|
1237
|
+
const ret = wasm.api_bill();
|
|
1238
|
+
return IdentityProof.__wrap(ret);
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Get identity stamp to post on social media for the currently selected identity
|
|
1242
|
+
* @returns {Promise<string>}
|
|
1243
|
+
*/
|
|
1244
|
+
get_identity_stamp() {
|
|
1245
|
+
const ret = wasm.identityproof_get_identity_stamp(this.__wbg_ptr);
|
|
1246
|
+
return ret;
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Fetch identity proofs for the currently selected identity
|
|
1250
|
+
* @returns {IdentityProofWeb[]}
|
|
1251
|
+
*/
|
|
1252
|
+
list() {
|
|
1253
|
+
const ret = wasm.identityproof_list(this.__wbg_ptr);
|
|
1254
|
+
return ret;
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Add identity proof for the currently selected identity
|
|
1258
|
+
* @param {string} url
|
|
1259
|
+
* @param {string} stamp
|
|
1260
|
+
* @returns {IdentityProofWeb}
|
|
1261
|
+
*/
|
|
1262
|
+
add(url, stamp) {
|
|
1263
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1264
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1265
|
+
const ptr1 = passStringToWasm0(stamp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1266
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1267
|
+
const ret = wasm.identityproof_add(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1268
|
+
return ret;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Archive the identity proof with the given id for the currently selected identity
|
|
1272
|
+
* @param {string} id
|
|
1273
|
+
* @returns {Promise<void>}
|
|
1274
|
+
*/
|
|
1275
|
+
archive(id) {
|
|
1276
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1277
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1278
|
+
const ret = wasm.identityproof_archive(this.__wbg_ptr, ptr0, len0);
|
|
1279
|
+
return ret;
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
* Re-check the identity proof by its URL with the given id for the currently selected identity
|
|
1283
|
+
* returning the new result
|
|
1284
|
+
* @param {string} id
|
|
1285
|
+
* @returns {IdentityProofWeb}
|
|
1286
|
+
*/
|
|
1287
|
+
re_check(id) {
|
|
1288
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1289
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1290
|
+
const ret = wasm.identityproof_re_check(this.__wbg_ptr, ptr0, len0);
|
|
1291
|
+
return ret;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1191
1295
|
const NotificationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1192
1296
|
? { register: () => {}, unregister: () => {} }
|
|
1193
1297
|
: new FinalizationRegistry(ptr => wasm.__wbg_notification_free(ptr >>> 0, 1));
|
|
@@ -1221,7 +1325,7 @@ export class Notification {
|
|
|
1221
1325
|
return Notification.__wrap(ret);
|
|
1222
1326
|
}
|
|
1223
1327
|
/**
|
|
1224
|
-
* @param {
|
|
1328
|
+
* @param {string[]} node_ids
|
|
1225
1329
|
* @returns {NotificationStatusWeb[]}
|
|
1226
1330
|
*/
|
|
1227
1331
|
active_notifications_for_node_ids(node_ids) {
|
|
@@ -1648,7 +1752,7 @@ function __wbg_get_imports() {
|
|
|
1648
1752
|
const a = state0.a;
|
|
1649
1753
|
state0.a = 0;
|
|
1650
1754
|
try {
|
|
1651
|
-
return
|
|
1755
|
+
return __wbg_adapter_260(a, state0.b, arg0, arg1);
|
|
1652
1756
|
} finally {
|
|
1653
1757
|
state0.a = a;
|
|
1654
1758
|
}
|
|
@@ -1946,6 +2050,10 @@ function __wbg_get_imports() {
|
|
|
1946
2050
|
const ret = arg0.target;
|
|
1947
2051
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1948
2052
|
};
|
|
2053
|
+
imports.wbg.__wbg_text_ec0e22f60e30dd2f = function() { return handleError(function (arg0) {
|
|
2054
|
+
const ret = arg0.text();
|
|
2055
|
+
return ret;
|
|
2056
|
+
}, arguments) };
|
|
1949
2057
|
imports.wbg.__wbg_then_82ab9fb4080f1707 = function(arg0, arg1, arg2) {
|
|
1950
2058
|
const ret = arg0.then(arg1, arg2);
|
|
1951
2059
|
return ret;
|
|
@@ -2031,36 +2139,36 @@ function __wbg_get_imports() {
|
|
|
2031
2139
|
const ret = false;
|
|
2032
2140
|
return ret;
|
|
2033
2141
|
};
|
|
2034
|
-
imports.wbg.
|
|
2035
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2142
|
+
imports.wbg.__wbindgen_closure_wrapper10325 = function(arg0, arg1, arg2) {
|
|
2143
|
+
const ret = makeMutClosure(arg0, arg1, 711, __wbg_adapter_55);
|
|
2036
2144
|
return ret;
|
|
2037
2145
|
};
|
|
2038
|
-
imports.wbg.
|
|
2039
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2146
|
+
imports.wbg.__wbindgen_closure_wrapper11340 = function(arg0, arg1, arg2) {
|
|
2147
|
+
const ret = makeMutClosure(arg0, arg1, 857, __wbg_adapter_58);
|
|
2040
2148
|
return ret;
|
|
2041
2149
|
};
|
|
2042
|
-
imports.wbg.
|
|
2043
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2150
|
+
imports.wbg.__wbindgen_closure_wrapper11370 = function(arg0, arg1, arg2) {
|
|
2151
|
+
const ret = makeMutClosure(arg0, arg1, 860, __wbg_adapter_65);
|
|
2044
2152
|
return ret;
|
|
2045
2153
|
};
|
|
2046
|
-
imports.wbg.
|
|
2047
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2154
|
+
imports.wbg.__wbindgen_closure_wrapper20143 = function(arg0, arg1, arg2) {
|
|
2155
|
+
const ret = makeMutClosure(arg0, arg1, 633, __wbg_adapter_55);
|
|
2048
2156
|
return ret;
|
|
2049
2157
|
};
|
|
2050
|
-
imports.wbg.
|
|
2051
|
-
const ret =
|
|
2158
|
+
imports.wbg.__wbindgen_closure_wrapper20184 = function(arg0, arg1, arg2) {
|
|
2159
|
+
const ret = makeMutClosure(arg0, arg1, 633, __wbg_adapter_58);
|
|
2052
2160
|
return ret;
|
|
2053
2161
|
};
|
|
2054
|
-
imports.wbg.
|
|
2055
|
-
const ret =
|
|
2162
|
+
imports.wbg.__wbindgen_closure_wrapper2213 = function(arg0, arg1, arg2) {
|
|
2163
|
+
const ret = makeClosure(arg0, arg1, 352, __wbg_adapter_52);
|
|
2056
2164
|
return ret;
|
|
2057
2165
|
};
|
|
2058
|
-
imports.wbg.
|
|
2059
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2166
|
+
imports.wbg.__wbindgen_closure_wrapper2915 = function(arg0, arg1, arg2) {
|
|
2167
|
+
const ret = makeMutClosure(arg0, arg1, 352, __wbg_adapter_55);
|
|
2060
2168
|
return ret;
|
|
2061
2169
|
};
|
|
2062
|
-
imports.wbg.
|
|
2063
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2170
|
+
imports.wbg.__wbindgen_closure_wrapper5516 = function(arg0, arg1, arg2) {
|
|
2171
|
+
const ret = makeMutClosure(arg0, arg1, 633, __wbg_adapter_58);
|
|
2064
2172
|
return ret;
|
|
2065
2173
|
};
|
|
2066
2174
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/index_bg.wasm
CHANGED
|
Binary file
|