@archastro/sdk 0.4.0 → 0.5.2

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 (273) hide show
  1. package/dist/auth.d.ts +1 -1
  2. package/dist/auth.d.ts.map +1 -1
  3. package/dist/auth.js +8 -8
  4. package/dist/auth.js.map +1 -1
  5. package/dist/channels/api_activity_feed_channel.d.ts +11 -3
  6. package/dist/channels/api_activity_feed_channel.d.ts.map +1 -1
  7. package/dist/channels/api_activity_feed_channel.js +24 -4
  8. package/dist/channels/api_activity_feed_channel.js.map +1 -1
  9. package/dist/channels/api_chat_channel.d.ts +53 -7
  10. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  11. package/dist/channels/api_chat_channel.js +56 -8
  12. package/dist/channels/api_chat_channel.js.map +1 -1
  13. package/dist/channels/api_object_channel.d.ts +9 -3
  14. package/dist/channels/api_object_channel.d.ts.map +1 -1
  15. package/dist/channels/api_object_channel.js +22 -4
  16. package/dist/channels/api_object_channel.js.map +1 -1
  17. package/dist/client.d.ts +6 -0
  18. package/dist/client.d.ts.map +1 -1
  19. package/dist/client.js +7 -1
  20. package/dist/client.js.map +1 -1
  21. package/dist/phx_channel/channel.d.ts +10 -1
  22. package/dist/phx_channel/channel.d.ts.map +1 -1
  23. package/dist/phx_channel/channel.js +5 -5
  24. package/dist/phx_channel/channel.js.map +1 -1
  25. package/dist/phx_channel/socket.d.ts +0 -1
  26. package/dist/phx_channel/socket.d.ts.map +1 -1
  27. package/dist/phx_channel/socket.js +15 -12
  28. package/dist/phx_channel/socket.js.map +1 -1
  29. package/dist/types/agents.d.ts +987 -1388
  30. package/dist/types/agents.d.ts.map +1 -1
  31. package/dist/types/agents.js +104 -153
  32. package/dist/types/agents.js.map +1 -1
  33. package/dist/types/ai.d.ts +8 -76
  34. package/dist/types/ai.d.ts.map +1 -1
  35. package/dist/types/ai.js +1 -21
  36. package/dist/types/ai.js.map +1 -1
  37. package/dist/types/artifacts.d.ts +4 -83
  38. package/dist/types/artifacts.d.ts.map +1 -1
  39. package/dist/types/artifacts.js +1 -15
  40. package/dist/types/artifacts.js.map +1 -1
  41. package/dist/types/automations.d.ts +2 -68
  42. package/dist/types/automations.d.ts.map +1 -1
  43. package/dist/types/automations.js +1 -26
  44. package/dist/types/automations.js.map +1 -1
  45. package/dist/types/common.d.ts +1716 -6242
  46. package/dist/types/common.d.ts.map +1 -1
  47. package/dist/types/common.js +247 -1202
  48. package/dist/types/common.js.map +1 -1
  49. package/dist/types/config.d.ts +10 -62
  50. package/dist/types/config.d.ts.map +1 -1
  51. package/dist/types/config.js +3 -25
  52. package/dist/types/config.js.map +1 -1
  53. package/dist/types/index.d.ts +1 -6
  54. package/dist/types/index.d.ts.map +1 -1
  55. package/dist/types/index.js +2 -7
  56. package/dist/types/index.js.map +1 -1
  57. package/dist/types/invites.d.ts +63 -0
  58. package/dist/types/invites.d.ts.map +1 -0
  59. package/dist/types/invites.js +18 -0
  60. package/dist/types/invites.js.map +1 -0
  61. package/dist/types/teams.d.ts +97 -389
  62. package/dist/types/teams.d.ts.map +1 -1
  63. package/dist/types/teams.js +5 -37
  64. package/dist/types/teams.js.map +1 -1
  65. package/dist/types/threads.d.ts +52 -682
  66. package/dist/types/threads.d.ts.map +1 -1
  67. package/dist/types/threads.js +7 -114
  68. package/dist/types/threads.js.map +1 -1
  69. package/dist/types/users.d.ts +63 -63
  70. package/dist/types/users.d.ts.map +1 -1
  71. package/dist/types/users.js +3 -15
  72. package/dist/types/users.js.map +1 -1
  73. package/dist/v1/resources/activity_feed.d.ts +83 -0
  74. package/dist/v1/resources/activity_feed.d.ts.map +1 -0
  75. package/dist/v1/resources/activity_feed.js +13 -0
  76. package/dist/v1/resources/activity_feed.js.map +1 -0
  77. package/dist/v1/resources/agent_computers.d.ts +5 -2
  78. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  79. package/dist/v1/resources/agent_computers.js +4 -4
  80. package/dist/v1/resources/agent_computers.js.map +1 -1
  81. package/dist/v1/resources/agent_installations.d.ts +9 -4
  82. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  83. package/dist/v1/resources/agent_installations.js +7 -7
  84. package/dist/v1/resources/agent_installations.js.map +1 -1
  85. package/dist/v1/resources/agent_routines.d.ts +73 -10
  86. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  87. package/dist/v1/resources/agent_routines.js +13 -13
  88. package/dist/v1/resources/agent_routines.js.map +1 -1
  89. package/dist/v1/resources/agent_sessions.d.ts +23 -6
  90. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  91. package/dist/v1/resources/agent_sessions.js +8 -8
  92. package/dist/v1/resources/agent_sessions.js.map +1 -1
  93. package/dist/v1/resources/agent_skills.d.ts +14 -6
  94. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  95. package/dist/v1/resources/agent_skills.js +10 -10
  96. package/dist/v1/resources/agent_skills.js.map +1 -1
  97. package/dist/v1/resources/agent_tools.d.ts +17 -6
  98. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  99. package/dist/v1/resources/agent_tools.js +11 -11
  100. package/dist/v1/resources/agent_tools.js.map +1 -1
  101. package/dist/v1/resources/agents.d.ts +191 -22
  102. package/dist/v1/resources/agents.d.ts.map +1 -1
  103. package/dist/v1/resources/agents.js +22 -22
  104. package/dist/v1/resources/agents.js.map +1 -1
  105. package/dist/v1/resources/ai.d.ts +67 -3
  106. package/dist/v1/resources/ai.d.ts.map +1 -1
  107. package/dist/v1/resources/ai.js +4 -4
  108. package/dist/v1/resources/ai.js.map +1 -1
  109. package/dist/v1/resources/artifacts.d.ts +9 -2
  110. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  111. package/dist/v1/resources/artifacts.js +4 -4
  112. package/dist/v1/resources/artifacts.js.map +1 -1
  113. package/dist/v1/resources/automations.d.ts +4 -1
  114. package/dist/v1/resources/automations.d.ts.map +1 -1
  115. package/dist/v1/resources/automations.js +1 -1
  116. package/dist/v1/resources/automations.js.map +1 -1
  117. package/dist/v1/resources/config.d.ts +70 -22
  118. package/dist/v1/resources/config.d.ts.map +1 -1
  119. package/dist/v1/resources/config.js +20 -20
  120. package/dist/v1/resources/config.js.map +1 -1
  121. package/dist/v1/resources/custom_objects.d.ts +5 -1
  122. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  123. package/dist/v1/resources/custom_objects.js +1 -1
  124. package/dist/v1/resources/custom_objects.js.map +1 -1
  125. package/dist/v1/resources/index.d.ts +3 -0
  126. package/dist/v1/resources/index.d.ts.map +1 -1
  127. package/dist/v1/resources/index.js +4 -1
  128. package/dist/v1/resources/index.js.map +1 -1
  129. package/dist/v1/resources/invites.d.ts +10 -0
  130. package/dist/v1/resources/invites.d.ts.map +1 -0
  131. package/dist/v1/resources/invites.js +13 -0
  132. package/dist/v1/resources/invites.js.map +1 -0
  133. package/dist/v1/resources/kv.d.ts +27 -0
  134. package/dist/v1/resources/kv.d.ts.map +1 -0
  135. package/dist/v1/resources/kv.js +25 -0
  136. package/dist/v1/resources/kv.js.map +1 -0
  137. package/dist/v1/resources/orgs.js +1 -1
  138. package/dist/v1/resources/orgs.js.map +1 -1
  139. package/dist/v1/resources/team_memberships.d.ts +1 -1
  140. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  141. package/dist/v1/resources/team_memberships.js +4 -4
  142. package/dist/v1/resources/team_memberships.js.map +1 -1
  143. package/dist/v1/resources/teams.d.ts +108 -27
  144. package/dist/v1/resources/teams.d.ts.map +1 -1
  145. package/dist/v1/resources/teams.js +13 -13
  146. package/dist/v1/resources/teams.js.map +1 -1
  147. package/dist/v1/resources/thread_messages.d.ts +7 -3
  148. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  149. package/dist/v1/resources/thread_messages.js +4 -4
  150. package/dist/v1/resources/thread_messages.js.map +1 -1
  151. package/dist/v1/resources/threads.d.ts +71 -45
  152. package/dist/v1/resources/threads.d.ts.map +1 -1
  153. package/dist/v1/resources/threads.js +19 -19
  154. package/dist/v1/resources/threads.js.map +1 -1
  155. package/dist/v1/resources/users.d.ts +43 -6
  156. package/dist/v1/resources/users.d.ts.map +1 -1
  157. package/dist/v1/resources/users.js +7 -4
  158. package/dist/v1/resources/users.js.map +1 -1
  159. package/dist/v1.d.ts +6 -0
  160. package/dist/v1.d.ts.map +1 -1
  161. package/dist/v1.js +10 -1
  162. package/dist/v1.js.map +1 -1
  163. package/package.json +6 -2
  164. package/LICENSE +0 -21
  165. package/README.md +0 -165
  166. package/dist/types/api.d.ts +0 -169
  167. package/dist/types/api.d.ts.map +0 -1
  168. package/dist/types/api.js +0 -49
  169. package/dist/types/api.js.map +0 -1
  170. package/dist/types/chat.d.ts +0 -272
  171. package/dist/types/chat.d.ts.map +0 -1
  172. package/dist/types/chat.js +0 -14
  173. package/dist/types/chat.js.map +0 -1
  174. package/dist/types/device.d.ts +0 -26
  175. package/dist/types/device.d.ts.map +0 -1
  176. package/dist/types/device.js +0 -14
  177. package/dist/types/device.js.map +0 -1
  178. package/dist/types/invite.d.ts +0 -17
  179. package/dist/types/invite.d.ts.map +0 -1
  180. package/dist/types/invite.js +0 -11
  181. package/dist/types/invite.js.map +0 -1
  182. package/dist/types/me.d.ts +0 -257
  183. package/dist/types/me.d.ts.map +0 -1
  184. package/dist/types/me.js +0 -42
  185. package/dist/types/me.js.map +0 -1
  186. package/dist/types/members.d.ts +0 -99
  187. package/dist/types/members.d.ts.map +0 -1
  188. package/dist/types/members.js +0 -36
  189. package/dist/types/members.js.map +0 -1
  190. package/dist/types/messages.d.ts +0 -517
  191. package/dist/types/messages.d.ts.map +0 -1
  192. package/dist/types/messages.js +0 -50
  193. package/dist/types/messages.js.map +0 -1
  194. package/dist/types/oauth.d.ts +0 -206
  195. package/dist/types/oauth.d.ts.map +0 -1
  196. package/dist/types/oauth.js +0 -51
  197. package/dist/types/oauth.js.map +0 -1
  198. package/dist/types/orgs.d.ts +0 -193
  199. package/dist/types/orgs.d.ts.map +0 -1
  200. package/dist/types/orgs.js +0 -69
  201. package/dist/types/orgs.js.map +0 -1
  202. package/dist/types/picture.d.ts +0 -20
  203. package/dist/types/picture.d.ts.map +0 -1
  204. package/dist/types/picture.js +0 -14
  205. package/dist/types/picture.js.map +0 -1
  206. package/dist/types/profile.d.ts +0 -17
  207. package/dist/types/profile.d.ts.map +0 -1
  208. package/dist/types/profile.js +0 -11
  209. package/dist/types/profile.js.map +0 -1
  210. package/dist/types/reactions.d.ts +0 -29
  211. package/dist/types/reactions.d.ts.map +0 -1
  212. package/dist/types/reactions.js +0 -15
  213. package/dist/types/reactions.js.map +0 -1
  214. package/dist/types/runs.d.ts +0 -46
  215. package/dist/types/runs.d.ts.map +0 -1
  216. package/dist/types/runs.js +0 -15
  217. package/dist/types/runs.js.map +0 -1
  218. package/dist/types/schedules.d.ts +0 -32
  219. package/dist/types/schedules.d.ts.map +0 -1
  220. package/dist/types/schedules.js +0 -16
  221. package/dist/types/schedules.js.map +0 -1
  222. package/dist/types/system.d.ts +0 -23
  223. package/dist/types/system.d.ts.map +0 -1
  224. package/dist/types/system.js +0 -13
  225. package/dist/types/system.js.map +0 -1
  226. package/dist/v1/resources/ai_chat_completions.d.ts +0 -49
  227. package/dist/v1/resources/ai_chat_completions.d.ts.map +0 -1
  228. package/dist/v1/resources/ai_chat_completions.js +0 -14
  229. package/dist/v1/resources/ai_chat_completions.js.map +0 -1
  230. package/dist/v1/resources/ai_chat_models.d.ts +0 -12
  231. package/dist/v1/resources/ai_chat_models.d.ts.map +0 -1
  232. package/dist/v1/resources/ai_chat_models.js +0 -14
  233. package/dist/v1/resources/ai_chat_models.js.map +0 -1
  234. package/dist/v1/resources/ai_image_edits.d.ts +0 -20
  235. package/dist/v1/resources/ai_image_edits.d.ts.map +0 -1
  236. package/dist/v1/resources/ai_image_edits.js +0 -14
  237. package/dist/v1/resources/ai_image_edits.js.map +0 -1
  238. package/dist/v1/resources/ai_image_generations.d.ts +0 -20
  239. package/dist/v1/resources/ai_image_generations.d.ts.map +0 -1
  240. package/dist/v1/resources/ai_image_generations.js +0 -14
  241. package/dist/v1/resources/ai_image_generations.js.map +0 -1
  242. package/dist/v1/resources/ai_image_models.d.ts +0 -12
  243. package/dist/v1/resources/ai_image_models.d.ts.map +0 -1
  244. package/dist/v1/resources/ai_image_models.js +0 -14
  245. package/dist/v1/resources/ai_image_models.js.map +0 -1
  246. package/dist/v1/resources/api.d.ts +0 -1026
  247. package/dist/v1/resources/api.d.ts.map +0 -1
  248. package/dist/v1/resources/api.js +0 -944
  249. package/dist/v1/resources/api.js.map +0 -1
  250. package/dist/v1/resources/completions.d.ts +0 -49
  251. package/dist/v1/resources/completions.d.ts.map +0 -1
  252. package/dist/v1/resources/completions.js +0 -14
  253. package/dist/v1/resources/completions.js.map +0 -1
  254. package/dist/v1/resources/edits.d.ts +0 -20
  255. package/dist/v1/resources/edits.d.ts.map +0 -1
  256. package/dist/v1/resources/edits.js +0 -14
  257. package/dist/v1/resources/edits.js.map +0 -1
  258. package/dist/v1/resources/generations.d.ts +0 -20
  259. package/dist/v1/resources/generations.d.ts.map +0 -1
  260. package/dist/v1/resources/generations.js +0 -14
  261. package/dist/v1/resources/generations.js.map +0 -1
  262. package/dist/v1/resources/invoke.d.ts +0 -29
  263. package/dist/v1/resources/invoke.d.ts.map +0 -1
  264. package/dist/v1/resources/invoke.js +0 -23
  265. package/dist/v1/resources/invoke.js.map +0 -1
  266. package/dist/v1/resources/models.d.ts +0 -12
  267. package/dist/v1/resources/models.d.ts.map +0 -1
  268. package/dist/v1/resources/models.js +0 -14
  269. package/dist/v1/resources/models.js.map +0 -1
  270. package/dist/v1/resources/oauth.d.ts +0 -25
  271. package/dist/v1/resources/oauth.d.ts.map +0 -1
  272. package/dist/v1/resources/oauth.js +0 -41
  273. package/dist/v1/resources/oauth.js.map +0 -1
@@ -1,1026 +0,0 @@
1
- import { HttpClient } from "../../runtime/http-client.js";
2
- import type { Agent, AgentComputer, AgentListResponse, AgentRoutine, AgentRoutineListResponse, AgentRoutineRun, AgentRoutineRunListResponse, AgentSchedule, AgentSession, AgentSessionListResponse, AgentSkill, AgentSkillList, AgentTool, AgentToolListResponse } from "../../types/agents.js";
3
- import type { AICompletionResult, AIImageResult } from "../../types/ai.js";
4
- import type { Artifact } from "../../types/artifacts.js";
5
- import type { AutomationRun } from "../../types/automations.js";
6
- import type { BuiltinToolCatalogEntry, ComputerExecResult, CustomObject, Installation, InstallationKindListResponse, InstallationListResponse, InstallationSource, PaginatedReplies, RoutinePreset, ValidationResult, WorkingMemoryEntryListResponse } from "../../types/common.js";
7
- import type { Config, ConfigKindSchema } from "../../types/config.js";
8
- import type { Message } from "../../types/messages.js";
9
- import type { Team, TeamInvite, TeamMembership, TeamMembershipListResponse } from "../../types/teams.js";
10
- import type { Thread, ThreadMember, ThreadReadStatus, ThreadSettings } from "../../types/threads.js";
11
- import type { User } from "../../types/users.js";
12
- export declare class AutomationRunResource {
13
- private http;
14
- constructor(http: HttpClient);
15
- /**
16
- * Get a single invoked automation run
17
- * Fetches one run created by an invoked automation.
18
- * This public lookup route only returns runs whose parent automation has
19
- * `type: :invoked`.
20
- */
21
- get(automationRun: string): Promise<AutomationRun>;
22
- }
23
- export declare class SystemResource {
24
- private http;
25
- constructor(http: HttpClient);
26
- list(params?: {
27
- kind?: string;
28
- }): Promise<{
29
- data: {
30
- created_at?: string | undefined;
31
- current_version?: {
32
- change_description?: string | undefined;
33
- created_at?: string | undefined;
34
- data?: Record<string, unknown> | undefined;
35
- id: string;
36
- org?: string | undefined;
37
- sandbox?: string | undefined;
38
- version_number: number;
39
- } | undefined;
40
- id: string;
41
- is_archived?: boolean | undefined;
42
- kind: string;
43
- lookup_key?: string | undefined;
44
- mime_type?: string | undefined;
45
- org?: string | undefined;
46
- raw_content?: string | undefined;
47
- sandbox?: string | undefined;
48
- team?: string | undefined;
49
- updated_at?: string | undefined;
50
- user?: string | undefined;
51
- virtual_path?: string | undefined;
52
- }[];
53
- }>;
54
- clone(system: string, input: Record<string, unknown>): Promise<Config>;
55
- get(system: string): Promise<Config>;
56
- }
57
- export declare class SchemaResource {
58
- private http;
59
- constructor(http: HttpClient);
60
- list(kind: string): Promise<ConfigKindSchema>;
61
- }
62
- export declare class KindResource {
63
- private http;
64
- readonly schema: SchemaResource;
65
- constructor(http: HttpClient);
66
- list(params?: {
67
- kind?: string[];
68
- }): Promise<{
69
- data: {
70
- classification: string;
71
- description?: string | undefined;
72
- kind: string;
73
- sample_available: boolean;
74
- schema_available: boolean;
75
- }[];
76
- }>;
77
- }
78
- export declare class VersionResource {
79
- private http;
80
- constructor(http: HttpClient);
81
- list(config: string, params?: {
82
- team?: string;
83
- user?: string;
84
- }): Promise<{
85
- versions: {
86
- change_description?: string | undefined;
87
- created_at?: string | undefined;
88
- data?: Record<string, unknown> | undefined;
89
- id: string;
90
- org?: string | undefined;
91
- sandbox?: string | undefined;
92
- version_number: number;
93
- }[];
94
- }>;
95
- }
96
- export declare class ApiV1ConfigContentResource {
97
- private http;
98
- constructor(http: HttpClient);
99
- list(config: string, params?: {
100
- team?: string;
101
- user?: string;
102
- format?: string;
103
- }): Promise<Record<string, unknown>>;
104
- }
105
- export declare class ConfigResource {
106
- private http;
107
- readonly system: SystemResource;
108
- readonly kinds: KindResource;
109
- readonly versions: VersionResource;
110
- readonly content: ApiV1ConfigContentResource;
111
- constructor(http: HttpClient);
112
- delete(config: string): Promise<void>;
113
- get(config: string, params?: {
114
- team?: string;
115
- user?: string;
116
- }): Promise<Config>;
117
- replace(config: string, input: Record<string, unknown>): Promise<Config>;
118
- validate(input: Record<string, unknown>): Promise<ValidationResult>;
119
- list(params?: {
120
- team?: string;
121
- user?: string;
122
- kind?: string;
123
- }): Promise<{
124
- data: {
125
- created_at?: string | undefined;
126
- current_version?: {
127
- change_description?: string | undefined;
128
- created_at?: string | undefined;
129
- data?: Record<string, unknown> | undefined;
130
- id: string;
131
- org?: string | undefined;
132
- sandbox?: string | undefined;
133
- version_number: number;
134
- } | undefined;
135
- id: string;
136
- is_archived?: boolean | undefined;
137
- kind: string;
138
- lookup_key?: string | undefined;
139
- mime_type?: string | undefined;
140
- org?: string | undefined;
141
- raw_content?: string | undefined;
142
- sandbox?: string | undefined;
143
- team?: string | undefined;
144
- updated_at?: string | undefined;
145
- user?: string | undefined;
146
- virtual_path?: string | undefined;
147
- }[];
148
- }>;
149
- create(input: Record<string, unknown>): Promise<Config>;
150
- unarchive(config: string, input: Record<string, unknown>): Promise<Config>;
151
- archive(config: string, input: Record<string, unknown>): Promise<Config>;
152
- encryptSecret(input: Record<string, unknown>): Promise<{
153
- encrypted_value: string;
154
- }>;
155
- }
156
- export declare class ContentResource {
157
- private http;
158
- constructor(http: HttpClient);
159
- list(artifact: string, params?: {
160
- version?: number;
161
- }): Promise<Record<string, unknown>>;
162
- }
163
- export declare class ArtifactResource {
164
- private http;
165
- readonly content: ContentResource;
166
- constructor(http: HttpClient);
167
- delete(artifact: string): Promise<void>;
168
- get(artifact: string): Promise<Artifact>;
169
- replace(artifact: string, input: Record<string, unknown>): Promise<Artifact>;
170
- archive(artifact: string, input: Record<string, unknown>): Promise<Record<string, unknown>>;
171
- }
172
- export declare class ApiV1InstallationSourceResource {
173
- private http;
174
- constructor(http: HttpClient);
175
- delete(source: string): Promise<void>;
176
- }
177
- export declare class AgentSessionResource {
178
- private http;
179
- constructor(http: HttpClient);
180
- cancel(agentSession: string, input: Record<string, unknown>): Promise<AgentSession>;
181
- delete(agentSession: string): Promise<void>;
182
- get(agentSession: string): Promise<AgentSession>;
183
- update(agentSession: string, input: Record<string, unknown>): Promise<AgentSession>;
184
- list(params?: {
185
- agent?: string;
186
- status?: string[];
187
- routineRun?: string[];
188
- excludeSystem?: boolean;
189
- }): Promise<AgentSessionListResponse>;
190
- create(input: Record<string, unknown>): Promise<AgentSession>;
191
- message(agentSession: string, input: Record<string, unknown>): Promise<AgentSession>;
192
- }
193
- export declare class ApiV1TeamArtifactResource {
194
- private http;
195
- constructor(http: HttpClient);
196
- list(team: string): Promise<{
197
- data: {
198
- agent?: string | undefined;
199
- content_type?: string | undefined;
200
- created_at?: string | undefined;
201
- current_version?: string | undefined;
202
- description?: string | undefined;
203
- file?: string | undefined;
204
- file_name?: string | undefined;
205
- file_url?: string | undefined;
206
- id: string;
207
- image_source?: Record<string, unknown> | undefined;
208
- name?: string | undefined;
209
- org?: string | undefined;
210
- sandbox?: string | undefined;
211
- team?: string | undefined;
212
- thread?: string | undefined;
213
- updated_at?: string | undefined;
214
- user?: string | undefined;
215
- version?: number | undefined;
216
- }[];
217
- }>;
218
- create(team: string, input: Record<string, unknown>): Promise<Artifact>;
219
- }
220
- export declare class MemberResource {
221
- private http;
222
- constructor(http: HttpClient);
223
- list(team: string): Promise<{
224
- data: {
225
- agent?: Record<string, unknown> | undefined;
226
- created_at?: string | undefined;
227
- id: string;
228
- joined_at?: string | undefined;
229
- metadata?: Record<string, unknown> | undefined;
230
- name?: string | undefined;
231
- profile_picture?: Record<string, unknown> | undefined;
232
- role?: string | undefined;
233
- team?: Record<string, unknown> | undefined;
234
- type?: string | undefined;
235
- updated_at?: string | undefined;
236
- user?: Record<string, unknown> | undefined;
237
- }[];
238
- }>;
239
- create(team: string, input: Record<string, unknown>): Promise<TeamMembership>;
240
- }
241
- export declare class ApiV1TeamThreadResource {
242
- private http;
243
- constructor(http: HttpClient);
244
- list(team: string): Promise<{
245
- data: {
246
- agent_user?: string | undefined;
247
- created_at?: string | undefined;
248
- creator?: {
249
- alias?: string | undefined;
250
- email?: string | undefined;
251
- id: string;
252
- metadata?: Record<string, unknown> | undefined;
253
- name?: string | undefined;
254
- org?: string | undefined;
255
- sandbox?: string | undefined;
256
- } | undefined;
257
- description?: string | undefined;
258
- id: string;
259
- is_channel?: boolean | undefined;
260
- is_default?: boolean | undefined;
261
- is_transient?: boolean | undefined;
262
- is_unlisted?: boolean | undefined;
263
- key?: string | undefined;
264
- last_activity?: string | undefined;
265
- metadata?: Record<string, unknown> | undefined;
266
- org?: string | undefined;
267
- parent_message?: {
268
- actors?: Record<string, unknown>[] | undefined;
269
- agent?: string | undefined;
270
- attachments?: Record<string, unknown>[] | undefined;
271
- branched_thread?: string | undefined;
272
- content?: string | undefined;
273
- created_at?: string | undefined;
274
- has_replies?: boolean | undefined;
275
- id: string;
276
- idempotency_key?: string | undefined;
277
- legacy_agent?: string | undefined;
278
- metadata?: Record<string, unknown> | undefined;
279
- org?: string | undefined;
280
- reactions?: Record<string, unknown>[] | undefined;
281
- rendering_mode?: string | undefined;
282
- replies?: Record<string, unknown>[] | undefined;
283
- replies_after_cursor?: string | undefined;
284
- replies_before_cursor?: string | undefined;
285
- reply_count?: number | undefined;
286
- reply_to?: Record<string, unknown> | undefined;
287
- sandbox?: string | undefined;
288
- team?: string | undefined;
289
- thread?: string | undefined;
290
- user?: string | undefined;
291
- } | undefined;
292
- participant?: string[] | undefined;
293
- participants?: Record<string, unknown>[] | undefined;
294
- participating_actor?: string[] | undefined;
295
- participating_agents?: Record<string, unknown>[] | undefined;
296
- role?: string | undefined;
297
- sandbox?: string | undefined;
298
- settings?: Record<string, unknown> | undefined;
299
- slug?: string | undefined;
300
- sub_threads?: Record<string, unknown>[] | undefined;
301
- team?: string | undefined;
302
- title?: string | undefined;
303
- ttl?: number | undefined;
304
- unread_count?: number | undefined;
305
- updated_at?: string | undefined;
306
- user?: string | undefined;
307
- }[];
308
- }>;
309
- create(team: string, input: Record<string, unknown>): Promise<Thread>;
310
- }
311
- export declare class LeaveResource {
312
- private http;
313
- constructor(http: HttpClient);
314
- remove(team: string): Promise<void>;
315
- }
316
- export declare class ApiV1TeamCustomObjectResource {
317
- private http;
318
- constructor(http: HttpClient);
319
- list(team: string, params?: {
320
- type?: string;
321
- limit?: number;
322
- offset?: number;
323
- rowKey?: string;
324
- sortKey?: string;
325
- }): Promise<{
326
- data: {
327
- created_at?: string | undefined;
328
- fields?: Record<string, unknown> | undefined;
329
- id: string;
330
- org?: string | undefined;
331
- row_key?: string | undefined;
332
- sandbox?: string | undefined;
333
- schema_type?: string | undefined;
334
- team?: string | undefined;
335
- updated_at?: string | undefined;
336
- user?: string | undefined;
337
- version?: number | undefined;
338
- }[];
339
- meta?: Record<string, unknown> | undefined;
340
- }>;
341
- create(team: string, input: Record<string, unknown>): Promise<CustomObject>;
342
- }
343
- export declare class TeamResource {
344
- private http;
345
- readonly artifacts: ApiV1TeamArtifactResource;
346
- readonly members: MemberResource;
347
- readonly threads: ApiV1TeamThreadResource;
348
- readonly leave: LeaveResource;
349
- readonly custom_objects: ApiV1TeamCustomObjectResource;
350
- constructor(http: HttpClient);
351
- /**
352
- * Join a team using an invite code
353
- * Accepts either `join_code` or `invite_code`.
354
- * For user-authenticated requests, the current user joins the team identified by
355
- * the invite code. For server-to-server requests, provide `agent` or `user` to
356
- * add that principal to the team instead.
357
- */
358
- joinByCode(input: Record<string, unknown>): Promise<Team>;
359
- delete(team: string): Promise<void>;
360
- get(team: string): Promise<Team>;
361
- update(team: string, input: Record<string, unknown>): Promise<Team>;
362
- /**
363
- * Join a team the current user can see
364
- * Joins a specific visible team by team ID.
365
- * For standard user requests, the current user is added to the team. When
366
- * `agent` is provided, the current user must already be a team member and the
367
- * agent is added instead.
368
- */
369
- join(team: string, input: Record<string, unknown>): Promise<Record<string, unknown>>;
370
- list(params?: {
371
- page?: number;
372
- pageSize?: number;
373
- search?: string;
374
- membership?: string;
375
- }): Promise<{
376
- data: {
377
- acl?: {
378
- add?: {
379
- actions: string[];
380
- principal?: string | undefined;
381
- principal_type: string;
382
- }[] | undefined;
383
- grants?: {
384
- actions: string[];
385
- principal?: string | undefined;
386
- principal_type: string;
387
- }[] | undefined;
388
- remove?: {
389
- principal?: string | undefined;
390
- principal_type: string;
391
- }[] | undefined;
392
- } | undefined;
393
- app?: string | undefined;
394
- badges?: Record<string, unknown> | undefined;
395
- created_at?: string | undefined;
396
- description?: string | undefined;
397
- id: string;
398
- membership_status?: string | undefined;
399
- metadata?: Record<string, unknown> | undefined;
400
- name?: string | undefined;
401
- org?: string | undefined;
402
- sandbox?: string | undefined;
403
- slug?: string | undefined;
404
- updated_at?: string | undefined;
405
- }[];
406
- has_next: boolean;
407
- has_prev: boolean;
408
- page: number;
409
- page_size: number;
410
- total_entries: number;
411
- total_pages: number;
412
- }>;
413
- create(input: Record<string, unknown>): Promise<Team>;
414
- invites(team: string, input: Record<string, unknown>): Promise<{
415
- code: string;
416
- }>;
417
- invite(team: string, input: Record<string, unknown>): Promise<TeamInvite>;
418
- }
419
- export declare class CatalogResource {
420
- private http;
421
- constructor(http: HttpClient);
422
- list(): Promise<BuiltinToolCatalogEntry[]>;
423
- }
424
- export declare class AgentToolResource {
425
- private http;
426
- readonly catalog: CatalogResource;
427
- constructor(http: HttpClient);
428
- delete(tool: string): Promise<void>;
429
- get(tool: string): Promise<AgentTool>;
430
- update(tool: string, input: Record<string, unknown>): Promise<AgentTool>;
431
- list(params?: {
432
- agent?: string;
433
- kind?: string;
434
- }): Promise<AgentToolListResponse>;
435
- deactivate(tool: string, input: Record<string, unknown>): Promise<AgentTool>;
436
- activate(tool: string, input: Record<string, unknown>): Promise<AgentTool>;
437
- }
438
- export declare class TeamMembershipResource {
439
- private http;
440
- constructor(http: HttpClient);
441
- delete(teamMembership: string): Promise<void>;
442
- list(params?: {
443
- team?: string[];
444
- user?: string[];
445
- agent?: string[];
446
- page?: number;
447
- pageSize?: number;
448
- }): Promise<TeamMembershipListResponse>;
449
- }
450
- export declare class InstallationSourceResource {
451
- private http;
452
- constructor(http: HttpClient);
453
- list(installation: string): Promise<Record<string, unknown>>;
454
- create(installation: string, input: Record<string, unknown>): Promise<InstallationSource>;
455
- }
456
- export declare class ApiV1AgentInstallationResource {
457
- private http;
458
- readonly installation_sources: InstallationSourceResource;
459
- constructor(http: HttpClient);
460
- pause(installation: string, input: Record<string, unknown>): Promise<Installation>;
461
- list(params?: {
462
- agent?: string;
463
- }): Promise<InstallationListResponse>;
464
- activate(installation: string, input: Record<string, unknown>): Promise<Installation>;
465
- delete(installation: string): Promise<void>;
466
- get(installation: string): Promise<Installation>;
467
- suspend(installation: string, input: Record<string, unknown>): Promise<Installation>;
468
- }
469
- export declare class ApiV1OrgResource {
470
- private http;
471
- constructor(http: HttpClient);
472
- list(params?: {
473
- search?: string;
474
- page?: number;
475
- pageSize?: number;
476
- }): Promise<{
477
- data: {
478
- domain: string;
479
- id: string;
480
- name: string;
481
- }[];
482
- has_next?: boolean | undefined;
483
- has_prev?: boolean | undefined;
484
- page?: number | undefined;
485
- page_size?: number | undefined;
486
- total_entries?: number | undefined;
487
- total_pages?: number | undefined;
488
- }>;
489
- }
490
- export declare class ApiV1AgentComputerResource {
491
- private http;
492
- constructor(http: HttpClient);
493
- refresh(computer: string, input: Record<string, unknown>): Promise<AgentComputer>;
494
- delete(computer: string): Promise<void>;
495
- get(computer: string): Promise<AgentComputer>;
496
- exec(computer: string, input: Record<string, unknown>): Promise<ComputerExecResult>;
497
- }
498
- export declare class RunResource {
499
- private http;
500
- constructor(http: HttpClient);
501
- list(routine: string, params?: {
502
- status?: string;
503
- limit?: number;
504
- beforeCursor?: string;
505
- afterCursor?: string;
506
- }): Promise<AgentRoutineRunListResponse>;
507
- get(routine: string, run: string): Promise<AgentRoutineRun>;
508
- }
509
- export declare class PresetResource {
510
- private http;
511
- constructor(http: HttpClient);
512
- list(): Promise<RoutinePreset[]>;
513
- }
514
- export declare class AgentRoutineResource {
515
- private http;
516
- readonly runs: RunResource;
517
- readonly presets: PresetResource;
518
- constructor(http: HttpClient);
519
- list(params?: {
520
- agent?: string;
521
- eventType?: string;
522
- }): Promise<AgentRoutineListResponse>;
523
- invoke(routine: string, input: Record<string, unknown>): Promise<AgentRoutineRun>;
524
- activate(routine: string, input: Record<string, unknown>): Promise<AgentRoutine>;
525
- pause(routine: string, input: Record<string, unknown>): Promise<AgentRoutine>;
526
- delete(routine: string): Promise<void>;
527
- get(routine: string): Promise<AgentRoutine>;
528
- update(routine: string, input: Record<string, unknown>): Promise<AgentRoutine>;
529
- }
530
- export declare class ApiV1AgentAgentInstallationKindResource {
531
- private http;
532
- constructor(http: HttpClient);
533
- list(agent: string): Promise<InstallationKindListResponse>;
534
- }
535
- export declare class AgentInstallationResource {
536
- private http;
537
- readonly kinds: ApiV1AgentAgentInstallationKindResource;
538
- constructor(http: HttpClient);
539
- list(agent: string): Promise<InstallationListResponse>;
540
- create(agent: string, input: Record<string, unknown>): Promise<Installation>;
541
- }
542
- export declare class AgentComputerResource {
543
- private http;
544
- constructor(http: HttpClient);
545
- list(agent: string): Promise<Record<string, unknown>>;
546
- create(agent: string, input: Record<string, unknown>): Promise<AgentComputer>;
547
- }
548
- export declare class ApiV1AgentAgentToolResource {
549
- private http;
550
- constructor(http: HttpClient);
551
- list(agent: string, params?: {
552
- kind?: string;
553
- }): Promise<AgentToolListResponse>;
554
- create(agent: string, input: Record<string, unknown>): Promise<AgentTool>;
555
- }
556
- export declare class ScheduleResource {
557
- private http;
558
- constructor(http: HttpClient);
559
- get(agent: string, schedule: string): Promise<AgentSchedule>;
560
- list(agent: string, params?: {
561
- status?: string;
562
- }): Promise<{
563
- data?: {
564
- agent?: string | undefined;
565
- app?: string | undefined;
566
- created_at?: string | undefined;
567
- cron_expression?: string | undefined;
568
- id: string;
569
- instructions?: string | undefined;
570
- last_run_at?: string | undefined;
571
- max_runs?: number | undefined;
572
- metadata?: Record<string, unknown> | undefined;
573
- next_run_at?: string | undefined;
574
- run_count?: number | undefined;
575
- schedule_type?: string | undefined;
576
- scheduled_at?: string | undefined;
577
- status?: string | undefined;
578
- thread?: string | undefined;
579
- timezone?: string | undefined;
580
- updated_at?: string | undefined;
581
- }[] | undefined;
582
- }>;
583
- }
584
- export declare class AgentWorkingMemoryResource {
585
- private http;
586
- constructor(http: HttpClient);
587
- list(agent: string, params?: {
588
- page?: number;
589
- pageSize?: number;
590
- search?: string;
591
- }): Promise<WorkingMemoryEntryListResponse>;
592
- }
593
- export declare class AgentResource {
594
- private http;
595
- readonly agent_installations: AgentInstallationResource;
596
- readonly agent_computers: AgentComputerResource;
597
- readonly agent_tools: ApiV1AgentAgentToolResource;
598
- readonly schedules: ScheduleResource;
599
- readonly agent_working_memory: AgentWorkingMemoryResource;
600
- constructor(http: HttpClient);
601
- delete(agent: string): Promise<void>;
602
- get(agent: string): Promise<Agent>;
603
- update(agent: string, input: Record<string, unknown>): Promise<Agent>;
604
- agentRoutines(agent: string, input: Record<string, unknown>): Promise<AgentRoutine>;
605
- list(params?: {
606
- page?: number;
607
- pageSize?: number;
608
- search?: string;
609
- user?: string;
610
- }): Promise<AgentListResponse>;
611
- create(input: Record<string, unknown>): Promise<Agent>;
612
- threads(agent: string, input: Record<string, unknown>): Promise<Thread>;
613
- search(agent: string, input: Record<string, unknown>): Promise<{
614
- data: {
615
- content?: string | undefined;
616
- content_type?: string | undefined;
617
- created_at?: string | undefined;
618
- id: string;
619
- metadata?: Record<string, unknown> | undefined;
620
- raw_content?: Record<string, unknown> | undefined;
621
- type?: string | undefined;
622
- }[];
623
- }>;
624
- }
625
- export declare class AgentSkillResource {
626
- private http;
627
- constructor(http: HttpClient);
628
- activate(agentSkill: string, input: Record<string, unknown>): Promise<AgentSkill>;
629
- delete(agentSkill: string): Promise<void>;
630
- get(agentSkill: string): Promise<AgentSkill>;
631
- update(agentSkill: string, input: Record<string, unknown>): Promise<AgentSkill>;
632
- list(params?: {
633
- agent?: string[];
634
- }): Promise<AgentSkillList>;
635
- create(input: Record<string, unknown>): Promise<AgentSkill>;
636
- deactivate(agentSkill: string, input: Record<string, unknown>): Promise<AgentSkill>;
637
- }
638
- export declare class ReadStatuResource {
639
- private http;
640
- constructor(http: HttpClient);
641
- list(thread: string, params?: {
642
- user?: string;
643
- }): Promise<ThreadReadStatus>;
644
- }
645
- export declare class SearchResource {
646
- private http;
647
- constructor(http: HttpClient);
648
- list(thread: string, params?: {
649
- q?: string;
650
- type?: string;
651
- }): Promise<{
652
- data: Record<string, unknown>[];
653
- }>;
654
- }
655
- export declare class MessageResource {
656
- private http;
657
- constructor(http: HttpClient);
658
- list(thread: string, params?: {
659
- beforeCursor?: string;
660
- afterCursor?: string;
661
- limit?: number;
662
- includeReplyCounts?: boolean;
663
- }): Promise<{
664
- data: {
665
- after_cursor?: string | undefined;
666
- before_cursor?: string | undefined;
667
- messages: Record<string, unknown>[];
668
- };
669
- }>;
670
- }
671
- export declare class ApiV1ThreadMemberResource {
672
- private http;
673
- constructor(http: HttpClient);
674
- remove(thread: string): Promise<void>;
675
- list(thread: string): Promise<{
676
- data: {
677
- membership_type?: string | undefined;
678
- thread?: string | undefined;
679
- user?: {
680
- alias?: string | undefined;
681
- email?: string | undefined;
682
- id: string;
683
- metadata?: Record<string, unknown> | undefined;
684
- name?: string | undefined;
685
- org?: string | undefined;
686
- sandbox?: string | undefined;
687
- } | undefined;
688
- }[];
689
- }>;
690
- create(thread: string, input: Record<string, unknown>): Promise<ThreadMember>;
691
- }
692
- export declare class PictureResource {
693
- private http;
694
- constructor(http: HttpClient);
695
- replace(thread: string, input: Record<string, unknown>): Promise<Thread>;
696
- }
697
- export declare class ApiV1ThreadAgentResource {
698
- private http;
699
- constructor(http: HttpClient);
700
- list(thread: string): Promise<{
701
- data: Record<string, unknown>[];
702
- }>;
703
- }
704
- export declare class SettingResource {
705
- private http;
706
- constructor(http: HttpClient);
707
- list(thread: string): Promise<{
708
- agent_enabled?: boolean | undefined;
709
- }>;
710
- replace(thread: string, input: Record<string, unknown>): Promise<ThreadSettings>;
711
- }
712
- export declare class ApiV1ThreadArtifactResource {
713
- private http;
714
- constructor(http: HttpClient);
715
- list(thread: string): Promise<{
716
- data: {
717
- agent?: string | undefined;
718
- content_type?: string | undefined;
719
- created_at?: string | undefined;
720
- current_version?: string | undefined;
721
- description?: string | undefined;
722
- file?: string | undefined;
723
- file_name?: string | undefined;
724
- file_url?: string | undefined;
725
- id: string;
726
- image_source?: Record<string, unknown> | undefined;
727
- name?: string | undefined;
728
- org?: string | undefined;
729
- sandbox?: string | undefined;
730
- team?: string | undefined;
731
- thread?: string | undefined;
732
- updated_at?: string | undefined;
733
- user?: string | undefined;
734
- version?: number | undefined;
735
- }[];
736
- }>;
737
- }
738
- export declare class ThreadResource {
739
- private http;
740
- readonly read_status: ReadStatuResource;
741
- readonly search: SearchResource;
742
- readonly messages: MessageResource;
743
- readonly members: ApiV1ThreadMemberResource;
744
- readonly picture: PictureResource;
745
- readonly agents: ApiV1ThreadAgentResource;
746
- readonly settings: SettingResource;
747
- readonly artifacts: ApiV1ThreadArtifactResource;
748
- constructor(http: HttpClient);
749
- markRead(thread: string, input: Record<string, unknown>): Promise<Record<string, unknown>>;
750
- delete(thread: string): Promise<void>;
751
- get(thread: string): Promise<Thread>;
752
- replace(thread: string, input: Record<string, unknown>): Promise<Thread>;
753
- }
754
- export declare class MeResource {
755
- private http;
756
- constructor(http: HttpClient);
757
- list(): Promise<User>;
758
- }
759
- export declare class OrgResource {
760
- private http;
761
- constructor(http: HttpClient);
762
- list(user: string): Promise<{
763
- data: {
764
- created_at?: string | undefined;
765
- description?: string | undefined;
766
- domain?: string | undefined;
767
- id: string;
768
- industry?: string | undefined;
769
- name?: string | undefined;
770
- sandbox?: string | undefined;
771
- slug?: string | undefined;
772
- status?: string | undefined;
773
- updated_at?: string | undefined;
774
- website?: string | undefined;
775
- }[];
776
- }>;
777
- }
778
- export declare class ApiV1UserArtifactResource {
779
- private http;
780
- constructor(http: HttpClient);
781
- list(user: string): Promise<{
782
- data: {
783
- agent?: string | undefined;
784
- content_type?: string | undefined;
785
- created_at?: string | undefined;
786
- current_version?: string | undefined;
787
- description?: string | undefined;
788
- file?: string | undefined;
789
- file_name?: string | undefined;
790
- file_url?: string | undefined;
791
- id: string;
792
- image_source?: Record<string, unknown> | undefined;
793
- name?: string | undefined;
794
- org?: string | undefined;
795
- sandbox?: string | undefined;
796
- team?: string | undefined;
797
- thread?: string | undefined;
798
- updated_at?: string | undefined;
799
- user?: string | undefined;
800
- version?: number | undefined;
801
- }[];
802
- }>;
803
- create(user: string, input: Record<string, unknown>): Promise<Artifact>;
804
- }
805
- export declare class ApiV1UserThreadResource {
806
- private http;
807
- constructor(http: HttpClient);
808
- list(user: string, params?: {
809
- agent?: string[];
810
- filter?: {
811
- key: string;
812
- type: string;
813
- value: string;
814
- }[];
815
- }): Promise<{
816
- data: {
817
- agent_user?: string | undefined;
818
- created_at?: string | undefined;
819
- creator?: {
820
- alias?: string | undefined;
821
- email?: string | undefined;
822
- id: string;
823
- metadata?: Record<string, unknown> | undefined;
824
- name?: string | undefined;
825
- org?: string | undefined;
826
- sandbox?: string | undefined;
827
- } | undefined;
828
- description?: string | undefined;
829
- id: string;
830
- is_channel?: boolean | undefined;
831
- is_default?: boolean | undefined;
832
- is_transient?: boolean | undefined;
833
- is_unlisted?: boolean | undefined;
834
- key?: string | undefined;
835
- last_activity?: string | undefined;
836
- metadata?: Record<string, unknown> | undefined;
837
- org?: string | undefined;
838
- parent_message?: {
839
- actors?: Record<string, unknown>[] | undefined;
840
- agent?: string | undefined;
841
- attachments?: Record<string, unknown>[] | undefined;
842
- branched_thread?: string | undefined;
843
- content?: string | undefined;
844
- created_at?: string | undefined;
845
- has_replies?: boolean | undefined;
846
- id: string;
847
- idempotency_key?: string | undefined;
848
- legacy_agent?: string | undefined;
849
- metadata?: Record<string, unknown> | undefined;
850
- org?: string | undefined;
851
- reactions?: Record<string, unknown>[] | undefined;
852
- rendering_mode?: string | undefined;
853
- replies?: Record<string, unknown>[] | undefined;
854
- replies_after_cursor?: string | undefined;
855
- replies_before_cursor?: string | undefined;
856
- reply_count?: number | undefined;
857
- reply_to?: Record<string, unknown> | undefined;
858
- sandbox?: string | undefined;
859
- team?: string | undefined;
860
- thread?: string | undefined;
861
- user?: string | undefined;
862
- } | undefined;
863
- participant?: string[] | undefined;
864
- participants?: Record<string, unknown>[] | undefined;
865
- participating_actor?: string[] | undefined;
866
- participating_agents?: Record<string, unknown>[] | undefined;
867
- role?: string | undefined;
868
- sandbox?: string | undefined;
869
- settings?: Record<string, unknown> | undefined;
870
- slug?: string | undefined;
871
- sub_threads?: Record<string, unknown>[] | undefined;
872
- team?: string | undefined;
873
- title?: string | undefined;
874
- ttl?: number | undefined;
875
- unread_count?: number | undefined;
876
- updated_at?: string | undefined;
877
- user?: string | undefined;
878
- }[];
879
- }>;
880
- create(user: string, input: Record<string, unknown>): Promise<Thread>;
881
- }
882
- export declare class ProfileResource {
883
- private http;
884
- constructor(http: HttpClient);
885
- replace(user: string, input: Record<string, unknown>): Promise<User>;
886
- }
887
- export declare class UserResource {
888
- private http;
889
- readonly me: MeResource;
890
- readonly orgs: OrgResource;
891
- readonly artifacts: ApiV1UserArtifactResource;
892
- readonly threads: ApiV1UserThreadResource;
893
- readonly profile: ProfileResource;
894
- constructor(http: HttpClient);
895
- get(user: string): Promise<User>;
896
- }
897
- export declare class CustomObjectResource {
898
- private http;
899
- constructor(http: HttpClient);
900
- delete(object: string): Promise<void>;
901
- get(object: string, params?: {
902
- type?: string;
903
- }): Promise<CustomObject>;
904
- replace(object: string, input: Record<string, unknown>): Promise<{
905
- data: {
906
- created_at?: string | undefined;
907
- fields?: Record<string, unknown> | undefined;
908
- id: string;
909
- org?: string | undefined;
910
- row_key?: string | undefined;
911
- sandbox?: string | undefined;
912
- schema_type?: string | undefined;
913
- team?: string | undefined;
914
- updated_at?: string | undefined;
915
- user?: string | undefined;
916
- version?: number | undefined;
917
- };
918
- meta?: Record<string, unknown> | undefined;
919
- }>;
920
- }
921
- export declare class AutomationResource {
922
- private http;
923
- constructor(http: HttpClient);
924
- invoke(automation: string, input: Record<string, unknown>): Promise<AutomationRun>;
925
- }
926
- export declare class ReactionResource {
927
- private http;
928
- constructor(http: HttpClient);
929
- remove(message: string): Promise<void>;
930
- create(message: string, input: Record<string, unknown>): Promise<{
931
- data: {
932
- created_at?: string | undefined;
933
- feedback_type?: string | undefined;
934
- id: string;
935
- message?: string | undefined;
936
- payload?: Record<string, unknown> | undefined;
937
- updated_at?: string | undefined;
938
- user?: string | undefined;
939
- };
940
- }>;
941
- }
942
- export declare class ReplyResource {
943
- private http;
944
- constructor(http: HttpClient);
945
- list(message: string, params?: {
946
- beforeCursor?: string;
947
- afterCursor?: string;
948
- limit?: number;
949
- tree?: boolean;
950
- }): Promise<PaginatedReplies>;
951
- }
952
- export declare class ThreadMessageResource {
953
- private http;
954
- readonly reactions: ReactionResource;
955
- readonly replies: ReplyResource;
956
- constructor(http: HttpClient);
957
- delete(message: string): Promise<void>;
958
- replace(message: string, input: Record<string, unknown>): Promise<Message>;
959
- }
960
- export declare class ApiV1AiChatModelResource {
961
- private http;
962
- constructor(http: HttpClient);
963
- list(): Promise<{
964
- data: {
965
- id: string;
966
- }[];
967
- }>;
968
- }
969
- export declare class ChatResource {
970
- private http;
971
- readonly models: ApiV1AiChatModelResource;
972
- constructor(http: HttpClient);
973
- completions(input: Record<string, unknown>): Promise<AICompletionResult>;
974
- }
975
- export declare class ModelResource {
976
- private http;
977
- constructor(http: HttpClient);
978
- list(): Promise<{
979
- data: {
980
- id: string;
981
- }[];
982
- }>;
983
- }
984
- export declare class ImageResource {
985
- private http;
986
- readonly models: ModelResource;
987
- constructor(http: HttpClient);
988
- edits(input: Record<string, unknown>): Promise<AIImageResult>;
989
- generations(input: Record<string, unknown>): Promise<AIImageResult>;
990
- }
991
- export declare class AiResource {
992
- private http;
993
- readonly chat: ChatResource;
994
- readonly image: ImageResource;
995
- constructor(http: HttpClient);
996
- }
997
- export declare class V1Resource {
998
- private http;
999
- readonly automation_runs: AutomationRunResource;
1000
- readonly config: ConfigResource;
1001
- readonly artifacts: ArtifactResource;
1002
- readonly installation_sources: ApiV1InstallationSourceResource;
1003
- readonly agent_sessions: AgentSessionResource;
1004
- readonly teams: TeamResource;
1005
- readonly agent_tools: AgentToolResource;
1006
- readonly team_memberships: TeamMembershipResource;
1007
- readonly agent_installations: ApiV1AgentInstallationResource;
1008
- readonly orgs: ApiV1OrgResource;
1009
- readonly agent_computers: ApiV1AgentComputerResource;
1010
- readonly agent_routines: AgentRoutineResource;
1011
- readonly agents: AgentResource;
1012
- readonly agent_skills: AgentSkillResource;
1013
- readonly threads: ThreadResource;
1014
- readonly users: UserResource;
1015
- readonly custom_objects: CustomObjectResource;
1016
- readonly automations: AutomationResource;
1017
- readonly thread_messages: ThreadMessageResource;
1018
- readonly ai: AiResource;
1019
- constructor(http: HttpClient);
1020
- }
1021
- export declare class ApiResource {
1022
- private http;
1023
- readonly v1: V1Resource;
1024
- constructor(http: HttpClient);
1025
- }
1026
- //# sourceMappingURL=api.d.ts.map