Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
f5eee1c
feat: added OID4VC/P implementation
tipusinghaw Aug 22, 2025
d4fbe30
feat: added updated patch file
tipusinghaw Aug 25, 2025
8c90fbe
feat: added logic for events
tipusinghaw Aug 25, 2025
6561441
feat: added issuer example
tipusinghaw Sep 4, 2025
40b113b
refactor: changed discloser frame
tipusinghaw Sep 12, 2025
a2aa5a0
added x509 APIs
RinkalBhojani Sep 17, 2025
246eb89
added x509Module in agent config to add mapper function
RinkalBhojani Sep 17, 2025
fa1f4c2
removed unwanted log
RinkalBhojani Sep 17, 2025
2e6fdb0
removed unwanted log
RinkalBhojani Sep 17, 2025
d9df67f
removed example private key
RinkalBhojani Sep 17, 2025
2ccc312
feat: support for mdoc credential with x509, moved signeroptions insi…
RinkalBhojani Sep 18, 2025
152f642
refactored code
RinkalBhojani Sep 19, 2025
887581b
added multiple namespace support for mdoc credential
RinkalBhojani Sep 26, 2025
5a6a4fd
fixed minor issues with sd-jwt VC issuance
RinkalBhojani Sep 28, 2025
009e5e8
fix: resolve comments
tipusinghaw Oct 6, 2025
6e3e481
feat: support for x509 certs (#319)
RinkalBhojani Oct 13, 2025
8995dd3
feat: oid4vc presentation
tipusinghaw Oct 13, 2025
099b0a8
fix: create presentation
tipusinghaw Oct 13, 2025
bc3dff4
fix: holder APIs type issue
tipusinghaw Oct 14, 2025
c12c106
added verification response method once proof is received for DCQL
RinkalBhojani Oct 21, 2025
2200b03
updated route and swagger.json file
RinkalBhojani Oct 21, 2025
2189882
fix: claims type issue
tipusinghaw Oct 28, 2025
8ad5fdd
fix: verifer id optional
GHkrishna Oct 29, 2025
01d5885
fix: webhook for 0id4vc issuance
tipusinghaw Oct 29, 2025
f604bf9
fix: Added getTrustedCert function and refactored code
RinkalBhojani Oct 30, 2025
52c9ee6
fix: fixed condition
RinkalBhojani Oct 30, 2025
7d78116
fix: presentation webhook
tipusinghaw Nov 6, 2025
83fcea4
feat: added x5c signermethod capability in creating verification requ…
RinkalBhojani Nov 6, 2025
3860df9
feat: added configuration variables in .env
RinkalBhojani Nov 10, 2025
4722549
refactor: removed unwanted console logs
RinkalBhojani Nov 10, 2025
1238140
refactor: removed unwanted file
RinkalBhojani Nov 10, 2025
c032d99
fix: fixed issue with url encoded body size for agent's internal endp…
RinkalBhojani Nov 14, 2025
7094e26
feat: dcapi support
tipusinghaw Dec 2, 2025
8ac372e
fix: fixed issue with disclosure frame in SD-JWT issuance
RinkalBhojani Dec 31, 2025
8f74ce0
Made dcql query type as any to support all combination for now, suppo…
RinkalBhojani Jan 2, 2026
f3693c7
fix: fixed typescript issue
RinkalBhojani Jan 5, 2026
bab0933
fix: changes for types
GHkrishna Dec 4, 2025
8f28566
fix: version update and types update
GHkrishna Dec 8, 2025
fd3f060
fix: for now we'll delete all the patch and apply as required
GHkrishna Dec 8, 2025
4d34c23
fix!: controller types (credo version updates) (#335)
GHkrishna Dec 11, 2025
f277ec1
fix: agent initialization
GHkrishna Dec 11, 2025
4e30a59
fix: remove unwanted agent backup config
GHkrishna Dec 11, 2025
abb2556
fix: oob invitation
GHkrishna Dec 11, 2025
a42b3c2
fix: some package version update
GHkrishna Dec 15, 2025
213d359
fix: some type changes
GHkrishna Dec 15, 2025
82b6126
fix: comment controller for agent to start
GHkrishna Dec 15, 2025
593f583
fix: oidc4vc agent changes for building agent
GHkrishna Dec 15, 2025
7f72144
fix: auto generated file changes
GHkrishna Dec 15, 2025
e719060
fix: cliagent issues
GHkrishna Dec 15, 2025
b7cec2b
fix: x509 controller (#338)
GHkrishna Dec 23, 2025
c70738d
WIP: bug fixing from issuer and verifier session
shitrerohit Dec 16, 2025
4b8fb91
fix:changes on cli agent file
shitrerohit Dec 16, 2025
a4391dd
WIP:changes in create issuer work flow
shitrerohit Dec 16, 2025
fcc89d9
WIP:Resolving the issues from issue credential workflow.
shitrerohit Dec 19, 2025
b254b9f
fix:sd-jwt store credential
shitrerohit Dec 23, 2025
1b986b4
WIP: store mDoc credential
shitrerohit Dec 31, 2025
4b71be7
fix:sonar cloud issue
shitrerohit Dec 31, 2025
2007c22
fix:completed flow changes for mdoc
shitrerohit Jan 5, 2026
44930f0
fix:resolved code rabit related issues
shitrerohit Jan 5, 2026
45486cc
fix:removed commented code
shitrerohit Jan 5, 2026
a13b68a
fix: resolved PR comments
shitrerohit Jan 5, 2026
a490181
feat/oidv4vc issuance and verification changes
shitrerohit Jan 9, 2026
4bfdaaa
fix: resolved code rabbit ai issues
shitrerohit Jan 12, 2026
7326ed9
fix: resolved code rabbit issues
shitrerohit Jan 13, 2026
9fba971
fix: added comment for image check in verification session
shitrerohit Jan 14, 2026
4d4aa79
fix/removed commented code
shitrerohit Jan 14, 2026
2d429ce
fix:resolved sd-jwt issuance related issues
shitrerohit Jan 27, 2026
0a812d7
fix:Removed commented code
shitrerohit Jan 27, 2026
ed08989
fix:changes in create proof request
shitrerohit Jan 28, 2026
7d75cf9
feat:API for delete credential
shitrerohit Jan 31, 2026
9d91880
node verison changes
shitrerohit Jan 31, 2026
89d4433
update node version
shitrerohit Jan 31, 2026
7fa409d
sample x5c certificate added
shitrerohit Jan 31, 2026
f8b5396
fix: resolved PR comments
shitrerohit Feb 2, 2026
ba86852
fix: Resolved minor issues
shitrerohit Feb 3, 2026
3029778
fix:resolve build issues
shitrerohit Feb 4, 2026
61f768d
fix:resolved proof verification with base64 image issue
shitrerohit Feb 5, 2026
bfd9500
fix:removed unused code
shitrerohit Feb 5, 2026
cc38bda
feat:delete issuer api added
shitrerohit Feb 5, 2026
f0e5320
fix:update delete issuer api response
shitrerohit Feb 6, 2026
3b22153
fix: resolved code rabbit ai comments
shitrerohit Feb 9, 2026
ffac93b
fix: supporting clientIdPrefix for HAIP support
RinkalBhojani Feb 12, 2026
763d658
refactor: added authorizationRequestId param for querying verificatio…
RinkalBhojani Feb 17, 2026
1e3b147
feat:API for verify the authorization response
shitrerohit Feb 11, 2026
37f91ee
fix:code rabbit ai issues
shitrerohit Feb 11, 2026
51d2b9a
fix:updated the response in accept proof request
shitrerohit Feb 11, 2026
9169192
fix: supporting clientIdPrefix for HAIP support
RinkalBhojani Feb 12, 2026
b1eccdf
fix:removed duplicate identifier
shitrerohit Feb 26, 2026
cf64462
feat: update credo to latest (#345)
GHkrishna Mar 2, 2026
4a2847a
feat: added x509 certificates logic with auth
tipusinghaw Mar 3, 2026
dcbc338
refactor: resolved PR comments
tipusinghaw Mar 3, 2026
b0098f6
fix: did and polygon controller (#347)
GHkrishna Mar 16, 2026
27b0a6b
feat: Add status list management and revocation for OpenID4VC issuanc…
sagarkhole4 Mar 26, 2026
a4bd2f8
feat: Add status list management and revocation for OpenID4VC issuanc…
sagarkhole4 Mar 26, 2026
aede426
fix: did, schema and cred-def controller (#350)
GHkrishna Mar 26, 2026
3ad3b60
feat: added token caching and update token fetching logic
tipusinghaw Mar 24, 2026
9191d0d
refactor: removed ecosystem logic and updated authentication logic
tipusinghaw Mar 26, 2026
3570772
refactor: review changes
tipusinghaw Mar 26, 2026
3912fa2
refactor: review changes for get token
tipusinghaw Mar 26, 2026
acb8087
feat: Add property to credential offer types and issuance logic
sagarkhole4 Mar 26, 2026
b23cd84
making status list server URL mandatory
sagarkhole4 Mar 26, 2026
11497cf
feat: concurrency handled in the status list service.
sagarkhole4 Mar 30, 2026
bcbc82e
Fix/Docker-vulnerability (#354)
DeepakNemad Mar 27, 2026
5112c8c
fix:fixed cbor date format issue in Mdoc validityInfo
RinkalBhojani Mar 6, 2026
e93de19
fix: fixed issue with portrait attribute data type for photoid creden…
RinkalBhojani Mar 20, 2026
166170f
feat: added x509 certificates logic with auth
tipusinghaw Mar 3, 2026
3204391
feat: added token caching and update token fetching logic
tipusinghaw Mar 24, 2026
957ad83
refactor: removed ecosystem logic and updated authentication logic
tipusinghaw Mar 26, 2026
db7b717
refactor: review changes
tipusinghaw Mar 26, 2026
6600345
fix: added specific iso spec for mdoc valiation
RinkalBhojani Mar 28, 2026
a5a6a30
fix: removed duplicated function while resolving conflicts
RinkalBhojani Mar 28, 2026
31c9035
fix: removed duplicated function while resolving conflicts
RinkalBhojani Mar 28, 2026
f258ca0
feat: update CLI configuration and refine status list service logic
sagarkhole4 Mar 30, 2026
ef5bca0
refactor:code review changes
sagarkhole4 Apr 7, 2026
e1da533
fix: credential controller (#359)
GHkrishna Apr 3, 2026
61d8caf
fix: proof controller (#360)
GHkrishna Apr 3, 2026
db87d1a
feat: added DisclosureFrameForOffer array in sdjwt flow
tipusinghaw Apr 3, 2026
e771126
feat: added DisclosureFrame array support
tipusinghaw Apr 3, 2026
f68e72e
fix: package.json docker issue
tipusinghaw Apr 6, 2026
07f74a2
feat: Add status list management and revocation for OpenID4VC issuanc…
sagarkhole4 Mar 26, 2026
f000699
feat: Add property to credential offer types and issuance logic
sagarkhole4 Mar 26, 2026
311fe25
feat: concurrency handled in the status list service.
sagarkhole4 Mar 30, 2026
c2a976d
feat: update CLI configuration and refine status list service logic
sagarkhole4 Mar 30, 2026
a4e56fd
refactor:code review changes
sagarkhole4 Apr 7, 2026
40fd337
feat: implement per-list concurrency locking and dynamic algorithm se…
sagarkhole4 Apr 13, 2026
e5271e1
update:Removed file server token from cli config for security
sagarkhole4 Apr 14, 2026
947ccac
refactor: reduce cognitive complexity of createCredentialOffer flow
sagarkhole4 Apr 21, 2026
49581a0
refactor: address code quality issues and cleanup x509 enums
sagarkhole4 Apr 21, 2026
c221f12
chore: update .env.demo and add trusted-certs.json file
KambleSahil3 Apr 14, 2026
d41677b
fix: events typings (#362)
GHkrishna Apr 16, 2026
f69e0af
feat: added noAuth support
tipusinghaw Apr 24, 2026
023d4be
added nats and cron
tipusinghaw Apr 17, 2026
6b59d1f
feat: added nats scheduler
tipusinghaw Apr 21, 2026
ed51190
refactored: code rabbit comments
tipusinghaw Apr 23, 2026
49f8673
refactore: added logs for testing
tipusinghaw Apr 27, 2026
b341168
feat: added NATS authentication
tipusinghaw Apr 28, 2026
c8dab55
feat: updated demo and sample
tipusinghaw Apr 28, 2026
afb03c8
feat: add agent custom document loader (#321)
GHkrishna Oct 16, 2025
ebaecb9
refactor: docmentLoader changes
tipusinghaw Apr 29, 2026
47f4840
refactor: commented the label
tipusinghaw Apr 29, 2026
4a5740a
fix: import issue for document loader
tipusinghaw Apr 29, 2026
597987b
refactor: resolved merge conflicts
tipusinghaw Apr 29, 2026
169a64f
fix: dco commit
tipusinghaw Apr 29, 2026
9655d5d
Third-Party DCO Remediation Commit for Deepak Nemade <deepak.nemade@a…
tipusinghaw Apr 29, 2026
bd177e7
fix: resolved code rabbit issue
tipusinghaw May 4, 2026
0ff8131
fix: resolved comments
tipusinghaw May 4, 2026
8515bf7
fix: yarn format
tipusinghaw May 4, 2026
dca7380
fix: yarn --fix
tipusinghaw May 4, 2026
80f4e50
fix: linting issues
tipusinghaw May 4, 2026
12efb50
refactor: added sonarcloud config file
tipusinghaw May 4, 2026
673ef32
fix:sonar cloud issues
tipusinghaw May 5, 2026
a97f464
fix: change method name
tipusinghaw May 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
235 changes: 94 additions & 141 deletions .env.demo

Large diffs are not rendered by default.

238 changes: 96 additions & 142 deletions .env.sample

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sonar.exclusions=samples/cliConfig.json,src/routes/routes.ts
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Builder stage
FROM node:18.19.0 AS builder
FROM node:22.22.0 AS builder

WORKDIR /app

Expand All @@ -18,8 +18,15 @@ RUN yarn global add patch-package
# Build the application
RUN yarn build

# Stage 2: Production stage
FROM node:18.19.0-slim
# Stage 2: Production stage
FROM node:22.22.0-slim

# Update system packages and install security updates
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

WORKDIR /app

Expand All @@ -30,5 +37,12 @@ COPY --from=builder /app/package.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/patches ./patches

# Create non-root user for security
RUN groupadd -r appuser && useradd -r -g appuser appuser && \
chown -R appuser:appuser /app && \
chmod -R 755 /app

USER appuser

# Set entry point
ENTRYPOINT ["node", "./bin/afj-rest.js", "start"]
8 changes: 4 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

export default [
{
ignores: ['**/build/**', '**/*.js', '**/*.d.ts'],
},
{
ignores: [
'**/tests/*',
'**/build/**',
'**/*.js',
'**/*.d.ts',
'**/tests/*',
],
files: ['**/*.ts'],
languageOptions: {
Expand Down
39 changes: 24 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,20 @@
"validate": "yarn lint && yarn check-types && yarn check-format"
},
"dependencies": {
"@ayanworks/credo-polygon-w3c-module": "1.0.1-alpha.1",
"@credo-ts/anoncreds": "0.5.15",
"@credo-ts/askar": "0.5.15",
"@credo-ts/core": "0.5.15",
"@credo-ts/indy-vdr": "0.5.15",
"@credo-ts/node": "^0.5.15",
"@ayanworks/credo-polygon-w3c-module": "2.0.2",
"@sd-jwt/jwt-status-list": "0.19.0",
"@credo-ts/anoncreds": "0.6.2",
"@credo-ts/askar": "0.6.2",
"@credo-ts/core": "0.6.2",
"@credo-ts/didcomm": "0.6.2",
"@credo-ts/indy-vdr": "0.6.2",
"@credo-ts/node": "0.6.2",
"@credo-ts/openid4vc": "0.6.2",
"@credo-ts/push-notifications": "^0.7.1",
"@credo-ts/question-answer": "0.5.15",
"@credo-ts/tenants": "0.5.15",
"@hyperledger/anoncreds-nodejs": "0.3.1",
"@hyperledger/aries-askar-nodejs": "0.2.3",
"@hyperledger/indy-vdr-nodejs": "0.2.2",
"@credo-ts/question-answer": "0.6.2",
"@credo-ts/tenants": "0.6.2",
"@hyperledger/anoncreds-nodejs": "^0.3.4",
"@hyperledger/indy-vdr-nodejs": "^0.2.3",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-logs-otlp-http": "^0.202.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.202.0",
Expand All @@ -61,26 +63,30 @@
"@opentelemetry/sdk-logs": "^0.202.0",
"@opentelemetry/sdk-node": "^0.202.0",
"@opentelemetry/semantic-conventions": "^1.34.0",
"@openwallet-foundation/askar-nodejs": "^0.4.3",
"@tsoa/runtime": "^6.6.0",
"@types/node-fetch": "^2.6.4",
"@types/ref-struct-di": "^1.1.12",
"@types/uuid": "^10.0.0",
"@types/ws": "^8.18.1",
"axios": "^1.9.0",
"axios": "1.13.5",
"body-parser": "^2.2.0",
"cors": "^2.8.5",
"dotenv": "^16.5.0",
"express": "^5.1.0",
"express-rate-limit": "^7.5.0",
"joi": "^17.13.3",
"jsonwebtoken": "^9.0.2",
"nats": "^2.29.3",
"node-cron": "^4.2.1",
"node-fetch": "2",
"patch-package": "^8.0.0",
"reflect-metadata": "^0.2.2",
"swagger-ui-express": "^4.4.0",
"tslog": "^3.3.3",
"tsoa": "^6.0.1",
"tsyringe": "^4.8.0",
"tsyringe": "^4.10.0",
"uuid": "^13.0.0",
"ws": "^8.18.2",
"yargs": "^17.7.2"
},
Expand All @@ -94,6 +100,7 @@
"@types/jsonwebtoken": "^9.0.9",
"@types/multer": "^1.4.12",
"@types/node": "^20.17.0",
"@types/node-cron": "^3.0.11",
"@types/ref-array-di": "^1.2.8",
"@types/ref-struct-di": "^1.1.12",
"@types/supertest": "^6.0.3",
Expand All @@ -115,7 +122,9 @@
"typescript": "^5.8.3"
},
"resolutions": {
"@credo-ts/core": "0.5.15",
"@credo-ts/askar": "0.5.15"
"@credo-ts/core": "0.6.2",
"@credo-ts/askar": "0.6.2",
"flatted": "3.4.0",
"undici": "6.24.0"
}
}

This file was deleted.

43 changes: 0 additions & 43 deletions patches/@credo-ts+core+0.5.15+001+message-type-for-messages.patch

This file was deleted.

This file was deleted.

This file was deleted.

44 changes: 0 additions & 44 deletions patches/@credo-ts+core+0.5.15+005+credential-get-format-data.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
diff --git a/node_modules/@credo-ts/core/build/modules/vc/data-integrity/jsonldUtil.d.mts b/node_modules/@credo-ts/core/build/modules/vc/data-integrity/jsonldUtil.d.mts
index 5a311c1..4d640d0 100644
--- a/node_modules/@credo-ts/core/build/modules/vc/data-integrity/jsonldUtil.d.mts
+++ b/node_modules/@credo-ts/core/build/modules/vc/data-integrity/jsonldUtil.d.mts
@@ -14,7 +14,7 @@ interface Proof extends JsonObject {
verificationMethod: string | VerificationMethod;
[key: string]: JsonValue;
}
-interface DocumentLoaderResult {
+export interface DocumentLoaderResult {
contextUrl?: string | null;
documentUrl: string;
document: Record<string, unknown>;
diff --git a/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.mjs b/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.mjs
index 49ee03f..aa7e43a 100644
--- a/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.mjs
+++ b/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.mjs
@@ -2,7 +2,7 @@

//#region src/modules/vc/data-integrity/libraries/nativeDocumentLoader.ts
async function getNativeDocumentLoader() {
- const loader = await import("@digitalcredentials/jsonld/lib/documentLoaders/node");
+ const loader = await import("@digitalcredentials/jsonld/lib/documentLoaders/node.js");
if (!loader) throw new Error("Could not load node document loader. Module did not contain a loader function");
if (typeof loader === "function") return loader;
if (typeof loader === "object" && typeof loader.default === "function") return loader.default;
diff --git a/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.native.mjs b/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.native.mjs
index 6a8ca37..0287e99 100644
--- a/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.native.mjs
+++ b/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.native.mjs
@@ -1,8 +1,9 @@


+
//#region src/modules/vc/data-integrity/libraries/nativeDocumentLoader.native.ts
async function getNativeDocumentLoader() {
- const loader = await import("@digitalcredentials/jsonld/lib/documentLoaders/xhr");
+ const loader = await import("@digitalcredentials/jsonld/lib/documentLoaders/xhr.js");
if (!loader) throw new Error("Could not load node document loader. Module did not contain a loader function");
if (typeof loader === "function") return loader;
if (typeof loader === "object" && typeof loader.default === "function") return loader.default;
diff --git a/node_modules/@credo-ts/core/build/utils/version.d.mts b/node_modules/@credo-ts/core/build/utils/version.d.mts
index a71659d..8ed88e2 100644
--- a/node_modules/@credo-ts/core/build/utils/version.d.mts
+++ b/node_modules/@credo-ts/core/build/utils/version.d.mts
@@ -1,5 +1,5 @@
//#region src/utils/version.d.ts
-type VersionString = `${number}.${number}` | `${number}.${number}.${number}`;
+type VersionString = string;
//#endregion
export { VersionString };
//# sourceMappingURL=version.d.mts.map
\ No newline at end of file
diff --git a/node_modules/@credo-ts/core/build/utils/version.mjs.map b/node_modules/@credo-ts/core/build/utils/version.mjs.map
index 19457ed..5fb595f 100644
--- a/node_modules/@credo-ts/core/build/utils/version.mjs.map
+++ b/node_modules/@credo-ts/core/build/utils/version.mjs.map
@@ -1 +1 @@
-{"version":3,"file":"version.mjs","names":[],"sources":["../../src/utils/version.ts"],"sourcesContent":["export function parseVersionString(version: VersionString): Version {\n const [major, minor, patch] = version.split('.')\n\n return [Number(major), Number(minor), Number(patch ?? '0')]\n}\n\nexport function isFirstVersionHigherThanSecond(first: Version, second: Version) {\n return (\n first[0] > second[0] ||\n (first[0] === second[0] && first[1] > second[1]) ||\n (first[0] === second[0] && first[1] === second[1] && first[2] > second[2])\n )\n}\n\nexport function isFirstVersionEqualToSecond(first: Version, second: Version) {\n return first[0] === second[0] && first[1] === second[1] && first[2] === second[2]\n}\n\nexport type VersionString = `${number}.${number}` | `${number}.${number}.${number}`\nexport type MajorVersion = number\nexport type MinorVersion = number\nexport type PatchVersion = number\nexport type Version = [MajorVersion, MinorVersion, PatchVersion]\n"],"mappings":";;;AAAA,SAAgB,mBAAmB,SAAiC;CAClE,MAAM,CAAC,OAAO,OAAO,SAAS,QAAQ,MAAM,IAAI;AAEhD,QAAO;EAAC,OAAO,MAAM;EAAE,OAAO,MAAM;EAAE,OAAO,SAAS,IAAI;EAAC;;AAG7D,SAAgB,+BAA+B,OAAgB,QAAiB;AAC9E,QACE,MAAM,KAAK,OAAO,MACjB,MAAM,OAAO,OAAO,MAAM,MAAM,KAAK,OAAO,MAC5C,MAAM,OAAO,OAAO,MAAM,MAAM,OAAO,OAAO,MAAM,MAAM,KAAK,OAAO;;AAI3E,SAAgB,4BAA4B,OAAgB,QAAiB;AAC3E,QAAO,MAAM,OAAO,OAAO,MAAM,MAAM,OAAO,OAAO,MAAM,MAAM,OAAO,OAAO"}
\ No newline at end of file
+{"version":3,"file":"version.mjs","names":[],"sources":["../../src/utils/version.ts"],"sourcesContent":["export function parseVersionString(version: VersionString): Version {\n const [major, minor, patch] = version.split('.')\n\n return [Number(major), Number(minor), Number(patch ?? '0')]\n}\n\nexport function isFirstVersionHigherThanSecond(first: Version, second: Version) {\n return (\n first[0] > second[0] ||\n (first[0] === second[0] && first[1] > second[1]) ||\n (first[0] === second[0] && first[1] === second[1] && first[2] > second[2])\n )\n}\n\nexport function isFirstVersionEqualToSecond(first: Version, second: Version) {\n return first[0] === second[0] && first[1] === second[1] && first[2] === second[2]\n}\n\nexport type VersionString = string\nexport type MajorVersion = number\nexport type MinorVersion = number\nexport type PatchVersion = number\nexport type Version = [MajorVersion, MinorVersion, PatchVersion]\n"],"mappings":";;;AAAA,SAAgB,mBAAmB,SAAiC;CAClE,MAAM,CAAC,OAAO,OAAO,SAAS,QAAQ,MAAM,IAAI;AAEhD,QAAO;EAAC,OAAO,MAAM;EAAE,OAAO,MAAM;EAAE,OAAO,SAAS,IAAI;EAAC;;AAG7D,SAAgB,+BAA+B,OAAgB,QAAiB;AAC9E,QACE,MAAM,KAAK,OAAO,MACjB,MAAM,OAAO,OAAO,MAAM,MAAM,KAAK,OAAO,MAC5C,MAAM,OAAO,OAAO,MAAM,MAAM,OAAO,OAAO,MAAM,MAAM,KAAK,OAAO;;AAI3E,SAAgB,4BAA4B,OAAgB,QAAiB;AAC3E,QAAO,MAAM,OAAO,OAAO,MAAM,MAAM,OAAO,OAAO,MAAM,MAAM,OAAO,OAAO"}
\ No newline at end of file
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/documentLoader.d.mts b/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/documentLoader.d.mts
index 195af1d..30d1638 100644
--- a/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/documentLoader.d.mts
+++ b/node_modules/@credo-ts/core/build/modules/vc/data-integrity/libraries/documentLoader.d.mts
@@ -5,4 +5,5 @@ import { AgentContext } from "../../../../agent/context/AgentContext.mjs";
type DocumentLoaderWithContext = (agentContext: AgentContext) => DocumentLoader;
//#endregion
export { DocumentLoaderWithContext };
+export declare function defaultDocumentLoader(agentContext: AgentContext): DocumentLoader;
//# sourceMappingURL=documentLoader.d.mts.map
\ No newline at end of file
diff --git a/node_modules/@credo-ts/core/package.json b/node_modules/@credo-ts/core/package.json
index 8198ea2..5d23e62 100644
--- a/node_modules/@credo-ts/core/package.json
+++ b/node_modules/@credo-ts/core/package.json
@@ -7,6 +7,11 @@
"import": "./build/modules/kms/index.mjs",
"require": "./build/modules/kms/index.mjs",
"types": "./build/modules/kms/index.d.mts"
+ },
+ "./build/modules/vc/data-integrity/libraries/documentLoader.mjs": {
+ "import": "./build/modules/vc/data-integrity/libraries/documentLoader.mjs",
+ "require": "./build/modules/vc/data-integrity/libraries/documentLoader.mjs",
+ "types": "./build/modules/vc/data-integrity/libraries/documentLoader.d.mts"
}
},
"version": "0.6.2",
Loading
Loading