@sphereon/ssi-sdk.data-store 0.18.1 → 0.18.2-unstable.10

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.
Files changed (180) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +77 -77
  3. package/dist/contact/AbstractContactStore.d.ts +23 -23
  4. package/dist/contact/AbstractContactStore.js +6 -6
  5. package/dist/contact/ContactStore.d.ts +32 -32
  6. package/dist/contact/ContactStore.js +365 -365
  7. package/dist/entities/contact/BaseConfigEntity.d.ts +6 -6
  8. package/dist/entities/contact/BaseConfigEntity.js +33 -33
  9. package/dist/entities/contact/BaseContactEntity.d.ts +9 -9
  10. package/dist/entities/contact/BaseContactEntity.js +53 -53
  11. package/dist/entities/contact/ConnectionEntity.d.ts +10 -10
  12. package/dist/entities/contact/ConnectionEntity.js +46 -46
  13. package/dist/entities/contact/ContactEntity.d.ts +16 -0
  14. package/dist/entities/contact/ContactEntity.d.ts.map +1 -0
  15. package/dist/entities/contact/ContactEntity.js +164 -0
  16. package/dist/entities/contact/ContactEntity.js.map +1 -0
  17. package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +10 -10
  18. package/dist/entities/contact/CorrelationIdentifierEntity.js +71 -71
  19. package/dist/entities/contact/DidAuthConfigEntity.d.ts +6 -6
  20. package/dist/entities/contact/DidAuthConfigEntity.js +32 -32
  21. package/dist/entities/contact/ElectronicAddressEntity.d.ts +13 -13
  22. package/dist/entities/contact/ElectronicAddressEntity.js +91 -91
  23. package/dist/entities/contact/IdentityEntity.d.ts +20 -20
  24. package/dist/entities/contact/IdentityEntity.js +128 -128
  25. package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +9 -9
  26. package/dist/entities/contact/IdentityMetadataItemEntity.js +68 -68
  27. package/dist/entities/contact/NaturalPersonEntity.d.ts +8 -8
  28. package/dist/entities/contact/NaturalPersonEntity.js +71 -71
  29. package/dist/entities/contact/OpenIdConfigEntity.d.ts +10 -10
  30. package/dist/entities/contact/OpenIdConfigEntity.js +48 -48
  31. package/dist/entities/contact/OrganizationEntity.d.ts +8 -8
  32. package/dist/entities/contact/OrganizationEntity.js +66 -66
  33. package/dist/entities/contact/PartyEntity.d.ts +19 -19
  34. package/dist/entities/contact/PartyEntity.js +131 -131
  35. package/dist/entities/contact/PartyRelationshipEntity.d.ts +12 -12
  36. package/dist/entities/contact/PartyRelationshipEntity.js +94 -94
  37. package/dist/entities/contact/PartyTypeEntity.d.ts +14 -14
  38. package/dist/entities/contact/PartyTypeEntity.js +103 -103
  39. package/dist/entities/eventLogger/AuditEventEntity.d.ts +26 -26
  40. package/dist/entities/eventLogger/AuditEventEntity.js +123 -123
  41. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +10 -10
  42. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +73 -73
  43. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +17 -17
  44. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +119 -119
  45. package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +14 -14
  46. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +101 -101
  47. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +8 -8
  48. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +48 -48
  49. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +13 -13
  50. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +91 -91
  51. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +8 -8
  52. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +38 -38
  53. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +13 -13
  54. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +94 -94
  55. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +8 -8
  56. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +48 -48
  57. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +8 -8
  58. package/dist/entities/issuanceBranding/TextAttributesEntity.js +61 -61
  59. package/dist/entities/statusList2021/StatusList2021Entity.d.ts +18 -18
  60. package/dist/entities/statusList2021/StatusList2021Entity.js +114 -114
  61. package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts +10 -10
  62. package/dist/entities/statusList2021/StatusList2021EntryEntity.js +50 -50
  63. package/dist/entities/validators/index.d.ts +6 -6
  64. package/dist/entities/validators/index.js +26 -26
  65. package/dist/eventLogger/AbstractEventLoggerStore.d.ts +6 -6
  66. package/dist/eventLogger/AbstractEventLoggerStore.js +6 -6
  67. package/dist/eventLogger/EventLoggerStore.d.ts +12 -12
  68. package/dist/eventLogger/EventLoggerStore.js +43 -43
  69. package/dist/index.d.ts +41 -41
  70. package/dist/index.js +127 -127
  71. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +19 -19
  72. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +6 -6
  73. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +30 -30
  74. package/dist/issuanceBranding/IssuanceBrandingStore.js +374 -374
  75. package/dist/migrations/generic/1-CreateContacts.d.ts +6 -6
  76. package/dist/migrations/generic/1-CreateContacts.js +77 -77
  77. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +7 -0
  78. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +1 -0
  79. package/dist/migrations/generic/1-CreateIssuanceBranding.js +96 -0
  80. package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +1 -0
  81. package/dist/migrations/generic/2-CreateContacts.d.ts +7 -0
  82. package/dist/migrations/generic/2-CreateContacts.d.ts.map +1 -0
  83. package/dist/migrations/generic/2-CreateContacts.js +78 -0
  84. package/dist/migrations/generic/2-CreateContacts.js.map +1 -0
  85. package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts +6 -6
  86. package/dist/migrations/generic/2-CreateIssuanceBranding.js +77 -77
  87. package/dist/migrations/generic/3-CreateContacts.d.ts +6 -6
  88. package/dist/migrations/generic/3-CreateContacts.js +77 -77
  89. package/dist/migrations/generic/3-CreateStatusList.d.ts +7 -0
  90. package/dist/migrations/generic/3-CreateStatusList.d.ts.map +1 -0
  91. package/dist/migrations/generic/3-CreateStatusList.js +72 -0
  92. package/dist/migrations/generic/3-CreateStatusList.js.map +1 -0
  93. package/dist/migrations/generic/4-CreateStatusList.d.ts +6 -6
  94. package/dist/migrations/generic/4-CreateStatusList.js +71 -71
  95. package/dist/migrations/generic/5-CreateAuditEvents.d.ts +6 -6
  96. package/dist/migrations/generic/5-CreateAuditEvents.js +77 -77
  97. package/dist/migrations/generic/index.d.ts +16 -16
  98. package/dist/migrations/generic/index.js +27 -27
  99. package/dist/migrations/index.d.ts +1 -1
  100. package/dist/migrations/index.js +5 -5
  101. package/dist/migrations/internal-migrations-ormconfig.d.ts +6 -6
  102. package/dist/migrations/internal-migrations-ormconfig.js +26 -26
  103. package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +6 -6
  104. package/dist/migrations/postgres/1659463079428-CreateContacts.js +56 -56
  105. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +6 -6
  106. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +68 -68
  107. package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +6 -6
  108. package/dist/migrations/postgres/1690925872592-CreateContacts.js +68 -68
  109. package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts +6 -6
  110. package/dist/migrations/postgres/1693866470001-CreateStatusList.js +31 -31
  111. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +6 -6
  112. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +42 -42
  113. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts +7 -0
  114. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +1 -0
  115. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js +32 -0
  116. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +1 -0
  117. package/dist/migrations/postgres/uuid.d.ts +3 -0
  118. package/dist/migrations/postgres/uuid.d.ts.map +1 -0
  119. package/dist/migrations/postgres/uuid.js +25 -0
  120. package/dist/migrations/postgres/uuid.js.map +1 -0
  121. package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +6 -6
  122. package/dist/migrations/sqlite/1659463069549-CreateContacts.js +78 -78
  123. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +6 -6
  124. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +88 -88
  125. package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +6 -6
  126. package/dist/migrations/sqlite/1690925872693-CreateContacts.js +107 -107
  127. package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +6 -6
  128. package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +31 -31
  129. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +6 -6
  130. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +28 -28
  131. package/dist/statusList/IStatusListStore.d.ts +19 -19
  132. package/dist/statusList/IStatusListStore.js +2 -2
  133. package/dist/statusList/StatusListStore.d.ts +35 -35
  134. package/dist/statusList/StatusListStore.js +212 -212
  135. package/dist/types/contact/IAbstractContactStore.d.ts +74 -74
  136. package/dist/types/contact/IAbstractContactStore.js +2 -2
  137. package/dist/types/contact/contact.d.ts +173 -173
  138. package/dist/types/contact/contact.js +25 -25
  139. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -9
  140. package/dist/types/eventLogger/IAbstractEventLoggerStore.js +2 -2
  141. package/dist/types/eventLogger/eventLogger.d.ts +2 -2
  142. package/dist/types/eventLogger/eventLogger.js +2 -2
  143. package/dist/types/index.d.ts +9 -9
  144. package/dist/types/index.js +25 -25
  145. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +58 -58
  146. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +2 -2
  147. package/dist/types/issuanceBranding/issuanceBranding.d.ts +114 -114
  148. package/dist/types/issuanceBranding/issuanceBranding.js +2 -2
  149. package/dist/types/statusList/IAbstractStatusListStore.d.ts +37 -37
  150. package/dist/types/statusList/IAbstractStatusListStore.js +2 -2
  151. package/dist/types/statusList/statusList.d.ts +24 -24
  152. package/dist/types/statusList/statusList.js +2 -2
  153. package/dist/types/validation/validation.d.ts +3 -3
  154. package/dist/types/validation/validation.js +2 -2
  155. package/dist/utils/ValidatorUtils.d.ts +3 -3
  156. package/dist/utils/ValidatorUtils.js +12 -12
  157. package/dist/utils/contact/MappingUtils.d.ts +46 -46
  158. package/dist/utils/contact/MappingUtils.js +290 -290
  159. package/package.json +4 -4
  160. package/src/__tests__/eventLogger.entities.test.ts +73 -73
  161. package/src/__tests__/eventLogger.store.test.ts +136 -136
  162. package/src/contact/ContactStore.ts +501 -501
  163. package/src/entities/eventLogger/AuditEventEntity.ts +99 -99
  164. package/src/entities/statusList2021/StatusList2021Entity.ts +96 -96
  165. package/src/eventLogger/AbstractEventLoggerStore.ts +7 -7
  166. package/src/eventLogger/EventLoggerStore.ts +62 -62
  167. package/src/index.ts +113 -113
  168. package/src/migrations/generic/1-CreateContacts.ts +66 -66
  169. package/src/migrations/generic/2-CreateIssuanceBranding.ts +64 -64
  170. package/src/migrations/generic/3-CreateContacts.ts +66 -66
  171. package/src/migrations/generic/4-CreateStatusList.ts +54 -54
  172. package/src/migrations/generic/5-CreateAuditEvents.ts +66 -66
  173. package/src/migrations/generic/index.ts +27 -27
  174. package/src/migrations/postgres/1693866470001-CreateStatusList.ts +24 -24
  175. package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +33 -33
  176. package/src/migrations/sqlite/1690925872693-CreateContacts.ts +163 -163
  177. package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +15 -15
  178. package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -12
  179. package/src/types/eventLogger/eventLogger.ts +3 -3
  180. package/src/types/index.ts +9 -9
@@ -1,174 +1,174 @@
1
- import { IIdentifier } from '@veramo/core';
2
- export type Party = {
3
- id: string;
4
- uri?: string;
5
- roles: Array<IdentityRoleEnum>;
6
- identities: Array<Identity>;
7
- electronicAddresses: Array<ElectronicAddress>;
8
- contact: Contact;
9
- partyType: PartyType;
10
- relationships: Array<PartyRelationship>;
11
- createdAt: Date;
12
- lastUpdatedAt: Date;
13
- };
14
- export type NonPersistedParty = Omit<Party, 'id' | 'identities' | 'electronicAddresses' | 'contact' | 'roles' | 'partyType' | 'relationships' | 'createdAt' | 'lastUpdatedAt'> & {
15
- identities?: Array<NonPersistedIdentity>;
16
- electronicAddresses?: Array<NonPersistedElectronicAddress>;
17
- contact: NonPersistedContact;
18
- partyType: NonPersistedPartyType;
19
- relationships?: Array<NonPersistedPartyRelationship>;
20
- };
21
- export type PartialParty = Partial<Omit<Party, 'identities' | 'electronicAddresses' | 'contact' | 'partyType' | 'relationships'>> & {
22
- identities?: PartialIdentity;
23
- electronicAddresses?: PartialElectronicAddress;
24
- contact?: PartialContact;
25
- partyType?: PartialPartyType;
26
- relationships?: PartialPartyRelationship;
27
- };
28
- export type Identity = {
29
- id: string;
30
- alias: string;
31
- roles: Array<IdentityRoleEnum>;
32
- identifier: CorrelationIdentifier;
33
- connection?: Connection;
34
- metadata?: Array<MetadataItem>;
35
- createdAt: Date;
36
- lastUpdatedAt: Date;
37
- };
38
- export type NonPersistedIdentity = Omit<Identity, 'id' | 'identifier' | 'connection' | 'metadata' | 'createdAt' | 'lastUpdatedAt'> & {
39
- identifier: NonPersistedCorrelationIdentifier;
40
- connection?: NonPersistedConnection;
41
- metadata?: Array<NonPersistedMetadataItem>;
42
- };
43
- export type PartialIdentity = Partial<Omit<Identity, 'identifier' | 'connection' | 'metadata' | 'roles'>> & {
44
- identifier?: PartialCorrelationIdentifier;
45
- connection?: PartialConnection;
46
- metadata?: PartialMetadataItem;
47
- roles?: IdentityRoleEnum;
48
- partyId?: string;
49
- };
50
- export type MetadataItem = {
51
- id: string;
52
- label: string;
53
- value: string;
54
- };
55
- export type NonPersistedMetadataItem = Omit<MetadataItem, 'id'>;
56
- export type PartialMetadataItem = Partial<MetadataItem>;
57
- export type CorrelationIdentifier = {
58
- id: string;
59
- type: CorrelationIdentifierEnum;
60
- correlationId: string;
61
- };
62
- export type NonPersistedCorrelationIdentifier = Omit<CorrelationIdentifier, 'id'>;
63
- export type PartialCorrelationIdentifier = Partial<CorrelationIdentifier>;
64
- export type Connection = {
65
- id: string;
66
- type: ConnectionTypeEnum;
67
- config: ConnectionConfig;
68
- };
69
- export type NonPersistedConnection = Omit<Connection, 'id' | 'config'> & {
70
- config: NonPersistedConnectionConfig;
71
- };
72
- export type PartialConnection = Partial<Omit<Connection, 'config'>> & {
73
- config: PartialConnectionConfig;
74
- };
75
- export type OpenIdConfig = {
76
- id: string;
77
- clientId: string;
78
- clientSecret: string;
79
- scopes: Array<string>;
80
- issuer: string;
81
- redirectUrl: string;
82
- dangerouslyAllowInsecureHttpRequests: boolean;
83
- clientAuthMethod: 'basic' | 'post' | undefined;
84
- };
85
- export type NonPersistedOpenIdConfig = Omit<OpenIdConfig, 'id'>;
86
- export type PartialOpenIdConfig = Partial<OpenIdConfig>;
87
- export type DidAuthConfig = {
88
- id: string;
89
- identifier: IIdentifier;
90
- stateId: string;
91
- redirectUrl: string;
92
- sessionId: string;
93
- };
94
- export type NonPersistedDidAuthConfig = Omit<DidAuthConfig, 'id'>;
95
- export type PartialDidAuthConfig = Partial<Omit<DidAuthConfig, 'identifier'>> & {
96
- identifier: Partial<IIdentifier>;
97
- };
98
- export type ConnectionConfig = OpenIdConfig | DidAuthConfig;
99
- export type NonPersistedConnectionConfig = NonPersistedDidAuthConfig | NonPersistedOpenIdConfig;
100
- export type PartialConnectionConfig = PartialOpenIdConfig | PartialDidAuthConfig;
101
- export type NaturalPerson = {
102
- id: string;
103
- firstName: string;
104
- lastName: string;
105
- middleName?: string;
106
- displayName: string;
107
- createdAt: Date;
108
- lastUpdatedAt: Date;
109
- };
110
- export type NonPersistedNaturalPerson = Omit<NaturalPerson, 'id' | 'createdAt' | 'lastUpdatedAt'>;
111
- export type PartialNaturalPerson = Partial<NaturalPerson>;
112
- export type Organization = {
113
- id: string;
114
- legalName: string;
115
- displayName: string;
116
- createdAt: Date;
117
- lastUpdatedAt: Date;
118
- };
119
- export type NonPersistedOrganization = Omit<Organization, 'id' | 'createdAt' | 'lastUpdatedAt'>;
120
- export type PartialOrganization = Partial<Organization>;
121
- export type Contact = NaturalPerson | Organization;
122
- export type NonPersistedContact = NonPersistedNaturalPerson | NonPersistedOrganization;
123
- export type PartialContact = PartialNaturalPerson | PartialOrganization;
124
- export type PartyType = {
125
- id: string;
126
- type: PartyTypeEnum;
127
- name: string;
128
- tenantId: string;
129
- description?: string;
130
- createdAt: Date;
131
- lastUpdatedAt: Date;
132
- };
133
- export type NonPersistedPartyType = Omit<PartyType, 'id' | 'createdAt' | 'lastUpdatedAt'> & {
134
- id?: string;
135
- };
136
- export type PartialPartyType = Partial<PartyType>;
137
- export type PartyRelationship = {
138
- id: string;
139
- leftId: string;
140
- rightId: string;
141
- createdAt: Date;
142
- lastUpdatedAt: Date;
143
- };
144
- export type NonPersistedPartyRelationship = Omit<PartyRelationship, 'id' | 'createdAt' | 'lastUpdatedAt'>;
145
- export type PartialPartyRelationship = Partial<PartyRelationship>;
146
- export type ElectronicAddress = {
147
- id: string;
148
- type: ElectronicAddressType;
149
- electronicAddress: string;
150
- createdAt: Date;
151
- lastUpdatedAt: Date;
152
- };
153
- export type NonPersistedElectronicAddress = Omit<ElectronicAddress, 'id' | 'createdAt' | 'lastUpdatedAt'>;
154
- export type PartialElectronicAddress = Partial<ElectronicAddress>;
155
- export type ElectronicAddressType = 'email';
156
- export declare enum IdentityRoleEnum {
157
- ISSUER = "issuer",
158
- VERIFIER = "verifier",
159
- HOLDER = "holder"
160
- }
161
- export declare enum ConnectionTypeEnum {
162
- OPENID_CONNECT = "OIDC",
163
- SIOPv2 = "SIOPv2",
164
- SIOPv2_OpenID4VP = "SIOPv2+OpenID4VP"
165
- }
166
- export declare enum CorrelationIdentifierEnum {
167
- DID = "did",
168
- URL = "url"
169
- }
170
- export declare enum PartyTypeEnum {
171
- NATURAL_PERSON = "naturalPerson",
172
- ORGANIZATION = "organization"
173
- }
1
+ import { IIdentifier } from '@veramo/core';
2
+ export type Party = {
3
+ id: string;
4
+ uri?: string;
5
+ roles: Array<IdentityRoleEnum>;
6
+ identities: Array<Identity>;
7
+ electronicAddresses: Array<ElectronicAddress>;
8
+ contact: Contact;
9
+ partyType: PartyType;
10
+ relationships: Array<PartyRelationship>;
11
+ createdAt: Date;
12
+ lastUpdatedAt: Date;
13
+ };
14
+ export type NonPersistedParty = Omit<Party, 'id' | 'identities' | 'electronicAddresses' | 'contact' | 'roles' | 'partyType' | 'relationships' | 'createdAt' | 'lastUpdatedAt'> & {
15
+ identities?: Array<NonPersistedIdentity>;
16
+ electronicAddresses?: Array<NonPersistedElectronicAddress>;
17
+ contact: NonPersistedContact;
18
+ partyType: NonPersistedPartyType;
19
+ relationships?: Array<NonPersistedPartyRelationship>;
20
+ };
21
+ export type PartialParty = Partial<Omit<Party, 'identities' | 'electronicAddresses' | 'contact' | 'partyType' | 'relationships'>> & {
22
+ identities?: PartialIdentity;
23
+ electronicAddresses?: PartialElectronicAddress;
24
+ contact?: PartialContact;
25
+ partyType?: PartialPartyType;
26
+ relationships?: PartialPartyRelationship;
27
+ };
28
+ export type Identity = {
29
+ id: string;
30
+ alias: string;
31
+ roles: Array<IdentityRoleEnum>;
32
+ identifier: CorrelationIdentifier;
33
+ connection?: Connection;
34
+ metadata?: Array<MetadataItem>;
35
+ createdAt: Date;
36
+ lastUpdatedAt: Date;
37
+ };
38
+ export type NonPersistedIdentity = Omit<Identity, 'id' | 'identifier' | 'connection' | 'metadata' | 'createdAt' | 'lastUpdatedAt'> & {
39
+ identifier: NonPersistedCorrelationIdentifier;
40
+ connection?: NonPersistedConnection;
41
+ metadata?: Array<NonPersistedMetadataItem>;
42
+ };
43
+ export type PartialIdentity = Partial<Omit<Identity, 'identifier' | 'connection' | 'metadata' | 'roles'>> & {
44
+ identifier?: PartialCorrelationIdentifier;
45
+ connection?: PartialConnection;
46
+ metadata?: PartialMetadataItem;
47
+ roles?: IdentityRoleEnum;
48
+ partyId?: string;
49
+ };
50
+ export type MetadataItem = {
51
+ id: string;
52
+ label: string;
53
+ value: string;
54
+ };
55
+ export type NonPersistedMetadataItem = Omit<MetadataItem, 'id'>;
56
+ export type PartialMetadataItem = Partial<MetadataItem>;
57
+ export type CorrelationIdentifier = {
58
+ id: string;
59
+ type: CorrelationIdentifierEnum;
60
+ correlationId: string;
61
+ };
62
+ export type NonPersistedCorrelationIdentifier = Omit<CorrelationIdentifier, 'id'>;
63
+ export type PartialCorrelationIdentifier = Partial<CorrelationIdentifier>;
64
+ export type Connection = {
65
+ id: string;
66
+ type: ConnectionTypeEnum;
67
+ config: ConnectionConfig;
68
+ };
69
+ export type NonPersistedConnection = Omit<Connection, 'id' | 'config'> & {
70
+ config: NonPersistedConnectionConfig;
71
+ };
72
+ export type PartialConnection = Partial<Omit<Connection, 'config'>> & {
73
+ config: PartialConnectionConfig;
74
+ };
75
+ export type OpenIdConfig = {
76
+ id: string;
77
+ clientId: string;
78
+ clientSecret: string;
79
+ scopes: Array<string>;
80
+ issuer: string;
81
+ redirectUrl: string;
82
+ dangerouslyAllowInsecureHttpRequests: boolean;
83
+ clientAuthMethod: 'basic' | 'post' | undefined;
84
+ };
85
+ export type NonPersistedOpenIdConfig = Omit<OpenIdConfig, 'id'>;
86
+ export type PartialOpenIdConfig = Partial<OpenIdConfig>;
87
+ export type DidAuthConfig = {
88
+ id: string;
89
+ identifier: IIdentifier;
90
+ stateId: string;
91
+ redirectUrl: string;
92
+ sessionId: string;
93
+ };
94
+ export type NonPersistedDidAuthConfig = Omit<DidAuthConfig, 'id'>;
95
+ export type PartialDidAuthConfig = Partial<Omit<DidAuthConfig, 'identifier'>> & {
96
+ identifier: Partial<IIdentifier>;
97
+ };
98
+ export type ConnectionConfig = OpenIdConfig | DidAuthConfig;
99
+ export type NonPersistedConnectionConfig = NonPersistedDidAuthConfig | NonPersistedOpenIdConfig;
100
+ export type PartialConnectionConfig = PartialOpenIdConfig | PartialDidAuthConfig;
101
+ export type NaturalPerson = {
102
+ id: string;
103
+ firstName: string;
104
+ lastName: string;
105
+ middleName?: string;
106
+ displayName: string;
107
+ createdAt: Date;
108
+ lastUpdatedAt: Date;
109
+ };
110
+ export type NonPersistedNaturalPerson = Omit<NaturalPerson, 'id' | 'createdAt' | 'lastUpdatedAt'>;
111
+ export type PartialNaturalPerson = Partial<NaturalPerson>;
112
+ export type Organization = {
113
+ id: string;
114
+ legalName: string;
115
+ displayName: string;
116
+ createdAt: Date;
117
+ lastUpdatedAt: Date;
118
+ };
119
+ export type NonPersistedOrganization = Omit<Organization, 'id' | 'createdAt' | 'lastUpdatedAt'>;
120
+ export type PartialOrganization = Partial<Organization>;
121
+ export type Contact = NaturalPerson | Organization;
122
+ export type NonPersistedContact = NonPersistedNaturalPerson | NonPersistedOrganization;
123
+ export type PartialContact = PartialNaturalPerson | PartialOrganization;
124
+ export type PartyType = {
125
+ id: string;
126
+ type: PartyTypeEnum;
127
+ name: string;
128
+ tenantId: string;
129
+ description?: string;
130
+ createdAt: Date;
131
+ lastUpdatedAt: Date;
132
+ };
133
+ export type NonPersistedPartyType = Omit<PartyType, 'id' | 'createdAt' | 'lastUpdatedAt'> & {
134
+ id?: string;
135
+ };
136
+ export type PartialPartyType = Partial<PartyType>;
137
+ export type PartyRelationship = {
138
+ id: string;
139
+ leftId: string;
140
+ rightId: string;
141
+ createdAt: Date;
142
+ lastUpdatedAt: Date;
143
+ };
144
+ export type NonPersistedPartyRelationship = Omit<PartyRelationship, 'id' | 'createdAt' | 'lastUpdatedAt'>;
145
+ export type PartialPartyRelationship = Partial<PartyRelationship>;
146
+ export type ElectronicAddress = {
147
+ id: string;
148
+ type: ElectronicAddressType;
149
+ electronicAddress: string;
150
+ createdAt: Date;
151
+ lastUpdatedAt: Date;
152
+ };
153
+ export type NonPersistedElectronicAddress = Omit<ElectronicAddress, 'id' | 'createdAt' | 'lastUpdatedAt'>;
154
+ export type PartialElectronicAddress = Partial<ElectronicAddress>;
155
+ export type ElectronicAddressType = 'email';
156
+ export declare enum IdentityRoleEnum {
157
+ ISSUER = "issuer",
158
+ VERIFIER = "verifier",
159
+ HOLDER = "holder"
160
+ }
161
+ export declare enum ConnectionTypeEnum {
162
+ OPENID_CONNECT = "OIDC",
163
+ SIOPv2 = "SIOPv2",
164
+ SIOPv2_OpenID4VP = "SIOPv2+OpenID4VP"
165
+ }
166
+ export declare enum CorrelationIdentifierEnum {
167
+ DID = "did",
168
+ URL = "url"
169
+ }
170
+ export declare enum PartyTypeEnum {
171
+ NATURAL_PERSON = "naturalPerson",
172
+ ORGANIZATION = "organization"
173
+ }
174
174
  //# sourceMappingURL=contact.d.ts.map
@@ -1,26 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PartyTypeEnum = exports.CorrelationIdentifierEnum = exports.ConnectionTypeEnum = exports.IdentityRoleEnum = void 0;
4
- var IdentityRoleEnum;
5
- (function (IdentityRoleEnum) {
6
- IdentityRoleEnum["ISSUER"] = "issuer";
7
- IdentityRoleEnum["VERIFIER"] = "verifier";
8
- IdentityRoleEnum["HOLDER"] = "holder";
9
- })(IdentityRoleEnum = exports.IdentityRoleEnum || (exports.IdentityRoleEnum = {}));
10
- var ConnectionTypeEnum;
11
- (function (ConnectionTypeEnum) {
12
- ConnectionTypeEnum["OPENID_CONNECT"] = "OIDC";
13
- ConnectionTypeEnum["SIOPv2"] = "SIOPv2";
14
- ConnectionTypeEnum["SIOPv2_OpenID4VP"] = "SIOPv2+OpenID4VP";
15
- })(ConnectionTypeEnum = exports.ConnectionTypeEnum || (exports.ConnectionTypeEnum = {}));
16
- var CorrelationIdentifierEnum;
17
- (function (CorrelationIdentifierEnum) {
18
- CorrelationIdentifierEnum["DID"] = "did";
19
- CorrelationIdentifierEnum["URL"] = "url";
20
- })(CorrelationIdentifierEnum = exports.CorrelationIdentifierEnum || (exports.CorrelationIdentifierEnum = {}));
21
- var PartyTypeEnum;
22
- (function (PartyTypeEnum) {
23
- PartyTypeEnum["NATURAL_PERSON"] = "naturalPerson";
24
- PartyTypeEnum["ORGANIZATION"] = "organization";
25
- })(PartyTypeEnum = exports.PartyTypeEnum || (exports.PartyTypeEnum = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartyTypeEnum = exports.CorrelationIdentifierEnum = exports.ConnectionTypeEnum = exports.IdentityRoleEnum = void 0;
4
+ var IdentityRoleEnum;
5
+ (function (IdentityRoleEnum) {
6
+ IdentityRoleEnum["ISSUER"] = "issuer";
7
+ IdentityRoleEnum["VERIFIER"] = "verifier";
8
+ IdentityRoleEnum["HOLDER"] = "holder";
9
+ })(IdentityRoleEnum = exports.IdentityRoleEnum || (exports.IdentityRoleEnum = {}));
10
+ var ConnectionTypeEnum;
11
+ (function (ConnectionTypeEnum) {
12
+ ConnectionTypeEnum["OPENID_CONNECT"] = "OIDC";
13
+ ConnectionTypeEnum["SIOPv2"] = "SIOPv2";
14
+ ConnectionTypeEnum["SIOPv2_OpenID4VP"] = "SIOPv2+OpenID4VP";
15
+ })(ConnectionTypeEnum = exports.ConnectionTypeEnum || (exports.ConnectionTypeEnum = {}));
16
+ var CorrelationIdentifierEnum;
17
+ (function (CorrelationIdentifierEnum) {
18
+ CorrelationIdentifierEnum["DID"] = "did";
19
+ CorrelationIdentifierEnum["URL"] = "url";
20
+ })(CorrelationIdentifierEnum = exports.CorrelationIdentifierEnum || (exports.CorrelationIdentifierEnum = {}));
21
+ var PartyTypeEnum;
22
+ (function (PartyTypeEnum) {
23
+ PartyTypeEnum["NATURAL_PERSON"] = "naturalPerson";
24
+ PartyTypeEnum["ORGANIZATION"] = "organization";
25
+ })(PartyTypeEnum = exports.PartyTypeEnum || (exports.PartyTypeEnum = {}));
26
26
  //# sourceMappingURL=contact.js.map
@@ -1,10 +1,10 @@
1
- import { PartialAuditLoggingEvent } from '@sphereon/ssi-sdk.core';
2
- import { NonPersistedAuditLoggingEvent } from './eventLogger';
3
- export type FindAuditLoggingEventArgs = Array<PartialAuditLoggingEvent>;
4
- export type StoreAuditEventArgs = {
5
- event: NonPersistedAuditLoggingEvent;
6
- };
7
- export type GetAuditEventsArgs = {
8
- filter?: FindAuditLoggingEventArgs;
9
- };
1
+ import { PartialAuditLoggingEvent } from '@sphereon/ssi-sdk.core';
2
+ import { NonPersistedAuditLoggingEvent } from './eventLogger';
3
+ export type FindAuditLoggingEventArgs = Array<PartialAuditLoggingEvent>;
4
+ export type StoreAuditEventArgs = {
5
+ event: NonPersistedAuditLoggingEvent;
6
+ };
7
+ export type GetAuditEventsArgs = {
8
+ filter?: FindAuditLoggingEventArgs;
9
+ };
10
10
  //# sourceMappingURL=IAbstractEventLoggerStore.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IAbstractEventLoggerStore.js.map
@@ -1,3 +1,3 @@
1
- import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
2
- export type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id'>;
1
+ import { AuditLoggingEvent } from '@sphereon/ssi-sdk.core';
2
+ export type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id'>;
3
3
  //# sourceMappingURL=eventLogger.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=eventLogger.js.map
@@ -1,10 +1,10 @@
1
- export * from './issuanceBranding/issuanceBranding';
2
- export * from './issuanceBranding/IAbstractIssuanceBrandingStore';
3
- export * from './contact/contact';
4
- export * from './contact/IAbstractContactStore';
5
- export * from './validation/validation';
6
- export * from './statusList/statusList';
7
- export * from './statusList/IAbstractStatusListStore';
8
- export * from './eventLogger/IAbstractEventLoggerStore';
9
- export * from './eventLogger/eventLogger';
1
+ export * from './issuanceBranding/issuanceBranding';
2
+ export * from './issuanceBranding/IAbstractIssuanceBrandingStore';
3
+ export * from './contact/contact';
4
+ export * from './contact/IAbstractContactStore';
5
+ export * from './validation/validation';
6
+ export * from './statusList/statusList';
7
+ export * from './statusList/IAbstractStatusListStore';
8
+ export * from './eventLogger/IAbstractEventLoggerStore';
9
+ export * from './eventLogger/eventLogger';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1,26 +1,26 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./issuanceBranding/issuanceBranding"), exports);
18
- __exportStar(require("./issuanceBranding/IAbstractIssuanceBrandingStore"), exports);
19
- __exportStar(require("./contact/contact"), exports);
20
- __exportStar(require("./contact/IAbstractContactStore"), exports);
21
- __exportStar(require("./validation/validation"), exports);
22
- __exportStar(require("./statusList/statusList"), exports);
23
- __exportStar(require("./statusList/IAbstractStatusListStore"), exports);
24
- __exportStar(require("./eventLogger/IAbstractEventLoggerStore"), exports);
25
- __exportStar(require("./eventLogger/eventLogger"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./issuanceBranding/issuanceBranding"), exports);
18
+ __exportStar(require("./issuanceBranding/IAbstractIssuanceBrandingStore"), exports);
19
+ __exportStar(require("./contact/contact"), exports);
20
+ __exportStar(require("./contact/IAbstractContactStore"), exports);
21
+ __exportStar(require("./validation/validation"), exports);
22
+ __exportStar(require("./statusList/statusList"), exports);
23
+ __exportStar(require("./statusList/IAbstractStatusListStore"), exports);
24
+ __exportStar(require("./eventLogger/IAbstractEventLoggerStore"), exports);
25
+ __exportStar(require("./eventLogger/eventLogger"), exports);
26
26
  //# sourceMappingURL=index.js.map
@@ -1,59 +1,59 @@
1
- import { IBasicCredentialLocaleBranding, IBasicIssuerLocaleBranding, ICredentialBranding, ICredentialLocaleBrandingFilter, IIssuerBranding, IIssuerBrandingFilter, IIssuerLocaleBrandingFilter, ILocaleBranding, ICredentialBrandingFilter } from './issuanceBranding';
2
- export type FindCredentialBrandingArgs = Array<ICredentialBrandingFilter>;
3
- export type FindCredentialLocaleBrandingArgs = Array<ICredentialLocaleBrandingFilter>;
4
- export type FindIssuerBrandingArgs = Array<IIssuerBrandingFilter>;
5
- export type FindIssuerLocaleBrandingArgs = Array<IIssuerLocaleBrandingFilter>;
6
- export interface IAddCredentialBrandingArgs {
7
- vcHash: string;
8
- issuerCorrelationId: string;
9
- localeBranding: Array<IBasicCredentialLocaleBranding>;
10
- }
11
- export interface IGetCredentialBrandingArgs {
12
- filter?: FindCredentialBrandingArgs;
13
- }
14
- export interface IUpdateCredentialBrandingArgs {
15
- credentialBranding: Omit<ICredentialBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
16
- }
17
- export interface IRemoveCredentialBrandingArgs {
18
- filter: FindCredentialBrandingArgs;
19
- }
20
- export interface IAddCredentialLocaleBrandingArgs {
21
- credentialBrandingId: string;
22
- localeBranding: Array<IBasicCredentialLocaleBranding>;
23
- }
24
- export interface IUpdateCredentialLocaleBrandingArgs {
25
- localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
26
- }
27
- export interface IRemoveCredentialLocaleBrandingArgs {
28
- filter: FindCredentialLocaleBrandingArgs;
29
- }
30
- export interface IGetCredentialLocaleBrandingArgs {
31
- filter?: FindCredentialLocaleBrandingArgs;
32
- }
33
- export interface IAddIssuerBrandingArgs {
34
- issuerCorrelationId: string;
35
- localeBranding: Array<IBasicIssuerLocaleBranding>;
36
- }
37
- export interface IGetIssuerBrandingArgs {
38
- filter?: FindIssuerBrandingArgs;
39
- }
40
- export interface IUpdateIssuerBrandingArgs {
41
- issuerBranding: Omit<IIssuerBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
42
- }
43
- export interface IRemoveIssuerBrandingArgs {
44
- filter: FindIssuerBrandingArgs;
45
- }
46
- export interface IAddIssuerLocaleBrandingArgs {
47
- issuerBrandingId: string;
48
- localeBranding: Array<IBasicIssuerLocaleBranding>;
49
- }
50
- export interface IUpdateIssuerLocaleBrandingArgs {
51
- localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
52
- }
53
- export interface IRemoveIssuerLocaleBrandingArgs {
54
- filter: FindIssuerLocaleBrandingArgs;
55
- }
56
- export interface IGetIssuerLocaleBrandingArgs {
57
- filter?: FindIssuerLocaleBrandingArgs;
58
- }
1
+ import { IBasicCredentialLocaleBranding, IBasicIssuerLocaleBranding, ICredentialBranding, ICredentialLocaleBrandingFilter, IIssuerBranding, IIssuerBrandingFilter, IIssuerLocaleBrandingFilter, ILocaleBranding, ICredentialBrandingFilter } from './issuanceBranding';
2
+ export type FindCredentialBrandingArgs = Array<ICredentialBrandingFilter>;
3
+ export type FindCredentialLocaleBrandingArgs = Array<ICredentialLocaleBrandingFilter>;
4
+ export type FindIssuerBrandingArgs = Array<IIssuerBrandingFilter>;
5
+ export type FindIssuerLocaleBrandingArgs = Array<IIssuerLocaleBrandingFilter>;
6
+ export interface IAddCredentialBrandingArgs {
7
+ vcHash: string;
8
+ issuerCorrelationId: string;
9
+ localeBranding: Array<IBasicCredentialLocaleBranding>;
10
+ }
11
+ export interface IGetCredentialBrandingArgs {
12
+ filter?: FindCredentialBrandingArgs;
13
+ }
14
+ export interface IUpdateCredentialBrandingArgs {
15
+ credentialBranding: Omit<ICredentialBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
16
+ }
17
+ export interface IRemoveCredentialBrandingArgs {
18
+ filter: FindCredentialBrandingArgs;
19
+ }
20
+ export interface IAddCredentialLocaleBrandingArgs {
21
+ credentialBrandingId: string;
22
+ localeBranding: Array<IBasicCredentialLocaleBranding>;
23
+ }
24
+ export interface IUpdateCredentialLocaleBrandingArgs {
25
+ localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
26
+ }
27
+ export interface IRemoveCredentialLocaleBrandingArgs {
28
+ filter: FindCredentialLocaleBrandingArgs;
29
+ }
30
+ export interface IGetCredentialLocaleBrandingArgs {
31
+ filter?: FindCredentialLocaleBrandingArgs;
32
+ }
33
+ export interface IAddIssuerBrandingArgs {
34
+ issuerCorrelationId: string;
35
+ localeBranding: Array<IBasicIssuerLocaleBranding>;
36
+ }
37
+ export interface IGetIssuerBrandingArgs {
38
+ filter?: FindIssuerBrandingArgs;
39
+ }
40
+ export interface IUpdateIssuerBrandingArgs {
41
+ issuerBranding: Omit<IIssuerBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
42
+ }
43
+ export interface IRemoveIssuerBrandingArgs {
44
+ filter: FindIssuerBrandingArgs;
45
+ }
46
+ export interface IAddIssuerLocaleBrandingArgs {
47
+ issuerBrandingId: string;
48
+ localeBranding: Array<IBasicIssuerLocaleBranding>;
49
+ }
50
+ export interface IUpdateIssuerLocaleBrandingArgs {
51
+ localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
52
+ }
53
+ export interface IRemoveIssuerLocaleBrandingArgs {
54
+ filter: FindIssuerLocaleBrandingArgs;
55
+ }
56
+ export interface IGetIssuerLocaleBrandingArgs {
57
+ filter?: FindIssuerLocaleBrandingArgs;
58
+ }
59
59
  //# sourceMappingURL=IAbstractIssuanceBrandingStore.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IAbstractIssuanceBrandingStore.js.map