@yourself_id/siwys-api-js 0.20.1-SAPP-406-4.1 → 0.21.0
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/dist/index.cjs +79 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -25
- package/dist/index.d.ts +24 -25
- package/dist/index.js +79 -78
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WalletBase, CreateAssetOptions, VerifiableCredential, CreateResponseOptions, IssueCredentialsOptions, ChallengeResponse, WalletFile } from '@mdip/keymaster';
|
|
2
2
|
export * from '@mdip/keymaster';
|
|
3
|
-
|
|
4
|
-
import { ResolveDIDOptions, MdipDocument, GatekeeperClientOptions, VerifyDbResult, GetStatusResult, GatekeeperEvent, ImportBatchResult, Operation, ProcessEventsResult, BlockInfo } from '@mdip/gatekeeper';
|
|
3
|
+
import { ResolveDIDOptions, MdipDocument, GatekeeperClientOptions, VerifyDbResult, GetStatusResult, Operation, GetDIDOptions, GatekeeperEvent, ImportBatchResult, ProcessEventsResult, BlockInfo } from '@mdip/gatekeeper';
|
|
5
4
|
import * as gatekeeper from '@mdip/gatekeeper';
|
|
6
5
|
export { gatekeeper as GatekeeperTypes };
|
|
7
6
|
|
|
@@ -274,35 +273,35 @@ declare class GatekeeperClient {
|
|
|
274
273
|
static initialize(config: GatekeeperClientOptions): void;
|
|
275
274
|
private ensureInitialized;
|
|
276
275
|
static start(): Promise<boolean>;
|
|
277
|
-
static addCustomHeader(
|
|
278
|
-
static removeCustomHeader(
|
|
279
|
-
static listRegistries(
|
|
276
|
+
static addCustomHeader(header: string, value: string): void;
|
|
277
|
+
static removeCustomHeader(header: string): void;
|
|
278
|
+
static listRegistries(): Promise<string[]>;
|
|
280
279
|
static resetDb(): Promise<boolean>;
|
|
281
280
|
static verifyDb(): Promise<VerifyDbResult>;
|
|
282
281
|
static isReady(): Promise<boolean>;
|
|
283
282
|
static getVersion(): Promise<number>;
|
|
284
283
|
static getStatus(): Promise<GetStatusResult>;
|
|
285
|
-
static createDID(
|
|
286
|
-
static resolveDID(
|
|
287
|
-
static updateDID(
|
|
288
|
-
static deleteDID(
|
|
289
|
-
static getDIDs(
|
|
290
|
-
static exportDIDs(
|
|
291
|
-
static importDIDs(
|
|
292
|
-
static exportBatch(
|
|
293
|
-
static importBatch(
|
|
294
|
-
static removeDIDs(
|
|
295
|
-
static getQueue(
|
|
296
|
-
static clearQueue(
|
|
297
|
-
static processEvents(
|
|
298
|
-
static addJSON(
|
|
299
|
-
static getJSON(
|
|
300
|
-
static addText(
|
|
301
|
-
static getText(
|
|
302
|
-
static addData(
|
|
284
|
+
static createDID(operation: Operation): Promise<string>;
|
|
285
|
+
static resolveDID(did: string, options?: ResolveDIDOptions): Promise<MdipDocument>;
|
|
286
|
+
static updateDID(operation: Operation): Promise<boolean>;
|
|
287
|
+
static deleteDID(operation: Operation): Promise<boolean>;
|
|
288
|
+
static getDIDs({ dids, resolve, }: GetDIDOptions): Promise<string[] | MdipDocument[]>;
|
|
289
|
+
static exportDIDs(dids?: string[]): Promise<GatekeeperEvent[][]>;
|
|
290
|
+
static importDIDs(dids: GatekeeperEvent[][]): Promise<ImportBatchResult>;
|
|
291
|
+
static exportBatch(dids?: string[]): Promise<GatekeeperEvent[]>;
|
|
292
|
+
static importBatch(batch: GatekeeperEvent[]): Promise<ImportBatchResult>;
|
|
293
|
+
static removeDIDs(dids: string[]): Promise<boolean>;
|
|
294
|
+
static getQueue(registry: string): Promise<Operation[]>;
|
|
295
|
+
static clearQueue(registry: string, events: Operation[]): Promise<boolean>;
|
|
296
|
+
static processEvents(): Promise<ProcessEventsResult>;
|
|
297
|
+
static addJSON(data: object): Promise<string>;
|
|
298
|
+
static getJSON(cid: string): Promise<object>;
|
|
299
|
+
static addText(data: string): Promise<string>;
|
|
300
|
+
static getText(cid: string): Promise<string>;
|
|
301
|
+
static addData(data: Buffer): Promise<string>;
|
|
303
302
|
static getData(...args: Parameters<GatekeeperClient["getDataInternal"]>): Promise<Buffer>;
|
|
304
|
-
static getBlock(
|
|
305
|
-
static addBlock(
|
|
303
|
+
static getBlock(cid: string): Promise<BlockInfo | null>;
|
|
304
|
+
static addBlock(registry: string, block: BlockInfo): Promise<boolean>;
|
|
306
305
|
private static getInstance;
|
|
307
306
|
private startInternal;
|
|
308
307
|
private startIntegratedGatekeeper;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WalletBase, CreateAssetOptions, VerifiableCredential, CreateResponseOptions, IssueCredentialsOptions, ChallengeResponse, WalletFile } from '@mdip/keymaster';
|
|
2
2
|
export * from '@mdip/keymaster';
|
|
3
|
-
|
|
4
|
-
import { ResolveDIDOptions, MdipDocument, GatekeeperClientOptions, VerifyDbResult, GetStatusResult, GatekeeperEvent, ImportBatchResult, Operation, ProcessEventsResult, BlockInfo } from '@mdip/gatekeeper';
|
|
3
|
+
import { ResolveDIDOptions, MdipDocument, GatekeeperClientOptions, VerifyDbResult, GetStatusResult, Operation, GetDIDOptions, GatekeeperEvent, ImportBatchResult, ProcessEventsResult, BlockInfo } from '@mdip/gatekeeper';
|
|
5
4
|
import * as gatekeeper from '@mdip/gatekeeper';
|
|
6
5
|
export { gatekeeper as GatekeeperTypes };
|
|
7
6
|
|
|
@@ -274,35 +273,35 @@ declare class GatekeeperClient {
|
|
|
274
273
|
static initialize(config: GatekeeperClientOptions): void;
|
|
275
274
|
private ensureInitialized;
|
|
276
275
|
static start(): Promise<boolean>;
|
|
277
|
-
static addCustomHeader(
|
|
278
|
-
static removeCustomHeader(
|
|
279
|
-
static listRegistries(
|
|
276
|
+
static addCustomHeader(header: string, value: string): void;
|
|
277
|
+
static removeCustomHeader(header: string): void;
|
|
278
|
+
static listRegistries(): Promise<string[]>;
|
|
280
279
|
static resetDb(): Promise<boolean>;
|
|
281
280
|
static verifyDb(): Promise<VerifyDbResult>;
|
|
282
281
|
static isReady(): Promise<boolean>;
|
|
283
282
|
static getVersion(): Promise<number>;
|
|
284
283
|
static getStatus(): Promise<GetStatusResult>;
|
|
285
|
-
static createDID(
|
|
286
|
-
static resolveDID(
|
|
287
|
-
static updateDID(
|
|
288
|
-
static deleteDID(
|
|
289
|
-
static getDIDs(
|
|
290
|
-
static exportDIDs(
|
|
291
|
-
static importDIDs(
|
|
292
|
-
static exportBatch(
|
|
293
|
-
static importBatch(
|
|
294
|
-
static removeDIDs(
|
|
295
|
-
static getQueue(
|
|
296
|
-
static clearQueue(
|
|
297
|
-
static processEvents(
|
|
298
|
-
static addJSON(
|
|
299
|
-
static getJSON(
|
|
300
|
-
static addText(
|
|
301
|
-
static getText(
|
|
302
|
-
static addData(
|
|
284
|
+
static createDID(operation: Operation): Promise<string>;
|
|
285
|
+
static resolveDID(did: string, options?: ResolveDIDOptions): Promise<MdipDocument>;
|
|
286
|
+
static updateDID(operation: Operation): Promise<boolean>;
|
|
287
|
+
static deleteDID(operation: Operation): Promise<boolean>;
|
|
288
|
+
static getDIDs({ dids, resolve, }: GetDIDOptions): Promise<string[] | MdipDocument[]>;
|
|
289
|
+
static exportDIDs(dids?: string[]): Promise<GatekeeperEvent[][]>;
|
|
290
|
+
static importDIDs(dids: GatekeeperEvent[][]): Promise<ImportBatchResult>;
|
|
291
|
+
static exportBatch(dids?: string[]): Promise<GatekeeperEvent[]>;
|
|
292
|
+
static importBatch(batch: GatekeeperEvent[]): Promise<ImportBatchResult>;
|
|
293
|
+
static removeDIDs(dids: string[]): Promise<boolean>;
|
|
294
|
+
static getQueue(registry: string): Promise<Operation[]>;
|
|
295
|
+
static clearQueue(registry: string, events: Operation[]): Promise<boolean>;
|
|
296
|
+
static processEvents(): Promise<ProcessEventsResult>;
|
|
297
|
+
static addJSON(data: object): Promise<string>;
|
|
298
|
+
static getJSON(cid: string): Promise<object>;
|
|
299
|
+
static addText(data: string): Promise<string>;
|
|
300
|
+
static getText(cid: string): Promise<string>;
|
|
301
|
+
static addData(data: Buffer): Promise<string>;
|
|
303
302
|
static getData(...args: Parameters<GatekeeperClient["getDataInternal"]>): Promise<Buffer>;
|
|
304
|
-
static getBlock(
|
|
305
|
-
static addBlock(
|
|
303
|
+
static getBlock(cid: string): Promise<BlockInfo | null>;
|
|
304
|
+
static addBlock(registry: string, block: BlockInfo): Promise<boolean>;
|
|
306
305
|
private static getInstance;
|
|
307
306
|
private startInternal;
|
|
308
307
|
private startIntegratedGatekeeper;
|
package/dist/index.js
CHANGED
|
@@ -590,17 +590,20 @@ var GatekeeperClient2 = class _GatekeeperClient {
|
|
|
590
590
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
591
591
|
return _GatekeeperClient.getInstance().startInternal();
|
|
592
592
|
}
|
|
593
|
-
static addCustomHeader(
|
|
593
|
+
static addCustomHeader(header, value) {
|
|
594
594
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
595
|
-
return _GatekeeperClient.getInstance().addCustomHeaderInternal(
|
|
595
|
+
return _GatekeeperClient.getInstance().addCustomHeaderInternal(
|
|
596
|
+
header,
|
|
597
|
+
value
|
|
598
|
+
);
|
|
596
599
|
}
|
|
597
|
-
static removeCustomHeader(
|
|
600
|
+
static removeCustomHeader(header) {
|
|
598
601
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
599
|
-
return _GatekeeperClient.getInstance().removeCustomHeaderInternal(
|
|
602
|
+
return _GatekeeperClient.getInstance().removeCustomHeaderInternal(header);
|
|
600
603
|
}
|
|
601
|
-
static async listRegistries(
|
|
604
|
+
static async listRegistries() {
|
|
602
605
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
603
|
-
return _GatekeeperClient.getInstance().listRegistriesInternal(
|
|
606
|
+
return _GatekeeperClient.getInstance().listRegistriesInternal();
|
|
604
607
|
}
|
|
605
608
|
static async resetDb() {
|
|
606
609
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
@@ -622,89 +625,92 @@ var GatekeeperClient2 = class _GatekeeperClient {
|
|
|
622
625
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
623
626
|
return _GatekeeperClient.getInstance().getStatusInternal();
|
|
624
627
|
}
|
|
625
|
-
static async createDID(
|
|
628
|
+
static async createDID(operation) {
|
|
626
629
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
627
|
-
return _GatekeeperClient.getInstance().createDIDInternal(
|
|
630
|
+
return _GatekeeperClient.getInstance().createDIDInternal(operation);
|
|
628
631
|
}
|
|
629
|
-
static async resolveDID(
|
|
632
|
+
static async resolveDID(did, options) {
|
|
630
633
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
631
|
-
return _GatekeeperClient.getInstance().resolveDIDInternal(
|
|
634
|
+
return _GatekeeperClient.getInstance().resolveDIDInternal(did, options);
|
|
632
635
|
}
|
|
633
|
-
static async updateDID(
|
|
636
|
+
static async updateDID(operation) {
|
|
634
637
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
635
|
-
return _GatekeeperClient.getInstance().updateDIDInternal(
|
|
638
|
+
return _GatekeeperClient.getInstance().updateDIDInternal(operation);
|
|
636
639
|
}
|
|
637
|
-
static async deleteDID(
|
|
640
|
+
static async deleteDID(operation) {
|
|
638
641
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
639
|
-
return _GatekeeperClient.getInstance().deleteDIDInternal(
|
|
642
|
+
return _GatekeeperClient.getInstance().deleteDIDInternal(operation);
|
|
640
643
|
}
|
|
641
|
-
static async getDIDs(
|
|
644
|
+
static async getDIDs({
|
|
645
|
+
dids,
|
|
646
|
+
resolve
|
|
647
|
+
}) {
|
|
642
648
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
643
|
-
return _GatekeeperClient.getInstance().getDIDsInternal(
|
|
649
|
+
return _GatekeeperClient.getInstance().getDIDsInternal({ dids, resolve });
|
|
644
650
|
}
|
|
645
|
-
static async exportDIDs(
|
|
651
|
+
static async exportDIDs(dids) {
|
|
646
652
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
647
|
-
return _GatekeeperClient.getInstance().exportDIDsInternal(
|
|
653
|
+
return _GatekeeperClient.getInstance().exportDIDsInternal(dids);
|
|
648
654
|
}
|
|
649
|
-
static async importDIDs(
|
|
655
|
+
static async importDIDs(dids) {
|
|
650
656
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
651
|
-
return _GatekeeperClient.getInstance().importDIDsInternal(
|
|
657
|
+
return _GatekeeperClient.getInstance().importDIDsInternal(dids);
|
|
652
658
|
}
|
|
653
|
-
static async exportBatch(
|
|
659
|
+
static async exportBatch(dids) {
|
|
654
660
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
655
|
-
return _GatekeeperClient.getInstance().exportBatchInternal(
|
|
661
|
+
return _GatekeeperClient.getInstance().exportBatchInternal(dids);
|
|
656
662
|
}
|
|
657
|
-
static async importBatch(
|
|
663
|
+
static async importBatch(batch) {
|
|
658
664
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
659
|
-
return _GatekeeperClient.getInstance().importBatchInternal(
|
|
665
|
+
return _GatekeeperClient.getInstance().importBatchInternal(batch);
|
|
660
666
|
}
|
|
661
|
-
static async removeDIDs(
|
|
667
|
+
static async removeDIDs(dids) {
|
|
662
668
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
663
|
-
return _GatekeeperClient.getInstance().removeDIDsInternal(
|
|
669
|
+
return _GatekeeperClient.getInstance().removeDIDsInternal(dids);
|
|
664
670
|
}
|
|
665
|
-
static async getQueue(
|
|
671
|
+
static async getQueue(registry) {
|
|
666
672
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
667
|
-
return _GatekeeperClient.getInstance().getQueueInternal(
|
|
673
|
+
return _GatekeeperClient.getInstance().getQueueInternal(registry);
|
|
668
674
|
}
|
|
669
|
-
static async clearQueue(
|
|
675
|
+
static async clearQueue(registry, events) {
|
|
670
676
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
671
|
-
return _GatekeeperClient.getInstance().clearQueueInternal(
|
|
677
|
+
return _GatekeeperClient.getInstance().clearQueueInternal(registry, events);
|
|
672
678
|
}
|
|
673
|
-
static async processEvents(
|
|
679
|
+
static async processEvents() {
|
|
674
680
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
675
|
-
return _GatekeeperClient.getInstance().processEventsInternal(
|
|
681
|
+
return _GatekeeperClient.getInstance().processEventsInternal();
|
|
676
682
|
}
|
|
677
|
-
static async addJSON(
|
|
683
|
+
static async addJSON(data) {
|
|
678
684
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
679
|
-
return _GatekeeperClient.getInstance().addJSONInternal(
|
|
685
|
+
return _GatekeeperClient.getInstance().addJSONInternal(data);
|
|
680
686
|
}
|
|
681
|
-
static async getJSON(
|
|
687
|
+
static async getJSON(cid) {
|
|
682
688
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
683
|
-
return _GatekeeperClient.getInstance().getJSONInternal(
|
|
689
|
+
return _GatekeeperClient.getInstance().getJSONInternal(cid);
|
|
684
690
|
}
|
|
685
|
-
static async addText(
|
|
691
|
+
static async addText(data) {
|
|
686
692
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
687
|
-
return _GatekeeperClient.getInstance().addTextInternal(
|
|
693
|
+
return _GatekeeperClient.getInstance().addTextInternal(data);
|
|
688
694
|
}
|
|
689
|
-
static async getText(
|
|
695
|
+
static async getText(cid) {
|
|
690
696
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
691
|
-
return _GatekeeperClient.getInstance().getTextInternal(
|
|
697
|
+
return _GatekeeperClient.getInstance().getTextInternal(cid);
|
|
692
698
|
}
|
|
693
|
-
static async addData(
|
|
699
|
+
static async addData(data) {
|
|
694
700
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
695
|
-
return _GatekeeperClient.getInstance().addDataInternal(
|
|
701
|
+
return _GatekeeperClient.getInstance().addDataInternal(data);
|
|
696
702
|
}
|
|
697
703
|
static async getData(...args) {
|
|
698
704
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
699
705
|
return _GatekeeperClient.getInstance().getDataInternal(...args);
|
|
700
706
|
}
|
|
701
|
-
static async getBlock(
|
|
707
|
+
static async getBlock(cid) {
|
|
702
708
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
703
|
-
return _GatekeeperClient.getInstance().getBlockInternal(
|
|
709
|
+
return _GatekeeperClient.getInstance().getBlockInternal(cid);
|
|
704
710
|
}
|
|
705
|
-
static async addBlock(
|
|
711
|
+
static async addBlock(registry, block) {
|
|
706
712
|
_GatekeeperClient.getInstance().ensureInitialized();
|
|
707
|
-
return _GatekeeperClient.getInstance().addBlockInternal(
|
|
713
|
+
return _GatekeeperClient.getInstance().addBlockInternal(registry, block);
|
|
708
714
|
}
|
|
709
715
|
static getInstance() {
|
|
710
716
|
if (!_GatekeeperClient.instance) {
|
|
@@ -741,91 +747,88 @@ var GatekeeperClient2 = class _GatekeeperClient {
|
|
|
741
747
|
this.gatekeeperClient.removeCustomHeader(header);
|
|
742
748
|
}
|
|
743
749
|
async listRegistriesInternal() {
|
|
744
|
-
|
|
745
|
-
return response;
|
|
750
|
+
return await this.gatekeeperClient.listRegistries();
|
|
746
751
|
}
|
|
747
752
|
async resetDbInternal() {
|
|
748
|
-
return this.gatekeeperClient.resetDb();
|
|
753
|
+
return await this.gatekeeperClient.resetDb();
|
|
749
754
|
}
|
|
750
755
|
async verifyDbInternal() {
|
|
751
|
-
return this.gatekeeperClient.verifyDb();
|
|
756
|
+
return await this.gatekeeperClient.verifyDb();
|
|
752
757
|
}
|
|
753
758
|
async isReadyInternal() {
|
|
754
|
-
return this.gatekeeperClient.isReady();
|
|
759
|
+
return await this.gatekeeperClient.isReady();
|
|
755
760
|
}
|
|
756
761
|
async getVersionInternal() {
|
|
757
|
-
return this.gatekeeperClient.getVersion();
|
|
762
|
+
return await this.gatekeeperClient.getVersion();
|
|
758
763
|
}
|
|
759
764
|
async getStatusInternal() {
|
|
760
|
-
return this.gatekeeperClient.getStatus();
|
|
765
|
+
return await this.gatekeeperClient.getStatus();
|
|
761
766
|
}
|
|
762
767
|
async createDIDInternal(operation) {
|
|
763
|
-
return this.gatekeeperClient.createDID(operation);
|
|
768
|
+
return await this.gatekeeperClient.createDID(operation);
|
|
764
769
|
}
|
|
765
770
|
async resolveDIDInternal(did, options) {
|
|
766
|
-
|
|
767
|
-
return response;
|
|
771
|
+
return await this.gatekeeperClient.resolveDID(did, options);
|
|
768
772
|
}
|
|
769
773
|
async updateDIDInternal(operation) {
|
|
770
|
-
return this.gatekeeperClient.updateDID(operation);
|
|
774
|
+
return await this.gatekeeperClient.updateDID(operation);
|
|
771
775
|
}
|
|
772
776
|
async deleteDIDInternal(operation) {
|
|
773
|
-
return this.gatekeeperClient.deleteDID(operation);
|
|
777
|
+
return await this.gatekeeperClient.deleteDID(operation);
|
|
774
778
|
}
|
|
775
779
|
async getDIDsInternal({
|
|
776
780
|
dids,
|
|
777
781
|
resolve
|
|
778
782
|
}) {
|
|
779
|
-
|
|
780
|
-
return response;
|
|
783
|
+
return await this.gatekeeperClient.getDIDs({ dids, resolve });
|
|
781
784
|
}
|
|
782
785
|
async exportDIDsInternal(dids) {
|
|
783
|
-
return this.gatekeeperClient.exportDIDs(dids);
|
|
786
|
+
return await this.gatekeeperClient.exportDIDs(dids);
|
|
784
787
|
}
|
|
785
788
|
async importDIDsInternal(dids) {
|
|
786
|
-
return this.gatekeeperClient.importDIDs(dids);
|
|
789
|
+
return await this.gatekeeperClient.importDIDs(dids);
|
|
787
790
|
}
|
|
788
791
|
async exportBatchInternal(dids) {
|
|
789
|
-
return this.gatekeeperClient.exportBatch(dids);
|
|
792
|
+
return await this.gatekeeperClient.exportBatch(dids);
|
|
790
793
|
}
|
|
791
794
|
async importBatchInternal(batch) {
|
|
792
|
-
return this.gatekeeperClient.importBatch(batch);
|
|
795
|
+
return await this.gatekeeperClient.importBatch(batch);
|
|
793
796
|
}
|
|
794
797
|
async removeDIDsInternal(dids) {
|
|
795
|
-
return this.gatekeeperClient.removeDIDs(dids);
|
|
798
|
+
return await this.gatekeeperClient.removeDIDs(dids);
|
|
796
799
|
}
|
|
797
800
|
async getQueueInternal(registry) {
|
|
798
|
-
return this.gatekeeperClient.getQueue(registry);
|
|
801
|
+
return await this.gatekeeperClient.getQueue(registry);
|
|
799
802
|
}
|
|
800
803
|
async clearQueueInternal(registry, events) {
|
|
801
|
-
return this.gatekeeperClient.clearQueue(registry, events);
|
|
804
|
+
return await this.gatekeeperClient.clearQueue(registry, events);
|
|
802
805
|
}
|
|
803
806
|
async processEventsInternal() {
|
|
804
|
-
return this.gatekeeperClient.processEvents();
|
|
807
|
+
return await this.gatekeeperClient.processEvents();
|
|
805
808
|
}
|
|
806
809
|
async addJSONInternal(data) {
|
|
807
|
-
return this.gatekeeperClient.addJSON(data);
|
|
810
|
+
return await this.gatekeeperClient.addJSON(data);
|
|
808
811
|
}
|
|
809
812
|
async getJSONInternal(cid) {
|
|
810
|
-
return this.gatekeeperClient.getJSON(cid);
|
|
813
|
+
return await this.gatekeeperClient.getJSON(cid);
|
|
811
814
|
}
|
|
812
815
|
async addTextInternal(data) {
|
|
813
|
-
return this.gatekeeperClient.addText(data);
|
|
816
|
+
return await this.gatekeeperClient.addText(data);
|
|
814
817
|
}
|
|
815
818
|
async getTextInternal(cid) {
|
|
816
|
-
return this.gatekeeperClient.getText(cid);
|
|
819
|
+
return await this.gatekeeperClient.getText(cid);
|
|
817
820
|
}
|
|
818
821
|
async addDataInternal(data) {
|
|
819
|
-
return this.gatekeeperClient.addData(data);
|
|
822
|
+
return await this.gatekeeperClient.addData(data);
|
|
820
823
|
}
|
|
821
824
|
async getDataInternal(cid) {
|
|
822
|
-
return this.gatekeeperClient.getData(cid);
|
|
825
|
+
return await this.gatekeeperClient.getData(cid);
|
|
823
826
|
}
|
|
824
827
|
async getBlockInternal(registry, block) {
|
|
825
|
-
return this.gatekeeperClient.getBlock(registry, block);
|
|
828
|
+
return await this.gatekeeperClient.getBlock(registry, block);
|
|
826
829
|
}
|
|
827
830
|
async addBlockInternal(registry, block) {
|
|
828
|
-
return this.gatekeeperClient.addBlock(registry, block);
|
|
831
|
+
return await this.gatekeeperClient.addBlock(registry, block);
|
|
829
832
|
}
|
|
830
833
|
validateConfig(config) {
|
|
831
834
|
if (!config) {
|
|
@@ -836,9 +839,7 @@ var GatekeeperClient2 = class _GatekeeperClient {
|
|
|
836
839
|
|
|
837
840
|
// src/index.ts
|
|
838
841
|
export * from "@mdip/keymaster";
|
|
839
|
-
import { AbstractBase } from "@mdip/keymaster";
|
|
840
842
|
export {
|
|
841
|
-
AbstractBase,
|
|
842
843
|
GatekeeperClient2 as GatekeeperClient,
|
|
843
844
|
Keymaster,
|
|
844
845
|
KeymasterExternalClient
|