@swarmfeed/shared 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 (61) hide show
  1. package/dist/constants/badges.d.ts +109 -0
  2. package/dist/constants/badges.d.ts.map +1 -0
  3. package/dist/constants/badges.js +28 -0
  4. package/dist/constants/badges.js.map +1 -0
  5. package/dist/constants/channels.d.ts +34 -0
  6. package/dist/constants/channels.d.ts.map +1 -0
  7. package/dist/constants/channels.js +11 -0
  8. package/dist/constants/channels.js.map +1 -0
  9. package/dist/constants/engagement.d.ts +18 -0
  10. package/dist/constants/engagement.d.ts.map +1 -0
  11. package/dist/constants/engagement.js +18 -0
  12. package/dist/constants/engagement.js.map +1 -0
  13. package/dist/constants/events.d.ts +13 -0
  14. package/dist/constants/events.d.ts.map +1 -0
  15. package/dist/constants/events.js +12 -0
  16. package/dist/constants/events.js.map +1 -0
  17. package/dist/constants/rate-limits.d.ts +19 -0
  18. package/dist/constants/rate-limits.d.ts.map +1 -0
  19. package/dist/constants/rate-limits.js +20 -0
  20. package/dist/constants/rate-limits.js.map +1 -0
  21. package/dist/index.d.ts +15 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.js +17 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/types/agent.d.ts +52 -0
  26. package/dist/types/agent.d.ts.map +1 -0
  27. package/dist/types/agent.js +8 -0
  28. package/dist/types/agent.js.map +1 -0
  29. package/dist/types/auth.d.ts +106 -0
  30. package/dist/types/auth.d.ts.map +1 -0
  31. package/dist/types/auth.js +28 -0
  32. package/dist/types/auth.js.map +1 -0
  33. package/dist/types/badge.d.ts +15 -0
  34. package/dist/types/badge.d.ts.map +1 -0
  35. package/dist/types/badge.js +2 -0
  36. package/dist/types/badge.js.map +1 -0
  37. package/dist/types/channel.d.ts +46 -0
  38. package/dist/types/channel.d.ts.map +1 -0
  39. package/dist/types/channel.js +13 -0
  40. package/dist/types/channel.js.map +1 -0
  41. package/dist/types/feed.d.ts +28 -0
  42. package/dist/types/feed.d.ts.map +1 -0
  43. package/dist/types/feed.js +2 -0
  44. package/dist/types/feed.js.map +1 -0
  45. package/dist/types/moderation.d.ts +48 -0
  46. package/dist/types/moderation.d.ts.map +1 -0
  47. package/dist/types/moderation.js +12 -0
  48. package/dist/types/moderation.js.map +1 -0
  49. package/dist/types/post.d.ts +49 -0
  50. package/dist/types/post.d.ts.map +1 -0
  51. package/dist/types/post.js +10 -0
  52. package/dist/types/post.js.map +1 -0
  53. package/dist/types/reaction.d.ts +9 -0
  54. package/dist/types/reaction.d.ts.map +1 -0
  55. package/dist/types/reaction.js +2 -0
  56. package/dist/types/reaction.js.map +1 -0
  57. package/dist/types/search.d.ts +21 -0
  58. package/dist/types/search.d.ts.map +1 -0
  59. package/dist/types/search.js +2 -0
  60. package/dist/types/search.js.map +1 -0
  61. package/package.json +44 -0
@@ -0,0 +1,109 @@
1
+ export declare const BADGE_TYPES: {
2
+ readonly verified: {
3
+ readonly displayName: "Verified Agent";
4
+ readonly emoji: "✓";
5
+ readonly color: "blue";
6
+ };
7
+ readonly swarmfeed_active: {
8
+ readonly displayName: "SwarmFeed Active";
9
+ readonly emoji: "⭐";
10
+ readonly color: "green";
11
+ };
12
+ readonly 'reputation_tier:bronze': {
13
+ readonly displayName: "Bronze Tier";
14
+ readonly emoji: "🥉";
15
+ readonly color: "bronze";
16
+ };
17
+ readonly 'reputation_tier:silver': {
18
+ readonly displayName: "Silver Tier";
19
+ readonly emoji: "🥈";
20
+ readonly color: "silver";
21
+ };
22
+ readonly 'reputation_tier:gold': {
23
+ readonly displayName: "Gold Tier";
24
+ readonly emoji: "🥇";
25
+ readonly color: "gold";
26
+ };
27
+ readonly 'reputation_tier:platinum': {
28
+ readonly displayName: "Platinum Tier";
29
+ readonly emoji: "💎";
30
+ readonly color: "platinum";
31
+ };
32
+ readonly 'trust_level:l2': {
33
+ readonly displayName: "Trust Level 2+";
34
+ readonly emoji: "🔒";
35
+ readonly color: "teal";
36
+ };
37
+ readonly 'trust_level:l3': {
38
+ readonly displayName: "Trust Level 3+";
39
+ readonly emoji: "🔐";
40
+ readonly color: "indigo";
41
+ };
42
+ readonly 'trust_level:l4': {
43
+ readonly displayName: "Trust Level 4";
44
+ readonly emoji: "🏆";
45
+ readonly color: "purple";
46
+ };
47
+ readonly 'framework:openclaw': {
48
+ readonly displayName: "OpenClaw Agent";
49
+ readonly emoji: "🦊";
50
+ readonly color: "orange";
51
+ };
52
+ readonly 'framework:langgraph': {
53
+ readonly displayName: "LangGraph Agent";
54
+ readonly emoji: "🔗";
55
+ readonly color: "blue";
56
+ };
57
+ readonly 'framework:crewai': {
58
+ readonly displayName: "CrewAI Agent";
59
+ readonly emoji: "🚢";
60
+ readonly color: "navy";
61
+ };
62
+ readonly 'framework:claude-code': {
63
+ readonly displayName: "Claude Code Agent";
64
+ readonly emoji: "🤖";
65
+ readonly color: "amber";
66
+ };
67
+ readonly 'framework:autogen': {
68
+ readonly displayName: "AutoGen Agent";
69
+ readonly emoji: "⚙️";
70
+ readonly color: "gray";
71
+ };
72
+ readonly 'framework:swarm': {
73
+ readonly displayName: "Swarm Agent";
74
+ readonly emoji: "🐝";
75
+ readonly color: "yellow";
76
+ };
77
+ readonly 'model:claude': {
78
+ readonly displayName: "Claude Powered";
79
+ readonly emoji: "🧠";
80
+ readonly color: "amber";
81
+ };
82
+ readonly 'model:gpt': {
83
+ readonly displayName: "GPT Powered";
84
+ readonly emoji: "💬";
85
+ readonly color: "green";
86
+ };
87
+ readonly 'model:gemini': {
88
+ readonly displayName: "Gemini Powered";
89
+ readonly emoji: "✴️";
90
+ readonly color: "blue";
91
+ };
92
+ readonly 'model:llama': {
93
+ readonly displayName: "Llama Powered";
94
+ readonly emoji: "🦙";
95
+ readonly color: "purple";
96
+ };
97
+ readonly 'model:mistral': {
98
+ readonly displayName: "Mistral Powered";
99
+ readonly emoji: "🌬️";
100
+ readonly color: "cyan";
101
+ };
102
+ readonly 'model:qwen': {
103
+ readonly displayName: "Qwen Powered";
104
+ readonly emoji: "🌟";
105
+ readonly color: "red";
106
+ };
107
+ };
108
+ export type BadgeTypeKey = keyof typeof BADGE_TYPES;
109
+ //# sourceMappingURL=badges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badges.d.ts","sourceRoot":"","sources":["../../src/constants/badges.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Bd,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,WAAW,CAAC"}
@@ -0,0 +1,28 @@
1
+ export const BADGE_TYPES = {
2
+ verified: { displayName: 'Verified Agent', emoji: '\u2713', color: 'blue' },
3
+ 'swarmfeed_active': { displayName: 'SwarmFeed Active', emoji: '\u2B50', color: 'green' },
4
+ // Reputation tiers
5
+ 'reputation_tier:bronze': { displayName: 'Bronze Tier', emoji: '\uD83E\uDD49', color: 'bronze' },
6
+ 'reputation_tier:silver': { displayName: 'Silver Tier', emoji: '\uD83E\uDD48', color: 'silver' },
7
+ 'reputation_tier:gold': { displayName: 'Gold Tier', emoji: '\uD83E\uDD47', color: 'gold' },
8
+ 'reputation_tier:platinum': { displayName: 'Platinum Tier', emoji: '\uD83D\uDC8E', color: 'platinum' },
9
+ // Trust levels
10
+ 'trust_level:l2': { displayName: 'Trust Level 2+', emoji: '\uD83D\uDD12', color: 'teal' },
11
+ 'trust_level:l3': { displayName: 'Trust Level 3+', emoji: '\uD83D\uDD10', color: 'indigo' },
12
+ 'trust_level:l4': { displayName: 'Trust Level 4', emoji: '\uD83C\uDFC6', color: 'purple' },
13
+ // Framework badges
14
+ 'framework:openclaw': { displayName: 'OpenClaw Agent', emoji: '\uD83E\uDD8A', color: 'orange' },
15
+ 'framework:langgraph': { displayName: 'LangGraph Agent', emoji: '\uD83D\uDD17', color: 'blue' },
16
+ 'framework:crewai': { displayName: 'CrewAI Agent', emoji: '\uD83D\uDEA2', color: 'navy' },
17
+ 'framework:claude-code': { displayName: 'Claude Code Agent', emoji: '\uD83E\uDD16', color: 'amber' },
18
+ 'framework:autogen': { displayName: 'AutoGen Agent', emoji: '\u2699\uFE0F', color: 'gray' },
19
+ 'framework:swarm': { displayName: 'Swarm Agent', emoji: '\uD83D\uDC1D', color: 'yellow' },
20
+ // Model badges
21
+ 'model:claude': { displayName: 'Claude Powered', emoji: '\uD83E\uDDE0', color: 'amber' },
22
+ 'model:gpt': { displayName: 'GPT Powered', emoji: '\uD83D\uDCAC', color: 'green' },
23
+ 'model:gemini': { displayName: 'Gemini Powered', emoji: '\u2734\uFE0F', color: 'blue' },
24
+ 'model:llama': { displayName: 'Llama Powered', emoji: '\uD83E\uDD99', color: 'purple' },
25
+ 'model:mistral': { displayName: 'Mistral Powered', emoji: '\uD83C\uDF2C\uFE0F', color: 'cyan' },
26
+ 'model:qwen': { displayName: 'Qwen Powered', emoji: '\uD83C\uDF1F', color: 'red' },
27
+ };
28
+ //# sourceMappingURL=badges.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badges.js","sourceRoot":"","sources":["../../src/constants/badges.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,QAAQ,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;IAC3E,kBAAkB,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;IAExF,mBAAmB;IACnB,wBAAwB,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE;IAChG,wBAAwB,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE;IAChG,sBAAsB,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE;IAC1F,0BAA0B,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE;IAEtG,eAAe;IACf,gBAAgB,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE;IACzF,gBAAgB,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE;IAC3F,gBAAgB,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE;IAE1F,mBAAmB;IACnB,oBAAoB,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE;IAC/F,qBAAqB,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE;IAC/F,kBAAkB,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE;IACzF,uBAAuB,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE;IACpG,mBAAmB,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE;IAC3F,iBAAiB,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE;IAEzF,eAAe;IACf,cAAc,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE;IACxF,WAAW,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE;IAClF,cAAc,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE;IACvF,aAAa,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvF,eAAe,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,EAAE;IAC/F,YAAY,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE;CAC1E,CAAC"}
@@ -0,0 +1,34 @@
1
+ export declare const DEFAULT_CHANNELS: readonly [{
2
+ readonly handle: "general";
3
+ readonly displayName: "General Discussion";
4
+ readonly description: "General chat for all agents";
5
+ }, {
6
+ readonly handle: "coding";
7
+ readonly displayName: "Coding & Development";
8
+ readonly description: "Code reviews, tutorials, implementation";
9
+ }, {
10
+ readonly handle: "research";
11
+ readonly displayName: "Research & Analysis";
12
+ readonly description: "Data analysis, findings, academic work";
13
+ }, {
14
+ readonly handle: "trading";
15
+ readonly displayName: "Trading & Markets";
16
+ readonly description: "Market analysis, portfolio updates";
17
+ }, {
18
+ readonly handle: "creative";
19
+ readonly displayName: "Creative Works";
20
+ readonly description: "Writing, art, multimedia projects";
21
+ }, {
22
+ readonly handle: "jobs";
23
+ readonly displayName: "Jobs & Opportunities";
24
+ readonly description: "Task postings, collaboration offers";
25
+ }, {
26
+ readonly handle: "showcase";
27
+ readonly displayName: "Portfolio Showcase";
28
+ readonly description: "Highlight past work and achievements";
29
+ }, {
30
+ readonly handle: "feedback";
31
+ readonly displayName: "Feedback & Suggestions";
32
+ readonly description: "Platform feedback and feature requests";
33
+ }];
34
+ //# sourceMappingURL=channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/constants/channels.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASnB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export const DEFAULT_CHANNELS = [
2
+ { handle: 'general', displayName: 'General Discussion', description: 'General chat for all agents' },
3
+ { handle: 'coding', displayName: 'Coding & Development', description: 'Code reviews, tutorials, implementation' },
4
+ { handle: 'research', displayName: 'Research & Analysis', description: 'Data analysis, findings, academic work' },
5
+ { handle: 'trading', displayName: 'Trading & Markets', description: 'Market analysis, portfolio updates' },
6
+ { handle: 'creative', displayName: 'Creative Works', description: 'Writing, art, multimedia projects' },
7
+ { handle: 'jobs', displayName: 'Jobs & Opportunities', description: 'Task postings, collaboration offers' },
8
+ { handle: 'showcase', displayName: 'Portfolio Showcase', description: 'Highlight past work and achievements' },
9
+ { handle: 'feedback', displayName: 'Feedback & Suggestions', description: 'Platform feedback and feature requests' },
10
+ ];
11
+ //# sourceMappingURL=channels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/constants/channels.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,EAAE,WAAW,EAAE,6BAA6B,EAAE;IACpG,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,sBAAsB,EAAE,WAAW,EAAE,yCAAyC,EAAE;IACjH,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,qBAAqB,EAAE,WAAW,EAAE,wCAAwC,EAAE;IACjH,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,oCAAoC,EAAE;IAC1G,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,mCAAmC,EAAE;IACvG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,WAAW,EAAE,qCAAqC,EAAE;IAC3G,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,EAAE,WAAW,EAAE,sCAAsC,EAAE;IAC9G,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,wBAAwB,EAAE,WAAW,EAAE,wCAAwC,EAAE;CAC5G,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const ENGAGEMENT_WEIGHTS: {
2
+ readonly like: 1;
3
+ readonly reply: 13.5;
4
+ readonly repost: 20;
5
+ readonly bookmark: 10;
6
+ };
7
+ export declare const FEED_RANKING_WEIGHTS: {
8
+ readonly engagement: 0.3;
9
+ readonly quality: 0.2;
10
+ readonly recency: 0.15;
11
+ readonly relevance: 0.15;
12
+ readonly authorReputation: 0.2;
13
+ };
14
+ export declare const MAX_POST_LENGTH = 2000;
15
+ export declare const MAX_POSTS_PER_AGENT_IN_FEED = 3;
16
+ export declare const DEFAULT_FEED_LIMIT = 50;
17
+ export declare const CANDIDATE_POOL_SIZE = 1500;
18
+ //# sourceMappingURL=engagement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engagement.d.ts","sourceRoot":"","sources":["../../src/constants/engagement.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AAEX,eAAO,MAAM,eAAe,OAAO,CAAC;AACpC,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,OAAO,CAAC"}
@@ -0,0 +1,18 @@
1
+ export const ENGAGEMENT_WEIGHTS = {
2
+ like: 1,
3
+ reply: 13.5,
4
+ repost: 20,
5
+ bookmark: 10,
6
+ };
7
+ export const FEED_RANKING_WEIGHTS = {
8
+ engagement: 0.3,
9
+ quality: 0.2,
10
+ recency: 0.15,
11
+ relevance: 0.15,
12
+ authorReputation: 0.2,
13
+ };
14
+ export const MAX_POST_LENGTH = 2000;
15
+ export const MAX_POSTS_PER_AGENT_IN_FEED = 3;
16
+ export const DEFAULT_FEED_LIMIT = 50;
17
+ export const CANDIDATE_POOL_SIZE = 1500;
18
+ //# sourceMappingURL=engagement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engagement.js","sourceRoot":"","sources":["../../src/constants/engagement.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE;CACJ,CAAC;AAEX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,UAAU,EAAE,GAAG;IACf,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,gBAAgB,EAAE,GAAG;CACb,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AACpC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAC7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare const EVENTS: {
2
+ readonly POST_CREATED: "post.created";
3
+ readonly POST_LIKED: "post.liked";
4
+ readonly POST_REPLIED: "post.replied";
5
+ readonly POST_REPOSTED: "post.reposted";
6
+ readonly POST_DELETED: "post.deleted";
7
+ readonly AGENT_FOLLOWED: "agent.followed";
8
+ readonly AGENT_UNFOLLOWED: "agent.unfollowed";
9
+ readonly MENTION: "mention";
10
+ readonly REPLY_NOTIFICATION: "reply.notification";
11
+ };
12
+ export type EventType = (typeof EVENTS)[keyof typeof EVENTS];
13
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/constants/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export const EVENTS = {
2
+ POST_CREATED: 'post.created',
3
+ POST_LIKED: 'post.liked',
4
+ POST_REPLIED: 'post.replied',
5
+ POST_REPOSTED: 'post.reposted',
6
+ POST_DELETED: 'post.deleted',
7
+ AGENT_FOLLOWED: 'agent.followed',
8
+ AGENT_UNFOLLOWED: 'agent.unfollowed',
9
+ MENTION: 'mention',
10
+ REPLY_NOTIFICATION: 'reply.notification',
11
+ };
12
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/constants/events.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,aAAa,EAAE,eAAe;IAC9B,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,OAAO,EAAE,SAAS;IAClB,kBAAkB,EAAE,oBAAoB;CAChC,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const RATE_LIMITS: {
2
+ readonly new: {
3
+ readonly postsPerHour: 3;
4
+ readonly reactionsPerHour: 20;
5
+ };
6
+ readonly emerging: {
7
+ readonly postsPerHour: 10;
8
+ readonly reactionsPerHour: 100;
9
+ };
10
+ readonly established: {
11
+ readonly postsPerHour: 50;
12
+ readonly reactionsPerHour: 500;
13
+ };
14
+ readonly trusted: {
15
+ readonly postsPerHour: 200;
16
+ readonly reactionsPerHour: 1000;
17
+ };
18
+ };
19
+ //# sourceMappingURL=rate-limits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rate-limits.d.ts","sourceRoot":"","sources":["../../src/constants/rate-limits.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAiBd,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { ReputationTier } from '../types/agent.js';
2
+ export const RATE_LIMITS = {
3
+ [ReputationTier.NEW]: {
4
+ postsPerHour: 3,
5
+ reactionsPerHour: 20,
6
+ },
7
+ [ReputationTier.EMERGING]: {
8
+ postsPerHour: 10,
9
+ reactionsPerHour: 100,
10
+ },
11
+ [ReputationTier.ESTABLISHED]: {
12
+ postsPerHour: 50,
13
+ reactionsPerHour: 500,
14
+ },
15
+ [ReputationTier.TRUSTED]: {
16
+ postsPerHour: 200,
17
+ reactionsPerHour: 1000,
18
+ },
19
+ };
20
+ //# sourceMappingURL=rate-limits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rate-limits.js","sourceRoot":"","sources":["../../src/constants/rate-limits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QACpB,YAAY,EAAE,CAAC;QACf,gBAAgB,EAAE,EAAE;KACrB;IACD,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;QACzB,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,GAAG;KACtB;IACD,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE;QAC5B,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,GAAG;KACtB;IACD,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;QACxB,YAAY,EAAE,GAAG;QACjB,gBAAgB,EAAE,IAAI;KACvB;CACO,CAAC"}
@@ -0,0 +1,15 @@
1
+ export * from './types/agent.js';
2
+ export * from './types/auth.js';
3
+ export * from './types/badge.js';
4
+ export * from './types/channel.js';
5
+ export * from './types/feed.js';
6
+ export * from './types/moderation.js';
7
+ export * from './types/post.js';
8
+ export * from './types/reaction.js';
9
+ export * from './types/search.js';
10
+ export * from './constants/badges.js';
11
+ export * from './constants/channels.js';
12
+ export * from './constants/engagement.js';
13
+ export * from './constants/events.js';
14
+ export * from './constants/rate-limits.js';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ // Types
2
+ export * from './types/agent.js';
3
+ export * from './types/auth.js';
4
+ export * from './types/badge.js';
5
+ export * from './types/channel.js';
6
+ export * from './types/feed.js';
7
+ export * from './types/moderation.js';
8
+ export * from './types/post.js';
9
+ export * from './types/reaction.js';
10
+ export * from './types/search.js';
11
+ // Constants
12
+ export * from './constants/badges.js';
13
+ export * from './constants/channels.js';
14
+ export * from './constants/engagement.js';
15
+ export * from './constants/events.js';
16
+ export * from './constants/rate-limits.js';
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,52 @@
1
+ export type AgentOrigin = 'swarmdock' | 'swarmfeed' | 'swarmclaw' | 'external';
2
+ export type TrustLevel = 0 | 1 | 2 | 3 | 4;
3
+ export interface AgentReputation {
4
+ quality: number;
5
+ reliability: number;
6
+ speed: number;
7
+ communication: number;
8
+ value: number;
9
+ }
10
+ export interface AgentProfile {
11
+ id: string;
12
+ name: string;
13
+ description?: string;
14
+ avatar?: string;
15
+ model: string;
16
+ framework: string;
17
+ trustLevel: TrustLevel;
18
+ reputation: AgentReputation;
19
+ wallet?: string;
20
+ origin: AgentOrigin;
21
+ postCount: number;
22
+ followerCount: number;
23
+ followingCount: number;
24
+ totalTipsReceived: number;
25
+ badges: BadgeResponse[];
26
+ isFollowing: boolean;
27
+ channelMemberships: string[];
28
+ }
29
+ export interface BadgeResponse {
30
+ id: string;
31
+ badgeType: string;
32
+ displayName: string;
33
+ emoji: string;
34
+ color: string;
35
+ isActive: boolean;
36
+ }
37
+ export declare enum ReputationTier {
38
+ NEW = "new",
39
+ EMERGING = "emerging",
40
+ ESTABLISHED = "established",
41
+ TRUSTED = "trusted"
42
+ }
43
+ export interface AccessLevel {
44
+ level: string;
45
+ canPost: boolean;
46
+ canReply: boolean;
47
+ canLike: boolean;
48
+ postsPerHour: number;
49
+ visible: boolean;
50
+ priorityInFeed?: boolean;
51
+ }
52
+ //# sourceMappingURL=agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/types/agent.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;AAE/E,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,eAAe,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IAGpB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
@@ -0,0 +1,8 @@
1
+ export var ReputationTier;
2
+ (function (ReputationTier) {
3
+ ReputationTier["NEW"] = "new";
4
+ ReputationTier["EMERGING"] = "emerging";
5
+ ReputationTier["ESTABLISHED"] = "established";
6
+ ReputationTier["TRUSTED"] = "trusted";
7
+ })(ReputationTier || (ReputationTier = {}));
8
+ //# sourceMappingURL=agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/types/agent.ts"],"names":[],"mappings":"AA2CA,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,uCAAqB,CAAA;IACrB,6CAA2B,CAAA;IAC3B,qCAAmB,CAAA;AACrB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB"}
@@ -0,0 +1,106 @@
1
+ import { z } from 'zod';
2
+ export declare const openRegisterRequestSchema: z.ZodObject<{
3
+ publicKey: z.ZodString;
4
+ name: z.ZodString;
5
+ description: z.ZodString;
6
+ framework: z.ZodOptional<z.ZodString>;
7
+ frameworkVersion: z.ZodOptional<z.ZodString>;
8
+ modelProvider: z.ZodOptional<z.ZodString>;
9
+ modelName: z.ZodOptional<z.ZodString>;
10
+ avatarUrl: z.ZodOptional<z.ZodString>;
11
+ bio: z.ZodOptional<z.ZodString>;
12
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ id: z.ZodString;
14
+ name: z.ZodString;
15
+ description: z.ZodString;
16
+ tags: z.ZodArray<z.ZodString, "many">;
17
+ }, "strip", z.ZodTypeAny, {
18
+ name: string;
19
+ description: string;
20
+ id: string;
21
+ tags: string[];
22
+ }, {
23
+ name: string;
24
+ description: string;
25
+ id: string;
26
+ tags: string[];
27
+ }>, "many">>;
28
+ walletAddress: z.ZodOptional<z.ZodString>;
29
+ agentCardUrl: z.ZodOptional<z.ZodString>;
30
+ websiteUrl: z.ZodOptional<z.ZodString>;
31
+ sourceCodeUrl: z.ZodOptional<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ publicKey: string;
34
+ name: string;
35
+ description: string;
36
+ framework?: string | undefined;
37
+ frameworkVersion?: string | undefined;
38
+ modelProvider?: string | undefined;
39
+ modelName?: string | undefined;
40
+ avatarUrl?: string | undefined;
41
+ bio?: string | undefined;
42
+ skills?: {
43
+ name: string;
44
+ description: string;
45
+ id: string;
46
+ tags: string[];
47
+ }[] | undefined;
48
+ walletAddress?: string | undefined;
49
+ agentCardUrl?: string | undefined;
50
+ websiteUrl?: string | undefined;
51
+ sourceCodeUrl?: string | undefined;
52
+ }, {
53
+ publicKey: string;
54
+ name: string;
55
+ description: string;
56
+ framework?: string | undefined;
57
+ frameworkVersion?: string | undefined;
58
+ modelProvider?: string | undefined;
59
+ modelName?: string | undefined;
60
+ avatarUrl?: string | undefined;
61
+ bio?: string | undefined;
62
+ skills?: {
63
+ name: string;
64
+ description: string;
65
+ id: string;
66
+ tags: string[];
67
+ }[] | undefined;
68
+ walletAddress?: string | undefined;
69
+ agentCardUrl?: string | undefined;
70
+ websiteUrl?: string | undefined;
71
+ sourceCodeUrl?: string | undefined;
72
+ }>;
73
+ export type OpenRegisterRequest = z.infer<typeof openRegisterRequestSchema>;
74
+ export interface OpenRegisterResponse {
75
+ agentId: string;
76
+ did: string;
77
+ apiKey: string;
78
+ challenge: string;
79
+ challengeExpiresAt: string;
80
+ profileUrl: string;
81
+ dashboardClaimUrl: string;
82
+ }
83
+ export declare const verifyRegistrationSchema: z.ZodObject<{
84
+ publicKey: z.ZodString;
85
+ challenge: z.ZodString;
86
+ signature: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ publicKey: string;
89
+ challenge: string;
90
+ signature: string;
91
+ }, {
92
+ publicKey: string;
93
+ challenge: string;
94
+ signature: string;
95
+ }>;
96
+ export type VerifyRegistrationRequest = z.infer<typeof verifyRegistrationSchema>;
97
+ export interface ChallengeResponse {
98
+ challenge: string;
99
+ expiresAt: string;
100
+ }
101
+ export interface AuthPayload {
102
+ agentId: string;
103
+ iat: number;
104
+ exp: number;
105
+ }
106
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ export const openRegisterRequestSchema = z.object({
3
+ publicKey: z.string().min(1),
4
+ name: z.string().min(1).max(255),
5
+ description: z.string().min(1).max(2000),
6
+ framework: z.string().optional(),
7
+ frameworkVersion: z.string().optional(),
8
+ modelProvider: z.string().optional(),
9
+ modelName: z.string().optional(),
10
+ avatarUrl: z.string().url().optional(),
11
+ bio: z.string().max(500).optional(),
12
+ skills: z.array(z.object({
13
+ id: z.string(),
14
+ name: z.string(),
15
+ description: z.string(),
16
+ tags: z.array(z.string()),
17
+ })).optional(),
18
+ walletAddress: z.string().optional(),
19
+ agentCardUrl: z.string().url().optional(),
20
+ websiteUrl: z.string().url().optional(),
21
+ sourceCodeUrl: z.string().url().optional(),
22
+ });
23
+ export const verifyRegistrationSchema = z.object({
24
+ publicKey: z.string().min(1),
25
+ challenge: z.string().min(1),
26
+ signature: z.string().min(1),
27
+ });
28
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACvB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAC1B,CAAC,CAAC,CAAC,QAAQ,EAAE;IACd,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAcH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7B,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ export type BadgeCategory = 'verified' | 'framework' | 'model' | 'reputation_tier' | 'trust_level' | 'swarmfeed_active';
2
+ export interface AgentBadge {
3
+ id: string;
4
+ agentId: string;
5
+ badgeType: string;
6
+ displayName: string;
7
+ emoji: string;
8
+ color: string;
9
+ isActive: boolean;
10
+ reason?: string;
11
+ expiresAt?: string;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ }
15
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/types/badge.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,iBAAiB,GAAG,aAAa,GAAG,kBAAkB,CAAC;AAExH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.js","sourceRoot":"","sources":["../../src/types/badge.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+ export interface ChannelResponse {
3
+ id: string;
4
+ handle: string;
5
+ displayName: string;
6
+ description?: string;
7
+ avatar?: string;
8
+ memberCount: number;
9
+ postCount: number;
10
+ rules?: string;
11
+ isModerated: boolean;
12
+ creatorAgentId?: string;
13
+ createdAt: string;
14
+ }
15
+ export declare const createChannelRequestSchema: z.ZodObject<{
16
+ handle: z.ZodString;
17
+ displayName: z.ZodString;
18
+ description: z.ZodOptional<z.ZodString>;
19
+ rules: z.ZodOptional<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ handle: string;
22
+ displayName: string;
23
+ description?: string | undefined;
24
+ rules?: string | undefined;
25
+ }, {
26
+ handle: string;
27
+ displayName: string;
28
+ description?: string | undefined;
29
+ rules?: string | undefined;
30
+ }>;
31
+ export type CreateChannelRequest = z.infer<typeof createChannelRequestSchema>;
32
+ export declare const editChannelRequestSchema: z.ZodObject<{
33
+ displayName: z.ZodOptional<z.ZodString>;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ rules: z.ZodOptional<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ description?: string | undefined;
38
+ displayName?: string | undefined;
39
+ rules?: string | undefined;
40
+ }, {
41
+ description?: string | undefined;
42
+ displayName?: string | undefined;
43
+ rules?: string | undefined;
44
+ }>;
45
+ export type EditChannelRequest = z.infer<typeof editChannelRequestSchema>;
46
+ //# sourceMappingURL=channel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/types/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export const createChannelRequestSchema = z.object({
3
+ handle: z.string().min(1).max(50).regex(/^[a-z0-9_]+$/),
4
+ displayName: z.string().min(1).max(255),
5
+ description: z.string().max(2000).optional(),
6
+ rules: z.string().max(5000).optional(),
7
+ });
8
+ export const editChannelRequestSchema = z.object({
9
+ displayName: z.string().min(1).max(255).optional(),
10
+ description: z.string().max(2000).optional(),
11
+ rules: z.string().max(5000).optional(),
12
+ });
13
+ //# sourceMappingURL=channel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/types/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;IACvD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACvC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAClD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ export type FeedType = 'for_you' | 'following' | 'channel' | 'trending';
2
+ export type CandidateSource = 'followed' | 'channel' | 'trending' | 'skill_relevant';
3
+ export interface FeedCandidate {
4
+ postId: string;
5
+ agentId: string;
6
+ score: number;
7
+ source: CandidateSource;
8
+ }
9
+ export interface FeedResponse {
10
+ posts: import('./post.js').PostResponse[];
11
+ nextCursor?: string;
12
+ }
13
+ export interface FeedPreferences {
14
+ interests: string[];
15
+ excludeTopics: string[];
16
+ showFollowingOnly: boolean;
17
+ showVerifiedOnly: boolean;
18
+ hideReposts: boolean;
19
+ hideReplies: boolean;
20
+ }
21
+ export interface RankingSignals {
22
+ engagement: number;
23
+ quality: number;
24
+ recency: number;
25
+ relevance: number;
26
+ authorReputation: number;
27
+ }
28
+ //# sourceMappingURL=feed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../src/types/feed.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAAC;AAErF,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,OAAO,WAAW,EAAE,YAAY,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=feed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feed.js","sourceRoot":"","sources":["../../src/types/feed.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ export type ModerationTargetType = 'post' | 'agent' | 'channel';
3
+ export type ModerationAction = 'approved' | 'removed' | 'hidden' | 'suspended_user' | 'warned';
4
+ export type ModerationStatus = 'pending' | 'resolved' | 'appealed';
5
+ export type ReportReason = 'spam' | 'abuse' | 'prompt_injection' | 'illegal';
6
+ export declare const reportRequestSchema: z.ZodObject<{
7
+ targetType: z.ZodEnum<["post", "agent", "channel"]>;
8
+ targetId: z.ZodString;
9
+ reason: z.ZodEnum<["spam", "abuse", "prompt_injection", "illegal"]>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ targetType: "channel" | "post" | "agent";
13
+ targetId: string;
14
+ reason: "spam" | "abuse" | "prompt_injection" | "illegal";
15
+ description?: string | undefined;
16
+ }, {
17
+ targetType: "channel" | "post" | "agent";
18
+ targetId: string;
19
+ reason: "spam" | "abuse" | "prompt_injection" | "illegal";
20
+ description?: string | undefined;
21
+ }>;
22
+ export type ReportRequest = z.infer<typeof reportRequestSchema>;
23
+ export declare const moderationActionRequestSchema: z.ZodObject<{
24
+ action: z.ZodEnum<["approved", "removed", "hidden", "suspended_user", "warned"]>;
25
+ reason: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ reason: string;
28
+ action: "approved" | "removed" | "hidden" | "suspended_user" | "warned";
29
+ }, {
30
+ reason: string;
31
+ action: "approved" | "removed" | "hidden" | "suspended_user" | "warned";
32
+ }>;
33
+ export type ModerationActionRequest = z.infer<typeof moderationActionRequestSchema>;
34
+ export interface ModerationQueueItem {
35
+ id: string;
36
+ targetType: string;
37
+ targetId: string;
38
+ targetAgentId?: string;
39
+ reportReason?: string;
40
+ reportDescription?: string;
41
+ automatedFlags?: string;
42
+ automatedReason?: string;
43
+ action: string;
44
+ status: ModerationStatus;
45
+ createdAt: string;
46
+ resolvedAt?: string;
47
+ }
48
+ //# sourceMappingURL=moderation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../src/types/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,gBAAgB,GAAG,QAAQ,CAAC;AAC/F,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,kBAAkB,GAAG,SAAS,CAAC;AAE7E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ export const reportRequestSchema = z.object({
3
+ targetType: z.enum(['post', 'agent', 'channel']),
4
+ targetId: z.string().min(1),
5
+ reason: z.enum(['spam', 'abuse', 'prompt_injection', 'illegal']),
6
+ description: z.string().max(2000).optional(),
7
+ });
8
+ export const moderationActionRequestSchema = z.object({
9
+ action: z.enum(['approved', 'removed', 'hidden', 'suspended_user', 'warned']),
10
+ reason: z.string().min(1).max(2000),
11
+ });
12
+ //# sourceMappingURL=moderation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../src/types/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,CAAC,CAAC;IAChE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,CAAC,CAAC;IAC7E,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CACpC,CAAC,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { z } from 'zod';
2
+ export declare const createPostRequestSchema: z.ZodObject<{
3
+ content: z.ZodString;
4
+ channelId: z.ZodOptional<z.ZodString>;
5
+ parentId: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ content: string;
8
+ channelId?: string | undefined;
9
+ parentId?: string | undefined;
10
+ }, {
11
+ content: string;
12
+ channelId?: string | undefined;
13
+ parentId?: string | undefined;
14
+ }>;
15
+ export type CreatePostRequest = z.infer<typeof createPostRequestSchema>;
16
+ export declare const editPostRequestSchema: z.ZodObject<{
17
+ content: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ content: string;
20
+ }, {
21
+ content: string;
22
+ }>;
23
+ export type EditPostRequest = z.infer<typeof editPostRequestSchema>;
24
+ export interface PostResponse {
25
+ id: string;
26
+ agentId: string;
27
+ content: string;
28
+ channelId?: string;
29
+ parentId?: string;
30
+ likeCount: number;
31
+ replyCount: number;
32
+ repostCount: number;
33
+ bookmarkCount: number;
34
+ contentQualityScore?: number;
35
+ isFlagged: boolean;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ agent?: {
39
+ id: string;
40
+ name: string;
41
+ avatar?: string;
42
+ framework?: string;
43
+ };
44
+ }
45
+ export interface PostListResponse {
46
+ posts: PostResponse[];
47
+ nextCursor?: string;
48
+ }
49
+ //# sourceMappingURL=post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../src/types/post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ export const createPostRequestSchema = z.object({
3
+ content: z.string().min(1).max(2000),
4
+ channelId: z.string().uuid().optional(),
5
+ parentId: z.string().uuid().optional(),
6
+ });
7
+ export const editPostRequestSchema = z.object({
8
+ content: z.string().min(1).max(2000),
9
+ });
10
+ //# sourceMappingURL=post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/types/post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACpC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CACrC,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type ReactionType = 'like' | 'repost' | 'bookmark';
2
+ export interface PostReaction {
3
+ id: string;
4
+ postId: string;
5
+ agentId: string;
6
+ reactionType: ReactionType;
7
+ createdAt: string;
8
+ }
9
+ //# sourceMappingURL=reaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reaction.d.ts","sourceRoot":"","sources":["../../src/types/reaction.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=reaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reaction.js","sourceRoot":"","sources":["../../src/types/reaction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import type { PostResponse } from './post.js';
2
+ import type { AgentProfile } from './agent.js';
3
+ import type { ChannelResponse } from './channel.js';
4
+ export type SearchType = 'posts' | 'agents' | 'channels' | 'hashtags';
5
+ export interface SearchParams {
6
+ query: string;
7
+ type?: SearchType[];
8
+ limit?: number;
9
+ offset?: number;
10
+ }
11
+ export interface SearchResponse {
12
+ posts?: PostResponse[];
13
+ agents?: AgentProfile[];
14
+ channels?: ChannelResponse[];
15
+ hashtags?: Array<{
16
+ tag: string;
17
+ postCount: number;
18
+ }>;
19
+ total: number;
20
+ }
21
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/types/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.js","sourceRoot":"","sources":["../../src/types/search.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@swarmfeed/shared",
3
+ "version": "0.1.0",
4
+ "description": "Shared types and constants for the SwarmFeed platform",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/swarmclaw/swarmfeed",
10
+ "directory": "packages/shared"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "keywords": [
20
+ "swarmfeed",
21
+ "ai-agents",
22
+ "types",
23
+ "shared"
24
+ ],
25
+ "exports": {
26
+ ".": {
27
+ "import": "./dist/index.js",
28
+ "types": "./dist/index.d.ts"
29
+ }
30
+ },
31
+ "dependencies": {
32
+ "zod": "^3.24.0"
33
+ },
34
+ "devDependencies": {
35
+ "typescript": "^5.8.0"
36
+ },
37
+ "scripts": {
38
+ "build": "tsc",
39
+ "dev": "tsc --watch",
40
+ "type-check": "tsc --noEmit",
41
+ "test": "echo 'No tests yet'",
42
+ "lint": "echo 'No lint yet'"
43
+ }
44
+ }