uvd-describe-sdk 0.3.0 → 0.5.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 +226 -0
- package/README.md +310 -6
- package/dist/{client-BMfgl1zP.d.mts → client-DOq3Kr0S.d.mts} +261 -26
- package/dist/{client-BMfgl1zP.d.ts → client-DOq3Kr0S.d.ts} +261 -26
- package/dist/{config-DzzhWFYr.d.mts → config-DPJgPNgs.d.mts} +1 -1
- package/dist/{config-DzzhWFYr.d.ts → config-DPJgPNgs.d.ts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +95 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +92 -3
- package/dist/index.mjs.map +1 -1
- package/dist/partner/index.d.mts +2 -2
- package/dist/partner/index.d.ts +2 -2
- package/dist/partner/index.js.map +1 -1
- package/dist/partner/index.mjs.map +1 -1
- package/dist/widget/index.d.mts +243 -0
- package/dist/widget/index.d.ts +243 -0
- package/dist/widget/index.js +450 -0
- package/dist/widget/index.js.map +1 -0
- package/dist/widget/index.mjs +446 -0
- package/dist/widget/index.mjs.map +1 -0
- package/dist/x402/index.d.mts +1 -1
- package/dist/x402/index.d.ts +1 -1
- package/package.json +11 -1
- package/src/caveats.ts +297 -21
- package/src/config.ts +1 -1
- package/src/index.ts +16 -1
- package/src/parse.ts +42 -0
- package/src/types.ts +55 -4
- package/src/widget/card.ts +302 -0
- package/src/widget/element.ts +379 -0
- package/src/widget/index.ts +66 -0
- package/src/widget/theme.ts +143 -0
|
@@ -524,40 +524,60 @@ declare function failedAfterPaying(error: unknown): error is DescribeError & {
|
|
|
524
524
|
* string comparison kept returning false and nobody was told.
|
|
525
525
|
*
|
|
526
526
|
* Exporting the set is one of the four "día 0" requirements the platform team
|
|
527
|
-
* put on any SDK of the house
|
|
528
|
-
* contrato exportado*. Typing them here means a consumer never re-types them,
|
|
527
|
+
* put on any SDK of the house: *los caveat `code`s como contrato exportado*. Typing them here means a consumer never re-types them,
|
|
529
528
|
* and a typo is a compile error rather than a branch that is never taken.
|
|
530
529
|
*
|
|
531
530
|
* ## Why the type is not a closed union
|
|
532
531
|
*
|
|
533
|
-
* `CaveatCode | (string & {})` gives autocomplete on the
|
|
534
|
-
*
|
|
535
|
-
*
|
|
536
|
-
*
|
|
537
|
-
*
|
|
538
|
-
*
|
|
539
|
-
*
|
|
532
|
+
* `CaveatCode | (string & {})` gives autocomplete on the codes that exist today
|
|
533
|
+
* AND still accepts one more the server adds tomorrow. A closed union would turn
|
|
534
|
+
* every new server-side code into a type error in code that is already deployed
|
|
535
|
+
* and working — the passthrough rule (tipar lo conocido, CONSERVAR lo que no)
|
|
536
|
+
* applied to the type system. The measured precedent is `Facet.direction`:
|
|
537
|
+
* FastAPI silently dropped a field nobody had declared, and the response looked
|
|
538
|
+
* correct with the data missing.
|
|
540
539
|
*
|
|
541
540
|
* The codes carry no version and never bump `POLICY_VERSION`: a caveat is
|
|
542
541
|
* advisory by construction and identifies a CUT, it never moves a score.
|
|
543
542
|
*/
|
|
543
|
+
|
|
544
544
|
/**
|
|
545
|
-
* The
|
|
546
|
-
* `describenet/caveats.py:
|
|
547
|
-
* `tests/test_caveat_codes.py` pins literally, so adding or
|
|
548
|
-
* there goes red on purpose
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
*
|
|
553
|
-
*
|
|
545
|
+
* The ten cuts describe.net serves on 2026-09-15, copied from the frozen set in
|
|
546
|
+
* `describenet/caveats.py:177-192` (describe-net `origin/main` at `4fd11c0`),
|
|
547
|
+
* which its own `tests/test_caveat_codes.py` pins literally, so adding or
|
|
548
|
+
* renaming one over there goes red on purpose. Same order as upstream.
|
|
549
|
+
*
|
|
550
|
+
* What the FREE route evaluates, per the server itself (`caveats.py:513`,
|
|
551
|
+
* `_publicos_evaluados`): `burn-address` always, and `thin-chain` when it has the
|
|
552
|
+
* per-chain rows — which `GET /wallets/{wallet}/chains` always has. Every other
|
|
553
|
+
* wallet-scope code is DECLARED as not evaluated, by name, in
|
|
554
|
+
* `WalletReputation.caveatsNotComputed`. `facilitator-authored` is agent scope
|
|
555
|
+
* and is in neither: a wallet profile lists no rows. An empty `caveats: []` on a
|
|
556
|
+
* free response therefore still means "no public-data caveat", NOT "clean" — and
|
|
557
|
+
* `requireFullCaveats()` is the gate that knows it. See `CAVEAT_SCOPE_FREE`.
|
|
558
|
+
*
|
|
559
|
+
* `thin-chain` (upstream since 2026-09-04, `cf8f806`; on the free route since
|
|
560
|
+
* 2026-09-05) is mirrored since 0.4.1, added to both twins together so the set
|
|
561
|
+
* both SDKs publish never differs. 0.4.0 shipped nine and knew it: until then
|
|
562
|
+
* `isKnownCaveatCode('thin-chain')` answered `false`, and the caveat still
|
|
563
|
+
* arrived whole — the tolerant answer this module was built to give.
|
|
564
|
+
*
|
|
565
|
+
* ⚠️ CORRECTED 2026-09-15, and the old text is left because somebody will look
|
|
566
|
+
* for it. It read: *"The eight cuts served on 2026-08-30, copied from the frozen
|
|
567
|
+
* set in `describenet/caveats.py:172-183` … Only `no-score` and `burn-address`
|
|
568
|
+
* are computable from public data, so the free routes serve a documented SUBSET
|
|
569
|
+
* … The other six need the grain and ride the metered routes."* Two codes had
|
|
570
|
+
* landed upstream since and this mirror carried neither; `facilitator-authored`
|
|
571
|
+
* (`6e25d71`, 2026-09-14) was mirrored in 0.4.0, `thin-chain` in 0.4.1. And
|
|
572
|
+
* `no-score` is not evaluated on the free route at all: the server declares it
|
|
573
|
+
* in the list.
|
|
554
574
|
*/
|
|
555
|
-
declare const CAVEAT_CODES: readonly ["no-score", "concentration-degraded", "single-rater", "few-raters", "top-client-share", "campaign-per-rater", "self-rated", "burn-address"];
|
|
556
|
-
/** The
|
|
575
|
+
declare const CAVEAT_CODES: readonly ["no-score", "concentration-degraded", "single-rater", "few-raters", "top-client-share", "campaign-per-rater", "self-rated", "burn-address", "thin-chain", "facilitator-authored"];
|
|
576
|
+
/** The known codes as a union — for `switch`, not for validation. */
|
|
557
577
|
type KnownCaveatCode = (typeof CAVEAT_CODES)[number];
|
|
558
578
|
/**
|
|
559
|
-
* What a caveat's `code` may be:
|
|
560
|
-
*
|
|
579
|
+
* What a caveat's `code` may be: a known one, or any string the server starts
|
|
580
|
+
* sending. The `(string & {})` half is what keeps autocomplete alive
|
|
561
581
|
* while leaving the union open.
|
|
562
582
|
*/
|
|
563
583
|
type CaveatCode = KnownCaveatCode | (string & {});
|
|
@@ -597,6 +617,170 @@ declare function isKnownCaveatCode(code: string): code is KnownCaveatCode;
|
|
|
597
617
|
declare function hasCaveat(subject: {
|
|
598
618
|
caveats?: readonly Caveat[];
|
|
599
619
|
} | null | undefined, code: CaveatCode): boolean;
|
|
620
|
+
/**
|
|
621
|
+
* `requireFullCaveats()` refused: this answer does not vouch for every cut.
|
|
622
|
+
*
|
|
623
|
+
* ## 🔴 NOT a `DescribeError`, and that is the decision
|
|
624
|
+
*
|
|
625
|
+
* `DescribeError` is the failure taxonomy — transport and protocol, "we could
|
|
626
|
+
* not read" — and consumers wrap it in their own fail-open:
|
|
627
|
+
* `catch (e) { if (e instanceof DescribeError) return null; }`. A refusal caught
|
|
628
|
+
* there degrades into "describe.net is down", and a gate built to tolerate
|
|
629
|
+
* outages lets the subject THROUGH: the same silent green the 2026-08-31 row
|
|
630
|
+
* exists to stop. This is not a failure to read; it is a successful read that
|
|
631
|
+
* does not support the decision being asked of it. So it extends `Error`, carries
|
|
632
|
+
* no `kind`, `transient` or `serviceFault`, and `failOpenCovers()` and
|
|
633
|
+
* `failedAfterPaying()` both answer `false` for it.
|
|
634
|
+
*
|
|
635
|
+
* Decided by the Python twin the same night (`CaveatsNotComputedError`,
|
|
636
|
+
* `uvd_describe_sdk/caveats.py`) and adopted here for parity. The first draft of
|
|
637
|
+
* this package made it a `DescribeError` with a new `kind`; the argument above is
|
|
638
|
+
* why that was the wrong door — and it would also have broken, at compile time,
|
|
639
|
+
* every exhaustive `switch` over `DescribeErrorKind`.
|
|
640
|
+
*
|
|
641
|
+
* ## `notComputed` — branch on it, never on the message
|
|
642
|
+
*
|
|
643
|
+
* ```
|
|
644
|
+
* ['few-raters', …] the answer DECLARED these unevaluated: unverified, not passed
|
|
645
|
+
* null the answer declared NOTHING — a server older than
|
|
646
|
+
* 2026-09-14, or a payload stored before then. Not `[]`.
|
|
647
|
+
* ```
|
|
648
|
+
*
|
|
649
|
+
* A declared `[]` never reaches this class: it passes the gate.
|
|
650
|
+
*/
|
|
651
|
+
declare class CaveatsNotComputedError extends Error {
|
|
652
|
+
/**
|
|
653
|
+
* What to do INSTEAD, as a frozen literal that interpolates nothing — the
|
|
654
|
+
* redaction rule of `recovery.ts` (invariant 11), without being an entry of
|
|
655
|
+
* that table, because this is not a `kind`. Same text on the class and on
|
|
656
|
+
* every instance.
|
|
657
|
+
*
|
|
658
|
+
* ⚠️ Not byte-identical to the Python twin's, and that is declared rather than
|
|
659
|
+
* hidden: theirs names `wallet_breakdown()`, `payer=`, `partner=` and
|
|
660
|
+
* `fallback_reader`, which are Python spellings. This one names what both SDKs
|
|
661
|
+
* share — the route, and the two ways through it.
|
|
662
|
+
*/
|
|
663
|
+
static readonly recovery: string;
|
|
664
|
+
/** Same literal as {@link CaveatsNotComputedError.recovery}, on the instance. */
|
|
665
|
+
readonly recovery: string;
|
|
666
|
+
/** The wallet whose answer was refused, as served. */
|
|
667
|
+
readonly wallet: string;
|
|
668
|
+
/** A COPY of what the answer declared, or `null` if it declared nothing. */
|
|
669
|
+
readonly notComputed: string[] | null;
|
|
670
|
+
constructor(message: string, opts: {
|
|
671
|
+
wallet: string;
|
|
672
|
+
notComputed: readonly string[] | null;
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Return `result` only if its answer DECLARED it left no caveat code out.
|
|
677
|
+
*
|
|
678
|
+
* ```ts
|
|
679
|
+
* const rep = await describe.wallet(address);
|
|
680
|
+
* if (rep === null) { … } // no answer at all: decide THAT first
|
|
681
|
+
* requireFullCaveats(rep); // throws CaveatsNotComputedError
|
|
682
|
+
* ```
|
|
683
|
+
*
|
|
684
|
+
* ## The bug it closes, found by karma-hello
|
|
685
|
+
*
|
|
686
|
+
* A quality gate built on the FREE route passes everybody (karma-hello, channel,
|
|
687
|
+
* 2026-08-31; `describe-net/docs/BACKLOG.md:221`). The evidence-quality cuts —
|
|
688
|
+
* `single-rater`, `few-raters`, `campaign-per-rater`, … — are computed only by
|
|
689
|
+
* the paid decomposition, so on `GET /wallets/{wallet}/chains`
|
|
690
|
+
* `hasCaveat(rep, 'single-rater')` is `false` for every wallet, the one with a
|
|
691
|
+
* single rater included. Honest code, and a gate that cannot fail anyone.
|
|
692
|
+
*
|
|
693
|
+
* Since 2026-09-14 the free answer DECLARES the names it did not evaluate
|
|
694
|
+
* (`WalletReputation.caveatsNotComputed`), and the server names this very helper
|
|
695
|
+
* as the reason the declaration is a list and not a count
|
|
696
|
+
* (`describenet/caveats.py:493-494`: *"el SDK puede ofrecer
|
|
697
|
+
* `require_full_caveats()` sin tabla propia"*). No table of our own here either:
|
|
698
|
+
* the verdict is read off the answer, never off a list typed in this package.
|
|
699
|
+
*
|
|
700
|
+
* ## Three states, and only one passes
|
|
701
|
+
*
|
|
702
|
+
* ```
|
|
703
|
+
* caveatsNotComputed = [] → returns `result`, the same object
|
|
704
|
+
* caveatsNotComputed = ['…', …] → throws; `error.notComputed` is the list
|
|
705
|
+
* caveatsNotComputed = null → throws; `error.notComputed` is null
|
|
706
|
+
* ```
|
|
707
|
+
*
|
|
708
|
+
* 🔴 **Against the live index this throws for every `wallet()` today** —
|
|
709
|
+
* measured 2026-09-15: the same seven codes for a wallet with 471 distinct raters
|
|
710
|
+
* and for one with no identity at all. That is the gate working: the free route
|
|
711
|
+
* does not evaluate the evidence-quality cuts, and a decision that needs them has
|
|
712
|
+
* to buy `walletBreakdown()` (or read it over the partner rail). What changes is
|
|
713
|
+
* that the gate can no longer find that out by passing.
|
|
714
|
+
*
|
|
715
|
+
* ## 🔴 Why `null` THROWS — the decision, and its sources
|
|
716
|
+
*
|
|
717
|
+
* - The position of 2026-08-31, written in `describe-net/docs/BACKLOG.md:221`:
|
|
718
|
+
* *"la línea gratis/pago es regla de costo y **el scope es la señal**; el SDK
|
|
719
|
+
* puede ganar `require_full_caveats()`"*. That row is about a gate that goes
|
|
720
|
+
* green without knowing what was not computed. A `null` that passes is that
|
|
721
|
+
* gate, back — silently, on every old deployment and every stored payload.
|
|
722
|
+
* - The service refuses the same collapse on its own side: its MCP tool carries
|
|
723
|
+
* `None` *"cuando la API no lo trae: una API vieja no declaró nada, y `[]`
|
|
724
|
+
* afirmaría que lo calculó todo"* (`describenet/mcp_server.py:896-901`).
|
|
725
|
+
* - Before 2026-09-14 the free route did not evaluate those cuts either; it only
|
|
726
|
+
* did not SAY so (`caveatScope: 'public-data-subset'` was the whole signal). An
|
|
727
|
+
* old answer's silence is the old gap, not a clean bill.
|
|
728
|
+
*
|
|
729
|
+
* ## It takes a `WalletReputation`, and nothing else
|
|
730
|
+
*
|
|
731
|
+
* The one result that declares what it did not compute. Anything else is a
|
|
732
|
+
* `TypeError` naming the mistake — never a pass, and never the refusal above:
|
|
733
|
+
*
|
|
734
|
+
* - `null` is "describe.net did not answer", the third absence (invariant 3).
|
|
735
|
+
* Handle it before asking about caveats.
|
|
736
|
+
* - A `WalletBreakdown` or an `AgentReputation` comes from a metered route, which
|
|
737
|
+
* evaluates its own caveat scope and declares no omissions: there is nothing
|
|
738
|
+
* here for this gate to read.
|
|
739
|
+
* - A raw wire payload (snake_case) was never parsed: `parseWalletReputation()`.
|
|
740
|
+
*
|
|
741
|
+
* Never called by the client and never swallowed by `failOpen`. And passing
|
|
742
|
+
* means the caveats are COMPLETE, not that they are empty — `hasCaveat()` is
|
|
743
|
+
* still the question after the gate.
|
|
744
|
+
*/
|
|
745
|
+
declare function requireFullCaveats(result: WalletReputation): WalletReputation;
|
|
746
|
+
/**
|
|
747
|
+
* The two classes served in `ratings[].author_class` since describe.net
|
|
748
|
+
* 2026-09-14 — the schema's own enum (`describenet/api.py:962`,
|
|
749
|
+
* `Literal["facilitator-authored", "rater-authored"]`), and
|
|
750
|
+
* `types.schema.test.ts` pins this tuple against the vendored spec's `enum`. The
|
|
751
|
+
* Python twin calls the same set `KNOWN_AUTHOR_CLASSES`, the way it calls
|
|
752
|
+
* `CAVEAT_CODES` `KNOWN_CAVEAT_CODES`.
|
|
753
|
+
*
|
|
754
|
+
* They live next to the caveat codes because one of them IS one: the agent-scope
|
|
755
|
+
* caveat `facilitator-authored` fires exactly when some row carries that class
|
|
756
|
+
* (`describenet/caveats.py:614`, which reads the field instead of recomputing it,
|
|
757
|
+
* so the two cannot disagree inside one answer).
|
|
758
|
+
*/
|
|
759
|
+
declare const AUTHOR_CLASSES: readonly ["facilitator-authored", "rater-authored"];
|
|
760
|
+
/** The known classes as a union — for `switch`, not for validation. */
|
|
761
|
+
type KnownAuthorClass = (typeof AUTHOR_CLASSES)[number];
|
|
762
|
+
/**
|
|
763
|
+
* What `Rating.authorClass` may be: a known class, or any string the server
|
|
764
|
+
* starts sending.
|
|
765
|
+
*
|
|
766
|
+
* Open, not closed, and recording that decision is why this type exists. The
|
|
767
|
+
* server's enum is closed TODAY; a third class there is a new contract on their
|
|
768
|
+
* side and must not become a type error — or worse, a thrown parse — on ours. A
|
|
769
|
+
* parser that rejected it would destroy a PAID read over one advisory field; one
|
|
770
|
+
* that nulled it would read as "no class served". So it arrives verbatim and
|
|
771
|
+
* `isKnownAuthorClass()` says whether this SDK has heard of it: the `CaveatCode`
|
|
772
|
+
* rule, applied one field over.
|
|
773
|
+
*/
|
|
774
|
+
type AuthorClass = KnownAuthorClass | (string & {});
|
|
775
|
+
/**
|
|
776
|
+
* Is this one of the author classes this SDK knows?
|
|
777
|
+
*
|
|
778
|
+
* NOT a validator, same as `isKnownCaveatCode`: `false` means "newer than this
|
|
779
|
+
* SDK" — or, for `null`, a row served before 2026-09-14 that carries no class at
|
|
780
|
+
* all. Neither is invalid. Before filtering rows on it, decide what an unknown
|
|
781
|
+
* class means for YOUR count; this SDK will not decide that for you.
|
|
782
|
+
*/
|
|
783
|
+
declare function isKnownAuthorClass(value: string | null | undefined): value is KnownAuthorClass;
|
|
600
784
|
|
|
601
785
|
/**
|
|
602
786
|
* The wire shapes — hand-written, and here is the argument for that.
|
|
@@ -631,10 +815,12 @@ declare function hasCaveat(subject: {
|
|
|
631
815
|
* schema, at two speeds.
|
|
632
816
|
*
|
|
633
817
|
* * `types.schema.test.ts` runs in the normal loop, offline, against
|
|
634
|
-
* `schema/openapi.
|
|
635
|
-
* 2026-
|
|
818
|
+
* `schema/openapi.json` — describe.net's committed spec, vendored (until
|
|
819
|
+
* 2026-09-28, `schema/openapi.snapshot.json`, a pinned copy of the live
|
|
820
|
+
* schema fetched 2026-08-30). It fails when a hand-written type drifts
|
|
821
|
+
* from the schema.
|
|
636
822
|
* * `npm run schema:check` re-fetches the live schema and diffs it against
|
|
637
|
-
* the
|
|
823
|
+
* the vendored spec. It fails when the SERVER moves. Deliberate, networked, and
|
|
638
824
|
* never in the test loop (tests do not touch the network).
|
|
639
825
|
*
|
|
640
826
|
* Two gates because there are two different failures: we drifted, and they
|
|
@@ -784,6 +970,34 @@ interface WalletReputation extends Sealed {
|
|
|
784
970
|
chainsWithIdentity: number;
|
|
785
971
|
chainsWithReputation: number;
|
|
786
972
|
totalReviews: number;
|
|
973
|
+
/**
|
|
974
|
+
* The caveat codes that the paid decomposition evaluates and THIS free answer
|
|
975
|
+
* did not — sorted, served since describe.net 2026-09-14
|
|
976
|
+
* (`describenet/caveats.py:525-532`, `not_computed_public`, derived from the
|
|
977
|
+
* same module that builds `caveats`). **Names, never outcomes**: whether any of
|
|
978
|
+
* them fires for this wallet is exactly what stays paid.
|
|
979
|
+
*
|
|
980
|
+
* Seven codes on 2026-09-15, for a wallet with 471 raters and for `0xdead…beef`
|
|
981
|
+
* alike — the declaration depends on what the route evaluates, not on the
|
|
982
|
+
* subject. Read it live; the count is not a constant.
|
|
983
|
+
*
|
|
984
|
+
* 🔴 **Three states, and they stay three:**
|
|
985
|
+
*
|
|
986
|
+
* ```
|
|
987
|
+
* ['few-raters', …] NOT evaluated here — read each one as UNVERIFIED, never as passed
|
|
988
|
+
* [] the answer says it evaluated every wallet-scope cut
|
|
989
|
+
* null nothing readable was declared: a server older than 2026-09-14,
|
|
990
|
+
* a payload stored before then, or a value that is not a list
|
|
991
|
+
* of non-empty strings. NOT `[]` — nothing was promised, and
|
|
992
|
+
* `caveatScope` still says what was evaluated
|
|
993
|
+
* ```
|
|
994
|
+
*
|
|
995
|
+
* The failure this field closes is karma-hello's (2026-08-31): a quality gate
|
|
996
|
+
* built on this route passed every wallet, because `caveats: []` here is the
|
|
997
|
+
* silence of cuts that were never run. Do not gate on it by hand —
|
|
998
|
+
* `requireFullCaveats()` is the gate, and it reads the `null` correctly.
|
|
999
|
+
*/
|
|
1000
|
+
caveatsNotComputed: CaveatCode[] | null;
|
|
787
1001
|
}
|
|
788
1002
|
/** How lopsided the evidence is. `null` when there is not enough to say. */
|
|
789
1003
|
interface Concentration {
|
|
@@ -954,6 +1168,27 @@ interface WalletBreakdown extends Sealed {
|
|
|
954
1168
|
*/
|
|
955
1169
|
interface Rating {
|
|
956
1170
|
client: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* Who SIGNED this row, as a class — served since describe.net 2026-09-14
|
|
1173
|
+
* (`describenet/api.py:962`, `rating_roles.author_class_of`).
|
|
1174
|
+
*
|
|
1175
|
+
* - `facilitator-authored` — `client` is a known relayer (today the x402
|
|
1176
|
+
* facilitator's EVM wallet) that wrote the rating on behalf of the real
|
|
1177
|
+
* rater. **`client` is NOT the counterparty**: every such row shares one
|
|
1178
|
+
* `client`, so any per-rater count — `concentration.distinctRaters`,
|
|
1179
|
+
* `topClientShare` — merges all of them into one voice. Filter on this
|
|
1180
|
+
* before reading `client` as "who rated".
|
|
1181
|
+
* - `rater-authored` — `client` is not a relayer the index knows about. 🔴 It
|
|
1182
|
+
* does NOT prove who signed; it is the absence of a known relayer.
|
|
1183
|
+
* - `null` — no class was served (a server older than 2026-09-14, or a stored
|
|
1184
|
+
* payload). Unknown, and deliberately NOT defaulted to `rater-authored`:
|
|
1185
|
+
* that would assert the one thing the index says it cannot.
|
|
1186
|
+
*
|
|
1187
|
+
* An unknown string arrives VERBATIM — the union is open, like `CaveatCode`,
|
|
1188
|
+
* and `isKnownAuthorClass()` says whether this SDK has heard of it. Per row
|
|
1189
|
+
* only: neither the index nor this SDK computes any score or count by class.
|
|
1190
|
+
*/
|
|
1191
|
+
authorClass: AuthorClass | null;
|
|
957
1192
|
feedbackIndex: number;
|
|
958
1193
|
value: number;
|
|
959
1194
|
valueDecimals: number;
|
|
@@ -1674,4 +1909,4 @@ declare class DescribeClient {
|
|
|
1674
1909
|
private assertPayableTo;
|
|
1675
1910
|
}
|
|
1676
1911
|
|
|
1677
|
-
export { type AgentReputation as A, type
|
|
1912
|
+
export { isKnownAuthorClass as $, type AgentReputation as A, type FreshnessScope as B, CAVEAT_CODES as C, type DescribeErrorKind as D, type KnownCaveatCode as E, type Facet as F, type PartnerSigner as G, type HealthChain as H, type IndexHealth as I, type PaymentAttempt as J, type KnownAuthorClass as K, type LeaderboardRow as L, type SelfRated as M, type Network as N, type Ownership as O, type PaymentEvidence as P, type Snapshot as Q, type Rating as R, type Sealed as S, type Timestamp as T, type WalletChainRow as U, type X402Payer as V, type WalletBreakdown as W, type X402Challenge as X, failOpenCovers as Y, failedAfterPaying as Z, hasCaveat as _, type WalletReputation as a, isKnownCaveatCode as a0, requireFullCaveats as a1, AUTHOR_CLASSES as b, type Activity as c, type AuthorClass as d, CAVEAT_SCOPE_FREE as e, CAVEAT_SCOPE_METERED as f, type Caveat as g, type CaveatCode as h, CaveatsNotComputedError as i, type Concentration as j, type Confidence as k, DescribeClient as l, type DescribeClientConfig as m, DescribeError as n, type DescribeFailure as o, DescribeHTTPError as p, DescribeMalformedHash as q, DescribeNotFound as r, DescribePartnerRejected as s, DescribePartnerUnsigned as t, DescribePaymentRefused as u, DescribePaymentRequired as v, DescribeTimeout as w, DescribeUnparseable as x, DescribeUnreachable as y, type Freshness as z };
|