@sphereon/ssi-sdk.wellknown-did-issuer 0.33.1-feature.vcdm2.tsup.31 → 0.33.1-next.2
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/agent/WellKnownDidIssuer.d.ts +35 -0
- package/dist/agent/WellKnownDidIssuer.d.ts.map +1 -0
- package/dist/agent/WellKnownDidIssuer.js +218 -0
- package/dist/agent/WellKnownDidIssuer.js.map +1 -0
- package/dist/entities/DidConfigurationResourceEntity.d.ts +14 -0
- package/dist/entities/DidConfigurationResourceEntity.d.ts.map +1 -0
- package/dist/entities/DidConfigurationResourceEntity.js +103 -0
- package/dist/entities/DidConfigurationResourceEntity.js.map +1 -0
- package/dist/index.d.ts +8 -112
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -3992
- package/dist/index.js.map +1 -1
- package/dist/migrations/generic/1-CreateWellknownDidIssuer.d.ts +7 -0
- package/dist/migrations/generic/1-CreateWellknownDidIssuer.d.ts.map +1 -0
- package/dist/migrations/generic/1-CreateWellknownDidIssuer.js +72 -0
- package/dist/migrations/generic/1-CreateWellknownDidIssuer.js.map +1 -0
- package/dist/migrations/generic/index.d.ts +10 -0
- package/dist/migrations/generic/index.d.ts.map +1 -0
- package/dist/migrations/generic/index.js +13 -0
- package/dist/migrations/generic/index.js.map +1 -0
- package/dist/migrations/index.d.ts +2 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +6 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/migrations/internal-migrations-ormconfig.d.ts +7 -0
- package/dist/migrations/internal-migrations-ormconfig.d.ts.map +1 -0
- package/dist/migrations/internal-migrations-ormconfig.js +29 -0
- package/dist/migrations/internal-migrations-ormconfig.js.map +1 -0
- package/dist/migrations/postgres/1661165115000-CreateWellknownDidIssuer.d.ts +7 -0
- package/dist/migrations/postgres/1661165115000-CreateWellknownDidIssuer.d.ts.map +1 -0
- package/dist/migrations/postgres/1661165115000-CreateWellknownDidIssuer.js +31 -0
- package/dist/migrations/postgres/1661165115000-CreateWellknownDidIssuer.js.map +1 -0
- package/dist/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.d.ts +7 -0
- package/dist/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.d.ts.map +1 -0
- package/dist/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.js +31 -0
- package/dist/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.js.map +1 -0
- package/dist/types/IWellKnownDidIssuer.d.ts +51 -0
- package/dist/types/IWellKnownDidIssuer.d.ts.map +1 -0
- package/dist/types/IWellKnownDidIssuer.js +3 -0
- package/dist/types/IWellKnownDidIssuer.js.map +1 -0
- package/package.json +15 -27
- package/src/agent/WellKnownDidIssuer.ts +0 -2
- package/dist/index.cjs +0 -4045
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -116
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConnectionOptions } from 'typeorm';
|
|
2
|
+
/**
|
|
3
|
+
* Do Not use these connections in production!. They are only here to create/test migration files!
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: ConnectionOptions[];
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=internal-migrations-ormconfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-migrations-ormconfig.d.ts","sourceRoot":"","sources":["../../src/migrations/internal-migrations-ormconfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAG3C;;GAEG;wBAsBE,iBAAiB,EAAE;AArBxB,wBAqBwB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const index_1 = require("../index");
|
|
4
|
+
/**
|
|
5
|
+
* Do Not use these connections in production!. They are only here to create/test migration files!
|
|
6
|
+
*/
|
|
7
|
+
exports.default = [
|
|
8
|
+
{
|
|
9
|
+
type: 'sqlite',
|
|
10
|
+
name: 'migration-sqlite',
|
|
11
|
+
database: 'migration.sqlite',
|
|
12
|
+
migrationsRun: false,
|
|
13
|
+
synchronize: false,
|
|
14
|
+
logging: ['error', 'info', 'warn', 'log'],
|
|
15
|
+
entities: [...index_1.WellknownDidIssuerEntities],
|
|
16
|
+
migrations: [...index_1.WellknownDidIssuerMigrations],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
type: 'postgres',
|
|
20
|
+
name: 'migration-postgres',
|
|
21
|
+
database: 'migration-postgres',
|
|
22
|
+
migrationsRun: false,
|
|
23
|
+
synchronize: false,
|
|
24
|
+
logging: ['error', 'info', 'warn', 'log'],
|
|
25
|
+
entities: [...index_1.WellknownDidIssuerEntities],
|
|
26
|
+
migrations: [...index_1.WellknownDidIssuerMigrations],
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
//# sourceMappingURL=internal-migrations-ormconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-migrations-ormconfig.js","sourceRoot":"","sources":["../../src/migrations/internal-migrations-ormconfig.ts"],"names":[],"mappings":";;AACA,oCAAmF;AAEnF;;GAEG;AACH,kBAAe;IACb;QACE,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;QACzC,QAAQ,EAAE,CAAC,GAAG,kCAA0B,CAAC;QACzC,UAAU,EAAE,CAAC,GAAG,oCAA4B,CAAC;KAC9C;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,oBAAoB;QAC9B,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;QACzC,QAAQ,EAAE,CAAC,GAAG,kCAA0B,CAAC;QACzC,UAAU,EAAE,CAAC,GAAG,oCAA4B,CAAC;KAC9C;CACqB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class CreateWellknownDidIssuer1661165115000 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=1661165115000-CreateWellknownDidIssuer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1661165115000-CreateWellknownDidIssuer.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1661165115000-CreateWellknownDidIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,qCAAsC,YAAW,kBAAkB;IAC9E,IAAI,SAA0C;IAEjC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAI3D"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateWellknownDidIssuer1661165115000 = void 0;
|
|
13
|
+
class CreateWellknownDidIssuer1661165115000 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'CreateWellknownDidIssuer1661165115000';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE "DidConfigurationResource" ("origin" varchar NOT NULL, "context" varchar NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_Origin" PRIMARY KEY ("origin"))`);
|
|
20
|
+
yield queryRunner.query(`CREATE TABLE "DidConfigurationResourceCredentials" ("didConfigurationResourceOrigin" varchar NOT NULL, "credentialHash" varchar NOT NULL)`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`DROP TABLE "DidConfigurationResource"`);
|
|
26
|
+
yield queryRunner.query(`DROP TABLE "DidConfigurationResourceCredentials"`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.CreateWellknownDidIssuer1661165115000 = CreateWellknownDidIssuer1661165115000;
|
|
31
|
+
//# sourceMappingURL=1661165115000-CreateWellknownDidIssuer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1661165115000-CreateWellknownDidIssuer.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1661165115000-CreateWellknownDidIssuer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,qCAAqC;IAAlD;QACE,SAAI,GAAG,uCAAuC,CAAA;IAehD,CAAC;IAbc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,mPAAmP,CACpP,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,2IAA2I,CAC5I,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;YAChE,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAA;QAC7E,CAAC;KAAA;CACF;AAhBD,sFAgBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class CreateWellknownDidIssuer1661161799000 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=1661161799000-CreateWellknownDidIssuer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1661161799000-CreateWellknownDidIssuer.d.ts","sourceRoot":"","sources":["../../../src/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,qCAAsC,YAAW,kBAAkB;IAC9E,IAAI,SAA0C;IAEjC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAI3D"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateWellknownDidIssuer1661161799000 = void 0;
|
|
13
|
+
class CreateWellknownDidIssuer1661161799000 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'CreateWellknownDidIssuer1661161799000';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE "DidConfigurationResource" ("origin" varchar PRIMARY KEY NOT NULL, "context" varchar NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')))`);
|
|
20
|
+
yield queryRunner.query(`CREATE TABLE "DidConfigurationResourceCredentials" ("didConfigurationResourceOrigin" varchar NOT NULL, "credentialHash" varchar NOT NULL)`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`DROP TABLE "DidConfigurationResource"`);
|
|
26
|
+
yield queryRunner.query(`DROP TABLE "DidConfigurationResourceCredentials"`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.CreateWellknownDidIssuer1661161799000 = CreateWellknownDidIssuer1661161799000;
|
|
31
|
+
//# sourceMappingURL=1661161799000-CreateWellknownDidIssuer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1661161799000-CreateWellknownDidIssuer.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,qCAAqC;IAAlD;QACE,SAAI,GAAG,uCAAuC,CAAA;IAehD,CAAC;IAbc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,sOAAsO,CACvO,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,2IAA2I,CAC5I,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;YAChE,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAA;QAC7E,CAAC;KAAA;CACF;AAhBD,sFAgBC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { DomainLinkageCredential, IDidConfigurationResource, IIssueDomainLinkageCredentialOptions, IssuanceCallback } from '@sphereon/wellknown-dids-client';
|
|
2
|
+
import { IAgentContext, IPluginMethodMap, IDIDManager } from '@veramo/core';
|
|
3
|
+
import { ICredentialStore } from '@sphereon/ssi-sdk.credential-store';
|
|
4
|
+
export interface IWellKnownDidIssuer extends IPluginMethodMap {
|
|
5
|
+
addLinkedDomainsService(args: IAddLinkedDomainsServiceArgs, context: RequiredContext): Promise<void>;
|
|
6
|
+
getDidConfigurationResource(args: IGetDidConfigurationResourceArgs, context: RequiredContext): Promise<IDidConfigurationResource>;
|
|
7
|
+
issueDidConfigurationResource(args: IIssueDidConfigurationResourceArgs, context: RequiredContext): Promise<IDidConfigurationResource>;
|
|
8
|
+
issueDomainLinkageCredential(args: IIssueDomainLinkageCredentialArgs, context: RequiredContext): Promise<DomainLinkageCredential>;
|
|
9
|
+
registerCredentialIssuance(args: IRegisterIssueCredentialArgs, context: RequiredContext): Promise<void>;
|
|
10
|
+
removeCredentialIssuance(args: IRemoveCredentialIssuanceArgs, context: RequiredContext): Promise<boolean>;
|
|
11
|
+
saveDidConfigurationResource(args: ISaveDidConfigurationResourceArgs, context: RequiredContext): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export interface IWellKnownDidIssuerOptionsArgs {
|
|
14
|
+
credentialIssuances?: Record<string, IssuanceCallback>;
|
|
15
|
+
}
|
|
16
|
+
export interface IRegisterIssueCredentialArgs {
|
|
17
|
+
callbackName: string;
|
|
18
|
+
credentialIssuance: IssuanceCallback;
|
|
19
|
+
}
|
|
20
|
+
export interface IRemoveCredentialIssuanceArgs {
|
|
21
|
+
callbackName: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IIssueDidConfigurationResourceArgs {
|
|
24
|
+
issuances: Array<IIssueDomainLinkageCredentialArgs>;
|
|
25
|
+
credentialIssuance?: string | IssuanceCallback;
|
|
26
|
+
save?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface IIssueDomainLinkageCredentialArgs {
|
|
29
|
+
did: string;
|
|
30
|
+
origin: string;
|
|
31
|
+
serviceId?: string;
|
|
32
|
+
issuanceDate?: string;
|
|
33
|
+
expirationDate: string;
|
|
34
|
+
save?: boolean;
|
|
35
|
+
options: IIssueDomainLinkageCredentialOptions;
|
|
36
|
+
credentialIssuance?: string | IssuanceCallback;
|
|
37
|
+
}
|
|
38
|
+
export interface IGetDidConfigurationResourceArgs {
|
|
39
|
+
origin: string;
|
|
40
|
+
}
|
|
41
|
+
export interface IAddLinkedDomainsServiceArgs {
|
|
42
|
+
did: string;
|
|
43
|
+
origin: string;
|
|
44
|
+
serviceId?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface ISaveDidConfigurationResourceArgs {
|
|
47
|
+
origin: string;
|
|
48
|
+
didConfigurationResource: IDidConfigurationResource;
|
|
49
|
+
}
|
|
50
|
+
export type RequiredContext = IAgentContext<IDIDManager & ICredentialStore>;
|
|
51
|
+
//# sourceMappingURL=IWellKnownDidIssuer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWellKnownDidIssuer.d.ts","sourceRoot":"","sources":["../../src/types/IWellKnownDidIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,oCAAoC,EACpC,gBAAgB,EACjB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAErE,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,uBAAuB,CAAC,IAAI,EAAE,4BAA4B,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACpG,2BAA2B,CAAC,IAAI,EAAE,gCAAgC,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACjI,6BAA6B,CAAC,IAAI,EAAE,kCAAkC,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACrI,4BAA4B,CAAC,IAAI,EAAE,iCAAiC,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACjI,0BAA0B,CAAC,IAAI,EAAE,4BAA4B,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACvG,wBAAwB,CAAC,IAAI,EAAE,6BAA6B,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IACzG,4BAA4B,CAAC,IAAI,EAAE,iCAAiC,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/G;AAED,MAAM,WAAW,8BAA8B;IAC7C,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CACvD;AAED,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,gBAAgB,CAAA;CACrC;AAED,MAAM,WAAW,6BAA6B;IAC5C,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,KAAK,CAAC,iCAAiC,CAAC,CAAA;IACnD,kBAAkB,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,iCAAiC;IAChD,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,oCAAoC,CAAA;IAC7C,kBAAkB,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAC/C;AAED,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,4BAA4B;IAC3C,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,MAAM,CAAA;IACd,wBAAwB,EAAE,yBAAyB,CAAA;CACpD;AAED,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWellKnownDidIssuer.js","sourceRoot":"","sources":["../../src/types/IWellKnownDidIssuer.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,58 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.wellknown-did-issuer",
|
|
3
|
-
"version": "0.33.1-
|
|
3
|
+
"version": "0.33.1-next.2+6f7f40b9",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
"import": {
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"require": {
|
|
15
|
-
"types": "./dist/index.d.cts",
|
|
16
|
-
"require": "./dist/index.cjs"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
19
7
|
"veramo": {
|
|
20
8
|
"pluginInterfaces": {
|
|
21
9
|
"IWellknownDidIssuer": "./src/types/IWellKnownDidIssuer.ts"
|
|
22
10
|
}
|
|
23
11
|
},
|
|
24
12
|
"scripts": {
|
|
25
|
-
"build": "
|
|
13
|
+
"build": "tsc --build",
|
|
14
|
+
"build:clean": "tsc --build --clean && tsc --build"
|
|
26
15
|
},
|
|
27
16
|
"dependencies": {
|
|
28
|
-
"@sphereon/ssi-sdk.
|
|
29
|
-
"@sphereon/ssi-sdk.
|
|
30
|
-
"@sphereon/ssi-
|
|
31
|
-
"@sphereon/ssi-types": "^0.33.1-feature.vcdm2.tsup.31+71b615ad",
|
|
17
|
+
"@sphereon/ssi-sdk.credential-store": "0.33.1-next.2+6f7f40b9",
|
|
18
|
+
"@sphereon/ssi-sdk.data-store": "0.33.1-next.2+6f7f40b9",
|
|
19
|
+
"@sphereon/ssi-types": "0.33.1-next.2+6f7f40b9",
|
|
32
20
|
"@sphereon/wellknown-dids-client": "^0.1.3",
|
|
33
21
|
"@veramo/data-store": "4.2.0",
|
|
34
22
|
"@veramo/utils": "4.2.0",
|
|
35
23
|
"class-validator": "^0.14.1",
|
|
36
24
|
"debug": "^4.3.5",
|
|
37
25
|
"did-jwt-vc": "3.1.3",
|
|
38
|
-
"typeorm": "^0.3.
|
|
26
|
+
"typeorm": "^0.3.21",
|
|
39
27
|
"uuid": "^9.0.1"
|
|
40
28
|
},
|
|
41
29
|
"devDependencies": {
|
|
42
|
-
"@sphereon/ssi-sdk.agent-config": "
|
|
30
|
+
"@sphereon/ssi-sdk.agent-config": "0.33.1-next.2+6f7f40b9",
|
|
43
31
|
"@types/express": "^4.17.21",
|
|
44
32
|
"@types/uuid": "^9.0.8",
|
|
45
|
-
"@veramo/did-manager": "4.2.0",
|
|
46
33
|
"@veramo/remote-client": "4.2.0",
|
|
47
34
|
"@veramo/remote-server": "4.2.0",
|
|
48
35
|
"did-resolver": "^4.1.0",
|
|
49
36
|
"express": "^4.19.2",
|
|
50
37
|
"nock": "^13.5.4",
|
|
51
|
-
"typescript": "5.
|
|
38
|
+
"typescript": "5.4.2"
|
|
52
39
|
},
|
|
53
40
|
"files": [
|
|
54
|
-
"dist",
|
|
55
|
-
"src",
|
|
41
|
+
"dist/**/*",
|
|
42
|
+
"src/**/*",
|
|
56
43
|
"README.md",
|
|
57
44
|
"plugin.schema.json",
|
|
58
45
|
"LICENSE"
|
|
@@ -72,5 +59,6 @@
|
|
|
72
59
|
"Well-Known DIDs",
|
|
73
60
|
"Verifiable Credential"
|
|
74
61
|
],
|
|
75
|
-
"
|
|
62
|
+
"nx": {},
|
|
63
|
+
"gitHead": "6f7f40b94beb385369fede046c3912bd0c053408"
|
|
76
64
|
}
|
|
@@ -9,9 +9,7 @@ import {
|
|
|
9
9
|
} from '@sphereon/wellknown-dids-client'
|
|
10
10
|
import { IAgentPlugin, IIdentifier, VerifiableCredential } from '@veramo/core'
|
|
11
11
|
import { OrPromise } from '@veramo/utils'
|
|
12
|
-
// @ts-ignore
|
|
13
12
|
import { normalizeCredential } from 'did-jwt-vc'
|
|
14
|
-
// @ts-ignore
|
|
15
13
|
import { Service } from 'did-resolver/lib/resolver'
|
|
16
14
|
import { Connection } from 'typeorm'
|
|
17
15
|
import { v4 as uuidv4 } from 'uuid'
|