@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.26.RP.58 → 0.34.1-feature.SSISDK.45.189
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 +1616 -1477
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +187 -194
- package/dist/index.d.ts +187 -194
- package/dist/index.js +1582 -1443
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/__tests__/contact.entities.test.ts +2 -2
- package/src/__tests__/contact.store.test.ts +1 -1
- package/src/__tests__/digitalCredential.entities.test.ts +2 -1
- package/src/__tests__/digitalCredential.store.test.ts +5 -5
- package/src/__tests__/pd-manager.entities.test.ts +27 -98
- package/src/__tests__/pd-manager.store.test.ts +151 -101
- package/src/digitalCredential/DigitalCredentialStore.ts +9 -9
- package/src/entities/contact/IdentityEntity.ts +2 -1
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +2 -1
- package/src/entities/presentationDefinition/{PresentationDefinitionItemEntity.ts → DcqlQueryItemEntity.ts} +8 -12
- package/src/index.ts +3 -3
- package/src/migrations/generic/12-CreateBitstringStatusList.ts +32 -2
- package/src/migrations/generic/13-CreateDcqlQueryItem.ts +67 -0
- package/src/migrations/generic/index.ts +10 -5
- package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +1 -1
- package/src/migrations/postgres/1726588800000-CreateDcqlQueryItem.ts +25 -0
- package/src/migrations/postgres/1737110469001-UpdateStatusList.ts +1 -1
- package/src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts +15 -2
- package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +1 -1
- package/src/migrations/sqlite/1726617600000-CreateDcqlQueryItem.ts +24 -0
- package/src/presentationDefinition/AbstractPDStore.ts +5 -5
- package/src/presentationDefinition/PDStore.ts +40 -40
- package/src/types/contact/contact.ts +1 -1
- package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +2 -1
- package/src/types/digitalCredential/enums.ts +0 -7
- package/src/types/digitalCredential/types.ts +2 -1
- package/src/types/presentationDefinition/IAbstractPDStore.ts +5 -5
- package/src/types/presentationDefinition/presentationDefinition.ts +8 -9
- package/src/utils/presentationDefinition/MappingUtils.ts +31 -22
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import typeorm, { BaseEntity as BaseEntity$8,
|
|
1
|
+
import typeorm, { BaseEntity as BaseEntity$8, FindOptionsWhere, FindOptionsOrder, DataSource, Repository, MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
import { ManagedIdentifierOptsOrResult } from '@sphereon/ssi-sdk-ext.identifier-resolution';
|
|
3
3
|
import { IIdentifier } from '@veramo/core';
|
|
4
|
-
import {
|
|
4
|
+
import { CredentialRole, StatusListType, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, RequireOneOf, ICredentialStatus, HasherSync, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
|
|
5
5
|
import { AuditLoggingEvent, ActivityLoggingEvent, PartialAuditLoggingEvent, PartialActivityLoggingEvent, PartyCorrelationType, CredentialType } from '@sphereon/ssi-sdk.core';
|
|
6
|
-
import {
|
|
6
|
+
import { DcqlQuery } from 'dcql';
|
|
7
7
|
|
|
8
8
|
interface ILocaleBranding {
|
|
9
9
|
id: string;
|
|
@@ -195,159 +195,6 @@ interface IGetIssuerLocaleBrandingArgs {
|
|
|
195
195
|
filter?: FindIssuerLocaleBrandingArgs;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
declare enum DocumentType {
|
|
199
|
-
VC = "VC",
|
|
200
|
-
VP = "VP",
|
|
201
|
-
P = "P",
|
|
202
|
-
C = "C"
|
|
203
|
-
}
|
|
204
|
-
declare enum RegulationType {
|
|
205
|
-
PID = "PID",
|
|
206
|
-
QEAA = "QEAA",
|
|
207
|
-
EAA = "EAA",
|
|
208
|
-
NON_REGULATED = "NON_REGULATED"
|
|
209
|
-
}
|
|
210
|
-
declare enum CredentialDocumentFormat {
|
|
211
|
-
JSON_LD = "JSON_LD",
|
|
212
|
-
JWT = "JWT",
|
|
213
|
-
SD_JWT = "SD_JWT",
|
|
214
|
-
MSO_MDOC = "MSO_MDOC"
|
|
215
|
-
}
|
|
216
|
-
declare namespace CredentialDocumentFormat {
|
|
217
|
-
function fromSpecValue(credentialFormat: string): CredentialDocumentFormat;
|
|
218
|
-
function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "dc+sd-jwt" | "mso_mdoc" | "ldp_vc" | "ldp_vp" | "jwt_vc_json" | "jwt_vp_json";
|
|
219
|
-
}
|
|
220
|
-
declare enum CredentialCorrelationType {
|
|
221
|
-
DID = "DID",
|
|
222
|
-
X509_SAN = "X509_SAN",
|
|
223
|
-
KID = "KID",
|
|
224
|
-
URL = "URL"
|
|
225
|
-
}
|
|
226
|
-
declare enum CredentialRole {
|
|
227
|
-
ISSUER = "ISSUER",
|
|
228
|
-
VERIFIER = "VERIFIER",
|
|
229
|
-
HOLDER = "HOLDER",
|
|
230
|
-
FEDERATION_TRUST_ANCHOR = "FEDERATION_TRUST_ANCHOR"
|
|
231
|
-
}
|
|
232
|
-
declare enum CredentialStateType {
|
|
233
|
-
REVOKED = "REVOKED",
|
|
234
|
-
VERIFIED = "VERIFIED",
|
|
235
|
-
EXPIRED = "EXPIRED"
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* DigitalCredential
|
|
240
|
-
*
|
|
241
|
-
* @public
|
|
242
|
-
*/
|
|
243
|
-
type DigitalCredential = {
|
|
244
|
-
id: string;
|
|
245
|
-
parentId?: string;
|
|
246
|
-
documentType: DocumentType;
|
|
247
|
-
documentFormat: CredentialDocumentFormat;
|
|
248
|
-
credentialRole: CredentialRole;
|
|
249
|
-
regulationType: RegulationType;
|
|
250
|
-
rawDocument: string;
|
|
251
|
-
uniformDocument: string;
|
|
252
|
-
credentialId?: string;
|
|
253
|
-
hash: string;
|
|
254
|
-
kmsKeyRef?: string;
|
|
255
|
-
identifierMethod?: string;
|
|
256
|
-
issuerCorrelationType: CredentialCorrelationType;
|
|
257
|
-
subjectCorrelationType?: CredentialCorrelationType;
|
|
258
|
-
rpCorrelationType?: CredentialCorrelationType;
|
|
259
|
-
isIssuerSigned?: boolean;
|
|
260
|
-
issuerCorrelationId: string;
|
|
261
|
-
subjectCorrelationId?: string;
|
|
262
|
-
rpCorrelationId?: string;
|
|
263
|
-
verifiedState?: CredentialStateType;
|
|
264
|
-
tenantId?: string;
|
|
265
|
-
createdAt: Date;
|
|
266
|
-
presentedAt?: Date;
|
|
267
|
-
lastUpdatedAt: Date;
|
|
268
|
-
validUntil?: Date;
|
|
269
|
-
validFrom?: Date;
|
|
270
|
-
verifiedAt?: Date;
|
|
271
|
-
revokedAt?: Date;
|
|
272
|
-
};
|
|
273
|
-
type NonPersistedDigitalCredential = Omit<DigitalCredential, 'id' | 'regulationType'> & {
|
|
274
|
-
regulationType?: RegulationType;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
declare class DigitalCredentialEntity extends BaseEntity$8 implements DigitalCredential {
|
|
278
|
-
id: string;
|
|
279
|
-
parentId?: string;
|
|
280
|
-
documentType: DocumentType;
|
|
281
|
-
regulationType: RegulationType;
|
|
282
|
-
documentFormat: CredentialDocumentFormat;
|
|
283
|
-
credentialRole: CredentialRole;
|
|
284
|
-
rawDocument: string;
|
|
285
|
-
uniformDocument: string;
|
|
286
|
-
credentialId: string;
|
|
287
|
-
hash: string;
|
|
288
|
-
kmsKeyRef: string;
|
|
289
|
-
identifierMethod: string;
|
|
290
|
-
issuerCorrelationType: CredentialCorrelationType;
|
|
291
|
-
subjectCorrelationType?: CredentialCorrelationType;
|
|
292
|
-
rpCorrelationType?: CredentialCorrelationType;
|
|
293
|
-
isIssuerSigned?: boolean;
|
|
294
|
-
issuerCorrelationId: string;
|
|
295
|
-
subjectCorrelationId?: string;
|
|
296
|
-
rpCorrelationId?: string;
|
|
297
|
-
verifiedState?: CredentialStateType;
|
|
298
|
-
tenantId?: string;
|
|
299
|
-
createdAt: Date;
|
|
300
|
-
presentedAt?: Date;
|
|
301
|
-
lastUpdatedAt: Date;
|
|
302
|
-
validUntil?: Date;
|
|
303
|
-
validFrom?: Date;
|
|
304
|
-
verifiedAt?: Date;
|
|
305
|
-
revokedAt?: Date;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
type GetCredentialArgs = {
|
|
309
|
-
id: string;
|
|
310
|
-
} | {
|
|
311
|
-
hash: string;
|
|
312
|
-
};
|
|
313
|
-
type FindDigitalCredentialArgs = Array<Partial<DigitalCredential>>;
|
|
314
|
-
type GetCredentialsArgs = {
|
|
315
|
-
filter?: FindDigitalCredentialArgs;
|
|
316
|
-
offset?: number;
|
|
317
|
-
limit?: number;
|
|
318
|
-
order?: string | FindOptionsOrder<DigitalCredentialEntity>;
|
|
319
|
-
};
|
|
320
|
-
type GetCredentialsResponse = {
|
|
321
|
-
data: Array<DigitalCredential>;
|
|
322
|
-
total: number;
|
|
323
|
-
};
|
|
324
|
-
type AddCredentialArgs = {
|
|
325
|
-
rawDocument: string;
|
|
326
|
-
kmsKeyRef?: string;
|
|
327
|
-
identifierMethod?: string;
|
|
328
|
-
regulationType?: RegulationType;
|
|
329
|
-
parentId?: string;
|
|
330
|
-
issuerCorrelationType: CredentialCorrelationType;
|
|
331
|
-
subjectCorrelationType?: CredentialCorrelationType;
|
|
332
|
-
issuerCorrelationId: string;
|
|
333
|
-
subjectCorrelationId?: string;
|
|
334
|
-
credentialRole: CredentialRole;
|
|
335
|
-
tenantId?: string;
|
|
336
|
-
state?: CredentialStateType;
|
|
337
|
-
verifiedAt?: Date;
|
|
338
|
-
revokedAt?: Date;
|
|
339
|
-
opts?: {
|
|
340
|
-
maxTimeSkewInMS?: number;
|
|
341
|
-
hasher?: HasherSync;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
type UpdateCredentialStateArgs = GetCredentialArgs & {
|
|
345
|
-
verifiedState: CredentialStateType;
|
|
346
|
-
verifiedAt?: Date;
|
|
347
|
-
revokedAt?: Date;
|
|
348
|
-
};
|
|
349
|
-
type RemoveCredentialArgs = GetCredentialArgs;
|
|
350
|
-
|
|
351
198
|
type MetadataTypes = string | number | Date | boolean | undefined;
|
|
352
199
|
interface IMetadataEntity {
|
|
353
200
|
label: string;
|
|
@@ -708,33 +555,33 @@ type RemovePhysicalAddressArgs = {
|
|
|
708
555
|
physicalAddressId: string;
|
|
709
556
|
};
|
|
710
557
|
|
|
711
|
-
type
|
|
558
|
+
type DcqlQueryItem = {
|
|
712
559
|
id: string;
|
|
713
|
-
|
|
560
|
+
queryId: string;
|
|
714
561
|
tenantId?: string;
|
|
715
562
|
version: string;
|
|
716
563
|
name?: string;
|
|
717
564
|
purpose?: string;
|
|
718
|
-
|
|
719
|
-
dcqlPayload?: DcqlQueryREST;
|
|
565
|
+
query: DcqlQuery;
|
|
720
566
|
createdAt: Date;
|
|
721
567
|
lastUpdatedAt: Date;
|
|
722
568
|
};
|
|
723
|
-
type
|
|
724
|
-
type
|
|
725
|
-
type
|
|
569
|
+
type ImportDcqlQueryItem = Omit<DcqlQueryItem, 'id' | 'tenantId' | 'version' | 'createdAt' | 'lastUpdatedAt'>;
|
|
570
|
+
type NonPersistedDcqlQueryItem = Omit<DcqlQueryItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
|
|
571
|
+
type PartialDcqlQueryItem = Partial<DcqlQueryItem>;
|
|
572
|
+
type DcqlQueryItemFilter = Partial<Omit<DcqlQueryItem, 'query'>>;
|
|
726
573
|
|
|
727
|
-
type
|
|
574
|
+
type FindDcqlQueryArgs = Array<DcqlQueryItemFilter>;
|
|
728
575
|
type GetDefinitionArgs = {
|
|
729
576
|
itemId: string;
|
|
730
577
|
};
|
|
731
578
|
type HasDefinitionArgs = GetDefinitionArgs;
|
|
732
579
|
type GetDefinitionsArgs = {
|
|
733
|
-
filter?:
|
|
580
|
+
filter?: FindDcqlQueryArgs;
|
|
734
581
|
};
|
|
735
582
|
type HasDefinitionsArgs = GetDefinitionsArgs;
|
|
736
|
-
type AddDefinitionArgs =
|
|
737
|
-
type UpdateDefinitionArgs =
|
|
583
|
+
type AddDefinitionArgs = NonPersistedDcqlQueryItem;
|
|
584
|
+
type UpdateDefinitionArgs = DcqlQueryItem;
|
|
738
585
|
type DeleteDefinitionArgs = {
|
|
739
586
|
itemId: string;
|
|
740
587
|
};
|
|
@@ -1004,6 +851,153 @@ interface StoreMachineStateInfo {
|
|
|
1004
851
|
tenantId?: string;
|
|
1005
852
|
}
|
|
1006
853
|
|
|
854
|
+
declare enum DocumentType {
|
|
855
|
+
VC = "VC",
|
|
856
|
+
VP = "VP",
|
|
857
|
+
P = "P",
|
|
858
|
+
C = "C"
|
|
859
|
+
}
|
|
860
|
+
declare enum RegulationType {
|
|
861
|
+
PID = "PID",
|
|
862
|
+
QEAA = "QEAA",
|
|
863
|
+
EAA = "EAA",
|
|
864
|
+
NON_REGULATED = "NON_REGULATED"
|
|
865
|
+
}
|
|
866
|
+
declare enum CredentialDocumentFormat {
|
|
867
|
+
JSON_LD = "JSON_LD",
|
|
868
|
+
JWT = "JWT",
|
|
869
|
+
SD_JWT = "SD_JWT",
|
|
870
|
+
MSO_MDOC = "MSO_MDOC"
|
|
871
|
+
}
|
|
872
|
+
declare namespace CredentialDocumentFormat {
|
|
873
|
+
function fromSpecValue(credentialFormat: string): CredentialDocumentFormat;
|
|
874
|
+
function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "mso_mdoc" | "dc+sd-jwt" | "jwt_vc_json" | "ldp_vc" | "ldp_vp" | "jwt_vp_json";
|
|
875
|
+
}
|
|
876
|
+
declare enum CredentialCorrelationType {
|
|
877
|
+
DID = "DID",
|
|
878
|
+
X509_SAN = "X509_SAN",
|
|
879
|
+
KID = "KID",
|
|
880
|
+
URL = "URL"
|
|
881
|
+
}
|
|
882
|
+
declare enum CredentialStateType {
|
|
883
|
+
REVOKED = "REVOKED",
|
|
884
|
+
VERIFIED = "VERIFIED",
|
|
885
|
+
EXPIRED = "EXPIRED"
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* DigitalCredential
|
|
890
|
+
*
|
|
891
|
+
* @public
|
|
892
|
+
*/
|
|
893
|
+
type DigitalCredential = {
|
|
894
|
+
id: string;
|
|
895
|
+
parentId?: string;
|
|
896
|
+
documentType: DocumentType;
|
|
897
|
+
documentFormat: CredentialDocumentFormat;
|
|
898
|
+
credentialRole: CredentialRole;
|
|
899
|
+
regulationType: RegulationType;
|
|
900
|
+
rawDocument: string;
|
|
901
|
+
uniformDocument: string;
|
|
902
|
+
credentialId?: string;
|
|
903
|
+
hash: string;
|
|
904
|
+
kmsKeyRef?: string;
|
|
905
|
+
identifierMethod?: string;
|
|
906
|
+
issuerCorrelationType: CredentialCorrelationType;
|
|
907
|
+
subjectCorrelationType?: CredentialCorrelationType;
|
|
908
|
+
rpCorrelationType?: CredentialCorrelationType;
|
|
909
|
+
isIssuerSigned?: boolean;
|
|
910
|
+
issuerCorrelationId: string;
|
|
911
|
+
subjectCorrelationId?: string;
|
|
912
|
+
rpCorrelationId?: string;
|
|
913
|
+
verifiedState?: CredentialStateType;
|
|
914
|
+
tenantId?: string;
|
|
915
|
+
createdAt: Date;
|
|
916
|
+
presentedAt?: Date;
|
|
917
|
+
lastUpdatedAt: Date;
|
|
918
|
+
validUntil?: Date;
|
|
919
|
+
validFrom?: Date;
|
|
920
|
+
verifiedAt?: Date;
|
|
921
|
+
revokedAt?: Date;
|
|
922
|
+
};
|
|
923
|
+
type NonPersistedDigitalCredential = Omit<DigitalCredential, 'id' | 'regulationType'> & {
|
|
924
|
+
regulationType?: RegulationType;
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
declare class DigitalCredentialEntity extends BaseEntity$8 implements DigitalCredential {
|
|
928
|
+
id: string;
|
|
929
|
+
parentId?: string;
|
|
930
|
+
documentType: DocumentType;
|
|
931
|
+
regulationType: RegulationType;
|
|
932
|
+
documentFormat: CredentialDocumentFormat;
|
|
933
|
+
credentialRole: CredentialRole;
|
|
934
|
+
rawDocument: string;
|
|
935
|
+
uniformDocument: string;
|
|
936
|
+
credentialId: string;
|
|
937
|
+
hash: string;
|
|
938
|
+
kmsKeyRef: string;
|
|
939
|
+
identifierMethod: string;
|
|
940
|
+
issuerCorrelationType: CredentialCorrelationType;
|
|
941
|
+
subjectCorrelationType?: CredentialCorrelationType;
|
|
942
|
+
rpCorrelationType?: CredentialCorrelationType;
|
|
943
|
+
isIssuerSigned?: boolean;
|
|
944
|
+
issuerCorrelationId: string;
|
|
945
|
+
subjectCorrelationId?: string;
|
|
946
|
+
rpCorrelationId?: string;
|
|
947
|
+
verifiedState?: CredentialStateType;
|
|
948
|
+
tenantId?: string;
|
|
949
|
+
createdAt: Date;
|
|
950
|
+
presentedAt?: Date;
|
|
951
|
+
lastUpdatedAt: Date;
|
|
952
|
+
validUntil?: Date;
|
|
953
|
+
validFrom?: Date;
|
|
954
|
+
verifiedAt?: Date;
|
|
955
|
+
revokedAt?: Date;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
type GetCredentialArgs = {
|
|
959
|
+
id: string;
|
|
960
|
+
} | {
|
|
961
|
+
hash: string;
|
|
962
|
+
};
|
|
963
|
+
type FindDigitalCredentialArgs = Array<Partial<DigitalCredential>>;
|
|
964
|
+
type GetCredentialsArgs = {
|
|
965
|
+
filter?: FindDigitalCredentialArgs;
|
|
966
|
+
offset?: number;
|
|
967
|
+
limit?: number;
|
|
968
|
+
order?: string | FindOptionsOrder<DigitalCredentialEntity>;
|
|
969
|
+
};
|
|
970
|
+
type GetCredentialsResponse = {
|
|
971
|
+
data: Array<DigitalCredential>;
|
|
972
|
+
total: number;
|
|
973
|
+
};
|
|
974
|
+
type AddCredentialArgs = {
|
|
975
|
+
rawDocument: string;
|
|
976
|
+
kmsKeyRef?: string;
|
|
977
|
+
identifierMethod?: string;
|
|
978
|
+
regulationType?: RegulationType;
|
|
979
|
+
parentId?: string;
|
|
980
|
+
issuerCorrelationType: CredentialCorrelationType;
|
|
981
|
+
subjectCorrelationType?: CredentialCorrelationType;
|
|
982
|
+
issuerCorrelationId: string;
|
|
983
|
+
subjectCorrelationId?: string;
|
|
984
|
+
credentialRole: CredentialRole;
|
|
985
|
+
tenantId?: string;
|
|
986
|
+
state?: CredentialStateType;
|
|
987
|
+
verifiedAt?: Date;
|
|
988
|
+
revokedAt?: Date;
|
|
989
|
+
opts?: {
|
|
990
|
+
maxTimeSkewInMS?: number;
|
|
991
|
+
hasher?: HasherSync;
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
type UpdateCredentialStateArgs = GetCredentialArgs & {
|
|
995
|
+
verifiedState: CredentialStateType;
|
|
996
|
+
verifiedAt?: Date;
|
|
997
|
+
revokedAt?: Date;
|
|
998
|
+
};
|
|
999
|
+
type RemoveCredentialArgs = GetCredentialArgs;
|
|
1000
|
+
|
|
1007
1001
|
declare const BaseEntity$6: typeof typeorm.BaseEntity;
|
|
1008
1002
|
|
|
1009
1003
|
declare class CorrelationIdentifierEntity extends BaseEntity$6 {
|
|
@@ -1340,15 +1334,14 @@ declare class AuditEventEntity extends BaseEntity$8 {
|
|
|
1340
1334
|
lastUpdatedAt: Date;
|
|
1341
1335
|
}
|
|
1342
1336
|
|
|
1343
|
-
declare class
|
|
1337
|
+
declare class DcqlQueryItemEntity extends BaseEntity$8 {
|
|
1344
1338
|
id: string;
|
|
1345
|
-
|
|
1339
|
+
queryId: string;
|
|
1346
1340
|
version: string;
|
|
1347
1341
|
tenantId?: string;
|
|
1348
1342
|
purpose?: string;
|
|
1349
1343
|
name?: string;
|
|
1350
|
-
|
|
1351
|
-
dcqlPayload: string;
|
|
1344
|
+
query: string;
|
|
1352
1345
|
createdAt: Date;
|
|
1353
1346
|
lastUpdatedAt: Date;
|
|
1354
1347
|
updateUpdatedDate(): void;
|
|
@@ -1640,10 +1633,10 @@ declare class MachineStateStore extends IAbstractMachineStateStore {
|
|
|
1640
1633
|
declare abstract class AbstractPDStore {
|
|
1641
1634
|
abstract hasDefinition(args: GetDefinitionArgs): Promise<boolean>;
|
|
1642
1635
|
abstract hasDefinitions(args: GetDefinitionsArgs): Promise<boolean>;
|
|
1643
|
-
abstract getDefinition(args: GetDefinitionArgs): Promise<
|
|
1644
|
-
abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<
|
|
1645
|
-
abstract addDefinition(args: AddDefinitionArgs): Promise<
|
|
1646
|
-
abstract updateDefinition(args: UpdateDefinitionArgs): Promise<
|
|
1636
|
+
abstract getDefinition(args: GetDefinitionArgs): Promise<DcqlQueryItem>;
|
|
1637
|
+
abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<DcqlQueryItem>>;
|
|
1638
|
+
abstract addDefinition(args: AddDefinitionArgs): Promise<DcqlQueryItem>;
|
|
1639
|
+
abstract updateDefinition(args: UpdateDefinitionArgs): Promise<DcqlQueryItem>;
|
|
1647
1640
|
abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
|
|
1648
1641
|
abstract deleteDefinitions(args: DeleteDefinitionsArgs): Promise<number>;
|
|
1649
1642
|
}
|
|
@@ -1651,15 +1644,15 @@ declare abstract class AbstractPDStore {
|
|
|
1651
1644
|
declare class PDStore extends AbstractPDStore {
|
|
1652
1645
|
private readonly dbConnection;
|
|
1653
1646
|
constructor(dbConnection: OrPromise<DataSource>);
|
|
1654
|
-
getDefinition: (args: GetDefinitionArgs) => Promise<
|
|
1647
|
+
getDefinition: (args: GetDefinitionArgs) => Promise<DcqlQueryItem>;
|
|
1655
1648
|
hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
|
|
1656
1649
|
hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
|
|
1657
|
-
getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<
|
|
1658
|
-
addDefinition: (item:
|
|
1659
|
-
updateDefinition: (item:
|
|
1650
|
+
getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<DcqlQueryItem>>;
|
|
1651
|
+
addDefinition: (item: NonPersistedDcqlQueryItem) => Promise<DcqlQueryItem>;
|
|
1652
|
+
updateDefinition: (item: DcqlQueryItem) => Promise<DcqlQueryItem>;
|
|
1660
1653
|
deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
|
|
1661
1654
|
deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
|
|
1662
|
-
findIds: (pdRepository: Repository<
|
|
1655
|
+
findIds: (pdRepository: Repository<DcqlQueryItemEntity>, filter: Array<DcqlQueryItemFilter> | undefined) => Promise<Array<DcqlQueryItemEntity>>;
|
|
1663
1656
|
}
|
|
1664
1657
|
|
|
1665
1658
|
declare class CreateContacts1659463079429 implements MigrationInterface {
|
|
@@ -1668,37 +1661,37 @@ declare class CreateContacts1659463079429 implements MigrationInterface {
|
|
|
1668
1661
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1669
1662
|
}
|
|
1670
1663
|
|
|
1671
|
-
declare class
|
|
1664
|
+
declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
|
|
1672
1665
|
name: string;
|
|
1673
1666
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1674
1667
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1675
1668
|
}
|
|
1676
1669
|
|
|
1677
|
-
declare class
|
|
1670
|
+
declare class FixCredentialClaimsReferencesUuid1741895822987 implements MigrationInterface {
|
|
1678
1671
|
name: string;
|
|
1679
1672
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1680
1673
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1681
1674
|
}
|
|
1682
1675
|
|
|
1683
|
-
declare class
|
|
1676
|
+
declare class AddBitstringStatusListEnum1741895823000 implements MigrationInterface {
|
|
1684
1677
|
name: string;
|
|
1685
1678
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1686
1679
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1687
1680
|
}
|
|
1688
1681
|
|
|
1689
|
-
declare class
|
|
1682
|
+
declare class CreateAuditEvents1701635835330 implements MigrationInterface {
|
|
1690
1683
|
name: string;
|
|
1691
1684
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1692
1685
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1693
1686
|
}
|
|
1694
1687
|
|
|
1695
|
-
declare class
|
|
1688
|
+
declare class CreateDigitalCredential1708525189000 implements MigrationInterface {
|
|
1696
1689
|
name: string;
|
|
1697
1690
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1698
1691
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1699
1692
|
}
|
|
1700
1693
|
|
|
1701
|
-
declare class
|
|
1694
|
+
declare class CreateMachineStateStore1708098041262 implements MigrationInterface {
|
|
1702
1695
|
name: string;
|
|
1703
1696
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1704
1697
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
@@ -1712,8 +1705,8 @@ declare class CreatePresentationDefinitions1716533767523 implements MigrationInt
|
|
|
1712
1705
|
* @public
|
|
1713
1706
|
*/
|
|
1714
1707
|
declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
|
|
1715
|
-
declare const DataStoreIssuanceBrandingMigrations: (typeof
|
|
1716
|
-
declare const DataStoreStatusListMigrations: (typeof
|
|
1708
|
+
declare const DataStoreIssuanceBrandingMigrations: (typeof FixCredentialClaimsReferencesUuid1741895822987)[];
|
|
1709
|
+
declare const DataStoreStatusListMigrations: (typeof AddBitstringStatusListEnum1741895823000)[];
|
|
1717
1710
|
declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
|
|
1718
1711
|
declare const DataStoreDigitalCredentialMigrations: (typeof CreateDigitalCredential1708525189000)[];
|
|
1719
1712
|
declare const DataStoreMachineStateMigrations: (typeof CreateMachineStateStore1708098041262)[];
|
|
@@ -1798,18 +1791,18 @@ declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBr
|
|
|
1798
1791
|
declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
|
|
1799
1792
|
declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
|
|
1800
1793
|
|
|
1801
|
-
declare const
|
|
1802
|
-
declare const
|
|
1803
|
-
declare function isPresentationDefinitionEqual(base:
|
|
1794
|
+
declare const dcqlQueryItemFrom: (entity: DcqlQueryItemEntity) => DcqlQueryItem;
|
|
1795
|
+
declare const dcqlQueryEntityItemFrom: (item: NonPersistedDcqlQueryItem) => DcqlQueryItemEntity;
|
|
1796
|
+
declare function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean;
|
|
1804
1797
|
|
|
1805
1798
|
declare const DataStoreContactEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity)[];
|
|
1806
1799
|
declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
|
|
1807
1800
|
declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
|
|
1808
|
-
declare const DataStorePresentationDefinitionEntities: (typeof
|
|
1801
|
+
declare const DataStorePresentationDefinitionEntities: (typeof DcqlQueryItemEntity)[];
|
|
1809
1802
|
declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
|
|
1810
1803
|
declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
|
|
1811
1804
|
declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
|
|
1812
1805
|
declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
1813
|
-
declare const DataStoreEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity | typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity | typeof
|
|
1806
|
+
declare const DataStoreEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity | typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity | typeof DcqlQueryItemEntity | typeof StatusListEntity | typeof StatusListEntryEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity | typeof MachineStateInfoEntity)[];
|
|
1814
1807
|
|
|
1815
|
-
export { AbstractContactStore, AbstractDigitalCredentialStore, AbstractEventLoggerStore, AbstractIssuanceBrandingStore, AbstractPDStore, type AddCredentialArgs, type AddDefinitionArgs, type AddElectronicAddressArgs, type AddIdentityArgs, type AddPartyArgs, type AddPartyTypeArgs, type AddPhysicalAddressArgs, type AddRelationshipArgs, AuditEventEntity, BackgroundAttributesEntity, BaseConfigEntity, BaseContactEntity, BaseLocaleBrandingEntity, type BitstringStatusListArgs, BitstringStatusListEntity, type BitstringStatusListEntryCredentialStatus, BitstringStatusListEntryEntity, type BitstringStatusMessage, type BitstringStatusPurpose, type Connection, type ConnectionConfig, ConnectionEntity, ConnectionType, type Contact, ContactMetadataItemEntity, ContactStore, type CorrelationIdentifier, CorrelationIdentifierEntity, CorrelationIdentifierType, CredentialBrandingEntity, CredentialClaimsEntity, CredentialCorrelationType, CredentialDocumentFormat, CredentialLocaleBrandingEntity,
|
|
1808
|
+
export { AbstractContactStore, AbstractDigitalCredentialStore, AbstractEventLoggerStore, AbstractIssuanceBrandingStore, AbstractPDStore, type AddCredentialArgs, type AddDefinitionArgs, type AddElectronicAddressArgs, type AddIdentityArgs, type AddPartyArgs, type AddPartyTypeArgs, type AddPhysicalAddressArgs, type AddRelationshipArgs, AuditEventEntity, BackgroundAttributesEntity, BaseConfigEntity, BaseContactEntity, BaseLocaleBrandingEntity, type BitstringStatusListArgs, BitstringStatusListEntity, type BitstringStatusListEntryCredentialStatus, BitstringStatusListEntryEntity, type BitstringStatusMessage, type BitstringStatusPurpose, type Connection, type ConnectionConfig, ConnectionEntity, ConnectionType, type Contact, ContactMetadataItemEntity, ContactStore, type CorrelationIdentifier, CorrelationIdentifierEntity, CorrelationIdentifierType, CredentialBrandingEntity, CredentialClaimsEntity, CredentialCorrelationType, CredentialDocumentFormat, CredentialLocaleBrandingEntity, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, type DcqlQueryItem, DcqlQueryItemEntity, type DcqlQueryItemFilter, type DeleteDefinitionArgs, type DeleteDefinitionsArgs, type DidAuthConfig, DidAuthConfigEntity, type DigitalCredential, DigitalCredentialEntity, DigitalCredentialStore, DocumentType, type ElectronicAddress, ElectronicAddressEntity, type ElectronicAddressType, EventLoggerStore, type FindActivityLoggingEventArgs, type FindAuditLoggingEventArgs, type FindCredentialBrandingArgs, type FindCredentialLocaleBrandingArgs, type FindDcqlQueryArgs, type FindDigitalCredentialArgs, type FindElectronicAddressArgs, type FindIdentityArgs, type FindIssuerBrandingArgs, type FindIssuerLocaleBrandingArgs, type FindMachineStatesFilterArgs, type FindPartyArgs, type FindPartyTypeArgs, type FindPhysicalAddressArgs, type FindRelationshipArgs, type FindStatusListArgs, type FindStatusListEntryArgs, type GetActivityEventsArgs, type GetAuditEventsArgs, type GetCredentialArgs, type GetCredentialsArgs, type GetCredentialsResponse, type GetDefinitionArgs, type GetDefinitionsArgs, type GetElectronicAddressArgs, type GetElectronicAddressesArgs, type GetIdentitiesArgs, type GetIdentityArgs, type GetPartiesArgs, type GetPartyArgs, type GetPartyTypeArgs, type GetPartyTypesArgs, type GetPhysicalAddressArgs, type GetPhysicalAddressesArgs, type GetRelationshipArgs, type GetRelationshipsArgs, type HasDefinitionArgs, type HasDefinitionsArgs, IAbstractMachineStateStore, type IAddCredentialBrandingArgs, type IAddCredentialLocaleBrandingArgs, type IAddIssuerBrandingArgs, type IAddIssuerLocaleBrandingArgs, type IAddStatusListArgs, type IAddStatusListEntryArgs, type IBackgroundAttributes, type IBasicBackgroundAttributes, type IBasicCredentialBranding, type IBasicCredentialClaim, type IBasicCredentialLocaleBranding, type IBasicImageAttributes, type IBasicImageDimensions, type IBasicIssuerBranding, type IBasicIssuerLocaleBranding, type IBasicTextAttributes, type IBitstringStatusListArgs, type IBitstringStatusListEntity, type IBitstringStatusListEntryEntity, type ICredentialBranding, type ICredentialBrandingFilter, type ICredentialClaim, type ICredentialLocaleBranding, type ICredentialLocaleBrandingFilter, type IGetCredentialBrandingArgs, type IGetCredentialLocaleBrandingArgs, type IGetIssuerBrandingArgs, type IGetIssuerLocaleBrandingArgs, type IGetStatusListArgs, type IGetStatusListEntriesArgs, type IGetStatusListEntryByCredentialIdArgs, type IGetStatusListEntryByIndexArgs, type IGetStatusListsArgs, type IImageAttributes, type IImageDimensions, type IIssuerBranding, type IIssuerBrandingFilter, type IIssuerLocaleBranding, type IIssuerLocaleBrandingFilter, type ILocaleBranding, type IMetadataEntity, type IOAuthStatusListArgs, type IOAuthStatusListEntity, type IPartialBackgroundAttributes, type IPartialCredentialBranding, type IPartialCredentialClaim, type IPartialCredentialLocaleBranding, type IPartialImageAttributes, type IPartialImageDimensions, type IPartialIssuerBranding, type IPartialIssuerLocaleBranding, type IPartialTextAttributes, type IRemoveCredentialBrandingArgs, type IRemoveCredentialLocaleBrandingArgs, type IRemoveIssuerBrandingArgs, type IRemoveIssuerLocaleBrandingArgs, type IRemoveStatusListArgs, type IStatusList2021Args, type IStatusList2021Entity, type IStatusListEntity, type IStatusListEntryAvailableArgs, type IStatusListEntryEntity, type ITextAttributes, type IUpdateCredentialBrandingArgs, type IUpdateCredentialLocaleBrandingArgs, type IUpdateIssuerBrandingArgs, type IUpdateIssuerLocaleBrandingArgs, type IUpdateStatusListIndexArgs, type Identity, IdentityEntity, IdentityMetadataItemEntity, IdentityOrigin, ImageAttributesEntity, ImageDimensionsEntity, type ImportDcqlQueryItem, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDcqlQueryItem, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDcqlQueryItem, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, RegulationType, type RemoveCredentialArgs, type RemoveElectronicAddressArgs, type RemoveIdentityArgs, type RemovePartyArgs, type RemovePartyTypeArgs, type RemovePhysicalAddressArgs, type RemoveRelationshipArgs, StatusList2021Entity, StatusListEntity, StatusListEntryEntity, StatusListStore, type StoreActivityEventArgs, type StoreAuditEventArgs, type StoreFindMachineStatesArgs, type StoreMachineStateDeleteArgs, type StoreMachineStateDeleteExpiredArgs, type StoreMachineStateGetArgs, type StoreMachineStateInfo, type StoreMachineStatePersistArgs, type StoreMachineStatesFindActiveArgs, TextAttributesEntity, type UpdateCredentialStateArgs, type UpdateDefinitionArgs, type UpdateElectronicAddressArgs, type UpdateIdentityArgs, type UpdatePartyArgs, type UpdatePartyTypeArgs, type UpdatePhysicalAddressArgs, type UpdateRelationshipArgs, type ValidationConstraint, activityEventEntityFrom, activityEventFrom, auditEventEntityFrom, auditEventFrom, backgroundAttributesEntityFrom, configFrom, connectionEntityFrom, connectionFrom, contactEntityFrom, contactFrom, contactMetadataItemEntityFrom, correlationIdentifierEntityFrom, correlationIdentifierFrom, credentialBrandingEntityFrom, credentialBrandingFrom, credentialClaimsEntityFrom, credentialLocaleBrandingEntityFrom, dcqlQueryEntityItemFrom, dcqlQueryItemFrom, didAuthConfigEntityFrom, didAuthConfigFrom, digitalCredentialFrom, digitalCredentialsFrom, electronicAddressEntityFrom, electronicAddressFrom, ensureRawDocument, identityEntityFrom, identityFrom, identityMetadataItemEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, isDidAuthConfig, isHex, isNaturalPerson, isOpenIdConfig, isOrganization, isPresentationDefinitionEqual, issuerBrandingEntityFrom, issuerBrandingFrom, issuerLocaleBrandingEntityFrom, localeBrandingFrom, metadataItemFrom, naturalPersonEntityFrom, naturalPersonFrom, nonPersistedDigitalCredentialEntityFromAddArgs, openIdConfigEntityFrom, openIdConfigFrom, organizationEntityFrom, organizationFrom, parseRawDocument, partyEntityFrom, partyFrom, partyRelationshipEntityFrom, partyRelationshipFrom, partyTypeEntityFrom, partyTypeFrom, physicalAddressEntityFrom, physicalAddressFrom, textAttributesEntityFrom };
|