npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@proyecto-didi/app-sdk

v0.5.4

Published

DIDI-SSI-App_sdk is the tool responsible for connecting the servers of DIDI Server, DIDI Issuer, DIDI Identidad, Coopsol Issuer, Mouro.

Downloads

25

Readme

proyecto-didi/app-sdk

DIDI-SSI-App_sdk is the tool responsible for connecting the servers of DIDI Server, DIDI Issuer, DIDI Identidad, Coopsol Issuer, Mouro.

Installation

You can install it from npm

$ npm i @proyecto-didi/app-sdk

How to use DIDI Server

Class Name

DidiServerApiClient

Parameters to instanciate the class

The class takes two parameters:

  • config: An object containing: { didiServerUri: "http://api.didi.example.com/" }
  • privateKey: A safety value to password (type string)

Functions

changeEmail(did: EthrDID, validationCode: string, newEmail: string, password: string)
changePassword(did: EthrDID, oldPassword: string, newPassword: string)
changePhoneNumber(did: EthrDID, validationCode: string, newPhoneNumber: string, password: string, firebaseId?: string)
checkValidateDni(did: EthrDID, operationId: string)
recoverAccount(email: string, password: string, firebaseId?: string)
recoverPassword(email: string, validationCode: string, newPassword: string)
registerUser(did: EthrDID, userData: { email: string; phoneNumber: string; password: string; privateKeySeed: string; name: string; lastname: string }, firebaseId?: string):
sendSmsValidator(cellPhoneNumber: string, idCheck?: { did: EthrDID; password: string }, unique?: boolean)
sendMailValidator(eMail: string, idCheck?: { did: EthrDID; password: string}, unique?: boolean)
userLogin(did: EthrDID, email: string, password: string, firebaseId?: string)
renewFirebaseToken(credentials: Credentials, firebaseId: string)
verifyEmailCode(did: EthrDID, validationCode: string, email: string)
verifySmsCode(did: EthrDID, validationCode: string, phoneNumber: string)
getApiVersion()
getIssuerData(issuerDid: EthrDID)
getPrestadores()
shareData(data: ShareDataRequest)
semillasCredentialsRequest(did: EthrDID, dni: string)
validateDniWithSemillas(did: EthrDID, data: { dni: string; email: string; phone: string; name: string; lastName: string })
getSemillasValidation(did: EthrDID)
getPersonalData(did: EthrDID, userJWT: string)
sendPersonalData(did: EthrDID, name: string, lastname: string, userJWT: string)
sendProfileImage(did: EthrDID, file: any, userJWT: string)
userHasRondaAccount(did: EthrDID)
savePresentation(jwts: any)
saveShareRequest(userJWT: string, sharingJWT: string)
getShareRequestFromServer(token: string, idShareRequest: string)
getIssuers(limit?: number, page?: number)
getShareRequestFromId(idShareRequest: string)
credentialList()

How to use DIDI Issuer

Class Name

IssuerApiClient

Parameters to instanciate the class

The class takes one parameter:

  • _baseUrl: An url "http://api.issuer.example.com/" (type string)

Functions

shareResponse(did: string, jwt: string, shareRequestId: string, token : string)

How to use DIDI Identidad

Class Name

VUSecurityApiClient

Parameters to instanciate the class

The class takes one parameter:

  • _baseUrl: An url "http://api.identity.example.com/" (type string)

Functions

createVerification( did: string, userName: string, deviceHash: string, rooted: boolean, operativeSystem: string, operativeSystemVersion: string, deviceManufacturer: string, deviceName: string, ipAddress: string, token: string )
cancelVerification(userName: string, operationId: string, token: string)
addDocumentImage(userName: string, operationId: string, side: string, file: string, token: string)
getInformation(userName: string, operationId: string, token: string)
finishOperation(userName: string, operationId: string, token: string)
checkValidateDni(did: string, token: string)

How to use Coopsol Issuer

Class Name

VUSecurityApiClient

Parameters to instanciate the class

The class takes one parameter:

  • _baseUrl: An url "http://api.coopsol.example.com/" (type string)

Functions

dniIdentity(jwt: string)

How to use Mouro

Class Name

VUSecurityApiClient

Parameters to instanciate the class

The class takes two parameters:

  • config: An object containing: { trustGraphUri: "http://mouro.example.com/graphql", credentials: An instance of the Credentials class from upport-credentials, used to sign tokens (type Class) }

Functions

getJWTs()
insertJWT(jwt: string)

NOTE 1 : EthrDID represents an ethereum-based DID, avoiding confusion between its representations such as ethereum address and as DID.

Project Endpoints

For more information, see the documentation