@procivis/react-native-one-core
    Preparing search index...

    Interface ONECore

    interface ONECore {
        backupInfo(): Promise<UnexportableEntities>;
        checkRevocation(
            credentialIds: string[],
            forceRefresh: boolean,
        ): Promise<CredentialRevocationCheckResponse[]>;
        continueIssuance(url: string): Promise<ContinueIssuanceResponse>;
        createBackup(password: string, outputPath: string): Promise<BackupCreate>;
        createDid(didRequest: DidRequest): Promise<string>;
        createIdentifier(
            identifierRequest: CreateIdentifierRequest,
        ): Promise<string>;
        createOrganisation(request: CreateOrganisationRequest): Promise<string>;
        createProof(request: CreateProofRequest): Promise<string>;
        createProofSchema(request: CreateProofSchemaRequest): Promise<string>;
        createRemoteTrustEntity(
            request: CreateRemoteTrustEntityRequest,
        ): Promise<string>;
        createTrustAnchor(request: CreateTrustAnchorRequest): Promise<string>;
        createTrustEntity(request: CreateTrustEntityRequest): Promise<string>;
        deleteCache(types: undefined | CacheType[]): Promise<void>;
        deleteCredential(credentialId: string): Promise<void>;
        deleteCredentialSchema(credentialSchemaId: string): Promise<void>;
        deleteIdentifier(identifierId: string): Promise<void>;
        deleteProof(proofId: string): Promise<void>;
        deleteProofClaims(proofId: string): Promise<void>;
        deleteProofSchema(proofSchemaId: string): Promise<void>;
        deleteTrustAnchor(trustAnchorId: string): Promise<void>;
        finalizeImport(): Promise<void>;
        generateKey(keyRequest: KeyRequest): Promise<string>;
        getConfig(): Promise<Config>;
        getCredential(credentialId: string): Promise<CredentialDetail>;
        getCredentials(
            query: CredentialListQuery,
        ): Promise<ItemList<CredentialListItem>>;
        getCredentialSchema(
            credentialSchemaId: string,
        ): Promise<CredentialSchemaDetail>;
        getCredentialSchemas(
            query: CredentialSchemaListQuery,
        ): Promise<ItemList<CredentialSchema>>;
        getDids(query: DidListQuery): Promise<ItemList<DidListItem>>;
        getHistory(query: HistoryListQuery): Promise<ItemList<HistoryListItem>>;
        getHistoryEntry(historyId: string): Promise<HistoryListItem>;
        getIdentifier(identifierId: string): Promise<IdentifierDetail>;
        getIdentifiers(
            query: IdentifierListQuery,
        ): Promise<ItemList<IdentifierListItem>>;
        getPresentationDefinition(proofId: string): Promise<PresentationDefinition>;
        getPresentationDefinitionV2(
            proofId: string,
        ): Promise<PresentationDefinitionV2>;
        getProof(proofId: string): Promise<ProofDetail>;
        getProofs(query: ProofListQuery): Promise<ItemList<ProofListItem>>;
        getProofSchema(proofSchemaId: string): Promise<ProofSchema>;
        getProofSchemas(
            query: ProofSchemaListQuery,
        ): Promise<ItemList<ProofSchemaListItem>>;
        getRemoteTrustEntity(didId: string): Promise<RemoteTrustEntity>;
        getTrustAnchor(trustAnchorId: string): Promise<TrustAnchor>;
        getTrustAnchors(
            query: TrustAnchorListQuery,
        ): Promise<ItemList<TrustAnchorListItem>>;
        getTrustEntities(
            query: TrustEntityListQuery,
        ): Promise<ItemList<TrustEntityListItem>>;
        getTrustEntity(trustEntityId: string): Promise<TrustEntity>;
        getTrustEntityByDid(didId: string): Promise<TrustEntity>;
        getVersion(): Promise<Version>;
        handleInvitation(
            request: HandleInvitationRequest,
        ): Promise<InvitationResult>;
        holderAcceptCredential(
            request: HolderAcceptCredentialRequest,
        ): Promise<string>;
        holderGetWalletUnit(walletUnitId: string): Promise<HolderWalletUnitDetail>;
        holderRegisterWalletUnit(
            request: HolderRegisterWalletUnitRequest,
        ): Promise<string>;
        holderRejectCredential(interactionId: string): Promise<void>;
        holderRejectProof(interactionId: string): Promise<void>;
        holderSubmitProof(
            interactionId: string,
            credentials: Record<
                PresentationDefinitionRequestedCredential["id"],
                | PresentationSubmitCredentialRequest
                | PresentationSubmitCredentialRequest[],
            >,
        ): Promise<void>;
        holderSubmitProofV2(
            interactionId: string,
            credentials: Record<
                string,
                | PresentationSubmitV2CredentialRequest
                | PresentationSubmitV2CredentialRequest[],
            >,
        ): Promise<void>;
        holderWalletUnitStatus(walletUnitId: string): Promise<void>;
        importCredentialSchema(
            request: ImportCredentialSchemaRequest,
        ): Promise<string>;
        importProofSchema(request: ImportProofSchemaRequest): Promise<string>;
        initiateIssuance(
            request: InitiateIssuanceRequest,
        ): Promise<InitiateIssuanceResponse>;
        nfcReadIsoMdlEngagement(request: NfcScanRequest): Promise<string>;
        nfcStopIsoMdlEngagement(): Promise<void>;
        proposeProof(request: ProposeProofRequest): Promise<ProposeProofResponse>;
        resolveJsonldContext(url: string): Promise<ResolveJsonLdContextResponse>;
        resolveTrustEntityByIdentifier(
            request: ResolveTrustEntityByIdentifierRequest,
        ): Promise<Record<string, ResolvedIdentifierTrustEntity[]>>;
        rollbackImport(): Promise<void>;
        runTask(task: string): Promise<string>;
        shareCredentialSchema(
            credentialSchemaId: string,
        ): Promise<ShareCredentialSchemaResponse>;
        shareProof(
            proofId: string,
            request: ShareProofRequest,
        ): Promise<ShareProofResponse>;
        shareProofSchema(proofSchemaId: string): Promise<ShareProofSchemaResponse>;
        uninitialize(deleteData: boolean): Promise<void>;
        unpackBackup(
            password: string,
            inputPath: string,
        ): Promise<ImportBackupMetadata>;
        updateRemoteTrustEntity(
            request: UpdateRemoteTrustEntityRequest,
        ): Promise<void>;
        upsertOrganisation(request: UpsertOrganisationRequest): Promise<void>;
    }
    Index

    Methods

    • For wallet-initiated flows, continues the OpenID4VCI issuance process after completing authorization.

      Parameters

      • url: string

        Starts with the redirectUri and is used to continue the Authorization Code Flow issuance process. For example: "myapp://example/credential-offer?code=xxx&clientId=myWallet&..."

      Returns Promise<ContinueIssuanceResponse>

    • Parameters

      • password: string
      • outputPath: string

      Returns Promise<BackupCreate>

    • Parameters

      Returns Promise<string>

    • Parameters

      Returns Promise<void>

    • Parameters

      • credentialId: string

      Returns Promise<void>

    • Parameters

      • credentialSchemaId: string

      Returns Promise<void>

    • Parameters

      • identifierId: string

      Returns Promise<void>

    • Parameters

      • proofId: string

      Returns Promise<void>

    • Parameters

      • proofId: string

      Returns Promise<void>

    • Parameters

      • proofSchemaId: string

      Returns Promise<void>

    • Parameters

      • trustAnchorId: string

      Returns Promise<void>

    • Persist unpacked backup

      This call will delete/overwrite the previously stored entries

      Returns Promise<void>

    • Parameters

      Returns Promise<string>

    • Parameters

      • proofSchemaId: string

      Returns Promise<ProofSchema>

    • Parameters

      • trustAnchorId: string

      Returns Promise<TrustAnchor>

    • Parameters

      • trustEntityId: string

      Returns Promise<TrustEntity>

    • Parameters

      • interactionId: string

      Returns Promise<void>

    • Parameters

      • interactionId: string

      Returns Promise<void>

    • Parameters

      • walletUnitId: string

      Returns Promise<void>

    • Explicitly stop scan started via nfcReadIsoMdlEngagement

      Returns Promise<void>

    • Close unpacked backup

      This call will restore the old entries prior calling unpackBackup

      Returns Promise<void>

    • Parameters

      • task: string

      Returns Promise<string>

    • Uninitialize the core instance

      Any following calls on this instance will fail. A new core instance has to be initialized after.

      Parameters

      • deleteData: boolean

        If true, also delete all data from the DB, otherwise data will be persisted for the next core instance

      Returns Promise<void>

    • Start import procedure

      This call will open the provided backup file, other subsequent function calls like getCredentials will return data from the imported package After this successful call, either finalizeImport (to persist the changes) or rollbackImport (to revert to old data) must be called

      Parameters

      • password: string

        User password matching selected during creation of the backup file

      • inputPath: string

        Path to the stored backup file

      Returns Promise<ImportBackupMetadata>