@sphereon/ssi-sdk.data-store 0.34.1-feature.merge.crypto.extensions.modules.37 → 0.34.1-feature.testbed.repair.105
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/index.cjs +27 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +27 -26
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/migrations/postgres/1737110469001-UpdateStatusList.ts +1 -1
- package/src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts +4 -2
- package/src/types/digitalCredential/enums.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -215,7 +215,7 @@ declare enum CredentialDocumentFormat {
|
|
|
215
215
|
}
|
|
216
216
|
declare namespace CredentialDocumentFormat {
|
|
217
217
|
function fromSpecValue(credentialFormat: string): CredentialDocumentFormat;
|
|
218
|
-
function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "
|
|
218
|
+
function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "dc+sd-jwt" | "mso_mdoc" | "ldp_vc" | "ldp_vp" | "jwt_vc_json" | "jwt_vp_json";
|
|
219
219
|
}
|
|
220
220
|
declare enum CredentialCorrelationType {
|
|
221
221
|
DID = "DID",
|
package/dist/index.d.ts
CHANGED
|
@@ -215,7 +215,7 @@ declare enum CredentialDocumentFormat {
|
|
|
215
215
|
}
|
|
216
216
|
declare namespace CredentialDocumentFormat {
|
|
217
217
|
function fromSpecValue(credentialFormat: string): CredentialDocumentFormat;
|
|
218
|
-
function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "
|
|
218
|
+
function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "dc+sd-jwt" | "mso_mdoc" | "ldp_vc" | "ldp_vp" | "jwt_vc_json" | "jwt_vp_json";
|
|
219
219
|
}
|
|
220
220
|
declare enum CredentialCorrelationType {
|
|
221
221
|
DID = "DID",
|
package/dist/index.js
CHANGED
|
@@ -8,55 +8,55 @@ import typeorm6 from "typeorm";
|
|
|
8
8
|
import typeorm5 from "typeorm";
|
|
9
9
|
|
|
10
10
|
// src/types/contact/contact.ts
|
|
11
|
-
var ConnectionType = /* @__PURE__ */
|
|
11
|
+
var ConnectionType = /* @__PURE__ */ function(ConnectionType2) {
|
|
12
12
|
ConnectionType2["OPENID_CONNECT"] = "OIDC";
|
|
13
13
|
ConnectionType2["SIOPv2"] = "SIOPv2";
|
|
14
14
|
ConnectionType2["SIOPv2_OpenID4VP"] = "SIOPv2+OpenID4VP";
|
|
15
15
|
return ConnectionType2;
|
|
16
|
-
}
|
|
17
|
-
var CorrelationIdentifierType = /* @__PURE__ */
|
|
16
|
+
}({});
|
|
17
|
+
var CorrelationIdentifierType = /* @__PURE__ */ function(CorrelationIdentifierType2) {
|
|
18
18
|
CorrelationIdentifierType2["DID"] = "did";
|
|
19
19
|
CorrelationIdentifierType2["URL"] = "url";
|
|
20
20
|
return CorrelationIdentifierType2;
|
|
21
|
-
}
|
|
22
|
-
var PartyTypeType = /* @__PURE__ */
|
|
21
|
+
}({});
|
|
22
|
+
var PartyTypeType = /* @__PURE__ */ function(PartyTypeType2) {
|
|
23
23
|
PartyTypeType2["NATURAL_PERSON"] = "naturalPerson";
|
|
24
24
|
PartyTypeType2["ORGANIZATION"] = "organization";
|
|
25
25
|
return PartyTypeType2;
|
|
26
|
-
}
|
|
27
|
-
var PartyOrigin = /* @__PURE__ */
|
|
26
|
+
}({});
|
|
27
|
+
var PartyOrigin = /* @__PURE__ */ function(PartyOrigin2) {
|
|
28
28
|
PartyOrigin2["INTERNAL"] = "INTERNAL";
|
|
29
29
|
PartyOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
30
30
|
return PartyOrigin2;
|
|
31
|
-
}
|
|
32
|
-
var IdentityOrigin = /* @__PURE__ */
|
|
31
|
+
}({});
|
|
32
|
+
var IdentityOrigin = /* @__PURE__ */ function(IdentityOrigin2) {
|
|
33
33
|
IdentityOrigin2["INTERNAL"] = "INTERNAL";
|
|
34
34
|
IdentityOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
35
35
|
return IdentityOrigin2;
|
|
36
|
-
}
|
|
36
|
+
}({});
|
|
37
37
|
|
|
38
38
|
// src/types/digitalCredential/enums.ts
|
|
39
|
-
var DocumentType = /* @__PURE__ */
|
|
39
|
+
var DocumentType = /* @__PURE__ */ function(DocumentType2) {
|
|
40
40
|
DocumentType2["VC"] = "VC";
|
|
41
41
|
DocumentType2["VP"] = "VP";
|
|
42
42
|
DocumentType2["P"] = "P";
|
|
43
43
|
DocumentType2["C"] = "C";
|
|
44
44
|
return DocumentType2;
|
|
45
|
-
}
|
|
46
|
-
var RegulationType = /* @__PURE__ */
|
|
45
|
+
}({});
|
|
46
|
+
var RegulationType = /* @__PURE__ */ function(RegulationType2) {
|
|
47
47
|
RegulationType2["PID"] = "PID";
|
|
48
48
|
RegulationType2["QEAA"] = "QEAA";
|
|
49
49
|
RegulationType2["EAA"] = "EAA";
|
|
50
50
|
RegulationType2["NON_REGULATED"] = "NON_REGULATED";
|
|
51
51
|
return RegulationType2;
|
|
52
|
-
}
|
|
53
|
-
var CredentialDocumentFormat = /* @__PURE__ */
|
|
52
|
+
}({});
|
|
53
|
+
var CredentialDocumentFormat = /* @__PURE__ */ function(CredentialDocumentFormat2) {
|
|
54
54
|
CredentialDocumentFormat2["JSON_LD"] = "JSON_LD";
|
|
55
55
|
CredentialDocumentFormat2["JWT"] = "JWT";
|
|
56
56
|
CredentialDocumentFormat2["SD_JWT"] = "SD_JWT";
|
|
57
57
|
CredentialDocumentFormat2["MSO_MDOC"] = "MSO_MDOC";
|
|
58
58
|
return CredentialDocumentFormat2;
|
|
59
|
-
}
|
|
59
|
+
}({});
|
|
60
60
|
(function(CredentialDocumentFormat2) {
|
|
61
61
|
function fromSpecValue(credentialFormat) {
|
|
62
62
|
const format = credentialFormat.toLowerCase();
|
|
@@ -77,7 +77,7 @@ var CredentialDocumentFormat = /* @__PURE__ */ (function(CredentialDocumentForma
|
|
|
77
77
|
function toSpecValue(documentFormat, documentType) {
|
|
78
78
|
switch (documentFormat) {
|
|
79
79
|
case "SD_JWT":
|
|
80
|
-
return "
|
|
80
|
+
return "dc+sd-jwt";
|
|
81
81
|
case "MSO_MDOC":
|
|
82
82
|
return "mso_mdoc";
|
|
83
83
|
case "JSON_LD":
|
|
@@ -89,26 +89,26 @@ var CredentialDocumentFormat = /* @__PURE__ */ (function(CredentialDocumentForma
|
|
|
89
89
|
__name(toSpecValue, "toSpecValue");
|
|
90
90
|
CredentialDocumentFormat2.toSpecValue = toSpecValue;
|
|
91
91
|
})(CredentialDocumentFormat || (CredentialDocumentFormat = {}));
|
|
92
|
-
var CredentialCorrelationType = /* @__PURE__ */
|
|
92
|
+
var CredentialCorrelationType = /* @__PURE__ */ function(CredentialCorrelationType2) {
|
|
93
93
|
CredentialCorrelationType2["DID"] = "DID";
|
|
94
94
|
CredentialCorrelationType2["X509_SAN"] = "X509_SAN";
|
|
95
95
|
CredentialCorrelationType2["KID"] = "KID";
|
|
96
96
|
CredentialCorrelationType2["URL"] = "URL";
|
|
97
97
|
return CredentialCorrelationType2;
|
|
98
|
-
}
|
|
99
|
-
var CredentialRole = /* @__PURE__ */
|
|
98
|
+
}({});
|
|
99
|
+
var CredentialRole = /* @__PURE__ */ function(CredentialRole2) {
|
|
100
100
|
CredentialRole2["ISSUER"] = "ISSUER";
|
|
101
101
|
CredentialRole2["VERIFIER"] = "VERIFIER";
|
|
102
102
|
CredentialRole2["HOLDER"] = "HOLDER";
|
|
103
103
|
CredentialRole2["FEDERATION_TRUST_ANCHOR"] = "FEDERATION_TRUST_ANCHOR";
|
|
104
104
|
return CredentialRole2;
|
|
105
|
-
}
|
|
106
|
-
var CredentialStateType = /* @__PURE__ */
|
|
105
|
+
}({});
|
|
106
|
+
var CredentialStateType = /* @__PURE__ */ function(CredentialStateType2) {
|
|
107
107
|
CredentialStateType2["REVOKED"] = "REVOKED";
|
|
108
108
|
CredentialStateType2["VERIFIED"] = "VERIFIED";
|
|
109
109
|
CredentialStateType2["EXPIRED"] = "EXPIRED";
|
|
110
110
|
return CredentialStateType2;
|
|
111
|
-
}
|
|
111
|
+
}({});
|
|
112
112
|
|
|
113
113
|
// src/entities/contact/IdentityEntity.ts
|
|
114
114
|
import { BaseEntity as BaseEntity8, CreateDateColumn as CreateDateColumn7, Entity as Entity10, PrimaryGeneratedColumn as PrimaryGeneratedColumn10, UpdateDateColumn as UpdateDateColumn7, OneToOne as OneToOne4, JoinColumn as JoinColumn5, ManyToOne as ManyToOne7, Column as Column9, OneToMany as OneToMany4, BeforeInsert as BeforeInsert10, BeforeUpdate as BeforeUpdate10 } from "typeorm";
|
|
@@ -7734,7 +7734,7 @@ var UpdateStatusList1737110469001 = class {
|
|
|
7734
7734
|
await queryRunner.query(`ALTER TYPE "StatusList_type_enum" ADD VALUE 'OAuthStatusList'`);
|
|
7735
7735
|
await queryRunner.query(`ALTER TABLE "StatusList" ALTER COLUMN "indexingDirection" DROP NOT NULL`);
|
|
7736
7736
|
await queryRunner.query(`ALTER TABLE "StatusList" ALTER COLUMN "statusPurpose" DROP NOT NULL`);
|
|
7737
|
-
await queryRunner.query(`ALTER TABLE "StatusList" ADD "bitsPerStatus" integer`);
|
|
7737
|
+
await queryRunner.query(`ALTER TABLE "StatusList" ADD "bitsPerStatus" integer DEFAULT 1`);
|
|
7738
7738
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD "expiresAt" timestamp with time zone`);
|
|
7739
7739
|
}
|
|
7740
7740
|
async down(queryRunner) {
|
|
@@ -8910,7 +8910,9 @@ var CreateBitstringStatusListPG1741895823000 = class {
|
|
|
8910
8910
|
}
|
|
8911
8911
|
name = "CreateBitstringStatusList1741895823000";
|
|
8912
8912
|
async up(queryRunner) {
|
|
8913
|
-
await queryRunner.
|
|
8913
|
+
await queryRunner.startTransaction();
|
|
8914
|
+
await queryRunner.query(`ALTER TYPE "StatusList_type_enum" ADD VALUE 'BitstringStatusList'`);
|
|
8915
|
+
await queryRunner.commitTransaction();
|
|
8914
8916
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "ttl" integer`);
|
|
8915
8917
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validFrom" TIMESTAMP`);
|
|
8916
8918
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validUntil" TIMESTAMP`);
|
|
@@ -8918,7 +8920,6 @@ var CreateBitstringStatusListPG1741895823000 = class {
|
|
|
8918
8920
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList'))`);
|
|
8919
8921
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "type" character varying NOT NULL DEFAULT 'StatusListEntryEntity'`);
|
|
8920
8922
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "statusPurpose" character varying`);
|
|
8921
|
-
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "bitsPerStatus" integer DEFAULT 1`);
|
|
8922
8923
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "statusMessage" text`);
|
|
8923
8924
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "statusReference" text`);
|
|
8924
8925
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD CONSTRAINT "CHK_StatusListEntry_type" CHECK ("type" IN ('StatusListEntryEntity', 'bitstring'))`);
|