Socket
Socket
Sign inDemoInstall

@unumid/server-sdk

Package Overview
Dependencies
183
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.27.0 to 3.27.1

4

build/issuer/reEncryptCredentials.d.ts

@@ -12,4 +12,6 @@ import { UnumDto } from '../types';

* @param subjectDid
* @param issuerEncryptionKeyId
* @param credentialTypes
*/
export declare const reEncryptCredentials: (authorization: string, issuerDid: string, signingPrivateKey: string, encryptionPrivateKey: string, subjectDid: string, issuerEncryptionKeyId: string, credentialTypes?: string[]) => Promise<UnumDto<(CredentialPb | Credential)[]>>;
export declare const reEncryptCredentials: (authorization: string, issuerDid: string, signingPrivateKey: string, encryptionPrivateKey: string, issuerEncryptionKeyId: string, subjectDid: string, credentialTypes?: string[]) => Promise<UnumDto<(CredentialPb | Credential)[]>>;
//# sourceMappingURL=reEncryptCredentials.d.ts.map

@@ -77,4 +77,6 @@ "use strict";

* @param subjectDid
* @param issuerEncryptionKeyId
* @param credentialTypes
*/
exports.reEncryptCredentials = function (authorization, issuerDid, signingPrivateKey, encryptionPrivateKey, subjectDid, issuerEncryptionKeyId, credentialTypes) {
exports.reEncryptCredentials = function (authorization, issuerDid, signingPrivateKey, encryptionPrivateKey, issuerEncryptionKeyId, subjectDid, credentialTypes) {
if (credentialTypes === void 0) { credentialTypes = []; }

@@ -177,2 +179,3 @@ return __awaiter(void 0, void 0, void 0, function () {

* @param subjectDid
* @param credentialTypes
* @returns

@@ -179,0 +182,0 @@ */

{
"name": "@unumid/server-sdk",
"version": "3.27.0",
"version": "3.27.1",
"main": "build/index.js",

@@ -5,0 +5,0 @@ "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git",

@@ -19,3 +19,9 @@ import { DidDocument, DidKeyType, PublicKeyInfo } from '@unumid/types';

export declare const getDidDocPublicKeys: (authorization: string, targetDid: string, type: DidKeyType) => Promise<UnumDto<PublicKeyInfo[]>>;
/**
* Helper to get a DID Doc key. Requires a did with a key id.
* @param authorization
* @param targetDidWithKeyId
* @returns
*/
export declare const getDidDocPublicKey: (authorization: string, targetDidWithKeyId: string) => Promise<UnumDto<PublicKeyInfo>>;
//# sourceMappingURL=didHelper.d.ts.map

@@ -133,2 +133,8 @@ "use strict";

}); };
/**
* Helper to get a DID Doc key. Requires a did with a key id.
* @param authorization
* @param targetDidWithKeyId
* @returns
*/
exports.getDidDocPublicKey = function (authorization, targetDidWithKeyId) { return __awaiter(void 0, void 0, void 0, function () {

@@ -135,0 +141,0 @@ var didDocResponse, authToken;

import { UnumDto } from '../types';
import { CredentialPb, PublicKeyInfo } from '@unumid/types';
/**
* Used to verify the credential signature given the corresponding Did document's public key.
* Used to verify the credential signature after fetching the Did document's public key(s).
* @param credential

@@ -10,3 +10,3 @@ * @param authorization

/**
* Used to verify the credential signature given the corresponding Did document's public key.
* Used to verify the credential signature given the corresponding Did document's public key(s).
* @param credential

@@ -13,0 +13,0 @@ * @param authorization

@@ -51,3 +51,3 @@ "use strict";

/**
* Used to verify the credential signature given the corresponding Did document's public key.
* Used to verify the credential signature after fetching the Did document's public key(s).
* @param credential

@@ -79,3 +79,3 @@ * @param authorization

/**
* Used to verify the credential signature given the corresponding Did document's public key.
* Used to verify the credential signature given the corresponding Did document's public key(s).
* @param credential

@@ -82,0 +82,0 @@ * @param authorization

{
"name": "@unumid/server-sdk",
"version": "3.27.0",
"version": "3.27.1",
"main": "build/index.js",

@@ -5,0 +5,0 @@ "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git",

@@ -27,4 +27,6 @@ import { configData } from '../config';

* @param subjectDid
* @param issuerEncryptionKeyId
* @param credentialTypes
*/
export const reEncryptCredentials = async (authorization: string, issuerDid: string, signingPrivateKey: string, encryptionPrivateKey: string, subjectDid: string, issuerEncryptionKeyId: string, credentialTypes: string[] = []): Promise<UnumDto<(CredentialPb | Credential)[]>> => {
export const reEncryptCredentials = async (authorization: string, issuerDid: string, signingPrivateKey: string, encryptionPrivateKey: string, issuerEncryptionKeyId: string, subjectDid: string, credentialTypes: string[] = []): Promise<UnumDto<(CredentialPb | Credential)[]>> => {
// The authorization string needs to be passed for the SaaS to authorize getting the DID document associated with the holder / subject.

@@ -138,2 +140,3 @@ requireAuth(authorization);

* @param subjectDid
* @param credentialTypes
* @returns

@@ -140,0 +143,0 @@ */

@@ -93,2 +93,8 @@ import { CredentialSubject, DidDocument, DidKeyType, PublicKeyInfo, Credential, CredentialPb } from '@unumid/types';

/**
* Helper to get a DID Doc key. Requires a did with a key id.
* @param authorization
* @param targetDidWithKeyId
* @returns
*/
export const getDidDocPublicKey = async (authorization: string, targetDidWithKeyId: string): Promise<UnumDto<PublicKeyInfo>> => {

@@ -95,0 +101,0 @@ // ensure the did actually has a fragment (aka key id) with it

@@ -13,3 +13,3 @@

/**
* Used to verify the credential signature given the corresponding Did document's public key.
* Used to verify the credential signature after fetching the Did document's public key(s).
* @param credential

@@ -39,3 +39,3 @@ * @param authorization

/**
* Used to verify the credential signature given the corresponding Did document's public key.
* Used to verify the credential signature given the corresponding Did document's public key(s).
* @param credential

@@ -42,0 +42,0 @@ * @param authorization

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc