@twin.org/trust-generators 0.0.3-next.11 → 0.0.3-next.12

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TWIN Trust Generators
2
2
 
3
- Generators for trust.
3
+ This package is part of the trust repository and provides reusable trust building blocks so applications can issue, validate, and orchestrate trust artefacts with consistent behaviour.
4
4
 
5
5
  ## Installation
6
6
 
package/docs/changelog.md CHANGED
@@ -1,11 +1,25 @@
1
1
  # Changelog
2
2
 
3
- ## [0.0.3-next.11](https://github.com/twinfoundation/trust/compare/trust-generators-v0.0.3-next.10...trust-generators-v0.0.3-next.11) (2026-03-04)
3
+ ## [0.0.3-next.12](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.11...trust-generators-v0.0.3-next.12) (2026-05-11)
4
+
5
+
6
+ ### Features
7
+
8
+ * typescript 6 update ([a232da2](https://github.com/iotaledger/twin-trust/commit/a232da293afbd3b42843e187e4952dabd7917397))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/trust-models bumped from 0.0.3-next.11 to 0.0.3-next.12
16
+
17
+ ## [0.0.3-next.11](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.10...trust-generators-v0.0.3-next.11) (2026-03-04)
4
18
 
5
19
 
6
20
  ### Bug Fixes
7
21
 
8
- * jwt verifier return just token on creation ([9778491](https://github.com/twinfoundation/trust/commit/97784917c0ce53c3908e91a0db9137f8473eadeb))
22
+ * jwt verifier return just token on creation ([9778491](https://github.com/iotaledger/twin-trust/commit/97784917c0ce53c3908e91a0db9137f8473eadeb))
9
23
 
10
24
 
11
25
  ### Dependencies
@@ -14,12 +28,12 @@
14
28
  * dependencies
15
29
  * @twin.org/trust-models bumped from 0.0.3-next.10 to 0.0.3-next.11
16
30
 
17
- ## [0.0.3-next.10](https://github.com/twinfoundation/trust/compare/trust-generators-v0.0.3-next.9...trust-generators-v0.0.3-next.10) (2026-02-27)
31
+ ## [0.0.3-next.10](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.9...trust-generators-v0.0.3-next.10) (2026-02-27)
18
32
 
19
33
 
20
34
  ### Bug Fixes
21
35
 
22
- * pass correct parameters to vc create ([bca9529](https://github.com/twinfoundation/trust/commit/bca95292605720f45f1f9dd2cec34053734b2d7f))
36
+ * pass correct parameters to vc create ([bca9529](https://github.com/iotaledger/twin-trust/commit/bca95292605720f45f1f9dd2cec34053734b2d7f))
23
37
 
24
38
 
25
39
  ### Dependencies
@@ -28,7 +42,7 @@
28
42
  * dependencies
29
43
  * @twin.org/trust-models bumped from 0.0.3-next.9 to 0.0.3-next.10
30
44
 
31
- ## [0.0.3-next.9](https://github.com/twinfoundation/trust/compare/trust-generators-v0.0.3-next.8...trust-generators-v0.0.3-next.9) (2026-02-26)
45
+ ## [0.0.3-next.9](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.8...trust-generators-v0.0.3-next.9) (2026-02-26)
32
46
 
33
47
 
34
48
  ### Miscellaneous Chores
@@ -42,7 +56,7 @@
42
56
  * dependencies
43
57
  * @twin.org/trust-models bumped from 0.0.3-next.8 to 0.0.3-next.9
44
58
 
45
- ## [0.0.3-next.8](https://github.com/twinfoundation/trust/compare/trust-generators-v0.0.3-next.7...trust-generators-v0.0.3-next.8) (2026-01-30)
59
+ ## [0.0.3-next.8](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.7...trust-generators-v0.0.3-next.8) (2026-01-30)
46
60
 
47
61
 
48
62
  ### Miscellaneous Chores
@@ -56,7 +70,7 @@
56
70
  * dependencies
57
71
  * @twin.org/trust-models bumped from 0.0.3-next.7 to 0.0.3-next.8
58
72
 
59
- ## [0.0.3-next.7](https://github.com/twinfoundation/trust/compare/trust-generators-v0.0.3-next.6...trust-generators-v0.0.3-next.7) (2025-12-04)
73
+ ## [0.0.3-next.7](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.6...trust-generators-v0.0.3-next.7) (2025-12-04)
60
74
 
61
75
 
62
76
  ### Miscellaneous Chores
@@ -70,7 +84,7 @@
70
84
  * dependencies
71
85
  * @twin.org/trust-models bumped from 0.0.3-next.6 to 0.0.3-next.7
72
86
 
73
- ## [0.0.3-next.6](https://github.com/twinfoundation/trust/compare/trust-generators-v0.0.3-next.5...trust-generators-v0.0.3-next.6) (2025-12-04)
87
+ ## [0.0.3-next.6](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.5...trust-generators-v0.0.3-next.6) (2025-12-04)
74
88
 
75
89
 
76
90
  ### Miscellaneous Chores
@@ -84,12 +98,12 @@
84
98
  * dependencies
85
99
  * @twin.org/trust-models bumped from 0.0.3-next.5 to 0.0.3-next.6
86
100
 
87
- ## [0.0.3-next.5](https://github.com/twinfoundation/trust/compare/trust-generators-v0.0.3-next.4...trust-generators-v0.0.3-next.5) (2025-12-04)
101
+ ## [0.0.3-next.5](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.4...trust-generators-v0.0.3-next.5) (2025-12-04)
88
102
 
89
103
 
90
104
  ### Features
91
105
 
92
- * add default generator config ([54d98ba](https://github.com/twinfoundation/trust/commit/54d98ba53b7450b56337daeda504437be0d21943))
106
+ * add default generator config ([54d98ba](https://github.com/iotaledger/twin-trust/commit/54d98ba53b7450b56337daeda504437be0d21943))
93
107
 
94
108
 
95
109
  ### Dependencies
@@ -98,12 +112,12 @@
98
112
  * dependencies
99
113
  * @twin.org/trust-models bumped from 0.0.3-next.4 to 0.0.3-next.5
100
114
 
101
- ## [0.0.3-next.4](https://github.com/twinfoundation/trust/compare/trust-generators-v0.0.3-next.3...trust-generators-v0.0.3-next.4) (2025-12-04)
115
+ ## [0.0.3-next.4](https://github.com/iotaledger/twin-trust/compare/trust-generators-v0.0.3-next.3...trust-generators-v0.0.3-next.4) (2025-12-04)
102
116
 
103
117
 
104
118
  ### Features
105
119
 
106
- * add generators ([6228c88](https://github.com/twinfoundation/trust/commit/6228c88a8f0244b7bdfc76b8624c427c81d23f7b))
120
+ * add generators ([6228c88](https://github.com/iotaledger/twin-trust/commit/6228c88a8f0244b7bdfc76b8624c427c81d23f7b))
107
121
 
108
122
 
109
123
  ### Dependencies
package/docs/examples.md CHANGED
@@ -1 +1,38 @@
1
- # @twin.org/trust-generators - Examples
1
+ # Trust Generators Examples
2
+
3
+ These snippets show how to create JWT credential payloads and inspect generator metadata in a typical DID-based flow.
4
+
5
+ ## JwtVerifiableCredentialGenerator
6
+
7
+ ```typescript
8
+ import { ComponentFactory } from '@twin.org/core';
9
+ import type { IIdentityComponent } from '@twin.org/identity-models';
10
+ import { JwtVerifiableCredentialGenerator } from '@twin.org/trust-generators';
11
+
12
+ const identityComponent: IIdentityComponent = {
13
+ verifiableCredentialCreate: async () => ({
14
+ jwt: 'eyJhbGciOiJFZERTQSJ9.eyJpc3MiOiJkaWQ6ZXhhbXBsZTppc3N1ZXIifQ.signature'
15
+ })
16
+ } as IIdentityComponent;
17
+
18
+ ComponentFactory.register('identity', () => identityComponent);
19
+
20
+ const generator = new JwtVerifiableCredentialGenerator({
21
+ identityComponentType: 'identity',
22
+ config: {
23
+ verificationMethodId: 'did:example:issuer#key-1',
24
+ tokenTtlInSeconds: 900
25
+ }
26
+ });
27
+
28
+ console.log(generator.className()); // JwtVerifiableCredentialGenerator
29
+
30
+ const jwt = await generator.generate('did:example:issuer', {
31
+ subject: {
32
+ id: 'did:example:subject',
33
+ role: 'supplier'
34
+ }
35
+ });
36
+
37
+ console.log(typeof jwt); // string
38
+ ```
@@ -28,7 +28,7 @@ The options for the service.
28
28
 
29
29
  ## Properties
30
30
 
31
- ### CLASS\_NAME
31
+ ### CLASS\_NAME {#class_name}
32
32
 
33
33
  > `readonly` `static` **CLASS\_NAME**: `string`
34
34
 
@@ -36,7 +36,7 @@ Runtime name for the class.
36
36
 
37
37
  ## Methods
38
38
 
39
- ### className()
39
+ ### className() {#classname}
40
40
 
41
41
  > **className**(): `string`
42
42
 
@@ -54,7 +54,7 @@ The class name of the component.
54
54
 
55
55
  ***
56
56
 
57
- ### generate()
57
+ ### generate() {#generate}
58
58
 
59
59
  > **generate**(`identity`, `info?`): `Promise`\<`unknown`\>
60
60
 
@@ -4,9 +4,9 @@ The options for the JWT Verifiable Credential Generator.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### tokenTtlInSeconds?
7
+ ### tokenTtlInSeconds? {#tokenttlinseconds}
8
8
 
9
- > `optional` **tokenTtlInSeconds**: `number`
9
+ > `optional` **tokenTtlInSeconds?**: `number`
10
10
 
11
11
  The time-to-live (TTL) for token in seconds.
12
12
 
@@ -18,7 +18,7 @@ The time-to-live (TTL) for token in seconds.
18
18
 
19
19
  ***
20
20
 
21
- ### verificationMethodId
21
+ ### verificationMethodId {#verificationmethodid}
22
22
 
23
23
  > **verificationMethodId**: `string`
24
24
 
@@ -4,9 +4,9 @@ The options for the JWT Verifiable Credential Generator.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### loggingComponentType?
7
+ ### loggingComponentType? {#loggingcomponenttype}
8
8
 
9
- > `optional` **loggingComponentType**: `string`
9
+ > `optional` **loggingComponentType?**: `string`
10
10
 
11
11
  The logging component type.
12
12
 
@@ -18,9 +18,9 @@ logging
18
18
 
19
19
  ***
20
20
 
21
- ### identityComponentType?
21
+ ### identityComponentType? {#identitycomponenttype}
22
22
 
23
- > `optional` **identityComponentType**: `string`
23
+ > `optional` **identityComponentType?**: `string`
24
24
 
25
25
  The identity component type.
26
26
 
@@ -32,7 +32,7 @@ identity
32
32
 
33
33
  ***
34
34
 
35
- ### config
35
+ ### config {#config}
36
36
 
37
37
  > **config**: [`IJwtVerifiableCredentialGeneratorConfig`](IJwtVerifiableCredentialGeneratorConfig.md)
38
38
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@twin.org/trust-generators",
3
- "version": "0.0.3-next.11",
4
- "description": "Generators for trust",
3
+ "version": "0.0.3-next.12",
4
+ "description": "Implements trust credential generators that produce signed verifiable credential artefacts",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/twinfoundation/trust.git",
7
+ "url": "git+https://github.com/iotaledger/trust.git",
8
8
  "directory": "packages/trust-generators"
9
9
  },
10
10
  "author": "martyn.janes@iota.org",
@@ -19,7 +19,7 @@
19
19
  "@twin.org/identity-models": "next",
20
20
  "@twin.org/logging-models": "next",
21
21
  "@twin.org/nameof": "next",
22
- "@twin.org/trust-models": "0.0.3-next.11",
22
+ "@twin.org/trust-models": "0.0.3-next.12",
23
23
  "@twin.org/web": "next"
24
24
  },
25
25
  "main": "./dist/es/index.js",
@@ -50,7 +50,7 @@
50
50
  "schemas"
51
51
  ],
52
52
  "bugs": {
53
- "url": "git+https://github.com/twinfoundation/trust/issues"
53
+ "url": "git+https://github.com/iotaledger/trust/issues"
54
54
  },
55
55
  "homepage": "https://twindev.org"
56
56
  }