@sphereon/ssi-sdk.data-store 0.33.1-next.2 → 0.33.1-next.68
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 +9052 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1730 -0
- package/dist/index.d.ts +1730 -63
- package/dist/index.js +9019 -167
- package/dist/index.js.map +1 -1
- package/package.json +26 -15
- package/src/__tests__/contact.entities.test.ts +1 -1
- package/src/__tests__/contact.store.test.ts +2 -1
- package/src/__tests__/digitalCredential.entities.test.ts +1 -0
- package/src/__tests__/digitalCredential.store.test.ts +2 -1
- package/src/__tests__/eventLogger.entities.test.ts +2 -1
- package/src/__tests__/eventLogger.store.test.ts +2 -1
- package/src/__tests__/issuanceBranding.entities.test.ts +8 -7
- package/src/__tests__/issuanceBranding.store.test.ts +1 -0
- package/src/__tests__/machineState.entities.test.ts +2 -1
- package/src/__tests__/machineState.store.test.ts +2 -1
- package/src/__tests__/pd-manager.entities.test.ts +1 -0
- package/src/__tests__/pd-manager.store.test.ts +1 -0
- package/src/__tests__/statusList.entities.test.ts +1 -0
- package/src/__tests__/statusList.store.test.ts +2 -1
- package/src/contact/ContactStore.ts +1 -1
- package/src/digitalCredential/DigitalCredentialStore.ts +3 -7
- package/src/entities/contact/BaseConfigEntity.ts +2 -1
- package/src/entities/contact/BaseContactEntity.ts +3 -2
- package/src/entities/contact/ConnectionEntity.ts +2 -1
- package/src/entities/contact/ContactMetadataItemEntity.ts +2 -1
- package/src/entities/contact/CorrelationIdentifierEntity.ts +2 -1
- package/src/entities/contact/DidAuthConfigEntity.ts +2 -1
- package/src/entities/contact/ElectronicAddressEntity.ts +3 -12
- package/src/entities/contact/PhysicalAddressEntity.ts +1 -1
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +1 -1
- package/src/entities/eventLogger/AuditEventEntity.ts +10 -1
- package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +3 -2
- package/src/entities/statusList/StatusListEntities.ts +8 -7
- package/src/entities/validators/index.ts +1 -1
- package/src/eventLogger/AbstractEventLoggerStore.ts +2 -2
- package/src/eventLogger/EventLoggerStore.ts +3 -3
- package/src/index.ts +4 -3
- package/src/issuanceBranding/AbstractIssuanceBrandingStore.ts +1 -1
- package/src/issuanceBranding/IssuanceBrandingStore.ts +3 -3
- package/src/machineState/IAbstractMachineStateStore.ts +1 -1
- package/src/machineState/MachineStateStore.ts +3 -3
- package/src/migrations/internal-migrations-ormconfig.ts +1 -1
- package/src/presentationDefinition/AbstractPDStore.ts +1 -1
- package/src/presentationDefinition/PDStore.ts +2 -2
- package/src/statusList/IStatusListStore.ts +1 -1
- package/src/statusList/StatusListStore.ts +4 -4
- package/src/types/contact/contact.ts +1 -1
- package/src/types/contact/index.ts +2 -0
- package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +2 -1
- package/src/types/digitalCredential/{digitalCredential.ts → enums.ts} +0 -33
- package/src/types/digitalCredential/index.ts +3 -0
- package/src/types/digitalCredential/types.ts +39 -0
- package/src/types/index.ts +2 -2
- package/src/types/statusList/statusList.ts +2 -2
- package/src/utils/SortingUtils.ts +1 -1
- package/src/utils/ValidatorUtils.ts +1 -1
- package/src/utils/contact/MappingUtils.ts +1 -1
- package/src/utils/digitalCredential/MappingUtils.ts +7 -13
- package/src/utils/eventLogger/MappingUtils.ts +2 -2
- package/src/utils/issuanceBranding/MappingUtils.ts +1 -1
- package/src/utils/presentationDefinition/MappingUtils.ts +5 -5
- package/dist/contact/AbstractContactStore.d.ts +0 -34
- package/dist/contact/AbstractContactStore.d.ts.map +0 -1
- package/dist/contact/AbstractContactStore.js +0 -7
- package/dist/contact/AbstractContactStore.js.map +0 -1
- package/dist/contact/ContactStore.d.ts +0 -48
- package/dist/contact/ContactStore.d.ts.map +0 -1
- package/dist/contact/ContactStore.js +0 -573
- package/dist/contact/ContactStore.js.map +0 -1
- package/dist/digitalCredential/AbstractDigitalCredentialStore.d.ts +0 -9
- package/dist/digitalCredential/AbstractDigitalCredentialStore.d.ts.map +0 -1
- package/dist/digitalCredential/AbstractDigitalCredentialStore.js +0 -7
- package/dist/digitalCredential/AbstractDigitalCredentialStore.js.map +0 -1
- package/dist/digitalCredential/DigitalCredentialStore.d.ts +0 -18
- package/dist/digitalCredential/DigitalCredentialStore.d.ts.map +0 -1
- package/dist/digitalCredential/DigitalCredentialStore.js +0 -165
- package/dist/digitalCredential/DigitalCredentialStore.js.map +0 -1
- package/dist/entities/contact/BaseConfigEntity.d.ts +0 -7
- package/dist/entities/contact/BaseConfigEntity.d.ts.map +0 -1
- package/dist/entities/contact/BaseConfigEntity.js +0 -34
- package/dist/entities/contact/BaseConfigEntity.js.map +0 -1
- package/dist/entities/contact/BaseContactEntity.d.ts +0 -12
- package/dist/entities/contact/BaseContactEntity.d.ts.map +0 -1
- package/dist/entities/contact/BaseContactEntity.js +0 -64
- package/dist/entities/contact/BaseContactEntity.js.map +0 -1
- package/dist/entities/contact/ConnectionEntity.d.ts +0 -13
- package/dist/entities/contact/ConnectionEntity.d.ts.map +0 -1
- package/dist/entities/contact/ConnectionEntity.js +0 -55
- package/dist/entities/contact/ConnectionEntity.js.map +0 -1
- package/dist/entities/contact/ContactMetadataItemEntity.d.ts +0 -15
- package/dist/entities/contact/ContactMetadataItemEntity.d.ts.map +0 -1
- package/dist/entities/contact/ContactMetadataItemEntity.js +0 -89
- package/dist/entities/contact/ContactMetadataItemEntity.js.map +0 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +0 -13
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts.map +0 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.js +0 -80
- package/dist/entities/contact/CorrelationIdentifierEntity.js.map +0 -1
- package/dist/entities/contact/DidAuthConfigEntity.d.ts +0 -9
- package/dist/entities/contact/DidAuthConfigEntity.d.ts.map +0 -1
- package/dist/entities/contact/DidAuthConfigEntity.js +0 -41
- package/dist/entities/contact/DidAuthConfigEntity.js.map +0 -1
- package/dist/entities/contact/ElectronicAddressEntity.d.ts +0 -17
- package/dist/entities/contact/ElectronicAddressEntity.d.ts.map +0 -1
- package/dist/entities/contact/ElectronicAddressEntity.js +0 -105
- package/dist/entities/contact/ElectronicAddressEntity.js.map +0 -1
- package/dist/entities/contact/IdentityEntity.d.ts +0 -24
- package/dist/entities/contact/IdentityEntity.d.ts.map +0 -1
- package/dist/entities/contact/IdentityEntity.js +0 -143
- package/dist/entities/contact/IdentityEntity.js.map +0 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +0 -15
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts.map +0 -1
- package/dist/entities/contact/IdentityMetadataItemEntity.js +0 -86
- package/dist/entities/contact/IdentityMetadataItemEntity.js.map +0 -1
- package/dist/entities/contact/NaturalPersonEntity.d.ts +0 -11
- package/dist/entities/contact/NaturalPersonEntity.d.ts.map +0 -1
- package/dist/entities/contact/NaturalPersonEntity.js +0 -80
- package/dist/entities/contact/NaturalPersonEntity.js.map +0 -1
- package/dist/entities/contact/OpenIdConfigEntity.d.ts +0 -13
- package/dist/entities/contact/OpenIdConfigEntity.d.ts.map +0 -1
- package/dist/entities/contact/OpenIdConfigEntity.js +0 -57
- package/dist/entities/contact/OpenIdConfigEntity.js.map +0 -1
- package/dist/entities/contact/OrganizationEntity.d.ts +0 -9
- package/dist/entities/contact/OrganizationEntity.d.ts.map +0 -1
- package/dist/entities/contact/OrganizationEntity.js +0 -69
- package/dist/entities/contact/OrganizationEntity.js.map +0 -1
- package/dist/entities/contact/PartyEntity.d.ts +0 -24
- package/dist/entities/contact/PartyEntity.d.ts.map +0 -1
- package/dist/entities/contact/PartyEntity.js +0 -152
- package/dist/entities/contact/PartyEntity.js.map +0 -1
- package/dist/entities/contact/PartyRelationshipEntity.d.ts +0 -15
- package/dist/entities/contact/PartyRelationshipEntity.d.ts.map +0 -1
- package/dist/entities/contact/PartyRelationshipEntity.js +0 -104
- package/dist/entities/contact/PartyRelationshipEntity.js.map +0 -1
- package/dist/entities/contact/PartyTypeEntity.d.ts +0 -16
- package/dist/entities/contact/PartyTypeEntity.d.ts.map +0 -1
- package/dist/entities/contact/PartyTypeEntity.js +0 -109
- package/dist/entities/contact/PartyTypeEntity.js.map +0 -1
- package/dist/entities/contact/PhysicalAddressEntity.d.ts +0 -23
- package/dist/entities/contact/PhysicalAddressEntity.d.ts.map +0 -1
- package/dist/entities/contact/PhysicalAddressEntity.js +0 -136
- package/dist/entities/contact/PhysicalAddressEntity.js.map +0 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts +0 -33
- package/dist/entities/digitalCredential/DigitalCredentialEntity.d.ts.map +0 -1
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js +0 -134
- package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +0 -1
- package/dist/entities/eventLogger/AuditEventEntity.d.ts +0 -32
- package/dist/entities/eventLogger/AuditEventEntity.d.ts.map +0 -1
- package/dist/entities/eventLogger/AuditEventEntity.js +0 -129
- package/dist/entities/eventLogger/AuditEventEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +0 -9
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +0 -67
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +0 -18
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +0 -121
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +0 -13
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +0 -95
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.d.ts +0 -10
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.js +0 -70
- package/dist/entities/issuanceBranding/CredentialClaimsEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +0 -9
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +0 -45
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +0 -12
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +0 -82
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +0 -7
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +0 -32
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +0 -12
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +0 -89
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +0 -11
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +0 -55
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +0 -1
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +0 -7
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts.map +0 -1
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +0 -56
- package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +0 -1
- package/dist/entities/machineState/MachineStateInfoEntity.d.ts +0 -33
- package/dist/entities/machineState/MachineStateInfoEntity.d.ts.map +0 -1
- package/dist/entities/machineState/MachineStateInfoEntity.js +0 -86
- package/dist/entities/machineState/MachineStateInfoEntity.js.map +0 -1
- package/dist/entities/oid4vcState/Oid4vcStateEntity.d.ts +0 -13
- package/dist/entities/oid4vcState/Oid4vcStateEntity.d.ts.map +0 -1
- package/dist/entities/oid4vcState/Oid4vcStateEntity.js +0 -57
- package/dist/entities/oid4vcState/Oid4vcStateEntity.js.map +0 -1
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts +0 -15
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.d.ts.map +0 -1
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js +0 -81
- package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js.map +0 -1
- package/dist/entities/statusList/StatusList2021EntryEntity.d.ts +0 -12
- package/dist/entities/statusList/StatusList2021EntryEntity.d.ts.map +0 -1
- package/dist/entities/statusList/StatusList2021EntryEntity.js +0 -56
- package/dist/entities/statusList/StatusList2021EntryEntity.js.map +0 -1
- package/dist/entities/statusList/StatusListEntities.d.ts +0 -23
- package/dist/entities/statusList/StatusListEntities.d.ts.map +0 -1
- package/dist/entities/statusList/StatusListEntities.js +0 -144
- package/dist/entities/statusList/StatusListEntities.js.map +0 -1
- package/dist/entities/validators/index.d.ts +0 -7
- package/dist/entities/validators/index.d.ts.map +0 -1
- package/dist/entities/validators/index.js +0 -27
- package/dist/entities/validators/index.js.map +0 -1
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts +0 -9
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts.map +0 -1
- package/dist/eventLogger/AbstractEventLoggerStore.js +0 -7
- package/dist/eventLogger/AbstractEventLoggerStore.js.map +0 -1
- package/dist/eventLogger/EventLoggerStore.d.ts +0 -14
- package/dist/eventLogger/EventLoggerStore.d.ts.map +0 -1
- package/dist/eventLogger/EventLoggerStore.js +0 -71
- package/dist/eventLogger/EventLoggerStore.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +0 -20
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts.map +0 -1
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +0 -7
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js.map +0 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +0 -27
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +0 -1
- package/dist/issuanceBranding/IssuanceBrandingStore.js +0 -362
- package/dist/issuanceBranding/IssuanceBrandingStore.js.map +0 -1
- package/dist/machineState/IAbstractMachineStateStore.d.ts +0 -52
- package/dist/machineState/IAbstractMachineStateStore.d.ts.map +0 -1
- package/dist/machineState/IAbstractMachineStateStore.js +0 -13
- package/dist/machineState/IAbstractMachineStateStore.js.map +0 -1
- package/dist/machineState/MachineStateStore.d.ts +0 -21
- package/dist/machineState/MachineStateStore.d.ts.map +0 -1
- package/dist/machineState/MachineStateStore.js +0 -139
- package/dist/machineState/MachineStateStore.js.map +0 -1
- package/dist/migrations/generic/1-CreateContacts.d.ts +0 -7
- package/dist/migrations/generic/1-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/1-CreateContacts.js +0 -78
- package/dist/migrations/generic/1-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/10-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/generic/10-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/generic/10-CreatePresentationDefinitions.js +0 -78
- package/dist/migrations/generic/10-CreatePresentationDefinitions.js.map +0 -1
- package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.d.ts +0 -7
- package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.d.ts.map +0 -1
- package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.js +0 -80
- package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.js.map +0 -1
- package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts +0 -7
- package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/generic/2-CreateIssuanceBranding.js +0 -78
- package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +0 -1
- package/dist/migrations/generic/3-CreateContacts.d.ts +0 -7
- package/dist/migrations/generic/3-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/3-CreateContacts.js +0 -78
- package/dist/migrations/generic/3-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/4-CreateStatusList.d.ts +0 -7
- package/dist/migrations/generic/4-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/generic/4-CreateStatusList.js +0 -82
- package/dist/migrations/generic/4-CreateStatusList.js.map +0 -1
- package/dist/migrations/generic/5-CreateAuditEvents.d.ts +0 -7
- package/dist/migrations/generic/5-CreateAuditEvents.d.ts.map +0 -1
- package/dist/migrations/generic/5-CreateAuditEvents.js +0 -78
- package/dist/migrations/generic/5-CreateAuditEvents.js.map +0 -1
- package/dist/migrations/generic/6-CreateDigitalCredential.d.ts +0 -7
- package/dist/migrations/generic/6-CreateDigitalCredential.d.ts.map +0 -1
- package/dist/migrations/generic/6-CreateDigitalCredential.js +0 -78
- package/dist/migrations/generic/6-CreateDigitalCredential.js.map +0 -1
- package/dist/migrations/generic/7-CreateMachineStateStore.d.ts +0 -7
- package/dist/migrations/generic/7-CreateMachineStateStore.d.ts.map +0 -1
- package/dist/migrations/generic/7-CreateMachineStateStore.js +0 -78
- package/dist/migrations/generic/7-CreateMachineStateStore.js.map +0 -1
- package/dist/migrations/generic/8-CreateContacts.d.ts +0 -7
- package/dist/migrations/generic/8-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/8-CreateContacts.js +0 -78
- package/dist/migrations/generic/8-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/9-CreateContacts.d.ts +0 -7
- package/dist/migrations/generic/9-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/generic/9-CreateContacts.js +0 -78
- package/dist/migrations/generic/9-CreateContacts.js.map +0 -1
- package/dist/migrations/generic/index.d.ts +0 -23
- package/dist/migrations/generic/index.d.ts.map +0 -1
- package/dist/migrations/generic/index.js +0 -45
- package/dist/migrations/generic/index.js.map +0 -1
- package/dist/migrations/index.d.ts +0 -2
- package/dist/migrations/index.d.ts.map +0 -1
- package/dist/migrations/index.js +0 -13
- package/dist/migrations/index.js.map +0 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts +0 -7
- package/dist/migrations/internal-migrations-ormconfig.d.ts.map +0 -1
- package/dist/migrations/internal-migrations-ormconfig.js +0 -27
- package/dist/migrations/internal-migrations-ormconfig.js.map +0 -1
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +0 -7
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/postgres/1659463079428-CreateContacts.js +0 -57
- package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +0 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +0 -7
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +0 -73
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +0 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +0 -7
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +0 -110
- package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +0 -1
- package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts +0 -7
- package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/postgres/1693866470001-CreateStatusList.js +0 -65
- package/dist/migrations/postgres/1693866470001-CreateStatusList.js.map +0 -1
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +0 -7
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts.map +0 -1
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +0 -71
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +0 -1
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.d.ts +0 -7
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.d.ts.map +0 -1
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +0 -75
- package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +0 -1
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.d.ts +0 -7
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.d.ts.map +0 -1
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js +0 -45
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js.map +0 -1
- package/dist/migrations/postgres/1710438363001-CreateContacts.d.ts +0 -7
- package/dist/migrations/postgres/1710438363001-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/postgres/1710438363001-CreateContacts.js +0 -63
- package/dist/migrations/postgres/1710438363001-CreateContacts.js.map +0 -1
- package/dist/migrations/postgres/1715761125001-CreateContacts.d.ts +0 -7
- package/dist/migrations/postgres/1715761125001-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/postgres/1715761125001-CreateContacts.js +0 -74
- package/dist/migrations/postgres/1715761125001-CreateContacts.js.map +0 -1
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js +0 -42
- package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js.map +0 -1
- package/dist/migrations/postgres/1737110469001-UpdateStatusList.d.ts +0 -7
- package/dist/migrations/postgres/1737110469001-UpdateStatusList.d.ts.map +0 -1
- package/dist/migrations/postgres/1737110469001-UpdateStatusList.js +0 -39
- package/dist/migrations/postgres/1737110469001-UpdateStatusList.js.map +0 -1
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.d.ts +0 -7
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.d.ts.map +0 -1
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js +0 -37
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js.map +0 -1
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +0 -7
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js +0 -79
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js.map +0 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +0 -7
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts.map +0 -1
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +0 -93
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +0 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +0 -7
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +0 -143
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +0 -1
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +0 -7
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts.map +0 -1
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +0 -72
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js.map +0 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +0 -7
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts.map +0 -1
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +0 -55
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +0 -1
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.d.ts +0 -7
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.d.ts.map +0 -1
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +0 -62
- package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js.map +0 -1
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.d.ts +0 -7
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.d.ts.map +0 -1
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js +0 -44
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js.map +0 -1
- package/dist/migrations/sqlite/1710438363002-CreateContacts.d.ts +0 -7
- package/dist/migrations/sqlite/1710438363002-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/sqlite/1710438363002-CreateContacts.js +0 -79
- package/dist/migrations/sqlite/1710438363002-CreateContacts.js.map +0 -1
- package/dist/migrations/sqlite/1715761125002-CreateContacts.d.ts +0 -7
- package/dist/migrations/sqlite/1715761125002-CreateContacts.d.ts.map +0 -1
- package/dist/migrations/sqlite/1715761125002-CreateContacts.js +0 -73
- package/dist/migrations/sqlite/1715761125002-CreateContacts.js.map +0 -1
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts +0 -7
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.d.ts.map +0 -1
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js +0 -39
- package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js.map +0 -1
- package/dist/migrations/sqlite/1737110469000-UpdateStatusList.d.ts +0 -7
- package/dist/migrations/sqlite/1737110469000-UpdateStatusList.d.ts.map +0 -1
- package/dist/migrations/sqlite/1737110469000-UpdateStatusList.js +0 -96
- package/dist/migrations/sqlite/1737110469000-UpdateStatusList.js.map +0 -1
- package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.d.ts +0 -7
- package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.d.ts.map +0 -1
- package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.js +0 -80
- package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.js.map +0 -1
- package/dist/presentationDefinition/AbstractPDStore.d.ts +0 -12
- package/dist/presentationDefinition/AbstractPDStore.d.ts.map +0 -1
- package/dist/presentationDefinition/AbstractPDStore.js +0 -7
- package/dist/presentationDefinition/AbstractPDStore.js.map +0 -1
- package/dist/presentationDefinition/PDStore.d.ts +0 -19
- package/dist/presentationDefinition/PDStore.d.ts.map +0 -1
- package/dist/presentationDefinition/PDStore.js +0 -152
- package/dist/presentationDefinition/PDStore.js.map +0 -1
- package/dist/statusList/IStatusListStore.d.ts +0 -20
- package/dist/statusList/IStatusListStore.d.ts.map +0 -1
- package/dist/statusList/IStatusListStore.js +0 -3
- package/dist/statusList/IStatusListStore.js.map +0 -1
- package/dist/statusList/StatusListStore.d.ts +0 -37
- package/dist/statusList/StatusListStore.d.ts.map +0 -1
- package/dist/statusList/StatusListStore.js +0 -243
- package/dist/statusList/StatusListStore.js.map +0 -1
- package/dist/types/contact/IAbstractContactStore.d.ts +0 -111
- package/dist/types/contact/IAbstractContactStore.d.ts.map +0 -1
- package/dist/types/contact/IAbstractContactStore.js +0 -3
- package/dist/types/contact/IAbstractContactStore.js.map +0 -1
- package/dist/types/contact/contact.d.ts +0 -254
- package/dist/types/contact/contact.d.ts.map +0 -1
- package/dist/types/contact/contact.js +0 -30
- package/dist/types/contact/contact.js.map +0 -1
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.d.ts +0 -47
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.d.ts.map +0 -1
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js +0 -3
- package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js.map +0 -1
- package/dist/types/digitalCredential/digitalCredential.d.ts +0 -73
- package/dist/types/digitalCredential/digitalCredential.d.ts.map +0 -1
- package/dist/types/digitalCredential/digitalCredential.js +0 -79
- package/dist/types/digitalCredential/digitalCredential.js.map +0 -1
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +0 -17
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts.map +0 -1
- package/dist/types/eventLogger/IAbstractEventLoggerStore.js +0 -3
- package/dist/types/eventLogger/IAbstractEventLoggerStore.js.map +0 -1
- package/dist/types/eventLogger/eventLogger.d.ts +0 -4
- package/dist/types/eventLogger/eventLogger.d.ts.map +0 -1
- package/dist/types/eventLogger/eventLogger.js +0 -3
- package/dist/types/eventLogger/eventLogger.js.map +0 -1
- package/dist/types/index.d.ts +0 -15
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -31
- package/dist/types/index.js.map +0 -1
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +0 -59
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts.map +0 -1
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +0 -3
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js.map +0 -1
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +0 -132
- package/dist/types/issuanceBranding/issuanceBranding.d.ts.map +0 -1
- package/dist/types/issuanceBranding/issuanceBranding.js +0 -3
- package/dist/types/issuanceBranding/issuanceBranding.js.map +0 -1
- package/dist/types/machineState/IAbstractMachineStateStore.d.ts +0 -58
- package/dist/types/machineState/IAbstractMachineStateStore.d.ts.map +0 -1
- package/dist/types/machineState/IAbstractMachineStateStore.js +0 -3
- package/dist/types/machineState/IAbstractMachineStateStore.js.map +0 -1
- package/dist/types/presentationDefinition/IAbstractPDStore.d.ts +0 -17
- package/dist/types/presentationDefinition/IAbstractPDStore.d.ts.map +0 -1
- package/dist/types/presentationDefinition/IAbstractPDStore.js +0 -3
- package/dist/types/presentationDefinition/IAbstractPDStore.js.map +0 -1
- package/dist/types/presentationDefinition/presentationDefinition.d.ts +0 -18
- package/dist/types/presentationDefinition/presentationDefinition.d.ts.map +0 -1
- package/dist/types/presentationDefinition/presentationDefinition.js +0 -3
- package/dist/types/presentationDefinition/presentationDefinition.js.map +0 -1
- package/dist/types/statusList/IAbstractStatusListStore.d.ts +0 -39
- package/dist/types/statusList/IAbstractStatusListStore.d.ts.map +0 -1
- package/dist/types/statusList/IAbstractStatusListStore.js +0 -3
- package/dist/types/statusList/IAbstractStatusListStore.js.map +0 -1
- package/dist/types/statusList/statusList.d.ts +0 -31
- package/dist/types/statusList/statusList.d.ts.map +0 -1
- package/dist/types/statusList/statusList.js +0 -3
- package/dist/types/statusList/statusList.js.map +0 -1
- package/dist/types/validation/validation.d.ts +0 -4
- package/dist/types/validation/validation.d.ts.map +0 -1
- package/dist/types/validation/validation.js +0 -3
- package/dist/types/validation/validation.js.map +0 -1
- package/dist/utils/FormattingUtils.d.ts +0 -2
- package/dist/utils/FormattingUtils.d.ts.map +0 -1
- package/dist/utils/FormattingUtils.js +0 -23
- package/dist/utils/FormattingUtils.js.map +0 -1
- package/dist/utils/SortingUtils.d.ts +0 -3
- package/dist/utils/SortingUtils.d.ts.map +0 -1
- package/dist/utils/SortingUtils.js +0 -18
- package/dist/utils/SortingUtils.js.map +0 -1
- package/dist/utils/ValidatorUtils.d.ts +0 -4
- package/dist/utils/ValidatorUtils.d.ts.map +0 -1
- package/dist/utils/ValidatorUtils.js +0 -13
- package/dist/utils/ValidatorUtils.js.map +0 -1
- package/dist/utils/contact/MappingUtils.d.ts +0 -52
- package/dist/utils/contact/MappingUtils.d.ts.map +0 -1
- package/dist/utils/contact/MappingUtils.js +0 -458
- package/dist/utils/contact/MappingUtils.js.map +0 -1
- package/dist/utils/digitalCredential/MappingUtils.d.ts +0 -10
- package/dist/utils/digitalCredential/MappingUtils.d.ts.map +0 -1
- package/dist/utils/digitalCredential/MappingUtils.js +0 -139
- package/dist/utils/digitalCredential/MappingUtils.js.map +0 -1
- package/dist/utils/eventLogger/MappingUtils.d.ts +0 -8
- package/dist/utils/eventLogger/MappingUtils.d.ts.map +0 -1
- package/dist/utils/eventLogger/MappingUtils.js +0 -70
- package/dist/utils/eventLogger/MappingUtils.js.map +0 -1
- package/dist/utils/issuanceBranding/MappingUtils.d.ts +0 -24
- package/dist/utils/issuanceBranding/MappingUtils.d.ts.map +0 -1
- package/dist/utils/issuanceBranding/MappingUtils.js +0 -109
- package/dist/utils/issuanceBranding/MappingUtils.js.map +0 -1
- package/dist/utils/presentationDefinition/MappingUtils.d.ts +0 -6
- package/dist/utils/presentationDefinition/MappingUtils.d.ts.map +0 -1
- package/dist/utils/presentationDefinition/MappingUtils.js +0 -52
- package/dist/utils/presentationDefinition/MappingUtils.js.map +0 -1
- package/dist/utils/statusList/MappingUtils.d.ts +0 -5
- package/dist/utils/statusList/MappingUtils.d.ts.map +0 -1
- package/dist/utils/statusList/MappingUtils.js +0 -69
- package/dist/utils/statusList/MappingUtils.js.map +0 -1
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,1730 @@
|
|
|
1
|
+
import typeorm, { BaseEntity as BaseEntity$8, FindOptionsOrder, FindOptionsWhere, DataSource, Repository, MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
import { ManagedIdentifierOptsOrResult } from '@sphereon/ssi-sdk-ext.identifier-resolution';
|
|
3
|
+
import { IIdentifier } from '@veramo/core';
|
|
4
|
+
import { HasherSync, DcqlQueryREST, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, StatusListType, RequireOneOf, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
|
|
5
|
+
import { AuditLoggingEvent, ActivityLoggingEvent, PartialAuditLoggingEvent, PartialActivityLoggingEvent, PartyCorrelationType, CredentialType } from '@sphereon/ssi-sdk.core';
|
|
6
|
+
import { IPresentationDefinition } from '@sphereon/pex';
|
|
7
|
+
|
|
8
|
+
interface ILocaleBranding {
|
|
9
|
+
id: string;
|
|
10
|
+
alias?: string;
|
|
11
|
+
locale?: string;
|
|
12
|
+
logo?: IImageAttributes;
|
|
13
|
+
description?: string;
|
|
14
|
+
background?: IBackgroundAttributes;
|
|
15
|
+
text?: ITextAttributes;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
lastUpdatedAt: Date;
|
|
18
|
+
}
|
|
19
|
+
interface IImageAttributes {
|
|
20
|
+
id: string;
|
|
21
|
+
uri?: string;
|
|
22
|
+
dataUri?: string;
|
|
23
|
+
mediaType?: string;
|
|
24
|
+
alt?: string;
|
|
25
|
+
dimensions?: IImageDimensions;
|
|
26
|
+
}
|
|
27
|
+
interface IBasicImageAttributes extends Omit<IImageAttributes, 'id' | 'dimensions'> {
|
|
28
|
+
dimensions?: IBasicImageDimensions;
|
|
29
|
+
}
|
|
30
|
+
interface IPartialImageAttributes extends Partial<Omit<IImageAttributes, 'dimensions'>> {
|
|
31
|
+
dimensions?: IPartialImageDimensions;
|
|
32
|
+
}
|
|
33
|
+
interface IBackgroundAttributes {
|
|
34
|
+
id: string;
|
|
35
|
+
color?: string;
|
|
36
|
+
image?: IImageAttributes;
|
|
37
|
+
}
|
|
38
|
+
interface IBasicBackgroundAttributes extends Omit<IBackgroundAttributes, 'id' | 'image'> {
|
|
39
|
+
image?: IBasicImageAttributes;
|
|
40
|
+
}
|
|
41
|
+
interface IPartialBackgroundAttributes extends Partial<Omit<IBackgroundAttributes, 'image'>> {
|
|
42
|
+
image?: IPartialImageAttributes;
|
|
43
|
+
}
|
|
44
|
+
interface ITextAttributes {
|
|
45
|
+
id: string;
|
|
46
|
+
color?: string;
|
|
47
|
+
}
|
|
48
|
+
interface IBasicTextAttributes extends Omit<ITextAttributes, 'id'> {
|
|
49
|
+
}
|
|
50
|
+
interface IPartialTextAttributes extends Partial<ITextAttributes> {
|
|
51
|
+
}
|
|
52
|
+
interface IImageDimensions {
|
|
53
|
+
id: string;
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
}
|
|
57
|
+
interface IBasicImageDimensions extends Omit<IImageDimensions, 'id'> {
|
|
58
|
+
}
|
|
59
|
+
interface IPartialImageDimensions extends Partial<IImageDimensions> {
|
|
60
|
+
}
|
|
61
|
+
interface ICredentialClaim {
|
|
62
|
+
id: string;
|
|
63
|
+
key: string;
|
|
64
|
+
name: string;
|
|
65
|
+
}
|
|
66
|
+
interface IBasicCredentialClaim extends Omit<ICredentialClaim, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
interface IPartialCredentialClaim extends Partial<ICredentialClaim> {
|
|
69
|
+
}
|
|
70
|
+
interface ICredentialLocaleBranding extends ILocaleBranding {
|
|
71
|
+
claims?: Array<ICredentialClaim>;
|
|
72
|
+
}
|
|
73
|
+
interface IBasicCredentialLocaleBranding extends Omit<ICredentialLocaleBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'logo' | 'background' | 'text' | 'claims'> {
|
|
74
|
+
logo?: IBasicImageAttributes;
|
|
75
|
+
background?: IBasicBackgroundAttributes;
|
|
76
|
+
text?: IBasicTextAttributes;
|
|
77
|
+
claims?: Array<IBasicCredentialClaim>;
|
|
78
|
+
}
|
|
79
|
+
interface IPartialCredentialLocaleBranding extends Partial<Omit<ICredentialLocaleBranding, 'logo' | 'background' | 'text' | 'claims'>> {
|
|
80
|
+
logo?: IPartialImageAttributes;
|
|
81
|
+
background?: IPartialBackgroundAttributes;
|
|
82
|
+
text?: IPartialTextAttributes;
|
|
83
|
+
claims?: IPartialCredentialClaim;
|
|
84
|
+
}
|
|
85
|
+
interface ICredentialBranding {
|
|
86
|
+
id: string;
|
|
87
|
+
issuerCorrelationId: string;
|
|
88
|
+
vcHash: string;
|
|
89
|
+
localeBranding: Array<ICredentialLocaleBranding>;
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
lastUpdatedAt: Date;
|
|
92
|
+
}
|
|
93
|
+
interface IBasicCredentialBranding extends Omit<ICredentialBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'localeBranding'> {
|
|
94
|
+
localeBranding: Array<IBasicCredentialLocaleBranding>;
|
|
95
|
+
}
|
|
96
|
+
interface IPartialCredentialBranding extends Partial<Omit<ICredentialBranding, 'localeBranding'>> {
|
|
97
|
+
localeBranding?: IPartialCredentialLocaleBranding;
|
|
98
|
+
}
|
|
99
|
+
interface IIssuerLocaleBranding extends ILocaleBranding {
|
|
100
|
+
clientUri?: string;
|
|
101
|
+
tosUri?: string;
|
|
102
|
+
policyUri?: string;
|
|
103
|
+
contacts?: Array<string>;
|
|
104
|
+
}
|
|
105
|
+
interface IBasicIssuerLocaleBranding extends Omit<IIssuerLocaleBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'logo' | 'background' | 'text'> {
|
|
106
|
+
logo?: IBasicImageAttributes;
|
|
107
|
+
background?: IBasicBackgroundAttributes;
|
|
108
|
+
text?: IBasicTextAttributes;
|
|
109
|
+
}
|
|
110
|
+
interface IPartialIssuerLocaleBranding extends Partial<Omit<IIssuerLocaleBranding, 'logo' | 'background' | 'text' | 'contacts'>> {
|
|
111
|
+
logo?: IPartialImageAttributes;
|
|
112
|
+
background?: IPartialBackgroundAttributes;
|
|
113
|
+
text?: IPartialTextAttributes;
|
|
114
|
+
contacts?: string;
|
|
115
|
+
}
|
|
116
|
+
interface IIssuerBranding {
|
|
117
|
+
id: string;
|
|
118
|
+
issuerCorrelationId: string;
|
|
119
|
+
localeBranding: Array<IIssuerLocaleBranding>;
|
|
120
|
+
createdAt: Date;
|
|
121
|
+
lastUpdatedAt: Date;
|
|
122
|
+
}
|
|
123
|
+
interface IBasicIssuerBranding extends Omit<IIssuerBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'localeBranding'> {
|
|
124
|
+
localeBranding: Array<IBasicIssuerLocaleBranding>;
|
|
125
|
+
}
|
|
126
|
+
interface IPartialIssuerBranding extends Partial<Omit<IIssuerBranding, 'localeBranding'>> {
|
|
127
|
+
localeBranding?: IPartialIssuerLocaleBranding;
|
|
128
|
+
}
|
|
129
|
+
interface ICredentialBrandingFilter extends IPartialCredentialBranding {
|
|
130
|
+
}
|
|
131
|
+
interface ICredentialLocaleBrandingFilter extends IPartialCredentialLocaleBranding {
|
|
132
|
+
credentialBranding?: IPartialCredentialBranding;
|
|
133
|
+
}
|
|
134
|
+
interface IIssuerBrandingFilter extends IPartialIssuerBranding {
|
|
135
|
+
}
|
|
136
|
+
interface IIssuerLocaleBrandingFilter extends IPartialIssuerLocaleBranding {
|
|
137
|
+
issuerBranding?: IPartialIssuerBranding;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
type FindCredentialBrandingArgs = Array<ICredentialBrandingFilter>;
|
|
141
|
+
type FindCredentialLocaleBrandingArgs = Array<ICredentialLocaleBrandingFilter>;
|
|
142
|
+
type FindIssuerBrandingArgs = Array<IIssuerBrandingFilter>;
|
|
143
|
+
type FindIssuerLocaleBrandingArgs = Array<IIssuerLocaleBrandingFilter>;
|
|
144
|
+
interface IAddCredentialBrandingArgs {
|
|
145
|
+
vcHash: string;
|
|
146
|
+
issuerCorrelationId: string;
|
|
147
|
+
localeBranding: Array<IBasicCredentialLocaleBranding>;
|
|
148
|
+
}
|
|
149
|
+
interface IGetCredentialBrandingArgs {
|
|
150
|
+
filter?: FindCredentialBrandingArgs;
|
|
151
|
+
}
|
|
152
|
+
interface IUpdateCredentialBrandingArgs {
|
|
153
|
+
credentialBranding: Omit<ICredentialBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
|
|
154
|
+
}
|
|
155
|
+
interface IRemoveCredentialBrandingArgs {
|
|
156
|
+
filter: FindCredentialBrandingArgs;
|
|
157
|
+
}
|
|
158
|
+
interface IAddCredentialLocaleBrandingArgs {
|
|
159
|
+
credentialBrandingId: string;
|
|
160
|
+
localeBranding: Array<IBasicCredentialLocaleBranding>;
|
|
161
|
+
}
|
|
162
|
+
interface IUpdateCredentialLocaleBrandingArgs {
|
|
163
|
+
localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
|
|
164
|
+
}
|
|
165
|
+
interface IRemoveCredentialLocaleBrandingArgs {
|
|
166
|
+
filter: FindCredentialLocaleBrandingArgs;
|
|
167
|
+
}
|
|
168
|
+
interface IGetCredentialLocaleBrandingArgs {
|
|
169
|
+
filter?: FindCredentialLocaleBrandingArgs;
|
|
170
|
+
}
|
|
171
|
+
interface IAddIssuerBrandingArgs {
|
|
172
|
+
issuerCorrelationId: string;
|
|
173
|
+
localeBranding: Array<IBasicIssuerLocaleBranding>;
|
|
174
|
+
}
|
|
175
|
+
interface IGetIssuerBrandingArgs {
|
|
176
|
+
filter?: FindIssuerBrandingArgs;
|
|
177
|
+
}
|
|
178
|
+
interface IUpdateIssuerBrandingArgs {
|
|
179
|
+
issuerBranding: Omit<IIssuerBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
|
|
180
|
+
}
|
|
181
|
+
interface IRemoveIssuerBrandingArgs {
|
|
182
|
+
filter: FindIssuerBrandingArgs;
|
|
183
|
+
}
|
|
184
|
+
interface IAddIssuerLocaleBrandingArgs {
|
|
185
|
+
issuerBrandingId: string;
|
|
186
|
+
localeBranding: Array<IBasicIssuerLocaleBranding>;
|
|
187
|
+
}
|
|
188
|
+
interface IUpdateIssuerLocaleBrandingArgs {
|
|
189
|
+
localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
|
|
190
|
+
}
|
|
191
|
+
interface IRemoveIssuerLocaleBrandingArgs {
|
|
192
|
+
filter: FindIssuerLocaleBrandingArgs;
|
|
193
|
+
}
|
|
194
|
+
interface IGetIssuerLocaleBrandingArgs {
|
|
195
|
+
filter?: FindIssuerLocaleBrandingArgs;
|
|
196
|
+
}
|
|
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): "vc+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
|
+
type MetadataTypes = string | number | Date | boolean | undefined;
|
|
352
|
+
interface IMetadataEntity {
|
|
353
|
+
label: string;
|
|
354
|
+
stringValue?: string;
|
|
355
|
+
numberValue?: number;
|
|
356
|
+
dateValue?: Date;
|
|
357
|
+
boolValue?: boolean;
|
|
358
|
+
}
|
|
359
|
+
type Party = {
|
|
360
|
+
id: string;
|
|
361
|
+
uri?: string;
|
|
362
|
+
roles: Array<CredentialRole>;
|
|
363
|
+
ownerId?: string;
|
|
364
|
+
tenantId?: string;
|
|
365
|
+
identities: Array<Identity>;
|
|
366
|
+
electronicAddresses: Array<ElectronicAddress>;
|
|
367
|
+
physicalAddresses: Array<PhysicalAddress>;
|
|
368
|
+
contact: Contact;
|
|
369
|
+
partyType: PartyType;
|
|
370
|
+
/**
|
|
371
|
+
* TODO: Integrate branding logic here in the future. What we should do is make the issuance branding plugin part of the contact-manager and retrieve any branding there is.
|
|
372
|
+
*
|
|
373
|
+
* Currently, we are only defining the branding type within the SDK without implementing the associated logic. This is because:
|
|
374
|
+
* 1. We are combining two types from the SSI-SDK to create a new type that will be used across multiple places in the wallets (web & mobile).
|
|
375
|
+
* 2. While it makes sense to have this combined type in the SDK, the logic to support database connections for these types is complex. The types belong to different modules, and we don't use them together currently.
|
|
376
|
+
* 3. Implementing the full logic now would require significant changes and cross-module interactions, which we don't have the time to address at present.
|
|
377
|
+
*
|
|
378
|
+
* For now, we are defining the type here and will use it in the mobile wallet has the logic for it. This is a temporary solution until we have the resources to integrate the branding logic fully.
|
|
379
|
+
*/
|
|
380
|
+
branding?: IIssuerLocaleBranding;
|
|
381
|
+
relationships: Array<PartyRelationship>;
|
|
382
|
+
createdAt: Date;
|
|
383
|
+
lastUpdatedAt: Date;
|
|
384
|
+
};
|
|
385
|
+
type NonPersistedParty = Omit<Party, 'id' | 'identities' | 'electronicAddresses' | 'physicalAddresses' | 'contact' | 'roles' | 'partyType' | 'relationships' | 'createdAt' | 'lastUpdatedAt'> & {
|
|
386
|
+
identities?: Array<NonPersistedIdentity>;
|
|
387
|
+
electronicAddresses?: Array<NonPersistedElectronicAddress>;
|
|
388
|
+
physicalAddresses?: Array<NonPersistedPhysicalAddress>;
|
|
389
|
+
contact: NonPersistedContact;
|
|
390
|
+
partyType: NonPersistedPartyType;
|
|
391
|
+
relationships?: Array<NonPersistedPartyRelationship>;
|
|
392
|
+
};
|
|
393
|
+
type PartialParty = Partial<Omit<Party, 'identities' | 'electronicAddresses' | 'physicalAddresses' | 'contact' | 'partyType' | 'relationships'>> & {
|
|
394
|
+
identities?: PartialIdentity;
|
|
395
|
+
electronicAddresses?: PartialElectronicAddress;
|
|
396
|
+
physicalAddresses?: PartialPhysicalAddress;
|
|
397
|
+
contact?: PartialContact;
|
|
398
|
+
partyType?: PartialPartyType;
|
|
399
|
+
relationships?: PartialPartyRelationship;
|
|
400
|
+
};
|
|
401
|
+
type Identity = {
|
|
402
|
+
id: string;
|
|
403
|
+
alias: string;
|
|
404
|
+
ownerId?: string;
|
|
405
|
+
tenantId?: string;
|
|
406
|
+
origin: IdentityOrigin;
|
|
407
|
+
roles: Array<CredentialRole>;
|
|
408
|
+
identifier: CorrelationIdentifier;
|
|
409
|
+
connection?: Connection;
|
|
410
|
+
metadata?: Array<MetadataItem<MetadataTypes>>;
|
|
411
|
+
createdAt: Date;
|
|
412
|
+
lastUpdatedAt: Date;
|
|
413
|
+
};
|
|
414
|
+
type NonPersistedIdentity = Omit<Identity, 'id' | 'identifier' | 'connection' | 'metadata' | 'origin' | 'createdAt' | 'lastUpdatedAt'> & {
|
|
415
|
+
origin: IdentityOrigin;
|
|
416
|
+
identifier: NonPersistedCorrelationIdentifier;
|
|
417
|
+
connection?: NonPersistedConnection;
|
|
418
|
+
metadata?: Array<NonPersistedMetadataItem<MetadataTypes>>;
|
|
419
|
+
};
|
|
420
|
+
type PartialIdentity = Partial<Omit<Identity, 'identifier' | 'connection' | 'metadata' | 'origin' | 'roles'>> & {
|
|
421
|
+
identifier?: PartialCorrelationIdentifier;
|
|
422
|
+
connection?: PartialConnection;
|
|
423
|
+
metadata?: PartialMetadataItem<MetadataTypes>;
|
|
424
|
+
origin?: IdentityOrigin;
|
|
425
|
+
roles?: CredentialRole;
|
|
426
|
+
partyId?: string;
|
|
427
|
+
};
|
|
428
|
+
type MetadataItem<T extends MetadataTypes> = {
|
|
429
|
+
id: string;
|
|
430
|
+
label: string;
|
|
431
|
+
value: T;
|
|
432
|
+
};
|
|
433
|
+
type NonPersistedMetadataItem<T extends MetadataTypes> = Omit<MetadataItem<T>, 'id'>;
|
|
434
|
+
type PartialMetadataItem<T extends MetadataTypes> = Partial<MetadataItem<T>>;
|
|
435
|
+
type CorrelationIdentifier = {
|
|
436
|
+
id: string;
|
|
437
|
+
ownerId?: string;
|
|
438
|
+
tenantId?: string;
|
|
439
|
+
type: CorrelationIdentifierType;
|
|
440
|
+
correlationId: string;
|
|
441
|
+
};
|
|
442
|
+
type NonPersistedCorrelationIdentifier = Omit<CorrelationIdentifier, 'id'>;
|
|
443
|
+
type PartialCorrelationIdentifier = Partial<CorrelationIdentifier>;
|
|
444
|
+
type Connection = {
|
|
445
|
+
id: string;
|
|
446
|
+
ownerId?: string;
|
|
447
|
+
tenantId?: string;
|
|
448
|
+
type: ConnectionType;
|
|
449
|
+
config: ConnectionConfig;
|
|
450
|
+
};
|
|
451
|
+
type NonPersistedConnection = Omit<Connection, 'id' | 'config'> & {
|
|
452
|
+
config: NonPersistedConnectionConfig;
|
|
453
|
+
};
|
|
454
|
+
type PartialConnection = Partial<Omit<Connection, 'config'>> & {
|
|
455
|
+
config: PartialConnectionConfig;
|
|
456
|
+
};
|
|
457
|
+
type OpenIdConfig = {
|
|
458
|
+
id: string;
|
|
459
|
+
clientId: string;
|
|
460
|
+
clientSecret: string;
|
|
461
|
+
ownerId?: string;
|
|
462
|
+
tenantId?: string;
|
|
463
|
+
scopes: Array<string>;
|
|
464
|
+
issuer: string;
|
|
465
|
+
redirectUrl: string;
|
|
466
|
+
dangerouslyAllowInsecureHttpRequests: boolean;
|
|
467
|
+
clientAuthMethod: 'basic' | 'post' | undefined;
|
|
468
|
+
};
|
|
469
|
+
type NonPersistedOpenIdConfig = Omit<OpenIdConfig, 'id'>;
|
|
470
|
+
type PartialOpenIdConfig = Partial<OpenIdConfig>;
|
|
471
|
+
type DidAuthConfig = {
|
|
472
|
+
id: string;
|
|
473
|
+
idOpts: ManagedIdentifierOptsOrResult;
|
|
474
|
+
stateId: string;
|
|
475
|
+
ownerId?: string;
|
|
476
|
+
tenantId?: string;
|
|
477
|
+
redirectUrl: string;
|
|
478
|
+
sessionId: string;
|
|
479
|
+
};
|
|
480
|
+
type NonPersistedDidAuthConfig = Omit<DidAuthConfig, 'id'>;
|
|
481
|
+
type PartialDidAuthConfig = Partial<Omit<DidAuthConfig, 'identifier'>> & {
|
|
482
|
+
identifier: Partial<IIdentifier>;
|
|
483
|
+
};
|
|
484
|
+
type ConnectionConfig = OpenIdConfig | DidAuthConfig;
|
|
485
|
+
type NonPersistedConnectionConfig = NonPersistedDidAuthConfig | NonPersistedOpenIdConfig;
|
|
486
|
+
type PartialConnectionConfig = PartialOpenIdConfig | PartialDidAuthConfig;
|
|
487
|
+
type NaturalPerson = {
|
|
488
|
+
id: string;
|
|
489
|
+
firstName: string;
|
|
490
|
+
lastName: string;
|
|
491
|
+
middleName?: string;
|
|
492
|
+
displayName: string;
|
|
493
|
+
metadata?: Array<MetadataItem<MetadataTypes>>;
|
|
494
|
+
ownerId?: string;
|
|
495
|
+
tenantId?: string;
|
|
496
|
+
createdAt: Date;
|
|
497
|
+
lastUpdatedAt: Date;
|
|
498
|
+
};
|
|
499
|
+
type NonPersistedNaturalPerson = Omit<NaturalPerson, 'id' | 'createdAt' | 'lastUpdatedAt'>;
|
|
500
|
+
type PartialNaturalPerson = Partial<Omit<NaturalPerson, 'metadata'>> & {
|
|
501
|
+
metadata?: PartialMetadataItem<MetadataTypes>;
|
|
502
|
+
};
|
|
503
|
+
type Organization = {
|
|
504
|
+
id: string;
|
|
505
|
+
legalName: string;
|
|
506
|
+
displayName: string;
|
|
507
|
+
metadata?: Array<MetadataItem<MetadataTypes>>;
|
|
508
|
+
ownerId?: string;
|
|
509
|
+
tenantId?: string;
|
|
510
|
+
createdAt: Date;
|
|
511
|
+
lastUpdatedAt: Date;
|
|
512
|
+
};
|
|
513
|
+
type NonPersistedOrganization = Omit<Organization, 'id' | 'createdAt' | 'lastUpdatedAt'>;
|
|
514
|
+
type PartialOrganization = Partial<Omit<Organization, 'metadata'>> & {
|
|
515
|
+
metadata?: PartialMetadataItem<MetadataTypes>;
|
|
516
|
+
};
|
|
517
|
+
type Contact = NaturalPerson | Organization;
|
|
518
|
+
type NonPersistedContact = NonPersistedNaturalPerson | NonPersistedOrganization;
|
|
519
|
+
type PartialContact = PartialNaturalPerson | PartialOrganization;
|
|
520
|
+
type PartyType = {
|
|
521
|
+
id: string;
|
|
522
|
+
type: PartyTypeType;
|
|
523
|
+
origin: PartyOrigin;
|
|
524
|
+
name: string;
|
|
525
|
+
tenantId: string;
|
|
526
|
+
description?: string;
|
|
527
|
+
createdAt: Date;
|
|
528
|
+
lastUpdatedAt: Date;
|
|
529
|
+
};
|
|
530
|
+
type NonPersistedPartyType = Omit<PartyType, 'id' | 'createdAt' | 'lastUpdatedAt'> & {
|
|
531
|
+
id?: string;
|
|
532
|
+
};
|
|
533
|
+
type PartialPartyType = Partial<PartyType>;
|
|
534
|
+
type PartyRelationship = {
|
|
535
|
+
id: string;
|
|
536
|
+
leftId: string;
|
|
537
|
+
rightId: string;
|
|
538
|
+
ownerId?: string;
|
|
539
|
+
tenantId?: string;
|
|
540
|
+
createdAt: Date;
|
|
541
|
+
lastUpdatedAt: Date;
|
|
542
|
+
};
|
|
543
|
+
type NonPersistedPartyRelationship = Omit<PartyRelationship, 'id' | 'createdAt' | 'lastUpdatedAt'>;
|
|
544
|
+
type PartialPartyRelationship = Partial<PartyRelationship>;
|
|
545
|
+
type ElectronicAddress = {
|
|
546
|
+
id: string;
|
|
547
|
+
type: ElectronicAddressType;
|
|
548
|
+
electronicAddress: string;
|
|
549
|
+
ownerId?: string;
|
|
550
|
+
tenantId?: string;
|
|
551
|
+
createdAt: Date;
|
|
552
|
+
lastUpdatedAt: Date;
|
|
553
|
+
};
|
|
554
|
+
type NonPersistedElectronicAddress = Omit<ElectronicAddress, 'id' | 'createdAt' | 'lastUpdatedAt'>;
|
|
555
|
+
type PartialElectronicAddress = Partial<ElectronicAddress> & {
|
|
556
|
+
partyId?: string;
|
|
557
|
+
};
|
|
558
|
+
type PhysicalAddress = {
|
|
559
|
+
id: string;
|
|
560
|
+
type: PhysicalAddressType;
|
|
561
|
+
streetName: string;
|
|
562
|
+
streetNumber: string;
|
|
563
|
+
postalCode: string;
|
|
564
|
+
cityName: string;
|
|
565
|
+
provinceName: string;
|
|
566
|
+
countryCode: string;
|
|
567
|
+
buildingName?: string;
|
|
568
|
+
ownerId?: string;
|
|
569
|
+
tenantId?: string;
|
|
570
|
+
createdAt: Date;
|
|
571
|
+
lastUpdatedAt: Date;
|
|
572
|
+
};
|
|
573
|
+
type NonPersistedPhysicalAddress = Omit<PhysicalAddress, 'id' | 'createdAt' | 'lastUpdatedAt'>;
|
|
574
|
+
type PartialPhysicalAddress = Partial<PhysicalAddress> & {
|
|
575
|
+
partyId?: string;
|
|
576
|
+
};
|
|
577
|
+
type ElectronicAddressType = 'email' | 'phone';
|
|
578
|
+
type PhysicalAddressType = 'home' | 'visit' | 'postal';
|
|
579
|
+
declare enum ConnectionType {
|
|
580
|
+
OPENID_CONNECT = "OIDC",
|
|
581
|
+
SIOPv2 = "SIOPv2",
|
|
582
|
+
SIOPv2_OpenID4VP = "SIOPv2+OpenID4VP"
|
|
583
|
+
}
|
|
584
|
+
declare enum CorrelationIdentifierType {
|
|
585
|
+
DID = "did",
|
|
586
|
+
URL = "url"
|
|
587
|
+
}
|
|
588
|
+
declare enum PartyTypeType {
|
|
589
|
+
NATURAL_PERSON = "naturalPerson",
|
|
590
|
+
ORGANIZATION = "organization"
|
|
591
|
+
}
|
|
592
|
+
declare enum PartyOrigin {
|
|
593
|
+
INTERNAL = "INTERNAL",
|
|
594
|
+
EXTERNAL = "EXTERNAL"
|
|
595
|
+
}
|
|
596
|
+
declare enum IdentityOrigin {
|
|
597
|
+
INTERNAL = "INTERNAL",
|
|
598
|
+
EXTERNAL = "EXTERNAL"
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
type FindPartyArgs = Array<PartialParty>;
|
|
602
|
+
type FindIdentityArgs = Array<PartialIdentity>;
|
|
603
|
+
type FindPartyTypeArgs = Array<PartialPartyType>;
|
|
604
|
+
type FindRelationshipArgs = Array<PartialPartyRelationship>;
|
|
605
|
+
type FindElectronicAddressArgs = Array<PartialElectronicAddress>;
|
|
606
|
+
type FindPhysicalAddressArgs = Array<PartialPhysicalAddress>;
|
|
607
|
+
type GetPartyArgs = {
|
|
608
|
+
partyId: string;
|
|
609
|
+
};
|
|
610
|
+
type GetPartiesArgs = {
|
|
611
|
+
filter?: FindPartyArgs;
|
|
612
|
+
};
|
|
613
|
+
type AddPartyArgs = {
|
|
614
|
+
uri?: string;
|
|
615
|
+
partyType: NonPersistedPartyType;
|
|
616
|
+
contact: NonPersistedContact;
|
|
617
|
+
identities?: Array<NonPersistedIdentity>;
|
|
618
|
+
electronicAddresses?: Array<NonPersistedElectronicAddress>;
|
|
619
|
+
physicalAddresses?: Array<NonPersistedPhysicalAddress>;
|
|
620
|
+
};
|
|
621
|
+
type UpdatePartyArgs = {
|
|
622
|
+
party: Omit<Party, 'identities' | 'electronicAddresses' | 'partyType' | 'createdAt' | 'lastUpdatedAt'>;
|
|
623
|
+
};
|
|
624
|
+
type RemovePartyArgs = {
|
|
625
|
+
partyId: string;
|
|
626
|
+
};
|
|
627
|
+
type GetIdentityArgs = {
|
|
628
|
+
identityId: string;
|
|
629
|
+
};
|
|
630
|
+
type GetIdentitiesArgs = {
|
|
631
|
+
filter?: FindIdentityArgs;
|
|
632
|
+
};
|
|
633
|
+
type AddIdentityArgs = {
|
|
634
|
+
partyId: string;
|
|
635
|
+
identity: NonPersistedIdentity;
|
|
636
|
+
};
|
|
637
|
+
type UpdateIdentityArgs = {
|
|
638
|
+
identity: Identity;
|
|
639
|
+
};
|
|
640
|
+
type RemoveIdentityArgs = {
|
|
641
|
+
identityId: string;
|
|
642
|
+
};
|
|
643
|
+
type RemoveRelationshipArgs = {
|
|
644
|
+
relationshipId: string;
|
|
645
|
+
};
|
|
646
|
+
type AddRelationshipArgs = {
|
|
647
|
+
leftId: string;
|
|
648
|
+
rightId: string;
|
|
649
|
+
};
|
|
650
|
+
type GetRelationshipArgs = {
|
|
651
|
+
relationshipId: string;
|
|
652
|
+
};
|
|
653
|
+
type GetRelationshipsArgs = {
|
|
654
|
+
filter: FindRelationshipArgs;
|
|
655
|
+
};
|
|
656
|
+
type UpdateRelationshipArgs = {
|
|
657
|
+
relationship: Omit<PartyRelationship, 'createdAt' | 'lastUpdatedAt'>;
|
|
658
|
+
};
|
|
659
|
+
type AddPartyTypeArgs = {
|
|
660
|
+
type: PartyTypeType;
|
|
661
|
+
origin: PartyOrigin;
|
|
662
|
+
name: string;
|
|
663
|
+
tenantId: string;
|
|
664
|
+
description?: string;
|
|
665
|
+
};
|
|
666
|
+
type GetPartyTypeArgs = {
|
|
667
|
+
partyTypeId: string;
|
|
668
|
+
};
|
|
669
|
+
type GetPartyTypesArgs = {
|
|
670
|
+
filter?: FindPartyTypeArgs;
|
|
671
|
+
};
|
|
672
|
+
type UpdatePartyTypeArgs = {
|
|
673
|
+
partyType: Omit<PartyType, 'createdAt' | 'lastUpdatedAt'>;
|
|
674
|
+
};
|
|
675
|
+
type RemovePartyTypeArgs = {
|
|
676
|
+
partyTypeId: string;
|
|
677
|
+
};
|
|
678
|
+
type GetElectronicAddressArgs = {
|
|
679
|
+
electronicAddressId: string;
|
|
680
|
+
};
|
|
681
|
+
type GetElectronicAddressesArgs = {
|
|
682
|
+
filter?: FindElectronicAddressArgs;
|
|
683
|
+
};
|
|
684
|
+
type AddElectronicAddressArgs = {
|
|
685
|
+
partyId: string;
|
|
686
|
+
electronicAddress: NonPersistedElectronicAddress;
|
|
687
|
+
};
|
|
688
|
+
type UpdateElectronicAddressArgs = {
|
|
689
|
+
electronicAddress: ElectronicAddress;
|
|
690
|
+
};
|
|
691
|
+
type RemoveElectronicAddressArgs = {
|
|
692
|
+
electronicAddressId: string;
|
|
693
|
+
};
|
|
694
|
+
type GetPhysicalAddressArgs = {
|
|
695
|
+
physicalAddressId: string;
|
|
696
|
+
};
|
|
697
|
+
type GetPhysicalAddressesArgs = {
|
|
698
|
+
filter?: FindPhysicalAddressArgs;
|
|
699
|
+
};
|
|
700
|
+
type AddPhysicalAddressArgs = {
|
|
701
|
+
partyId: string;
|
|
702
|
+
physicalAddress: NonPersistedPhysicalAddress;
|
|
703
|
+
};
|
|
704
|
+
type UpdatePhysicalAddressArgs = {
|
|
705
|
+
physicalAddress: PhysicalAddress;
|
|
706
|
+
};
|
|
707
|
+
type RemovePhysicalAddressArgs = {
|
|
708
|
+
physicalAddressId: string;
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
type PresentationDefinitionItem = {
|
|
712
|
+
id: string;
|
|
713
|
+
definitionId: string;
|
|
714
|
+
tenantId?: string;
|
|
715
|
+
version: string;
|
|
716
|
+
name?: string;
|
|
717
|
+
purpose?: string;
|
|
718
|
+
definitionPayload: IPresentationDefinition;
|
|
719
|
+
dcqlPayload?: DcqlQueryREST;
|
|
720
|
+
createdAt: Date;
|
|
721
|
+
lastUpdatedAt: Date;
|
|
722
|
+
};
|
|
723
|
+
type NonPersistedPresentationDefinitionItem = Omit<PresentationDefinitionItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
|
|
724
|
+
type PartialPresentationDefinitionItem = Partial<PresentationDefinitionItem>;
|
|
725
|
+
type PresentationDefinitionItemFilter = Partial<Omit<PresentationDefinitionItem, 'definitionPayload' | 'dcqlPayload'>>;
|
|
726
|
+
|
|
727
|
+
type FindDefinitionArgs = Array<PresentationDefinitionItemFilter>;
|
|
728
|
+
type GetDefinitionArgs = {
|
|
729
|
+
itemId: string;
|
|
730
|
+
};
|
|
731
|
+
type HasDefinitionArgs = GetDefinitionArgs;
|
|
732
|
+
type GetDefinitionsArgs = {
|
|
733
|
+
filter?: FindDefinitionArgs;
|
|
734
|
+
};
|
|
735
|
+
type HasDefinitionsArgs = GetDefinitionsArgs;
|
|
736
|
+
type AddDefinitionArgs = NonPersistedPresentationDefinitionItem;
|
|
737
|
+
type UpdateDefinitionArgs = PresentationDefinitionItem;
|
|
738
|
+
type DeleteDefinitionArgs = {
|
|
739
|
+
itemId: string;
|
|
740
|
+
};
|
|
741
|
+
type DeleteDefinitionsArgs = GetDefinitionsArgs;
|
|
742
|
+
|
|
743
|
+
type ValidationConstraint = {
|
|
744
|
+
[x: string]: string;
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
declare class StatusListEntryEntity extends BaseEntity$8 {
|
|
748
|
+
statusListId: string;
|
|
749
|
+
statusListIndex: number;
|
|
750
|
+
statusList: StatusListEntity;
|
|
751
|
+
credentialId?: string;
|
|
752
|
+
credentialHash?: string;
|
|
753
|
+
entryCorrelationId?: string;
|
|
754
|
+
value?: string;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
declare const BaseEntity$7: typeof typeorm.BaseEntity;
|
|
758
|
+
|
|
759
|
+
declare abstract class StatusListEntity extends BaseEntity$7 {
|
|
760
|
+
id: string;
|
|
761
|
+
correlationId: string;
|
|
762
|
+
length: number;
|
|
763
|
+
issuer: string | IIssuer;
|
|
764
|
+
driverType: StatusListDriverType;
|
|
765
|
+
credentialIdMode: StatusListCredentialIdMode;
|
|
766
|
+
proofFormat: CredentialProofFormat;
|
|
767
|
+
statusListCredential?: StatusListCredential;
|
|
768
|
+
statusListEntries: StatusListEntryEntity[];
|
|
769
|
+
}
|
|
770
|
+
declare class StatusList2021Entity extends StatusListEntity {
|
|
771
|
+
indexingDirection: StatusListIndexingDirection;
|
|
772
|
+
statusPurpose: StatusPurpose2021;
|
|
773
|
+
}
|
|
774
|
+
declare class OAuthStatusListEntity extends StatusListEntity {
|
|
775
|
+
bitsPerStatus: number;
|
|
776
|
+
expiresAt?: Date;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
interface IStatusListEntity {
|
|
780
|
+
id: string;
|
|
781
|
+
correlationId: string;
|
|
782
|
+
driverType: StatusListDriverType;
|
|
783
|
+
credentialIdMode: StatusListCredentialIdMode;
|
|
784
|
+
length: number;
|
|
785
|
+
issuer: string | IIssuer;
|
|
786
|
+
type: StatusListType;
|
|
787
|
+
proofFormat: CredentialProofFormat;
|
|
788
|
+
statusListCredential?: StatusListCredential;
|
|
789
|
+
}
|
|
790
|
+
interface IStatusList2021Entity extends IStatusListEntity {
|
|
791
|
+
indexingDirection: StatusListIndexingDirection;
|
|
792
|
+
statusPurpose: StatusPurpose2021;
|
|
793
|
+
}
|
|
794
|
+
interface IOAuthStatusListEntity extends IStatusListEntity {
|
|
795
|
+
bitsPerStatus: number;
|
|
796
|
+
expiresAt?: Date;
|
|
797
|
+
}
|
|
798
|
+
type IStatusListEntryEntity = RequireOneOf<{
|
|
799
|
+
statusList: StatusListEntity;
|
|
800
|
+
statusListId: string;
|
|
801
|
+
value?: string;
|
|
802
|
+
statusListIndex: number;
|
|
803
|
+
credentialHash?: string;
|
|
804
|
+
credentialId?: string;
|
|
805
|
+
correlationId?: string;
|
|
806
|
+
}, 'statusList' | 'statusListId'>;
|
|
807
|
+
|
|
808
|
+
type FindStatusListArgs = FindOptionsWhere<IStatusList2021Entity | IOAuthStatusListEntity>[];
|
|
809
|
+
type FindStatusListEntryArgs = FindOptionsWhere<IStatusListEntryEntity>[] | FindOptionsWhere<IStatusListEntryEntity>;
|
|
810
|
+
interface IStatusListEntryAvailableArgs {
|
|
811
|
+
statusListId?: string;
|
|
812
|
+
correlationId?: string;
|
|
813
|
+
statusListIndex: number | number[];
|
|
814
|
+
}
|
|
815
|
+
interface IGetStatusListEntryByIndexArgs {
|
|
816
|
+
statusListId?: string;
|
|
817
|
+
statusListCorrelationId?: string;
|
|
818
|
+
statusListIndex?: number;
|
|
819
|
+
entryCorrelationId?: string;
|
|
820
|
+
errorOnNotFound?: boolean;
|
|
821
|
+
}
|
|
822
|
+
interface IGetStatusListEntryByCredentialIdArgs {
|
|
823
|
+
statusListId?: string;
|
|
824
|
+
statusListCorrelationId?: string;
|
|
825
|
+
entryCorrelationId?: string;
|
|
826
|
+
credentialId: string;
|
|
827
|
+
errorOnNotFound?: boolean;
|
|
828
|
+
}
|
|
829
|
+
interface IGetStatusListEntriesArgs {
|
|
830
|
+
statusListId: string;
|
|
831
|
+
filter?: FindStatusListEntryArgs;
|
|
832
|
+
}
|
|
833
|
+
type IAddStatusListEntryArgs = IStatusListEntryEntity;
|
|
834
|
+
interface IGetStatusListArgs {
|
|
835
|
+
id?: string;
|
|
836
|
+
correlationId?: string;
|
|
837
|
+
}
|
|
838
|
+
type IRemoveStatusListArgs = IGetStatusListArgs;
|
|
839
|
+
interface IGetStatusListsArgs {
|
|
840
|
+
filter?: FindStatusListArgs;
|
|
841
|
+
}
|
|
842
|
+
type IAddStatusListArgs = IStatusListEntity;
|
|
843
|
+
type IUpdateStatusListIndexArgs = IStatusListEntity;
|
|
844
|
+
|
|
845
|
+
type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id' | 'type'>;
|
|
846
|
+
type NonPersistedActivityLoggingEvent = Omit<ActivityLoggingEvent, 'id' | 'type'>;
|
|
847
|
+
|
|
848
|
+
type FindAuditLoggingEventArgs = Array<PartialAuditLoggingEvent>;
|
|
849
|
+
type FindActivityLoggingEventArgs = Array<PartialActivityLoggingEvent>;
|
|
850
|
+
type StoreAuditEventArgs = {
|
|
851
|
+
event: NonPersistedAuditLoggingEvent;
|
|
852
|
+
};
|
|
853
|
+
type StoreActivityEventArgs = {
|
|
854
|
+
event: NonPersistedActivityLoggingEvent;
|
|
855
|
+
};
|
|
856
|
+
type GetAuditEventsArgs = {
|
|
857
|
+
filter?: FindAuditLoggingEventArgs;
|
|
858
|
+
};
|
|
859
|
+
type GetActivityEventsArgs = {
|
|
860
|
+
filter?: FindActivityLoggingEventArgs;
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
type StoreMachineStatePersistArgs = Omit<StoreMachineStateInfo, 'createdAt' | 'updatedAt'>;
|
|
864
|
+
type StoreMachineStatesFindActiveArgs = Partial<Pick<StoreMachineStateInfo, 'machineName' | 'tenantId' | 'instanceId'>>;
|
|
865
|
+
type FindMachineStatesFilterArgs = Array<Partial<Omit<StoreMachineStateInfo, 'state'>>>;
|
|
866
|
+
type StoreFindMachineStatesArgs = {
|
|
867
|
+
filter: FindMachineStatesFilterArgs;
|
|
868
|
+
};
|
|
869
|
+
type StoreMachineStateGetArgs = Pick<StoreMachineStateInfo, 'instanceId' | 'tenantId'>;
|
|
870
|
+
type StoreMachineStateDeleteArgs = StoreMachineStateGetArgs;
|
|
871
|
+
type StoreMachineStateDeleteExpiredArgs = {
|
|
872
|
+
machineName?: string;
|
|
873
|
+
tenantId?: string;
|
|
874
|
+
deleteDoneStates?: boolean;
|
|
875
|
+
};
|
|
876
|
+
interface StoreMachineStateInfo {
|
|
877
|
+
/**
|
|
878
|
+
* Unique instance ID of the machine
|
|
879
|
+
*/
|
|
880
|
+
instanceId: string;
|
|
881
|
+
/**
|
|
882
|
+
* Session Id of the machine. Not necessarily unique
|
|
883
|
+
*/
|
|
884
|
+
sessionId?: string;
|
|
885
|
+
/**
|
|
886
|
+
* Machine name
|
|
887
|
+
*/
|
|
888
|
+
machineName: string;
|
|
889
|
+
/**
|
|
890
|
+
* The latest state name. Can be empty for a newly initialize machine
|
|
891
|
+
*/
|
|
892
|
+
latestStateName?: string;
|
|
893
|
+
/**
|
|
894
|
+
* event types like SET_TOC, SET_FIRSTNAME, .... Will be xstate.init on a newly initialized machine
|
|
895
|
+
*/
|
|
896
|
+
latestEventType: string;
|
|
897
|
+
/**
|
|
898
|
+
* Serialized Machine state
|
|
899
|
+
*/
|
|
900
|
+
state: string;
|
|
901
|
+
/**
|
|
902
|
+
* Represents the creation date
|
|
903
|
+
*/
|
|
904
|
+
createdAt: Date;
|
|
905
|
+
/**
|
|
906
|
+
* Represents the expiration date
|
|
907
|
+
*/
|
|
908
|
+
expiresAt?: Date;
|
|
909
|
+
/**
|
|
910
|
+
* Represents the update date
|
|
911
|
+
*/
|
|
912
|
+
updatedAt: Date;
|
|
913
|
+
/**
|
|
914
|
+
* Represents a counter for tracking updates.
|
|
915
|
+
*/
|
|
916
|
+
updatedCount: number;
|
|
917
|
+
completedAt?: Date;
|
|
918
|
+
tenantId?: string;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
declare const BaseEntity$6: typeof typeorm.BaseEntity;
|
|
922
|
+
|
|
923
|
+
declare class CorrelationIdentifierEntity extends BaseEntity$6 {
|
|
924
|
+
id: string;
|
|
925
|
+
type: CorrelationIdentifierType;
|
|
926
|
+
correlationId: string;
|
|
927
|
+
ownerId?: string;
|
|
928
|
+
tenantId?: string;
|
|
929
|
+
identity: IdentityEntity;
|
|
930
|
+
validate(): Promise<void>;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
declare class IdentityMetadataItemEntity extends BaseEntity$8 implements IMetadataEntity {
|
|
934
|
+
id: string;
|
|
935
|
+
label: string;
|
|
936
|
+
valueType: string;
|
|
937
|
+
stringValue?: string;
|
|
938
|
+
numberValue?: number;
|
|
939
|
+
dateValue?: Date;
|
|
940
|
+
boolValue?: boolean;
|
|
941
|
+
identity: IdentityEntity;
|
|
942
|
+
validate(): Promise<void>;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
declare class PartyTypeEntity {
|
|
946
|
+
id: string;
|
|
947
|
+
type: PartyTypeType;
|
|
948
|
+
origin: PartyOrigin;
|
|
949
|
+
name: string;
|
|
950
|
+
description?: string;
|
|
951
|
+
tenantId: string;
|
|
952
|
+
parties: Array<PartyEntity>;
|
|
953
|
+
createdAt: Date;
|
|
954
|
+
lastUpdatedAt: Date;
|
|
955
|
+
updateUpdatedDate(): void;
|
|
956
|
+
validate(): Promise<void>;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
declare const BaseEntity$5: typeof typeorm.BaseEntity;
|
|
960
|
+
|
|
961
|
+
declare class ContactMetadataItemEntity extends BaseEntity$5 implements IMetadataEntity {
|
|
962
|
+
id: string;
|
|
963
|
+
label: string;
|
|
964
|
+
valueType: string;
|
|
965
|
+
stringValue?: string;
|
|
966
|
+
numberValue?: number;
|
|
967
|
+
dateValue?: Date;
|
|
968
|
+
boolValue?: boolean;
|
|
969
|
+
contact: BaseContactEntity;
|
|
970
|
+
validate(): Promise<void>;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
declare const BaseEntity$4: typeof typeorm.BaseEntity;
|
|
974
|
+
|
|
975
|
+
declare abstract class BaseContactEntity extends BaseEntity$4 {
|
|
976
|
+
id: string;
|
|
977
|
+
createdAt: Date;
|
|
978
|
+
lastUpdatedAt: Date;
|
|
979
|
+
party: PartyEntity;
|
|
980
|
+
metadata: Array<ContactMetadataItemEntity>;
|
|
981
|
+
updateUpdatedDate(): void;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
declare class PartyRelationshipEntity {
|
|
985
|
+
id: string;
|
|
986
|
+
left: PartyEntity;
|
|
987
|
+
leftId: string;
|
|
988
|
+
right: PartyEntity;
|
|
989
|
+
rightId: string;
|
|
990
|
+
ownerId?: string;
|
|
991
|
+
tenantId?: string;
|
|
992
|
+
createdAt: Date;
|
|
993
|
+
lastUpdatedAt: Date;
|
|
994
|
+
updateUpdatedDate(): void;
|
|
995
|
+
checkRelationshipSides(): Promise<void>;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
declare const BaseEntity$3: typeof typeorm.BaseEntity;
|
|
999
|
+
|
|
1000
|
+
declare class ElectronicAddressEntity extends BaseEntity$3 {
|
|
1001
|
+
id: string;
|
|
1002
|
+
type: ElectronicAddressType;
|
|
1003
|
+
electronicAddress: string;
|
|
1004
|
+
party: PartyEntity;
|
|
1005
|
+
partyId?: string;
|
|
1006
|
+
ownerId?: string;
|
|
1007
|
+
tenantId?: string;
|
|
1008
|
+
createdAt: Date;
|
|
1009
|
+
lastUpdatedAt: Date;
|
|
1010
|
+
updateUpdatedDate(): void;
|
|
1011
|
+
validate(): Promise<void>;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
declare class PhysicalAddressEntity extends BaseEntity$8 {
|
|
1015
|
+
id: string;
|
|
1016
|
+
type: PhysicalAddressType;
|
|
1017
|
+
streetName: string;
|
|
1018
|
+
streetNumber: string;
|
|
1019
|
+
postalCode: string;
|
|
1020
|
+
cityName: string;
|
|
1021
|
+
provinceName: string;
|
|
1022
|
+
countryCode: string;
|
|
1023
|
+
buildingName?: string;
|
|
1024
|
+
ownerId?: string;
|
|
1025
|
+
tenantId?: string;
|
|
1026
|
+
party: PartyEntity;
|
|
1027
|
+
partyId?: string;
|
|
1028
|
+
createdAt: Date;
|
|
1029
|
+
lastUpdatedAt: Date;
|
|
1030
|
+
updateUpdatedDate(): void;
|
|
1031
|
+
validate(): Promise<void>;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
declare class PartyEntity extends BaseEntity$8 {
|
|
1035
|
+
id: string;
|
|
1036
|
+
uri?: string;
|
|
1037
|
+
ownerId?: string;
|
|
1038
|
+
tenantId?: string;
|
|
1039
|
+
identities: Array<IdentityEntity>;
|
|
1040
|
+
electronicAddresses: Array<ElectronicAddressEntity>;
|
|
1041
|
+
physicalAddresses: Array<PhysicalAddressEntity>;
|
|
1042
|
+
partyType: PartyTypeEntity;
|
|
1043
|
+
contact: BaseContactEntity;
|
|
1044
|
+
relationships: Array<PartyRelationshipEntity>;
|
|
1045
|
+
createdAt: Date;
|
|
1046
|
+
lastUpdatedAt: Date;
|
|
1047
|
+
updateUpdatedDate(): void;
|
|
1048
|
+
validate(): Promise<void>;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
declare class IdentityEntity extends BaseEntity$8 {
|
|
1052
|
+
id: string;
|
|
1053
|
+
alias: string;
|
|
1054
|
+
origin: IdentityOrigin;
|
|
1055
|
+
ownerId?: string;
|
|
1056
|
+
tenantId?: string;
|
|
1057
|
+
roles: Array<CredentialRole>;
|
|
1058
|
+
identifier: CorrelationIdentifierEntity;
|
|
1059
|
+
connection?: ConnectionEntity;
|
|
1060
|
+
metadata: Array<IdentityMetadataItemEntity>;
|
|
1061
|
+
createdAt: Date;
|
|
1062
|
+
lastUpdatedAt: Date;
|
|
1063
|
+
party: PartyEntity;
|
|
1064
|
+
partyId?: string;
|
|
1065
|
+
updateUpdatedDate(): void;
|
|
1066
|
+
validate(): Promise<void>;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
declare const BaseEntity$2: typeof typeorm.BaseEntity;
|
|
1070
|
+
|
|
1071
|
+
declare class ConnectionEntity extends BaseEntity$2 {
|
|
1072
|
+
id: string;
|
|
1073
|
+
type: ConnectionType;
|
|
1074
|
+
tenantId?: string;
|
|
1075
|
+
ownerId?: string;
|
|
1076
|
+
config: BaseConfigEntity;
|
|
1077
|
+
identity: IdentityEntity;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
declare const BaseEntity$1: typeof typeorm.BaseEntity;
|
|
1081
|
+
|
|
1082
|
+
declare abstract class BaseConfigEntity extends BaseEntity$1 {
|
|
1083
|
+
id: string;
|
|
1084
|
+
connection?: ConnectionEntity;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
declare class ImageDimensionsEntity extends BaseEntity$8 {
|
|
1088
|
+
id: string;
|
|
1089
|
+
width: number;
|
|
1090
|
+
height: number;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
declare class ImageAttributesEntity extends BaseEntity$8 {
|
|
1094
|
+
id: string;
|
|
1095
|
+
uri?: string;
|
|
1096
|
+
dataUri?: string;
|
|
1097
|
+
mediaType?: string;
|
|
1098
|
+
alt?: string;
|
|
1099
|
+
dimensions?: ImageDimensionsEntity;
|
|
1100
|
+
validate(): Promise<undefined>;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
declare class BackgroundAttributesEntity extends BaseEntity$8 {
|
|
1104
|
+
id: string;
|
|
1105
|
+
color?: string;
|
|
1106
|
+
image?: ImageAttributesEntity;
|
|
1107
|
+
validate(): Promise<undefined>;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
declare class TextAttributesEntity extends BaseEntity$8 {
|
|
1111
|
+
id: string;
|
|
1112
|
+
color?: string;
|
|
1113
|
+
validate(): Promise<undefined>;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
declare const BaseEntity: typeof typeorm.BaseEntity;
|
|
1117
|
+
|
|
1118
|
+
declare class BaseLocaleBrandingEntity extends BaseEntity {
|
|
1119
|
+
id: string;
|
|
1120
|
+
alias?: string;
|
|
1121
|
+
locale?: string;
|
|
1122
|
+
logo?: ImageAttributesEntity;
|
|
1123
|
+
description?: string;
|
|
1124
|
+
background?: BackgroundAttributesEntity;
|
|
1125
|
+
text?: TextAttributesEntity;
|
|
1126
|
+
createdAt: Date;
|
|
1127
|
+
lastUpdatedAt: Date;
|
|
1128
|
+
updateUpdatedDate(): void;
|
|
1129
|
+
validate(): Promise<undefined>;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
declare class DidAuthConfigEntity extends BaseConfigEntity {
|
|
1133
|
+
identifier: string;
|
|
1134
|
+
redirectUrl: string;
|
|
1135
|
+
sessionId: string;
|
|
1136
|
+
ownerId?: string;
|
|
1137
|
+
tenantId?: string;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
declare class OpenIdConfigEntity extends BaseConfigEntity {
|
|
1141
|
+
clientId: string;
|
|
1142
|
+
clientSecret: string;
|
|
1143
|
+
scopes: Array<string>;
|
|
1144
|
+
issuer: string;
|
|
1145
|
+
redirectUrl: string;
|
|
1146
|
+
dangerouslyAllowInsecureHttpRequests: boolean;
|
|
1147
|
+
clientAuthMethod: 'basic' | 'post' | undefined;
|
|
1148
|
+
ownerId?: string;
|
|
1149
|
+
tenantId?: string;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
declare class CredentialClaimsEntity extends BaseEntity$8 {
|
|
1153
|
+
id: string;
|
|
1154
|
+
key: string;
|
|
1155
|
+
name: string;
|
|
1156
|
+
credentialLocaleBranding: CredentialLocaleBrandingEntity;
|
|
1157
|
+
validate(): Promise<undefined>;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
declare class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
1161
|
+
credentialBranding: CredentialBrandingEntity;
|
|
1162
|
+
claims: Array<CredentialClaimsEntity>;
|
|
1163
|
+
credentialBrandingId: string;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
declare class CredentialBrandingEntity extends BaseEntity$8 {
|
|
1167
|
+
id: string;
|
|
1168
|
+
vcHash: string;
|
|
1169
|
+
issuerCorrelationId: string;
|
|
1170
|
+
localeBranding: Array<CredentialLocaleBrandingEntity>;
|
|
1171
|
+
createdAt: Date;
|
|
1172
|
+
lastUpdatedAt: Date;
|
|
1173
|
+
updateUpdatedDate(): void;
|
|
1174
|
+
validate(): Promise<undefined>;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
declare class IssuerBrandingEntity extends BaseEntity$8 {
|
|
1178
|
+
id: string;
|
|
1179
|
+
issuerCorrelationId: string;
|
|
1180
|
+
localeBranding: Array<IssuerLocaleBrandingEntity>;
|
|
1181
|
+
createdAt: Date;
|
|
1182
|
+
lastUpdatedAt: Date;
|
|
1183
|
+
updateUpdatedDate(): void;
|
|
1184
|
+
validate(): Promise<undefined>;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
1188
|
+
issuerBranding: IssuerBrandingEntity;
|
|
1189
|
+
clientUri?: string;
|
|
1190
|
+
tosUri?: string;
|
|
1191
|
+
policyUri?: string;
|
|
1192
|
+
contacts?: Array<string>;
|
|
1193
|
+
issuerBrandingId: string;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* @class MachineStateInfoEntity
|
|
1198
|
+
* Represents a machine state. It allows to continue a machine at a later point in time at the point it was left of
|
|
1199
|
+
*
|
|
1200
|
+
* @param {string} instanceId - The instance ID of the machine state.
|
|
1201
|
+
* @param {string} [sessionId] - The session ID of the machine state. (optional)
|
|
1202
|
+
* @param {string} machineName - The name of the machine.
|
|
1203
|
+
* @param {string} [latestStateName] - The name of the latest state. (optional)
|
|
1204
|
+
* @param {string} latestEventType - The type of the latest event.
|
|
1205
|
+
* @param {string} state - The current state of the machine.
|
|
1206
|
+
* @param {Date} createdAt - The date and time when the machine state was created.
|
|
1207
|
+
* @param {Date} updatedAt - The date and time when the machine state was last updated.
|
|
1208
|
+
* @param {number} updatedCount - The number of times the machine state has been updated.
|
|
1209
|
+
* @param {Date} [expiresAt] - The date and time when the machine state expires. (optional)
|
|
1210
|
+
* @param {Date} [completedAt] - The date and time when the machine state was completed. (optional)
|
|
1211
|
+
* @param {string} [tenantId] - The ID of the tenant associated with the machine state. (optional)
|
|
1212
|
+
*/
|
|
1213
|
+
declare class MachineStateInfoEntity extends BaseEntity$8 {
|
|
1214
|
+
instanceId: string;
|
|
1215
|
+
sessionId?: string;
|
|
1216
|
+
machineName: string;
|
|
1217
|
+
latestStateName?: string;
|
|
1218
|
+
latestEventType: string;
|
|
1219
|
+
state: string;
|
|
1220
|
+
createdAt: Date;
|
|
1221
|
+
updatedAt: Date;
|
|
1222
|
+
updatedCount: number;
|
|
1223
|
+
expiresAt?: Date;
|
|
1224
|
+
completedAt?: Date;
|
|
1225
|
+
tenantId?: string;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
declare class AuditEventEntity extends BaseEntity$8 {
|
|
1229
|
+
id: string;
|
|
1230
|
+
timestamp: Date;
|
|
1231
|
+
type: LoggingEventType;
|
|
1232
|
+
level: LogLevel;
|
|
1233
|
+
correlationId: string;
|
|
1234
|
+
system: System;
|
|
1235
|
+
subSystemType: SubSystem;
|
|
1236
|
+
actionType: ActionType;
|
|
1237
|
+
actionSubType: ActionSubType;
|
|
1238
|
+
initiatorType: InitiatorType;
|
|
1239
|
+
systemCorrelationIdType?: SystemCorrelationIdType;
|
|
1240
|
+
systemCorrelationId?: string;
|
|
1241
|
+
systemAlias?: string;
|
|
1242
|
+
partyCorrelationType?: PartyCorrelationType;
|
|
1243
|
+
partyCorrelationId?: string;
|
|
1244
|
+
partyAlias?: string;
|
|
1245
|
+
description: string;
|
|
1246
|
+
credentialType?: CredentialType;
|
|
1247
|
+
credentialHash?: string;
|
|
1248
|
+
parentCredentialHash?: string;
|
|
1249
|
+
originalCredential?: string;
|
|
1250
|
+
sharePurpose?: string;
|
|
1251
|
+
data?: string;
|
|
1252
|
+
diagnosticData?: string;
|
|
1253
|
+
createdAt: Date;
|
|
1254
|
+
lastUpdatedAt: Date;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
declare class PresentationDefinitionItemEntity extends BaseEntity$8 {
|
|
1258
|
+
id: string;
|
|
1259
|
+
definitionId: string;
|
|
1260
|
+
version: string;
|
|
1261
|
+
tenantId?: string;
|
|
1262
|
+
purpose?: string;
|
|
1263
|
+
name?: string;
|
|
1264
|
+
definitionPayload: string;
|
|
1265
|
+
dcqlPayload: string;
|
|
1266
|
+
createdAt: Date;
|
|
1267
|
+
lastUpdatedAt: Date;
|
|
1268
|
+
updateUpdatedDate(): void;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
declare class Oid4vcStateEntity<StateType> extends BaseEntity$8 {
|
|
1272
|
+
id: string;
|
|
1273
|
+
lookups?: Array<string>;
|
|
1274
|
+
stateId?: string;
|
|
1275
|
+
correlationId?: string;
|
|
1276
|
+
state: StateType;
|
|
1277
|
+
createdAt: Date;
|
|
1278
|
+
updatedAt: Date;
|
|
1279
|
+
expiresAt?: Date;
|
|
1280
|
+
tenantId?: string;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
declare abstract class AbstractContactStore {
|
|
1284
|
+
abstract getParty(args: GetPartyArgs): Promise<Party>;
|
|
1285
|
+
abstract getParties(args?: GetPartiesArgs): Promise<Array<Party>>;
|
|
1286
|
+
abstract addParty(args: AddPartyArgs): Promise<Party>;
|
|
1287
|
+
abstract updateParty(args: UpdatePartyArgs): Promise<Party>;
|
|
1288
|
+
abstract removeParty(args: RemovePartyArgs): Promise<void>;
|
|
1289
|
+
abstract getIdentity(args: GetIdentityArgs): Promise<Identity>;
|
|
1290
|
+
abstract getIdentities(args?: GetIdentitiesArgs): Promise<Array<Identity>>;
|
|
1291
|
+
abstract addIdentity(args: AddIdentityArgs): Promise<Identity>;
|
|
1292
|
+
abstract updateIdentity(args: UpdateIdentityArgs): Promise<Identity>;
|
|
1293
|
+
abstract removeIdentity(args: RemoveIdentityArgs): Promise<void>;
|
|
1294
|
+
abstract getRelationship(args: GetRelationshipArgs): Promise<PartyRelationship>;
|
|
1295
|
+
abstract getRelationships(args?: GetRelationshipsArgs): Promise<Array<PartyRelationship>>;
|
|
1296
|
+
abstract addRelationship(args: AddRelationshipArgs): Promise<PartyRelationship>;
|
|
1297
|
+
abstract updateRelationship(args: UpdateRelationshipArgs): Promise<PartyRelationship>;
|
|
1298
|
+
abstract removeRelationship(args: RemoveRelationshipArgs): Promise<void>;
|
|
1299
|
+
abstract getPartyType(args: GetPartyTypeArgs): Promise<PartyType>;
|
|
1300
|
+
abstract getPartyTypes(args?: GetPartyTypesArgs): Promise<Array<PartyType>>;
|
|
1301
|
+
abstract addPartyType(args: AddPartyTypeArgs): Promise<PartyType>;
|
|
1302
|
+
abstract updatePartyType(args: UpdatePartyTypeArgs): Promise<PartyType>;
|
|
1303
|
+
abstract removePartyType(args: RemovePartyTypeArgs): Promise<void>;
|
|
1304
|
+
abstract getElectronicAddress(args: GetElectronicAddressArgs): Promise<ElectronicAddress>;
|
|
1305
|
+
abstract getElectronicAddresses(args?: GetElectronicAddressesArgs): Promise<Array<ElectronicAddress>>;
|
|
1306
|
+
abstract addElectronicAddress(args: AddElectronicAddressArgs): Promise<ElectronicAddress>;
|
|
1307
|
+
abstract updateElectronicAddress(args: UpdateElectronicAddressArgs): Promise<ElectronicAddress>;
|
|
1308
|
+
abstract removeElectronicAddress(args: RemoveElectronicAddressArgs): Promise<void>;
|
|
1309
|
+
abstract getPhysicalAddress(args: GetPhysicalAddressArgs): Promise<PhysicalAddress>;
|
|
1310
|
+
abstract getPhysicalAddresses(args?: GetPhysicalAddressesArgs): Promise<Array<PhysicalAddress>>;
|
|
1311
|
+
abstract addPhysicalAddress(args: AddPhysicalAddressArgs): Promise<PhysicalAddress>;
|
|
1312
|
+
abstract updatePhysicalAddress(args: UpdatePhysicalAddressArgs): Promise<PhysicalAddress>;
|
|
1313
|
+
abstract removePhysicalAddress(args: RemovePhysicalAddressArgs): Promise<void>;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
declare class ContactStore extends AbstractContactStore {
|
|
1317
|
+
private readonly dbConnection;
|
|
1318
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
1319
|
+
getParty: (args: GetPartyArgs) => Promise<Party>;
|
|
1320
|
+
getParties: (args?: GetPartiesArgs) => Promise<Array<Party>>;
|
|
1321
|
+
addParty: (args: AddPartyArgs) => Promise<Party>;
|
|
1322
|
+
updateParty: (args: UpdatePartyArgs) => Promise<Party>;
|
|
1323
|
+
removeParty: (args: RemovePartyArgs) => Promise<void>;
|
|
1324
|
+
getIdentity: (args: GetIdentityArgs) => Promise<Identity>;
|
|
1325
|
+
getIdentities: (args?: GetIdentitiesArgs) => Promise<Array<Identity>>;
|
|
1326
|
+
addIdentity: (args: AddIdentityArgs) => Promise<Identity>;
|
|
1327
|
+
updateIdentity: (args: UpdateIdentityArgs) => Promise<Identity>;
|
|
1328
|
+
removeIdentity: (args: RemoveIdentityArgs) => Promise<void>;
|
|
1329
|
+
addRelationship: (args: AddRelationshipArgs) => Promise<PartyRelationship>;
|
|
1330
|
+
getRelationship: (args: GetRelationshipArgs) => Promise<PartyRelationship>;
|
|
1331
|
+
getRelationships: (args?: GetRelationshipsArgs) => Promise<Array<PartyRelationship>>;
|
|
1332
|
+
updateRelationship: (args: UpdateRelationshipArgs) => Promise<PartyRelationship>;
|
|
1333
|
+
removeRelationship: (args: RemoveRelationshipArgs) => Promise<void>;
|
|
1334
|
+
addPartyType: (args: AddPartyTypeArgs) => Promise<PartyType>;
|
|
1335
|
+
getPartyType: (args: GetPartyTypeArgs) => Promise<PartyType>;
|
|
1336
|
+
getPartyTypes: (args?: GetPartyTypesArgs) => Promise<Array<PartyType>>;
|
|
1337
|
+
updatePartyType: (args: UpdatePartyTypeArgs) => Promise<PartyType>;
|
|
1338
|
+
removePartyType: (args: RemovePartyTypeArgs) => Promise<void>;
|
|
1339
|
+
getElectronicAddress: (args: GetElectronicAddressArgs) => Promise<ElectronicAddress>;
|
|
1340
|
+
getElectronicAddresses: (args?: GetElectronicAddressesArgs) => Promise<Array<ElectronicAddress>>;
|
|
1341
|
+
addElectronicAddress: (args: AddElectronicAddressArgs) => Promise<ElectronicAddress>;
|
|
1342
|
+
updateElectronicAddress: (args: UpdateElectronicAddressArgs) => Promise<ElectronicAddress>;
|
|
1343
|
+
removeElectronicAddress: (args: RemoveElectronicAddressArgs) => Promise<void>;
|
|
1344
|
+
getPhysicalAddress: (args: GetPhysicalAddressArgs) => Promise<PhysicalAddress>;
|
|
1345
|
+
getPhysicalAddresses: (args?: GetPhysicalAddressesArgs) => Promise<Array<PhysicalAddress>>;
|
|
1346
|
+
addPhysicalAddress: (args: AddPhysicalAddressArgs) => Promise<PhysicalAddress>;
|
|
1347
|
+
updatePhysicalAddress: (args: UpdatePhysicalAddressArgs) => Promise<PhysicalAddress>;
|
|
1348
|
+
removePhysicalAddress: (args: RemovePhysicalAddressArgs) => Promise<void>;
|
|
1349
|
+
private hasCorrectConnectionConfig;
|
|
1350
|
+
private hasCorrectPartyType;
|
|
1351
|
+
private deleteIdentities;
|
|
1352
|
+
private deleteElectronicAddresses;
|
|
1353
|
+
private deletePhysicalAddresses;
|
|
1354
|
+
private assertRelationshipSides;
|
|
1355
|
+
private buildFilters;
|
|
1356
|
+
private processCondition;
|
|
1357
|
+
private buildMetadataCondition;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
declare abstract class AbstractDigitalCredentialStore {
|
|
1361
|
+
abstract getCredential(args: GetCredentialArgs): Promise<DigitalCredential>;
|
|
1362
|
+
abstract getCredentials(args?: GetCredentialsArgs): Promise<GetCredentialsResponse>;
|
|
1363
|
+
abstract addCredential(args: AddCredentialArgs): Promise<DigitalCredential>;
|
|
1364
|
+
abstract updateCredentialState(args: UpdateCredentialStateArgs): Promise<DigitalCredential>;
|
|
1365
|
+
abstract removeCredential(args: RemoveCredentialArgs): Promise<boolean>;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
declare class DigitalCredentialStore extends AbstractDigitalCredentialStore {
|
|
1369
|
+
private readonly dbConnection;
|
|
1370
|
+
private dcRepo;
|
|
1371
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
1372
|
+
addCredential: (args: AddCredentialArgs) => Promise<DigitalCredential>;
|
|
1373
|
+
getCredential: (args: GetCredentialArgs) => Promise<DigitalCredential>;
|
|
1374
|
+
getCredentials: (args?: GetCredentialsArgs) => Promise<GetCredentialsResponse>;
|
|
1375
|
+
removeCredential: (args: RemoveCredentialArgs) => Promise<boolean>;
|
|
1376
|
+
private deleteTree;
|
|
1377
|
+
private getRepository;
|
|
1378
|
+
updateCredentialState: (args: UpdateCredentialStateArgs) => Promise<DigitalCredential>;
|
|
1379
|
+
private assertValidDigitalCredential;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
declare abstract class AbstractIssuanceBrandingStore {
|
|
1383
|
+
abstract addCredentialBranding(args: IAddCredentialBrandingArgs): Promise<ICredentialBranding>;
|
|
1384
|
+
abstract getCredentialBranding(args?: IGetCredentialBrandingArgs): Promise<Array<ICredentialBranding>>;
|
|
1385
|
+
abstract updateCredentialBranding(args: IUpdateCredentialBrandingArgs): Promise<ICredentialBranding>;
|
|
1386
|
+
abstract removeCredentialBranding(args: IRemoveCredentialBrandingArgs): Promise<void>;
|
|
1387
|
+
abstract addCredentialLocaleBranding(args: IAddCredentialLocaleBrandingArgs): Promise<ICredentialBranding>;
|
|
1388
|
+
abstract getCredentialLocaleBranding(args?: IGetCredentialLocaleBrandingArgs): Promise<Array<ICredentialLocaleBranding>>;
|
|
1389
|
+
abstract updateCredentialLocaleBranding(args: IUpdateCredentialLocaleBrandingArgs): Promise<ICredentialLocaleBranding>;
|
|
1390
|
+
abstract removeCredentialLocaleBranding(args: IRemoveCredentialLocaleBrandingArgs): Promise<void>;
|
|
1391
|
+
abstract addIssuerBranding(args: IAddIssuerBrandingArgs): Promise<IIssuerBranding>;
|
|
1392
|
+
abstract getIssuerBranding(args?: IGetIssuerBrandingArgs): Promise<Array<IIssuerBranding>>;
|
|
1393
|
+
abstract updateIssuerBranding(args: IUpdateIssuerBrandingArgs): Promise<IIssuerBranding>;
|
|
1394
|
+
abstract removeIssuerBranding(args: IRemoveIssuerBrandingArgs): Promise<void>;
|
|
1395
|
+
abstract addIssuerLocaleBranding(args: IAddIssuerLocaleBrandingArgs): Promise<IIssuerBranding>;
|
|
1396
|
+
abstract getIssuerLocaleBranding(args?: IGetIssuerLocaleBrandingArgs): Promise<Array<IIssuerLocaleBranding>>;
|
|
1397
|
+
abstract updateIssuerLocaleBranding(args: IUpdateIssuerLocaleBrandingArgs): Promise<IIssuerLocaleBranding>;
|
|
1398
|
+
abstract removeIssuerLocaleBranding(args: IRemoveIssuerLocaleBrandingArgs): Promise<void>;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
1402
|
+
private readonly dbConnection;
|
|
1403
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
1404
|
+
addCredentialBranding: (args: IAddCredentialBrandingArgs) => Promise<ICredentialBranding>;
|
|
1405
|
+
getCredentialBranding: (args?: IGetCredentialBrandingArgs) => Promise<Array<ICredentialBranding>>;
|
|
1406
|
+
removeCredentialBranding: (args: IRemoveCredentialBrandingArgs) => Promise<void>;
|
|
1407
|
+
updateCredentialBranding: (args: IUpdateCredentialBrandingArgs) => Promise<ICredentialBranding>;
|
|
1408
|
+
addCredentialLocaleBranding: (args: IAddCredentialLocaleBrandingArgs) => Promise<ICredentialBranding>;
|
|
1409
|
+
getCredentialLocaleBranding: (args?: IGetCredentialLocaleBrandingArgs) => Promise<Array<ICredentialLocaleBranding>>;
|
|
1410
|
+
removeCredentialLocaleBranding: (args: IRemoveCredentialLocaleBrandingArgs) => Promise<void>;
|
|
1411
|
+
updateCredentialLocaleBranding: (args: IUpdateCredentialLocaleBrandingArgs) => Promise<ICredentialLocaleBranding>;
|
|
1412
|
+
addIssuerBranding: (args: IAddIssuerBrandingArgs) => Promise<IIssuerBranding>;
|
|
1413
|
+
getIssuerBranding: (args?: IGetIssuerBrandingArgs) => Promise<Array<IIssuerBranding>>;
|
|
1414
|
+
removeIssuerBranding: (args: IRemoveIssuerBrandingArgs) => Promise<void>;
|
|
1415
|
+
updateIssuerBranding: (args: IUpdateIssuerBrandingArgs) => Promise<IIssuerBranding>;
|
|
1416
|
+
addIssuerLocaleBranding: (args: IAddIssuerLocaleBrandingArgs) => Promise<IIssuerBranding>;
|
|
1417
|
+
getIssuerLocaleBranding: (args?: IGetIssuerLocaleBrandingArgs) => Promise<Array<IIssuerLocaleBranding>>;
|
|
1418
|
+
removeIssuerLocaleBranding: (args: IRemoveIssuerLocaleBrandingArgs) => Promise<void>;
|
|
1419
|
+
updateIssuerLocaleBranding: (args: IUpdateIssuerLocaleBrandingArgs) => Promise<IIssuerLocaleBranding>;
|
|
1420
|
+
private hasDuplicateLocales;
|
|
1421
|
+
private removeLocaleBranding;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
interface IStatusListStore {
|
|
1425
|
+
getStatusList(args: IGetStatusListArgs): Promise<IStatusListEntity>;
|
|
1426
|
+
getStatusLists(args: IGetStatusListsArgs): Promise<Array<IStatusListEntity>>;
|
|
1427
|
+
removeStatusList(args: IRemoveStatusListArgs): Promise<boolean>;
|
|
1428
|
+
addStatusList(args: IAddStatusListArgs): Promise<IStatusListEntity>;
|
|
1429
|
+
updateStatusList(args: IUpdateStatusListIndexArgs): Promise<IStatusListEntity>;
|
|
1430
|
+
availableStatusListEntries(args: IStatusListEntryAvailableArgs): Promise<number[]>;
|
|
1431
|
+
addStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity>;
|
|
1432
|
+
updateStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity>;
|
|
1433
|
+
getStatusListEntryByIndex(args: IGetStatusListEntryByIndexArgs): Promise<StatusListEntryEntity | undefined>;
|
|
1434
|
+
getStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<StatusListEntryEntity | undefined>;
|
|
1435
|
+
removeStatusListEntryByIndex(args: IGetStatusListEntryByIndexArgs): Promise<boolean>;
|
|
1436
|
+
removeStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<boolean>;
|
|
1437
|
+
getStatusListEntries(args: IGetStatusListEntriesArgs): Promise<IStatusListEntryEntity[]>;
|
|
1438
|
+
getStatusList(args: IGetStatusListArgs): Promise<IStatusListEntity>;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
declare class StatusListStore implements IStatusListStore {
|
|
1442
|
+
private readonly _dbConnection;
|
|
1443
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
1444
|
+
/**
|
|
1445
|
+
* Gets the available status list indices from the provided indices. Meaning it will filter out any index that is already known.
|
|
1446
|
+
*
|
|
1447
|
+
* The idea is that the caller provides a set of random status list indices. We can relatively easy check against the DB in an optimized way.
|
|
1448
|
+
* If the status list is large it is probably best to also provide at least a good number of indices. So something like 10 or 20 values.
|
|
1449
|
+
* Callers are also expected to call this function multiple times if it does not yield results
|
|
1450
|
+
*
|
|
1451
|
+
* @param args
|
|
1452
|
+
*/
|
|
1453
|
+
availableStatusListEntries(args: IStatusListEntryAvailableArgs): Promise<number[]>;
|
|
1454
|
+
addStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity>;
|
|
1455
|
+
updateStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity>;
|
|
1456
|
+
getStatusListEntryByIndex({ statusListId, statusListCorrelationId, statusListIndex, entryCorrelationId, errorOnNotFound, }: IGetStatusListEntryByIndexArgs): Promise<StatusListEntryEntity | undefined>;
|
|
1457
|
+
getStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<StatusListEntryEntity | undefined>;
|
|
1458
|
+
removeStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<boolean>;
|
|
1459
|
+
removeStatusListEntryByIndex(args: IGetStatusListEntryByIndexArgs): Promise<boolean>;
|
|
1460
|
+
getStatusListEntries(args: IGetStatusListEntriesArgs): Promise<StatusListEntryEntity[]>;
|
|
1461
|
+
getStatusList(args: IGetStatusListArgs): Promise<IStatusListEntity>;
|
|
1462
|
+
private getStatusListEntity;
|
|
1463
|
+
getStatusLists(args: IGetStatusListsArgs): Promise<Array<IStatusListEntity>>;
|
|
1464
|
+
addStatusList(args: IAddStatusListArgs): Promise<IStatusListEntity>;
|
|
1465
|
+
updateStatusList(args: IUpdateStatusListIndexArgs): Promise<IStatusListEntity>;
|
|
1466
|
+
removeStatusList(args: IRemoveStatusListArgs): Promise<boolean>;
|
|
1467
|
+
private getDS;
|
|
1468
|
+
getStatusListRepo(type?: StatusListType): Promise<Repository<StatusListEntity>>;
|
|
1469
|
+
getStatusListEntryRepo(): Promise<Repository<StatusListEntryEntity>>;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
declare abstract class AbstractEventLoggerStore {
|
|
1473
|
+
abstract getAuditEvents(args: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>>;
|
|
1474
|
+
abstract getActivityEvents(args: GetActivityEventsArgs): Promise<Array<ActivityLoggingEvent>>;
|
|
1475
|
+
abstract storeAuditEvent(args: StoreAuditEventArgs): Promise<AuditLoggingEvent>;
|
|
1476
|
+
abstract storeActivityEvent(args: StoreActivityEventArgs): Promise<ActivityLoggingEvent>;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
declare class EventLoggerStore extends AbstractEventLoggerStore {
|
|
1480
|
+
private readonly dbConnection;
|
|
1481
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
1482
|
+
getAuditEvents: (args?: GetAuditEventsArgs) => Promise<Array<AuditLoggingEvent>>;
|
|
1483
|
+
storeAuditEvent: (args: StoreAuditEventArgs) => Promise<AuditLoggingEvent>;
|
|
1484
|
+
getActivityEvents: (args?: GetActivityEventsArgs) => Promise<Array<ActivityLoggingEvent>>;
|
|
1485
|
+
storeActivityEvent: (args: StoreActivityEventArgs) => Promise<ActivityLoggingEvent>;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Represents an abstract class for storing machine states.
|
|
1490
|
+
* This class provides methods for persisting, retrieving, and deleting machine states.
|
|
1491
|
+
*
|
|
1492
|
+
* @interface
|
|
1493
|
+
*/
|
|
1494
|
+
declare abstract class IAbstractMachineStateStore {
|
|
1495
|
+
/**
|
|
1496
|
+
* Persists the machine state.
|
|
1497
|
+
*
|
|
1498
|
+
* @param {StoreMachineStatePersistArgs} state - The object containing the machine state to persist.
|
|
1499
|
+
* @return {Promise<StoreMachineStateInfo>} - A Promise that resolves to the information about the persisted machine state.
|
|
1500
|
+
*/
|
|
1501
|
+
abstract persistMachineState(state: StoreMachineStatePersistArgs): Promise<StoreMachineStateInfo>;
|
|
1502
|
+
/**
|
|
1503
|
+
* Finds active machine states based on the given arguments.
|
|
1504
|
+
*
|
|
1505
|
+
* @param {StoreMachineStatesFindActiveArgs} args - The arguments for finding active machine states.
|
|
1506
|
+
* @return {Promise<Array<StoreMachineStateInfo>>} - A promise that resolves with an array of active machine states.
|
|
1507
|
+
*/
|
|
1508
|
+
abstract findActiveMachineStates(args: StoreMachineStatesFindActiveArgs): Promise<Array<StoreMachineStateInfo>>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Retrieves the state of a particular machine.
|
|
1511
|
+
*
|
|
1512
|
+
* @param {StoreMachineStateGetArgs} args - The arguments for retrieving the machine state.
|
|
1513
|
+
* @returns {Promise<StoreMachineStateInfo>} - A promise that resolves to the machine state information.
|
|
1514
|
+
*/
|
|
1515
|
+
abstract getMachineState(args: StoreMachineStateGetArgs): Promise<StoreMachineStateInfo>;
|
|
1516
|
+
/**
|
|
1517
|
+
* Finds the machine states based on the given arguments.
|
|
1518
|
+
*
|
|
1519
|
+
* @param {StoreFindMachineStatesArgs} [args] - The arguments to filter the machine states.
|
|
1520
|
+
* @returns {Promise<Array<StoreMachineStateInfo>>} - A promise that resolves to an array of machine state information.
|
|
1521
|
+
*/
|
|
1522
|
+
abstract findMachineStates(args?: StoreFindMachineStatesArgs): Promise<Array<StoreMachineStateInfo>>;
|
|
1523
|
+
/**
|
|
1524
|
+
* Deletes a machine state.
|
|
1525
|
+
*
|
|
1526
|
+
* @param {StoreMachineStateDeleteArgs} args - The arguments for deleting the machine state.
|
|
1527
|
+
* @return {Promise<boolean>} - A promise that resolves to a boolean indicating if the machine state was successfully deleted or not.
|
|
1528
|
+
*/
|
|
1529
|
+
abstract deleteMachineState(args: StoreMachineStateDeleteArgs): Promise<boolean>;
|
|
1530
|
+
/**
|
|
1531
|
+
* Deletes expired machine states from the database.
|
|
1532
|
+
*
|
|
1533
|
+
* @param {StoreMachineStateDeleteExpiredArgs} args - The arguments for deleting expired machine states.
|
|
1534
|
+
* @return {Promise<number>} - A promise that resolves to the number of deleted machine states.
|
|
1535
|
+
*/
|
|
1536
|
+
abstract deleteExpiredMachineStates(args: StoreMachineStateDeleteExpiredArgs): Promise<number>;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* Represents a data store for managing machine states.
|
|
1541
|
+
*/
|
|
1542
|
+
declare class MachineStateStore extends IAbstractMachineStateStore {
|
|
1543
|
+
private readonly _dbConnection;
|
|
1544
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
1545
|
+
persistMachineState(state: StoreMachineStatePersistArgs): Promise<StoreMachineStateInfo>;
|
|
1546
|
+
findActiveMachineStates(args: StoreMachineStatesFindActiveArgs): Promise<Array<StoreMachineStateInfo>>;
|
|
1547
|
+
findMachineStates(args?: StoreFindMachineStatesArgs): Promise<Array<StoreMachineStateInfo>>;
|
|
1548
|
+
getMachineState(args: StoreMachineStateGetArgs): Promise<StoreMachineStateInfo>;
|
|
1549
|
+
deleteMachineState(args: StoreMachineStateDeleteArgs): Promise<boolean>;
|
|
1550
|
+
deleteExpiredMachineStates(args: StoreMachineStateDeleteExpiredArgs): Promise<number>;
|
|
1551
|
+
protected static machineInfoFrom: (machineStateInfoEntity: MachineStateInfoEntity) => StoreMachineStateInfo;
|
|
1552
|
+
static machineStateInfoEntityFrom: (machineStateInfo: StoreMachineStateInfo | StoreMachineStatePersistArgs) => MachineStateInfoEntity;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
declare abstract class AbstractPDStore {
|
|
1556
|
+
abstract hasDefinition(args: GetDefinitionArgs): Promise<boolean>;
|
|
1557
|
+
abstract hasDefinitions(args: GetDefinitionsArgs): Promise<boolean>;
|
|
1558
|
+
abstract getDefinition(args: GetDefinitionArgs): Promise<PresentationDefinitionItem>;
|
|
1559
|
+
abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<PresentationDefinitionItem>>;
|
|
1560
|
+
abstract addDefinition(args: AddDefinitionArgs): Promise<PresentationDefinitionItem>;
|
|
1561
|
+
abstract updateDefinition(args: UpdateDefinitionArgs): Promise<PresentationDefinitionItem>;
|
|
1562
|
+
abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
|
|
1563
|
+
abstract deleteDefinitions(args: DeleteDefinitionsArgs): Promise<number>;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
declare class PDStore extends AbstractPDStore {
|
|
1567
|
+
private readonly dbConnection;
|
|
1568
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
1569
|
+
getDefinition: (args: GetDefinitionArgs) => Promise<PresentationDefinitionItem>;
|
|
1570
|
+
hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
|
|
1571
|
+
hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
|
|
1572
|
+
getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<PresentationDefinitionItem>>;
|
|
1573
|
+
addDefinition: (item: NonPersistedPresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
|
|
1574
|
+
updateDefinition: (item: PresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
|
|
1575
|
+
deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
|
|
1576
|
+
deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
|
|
1577
|
+
findIds: (pdRepository: Repository<PresentationDefinitionItemEntity>, filter: Array<PresentationDefinitionItemFilter> | undefined) => Promise<Array<PresentationDefinitionItemEntity>>;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
declare class CreateContacts1659463079429 implements MigrationInterface {
|
|
1581
|
+
name: string;
|
|
1582
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
1583
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
declare class CreateIssuanceBranding1659463079429 implements MigrationInterface {
|
|
1587
|
+
name: string;
|
|
1588
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
1589
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
declare class CreateStatusList1693866470000 implements MigrationInterface {
|
|
1593
|
+
name: string;
|
|
1594
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
1595
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
declare class CreateAuditEvents1701635835330 implements MigrationInterface {
|
|
1599
|
+
name: string;
|
|
1600
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
1601
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
declare class CreateDigitalCredential1708525189000 implements MigrationInterface {
|
|
1605
|
+
name: string;
|
|
1606
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
1607
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
declare class CreateMachineStateStore1708098041262 implements MigrationInterface {
|
|
1611
|
+
name: string;
|
|
1612
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
1613
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
|
|
1617
|
+
name: string;
|
|
1618
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
1619
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
1624
|
+
*
|
|
1625
|
+
* These ensure the correct creation of tables and the proper migrations of data when tables change between versions.
|
|
1626
|
+
*
|
|
1627
|
+
* @public
|
|
1628
|
+
*/
|
|
1629
|
+
declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
|
|
1630
|
+
declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuanceBranding1659463079429)[];
|
|
1631
|
+
declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
|
|
1632
|
+
declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
|
|
1633
|
+
declare const DataStoreDigitalCredentialMigrations: (typeof CreateDigitalCredential1708525189000)[];
|
|
1634
|
+
declare const DataStoreMachineStateMigrations: (typeof CreateMachineStateStore1708098041262)[];
|
|
1635
|
+
declare const DataStorePresentationDefinitionMigrations: (typeof CreatePresentationDefinitions1716533767523)[];
|
|
1636
|
+
declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
|
|
1637
|
+
|
|
1638
|
+
declare class NaturalPersonEntity extends BaseContactEntity {
|
|
1639
|
+
firstName: string;
|
|
1640
|
+
middleName?: string;
|
|
1641
|
+
lastName: string;
|
|
1642
|
+
displayName: string;
|
|
1643
|
+
ownerId?: string;
|
|
1644
|
+
tenantId?: string;
|
|
1645
|
+
validate(): Promise<void>;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
declare class OrganizationEntity extends BaseContactEntity {
|
|
1649
|
+
legalName: string;
|
|
1650
|
+
displayName: string;
|
|
1651
|
+
ownerId?: string;
|
|
1652
|
+
tenantId?: string;
|
|
1653
|
+
validate(): Promise<void>;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
declare const partyEntityFrom: (party: NonPersistedParty) => PartyEntity;
|
|
1657
|
+
declare const partyFrom: (party: PartyEntity) => Party;
|
|
1658
|
+
declare const contactEntityFrom: (contact: NonPersistedContact) => BaseContactEntity;
|
|
1659
|
+
declare const contactFrom: (contact: BaseContactEntity) => Contact;
|
|
1660
|
+
declare const isNaturalPerson: (contact: NonPersistedContact | BaseContactEntity) => contact is NonPersistedNaturalPerson | NaturalPersonEntity;
|
|
1661
|
+
declare const isOrganization: (contact: NonPersistedContact | BaseContactEntity) => contact is NonPersistedOrganization | OrganizationEntity;
|
|
1662
|
+
declare const connectionEntityFrom: (connection: NonPersistedConnection) => ConnectionEntity;
|
|
1663
|
+
declare const connectionFrom: (connection: ConnectionEntity) => Connection;
|
|
1664
|
+
declare const correlationIdentifierEntityFrom: (identifier: NonPersistedCorrelationIdentifier) => CorrelationIdentifierEntity;
|
|
1665
|
+
declare const correlationIdentifierFrom: (identifier: CorrelationIdentifierEntity) => CorrelationIdentifier;
|
|
1666
|
+
declare const didAuthConfigEntityFrom: (config: NonPersistedDidAuthConfig) => DidAuthConfigEntity;
|
|
1667
|
+
declare const electronicAddressEntityFrom: (electronicAddress: NonPersistedElectronicAddress) => ElectronicAddressEntity;
|
|
1668
|
+
declare const electronicAddressFrom: (electronicAddress: ElectronicAddressEntity) => ElectronicAddress;
|
|
1669
|
+
declare const physicalAddressEntityFrom: (physicalAddress: NonPersistedPhysicalAddress) => PhysicalAddressEntity;
|
|
1670
|
+
declare const physicalAddressFrom: (physicalAddress: PhysicalAddressEntity) => PhysicalAddress;
|
|
1671
|
+
declare const identityEntityFrom: (entity: NonPersistedIdentity) => IdentityEntity;
|
|
1672
|
+
declare const identityFrom: (identity: IdentityEntity) => Identity;
|
|
1673
|
+
declare const identityMetadataItemEntityFrom: (item: NonPersistedMetadataItem<MetadataTypes>) => IdentityMetadataItemEntity | undefined;
|
|
1674
|
+
declare const contactMetadataItemEntityFrom: (item: NonPersistedMetadataItem<MetadataTypes>) => ContactMetadataItemEntity | undefined;
|
|
1675
|
+
declare const metadataItemFrom: (entity: IdentityMetadataItemEntity | ContactMetadataItemEntity) => MetadataItem<MetadataTypes>;
|
|
1676
|
+
declare const naturalPersonEntityFrom: (naturalPerson: NonPersistedNaturalPerson) => NaturalPersonEntity;
|
|
1677
|
+
declare const naturalPersonFrom: (naturalPerson: NaturalPersonEntity) => NaturalPerson;
|
|
1678
|
+
declare const openIdConfigEntityFrom: (config: NonPersistedOpenIdConfig) => OpenIdConfigEntity;
|
|
1679
|
+
declare const organizationEntityFrom: (organization: NonPersistedOrganization) => OrganizationEntity;
|
|
1680
|
+
declare const organizationFrom: (organization: OrganizationEntity) => Organization;
|
|
1681
|
+
declare const partyRelationshipEntityFrom: (relationship: NonPersistedPartyRelationship) => PartyRelationshipEntity;
|
|
1682
|
+
declare const partyRelationshipFrom: (relationship: PartyRelationshipEntity) => PartyRelationship;
|
|
1683
|
+
declare const partyTypeEntityFrom: (args: NonPersistedPartyType) => PartyTypeEntity;
|
|
1684
|
+
declare const partyTypeFrom: (partyType: PartyTypeEntity) => PartyType;
|
|
1685
|
+
declare const configFrom: (config: BaseConfigEntity) => ConnectionConfig;
|
|
1686
|
+
declare const openIdConfigFrom: (config: OpenIdConfigEntity) => OpenIdConfig;
|
|
1687
|
+
declare const didAuthConfigFrom: (config: DidAuthConfigEntity) => DidAuthConfig;
|
|
1688
|
+
declare const isOpenIdConfig: (config: NonPersistedConnectionConfig | BaseConfigEntity) => config is OpenIdConfig | OpenIdConfigEntity;
|
|
1689
|
+
declare const isDidAuthConfig: (config: NonPersistedConnectionConfig | BaseConfigEntity) => config is DidAuthConfig | DidAuthConfigEntity;
|
|
1690
|
+
|
|
1691
|
+
declare function isHex(input: string): boolean;
|
|
1692
|
+
declare function parseRawDocument(raw: string): OriginalVerifiableCredential | OriginalVerifiablePresentation;
|
|
1693
|
+
declare function ensureRawDocument(input: string | object): string;
|
|
1694
|
+
declare const nonPersistedDigitalCredentialEntityFromAddArgs: (addCredentialArgs: AddCredentialArgs) => NonPersistedDigitalCredential;
|
|
1695
|
+
declare const digitalCredentialFrom: (credentialEntity: DigitalCredentialEntity) => DigitalCredential;
|
|
1696
|
+
declare const digitalCredentialsFrom: (credentialEntities: Array<DigitalCredentialEntity>) => DigitalCredential[];
|
|
1697
|
+
|
|
1698
|
+
declare const auditEventFrom: (event: AuditEventEntity) => AuditLoggingEvent;
|
|
1699
|
+
declare const auditEventEntityFrom: (args: NonPersistedAuditLoggingEvent) => AuditEventEntity;
|
|
1700
|
+
declare const activityEventFrom: (event: AuditEventEntity) => ActivityLoggingEvent;
|
|
1701
|
+
declare const activityEventEntityFrom: (args: NonPersistedActivityLoggingEvent) => AuditEventEntity;
|
|
1702
|
+
|
|
1703
|
+
declare const credentialBrandingFrom: (credentialBranding: CredentialBrandingEntity) => ICredentialBranding;
|
|
1704
|
+
declare const issuerBrandingFrom: (issuerBranding: IssuerBrandingEntity) => IIssuerBranding;
|
|
1705
|
+
declare const localeBrandingFrom: (localeBranding: BaseLocaleBrandingEntity) => ILocaleBranding;
|
|
1706
|
+
declare const issuerLocaleBrandingEntityFrom: (args: IBasicIssuerLocaleBranding) => IssuerLocaleBrandingEntity;
|
|
1707
|
+
declare const backgroundAttributesEntityFrom: (args: IBasicBackgroundAttributes) => BackgroundAttributesEntity;
|
|
1708
|
+
declare const credentialBrandingEntityFrom: (args: IBasicCredentialBranding) => CredentialBrandingEntity;
|
|
1709
|
+
declare const credentialLocaleBrandingEntityFrom: (args: IBasicCredentialLocaleBranding) => CredentialLocaleBrandingEntity;
|
|
1710
|
+
declare const imageAttributesEntityFrom: (args: IBasicImageAttributes) => ImageAttributesEntity;
|
|
1711
|
+
declare const imageDimensionsEntityFrom: (args: IBasicImageDimensions) => ImageDimensionsEntity;
|
|
1712
|
+
declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBrandingEntity;
|
|
1713
|
+
declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
|
|
1714
|
+
declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
|
|
1715
|
+
|
|
1716
|
+
declare const presentationDefinitionItemFrom: (entity: PresentationDefinitionItemEntity) => PresentationDefinitionItem;
|
|
1717
|
+
declare const presentationDefinitionEntityItemFrom: (item: NonPersistedPresentationDefinitionItem) => PresentationDefinitionItemEntity;
|
|
1718
|
+
declare function isPresentationDefinitionEqual(base: PartialPresentationDefinitionItem, compare: PartialPresentationDefinitionItem): boolean;
|
|
1719
|
+
|
|
1720
|
+
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)[];
|
|
1721
|
+
declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
|
|
1722
|
+
declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
|
|
1723
|
+
declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
|
|
1724
|
+
declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
|
|
1725
|
+
declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
|
|
1726
|
+
declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
|
|
1727
|
+
declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
1728
|
+
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)[];
|
|
1729
|
+
|
|
1730
|
+
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 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 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 };
|