@mikeargento/bitgraph-mcp 0.2.0 → 0.4.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/src/types.ts CHANGED
@@ -28,13 +28,32 @@ export interface BitGraphProof {
28
28
  attestation?: { format?: string; reportB64?: string };
29
29
  };
30
30
  attribution?: { name?: string; title?: string; message?: string };
31
+ metadata?: unknown;
31
32
  proofHash?: string;
32
33
  [k: string]: unknown;
33
34
  }
34
35
 
36
+ /** A set member's row as the site reports it: which row of N these bytes are, and whether as the original or the new file. */
37
+ export interface SetMemberView {
38
+ index: number;
39
+ count: number;
40
+ role?: "origin" | "fused";
41
+ }
42
+
35
43
  /** POST /api/proofs/batch response. Keyed by the digest exactly as sent (URL-safe). */
36
44
  export interface BatchCheckResponse {
37
- results: Record<string, { proofs: Array<{ proof: BitGraphProof; kind?: "recorded" | "fused" }> }>;
45
+ results: Record<
46
+ string,
47
+ { proofs: Array<{ proof: BitGraphProof; kind?: "recorded" | "fused"; member?: SetMemberView; setDigest?: string }> }
48
+ >;
49
+ }
50
+
51
+ /** POST /api/fuse/set-index response: how many members' evidence the site wrote. */
52
+ export interface SetIndexResponse {
53
+ count?: number;
54
+ written: number;
55
+ failed: number;
56
+ rejected: number;
38
57
  }
39
58
 
40
59
  export interface AnchorView {
@@ -51,6 +70,9 @@ export interface PositionView {
51
70
  epoch: string | null;
52
71
  lowerTime: string | null;
53
72
  upperTime: string | null;
73
+ kind?: "recorded" | "fused";
74
+ placement?: string | null;
75
+ member?: SetMemberView;
54
76
  }
55
77
 
56
78
  /**