@sphereon/ssi-sdk.wellknown-did-issuer 0.33.1-feature.vcdm2.4 → 0.33.1-feature.vcdm2.tsup.18

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.
Files changed (45) hide show
  1. package/dist/index.cjs +620 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +116 -0
  4. package/dist/index.d.ts +112 -8
  5. package/dist/index.js +581 -11
  6. package/dist/index.js.map +1 -1
  7. package/package.json +27 -15
  8. package/src/agent/WellKnownDidIssuer.ts +2 -0
  9. package/dist/agent/WellKnownDidIssuer.d.ts +0 -35
  10. package/dist/agent/WellKnownDidIssuer.d.ts.map +0 -1
  11. package/dist/agent/WellKnownDidIssuer.js +0 -188
  12. package/dist/agent/WellKnownDidIssuer.js.map +0 -1
  13. package/dist/entities/DidConfigurationResourceEntity.d.ts +0 -14
  14. package/dist/entities/DidConfigurationResourceEntity.d.ts.map +0 -1
  15. package/dist/entities/DidConfigurationResourceEntity.js +0 -101
  16. package/dist/entities/DidConfigurationResourceEntity.js.map +0 -1
  17. package/dist/index.d.ts.map +0 -1
  18. package/dist/migrations/generic/1-CreateWellknownDidIssuer.d.ts +0 -7
  19. package/dist/migrations/generic/1-CreateWellknownDidIssuer.d.ts.map +0 -1
  20. package/dist/migrations/generic/1-CreateWellknownDidIssuer.js +0 -50
  21. package/dist/migrations/generic/1-CreateWellknownDidIssuer.js.map +0 -1
  22. package/dist/migrations/generic/index.d.ts +0 -10
  23. package/dist/migrations/generic/index.d.ts.map +0 -1
  24. package/dist/migrations/generic/index.js +0 -10
  25. package/dist/migrations/generic/index.js.map +0 -1
  26. package/dist/migrations/index.d.ts +0 -2
  27. package/dist/migrations/index.d.ts.map +0 -1
  28. package/dist/migrations/index.js +0 -2
  29. package/dist/migrations/index.js.map +0 -1
  30. package/dist/migrations/internal-migrations-ormconfig.d.ts +0 -7
  31. package/dist/migrations/internal-migrations-ormconfig.d.ts.map +0 -1
  32. package/dist/migrations/internal-migrations-ormconfig.js +0 -27
  33. package/dist/migrations/internal-migrations-ormconfig.js.map +0 -1
  34. package/dist/migrations/postgres/1661165115000-CreateWellknownDidIssuer.d.ts +0 -7
  35. package/dist/migrations/postgres/1661165115000-CreateWellknownDidIssuer.d.ts.map +0 -1
  36. package/dist/migrations/postgres/1661165115000-CreateWellknownDidIssuer.js +0 -12
  37. package/dist/migrations/postgres/1661165115000-CreateWellknownDidIssuer.js.map +0 -1
  38. package/dist/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.d.ts +0 -7
  39. package/dist/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.d.ts.map +0 -1
  40. package/dist/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.js +0 -12
  41. package/dist/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.js.map +0 -1
  42. package/dist/types/IWellKnownDidIssuer.d.ts +0 -51
  43. package/dist/types/IWellKnownDidIssuer.d.ts.map +0 -1
  44. package/dist/types/IWellKnownDidIssuer.js +0 -2
  45. package/dist/types/IWellKnownDidIssuer.js.map +0 -1
@@ -1,50 +0,0 @@
1
- import Debug from 'debug';
2
- import { CreateWellknownDidIssuer1661165115000 } from '../postgres/1661165115000-CreateWellknownDidIssuer';
3
- import { CreateWellknownDidIssuer1661161799000 } from '../sqlite/1661161799000-CreateWellknownDidIssuer';
4
- const debug = Debug('sphereon:ssi-sdk:migrations');
5
- export class CreateWellknownDidIssuer1661162010000 {
6
- name = 'CreateWellknownDidIssuer1661162010000';
7
- async up(queryRunner) {
8
- debug('migration: creating well-known DID tables');
9
- const dbType = queryRunner.connection.driver.options.type;
10
- if (dbType === 'postgres') {
11
- debug('using postgres migration file');
12
- const mig = new CreateWellknownDidIssuer1661165115000();
13
- const up = await mig.up(queryRunner);
14
- debug('Migration statements executed');
15
- return up;
16
- }
17
- else if (dbType === 'sqlite' || dbType === 'react-native' || dbType === 'expo') {
18
- debug('using sqlite/react-native migration file');
19
- const mig = new CreateWellknownDidIssuer1661161799000();
20
- const up = await mig.up(queryRunner);
21
- debug('Migration statements executed');
22
- return up;
23
- }
24
- else {
25
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
26
- }
27
- }
28
- async down(queryRunner) {
29
- debug('reverting well-known DID tables');
30
- const dbType = queryRunner.connection.driver.options.type;
31
- if (dbType === 'postgres') {
32
- debug('using postgres migration file');
33
- const mig = new CreateWellknownDidIssuer1661165115000();
34
- const down = await mig.down(queryRunner);
35
- debug('Migration statements executed');
36
- return down;
37
- }
38
- else if (dbType === 'sqlite' || dbType === 'react-native' || dbType === 'expo') {
39
- debug('using sqlite/react-native migration file');
40
- const mig = new CreateWellknownDidIssuer1661161799000();
41
- const down = await mig.down(queryRunner);
42
- debug('Migration statements executed');
43
- return down;
44
- }
45
- else {
46
- return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
47
- }
48
- }
49
- }
50
- //# sourceMappingURL=1-CreateWellknownDidIssuer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"1-CreateWellknownDidIssuer.js","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateWellknownDidIssuer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,qCAAqC,EAAE,MAAM,oDAAoD,CAAA;AAC1G,OAAO,EAAE,qCAAqC,EAAE,MAAM,kDAAkD,CAAA;AAExG,MAAM,KAAK,GAAG,KAAK,CAAC,6BAA6B,CAAC,CAAA;AAElD,MAAM,OAAO,qCAAqC;IAChD,IAAI,GAAG,uCAAuC,CAAA;IAEvC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,KAAK,CAAC,2CAA2C,CAAC,CAAA;QAClD,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM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IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YACjF,KAAK,CAAC,0CAA0C,CAAC,CAAA;YACjD,MAAM,GAAG,GAAG,IAAI,qCAAqC,EAAE,CAAA;YACvD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;YACxC,KAAK,CAAC,+BAA+B,CAAC,CAAA;YACtC,OAAO,IAAI,CAAA;QACb,CAAC;aAAM,CAAC;YACN,OAAO,OAAO,CAAC,MAAM,CACnB,6FAA6F,MAAM,+GAA+G,CACnN,CAAA;QACH,CAAC;IACH,CAAC;CACF"}
@@ -1,10 +0,0 @@
1
- import { CreateWellknownDidIssuer1661162010000 } from './1-CreateWellknownDidIssuer';
2
- /**
3
- * The migrations array that SHOULD be used when initializing a TypeORM database connection.
4
- *
5
- * These ensure the correct creation of tables and the proper migrations of data when tables change between versions.
6
- *
7
- * @public
8
- */
9
- export declare const WellknownDidIssuerMigrations: (typeof CreateWellknownDidIssuer1661162010000)[];
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8BAA8B,CAAA;AAEpF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,kDAA0C,CAAA"}
@@ -1,10 +0,0 @@
1
- import { CreateWellknownDidIssuer1661162010000 } from './1-CreateWellknownDidIssuer';
2
- /**
3
- * The migrations array that SHOULD be used when initializing a TypeORM database connection.
4
- *
5
- * These ensure the correct creation of tables and the proper migrations of data when tables change between versions.
6
- *
7
- * @public
8
- */
9
- export const WellknownDidIssuerMigrations = [CreateWellknownDidIssuer1661162010000];
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8BAA8B,CAAA;AAEpF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,qCAAqC,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export { WellknownDidIssuerMigrations } from './generic';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAA"}
@@ -1,2 +0,0 @@
1
- export { WellknownDidIssuerMigrations } from './generic';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAA"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,27 +0,0 @@
1
- import { WellknownDidIssuerEntities, WellknownDidIssuerMigrations } from '../index';
2
- /**
3
- * Do Not use these connections in production!. They are only here to create/test migration files!
4
- */
5
- export default [
6
- {
7
- type: 'sqlite',
8
- name: 'migration-sqlite',
9
- database: 'migration.sqlite',
10
- migrationsRun: false,
11
- synchronize: false,
12
- logging: ['error', 'info', 'warn', 'log'],
13
- entities: [...WellknownDidIssuerEntities],
14
- migrations: [...WellknownDidIssuerMigrations],
15
- },
16
- {
17
- type: 'postgres',
18
- name: 'migration-postgres',
19
- database: 'migration-postgres',
20
- migrationsRun: false,
21
- synchronize: false,
22
- logging: ['error', 'info', 'warn', 'log'],
23
- entities: [...WellknownDidIssuerEntities],
24
- migrations: [...WellknownDidIssuerMigrations],
25
- },
26
- ];
27
- //# sourceMappingURL=internal-migrations-ormconfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-migrations-ormconfig.js","sourceRoot":"","sources":["../../src/migrations/internal-migrations-ormconfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAEnF;;GAEG;AACH,eAAe;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,0BAA0B,CAAC;QACzC,UAAU,EAAE,CAAC,GAAG,4BAA4B,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,0BAA0B,CAAC;QACzC,UAAU,EAAE,CAAC,GAAG,4BAA4B,CAAC;KAC9C;CACqB,CAAA"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
1
- export class CreateWellknownDidIssuer1661165115000 {
2
- name = 'CreateWellknownDidIssuer1661165115000';
3
- async up(queryRunner) {
4
- await 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"))`);
5
- await queryRunner.query(`CREATE TABLE "DidConfigurationResourceCredentials" ("didConfigurationResourceOrigin" varchar NOT NULL, "credentialHash" varchar NOT NULL)`);
6
- }
7
- async down(queryRunner) {
8
- await queryRunner.query(`DROP TABLE "DidConfigurationResource"`);
9
- await queryRunner.query(`DROP TABLE "DidConfigurationResourceCredentials"`);
10
- }
11
- }
12
- //# sourceMappingURL=1661165115000-CreateWellknownDidIssuer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"1661165115000-CreateWellknownDidIssuer.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1661165115000-CreateWellknownDidIssuer.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,qCAAqC;IAChD,IAAI,GAAG,uCAAuC,CAAA;IAEvC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CACrB,mPAAmP,CACpP,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,2IAA2I,CAC5I,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,WAAW,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;QAChE,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAA;IAC7E,CAAC;CACF"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
1
- export class CreateWellknownDidIssuer1661161799000 {
2
- name = 'CreateWellknownDidIssuer1661161799000';
3
- async up(queryRunner) {
4
- await 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')))`);
5
- await queryRunner.query(`CREATE TABLE "DidConfigurationResourceCredentials" ("didConfigurationResourceOrigin" varchar NOT NULL, "credentialHash" varchar NOT NULL)`);
6
- }
7
- async down(queryRunner) {
8
- await queryRunner.query(`DROP TABLE "DidConfigurationResource"`);
9
- await queryRunner.query(`DROP TABLE "DidConfigurationResourceCredentials"`);
10
- }
11
- }
12
- //# sourceMappingURL=1661161799000-CreateWellknownDidIssuer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"1661161799000-CreateWellknownDidIssuer.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1661161799000-CreateWellknownDidIssuer.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,qCAAqC;IAChD,IAAI,GAAG,uCAAuC,CAAA;IAEvC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CACrB,sOAAsO,CACvO,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,2IAA2I,CAC5I,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,WAAW,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;QAChE,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAA;IAC7E,CAAC;CACF"}
@@ -1,51 +0,0 @@
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
@@ -1 +0,0 @@
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,M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9C,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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IWellKnownDidIssuer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IWellKnownDidIssuer.js","sourceRoot":"","sources":["../../src/types/IWellKnownDidIssuer.ts"],"names":[],"mappings":""}