inamprotocol 0.12.0 → 0.13.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.
@@ -12,3 +12,29 @@ export declare function netVerdict(verifiedCount: number, rejectedCount: number)
12
12
  */
13
13
  export type EvidenceLevel = "none" | "countersigned" | "independently_verified";
14
14
  export declare function evidenceLevel(finalizedReceipts: number, attestedReceipts: number): EvidenceLevel;
15
+ /**
16
+ * SPEC.md §5.3 (v0.35) — the evidence behind a reputation, reported along
17
+ * separate dimensions instead of one ordered scale (the AAIF Identity & Trust
18
+ * WG's evidence-strength vocabulary). Counts, not a verdict: this is the
19
+ * registry's appraisal, a hint a relying party can re-derive itself (§5.4).
20
+ */
21
+ export interface EvidenceDimensions {
22
+ /** Who asserts the work happened. */
23
+ source: {
24
+ /** Drafts signed only by the provider; never counted toward reputation. */
25
+ declared: number;
26
+ /** Countersigned by the counterparty and counted. */
27
+ corroborated: number;
28
+ /** Of those, receipts whose counted Verifications net out to verified. */
29
+ independentlyVerified: number;
30
+ };
31
+ /** How the record is held: counted receipts with a transparency-log leaf (§13). */
32
+ construction: {
33
+ anchored: number;
34
+ };
35
+ freshness: {
36
+ evaluatedAt: string;
37
+ /** Verifications ignored because their verifier is no longer authorized or was revoked. */
38
+ excludedAttestations: number;
39
+ };
40
+ }
package/dist/index.d.ts CHANGED
@@ -8,6 +8,6 @@ export { disputeWindowClosesAt, isDisputeWindowOpen } from "./core/disputeLifecy
8
8
  export { computeVerificationId, buildSignableVerificationContent, type VerificationContentInput } from "./core/verificationContent.js";
9
9
  export { verifyInclusion, verifyConsistency } from "./core/merkleLog.js";
10
10
  export { type TransparencyEntryType, payloadHash } from "./core/transparencyLog.js";
11
- export { type AttestationVerdict, type EvidenceLevel } from "./core/attestation.js";
11
+ export { type AttestationVerdict, type EvidenceLevel, type EvidenceDimensions } from "./core/attestation.js";
12
12
  export { registerAgentSchema, linkChallengeSchema, linkSchema, postJobSchema, offerSchema, acceptOfferSchema, draftReceiptSchema, countersignSchema, disputeSchema, submitVerificationSchema, setVerifierStatusSchema, } from "./core/schemas.js";
13
13
  export type { LinkedIdentities, ExternalKeyType, LinkChallenge, AgentRecord, VerificationMethod, ReceiptOutcome, ReceiptStatus, DisputeStatus, ExecutionReceipt, SignableReceiptContent, ReputationComponents, ReputationRoleBreakdown, ReputationResult, JobStatus, JobOffer, JobRecord, IndependentVerificationMethod, VerificationResult, VerificationRecord, } from "./types.js";
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EvidenceLevel } from "./core/attestation.js";
1
+ import type { EvidenceLevel, EvidenceDimensions } from "./core/attestation.js";
2
2
  /**
3
3
  * Wire-format types for the INAM Protocol REST API. This is the JS/TS SDK's
4
4
  * own copy — parity with `sdk-python/inamprotocol/types` and the registry
@@ -205,6 +205,8 @@ export interface ReputationResult {
205
205
  /** v0.32 (SPEC.md §5.3): strongest evidence behind this history — read
206
206
  * this, not `trustScore` alone, before relying on the score. */
207
207
  evidenceLevel: EvidenceLevel;
208
+ /** v0.35 (SPEC.md §5.3): the same evidence as separate dimensions; a registry hint (§5.4). */
209
+ evidence: EvidenceDimensions;
208
210
  components: ReputationComponents;
209
211
  flags: string[];
210
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inamprotocol",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Reference TypeScript/JavaScript SDK for the INAM Protocol — agent identity, execution receipts, jobs, and reputation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",