@metamask-previews/social-controllers 3.22.0-preview-98d550d → 3.22.0-preview-0c3bae2bd
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 +6 -0
- package/dist/social-types.d.ts +3 -0
- package/dist/social-types.d.ts.map +1 -1
- package/dist/social-types.js +2 -0
- package/dist/social-types.js.map +1 -1
- package/dist/structs.d.ts +40 -0
- package/dist/structs.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Add optional `verified` to `ProfileIdentity` and `ProfileIdentityStruct` ([#11670](https://github.com/MetaMask/core/pull/11670))
|
|
13
|
+
- Every profile shape that carries the Profile API identity gets it: `ProfileSummary`, `FeedActorSummary`, `LeaderboardEntry` and `TraderProfile`, including realtime feed actors.
|
|
14
|
+
- Responses without it still validate. Treat a missing or `null` value as not verified.
|
|
15
|
+
|
|
10
16
|
### Changed
|
|
11
17
|
|
|
12
18
|
- Bump `@metamask/profile-sync-controller` from `^36.1.1` to `^36.1.2` ([#11474](https://github.com/MetaMask/core/pull/11474))
|
package/dist/social-types.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const ProfileIdentityStruct: import("@metamask/superstruct").Stru
|
|
|
16
16
|
createdAt?: string | null | undefined;
|
|
17
17
|
updatedAt?: string | null | undefined;
|
|
18
18
|
connectedToX?: boolean | null | undefined;
|
|
19
|
+
verified?: boolean | null | undefined;
|
|
19
20
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
20
21
|
}, {
|
|
21
22
|
/**
|
|
@@ -32,6 +33,8 @@ export declare const ProfileIdentityStruct: import("@metamask/superstruct").Stru
|
|
|
32
33
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
33
34
|
/** Whether the owner linked an X account on their MetaMask profile. */
|
|
34
35
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
36
|
+
/** Whether the MetaMask Profile API verified the owner. */
|
|
37
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
35
38
|
/** The owner's trading privacy. A private profile's addresses are withheld. */
|
|
36
39
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
37
40
|
private: "private";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-types.d.ts","sourceRoot":"","sources":["../src/social-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAYnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMzD,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,YAAI,QAAQ,EAAE,SAAS,CAAU,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;IAChC;;;;OAIG;;IAEH,mFAAmF;;IAEnF,uEAAuE;;IAEvE,mFAAmF;;IAEnF,uEAAuE;;IAEvE,+EAA+E;;;;;EAE/E,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG;IAC7C,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF;;;;;;GAMG;AACH,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AC,EAAE,YAAY,CAAC;QAClB,EAAE,CAAC,EAAE,YAAY,CAAC;KACnB,CAAC;CACH,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE;QACJ,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH,CAAC;AAMF;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,wEAAwE;IACxE,kBAAkB,EAAE,gBAAgB,EAAE,CAAC;IACvC,iDAAiD;IACjD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B,CAAC"}
|
package/dist/social-types.js
CHANGED
|
@@ -26,6 +26,8 @@ export const ProfileIdentityStruct = structType({
|
|
|
26
26
|
updatedAt: optional(nullable(string())),
|
|
27
27
|
/** Whether the owner linked an X account on their MetaMask profile. */
|
|
28
28
|
connectedToX: optional(nullable(boolean())),
|
|
29
|
+
/** Whether the MetaMask Profile API verified the owner. */
|
|
30
|
+
verified: optional(nullable(boolean())),
|
|
29
31
|
/** The owner's trading privacy. A private profile's addresses are withheld. */
|
|
30
32
|
tradingPrivacy: optional(nullable(enums(TRADING_PRIVACY_VALUES))),
|
|
31
33
|
});
|
package/dist/social-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-types.js","sourceRoot":"","sources":["../src/social-types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,MAAM,EACN,MAAM,EACN,IAAI,IAAI,UAAU,GACnB,MAAM,uBAAuB,CAAC;AAG/B,8EAA8E;AAC9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AAQ,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;CAC/C,CAAC,CAAC;AAiDH,8EAA8E;AAC9E,iBAAiB;AACjB,8EAA8E;AAE9E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAkB,CAAC;AAExD,6CAA6C;AAC7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAoB,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAA4B,CAAC;AAE5E,qEAAqE;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n array,\n boolean,\n enums,\n nullable,\n number,\n optional,\n record,\n string,\n type as structType,\n} from '@metamask/superstruct';\nimport type { CaipAssetTypeOrId } from '@metamask/utils';\n\n// ---------------------------------------------------------------------------\n// Shared sub-types\n// ---------------------------------------------------------------------------\n\n/** Values for `ProfileIdentity.tradingPrivacy` from social-api. */\nexport const TRADING_PRIVACY_VALUES = ['public', 'private'] as const;\n\nexport type TradingPrivacy = (typeof TRADING_PRIVACY_VALUES)[number];\n\n/**\n * The MetaMask Profile API identity social-api serves beside `name` on every\n * profile, so clients need not call the Profile API themselves.\n *\n * Every field is omitted when the profile has no value, and on older\n * social-api builds. Only MetaMask-linked profiles carry them.\n */\nexport const ProfileIdentityStruct = structType({\n /**\n * Display name set on the Profile API. Free text that anyone can copy, so\n * show it beside `name`, never in its place. Omitted when the profile's text\n * is flagged NSFW.\n */\n displayName: optional(nullable(string())),\n /** Bio set on the Profile API. Omitted when the profile's text is flagged NSFW. */\n bio: optional(nullable(string())),\n /** When the MetaMask profile was created, as an ISO-8601 timestamp. */\n createdAt: optional(nullable(string())),\n /** When the owner last edited their MetaMask profile, as an ISO-8601 timestamp. */\n updatedAt: optional(nullable(string())),\n /** Whether the owner linked an X account on their MetaMask profile. */\n connectedToX: optional(nullable(boolean())),\n /** The owner's trading privacy. A private profile's addresses are withheld. */\n tradingPrivacy: optional(nullable(enums(TRADING_PRIVACY_VALUES))),\n});\n\nexport type ProfileIdentity = Infer<typeof ProfileIdentityStruct>;\n\n/**\n * Minimal profile summary used across follow/follower responses.\n */\nexport type ProfileSummary = ProfileIdentity & {\n /** Clicker profile ID (UUID). */\n profileId: string;\n /** Primary wallet address. */\n address: string;\n /** Username, or truncated address when the profile has none. */\n name: string;\n /** Profile avatar URL. */\n imageUrl?: string | null;\n};\n\n/**\n * Trader attached to a feed item. Extends {@link ProfileSummary} with the\n * profile stats the feed hydrator already loaded and used to drop.\n *\n * Every field is optional: a social-api that predates them omits the keys,\n * and `null` means the window has no data (distinct from \"not sent\").\n */\nexport type FeedActorSummary = ProfileSummary & {\n /** 30-day win rate as a 0–1 ratio. */\n winRate30d?: number | null;\n /** 30-day realized PnL in USD. */\n pnl30d?: number | null;\n /** 30-day trading volume in USD, totaled across all chains. */\n volumeUsd30d?: number | null;\n /** 7-day trading volume in USD, totaled across all chains. */\n volumeUsd7d?: number | null;\n /** 30-day sell count behind `winRate30d`. */\n tradeCount30d?: number | null;\n /** Profiles following this trader. */\n followerCount?: number | null;\n};\n\n/**\n * Social media handles attached to a trader profile.\n */\nexport type SocialHandles = {\n twitter?: string | null;\n farcaster?: string | null;\n ens?: string | null;\n lens?: string | null;\n};\n\n/**\n * Where a fill sits in its position's lifecycle.\n *\n * Deliberately asset-agnostic so the classification is computed once, upstream:\n * clients render `opened / added / reduced / closed` for perps and\n * `bought / bought more / sold some / sold all` for spot from the same value.\n *\n * Distinct from `intent`, which only says whether the fill grew or shrank the\n * position — `intent: 'exit'` covers both a partial trim and a full close.\n */\nexport type TradeAction = 'opened' | 'added' | 'reduced' | 'closed';\n\nexport const CommentReactionProfileStruct = structType({\n id: string(),\n name: string(),\n});\n\nexport const CommentEngagementStruct = structType({\n reactions: array(\n structType({\n emotion: string(),\n count: number(),\n profiles: array(CommentReactionProfileStruct),\n }),\n ),\n userReaction: nullable(string()),\n replyCount: optional(number()),\n});\n\nexport const AuthorCommentStruct = structType({\n uid: string(),\n text: string(),\n timestamp: number(),\n sourceLanguage: optional(nullable(string())),\n translations: optional(record(string(), string())),\n engagement: CommentEngagementStruct,\n});\n\nexport const TradeStruct = structType({\n direction: enums(['buy', 'sell']),\n intent: enums(['enter', 'exit']),\n /**\n * Lifecycle stage of this fill. Absent on responses from a social-api that\n * predates the field, so treat it as a hint and keep a client-side fallback.\n */\n action: optional(enums(['opened', 'added', 'reduced', 'closed'])),\n category: optional(string()),\n /** High-level trade classification. `null` when Clicker does not classify. */\n classification: optional(\n nullable(enums(['spot', 'perp', 'send', 'receive'])),\n ),\n /** Perp side for this fill. `null` for spot trades. */\n perpPositionType: optional(nullable(enums(['long', 'short']))),\n /** Leverage multiplier for perp trades (e.g. `5` for 5x). `null` for spot. */\n perpLeverage: optional(nullable(number())),\n tokenAmount: number(),\n usdCost: number(),\n /** Token market cap in USD at trade time. `null` when Clicker has no mark. */\n marketCap: optional(nullable(number())),\n timestamp: number(),\n transactionHash: string(),\n /**\n * Every author comment on this fill, newest first. An author may comment on\n * one fill more than once. Absent on older social-api builds.\n */\n comments: optional(array(AuthorCommentStruct)),\n});\n\nexport type Trade = Infer<typeof TradeStruct>;\n\n// ---------------------------------------------------------------------------\n// Leaderboard\n// ---------------------------------------------------------------------------\n\n/**\n * A single entry in the leaderboard response.\n */\nexport type LeaderboardEntry = ProfileIdentity & {\n rank: number;\n addresses: string[];\n profileId: string;\n name: string;\n imageUrl?: string | null;\n pnl30d: number;\n winRate30d?: number | null;\n /** Renamed from roi30d. */\n roiPercent30d?: number | null;\n /** Renamed from tradeCount. */\n tradeCount30d?: number | null;\n pnl7d?: number | null;\n winRate7d?: number | null;\n roiPercent7d?: number | null;\n tradeCount7d?: number | null;\n /**\n * 30-day trading volume in USD. When the request includes `chains`, this is\n * the sum of those chains; otherwise it is the all-chain total.\n */\n volumeUsd30d?: number | null;\n /**\n * 7-day trading volume in USD. When the request includes `chains`, this is\n * the sum of those chains; otherwise it is the all-chain total.\n */\n volumeUsd7d?: number | null;\n pnlPerChain: Record<string, number>;\n followerCount: number;\n socialHandles: SocialHandles;\n};\n\n/**\n * Response from `GET /v1/leaderboard`.\n */\nexport type LeaderboardResponse = {\n traders: LeaderboardEntry[];\n};\n\n// ---------------------------------------------------------------------------\n// Trader profile\n// ---------------------------------------------------------------------------\n\n/**\n * Position flag for a wallet/token pair Codex marked as an insider.\n *\n * Those positions are excluded from the trader's realized PnL, and clients\n * must not offer copy-trade on them.\n */\nexport const INSIDER_POSITION_FLAG = 'insider' as const;\n\n/** Known position flag value `developer`. */\nexport const DEVELOPER_POSITION_FLAG = 'developer' as const;\n\n/**\n * Position flag for a token that social-api excludes from PnL for every\n * trader.\n *\n * Those positions are still returned, but they do not count toward the\n * trader's realized PnL. A position can carry this flag alongside\n * {@link INSIDER_POSITION_FLAG}.\n */\nexport const UNSUPPORTED_TOKEN_POSITION_FLAG = 'unsupported-token' as const;\n\n/** Values for `TraderProfileResponse.rankingTag` from social-api. */\nexport const TRADER_RANKING_TAGS = ['shrimp', 'dolphin', 'whale'] as const;\n\nexport type TraderRankingTag = (typeof TRADER_RANKING_TAGS)[number];\n\nexport type TraderProfile = Omit<ProfileIdentity, 'createdAt'> & {\n profileId: string;\n address: string;\n allAddresses: string[];\n name: string;\n imageUrl?: string | null;\n /**\n * When the MetaMask profile was created, as an ISO-8601 timestamp. Omitted\n * for external profiles and on older social-api builds, which sent the\n * social-api row insert time instead.\n */\n createdAt?: string | null;\n};\n\nexport type TraderStats = {\n pnl30d?: number | null;\n winRate30d?: number | null;\n /** Renamed from roi30d. */\n roiPercent30d?: number | null;\n /** Renamed from tradeCount. */\n tradeCount30d?: number | null;\n /** 30-day trading volume in USD. */\n volumeUsd30d?: number | null;\n pnl7d?: number | null;\n winRate7d?: number | null;\n roiPercent7d?: number | null;\n tradeCount7d?: number | null;\n /** Median holding time in minutes. */\n medianHoldMinutes?: number | null;\n};\n\nexport type CopytradedAllTime = {\n count: number;\n volumeUSD: number;\n distinctActors: number;\n};\n\nexport type PerChainBreakdown = {\n perChainPnl: Record<string, number>;\n /** ROI can be null for chains with no trading activity (zero cost-basis). */\n perChainRoi: Record<string, number | null>;\n perChainVolume: Record<string, number>;\n /**\n * 7-day per-chain PnL in USD. Optional: older social-api versions only\n * return the 30-day breakdown (`perChainPnl`). The unsuffixed fields above\n * remain the 30-day window for backward compatibility.\n */\n perChainPnl7d?: Record<string, number>;\n /** 7-day per-chain ROI. Null for chains with no trading activity. */\n perChainRoi7d?: Record<string, number | null>;\n /** 7-day per-chain volume in USD. */\n perChainVolume7d?: Record<string, number>;\n};\n\n/**\n * Response from `GET /v1/traders/:addressOrId/profile`.\n */\nexport type TraderProfileResponse = {\n profile: TraderProfile;\n stats: TraderStats;\n perChainBreakdown: PerChainBreakdown;\n socialHandles: SocialHandles;\n followerCount: number;\n followingCount: number;\n /**\n * Linked copy-swap stats for this trader. Social-api always sends zeros\n * when there are none.\n */\n copytradedAllTime: CopytradedAllTime;\n /**\n * Backend-derived tier from the Auth primary account 30d PnL. Omitted on older\n * social-api builds; `null` when unclaimed or activity is insufficient.\n */\n rankingTag?: TraderRankingTag | null;\n};\n\n// ---------------------------------------------------------------------------\n// Positions\n// ---------------------------------------------------------------------------\n\nexport type Position = {\n positionId: string;\n tokenSymbol: string;\n tokenName: string;\n tokenAddress: string;\n chain: string;\n positionAmount: number;\n /**\n * Whether the position still carries exposure. Clicker's own verdict, which\n * beats a `positionAmount === 0` check: it survives precision dust and\n * distinguishes \"no position\" from \"a position of size ~0\". Absent on\n * responses from a social-api that predates the field.\n */\n isOpen?: boolean;\n /**\n * Total USD spent buying into the position. `null` when Clicker stats are\n * incomplete (the social-api used to JSON-serialize `NaN` as `null`).\n */\n boughtUsd: number | null;\n /** Total USD received from sells. `null` when stats are incomplete. */\n soldUsd: number | null;\n /** Realized profit or loss in USD. `null` when stats are incomplete. */\n realizedPnl: number | null;\n /**\n * USD cost basis of the remaining holdings. `null` when stats are incomplete.\n */\n costBasis: number | null;\n trades: Trade[];\n lastTradeAt: number;\n /** Daylight-hosted token image URL. */\n tokenImageUrl?: string | null;\n /** Current USD value of the remaining position (open positions only). */\n currentValueUSD?: number | null;\n /** Unrealized + realized PnL in USD. */\n pnlValueUsd?: number | null;\n /**\n * USD size of the position. For perps this is the leveraged notional,\n * `|positionAmountWithLeverage|` × mark price, which is the key social-api\n * ranks an asset's holders by. For spot it equals `currentValueUSD`; `0` for\n * closed positions. Absent when no price is available, and on social-api\n * builds that predate the field.\n */\n positionValueUSD?: number | null;\n /** PnL as a percentage of cost basis. */\n pnlPercent?: number | null;\n /** Number of detected copy trades for this position. */\n copyCount?: number;\n /** Perp side of the position. `null`/absent for spot positions. */\n perpPositionType?: 'long' | 'short' | null;\n /** Leverage multiplier for perp positions. `null`/absent for spot. */\n perpLeverage?: number | null;\n /**\n * Leveraged/notional position size as reported by Clicker. NOT necessarily\n * `positionAmount` × `perpLeverage` — the ratio varies for positions built\n * across fills at different leverage, so use this field directly rather than\n * deriving it, and treat `perpLeverage` as the authoritative leverage. This is\n * notional exposure, not capital at risk (the margin/capital at risk is\n * `costBasis`). Hyperliquid/perp positions only; absent for spot.\n */\n positionAmountWithLeverage?: number | null;\n /**\n * Server flags for this position. {@link INSIDER_POSITION_FLAG} means Codex\n * marked this wallet and token as an insider pair, so the position is\n * excluded from the trader's realized PnL and must not be copy-traded.\n * {@link UNSUPPORTED_TOKEN_POSITION_FLAG} means the token is excluded from\n * PnL for every trader, so the position does not count toward the trader's\n * realized PnL. {@link DEVELOPER_POSITION_FLAG} is the other known value.\n * The list is open: unrecognized strings are preserved. Absent on older\n * social-api builds; `null` when the deployment sends an explicit empty mark.\n */\n flags?: string[] | null;\n /**\n * Profile ID of the trader who owns the position. Lets a client confirm that\n * a position belongs to a given trader before attributing it to them. Absent\n * on social-api builds that predate the field.\n */\n profileId?: string;\n};\n\nexport type Pagination = {\n hasMore: boolean;\n nextPage?: number;\n};\n\n/**\n * Response from `GET /v1/traders/:addressOrId/positions/open`\n * and `GET /v1/traders/:addressOrId/positions/closed`.\n */\nexport type PositionsResponse = {\n positions: Position[];\n pagination: Pagination;\n /** ISO 8601 timestamp indicating when the response was computed server-side. */\n computedAt?: string | null;\n};\n\n// ---------------------------------------------------------------------------\n// Feed\n// ---------------------------------------------------------------------------\n\n/**\n * One emotion's aggregated count on a Call (swap comment), plus an optional\n * facepile sample. `profiles` is always present on the wire and is often empty.\n */\nexport type CommentReaction = {\n emotion: string;\n count: number;\n profiles: CommentReactionProfile[];\n};\n\nexport type CommentReactionProfile = {\n id: string;\n name: string;\n};\n\n/**\n * Engagement on a Call. Counts live on `reactions`; do not read deprecated\n * `likeCount` / `isLikedByUser` even if the social-api still emits them as 0/false.\n */\nexport type CommentEngagement = {\n reactions: CommentReaction[];\n /** Viewer's own emotion, when the hydrator was given their profile. */\n userReaction: string | null;\n /** Reply count on the comment. Present on feed `authorComment`, not on write responses. */\n replyCount?: number;\n};\n\n/**\n * Position thesis for the feed big card. `null` when that intent phase has no Call.\n */\nexport type AuthorComment = {\n uid: string;\n text: string;\n /** Unix timestamp (seconds) when the comment was created. */\n timestamp: number;\n /**\n * AWS language code of the comment text, for example `en` or `pt`. `null`\n * when detection has not run. Absent on older social-api builds.\n */\n sourceLanguage?: string | null;\n /**\n * Stored translations keyed by AWS language code. Empty when none are\n * stored. Absent on older social-api builds.\n */\n translations?: Record<string, string>;\n engagement: CommentEngagement;\n};\n\n/**\n * A single trader-activity feed item: a {@link Position} the trade belongs to,\n * plus the {@link FeedActorSummary} of the trader who made it (`actor`) and the\n * item's creation `timestamp` (Unix seconds).\n */\nexport type FeedItem = Position & {\n /** The trader who made this trade. */\n actor: FeedActorSummary;\n /** Unix timestamp (seconds) when the feed item was created. */\n timestamp: number;\n /**\n * Latest author Call in the current intent phase. On the all, trending and\n * following_v1 feeds, a comment item carries its own comment instead and a trade item\n * carries `null`. Absent on older social-api builds; `null` when that phase\n * has no comment.\n */\n authorComment?: AuthorComment | null;\n /** Author comments on this position. Absent on older social-api builds. */\n commentCount?: number;\n /** Replies across those comments. Absent on older social-api builds. */\n replyCount?: number;\n /** Detected copies of this position. Absent on older social-api builds. */\n copyCount?: number;\n /**\n * Unix seconds of the position's first fill. Count from this to render a\n * live hold on a position that is still open, where {@link holdTimeMs} is\n * `null`. `null` when unknown. Absent on older social-api builds.\n */\n firstTradeAt?: number | null;\n /**\n * Final hold in milliseconds, first fill to last. Only set once the\n * position is closed; `null` while it is still running, because that span\n * grows every second — use {@link firstTradeAt} for those. Absent on older\n * social-api builds.\n */\n holdTimeMs?: number | null;\n /**\n * Average entry price in USD from remaining cost basis / remaining holding.\n * `null` when the position is flat. Absent on older social-api builds.\n */\n entryPriceUsd?: number | null;\n /**\n * Id of this feed item, the `feedItemId` its `social.v1.feed.all` revisions\n * carry. A position can hold several items on the all, trending and\n * following_v1 feeds (its trade plus one per author comment), so key rows on\n * this rather than `positionId`. Set on those feeds only; absent on older\n * social-api builds.\n */\n feedItemId?: string;\n /** Stable event ID for the shared feed-all projection. */\n eventId?: string;\n /** Projection revision for the shared feed-all item. */\n revision?: number;\n /** ISO timestamp for the shared feed-all projection event. */\n occurredAt?: string;\n};\n\nexport type ReactToCommentOptions = {\n commentId: string;\n /** Emoji or short code (1–64 chars), e.g. `👍`. */\n emotion: string;\n};\n\nexport type RemoveCommentReactionOptions = {\n commentId: string;\n};\n\n/**\n * Options for `POST /v1/swap-comment/:commentId/translate`.\n */\nexport type TranslateCommentOptions = {\n /** `authorComment.uid` from a feed item. */\n commentId: string;\n /** AWS language code to translate into, for example `en`. */\n targetLanguage: string;\n};\n\n/**\n * Translation stored for a swap comment. Returned by\n * `POST /v1/swap-comment/:commentId/translate` once that route exists.\n */\nexport type CommentTranslation = {\n /** Detected source language. `null` when detection has not run. */\n sourceLanguage: string | null;\n /** Translations keyed by AWS language code. */\n translations: Record<string, string>;\n};\n\n/**\n * Identifies a swap that may not be indexed yet. Prefer {@link CreateSwapCommentOptions.positionUid}\n * when the client already has a feed or positions `positionId`.\n *\n * A spot swap sends `transactionHash`. A Hyperliquid order that has not\n * settled sends `orderId` (the exchange `oid`) instead: the fill hash does not\n * exist yet, and social-api rejects a body that names both. For Hyperliquid,\n * `tokenAddress` is the coin (for example `BTC`), not a contract address.\n */\nexport type TradeInFlight =\n | {\n transactionHash: string;\n chain: string;\n /** Contract address of the token traded. */\n tokenAddress: string;\n }\n | {\n /**\n * Hyperliquid order id (`oid`) of an order just submitted. Digits only.\n * The comment attaches once the fill is indexed.\n */\n orderId: string;\n chain: 'hyperliquid';\n /** Hyperliquid coin, for example `BTC`. */\n tokenAddress: string;\n };\n\n/**\n * Options for `POST /v1/swap-comments`. Provide exactly one of `positionUid`\n * or `tradeInFlight`; the social-api rejects a body that names both or neither.\n */\nexport type CreateSwapCommentOptions = {\n /**\n * Message body of the post. May include a `https://static.klipy.com/...gif`\n * file URL (the social-api allowlists that host); other links are rejected.\n */\n commentText: string;\n /** Free-form origin label stored on the comment. */\n source?: string;\n /**\n * Position UUID (`positionId` / feed `itemId`). The comment attaches to that\n * position's most recent trade, which must be the caller's own.\n */\n positionUid?: string;\n /** Swap made seconds ago that may not have a position yet. */\n tradeInFlight?: TradeInFlight;\n};\n\n/**\n * Author profile on a swap-comment write response. Matches social-api\n * `ProfileResponseV1`; extra fields from newer builds are allowed.\n */\nexport type SwapCommentAuthor = {\n id: string;\n name: string;\n images?: {\n raw: string | null;\n xs: string | null;\n sm: string | null;\n };\n addresses?: string[];\n externalId?: string;\n};\n\n/**\n * Response from `POST /v1/swap-comments`.\n *\n * `transactionHash` is empty when the comment was saved against a Hyperliquid\n * `orderId` whose fill is not indexed yet. Social-api stamps the hash once the\n * order settles.\n */\nexport type SwapCommentResponse = {\n uid: string;\n transactionHash: string;\n chain: string;\n tokenAddress: string;\n commentText: string;\n author: SwapCommentAuthor;\n timestamp: number;\n isAppUserComment: boolean;\n metrics: CommentEngagement;\n};\n\n// ---------------------------------------------------------------------------\n// Copy-trade intents\n// ---------------------------------------------------------------------------\n\n/**\n * Social resource a copy trade was started from. Only comments are supported.\n */\nexport type CopyTradeOrigin = {\n kind: 'comment';\n /** Comment UUID. */\n id: string;\n};\n\n/**\n * Trade being copied. Swaps are identified by their Bridge quote id, perps by\n * the Hyperliquid order id returned on submission.\n */\nexport type CopyTradeExecution =\n | { product: 'swaps'; quoteId: string }\n | { product: 'perps'; oid: string };\n\n/**\n * Options for `POST /v1/copy-trade-intents`.\n */\nexport type CreateCopyTradeIntentOptions = {\n origin: CopyTradeOrigin;\n copierAccount: {\n /**\n * CAIP-10 id of the account placing the trade. The social-api verifies it\n * belongs to the authenticated profile.\n */\n caip10: string;\n };\n execution: CopyTradeExecution;\n};\n\n/**\n * Account on a copy-trade intent response.\n */\nexport type CopyTradeAccount = {\n profileId: string;\n caip10: string;\n};\n\n/**\n * Payout eligibility snapshotted when the intent is created. `reason` is one\n * of `comment_source`, `source_account_unavailable`, or `unknown_reason`;\n * newer social-api builds may add more.\n */\nexport type CopyTradePayoutEligibility = {\n status: 'payable' | 'non_payable';\n reason: string;\n};\n\n/**\n * Response from `POST /v1/copy-trade-intents`. The endpoint is idempotent, so\n * a retry returns the existing intent.\n */\nexport type CopyTradeIntentResponse = {\n id: string;\n origin: CopyTradeOrigin;\n copierAccount: CopyTradeAccount;\n sourceAccount: CopyTradeAccount | null;\n execution: CopyTradeExecution;\n payoutEligibility: CopyTradePayoutEligibility;\n /** ISO 8601 timestamp. */\n createdAt: string;\n};\n\n/**\n * Cursor pagination for the feed. Pass `olderCursor` back as `olderThan` to\n * load older items (infinite scroll), and `newerCursor` as `newerThan` to\n * fetch newer items. `null` when there are no items in that direction.\n */\nexport type FeedPagination = {\n olderCursor: string | null;\n newerCursor: string | null;\n};\n\n/**\n * Response from `GET /v1/feed`.\n */\nexport type FeedResponse = {\n items: FeedItem[];\n pagination: FeedPagination;\n};\n\n// ---------------------------------------------------------------------------\n// Followers\n// ---------------------------------------------------------------------------\n\n/**\n * Response from `GET /v1/users/me/followers` and bearer-authenticated\n * `GET /v1/traders/:addressOrId/followers` (optionally `?mutuals=true`).\n */\nexport type FollowersResponse = {\n followers: ProfileSummary[];\n count: number;\n};\n\n// ---------------------------------------------------------------------------\n// Following\n// ---------------------------------------------------------------------------\n\n/**\n * Response from `GET /v1/users/me/following` and bearer-authenticated\n * `GET /v1/traders/:addressOrId/following`.\n */\nexport type FollowingResponse = {\n following: ProfileSummary[];\n count: number;\n};\n\n// ---------------------------------------------------------------------------\n// Follow / Unfollow\n// ---------------------------------------------------------------------------\n\n/**\n * Response from `PUT /v1/users/me/follows`.\n */\nexport type FollowResponse = {\n followed: ProfileSummary[];\n};\n\n/**\n * Response from `DELETE /v1/users/me/follows`.\n */\nexport type UnfollowResponse = {\n unfollowed: ProfileSummary[];\n};\n\n// ---------------------------------------------------------------------------\n// Fetch options\n// ---------------------------------------------------------------------------\n\nexport type FetchLeaderboardOptions = {\n sort?: 'pnl' | 'winRate' | 'roi';\n chains?: string[];\n limit?: number;\n};\n\nexport type FetchTraderProfileOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n};\n\nexport type FetchPositionsOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n chain?: string;\n sort?: 'value' | 'latest';\n limit?: number;\n page?: number;\n};\n\nexport type FetchFollowersOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n /**\n * When true, requests `GET .../followers?mutuals=true` so `followers` are\n * profiles that follow both this trader and the authenticated user; `count` is\n * the mutual total. Omit or false returns the trader's full follower list.\n */\n mutuals?: boolean;\n};\n\nexport type FetchTraderFollowingOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n};\n\nexport type FetchTraderFeedOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n /**\n * When true, return only positions that carry an author comment.\n * Omitted from the request when false or unset (API default is false).\n */\n commentedOnly?: boolean;\n /** Number of results to return. */\n limit?: number;\n /** Cursor for older items (infinite scroll). Use `pagination.olderCursor`. */\n olderThan?: string;\n /** Cursor for newer items (pull to refresh). Use `pagination.newerCursor`. */\n newerThan?: string;\n};\n\n/**\n * Position status filter for a token feed.\n * Omit to return both open and recently closed positions.\n */\nexport type TokenFeedStatus = 'open' | 'closed';\n\n/**\n * Chain name accepted by `GET /v1/tokens/:chain/:contractAddress/feed`.\n */\nexport type TokenFeedChain =\n | 'base'\n | 'bsc'\n | 'ethereum'\n | 'hyperliquid'\n | 'robinhood'\n | 'solana';\n\n/**\n * Options for `GET /v1/tokens/:chain/:contractAddress/feed`.\n */\nexport type FetchTokenFeedOptions = {\n /** Chain name where the token is deployed. */\n chain: TokenFeedChain;\n /** Token contract address. */\n contractAddress: string;\n /**\n * Only open or only closed positions. Omit for both. Closed positions are\n * limited to the API's recent lookback.\n */\n status?: TokenFeedStatus;\n /** Number of results to return (1–100). Server default is 25. */\n limit?: number;\n /** Cursor for older items (infinite scroll). Use `pagination.olderCursor`. */\n olderThan?: string;\n /** Cursor for newer items (pull to refresh). Use `pagination.newerCursor`. */\n newerThan?: string;\n};\n\nexport type FetchFeedOptions = {\n /**\n * Which feed to fetch: `following` (personalized to the current user,\n * identified server-side from the JWT; one item per position, ordered by its\n * latest trade), `following_v1` (the `all` items of the profiles the current\n * user follows, without the user's own, ordered by `occurredAt`, with\n * `feedItemId`), `leaderboard` (generic, shared by all users), `all` (the\n * shared feed-all projection), or `trending`. Defaults to `following`\n * server-side when omitted.\n */\n scope?: FeedScope;\n /**\n * Filter by one or more chains, given as CAIP-2 chain ids (e.g.\n * `eip155:8453`). Omit for the server defaults. A set that excludes the chain\n * of an asset in `assetIds` is rejected with a 400.\n */\n chains?: string[];\n /**\n * Only items in any of these assets, given as 1–10 CAIP-19 asset id (e.g.\n * `eip155:8453/erc20:0x…`). Matches ANY of them. Invalid or unsupported asset\n * ids (for example, ones with a token id) are rejected with a 400.\n */\n assetIds?: CaipAssetTypeOrId[];\n /**\n * Only this trader's items. A Clicker profile ID (UUID), not a wallet address.\n */\n profileId?: string;\n /**\n * When true, return only items that carry an author comment. Omitted from\n * the request when false or unset.\n */\n commentedOnly?: boolean;\n /** Number of results to return. */\n limit?: number;\n /** Cursor for older items (infinite scroll). Use `pagination.olderCursor`. */\n olderThan?: string;\n /** Cursor for newer items (pull to refresh). Use `pagination.newerCursor`. */\n newerThan?: string;\n};\n\nexport type FeedScope =\n | 'following'\n | 'following_v1'\n | 'leaderboard'\n | 'all'\n | 'trending';\n\nexport type FetchPositionByIdOptions = {\n /** Unique position ID (UUID). */\n positionId: string;\n};\n\nexport type FollowOptions = {\n /** Array of wallet addresses or profile IDs to follow. */\n targets: string[];\n};\n\nexport type UnfollowOptions = {\n /** Array of wallet addresses or profile IDs to unfollow. */\n targets: string[];\n};\n\n// ---------------------------------------------------------------------------\n// Moderation blocks\n// ---------------------------------------------------------------------------\n\n/**\n * Options for `PUT /v1/moderation/block`. Provide exactly one target. Blocking\n * the same target again replaces `reason` when one is given.\n */\nexport type BlockOptions =\n | {\n /** Profile id (UUID) of the trader to block. */\n profileId: string;\n /** Free-form reason stored on the block. Max 1000 characters. */\n reason?: string;\n }\n | {\n /** Swap comment (post) to block. */\n commentId: string;\n /** Free-form reason stored on the block. Max 1000 characters. */\n reason?: string;\n }\n | {\n /** Comment reply to block. */\n replyId: string;\n /** Free-form reason stored on the block. Max 1000 characters. */\n reason?: string;\n };\n\n/**\n * Options for `DELETE /v1/moderation/blocks/profiles/:profileId`.\n */\nexport type UnblockProfileOptions = {\n /** Profile id (UUID) of the trader to unblock. */\n profileId: string;\n};\n\n/**\n * Options for the cursor-paginated moderation list endpoints. Omit `cursor`\n * for the first page.\n */\nexport type FetchBlockedListOptions = {\n /** The `cursor` from the previous page. */\n cursor?: string;\n};\n\n/**\n * A trader the current user has blocked.\n */\nexport type BlockedProfile = {\n /** When the block was placed, in Unix epoch seconds. */\n blockedAt: number;\n /** Reason given when the block was placed, if any. */\n reason: string | null;\n /** The blocked trader. */\n profile: ProfileSummary;\n};\n\n/**\n * Response from `GET /v1/moderation/blocks/profiles`.\n */\nexport type BlockedProfilesResponse = {\n /** Blocked traders, most recently blocked first. */\n items: BlockedProfile[];\n /** Pass as `cursor` for the next page. `null` on the last page. */\n cursor: string | null;\n};\n\n/**\n * Whether a blocked content row is a swap comment or a reply.\n */\nexport type BlockedContentType = 'comment' | 'reply';\n\n/**\n * A comment or reply the current user has blocked.\n */\nexport type BlockedContent = {\n /** When the block was placed, in Unix epoch seconds. */\n blockedAt: number;\n /** Reason given when the block was placed, if any. */\n reason: string | null;\n /** Whether `id` refers to a swap comment or a reply. */\n type: BlockedContentType;\n /** Comment or reply id (UUID). */\n id: string;\n /** Text of the blocked comment or reply. */\n text: string;\n /** When the content was posted, in Unix epoch seconds. */\n createdAt: number;\n /** Author of the content. `null` when the profile cannot be resolved. */\n author: ProfileSummary | null;\n};\n\n/**\n * Response from `GET /v1/moderation/blocks/content`.\n */\nexport type BlockedContentResponse = {\n /** Blocked comments and replies, most recently blocked first. */\n items: BlockedContent[];\n /** Pass as `cursor` for the next page. `null` on the last page. */\n cursor: string | null;\n};\n\n/**\n * Response from `GET /v1/moderation/status`: whether the moderation team has\n * banned the current user. A banned user cannot post, reply, or react.\n */\nexport type ModerationStatusResponse = {\n /** Whether the current user is banned. */\n banned: boolean;\n /** When the ban was placed, in Unix epoch seconds. `null` when not banned. */\n bannedAt: number | null;\n /** The reason the moderation team gave the user, if any. Safe to show. */\n reason: string | null;\n};\n\n/**\n * Assets that do not produce indexed positions.\n *\n * Returned by `GET /v1/tokens/quote-tokens`.\n */\nexport type QuoteTokensResponse = {\n /** CAIP-19 ids for native coins and wrapped native assets. */\n natives: string[];\n /** CAIP-19 ids for stablecoins. */\n stablecoins: string[];\n};\n\n/**\n * Query parameters forwarded to the social-api GIF proxy.\n *\n * Keys and values are sent unchanged. The service does not rename them or\n * supply defaults. Typical keys are `q`, `page`, `per_page`, `locale`,\n * `customer_id`, `content_filter`, and `format_filter`.\n */\nexport type GifQueryParams = Record<\n string,\n string | number | boolean | undefined\n>;\n\n/** One rendition of a GIF (`gif`, `webp`, or `mp4`) at a single size. */\nexport type GifMediaFile = {\n url?: string;\n width?: number;\n height?: number;\n size?: number;\n};\n\n/** Formats available for one GIF size (`sm`, `md`, `hd`, `xs`). */\nexport type GifMediaSize = {\n gif?: GifMediaFile;\n webp?: GifMediaFile;\n mp4?: GifMediaFile;\n};\n\n/**\n * One GIF in a provider page.\n *\n * Known fields are listed here. The service returns the provider object\n * itself, so fields beyond this type stay on the value at runtime.\n */\nexport type GifItem = {\n id?: string | number;\n slug?: string;\n title?: string;\n file?: {\n hd?: GifMediaSize;\n md?: GifMediaSize;\n sm?: GifMediaSize;\n xs?: GifMediaSize;\n };\n};\n\n/**\n * Body of `GET /api/v1/gifs/trending` and `GET /api/v1/gifs/search`.\n *\n * This is the GIF provider's page, passed through by social-api. Validation\n * only checks that `result` and `data` are present, so extra fields are kept.\n */\nexport type GifPageResponse = {\n result: boolean;\n data: {\n data?: GifItem[];\n current_page?: number;\n per_page?: number;\n has_next?: boolean;\n };\n};\n\n// ---------------------------------------------------------------------------\n// Controller state\n// ---------------------------------------------------------------------------\n\n/**\n * State managed by the SocialController.\n *\n * The controller acts as a simple store — no TTL or eviction logic.\n * The UI decides when to re-fetch; the social-api's own cache layer\n * handles upstream rate-limiting.\n */\nexport type SocialControllerState = {\n /** Cached ranked trader list from the last `updateLeaderboard` call. */\n leaderboardEntries: LeaderboardEntry[];\n /** Wallet addresses the current user follows. */\n followingAddresses: string[];\n /** Clicker profile IDs the current user follows — used by mobile UI. */\n followingProfileIds: string[];\n};\n"]}
|
|
1
|
+
{"version":3,"file":"social-types.js","sourceRoot":"","sources":["../src/social-types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,MAAM,EACN,MAAM,EACN,IAAI,IAAI,UAAU,GACnB,MAAM,uBAAuB,CA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AE,CAAC,CAAC;IACvC,SAAS,EAAE,MAAM,EAAE;IACnB,eAAe,EAAE,MAAM,EAAE;IACzB;;;OAGG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;CAC/C,CAAC,CAAC;AAiDH,8EAA8E;AAC9E,iBAAiB;AACjB,8EAA8E;AAE9E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAkB,CAAC;AAExD,6CAA6C;AAC7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAoB,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAA4B,CAAC;AAE5E,qEAAqE;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n array,\n boolean,\n enums,\n nullable,\n number,\n optional,\n record,\n string,\n type as structType,\n} from '@metamask/superstruct';\nimport type { CaipAssetTypeOrId } from '@metamask/utils';\n\n// ---------------------------------------------------------------------------\n// Shared sub-types\n// ---------------------------------------------------------------------------\n\n/** Values for `ProfileIdentity.tradingPrivacy` from social-api. */\nexport const TRADING_PRIVACY_VALUES = ['public', 'private'] as const;\n\nexport type TradingPrivacy = (typeof TRADING_PRIVACY_VALUES)[number];\n\n/**\n * The MetaMask Profile API identity social-api serves beside `name` on every\n * profile, so clients need not call the Profile API themselves.\n *\n * Every field is omitted when the profile has no value, and on older\n * social-api builds. Only MetaMask-linked profiles carry them.\n */\nexport const ProfileIdentityStruct = structType({\n /**\n * Display name set on the Profile API. Free text that anyone can copy, so\n * show it beside `name`, never in its place. Omitted when the profile's text\n * is flagged NSFW.\n */\n displayName: optional(nullable(string())),\n /** Bio set on the Profile API. Omitted when the profile's text is flagged NSFW. */\n bio: optional(nullable(string())),\n /** When the MetaMask profile was created, as an ISO-8601 timestamp. */\n createdAt: optional(nullable(string())),\n /** When the owner last edited their MetaMask profile, as an ISO-8601 timestamp. */\n updatedAt: optional(nullable(string())),\n /** Whether the owner linked an X account on their MetaMask profile. */\n connectedToX: optional(nullable(boolean())),\n /** Whether the MetaMask Profile API verified the owner. */\n verified: optional(nullable(boolean())),\n /** The owner's trading privacy. A private profile's addresses are withheld. */\n tradingPrivacy: optional(nullable(enums(TRADING_PRIVACY_VALUES))),\n});\n\nexport type ProfileIdentity = Infer<typeof ProfileIdentityStruct>;\n\n/**\n * Minimal profile summary used across follow/follower responses.\n */\nexport type ProfileSummary = ProfileIdentity & {\n /** Clicker profile ID (UUID). */\n profileId: string;\n /** Primary wallet address. */\n address: string;\n /** Username, or truncated address when the profile has none. */\n name: string;\n /** Profile avatar URL. */\n imageUrl?: string | null;\n};\n\n/**\n * Trader attached to a feed item. Extends {@link ProfileSummary} with the\n * profile stats the feed hydrator already loaded and used to drop.\n *\n * Every field is optional: a social-api that predates them omits the keys,\n * and `null` means the window has no data (distinct from \"not sent\").\n */\nexport type FeedActorSummary = ProfileSummary & {\n /** 30-day win rate as a 0–1 ratio. */\n winRate30d?: number | null;\n /** 30-day realized PnL in USD. */\n pnl30d?: number | null;\n /** 30-day trading volume in USD, totaled across all chains. */\n volumeUsd30d?: number | null;\n /** 7-day trading volume in USD, totaled across all chains. */\n volumeUsd7d?: number | null;\n /** 30-day sell count behind `winRate30d`. */\n tradeCount30d?: number | null;\n /** Profiles following this trader. */\n followerCount?: number | null;\n};\n\n/**\n * Social media handles attached to a trader profile.\n */\nexport type SocialHandles = {\n twitter?: string | null;\n farcaster?: string | null;\n ens?: string | null;\n lens?: string | null;\n};\n\n/**\n * Where a fill sits in its position's lifecycle.\n *\n * Deliberately asset-agnostic so the classification is computed once, upstream:\n * clients render `opened / added / reduced / closed` for perps and\n * `bought / bought more / sold some / sold all` for spot from the same value.\n *\n * Distinct from `intent`, which only says whether the fill grew or shrank the\n * position — `intent: 'exit'` covers both a partial trim and a full close.\n */\nexport type TradeAction = 'opened' | 'added' | 'reduced' | 'closed';\n\nexport const CommentReactionProfileStruct = structType({\n id: string(),\n name: string(),\n});\n\nexport const CommentEngagementStruct = structType({\n reactions: array(\n structType({\n emotion: string(),\n count: number(),\n profiles: array(CommentReactionProfileStruct),\n }),\n ),\n userReaction: nullable(string()),\n replyCount: optional(number()),\n});\n\nexport const AuthorCommentStruct = structType({\n uid: string(),\n text: string(),\n timestamp: number(),\n sourceLanguage: optional(nullable(string())),\n translations: optional(record(string(), string())),\n engagement: CommentEngagementStruct,\n});\n\nexport const TradeStruct = structType({\n direction: enums(['buy', 'sell']),\n intent: enums(['enter', 'exit']),\n /**\n * Lifecycle stage of this fill. Absent on responses from a social-api that\n * predates the field, so treat it as a hint and keep a client-side fallback.\n */\n action: optional(enums(['opened', 'added', 'reduced', 'closed'])),\n category: optional(string()),\n /** High-level trade classification. `null` when Clicker does not classify. */\n classification: optional(\n nullable(enums(['spot', 'perp', 'send', 'receive'])),\n ),\n /** Perp side for this fill. `null` for spot trades. */\n perpPositionType: optional(nullable(enums(['long', 'short']))),\n /** Leverage multiplier for perp trades (e.g. `5` for 5x). `null` for spot. */\n perpLeverage: optional(nullable(number())),\n tokenAmount: number(),\n usdCost: number(),\n /** Token market cap in USD at trade time. `null` when Clicker has no mark. */\n marketCap: optional(nullable(number())),\n timestamp: number(),\n transactionHash: string(),\n /**\n * Every author comment on this fill, newest first. An author may comment on\n * one fill more than once. Absent on older social-api builds.\n */\n comments: optional(array(AuthorCommentStruct)),\n});\n\nexport type Trade = Infer<typeof TradeStruct>;\n\n// ---------------------------------------------------------------------------\n// Leaderboard\n// ---------------------------------------------------------------------------\n\n/**\n * A single entry in the leaderboard response.\n */\nexport type LeaderboardEntry = ProfileIdentity & {\n rank: number;\n addresses: string[];\n profileId: string;\n name: string;\n imageUrl?: string | null;\n pnl30d: number;\n winRate30d?: number | null;\n /** Renamed from roi30d. */\n roiPercent30d?: number | null;\n /** Renamed from tradeCount. */\n tradeCount30d?: number | null;\n pnl7d?: number | null;\n winRate7d?: number | null;\n roiPercent7d?: number | null;\n tradeCount7d?: number | null;\n /**\n * 30-day trading volume in USD. When the request includes `chains`, this is\n * the sum of those chains; otherwise it is the all-chain total.\n */\n volumeUsd30d?: number | null;\n /**\n * 7-day trading volume in USD. When the request includes `chains`, this is\n * the sum of those chains; otherwise it is the all-chain total.\n */\n volumeUsd7d?: number | null;\n pnlPerChain: Record<string, number>;\n followerCount: number;\n socialHandles: SocialHandles;\n};\n\n/**\n * Response from `GET /v1/leaderboard`.\n */\nexport type LeaderboardResponse = {\n traders: LeaderboardEntry[];\n};\n\n// ---------------------------------------------------------------------------\n// Trader profile\n// ---------------------------------------------------------------------------\n\n/**\n * Position flag for a wallet/token pair Codex marked as an insider.\n *\n * Those positions are excluded from the trader's realized PnL, and clients\n * must not offer copy-trade on them.\n */\nexport const INSIDER_POSITION_FLAG = 'insider' as const;\n\n/** Known position flag value `developer`. */\nexport const DEVELOPER_POSITION_FLAG = 'developer' as const;\n\n/**\n * Position flag for a token that social-api excludes from PnL for every\n * trader.\n *\n * Those positions are still returned, but they do not count toward the\n * trader's realized PnL. A position can carry this flag alongside\n * {@link INSIDER_POSITION_FLAG}.\n */\nexport const UNSUPPORTED_TOKEN_POSITION_FLAG = 'unsupported-token' as const;\n\n/** Values for `TraderProfileResponse.rankingTag` from social-api. */\nexport const TRADER_RANKING_TAGS = ['shrimp', 'dolphin', 'whale'] as const;\n\nexport type TraderRankingTag = (typeof TRADER_RANKING_TAGS)[number];\n\nexport type TraderProfile = Omit<ProfileIdentity, 'createdAt'> & {\n profileId: string;\n address: string;\n allAddresses: string[];\n name: string;\n imageUrl?: string | null;\n /**\n * When the MetaMask profile was created, as an ISO-8601 timestamp. Omitted\n * for external profiles and on older social-api builds, which sent the\n * social-api row insert time instead.\n */\n createdAt?: string | null;\n};\n\nexport type TraderStats = {\n pnl30d?: number | null;\n winRate30d?: number | null;\n /** Renamed from roi30d. */\n roiPercent30d?: number | null;\n /** Renamed from tradeCount. */\n tradeCount30d?: number | null;\n /** 30-day trading volume in USD. */\n volumeUsd30d?: number | null;\n pnl7d?: number | null;\n winRate7d?: number | null;\n roiPercent7d?: number | null;\n tradeCount7d?: number | null;\n /** Median holding time in minutes. */\n medianHoldMinutes?: number | null;\n};\n\nexport type CopytradedAllTime = {\n count: number;\n volumeUSD: number;\n distinctActors: number;\n};\n\nexport type PerChainBreakdown = {\n perChainPnl: Record<string, number>;\n /** ROI can be null for chains with no trading activity (zero cost-basis). */\n perChainRoi: Record<string, number | null>;\n perChainVolume: Record<string, number>;\n /**\n * 7-day per-chain PnL in USD. Optional: older social-api versions only\n * return the 30-day breakdown (`perChainPnl`). The unsuffixed fields above\n * remain the 30-day window for backward compatibility.\n */\n perChainPnl7d?: Record<string, number>;\n /** 7-day per-chain ROI. Null for chains with no trading activity. */\n perChainRoi7d?: Record<string, number | null>;\n /** 7-day per-chain volume in USD. */\n perChainVolume7d?: Record<string, number>;\n};\n\n/**\n * Response from `GET /v1/traders/:addressOrId/profile`.\n */\nexport type TraderProfileResponse = {\n profile: TraderProfile;\n stats: TraderStats;\n perChainBreakdown: PerChainBreakdown;\n socialHandles: SocialHandles;\n followerCount: number;\n followingCount: number;\n /**\n * Linked copy-swap stats for this trader. Social-api always sends zeros\n * when there are none.\n */\n copytradedAllTime: CopytradedAllTime;\n /**\n * Backend-derived tier from the Auth primary account 30d PnL. Omitted on older\n * social-api builds; `null` when unclaimed or activity is insufficient.\n */\n rankingTag?: TraderRankingTag | null;\n};\n\n// ---------------------------------------------------------------------------\n// Positions\n// ---------------------------------------------------------------------------\n\nexport type Position = {\n positionId: string;\n tokenSymbol: string;\n tokenName: string;\n tokenAddress: string;\n chain: string;\n positionAmount: number;\n /**\n * Whether the position still carries exposure. Clicker's own verdict, which\n * beats a `positionAmount === 0` check: it survives precision dust and\n * distinguishes \"no position\" from \"a position of size ~0\". Absent on\n * responses from a social-api that predates the field.\n */\n isOpen?: boolean;\n /**\n * Total USD spent buying into the position. `null` when Clicker stats are\n * incomplete (the social-api used to JSON-serialize `NaN` as `null`).\n */\n boughtUsd: number | null;\n /** Total USD received from sells. `null` when stats are incomplete. */\n soldUsd: number | null;\n /** Realized profit or loss in USD. `null` when stats are incomplete. */\n realizedPnl: number | null;\n /**\n * USD cost basis of the remaining holdings. `null` when stats are incomplete.\n */\n costBasis: number | null;\n trades: Trade[];\n lastTradeAt: number;\n /** Daylight-hosted token image URL. */\n tokenImageUrl?: string | null;\n /** Current USD value of the remaining position (open positions only). */\n currentValueUSD?: number | null;\n /** Unrealized + realized PnL in USD. */\n pnlValueUsd?: number | null;\n /**\n * USD size of the position. For perps this is the leveraged notional,\n * `|positionAmountWithLeverage|` × mark price, which is the key social-api\n * ranks an asset's holders by. For spot it equals `currentValueUSD`; `0` for\n * closed positions. Absent when no price is available, and on social-api\n * builds that predate the field.\n */\n positionValueUSD?: number | null;\n /** PnL as a percentage of cost basis. */\n pnlPercent?: number | null;\n /** Number of detected copy trades for this position. */\n copyCount?: number;\n /** Perp side of the position. `null`/absent for spot positions. */\n perpPositionType?: 'long' | 'short' | null;\n /** Leverage multiplier for perp positions. `null`/absent for spot. */\n perpLeverage?: number | null;\n /**\n * Leveraged/notional position size as reported by Clicker. NOT necessarily\n * `positionAmount` × `perpLeverage` — the ratio varies for positions built\n * across fills at different leverage, so use this field directly rather than\n * deriving it, and treat `perpLeverage` as the authoritative leverage. This is\n * notional exposure, not capital at risk (the margin/capital at risk is\n * `costBasis`). Hyperliquid/perp positions only; absent for spot.\n */\n positionAmountWithLeverage?: number | null;\n /**\n * Server flags for this position. {@link INSIDER_POSITION_FLAG} means Codex\n * marked this wallet and token as an insider pair, so the position is\n * excluded from the trader's realized PnL and must not be copy-traded.\n * {@link UNSUPPORTED_TOKEN_POSITION_FLAG} means the token is excluded from\n * PnL for every trader, so the position does not count toward the trader's\n * realized PnL. {@link DEVELOPER_POSITION_FLAG} is the other known value.\n * The list is open: unrecognized strings are preserved. Absent on older\n * social-api builds; `null` when the deployment sends an explicit empty mark.\n */\n flags?: string[] | null;\n /**\n * Profile ID of the trader who owns the position. Lets a client confirm that\n * a position belongs to a given trader before attributing it to them. Absent\n * on social-api builds that predate the field.\n */\n profileId?: string;\n};\n\nexport type Pagination = {\n hasMore: boolean;\n nextPage?: number;\n};\n\n/**\n * Response from `GET /v1/traders/:addressOrId/positions/open`\n * and `GET /v1/traders/:addressOrId/positions/closed`.\n */\nexport type PositionsResponse = {\n positions: Position[];\n pagination: Pagination;\n /** ISO 8601 timestamp indicating when the response was computed server-side. */\n computedAt?: string | null;\n};\n\n// ---------------------------------------------------------------------------\n// Feed\n// ---------------------------------------------------------------------------\n\n/**\n * One emotion's aggregated count on a Call (swap comment), plus an optional\n * facepile sample. `profiles` is always present on the wire and is often empty.\n */\nexport type CommentReaction = {\n emotion: string;\n count: number;\n profiles: CommentReactionProfile[];\n};\n\nexport type CommentReactionProfile = {\n id: string;\n name: string;\n};\n\n/**\n * Engagement on a Call. Counts live on `reactions`; do not read deprecated\n * `likeCount` / `isLikedByUser` even if the social-api still emits them as 0/false.\n */\nexport type CommentEngagement = {\n reactions: CommentReaction[];\n /** Viewer's own emotion, when the hydrator was given their profile. */\n userReaction: string | null;\n /** Reply count on the comment. Present on feed `authorComment`, not on write responses. */\n replyCount?: number;\n};\n\n/**\n * Position thesis for the feed big card. `null` when that intent phase has no Call.\n */\nexport type AuthorComment = {\n uid: string;\n text: string;\n /** Unix timestamp (seconds) when the comment was created. */\n timestamp: number;\n /**\n * AWS language code of the comment text, for example `en` or `pt`. `null`\n * when detection has not run. Absent on older social-api builds.\n */\n sourceLanguage?: string | null;\n /**\n * Stored translations keyed by AWS language code. Empty when none are\n * stored. Absent on older social-api builds.\n */\n translations?: Record<string, string>;\n engagement: CommentEngagement;\n};\n\n/**\n * A single trader-activity feed item: a {@link Position} the trade belongs to,\n * plus the {@link FeedActorSummary} of the trader who made it (`actor`) and the\n * item's creation `timestamp` (Unix seconds).\n */\nexport type FeedItem = Position & {\n /** The trader who made this trade. */\n actor: FeedActorSummary;\n /** Unix timestamp (seconds) when the feed item was created. */\n timestamp: number;\n /**\n * Latest author Call in the current intent phase. On the all, trending and\n * following_v1 feeds, a comment item carries its own comment instead and a trade item\n * carries `null`. Absent on older social-api builds; `null` when that phase\n * has no comment.\n */\n authorComment?: AuthorComment | null;\n /** Author comments on this position. Absent on older social-api builds. */\n commentCount?: number;\n /** Replies across those comments. Absent on older social-api builds. */\n replyCount?: number;\n /** Detected copies of this position. Absent on older social-api builds. */\n copyCount?: number;\n /**\n * Unix seconds of the position's first fill. Count from this to render a\n * live hold on a position that is still open, where {@link holdTimeMs} is\n * `null`. `null` when unknown. Absent on older social-api builds.\n */\n firstTradeAt?: number | null;\n /**\n * Final hold in milliseconds, first fill to last. Only set once the\n * position is closed; `null` while it is still running, because that span\n * grows every second — use {@link firstTradeAt} for those. Absent on older\n * social-api builds.\n */\n holdTimeMs?: number | null;\n /**\n * Average entry price in USD from remaining cost basis / remaining holding.\n * `null` when the position is flat. Absent on older social-api builds.\n */\n entryPriceUsd?: number | null;\n /**\n * Id of this feed item, the `feedItemId` its `social.v1.feed.all` revisions\n * carry. A position can hold several items on the all, trending and\n * following_v1 feeds (its trade plus one per author comment), so key rows on\n * this rather than `positionId`. Set on those feeds only; absent on older\n * social-api builds.\n */\n feedItemId?: string;\n /** Stable event ID for the shared feed-all projection. */\n eventId?: string;\n /** Projection revision for the shared feed-all item. */\n revision?: number;\n /** ISO timestamp for the shared feed-all projection event. */\n occurredAt?: string;\n};\n\nexport type ReactToCommentOptions = {\n commentId: string;\n /** Emoji or short code (1–64 chars), e.g. `👍`. */\n emotion: string;\n};\n\nexport type RemoveCommentReactionOptions = {\n commentId: string;\n};\n\n/**\n * Options for `POST /v1/swap-comment/:commentId/translate`.\n */\nexport type TranslateCommentOptions = {\n /** `authorComment.uid` from a feed item. */\n commentId: string;\n /** AWS language code to translate into, for example `en`. */\n targetLanguage: string;\n};\n\n/**\n * Translation stored for a swap comment. Returned by\n * `POST /v1/swap-comment/:commentId/translate` once that route exists.\n */\nexport type CommentTranslation = {\n /** Detected source language. `null` when detection has not run. */\n sourceLanguage: string | null;\n /** Translations keyed by AWS language code. */\n translations: Record<string, string>;\n};\n\n/**\n * Identifies a swap that may not be indexed yet. Prefer {@link CreateSwapCommentOptions.positionUid}\n * when the client already has a feed or positions `positionId`.\n *\n * A spot swap sends `transactionHash`. A Hyperliquid order that has not\n * settled sends `orderId` (the exchange `oid`) instead: the fill hash does not\n * exist yet, and social-api rejects a body that names both. For Hyperliquid,\n * `tokenAddress` is the coin (for example `BTC`), not a contract address.\n */\nexport type TradeInFlight =\n | {\n transactionHash: string;\n chain: string;\n /** Contract address of the token traded. */\n tokenAddress: string;\n }\n | {\n /**\n * Hyperliquid order id (`oid`) of an order just submitted. Digits only.\n * The comment attaches once the fill is indexed.\n */\n orderId: string;\n chain: 'hyperliquid';\n /** Hyperliquid coin, for example `BTC`. */\n tokenAddress: string;\n };\n\n/**\n * Options for `POST /v1/swap-comments`. Provide exactly one of `positionUid`\n * or `tradeInFlight`; the social-api rejects a body that names both or neither.\n */\nexport type CreateSwapCommentOptions = {\n /**\n * Message body of the post. May include a `https://static.klipy.com/...gif`\n * file URL (the social-api allowlists that host); other links are rejected.\n */\n commentText: string;\n /** Free-form origin label stored on the comment. */\n source?: string;\n /**\n * Position UUID (`positionId` / feed `itemId`). The comment attaches to that\n * position's most recent trade, which must be the caller's own.\n */\n positionUid?: string;\n /** Swap made seconds ago that may not have a position yet. */\n tradeInFlight?: TradeInFlight;\n};\n\n/**\n * Author profile on a swap-comment write response. Matches social-api\n * `ProfileResponseV1`; extra fields from newer builds are allowed.\n */\nexport type SwapCommentAuthor = {\n id: string;\n name: string;\n images?: {\n raw: string | null;\n xs: string | null;\n sm: string | null;\n };\n addresses?: string[];\n externalId?: string;\n};\n\n/**\n * Response from `POST /v1/swap-comments`.\n *\n * `transactionHash` is empty when the comment was saved against a Hyperliquid\n * `orderId` whose fill is not indexed yet. Social-api stamps the hash once the\n * order settles.\n */\nexport type SwapCommentResponse = {\n uid: string;\n transactionHash: string;\n chain: string;\n tokenAddress: string;\n commentText: string;\n author: SwapCommentAuthor;\n timestamp: number;\n isAppUserComment: boolean;\n metrics: CommentEngagement;\n};\n\n// ---------------------------------------------------------------------------\n// Copy-trade intents\n// ---------------------------------------------------------------------------\n\n/**\n * Social resource a copy trade was started from. Only comments are supported.\n */\nexport type CopyTradeOrigin = {\n kind: 'comment';\n /** Comment UUID. */\n id: string;\n};\n\n/**\n * Trade being copied. Swaps are identified by their Bridge quote id, perps by\n * the Hyperliquid order id returned on submission.\n */\nexport type CopyTradeExecution =\n | { product: 'swaps'; quoteId: string }\n | { product: 'perps'; oid: string };\n\n/**\n * Options for `POST /v1/copy-trade-intents`.\n */\nexport type CreateCopyTradeIntentOptions = {\n origin: CopyTradeOrigin;\n copierAccount: {\n /**\n * CAIP-10 id of the account placing the trade. The social-api verifies it\n * belongs to the authenticated profile.\n */\n caip10: string;\n };\n execution: CopyTradeExecution;\n};\n\n/**\n * Account on a copy-trade intent response.\n */\nexport type CopyTradeAccount = {\n profileId: string;\n caip10: string;\n};\n\n/**\n * Payout eligibility snapshotted when the intent is created. `reason` is one\n * of `comment_source`, `source_account_unavailable`, or `unknown_reason`;\n * newer social-api builds may add more.\n */\nexport type CopyTradePayoutEligibility = {\n status: 'payable' | 'non_payable';\n reason: string;\n};\n\n/**\n * Response from `POST /v1/copy-trade-intents`. The endpoint is idempotent, so\n * a retry returns the existing intent.\n */\nexport type CopyTradeIntentResponse = {\n id: string;\n origin: CopyTradeOrigin;\n copierAccount: CopyTradeAccount;\n sourceAccount: CopyTradeAccount | null;\n execution: CopyTradeExecution;\n payoutEligibility: CopyTradePayoutEligibility;\n /** ISO 8601 timestamp. */\n createdAt: string;\n};\n\n/**\n * Cursor pagination for the feed. Pass `olderCursor` back as `olderThan` to\n * load older items (infinite scroll), and `newerCursor` as `newerThan` to\n * fetch newer items. `null` when there are no items in that direction.\n */\nexport type FeedPagination = {\n olderCursor: string | null;\n newerCursor: string | null;\n};\n\n/**\n * Response from `GET /v1/feed`.\n */\nexport type FeedResponse = {\n items: FeedItem[];\n pagination: FeedPagination;\n};\n\n// ---------------------------------------------------------------------------\n// Followers\n// ---------------------------------------------------------------------------\n\n/**\n * Response from `GET /v1/users/me/followers` and bearer-authenticated\n * `GET /v1/traders/:addressOrId/followers` (optionally `?mutuals=true`).\n */\nexport type FollowersResponse = {\n followers: ProfileSummary[];\n count: number;\n};\n\n// ---------------------------------------------------------------------------\n// Following\n// ---------------------------------------------------------------------------\n\n/**\n * Response from `GET /v1/users/me/following` and bearer-authenticated\n * `GET /v1/traders/:addressOrId/following`.\n */\nexport type FollowingResponse = {\n following: ProfileSummary[];\n count: number;\n};\n\n// ---------------------------------------------------------------------------\n// Follow / Unfollow\n// ---------------------------------------------------------------------------\n\n/**\n * Response from `PUT /v1/users/me/follows`.\n */\nexport type FollowResponse = {\n followed: ProfileSummary[];\n};\n\n/**\n * Response from `DELETE /v1/users/me/follows`.\n */\nexport type UnfollowResponse = {\n unfollowed: ProfileSummary[];\n};\n\n// ---------------------------------------------------------------------------\n// Fetch options\n// ---------------------------------------------------------------------------\n\nexport type FetchLeaderboardOptions = {\n sort?: 'pnl' | 'winRate' | 'roi';\n chains?: string[];\n limit?: number;\n};\n\nexport type FetchTraderProfileOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n};\n\nexport type FetchPositionsOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n chain?: string;\n sort?: 'value' | 'latest';\n limit?: number;\n page?: number;\n};\n\nexport type FetchFollowersOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n /**\n * When true, requests `GET .../followers?mutuals=true` so `followers` are\n * profiles that follow both this trader and the authenticated user; `count` is\n * the mutual total. Omit or false returns the trader's full follower list.\n */\n mutuals?: boolean;\n};\n\nexport type FetchTraderFollowingOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n};\n\nexport type FetchTraderFeedOptions = {\n /** Wallet address or Clicker profile ID. */\n addressOrId: string;\n /**\n * When true, return only positions that carry an author comment.\n * Omitted from the request when false or unset (API default is false).\n */\n commentedOnly?: boolean;\n /** Number of results to return. */\n limit?: number;\n /** Cursor for older items (infinite scroll). Use `pagination.olderCursor`. */\n olderThan?: string;\n /** Cursor for newer items (pull to refresh). Use `pagination.newerCursor`. */\n newerThan?: string;\n};\n\n/**\n * Position status filter for a token feed.\n * Omit to return both open and recently closed positions.\n */\nexport type TokenFeedStatus = 'open' | 'closed';\n\n/**\n * Chain name accepted by `GET /v1/tokens/:chain/:contractAddress/feed`.\n */\nexport type TokenFeedChain =\n | 'base'\n | 'bsc'\n | 'ethereum'\n | 'hyperliquid'\n | 'robinhood'\n | 'solana';\n\n/**\n * Options for `GET /v1/tokens/:chain/:contractAddress/feed`.\n */\nexport type FetchTokenFeedOptions = {\n /** Chain name where the token is deployed. */\n chain: TokenFeedChain;\n /** Token contract address. */\n contractAddress: string;\n /**\n * Only open or only closed positions. Omit for both. Closed positions are\n * limited to the API's recent lookback.\n */\n status?: TokenFeedStatus;\n /** Number of results to return (1–100). Server default is 25. */\n limit?: number;\n /** Cursor for older items (infinite scroll). Use `pagination.olderCursor`. */\n olderThan?: string;\n /** Cursor for newer items (pull to refresh). Use `pagination.newerCursor`. */\n newerThan?: string;\n};\n\nexport type FetchFeedOptions = {\n /**\n * Which feed to fetch: `following` (personalized to the current user,\n * identified server-side from the JWT; one item per position, ordered by its\n * latest trade), `following_v1` (the `all` items of the profiles the current\n * user follows, without the user's own, ordered by `occurredAt`, with\n * `feedItemId`), `leaderboard` (generic, shared by all users), `all` (the\n * shared feed-all projection), or `trending`. Defaults to `following`\n * server-side when omitted.\n */\n scope?: FeedScope;\n /**\n * Filter by one or more chains, given as CAIP-2 chain ids (e.g.\n * `eip155:8453`). Omit for the server defaults. A set that excludes the chain\n * of an asset in `assetIds` is rejected with a 400.\n */\n chains?: string[];\n /**\n * Only items in any of these assets, given as 1–10 CAIP-19 asset id (e.g.\n * `eip155:8453/erc20:0x…`). Matches ANY of them. Invalid or unsupported asset\n * ids (for example, ones with a token id) are rejected with a 400.\n */\n assetIds?: CaipAssetTypeOrId[];\n /**\n * Only this trader's items. A Clicker profile ID (UUID), not a wallet address.\n */\n profileId?: string;\n /**\n * When true, return only items that carry an author comment. Omitted from\n * the request when false or unset.\n */\n commentedOnly?: boolean;\n /** Number of results to return. */\n limit?: number;\n /** Cursor for older items (infinite scroll). Use `pagination.olderCursor`. */\n olderThan?: string;\n /** Cursor for newer items (pull to refresh). Use `pagination.newerCursor`. */\n newerThan?: string;\n};\n\nexport type FeedScope =\n | 'following'\n | 'following_v1'\n | 'leaderboard'\n | 'all'\n | 'trending';\n\nexport type FetchPositionByIdOptions = {\n /** Unique position ID (UUID). */\n positionId: string;\n};\n\nexport type FollowOptions = {\n /** Array of wallet addresses or profile IDs to follow. */\n targets: string[];\n};\n\nexport type UnfollowOptions = {\n /** Array of wallet addresses or profile IDs to unfollow. */\n targets: string[];\n};\n\n// ---------------------------------------------------------------------------\n// Moderation blocks\n// ---------------------------------------------------------------------------\n\n/**\n * Options for `PUT /v1/moderation/block`. Provide exactly one target. Blocking\n * the same target again replaces `reason` when one is given.\n */\nexport type BlockOptions =\n | {\n /** Profile id (UUID) of the trader to block. */\n profileId: string;\n /** Free-form reason stored on the block. Max 1000 characters. */\n reason?: string;\n }\n | {\n /** Swap comment (post) to block. */\n commentId: string;\n /** Free-form reason stored on the block. Max 1000 characters. */\n reason?: string;\n }\n | {\n /** Comment reply to block. */\n replyId: string;\n /** Free-form reason stored on the block. Max 1000 characters. */\n reason?: string;\n };\n\n/**\n * Options for `DELETE /v1/moderation/blocks/profiles/:profileId`.\n */\nexport type UnblockProfileOptions = {\n /** Profile id (UUID) of the trader to unblock. */\n profileId: string;\n};\n\n/**\n * Options for the cursor-paginated moderation list endpoints. Omit `cursor`\n * for the first page.\n */\nexport type FetchBlockedListOptions = {\n /** The `cursor` from the previous page. */\n cursor?: string;\n};\n\n/**\n * A trader the current user has blocked.\n */\nexport type BlockedProfile = {\n /** When the block was placed, in Unix epoch seconds. */\n blockedAt: number;\n /** Reason given when the block was placed, if any. */\n reason: string | null;\n /** The blocked trader. */\n profile: ProfileSummary;\n};\n\n/**\n * Response from `GET /v1/moderation/blocks/profiles`.\n */\nexport type BlockedProfilesResponse = {\n /** Blocked traders, most recently blocked first. */\n items: BlockedProfile[];\n /** Pass as `cursor` for the next page. `null` on the last page. */\n cursor: string | null;\n};\n\n/**\n * Whether a blocked content row is a swap comment or a reply.\n */\nexport type BlockedContentType = 'comment' | 'reply';\n\n/**\n * A comment or reply the current user has blocked.\n */\nexport type BlockedContent = {\n /** When the block was placed, in Unix epoch seconds. */\n blockedAt: number;\n /** Reason given when the block was placed, if any. */\n reason: string | null;\n /** Whether `id` refers to a swap comment or a reply. */\n type: BlockedContentType;\n /** Comment or reply id (UUID). */\n id: string;\n /** Text of the blocked comment or reply. */\n text: string;\n /** When the content was posted, in Unix epoch seconds. */\n createdAt: number;\n /** Author of the content. `null` when the profile cannot be resolved. */\n author: ProfileSummary | null;\n};\n\n/**\n * Response from `GET /v1/moderation/blocks/content`.\n */\nexport type BlockedContentResponse = {\n /** Blocked comments and replies, most recently blocked first. */\n items: BlockedContent[];\n /** Pass as `cursor` for the next page. `null` on the last page. */\n cursor: string | null;\n};\n\n/**\n * Response from `GET /v1/moderation/status`: whether the moderation team has\n * banned the current user. A banned user cannot post, reply, or react.\n */\nexport type ModerationStatusResponse = {\n /** Whether the current user is banned. */\n banned: boolean;\n /** When the ban was placed, in Unix epoch seconds. `null` when not banned. */\n bannedAt: number | null;\n /** The reason the moderation team gave the user, if any. Safe to show. */\n reason: string | null;\n};\n\n/**\n * Assets that do not produce indexed positions.\n *\n * Returned by `GET /v1/tokens/quote-tokens`.\n */\nexport type QuoteTokensResponse = {\n /** CAIP-19 ids for native coins and wrapped native assets. */\n natives: string[];\n /** CAIP-19 ids for stablecoins. */\n stablecoins: string[];\n};\n\n/**\n * Query parameters forwarded to the social-api GIF proxy.\n *\n * Keys and values are sent unchanged. The service does not rename them or\n * supply defaults. Typical keys are `q`, `page`, `per_page`, `locale`,\n * `customer_id`, `content_filter`, and `format_filter`.\n */\nexport type GifQueryParams = Record<\n string,\n string | number | boolean | undefined\n>;\n\n/** One rendition of a GIF (`gif`, `webp`, or `mp4`) at a single size. */\nexport type GifMediaFile = {\n url?: string;\n width?: number;\n height?: number;\n size?: number;\n};\n\n/** Formats available for one GIF size (`sm`, `md`, `hd`, `xs`). */\nexport type GifMediaSize = {\n gif?: GifMediaFile;\n webp?: GifMediaFile;\n mp4?: GifMediaFile;\n};\n\n/**\n * One GIF in a provider page.\n *\n * Known fields are listed here. The service returns the provider object\n * itself, so fields beyond this type stay on the value at runtime.\n */\nexport type GifItem = {\n id?: string | number;\n slug?: string;\n title?: string;\n file?: {\n hd?: GifMediaSize;\n md?: GifMediaSize;\n sm?: GifMediaSize;\n xs?: GifMediaSize;\n };\n};\n\n/**\n * Body of `GET /api/v1/gifs/trending` and `GET /api/v1/gifs/search`.\n *\n * This is the GIF provider's page, passed through by social-api. Validation\n * only checks that `result` and `data` are present, so extra fields are kept.\n */\nexport type GifPageResponse = {\n result: boolean;\n data: {\n data?: GifItem[];\n current_page?: number;\n per_page?: number;\n has_next?: boolean;\n };\n};\n\n// ---------------------------------------------------------------------------\n// Controller state\n// ---------------------------------------------------------------------------\n\n/**\n * State managed by the SocialController.\n *\n * The controller acts as a simple store — no TTL or eviction logic.\n * The UI decides when to re-fetch; the social-api's own cache layer\n * handles upstream rate-limiting.\n */\nexport type SocialControllerState = {\n /** Cached ranked trader list from the last `updateLeaderboard` call. */\n leaderboardEntries: LeaderboardEntry[];\n /** Wallet addresses the current user follows. */\n followingAddresses: string[];\n /** Clicker profile IDs the current user follows — used by mobile UI. */\n followingProfileIds: string[];\n};\n"]}
|
package/dist/structs.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare const ProfileSummaryStruct: import("@metamask/superstruct").Struc
|
|
|
17
17
|
createdAt?: string | null | undefined;
|
|
18
18
|
updatedAt?: string | null | undefined;
|
|
19
19
|
connectedToX?: boolean | null | undefined;
|
|
20
|
+
verified?: boolean | null | undefined;
|
|
20
21
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
21
22
|
profileId: string;
|
|
22
23
|
address: string;
|
|
@@ -28,6 +29,7 @@ export declare const ProfileSummaryStruct: import("@metamask/superstruct").Struc
|
|
|
28
29
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
29
30
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
30
31
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
32
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
31
33
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
32
34
|
private: "private";
|
|
33
35
|
public: "public";
|
|
@@ -482,6 +484,7 @@ export declare const FeedItemStruct: import("@metamask/superstruct").Struct<{
|
|
|
482
484
|
createdAt?: string | null | undefined;
|
|
483
485
|
updatedAt?: string | null | undefined;
|
|
484
486
|
connectedToX?: boolean | null | undefined;
|
|
487
|
+
verified?: boolean | null | undefined;
|
|
485
488
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
486
489
|
profileId: string;
|
|
487
490
|
address: string;
|
|
@@ -739,6 +742,7 @@ export declare const FeedItemStruct: import("@metamask/superstruct").Struct<{
|
|
|
739
742
|
createdAt?: string | null | undefined;
|
|
740
743
|
updatedAt?: string | null | undefined;
|
|
741
744
|
connectedToX?: boolean | null | undefined;
|
|
745
|
+
verified?: boolean | null | undefined;
|
|
742
746
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
743
747
|
profileId: string;
|
|
744
748
|
address: string;
|
|
@@ -756,6 +760,7 @@ export declare const FeedItemStruct: import("@metamask/superstruct").Struct<{
|
|
|
756
760
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
757
761
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
758
762
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
763
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
759
764
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
760
765
|
private: "private";
|
|
761
766
|
public: "public";
|
|
@@ -868,6 +873,7 @@ export declare const TraderProfileStruct: import("@metamask/superstruct").Struct
|
|
|
868
873
|
createdAt?: string | null | undefined;
|
|
869
874
|
updatedAt?: string | null | undefined;
|
|
870
875
|
connectedToX?: boolean | null | undefined;
|
|
876
|
+
verified?: boolean | null | undefined;
|
|
871
877
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
872
878
|
profileId: string;
|
|
873
879
|
address: string;
|
|
@@ -880,6 +886,7 @@ export declare const TraderProfileStruct: import("@metamask/superstruct").Struct
|
|
|
880
886
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
881
887
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
882
888
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
889
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
883
890
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
884
891
|
private: "private";
|
|
885
892
|
public: "public";
|
|
@@ -944,6 +951,7 @@ export declare const TraderProfileResponseStruct: import("@metamask/superstruct"
|
|
|
944
951
|
createdAt?: string | null | undefined;
|
|
945
952
|
updatedAt?: string | null | undefined;
|
|
946
953
|
connectedToX?: boolean | null | undefined;
|
|
954
|
+
verified?: boolean | null | undefined;
|
|
947
955
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
948
956
|
profileId: string;
|
|
949
957
|
address: string;
|
|
@@ -992,6 +1000,7 @@ export declare const TraderProfileResponseStruct: import("@metamask/superstruct"
|
|
|
992
1000
|
createdAt?: string | null | undefined;
|
|
993
1001
|
updatedAt?: string | null | undefined;
|
|
994
1002
|
connectedToX?: boolean | null | undefined;
|
|
1003
|
+
verified?: boolean | null | undefined;
|
|
995
1004
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
996
1005
|
profileId: string;
|
|
997
1006
|
address: string;
|
|
@@ -1004,6 +1013,7 @@ export declare const TraderProfileResponseStruct: import("@metamask/superstruct"
|
|
|
1004
1013
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1005
1014
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1006
1015
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1016
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1007
1017
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
1008
1018
|
private: "private";
|
|
1009
1019
|
public: "public";
|
|
@@ -1094,6 +1104,7 @@ export declare const LeaderboardResponseStruct: import("@metamask/superstruct").
|
|
|
1094
1104
|
createdAt?: string | null | undefined;
|
|
1095
1105
|
updatedAt?: string | null | undefined;
|
|
1096
1106
|
connectedToX?: boolean | null | undefined;
|
|
1107
|
+
verified?: boolean | null | undefined;
|
|
1097
1108
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1098
1109
|
rank: number;
|
|
1099
1110
|
addresses: string[];
|
|
@@ -1126,6 +1137,7 @@ export declare const LeaderboardResponseStruct: import("@metamask/superstruct").
|
|
|
1126
1137
|
createdAt?: string | null | undefined;
|
|
1127
1138
|
updatedAt?: string | null | undefined;
|
|
1128
1139
|
connectedToX?: boolean | null | undefined;
|
|
1140
|
+
verified?: boolean | null | undefined;
|
|
1129
1141
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1130
1142
|
rank: number;
|
|
1131
1143
|
addresses: string[];
|
|
@@ -1156,6 +1168,7 @@ export declare const LeaderboardResponseStruct: import("@metamask/superstruct").
|
|
|
1156
1168
|
createdAt?: string | null | undefined;
|
|
1157
1169
|
updatedAt?: string | null | undefined;
|
|
1158
1170
|
connectedToX?: boolean | null | undefined;
|
|
1171
|
+
verified?: boolean | null | undefined;
|
|
1159
1172
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1160
1173
|
rank: number;
|
|
1161
1174
|
addresses: string[];
|
|
@@ -1186,6 +1199,7 @@ export declare const LeaderboardResponseStruct: import("@metamask/superstruct").
|
|
|
1186
1199
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1187
1200
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1188
1201
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1202
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1189
1203
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
1190
1204
|
private: "private";
|
|
1191
1205
|
public: "public";
|
|
@@ -1694,6 +1708,7 @@ export declare const FollowersResponseStruct: import("@metamask/superstruct").St
|
|
|
1694
1708
|
createdAt?: string | null | undefined;
|
|
1695
1709
|
updatedAt?: string | null | undefined;
|
|
1696
1710
|
connectedToX?: boolean | null | undefined;
|
|
1711
|
+
verified?: boolean | null | undefined;
|
|
1697
1712
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1698
1713
|
profileId: string;
|
|
1699
1714
|
address: string;
|
|
@@ -1708,6 +1723,7 @@ export declare const FollowersResponseStruct: import("@metamask/superstruct").St
|
|
|
1708
1723
|
createdAt?: string | null | undefined;
|
|
1709
1724
|
updatedAt?: string | null | undefined;
|
|
1710
1725
|
connectedToX?: boolean | null | undefined;
|
|
1726
|
+
verified?: boolean | null | undefined;
|
|
1711
1727
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1712
1728
|
profileId: string;
|
|
1713
1729
|
address: string;
|
|
@@ -1719,6 +1735,7 @@ export declare const FollowersResponseStruct: import("@metamask/superstruct").St
|
|
|
1719
1735
|
createdAt?: string | null | undefined;
|
|
1720
1736
|
updatedAt?: string | null | undefined;
|
|
1721
1737
|
connectedToX?: boolean | null | undefined;
|
|
1738
|
+
verified?: boolean | null | undefined;
|
|
1722
1739
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1723
1740
|
profileId: string;
|
|
1724
1741
|
address: string;
|
|
@@ -1730,6 +1747,7 @@ export declare const FollowersResponseStruct: import("@metamask/superstruct").St
|
|
|
1730
1747
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1731
1748
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1732
1749
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1750
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1733
1751
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
1734
1752
|
private: "private";
|
|
1735
1753
|
public: "public";
|
|
@@ -1748,6 +1766,7 @@ export declare const FollowingResponseStruct: import("@metamask/superstruct").St
|
|
|
1748
1766
|
createdAt?: string | null | undefined;
|
|
1749
1767
|
updatedAt?: string | null | undefined;
|
|
1750
1768
|
connectedToX?: boolean | null | undefined;
|
|
1769
|
+
verified?: boolean | null | undefined;
|
|
1751
1770
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1752
1771
|
profileId: string;
|
|
1753
1772
|
address: string;
|
|
@@ -1762,6 +1781,7 @@ export declare const FollowingResponseStruct: import("@metamask/superstruct").St
|
|
|
1762
1781
|
createdAt?: string | null | undefined;
|
|
1763
1782
|
updatedAt?: string | null | undefined;
|
|
1764
1783
|
connectedToX?: boolean | null | undefined;
|
|
1784
|
+
verified?: boolean | null | undefined;
|
|
1765
1785
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1766
1786
|
profileId: string;
|
|
1767
1787
|
address: string;
|
|
@@ -1773,6 +1793,7 @@ export declare const FollowingResponseStruct: import("@metamask/superstruct").St
|
|
|
1773
1793
|
createdAt?: string | null | undefined;
|
|
1774
1794
|
updatedAt?: string | null | undefined;
|
|
1775
1795
|
connectedToX?: boolean | null | undefined;
|
|
1796
|
+
verified?: boolean | null | undefined;
|
|
1776
1797
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1777
1798
|
profileId: string;
|
|
1778
1799
|
address: string;
|
|
@@ -1784,6 +1805,7 @@ export declare const FollowingResponseStruct: import("@metamask/superstruct").St
|
|
|
1784
1805
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1785
1806
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1786
1807
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1808
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1787
1809
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
1788
1810
|
private: "private";
|
|
1789
1811
|
public: "public";
|
|
@@ -1802,6 +1824,7 @@ export declare const FollowResponseStruct: import("@metamask/superstruct").Struc
|
|
|
1802
1824
|
createdAt?: string | null | undefined;
|
|
1803
1825
|
updatedAt?: string | null | undefined;
|
|
1804
1826
|
connectedToX?: boolean | null | undefined;
|
|
1827
|
+
verified?: boolean | null | undefined;
|
|
1805
1828
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1806
1829
|
profileId: string;
|
|
1807
1830
|
address: string;
|
|
@@ -1815,6 +1838,7 @@ export declare const FollowResponseStruct: import("@metamask/superstruct").Struc
|
|
|
1815
1838
|
createdAt?: string | null | undefined;
|
|
1816
1839
|
updatedAt?: string | null | undefined;
|
|
1817
1840
|
connectedToX?: boolean | null | undefined;
|
|
1841
|
+
verified?: boolean | null | undefined;
|
|
1818
1842
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1819
1843
|
profileId: string;
|
|
1820
1844
|
address: string;
|
|
@@ -1826,6 +1850,7 @@ export declare const FollowResponseStruct: import("@metamask/superstruct").Struc
|
|
|
1826
1850
|
createdAt?: string | null | undefined;
|
|
1827
1851
|
updatedAt?: string | null | undefined;
|
|
1828
1852
|
connectedToX?: boolean | null | undefined;
|
|
1853
|
+
verified?: boolean | null | undefined;
|
|
1829
1854
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1830
1855
|
profileId: string;
|
|
1831
1856
|
address: string;
|
|
@@ -1837,6 +1862,7 @@ export declare const FollowResponseStruct: import("@metamask/superstruct").Struc
|
|
|
1837
1862
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1838
1863
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1839
1864
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1865
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1840
1866
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
1841
1867
|
private: "private";
|
|
1842
1868
|
public: "public";
|
|
@@ -1854,6 +1880,7 @@ export declare const UnfollowResponseStruct: import("@metamask/superstruct").Str
|
|
|
1854
1880
|
createdAt?: string | null | undefined;
|
|
1855
1881
|
updatedAt?: string | null | undefined;
|
|
1856
1882
|
connectedToX?: boolean | null | undefined;
|
|
1883
|
+
verified?: boolean | null | undefined;
|
|
1857
1884
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1858
1885
|
profileId: string;
|
|
1859
1886
|
address: string;
|
|
@@ -1867,6 +1894,7 @@ export declare const UnfollowResponseStruct: import("@metamask/superstruct").Str
|
|
|
1867
1894
|
createdAt?: string | null | undefined;
|
|
1868
1895
|
updatedAt?: string | null | undefined;
|
|
1869
1896
|
connectedToX?: boolean | null | undefined;
|
|
1897
|
+
verified?: boolean | null | undefined;
|
|
1870
1898
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1871
1899
|
profileId: string;
|
|
1872
1900
|
address: string;
|
|
@@ -1878,6 +1906,7 @@ export declare const UnfollowResponseStruct: import("@metamask/superstruct").Str
|
|
|
1878
1906
|
createdAt?: string | null | undefined;
|
|
1879
1907
|
updatedAt?: string | null | undefined;
|
|
1880
1908
|
connectedToX?: boolean | null | undefined;
|
|
1909
|
+
verified?: boolean | null | undefined;
|
|
1881
1910
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1882
1911
|
profileId: string;
|
|
1883
1912
|
address: string;
|
|
@@ -1889,6 +1918,7 @@ export declare const UnfollowResponseStruct: import("@metamask/superstruct").Str
|
|
|
1889
1918
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1890
1919
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1891
1920
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1921
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1892
1922
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
1893
1923
|
private: "private";
|
|
1894
1924
|
public: "public";
|
|
@@ -1909,6 +1939,7 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
|
|
|
1909
1939
|
createdAt?: string | null | undefined;
|
|
1910
1940
|
updatedAt?: string | null | undefined;
|
|
1911
1941
|
connectedToX?: boolean | null | undefined;
|
|
1942
|
+
verified?: boolean | null | undefined;
|
|
1912
1943
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1913
1944
|
profileId: string;
|
|
1914
1945
|
address: string;
|
|
@@ -1927,6 +1958,7 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
|
|
|
1927
1958
|
createdAt?: string | null | undefined;
|
|
1928
1959
|
updatedAt?: string | null | undefined;
|
|
1929
1960
|
connectedToX?: boolean | null | undefined;
|
|
1961
|
+
verified?: boolean | null | undefined;
|
|
1930
1962
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1931
1963
|
profileId: string;
|
|
1932
1964
|
address: string;
|
|
@@ -1942,6 +1974,7 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
|
|
|
1942
1974
|
createdAt?: string | null | undefined;
|
|
1943
1975
|
updatedAt?: string | null | undefined;
|
|
1944
1976
|
connectedToX?: boolean | null | undefined;
|
|
1977
|
+
verified?: boolean | null | undefined;
|
|
1945
1978
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1946
1979
|
profileId: string;
|
|
1947
1980
|
address: string;
|
|
@@ -1957,6 +1990,7 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
|
|
|
1957
1990
|
createdAt?: string | null | undefined;
|
|
1958
1991
|
updatedAt?: string | null | undefined;
|
|
1959
1992
|
connectedToX?: boolean | null | undefined;
|
|
1993
|
+
verified?: boolean | null | undefined;
|
|
1960
1994
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1961
1995
|
profileId: string;
|
|
1962
1996
|
address: string;
|
|
@@ -1968,6 +2002,7 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
|
|
|
1968
2002
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1969
2003
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
1970
2004
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
2005
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
1971
2006
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
1972
2007
|
private: "private";
|
|
1973
2008
|
public: "public";
|
|
@@ -1994,6 +2029,7 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
|
|
|
1994
2029
|
createdAt?: string | null | undefined;
|
|
1995
2030
|
updatedAt?: string | null | undefined;
|
|
1996
2031
|
connectedToX?: boolean | null | undefined;
|
|
2032
|
+
verified?: boolean | null | undefined;
|
|
1997
2033
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
1998
2034
|
profileId: string;
|
|
1999
2035
|
address: string;
|
|
@@ -2016,6 +2052,7 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
|
|
|
2016
2052
|
createdAt?: string | null | undefined;
|
|
2017
2053
|
updatedAt?: string | null | undefined;
|
|
2018
2054
|
connectedToX?: boolean | null | undefined;
|
|
2055
|
+
verified?: boolean | null | undefined;
|
|
2019
2056
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
2020
2057
|
profileId: string;
|
|
2021
2058
|
address: string;
|
|
@@ -2035,6 +2072,7 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
|
|
|
2035
2072
|
createdAt?: string | null | undefined;
|
|
2036
2073
|
updatedAt?: string | null | undefined;
|
|
2037
2074
|
connectedToX?: boolean | null | undefined;
|
|
2075
|
+
verified?: boolean | null | undefined;
|
|
2038
2076
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
2039
2077
|
profileId: string;
|
|
2040
2078
|
address: string;
|
|
@@ -2057,6 +2095,7 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
|
|
|
2057
2095
|
createdAt?: string | null | undefined;
|
|
2058
2096
|
updatedAt?: string | null | undefined;
|
|
2059
2097
|
connectedToX?: boolean | null | undefined;
|
|
2098
|
+
verified?: boolean | null | undefined;
|
|
2060
2099
|
tradingPrivacy?: "private" | "public" | null | undefined;
|
|
2061
2100
|
profileId: string;
|
|
2062
2101
|
address: string;
|
|
@@ -2068,6 +2107,7 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
|
|
|
2068
2107
|
createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
2069
2108
|
updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
|
|
2070
2109
|
connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
2110
|
+
verified: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
|
|
2071
2111
|
tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
|
|
2072
2112
|
private: "private";
|
|
2073
2113
|
public: "public";
|
package/dist/structs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structs.d.ts","sourceRoot":"","sources":["../src/structs.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,mBAAmB;;;;;;;;;;EAK9B,CAAC;AAIH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"structs.d.ts","sourceRoot":"","sources":["../src/structs.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,mBAAmB;;;;;;;;;;EAK9B,CAAC;AAIH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAcH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BzB,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;EAGnC,CAAC;A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