@sphereon/ssi-sdk.data-store 0.34.1-feature.merge.crypto.extensions.modules.39 → 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.cjs
CHANGED
|
@@ -174,55 +174,55 @@ var import_typeorm12 = __toESM(require("typeorm"), 1);
|
|
|
174
174
|
var import_typeorm11 = __toESM(require("typeorm"), 1);
|
|
175
175
|
|
|
176
176
|
// src/types/contact/contact.ts
|
|
177
|
-
var ConnectionType = /* @__PURE__ */
|
|
177
|
+
var ConnectionType = /* @__PURE__ */ function(ConnectionType2) {
|
|
178
178
|
ConnectionType2["OPENID_CONNECT"] = "OIDC";
|
|
179
179
|
ConnectionType2["SIOPv2"] = "SIOPv2";
|
|
180
180
|
ConnectionType2["SIOPv2_OpenID4VP"] = "SIOPv2+OpenID4VP";
|
|
181
181
|
return ConnectionType2;
|
|
182
|
-
}
|
|
183
|
-
var CorrelationIdentifierType = /* @__PURE__ */
|
|
182
|
+
}({});
|
|
183
|
+
var CorrelationIdentifierType = /* @__PURE__ */ function(CorrelationIdentifierType2) {
|
|
184
184
|
CorrelationIdentifierType2["DID"] = "did";
|
|
185
185
|
CorrelationIdentifierType2["URL"] = "url";
|
|
186
186
|
return CorrelationIdentifierType2;
|
|
187
|
-
}
|
|
188
|
-
var PartyTypeType = /* @__PURE__ */
|
|
187
|
+
}({});
|
|
188
|
+
var PartyTypeType = /* @__PURE__ */ function(PartyTypeType2) {
|
|
189
189
|
PartyTypeType2["NATURAL_PERSON"] = "naturalPerson";
|
|
190
190
|
PartyTypeType2["ORGANIZATION"] = "organization";
|
|
191
191
|
return PartyTypeType2;
|
|
192
|
-
}
|
|
193
|
-
var PartyOrigin = /* @__PURE__ */
|
|
192
|
+
}({});
|
|
193
|
+
var PartyOrigin = /* @__PURE__ */ function(PartyOrigin2) {
|
|
194
194
|
PartyOrigin2["INTERNAL"] = "INTERNAL";
|
|
195
195
|
PartyOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
196
196
|
return PartyOrigin2;
|
|
197
|
-
}
|
|
198
|
-
var IdentityOrigin = /* @__PURE__ */
|
|
197
|
+
}({});
|
|
198
|
+
var IdentityOrigin = /* @__PURE__ */ function(IdentityOrigin2) {
|
|
199
199
|
IdentityOrigin2["INTERNAL"] = "INTERNAL";
|
|
200
200
|
IdentityOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
201
201
|
return IdentityOrigin2;
|
|
202
|
-
}
|
|
202
|
+
}({});
|
|
203
203
|
|
|
204
204
|
// src/types/digitalCredential/enums.ts
|
|
205
|
-
var DocumentType = /* @__PURE__ */
|
|
205
|
+
var DocumentType = /* @__PURE__ */ function(DocumentType2) {
|
|
206
206
|
DocumentType2["VC"] = "VC";
|
|
207
207
|
DocumentType2["VP"] = "VP";
|
|
208
208
|
DocumentType2["P"] = "P";
|
|
209
209
|
DocumentType2["C"] = "C";
|
|
210
210
|
return DocumentType2;
|
|
211
|
-
}
|
|
212
|
-
var RegulationType = /* @__PURE__ */
|
|
211
|
+
}({});
|
|
212
|
+
var RegulationType = /* @__PURE__ */ function(RegulationType2) {
|
|
213
213
|
RegulationType2["PID"] = "PID";
|
|
214
214
|
RegulationType2["QEAA"] = "QEAA";
|
|
215
215
|
RegulationType2["EAA"] = "EAA";
|
|
216
216
|
RegulationType2["NON_REGULATED"] = "NON_REGULATED";
|
|
217
217
|
return RegulationType2;
|
|
218
|
-
}
|
|
219
|
-
var CredentialDocumentFormat = /* @__PURE__ */
|
|
218
|
+
}({});
|
|
219
|
+
var CredentialDocumentFormat = /* @__PURE__ */ function(CredentialDocumentFormat2) {
|
|
220
220
|
CredentialDocumentFormat2["JSON_LD"] = "JSON_LD";
|
|
221
221
|
CredentialDocumentFormat2["JWT"] = "JWT";
|
|
222
222
|
CredentialDocumentFormat2["SD_JWT"] = "SD_JWT";
|
|
223
223
|
CredentialDocumentFormat2["MSO_MDOC"] = "MSO_MDOC";
|
|
224
224
|
return CredentialDocumentFormat2;
|
|
225
|
-
}
|
|
225
|
+
}({});
|
|
226
226
|
(function(CredentialDocumentFormat2) {
|
|
227
227
|
function fromSpecValue(credentialFormat) {
|
|
228
228
|
const format = credentialFormat.toLowerCase();
|
|
@@ -243,7 +243,7 @@ var CredentialDocumentFormat = /* @__PURE__ */ (function(CredentialDocumentForma
|
|
|
243
243
|
function toSpecValue(documentFormat, documentType) {
|
|
244
244
|
switch (documentFormat) {
|
|
245
245
|
case "SD_JWT":
|
|
246
|
-
return "
|
|
246
|
+
return "dc+sd-jwt";
|
|
247
247
|
case "MSO_MDOC":
|
|
248
248
|
return "mso_mdoc";
|
|
249
249
|
case "JSON_LD":
|
|
@@ -255,26 +255,26 @@ var CredentialDocumentFormat = /* @__PURE__ */ (function(CredentialDocumentForma
|
|
|
255
255
|
__name(toSpecValue, "toSpecValue");
|
|
256
256
|
CredentialDocumentFormat2.toSpecValue = toSpecValue;
|
|
257
257
|
})(CredentialDocumentFormat || (CredentialDocumentFormat = {}));
|
|
258
|
-
var CredentialCorrelationType = /* @__PURE__ */
|
|
258
|
+
var CredentialCorrelationType = /* @__PURE__ */ function(CredentialCorrelationType2) {
|
|
259
259
|
CredentialCorrelationType2["DID"] = "DID";
|
|
260
260
|
CredentialCorrelationType2["X509_SAN"] = "X509_SAN";
|
|
261
261
|
CredentialCorrelationType2["KID"] = "KID";
|
|
262
262
|
CredentialCorrelationType2["URL"] = "URL";
|
|
263
263
|
return CredentialCorrelationType2;
|
|
264
|
-
}
|
|
265
|
-
var CredentialRole = /* @__PURE__ */
|
|
264
|
+
}({});
|
|
265
|
+
var CredentialRole = /* @__PURE__ */ function(CredentialRole2) {
|
|
266
266
|
CredentialRole2["ISSUER"] = "ISSUER";
|
|
267
267
|
CredentialRole2["VERIFIER"] = "VERIFIER";
|
|
268
268
|
CredentialRole2["HOLDER"] = "HOLDER";
|
|
269
269
|
CredentialRole2["FEDERATION_TRUST_ANCHOR"] = "FEDERATION_TRUST_ANCHOR";
|
|
270
270
|
return CredentialRole2;
|
|
271
|
-
}
|
|
272
|
-
var CredentialStateType = /* @__PURE__ */
|
|
271
|
+
}({});
|
|
272
|
+
var CredentialStateType = /* @__PURE__ */ function(CredentialStateType2) {
|
|
273
273
|
CredentialStateType2["REVOKED"] = "REVOKED";
|
|
274
274
|
CredentialStateType2["VERIFIED"] = "VERIFIED";
|
|
275
275
|
CredentialStateType2["EXPIRED"] = "EXPIRED";
|
|
276
276
|
return CredentialStateType2;
|
|
277
|
-
}
|
|
277
|
+
}({});
|
|
278
278
|
|
|
279
279
|
// src/entities/contact/IdentityEntity.ts
|
|
280
280
|
var import_typeorm10 = require("typeorm");
|
|
@@ -7900,7 +7900,7 @@ var UpdateStatusList1737110469001 = class {
|
|
|
7900
7900
|
await queryRunner.query(`ALTER TYPE "StatusList_type_enum" ADD VALUE 'OAuthStatusList'`);
|
|
7901
7901
|
await queryRunner.query(`ALTER TABLE "StatusList" ALTER COLUMN "indexingDirection" DROP NOT NULL`);
|
|
7902
7902
|
await queryRunner.query(`ALTER TABLE "StatusList" ALTER COLUMN "statusPurpose" DROP NOT NULL`);
|
|
7903
|
-
await queryRunner.query(`ALTER TABLE "StatusList" ADD "bitsPerStatus" integer`);
|
|
7903
|
+
await queryRunner.query(`ALTER TABLE "StatusList" ADD "bitsPerStatus" integer DEFAULT 1`);
|
|
7904
7904
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD "expiresAt" timestamp with time zone`);
|
|
7905
7905
|
}
|
|
7906
7906
|
async down(queryRunner) {
|
|
@@ -9076,7 +9076,9 @@ var CreateBitstringStatusListPG1741895823000 = class {
|
|
|
9076
9076
|
}
|
|
9077
9077
|
name = "CreateBitstringStatusList1741895823000";
|
|
9078
9078
|
async up(queryRunner) {
|
|
9079
|
-
await queryRunner.
|
|
9079
|
+
await queryRunner.startTransaction();
|
|
9080
|
+
await queryRunner.query(`ALTER TYPE "StatusList_type_enum" ADD VALUE 'BitstringStatusList'`);
|
|
9081
|
+
await queryRunner.commitTransaction();
|
|
9080
9082
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "ttl" integer`);
|
|
9081
9083
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validFrom" TIMESTAMP`);
|
|
9082
9084
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validUntil" TIMESTAMP`);
|
|
@@ -9084,7 +9086,6 @@ var CreateBitstringStatusListPG1741895823000 = class {
|
|
|
9084
9086
|
await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList'))`);
|
|
9085
9087
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "type" character varying NOT NULL DEFAULT 'StatusListEntryEntity'`);
|
|
9086
9088
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "statusPurpose" character varying`);
|
|
9087
|
-
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "bitsPerStatus" integer DEFAULT 1`);
|
|
9088
9089
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "statusMessage" text`);
|
|
9089
9090
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD COLUMN "statusReference" text`);
|
|
9090
9091
|
await queryRunner.query(`ALTER TABLE "StatusListEntry" ADD CONSTRAINT "CHK_StatusListEntry_type" CHECK ("type" IN ('StatusListEntryEntity', 'bitstring'))`);
|