@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.17.bitstring.sl.24 → 0.34.1-feature.SSISDK.17.bitstring.sl.25
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 +52 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +52 -50
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/statusList/StatusListStore.ts +4 -5
- package/src/types/statusList/IAbstractStatusListStore.ts +22 -12
- package/src/types/statusList/statusList.ts +4 -4
- package/src/utils/statusList/MappingUtils.ts +48 -45
package/dist/index.d.cts
CHANGED
|
@@ -812,7 +812,7 @@ interface IOAuthStatusListEntity extends IStatusListEntity {
|
|
|
812
812
|
expiresAt?: Date;
|
|
813
813
|
}
|
|
814
814
|
interface IBitstringStatusListEntity extends IStatusListEntity {
|
|
815
|
-
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose
|
|
815
|
+
statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
|
|
816
816
|
bitsPerStatus?: number;
|
|
817
817
|
validFrom?: Date;
|
|
818
818
|
validUntil?: Date;
|
|
@@ -835,12 +835,12 @@ type BitstringStatusMessage = {
|
|
|
835
835
|
};
|
|
836
836
|
interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
|
|
837
837
|
type: 'BitstringStatusListEntry';
|
|
838
|
-
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose
|
|
838
|
+
statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
|
|
839
839
|
statusListIndex: string;
|
|
840
840
|
statusListCredential: string;
|
|
841
841
|
bitsPerStatus?: number;
|
|
842
842
|
statusMessage?: Array<BitstringStatusMessage>;
|
|
843
|
-
statusReference?: string | string
|
|
843
|
+
statusReference?: string | Array<string>;
|
|
844
844
|
}
|
|
845
845
|
type BitstringStatusListArgs = {
|
|
846
846
|
statusPurpose: BitstringStatusPurpose;
|
|
@@ -858,7 +858,7 @@ interface IBitstringStatusListEntryEntity {
|
|
|
858
858
|
statusPurpose: string;
|
|
859
859
|
bitsPerStatus?: number;
|
|
860
860
|
statusMessage?: Array<BitstringStatusMessage>;
|
|
861
|
-
statusReference?: string | string
|
|
861
|
+
statusReference?: string | Array<string>;
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
type FindStatusListArgs = FindOptionsWhere<IStatusList2021Entity | IOAuthStatusListEntity>[];
|
|
@@ -907,22 +907,25 @@ interface IBaseStatusListArgs {
|
|
|
907
907
|
statusListCredential?: StatusListCredential;
|
|
908
908
|
bitsPerStatus?: number;
|
|
909
909
|
}
|
|
910
|
-
type
|
|
910
|
+
type IStatusList2021Args = IBaseStatusListArgs & {
|
|
911
911
|
type: StatusListType.StatusList2021;
|
|
912
912
|
indexingDirection: StatusListIndexingDirection;
|
|
913
913
|
statusPurpose: StatusPurpose2021;
|
|
914
|
-
}
|
|
914
|
+
};
|
|
915
|
+
type IOAuthStatusListArgs = IBaseStatusListArgs & {
|
|
915
916
|
type: StatusListType.OAuthStatusList;
|
|
916
917
|
bitsPerStatus: number;
|
|
917
918
|
expiresAt?: Date;
|
|
918
|
-
}
|
|
919
|
+
};
|
|
920
|
+
type IBitstringStatusListArgs = IBaseStatusListArgs & {
|
|
919
921
|
type: StatusListType.BitstringStatusList;
|
|
920
922
|
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
|
|
921
923
|
bitsPerStatus?: number;
|
|
922
924
|
validFrom?: Date;
|
|
923
925
|
validUntil?: Date;
|
|
924
926
|
ttl?: number;
|
|
925
|
-
}
|
|
927
|
+
};
|
|
928
|
+
type IAddStatusListArgs = IStatusList2021Args | IOAuthStatusListArgs | IBitstringStatusListArgs;
|
|
926
929
|
type IUpdateStatusListIndexArgs = IAddStatusListArgs;
|
|
927
930
|
|
|
928
931
|
type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id' | 'type'>;
|
|
@@ -1809,4 +1812,4 @@ declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntit
|
|
|
1809
1812
|
declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
1810
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 PresentationDefinitionItemEntity | typeof StatusListEntity | typeof StatusListEntryEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity | typeof MachineStateInfoEntity)[];
|
|
1811
1814
|
|
|
1812
|
-
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, CredentialRole, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, 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 FindDefinitionArgs, 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 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 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 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, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, type NonPersistedPresentationDefinitionItem, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type PartialPresentationDefinitionItem, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, type PresentationDefinitionItem, PresentationDefinitionItemEntity, type PresentationDefinitionItemFilter, 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, 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, presentationDefinitionEntityItemFrom, presentationDefinitionItemFrom, textAttributesEntityFrom };
|
|
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, CredentialRole, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, 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 FindDefinitionArgs, 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, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, type NonPersistedPresentationDefinitionItem, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type PartialPresentationDefinitionItem, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, type PresentationDefinitionItem, PresentationDefinitionItemEntity, type PresentationDefinitionItemFilter, 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, 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, presentationDefinitionEntityItemFrom, presentationDefinitionItemFrom, textAttributesEntityFrom };
|
package/dist/index.d.ts
CHANGED
|
@@ -812,7 +812,7 @@ interface IOAuthStatusListEntity extends IStatusListEntity {
|
|
|
812
812
|
expiresAt?: Date;
|
|
813
813
|
}
|
|
814
814
|
interface IBitstringStatusListEntity extends IStatusListEntity {
|
|
815
|
-
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose
|
|
815
|
+
statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
|
|
816
816
|
bitsPerStatus?: number;
|
|
817
817
|
validFrom?: Date;
|
|
818
818
|
validUntil?: Date;
|
|
@@ -835,12 +835,12 @@ type BitstringStatusMessage = {
|
|
|
835
835
|
};
|
|
836
836
|
interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
|
|
837
837
|
type: 'BitstringStatusListEntry';
|
|
838
|
-
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose
|
|
838
|
+
statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
|
|
839
839
|
statusListIndex: string;
|
|
840
840
|
statusListCredential: string;
|
|
841
841
|
bitsPerStatus?: number;
|
|
842
842
|
statusMessage?: Array<BitstringStatusMessage>;
|
|
843
|
-
statusReference?: string | string
|
|
843
|
+
statusReference?: string | Array<string>;
|
|
844
844
|
}
|
|
845
845
|
type BitstringStatusListArgs = {
|
|
846
846
|
statusPurpose: BitstringStatusPurpose;
|
|
@@ -858,7 +858,7 @@ interface IBitstringStatusListEntryEntity {
|
|
|
858
858
|
statusPurpose: string;
|
|
859
859
|
bitsPerStatus?: number;
|
|
860
860
|
statusMessage?: Array<BitstringStatusMessage>;
|
|
861
|
-
statusReference?: string | string
|
|
861
|
+
statusReference?: string | Array<string>;
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
type FindStatusListArgs = FindOptionsWhere<IStatusList2021Entity | IOAuthStatusListEntity>[];
|
|
@@ -907,22 +907,25 @@ interface IBaseStatusListArgs {
|
|
|
907
907
|
statusListCredential?: StatusListCredential;
|
|
908
908
|
bitsPerStatus?: number;
|
|
909
909
|
}
|
|
910
|
-
type
|
|
910
|
+
type IStatusList2021Args = IBaseStatusListArgs & {
|
|
911
911
|
type: StatusListType.StatusList2021;
|
|
912
912
|
indexingDirection: StatusListIndexingDirection;
|
|
913
913
|
statusPurpose: StatusPurpose2021;
|
|
914
|
-
}
|
|
914
|
+
};
|
|
915
|
+
type IOAuthStatusListArgs = IBaseStatusListArgs & {
|
|
915
916
|
type: StatusListType.OAuthStatusList;
|
|
916
917
|
bitsPerStatus: number;
|
|
917
918
|
expiresAt?: Date;
|
|
918
|
-
}
|
|
919
|
+
};
|
|
920
|
+
type IBitstringStatusListArgs = IBaseStatusListArgs & {
|
|
919
921
|
type: StatusListType.BitstringStatusList;
|
|
920
922
|
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
|
|
921
923
|
bitsPerStatus?: number;
|
|
922
924
|
validFrom?: Date;
|
|
923
925
|
validUntil?: Date;
|
|
924
926
|
ttl?: number;
|
|
925
|
-
}
|
|
927
|
+
};
|
|
928
|
+
type IAddStatusListArgs = IStatusList2021Args | IOAuthStatusListArgs | IBitstringStatusListArgs;
|
|
926
929
|
type IUpdateStatusListIndexArgs = IAddStatusListArgs;
|
|
927
930
|
|
|
928
931
|
type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id' | 'type'>;
|
|
@@ -1809,4 +1812,4 @@ declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntit
|
|
|
1809
1812
|
declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
1810
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 PresentationDefinitionItemEntity | typeof StatusListEntity | typeof StatusListEntryEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity | typeof MachineStateInfoEntity)[];
|
|
1811
1814
|
|
|
1812
|
-
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, CredentialRole, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, 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 FindDefinitionArgs, 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 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 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 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, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, type NonPersistedPresentationDefinitionItem, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type PartialPresentationDefinitionItem, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, type PresentationDefinitionItem, PresentationDefinitionItemEntity, type PresentationDefinitionItemFilter, 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, 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, presentationDefinitionEntityItemFrom, presentationDefinitionItemFrom, textAttributesEntityFrom };
|
|
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, CredentialRole, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, 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 FindDefinitionArgs, 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, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, type NonPersistedPresentationDefinitionItem, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type PartialPresentationDefinitionItem, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, type PresentationDefinitionItem, PresentationDefinitionItemEntity, type PresentationDefinitionItemFilter, 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, 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, presentationDefinitionEntityItemFrom, presentationDefinitionItemFrom, textAttributesEntityFrom };
|
package/dist/index.js
CHANGED
|
@@ -6022,52 +6022,55 @@ import { In as In3 } from "typeorm";
|
|
|
6022
6022
|
// src/utils/statusList/MappingUtils.ts
|
|
6023
6023
|
import { StatusListType as StatusListType2 } from "@sphereon/ssi-types";
|
|
6024
6024
|
var statusListEntityFrom = /* @__PURE__ */ __name((args) => {
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6025
|
+
switch (args.type) {
|
|
6026
|
+
case StatusListType2.StatusList2021: {
|
|
6027
|
+
const entity = new StatusList2021Entity();
|
|
6028
|
+
const sl2021 = args;
|
|
6029
|
+
entity.indexingDirection = sl2021.indexingDirection;
|
|
6030
|
+
entity.statusPurpose = sl2021.statusPurpose;
|
|
6031
|
+
setBaseFields(entity, args);
|
|
6032
|
+
Object.defineProperty(entity, "type", {
|
|
6033
|
+
value: StatusListType2.StatusList2021,
|
|
6034
|
+
enumerable: true,
|
|
6035
|
+
configurable: true
|
|
6036
|
+
});
|
|
6037
|
+
return entity;
|
|
6038
|
+
}
|
|
6039
|
+
case StatusListType2.OAuthStatusList: {
|
|
6040
|
+
const entity = new OAuthStatusListEntity();
|
|
6041
|
+
const oauthSl = args;
|
|
6042
|
+
entity.bitsPerStatus = oauthSl.bitsPerStatus;
|
|
6043
|
+
entity.expiresAt = oauthSl.expiresAt;
|
|
6044
|
+
setBaseFields(entity, args);
|
|
6045
|
+
Object.defineProperty(entity, "type", {
|
|
6046
|
+
value: StatusListType2.OAuthStatusList,
|
|
6047
|
+
enumerable: true,
|
|
6048
|
+
configurable: true
|
|
6049
|
+
});
|
|
6050
|
+
return entity;
|
|
6051
|
+
}
|
|
6052
|
+
case StatusListType2.BitstringStatusList: {
|
|
6053
|
+
const entity = new BitstringStatusListEntity();
|
|
6054
|
+
const bitstringsl = args;
|
|
6055
|
+
if (!bitstringsl.bitsPerStatus) {
|
|
6056
|
+
throw Error("bitsPerStatus must be set for BitstringStatusList");
|
|
6057
|
+
}
|
|
6058
|
+
entity.statusPurpose = bitstringsl.statusPurpose;
|
|
6059
|
+
entity.bitsPerStatus = bitstringsl.bitsPerStatus;
|
|
6060
|
+
entity.validFrom = bitstringsl.validFrom;
|
|
6061
|
+
entity.validUntil = bitstringsl.validUntil;
|
|
6062
|
+
entity.ttl = bitstringsl.ttl;
|
|
6063
|
+
setBaseFields(entity, args);
|
|
6064
|
+
Object.defineProperty(entity, "type", {
|
|
6065
|
+
value: StatusListType2.BitstringStatusList,
|
|
6066
|
+
enumerable: true,
|
|
6067
|
+
configurable: true
|
|
6068
|
+
});
|
|
6069
|
+
return entity;
|
|
6070
|
+
}
|
|
6071
|
+
default:
|
|
6072
|
+
throw new Error(`Invalid status list type ${args.type}`);
|
|
6069
6073
|
}
|
|
6070
|
-
throw new Error(`Invalid status list type ${args.type}`);
|
|
6071
6074
|
}, "statusListEntityFrom");
|
|
6072
6075
|
var statusListFrom = /* @__PURE__ */ __name((entity) => {
|
|
6073
6076
|
if (entity instanceof StatusList2021Entity) {
|
|
@@ -6166,8 +6169,7 @@ var StatusListStore = class {
|
|
|
6166
6169
|
const statusList = await this.getStatusList({
|
|
6167
6170
|
id: args.statusListId
|
|
6168
6171
|
});
|
|
6169
|
-
|
|
6170
|
-
return result;
|
|
6172
|
+
return await (await this.getStatusListEntryRepo(statusList.type)).save(args);
|
|
6171
6173
|
}
|
|
6172
6174
|
async updateStatusListEntry(args) {
|
|
6173
6175
|
const statusListId = args.statusListId;
|
|
@@ -6200,7 +6202,7 @@ var StatusListStore = class {
|
|
|
6200
6202
|
"statusListIndex"
|
|
6201
6203
|
]
|
|
6202
6204
|
});
|
|
6203
|
-
|
|
6205
|
+
debug4(updateResult);
|
|
6204
6206
|
return await this.getStatusListEntryByIndex({
|
|
6205
6207
|
...args,
|
|
6206
6208
|
statusListId: updStatusListId,
|
|
@@ -6263,7 +6265,7 @@ var StatusListStore = class {
|
|
|
6263
6265
|
},
|
|
6264
6266
|
credentialId
|
|
6265
6267
|
};
|
|
6266
|
-
|
|
6268
|
+
debug4(`Entries: ${JSON.stringify(await (await this.getStatusListEntryRepo(statusList.type)).find(), null, 2)}`);
|
|
6267
6269
|
const result = await (await this.getStatusListEntryRepo(statusList.type)).findOne({
|
|
6268
6270
|
where
|
|
6269
6271
|
});
|
|
@@ -6305,7 +6307,7 @@ var StatusListStore = class {
|
|
|
6305
6307
|
error2 = true;
|
|
6306
6308
|
}
|
|
6307
6309
|
if (error) {
|
|
6308
|
-
console.
|
|
6310
|
+
console.error(`Could not delete statusList ${args.statusListId} entry by index ${args.statusListIndex}`);
|
|
6309
6311
|
} else {
|
|
6310
6312
|
const statusList = await this.getStatusList({
|
|
6311
6313
|
id: args.statusListId
|