madeonsol-x402 3.0.0 → 3.2.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/dist/types.d.ts CHANGED
@@ -97,7 +97,7 @@ export interface KolFeedParams {
97
97
  limit?: number;
98
98
  /** Poll cursor — only trades strictly newer than this ISO time (feed back next_since). */
99
99
  since?: string;
100
- /** "token" embeds the /token/{mint} snapshot on each row (≤20 distinct mints per page). */
100
+ /** REST only: "token" embeds the /token/{mint} snapshot on each row (≤20 distinct mints per page). The x402 route rejects it before payment (400 param_not_supported_on_x402). */
101
101
  include?: "token";
102
102
  /** LEGACY cursor — ISO 8601 timestamp; returns trades strictly older than this (skips same-timestamp rows). Prefer `cursor`. */
103
103
  before?: string;
@@ -206,7 +206,7 @@ export interface KolCoordinationParams {
206
206
  unique_strategies?: boolean;
207
207
  /** v1.1 — include major memecoins (WIF/BONK/POPCAT). Default false. */
208
208
  include_majors?: boolean;
209
- /** REST only: "risk" embeds /tokens/{mint}/risk per cluster (at most 20 distinct mints). The x402 route ignores it. */
209
+ /** REST only: "risk" embeds /tokens/{mint}/risk per cluster (at most 20 distinct mints). The x402 route rejects it before payment (400 param_not_supported_on_x402). */
210
210
  include?: "risk";
211
211
  /** v1.1 — peak-density window in minutes (1-60). Default 15. */
212
212
  window_minutes?: number;
@@ -466,7 +466,7 @@ export interface KolLeaderboardParams {
466
466
  /** Time window. 90d/180d fill up over time as kol_trades retention (180 days) accumulates. */
467
467
  period?: "today" | "7d" | "30d" | "90d" | "180d";
468
468
  limit?: number;
469
- /** REST only (0-10000). The x402 route ignores it. */
469
+ /** REST only (0-10000). The x402 route rejects it before payment (400 param_not_supported_on_x402). */
470
470
  offset?: number;
471
471
  /** PRO+: sort axis (default "pnl") */
472
472
  sort?: KolLeaderboardSort;
@@ -561,7 +561,9 @@ export interface DeployerAlertsParams {
561
561
  min_kol_buys?: number;
562
562
  }
563
563
  /** v2.10: every event the registry accepts (src/lib/webhook-events.ts VALID_EVENTS); earlier types listed only the first four. */
564
- export type WebhookEvent = "kol:trade" | "kol:coordination" | "deployer:alert" | "deployer:bond" | "wallet_tracker:event" | "sniper:deploy" | "rhc:kol_trade" | "token:surge" | "token:revival";
564
+ export type WebhookEvent = "kol:trade" | "kol:coordination" | "deployer:alert" | "deployer:bond" | "wallet_tracker:event" | "sniper:deploy" | "rhc:kol_trade" | "token:surge" | "token:revival"
565
+ /** Realtime developer sells / buys / token transfers (PRO+; identity fields ULTRA+). Dedupe on payload `id`. */
566
+ | "dev:activity";
565
567
  export interface WebhookFilters {
566
568
  min_sol?: number;
567
569
  action?: "buy" | "sell";
@@ -575,6 +577,10 @@ export interface WebhookFilters {
575
577
  exclude_flags?: string[];
576
578
  min_mc_usd?: number;
577
579
  max_mc_usd?: number;
580
+ /** dev:activity only. */
581
+ types?: Array<"dev_sell" | "dev_buy" | "dev_token_transfer_out" | "dev_token_transfer_in">;
582
+ token_mints?: string[];
583
+ deployers?: string[];
578
584
  /** ULTRA/BUSINESS custom conditions (max 10). */
579
585
  conditions?: WebhookCondition[];
580
586
  }
@@ -735,7 +741,7 @@ export interface KolPairsParams {
735
741
  period?: "7d" | "30d";
736
742
  min_shared?: number;
737
743
  limit?: number;
738
- /** REST only (0-10000). The x402 route ignores it. */
744
+ /** REST only (0-10000). The x402 route rejects it before payment (400 param_not_supported_on_x402). */
739
745
  offset?: number;
740
746
  }
741
747
  export interface KolTimingData {
@@ -813,7 +819,7 @@ export interface KolHotTokensParams {
813
819
  period?: "1h" | "6h";
814
820
  min_kols?: number;
815
821
  limit?: number;
816
- /** REST only (0-10000): skip this many ranked tokens. The x402 route ignores it. */
822
+ /** REST only (0-10000): skip this many ranked tokens. The x402 route rejects it before payment (400 param_not_supported_on_x402). */
817
823
  offset?: number;
818
824
  /** PRO+: require average winrate_7d of buying KOLs >= N (0-100) */
819
825
  min_avg_winrate?: number;
@@ -2887,7 +2893,7 @@ export interface TokenTopTradersParams {
2887
2893
  window_days?: number;
2888
2894
  /** Minimum SOL bought to qualify (default 0.1). */
2889
2895
  min_bought_sol?: number;
2890
- /** REST only: skip this many ranked traders (bounded by the tier's row cap). The x402 route ignores it. */
2896
+ /** REST only: skip this many ranked traders (bounded by the tier's row cap). The x402 route rejects it before payment (400 param_not_supported_on_x402). */
2891
2897
  offset?: number;
2892
2898
  }
2893
2899
  /** One wallet in a top-traders response, enriched with our own reputation data
@@ -2940,7 +2946,7 @@ export interface SniperRecentParams {
2940
2946
  min_bond_rate?: number;
2941
2947
  /** Max results, 1–200 (default 50). */
2942
2948
  limit?: number;
2943
- /** REST only, ULTRA: narrow to your custom deployer watchlist. The x402 route ignores it. */
2949
+ /** REST only, ULTRA: narrow to your custom deployer watchlist. The x402 route rejects it before payment (400 param_not_supported_on_x402). */
2944
2950
  watchlist?: boolean;
2945
2951
  }
2946
2952
  /** One deshred-detected pump.fun deploy — surfaces ~500ms before on-chain
@@ -4490,6 +4496,142 @@ export interface DeployerRewardsResponse {
4490
4496
  note: string;
4491
4497
  };
4492
4498
  }
4499
+ export type DeployerActivityEventType = "launch" | "dev_buy" | "dev_sell" | "creator_transferred" | "fee_claim" | "funding_in" | "capital_out";
4500
+ /**
4501
+ * One event of a deployer's activity timeline. Fields present depend on
4502
+ * `type`; addresses are raw facts of the concrete event, never identity claims.
4503
+ */
4504
+ export interface DeployerActivityEvent {
4505
+ id: string;
4506
+ type: DeployerActivityEventType;
4507
+ /** Time of the event itself (the window applies to this). */
4508
+ at: string;
4509
+ time_basis: "chain" | "ingest" | "chain_or_ingest";
4510
+ mint?: string | null;
4511
+ name?: string | null;
4512
+ symbol?: string | null;
4513
+ launchpad?: string | null;
4514
+ bonded_at?: string | null;
4515
+ /** launch: whether the creator paid the create fee (null = unknown). The payer address is never in this response. */
4516
+ fee_payer_is_creator?: boolean | null;
4517
+ external_fee_payer?: boolean | null;
4518
+ dev_buy_sol?: number | null;
4519
+ dev_buy_tokens?: number | null;
4520
+ dev_buy_supply_pct?: number | null;
4521
+ own_token?: boolean;
4522
+ sol?: number | null;
4523
+ tokens?: number | null;
4524
+ price_usd?: number | null;
4525
+ first_at?: string | null;
4526
+ last_at?: string | null;
4527
+ aggregate?: boolean;
4528
+ from?: string | null;
4529
+ to?: string | null;
4530
+ direction?: "in" | "out";
4531
+ initiated_by?: "creator" | "platform_admin" | "other_signer" | "unknown";
4532
+ tx?: string;
4533
+ kind?: "direct" | "social";
4534
+ amount_raw?: string | null;
4535
+ quote_mint?: string | null;
4536
+ source?: string;
4537
+ recipient?: string;
4538
+ asset?: string;
4539
+ decimals?: number | null;
4540
+ transfer_count?: number;
4541
+ sample_tx_ids?: string[];
4542
+ first_tx?: string | null;
4543
+ }
4544
+ export interface DeployerActivityFamilyCoverage {
4545
+ source: string;
4546
+ retention: string;
4547
+ scope?: string;
4548
+ truncated: boolean;
4549
+ loaded: boolean;
4550
+ /** false: part of the window lies outside the online store (trade months only in the archive), or the boundary is unknown. */
4551
+ complete: boolean;
4552
+ /** Earliest instant the online store answers this family completely. */
4553
+ complete_from: string | null;
4554
+ /** Before this instant events exist only in the archive (not served yet); null when the window does not cross it. */
4555
+ archive_required_before: string | null;
4556
+ boundary_known: boolean;
4557
+ /** Set when the family was not queried because it cannot apply (a wallet with no attributed launch has no dev trades). */
4558
+ skipped_reason?: "no_attributed_launch";
4559
+ }
4560
+ export interface DeployerActivityRange {
4561
+ from: string | null;
4562
+ to: string | null;
4563
+ }
4564
+ /** Requested vs online vs archive-only history (archive reads are a planned follow-up). */
4565
+ export interface DeployerActivityHistoryPlan {
4566
+ requested: DeployerActivityRange & {
4567
+ source: "since_param" | "plan_default";
4568
+ };
4569
+ effective: DeployerActivityRange & {
4570
+ clamped: boolean;
4571
+ max_days: number | null;
4572
+ };
4573
+ online: DeployerActivityRange & {
4574
+ served: boolean;
4575
+ };
4576
+ archive_only: (DeployerActivityRange & {
4577
+ served: boolean;
4578
+ reason: "archive_reads_not_enabled";
4579
+ }) | null;
4580
+ }
4581
+ /**
4582
+ * GET /deployer-hunter/{wallet}/activity — PRO+, KEYED (v1) only. Feature-flagged
4583
+ * server-side (503 `feature_disabled` until enabled).
4584
+ */
4585
+ export interface DeployerActivityResponse {
4586
+ wallet: string;
4587
+ is_deployer: boolean;
4588
+ deployer: {
4589
+ tier: string | null;
4590
+ first_deploy_at: string | null;
4591
+ last_deploy_at: string | null;
4592
+ } | null;
4593
+ plan: {
4594
+ entitlement: "pro" | "ultra" | "business";
4595
+ window_days: number | null;
4596
+ max_limit: number;
4597
+ history: DeployerActivityHistoryPlan;
4598
+ };
4599
+ window: {
4600
+ since: string | null;
4601
+ until: string;
4602
+ max_days: number | null;
4603
+ applies_to: "event_time";
4604
+ };
4605
+ events: DeployerActivityEvent[];
4606
+ pagination: {
4607
+ limit: number;
4608
+ requested_limit: number;
4609
+ limit_capped: boolean;
4610
+ next_cursor: string | null;
4611
+ has_more: boolean;
4612
+ };
4613
+ coverage: {
4614
+ status: "observed" | "partial";
4615
+ families: Record<string, DeployerActivityFamilyCoverage>;
4616
+ future_events_dropped: number;
4617
+ note: string;
4618
+ };
4619
+ /** ULTRA/BUSINESS only, absent on PRO. Currently always not_available. */
4620
+ identity?: {
4621
+ status: "not_available";
4622
+ reason: "identity_stitching_not_released";
4623
+ note: string;
4624
+ };
4625
+ }
4626
+ export interface DeployerActivityParams {
4627
+ /** Clamped server-side to 100 (PRO, ULTRA) or 500 (BUSINESS). */
4628
+ limit?: number;
4629
+ cursor?: string;
4630
+ /** Requested window start (ISO 8601); clamped to the plan window. */
4631
+ since?: string;
4632
+ /** Comma list of event types. */
4633
+ types?: string;
4634
+ }
4493
4635
  /** Reputation grade — the deployers.tier CHECK set (migration 031). `unranked` = too few deploys to grade, not "bad". (Earlier types listed "neutral" / "spammer", which are Robinhood Chain tiers and never appear here.) */
4494
4636
  export type DeployerTier = "elite" | "good" | "moderate" | "rising" | "cold" | "unranked";
4495
4637
  export interface DeployerTierCounts {
@@ -4622,7 +4764,10 @@ export interface DeployerProfileResponse {
4622
4764
  };
4623
4765
  /** PRO+ funding evidence (see the funding docs); absent below PRO. */
4624
4766
  funding?: Record<string, unknown>;
4767
+ /** PRO+ flat funding features, incl. `funding_to_first_deploy_seconds` (to `deployer.first_deploy_at`). */
4625
4768
  funding_features?: Record<string, unknown>;
4769
+ /** PRO+ capital relationships from high-signal sources (`launched_at` = `deployer.first_deploy_at`); absent below PRO. */
4770
+ capital_intelligence?: Record<string, unknown>;
4626
4771
  }
4627
4772
  /** The `deployers` row inside {@link DeployerProfileResponse}. */
4628
4773
  export interface DeployerProfile {
@@ -4648,6 +4793,9 @@ export interface DeployerProfile {
4648
4793
  post_bond_2x_rate: number | null;
4649
4794
  post_bond_labeled_count: number | null;
4650
4795
  first_seen_at: string | null;
4796
+ /** Earliest deploy observed by MadeOnSol for this wallet — not proof of its first-ever on-chain launch. Only moves earlier. */
4797
+ first_deploy_at: string | null;
4798
+ /** Latest deploy observed by MadeOnSol for this wallet. Only moves later. */
4651
4799
  last_deploy_at: string | null;
4652
4800
  last_bond_at: string | null;
4653
4801
  label: string | null;
@@ -4657,7 +4805,7 @@ export interface DeployerTokensParams {
4657
4805
  limit?: number;
4658
4806
  /** 0–10000, default 0. */
4659
4807
  offset?: number;
4660
- /** Documented, but NOT applied by the route today (rows are not filtered). */
4808
+ /** true = only tokens that graduated (bonded_at set); total / has_more count the bonded set. */
4661
4809
  only_bonded?: boolean;
4662
4810
  }
4663
4811
  /** `GET /deployer-hunter/{wallet}/tokens` — newest bond first. */