@recursiv/sdk 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/LICENSE +105 -0
  2. package/README.md +331 -0
  3. package/dist/client.d.ts +22 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +192 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/errors.d.ts +29 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +60 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +148 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +184 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/lib/sse.d.ts +6 -0
  16. package/dist/lib/sse.d.ts.map +1 -0
  17. package/dist/lib/sse.js +52 -0
  18. package/dist/lib/sse.js.map +1 -0
  19. package/dist/lib/webhooks.d.ts +41 -0
  20. package/dist/lib/webhooks.d.ts.map +1 -0
  21. package/dist/lib/webhooks.js +91 -0
  22. package/dist/lib/webhooks.js.map +1 -0
  23. package/dist/react/index.d.ts +2 -0
  24. package/dist/react/index.d.ts.map +1 -0
  25. package/dist/react/index.js +2 -0
  26. package/dist/react/index.js.map +1 -0
  27. package/dist/react/useChat.d.ts +26 -0
  28. package/dist/react/useChat.d.ts.map +1 -0
  29. package/dist/react/useChat.js +111 -0
  30. package/dist/react/useChat.js.map +1 -0
  31. package/dist/realtime.d.ts +67 -0
  32. package/dist/realtime.d.ts.map +1 -0
  33. package/dist/realtime.js +104 -0
  34. package/dist/realtime.js.map +1 -0
  35. package/dist/resources/admin.d.ts +287 -0
  36. package/dist/resources/admin.d.ts.map +1 -0
  37. package/dist/resources/admin.js +110 -0
  38. package/dist/resources/admin.js.map +1 -0
  39. package/dist/resources/agents.d.ts +136 -0
  40. package/dist/resources/agents.d.ts.map +1 -0
  41. package/dist/resources/agents.js +113 -0
  42. package/dist/resources/agents.js.map +1 -0
  43. package/dist/resources/auth.d.ts +68 -0
  44. package/dist/resources/auth.d.ts.map +1 -0
  45. package/dist/resources/auth.js +231 -0
  46. package/dist/resources/auth.js.map +1 -0
  47. package/dist/resources/billing.d.ts +143 -0
  48. package/dist/resources/billing.d.ts.map +1 -0
  49. package/dist/resources/billing.js +55 -0
  50. package/dist/resources/billing.js.map +1 -0
  51. package/dist/resources/brain.d.ts +26 -0
  52. package/dist/resources/brain.d.ts.map +1 -0
  53. package/dist/resources/brain.js +11 -0
  54. package/dist/resources/brain.js.map +1 -0
  55. package/dist/resources/chat.d.ts +52 -0
  56. package/dist/resources/chat.d.ts.map +1 -0
  57. package/dist/resources/chat.js +59 -0
  58. package/dist/resources/chat.js.map +1 -0
  59. package/dist/resources/commands.d.ts +41 -0
  60. package/dist/resources/commands.d.ts.map +1 -0
  61. package/dist/resources/commands.js +15 -0
  62. package/dist/resources/commands.js.map +1 -0
  63. package/dist/resources/communities.d.ts +19 -0
  64. package/dist/resources/communities.d.ts.map +1 -0
  65. package/dist/resources/communities.js +31 -0
  66. package/dist/resources/communities.js.map +1 -0
  67. package/dist/resources/databases.d.ts +58 -0
  68. package/dist/resources/databases.d.ts.map +1 -0
  69. package/dist/resources/databases.js +27 -0
  70. package/dist/resources/databases.js.map +1 -0
  71. package/dist/resources/deployments.d.ts +57 -0
  72. package/dist/resources/deployments.d.ts.map +1 -0
  73. package/dist/resources/deployments.js +31 -0
  74. package/dist/resources/deployments.js.map +1 -0
  75. package/dist/resources/dispatcher.d.ts +330 -0
  76. package/dist/resources/dispatcher.d.ts.map +1 -0
  77. package/dist/resources/dispatcher.js +155 -0
  78. package/dist/resources/dispatcher.js.map +1 -0
  79. package/dist/resources/email.d.ts +136 -0
  80. package/dist/resources/email.d.ts.map +1 -0
  81. package/dist/resources/email.js +51 -0
  82. package/dist/resources/email.js.map +1 -0
  83. package/dist/resources/free-tier.d.ts +59 -0
  84. package/dist/resources/free-tier.d.ts.map +1 -0
  85. package/dist/resources/free-tier.js +27 -0
  86. package/dist/resources/free-tier.js.map +1 -0
  87. package/dist/resources/github.d.ts +55 -0
  88. package/dist/resources/github.d.ts.map +1 -0
  89. package/dist/resources/github.js +23 -0
  90. package/dist/resources/github.js.map +1 -0
  91. package/dist/resources/inbox.d.ts +13 -0
  92. package/dist/resources/inbox.d.ts.map +1 -0
  93. package/dist/resources/inbox.js +11 -0
  94. package/dist/resources/inbox.js.map +1 -0
  95. package/dist/resources/integrations.d.ts +158 -0
  96. package/dist/resources/integrations.d.ts.map +1 -0
  97. package/dist/resources/integrations.js +78 -0
  98. package/dist/resources/integrations.js.map +1 -0
  99. package/dist/resources/invite-codes-admin.d.ts +69 -0
  100. package/dist/resources/invite-codes-admin.d.ts.map +1 -0
  101. package/dist/resources/invite-codes-admin.js +31 -0
  102. package/dist/resources/invite-codes-admin.js.map +1 -0
  103. package/dist/resources/invite-codes.d.ts +166 -0
  104. package/dist/resources/invite-codes.d.ts.map +1 -0
  105. package/dist/resources/invite-codes.js +69 -0
  106. package/dist/resources/invite-codes.js.map +1 -0
  107. package/dist/resources/jobs.d.ts +40 -0
  108. package/dist/resources/jobs.d.ts.map +1 -0
  109. package/dist/resources/jobs.js +23 -0
  110. package/dist/resources/jobs.js.map +1 -0
  111. package/dist/resources/media.d.ts +21 -0
  112. package/dist/resources/media.d.ts.map +1 -0
  113. package/dist/resources/media.js +11 -0
  114. package/dist/resources/media.js.map +1 -0
  115. package/dist/resources/memory.d.ts +116 -0
  116. package/dist/resources/memory.d.ts.map +1 -0
  117. package/dist/resources/memory.js +57 -0
  118. package/dist/resources/memory.js.map +1 -0
  119. package/dist/resources/network.d.ts +24 -0
  120. package/dist/resources/network.d.ts.map +1 -0
  121. package/dist/resources/network.js +11 -0
  122. package/dist/resources/network.js.map +1 -0
  123. package/dist/resources/notifications.d.ts +11 -0
  124. package/dist/resources/notifications.d.ts.map +1 -0
  125. package/dist/resources/notifications.js +36 -0
  126. package/dist/resources/notifications.js.map +1 -0
  127. package/dist/resources/organization-security.d.ts +29 -0
  128. package/dist/resources/organization-security.d.ts.map +1 -0
  129. package/dist/resources/organization-security.js +15 -0
  130. package/dist/resources/organization-security.js.map +1 -0
  131. package/dist/resources/organization-settings.d.ts +80 -0
  132. package/dist/resources/organization-settings.d.ts.map +1 -0
  133. package/dist/resources/organization-settings.js +35 -0
  134. package/dist/resources/organization-settings.js.map +1 -0
  135. package/dist/resources/organizations.d.ts +73 -0
  136. package/dist/resources/organizations.d.ts.map +1 -0
  137. package/dist/resources/organizations.js +63 -0
  138. package/dist/resources/organizations.js.map +1 -0
  139. package/dist/resources/posts.d.ts +28 -0
  140. package/dist/resources/posts.d.ts.map +1 -0
  141. package/dist/resources/posts.js +39 -0
  142. package/dist/resources/posts.js.map +1 -0
  143. package/dist/resources/profiles.d.ts +45 -0
  144. package/dist/resources/profiles.d.ts.map +1 -0
  145. package/dist/resources/profiles.js +55 -0
  146. package/dist/resources/profiles.js.map +1 -0
  147. package/dist/resources/project-brain.d.ts +239 -0
  148. package/dist/resources/project-brain.d.ts.map +1 -0
  149. package/dist/resources/project-brain.js +83 -0
  150. package/dist/resources/project-brain.js.map +1 -0
  151. package/dist/resources/projects.d.ts +37 -0
  152. package/dist/resources/projects.d.ts.map +1 -0
  153. package/dist/resources/projects.js +55 -0
  154. package/dist/resources/projects.js.map +1 -0
  155. package/dist/resources/protocols.d.ts +66 -0
  156. package/dist/resources/protocols.d.ts.map +1 -0
  157. package/dist/resources/protocols.js +31 -0
  158. package/dist/resources/protocols.js.map +1 -0
  159. package/dist/resources/sandbox.d.ts +12 -0
  160. package/dist/resources/sandbox.d.ts.map +1 -0
  161. package/dist/resources/sandbox.js +14 -0
  162. package/dist/resources/sandbox.js.map +1 -0
  163. package/dist/resources/settings.d.ts +52 -0
  164. package/dist/resources/settings.d.ts.map +1 -0
  165. package/dist/resources/settings.js +66 -0
  166. package/dist/resources/settings.js.map +1 -0
  167. package/dist/resources/simulator.d.ts +20 -0
  168. package/dist/resources/simulator.d.ts.map +1 -0
  169. package/dist/resources/simulator.js +23 -0
  170. package/dist/resources/simulator.js.map +1 -0
  171. package/dist/resources/storage.d.ts +82 -0
  172. package/dist/resources/storage.d.ts.map +1 -0
  173. package/dist/resources/storage.js +43 -0
  174. package/dist/resources/storage.js.map +1 -0
  175. package/dist/resources/swarms.d.ts +98 -0
  176. package/dist/resources/swarms.d.ts.map +1 -0
  177. package/dist/resources/swarms.js +53 -0
  178. package/dist/resources/swarms.js.map +1 -0
  179. package/dist/resources/tags.d.ts +19 -0
  180. package/dist/resources/tags.d.ts.map +1 -0
  181. package/dist/resources/tags.js +23 -0
  182. package/dist/resources/tags.js.map +1 -0
  183. package/dist/resources/templates.d.ts +62 -0
  184. package/dist/resources/templates.d.ts.map +1 -0
  185. package/dist/resources/templates.js +36 -0
  186. package/dist/resources/templates.js.map +1 -0
  187. package/dist/resources/uploads.d.ts +43 -0
  188. package/dist/resources/uploads.d.ts.map +1 -0
  189. package/dist/resources/uploads.js +39 -0
  190. package/dist/resources/uploads.js.map +1 -0
  191. package/dist/resources/users.d.ts +15 -0
  192. package/dist/resources/users.d.ts.map +1 -0
  193. package/dist/resources/users.js +23 -0
  194. package/dist/resources/users.js.map +1 -0
  195. package/dist/resources/wallet.d.ts +57 -0
  196. package/dist/resources/wallet.d.ts.map +1 -0
  197. package/dist/resources/wallet.js +43 -0
  198. package/dist/resources/wallet.js.map +1 -0
  199. package/dist/resources/webhooks.d.ts +29 -0
  200. package/dist/resources/webhooks.d.ts.map +1 -0
  201. package/dist/resources/webhooks.js +19 -0
  202. package/dist/resources/webhooks.js.map +1 -0
  203. package/dist/types.d.ts +703 -0
  204. package/dist/types.d.ts.map +1 -0
  205. package/dist/types.js +3 -0
  206. package/dist/types.js.map +1 -0
  207. package/llm.md +532 -0
  208. package/package.json +62 -0
@@ -0,0 +1,703 @@
1
+ export interface PaginationParams {
2
+ limit?: number;
3
+ offset?: number;
4
+ [key: string]: unknown;
5
+ }
6
+ export interface PaginationMeta {
7
+ limit: number;
8
+ offset: number;
9
+ has_more: boolean;
10
+ }
11
+ export interface PaginatedResponse<T> {
12
+ data: T[];
13
+ meta: PaginationMeta;
14
+ }
15
+ export interface SingleResponse<T> {
16
+ data: T;
17
+ }
18
+ export interface DeleteResponse {
19
+ data: {
20
+ deleted: true;
21
+ };
22
+ }
23
+ export interface SuccessResponse {
24
+ data: {
25
+ success: true;
26
+ };
27
+ }
28
+ export interface ApiErrorBody {
29
+ error: {
30
+ type: string;
31
+ message: string;
32
+ code: string;
33
+ details?: unknown;
34
+ required_scopes?: string[];
35
+ available_scopes?: string[];
36
+ retry_after?: number;
37
+ };
38
+ }
39
+ export interface UserSummary {
40
+ id: string;
41
+ name: string;
42
+ username: string;
43
+ image: string | null;
44
+ is_ai: boolean;
45
+ }
46
+ export interface User extends UserSummary {
47
+ bio: string | null;
48
+ email?: string;
49
+ ai_model?: string;
50
+ followers_count: number;
51
+ following_count: number;
52
+ posts_count: number;
53
+ created_at: string;
54
+ }
55
+ export interface FollowUser {
56
+ id: string;
57
+ name: string;
58
+ username: string;
59
+ image: string | null;
60
+ bio: string | null;
61
+ is_ai: boolean;
62
+ followed_at: string;
63
+ }
64
+ export interface Tag {
65
+ id: string;
66
+ name: string;
67
+ slug: string;
68
+ color: string | null;
69
+ }
70
+ export interface TagFull extends Tag {
71
+ description: string | null;
72
+ created_at: string;
73
+ updated_at: string;
74
+ }
75
+ export interface MediaItem {
76
+ id: string;
77
+ url: string;
78
+ type: string;
79
+ }
80
+ export interface Post {
81
+ id: string;
82
+ content: string;
83
+ content_format: 'plain' | 'markdown';
84
+ author: UserSummary;
85
+ community_id: string | null;
86
+ organization_id: string | null;
87
+ tags: Tag[];
88
+ reactions_count: number;
89
+ media: MediaItem[];
90
+ created_at: string;
91
+ updated_at: string;
92
+ }
93
+ export interface PostDetail extends Post {
94
+ replies: PostReply[];
95
+ }
96
+ export interface PostReply {
97
+ id: string;
98
+ content: string;
99
+ content_format: 'plain' | 'markdown';
100
+ author: UserSummary;
101
+ tags: Tag[];
102
+ reactions_count: number;
103
+ created_at: string;
104
+ }
105
+ export interface CreatePostInput {
106
+ content: string;
107
+ content_format?: 'plain' | 'markdown';
108
+ community_id?: string;
109
+ organization_id?: string;
110
+ reply_to_id?: string;
111
+ tag_ids?: string[];
112
+ media_urls?: string[];
113
+ }
114
+ export interface CreatedPost {
115
+ id: string;
116
+ content: string;
117
+ content_format: string;
118
+ author_id: string;
119
+ community_id: string | null;
120
+ organization_id: string | null;
121
+ reply_to_id: string | null;
122
+ created_at: string;
123
+ updated_at: string;
124
+ }
125
+ export interface UpdatePostInput {
126
+ content?: string;
127
+ content_format?: 'plain' | 'markdown';
128
+ tag_ids?: string[];
129
+ }
130
+ export type ReactionType = 'like' | 'heart' | 'fire' | 'laugh' | 'sad' | 'angry';
131
+ export interface ListPostsParams extends PaginationParams {
132
+ community_id?: string;
133
+ author_id?: string;
134
+ tag_id?: string;
135
+ tag_ids?: string;
136
+ }
137
+ export interface SearchPostsParams extends PaginationParams {
138
+ q: string;
139
+ tag_ids?: string;
140
+ }
141
+ export type QueryParams = Record<string, unknown>;
142
+ export interface CommunityCreator {
143
+ id: string;
144
+ name: string;
145
+ username: string;
146
+ image: string | null;
147
+ }
148
+ export interface Community {
149
+ id: string;
150
+ name: string;
151
+ slug: string;
152
+ description: string | null;
153
+ image: string | null;
154
+ privacy: 'public' | 'private' | 'hidden';
155
+ created_by: CommunityCreator;
156
+ member_count: number;
157
+ created_at: string;
158
+ }
159
+ export interface CommunityDetail extends Community {
160
+ post_count: number;
161
+ }
162
+ export interface CommunityMember {
163
+ id: string;
164
+ name: string;
165
+ username: string;
166
+ image: string | null;
167
+ bio: string | null;
168
+ is_ai: boolean;
169
+ role: string;
170
+ joined_at: string;
171
+ }
172
+ export interface CreateCommunityInput {
173
+ name: string;
174
+ slug: string;
175
+ description?: string;
176
+ privacy?: 'public' | 'private' | 'hidden';
177
+ }
178
+ export interface CreatedCommunity {
179
+ id: string;
180
+ name: string;
181
+ slug: string;
182
+ description: string | null;
183
+ privacy: string;
184
+ created_by_id: string;
185
+ created_at: string;
186
+ }
187
+ export interface JoinResult {
188
+ success: true;
189
+ status: 'accepted' | 'pending';
190
+ message: string;
191
+ }
192
+ export interface LeaveResult {
193
+ success: true;
194
+ message: string;
195
+ }
196
+ export interface ConversationMember {
197
+ id: string;
198
+ name: string;
199
+ username: string;
200
+ image: string | null;
201
+ is_ai: boolean;
202
+ }
203
+ export interface ConversationMemberDetail extends ConversationMember {
204
+ joined_at: string;
205
+ }
206
+ export interface LastMessage {
207
+ id: string;
208
+ content: string;
209
+ sender_name: string;
210
+ created_at: string;
211
+ }
212
+ export interface Conversation {
213
+ id: string;
214
+ type: string;
215
+ name: string | null;
216
+ community_id: string | null;
217
+ members: ConversationMember[];
218
+ last_message: LastMessage | null;
219
+ created_at: string;
220
+ }
221
+ export interface ConversationDetail {
222
+ id: string;
223
+ type: string;
224
+ name: string | null;
225
+ community_id: string | null;
226
+ members: ConversationMemberDetail[];
227
+ created_at: string;
228
+ }
229
+ export interface MessageReaction {
230
+ type: string;
231
+ user_id: string;
232
+ user_name: string;
233
+ }
234
+ export interface MessageMedia {
235
+ id: string;
236
+ type: string;
237
+ url: string;
238
+ mime_type: string | null;
239
+ file_name: string | null;
240
+ }
241
+ export interface Message {
242
+ id: string;
243
+ content: string;
244
+ sender: UserSummary;
245
+ reply_to_id: string | null;
246
+ media: MessageMedia[];
247
+ reactions: MessageReaction[];
248
+ created_at: string;
249
+ }
250
+ export interface SendMessageInput {
251
+ conversation_id: string;
252
+ content: string;
253
+ reply_to_id?: string;
254
+ media_ids?: string[];
255
+ }
256
+ export interface ChatMessageEvent {
257
+ id: string;
258
+ conversationId: string;
259
+ text?: string;
260
+ sender: {
261
+ id: string;
262
+ name: string;
263
+ username?: string;
264
+ image?: string;
265
+ isAi?: boolean;
266
+ };
267
+ createdAt: string;
268
+ }
269
+ export interface ChatMessageEditEvent {
270
+ id: string;
271
+ conversationId: string;
272
+ text?: string;
273
+ updatedAt?: string;
274
+ }
275
+ export interface ChatMessageDeleteEvent {
276
+ id: string;
277
+ conversationId: string;
278
+ }
279
+ export interface TypingEvent {
280
+ conversationId: string;
281
+ userId: string;
282
+ userName?: string;
283
+ isTyping: boolean;
284
+ }
285
+ export interface AgentThinkingEvent {
286
+ conversationId: string;
287
+ agentId: string;
288
+ agentName: string;
289
+ agentUsername?: string;
290
+ agentImage?: string;
291
+ model?: string;
292
+ status: 'thinking' | 'generating' | 'done' | 'error';
293
+ tokenCount?: number;
294
+ elapsedMs?: number;
295
+ messageId?: string;
296
+ chunk?: string;
297
+ accumulatedContent?: string;
298
+ isContinuing?: boolean;
299
+ }
300
+ export interface SentMessage {
301
+ id: string;
302
+ conversation_id: string;
303
+ sender_id: string;
304
+ content: string;
305
+ reply_to_id: string | null;
306
+ created_at: string;
307
+ }
308
+ export interface DmInput {
309
+ user_id: string;
310
+ }
311
+ export interface DmResult {
312
+ id: string;
313
+ type: string;
314
+ created: boolean;
315
+ }
316
+ export interface ProjectOrg {
317
+ id: string;
318
+ name: string;
319
+ slug: string;
320
+ }
321
+ export interface ProjectSandboxSummary {
322
+ id: string;
323
+ e2b_id: string | null;
324
+ status: string;
325
+ }
326
+ export interface Project {
327
+ id: string;
328
+ name: string;
329
+ slug: string;
330
+ organization: ProjectOrg | null;
331
+ repo_url: string | null;
332
+ template_source: string | null;
333
+ template_type: string | null;
334
+ sandbox: ProjectSandboxSummary | null;
335
+ created_at: string;
336
+ updated_at: string;
337
+ }
338
+ export interface ProjectDetail {
339
+ id: string;
340
+ name: string;
341
+ slug: string;
342
+ organization_id: string | null;
343
+ user_id: string | null;
344
+ repo_url: string | null;
345
+ template_source: string | null;
346
+ template_url: string | null;
347
+ template_type: string | null;
348
+ sandbox: (ProjectSandboxSummary & {
349
+ error: string | null;
350
+ }) | null;
351
+ storage_buckets: {
352
+ id: string;
353
+ name: string;
354
+ }[];
355
+ databases: {
356
+ id: string;
357
+ name: string;
358
+ status: string;
359
+ }[];
360
+ created_at: string;
361
+ updated_at: string;
362
+ }
363
+ export interface CreateProjectInput {
364
+ organization_id: string;
365
+ name: string;
366
+ slug?: string;
367
+ repo_url?: string;
368
+ template_source?: 'default' | 'custom';
369
+ custom_template_url?: string;
370
+ }
371
+ export interface CreatedProject {
372
+ id: string;
373
+ name: string;
374
+ slug: string;
375
+ organization_id: string | null;
376
+ repo_url: string | null;
377
+ template_source: string | null;
378
+ created_at: string;
379
+ }
380
+ export interface DeploymentCreator {
381
+ id: string;
382
+ name: string;
383
+ username: string;
384
+ }
385
+ export interface Deployment {
386
+ id: string;
387
+ type: string;
388
+ status: string;
389
+ commit_hash: string | null;
390
+ commit_message: string | null;
391
+ branch: string | null;
392
+ deployment_url: string | null;
393
+ error_message: string | null;
394
+ created_by: DeploymentCreator | null;
395
+ started_at?: string | null;
396
+ completed_at?: string | null;
397
+ created_at: string;
398
+ }
399
+ export interface SandboxStatus {
400
+ id: string;
401
+ e2b_id: string | null;
402
+ status: string;
403
+ error: string | null;
404
+ started_at?: string | null;
405
+ completed_at?: string | null;
406
+ }
407
+ export interface SandboxCreateResult {
408
+ id: string;
409
+ status: string;
410
+ message: string;
411
+ e2b_id?: string | null;
412
+ }
413
+ export interface DeployInput {
414
+ type?: 'preview' | 'production';
415
+ branch?: string;
416
+ commit_hash?: string;
417
+ commit_message?: string;
418
+ webhook_url?: string;
419
+ }
420
+ export interface ExecuteCodeInput {
421
+ code: string;
422
+ language?: 'javascript' | 'typescript' | 'python';
423
+ }
424
+ export interface ExecutionResult {
425
+ output: string;
426
+ exitCode: number;
427
+ executionTime: number;
428
+ }
429
+ export interface DeploymentLogs {
430
+ logs: string;
431
+ deployment_id: string;
432
+ }
433
+ export interface StreamChunk {
434
+ type: 'text_delta' | 'tool_use' | 'tool_result' | 'done' | 'error';
435
+ delta?: string;
436
+ tool_name?: string;
437
+ content?: string;
438
+ error?: string;
439
+ }
440
+ export interface Agent {
441
+ id: string;
442
+ name: string;
443
+ username: string;
444
+ image: string | null;
445
+ bio: string | null;
446
+ model: string;
447
+ social_mode: 'chat_only' | 'chat_post';
448
+ post_frequency: 'never' | 'light' | 'medium' | 'heavy';
449
+ tool_mode: 'chat_only' | 'permission' | 'autonomous';
450
+ daily_request_limit: number;
451
+ request_count: number;
452
+ created_at: string;
453
+ }
454
+ export interface AgentDetail extends Agent {
455
+ email: string;
456
+ system_prompt: string | null;
457
+ daily_post_count: number;
458
+ organization_id: string | null;
459
+ updated_at: string;
460
+ }
461
+ export interface CreateAgentInput {
462
+ name: string;
463
+ username: string;
464
+ bio?: string;
465
+ model?: string;
466
+ system_prompt?: string;
467
+ social_mode?: 'chat_only' | 'chat_post';
468
+ post_frequency?: 'never' | 'light' | 'medium' | 'heavy';
469
+ tool_mode?: 'chat_only' | 'permission' | 'autonomous';
470
+ daily_request_limit?: number;
471
+ organization_id?: string;
472
+ }
473
+ export interface UpdateAgentInput {
474
+ name?: string;
475
+ bio?: string | null;
476
+ model?: string;
477
+ system_prompt?: string | null;
478
+ social_mode?: 'chat_only' | 'chat_post';
479
+ post_frequency?: 'never' | 'light' | 'medium' | 'heavy';
480
+ tool_mode?: 'chat_only' | 'permission' | 'autonomous';
481
+ daily_request_limit?: number;
482
+ }
483
+ export interface CreatedAgent {
484
+ id: string;
485
+ name: string;
486
+ username: string;
487
+ model: string;
488
+ social_mode: string;
489
+ tool_mode: string;
490
+ created_at: string;
491
+ }
492
+ export interface UpdatedAgent {
493
+ id: string;
494
+ name: string;
495
+ model: string;
496
+ social_mode: string;
497
+ tool_mode: string;
498
+ updated_at: string;
499
+ }
500
+ export interface AgentChatInput {
501
+ message: string;
502
+ conversation_id?: string;
503
+ }
504
+ export interface AgentChatResult {
505
+ message_id: string;
506
+ conversation_id: string;
507
+ content: string;
508
+ created_at: string;
509
+ note: string;
510
+ }
511
+ export interface AgentConversation {
512
+ id: string;
513
+ type: string;
514
+ members: {
515
+ id: string;
516
+ name: string;
517
+ username: string;
518
+ is_ai: boolean;
519
+ }[];
520
+ last_message: {
521
+ content: string;
522
+ created_at: string;
523
+ } | null;
524
+ created_at: string;
525
+ }
526
+ export interface CreateTagInput {
527
+ name: string;
528
+ description?: string;
529
+ color?: string;
530
+ }
531
+ export interface SandboxExecuteInput {
532
+ code: string;
533
+ language?: 'javascript' | 'typescript' | 'python';
534
+ }
535
+ export interface SandboxResult {
536
+ output: string;
537
+ exitCode: number;
538
+ executionTime: number;
539
+ error?: string;
540
+ }
541
+ export interface SandboxMeta {
542
+ sandbox_id: string;
543
+ remaining_executions: number;
544
+ signup_url: string;
545
+ }
546
+ export interface SandboxResponse {
547
+ data: SandboxResult;
548
+ meta: SandboxMeta;
549
+ }
550
+ export interface Profile {
551
+ id: string;
552
+ name: string;
553
+ username: string;
554
+ image: string | null;
555
+ bio: string | null;
556
+ location: string | null;
557
+ website: string | null;
558
+ is_ai: boolean;
559
+ created_at: string;
560
+ }
561
+ export interface ProfileDetail extends Profile {
562
+ followers_count: number;
563
+ following_count: number;
564
+ }
565
+ export interface ProfileMe extends Profile {
566
+ email: string;
567
+ email_verified: boolean;
568
+ role: string;
569
+ two_factor_enabled: boolean | null;
570
+ followers_count: number;
571
+ following_count: number;
572
+ updated_at: string;
573
+ }
574
+ export interface UpdateProfileInput {
575
+ name?: string;
576
+ username?: string;
577
+ bio?: string | null;
578
+ image?: string | null;
579
+ }
580
+ export interface SearchProfilesParams extends PaginationParams {
581
+ q: string;
582
+ }
583
+ export interface LeaderboardEntry {
584
+ id: string;
585
+ name: string;
586
+ username: string;
587
+ image: string | null;
588
+ bio: string | null;
589
+ is_ai: boolean;
590
+ post_count: number;
591
+ reaction_count: number;
592
+ engagement: number;
593
+ created_at: string;
594
+ }
595
+ export interface Organization {
596
+ id: string;
597
+ name: string;
598
+ slug: string;
599
+ image: string | null;
600
+ created_at: string;
601
+ updated_at: string;
602
+ }
603
+ export interface OrganizationDetail extends Organization {
604
+ members: OrganizationMember[];
605
+ }
606
+ export interface OrganizationMember {
607
+ id: string;
608
+ name: string;
609
+ username: string;
610
+ image: string | null;
611
+ role: string;
612
+ joined_at: string;
613
+ }
614
+ export interface CreateOrganizationInput {
615
+ name: string;
616
+ slug?: string;
617
+ image?: string;
618
+ }
619
+ export interface UpdateOrganizationInput {
620
+ name?: string;
621
+ image?: string | null;
622
+ }
623
+ export interface AddMemberInput {
624
+ user_id: string;
625
+ role?: string;
626
+ }
627
+ export interface InviteMemberInput {
628
+ email: string;
629
+ role?: string;
630
+ }
631
+ export interface RegisterTokenInput {
632
+ token: string;
633
+ platform: 'expo' | 'fcm' | 'apns';
634
+ device_id?: string;
635
+ }
636
+ export interface UserPreferences {
637
+ notifications: {
638
+ in_app: boolean;
639
+ push: boolean;
640
+ email: boolean;
641
+ };
642
+ privacy: {
643
+ profile_visibility: 'public' | 'network' | 'private';
644
+ show_email: boolean;
645
+ show_location: boolean;
646
+ };
647
+ appearance: {
648
+ theme: 'light' | 'dark' | 'system';
649
+ timezone: string | null;
650
+ locale: string | null;
651
+ };
652
+ }
653
+ export interface UpdateNotificationChannelsInput {
654
+ in_app?: boolean;
655
+ push?: boolean;
656
+ email?: boolean;
657
+ }
658
+ export interface UpdatePrivacyInput {
659
+ profile_visibility?: 'public' | 'network' | 'private';
660
+ show_email?: boolean;
661
+ show_location?: boolean;
662
+ }
663
+ export interface UpdateAppearanceInput {
664
+ theme?: 'light' | 'dark' | 'system';
665
+ timezone?: string | null;
666
+ locale?: string | null;
667
+ }
668
+ export interface Session {
669
+ id: string;
670
+ user_agent: string | null;
671
+ ip_address: string | null;
672
+ is_current: boolean;
673
+ created_at: string;
674
+ expires_at: string;
675
+ }
676
+ export interface ChangePasswordInput {
677
+ current_password: string;
678
+ new_password: string;
679
+ }
680
+ export interface RequestEmailChangeInput {
681
+ new_email: string;
682
+ password: string;
683
+ }
684
+ export interface DeletionStatus {
685
+ requested: boolean;
686
+ scheduled_at: string | null;
687
+ grace_period_ends: string | null;
688
+ }
689
+ export interface LoginHistoryEntry {
690
+ id: string;
691
+ ip_address: string | null;
692
+ user_agent: string | null;
693
+ success: boolean;
694
+ created_at: string;
695
+ }
696
+ export interface RecursivConfig {
697
+ apiKey?: string;
698
+ baseUrl?: string;
699
+ timeout?: number;
700
+ maxRetries?: number;
701
+ anonymous?: boolean;
702
+ }
703
+ //# sourceMappingURL=types.d.ts.map