@truealter/sdk 0.2.0 → 0.2.4
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/README.md +40 -49
- package/dist/bin/alter-identity.js +53 -39
- package/dist/bin/mcp-bridge.js +1 -3
- package/dist/index.cjs +66 -86
- package/dist/index.d.cts +67 -197
- package/dist/index.d.ts +67 -197
- package/dist/index.js +66 -86
- package/package.json +10 -5
- package/dist/bin/alter-identity.js.map +0 -1
- package/dist/bin/mcp-bridge.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -386,7 +386,7 @@ declare class X402Client {
|
|
|
386
386
|
*/
|
|
387
387
|
declare function parsePaymentHeader(header: string): PaymentEnvelope | null;
|
|
388
388
|
|
|
389
|
-
declare const MCP_PROTOCOL_VERSION = "2025-
|
|
389
|
+
declare const MCP_PROTOCOL_VERSION = "2025-11-25";
|
|
390
390
|
interface MCPClientInfo {
|
|
391
391
|
name: string;
|
|
392
392
|
version: string;
|
|
@@ -536,6 +536,36 @@ interface MCPResponse<T> {
|
|
|
536
536
|
};
|
|
537
537
|
_meta?: MCPMeta;
|
|
538
538
|
}
|
|
539
|
+
/** (free) hello_agent — First handshake: returns server version, auth status, trust tier, tool counts */
|
|
540
|
+
interface HelloAgentInput {
|
|
541
|
+
}
|
|
542
|
+
/** (free) hello_agent — output */
|
|
543
|
+
interface HelloAgentOutput {
|
|
544
|
+
ok: boolean;
|
|
545
|
+
server?: string;
|
|
546
|
+
version?: string;
|
|
547
|
+
authenticated?: boolean;
|
|
548
|
+
tier?: string;
|
|
549
|
+
tools?: {
|
|
550
|
+
free?: number;
|
|
551
|
+
premium?: number;
|
|
552
|
+
messaging?: number;
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
/** (free) alter_resolve_handle — Resolve a ~handle (e.g. ~drew) to canonical form and kind */
|
|
556
|
+
interface AlterResolveHandleInput {
|
|
557
|
+
query: string;
|
|
558
|
+
}
|
|
559
|
+
/** (free) alter_resolve_handle — output */
|
|
560
|
+
interface AlterResolveHandleOutput {
|
|
561
|
+
ok: boolean;
|
|
562
|
+
handle: string | null;
|
|
563
|
+
kind?: "system" | "personal" | "role_alias" | string;
|
|
564
|
+
status: "found" | "not_found" | "invalid_format";
|
|
565
|
+
addressable: boolean;
|
|
566
|
+
default_visibility?: string;
|
|
567
|
+
query?: string;
|
|
568
|
+
}
|
|
539
569
|
/** (free) list_archetypes — List all 12 ALTER identity archetypes */
|
|
540
570
|
interface ListArchetypesInput {
|
|
541
571
|
}
|
|
@@ -600,7 +630,7 @@ interface GetEngagementLevelOutput {
|
|
|
600
630
|
consent_gated: string[];
|
|
601
631
|
};
|
|
602
632
|
}
|
|
603
|
-
/** (free) get_profile — Get a
|
|
633
|
+
/** (free) get_profile — Get a person's profile summary */
|
|
604
634
|
interface GetProfileInput {
|
|
605
635
|
candidate_id: string;
|
|
606
636
|
}
|
|
@@ -613,7 +643,7 @@ interface GetProfileOutput {
|
|
|
613
643
|
engagement_level?: EngagementLevel;
|
|
614
644
|
attributes?: Record<string, unknown>;
|
|
615
645
|
}
|
|
616
|
-
/** (free) query_matches — Query matches for a
|
|
646
|
+
/** (free) query_matches — Query matches for a person (tier labels only) */
|
|
617
647
|
interface QueryMatchesInput {
|
|
618
648
|
candidate_id: string;
|
|
619
649
|
quality_filter?: MatchTier;
|
|
@@ -630,7 +660,7 @@ interface QueryMatchesOutput {
|
|
|
630
660
|
}>;
|
|
631
661
|
count: number;
|
|
632
662
|
}
|
|
633
|
-
/** (free) get_competencies — Get a
|
|
663
|
+
/** (free) get_competencies — Get a person's competency portfolio */
|
|
634
664
|
interface GetCompetenciesInput {
|
|
635
665
|
candidate_id: string;
|
|
636
666
|
}
|
|
@@ -647,31 +677,6 @@ interface GetCompetenciesOutput {
|
|
|
647
677
|
awarded_at: string;
|
|
648
678
|
}>;
|
|
649
679
|
}
|
|
650
|
-
/** (free) create_identity_stub — Create an anonymous identity stub for a human (consent required) */
|
|
651
|
-
interface CreateIdentityStubInput {
|
|
652
|
-
source: string;
|
|
653
|
-
consent_acknowledged: boolean;
|
|
654
|
-
erc8004_agent_id?: string;
|
|
655
|
-
}
|
|
656
|
-
/** (free) create_identity_stub — output */
|
|
657
|
-
interface CreateIdentityStubOutput {
|
|
658
|
-
ok: boolean;
|
|
659
|
-
stub_id: string;
|
|
660
|
-
claim_code: string;
|
|
661
|
-
expires_at: string;
|
|
662
|
-
}
|
|
663
|
-
/** (free) submit_context — Submit text context for an identity stub (PII redacted, raw text never stored) */
|
|
664
|
-
interface SubmitContextInput {
|
|
665
|
-
stub_id: string;
|
|
666
|
-
text: string;
|
|
667
|
-
source_type?: "resume" | "work_sample" | "conversation" | "cover_letter" | "linkedin" | "portfolio" | "reference" | "interview_notes" | "performance_review" | "project_summary" | "general";
|
|
668
|
-
}
|
|
669
|
-
/** (free) submit_context — output */
|
|
670
|
-
interface SubmitContextOutput {
|
|
671
|
-
ok: boolean;
|
|
672
|
-
traits_extracted: number;
|
|
673
|
-
confidence_cap: number;
|
|
674
|
-
}
|
|
675
680
|
/** (free) search_identities — Search identity stubs and profiles by trait criteria (max 5 results, no PII) */
|
|
676
681
|
interface SearchIdentitiesInput {
|
|
677
682
|
trait_criteria: Record<string, {
|
|
@@ -690,7 +695,7 @@ interface SearchIdentitiesOutput {
|
|
|
690
695
|
}>;
|
|
691
696
|
count: number;
|
|
692
697
|
}
|
|
693
|
-
/** (free) get_identity_earnings — Get accrued Identity Income earnings for a
|
|
698
|
+
/** (free) get_identity_earnings — Get accrued Identity Income earnings for a person */
|
|
694
699
|
interface GetIdentityEarningsInput {
|
|
695
700
|
candidate_id: string;
|
|
696
701
|
}
|
|
@@ -747,7 +752,7 @@ interface CheckAssessmentStatusOutput {
|
|
|
747
752
|
current_phase?: string;
|
|
748
753
|
time_remaining_sec?: number;
|
|
749
754
|
}
|
|
750
|
-
/** (free) get_earning_summary — Get an aggregated x402 earning summary for a
|
|
755
|
+
/** (free) get_earning_summary — Get an aggregated x402 earning summary for a person */
|
|
751
756
|
interface GetEarningSummaryInput {
|
|
752
757
|
candidate_id: string;
|
|
753
758
|
}
|
|
@@ -787,7 +792,7 @@ interface GetAgentPortfolioOutput {
|
|
|
787
792
|
query_pattern: Record<string, number>;
|
|
788
793
|
total_spent_usd: number;
|
|
789
794
|
}
|
|
790
|
-
/** (free) get_privacy_budget — Check privacy budget status for a
|
|
795
|
+
/** (free) get_privacy_budget — Check privacy budget status for a person (24h rolling window) */
|
|
791
796
|
interface GetPrivacyBudgetInput {
|
|
792
797
|
candidate_id: string;
|
|
793
798
|
}
|
|
@@ -800,18 +805,6 @@ interface GetPrivacyBudgetOutput {
|
|
|
800
805
|
query_count: number;
|
|
801
806
|
window_hours: number;
|
|
802
807
|
}
|
|
803
|
-
/** (free) dispute_attestation — Dispute an attestation on a candidate's identity */
|
|
804
|
-
interface DisputeAttestationInput {
|
|
805
|
-
attestation_id: string;
|
|
806
|
-
reason: string;
|
|
807
|
-
}
|
|
808
|
-
/** (free) dispute_attestation — output */
|
|
809
|
-
interface DisputeAttestationOutput {
|
|
810
|
-
ok: boolean;
|
|
811
|
-
dispute_id: string;
|
|
812
|
-
attestation_id: string;
|
|
813
|
-
flagged_for_review: boolean;
|
|
814
|
-
}
|
|
815
808
|
/** (free) golden_thread_status — Check the Golden Thread program status */
|
|
816
809
|
interface GoldenThreadStatusInput {
|
|
817
810
|
}
|
|
@@ -886,45 +879,6 @@ interface ThreadCensusOutput {
|
|
|
886
879
|
offset: number;
|
|
887
880
|
limit: number;
|
|
888
881
|
}
|
|
889
|
-
/** (free) seat_status — Return the current Thirteen Seats census */
|
|
890
|
-
interface SeatStatusInput {
|
|
891
|
-
}
|
|
892
|
-
/** (free) seat_status — output */
|
|
893
|
-
interface SeatStatusOutput {
|
|
894
|
-
ok: boolean;
|
|
895
|
-
seats: Array<{
|
|
896
|
-
name: string;
|
|
897
|
-
status: "awaiting" | "bound" | "witnessing" | "silent";
|
|
898
|
-
holder_handle?: string;
|
|
899
|
-
archetype_description: string;
|
|
900
|
-
}>;
|
|
901
|
-
}
|
|
902
|
-
/** (free) respond_to_offering — Accept or refuse a Recognition Event during the seven-day window */
|
|
903
|
-
interface RespondToOfferingInput {
|
|
904
|
-
offering_id: string;
|
|
905
|
-
response: "accept" | "refuse";
|
|
906
|
-
decline_reason?: string;
|
|
907
|
-
}
|
|
908
|
-
/** (free) respond_to_offering — output */
|
|
909
|
-
interface RespondToOfferingOutput {
|
|
910
|
-
ok: boolean;
|
|
911
|
-
offering_id: string;
|
|
912
|
-
response: "accept" | "refuse";
|
|
913
|
-
ceremony_url?: string;
|
|
914
|
-
}
|
|
915
|
-
/** (free) subscribe_announcements — Return the Hall of Echoes SSE URL plus recent broadcasts */
|
|
916
|
-
interface SubscribeAnnouncementsInput {
|
|
917
|
-
backlog?: number;
|
|
918
|
-
}
|
|
919
|
-
/** (free) subscribe_announcements — output */
|
|
920
|
-
interface SubscribeAnnouncementsOutput {
|
|
921
|
-
ok: boolean;
|
|
922
|
-
sse_url: string;
|
|
923
|
-
broadcasts: Array<{
|
|
924
|
-
timestamp: string;
|
|
925
|
-
text: string;
|
|
926
|
-
}>;
|
|
927
|
-
}
|
|
928
882
|
/** (premium L1) assess_traits — Extract trait signals from a text passage ($0.005) */
|
|
929
883
|
interface AssessTraitsInput {
|
|
930
884
|
text: string;
|
|
@@ -941,7 +895,7 @@ interface AssessTraitsOutput {
|
|
|
941
895
|
evidence: string;
|
|
942
896
|
}>;
|
|
943
897
|
}
|
|
944
|
-
/** (premium L1) get_trait_snapshot — Get the top 5 traits for a
|
|
898
|
+
/** (premium L1) get_trait_snapshot — Get the top 5 traits for a person ($0.005) */
|
|
945
899
|
interface GetTraitSnapshotInput {
|
|
946
900
|
candidate_id: string;
|
|
947
901
|
_payment?: ProvenanceToken;
|
|
@@ -973,7 +927,7 @@ interface GetFullTraitVectorOutput {
|
|
|
973
927
|
confidence_interval: [number, number];
|
|
974
928
|
}>;
|
|
975
929
|
}
|
|
976
|
-
/** (premium L4) compute_belonging — Compute belonging probability for a
|
|
930
|
+
/** (premium L4) compute_belonging — Compute belonging probability for a person-job pairing ($0.05) */
|
|
977
931
|
interface ComputeBelongingInput {
|
|
978
932
|
candidate_id: string;
|
|
979
933
|
job_id: string;
|
|
@@ -990,7 +944,7 @@ interface ComputeBelongingOutput {
|
|
|
990
944
|
complementarity: number;
|
|
991
945
|
};
|
|
992
946
|
}
|
|
993
|
-
/** (premium L5) get_match_recommendations — Get top N match recommendations for a
|
|
947
|
+
/** (premium L5) get_match_recommendations — Get top N match recommendations for a person ($0.50) */
|
|
994
948
|
interface GetMatchRecommendationsInput {
|
|
995
949
|
candidate_id: string;
|
|
996
950
|
limit?: number;
|
|
@@ -1023,72 +977,7 @@ interface GenerateMatchNarrativeOutput {
|
|
|
1023
977
|
strengths: string[];
|
|
1024
978
|
growth_areas: string[];
|
|
1025
979
|
}
|
|
1026
|
-
/** (premium L2)
|
|
1027
|
-
interface SubmitBatchContextInput {
|
|
1028
|
-
stub_id: string;
|
|
1029
|
-
items: Array<{
|
|
1030
|
-
text: string;
|
|
1031
|
-
source_type?: string;
|
|
1032
|
-
}>;
|
|
1033
|
-
consent_acknowledged: boolean;
|
|
1034
|
-
_payment?: ProvenanceToken;
|
|
1035
|
-
}
|
|
1036
|
-
/** (premium L2) submit_batch_context — output */
|
|
1037
|
-
interface SubmitBatchContextOutput {
|
|
1038
|
-
ok: boolean;
|
|
1039
|
-
items_processed: number;
|
|
1040
|
-
traits_extracted: number;
|
|
1041
|
-
}
|
|
1042
|
-
/** (premium L1) submit_structured_profile — Submit structured profile data (name, skills, experience) ($0.005) */
|
|
1043
|
-
interface SubmitStructuredProfileInput {
|
|
1044
|
-
stub_id: string;
|
|
1045
|
-
name?: string;
|
|
1046
|
-
skills?: string[];
|
|
1047
|
-
experience?: string;
|
|
1048
|
-
education?: string;
|
|
1049
|
-
certifications?: string[];
|
|
1050
|
-
consent_acknowledged: boolean;
|
|
1051
|
-
_payment?: ProvenanceToken;
|
|
1052
|
-
}
|
|
1053
|
-
/** (premium L1) submit_structured_profile — output */
|
|
1054
|
-
interface SubmitStructuredProfileOutput {
|
|
1055
|
-
ok: boolean;
|
|
1056
|
-
stub_id: string;
|
|
1057
|
-
traits_extracted: number;
|
|
1058
|
-
}
|
|
1059
|
-
/** (premium L1) submit_social_links — Submit social profile URLs (max 5) ($0.005) */
|
|
1060
|
-
interface SubmitSocialLinksInput {
|
|
1061
|
-
stub_id: string;
|
|
1062
|
-
urls: string[];
|
|
1063
|
-
consent_acknowledged: boolean;
|
|
1064
|
-
_payment?: ProvenanceToken;
|
|
1065
|
-
}
|
|
1066
|
-
/** (premium L1) submit_social_links — output */
|
|
1067
|
-
interface SubmitSocialLinksOutput {
|
|
1068
|
-
ok: boolean;
|
|
1069
|
-
stub_id: string;
|
|
1070
|
-
urls_fetched: number;
|
|
1071
|
-
urls_blocked: number;
|
|
1072
|
-
traits_extracted: number;
|
|
1073
|
-
}
|
|
1074
|
-
/** (premium L1) attest_domain — Attest that a human has competence in a specific domain ($0.005) */
|
|
1075
|
-
interface AttestDomainInput {
|
|
1076
|
-
candidate_id: string;
|
|
1077
|
-
domain_label: string;
|
|
1078
|
-
confidence: number;
|
|
1079
|
-
evidence_type: "OBSERVED" | "INFERRED" | "REPORTED";
|
|
1080
|
-
evidence_summary?: string;
|
|
1081
|
-
_payment?: ProvenanceToken;
|
|
1082
|
-
}
|
|
1083
|
-
/** (premium L1) attest_domain — output */
|
|
1084
|
-
interface AttestDomainOutput {
|
|
1085
|
-
ok: boolean;
|
|
1086
|
-
attestation_id: string;
|
|
1087
|
-
candidate_id: string;
|
|
1088
|
-
domain_label: string;
|
|
1089
|
-
weighted_confidence: number;
|
|
1090
|
-
}
|
|
1091
|
-
/** (premium L2) get_side_quest_graph — Get a candidate's Side Quest Graph (DP noise ε=1.0) ($0.01) */
|
|
980
|
+
/** (premium L2) get_side_quest_graph — Get a person's Side Quest Graph (DP noise ε=1.0) ($0.01) */
|
|
1092
981
|
interface GetSideQuestGraphInput {
|
|
1093
982
|
candidate_id: string;
|
|
1094
983
|
include_edges?: boolean;
|
|
@@ -1127,13 +1016,15 @@ interface QueryGraphSimilarityOutput {
|
|
|
1127
1016
|
complementarity: number;
|
|
1128
1017
|
privacy_epsilon: number;
|
|
1129
1018
|
}
|
|
1130
|
-
/** Free (L0
|
|
1131
|
-
declare const FREE_TOOL_NAMES: readonly ["
|
|
1132
|
-
/** Premium (x402-gated) tool names — readonly tuple */
|
|
1133
|
-
declare const PREMIUM_TOOL_NAMES: readonly ["assess_traits", "get_trait_snapshot", "get_full_trait_vector", "compute_belonging", "get_match_recommendations", "generate_match_narrative", "
|
|
1134
|
-
/** Union of all
|
|
1019
|
+
/** Free (L0) tool names — readonly tuple. Mirrors the live server's `tools/list` free set. */
|
|
1020
|
+
declare const FREE_TOOL_NAMES: readonly ["hello_agent", "alter_resolve_handle", "list_archetypes", "verify_identity", "initiate_assessment", "get_engagement_level", "get_profile", "query_matches", "get_competencies", "search_identities", "get_identity_earnings", "get_network_stats", "recommend_tool", "get_identity_trust_score", "check_assessment_status", "get_earning_summary", "get_agent_trust_tier", "get_agent_portfolio", "get_privacy_budget", "golden_thread_status", "begin_golden_thread", "complete_knot", "check_golden_thread", "thread_census"];
|
|
1021
|
+
/** Premium (x402-gated, L1-L5) tool names — readonly tuple. Mirrors the live server's `tools/list` premium set. */
|
|
1022
|
+
declare const PREMIUM_TOOL_NAMES: readonly ["assess_traits", "get_trait_snapshot", "get_full_trait_vector", "compute_belonging", "get_match_recommendations", "generate_match_narrative", "get_side_quest_graph", "query_graph_similarity"];
|
|
1023
|
+
/** Union of all 32 tool names */
|
|
1135
1024
|
type ToolName = (typeof FREE_TOOL_NAMES)[number] | (typeof PREMIUM_TOOL_NAMES)[number];
|
|
1136
1025
|
interface ToolInputs {
|
|
1026
|
+
hello_agent: HelloAgentInput;
|
|
1027
|
+
alter_resolve_handle: AlterResolveHandleInput;
|
|
1137
1028
|
list_archetypes: ListArchetypesInput;
|
|
1138
1029
|
verify_identity: VerifyIdentityInput;
|
|
1139
1030
|
initiate_assessment: InitiateAssessmentInput;
|
|
@@ -1141,8 +1032,6 @@ interface ToolInputs {
|
|
|
1141
1032
|
get_profile: GetProfileInput;
|
|
1142
1033
|
query_matches: QueryMatchesInput;
|
|
1143
1034
|
get_competencies: GetCompetenciesInput;
|
|
1144
|
-
create_identity_stub: CreateIdentityStubInput;
|
|
1145
|
-
submit_context: SubmitContextInput;
|
|
1146
1035
|
search_identities: SearchIdentitiesInput;
|
|
1147
1036
|
get_identity_earnings: GetIdentityEarningsInput;
|
|
1148
1037
|
get_network_stats: GetNetworkStatsInput;
|
|
@@ -1153,29 +1042,23 @@ interface ToolInputs {
|
|
|
1153
1042
|
get_agent_trust_tier: GetAgentTrustTierInput;
|
|
1154
1043
|
get_agent_portfolio: GetAgentPortfolioInput;
|
|
1155
1044
|
get_privacy_budget: GetPrivacyBudgetInput;
|
|
1156
|
-
dispute_attestation: DisputeAttestationInput;
|
|
1157
1045
|
golden_thread_status: GoldenThreadStatusInput;
|
|
1158
1046
|
begin_golden_thread: BeginGoldenThreadInput;
|
|
1159
1047
|
complete_knot: CompleteKnotInput;
|
|
1160
1048
|
check_golden_thread: CheckGoldenThreadInput;
|
|
1161
1049
|
thread_census: ThreadCensusInput;
|
|
1162
|
-
seat_status: SeatStatusInput;
|
|
1163
|
-
respond_to_offering: RespondToOfferingInput;
|
|
1164
|
-
subscribe_announcements: SubscribeAnnouncementsInput;
|
|
1165
1050
|
assess_traits: AssessTraitsInput;
|
|
1166
1051
|
get_trait_snapshot: GetTraitSnapshotInput;
|
|
1167
1052
|
get_full_trait_vector: GetFullTraitVectorInput;
|
|
1168
1053
|
compute_belonging: ComputeBelongingInput;
|
|
1169
1054
|
get_match_recommendations: GetMatchRecommendationsInput;
|
|
1170
1055
|
generate_match_narrative: GenerateMatchNarrativeInput;
|
|
1171
|
-
submit_batch_context: SubmitBatchContextInput;
|
|
1172
|
-
submit_structured_profile: SubmitStructuredProfileInput;
|
|
1173
|
-
submit_social_links: SubmitSocialLinksInput;
|
|
1174
|
-
attest_domain: AttestDomainInput;
|
|
1175
1056
|
get_side_quest_graph: GetSideQuestGraphInput;
|
|
1176
1057
|
query_graph_similarity: QueryGraphSimilarityInput;
|
|
1177
1058
|
}
|
|
1178
1059
|
interface ToolOutputs {
|
|
1060
|
+
hello_agent: HelloAgentOutput;
|
|
1061
|
+
alter_resolve_handle: AlterResolveHandleOutput;
|
|
1179
1062
|
list_archetypes: ListArchetypesOutput;
|
|
1180
1063
|
verify_identity: VerifyIdentityOutput;
|
|
1181
1064
|
initiate_assessment: InitiateAssessmentOutput;
|
|
@@ -1183,8 +1066,6 @@ interface ToolOutputs {
|
|
|
1183
1066
|
get_profile: GetProfileOutput;
|
|
1184
1067
|
query_matches: QueryMatchesOutput;
|
|
1185
1068
|
get_competencies: GetCompetenciesOutput;
|
|
1186
|
-
create_identity_stub: CreateIdentityStubOutput;
|
|
1187
|
-
submit_context: SubmitContextOutput;
|
|
1188
1069
|
search_identities: SearchIdentitiesOutput;
|
|
1189
1070
|
get_identity_earnings: GetIdentityEarningsOutput;
|
|
1190
1071
|
get_network_stats: GetNetworkStatsOutput;
|
|
@@ -1195,25 +1076,17 @@ interface ToolOutputs {
|
|
|
1195
1076
|
get_agent_trust_tier: GetAgentTrustTierOutput;
|
|
1196
1077
|
get_agent_portfolio: GetAgentPortfolioOutput;
|
|
1197
1078
|
get_privacy_budget: GetPrivacyBudgetOutput;
|
|
1198
|
-
dispute_attestation: DisputeAttestationOutput;
|
|
1199
1079
|
golden_thread_status: GoldenThreadStatusOutput;
|
|
1200
1080
|
begin_golden_thread: BeginGoldenThreadOutput;
|
|
1201
1081
|
complete_knot: CompleteKnotOutput;
|
|
1202
1082
|
check_golden_thread: CheckGoldenThreadOutput;
|
|
1203
1083
|
thread_census: ThreadCensusOutput;
|
|
1204
|
-
seat_status: SeatStatusOutput;
|
|
1205
|
-
respond_to_offering: RespondToOfferingOutput;
|
|
1206
|
-
subscribe_announcements: SubscribeAnnouncementsOutput;
|
|
1207
1084
|
assess_traits: AssessTraitsOutput;
|
|
1208
1085
|
get_trait_snapshot: GetTraitSnapshotOutput;
|
|
1209
1086
|
get_full_trait_vector: GetFullTraitVectorOutput;
|
|
1210
1087
|
compute_belonging: ComputeBelongingOutput;
|
|
1211
1088
|
get_match_recommendations: GetMatchRecommendationsOutput;
|
|
1212
1089
|
generate_match_narrative: GenerateMatchNarrativeOutput;
|
|
1213
|
-
submit_batch_context: SubmitBatchContextOutput;
|
|
1214
|
-
submit_structured_profile: SubmitStructuredProfileOutput;
|
|
1215
|
-
submit_social_links: SubmitSocialLinksOutput;
|
|
1216
|
-
attest_domain: AttestDomainOutput;
|
|
1217
1090
|
get_side_quest_graph: GetSideQuestGraphOutput;
|
|
1218
1091
|
query_graph_similarity: QueryGraphSimilarityOutput;
|
|
1219
1092
|
}
|
|
@@ -1239,8 +1112,8 @@ declare const TOOL_BLAST_RADIUS: Record<ToolName, "low" | "medium" | "high">;
|
|
|
1239
1112
|
*
|
|
1240
1113
|
* This is the entry point most consumers will use. It bundles
|
|
1241
1114
|
* {@link MCPClient}, {@link X402Client}, discovery, and provenance
|
|
1242
|
-
* verification into a single ergonomic surface that mirrors the
|
|
1243
|
-
* tools exposed at https://mcp.truealter.com.
|
|
1115
|
+
* verification into a single ergonomic surface that mirrors the 32
|
|
1116
|
+
* tools exposed at https://mcp.truealter.com/api/v1/mcp.
|
|
1244
1117
|
*
|
|
1245
1118
|
* Free tier methods require no authentication. Premium methods accept
|
|
1246
1119
|
* an `X402Client` (or fall back to throwing {@link AlterPaymentRequired}
|
|
@@ -1304,7 +1177,11 @@ declare class AlterClient {
|
|
|
1304
1177
|
* you want fail-fast behaviour.
|
|
1305
1178
|
*/
|
|
1306
1179
|
initialize(): Promise<void>;
|
|
1307
|
-
/**
|
|
1180
|
+
/** First handshake — confirms the connection, returns trust tier and tool counts. */
|
|
1181
|
+
helloAgent(): Promise<MCPCallToolResult>;
|
|
1182
|
+
/** Resolve a ~handle (e.g. ~drew) to its canonical form and kind. No auth required. */
|
|
1183
|
+
resolveHandle(args: AlterResolveHandleInput | string): Promise<MCPCallToolResult>;
|
|
1184
|
+
/** Verify a person is registered with ALTER (handle or id). */
|
|
1308
1185
|
verify(handleOrId: string, claims?: VerifyIdentityInput['claims']): Promise<MCPCallToolResult>;
|
|
1309
1186
|
/** List the 12 ALTER identity archetypes. */
|
|
1310
1187
|
listArchetypes(): Promise<MCPCallToolResult>;
|
|
@@ -1317,8 +1194,6 @@ declare class AlterClient {
|
|
|
1317
1194
|
getProfile(args: GetProfileInput): Promise<MCPCallToolResult>;
|
|
1318
1195
|
queryMatches(args: QueryMatchesInput): Promise<MCPCallToolResult>;
|
|
1319
1196
|
getCompetencies(args: GetCompetenciesInput): Promise<MCPCallToolResult>;
|
|
1320
|
-
createIdentityStub(args: CreateIdentityStubInput): Promise<MCPCallToolResult>;
|
|
1321
|
-
submitContext(args: SubmitContextInput): Promise<MCPCallToolResult>;
|
|
1322
1197
|
searchIdentities(args: SearchIdentitiesInput): Promise<MCPCallToolResult>;
|
|
1323
1198
|
getIdentityEarnings(args: GetIdentityEarningsInput): Promise<MCPCallToolResult>;
|
|
1324
1199
|
getIdentityTrustScore(args: GetIdentityTrustScoreInput): Promise<MCPCallToolResult>;
|
|
@@ -1327,25 +1202,17 @@ declare class AlterClient {
|
|
|
1327
1202
|
getAgentTrustTier(): Promise<MCPCallToolResult>;
|
|
1328
1203
|
getAgentPortfolio(): Promise<MCPCallToolResult>;
|
|
1329
1204
|
getPrivacyBudget(args: GetPrivacyBudgetInput): Promise<MCPCallToolResult>;
|
|
1330
|
-
disputeAttestation(args: DisputeAttestationInput): Promise<MCPCallToolResult>;
|
|
1331
1205
|
goldenThreadStatus(): Promise<MCPCallToolResult>;
|
|
1332
1206
|
beginGoldenThread(args?: BeginGoldenThreadInput): Promise<MCPCallToolResult>;
|
|
1333
1207
|
completeKnot(args: CompleteKnotInput): Promise<MCPCallToolResult>;
|
|
1334
1208
|
checkGoldenThread(args: CheckGoldenThreadInput): Promise<MCPCallToolResult>;
|
|
1335
1209
|
threadCensus(args?: ThreadCensusInput): Promise<MCPCallToolResult>;
|
|
1336
|
-
seatStatus(): Promise<MCPCallToolResult>;
|
|
1337
|
-
respondToOffering(args: RespondToOfferingInput): Promise<MCPCallToolResult>;
|
|
1338
|
-
subscribeAnnouncements(args?: SubscribeAnnouncementsInput): Promise<MCPCallToolResult>;
|
|
1339
1210
|
assessTraits(args: AssessTraitsInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1340
1211
|
getTraitSnapshot(args: GetTraitSnapshotInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1341
1212
|
getFullTraitVector(args: GetFullTraitVectorInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1342
1213
|
computeBelonging(args: ComputeBelongingInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1343
1214
|
getMatchRecommendations(args: GetMatchRecommendationsInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1344
1215
|
generateMatchNarrative(args: GenerateMatchNarrativeInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1345
|
-
submitBatchContext(args: SubmitBatchContextInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1346
|
-
submitStructuredProfile(args: SubmitStructuredProfileInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1347
|
-
submitSocialLinks(args: SubmitSocialLinksInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1348
|
-
attestDomain(args: AttestDomainInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1349
1216
|
getSideQuestGraph(args: GetSideQuestGraphInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1350
1217
|
queryGraphSimilarity(args: QueryGraphSimilarityInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1351
1218
|
/** Send a direct message to another tilde handle. */
|
|
@@ -1452,19 +1319,22 @@ declare function generateCursorConfig(opts?: GenerateMcpConfigOptions): GenericM
|
|
|
1452
1319
|
* @truealter/sdk — ALTER Identity SDK
|
|
1453
1320
|
*
|
|
1454
1321
|
* Query the continuous identity field from any JavaScript/TypeScript
|
|
1455
|
-
* environment. Wraps the
|
|
1456
|
-
*
|
|
1457
|
-
*
|
|
1322
|
+
* environment. Wraps the 32 tools exposed at
|
|
1323
|
+
* `https://mcp.truealter.com/api/v1/mcp` (24 free L0 + 8 premium L1–L5).
|
|
1324
|
+
* Write tools (`submit_*`, `attest_domain`, `dispute_attestation`,
|
|
1325
|
+
* `create_identity_stub`) and alter-to-alter messaging tools are not
|
|
1458
1326
|
* advertised to public callers — they re-enable as the consent
|
|
1459
1327
|
* architecture and per-peer grant model land. First-class TypeScript
|
|
1460
1328
|
* types, x402 micropayment support, and ES256 provenance verification.
|
|
1461
1329
|
*
|
|
1462
1330
|
* The ALTER endpoint discovery anchor is `truealter.com` — see
|
|
1463
|
-
* `discover()` for the cascade. The default MCP endpoint is
|
|
1464
|
-
* `https://mcp.truealter.com
|
|
1331
|
+
* `discover()` for the cascade. The default MCP wire endpoint is
|
|
1332
|
+
* `https://mcp.truealter.com/api/v1/mcp`; the bare host
|
|
1333
|
+
* `https://mcp.truealter.com` is the branded discovery surface and
|
|
1334
|
+
* returns `405 Method Not Allowed` for JSON-RPC POSTs.
|
|
1465
1335
|
*/
|
|
1466
1336
|
|
|
1467
1337
|
declare const SDK_NAME = "@truealter/sdk";
|
|
1468
|
-
declare const SDK_VERSION = "0.
|
|
1338
|
+
declare const SDK_VERSION = "0.2.4";
|
|
1469
1339
|
|
|
1470
|
-
export { AlterAuthError, AlterClient, type AlterClientOptions, AlterDiscoveryError, AlterError, type AlterErrorCode, AlterInvalidResponse, AlterNetworkError, AlterPaymentRequired, AlterProvenanceError, AlterRateLimited, AlterTimeoutError, AlterToolError, type ApiKeyConfig, type Archetype, type AssessTraitsInput, type AssessTraitsOutput, type
|
|
1340
|
+
export { AlterAuthError, AlterClient, type AlterClientOptions, AlterDiscoveryError, AlterError, type AlterErrorCode, AlterInvalidResponse, AlterNetworkError, AlterPaymentRequired, AlterProvenanceError, AlterRateLimited, type AlterResolveHandleInput, type AlterResolveHandleOutput, AlterTimeoutError, AlterToolError, type ApiKeyConfig, type Archetype, type AssessTraitsInput, type AssessTraitsOutput, type BeginGoldenThreadInput, type BeginGoldenThreadOutput, type CheckAssessmentStatusInput, type CheckAssessmentStatusOutput, type CheckGoldenThreadInput, type CheckGoldenThreadOutput, type CompleteKnotInput, type CompleteKnotOutput, type ComputeBelongingInput, type ComputeBelongingOutput, DEFAULT_DOMAIN, DEFAULT_ENDPOINT, DEFAULT_VERIFY_AT_ALLOWLIST, type DiscoveryOptions, type DiscoveryResult, type Ed25519Keypair, type EngagementLevel, FREE_TOOL_NAMES, type GenerateMatchNarrativeInput, type GenerateMatchNarrativeOutput, type GetAgentPortfolioInput, type GetAgentPortfolioOutput, type GetAgentTrustTierInput, type GetAgentTrustTierOutput, type GetCompetenciesInput, type GetCompetenciesOutput, type GetEarningSummaryInput, type GetEarningSummaryOutput, type GetEngagementLevelInput, type GetEngagementLevelOutput, type GetFullTraitVectorInput, type GetFullTraitVectorOutput, type GetIdentityEarningsInput, type GetIdentityEarningsOutput, type GetIdentityTrustScoreInput, type GetIdentityTrustScoreOutput, type GetMatchRecommendationsInput, type GetMatchRecommendationsOutput, type GetNetworkStatsInput, type GetNetworkStatsOutput, type GetPrivacyBudgetInput, type GetPrivacyBudgetOutput, type GetProfileInput, type GetProfileOutput, type GetSideQuestGraphInput, type GetSideQuestGraphOutput, type GetTraitSnapshotInput, type GetTraitSnapshotOutput, type GoldenThreadStatusInput, type GoldenThreadStatusOutput, type HelloAgentInput, type HelloAgentOutput, type InitiateAssessmentInput, type InitiateAssessmentOutput, type JsonWebKey, type JwksDocument, type ListArchetypesInput, type ListArchetypesOutput, type MCPCallOptions, type MCPCallToolResult, MCPClient, type MCPClientInfo, type MCPClientOptions, type MCPContentBlock, type MCPListToolsResult, type MCPMeta, type MCPResponse, type MCPToolDefinition, MCP_PROTOCOL_VERSION, type MatchTier, type McpServerConfig, PREMIUM_TOOL_NAMES, type PaymentEnvelope, type ProvenanceEnvelope, type ProvenancePayload, type ProvenanceToken, type ProvenanceVerification, type QueryGraphSimilarityInput, type QueryGraphSimilarityOutput, type QueryMatchesInput, type QueryMatchesOutput, type RecommendToolInput, type RecommendToolOutput, SDK_NAME, SDK_VERSION, type SearchIdentitiesInput, type SearchIdentitiesOutput, type SignedToolDefinition, TOOL_BLAST_RADIUS, TOOL_COSTS, TOOL_TIERS, type ThreadCensusInput, type ThreadCensusOutput, type ToolInputs, type ToolName, type ToolOutputs, type ToolSignatureMap, type VerifyIdentityInput, type VerifyIdentityOutput, type VerifyProvenanceOptions, X402Client, type X402ClientOptions, type X402Settlement, type X402Signer, base64urlDecode, base64urlEncode, clearDiscoveryCache, decodeDid, discover, encodeDid, fetchPublicKeys, generateClaudeConfig, generateCursorConfig, generateGenericMcpConfig, generateKeypair, keypairFromPrivateKey, parsePaymentHeader, resolveVerifyAt, sign, verify, verifyProvenance, verifyToolSignatures };
|