@agent-network-protocol/anp-identity 0.2.2 → 0.2.3

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
  # @agent-network-protocol/anp-identity
2
2
 
3
- Node.js bindings for ANP Identity, an E1 DID identity manager that keeps managed
3
+ Node.js bindings for ANP Identity, an E1 and Web DID identity manager that keeps managed
4
4
  keys behind a native Rust boundary. A single Store can own multiple DIDs. All
5
5
  filesystem, keyring, and cryptographic operations are asynchronous so they do
6
6
  not block the JavaScript main thread.
@@ -48,6 +48,13 @@ lease instead of importing this Host entry.
48
48
 
49
49
  ## Root key sources
50
50
 
51
+ Choose `profile: 'web'` to create a Web identity without a DID `root_control`
52
+ key. Managed device signing/agreement keys and the encrypted Store are reused.
53
+ Host status and enrollment proposals expose `rootKeyFingerprint: null` and
54
+ `rootCapability: 'absent'`. WBA retains its existing fingerprint and root flows.
55
+ Web HTTP authentication uses RFC 9421; legacy DID-WBA, Root Transfer and Root
56
+ Import are unavailable. The default entry still exposes no private keys.
57
+
51
58
  The bindings support OS keyring, local private file, named environment variable,
52
59
  and an injected 32-byte key. An injected key `Buffer` is consumed and
53
60
  overwritten, including validation-error paths. Pass a disposable buffer
package/SOURCE.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Corresponding Source
2
2
 
3
3
  Repository: https://github.com/agent-network-protocol/anp-identity
4
- Commit: 27b511bb5a4adb0d7fb675ad67d9be31ffb7e51a
4
+ Commit: c12fecefb39389e2800dc363e5538de80448850b
5
5
  Target: platform-independent-wrapper
package/checksums.json CHANGED
@@ -3,11 +3,11 @@
3
3
  "files": [
4
4
  {
5
5
  "path": "index.d.ts",
6
- "sha256": "bffd69f3a556d24ffc393f7f86bfd2383a3e731af598d5c63e6fbc32ddd135b8"
6
+ "sha256": "d745a3550f2d12ccd0ab972ca16688812f842fc41270cb9ff983cce45b07f1ce"
7
7
  },
8
8
  {
9
9
  "path": "index.js",
10
- "sha256": "4918b3104ecac28d2b73fac27a65f2d4b810372d517e9839907f30a961267a48"
10
+ "sha256": "52134f08f47be2a90cb86328f5a1ba58017ef3512155d4cd3d83c493231d4058"
11
11
  },
12
12
  {
13
13
  "path": "LICENSE",
@@ -23,31 +23,31 @@
23
23
  },
24
24
  {
25
25
  "path": "package.json",
26
- "sha256": "1b2554ff5309106233a718c758675925686aff963440adaea9c4f669ecdd210e"
26
+ "sha256": "220bf7be5346434d3f485d81fe6341f99a081dc08ea8bafc55692aaade072ceb"
27
27
  },
28
28
  {
29
29
  "path": "provenance.json",
30
- "sha256": "e95ab4acb116fe20251c017141c8f438a14d57df95a9bb2a091400e0d4df0b75"
30
+ "sha256": "395d085d41bc0716e24e792eb93d4bc8366b7231cfb5fae46babcb791256a663"
31
31
  },
32
32
  {
33
33
  "path": "provider.d.ts",
34
- "sha256": "0176141db7a2452849907a41a182b6237aa9525ec400aeee2953edc62ad0f2ed"
34
+ "sha256": "3843006e81bbbf7673ce74f66b4dce20a63382fc2b371bbf54844f8e9f5b5efe"
35
35
  },
36
36
  {
37
37
  "path": "provider.js",
38
- "sha256": "bef08a56c8c8d74e94414d6741c12429da6a3254e974924c23acc7336288fce9"
38
+ "sha256": "29b79d349c60b01d5b2a2df165457967feab4dd3f0160ac0694ad0c77e9ecb99"
39
39
  },
40
40
  {
41
41
  "path": "README.md",
42
- "sha256": "6462d812b51c8432ff6ab5baad27c17f4445f3427a42a7607edf9e810c972b8b"
42
+ "sha256": "f791508f9a18010c1921091d18331097c2232220073e2b687d526d875045ae27"
43
43
  },
44
44
  {
45
45
  "path": "sbom.cdx.json",
46
- "sha256": "b12b88aae291b9103d5e593032038f7054521ad6adfac37770b3d0217744f3d2"
46
+ "sha256": "2d573f093b576f436fd73c9f10507d17e9dec784eb4260266da190ca44bcb4b8"
47
47
  },
48
48
  {
49
49
  "path": "SOURCE.md",
50
- "sha256": "90a798e1d0a4f97cc0206a484545899bfd0920666168dd54e903799868fa6204"
50
+ "sha256": "49dfa3d738bb89f03ae327670340baa4183ed6806850ef4f6299810cc793dcc3"
51
51
  }
52
52
  ]
53
53
  }
package/index.d.ts CHANGED
@@ -103,7 +103,7 @@ export interface DeviceManifestEntry {
103
103
  }
104
104
 
105
105
  export interface CreateIdentityRequest {
106
- profile: 'e1'
106
+ profile: 'e1' | 'web'
107
107
  domain: string
108
108
  port?: number
109
109
  pathSegments: string[]
@@ -326,6 +326,7 @@ export class DocumentChangeSession {
326
326
  beginPublication(): Promise<PublicationAttempt>
327
327
  complete(attempt: PublicationAttempt, result: PublicationResult): Promise<DocumentChangeOutcome>
328
328
  reconcile(observation: VerifiedRemoteDocument): Promise<DocumentChangeOutcome>
329
+ reconcileRejected(observation: VerifiedRemoteDocument): Promise<DocumentChangeOutcome>
329
330
  }
330
331
 
331
332
  export class IdentityTransitionSession {
package/index.js CHANGED
@@ -138,6 +138,12 @@ class DocumentChangeSession {
138
138
  await call(this.#inner.reconcile(verifiedRemoteDocument(observation))),
139
139
  )
140
140
  }
141
+
142
+ async reconcileRejected(observation) {
143
+ return documentChangeOutcome(
144
+ await call(this.#inner.reconcileRejected(verifiedRemoteDocument(observation))),
145
+ )
146
+ }
141
147
  }
142
148
 
143
149
  class IdentityTransitionSession {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-network-protocol/anp-identity",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Secure E1 DID identity custody and lifecycle management for ANP",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -53,11 +53,11 @@
53
53
  ]
54
54
  },
55
55
  "optionalDependencies": {
56
- "@agent-network-protocol/anp-identity-darwin-arm64": "0.2.2",
57
- "@agent-network-protocol/anp-identity-darwin-x64": "0.2.2",
58
- "@agent-network-protocol/anp-identity-linux-arm64-gnu": "0.2.2",
59
- "@agent-network-protocol/anp-identity-linux-x64-gnu": "0.2.2",
60
- "@agent-network-protocol/anp-identity-win32-x64-msvc": "0.2.2"
56
+ "@agent-network-protocol/anp-identity-darwin-arm64": "0.2.3",
57
+ "@agent-network-protocol/anp-identity-darwin-x64": "0.2.3",
58
+ "@agent-network-protocol/anp-identity-linux-arm64-gnu": "0.2.3",
59
+ "@agent-network-protocol/anp-identity-linux-x64-gnu": "0.2.3",
60
+ "@agent-network-protocol/anp-identity-win32-x64-msvc": "0.2.3"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@napi-rs/cli": "3.8.6",
package/provenance.json CHANGED
@@ -2,15 +2,22 @@
2
2
  "schemaVersion": 1,
3
3
  "package": {
4
4
  "name": "@agent-network-protocol/anp-identity",
5
- "version": "0.2.2"
5
+ "version": "0.2.3"
6
6
  },
7
7
  "target": "platform-independent-wrapper",
8
8
  "source": {
9
9
  "repository": "https://github.com/agent-network-protocol/anp-identity",
10
- "commit": "27b511bb5a4adb0d7fb675ad67d9be31ffb7e51a",
11
- "committedAt": "2026-09-11T21:27:15+08:00",
10
+ "commit": "c12fecefb39389e2800dc363e5538de80448850b",
11
+ "committedAt": "2026-09-24T21:01:29+08:00",
12
12
  "dirty": false
13
13
  },
14
+ "dependencyResolution": {
15
+ "mode": "registry",
16
+ "anp": {
17
+ "version": "1.0.5",
18
+ "source": "registry+https://github.com/rust-lang/crates.io-index"
19
+ }
20
+ },
14
21
  "toolchain": {
15
22
  "rustc": "rustc 1.88.0 (6b00bc388 2025-06-23)",
16
23
  "node": "v22.19.0"
package/provider.d.ts CHANGED
@@ -71,7 +71,7 @@ export interface PreparedHttpSignatureAttempt {
71
71
 
72
72
  export interface IdentityHostStatus {
73
73
  rootCapability: 'absent' | 'pending' | 'active'
74
- rootKeyFingerprint: string
74
+ rootKeyFingerprint: string | null
75
75
  checkpoint?: HostDocumentCheckpoint
76
76
  }
77
77
 
@@ -238,7 +238,7 @@ export interface EnrollmentProposal {
238
238
  enrollmentId: string
239
239
  identity: IdentityReference
240
240
  kind: EnrollmentProposalKind
241
- rootKeyFingerprint: string
241
+ rootKeyFingerprint: string | null
242
242
  checkpoint: HostDocumentCheckpoint
243
243
  }
244
244
 
@@ -318,6 +318,10 @@ export interface ProviderLease {
318
318
  reference: IdentityReference,
319
319
  remote: VerifiedRemoteDocument,
320
320
  ): Promise<'activated' | 'updated' | 'unchanged' | 'revoked'>
321
+ adoptVerifiedSiblingDocument(
322
+ reference: IdentityReference,
323
+ remote: VerifiedRemoteDocument,
324
+ ): Promise<'activated' | 'updated' | 'unchanged' | 'revoked'>
321
325
  beginDeviceEnrollment(request: DeviceEnrollmentRequest): Promise<ProviderEnrollmentSession>
322
326
  beginRequestSigningEnrollment(
323
327
  request: RequestSigningEnrollmentRequest,
@@ -349,6 +353,7 @@ export interface ProviderDocumentChangeSession {
349
353
  result: PublicationResult,
350
354
  ): Promise<DocumentChangeOutcome>
351
355
  reconcile(observation: VerifiedRemoteDocument): Promise<DocumentChangeOutcome>
356
+ reconcileRejected(observation: VerifiedRemoteDocument): Promise<DocumentChangeOutcome>
352
357
  }
353
358
 
354
359
  export interface ProviderIdentityTransitionSession {
package/provider.js CHANGED
@@ -165,6 +165,9 @@ class ProviderLease {
165
165
  adoptVerifiedDocument(reference, remote) {
166
166
  return call(this.#inner.adoptVerifiedDocument(reference, verifiedRemoteDocument(remote)))
167
167
  }
168
+ adoptVerifiedSiblingDocument(reference, remote) {
169
+ return call(this.#inner.adoptVerifiedSiblingDocument(reference, verifiedRemoteDocument(remote)))
170
+ }
168
171
 
169
172
  async beginDeviceEnrollment(request) {
170
173
  return new ProviderEnrollmentSession(
@@ -267,6 +270,12 @@ class ProviderDocumentChangeSession {
267
270
  await call(this.#inner.reconcile(verifiedRemoteDocument(observation))),
268
271
  )
269
272
  }
273
+
274
+ async reconcileRejected(observation) {
275
+ return documentChangeOutcome(
276
+ await call(this.#inner.reconcileRejected(verifiedRemoteDocument(observation))),
277
+ )
278
+ }
270
279
  }
271
280
 
272
281
  class ProviderIdentityTransitionSession {
package/sbom.cdx.json CHANGED
@@ -6,43 +6,43 @@
6
6
  "component": {
7
7
  "type": "library",
8
8
  "name": "@agent-network-protocol/anp-identity",
9
- "version": "0.2.2"
9
+ "version": "0.2.3"
10
10
  }
11
11
  },
12
12
  "components": [
13
13
  {
14
14
  "type": "library",
15
15
  "name": "@agent-network-protocol/anp-identity-darwin-arm64",
16
- "version": "0.2.2",
17
- "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-darwin-arm64@0.2.2",
16
+ "version": "0.2.3",
17
+ "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-darwin-arm64@0.2.3",
18
18
  "scope": "optional"
19
19
  },
20
20
  {
21
21
  "type": "library",
22
22
  "name": "@agent-network-protocol/anp-identity-darwin-x64",
23
- "version": "0.2.2",
24
- "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-darwin-x64@0.2.2",
23
+ "version": "0.2.3",
24
+ "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-darwin-x64@0.2.3",
25
25
  "scope": "optional"
26
26
  },
27
27
  {
28
28
  "type": "library",
29
29
  "name": "@agent-network-protocol/anp-identity-linux-arm64-gnu",
30
- "version": "0.2.2",
31
- "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-linux-arm64-gnu@0.2.2",
30
+ "version": "0.2.3",
31
+ "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-linux-arm64-gnu@0.2.3",
32
32
  "scope": "optional"
33
33
  },
34
34
  {
35
35
  "type": "library",
36
36
  "name": "@agent-network-protocol/anp-identity-linux-x64-gnu",
37
- "version": "0.2.2",
38
- "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-linux-x64-gnu@0.2.2",
37
+ "version": "0.2.3",
38
+ "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-linux-x64-gnu@0.2.3",
39
39
  "scope": "optional"
40
40
  },
41
41
  {
42
42
  "type": "library",
43
43
  "name": "@agent-network-protocol/anp-identity-win32-x64-msvc",
44
- "version": "0.2.2",
45
- "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-win32-x64-msvc@0.2.2",
44
+ "version": "0.2.3",
45
+ "purl": "pkg:npm/%40agent-network-protocol%2Fanp-identity-win32-x64-msvc@0.2.3",
46
46
  "scope": "optional"
47
47
  },
48
48
  {
@@ -114,7 +114,7 @@
114
114
  {
115
115
  "type": "library",
116
116
  "name": "anp-identity-node",
117
- "version": "0.2.2",
117
+ "version": "0.2.3",
118
118
  "licenses": [
119
119
  {
120
120
  "expression": "Apache-2.0"
@@ -124,7 +124,7 @@
124
124
  {
125
125
  "type": "library",
126
126
  "name": "anp-identity",
127
- "version": "0.2.3",
127
+ "version": "0.2.4",
128
128
  "licenses": [
129
129
  {
130
130
  "expression": "Apache-2.0"
@@ -134,13 +134,13 @@
134
134
  {
135
135
  "type": "library",
136
136
  "name": "anp",
137
- "version": "1.0.3",
137
+ "version": "1.0.5",
138
138
  "licenses": [
139
139
  {
140
- "expression": "MIT"
140
+ "expression": "Apache-2.0"
141
141
  }
142
142
  ],
143
- "purl": "pkg:cargo/anp@1.0.3"
143
+ "purl": "pkg:cargo/anp@1.0.5"
144
144
  },
145
145
  {
146
146
  "type": "library",