@sphereon/ssi-sdk.data-store 0.23.5-next.12 → 0.23.5-next.24
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/contact/ContactStore.js +10 -10
- package/dist/contact/ContactStore.js.map +1 -1
- package/dist/entities/contact/ConnectionEntity.d.ts +2 -2
- package/dist/entities/contact/ConnectionEntity.d.ts.map +1 -1
- package/dist/entities/contact/ConnectionEntity.js +1 -1
- package/dist/entities/contact/ConnectionEntity.js.map +1 -1
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +2 -2
- package/dist/entities/contact/CorrelationIdentifierEntity.js +1 -1
- package/dist/entities/contact/IdentityEntity.d.ts +2 -2
- package/dist/entities/contact/IdentityEntity.d.ts.map +1 -1
- package/dist/entities/contact/IdentityEntity.js.map +1 -1
- package/dist/entities/contact/PartyTypeEntity.d.ts +2 -2
- package/dist/entities/contact/PartyTypeEntity.js +2 -2
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +4 -3
- package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +3 -2
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -1
- package/dist/types/contact/IAbstractContactStore.d.ts +2 -2
- package/dist/types/contact/contact.d.ts +14 -14
- package/dist/types/contact/contact.d.ts.map +1 -1
- package/dist/types/contact/contact.js +25 -25
- package/dist/types/contact/contact.js.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/contact.entities.test.ts +141 -141
- package/src/__tests__/contact.store.test.ts +198 -198
- package/src/contact/ContactStore.ts +15 -15
- package/src/entities/contact/ConnectionEntity.ts +3 -3
- package/src/entities/contact/CorrelationIdentifierEntity.ts +3 -3
- package/src/entities/contact/IdentityEntity.ts +2 -2
- package/src/entities/contact/PartyTypeEntity.ts +4 -4
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +6 -3
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +5 -2
- package/src/types/contact/IAbstractContactStore.ts +2 -2
- package/src/types/contact/contact.ts +15 -15
|
@@ -38,8 +38,8 @@ import {
|
|
|
38
38
|
AddPartyTypeArgs,
|
|
39
39
|
AddPhysicalAddressArgs,
|
|
40
40
|
AddRelationshipArgs,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
ConnectionType,
|
|
42
|
+
CorrelationIdentifierType,
|
|
43
43
|
ElectronicAddress,
|
|
44
44
|
GetElectronicAddressArgs,
|
|
45
45
|
GetElectronicAddressesArgs,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
Party,
|
|
60
60
|
PartyRelationship,
|
|
61
61
|
PartyType,
|
|
62
|
-
|
|
62
|
+
PartyTypeType,
|
|
63
63
|
PhysicalAddress,
|
|
64
64
|
RemoveElectronicAddressArgs,
|
|
65
65
|
RemoveIdentityArgs,
|
|
@@ -126,9 +126,9 @@ export class ContactStore extends AbstractContactStore {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
for (const identity of identities ?? []) {
|
|
129
|
-
if (identity.identifier.type ===
|
|
129
|
+
if (identity.identifier.type === CorrelationIdentifierType.URL) {
|
|
130
130
|
if (!identity.connection) {
|
|
131
|
-
return Promise.reject(Error(`Identity with correlation type ${
|
|
131
|
+
return Promise.reject(Error(`Identity with correlation type ${CorrelationIdentifierType.URL} should contain a connection`))
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
if (!this.hasCorrectConnectionConfig(identity.connection.type, identity.connection.config)) {
|
|
@@ -235,9 +235,9 @@ export class ContactStore extends AbstractContactStore {
|
|
|
235
235
|
return Promise.reject(Error(`No party found for id: ${partyId}`))
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
if (identity.identifier.type ===
|
|
238
|
+
if (identity.identifier.type === CorrelationIdentifierType.URL) {
|
|
239
239
|
if (!identity.connection) {
|
|
240
|
-
return Promise.reject(Error(`Identity with correlation type ${
|
|
240
|
+
return Promise.reject(Error(`Identity with correlation type ${CorrelationIdentifierType.URL} should contain a connection`))
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
if (!this.hasCorrectConnectionConfig(identity.connection.type, identity.connection.config)) {
|
|
@@ -266,9 +266,9 @@ export class ContactStore extends AbstractContactStore {
|
|
|
266
266
|
return Promise.reject(Error(`No identity found for id: ${identity.id}`))
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
if (identity.identifier.type ===
|
|
269
|
+
if (identity.identifier.type === CorrelationIdentifierType.URL) {
|
|
270
270
|
if (!identity.connection) {
|
|
271
|
-
return Promise.reject(Error(`Identity with correlation type ${
|
|
271
|
+
return Promise.reject(Error(`Identity with correlation type ${CorrelationIdentifierType.URL} should contain a connection`))
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
if (!this.hasCorrectConnectionConfig(identity.connection.type, identity.connection.config)) {
|
|
@@ -622,22 +622,22 @@ export class ContactStore extends AbstractContactStore {
|
|
|
622
622
|
await physicalAddressRepository.delete(physicalAddressId)
|
|
623
623
|
}
|
|
624
624
|
|
|
625
|
-
private hasCorrectConnectionConfig(type:
|
|
625
|
+
private hasCorrectConnectionConfig(type: ConnectionType, config: NonPersistedConnectionConfig): boolean {
|
|
626
626
|
switch (type) {
|
|
627
|
-
case
|
|
627
|
+
case ConnectionType.OPENID_CONNECT:
|
|
628
628
|
return isOpenIdConfig(config)
|
|
629
|
-
case
|
|
629
|
+
case ConnectionType.SIOPv2:
|
|
630
630
|
return isDidAuthConfig(config)
|
|
631
631
|
default:
|
|
632
632
|
throw new Error('Connection type not supported')
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
-
private hasCorrectPartyType(type:
|
|
636
|
+
private hasCorrectPartyType(type: PartyTypeType, contact: NonPersistedContact): boolean {
|
|
637
637
|
switch (type) {
|
|
638
|
-
case
|
|
638
|
+
case PartyTypeType.NATURAL_PERSON:
|
|
639
639
|
return isNaturalPerson(contact)
|
|
640
|
-
case
|
|
640
|
+
case PartyTypeType.ORGANIZATION:
|
|
641
641
|
return isOrganization(contact)
|
|
642
642
|
default:
|
|
643
643
|
throw new Error('Party type not supported')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Entity, Column, PrimaryGeneratedColumn, OneToOne, JoinColumn, BaseEntity } from 'typeorm'
|
|
2
2
|
import { BaseConfigEntity } from './BaseConfigEntity'
|
|
3
|
-
import {
|
|
3
|
+
import { ConnectionType } from '../../types'
|
|
4
4
|
import { IdentityEntity } from './IdentityEntity'
|
|
5
5
|
import { OpenIdConfigEntity } from './OpenIdConfigEntity'
|
|
6
6
|
import { DidAuthConfigEntity } from './DidAuthConfigEntity'
|
|
@@ -10,8 +10,8 @@ export class ConnectionEntity extends BaseEntity {
|
|
|
10
10
|
@PrimaryGeneratedColumn('uuid')
|
|
11
11
|
id!: string
|
|
12
12
|
|
|
13
|
-
@Column('simple-enum', { name: 'type', enum:
|
|
14
|
-
type!:
|
|
13
|
+
@Column('simple-enum', { name: 'type', enum: ConnectionType, nullable: false })
|
|
14
|
+
type!: ConnectionType
|
|
15
15
|
|
|
16
16
|
@OneToOne(() => BaseConfigEntity, (config: OpenIdConfigEntity | DidAuthConfigEntity) => config.connection, {
|
|
17
17
|
cascade: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Entity, Column, PrimaryGeneratedColumn, BaseEntity, OneToOne, JoinColumn, BeforeInsert, BeforeUpdate } from 'typeorm'
|
|
2
|
-
import {
|
|
2
|
+
import { CorrelationIdentifierType, ValidationConstraint } from '../../types'
|
|
3
3
|
import { IdentityEntity } from './IdentityEntity'
|
|
4
4
|
import { IsNotEmpty, validate, ValidationError } from 'class-validator'
|
|
5
5
|
import { getConstraint } from '../../utils/ValidatorUtils'
|
|
@@ -9,8 +9,8 @@ export class CorrelationIdentifierEntity extends BaseEntity {
|
|
|
9
9
|
@PrimaryGeneratedColumn('uuid')
|
|
10
10
|
id!: string
|
|
11
11
|
|
|
12
|
-
@Column('simple-enum', { name: 'type', enum:
|
|
13
|
-
type!:
|
|
12
|
+
@Column('simple-enum', { name: 'type', enum: CorrelationIdentifierType, nullable: false })
|
|
13
|
+
type!: CorrelationIdentifierType
|
|
14
14
|
|
|
15
15
|
@Column('text', { name: 'correlation_id', nullable: false, unique: true })
|
|
16
16
|
@IsNotEmpty({ message: 'Blank correlation ids are not allowed' })
|
|
@@ -16,7 +16,7 @@ import { IsNotEmpty, validate, ValidationError } from 'class-validator'
|
|
|
16
16
|
import { CorrelationIdentifierEntity } from './CorrelationIdentifierEntity'
|
|
17
17
|
import { ConnectionEntity } from './ConnectionEntity'
|
|
18
18
|
import { IdentityMetadataItemEntity } from './IdentityMetadataItemEntity'
|
|
19
|
-
import {
|
|
19
|
+
import { IdentityRole, ValidationConstraint } from '../../types'
|
|
20
20
|
import { PartyEntity } from './PartyEntity'
|
|
21
21
|
import { getConstraint } from '../../utils/ValidatorUtils'
|
|
22
22
|
|
|
@@ -35,7 +35,7 @@ export class IdentityEntity extends BaseEntity {
|
|
|
35
35
|
alias!: string
|
|
36
36
|
|
|
37
37
|
@Column('simple-array', { name: 'roles', nullable: false })
|
|
38
|
-
roles!: Array<
|
|
38
|
+
roles!: Array<IdentityRole>
|
|
39
39
|
|
|
40
40
|
@OneToOne(() => CorrelationIdentifierEntity, (identifier: CorrelationIdentifierEntity) => identifier.identity, {
|
|
41
41
|
cascade: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BeforeInsert, BeforeUpdate, Column, CreateDateColumn, Entity, Index, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
2
2
|
import { PartyEntity } from './PartyEntity'
|
|
3
|
-
import { PartyOrigin,
|
|
3
|
+
import { PartyOrigin, PartyTypeType, ValidationConstraint } from '../../types'
|
|
4
4
|
import { IsNotEmpty, Validate, validate, ValidationError } from 'class-validator'
|
|
5
5
|
import { IsNonEmptyStringConstraint } from '../validators'
|
|
6
6
|
import { getConstraint } from '../../utils/ValidatorUtils'
|
|
@@ -11,10 +11,10 @@ export class PartyTypeEntity {
|
|
|
11
11
|
@PrimaryGeneratedColumn('uuid')
|
|
12
12
|
id!: string
|
|
13
13
|
|
|
14
|
-
@Column('simple-enum', { name: 'type', enum:
|
|
15
|
-
type!:
|
|
14
|
+
@Column('simple-enum', { name: 'type', enum: PartyTypeType, nullable: false, unique: false })
|
|
15
|
+
type!: PartyTypeType
|
|
16
16
|
|
|
17
|
-
@Column('simple-enum', { name: 'origin', enum: PartyOrigin, default: '
|
|
17
|
+
@Column('simple-enum', { name: 'origin', enum: PartyOrigin, default: 'EXTERNAL', nullable: false, unique: false })
|
|
18
18
|
origin!: PartyOrigin
|
|
19
19
|
|
|
20
20
|
@Column({ name: 'name', length: 255, nullable: false, unique: true })
|
|
@@ -13,9 +13,9 @@ export class CreateContacts1690925872592 implements MigrationInterface {
|
|
|
13
13
|
await queryRunner.query(`ALTER TABLE "CorrelationIdentifier" RENAME COLUMN "identityId" TO "identity_id"`)
|
|
14
14
|
await queryRunner.query(`ALTER TABLE "Connection" RENAME COLUMN "identityId" TO "identity_id"`)
|
|
15
15
|
await queryRunner.query(`CREATE TYPE "public"."PartyType_type_enum" AS ENUM('naturalPerson', 'organization')`)
|
|
16
|
-
await queryRunner.query(`CREATE TYPE "public"."PartyOrigin_type_enum" AS ENUM('
|
|
16
|
+
await queryRunner.query(`CREATE TYPE "public"."PartyOrigin_type_enum" AS ENUM('INTERNAL', 'EXTERNAL')`)
|
|
17
17
|
await queryRunner.query(
|
|
18
|
-
`CREATE TABLE "PartyType" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "type" "public"."PartyType_type_enum" NOT NULL, "origin" "public"."PartyOrigin_type_enum" NOT NULL DEFAULT '
|
|
18
|
+
`CREATE TABLE "PartyType" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "type" "public"."PartyType_type_enum" NOT NULL, "origin" "public"."PartyOrigin_type_enum" NOT NULL DEFAULT 'EXTERNAL', "name" character varying(255) NOT NULL, "description" character varying(255), "tenant_id" character varying(255) NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "UQ_PartyType_name" UNIQUE ("name"), CONSTRAINT "PK_PartyType_id" PRIMARY KEY ("id"))`,
|
|
19
19
|
)
|
|
20
20
|
await queryRunner.query(`CREATE UNIQUE INDEX "IDX_PartyType_type_tenant_id" ON "PartyType" ("type", "tenant_id")`)
|
|
21
21
|
await queryRunner.query(
|
|
@@ -83,7 +83,10 @@ export class CreateContacts1690925872592 implements MigrationInterface {
|
|
|
83
83
|
)
|
|
84
84
|
await queryRunner.query(`DROP TABLE "BaseConfigEntity"`)
|
|
85
85
|
await queryRunner.query(
|
|
86
|
-
`INSERT INTO "PartyType"(id, type, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', '
|
|
86
|
+
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL' 'Sphereon_default_organization_type', 'sphereon_default_organization', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`,
|
|
87
|
+
)
|
|
88
|
+
await queryRunner.query(
|
|
89
|
+
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('7d248798-41ca-4fc1-a130-9934b43d532e', 'naturalPerson', 'INTERNAL', 'Sphereon_default_natural_person_type', 'sphereon_default_natural_person', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', now(), now())`,
|
|
87
90
|
)
|
|
88
91
|
await queryRunner.query(
|
|
89
92
|
`INSERT INTO "Party"(id, uri, created_at, last_updated_at, party_type_id) SELECT id, uri, created_at, last_updated_at, '3875c12e-fdaa-4ef6-a340-c936e054b627' FROM "Contact"`,
|
|
@@ -49,7 +49,7 @@ export class CreateContacts1690925872693 implements MigrationInterface {
|
|
|
49
49
|
await queryRunner.query(`DROP TABLE "Connection"`)
|
|
50
50
|
await queryRunner.query(`ALTER TABLE "temporary_Connection" RENAME TO "Connection"`)
|
|
51
51
|
await queryRunner.query(
|
|
52
|
-
`CREATE TABLE "PartyType" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('naturalPerson','organization') ) NOT NULL, "origin" varchar CHECK( "origin" IN ('
|
|
52
|
+
`CREATE TABLE "PartyType" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('naturalPerson','organization') ) NOT NULL, "origin" varchar CHECK( "origin" IN ('INTERNAL', 'EXTERNAL') ) NOT NULL DEFAULT 'EXTERNAL', "name" varchar(255) NOT NULL, "description" varchar(255), "tenant_id" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_PartyType_name" UNIQUE ("name"))`,
|
|
53
53
|
)
|
|
54
54
|
await queryRunner.query(`CREATE UNIQUE INDEX "IDX_PartyType_type_tenant_id" ON "PartyType" ("type", "tenant_id")`)
|
|
55
55
|
await queryRunner.query(
|
|
@@ -140,7 +140,10 @@ export class CreateContacts1690925872693 implements MigrationInterface {
|
|
|
140
140
|
)
|
|
141
141
|
await queryRunner.query(`DROP TABLE "BaseConfigEntity"`)
|
|
142
142
|
await queryRunner.query(
|
|
143
|
-
`INSERT INTO "PartyType"(id, type, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', '
|
|
143
|
+
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('3875c12e-fdaa-4ef6-a340-c936e054b627', 'organization', 'INTERNAL', 'Sphereon_default_organization_type', 'sphereon_default_organization', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', datetime('now'), datetime('now'))`,
|
|
144
|
+
)
|
|
145
|
+
await queryRunner.query(
|
|
146
|
+
`INSERT INTO "PartyType"(id, type, origin, name, description, tenant_id, created_at, last_updated_at) VALUES ('7d248798-41ca-4fc1-a130-9934b43d532e', 'naturalPerson', 'INTERNAL', 'Sphereon_default_natural_person_type', 'sphereon_default_natural_person', '95e09cfc-c974-4174-86aa-7bf1d5251fb4', datetime('now'), datetime('now'))`,
|
|
144
147
|
)
|
|
145
148
|
await queryRunner.query(
|
|
146
149
|
`INSERT INTO "Party"(id, uri, created_at, last_updated_at, party_type_id) SELECT id, uri, created_at, last_updated_at, '3875c12e-fdaa-4ef6-a340-c936e054b627' FROM "Contact"`,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
PartyOrigin,
|
|
17
17
|
PartyRelationship,
|
|
18
18
|
PartyType,
|
|
19
|
-
|
|
19
|
+
PartyTypeType,
|
|
20
20
|
PhysicalAddress,
|
|
21
21
|
} from './contact'
|
|
22
22
|
|
|
@@ -95,7 +95,7 @@ export type UpdateRelationshipArgs = {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
export type AddPartyTypeArgs = {
|
|
98
|
-
type:
|
|
98
|
+
type: PartyTypeType
|
|
99
99
|
origin: PartyOrigin
|
|
100
100
|
name: string
|
|
101
101
|
tenantId: string
|
|
@@ -3,7 +3,7 @@ import { IIdentifier } from '@veramo/core'
|
|
|
3
3
|
export type Party = {
|
|
4
4
|
id: string
|
|
5
5
|
uri?: string
|
|
6
|
-
roles: Array<
|
|
6
|
+
roles: Array<IdentityRole>
|
|
7
7
|
identities: Array<Identity>
|
|
8
8
|
electronicAddresses: Array<ElectronicAddress>
|
|
9
9
|
physicalAddresses: Array<PhysicalAddress>
|
|
@@ -47,7 +47,7 @@ export type PartialParty = Partial<
|
|
|
47
47
|
export type Identity = {
|
|
48
48
|
id: string
|
|
49
49
|
alias: string
|
|
50
|
-
roles: Array<
|
|
50
|
+
roles: Array<IdentityRole>
|
|
51
51
|
identifier: CorrelationIdentifier
|
|
52
52
|
connection?: Connection
|
|
53
53
|
metadata?: Array<MetadataItem>
|
|
@@ -63,7 +63,7 @@ export type PartialIdentity = Partial<Omit<Identity, 'identifier' | 'connection'
|
|
|
63
63
|
identifier?: PartialCorrelationIdentifier
|
|
64
64
|
connection?: PartialConnection
|
|
65
65
|
metadata?: PartialMetadataItem
|
|
66
|
-
roles?:
|
|
66
|
+
roles?: IdentityRole
|
|
67
67
|
partyId?: string
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -77,7 +77,7 @@ export type PartialMetadataItem = Partial<MetadataItem>
|
|
|
77
77
|
|
|
78
78
|
export type CorrelationIdentifier = {
|
|
79
79
|
id: string
|
|
80
|
-
type:
|
|
80
|
+
type: CorrelationIdentifierType
|
|
81
81
|
correlationId: string
|
|
82
82
|
}
|
|
83
83
|
export type NonPersistedCorrelationIdentifier = Omit<CorrelationIdentifier, 'id'>
|
|
@@ -85,7 +85,7 @@ export type PartialCorrelationIdentifier = Partial<CorrelationIdentifier>
|
|
|
85
85
|
|
|
86
86
|
export type Connection = {
|
|
87
87
|
id: string
|
|
88
|
-
type:
|
|
88
|
+
type: ConnectionType
|
|
89
89
|
config: ConnectionConfig
|
|
90
90
|
}
|
|
91
91
|
export type NonPersistedConnection = Omit<Connection, 'id' | 'config'> & {
|
|
@@ -150,14 +150,9 @@ export type Contact = NaturalPerson | Organization
|
|
|
150
150
|
export type NonPersistedContact = NonPersistedNaturalPerson | NonPersistedOrganization
|
|
151
151
|
export type PartialContact = PartialNaturalPerson | PartialOrganization
|
|
152
152
|
|
|
153
|
-
export enum PartyOrigin {
|
|
154
|
-
internal = 'internal',
|
|
155
|
-
external = 'external',
|
|
156
|
-
}
|
|
157
|
-
|
|
158
153
|
export type PartyType = {
|
|
159
154
|
id: string
|
|
160
|
-
type:
|
|
155
|
+
type: PartyTypeType
|
|
161
156
|
origin: PartyOrigin
|
|
162
157
|
name: string
|
|
163
158
|
tenantId: string
|
|
@@ -214,24 +209,29 @@ export type ElectronicAddressType = 'email' | 'phone'
|
|
|
214
209
|
|
|
215
210
|
export type PhysicalAddressType = 'home' | 'visit' | 'postal'
|
|
216
211
|
|
|
217
|
-
export enum
|
|
212
|
+
export enum IdentityRole {
|
|
218
213
|
ISSUER = 'issuer',
|
|
219
214
|
VERIFIER = 'verifier',
|
|
220
215
|
HOLDER = 'holder',
|
|
221
216
|
}
|
|
222
217
|
|
|
223
|
-
export enum
|
|
218
|
+
export enum ConnectionType {
|
|
224
219
|
OPENID_CONNECT = 'OIDC',
|
|
225
220
|
SIOPv2 = 'SIOPv2',
|
|
226
221
|
SIOPv2_OpenID4VP = 'SIOPv2+OpenID4VP',
|
|
227
222
|
}
|
|
228
223
|
|
|
229
|
-
export enum
|
|
224
|
+
export enum CorrelationIdentifierType {
|
|
230
225
|
DID = 'did',
|
|
231
226
|
URL = 'url',
|
|
232
227
|
}
|
|
233
228
|
|
|
234
|
-
export enum
|
|
229
|
+
export enum PartyTypeType {
|
|
235
230
|
NATURAL_PERSON = 'naturalPerson',
|
|
236
231
|
ORGANIZATION = 'organization',
|
|
237
232
|
}
|
|
233
|
+
|
|
234
|
+
export enum PartyOrigin {
|
|
235
|
+
INTERNAL = 'INTERNAL',
|
|
236
|
+
EXTERNAL = 'EXTERNAL',
|
|
237
|
+
}
|