@twin.org/identity-models 0.0.2-next.10 → 0.0.2-next.11
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/es/contextIdHandlers/didContextIdHandler.js +34 -0
- package/dist/es/contextIdHandlers/didContextIdHandler.js.map +1 -0
- package/dist/es/factories/identityConnectorFactory.js +9 -0
- package/dist/es/factories/identityConnectorFactory.js.map +1 -0
- package/dist/es/factories/identityProfileConnectorFactory.js +9 -0
- package/dist/es/factories/identityProfileConnectorFactory.js.map +1 -0
- package/dist/es/factories/identityResolverConnectorFactory.js +9 -0
- package/dist/es/factories/identityResolverConnectorFactory.js.map +1 -0
- package/dist/es/index.js +49 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IIdentityComponent.js +2 -0
- package/dist/es/models/IIdentityComponent.js.map +1 -0
- package/dist/es/models/IIdentityConnector.js +2 -0
- package/dist/es/models/IIdentityConnector.js.map +1 -0
- package/dist/es/models/IIdentityProfileComponent.js +2 -0
- package/dist/es/models/IIdentityProfileComponent.js.map +1 -0
- package/dist/es/models/IIdentityProfileConnector.js +2 -0
- package/dist/es/models/IIdentityProfileConnector.js.map +1 -0
- package/dist/es/models/IIdentityResolverComponent.js +2 -0
- package/dist/es/models/IIdentityResolverComponent.js.map +1 -0
- package/dist/es/models/IIdentityResolverConnector.js +2 -0
- package/dist/es/models/IIdentityResolverConnector.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityCreateRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityCreateRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityCreateResponse.js +2 -0
- package/dist/es/models/api/identity/IIdentityCreateResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityProofCreateRequest.js +2 -0
- package/dist/es/models/api/identity/IIdentityProofCreateRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityProofCreateResponse.js +2 -0
- package/dist/es/models/api/identity/IIdentityProofCreateResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityProofVerifyRequest.js +2 -0
- package/dist/es/models/api/identity/IIdentityProofVerifyRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityProofVerifyResponse.js +4 -0
- package/dist/es/models/api/identity/IIdentityProofVerifyResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityRemoveRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityRemoveRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityServiceCreateRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityServiceCreateRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityServiceCreateResponse.js +2 -0
- package/dist/es/models/api/identity/IIdentityServiceCreateResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityServiceRemoveRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityServiceRemoveRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialCreateRequest.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialCreateRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialCreateResponse.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialCreateResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyResponse.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateRequest.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateResponse.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyResponse.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerificationMethodCreateRequest.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerificationMethodCreateRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerificationMethodCreateResponse.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerificationMethodCreateResponse.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerificationMethodRemoveRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityVerificationMethodRemoveRequest.js.map +1 -0
- package/dist/es/models/api/profile/IIdentityProfileCreateRequest.js +2 -0
- package/dist/es/models/api/profile/IIdentityProfileCreateRequest.js.map +1 -0
- package/dist/es/models/api/profile/IIdentityProfileGetPublicRequest.js +4 -0
- package/dist/es/models/api/profile/IIdentityProfileGetPublicRequest.js.map +1 -0
- package/dist/es/models/api/profile/IIdentityProfileGetPublicResponse.js +2 -0
- package/dist/es/models/api/profile/IIdentityProfileGetPublicResponse.js.map +1 -0
- package/dist/es/models/api/profile/IIdentityProfileGetRequest.js +4 -0
- package/dist/es/models/api/profile/IIdentityProfileGetRequest.js.map +1 -0
- package/dist/es/models/api/profile/IIdentityProfileGetResponse.js +2 -0
- package/dist/es/models/api/profile/IIdentityProfileGetResponse.js.map +1 -0
- package/dist/es/models/api/profile/IIdentityProfileListRequest.js +4 -0
- package/dist/es/models/api/profile/IIdentityProfileListRequest.js.map +1 -0
- package/dist/es/models/api/profile/IIdentityProfileListResponse.js +2 -0
- package/dist/es/models/api/profile/IIdentityProfileListResponse.js.map +1 -0
- package/dist/es/models/api/profile/IIdentityProfileUpdateRequest.js +2 -0
- package/dist/es/models/api/profile/IIdentityProfileUpdateRequest.js.map +1 -0
- package/dist/es/models/api/resolver/IIdentityResolveRequest.js +4 -0
- package/dist/es/models/api/resolver/IIdentityResolveRequest.js.map +1 -0
- package/dist/es/models/api/resolver/IIdentityResolveResponse.js +2 -0
- package/dist/es/models/api/resolver/IIdentityResolveResponse.js.map +1 -0
- package/dist/es/types/did.js +53 -0
- package/dist/es/types/did.js.map +1 -0
- package/dist/es/utils/documentHelper.js +92 -0
- package/dist/es/utils/documentHelper.js.map +1 -0
- package/dist/es/utils/verificationHelper.js +79 -0
- package/dist/es/utils/verificationHelper.js.map +1 -0
- package/dist/types/contextIdHandlers/didContextIdHandler.d.ts +22 -0
- package/dist/types/factories/identityConnectorFactory.d.ts +1 -1
- package/dist/types/factories/identityProfileConnectorFactory.d.ts +1 -1
- package/dist/types/factories/identityResolverConnectorFactory.d.ts +1 -1
- package/dist/types/index.d.ts +46 -45
- package/dist/types/types/did.d.ts +28 -0
- package/dist/types/utils/verificationHelper.d.ts +1 -1
- package/docs/reference/classes/{IdHelper.md → Did.md} +41 -5
- package/docs/reference/classes/DidContextIdHandler.md +79 -0
- package/docs/reference/classes/DocumentHelper.md +2 -2
- package/docs/reference/classes/VerificationHelper.md +2 -2
- package/docs/reference/index.md +2 -1
- package/docs/reference/interfaces/IIdentityComponent.md +94 -6
- package/docs/reference/interfaces/IIdentityConnector.md +94 -6
- package/docs/reference/interfaces/IIdentityProfileComponent.md +94 -6
- package/docs/reference/interfaces/IIdentityProfileConnector.md +94 -6
- package/docs/reference/interfaces/IIdentityResolverComponent.md +94 -6
- package/docs/reference/interfaces/IIdentityResolverConnector.md +94 -6
- package/locales/en.json +3 -2
- package/package.json +34 -7
- package/dist/cjs/index.cjs +0 -241
- package/dist/esm/index.mjs +0 -234
- package/dist/types/utils/idHelper.d.ts +0 -20
package/docs/reference/index.md
CHANGED
|
@@ -6,15 +6,103 @@ Interface describing a contract which provides identity operations.
|
|
|
6
6
|
|
|
7
7
|
- `IComponent`
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Methods
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### className()
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
any additional properties or methods, which removes the TypeScript error where
|
|
15
|
-
the class has no properties in common with the type.
|
|
13
|
+
> **className**(): `string`
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Returns the class name of the component.
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`string`
|
|
20
|
+
|
|
21
|
+
The class name of the component.
|
|
22
|
+
|
|
23
|
+
#### Inherited from
|
|
24
|
+
|
|
25
|
+
`IComponent.className`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### bootstrap()?
|
|
30
|
+
|
|
31
|
+
> `optional` **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
|
|
32
|
+
|
|
33
|
+
Bootstrap the component by creating and initializing any resources it needs.
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
##### nodeLoggingComponentType?
|
|
38
|
+
|
|
39
|
+
`string`
|
|
40
|
+
|
|
41
|
+
The node logging component type.
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`Promise`\<`boolean`\>
|
|
46
|
+
|
|
47
|
+
True if the bootstrapping process was successful.
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
`IComponent.bootstrap`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### start()?
|
|
56
|
+
|
|
57
|
+
> `optional` **start**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
58
|
+
|
|
59
|
+
The component needs to be started when the node is initialized.
|
|
60
|
+
|
|
61
|
+
#### Parameters
|
|
62
|
+
|
|
63
|
+
##### nodeLoggingComponentType?
|
|
64
|
+
|
|
65
|
+
`string`
|
|
66
|
+
|
|
67
|
+
The node logging component type.
|
|
68
|
+
|
|
69
|
+
#### Returns
|
|
70
|
+
|
|
71
|
+
`Promise`\<`void`\>
|
|
72
|
+
|
|
73
|
+
Nothing.
|
|
74
|
+
|
|
75
|
+
#### Inherited from
|
|
76
|
+
|
|
77
|
+
`IComponent.start`
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### stop()?
|
|
82
|
+
|
|
83
|
+
> `optional` **stop**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
84
|
+
|
|
85
|
+
The component needs to be stopped when the node is closed.
|
|
86
|
+
|
|
87
|
+
#### Parameters
|
|
88
|
+
|
|
89
|
+
##### nodeLoggingComponentType?
|
|
90
|
+
|
|
91
|
+
`string`
|
|
92
|
+
|
|
93
|
+
The node logging component type.
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`Promise`\<`void`\>
|
|
98
|
+
|
|
99
|
+
Nothing.
|
|
100
|
+
|
|
101
|
+
#### Inherited from
|
|
102
|
+
|
|
103
|
+
`IComponent.stop`
|
|
104
|
+
|
|
105
|
+
***
|
|
18
106
|
|
|
19
107
|
### identityCreate()
|
|
20
108
|
|
|
@@ -6,15 +6,103 @@ Interface describing an identity connector.
|
|
|
6
6
|
|
|
7
7
|
- `IComponent`
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Methods
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### className()
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
any additional properties or methods, which removes the TypeScript error where
|
|
15
|
-
the class has no properties in common with the type.
|
|
13
|
+
> **className**(): `string`
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Returns the class name of the component.
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`string`
|
|
20
|
+
|
|
21
|
+
The class name of the component.
|
|
22
|
+
|
|
23
|
+
#### Inherited from
|
|
24
|
+
|
|
25
|
+
`IComponent.className`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### bootstrap()?
|
|
30
|
+
|
|
31
|
+
> `optional` **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
|
|
32
|
+
|
|
33
|
+
Bootstrap the component by creating and initializing any resources it needs.
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
##### nodeLoggingComponentType?
|
|
38
|
+
|
|
39
|
+
`string`
|
|
40
|
+
|
|
41
|
+
The node logging component type.
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`Promise`\<`boolean`\>
|
|
46
|
+
|
|
47
|
+
True if the bootstrapping process was successful.
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
`IComponent.bootstrap`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### start()?
|
|
56
|
+
|
|
57
|
+
> `optional` **start**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
58
|
+
|
|
59
|
+
The component needs to be started when the node is initialized.
|
|
60
|
+
|
|
61
|
+
#### Parameters
|
|
62
|
+
|
|
63
|
+
##### nodeLoggingComponentType?
|
|
64
|
+
|
|
65
|
+
`string`
|
|
66
|
+
|
|
67
|
+
The node logging component type.
|
|
68
|
+
|
|
69
|
+
#### Returns
|
|
70
|
+
|
|
71
|
+
`Promise`\<`void`\>
|
|
72
|
+
|
|
73
|
+
Nothing.
|
|
74
|
+
|
|
75
|
+
#### Inherited from
|
|
76
|
+
|
|
77
|
+
`IComponent.start`
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### stop()?
|
|
82
|
+
|
|
83
|
+
> `optional` **stop**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
84
|
+
|
|
85
|
+
The component needs to be stopped when the node is closed.
|
|
86
|
+
|
|
87
|
+
#### Parameters
|
|
88
|
+
|
|
89
|
+
##### nodeLoggingComponentType?
|
|
90
|
+
|
|
91
|
+
`string`
|
|
92
|
+
|
|
93
|
+
The node logging component type.
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`Promise`\<`void`\>
|
|
98
|
+
|
|
99
|
+
Nothing.
|
|
100
|
+
|
|
101
|
+
#### Inherited from
|
|
102
|
+
|
|
103
|
+
`IComponent.stop`
|
|
104
|
+
|
|
105
|
+
***
|
|
18
106
|
|
|
19
107
|
### createDocument()
|
|
20
108
|
|
|
@@ -16,15 +16,103 @@ Interface describing a contract which provides profile operations.
|
|
|
16
16
|
|
|
17
17
|
`U` *extends* `IJsonLdDocument` = `IJsonLdDocument`
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Methods
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
### className()
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
any additional properties or methods, which removes the TypeScript error where
|
|
25
|
-
the class has no properties in common with the type.
|
|
23
|
+
> **className**(): `string`
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
Returns the class name of the component.
|
|
26
|
+
|
|
27
|
+
#### Returns
|
|
28
|
+
|
|
29
|
+
`string`
|
|
30
|
+
|
|
31
|
+
The class name of the component.
|
|
32
|
+
|
|
33
|
+
#### Inherited from
|
|
34
|
+
|
|
35
|
+
`IComponent.className`
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### bootstrap()?
|
|
40
|
+
|
|
41
|
+
> `optional` **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
|
|
42
|
+
|
|
43
|
+
Bootstrap the component by creating and initializing any resources it needs.
|
|
44
|
+
|
|
45
|
+
#### Parameters
|
|
46
|
+
|
|
47
|
+
##### nodeLoggingComponentType?
|
|
48
|
+
|
|
49
|
+
`string`
|
|
50
|
+
|
|
51
|
+
The node logging component type.
|
|
52
|
+
|
|
53
|
+
#### Returns
|
|
54
|
+
|
|
55
|
+
`Promise`\<`boolean`\>
|
|
56
|
+
|
|
57
|
+
True if the bootstrapping process was successful.
|
|
58
|
+
|
|
59
|
+
#### Inherited from
|
|
60
|
+
|
|
61
|
+
`IComponent.bootstrap`
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### start()?
|
|
66
|
+
|
|
67
|
+
> `optional` **start**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
68
|
+
|
|
69
|
+
The component needs to be started when the node is initialized.
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
##### nodeLoggingComponentType?
|
|
74
|
+
|
|
75
|
+
`string`
|
|
76
|
+
|
|
77
|
+
The node logging component type.
|
|
78
|
+
|
|
79
|
+
#### Returns
|
|
80
|
+
|
|
81
|
+
`Promise`\<`void`\>
|
|
82
|
+
|
|
83
|
+
Nothing.
|
|
84
|
+
|
|
85
|
+
#### Inherited from
|
|
86
|
+
|
|
87
|
+
`IComponent.start`
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
### stop()?
|
|
92
|
+
|
|
93
|
+
> `optional` **stop**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
94
|
+
|
|
95
|
+
The component needs to be stopped when the node is closed.
|
|
96
|
+
|
|
97
|
+
#### Parameters
|
|
98
|
+
|
|
99
|
+
##### nodeLoggingComponentType?
|
|
100
|
+
|
|
101
|
+
`string`
|
|
102
|
+
|
|
103
|
+
The node logging component type.
|
|
104
|
+
|
|
105
|
+
#### Returns
|
|
106
|
+
|
|
107
|
+
`Promise`\<`void`\>
|
|
108
|
+
|
|
109
|
+
Nothing.
|
|
110
|
+
|
|
111
|
+
#### Inherited from
|
|
112
|
+
|
|
113
|
+
`IComponent.stop`
|
|
114
|
+
|
|
115
|
+
***
|
|
28
116
|
|
|
29
117
|
### create()
|
|
30
118
|
|
|
@@ -16,15 +16,103 @@ Interface describing a contract which provides profile operations.
|
|
|
16
16
|
|
|
17
17
|
`U` *extends* `IJsonLdDocument` = `IJsonLdDocument`
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Methods
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
### className()
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
any additional properties or methods, which removes the TypeScript error where
|
|
25
|
-
the class has no properties in common with the type.
|
|
23
|
+
> **className**(): `string`
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
Returns the class name of the component.
|
|
26
|
+
|
|
27
|
+
#### Returns
|
|
28
|
+
|
|
29
|
+
`string`
|
|
30
|
+
|
|
31
|
+
The class name of the component.
|
|
32
|
+
|
|
33
|
+
#### Inherited from
|
|
34
|
+
|
|
35
|
+
`IComponent.className`
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### bootstrap()?
|
|
40
|
+
|
|
41
|
+
> `optional` **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
|
|
42
|
+
|
|
43
|
+
Bootstrap the component by creating and initializing any resources it needs.
|
|
44
|
+
|
|
45
|
+
#### Parameters
|
|
46
|
+
|
|
47
|
+
##### nodeLoggingComponentType?
|
|
48
|
+
|
|
49
|
+
`string`
|
|
50
|
+
|
|
51
|
+
The node logging component type.
|
|
52
|
+
|
|
53
|
+
#### Returns
|
|
54
|
+
|
|
55
|
+
`Promise`\<`boolean`\>
|
|
56
|
+
|
|
57
|
+
True if the bootstrapping process was successful.
|
|
58
|
+
|
|
59
|
+
#### Inherited from
|
|
60
|
+
|
|
61
|
+
`IComponent.bootstrap`
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### start()?
|
|
66
|
+
|
|
67
|
+
> `optional` **start**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
68
|
+
|
|
69
|
+
The component needs to be started when the node is initialized.
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
##### nodeLoggingComponentType?
|
|
74
|
+
|
|
75
|
+
`string`
|
|
76
|
+
|
|
77
|
+
The node logging component type.
|
|
78
|
+
|
|
79
|
+
#### Returns
|
|
80
|
+
|
|
81
|
+
`Promise`\<`void`\>
|
|
82
|
+
|
|
83
|
+
Nothing.
|
|
84
|
+
|
|
85
|
+
#### Inherited from
|
|
86
|
+
|
|
87
|
+
`IComponent.start`
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
### stop()?
|
|
92
|
+
|
|
93
|
+
> `optional` **stop**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
94
|
+
|
|
95
|
+
The component needs to be stopped when the node is closed.
|
|
96
|
+
|
|
97
|
+
#### Parameters
|
|
98
|
+
|
|
99
|
+
##### nodeLoggingComponentType?
|
|
100
|
+
|
|
101
|
+
`string`
|
|
102
|
+
|
|
103
|
+
The node logging component type.
|
|
104
|
+
|
|
105
|
+
#### Returns
|
|
106
|
+
|
|
107
|
+
`Promise`\<`void`\>
|
|
108
|
+
|
|
109
|
+
Nothing.
|
|
110
|
+
|
|
111
|
+
#### Inherited from
|
|
112
|
+
|
|
113
|
+
`IComponent.stop`
|
|
114
|
+
|
|
115
|
+
***
|
|
28
116
|
|
|
29
117
|
### create()
|
|
30
118
|
|
|
@@ -6,15 +6,103 @@ Interface describing a contract which provides identity operations.
|
|
|
6
6
|
|
|
7
7
|
- `IComponent`
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Methods
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### className()
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
any additional properties or methods, which removes the TypeScript error where
|
|
15
|
-
the class has no properties in common with the type.
|
|
13
|
+
> **className**(): `string`
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Returns the class name of the component.
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`string`
|
|
20
|
+
|
|
21
|
+
The class name of the component.
|
|
22
|
+
|
|
23
|
+
#### Inherited from
|
|
24
|
+
|
|
25
|
+
`IComponent.className`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### bootstrap()?
|
|
30
|
+
|
|
31
|
+
> `optional` **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
|
|
32
|
+
|
|
33
|
+
Bootstrap the component by creating and initializing any resources it needs.
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
##### nodeLoggingComponentType?
|
|
38
|
+
|
|
39
|
+
`string`
|
|
40
|
+
|
|
41
|
+
The node logging component type.
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`Promise`\<`boolean`\>
|
|
46
|
+
|
|
47
|
+
True if the bootstrapping process was successful.
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
`IComponent.bootstrap`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### start()?
|
|
56
|
+
|
|
57
|
+
> `optional` **start**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
58
|
+
|
|
59
|
+
The component needs to be started when the node is initialized.
|
|
60
|
+
|
|
61
|
+
#### Parameters
|
|
62
|
+
|
|
63
|
+
##### nodeLoggingComponentType?
|
|
64
|
+
|
|
65
|
+
`string`
|
|
66
|
+
|
|
67
|
+
The node logging component type.
|
|
68
|
+
|
|
69
|
+
#### Returns
|
|
70
|
+
|
|
71
|
+
`Promise`\<`void`\>
|
|
72
|
+
|
|
73
|
+
Nothing.
|
|
74
|
+
|
|
75
|
+
#### Inherited from
|
|
76
|
+
|
|
77
|
+
`IComponent.start`
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### stop()?
|
|
82
|
+
|
|
83
|
+
> `optional` **stop**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
84
|
+
|
|
85
|
+
The component needs to be stopped when the node is closed.
|
|
86
|
+
|
|
87
|
+
#### Parameters
|
|
88
|
+
|
|
89
|
+
##### nodeLoggingComponentType?
|
|
90
|
+
|
|
91
|
+
`string`
|
|
92
|
+
|
|
93
|
+
The node logging component type.
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`Promise`\<`void`\>
|
|
98
|
+
|
|
99
|
+
Nothing.
|
|
100
|
+
|
|
101
|
+
#### Inherited from
|
|
102
|
+
|
|
103
|
+
`IComponent.stop`
|
|
104
|
+
|
|
105
|
+
***
|
|
18
106
|
|
|
19
107
|
### identityResolve()
|
|
20
108
|
|
|
@@ -6,15 +6,103 @@ Interface describing an identity connector.
|
|
|
6
6
|
|
|
7
7
|
- `IComponent`
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Methods
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### className()
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
any additional properties or methods, which removes the TypeScript error where
|
|
15
|
-
the class has no properties in common with the type.
|
|
13
|
+
> **className**(): `string`
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Returns the class name of the component.
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`string`
|
|
20
|
+
|
|
21
|
+
The class name of the component.
|
|
22
|
+
|
|
23
|
+
#### Inherited from
|
|
24
|
+
|
|
25
|
+
`IComponent.className`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### bootstrap()?
|
|
30
|
+
|
|
31
|
+
> `optional` **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
|
|
32
|
+
|
|
33
|
+
Bootstrap the component by creating and initializing any resources it needs.
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
##### nodeLoggingComponentType?
|
|
38
|
+
|
|
39
|
+
`string`
|
|
40
|
+
|
|
41
|
+
The node logging component type.
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`Promise`\<`boolean`\>
|
|
46
|
+
|
|
47
|
+
True if the bootstrapping process was successful.
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
`IComponent.bootstrap`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### start()?
|
|
56
|
+
|
|
57
|
+
> `optional` **start**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
58
|
+
|
|
59
|
+
The component needs to be started when the node is initialized.
|
|
60
|
+
|
|
61
|
+
#### Parameters
|
|
62
|
+
|
|
63
|
+
##### nodeLoggingComponentType?
|
|
64
|
+
|
|
65
|
+
`string`
|
|
66
|
+
|
|
67
|
+
The node logging component type.
|
|
68
|
+
|
|
69
|
+
#### Returns
|
|
70
|
+
|
|
71
|
+
`Promise`\<`void`\>
|
|
72
|
+
|
|
73
|
+
Nothing.
|
|
74
|
+
|
|
75
|
+
#### Inherited from
|
|
76
|
+
|
|
77
|
+
`IComponent.start`
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### stop()?
|
|
82
|
+
|
|
83
|
+
> `optional` **stop**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
84
|
+
|
|
85
|
+
The component needs to be stopped when the node is closed.
|
|
86
|
+
|
|
87
|
+
#### Parameters
|
|
88
|
+
|
|
89
|
+
##### nodeLoggingComponentType?
|
|
90
|
+
|
|
91
|
+
`string`
|
|
92
|
+
|
|
93
|
+
The node logging component type.
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`Promise`\<`void`\>
|
|
98
|
+
|
|
99
|
+
Nothing.
|
|
100
|
+
|
|
101
|
+
#### Inherited from
|
|
102
|
+
|
|
103
|
+
`IComponent.stop`
|
|
104
|
+
|
|
105
|
+
***
|
|
18
106
|
|
|
19
107
|
### resolveDocument()
|
|
20
108
|
|
package/locales/en.json
CHANGED
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
"verificationMethodNotFound": "The verification method \"{methodName}\" of type \"{methodType}\" could not be found",
|
|
9
9
|
"verificationMethodJwkNotFound": "The verification method \"{methodName}\" of type \"{methodType}\" is missing the JWK"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"guard": {
|
|
12
|
+
"didPartsTooFew": "The DID \"{value}\" is invalid: expected at least 3 parts but got fewer",
|
|
13
|
+
"didInvalidStart": "The DID \"{value}\" is invalid: expected to start with 'did'"
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|