@aep-foundation/core 0.1.0
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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +35 -0
- package/dist/index.cjs +907 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +392 -0
- package/dist/index.d.ts +392 -0
- package/dist/index.js +829 -0
- package/dist/index.js.map +1 -0
- package/package.json +52 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @aep-foundation/core
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1](https://github.com/aep-foundation/aep-node/pull/1) [`3d4713e`](https://github.com/aep-foundation/aep-node/commit/3d4713e2a9cf85478a415192c7c0abc90c374073) Thanks [@nkavian](https://github.com/nkavian)! - Add the initial AEP Node SDK packages, framework adapters, and conformance helpers.
|
|
8
|
+
|
|
9
|
+
## 0.0.0
|
|
10
|
+
|
|
11
|
+
Initial development version.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AEP Foundation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @aep-foundation/core
|
|
2
|
+
|
|
3
|
+
Core Agent Enrollment Protocol implementation shared by the Agent, Service,
|
|
4
|
+
Platform, adapter, and conformance packages.
|
|
5
|
+
|
|
6
|
+
Initial responsibilities:
|
|
7
|
+
|
|
8
|
+
- protocol constants and wire types
|
|
9
|
+
- JSON Schema-backed validation helpers
|
|
10
|
+
- Inspect document parsing and construction primitives
|
|
11
|
+
- HTTP binding helpers
|
|
12
|
+
- Problem Details helpers
|
|
13
|
+
- client assertion signing and verification primitives
|
|
14
|
+
- identity method and grant type registration primitives
|
|
15
|
+
|
|
16
|
+
## Initial API
|
|
17
|
+
|
|
18
|
+
The first implemented surface covers the Inspect slice:
|
|
19
|
+
|
|
20
|
+
- `AEP_VERSION`, `AEP_MEDIA_TYPE`, `AEP_AUTH_SCHEME`, and command/grant type
|
|
21
|
+
constants
|
|
22
|
+
- `InspectDocument` and related wire types
|
|
23
|
+
- `inspectDocumentSchema`
|
|
24
|
+
- `validateInspectDocument`, `parseInspectDocument`, and `isInspectDocument`
|
|
25
|
+
- `commandPath` and `commandPathFromInspect`
|
|
26
|
+
- `createProblemDetails`
|
|
27
|
+
- `signClientAssertionJwt` and `verifyClientAssertionJwt` for baseline AEP
|
|
28
|
+
client assertion JWTs using `jose`
|
|
29
|
+
- `didWebDocumentUrl` and `resolveDidWebPublicKey` for DID-web document and
|
|
30
|
+
public-key lookup
|
|
31
|
+
- `decodeJwtUnverified` for reading untrusted JWT headers and payloads before
|
|
32
|
+
key resolution
|
|
33
|
+
|
|
34
|
+
JWT helpers accept PEM (`pkcs8`, `spki`, or `x509`), JWK, `CryptoKey`,
|
|
35
|
+
`KeyObject`, or raw key material where `jose` supports it.
|