@noya-ai/data-server-schemas 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +25 -0
  3. package/dist/alternative/schemas.cjs +44 -0
  4. package/dist/alternative/schemas.d.cts +2 -0
  5. package/dist/alternative/schemas.d.ts +2 -0
  6. package/dist/alternative/schemas.js +11 -0
  7. package/dist/batch/schemas.cjs +73 -0
  8. package/dist/batch/schemas.d.cts +2 -0
  9. package/dist/batch/schemas.d.ts +2 -0
  10. package/dist/batch/schemas.js +17 -0
  11. package/dist/chunk-BWY4ZL7E.js +142 -0
  12. package/dist/chunk-C3YNWX7W.js +256 -0
  13. package/dist/chunk-DKMPZFSH.js +29 -0
  14. package/dist/chunk-KLRIACSR.js +162 -0
  15. package/dist/chunk-MECUVGQT.js +203 -0
  16. package/dist/chunk-MLKGABMK.js +9 -0
  17. package/dist/chunk-PHNEQDUP.js +89 -0
  18. package/dist/chunk-ROAH5BN3.js +58 -0
  19. package/dist/chunk-VK45O334.js +129 -0
  20. package/dist/chunk-W5SLY2ZT.js +134 -0
  21. package/dist/chunk-ZP2HSALI.js +150 -0
  22. package/dist/chunk-ZTOGXNAW.js +198 -0
  23. package/dist/coingecko/schemas.cjs +177 -0
  24. package/dist/coingecko/schemas.d.cts +2 -0
  25. package/dist/coingecko/schemas.d.ts +2 -0
  26. package/dist/coingecko/schemas.js +43 -0
  27. package/dist/coinglass/schemas.cjs +213 -0
  28. package/dist/coinglass/schemas.d.cts +2 -0
  29. package/dist/coinglass/schemas.d.ts +2 -0
  30. package/dist/coinglass/schemas.js +63 -0
  31. package/dist/composite/schemas.cjs +144 -0
  32. package/dist/composite/schemas.d.cts +2 -0
  33. package/dist/composite/schemas.d.ts +2 -0
  34. package/dist/composite/schemas.js +23 -0
  35. package/dist/cryptonews/schemas.cjs +104 -0
  36. package/dist/cryptonews/schemas.d.cts +2 -0
  37. package/dist/cryptonews/schemas.d.ts +2 -0
  38. package/dist/cryptonews/schemas.js +23 -0
  39. package/dist/defillama/schemas.cjs +157 -0
  40. package/dist/defillama/schemas.d.cts +2 -0
  41. package/dist/defillama/schemas.d.ts +2 -0
  42. package/dist/defillama/schemas.js +37 -0
  43. package/dist/geckoterminal/schemas.cjs +149 -0
  44. package/dist/geckoterminal/schemas.d.cts +2 -0
  45. package/dist/geckoterminal/schemas.d.ts +2 -0
  46. package/dist/geckoterminal/schemas.js +33 -0
  47. package/dist/index.cjs +1359 -0
  48. package/dist/index.d.cts +12 -0
  49. package/dist/index.d.ts +12 -0
  50. package/dist/index.js +47 -0
  51. package/dist/kaito/schemas.cjs +218 -0
  52. package/dist/kaito/schemas.d.cts +2 -0
  53. package/dist/kaito/schemas.d.ts +2 -0
  54. package/dist/kaito/schemas.js +45 -0
  55. package/dist/moralis/schemas.cjs +165 -0
  56. package/dist/moralis/schemas.d.cts +2 -0
  57. package/dist/moralis/schemas.d.ts +2 -0
  58. package/dist/moralis/schemas.js +29 -0
  59. package/dist/noya/schemas.cjs +271 -0
  60. package/dist/noya/schemas.d.cts +2 -0
  61. package/dist/noya/schemas.d.ts +2 -0
  62. package/dist/noya/schemas.js +57 -0
  63. package/dist/schemas-6ZorQZBC.d.cts +435 -0
  64. package/dist/schemas-6ZorQZBC.d.ts +435 -0
  65. package/dist/schemas-BMeKj9pe.d.cts +832 -0
  66. package/dist/schemas-BMeKj9pe.d.ts +832 -0
  67. package/dist/schemas-BYLoGYNO.d.cts +52 -0
  68. package/dist/schemas-BYLoGYNO.d.ts +52 -0
  69. package/dist/schemas-Bbz-itbI.d.cts +387 -0
  70. package/dist/schemas-Bbz-itbI.d.ts +387 -0
  71. package/dist/schemas-CAn6VbI-.d.cts +240 -0
  72. package/dist/schemas-CAn6VbI-.d.ts +240 -0
  73. package/dist/schemas-CNeb4DA4.d.cts +432 -0
  74. package/dist/schemas-CNeb4DA4.d.ts +432 -0
  75. package/dist/schemas-Cu7LkQN1.d.cts +466 -0
  76. package/dist/schemas-Cu7LkQN1.d.ts +466 -0
  77. package/dist/schemas-D4yPHF06.d.cts +481 -0
  78. package/dist/schemas-D4yPHF06.d.ts +481 -0
  79. package/dist/schemas-Doa7hG7U.d.cts +630 -0
  80. package/dist/schemas-Doa7hG7U.d.ts +630 -0
  81. package/dist/schemas-TYWQmRZI.d.cts +519 -0
  82. package/dist/schemas-TYWQmRZI.d.ts +519 -0
  83. package/dist/schemas-hrS1Vfcr.d.cts +255 -0
  84. package/dist/schemas-hrS1Vfcr.d.ts +255 -0
  85. package/package.json +93 -0
@@ -0,0 +1,12 @@
1
+ export { s as alternative } from './schemas-BYLoGYNO.cjs';
2
+ export { s as batch } from './schemas-CAn6VbI-.cjs';
3
+ export { s as coingecko } from './schemas-Cu7LkQN1.cjs';
4
+ export { s as coinglass } from './schemas-Doa7hG7U.cjs';
5
+ export { s as composite } from './schemas-CNeb4DA4.cjs';
6
+ export { s as cryptonews } from './schemas-hrS1Vfcr.cjs';
7
+ export { s as defillama } from './schemas-Bbz-itbI.cjs';
8
+ export { s as geckoterminal } from './schemas-TYWQmRZI.cjs';
9
+ export { s as kaito } from './schemas-6ZorQZBC.cjs';
10
+ export { s as moralis } from './schemas-D4yPHF06.cjs';
11
+ export { s as noya } from './schemas-BMeKj9pe.cjs';
12
+ import 'zod';
@@ -0,0 +1,12 @@
1
+ export { s as alternative } from './schemas-BYLoGYNO.js';
2
+ export { s as batch } from './schemas-CAn6VbI-.js';
3
+ export { s as coingecko } from './schemas-Cu7LkQN1.js';
4
+ export { s as coinglass } from './schemas-Doa7hG7U.js';
5
+ export { s as composite } from './schemas-CNeb4DA4.js';
6
+ export { s as cryptonews } from './schemas-hrS1Vfcr.js';
7
+ export { s as defillama } from './schemas-Bbz-itbI.js';
8
+ export { s as geckoterminal } from './schemas-TYWQmRZI.js';
9
+ export { s as kaito } from './schemas-6ZorQZBC.js';
10
+ export { s as moralis } from './schemas-D4yPHF06.js';
11
+ export { s as noya } from './schemas-BMeKj9pe.js';
12
+ import 'zod';
package/dist/index.js ADDED
@@ -0,0 +1,47 @@
1
+ import {
2
+ schemas_exports as schemas_exports8
3
+ } from "./chunk-W5SLY2ZT.js";
4
+ import {
5
+ schemas_exports as schemas_exports9
6
+ } from "./chunk-MECUVGQT.js";
7
+ import {
8
+ schemas_exports as schemas_exports10
9
+ } from "./chunk-ZP2HSALI.js";
10
+ import {
11
+ schemas_exports as schemas_exports11
12
+ } from "./chunk-C3YNWX7W.js";
13
+ import {
14
+ schemas_exports
15
+ } from "./chunk-DKMPZFSH.js";
16
+ import {
17
+ schemas_exports as schemas_exports2
18
+ } from "./chunk-ROAH5BN3.js";
19
+ import {
20
+ schemas_exports as schemas_exports3
21
+ } from "./chunk-KLRIACSR.js";
22
+ import {
23
+ schemas_exports as schemas_exports4
24
+ } from "./chunk-ZTOGXNAW.js";
25
+ import {
26
+ schemas_exports as schemas_exports5
27
+ } from "./chunk-VK45O334.js";
28
+ import {
29
+ schemas_exports as schemas_exports6
30
+ } from "./chunk-PHNEQDUP.js";
31
+ import {
32
+ schemas_exports as schemas_exports7
33
+ } from "./chunk-BWY4ZL7E.js";
34
+ import "./chunk-MLKGABMK.js";
35
+ export {
36
+ schemas_exports as alternative,
37
+ schemas_exports2 as batch,
38
+ schemas_exports3 as coingecko,
39
+ schemas_exports4 as coinglass,
40
+ schemas_exports5 as composite,
41
+ schemas_exports6 as cryptonews,
42
+ schemas_exports7 as defillama,
43
+ schemas_exports8 as geckoterminal,
44
+ schemas_exports9 as kaito,
45
+ schemas_exports10 as moralis,
46
+ schemas_exports11 as noya
47
+ };
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/kaito/schemas.ts
21
+ var schemas_exports = {};
22
+ __export(schemas_exports, {
23
+ AdvancedSearchBody: () => AdvancedSearchBody,
24
+ EngagementBody: () => EngagementBody,
25
+ EntitiesQuery: () => EntitiesQuery,
26
+ EventsBody: () => EventsBody,
27
+ FeedsBody: () => FeedsBody,
28
+ KaitoResponse: () => KaitoResponse,
29
+ KolMindshareBody: () => KolMindshareBody,
30
+ MarketSmartFollowingBody: () => MarketSmartFollowingBody,
31
+ MentionsBody: () => MentionsBody,
32
+ MindshareArenaBody: () => MindshareArenaBody,
33
+ MindshareBody: () => MindshareBody,
34
+ MindshareDeltaBody: () => MindshareDeltaBody,
35
+ MindshareNarrativeBody: () => MindshareNarrativeBody,
36
+ NarrativesQuery: () => NarrativesQuery,
37
+ SearchBody: () => SearchBody,
38
+ SentimentBody: () => SentimentBody,
39
+ SmartFollowersBody: () => SmartFollowersBody,
40
+ SmartFollowingBody: () => SmartFollowingBody,
41
+ TweetEngagementBody: () => TweetEngagementBody,
42
+ TwitterUserMetadataBody: () => TwitterUserMetadataBody
43
+ });
44
+ module.exports = __toCommonJS(schemas_exports);
45
+ var import_zod = require("zod");
46
+ var dateString = (note) => import_zod.z.string().optional().describe(note);
47
+ var sortOrder = import_zod.z.enum(["asc", "desc"]).optional().describe("Sort direction for the result list.");
48
+ var EntitiesQuery = import_zod.z.object({
49
+ query: import_zod.z.string().optional().describe("Free-text filter for entity names. Omit to list all."),
50
+ limit: import_zod.z.coerce.number().int().min(1).max(100).optional().describe("Max entities to return (1\u2013100).")
51
+ });
52
+ var NarrativesQuery = import_zod.z.object({
53
+ query: import_zod.z.string().optional().describe("Free-text filter for narrative names. Omit to list all."),
54
+ limit: import_zod.z.coerce.number().int().min(1).max(100).optional().describe("Max narratives to return (1\u2013100).")
55
+ });
56
+ var SearchBody = import_zod.z.object({
57
+ query: import_zod.z.string().min(1).describe("Free-text search query across tweets, narratives, and entities."),
58
+ size: import_zod.z.number().int().min(1).max(50).optional().describe("Result page size (1\u201350). Default 10.")
59
+ });
60
+ var AdvancedSearchBody = import_zod.z.object({
61
+ tokens: import_zod.z.string().optional().describe("Comma-separated token symbols to filter tweets to (e.g. `BTC,ETH`)."),
62
+ keyword: import_zod.z.string().optional().describe("Keyword filter \u2014 substring-matched against tweet text."),
63
+ query: import_zod.z.string().optional().describe("Semantic search query."),
64
+ usernames: import_zod.z.string().optional().describe("Comma-separated Twitter usernames to filter to."),
65
+ sources: import_zod.z.string().optional().describe("Comma-separated source filters."),
66
+ min_created_at: dateString("ISO 8601 \u2014 earliest tweet creation time."),
67
+ max_created_at: dateString("ISO 8601 \u2014 latest tweet creation time."),
68
+ from: import_zod.z.number().optional().describe("Result offset for pagination."),
69
+ size: import_zod.z.number().optional().describe("Page size."),
70
+ languages: import_zod.z.string().optional().describe("Comma-separated language codes (e.g. `en,zh`)."),
71
+ sort_by: import_zod.z.enum([
72
+ "relevance",
73
+ "created_at",
74
+ "engagement",
75
+ "smart_engagement",
76
+ "author",
77
+ "length",
78
+ "bookmark",
79
+ "sentiment",
80
+ "views"
81
+ ]).optional().describe("Field to sort by."),
82
+ sort_order: sortOrder,
83
+ tweet_length_type: import_zod.z.enum(["short", "long", "thread", "article"]).optional().describe("Filter by tweet length category."),
84
+ tweet_type: import_zod.z.enum(["tweet", "quote", "reply"]).optional().describe("Filter by tweet shape."),
85
+ sentiment_type: import_zod.z.enum(["bullish", "bearish", "neutral"]).optional().describe("Filter by Kaito's sentiment classification."),
86
+ author_type: import_zod.z.enum(["Organization", "Individual"]).optional().describe("Filter by author classification."),
87
+ min_bookmark_count: import_zod.z.number().optional().describe("Minimum bookmark count threshold."),
88
+ max_bookmark_count: import_zod.z.number().optional().describe("Maximum bookmark count threshold."),
89
+ min_view_count: import_zod.z.number().optional().describe("Minimum view count threshold."),
90
+ max_view_count: import_zod.z.number().optional().describe("Maximum view count threshold."),
91
+ min_smart_engagement_count: import_zod.z.number().optional().describe("Minimum smart-follower engagement count."),
92
+ max_smart_engagement_count: import_zod.z.number().optional().describe("Maximum smart-follower engagement count."),
93
+ min_like_count: import_zod.z.number().optional().describe("Minimum like count threshold."),
94
+ max_like_count: import_zod.z.number().optional().describe("Maximum like count threshold."),
95
+ min_reply_count: import_zod.z.number().optional().describe("Minimum reply count threshold."),
96
+ max_reply_count: import_zod.z.number().optional().describe("Maximum reply count threshold."),
97
+ min_retweet_count: import_zod.z.number().optional().describe("Minimum retweet count threshold."),
98
+ max_retweet_count: import_zod.z.number().optional().describe("Maximum retweet count threshold."),
99
+ min_quote_count: import_zod.z.number().optional().describe("Minimum quote-tweet count threshold."),
100
+ max_quote_count: import_zod.z.number().optional().describe("Maximum quote-tweet count threshold.")
101
+ });
102
+ var TweetEngagementBody = import_zod.z.object({
103
+ tweet_id: import_zod.z.string().min(1).describe("Twitter status ID (numeric, as a string).")
104
+ });
105
+ var FeedsBody = import_zod.z.object({
106
+ token: import_zod.z.string().optional().describe("Token symbol to filter feed to (e.g. `BTC`). Omit for all."),
107
+ min_created_at: dateString("ISO 8601 \u2014 earliest tweet creation time."),
108
+ max_created_at: dateString("ISO 8601 \u2014 latest tweet creation time."),
109
+ size: import_zod.z.number().int().min(1).max(50).optional().describe("Page size (1\u201350).")
110
+ });
111
+ var SentimentBody = import_zod.z.object({
112
+ token: import_zod.z.string().min(1).describe("Token symbol to compute sentiment for (e.g. `BTC`)."),
113
+ start_date: dateString("ISO 8601 \u2014 earliest date in the analysis window."),
114
+ end_date: dateString("ISO 8601 \u2014 latest date in the analysis window."),
115
+ adjusted: import_zod.z.boolean().optional().describe("Apply Kaito's bot/spam adjustment."),
116
+ average: import_zod.z.boolean().optional().describe("Return rolling average vs raw daily values."),
117
+ gaussian: import_zod.z.boolean().optional().describe("Apply Gaussian smoothing to the time series."),
118
+ language: import_zod.z.enum(["all", "en", "zh", "ko", "others"]).optional().describe("Restrict source tweets to one language."),
119
+ version: import_zod.z.enum(["2", "3"]).optional().describe("Sentiment model version. Default to v3 (latest).")
120
+ });
121
+ var EngagementBody = import_zod.z.object({
122
+ token: import_zod.z.string().optional().describe("Token symbol filter. Mutually exclusive with `keyword`."),
123
+ keyword: import_zod.z.string().optional().describe("Keyword filter. Mutually exclusive with `token`."),
124
+ start_date: dateString("ISO 8601 \u2014 start date for the engagement window."),
125
+ end_date: dateString("ISO 8601 \u2014 end date for the engagement window.")
126
+ });
127
+ var MentionsBody = EngagementBody;
128
+ var MindshareBody = import_zod.z.object({
129
+ token: import_zod.z.string().min(1).describe("Token symbol to compute mindshare for."),
130
+ start_date: dateString("ISO 8601 \u2014 earliest date in the analysis window."),
131
+ end_date: dateString("ISO 8601 \u2014 latest date in the analysis window."),
132
+ scope: import_zod.z.string().optional().describe("Optional scope filter (e.g. narrative or category).")
133
+ });
134
+ var MindshareArenaBody = import_zod.z.object({
135
+ duration: import_zod.z.enum(["all", "24h", "48h", "7d", "30d", "3m", "6m", "12m"]).optional().describe("Mindshare measurement window."),
136
+ language: import_zod.z.enum(["all", "en", "zh", "ko", "others"]).optional().describe("Restrict tweets to one language."),
137
+ categories: import_zod.z.enum(["EXCHANGE", "INFOMKT"]).optional().describe("Restrict to a single arena category."),
138
+ pre_tge: import_zod.z.boolean().optional().describe("Include pre-TGE projects in the leaderboard."),
139
+ ex_official: import_zod.z.boolean().optional().describe("Exclude tweets from official project accounts."),
140
+ weighted: import_zod.z.boolean().optional().describe("Use Kaito's weighted-by-author-influence score."),
141
+ nft: import_zod.z.boolean().optional().describe("Restrict to NFT projects.")
142
+ });
143
+ var MindshareDeltaBody = import_zod.z.object({
144
+ duration: import_zod.z.enum(["24h", "48h", "7d", "30d", "3m", "6m", "12m", "all"]).optional().describe("Window over which to compute the mindshare delta."),
145
+ sort_type: import_zod.z.enum(["desc", "asc"]).optional().describe("Sort by largest delta first (`desc`) or smallest (`asc`)."),
146
+ limit: import_zod.z.number().int().positive().optional().describe("Max projects to return.")
147
+ });
148
+ var MindshareNarrativeBody = import_zod.z.object({
149
+ narrative: import_zod.z.string().min(1).describe("Narrative slug (e.g. `RWA`, `AI`, `meme`)."),
150
+ start_date: dateString("ISO 8601 \u2014 earliest date in the analysis window."),
151
+ end_date: dateString("ISO 8601 \u2014 latest date in the analysis window.")
152
+ });
153
+ var KolMindshareBody = import_zod.z.object({
154
+ token: import_zod.z.string().min(1).describe("Token symbol to attribute KOL mindshare to."),
155
+ duration: import_zod.z.enum(["24h", "48h", "7d", "30d", "3m", "6m", "12m", "all"]).optional().describe("KOL mindshare window."),
156
+ top_n: import_zod.z.number().int().positive().optional().describe("Top N KOLs to return.")
157
+ });
158
+ var EventsBody = import_zod.z.object({
159
+ token: import_zod.z.string().min(1).describe("Token symbol to filter events for."),
160
+ start_date: dateString("ISO 8601 \u2014 earliest event date."),
161
+ end_date: dateString("ISO 8601 \u2014 latest event date."),
162
+ min_announcement_date: dateString("ISO 8601 \u2014 earliest announcement date."),
163
+ max_announcement_date: dateString("ISO 8601 \u2014 latest announcement date."),
164
+ event_types: import_zod.z.string().optional().describe("Comma-separated event-type filters."),
165
+ sources: import_zod.z.string().optional().describe("Comma-separated source filters."),
166
+ sort_by: import_zod.z.enum(["event_date", "project_name", "market_cap", "announcement_date"]).optional().describe("Sort field."),
167
+ sort_order: sortOrder
168
+ });
169
+ var TwitterUserMetadataBody = import_zod.z.object({
170
+ user_id: import_zod.z.string().min(1).describe("Twitter user ID (numeric, as a string).")
171
+ });
172
+ var MarketSmartFollowingBody = import_zod.z.object({
173
+ duration: import_zod.z.enum(["24h", "48h", "7d", "30d", "all_dates"]).optional().describe("Window for the smart-following analysis."),
174
+ from: import_zod.z.number().optional().describe("Result offset for pagination."),
175
+ sort_by: import_zod.z.enum(["earliest_time", "smart_followers", "followers_change", "change_ratio"]).optional().describe("Sort field."),
176
+ sort_order: sortOrder,
177
+ filter_smart_followers_operator: import_zod.z.enum(["gte", "lte"]).optional().describe("Comparison operator for `filter_smart_followers_value`."),
178
+ filter_smart_followers_value: import_zod.z.number().optional().describe("Threshold for smart-follower count filter."),
179
+ user_status: import_zod.z.enum(["new", "existing", "all"]).optional().describe("Filter to newly-tracked vs existing users."),
180
+ user_tag_individual_or_organization: import_zod.z.enum(["Individual", "Organization", "all"]).optional().describe("Filter by author classification."),
181
+ user_type: import_zod.z.enum(["kkol", "non_kkol", "all"]).optional().describe("Restrict to Kaito KOLs (`kkol`), non-KOLs, or both."),
182
+ user_web3_relevance: import_zod.z.enum(["relevant", "irrelevant"]).optional().describe("Restrict to web3-relevant users.")
183
+ });
184
+ var SmartFollowersBody = import_zod.z.object({
185
+ user_id: import_zod.z.string().optional().describe("Twitter user ID (numeric, as a string). Provide this OR `username`."),
186
+ username: import_zod.z.string().optional().describe("Twitter handle without the `@`. Provide this OR `user_id`."),
187
+ date: import_zod.z.string().optional().describe("ISO 8601 date \u2014 pin the smart-follower snapshot."),
188
+ mode: import_zod.z.enum(["count", "users"]).optional().describe("`count` returns just the number; `users` returns the full list of follower handles.")
189
+ }).refine((v) => !!(v.user_id || v.username), "user_id or username required");
190
+ var SmartFollowingBody = import_zod.z.object({
191
+ user_id: import_zod.z.string().optional().describe("Twitter user ID (numeric, as a string). Provide this OR `username`."),
192
+ username: import_zod.z.string().optional().describe("Twitter handle without the `@`. Provide this OR `user_id`."),
193
+ category: import_zod.z.enum(["ALL", "Organization", "Individual"]).optional().describe("Restrict the followed-by-smart-followers list to a category.")
194
+ }).refine((v) => !!(v.user_id || v.username), "user_id or username required");
195
+ var KaitoResponse = import_zod.z.unknown();
196
+ // Annotate the CommonJS export names for ESM import in node:
197
+ 0 && (module.exports = {
198
+ AdvancedSearchBody,
199
+ EngagementBody,
200
+ EntitiesQuery,
201
+ EventsBody,
202
+ FeedsBody,
203
+ KaitoResponse,
204
+ KolMindshareBody,
205
+ MarketSmartFollowingBody,
206
+ MentionsBody,
207
+ MindshareArenaBody,
208
+ MindshareBody,
209
+ MindshareDeltaBody,
210
+ MindshareNarrativeBody,
211
+ NarrativesQuery,
212
+ SearchBody,
213
+ SentimentBody,
214
+ SmartFollowersBody,
215
+ SmartFollowingBody,
216
+ TweetEngagementBody,
217
+ TwitterUserMetadataBody
218
+ });
@@ -0,0 +1,2 @@
1
+ import 'zod';
2
+ export { A as AdvancedSearchBody, E as EngagementBody, a as EntitiesQuery, b as EventsBody, F as FeedsBody, K as KaitoResponse, c as KolMindshareBody, M as MarketSmartFollowingBody, d as MentionsBody, e as MindshareArenaBody, f as MindshareBody, g as MindshareDeltaBody, h as MindshareNarrativeBody, N as NarrativesQuery, S as SearchBody, i as SentimentBody, j as SmartFollowersBody, k as SmartFollowingBody, T as TweetEngagementBody, l as TwitterUserMetadataBody } from '../schemas-6ZorQZBC.cjs';
@@ -0,0 +1,2 @@
1
+ import 'zod';
2
+ export { A as AdvancedSearchBody, E as EngagementBody, a as EntitiesQuery, b as EventsBody, F as FeedsBody, K as KaitoResponse, c as KolMindshareBody, M as MarketSmartFollowingBody, d as MentionsBody, e as MindshareArenaBody, f as MindshareBody, g as MindshareDeltaBody, h as MindshareNarrativeBody, N as NarrativesQuery, S as SearchBody, i as SentimentBody, j as SmartFollowersBody, k as SmartFollowingBody, T as TweetEngagementBody, l as TwitterUserMetadataBody } from '../schemas-6ZorQZBC.js';
@@ -0,0 +1,45 @@
1
+ import {
2
+ AdvancedSearchBody,
3
+ EngagementBody,
4
+ EntitiesQuery,
5
+ EventsBody,
6
+ FeedsBody,
7
+ KaitoResponse,
8
+ KolMindshareBody,
9
+ MarketSmartFollowingBody,
10
+ MentionsBody,
11
+ MindshareArenaBody,
12
+ MindshareBody,
13
+ MindshareDeltaBody,
14
+ MindshareNarrativeBody,
15
+ NarrativesQuery,
16
+ SearchBody,
17
+ SentimentBody,
18
+ SmartFollowersBody,
19
+ SmartFollowingBody,
20
+ TweetEngagementBody,
21
+ TwitterUserMetadataBody
22
+ } from "../chunk-MECUVGQT.js";
23
+ import "../chunk-MLKGABMK.js";
24
+ export {
25
+ AdvancedSearchBody,
26
+ EngagementBody,
27
+ EntitiesQuery,
28
+ EventsBody,
29
+ FeedsBody,
30
+ KaitoResponse,
31
+ KolMindshareBody,
32
+ MarketSmartFollowingBody,
33
+ MentionsBody,
34
+ MindshareArenaBody,
35
+ MindshareBody,
36
+ MindshareDeltaBody,
37
+ MindshareNarrativeBody,
38
+ NarrativesQuery,
39
+ SearchBody,
40
+ SentimentBody,
41
+ SmartFollowersBody,
42
+ SmartFollowingBody,
43
+ TweetEngagementBody,
44
+ TwitterUserMetadataBody
45
+ };
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/moralis/schemas.ts
21
+ var schemas_exports = {};
22
+ __export(schemas_exports, {
23
+ DefiPosition: () => DefiPosition,
24
+ DefiPositionsBody: () => DefiPositionsBody,
25
+ DefiPositionsResponse: () => DefiPositionsResponse,
26
+ NftHoldingsBody: () => NftHoldingsBody,
27
+ NftHoldingsResponse: () => NftHoldingsResponse,
28
+ NftItem: () => NftItem,
29
+ TokenTransfer: () => TokenTransfer,
30
+ TransfersBody: () => TransfersBody,
31
+ TransfersResponse: () => TransfersResponse,
32
+ WalletBody: () => WalletBody,
33
+ WalletResponse: () => WalletResponse,
34
+ WalletTokenBalance: () => WalletTokenBalance
35
+ });
36
+ module.exports = __toCommonJS(schemas_exports);
37
+ var import_zod = require("zod");
38
+ var CHAIN_NAMES = {
39
+ eth: "0x1",
40
+ ethereum: "0x1",
41
+ bsc: "0x38",
42
+ bnb: "0x38",
43
+ polygon: "0x89",
44
+ matic: "0x89",
45
+ arbitrum: "0xa4b1",
46
+ optimism: "0xa",
47
+ base: "0x2105",
48
+ avalanche: "0xa86a",
49
+ avax: "0xa86a",
50
+ fantom: "0xfa",
51
+ ftm: "0xfa",
52
+ linea: "0xe708"
53
+ };
54
+ var evmChainId = import_zod.z.string().default("0x1").transform((val) => CHAIN_NAMES[val.toLowerCase()] ?? val).describe(
55
+ "EVM chain \u2014 accepts a friendly name (`eth`, `base`, `polygon`, `arbitrum`, \u2026) or a hex chain id (`0x1`, `0x2105`, \u2026). Defaults to Ethereum mainnet."
56
+ );
57
+ var evmAddress = import_zod.z.string().regex(/^0x[a-fA-F0-9]{40}$/).describe("EVM-style 0x-prefixed 40-hex-char address.");
58
+ var WalletBody = import_zod.z.object({
59
+ address: evmAddress,
60
+ chain: evmChainId.optional(),
61
+ toBlock: import_zod.z.number().int().optional().describe("Snapshot the wallet at this block height. Omit for the current head.")
62
+ });
63
+ var WalletTokenBalance = import_zod.z.object({
64
+ tokenAddress: import_zod.z.string().nullable(),
65
+ name: import_zod.z.string(),
66
+ symbol: import_zod.z.string(),
67
+ decimals: import_zod.z.number(),
68
+ balance: import_zod.z.string(),
69
+ balanceFormatted: import_zod.z.string(),
70
+ usdPrice: import_zod.z.number().nullable(),
71
+ usdValue: import_zod.z.number().nullable(),
72
+ portfolioPercentage: import_zod.z.number(),
73
+ nativeToken: import_zod.z.boolean(),
74
+ logo: import_zod.z.string().nullable()
75
+ });
76
+ var WalletResponse = import_zod.z.object({
77
+ address: import_zod.z.string(),
78
+ totalNetworthUsd: import_zod.z.string(),
79
+ chains: import_zod.z.array(
80
+ import_zod.z.object({
81
+ chain: import_zod.z.string(),
82
+ networthUsd: import_zod.z.string(),
83
+ nativeBalanceFormatted: import_zod.z.string(),
84
+ tokenBalanceUsd: import_zod.z.string()
85
+ })
86
+ ),
87
+ tokens: import_zod.z.array(WalletTokenBalance)
88
+ });
89
+ var TransfersBody = import_zod.z.object({
90
+ address: evmAddress,
91
+ chain: evmChainId.optional(),
92
+ limit: import_zod.z.number().max(100).default(50).describe("Transfers per page (max 100)."),
93
+ fromDate: import_zod.z.string().optional().describe("ISO 8601 (or YYYY-MM-DD) start date \u2014 only return transfers after this date."),
94
+ toDate: import_zod.z.string().optional().describe("ISO 8601 (or YYYY-MM-DD) end date \u2014 only return transfers before this date."),
95
+ cursor: import_zod.z.string().optional().describe("Opaque pagination cursor from the previous response. Omit for page 1.")
96
+ });
97
+ var TokenTransfer = import_zod.z.object({
98
+ tokenAddress: import_zod.z.string(),
99
+ tokenName: import_zod.z.string().nullable(),
100
+ tokenSymbol: import_zod.z.string().nullable(),
101
+ tokenDecimals: import_zod.z.number(),
102
+ fromAddress: import_zod.z.string(),
103
+ toAddress: import_zod.z.string(),
104
+ value: import_zod.z.string(),
105
+ valueFormatted: import_zod.z.string().nullable(),
106
+ blockTimestamp: import_zod.z.string(),
107
+ blockNumber: import_zod.z.string(),
108
+ transactionHash: import_zod.z.string()
109
+ });
110
+ var TransfersResponse = import_zod.z.object({
111
+ transfers: import_zod.z.array(TokenTransfer),
112
+ cursor: import_zod.z.string().nullable()
113
+ });
114
+ var DefiPositionsBody = import_zod.z.object({
115
+ address: evmAddress,
116
+ chain: evmChainId.optional()
117
+ });
118
+ var DefiPosition = import_zod.z.object({
119
+ protocolName: import_zod.z.string().nullable(),
120
+ protocolId: import_zod.z.string().nullable(),
121
+ protocolUrl: import_zod.z.string().nullable(),
122
+ protocolLogo: import_zod.z.string().nullable(),
123
+ label: import_zod.z.string().nullable(),
124
+ balanceUsd: import_zod.z.number().nullable(),
125
+ totalUnclaimedUsdValue: import_zod.z.number().nullable(),
126
+ tokens: import_zod.z.array(import_zod.z.unknown())
127
+ });
128
+ var DefiPositionsResponse = import_zod.z.array(DefiPosition);
129
+ var NftHoldingsBody = import_zod.z.object({
130
+ address: evmAddress,
131
+ chain: evmChainId.optional(),
132
+ limit: import_zod.z.number().max(100).default(50).describe("NFTs per page (max 100)."),
133
+ cursor: import_zod.z.string().optional().describe("Opaque pagination cursor from the previous response. Omit for page 1.")
134
+ });
135
+ var NftItem = import_zod.z.object({
136
+ tokenAddress: import_zod.z.string(),
137
+ tokenId: import_zod.z.string(),
138
+ contractType: import_zod.z.string().nullable(),
139
+ name: import_zod.z.string().nullable(),
140
+ symbol: import_zod.z.string().nullable(),
141
+ tokenUri: import_zod.z.string().nullable(),
142
+ amount: import_zod.z.number().nullable(),
143
+ ownerOf: import_zod.z.string().nullable(),
144
+ possibleSpam: import_zod.z.boolean(),
145
+ metadata: import_zod.z.unknown().nullable()
146
+ });
147
+ var NftHoldingsResponse = import_zod.z.object({
148
+ nfts: import_zod.z.array(NftItem),
149
+ cursor: import_zod.z.string().nullable()
150
+ });
151
+ // Annotate the CommonJS export names for ESM import in node:
152
+ 0 && (module.exports = {
153
+ DefiPosition,
154
+ DefiPositionsBody,
155
+ DefiPositionsResponse,
156
+ NftHoldingsBody,
157
+ NftHoldingsResponse,
158
+ NftItem,
159
+ TokenTransfer,
160
+ TransfersBody,
161
+ TransfersResponse,
162
+ WalletBody,
163
+ WalletResponse,
164
+ WalletTokenBalance
165
+ });
@@ -0,0 +1,2 @@
1
+ import 'zod';
2
+ export { D as DefiPosition, a as DefiPositionsBody, b as DefiPositionsResponse, N as NftHoldingsBody, c as NftHoldingsResponse, d as NftItem, T as TokenTransfer, e as TransfersBody, f as TransfersResponse, W as WalletBody, g as WalletResponse, h as WalletTokenBalance } from '../schemas-D4yPHF06.cjs';
@@ -0,0 +1,2 @@
1
+ import 'zod';
2
+ export { D as DefiPosition, a as DefiPositionsBody, b as DefiPositionsResponse, N as NftHoldingsBody, c as NftHoldingsResponse, d as NftItem, T as TokenTransfer, e as TransfersBody, f as TransfersResponse, W as WalletBody, g as WalletResponse, h as WalletTokenBalance } from '../schemas-D4yPHF06.js';
@@ -0,0 +1,29 @@
1
+ import {
2
+ DefiPosition,
3
+ DefiPositionsBody,
4
+ DefiPositionsResponse,
5
+ NftHoldingsBody,
6
+ NftHoldingsResponse,
7
+ NftItem,
8
+ TokenTransfer,
9
+ TransfersBody,
10
+ TransfersResponse,
11
+ WalletBody,
12
+ WalletResponse,
13
+ WalletTokenBalance
14
+ } from "../chunk-ZP2HSALI.js";
15
+ import "../chunk-MLKGABMK.js";
16
+ export {
17
+ DefiPosition,
18
+ DefiPositionsBody,
19
+ DefiPositionsResponse,
20
+ NftHoldingsBody,
21
+ NftHoldingsResponse,
22
+ NftItem,
23
+ TokenTransfer,
24
+ TransfersBody,
25
+ TransfersResponse,
26
+ WalletBody,
27
+ WalletResponse,
28
+ WalletTokenBalance
29
+ };