Complete debug info types

This commit is contained in:
Arnaud 2024-10-11 17:52:50 +02:00
parent 3601170bbc
commit 9decfba74d
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
3 changed files with 26 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@codex-storage/sdk-js",
"version": "0.0.7",
"version": "0.0.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@codex-storage/sdk-js",
"version": "0.0.7",
"version": "0.0.8",
"license": "MIT",
"dependencies": {
"valibot": "^0.32.0"

View File

@ -1,6 +1,6 @@
{
"name": "@codex-storage/sdk-js",
"version": "0.0.7",
"version": "0.0.8",
"description": "Codex SDK to interact with the Codex decentralized storage network.",
"repository": {
"type": "git",

View File

@ -30,4 +30,27 @@ export type CodexDebugInfo = {
// Signed Peer Record (libp2p)
spr: string;
table: {
localNode: {
nodeId: string
peerId: string
record: string
address: string
seen: boolean
}
nodes: {
nodeId: string
peerId: string
record: string
address: string
seen: boolean
}[]
}
codex: {
version: string
revision: string
}
};