@twin.org/immutable-proof-service 0.0.1-next.14 → 0.0.1-next.16

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.
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var entity = require('@twin.org/entity');
3
4
  var core = require('@twin.org/core');
4
5
  var immutableProofModels = require('@twin.org/immutable-proof-models');
5
6
  var standardsW3cDid = require('@twin.org/standards-w3c-did');
@@ -11,7 +12,73 @@ var entityStorageModels = require('@twin.org/entity-storage-models');
11
12
  var identityModels = require('@twin.org/identity-models');
12
13
  var immutableStorageModels = require('@twin.org/immutable-storage-models');
13
14
  var vaultModels = require('@twin.org/vault-models');
14
- var entity = require('@twin.org/entity');
15
+
16
+ // Copyright 2024 IOTA Stiftung.
17
+ // SPDX-License-Identifier: Apache-2.0.
18
+ /**
19
+ * Class describing the immutable proof.
20
+ */
21
+ exports.ImmutableProof = class ImmutableProof {
22
+ /**
23
+ * The id of the proof.
24
+ */
25
+ id;
26
+ /**
27
+ * The identity of the node which controls the proof.
28
+ */
29
+ nodeIdentity;
30
+ /**
31
+ * The identity of the user which created the proof.
32
+ */
33
+ userIdentity;
34
+ /**
35
+ * The date/time of when the proof was created.
36
+ */
37
+ dateCreated;
38
+ /**
39
+ * The associated id for the item.
40
+ */
41
+ proofObjectId;
42
+ /**
43
+ * The associated hash for the item.
44
+ */
45
+ proofObjectHash;
46
+ /**
47
+ * The immutable storage id.
48
+ */
49
+ immutableStorageId;
50
+ };
51
+ __decorate([
52
+ entity.property({ type: "string", isPrimary: true }),
53
+ __metadata("design:type", String)
54
+ ], exports.ImmutableProof.prototype, "id", undefined);
55
+ __decorate([
56
+ entity.property({ type: "string" }),
57
+ __metadata("design:type", String)
58
+ ], exports.ImmutableProof.prototype, "nodeIdentity", undefined);
59
+ __decorate([
60
+ entity.property({ type: "string" }),
61
+ __metadata("design:type", String)
62
+ ], exports.ImmutableProof.prototype, "userIdentity", undefined);
63
+ __decorate([
64
+ entity.property({ type: "string", format: "date-time", sortDirection: entity.SortDirection.Descending }),
65
+ __metadata("design:type", String)
66
+ ], exports.ImmutableProof.prototype, "dateCreated", undefined);
67
+ __decorate([
68
+ entity.property({ type: "string" }),
69
+ __metadata("design:type", String)
70
+ ], exports.ImmutableProof.prototype, "proofObjectId", undefined);
71
+ __decorate([
72
+ entity.property({ type: "string" }),
73
+ __metadata("design:type", String)
74
+ ], exports.ImmutableProof.prototype, "proofObjectHash", undefined);
75
+ __decorate([
76
+ entity.property({ type: "string" }),
77
+ __metadata("design:type", String)
78
+ ], exports.ImmutableProof.prototype, "immutableStorageId", undefined);
79
+ exports.ImmutableProof = __decorate([
80
+ entity.entity()
81
+ ], exports.ImmutableProof);
15
82
 
16
83
  /**
17
84
  * The source used when communicating about these routes.
@@ -350,13 +417,6 @@ class ImmutableProofService {
350
417
  /**
351
418
  * Create a new instance of ImmutableProofService.
352
419
  * @param options The dependencies for the immutable proof connector.
353
- * @param options.config The configuration for the connector.
354
- * @param options.vaultConnectorType The vault connector type, defaults to "vault".
355
- * @param options.immutableProofEntityStorageType The entity storage for proofs, defaults to "immutable-proof".
356
- * @param options.immutableStorageType The immutable storage, defaults to "immutable-storage".
357
- * @param options.identityConnectorType The identity connector type, defaults to "identity".
358
- * @param options.backgroundTaskConnectorType The background task connector type, defaults to "background-task".
359
- * @param options.eventBusComponentType The event bus component type, defaults to no event bus.
360
420
  */
361
421
  constructor(options) {
362
422
  this._vaultConnector = vaultModels.VaultConnectorFactory.get(options?.vaultConnectorType ?? "vault");
@@ -642,73 +702,6 @@ class ImmutableProofService {
642
702
  }
643
703
  }
644
704
 
645
- // Copyright 2024 IOTA Stiftung.
646
- // SPDX-License-Identifier: Apache-2.0.
647
- /**
648
- * Class describing the immutable proof.
649
- */
650
- exports.ImmutableProof = class ImmutableProof {
651
- /**
652
- * The id of the proof.
653
- */
654
- id;
655
- /**
656
- * The identity of the node which controls the proof.
657
- */
658
- nodeIdentity;
659
- /**
660
- * The identity of the user which created the proof.
661
- */
662
- userIdentity;
663
- /**
664
- * The date/time of when the proof was created.
665
- */
666
- dateCreated;
667
- /**
668
- * The associated id for the item.
669
- */
670
- proofObjectId;
671
- /**
672
- * The associated hash for the item.
673
- */
674
- proofObjectHash;
675
- /**
676
- * The immutable storage id.
677
- */
678
- immutableStorageId;
679
- };
680
- __decorate([
681
- entity.property({ type: "string", isPrimary: true }),
682
- __metadata("design:type", String)
683
- ], exports.ImmutableProof.prototype, "id", void 0);
684
- __decorate([
685
- entity.property({ type: "string" }),
686
- __metadata("design:type", String)
687
- ], exports.ImmutableProof.prototype, "nodeIdentity", void 0);
688
- __decorate([
689
- entity.property({ type: "string" }),
690
- __metadata("design:type", String)
691
- ], exports.ImmutableProof.prototype, "userIdentity", void 0);
692
- __decorate([
693
- entity.property({ type: "string", format: "date-time", sortDirection: entity.SortDirection.Descending }),
694
- __metadata("design:type", String)
695
- ], exports.ImmutableProof.prototype, "dateCreated", void 0);
696
- __decorate([
697
- entity.property({ type: "string" }),
698
- __metadata("design:type", String)
699
- ], exports.ImmutableProof.prototype, "proofObjectId", void 0);
700
- __decorate([
701
- entity.property({ type: "string" }),
702
- __metadata("design:type", String)
703
- ], exports.ImmutableProof.prototype, "proofObjectHash", void 0);
704
- __decorate([
705
- entity.property({ type: "string" }),
706
- __metadata("design:type", String)
707
- ], exports.ImmutableProof.prototype, "immutableStorageId", void 0);
708
- exports.ImmutableProof = __decorate([
709
- entity.entity()
710
- ], exports.ImmutableProof);
711
-
712
705
  const restEntryPoints = [
713
706
  {
714
707
  name: "immutable-proof",
@@ -1,3 +1,4 @@
1
+ import { property, SortDirection, entity, EntitySchemaFactory, EntitySchemaHelper } from '@twin.org/entity';
1
2
  import { Guards, ComponentFactory, StringHelper, Is, Validation, Converter, RandomHelper, ObjectHelper, Urn, GeneralError, NotFoundError, JsonHelper } from '@twin.org/core';
2
3
  import { ImmutableProofTypes, ImmutableProofFailure, ImmutableProofTopics } from '@twin.org/immutable-proof-models';
3
4
  import { DidContexts, DidTypes, DidCryptoSuites } from '@twin.org/standards-w3c-did';
@@ -9,7 +10,73 @@ import { EntityStorageConnectorFactory } from '@twin.org/entity-storage-models';
9
10
  import { IdentityConnectorFactory } from '@twin.org/identity-models';
10
11
  import { ImmutableStorageConnectorFactory, ImmutableStorageTypes } from '@twin.org/immutable-storage-models';
11
12
  import { VaultConnectorFactory } from '@twin.org/vault-models';
12
- import { property, SortDirection, entity, EntitySchemaFactory, EntitySchemaHelper } from '@twin.org/entity';
13
+
14
+ // Copyright 2024 IOTA Stiftung.
15
+ // SPDX-License-Identifier: Apache-2.0.
16
+ /**
17
+ * Class describing the immutable proof.
18
+ */
19
+ let ImmutableProof = class ImmutableProof {
20
+ /**
21
+ * The id of the proof.
22
+ */
23
+ id;
24
+ /**
25
+ * The identity of the node which controls the proof.
26
+ */
27
+ nodeIdentity;
28
+ /**
29
+ * The identity of the user which created the proof.
30
+ */
31
+ userIdentity;
32
+ /**
33
+ * The date/time of when the proof was created.
34
+ */
35
+ dateCreated;
36
+ /**
37
+ * The associated id for the item.
38
+ */
39
+ proofObjectId;
40
+ /**
41
+ * The associated hash for the item.
42
+ */
43
+ proofObjectHash;
44
+ /**
45
+ * The immutable storage id.
46
+ */
47
+ immutableStorageId;
48
+ };
49
+ __decorate([
50
+ property({ type: "string", isPrimary: true }),
51
+ __metadata("design:type", String)
52
+ ], ImmutableProof.prototype, "id", undefined);
53
+ __decorate([
54
+ property({ type: "string" }),
55
+ __metadata("design:type", String)
56
+ ], ImmutableProof.prototype, "nodeIdentity", undefined);
57
+ __decorate([
58
+ property({ type: "string" }),
59
+ __metadata("design:type", String)
60
+ ], ImmutableProof.prototype, "userIdentity", undefined);
61
+ __decorate([
62
+ property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
63
+ __metadata("design:type", String)
64
+ ], ImmutableProof.prototype, "dateCreated", undefined);
65
+ __decorate([
66
+ property({ type: "string" }),
67
+ __metadata("design:type", String)
68
+ ], ImmutableProof.prototype, "proofObjectId", undefined);
69
+ __decorate([
70
+ property({ type: "string" }),
71
+ __metadata("design:type", String)
72
+ ], ImmutableProof.prototype, "proofObjectHash", undefined);
73
+ __decorate([
74
+ property({ type: "string" }),
75
+ __metadata("design:type", String)
76
+ ], ImmutableProof.prototype, "immutableStorageId", undefined);
77
+ ImmutableProof = __decorate([
78
+ entity()
79
+ ], ImmutableProof);
13
80
 
14
81
  /**
15
82
  * The source used when communicating about these routes.
@@ -348,13 +415,6 @@ class ImmutableProofService {
348
415
  /**
349
416
  * Create a new instance of ImmutableProofService.
350
417
  * @param options The dependencies for the immutable proof connector.
351
- * @param options.config The configuration for the connector.
352
- * @param options.vaultConnectorType The vault connector type, defaults to "vault".
353
- * @param options.immutableProofEntityStorageType The entity storage for proofs, defaults to "immutable-proof".
354
- * @param options.immutableStorageType The immutable storage, defaults to "immutable-storage".
355
- * @param options.identityConnectorType The identity connector type, defaults to "identity".
356
- * @param options.backgroundTaskConnectorType The background task connector type, defaults to "background-task".
357
- * @param options.eventBusComponentType The event bus component type, defaults to no event bus.
358
418
  */
359
419
  constructor(options) {
360
420
  this._vaultConnector = VaultConnectorFactory.get(options?.vaultConnectorType ?? "vault");
@@ -640,73 +700,6 @@ class ImmutableProofService {
640
700
  }
641
701
  }
642
702
 
643
- // Copyright 2024 IOTA Stiftung.
644
- // SPDX-License-Identifier: Apache-2.0.
645
- /**
646
- * Class describing the immutable proof.
647
- */
648
- let ImmutableProof = class ImmutableProof {
649
- /**
650
- * The id of the proof.
651
- */
652
- id;
653
- /**
654
- * The identity of the node which controls the proof.
655
- */
656
- nodeIdentity;
657
- /**
658
- * The identity of the user which created the proof.
659
- */
660
- userIdentity;
661
- /**
662
- * The date/time of when the proof was created.
663
- */
664
- dateCreated;
665
- /**
666
- * The associated id for the item.
667
- */
668
- proofObjectId;
669
- /**
670
- * The associated hash for the item.
671
- */
672
- proofObjectHash;
673
- /**
674
- * The immutable storage id.
675
- */
676
- immutableStorageId;
677
- };
678
- __decorate([
679
- property({ type: "string", isPrimary: true }),
680
- __metadata("design:type", String)
681
- ], ImmutableProof.prototype, "id", void 0);
682
- __decorate([
683
- property({ type: "string" }),
684
- __metadata("design:type", String)
685
- ], ImmutableProof.prototype, "nodeIdentity", void 0);
686
- __decorate([
687
- property({ type: "string" }),
688
- __metadata("design:type", String)
689
- ], ImmutableProof.prototype, "userIdentity", void 0);
690
- __decorate([
691
- property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
692
- __metadata("design:type", String)
693
- ], ImmutableProof.prototype, "dateCreated", void 0);
694
- __decorate([
695
- property({ type: "string" }),
696
- __metadata("design:type", String)
697
- ], ImmutableProof.prototype, "proofObjectId", void 0);
698
- __decorate([
699
- property({ type: "string" }),
700
- __metadata("design:type", String)
701
- ], ImmutableProof.prototype, "proofObjectHash", void 0);
702
- __decorate([
703
- property({ type: "string" }),
704
- __metadata("design:type", String)
705
- ], ImmutableProof.prototype, "immutableStorageId", void 0);
706
- ImmutableProof = __decorate([
707
- entity()
708
- ], ImmutableProof);
709
-
710
703
  const restEntryPoints = [
711
704
  {
712
705
  name: "immutable-proof",
@@ -1,6 +1,6 @@
1
1
  import { type IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
2
  import { type IImmutableProof, type IImmutableProofComponent, type IImmutableProofVerification } from "@twin.org/immutable-proof-models";
3
- import type { IImmutableProofServiceConfig } from "./models/IImmutableProofServiceConfig";
3
+ import type { IImmutableProofServiceConstructorOptions } from "./models/IImmutableProofServiceConstructorOptions";
4
4
  /**
5
5
  * Class for performing immutable proof operations.
6
6
  */
@@ -16,23 +16,8 @@ export declare class ImmutableProofService implements IImmutableProofComponent {
16
16
  /**
17
17
  * Create a new instance of ImmutableProofService.
18
18
  * @param options The dependencies for the immutable proof connector.
19
- * @param options.config The configuration for the connector.
20
- * @param options.vaultConnectorType The vault connector type, defaults to "vault".
21
- * @param options.immutableProofEntityStorageType The entity storage for proofs, defaults to "immutable-proof".
22
- * @param options.immutableStorageType The immutable storage, defaults to "immutable-storage".
23
- * @param options.identityConnectorType The identity connector type, defaults to "identity".
24
- * @param options.backgroundTaskConnectorType The background task connector type, defaults to "background-task".
25
- * @param options.eventBusComponentType The event bus component type, defaults to no event bus.
26
19
  */
27
- constructor(options?: {
28
- vaultConnectorType?: string;
29
- immutableProofEntityStorageType?: string;
30
- immutableStorageType?: string;
31
- identityConnectorType?: string;
32
- backgroundTaskConnectorType?: string;
33
- eventBusComponentType?: string;
34
- config?: IImmutableProofServiceConfig;
35
- });
20
+ constructor(options?: IImmutableProofServiceConstructorOptions);
36
21
  /**
37
22
  * Create a new authentication proof.
38
23
  * @param proofObject The object for the proof as JSON-LD.
@@ -1,6 +1,7 @@
1
+ export * from "./entities/immutableProof";
1
2
  export * from "./immutableProofRoutes";
2
3
  export * from "./immutableProofService";
3
- export * from "./entities/immutableProof";
4
4
  export * from "./models/IImmutableProofServiceConfig";
5
+ export * from "./models/IImmutableProofServiceConstructorOptions";
5
6
  export * from "./restEntryPoints";
6
7
  export * from "./schema";
@@ -0,0 +1,39 @@
1
+ import type { IImmutableProofServiceConfig } from "./IImmutableProofServiceConfig";
2
+ /**
3
+ * Options for the immutable proof service constructor.
4
+ */
5
+ export interface IImmutableProofServiceConstructorOptions {
6
+ /**
7
+ * The vault connector type.
8
+ * @default vault
9
+ */
10
+ vaultConnectorType?: string;
11
+ /**
12
+ * The entity storage for proofs.
13
+ * @default immutable-proof
14
+ */
15
+ immutableProofEntityStorageType?: string;
16
+ /**
17
+ * The immutable storage.
18
+ * @default immutable-storage
19
+ */
20
+ immutableStorageType?: string;
21
+ /**
22
+ * The identity connector type.
23
+ * @default identity
24
+ */
25
+ identityConnectorType?: string;
26
+ /**
27
+ * The background task connector type.
28
+ * @default background-task
29
+ */
30
+ backgroundTaskConnectorType?: string;
31
+ /**
32
+ * The event bus component type, defaults to no event bus.
33
+ */
34
+ eventBusComponentType?: string;
35
+ /**
36
+ * The configuration for the connector.
37
+ */
38
+ config?: IImmutableProofServiceConfig;
39
+ }
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/immutable-proof-service - Changelog
2
2
 
3
- ## v0.0.1-next.14
3
+ ## v0.0.1-next.16
4
4
 
5
5
  - Initial Release
@@ -16,37 +16,11 @@ Create a new instance of ImmutableProofService.
16
16
 
17
17
  #### Parameters
18
18
 
19
- **options?**
19
+ ##### options?
20
20
 
21
- The dependencies for the immutable proof connector.
22
-
23
- • **options.vaultConnectorType?**: `string`
24
-
25
- The vault connector type, defaults to "vault".
26
-
27
- • **options.immutableProofEntityStorageType?**: `string`
28
-
29
- The entity storage for proofs, defaults to "immutable-proof".
30
-
31
- • **options.immutableStorageType?**: `string`
32
-
33
- The immutable storage, defaults to "immutable-storage".
34
-
35
- • **options.identityConnectorType?**: `string`
36
-
37
- The identity connector type, defaults to "identity".
38
-
39
- • **options.backgroundTaskConnectorType?**: `string`
40
-
41
- The background task connector type, defaults to "background-task".
21
+ [`IImmutableProofServiceConstructorOptions`](../interfaces/IImmutableProofServiceConstructorOptions.md)
42
22
 
43
- **options.eventBusComponentType?**: `string`
44
-
45
- The event bus component type, defaults to no event bus.
46
-
47
- • **options.config?**: [`IImmutableProofServiceConfig`](../interfaces/IImmutableProofServiceConfig.md)
48
-
49
- The configuration for the connector.
23
+ The dependencies for the immutable proof connector.
50
24
 
51
25
  #### Returns
52
26
 
@@ -82,15 +56,21 @@ Create a new authentication proof.
82
56
 
83
57
  #### Parameters
84
58
 
85
- **proofObject**: `IJsonLdNodeObject`
59
+ ##### proofObject
60
+
61
+ `IJsonLdNodeObject`
86
62
 
87
63
  The object for the proof as JSON-LD.
88
64
 
89
- **userIdentity?**: `string`
65
+ ##### userIdentity?
66
+
67
+ `string`
90
68
 
91
69
  The identity to create the immutable proof operation with.
92
70
 
93
- **nodeIdentity?**: `string`
71
+ ##### nodeIdentity?
72
+
73
+ `string`
94
74
 
95
75
  The node identity to use for vault operations.
96
76
 
@@ -114,7 +94,9 @@ Get an authentication proof.
114
94
 
115
95
  #### Parameters
116
96
 
117
- **id**: `string`
97
+ ##### id
98
+
99
+ `string`
118
100
 
119
101
  The id of the proof to get.
120
102
 
@@ -142,7 +124,9 @@ Verify an authentication proof.
142
124
 
143
125
  #### Parameters
144
126
 
145
- **id**: `string`
127
+ ##### id
128
+
129
+ `string`
146
130
 
147
131
  The id of the proof to verify.
148
132
 
@@ -170,11 +154,15 @@ Remove the immutable storage for the proof.
170
154
 
171
155
  #### Parameters
172
156
 
173
- **id**: `string`
157
+ ##### id
158
+
159
+ `string`
174
160
 
175
161
  The id of the proof to remove the storage from.
176
162
 
177
- **nodeIdentity?**: `string`
163
+ ##### nodeIdentity?
164
+
165
+ `string`
178
166
 
179
167
  The node identity to use for vault operations.
180
168
 
@@ -6,11 +6,15 @@ The REST routes for immutable proof.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **baseRouteName**: `string`
9
+ ### baseRouteName
10
+
11
+ `string`
10
12
 
11
13
  Prefix to prepend to the paths.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes stored in the ComponentFactory.
16
20
 
@@ -6,15 +6,21 @@ Create a proof.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes.
16
20
 
17
- **request**: `IImmutableProofCreateRequest`
21
+ ### request
22
+
23
+ `IImmutableProofCreateRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -6,15 +6,21 @@ Get the proof.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes.
16
20
 
17
- **request**: `IImmutableProofGetRequest`
21
+ ### request
22
+
23
+ `IImmutableProofGetRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -6,15 +6,21 @@ Verify the proof.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes.
16
20
 
17
- **request**: `IImmutableProofVerifyRequest`
21
+ ### request
22
+
23
+ `IImmutableProofVerifyRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -8,6 +8,7 @@
8
8
  ## Interfaces
9
9
 
10
10
  - [IImmutableProofServiceConfig](interfaces/IImmutableProofServiceConfig.md)
11
+ - [IImmutableProofServiceConstructorOptions](interfaces/IImmutableProofServiceConstructorOptions.md)
11
12
 
12
13
  ## Variables
13
14
 
@@ -0,0 +1,89 @@
1
+ # Interface: IImmutableProofServiceConstructorOptions
2
+
3
+ Options for the immutable proof service constructor.
4
+
5
+ ## Properties
6
+
7
+ ### vaultConnectorType?
8
+
9
+ > `optional` **vaultConnectorType**: `string`
10
+
11
+ The vault connector type.
12
+
13
+ #### Default
14
+
15
+ ```ts
16
+ vault
17
+ ```
18
+
19
+ ***
20
+
21
+ ### immutableProofEntityStorageType?
22
+
23
+ > `optional` **immutableProofEntityStorageType**: `string`
24
+
25
+ The entity storage for proofs.
26
+
27
+ #### Default
28
+
29
+ ```ts
30
+ immutable-proof
31
+ ```
32
+
33
+ ***
34
+
35
+ ### immutableStorageType?
36
+
37
+ > `optional` **immutableStorageType**: `string`
38
+
39
+ The immutable storage.
40
+
41
+ #### Default
42
+
43
+ ```ts
44
+ immutable-storage
45
+ ```
46
+
47
+ ***
48
+
49
+ ### identityConnectorType?
50
+
51
+ > `optional` **identityConnectorType**: `string`
52
+
53
+ The identity connector type.
54
+
55
+ #### Default
56
+
57
+ ```ts
58
+ identity
59
+ ```
60
+
61
+ ***
62
+
63
+ ### backgroundTaskConnectorType?
64
+
65
+ > `optional` **backgroundTaskConnectorType**: `string`
66
+
67
+ The background task connector type.
68
+
69
+ #### Default
70
+
71
+ ```ts
72
+ background-task
73
+ ```
74
+
75
+ ***
76
+
77
+ ### eventBusComponentType?
78
+
79
+ > `optional` **eventBusComponentType**: `string`
80
+
81
+ The event bus component type, defaults to no event bus.
82
+
83
+ ***
84
+
85
+ ### config?
86
+
87
+ > `optional` **config**: [`IImmutableProofServiceConfig`](IImmutableProofServiceConfig.md)
88
+
89
+ The configuration for the connector.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-service",
3
- "version": "0.0.1-next.14",
3
+ "version": "0.0.1-next.16",
4
4
  "description": "Immutable proof contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,23 +24,23 @@
24
24
  "@twin.org/entity-storage-models": "next",
25
25
  "@twin.org/event-bus-models": "next",
26
26
  "@twin.org/identity-models": "next",
27
- "@twin.org/immutable-proof-models": "0.0.1-next.14",
28
- "@twin.org/immutable-proof-task": "0.0.1-next.14",
27
+ "@twin.org/immutable-proof-models": "0.0.1-next.16",
28
+ "@twin.org/immutable-proof-task": "0.0.1-next.16",
29
29
  "@twin.org/immutable-storage-models": "next",
30
30
  "@twin.org/nameof": "next",
31
31
  "@twin.org/standards-w3c-did": "next",
32
32
  "@twin.org/vault-models": "next",
33
33
  "@twin.org/web": "next",
34
- "jsonschema": "1.4.1"
34
+ "jsonschema": "1.5.0"
35
35
  },
36
36
  "main": "./dist/cjs/index.cjs",
37
37
  "module": "./dist/esm/index.mjs",
38
38
  "types": "./dist/types/index.d.ts",
39
39
  "exports": {
40
40
  ".": {
41
+ "types": "./dist/types/index.d.ts",
41
42
  "require": "./dist/cjs/index.cjs",
42
- "import": "./dist/esm/index.mjs",
43
- "types": "./dist/types/index.d.ts"
43
+ "import": "./dist/esm/index.mjs"
44
44
  },
45
45
  "./locales/*.json": "./locales/*.json"
46
46
  },