Options
All
  • Public
  • Public/Protected
  • All
Menu

@unumid/types

Index

Enumerations

Interfaces

Type aliases

Variables

Type aliases

ClaimDict

ClaimDict: {}

Interface to encapsulate an arbitrary number (0 to n) of string keys with values of type ClaimValue.

Type declaration

ClaimList

ClaimList: ClaimValue[]

Type to encapsulate an array of ClaimValues.

ClaimPrimitive

ClaimPrimitive: string | number | boolean | Date | null

Type to encapsulate supported claim primitives.

ClaimValue

Type to encapsulate valid ClaimValue types.

CredentialStatusOptions

CredentialStatusOptions: Static<typeof _CredentialStatusOptions>

Type to encapsulate Credential status value options

DatesToStrings

DatesToStrings<T>: T extends Date ? string : T extends Function ? T : {[ k in keyof T]: DatesToStrings<T[k]> }

Maps Dates to strings, including nested. Effectively equals the type change caused by JSON.parse(JSON.stringify(x))

Type parameters

  • T

DidKeyType

DidKeyType: "secp256r1" | "RSA"

Type to encapsulate supported key types in did documents.

HolderStatus

HolderStatus: "active" | "deactivated"

Encapsulates possible Holder statuses

HolderType

HolderType: "web" | "mobile"

Encapsulates Holder types

PushProvider

PushProvider: typeof pushProviders[number]

A type encapsulating all possible push provider values.

VersionedDto

VersionedDto<N, T>: {[ n in N]: {} }

Type to encapsulate generic response from SaaS API endpoints which return resources keyed by version.

Type parameters

  • N: string

  • T = any

WithKeyAndValue

WithKeyAndValue<T, K, V>: T & Record<K, V>

Helper which adds a named key with a specific value type to an existing type.

Type parameters

  • T

  • K: string

  • V

WithVersion

WithVersion<T>: WithKeyAndValue<T, "version", string>

Helper type which adds a version string.

Type parameters

  • T

Variables

CredentialPb

CredentialPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): CredentialPb
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { context?: string[]; credentialStatus?: { id?: string | undefined; type?: string | undefined; }; credentialSubject?: string; expirationDate?: Date; id?: string; issuanceDate?: Date; issuer?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }; type?: string[] }): CredentialPb
    • Parameters

      • object: { context?: string[]; credentialStatus?: { id?: string | undefined; type?: string | undefined; }; credentialSubject?: string; expirationDate?: Date; id?: string; issuanceDate?: Date; issuer?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }; type?: string[] }
        • Optional context?: string[]
        • Optional credentialStatus?: { id?: string | undefined; type?: string | undefined; }
        • Optional credentialSubject?: string
        • Optional expirationDate?: Date

          optional in the ts types

        • Optional id?: string
        • Optional issuanceDate?: Date
        • Optional issuer?: string
        • Optional proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }
        • Optional type?: string[]

      Returns CredentialPb

  • toJSON: function

CredentialRequest

CredentialRequest: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

CredentialSchemaData

CredentialSchemaData: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

CredentialStatus

CredentialStatus: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

CredentialStatusInfoPb

CredentialStatusInfoPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

CredentialsIssuedResponse

CredentialsIssuedResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

DIDPb

DIDPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): DIDPb
  • encode: function
    • encode(message: DIDPb, writer?: Writer): Writer
  • fromJSON: function
    • fromJSON(object: any): DIDPb
  • fromPartial: function
    • fromPartial(object: { id?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } }): DIDPb
    • Parameters

      • object: { id?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } }
        • Optional id?: string
        • Optional proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }

      Returns DIDPb

  • toJSON: function
    • toJSON(message: DIDPb): unknown

DidDocumentPb

DidDocumentPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): DidDocumentPb
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { context?: string[]; created?: Date; id?: string; publicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }[]; service?: { id?: string | undefined; serviceEndpoint?: string | undefined; type?: string | undefined; }[]; updated?: Date }): DidDocumentPb
    • Parameters

      • object: { context?: string[]; created?: Date; id?: string; publicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }[]; service?: { id?: string | undefined; serviceEndpoint?: string | undefined; type?: string | undefined; }[]; updated?: Date }
        • Optional context?: string[]
        • Optional created?: Date
        • Optional id?: string
        • Optional publicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }[]
        • Optional service?: { id?: string | undefined; serviceEndpoint?: string | undefined; type?: string | undefined; }[]
        • Optional updated?: Date

      Returns DidDocumentPb

  • toJSON: function

DidDocumentService

DidDocumentService: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

EncryptedCredentialEnrichedPb

EncryptedCredentialEnrichedPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { didDocument?: { context?: string[] | undefined; id?: string | undefined; created?: Date | undefined; updated?: Date | undefined; publicKey?: { id?: string | undefined; publicKey?: string | undefined; ... 5 more ...; rsaPadding?: RSAPadding | undefined; }[] | undefined; service?: { ...; }[] | undefined; }; encryptedCredential?: { uuid?: string | undefined; credentialId?: string | undefined; subject?: string | undefined; issuer?: string | undefined; type?: string | undefined; data?: { data?: string | undefined; key?: { ...; } | undefined; rsaPadding?: RSAPadding | undefined; } | undefined; version?: string | undefined; createdAt?: Date | un... }): EncryptedCredentialEnrichedPb
    • Parameters

      • object: { didDocument?: { context?: string[] | undefined; id?: string | undefined; created?: Date | undefined; updated?: Date | undefined; publicKey?: { id?: string | undefined; publicKey?: string | undefined; ... 5 more ...; rsaPadding?: RSAPadding | undefined; }[] | undefined; service?: { ...; }[] | undefined; }; encryptedCredential?: { uuid?: string | undefined; credentialId?: string | undefined; subject?: string | undefined; issuer?: string | undefined; type?: string | undefined; data?: { data?: string | undefined; key?: { ...; } | undefined; rsaPadding?: RSAPadding | undefined; } | undefined; version?: string | undefined; createdAt?: Date | un... }
        • Optional didDocument?: { context?: string[] | undefined; id?: string | undefined; created?: Date | undefined; updated?: Date | undefined; publicKey?: { id?: string | undefined; publicKey?: string | undefined; ... 5 more ...; rsaPadding?: RSAPadding | undefined; }[] | undefined; service?: { ...; }[] | undefined; }
        • Optional encryptedCredential?: { uuid?: string | undefined; credentialId?: string | undefined; subject?: string | undefined; issuer?: string | undefined; type?: string | undefined; data?: { data?: string | undefined; key?: { ...; } | undefined; rsaPadding?: RSAPadding | undefined; } | undefined; version?: string | undefined; createdAt?: Date | un...

      Returns EncryptedCredentialEnrichedPb

  • toJSON: function

EncryptedCredentialOptionsPb

EncryptedCredentialOptionsPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

EncryptedCredentialPb

EncryptedCredentialPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { createdAt?: Date; credentialId?: string; data?: { data?: string | undefined; key?: { iv?: string | undefined; key?: string | undefined; algorithm?: string | undefined; did?: string | undefined; } | undefined; rsaPadding?: RSAPadding | undefined; }; expirationDate?: Date; issuer?: string; subject?: string; type?: string; updatedAt?: Date; uuid?: string; version?: string }): EncryptedCredentialPb
    • Parameters

      • object: { createdAt?: Date; credentialId?: string; data?: { data?: string | undefined; key?: { iv?: string | undefined; key?: string | undefined; algorithm?: string | undefined; did?: string | undefined; } | undefined; rsaPadding?: RSAPadding | undefined; }; expirationDate?: Date; issuer?: string; subject?: string; type?: string; updatedAt?: Date; uuid?: string; version?: string }
        • Optional createdAt?: Date
        • Optional credentialId?: string
        • Optional data?: { data?: string | undefined; key?: { iv?: string | undefined; key?: string | undefined; algorithm?: string | undefined; did?: string | undefined; } | undefined; rsaPadding?: RSAPadding | undefined; }
        • Optional expirationDate?: Date
        • Optional issuer?: string
        • Optional subject?: string
        • Optional type?: string
        • Optional updatedAt?: Date
        • Optional uuid?: string
        • Optional version?: string

      Returns EncryptedCredentialPb

  • toJSON: function

EncryptedKey

EncryptedKey: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

HolderAppInfo

HolderAppInfo: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

IssueCredentialOptions

IssueCredentialOptions: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { credentialId?: string; encryptedCredentials?: { credentialId?: string | undefined; subject?: string | undefined; issuer?: string | undefined; type?: string | undefined; data?: { data?: string | undefined; key?: { iv?: string | undefined; key?: string | undefined; algorithm?: string | undefined; did?: string | undefined; } | undefined; rsaPadding?: RSAPadding | ...[]; issuer?: string; subject?: string; type?: string }): IssueCredentialOptions
    • Parameters

      • object: { credentialId?: string; encryptedCredentials?: { credentialId?: string | undefined; subject?: string | undefined; issuer?: string | undefined; type?: string | undefined; data?: { data?: string | undefined; key?: { iv?: string | undefined; key?: string | undefined; algorithm?: string | undefined; did?: string | undefined; } | undefined; rsaPadding?: RSAPadding | ...[]; issuer?: string; subject?: string; type?: string }
        • Optional credentialId?: string
        • Optional encryptedCredentials?: { credentialId?: string | undefined; subject?: string | undefined; issuer?: string | undefined; type?: string | undefined; data?: { data?: string | undefined; key?: { iv?: string | undefined; key?: string | undefined; algorithm?: string | undefined; did?: string | undefined; } | undefined; rsaPadding?: RSAPadding | ...[]
        • Optional issuer?: string
        • Optional subject?: string
        • Optional type?: string

      Returns IssueCredentialOptions

  • toJSON: function

IssueCredentialsOptions

IssueCredentialsOptions: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

IssuerInfo

IssuerInfo: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

KeyPair

KeyPair: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): KeyPair
  • encode: function
    • encode(message: KeyPair, writer?: Writer): Writer
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { id?: string; privateKey?: string; publicKey?: string }): KeyPair
    • Parameters

      • object: { id?: string; privateKey?: string; publicKey?: string }
        • Optional id?: string
        • Optional privateKey?: string
        • Optional publicKey?: string

      Returns KeyPair

  • toJSON: function
    • toJSON(message: KeyPair): unknown

KeyPairSet

KeyPairSet: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): KeyPairSet
  • encode: function
    • encode(message: KeyPairSet, writer?: Writer): Writer
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { encryption?: { privateKey?: string | undefined; publicKey?: string | undefined; id?: string | undefined; }; signing?: { privateKey?: string | undefined; publicKey?: string | undefined; id?: string | undefined; } }): KeyPairSet
    • Parameters

      • object: { encryption?: { privateKey?: string | undefined; publicKey?: string | undefined; id?: string | undefined; }; signing?: { privateKey?: string | undefined; publicKey?: string | undefined; id?: string | undefined; } }
        • Optional encryption?: { privateKey?: string | undefined; publicKey?: string | undefined; id?: string | undefined; }
        • Optional signing?: { privateKey?: string | undefined; publicKey?: string | undefined; id?: string | undefined; }

      Returns KeyPairSet

  • toJSON: function

PresentationPb

PresentationPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Note the proto defined types import with a 'Pb' suffix that also have older, vanilla ts types defined. The "Pb" serves to differentiate until we can ditch the legacy ts defined types.

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { context?: string[]; presentationRequestId?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }; type?: string[]; uuid?: string; verifiableCredential?: { context?: string[] | undefined; credentialSubject?: string | undefined; credentialStatus?: { id?: string | undefined; type?: string | undefined; } | undefined; issuer?: string | undefined; ... 4 more ...; expirationDate?: Date | undefined; }[]; verifierDid?: string }): PresentationPb
    • Parameters

      • object: { context?: string[]; presentationRequestId?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }; type?: string[]; uuid?: string; verifiableCredential?: { context?: string[] | undefined; credentialSubject?: string | undefined; credentialStatus?: { id?: string | undefined; type?: string | undefined; } | undefined; issuer?: string | undefined; ... 4 more ...; expirationDate?: Date | undefined; }[]; verifierDid?: string }
        • Optional context?: string[]
        • Optional presentationRequestId?: string
        • Optional proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }
        • Optional type?: string[]
        • Optional uuid?: string
        • Optional verifiableCredential?: { context?: string[] | undefined; credentialSubject?: string | undefined; credentialStatus?: { id?: string | undefined; type?: string | undefined; } | undefined; issuer?: string | undefined; ... 4 more ...; expirationDate?: Date | undefined; }[]

          Optional. If undefined or empty it means the presentation request was declined

        • Optional verifierDid?: string

      Returns PresentationPb

  • toJSON: function

PresentationRequestDisplayMessage

PresentationRequestDisplayMessage: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

PresentationRequestPb

PresentationRequestPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { createdAt?: Date; credentialRequests?: { type?: string | undefined; issuers?: string[] | undefined; required?: boolean | undefined; }[]; expiresAt?: Date; holderAppUuid?: string; id?: string; metadata?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }; updatedAt?: Date; uuid?: string; verifier?: string; version?: string }): PresentationRequestPb
    • Parameters

      • object: { createdAt?: Date; credentialRequests?: { type?: string | undefined; issuers?: string[] | undefined; required?: boolean | undefined; }[]; expiresAt?: Date; holderAppUuid?: string; id?: string; metadata?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }; updatedAt?: Date; uuid?: string; verifier?: string; version?: string }
        • Optional createdAt?: Date
        • Optional credentialRequests?: { type?: string | undefined; issuers?: string[] | undefined; required?: boolean | undefined; }[]
        • Optional expiresAt?: Date
        • Optional holderAppUuid?: string
        • Optional id?: string

          An indentifier for related presetnation requests across versions

        • Optional metadata?: string

          A string representation of an ambiguous object. Note: the Any type does not work because still needs a scheme (but can be assigned dymanically) & Struct does not work becuase not determinsitcally serialzied across langauges

        • Optional proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }
        • Optional updatedAt?: Date
        • Optional uuid?: string
        • Optional verifier?: string
        • Optional version?: string

      Returns PresentationRequestPb

  • toJSON: function

PresentationSchema

PresentationSchema: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

PresentationSchemaAttributes

PresentationSchemaAttributes: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

ProofPb

ProofPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): ProofPb
  • encode: function
    • encode(message: ProofPb, writer?: Writer): Writer
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { created?: Date; proofPurpose?: string; signatureValue?: string; type?: string; verificationMethod?: string }): ProofPb
    • Parameters

      • object: { created?: Date; proofPurpose?: string; signatureValue?: string; type?: string; verificationMethod?: string }
        • Optional created?: Date
        • Optional proofPurpose?: string
        • Optional signatureValue?: string
        • Optional type?: string
        • Optional verificationMethod?: string

      Returns ProofPb

  • toJSON: function
    • toJSON(message: ProofPb): unknown

PublicKeyInfoUpdateOptions

PublicKeyInfoUpdateOptions: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

RegisterVerifierOptions

RegisterVerifierOptions: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

RevokeAllCredentials

RevokeAllCredentials: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

SchemaAttributesDto

SchemaAttributesDto: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

SchemaAttributesRequestsDto

SchemaAttributesRequestsDto: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

SchemaGroupings

SchemaGroupings: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { contactInfo?: { heading?: string | undefined; credentials?: { type?: string | undefined; attributes?: { key?: string | undefined; label?: string | undefined; comment?: string | undefined; }[] | undefined; }[] | undefined; }; name?: { heading?: string | undefined; credentials?: { type?: string | undefined; attributes?: { key?: string | undefined; label?: string | undefined; comment?: string | undefined; }[] | undefined; }[] | undefined; } }): SchemaGroupings
    • Parameters

      • object: { contactInfo?: { heading?: string | undefined; credentials?: { type?: string | undefined; attributes?: { key?: string | undefined; label?: string | undefined; comment?: string | undefined; }[] | undefined; }[] | undefined; }; name?: { heading?: string | undefined; credentials?: { type?: string | undefined; attributes?: { key?: string | undefined; label?: string | undefined; comment?: string | undefined; }[] | undefined; }[] | undefined; } }
        • Optional contactInfo?: { heading?: string | undefined; credentials?: { type?: string | undefined; attributes?: { key?: string | undefined; label?: string | undefined; comment?: string | undefined; }[] | undefined; }[] | undefined; }
        • Optional name?: { heading?: string | undefined; credentials?: { type?: string | undefined; attributes?: { key?: string | undefined; label?: string | undefined; comment?: string | undefined; }[] | undefined; }[] | undefined; }

      Returns SchemaGroupings

  • toJSON: function

SchemaPresentationRequestDto

SchemaPresentationRequestDto: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

SignedDidDocumentPb

SignedDidDocumentPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { context?: string[]; created?: Date; id?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }; publicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }[]; service?: { id?: string | undefined; serviceEndpoint?: string | undefined; type?: string | undefined; }[]; updated?: Date }): SignedDidDocumentPb
    • Parameters

      • object: { context?: string[]; created?: Date; id?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }; publicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }[]; service?: { id?: string | undefined; serviceEndpoint?: string | undefined; type?: string | undefined; }[]; updated?: Date }
        • Optional context?: string[]
        • Optional created?: Date
        • Optional id?: string
        • Optional proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }
        • Optional publicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }[]
        • Optional service?: { id?: string | undefined; serviceEndpoint?: string | undefined; type?: string | undefined; }[]
        • Optional updated?: Date

      Returns SignedDidDocumentPb

  • toJSON: function

SignedString

SignedString: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): SignedString
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { data?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } }): SignedString
    • Parameters

      • object: { data?: string; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } }
        • Optional data?: string
        • Optional proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; }

      Returns SignedString

  • toJSON: function

SubjectAbsentCredentials

SubjectAbsentCredentials: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

SubjectCredentialIssuerInfoDto

SubjectCredentialIssuerInfoDto: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

SubjectCredentialRequestsEnrichedDtoPb

SubjectCredentialRequestsEnrichedDtoPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { credentialRequestsInfo?: { subjectCredentialRequests?: { credentialRequests?: { type?: string | undefined; issuers?: string[] | undefined; required?: boolean | undefined; }[] | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpos...; userDidAssociation?: { userCode?: string | undefined; did?: { id?: string | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } | undefined; } | undefined; issuerDid?: string | undefined; } }): SubjectCredentialRequestsEnrichedDtoPb
    • Parameters

      • object: { credentialRequestsInfo?: { subjectCredentialRequests?: { credentialRequests?: { type?: string | undefined; issuers?: string[] | undefined; required?: boolean | undefined; }[] | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpos...; userDidAssociation?: { userCode?: string | undefined; did?: { id?: string | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } | undefined; } | undefined; issuerDid?: string | undefined; } }
        • Optional credentialRequestsInfo?: { subjectCredentialRequests?: { credentialRequests?: { type?: string | undefined; issuers?: string[] | undefined; required?: boolean | undefined; }[] | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpos...
        • Optional userDidAssociation?: { userCode?: string | undefined; did?: { id?: string | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } | undefined; } | undefined; issuerDid?: string | undefined; }

      Returns SubjectCredentialRequestsEnrichedDtoPb

  • toJSON: function

SubjectCredentialsAbsentDto

SubjectCredentialsAbsentDto: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

UnsignedCredentialPb

UnsignedCredentialPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { context?: string[]; credentialStatus?: { id?: string | undefined; type?: string | undefined; }; credentialSubject?: string; expirationDate?: Date; id?: string; issuanceDate?: Date; issuer?: string; type?: string[] }): UnsignedCredentialPb
    • Parameters

      • object: { context?: string[]; credentialStatus?: { id?: string | undefined; type?: string | undefined; }; credentialSubject?: string; expirationDate?: Date; id?: string; issuanceDate?: Date; issuer?: string; type?: string[] }
        • Optional context?: string[]
        • Optional credentialStatus?: { id?: string | undefined; type?: string | undefined; }
        • Optional credentialSubject?: string
        • Optional expirationDate?: Date

          optional in the ts types

        • Optional id?: string
        • Optional issuanceDate?: Date
        • Optional issuer?: string
        • Optional type?: string[]

      Returns UnsignedCredentialPb

  • toJSON: function

UnsignedDID

UnsignedDID: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

UnsignedPresentation

UnsignedPresentation: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Note the proto defined types import with a 'Pb' suffix that also have older, vanilla ts types defined. The "Pb" serves to differentiate until we can ditch the legacy ts defined types.

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { context?: string[]; presentationRequestId?: string; type?: string[]; uuid?: string; verifiableCredential?: { context?: string[] | undefined; credentialSubject?: string | undefined; credentialStatus?: { id?: string | undefined; type?: string | undefined; } | undefined; issuer?: string | undefined; ... 4 more ...; expirationDate?: Date | undefined; }[]; verifierDid?: string }): UnsignedPresentation
    • Parameters

      • object: { context?: string[]; presentationRequestId?: string; type?: string[]; uuid?: string; verifiableCredential?: { context?: string[] | undefined; credentialSubject?: string | undefined; credentialStatus?: { id?: string | undefined; type?: string | undefined; } | undefined; issuer?: string | undefined; ... 4 more ...; expirationDate?: Date | undefined; }[]; verifierDid?: string }
        • Optional context?: string[]
        • Optional presentationRequestId?: string
        • Optional type?: string[]
        • Optional uuid?: string
        • Optional verifiableCredential?: { context?: string[] | undefined; credentialSubject?: string | undefined; credentialStatus?: { id?: string | undefined; type?: string | undefined; } | undefined; issuer?: string | undefined; ... 4 more ...; expirationDate?: Date | undefined; }[]

          Optional. If undefined or empty it means the presentation request was declined

        • Optional verifierDid?: string

      Returns UnsignedPresentation

  • toJSON: function

UnsignedPresentationRequestPb

UnsignedPresentationRequestPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

UnsignedRevokeAllCredentials

UnsignedRevokeAllCredentials: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

UnsignedString

UnsignedString: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

UnsignedSubjectCredentialRequests

UnsignedSubjectCredentialRequests: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

UserDidAssociationPb

UserDidAssociationPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { did?: { id?: string | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } | undefined; }; issuerDid?: string; userCode?: string }): UserDidAssociationPb
    • Parameters

      • object: { did?: { id?: string | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } | undefined; }; issuerDid?: string; userCode?: string }
        • Optional did?: { id?: string | undefined; proof?: { signatureValue?: string | undefined; type?: string | undefined; verificationMethod?: string | undefined; created?: Date | undefined; proofPurpose?: string | undefined; } | undefined; }

          the subject did to be associated to the user.

        • Optional issuerDid?: string
        • Optional userCode?: string

          the userCode should be a short lived, one time use user alias.

      Returns UserDidAssociationPb

  • toJSON: function

VerifierDto

VerifierDto: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

VerifierInfoPb

VerifierInfoPb: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { did?: string; encryptionPublicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }; name?: string; signingPublicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; } }): VerifierInfoPb
    • Parameters

      • object: { did?: string; encryptionPublicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }; name?: string; signingPublicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; } }
        • Optional did?: string
        • Optional encryptionPublicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }
        • Optional name?: string
        • Optional signingPublicKey?: { id?: string | undefined; publicKey?: string | undefined; encoding?: string | undefined; type?: string | undefined; status?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; rsaPadding?: RSAPadding | undefined; }

      Returns VerifierInfoPb

  • toJSON: function

Const _CredentialStatusOptions

_CredentialStatusOptions: Union<[Literal<"valid">, Literal<"revoked">]> = ...

Credential status value options Runtype, which has the benefit of runtime type checking and guards with literals. More info here: https://github.com/pelotom/runtypes

Const pushProviders

pushProviders: readonly ["FCM", "APNS"] = ...

A readonly list of push notification providers.

Const receiptGroupTypes

receiptGroupTypes: string[] = ...

Saas supported receipt group types

Const receiptTypes

receiptTypes: string[] = ...

Saas supported receipt types

Generated using TypeDoc