@truealter/sdk 0.2.2 → 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 +22 -25
- package/dist/bin/alter-identity.js +51 -27
- package/dist/bin/mcp-bridge.js +0 -2
- package/dist/index.cjs +63 -61
- package/dist/index.d.cts +55 -137
- package/dist/index.d.ts +55 -137
- package/dist/index.js +63 -61
- 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
|
@@ -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
|
}
|
|
@@ -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, {
|
|
@@ -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 person'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
|
}
|
|
@@ -984,71 +977,6 @@ interface GenerateMatchNarrativeOutput {
|
|
|
984
977
|
strengths: string[];
|
|
985
978
|
growth_areas: string[];
|
|
986
979
|
}
|
|
987
|
-
/** (premium L2) submit_batch_context — Submit multiple context items in a single call (max 10) ($0.01) */
|
|
988
|
-
interface SubmitBatchContextInput {
|
|
989
|
-
stub_id: string;
|
|
990
|
-
items: Array<{
|
|
991
|
-
text: string;
|
|
992
|
-
source_type?: string;
|
|
993
|
-
}>;
|
|
994
|
-
consent_acknowledged: boolean;
|
|
995
|
-
_payment?: ProvenanceToken;
|
|
996
|
-
}
|
|
997
|
-
/** (premium L2) submit_batch_context — output */
|
|
998
|
-
interface SubmitBatchContextOutput {
|
|
999
|
-
ok: boolean;
|
|
1000
|
-
items_processed: number;
|
|
1001
|
-
traits_extracted: number;
|
|
1002
|
-
}
|
|
1003
|
-
/** (premium L1) submit_structured_profile — Submit structured profile data (name, skills, experience) ($0.005) */
|
|
1004
|
-
interface SubmitStructuredProfileInput {
|
|
1005
|
-
stub_id: string;
|
|
1006
|
-
name?: string;
|
|
1007
|
-
skills?: string[];
|
|
1008
|
-
experience?: string;
|
|
1009
|
-
education?: string;
|
|
1010
|
-
certifications?: string[];
|
|
1011
|
-
consent_acknowledged: boolean;
|
|
1012
|
-
_payment?: ProvenanceToken;
|
|
1013
|
-
}
|
|
1014
|
-
/** (premium L1) submit_structured_profile — output */
|
|
1015
|
-
interface SubmitStructuredProfileOutput {
|
|
1016
|
-
ok: boolean;
|
|
1017
|
-
stub_id: string;
|
|
1018
|
-
traits_extracted: number;
|
|
1019
|
-
}
|
|
1020
|
-
/** (premium L1) submit_social_links — Submit social profile URLs (max 5) ($0.005) */
|
|
1021
|
-
interface SubmitSocialLinksInput {
|
|
1022
|
-
stub_id: string;
|
|
1023
|
-
urls: string[];
|
|
1024
|
-
consent_acknowledged: boolean;
|
|
1025
|
-
_payment?: ProvenanceToken;
|
|
1026
|
-
}
|
|
1027
|
-
/** (premium L1) submit_social_links — output */
|
|
1028
|
-
interface SubmitSocialLinksOutput {
|
|
1029
|
-
ok: boolean;
|
|
1030
|
-
stub_id: string;
|
|
1031
|
-
urls_fetched: number;
|
|
1032
|
-
urls_blocked: number;
|
|
1033
|
-
traits_extracted: number;
|
|
1034
|
-
}
|
|
1035
|
-
/** (premium L1) attest_domain — Attest that a human has competence in a specific domain ($0.005) */
|
|
1036
|
-
interface AttestDomainInput {
|
|
1037
|
-
candidate_id: string;
|
|
1038
|
-
domain_label: string;
|
|
1039
|
-
confidence: number;
|
|
1040
|
-
evidence_type: "OBSERVED" | "INFERRED" | "REPORTED";
|
|
1041
|
-
evidence_summary?: string;
|
|
1042
|
-
_payment?: ProvenanceToken;
|
|
1043
|
-
}
|
|
1044
|
-
/** (premium L1) attest_domain — output */
|
|
1045
|
-
interface AttestDomainOutput {
|
|
1046
|
-
ok: boolean;
|
|
1047
|
-
attestation_id: string;
|
|
1048
|
-
candidate_id: string;
|
|
1049
|
-
domain_label: string;
|
|
1050
|
-
weighted_confidence: number;
|
|
1051
|
-
}
|
|
1052
980
|
/** (premium L2) get_side_quest_graph — Get a person's Side Quest Graph (DP noise ε=1.0) ($0.01) */
|
|
1053
981
|
interface GetSideQuestGraphInput {
|
|
1054
982
|
candidate_id: string;
|
|
@@ -1088,13 +1016,15 @@ interface QueryGraphSimilarityOutput {
|
|
|
1088
1016
|
complementarity: number;
|
|
1089
1017
|
privacy_epsilon: number;
|
|
1090
1018
|
}
|
|
1091
|
-
/** Free (L0
|
|
1092
|
-
declare const FREE_TOOL_NAMES: readonly ["
|
|
1093
|
-
/** Premium (x402-gated) tool names — readonly tuple */
|
|
1094
|
-
declare const PREMIUM_TOOL_NAMES: readonly ["assess_traits", "get_trait_snapshot", "get_full_trait_vector", "compute_belonging", "get_match_recommendations", "generate_match_narrative", "
|
|
1095
|
-
/** 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 */
|
|
1096
1024
|
type ToolName = (typeof FREE_TOOL_NAMES)[number] | (typeof PREMIUM_TOOL_NAMES)[number];
|
|
1097
1025
|
interface ToolInputs {
|
|
1026
|
+
hello_agent: HelloAgentInput;
|
|
1027
|
+
alter_resolve_handle: AlterResolveHandleInput;
|
|
1098
1028
|
list_archetypes: ListArchetypesInput;
|
|
1099
1029
|
verify_identity: VerifyIdentityInput;
|
|
1100
1030
|
initiate_assessment: InitiateAssessmentInput;
|
|
@@ -1102,8 +1032,6 @@ interface ToolInputs {
|
|
|
1102
1032
|
get_profile: GetProfileInput;
|
|
1103
1033
|
query_matches: QueryMatchesInput;
|
|
1104
1034
|
get_competencies: GetCompetenciesInput;
|
|
1105
|
-
create_identity_stub: CreateIdentityStubInput;
|
|
1106
|
-
submit_context: SubmitContextInput;
|
|
1107
1035
|
search_identities: SearchIdentitiesInput;
|
|
1108
1036
|
get_identity_earnings: GetIdentityEarningsInput;
|
|
1109
1037
|
get_network_stats: GetNetworkStatsInput;
|
|
@@ -1114,7 +1042,6 @@ interface ToolInputs {
|
|
|
1114
1042
|
get_agent_trust_tier: GetAgentTrustTierInput;
|
|
1115
1043
|
get_agent_portfolio: GetAgentPortfolioInput;
|
|
1116
1044
|
get_privacy_budget: GetPrivacyBudgetInput;
|
|
1117
|
-
dispute_attestation: DisputeAttestationInput;
|
|
1118
1045
|
golden_thread_status: GoldenThreadStatusInput;
|
|
1119
1046
|
begin_golden_thread: BeginGoldenThreadInput;
|
|
1120
1047
|
complete_knot: CompleteKnotInput;
|
|
@@ -1126,14 +1053,12 @@ interface ToolInputs {
|
|
|
1126
1053
|
compute_belonging: ComputeBelongingInput;
|
|
1127
1054
|
get_match_recommendations: GetMatchRecommendationsInput;
|
|
1128
1055
|
generate_match_narrative: GenerateMatchNarrativeInput;
|
|
1129
|
-
submit_batch_context: SubmitBatchContextInput;
|
|
1130
|
-
submit_structured_profile: SubmitStructuredProfileInput;
|
|
1131
|
-
submit_social_links: SubmitSocialLinksInput;
|
|
1132
|
-
attest_domain: AttestDomainInput;
|
|
1133
1056
|
get_side_quest_graph: GetSideQuestGraphInput;
|
|
1134
1057
|
query_graph_similarity: QueryGraphSimilarityInput;
|
|
1135
1058
|
}
|
|
1136
1059
|
interface ToolOutputs {
|
|
1060
|
+
hello_agent: HelloAgentOutput;
|
|
1061
|
+
alter_resolve_handle: AlterResolveHandleOutput;
|
|
1137
1062
|
list_archetypes: ListArchetypesOutput;
|
|
1138
1063
|
verify_identity: VerifyIdentityOutput;
|
|
1139
1064
|
initiate_assessment: InitiateAssessmentOutput;
|
|
@@ -1141,8 +1066,6 @@ interface ToolOutputs {
|
|
|
1141
1066
|
get_profile: GetProfileOutput;
|
|
1142
1067
|
query_matches: QueryMatchesOutput;
|
|
1143
1068
|
get_competencies: GetCompetenciesOutput;
|
|
1144
|
-
create_identity_stub: CreateIdentityStubOutput;
|
|
1145
|
-
submit_context: SubmitContextOutput;
|
|
1146
1069
|
search_identities: SearchIdentitiesOutput;
|
|
1147
1070
|
get_identity_earnings: GetIdentityEarningsOutput;
|
|
1148
1071
|
get_network_stats: GetNetworkStatsOutput;
|
|
@@ -1153,7 +1076,6 @@ interface ToolOutputs {
|
|
|
1153
1076
|
get_agent_trust_tier: GetAgentTrustTierOutput;
|
|
1154
1077
|
get_agent_portfolio: GetAgentPortfolioOutput;
|
|
1155
1078
|
get_privacy_budget: GetPrivacyBudgetOutput;
|
|
1156
|
-
dispute_attestation: DisputeAttestationOutput;
|
|
1157
1079
|
golden_thread_status: GoldenThreadStatusOutput;
|
|
1158
1080
|
begin_golden_thread: BeginGoldenThreadOutput;
|
|
1159
1081
|
complete_knot: CompleteKnotOutput;
|
|
@@ -1165,10 +1087,6 @@ interface ToolOutputs {
|
|
|
1165
1087
|
compute_belonging: ComputeBelongingOutput;
|
|
1166
1088
|
get_match_recommendations: GetMatchRecommendationsOutput;
|
|
1167
1089
|
generate_match_narrative: GenerateMatchNarrativeOutput;
|
|
1168
|
-
submit_batch_context: SubmitBatchContextOutput;
|
|
1169
|
-
submit_structured_profile: SubmitStructuredProfileOutput;
|
|
1170
|
-
submit_social_links: SubmitSocialLinksOutput;
|
|
1171
|
-
attest_domain: AttestDomainOutput;
|
|
1172
1090
|
get_side_quest_graph: GetSideQuestGraphOutput;
|
|
1173
1091
|
query_graph_similarity: QueryGraphSimilarityOutput;
|
|
1174
1092
|
}
|
|
@@ -1194,8 +1112,8 @@ declare const TOOL_BLAST_RADIUS: Record<ToolName, "low" | "medium" | "high">;
|
|
|
1194
1112
|
*
|
|
1195
1113
|
* This is the entry point most consumers will use. It bundles
|
|
1196
1114
|
* {@link MCPClient}, {@link X402Client}, discovery, and provenance
|
|
1197
|
-
* verification into a single ergonomic surface that mirrors the
|
|
1198
|
-
* 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.
|
|
1199
1117
|
*
|
|
1200
1118
|
* Free tier methods require no authentication. Premium methods accept
|
|
1201
1119
|
* an `X402Client` (or fall back to throwing {@link AlterPaymentRequired}
|
|
@@ -1259,6 +1177,10 @@ declare class AlterClient {
|
|
|
1259
1177
|
* you want fail-fast behaviour.
|
|
1260
1178
|
*/
|
|
1261
1179
|
initialize(): Promise<void>;
|
|
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>;
|
|
1262
1184
|
/** Verify a person is registered with ALTER (handle or id). */
|
|
1263
1185
|
verify(handleOrId: string, claims?: VerifyIdentityInput['claims']): Promise<MCPCallToolResult>;
|
|
1264
1186
|
/** List the 12 ALTER identity archetypes. */
|
|
@@ -1272,8 +1194,6 @@ declare class AlterClient {
|
|
|
1272
1194
|
getProfile(args: GetProfileInput): Promise<MCPCallToolResult>;
|
|
1273
1195
|
queryMatches(args: QueryMatchesInput): Promise<MCPCallToolResult>;
|
|
1274
1196
|
getCompetencies(args: GetCompetenciesInput): Promise<MCPCallToolResult>;
|
|
1275
|
-
createIdentityStub(args: CreateIdentityStubInput): Promise<MCPCallToolResult>;
|
|
1276
|
-
submitContext(args: SubmitContextInput): Promise<MCPCallToolResult>;
|
|
1277
1197
|
searchIdentities(args: SearchIdentitiesInput): Promise<MCPCallToolResult>;
|
|
1278
1198
|
getIdentityEarnings(args: GetIdentityEarningsInput): Promise<MCPCallToolResult>;
|
|
1279
1199
|
getIdentityTrustScore(args: GetIdentityTrustScoreInput): Promise<MCPCallToolResult>;
|
|
@@ -1282,7 +1202,6 @@ declare class AlterClient {
|
|
|
1282
1202
|
getAgentTrustTier(): Promise<MCPCallToolResult>;
|
|
1283
1203
|
getAgentPortfolio(): Promise<MCPCallToolResult>;
|
|
1284
1204
|
getPrivacyBudget(args: GetPrivacyBudgetInput): Promise<MCPCallToolResult>;
|
|
1285
|
-
disputeAttestation(args: DisputeAttestationInput): Promise<MCPCallToolResult>;
|
|
1286
1205
|
goldenThreadStatus(): Promise<MCPCallToolResult>;
|
|
1287
1206
|
beginGoldenThread(args?: BeginGoldenThreadInput): Promise<MCPCallToolResult>;
|
|
1288
1207
|
completeKnot(args: CompleteKnotInput): Promise<MCPCallToolResult>;
|
|
@@ -1294,10 +1213,6 @@ declare class AlterClient {
|
|
|
1294
1213
|
computeBelonging(args: ComputeBelongingInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1295
1214
|
getMatchRecommendations(args: GetMatchRecommendationsInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1296
1215
|
generateMatchNarrative(args: GenerateMatchNarrativeInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1297
|
-
submitBatchContext(args: SubmitBatchContextInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1298
|
-
submitStructuredProfile(args: SubmitStructuredProfileInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1299
|
-
submitSocialLinks(args: SubmitSocialLinksInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1300
|
-
attestDomain(args: AttestDomainInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1301
1216
|
getSideQuestGraph(args: GetSideQuestGraphInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1302
1217
|
queryGraphSimilarity(args: QueryGraphSimilarityInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1303
1218
|
/** Send a direct message to another tilde handle. */
|
|
@@ -1404,19 +1319,22 @@ declare function generateCursorConfig(opts?: GenerateMcpConfigOptions): GenericM
|
|
|
1404
1319
|
* @truealter/sdk — ALTER Identity SDK
|
|
1405
1320
|
*
|
|
1406
1321
|
* Query the continuous identity field from any JavaScript/TypeScript
|
|
1407
|
-
* environment. Wraps the
|
|
1408
|
-
*
|
|
1409
|
-
*
|
|
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
|
|
1410
1326
|
* advertised to public callers — they re-enable as the consent
|
|
1411
1327
|
* architecture and per-peer grant model land. First-class TypeScript
|
|
1412
1328
|
* types, x402 micropayment support, and ES256 provenance verification.
|
|
1413
1329
|
*
|
|
1414
1330
|
* The ALTER endpoint discovery anchor is `truealter.com` — see
|
|
1415
|
-
* `discover()` for the cascade. The default MCP endpoint is
|
|
1416
|
-
* `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.
|
|
1417
1335
|
*/
|
|
1418
1336
|
|
|
1419
1337
|
declare const SDK_NAME = "@truealter/sdk";
|
|
1420
|
-
declare const SDK_VERSION = "0.
|
|
1338
|
+
declare const SDK_VERSION = "0.2.4";
|
|
1421
1339
|
|
|
1422
|
-
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -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, {
|
|
@@ -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 person'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
|
}
|
|
@@ -984,71 +977,6 @@ interface GenerateMatchNarrativeOutput {
|
|
|
984
977
|
strengths: string[];
|
|
985
978
|
growth_areas: string[];
|
|
986
979
|
}
|
|
987
|
-
/** (premium L2) submit_batch_context — Submit multiple context items in a single call (max 10) ($0.01) */
|
|
988
|
-
interface SubmitBatchContextInput {
|
|
989
|
-
stub_id: string;
|
|
990
|
-
items: Array<{
|
|
991
|
-
text: string;
|
|
992
|
-
source_type?: string;
|
|
993
|
-
}>;
|
|
994
|
-
consent_acknowledged: boolean;
|
|
995
|
-
_payment?: ProvenanceToken;
|
|
996
|
-
}
|
|
997
|
-
/** (premium L2) submit_batch_context — output */
|
|
998
|
-
interface SubmitBatchContextOutput {
|
|
999
|
-
ok: boolean;
|
|
1000
|
-
items_processed: number;
|
|
1001
|
-
traits_extracted: number;
|
|
1002
|
-
}
|
|
1003
|
-
/** (premium L1) submit_structured_profile — Submit structured profile data (name, skills, experience) ($0.005) */
|
|
1004
|
-
interface SubmitStructuredProfileInput {
|
|
1005
|
-
stub_id: string;
|
|
1006
|
-
name?: string;
|
|
1007
|
-
skills?: string[];
|
|
1008
|
-
experience?: string;
|
|
1009
|
-
education?: string;
|
|
1010
|
-
certifications?: string[];
|
|
1011
|
-
consent_acknowledged: boolean;
|
|
1012
|
-
_payment?: ProvenanceToken;
|
|
1013
|
-
}
|
|
1014
|
-
/** (premium L1) submit_structured_profile — output */
|
|
1015
|
-
interface SubmitStructuredProfileOutput {
|
|
1016
|
-
ok: boolean;
|
|
1017
|
-
stub_id: string;
|
|
1018
|
-
traits_extracted: number;
|
|
1019
|
-
}
|
|
1020
|
-
/** (premium L1) submit_social_links — Submit social profile URLs (max 5) ($0.005) */
|
|
1021
|
-
interface SubmitSocialLinksInput {
|
|
1022
|
-
stub_id: string;
|
|
1023
|
-
urls: string[];
|
|
1024
|
-
consent_acknowledged: boolean;
|
|
1025
|
-
_payment?: ProvenanceToken;
|
|
1026
|
-
}
|
|
1027
|
-
/** (premium L1) submit_social_links — output */
|
|
1028
|
-
interface SubmitSocialLinksOutput {
|
|
1029
|
-
ok: boolean;
|
|
1030
|
-
stub_id: string;
|
|
1031
|
-
urls_fetched: number;
|
|
1032
|
-
urls_blocked: number;
|
|
1033
|
-
traits_extracted: number;
|
|
1034
|
-
}
|
|
1035
|
-
/** (premium L1) attest_domain — Attest that a human has competence in a specific domain ($0.005) */
|
|
1036
|
-
interface AttestDomainInput {
|
|
1037
|
-
candidate_id: string;
|
|
1038
|
-
domain_label: string;
|
|
1039
|
-
confidence: number;
|
|
1040
|
-
evidence_type: "OBSERVED" | "INFERRED" | "REPORTED";
|
|
1041
|
-
evidence_summary?: string;
|
|
1042
|
-
_payment?: ProvenanceToken;
|
|
1043
|
-
}
|
|
1044
|
-
/** (premium L1) attest_domain — output */
|
|
1045
|
-
interface AttestDomainOutput {
|
|
1046
|
-
ok: boolean;
|
|
1047
|
-
attestation_id: string;
|
|
1048
|
-
candidate_id: string;
|
|
1049
|
-
domain_label: string;
|
|
1050
|
-
weighted_confidence: number;
|
|
1051
|
-
}
|
|
1052
980
|
/** (premium L2) get_side_quest_graph — Get a person's Side Quest Graph (DP noise ε=1.0) ($0.01) */
|
|
1053
981
|
interface GetSideQuestGraphInput {
|
|
1054
982
|
candidate_id: string;
|
|
@@ -1088,13 +1016,15 @@ interface QueryGraphSimilarityOutput {
|
|
|
1088
1016
|
complementarity: number;
|
|
1089
1017
|
privacy_epsilon: number;
|
|
1090
1018
|
}
|
|
1091
|
-
/** Free (L0
|
|
1092
|
-
declare const FREE_TOOL_NAMES: readonly ["
|
|
1093
|
-
/** Premium (x402-gated) tool names — readonly tuple */
|
|
1094
|
-
declare const PREMIUM_TOOL_NAMES: readonly ["assess_traits", "get_trait_snapshot", "get_full_trait_vector", "compute_belonging", "get_match_recommendations", "generate_match_narrative", "
|
|
1095
|
-
/** 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 */
|
|
1096
1024
|
type ToolName = (typeof FREE_TOOL_NAMES)[number] | (typeof PREMIUM_TOOL_NAMES)[number];
|
|
1097
1025
|
interface ToolInputs {
|
|
1026
|
+
hello_agent: HelloAgentInput;
|
|
1027
|
+
alter_resolve_handle: AlterResolveHandleInput;
|
|
1098
1028
|
list_archetypes: ListArchetypesInput;
|
|
1099
1029
|
verify_identity: VerifyIdentityInput;
|
|
1100
1030
|
initiate_assessment: InitiateAssessmentInput;
|
|
@@ -1102,8 +1032,6 @@ interface ToolInputs {
|
|
|
1102
1032
|
get_profile: GetProfileInput;
|
|
1103
1033
|
query_matches: QueryMatchesInput;
|
|
1104
1034
|
get_competencies: GetCompetenciesInput;
|
|
1105
|
-
create_identity_stub: CreateIdentityStubInput;
|
|
1106
|
-
submit_context: SubmitContextInput;
|
|
1107
1035
|
search_identities: SearchIdentitiesInput;
|
|
1108
1036
|
get_identity_earnings: GetIdentityEarningsInput;
|
|
1109
1037
|
get_network_stats: GetNetworkStatsInput;
|
|
@@ -1114,7 +1042,6 @@ interface ToolInputs {
|
|
|
1114
1042
|
get_agent_trust_tier: GetAgentTrustTierInput;
|
|
1115
1043
|
get_agent_portfolio: GetAgentPortfolioInput;
|
|
1116
1044
|
get_privacy_budget: GetPrivacyBudgetInput;
|
|
1117
|
-
dispute_attestation: DisputeAttestationInput;
|
|
1118
1045
|
golden_thread_status: GoldenThreadStatusInput;
|
|
1119
1046
|
begin_golden_thread: BeginGoldenThreadInput;
|
|
1120
1047
|
complete_knot: CompleteKnotInput;
|
|
@@ -1126,14 +1053,12 @@ interface ToolInputs {
|
|
|
1126
1053
|
compute_belonging: ComputeBelongingInput;
|
|
1127
1054
|
get_match_recommendations: GetMatchRecommendationsInput;
|
|
1128
1055
|
generate_match_narrative: GenerateMatchNarrativeInput;
|
|
1129
|
-
submit_batch_context: SubmitBatchContextInput;
|
|
1130
|
-
submit_structured_profile: SubmitStructuredProfileInput;
|
|
1131
|
-
submit_social_links: SubmitSocialLinksInput;
|
|
1132
|
-
attest_domain: AttestDomainInput;
|
|
1133
1056
|
get_side_quest_graph: GetSideQuestGraphInput;
|
|
1134
1057
|
query_graph_similarity: QueryGraphSimilarityInput;
|
|
1135
1058
|
}
|
|
1136
1059
|
interface ToolOutputs {
|
|
1060
|
+
hello_agent: HelloAgentOutput;
|
|
1061
|
+
alter_resolve_handle: AlterResolveHandleOutput;
|
|
1137
1062
|
list_archetypes: ListArchetypesOutput;
|
|
1138
1063
|
verify_identity: VerifyIdentityOutput;
|
|
1139
1064
|
initiate_assessment: InitiateAssessmentOutput;
|
|
@@ -1141,8 +1066,6 @@ interface ToolOutputs {
|
|
|
1141
1066
|
get_profile: GetProfileOutput;
|
|
1142
1067
|
query_matches: QueryMatchesOutput;
|
|
1143
1068
|
get_competencies: GetCompetenciesOutput;
|
|
1144
|
-
create_identity_stub: CreateIdentityStubOutput;
|
|
1145
|
-
submit_context: SubmitContextOutput;
|
|
1146
1069
|
search_identities: SearchIdentitiesOutput;
|
|
1147
1070
|
get_identity_earnings: GetIdentityEarningsOutput;
|
|
1148
1071
|
get_network_stats: GetNetworkStatsOutput;
|
|
@@ -1153,7 +1076,6 @@ interface ToolOutputs {
|
|
|
1153
1076
|
get_agent_trust_tier: GetAgentTrustTierOutput;
|
|
1154
1077
|
get_agent_portfolio: GetAgentPortfolioOutput;
|
|
1155
1078
|
get_privacy_budget: GetPrivacyBudgetOutput;
|
|
1156
|
-
dispute_attestation: DisputeAttestationOutput;
|
|
1157
1079
|
golden_thread_status: GoldenThreadStatusOutput;
|
|
1158
1080
|
begin_golden_thread: BeginGoldenThreadOutput;
|
|
1159
1081
|
complete_knot: CompleteKnotOutput;
|
|
@@ -1165,10 +1087,6 @@ interface ToolOutputs {
|
|
|
1165
1087
|
compute_belonging: ComputeBelongingOutput;
|
|
1166
1088
|
get_match_recommendations: GetMatchRecommendationsOutput;
|
|
1167
1089
|
generate_match_narrative: GenerateMatchNarrativeOutput;
|
|
1168
|
-
submit_batch_context: SubmitBatchContextOutput;
|
|
1169
|
-
submit_structured_profile: SubmitStructuredProfileOutput;
|
|
1170
|
-
submit_social_links: SubmitSocialLinksOutput;
|
|
1171
|
-
attest_domain: AttestDomainOutput;
|
|
1172
1090
|
get_side_quest_graph: GetSideQuestGraphOutput;
|
|
1173
1091
|
query_graph_similarity: QueryGraphSimilarityOutput;
|
|
1174
1092
|
}
|
|
@@ -1194,8 +1112,8 @@ declare const TOOL_BLAST_RADIUS: Record<ToolName, "low" | "medium" | "high">;
|
|
|
1194
1112
|
*
|
|
1195
1113
|
* This is the entry point most consumers will use. It bundles
|
|
1196
1114
|
* {@link MCPClient}, {@link X402Client}, discovery, and provenance
|
|
1197
|
-
* verification into a single ergonomic surface that mirrors the
|
|
1198
|
-
* 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.
|
|
1199
1117
|
*
|
|
1200
1118
|
* Free tier methods require no authentication. Premium methods accept
|
|
1201
1119
|
* an `X402Client` (or fall back to throwing {@link AlterPaymentRequired}
|
|
@@ -1259,6 +1177,10 @@ declare class AlterClient {
|
|
|
1259
1177
|
* you want fail-fast behaviour.
|
|
1260
1178
|
*/
|
|
1261
1179
|
initialize(): Promise<void>;
|
|
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>;
|
|
1262
1184
|
/** Verify a person is registered with ALTER (handle or id). */
|
|
1263
1185
|
verify(handleOrId: string, claims?: VerifyIdentityInput['claims']): Promise<MCPCallToolResult>;
|
|
1264
1186
|
/** List the 12 ALTER identity archetypes. */
|
|
@@ -1272,8 +1194,6 @@ declare class AlterClient {
|
|
|
1272
1194
|
getProfile(args: GetProfileInput): Promise<MCPCallToolResult>;
|
|
1273
1195
|
queryMatches(args: QueryMatchesInput): Promise<MCPCallToolResult>;
|
|
1274
1196
|
getCompetencies(args: GetCompetenciesInput): Promise<MCPCallToolResult>;
|
|
1275
|
-
createIdentityStub(args: CreateIdentityStubInput): Promise<MCPCallToolResult>;
|
|
1276
|
-
submitContext(args: SubmitContextInput): Promise<MCPCallToolResult>;
|
|
1277
1197
|
searchIdentities(args: SearchIdentitiesInput): Promise<MCPCallToolResult>;
|
|
1278
1198
|
getIdentityEarnings(args: GetIdentityEarningsInput): Promise<MCPCallToolResult>;
|
|
1279
1199
|
getIdentityTrustScore(args: GetIdentityTrustScoreInput): Promise<MCPCallToolResult>;
|
|
@@ -1282,7 +1202,6 @@ declare class AlterClient {
|
|
|
1282
1202
|
getAgentTrustTier(): Promise<MCPCallToolResult>;
|
|
1283
1203
|
getAgentPortfolio(): Promise<MCPCallToolResult>;
|
|
1284
1204
|
getPrivacyBudget(args: GetPrivacyBudgetInput): Promise<MCPCallToolResult>;
|
|
1285
|
-
disputeAttestation(args: DisputeAttestationInput): Promise<MCPCallToolResult>;
|
|
1286
1205
|
goldenThreadStatus(): Promise<MCPCallToolResult>;
|
|
1287
1206
|
beginGoldenThread(args?: BeginGoldenThreadInput): Promise<MCPCallToolResult>;
|
|
1288
1207
|
completeKnot(args: CompleteKnotInput): Promise<MCPCallToolResult>;
|
|
@@ -1294,10 +1213,6 @@ declare class AlterClient {
|
|
|
1294
1213
|
computeBelonging(args: ComputeBelongingInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1295
1214
|
getMatchRecommendations(args: GetMatchRecommendationsInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1296
1215
|
generateMatchNarrative(args: GenerateMatchNarrativeInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1297
|
-
submitBatchContext(args: SubmitBatchContextInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1298
|
-
submitStructuredProfile(args: SubmitStructuredProfileInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1299
|
-
submitSocialLinks(args: SubmitSocialLinksInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1300
|
-
attestDomain(args: AttestDomainInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1301
1216
|
getSideQuestGraph(args: GetSideQuestGraphInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1302
1217
|
queryGraphSimilarity(args: QueryGraphSimilarityInput, opts?: MCPCallOptions): Promise<MCPCallToolResult>;
|
|
1303
1218
|
/** Send a direct message to another tilde handle. */
|
|
@@ -1404,19 +1319,22 @@ declare function generateCursorConfig(opts?: GenerateMcpConfigOptions): GenericM
|
|
|
1404
1319
|
* @truealter/sdk — ALTER Identity SDK
|
|
1405
1320
|
*
|
|
1406
1321
|
* Query the continuous identity field from any JavaScript/TypeScript
|
|
1407
|
-
* environment. Wraps the
|
|
1408
|
-
*
|
|
1409
|
-
*
|
|
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
|
|
1410
1326
|
* advertised to public callers — they re-enable as the consent
|
|
1411
1327
|
* architecture and per-peer grant model land. First-class TypeScript
|
|
1412
1328
|
* types, x402 micropayment support, and ES256 provenance verification.
|
|
1413
1329
|
*
|
|
1414
1330
|
* The ALTER endpoint discovery anchor is `truealter.com` — see
|
|
1415
|
-
* `discover()` for the cascade. The default MCP endpoint is
|
|
1416
|
-
* `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.
|
|
1417
1335
|
*/
|
|
1418
1336
|
|
|
1419
1337
|
declare const SDK_NAME = "@truealter/sdk";
|
|
1420
|
-
declare const SDK_VERSION = "0.
|
|
1338
|
+
declare const SDK_VERSION = "0.2.4";
|
|
1421
1339
|
|
|
1422
|
-
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 };
|