@archastro/sdk 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 (262) hide show
  1. package/LICENSE +21 -0
  2. package/dist/auth.d.ts +15 -0
  3. package/dist/auth.d.ts.map +1 -0
  4. package/dist/auth.js +65 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/channels/api_activity_feed_channel.d.ts +21 -0
  7. package/dist/channels/api_activity_feed_channel.d.ts.map +1 -0
  8. package/dist/channels/api_activity_feed_channel.js +33 -0
  9. package/dist/channels/api_activity_feed_channel.js.map +1 -0
  10. package/dist/channels/api_chat_channel.d.ts +51 -0
  11. package/dist/channels/api_chat_channel.d.ts.map +1 -0
  12. package/dist/channels/api_chat_channel.js +95 -0
  13. package/dist/channels/api_chat_channel.js.map +1 -0
  14. package/dist/channels/api_object_channel.d.ts +17 -0
  15. package/dist/channels/api_object_channel.d.ts.map +1 -0
  16. package/dist/channels/api_object_channel.js +33 -0
  17. package/dist/channels/api_object_channel.js.map +1 -0
  18. package/dist/client.d.ts +68 -0
  19. package/dist/client.d.ts.map +1 -0
  20. package/dist/client.js +123 -0
  21. package/dist/client.js.map +1 -0
  22. package/dist/index.d.ts +9 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +12 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/phx_channel/channel.d.ts +35 -0
  27. package/dist/phx_channel/channel.d.ts.map +1 -0
  28. package/dist/phx_channel/channel.js +203 -0
  29. package/dist/phx_channel/channel.js.map +1 -0
  30. package/dist/phx_channel/index.d.ts +4 -0
  31. package/dist/phx_channel/index.d.ts.map +1 -0
  32. package/dist/phx_channel/index.js +3 -0
  33. package/dist/phx_channel/index.js.map +1 -0
  34. package/dist/phx_channel/socket.d.ts +71 -0
  35. package/dist/phx_channel/socket.d.ts.map +1 -0
  36. package/dist/phx_channel/socket.js +274 -0
  37. package/dist/phx_channel/socket.js.map +1 -0
  38. package/dist/runtime/http-client.d.ts +42 -0
  39. package/dist/runtime/http-client.d.ts.map +1 -0
  40. package/dist/runtime/http-client.js +207 -0
  41. package/dist/runtime/http-client.js.map +1 -0
  42. package/dist/types/agents.d.ts +2254 -0
  43. package/dist/types/agents.d.ts.map +1 -0
  44. package/dist/types/agents.js +238 -0
  45. package/dist/types/agents.js.map +1 -0
  46. package/dist/types/ai.d.ts +460 -0
  47. package/dist/types/ai.d.ts.map +1 -0
  48. package/dist/types/ai.js +70 -0
  49. package/dist/types/ai.js.map +1 -0
  50. package/dist/types/artifacts.d.ts +101 -0
  51. package/dist/types/artifacts.d.ts.map +1 -0
  52. package/dist/types/artifacts.js +40 -0
  53. package/dist/types/artifacts.js.map +1 -0
  54. package/dist/types/automations.d.ts +110 -0
  55. package/dist/types/automations.d.ts.map +1 -0
  56. package/dist/types/automations.js +47 -0
  57. package/dist/types/automations.js.map +1 -0
  58. package/dist/types/chat.d.ts +20 -0
  59. package/dist/types/chat.d.ts.map +1 -0
  60. package/dist/types/chat.js +12 -0
  61. package/dist/types/chat.js.map +1 -0
  62. package/dist/types/common.d.ts +4478 -0
  63. package/dist/types/common.d.ts.map +1 -0
  64. package/dist/types/common.js +1209 -0
  65. package/dist/types/common.js.map +1 -0
  66. package/dist/types/config.d.ts +191 -0
  67. package/dist/types/config.d.ts.map +1 -0
  68. package/dist/types/config.js +63 -0
  69. package/dist/types/config.js.map +1 -0
  70. package/dist/types/image.d.ts +29 -0
  71. package/dist/types/image.d.ts.map +1 -0
  72. package/dist/types/image.js +15 -0
  73. package/dist/types/image.js.map +1 -0
  74. package/dist/types/index.d.ts +21 -0
  75. package/dist/types/index.d.ts.map +1 -0
  76. package/dist/types/index.js +24 -0
  77. package/dist/types/index.js.map +1 -0
  78. package/dist/types/invite.d.ts +17 -0
  79. package/dist/types/invite.d.ts.map +1 -0
  80. package/dist/types/invite.js +11 -0
  81. package/dist/types/invite.js.map +1 -0
  82. package/dist/types/me.d.ts +101 -0
  83. package/dist/types/me.d.ts.map +1 -0
  84. package/dist/types/me.js +41 -0
  85. package/dist/types/me.js.map +1 -0
  86. package/dist/types/members.d.ts +99 -0
  87. package/dist/types/members.d.ts.map +1 -0
  88. package/dist/types/members.js +36 -0
  89. package/dist/types/members.js.map +1 -0
  90. package/dist/types/messages.d.ts +109 -0
  91. package/dist/types/messages.d.ts.map +1 -0
  92. package/dist/types/messages.js +49 -0
  93. package/dist/types/messages.js.map +1 -0
  94. package/dist/types/orgs.d.ts +193 -0
  95. package/dist/types/orgs.d.ts.map +1 -0
  96. package/dist/types/orgs.js +69 -0
  97. package/dist/types/orgs.js.map +1 -0
  98. package/dist/types/picture.d.ts +20 -0
  99. package/dist/types/picture.d.ts.map +1 -0
  100. package/dist/types/picture.js +14 -0
  101. package/dist/types/picture.js.map +1 -0
  102. package/dist/types/profile.d.ts +17 -0
  103. package/dist/types/profile.d.ts.map +1 -0
  104. package/dist/types/profile.js +11 -0
  105. package/dist/types/profile.js.map +1 -0
  106. package/dist/types/reactions.d.ts +29 -0
  107. package/dist/types/reactions.d.ts.map +1 -0
  108. package/dist/types/reactions.js +15 -0
  109. package/dist/types/reactions.js.map +1 -0
  110. package/dist/types/runs.d.ts +46 -0
  111. package/dist/types/runs.d.ts.map +1 -0
  112. package/dist/types/runs.js +15 -0
  113. package/dist/types/runs.js.map +1 -0
  114. package/dist/types/schedules.d.ts +32 -0
  115. package/dist/types/schedules.d.ts.map +1 -0
  116. package/dist/types/schedules.js +16 -0
  117. package/dist/types/schedules.js.map +1 -0
  118. package/dist/types/system.d.ts +23 -0
  119. package/dist/types/system.d.ts.map +1 -0
  120. package/dist/types/system.js +13 -0
  121. package/dist/types/system.js.map +1 -0
  122. package/dist/types/teams.d.ts +580 -0
  123. package/dist/types/teams.d.ts.map +1 -0
  124. package/dist/types/teams.js +84 -0
  125. package/dist/types/teams.js.map +1 -0
  126. package/dist/types/threads.d.ts +802 -0
  127. package/dist/types/threads.d.ts.map +1 -0
  128. package/dist/types/threads.js +167 -0
  129. package/dist/types/threads.js.map +1 -0
  130. package/dist/types/users.d.ts +89 -0
  131. package/dist/types/users.d.ts.map +1 -0
  132. package/dist/types/users.js +37 -0
  133. package/dist/types/users.js.map +1 -0
  134. package/dist/v1/resources/agent_computers.d.ts +12 -0
  135. package/dist/v1/resources/agent_computers.d.ts.map +1 -0
  136. package/dist/v1/resources/agent_computers.js +22 -0
  137. package/dist/v1/resources/agent_computers.js.map +1 -0
  138. package/dist/v1/resources/agent_installations.d.ts +22 -0
  139. package/dist/v1/resources/agent_installations.d.ts.map +1 -0
  140. package/dist/v1/resources/agent_installations.js +42 -0
  141. package/dist/v1/resources/agent_installations.js.map +1 -0
  142. package/dist/v1/resources/agent_routines.d.ts +36 -0
  143. package/dist/v1/resources/agent_routines.d.ts.map +1 -0
  144. package/dist/v1/resources/agent_routines.js +56 -0
  145. package/dist/v1/resources/agent_routines.js.map +1 -0
  146. package/dist/v1/resources/agent_sessions.d.ts +19 -0
  147. package/dist/v1/resources/agent_sessions.d.ts.map +1 -0
  148. package/dist/v1/resources/agent_sessions.js +31 -0
  149. package/dist/v1/resources/agent_sessions.js.map +1 -0
  150. package/dist/v1/resources/agent_skills.d.ts +16 -0
  151. package/dist/v1/resources/agent_skills.d.ts.map +1 -0
  152. package/dist/v1/resources/agent_skills.js +31 -0
  153. package/dist/v1/resources/agent_skills.js.map +1 -0
  154. package/dist/v1/resources/agent_tools.d.ts +23 -0
  155. package/dist/v1/resources/agent_tools.d.ts.map +1 -0
  156. package/dist/v1/resources/agent_tools.js +39 -0
  157. package/dist/v1/resources/agent_tools.js.map +1 -0
  158. package/dist/v1/resources/agents.d.ts +100 -0
  159. package/dist/v1/resources/agents.d.ts.map +1 -0
  160. package/dist/v1/resources/agents.js +112 -0
  161. package/dist/v1/resources/agents.js.map +1 -0
  162. package/dist/v1/resources/ai.d.ts +40 -0
  163. package/dist/v1/resources/ai.d.ts.map +1 -0
  164. package/dist/v1/resources/ai.js +57 -0
  165. package/dist/v1/resources/ai.js.map +1 -0
  166. package/dist/v1/resources/ai_chat_completions.d.ts +49 -0
  167. package/dist/v1/resources/ai_chat_completions.d.ts.map +1 -0
  168. package/dist/v1/resources/ai_chat_completions.js +14 -0
  169. package/dist/v1/resources/ai_chat_completions.js.map +1 -0
  170. package/dist/v1/resources/ai_chat_models.d.ts +12 -0
  171. package/dist/v1/resources/ai_chat_models.d.ts.map +1 -0
  172. package/dist/v1/resources/ai_chat_models.js +14 -0
  173. package/dist/v1/resources/ai_chat_models.js.map +1 -0
  174. package/dist/v1/resources/ai_image_edits.d.ts +20 -0
  175. package/dist/v1/resources/ai_image_edits.d.ts.map +1 -0
  176. package/dist/v1/resources/ai_image_edits.js +14 -0
  177. package/dist/v1/resources/ai_image_edits.js.map +1 -0
  178. package/dist/v1/resources/ai_image_generations.d.ts +20 -0
  179. package/dist/v1/resources/ai_image_generations.d.ts.map +1 -0
  180. package/dist/v1/resources/ai_image_generations.js +14 -0
  181. package/dist/v1/resources/ai_image_generations.js.map +1 -0
  182. package/dist/v1/resources/ai_image_models.d.ts +12 -0
  183. package/dist/v1/resources/ai_image_models.d.ts.map +1 -0
  184. package/dist/v1/resources/ai_image_models.js +14 -0
  185. package/dist/v1/resources/ai_image_models.js.map +1 -0
  186. package/dist/v1/resources/artifacts.d.ts +19 -0
  187. package/dist/v1/resources/artifacts.d.ts.map +1 -0
  188. package/dist/v1/resources/artifacts.js +33 -0
  189. package/dist/v1/resources/artifacts.js.map +1 -0
  190. package/dist/v1/resources/automation_runs.d.ts +14 -0
  191. package/dist/v1/resources/automation_runs.d.ts.map +1 -0
  192. package/dist/v1/resources/automation_runs.js +19 -0
  193. package/dist/v1/resources/automation_runs.js.map +1 -0
  194. package/dist/v1/resources/automations.d.ts +8 -0
  195. package/dist/v1/resources/automations.d.ts.map +1 -0
  196. package/dist/v1/resources/automations.js +13 -0
  197. package/dist/v1/resources/automations.js.map +1 -0
  198. package/dist/v1/resources/completions.d.ts +49 -0
  199. package/dist/v1/resources/completions.d.ts.map +1 -0
  200. package/dist/v1/resources/completions.js +14 -0
  201. package/dist/v1/resources/completions.js.map +1 -0
  202. package/dist/v1/resources/config.d.ts +137 -0
  203. package/dist/v1/resources/config.d.ts.map +1 -0
  204. package/dist/v1/resources/config.js +98 -0
  205. package/dist/v1/resources/config.js.map +1 -0
  206. package/dist/v1/resources/custom_objects.d.ts +27 -0
  207. package/dist/v1/resources/custom_objects.d.ts.map +1 -0
  208. package/dist/v1/resources/custom_objects.js +19 -0
  209. package/dist/v1/resources/custom_objects.js.map +1 -0
  210. package/dist/v1/resources/edits.d.ts +20 -0
  211. package/dist/v1/resources/edits.d.ts.map +1 -0
  212. package/dist/v1/resources/edits.js +14 -0
  213. package/dist/v1/resources/edits.js.map +1 -0
  214. package/dist/v1/resources/generations.d.ts +20 -0
  215. package/dist/v1/resources/generations.d.ts.map +1 -0
  216. package/dist/v1/resources/generations.js +14 -0
  217. package/dist/v1/resources/generations.js.map +1 -0
  218. package/dist/v1/resources/index.d.ts +21 -0
  219. package/dist/v1/resources/index.d.ts.map +1 -0
  220. package/dist/v1/resources/index.js +24 -0
  221. package/dist/v1/resources/index.js.map +1 -0
  222. package/dist/v1/resources/installation_sources.d.ts +7 -0
  223. package/dist/v1/resources/installation_sources.d.ts.map +1 -0
  224. package/dist/v1/resources/installation_sources.js +13 -0
  225. package/dist/v1/resources/installation_sources.js.map +1 -0
  226. package/dist/v1/resources/invoke.d.ts +29 -0
  227. package/dist/v1/resources/invoke.d.ts.map +1 -0
  228. package/dist/v1/resources/invoke.js +23 -0
  229. package/dist/v1/resources/invoke.js.map +1 -0
  230. package/dist/v1/resources/models.d.ts +12 -0
  231. package/dist/v1/resources/models.d.ts.map +1 -0
  232. package/dist/v1/resources/models.js +14 -0
  233. package/dist/v1/resources/models.js.map +1 -0
  234. package/dist/v1/resources/orgs.d.ts +23 -0
  235. package/dist/v1/resources/orgs.d.ts.map +1 -0
  236. package/dist/v1/resources/orgs.js +13 -0
  237. package/dist/v1/resources/orgs.js.map +1 -0
  238. package/dist/v1/resources/team_memberships.d.ts +15 -0
  239. package/dist/v1/resources/team_memberships.d.ts.map +1 -0
  240. package/dist/v1/resources/team_memberships.js +16 -0
  241. package/dist/v1/resources/team_memberships.js.map +1 -0
  242. package/dist/v1/resources/teams.d.ts +232 -0
  243. package/dist/v1/resources/teams.d.ts.map +1 -0
  244. package/dist/v1/resources/teams.js +118 -0
  245. package/dist/v1/resources/teams.js.map +1 -0
  246. package/dist/v1/resources/thread_messages.d.ts +38 -0
  247. package/dist/v1/resources/thread_messages.d.ts.map +1 -0
  248. package/dist/v1/resources/thread_messages.js +41 -0
  249. package/dist/v1/resources/thread_messages.js.map +1 -0
  250. package/dist/v1/resources/threads.d.ts +119 -0
  251. package/dist/v1/resources/threads.d.ts.map +1 -0
  252. package/dist/v1/resources/threads.js +119 -0
  253. package/dist/v1/resources/threads.js.map +1 -0
  254. package/dist/v1/resources/users.d.ts +148 -0
  255. package/dist/v1/resources/users.d.ts.map +1 -0
  256. package/dist/v1/resources/users.js +74 -0
  257. package/dist/v1/resources/users.js.map +1 -0
  258. package/dist/v1.d.ts +45 -0
  259. package/dist/v1.d.ts.map +1 -0
  260. package/dist/v1.js +68 -0
  261. package/dist/v1.js.map +1 -0
  262. package/package.json +33 -0
@@ -0,0 +1,4478 @@
1
+ import { z } from "zod";
2
+ /** Schema for a thread in the developer portal.
3
+
4
+ Maps to serialized thread output from developer portal API.
5
+ */
6
+ export declare const developerThreadSchema: z.ZodObject<{
7
+ app_name: z.ZodOptional<z.ZodString>;
8
+ created_at: z.ZodOptional<z.ZodString>;
9
+ id: z.ZodString;
10
+ is_channel: z.ZodOptional<z.ZodBoolean>;
11
+ is_default: z.ZodOptional<z.ZodBoolean>;
12
+ is_unlisted: z.ZodOptional<z.ZodBoolean>;
13
+ key: z.ZodOptional<z.ZodString>;
14
+ org: z.ZodOptional<z.ZodString>;
15
+ owner: z.ZodOptional<z.ZodString>;
16
+ owner_name: z.ZodOptional<z.ZodString>;
17
+ owner_type: z.ZodOptional<z.ZodString>;
18
+ sandbox: z.ZodOptional<z.ZodString>;
19
+ slug: z.ZodOptional<z.ZodString>;
20
+ title: z.ZodString;
21
+ updated_at: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: string;
24
+ title: string;
25
+ key?: string | undefined;
26
+ created_at?: string | undefined;
27
+ org?: string | undefined;
28
+ sandbox?: string | undefined;
29
+ updated_at?: string | undefined;
30
+ app_name?: string | undefined;
31
+ is_channel?: boolean | undefined;
32
+ is_default?: boolean | undefined;
33
+ is_unlisted?: boolean | undefined;
34
+ owner?: string | undefined;
35
+ owner_name?: string | undefined;
36
+ owner_type?: string | undefined;
37
+ slug?: string | undefined;
38
+ }, {
39
+ id: string;
40
+ title: string;
41
+ key?: string | undefined;
42
+ created_at?: string | undefined;
43
+ org?: string | undefined;
44
+ sandbox?: string | undefined;
45
+ updated_at?: string | undefined;
46
+ app_name?: string | undefined;
47
+ is_channel?: boolean | undefined;
48
+ is_default?: boolean | undefined;
49
+ is_unlisted?: boolean | undefined;
50
+ owner?: string | undefined;
51
+ owner_name?: string | undefined;
52
+ owner_type?: string | undefined;
53
+ slug?: string | undefined;
54
+ }>;
55
+ export type DeveloperThread = z.infer<typeof developerThreadSchema>;
56
+ /** Schema for a context ingestion.
57
+
58
+ Maps to serialized context ingestion output from developer portal API.
59
+ */
60
+ export declare const contextIngestionSchema: z.ZodObject<{
61
+ agent: z.ZodOptional<z.ZodString>;
62
+ completed_at: z.ZodOptional<z.ZodString>;
63
+ created_at: z.ZodOptional<z.ZodString>;
64
+ error: z.ZodOptional<z.ZodUnknown>;
65
+ id: z.ZodString;
66
+ metadata: z.ZodOptional<z.ZodUnknown>;
67
+ source: z.ZodOptional<z.ZodString>;
68
+ started_at: z.ZodOptional<z.ZodString>;
69
+ status: z.ZodString;
70
+ team: z.ZodOptional<z.ZodString>;
71
+ updated_at: z.ZodOptional<z.ZodString>;
72
+ user: z.ZodOptional<z.ZodString>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ status: string;
75
+ id: string;
76
+ error?: unknown;
77
+ agent?: string | undefined;
78
+ created_at?: string | undefined;
79
+ metadata?: unknown;
80
+ team?: string | undefined;
81
+ user?: string | undefined;
82
+ source?: string | undefined;
83
+ updated_at?: string | undefined;
84
+ completed_at?: string | undefined;
85
+ started_at?: string | undefined;
86
+ }, {
87
+ status: string;
88
+ id: string;
89
+ error?: unknown;
90
+ agent?: string | undefined;
91
+ created_at?: string | undefined;
92
+ metadata?: unknown;
93
+ team?: string | undefined;
94
+ user?: string | undefined;
95
+ source?: string | undefined;
96
+ updated_at?: string | undefined;
97
+ completed_at?: string | undefined;
98
+ started_at?: string | undefined;
99
+ }>;
100
+ export type ContextIngestion = z.infer<typeof contextIngestionSchema>;
101
+ /** API schema for a working memory entry. */
102
+ export declare const workingMemoryEntrySchema: z.ZodObject<{
103
+ agent: z.ZodOptional<z.ZodString>;
104
+ created_at: z.ZodOptional<z.ZodString>;
105
+ expires_at: z.ZodOptional<z.ZodString>;
106
+ id: z.ZodString;
107
+ key: z.ZodOptional<z.ZodString>;
108
+ updated_at: z.ZodOptional<z.ZodString>;
109
+ value: z.ZodOptional<z.ZodString>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ id: string;
112
+ key?: string | undefined;
113
+ value?: string | undefined;
114
+ agent?: string | undefined;
115
+ created_at?: string | undefined;
116
+ updated_at?: string | undefined;
117
+ expires_at?: string | undefined;
118
+ }, {
119
+ id: string;
120
+ key?: string | undefined;
121
+ value?: string | undefined;
122
+ agent?: string | undefined;
123
+ created_at?: string | undefined;
124
+ updated_at?: string | undefined;
125
+ expires_at?: string | undefined;
126
+ }>;
127
+ export type WorkingMemoryEntry = z.infer<typeof workingMemoryEntrySchema>;
128
+ /** Schema for a sandbox-captured email.
129
+ */
130
+ export declare const sandboxEmailSchema: z.ZodObject<{
131
+ bcc: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
132
+ cc: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
133
+ created_at: z.ZodOptional<z.ZodString>;
134
+ from_address: z.ZodString;
135
+ from_name: z.ZodOptional<z.ZodString>;
136
+ headers: z.ZodOptional<z.ZodUnknown>;
137
+ html_body: z.ZodOptional<z.ZodString>;
138
+ id: z.ZodString;
139
+ reply_to: z.ZodOptional<z.ZodUnknown>;
140
+ subject: z.ZodOptional<z.ZodString>;
141
+ text_body: z.ZodOptional<z.ZodString>;
142
+ to: z.ZodArray<z.ZodUnknown, "many">;
143
+ }, "strip", z.ZodTypeAny, {
144
+ id: string;
145
+ from_address: string;
146
+ to: unknown[];
147
+ headers?: unknown;
148
+ created_at?: string | undefined;
149
+ reply_to?: unknown;
150
+ bcc?: unknown[] | undefined;
151
+ cc?: unknown[] | undefined;
152
+ from_name?: string | undefined;
153
+ html_body?: string | undefined;
154
+ subject?: string | undefined;
155
+ text_body?: string | undefined;
156
+ }, {
157
+ id: string;
158
+ from_address: string;
159
+ to: unknown[];
160
+ headers?: unknown;
161
+ created_at?: string | undefined;
162
+ reply_to?: unknown;
163
+ bcc?: unknown[] | undefined;
164
+ cc?: unknown[] | undefined;
165
+ from_name?: string | undefined;
166
+ html_body?: string | undefined;
167
+ subject?: string | undefined;
168
+ text_body?: string | undefined;
169
+ }>;
170
+ export type SandboxEmail = z.infer<typeof sandboxEmailSchema>;
171
+ /** Schema for an LLM session call.
172
+
173
+ Maps to serialized LLM call output from developer portal API.
174
+ */
175
+ export declare const llmCallSchema: z.ZodObject<{
176
+ call_id: z.ZodString;
177
+ completion_tokens: z.ZodNumber;
178
+ created_at: z.ZodOptional<z.ZodString>;
179
+ error_message: z.ZodOptional<z.ZodString>;
180
+ id: z.ZodString;
181
+ latency_ms: z.ZodNumber;
182
+ message_count: z.ZodOptional<z.ZodNumber>;
183
+ metadata: z.ZodOptional<z.ZodUnknown>;
184
+ model: z.ZodOptional<z.ZodString>;
185
+ prompt_tokens: z.ZodNumber;
186
+ session_id: z.ZodString;
187
+ source: z.ZodOptional<z.ZodString>;
188
+ status: z.ZodOptional<z.ZodString>;
189
+ team: z.ZodOptional<z.ZodString>;
190
+ total_tokens: z.ZodNumber;
191
+ trajectory: z.ZodOptional<z.ZodString>;
192
+ user: z.ZodOptional<z.ZodString>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ id: string;
195
+ call_id: string;
196
+ completion_tokens: number;
197
+ latency_ms: number;
198
+ prompt_tokens: number;
199
+ session_id: string;
200
+ total_tokens: number;
201
+ status?: string | undefined;
202
+ created_at?: string | undefined;
203
+ metadata?: unknown;
204
+ team?: string | undefined;
205
+ user?: string | undefined;
206
+ source?: string | undefined;
207
+ error_message?: string | undefined;
208
+ message_count?: number | undefined;
209
+ model?: string | undefined;
210
+ trajectory?: string | undefined;
211
+ }, {
212
+ id: string;
213
+ call_id: string;
214
+ completion_tokens: number;
215
+ latency_ms: number;
216
+ prompt_tokens: number;
217
+ session_id: string;
218
+ total_tokens: number;
219
+ status?: string | undefined;
220
+ created_at?: string | undefined;
221
+ metadata?: unknown;
222
+ team?: string | undefined;
223
+ user?: string | undefined;
224
+ source?: string | undefined;
225
+ error_message?: string | undefined;
226
+ message_count?: number | undefined;
227
+ model?: string | undefined;
228
+ trajectory?: string | undefined;
229
+ }>;
230
+ export type LlmCall = z.infer<typeof llmCallSchema>;
231
+ /** Schema for a registered domain.
232
+
233
+ Maps to serialized domain output from developer portal API.
234
+ */
235
+ export declare const domainSchema: z.ZodObject<{
236
+ created_at: z.ZodOptional<z.ZodString>;
237
+ domain: z.ZodString;
238
+ id: z.ZodString;
239
+ updated_at: z.ZodOptional<z.ZodString>;
240
+ verified: z.ZodOptional<z.ZodBoolean>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ id: string;
243
+ domain: string;
244
+ created_at?: string | undefined;
245
+ updated_at?: string | undefined;
246
+ verified?: boolean | undefined;
247
+ }, {
248
+ id: string;
249
+ domain: string;
250
+ created_at?: string | undefined;
251
+ updated_at?: string | undefined;
252
+ verified?: boolean | undefined;
253
+ }>;
254
+ export type Domain = z.infer<typeof domainSchema>;
255
+ /** Schema for a webhook event.
256
+
257
+ Maps to serialized webhook event output from developer portal API.
258
+ */
259
+ export declare const webhookEventSchema: z.ZodObject<{
260
+ created_at: z.ZodOptional<z.ZodString>;
261
+ error: z.ZodOptional<z.ZodString>;
262
+ event_type: z.ZodOptional<z.ZodString>;
263
+ headers: z.ZodOptional<z.ZodUnknown>;
264
+ id: z.ZodString;
265
+ payload: z.ZodOptional<z.ZodUnknown>;
266
+ processed_at: z.ZodOptional<z.ZodString>;
267
+ status: z.ZodString;
268
+ }, "strip", z.ZodTypeAny, {
269
+ status: string;
270
+ id: string;
271
+ error?: string | undefined;
272
+ headers?: unknown;
273
+ created_at?: string | undefined;
274
+ payload?: unknown;
275
+ event_type?: string | undefined;
276
+ processed_at?: string | undefined;
277
+ }, {
278
+ status: string;
279
+ id: string;
280
+ error?: string | undefined;
281
+ headers?: unknown;
282
+ created_at?: string | undefined;
283
+ payload?: unknown;
284
+ event_type?: string | undefined;
285
+ processed_at?: string | undefined;
286
+ }>;
287
+ export type WebhookEvent = z.infer<typeof webhookEventSchema>;
288
+ /** Schema for a message actor (user or agent).
289
+
290
+ Actors represent the entity that sent a message.
291
+ Maps to the actor format from MessageActorHelper.build_actor/1.
292
+ */
293
+ export declare const actorSchema: z.ZodObject<{
294
+ alias: z.ZodOptional<z.ZodString>;
295
+ id: z.ZodOptional<z.ZodString>;
296
+ name: z.ZodOptional<z.ZodString>;
297
+ profile_picture: z.ZodOptional<z.ZodObject<{
298
+ file: z.ZodOptional<z.ZodString>;
299
+ height: z.ZodOptional<z.ZodNumber>;
300
+ media: z.ZodOptional<z.ZodString>;
301
+ mime_type: z.ZodOptional<z.ZodString>;
302
+ refresh_url: z.ZodOptional<z.ZodString>;
303
+ url: z.ZodOptional<z.ZodString>;
304
+ width: z.ZodOptional<z.ZodNumber>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ file?: string | undefined;
307
+ height?: number | undefined;
308
+ media?: string | undefined;
309
+ mime_type?: string | undefined;
310
+ refresh_url?: string | undefined;
311
+ url?: string | undefined;
312
+ width?: number | undefined;
313
+ }, {
314
+ file?: string | undefined;
315
+ height?: number | undefined;
316
+ media?: string | undefined;
317
+ mime_type?: string | undefined;
318
+ refresh_url?: string | undefined;
319
+ url?: string | undefined;
320
+ width?: number | undefined;
321
+ }>>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ alias?: string | undefined;
324
+ id?: string | undefined;
325
+ name?: string | undefined;
326
+ profile_picture?: {
327
+ file?: string | undefined;
328
+ height?: number | undefined;
329
+ media?: string | undefined;
330
+ mime_type?: string | undefined;
331
+ refresh_url?: string | undefined;
332
+ url?: string | undefined;
333
+ width?: number | undefined;
334
+ } | undefined;
335
+ }, {
336
+ alias?: string | undefined;
337
+ id?: string | undefined;
338
+ name?: string | undefined;
339
+ profile_picture?: {
340
+ file?: string | undefined;
341
+ height?: number | undefined;
342
+ media?: string | undefined;
343
+ mime_type?: string | undefined;
344
+ refresh_url?: string | undefined;
345
+ url?: string | undefined;
346
+ width?: number | undefined;
347
+ } | undefined;
348
+ }>;
349
+ export type Actor = z.infer<typeof actorSchema>;
350
+ /** Schema for an eval run. */
351
+ export declare const evalRunSchema: z.ZodObject<{
352
+ agent: z.ZodOptional<z.ZodString>;
353
+ agent_name: z.ZodOptional<z.ZodString>;
354
+ completed_at: z.ZodOptional<z.ZodString>;
355
+ created_at: z.ZodOptional<z.ZodString>;
356
+ id: z.ZodString;
357
+ results: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
358
+ started_at: z.ZodOptional<z.ZodString>;
359
+ status: z.ZodString;
360
+ suite: z.ZodString;
361
+ summary: z.ZodOptional<z.ZodUnknown>;
362
+ updated_at: z.ZodOptional<z.ZodString>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ status: string;
365
+ id: string;
366
+ suite: string;
367
+ agent?: string | undefined;
368
+ created_at?: string | undefined;
369
+ updated_at?: string | undefined;
370
+ completed_at?: string | undefined;
371
+ started_at?: string | undefined;
372
+ agent_name?: string | undefined;
373
+ results?: unknown[] | undefined;
374
+ summary?: unknown;
375
+ }, {
376
+ status: string;
377
+ id: string;
378
+ suite: string;
379
+ agent?: string | undefined;
380
+ created_at?: string | undefined;
381
+ updated_at?: string | undefined;
382
+ completed_at?: string | undefined;
383
+ started_at?: string | undefined;
384
+ agent_name?: string | undefined;
385
+ results?: unknown[] | undefined;
386
+ summary?: unknown;
387
+ }>;
388
+ export type EvalRun = z.infer<typeof evalRunSchema>;
389
+ /** API schema for a context entry. */
390
+ export declare const contextEntrySchema: z.ZodObject<{
391
+ after_cursor: z.ZodOptional<z.ZodString>;
392
+ agent_user: z.ZodOptional<z.ZodString>;
393
+ before_cursor: z.ZodOptional<z.ZodString>;
394
+ created_at: z.ZodOptional<z.ZodString>;
395
+ files: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
396
+ id: z.ZodString;
397
+ links: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
398
+ media: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
399
+ metadata: z.ZodOptional<z.ZodUnknown>;
400
+ org: z.ZodOptional<z.ZodString>;
401
+ sandbox: z.ZodOptional<z.ZodString>;
402
+ team: z.ZodOptional<z.ZodString>;
403
+ text: z.ZodOptional<z.ZodString>;
404
+ updated_at: z.ZodOptional<z.ZodString>;
405
+ user: z.ZodOptional<z.ZodString>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ id: string;
408
+ media?: unknown[] | undefined;
409
+ created_at?: string | undefined;
410
+ metadata?: unknown;
411
+ org?: string | undefined;
412
+ sandbox?: string | undefined;
413
+ team?: string | undefined;
414
+ user?: string | undefined;
415
+ updated_at?: string | undefined;
416
+ after_cursor?: string | undefined;
417
+ agent_user?: string | undefined;
418
+ before_cursor?: string | undefined;
419
+ files?: unknown[] | undefined;
420
+ links?: unknown[] | undefined;
421
+ text?: string | undefined;
422
+ }, {
423
+ id: string;
424
+ media?: unknown[] | undefined;
425
+ created_at?: string | undefined;
426
+ metadata?: unknown;
427
+ org?: string | undefined;
428
+ sandbox?: string | undefined;
429
+ team?: string | undefined;
430
+ user?: string | undefined;
431
+ updated_at?: string | undefined;
432
+ after_cursor?: string | undefined;
433
+ agent_user?: string | undefined;
434
+ before_cursor?: string | undefined;
435
+ files?: unknown[] | undefined;
436
+ links?: unknown[] | undefined;
437
+ text?: string | undefined;
438
+ }>;
439
+ export type ContextEntry = z.infer<typeof contextEntrySchema>;
440
+ /** Schema for a developer webhook.
441
+
442
+ Maps to serialized webhook output from developer portal API.
443
+ */
444
+ export declare const webhookSchema: z.ZodObject<{
445
+ context_installation: z.ZodOptional<z.ZodString>;
446
+ context_sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
447
+ created_at: z.ZodOptional<z.ZodString>;
448
+ enabled: z.ZodBoolean;
449
+ id: z.ZodString;
450
+ lookup_key: z.ZodOptional<z.ZodString>;
451
+ metadata: z.ZodOptional<z.ZodUnknown>;
452
+ provider: z.ZodOptional<z.ZodString>;
453
+ updated_at: z.ZodOptional<z.ZodString>;
454
+ webhook_url: z.ZodString;
455
+ }, "strip", z.ZodTypeAny, {
456
+ id: string;
457
+ enabled: boolean;
458
+ webhook_url: string;
459
+ created_at?: string | undefined;
460
+ metadata?: unknown;
461
+ updated_at?: string | undefined;
462
+ context_installation?: string | undefined;
463
+ context_sources?: string[] | undefined;
464
+ lookup_key?: string | undefined;
465
+ provider?: string | undefined;
466
+ }, {
467
+ id: string;
468
+ enabled: boolean;
469
+ webhook_url: string;
470
+ created_at?: string | undefined;
471
+ metadata?: unknown;
472
+ updated_at?: string | undefined;
473
+ context_installation?: string | undefined;
474
+ context_sources?: string[] | undefined;
475
+ lookup_key?: string | undefined;
476
+ provider?: string | undefined;
477
+ }>;
478
+ export type Webhook = z.infer<typeof webhookSchema>;
479
+ /** API schema for a secret (user, team, or user-team). */
480
+ export declare const secretSchema: z.ZodObject<{
481
+ created_at: z.ZodOptional<z.ZodString>;
482
+ description: z.ZodOptional<z.ZodString>;
483
+ id: z.ZodString;
484
+ last_accessed_at: z.ZodOptional<z.ZodString>;
485
+ name: z.ZodOptional<z.ZodString>;
486
+ org: z.ZodOptional<z.ZodString>;
487
+ sandbox: z.ZodOptional<z.ZodString>;
488
+ secret_group: z.ZodOptional<z.ZodString>;
489
+ team: z.ZodOptional<z.ZodString>;
490
+ updated_at: z.ZodOptional<z.ZodString>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ id: string;
493
+ created_at?: string | undefined;
494
+ org?: string | undefined;
495
+ sandbox?: string | undefined;
496
+ team?: string | undefined;
497
+ name?: string | undefined;
498
+ updated_at?: string | undefined;
499
+ description?: string | undefined;
500
+ last_accessed_at?: string | undefined;
501
+ secret_group?: string | undefined;
502
+ }, {
503
+ id: string;
504
+ created_at?: string | undefined;
505
+ org?: string | undefined;
506
+ sandbox?: string | undefined;
507
+ team?: string | undefined;
508
+ name?: string | undefined;
509
+ updated_at?: string | undefined;
510
+ description?: string | undefined;
511
+ last_accessed_at?: string | undefined;
512
+ secret_group?: string | undefined;
513
+ }>;
514
+ export type Secret = z.infer<typeof secretSchema>;
515
+ /** API schema for OAuth device authorization responses. */
516
+ export declare const deviceAuthorizationResponseSchema: z.ZodObject<{
517
+ device_code: z.ZodString;
518
+ expires_in: z.ZodNumber;
519
+ interval: z.ZodNumber;
520
+ user_code: z.ZodString;
521
+ verification_uri: z.ZodString;
522
+ verification_uri_complete: z.ZodString;
523
+ }, "strip", z.ZodTypeAny, {
524
+ expires_in: number;
525
+ device_code: string;
526
+ interval: number;
527
+ user_code: string;
528
+ verification_uri: string;
529
+ verification_uri_complete: string;
530
+ }, {
531
+ expires_in: number;
532
+ device_code: string;
533
+ interval: number;
534
+ user_code: string;
535
+ verification_uri: string;
536
+ verification_uri_complete: string;
537
+ }>;
538
+ export type DeviceAuthorizationResponse = z.infer<typeof deviceAuthorizationResponseSchema>;
539
+ /** API schema for a single ACL grant entry. */
540
+ export declare const aclGrantSchema: z.ZodObject<{
541
+ actions: z.ZodArray<z.ZodString, "many">;
542
+ principal: z.ZodOptional<z.ZodString>;
543
+ principal_type: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ actions: string[];
546
+ principal_type: string;
547
+ principal?: string | undefined;
548
+ }, {
549
+ actions: string[];
550
+ principal_type: string;
551
+ principal?: string | undefined;
552
+ }>;
553
+ export type AclGrant = z.infer<typeof aclGrantSchema>;
554
+ /** API schema for OAuth token endpoint responses. */
555
+ export declare const oAuthTokenResponseSchema: z.ZodObject<{
556
+ access_token: z.ZodString;
557
+ expires_in: z.ZodNumber;
558
+ refresh_token: z.ZodOptional<z.ZodString>;
559
+ scope: z.ZodOptional<z.ZodString>;
560
+ token_type: z.ZodString;
561
+ user: z.ZodOptional<z.ZodObject<{
562
+ alias: z.ZodOptional<z.ZodString>;
563
+ email: z.ZodOptional<z.ZodString>;
564
+ id: z.ZodString;
565
+ metadata: z.ZodOptional<z.ZodUnknown>;
566
+ name: z.ZodOptional<z.ZodString>;
567
+ org: z.ZodOptional<z.ZodString>;
568
+ sandbox: z.ZodOptional<z.ZodString>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ id: string;
571
+ email?: string | undefined;
572
+ alias?: string | undefined;
573
+ metadata?: unknown;
574
+ org?: string | undefined;
575
+ sandbox?: string | undefined;
576
+ name?: string | undefined;
577
+ }, {
578
+ id: string;
579
+ email?: string | undefined;
580
+ alias?: string | undefined;
581
+ metadata?: unknown;
582
+ org?: string | undefined;
583
+ sandbox?: string | undefined;
584
+ name?: string | undefined;
585
+ }>>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ expires_in: number;
588
+ access_token: string;
589
+ token_type: string;
590
+ refresh_token?: string | undefined;
591
+ user?: {
592
+ id: string;
593
+ email?: string | undefined;
594
+ alias?: string | undefined;
595
+ metadata?: unknown;
596
+ org?: string | undefined;
597
+ sandbox?: string | undefined;
598
+ name?: string | undefined;
599
+ } | undefined;
600
+ scope?: string | undefined;
601
+ }, {
602
+ expires_in: number;
603
+ access_token: string;
604
+ token_type: string;
605
+ refresh_token?: string | undefined;
606
+ user?: {
607
+ id: string;
608
+ email?: string | undefined;
609
+ alias?: string | undefined;
610
+ metadata?: unknown;
611
+ org?: string | undefined;
612
+ sandbox?: string | undefined;
613
+ name?: string | undefined;
614
+ } | undefined;
615
+ scope?: string | undefined;
616
+ }>;
617
+ export type OAuthTokenResponse = z.infer<typeof oAuthTokenResponseSchema>;
618
+ /** Result of executing a command on an agent computer. */
619
+ export declare const computerExecResultSchema: z.ZodObject<{
620
+ exit_code: z.ZodOptional<z.ZodNumber>;
621
+ output: z.ZodOptional<z.ZodString>;
622
+ }, "strip", z.ZodTypeAny, {
623
+ exit_code?: number | undefined;
624
+ output?: string | undefined;
625
+ }, {
626
+ exit_code?: number | undefined;
627
+ output?: string | undefined;
628
+ }>;
629
+ export type ComputerExecResult = z.infer<typeof computerExecResultSchema>;
630
+ /** Source option metadata for LLM call filtering.
631
+ */
632
+ export declare const llmCallSourceOptionSchema: z.ZodObject<{
633
+ label: z.ZodString;
634
+ source: z.ZodString;
635
+ }, "strip", z.ZodTypeAny, {
636
+ source: string;
637
+ label: string;
638
+ }, {
639
+ source: string;
640
+ label: string;
641
+ }>;
642
+ export type LlmCallSourceOption = z.infer<typeof llmCallSourceOptionSchema>;
643
+ /** API schema for identifying a principal to remove from an ACL. */
644
+ export declare const aclRemoveTargetSchema: z.ZodObject<{
645
+ principal: z.ZodOptional<z.ZodString>;
646
+ principal_type: z.ZodString;
647
+ }, "strip", z.ZodTypeAny, {
648
+ principal_type: string;
649
+ principal?: string | undefined;
650
+ }, {
651
+ principal_type: string;
652
+ principal?: string | undefined;
653
+ }>;
654
+ export type AclRemoveTarget = z.infer<typeof aclRemoveTargetSchema>;
655
+ /** Reusable API schema for access control lists.
656
+
657
+ Supports two modes (mutually exclusive):
658
+
659
+ **Replace mode** — send `grants` to replace all entries:
660
+
661
+ {"grants": [{"principal_type": "user", "principal": "...", "actions": ["read"]}]}
662
+
663
+ Use `{"grants": []}` to clear all entries.
664
+
665
+ **Patch mode** — send `add` and/or `remove`:
666
+
667
+ {"add": [...grants...], "remove": [{"principal_type": "user", "principal": "..."}]}
668
+
669
+ Cannot mix `grants` with `add`/`remove`.
670
+ */
671
+ export declare const aclSchema: z.ZodObject<{
672
+ add: z.ZodOptional<z.ZodArray<z.ZodObject<{
673
+ actions: z.ZodArray<z.ZodString, "many">;
674
+ principal: z.ZodOptional<z.ZodString>;
675
+ principal_type: z.ZodString;
676
+ }, "strip", z.ZodTypeAny, {
677
+ actions: string[];
678
+ principal_type: string;
679
+ principal?: string | undefined;
680
+ }, {
681
+ actions: string[];
682
+ principal_type: string;
683
+ principal?: string | undefined;
684
+ }>, "many">>;
685
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
686
+ actions: z.ZodArray<z.ZodString, "many">;
687
+ principal: z.ZodOptional<z.ZodString>;
688
+ principal_type: z.ZodString;
689
+ }, "strip", z.ZodTypeAny, {
690
+ actions: string[];
691
+ principal_type: string;
692
+ principal?: string | undefined;
693
+ }, {
694
+ actions: string[];
695
+ principal_type: string;
696
+ principal?: string | undefined;
697
+ }>, "many">>;
698
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
699
+ principal: z.ZodOptional<z.ZodString>;
700
+ principal_type: z.ZodString;
701
+ }, "strip", z.ZodTypeAny, {
702
+ principal_type: string;
703
+ principal?: string | undefined;
704
+ }, {
705
+ principal_type: string;
706
+ principal?: string | undefined;
707
+ }>, "many">>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ add?: {
710
+ actions: string[];
711
+ principal_type: string;
712
+ principal?: string | undefined;
713
+ }[] | undefined;
714
+ grants?: {
715
+ actions: string[];
716
+ principal_type: string;
717
+ principal?: string | undefined;
718
+ }[] | undefined;
719
+ remove?: {
720
+ principal_type: string;
721
+ principal?: string | undefined;
722
+ }[] | undefined;
723
+ }, {
724
+ add?: {
725
+ actions: string[];
726
+ principal_type: string;
727
+ principal?: string | undefined;
728
+ }[] | undefined;
729
+ grants?: {
730
+ actions: string[];
731
+ principal_type: string;
732
+ principal?: string | undefined;
733
+ }[] | undefined;
734
+ remove?: {
735
+ principal_type: string;
736
+ principal?: string | undefined;
737
+ }[] | undefined;
738
+ }>;
739
+ export type Acl = z.infer<typeof aclSchema>;
740
+ /** Schema for an app environment variable response that includes the plaintext value. */
741
+ export declare const appEnvVarPlaintextSchema: z.ZodObject<{
742
+ created_at: z.ZodOptional<z.ZodString>;
743
+ description: z.ZodOptional<z.ZodString>;
744
+ id: z.ZodString;
745
+ key: z.ZodString;
746
+ updated_at: z.ZodOptional<z.ZodString>;
747
+ value: z.ZodString;
748
+ }, "strip", z.ZodTypeAny, {
749
+ key: string;
750
+ value: string;
751
+ id: string;
752
+ created_at?: string | undefined;
753
+ updated_at?: string | undefined;
754
+ description?: string | undefined;
755
+ }, {
756
+ key: string;
757
+ value: string;
758
+ id: string;
759
+ created_at?: string | undefined;
760
+ updated_at?: string | undefined;
761
+ description?: string | undefined;
762
+ }>;
763
+ export type AppEnvVarPlaintext = z.infer<typeof appEnvVarPlaintextSchema>;
764
+ /** Schema for integration records with connector state. */
765
+ export declare const integrationSchema: z.ZodObject<{
766
+ id: z.ZodString;
767
+ org: z.ZodOptional<z.ZodString>;
768
+ provider: z.ZodString;
769
+ sandbox: z.ZodOptional<z.ZodString>;
770
+ secret_group: z.ZodOptional<z.ZodString>;
771
+ state: z.ZodUnknown;
772
+ team: z.ZodOptional<z.ZodString>;
773
+ user: z.ZodOptional<z.ZodString>;
774
+ workspace_key: z.ZodOptional<z.ZodString>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ id: string;
777
+ provider: string;
778
+ org?: string | undefined;
779
+ sandbox?: string | undefined;
780
+ team?: string | undefined;
781
+ user?: string | undefined;
782
+ secret_group?: string | undefined;
783
+ state?: unknown;
784
+ workspace_key?: string | undefined;
785
+ }, {
786
+ id: string;
787
+ provider: string;
788
+ org?: string | undefined;
789
+ sandbox?: string | undefined;
790
+ team?: string | undefined;
791
+ user?: string | undefined;
792
+ secret_group?: string | undefined;
793
+ state?: unknown;
794
+ workspace_key?: string | undefined;
795
+ }>;
796
+ export type Integration = z.infer<typeof integrationSchema>;
797
+ /** Schema for a single notification setting update entry.
798
+ */
799
+ export declare const notificationSettingUpdateSchema: z.ZodObject<{
800
+ level: z.ZodString;
801
+ muted: z.ZodBoolean;
802
+ team: z.ZodOptional<z.ZodString>;
803
+ thread: z.ZodOptional<z.ZodString>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ level: string;
806
+ muted: boolean;
807
+ team?: string | undefined;
808
+ thread?: string | undefined;
809
+ }, {
810
+ level: string;
811
+ muted: boolean;
812
+ team?: string | undefined;
813
+ thread?: string | undefined;
814
+ }>;
815
+ export type NotificationSettingUpdate = z.infer<typeof notificationSettingUpdateSchema>;
816
+ /** Schema for a key-value storage entry.
817
+
818
+ Maps exactly to render_entry/1 output in ApiStorageController.
819
+ */
820
+ export declare const keyValueStorageEntrySchema: z.ZodObject<{
821
+ created_at: z.ZodOptional<z.ZodString>;
822
+ key: z.ZodString;
823
+ updated_at: z.ZodOptional<z.ZodString>;
824
+ user: z.ZodString;
825
+ value: z.ZodString;
826
+ }, "strip", z.ZodTypeAny, {
827
+ key: string;
828
+ value: string;
829
+ user: string;
830
+ created_at?: string | undefined;
831
+ updated_at?: string | undefined;
832
+ }, {
833
+ key: string;
834
+ value: string;
835
+ user: string;
836
+ created_at?: string | undefined;
837
+ updated_at?: string | undefined;
838
+ }>;
839
+ export type KeyValueStorageEntry = z.infer<typeof keyValueStorageEntrySchema>;
840
+ /** API schema for an installation kind. */
841
+ export declare const installationKindSchema: z.ZodObject<{
842
+ accepts_sources: z.ZodOptional<z.ZodBoolean>;
843
+ category: z.ZodOptional<z.ZodString>;
844
+ config_schema: z.ZodOptional<z.ZodUnknown>;
845
+ description: z.ZodOptional<z.ZodString>;
846
+ kind: z.ZodString;
847
+ label: z.ZodOptional<z.ZodString>;
848
+ provider: z.ZodOptional<z.ZodString>;
849
+ requires_integration: z.ZodOptional<z.ZodBoolean>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ kind: string;
852
+ provider?: string | undefined;
853
+ description?: string | undefined;
854
+ label?: string | undefined;
855
+ accepts_sources?: boolean | undefined;
856
+ category?: string | undefined;
857
+ config_schema?: unknown;
858
+ requires_integration?: boolean | undefined;
859
+ }, {
860
+ kind: string;
861
+ provider?: string | undefined;
862
+ description?: string | undefined;
863
+ label?: string | undefined;
864
+ accepts_sources?: boolean | undefined;
865
+ category?: string | undefined;
866
+ config_schema?: unknown;
867
+ requires_integration?: boolean | undefined;
868
+ }>;
869
+ export type InstallationKind = z.infer<typeof installationKindSchema>;
870
+ /** List response for installation kinds. */
871
+ export declare const installationKindListResponseSchema: z.ZodObject<{
872
+ data: z.ZodArray<z.ZodObject<{
873
+ accepts_sources: z.ZodOptional<z.ZodBoolean>;
874
+ category: z.ZodOptional<z.ZodString>;
875
+ config_schema: z.ZodOptional<z.ZodUnknown>;
876
+ description: z.ZodOptional<z.ZodString>;
877
+ kind: z.ZodString;
878
+ label: z.ZodOptional<z.ZodString>;
879
+ provider: z.ZodOptional<z.ZodString>;
880
+ requires_integration: z.ZodOptional<z.ZodBoolean>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ kind: string;
883
+ provider?: string | undefined;
884
+ description?: string | undefined;
885
+ label?: string | undefined;
886
+ accepts_sources?: boolean | undefined;
887
+ category?: string | undefined;
888
+ config_schema?: unknown;
889
+ requires_integration?: boolean | undefined;
890
+ }, {
891
+ kind: string;
892
+ provider?: string | undefined;
893
+ description?: string | undefined;
894
+ label?: string | undefined;
895
+ accepts_sources?: boolean | undefined;
896
+ category?: string | undefined;
897
+ config_schema?: unknown;
898
+ requires_integration?: boolean | undefined;
899
+ }>, "many">;
900
+ }, "strip", z.ZodTypeAny, {
901
+ data: {
902
+ kind: string;
903
+ provider?: string | undefined;
904
+ description?: string | undefined;
905
+ label?: string | undefined;
906
+ accepts_sources?: boolean | undefined;
907
+ category?: string | undefined;
908
+ config_schema?: unknown;
909
+ requires_integration?: boolean | undefined;
910
+ }[];
911
+ }, {
912
+ data: {
913
+ kind: string;
914
+ provider?: string | undefined;
915
+ description?: string | undefined;
916
+ label?: string | undefined;
917
+ accepts_sources?: boolean | undefined;
918
+ category?: string | undefined;
919
+ config_schema?: unknown;
920
+ requires_integration?: boolean | undefined;
921
+ }[];
922
+ }>;
923
+ export type InstallationKindListResponse = z.infer<typeof installationKindListResponseSchema>;
924
+ /** Schema for an eval task. */
925
+ export declare const evalTaskSchema: z.ZodObject<{
926
+ created_at: z.ZodOptional<z.ZodString>;
927
+ expected_outcome: z.ZodString;
928
+ grading_criteria: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
929
+ id: z.ZodString;
930
+ input_message: z.ZodString;
931
+ mock_agent_memory: z.ZodOptional<z.ZodUnknown>;
932
+ mock_context_items: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
933
+ mock_datetime: z.ZodOptional<z.ZodString>;
934
+ mock_participants: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
935
+ mock_tools: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
936
+ status: z.ZodString;
937
+ suite: z.ZodString;
938
+ updated_at: z.ZodOptional<z.ZodString>;
939
+ }, "strip", z.ZodTypeAny, {
940
+ status: string;
941
+ id: string;
942
+ suite: string;
943
+ expected_outcome: string;
944
+ input_message: string;
945
+ created_at?: string | undefined;
946
+ updated_at?: string | undefined;
947
+ grading_criteria?: unknown[] | undefined;
948
+ mock_agent_memory?: unknown;
949
+ mock_context_items?: unknown[] | undefined;
950
+ mock_datetime?: string | undefined;
951
+ mock_participants?: unknown[] | undefined;
952
+ mock_tools?: unknown[] | undefined;
953
+ }, {
954
+ status: string;
955
+ id: string;
956
+ suite: string;
957
+ expected_outcome: string;
958
+ input_message: string;
959
+ created_at?: string | undefined;
960
+ updated_at?: string | undefined;
961
+ grading_criteria?: unknown[] | undefined;
962
+ mock_agent_memory?: unknown;
963
+ mock_context_items?: unknown[] | undefined;
964
+ mock_datetime?: string | undefined;
965
+ mock_participants?: unknown[] | undefined;
966
+ mock_tools?: unknown[] | undefined;
967
+ }>;
968
+ export type EvalTask = z.infer<typeof evalTaskSchema>;
969
+ /** API schema for a task comment. */
970
+ export declare const taskCommentSchema: z.ZodObject<{
971
+ author: z.ZodOptional<z.ZodString>;
972
+ author_actor: z.ZodOptional<z.ZodUnknown>;
973
+ author_persona: z.ZodOptional<z.ZodString>;
974
+ author_user: z.ZodOptional<z.ZodString>;
975
+ body: z.ZodString;
976
+ created_at: z.ZodOptional<z.ZodString>;
977
+ id: z.ZodString;
978
+ org: z.ZodOptional<z.ZodString>;
979
+ sandbox: z.ZodOptional<z.ZodString>;
980
+ task: z.ZodOptional<z.ZodString>;
981
+ team: z.ZodOptional<z.ZodString>;
982
+ updated_at: z.ZodOptional<z.ZodString>;
983
+ }, "strip", z.ZodTypeAny, {
984
+ body: string;
985
+ id: string;
986
+ created_at?: string | undefined;
987
+ org?: string | undefined;
988
+ sandbox?: string | undefined;
989
+ team?: string | undefined;
990
+ updated_at?: string | undefined;
991
+ author?: string | undefined;
992
+ author_actor?: unknown;
993
+ author_persona?: string | undefined;
994
+ author_user?: string | undefined;
995
+ task?: string | undefined;
996
+ }, {
997
+ body: string;
998
+ id: string;
999
+ created_at?: string | undefined;
1000
+ org?: string | undefined;
1001
+ sandbox?: string | undefined;
1002
+ team?: string | undefined;
1003
+ updated_at?: string | undefined;
1004
+ author?: string | undefined;
1005
+ author_actor?: unknown;
1006
+ author_persona?: string | undefined;
1007
+ author_user?: string | undefined;
1008
+ task?: string | undefined;
1009
+ }>;
1010
+ export type TaskComment = z.infer<typeof taskCommentSchema>;
1011
+ /** Schema for an eval result. */
1012
+ export declare const evalResultSchema: z.ZodObject<{
1013
+ agent_response: z.ZodOptional<z.ZodString>;
1014
+ created_at: z.ZodOptional<z.ZodString>;
1015
+ duration_ms: z.ZodOptional<z.ZodNumber>;
1016
+ grader_details: z.ZodOptional<z.ZodUnknown>;
1017
+ id: z.ZodString;
1018
+ run: z.ZodString;
1019
+ score: z.ZodOptional<z.ZodNumber>;
1020
+ status: z.ZodString;
1021
+ task: z.ZodOptional<z.ZodString>;
1022
+ task_input: z.ZodOptional<z.ZodString>;
1023
+ transcript: z.ZodOptional<z.ZodUnknown>;
1024
+ updated_at: z.ZodOptional<z.ZodString>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ status: string;
1027
+ id: string;
1028
+ run: string;
1029
+ created_at?: string | undefined;
1030
+ updated_at?: string | undefined;
1031
+ task?: string | undefined;
1032
+ agent_response?: string | undefined;
1033
+ duration_ms?: number | undefined;
1034
+ grader_details?: unknown;
1035
+ score?: number | undefined;
1036
+ task_input?: string | undefined;
1037
+ transcript?: unknown;
1038
+ }, {
1039
+ status: string;
1040
+ id: string;
1041
+ run: string;
1042
+ created_at?: string | undefined;
1043
+ updated_at?: string | undefined;
1044
+ task?: string | undefined;
1045
+ agent_response?: string | undefined;
1046
+ duration_ms?: number | undefined;
1047
+ grader_details?: unknown;
1048
+ score?: number | undefined;
1049
+ task_input?: string | undefined;
1050
+ transcript?: unknown;
1051
+ }>;
1052
+ export type EvalResult = z.infer<typeof evalResultSchema>;
1053
+ /** Schema for eval result list responses. */
1054
+ export declare const evalResultListSchema: z.ZodObject<{
1055
+ data: z.ZodArray<z.ZodObject<{
1056
+ agent_response: z.ZodOptional<z.ZodString>;
1057
+ created_at: z.ZodOptional<z.ZodString>;
1058
+ duration_ms: z.ZodOptional<z.ZodNumber>;
1059
+ grader_details: z.ZodOptional<z.ZodUnknown>;
1060
+ id: z.ZodString;
1061
+ run: z.ZodString;
1062
+ score: z.ZodOptional<z.ZodNumber>;
1063
+ status: z.ZodString;
1064
+ task: z.ZodOptional<z.ZodString>;
1065
+ task_input: z.ZodOptional<z.ZodString>;
1066
+ transcript: z.ZodOptional<z.ZodUnknown>;
1067
+ updated_at: z.ZodOptional<z.ZodString>;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ status: string;
1070
+ id: string;
1071
+ run: string;
1072
+ created_at?: string | undefined;
1073
+ updated_at?: string | undefined;
1074
+ task?: string | undefined;
1075
+ agent_response?: string | undefined;
1076
+ duration_ms?: number | undefined;
1077
+ grader_details?: unknown;
1078
+ score?: number | undefined;
1079
+ task_input?: string | undefined;
1080
+ transcript?: unknown;
1081
+ }, {
1082
+ status: string;
1083
+ id: string;
1084
+ run: string;
1085
+ created_at?: string | undefined;
1086
+ updated_at?: string | undefined;
1087
+ task?: string | undefined;
1088
+ agent_response?: string | undefined;
1089
+ duration_ms?: number | undefined;
1090
+ grader_details?: unknown;
1091
+ score?: number | undefined;
1092
+ task_input?: string | undefined;
1093
+ transcript?: unknown;
1094
+ }>, "many">;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ data: {
1097
+ status: string;
1098
+ id: string;
1099
+ run: string;
1100
+ created_at?: string | undefined;
1101
+ updated_at?: string | undefined;
1102
+ task?: string | undefined;
1103
+ agent_response?: string | undefined;
1104
+ duration_ms?: number | undefined;
1105
+ grader_details?: unknown;
1106
+ score?: number | undefined;
1107
+ task_input?: string | undefined;
1108
+ transcript?: unknown;
1109
+ }[];
1110
+ }, {
1111
+ data: {
1112
+ status: string;
1113
+ id: string;
1114
+ run: string;
1115
+ created_at?: string | undefined;
1116
+ updated_at?: string | undefined;
1117
+ task?: string | undefined;
1118
+ agent_response?: string | undefined;
1119
+ duration_ms?: number | undefined;
1120
+ grader_details?: unknown;
1121
+ score?: number | undefined;
1122
+ task_input?: string | undefined;
1123
+ transcript?: unknown;
1124
+ }[];
1125
+ }>;
1126
+ export type EvalResultList = z.infer<typeof evalResultListSchema>;
1127
+ /** Schema for delete operations that return a deleted count. */
1128
+ export declare const deletionConfirmationSchema: z.ZodObject<{
1129
+ deleted_count: z.ZodNumber;
1130
+ }, "strip", z.ZodTypeAny, {
1131
+ deleted_count: number;
1132
+ }, {
1133
+ deleted_count: number;
1134
+ }>;
1135
+ export type DeletionConfirmation = z.infer<typeof deletionConfirmationSchema>;
1136
+ /** An individual tool within a builtin tool catalog entry. */
1137
+ export declare const builtinToolSchema: z.ZodObject<{
1138
+ description: z.ZodOptional<z.ZodString>;
1139
+ name: z.ZodString;
1140
+ }, "strip", z.ZodTypeAny, {
1141
+ name: string;
1142
+ description?: string | undefined;
1143
+ }, {
1144
+ name: string;
1145
+ description?: string | undefined;
1146
+ }>;
1147
+ export type BuiltinTool = z.infer<typeof builtinToolSchema>;
1148
+ /** Schema for an eval suite. */
1149
+ export declare const evalSuiteSchema: z.ZodObject<{
1150
+ created_at: z.ZodOptional<z.ZodString>;
1151
+ description: z.ZodOptional<z.ZodString>;
1152
+ id: z.ZodString;
1153
+ name: z.ZodString;
1154
+ org: z.ZodOptional<z.ZodString>;
1155
+ status: z.ZodString;
1156
+ tasks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1157
+ updated_at: z.ZodOptional<z.ZodString>;
1158
+ user: z.ZodOptional<z.ZodString>;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ status: string;
1161
+ id: string;
1162
+ name: string;
1163
+ created_at?: string | undefined;
1164
+ org?: string | undefined;
1165
+ user?: string | undefined;
1166
+ updated_at?: string | undefined;
1167
+ description?: string | undefined;
1168
+ tasks?: unknown[] | undefined;
1169
+ }, {
1170
+ status: string;
1171
+ id: string;
1172
+ name: string;
1173
+ created_at?: string | undefined;
1174
+ org?: string | undefined;
1175
+ user?: string | undefined;
1176
+ updated_at?: string | undefined;
1177
+ description?: string | undefined;
1178
+ tasks?: unknown[] | undefined;
1179
+ }>;
1180
+ export type EvalSuite = z.infer<typeof evalSuiteSchema>;
1181
+ /** Schema for eval suite list responses. */
1182
+ export declare const evalSuiteListSchema: z.ZodObject<{
1183
+ data: z.ZodArray<z.ZodObject<{
1184
+ created_at: z.ZodOptional<z.ZodString>;
1185
+ description: z.ZodOptional<z.ZodString>;
1186
+ id: z.ZodString;
1187
+ name: z.ZodString;
1188
+ org: z.ZodOptional<z.ZodString>;
1189
+ status: z.ZodString;
1190
+ tasks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1191
+ updated_at: z.ZodOptional<z.ZodString>;
1192
+ user: z.ZodOptional<z.ZodString>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ status: string;
1195
+ id: string;
1196
+ name: string;
1197
+ created_at?: string | undefined;
1198
+ org?: string | undefined;
1199
+ user?: string | undefined;
1200
+ updated_at?: string | undefined;
1201
+ description?: string | undefined;
1202
+ tasks?: unknown[] | undefined;
1203
+ }, {
1204
+ status: string;
1205
+ id: string;
1206
+ name: string;
1207
+ created_at?: string | undefined;
1208
+ org?: string | undefined;
1209
+ user?: string | undefined;
1210
+ updated_at?: string | undefined;
1211
+ description?: string | undefined;
1212
+ tasks?: unknown[] | undefined;
1213
+ }>, "many">;
1214
+ }, "strip", z.ZodTypeAny, {
1215
+ data: {
1216
+ status: string;
1217
+ id: string;
1218
+ name: string;
1219
+ created_at?: string | undefined;
1220
+ org?: string | undefined;
1221
+ user?: string | undefined;
1222
+ updated_at?: string | undefined;
1223
+ description?: string | undefined;
1224
+ tasks?: unknown[] | undefined;
1225
+ }[];
1226
+ }, {
1227
+ data: {
1228
+ status: string;
1229
+ id: string;
1230
+ name: string;
1231
+ created_at?: string | undefined;
1232
+ org?: string | undefined;
1233
+ user?: string | undefined;
1234
+ updated_at?: string | undefined;
1235
+ description?: string | undefined;
1236
+ tasks?: unknown[] | undefined;
1237
+ }[];
1238
+ }>;
1239
+ export type EvalSuiteList = z.infer<typeof evalSuiteListSchema>;
1240
+ /** Schema for a sandbox API key.
1241
+ */
1242
+ export declare const sandboxKeySchema: z.ZodObject<{
1243
+ created_at: z.ZodOptional<z.ZodString>;
1244
+ expires_at: z.ZodOptional<z.ZodString>;
1245
+ full_key: z.ZodOptional<z.ZodString>;
1246
+ id: z.ZodString;
1247
+ key_hint: z.ZodOptional<z.ZodString>;
1248
+ key_value: z.ZodOptional<z.ZodString>;
1249
+ last_used_at: z.ZodOptional<z.ZodString>;
1250
+ status: z.ZodString;
1251
+ type: z.ZodString;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ type: string;
1254
+ status: string;
1255
+ id: string;
1256
+ created_at?: string | undefined;
1257
+ expires_at?: string | undefined;
1258
+ full_key?: string | undefined;
1259
+ key_hint?: string | undefined;
1260
+ key_value?: string | undefined;
1261
+ last_used_at?: string | undefined;
1262
+ }, {
1263
+ type: string;
1264
+ status: string;
1265
+ id: string;
1266
+ created_at?: string | undefined;
1267
+ expires_at?: string | undefined;
1268
+ full_key?: string | undefined;
1269
+ key_hint?: string | undefined;
1270
+ key_value?: string | undefined;
1271
+ last_used_at?: string | undefined;
1272
+ }>;
1273
+ export type SandboxKey = z.infer<typeof sandboxKeySchema>;
1274
+ /** Schema for a developer sandbox.
1275
+ */
1276
+ export declare const sandboxSchema: z.ZodObject<{
1277
+ created_at: z.ZodOptional<z.ZodString>;
1278
+ id: z.ZodString;
1279
+ keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
1280
+ created_at: z.ZodOptional<z.ZodString>;
1281
+ expires_at: z.ZodOptional<z.ZodString>;
1282
+ full_key: z.ZodOptional<z.ZodString>;
1283
+ id: z.ZodString;
1284
+ key_hint: z.ZodOptional<z.ZodString>;
1285
+ key_value: z.ZodOptional<z.ZodString>;
1286
+ last_used_at: z.ZodOptional<z.ZodString>;
1287
+ status: z.ZodString;
1288
+ type: z.ZodString;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ type: string;
1291
+ status: string;
1292
+ id: string;
1293
+ created_at?: string | undefined;
1294
+ expires_at?: string | undefined;
1295
+ full_key?: string | undefined;
1296
+ key_hint?: string | undefined;
1297
+ key_value?: string | undefined;
1298
+ last_used_at?: string | undefined;
1299
+ }, {
1300
+ type: string;
1301
+ status: string;
1302
+ id: string;
1303
+ created_at?: string | undefined;
1304
+ expires_at?: string | undefined;
1305
+ full_key?: string | undefined;
1306
+ key_hint?: string | undefined;
1307
+ key_value?: string | undefined;
1308
+ last_used_at?: string | undefined;
1309
+ }>, "many">>;
1310
+ name: z.ZodString;
1311
+ slug: z.ZodString;
1312
+ updated_at: z.ZodOptional<z.ZodString>;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ id: string;
1315
+ name: string;
1316
+ slug: string;
1317
+ keys?: {
1318
+ type: string;
1319
+ status: string;
1320
+ id: string;
1321
+ created_at?: string | undefined;
1322
+ expires_at?: string | undefined;
1323
+ full_key?: string | undefined;
1324
+ key_hint?: string | undefined;
1325
+ key_value?: string | undefined;
1326
+ last_used_at?: string | undefined;
1327
+ }[] | undefined;
1328
+ created_at?: string | undefined;
1329
+ updated_at?: string | undefined;
1330
+ }, {
1331
+ id: string;
1332
+ name: string;
1333
+ slug: string;
1334
+ keys?: {
1335
+ type: string;
1336
+ status: string;
1337
+ id: string;
1338
+ created_at?: string | undefined;
1339
+ expires_at?: string | undefined;
1340
+ full_key?: string | undefined;
1341
+ key_hint?: string | undefined;
1342
+ key_value?: string | undefined;
1343
+ last_used_at?: string | undefined;
1344
+ }[] | undefined;
1345
+ created_at?: string | undefined;
1346
+ updated_at?: string | undefined;
1347
+ }>;
1348
+ export type Sandbox = z.infer<typeof sandboxSchema>;
1349
+ /** API schema for an AI trajectory. */
1350
+ export declare const trajectorySchema: z.ZodObject<{
1351
+ created_at: z.ZodOptional<z.ZodString>;
1352
+ file: z.ZodOptional<z.ZodString>;
1353
+ id: z.ZodString;
1354
+ messages: z.ZodOptional<z.ZodUnknown>;
1355
+ org: z.ZodOptional<z.ZodString>;
1356
+ sandbox: z.ZodOptional<z.ZodString>;
1357
+ team: z.ZodOptional<z.ZodString>;
1358
+ updated_at: z.ZodOptional<z.ZodString>;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ id: string;
1361
+ file?: string | undefined;
1362
+ created_at?: string | undefined;
1363
+ org?: string | undefined;
1364
+ sandbox?: string | undefined;
1365
+ team?: string | undefined;
1366
+ updated_at?: string | undefined;
1367
+ messages?: unknown;
1368
+ }, {
1369
+ id: string;
1370
+ file?: string | undefined;
1371
+ created_at?: string | undefined;
1372
+ org?: string | undefined;
1373
+ sandbox?: string | undefined;
1374
+ team?: string | undefined;
1375
+ updated_at?: string | undefined;
1376
+ messages?: unknown;
1377
+ }>;
1378
+ export type Trajectory = z.infer<typeof trajectorySchema>;
1379
+ /** Schema for an event type available for automation triggers.
1380
+
1381
+ Represents events from the workflow event catalog.
1382
+ */
1383
+ export declare const eventTypeSchema: z.ZodObject<{
1384
+ description: z.ZodString;
1385
+ name: z.ZodString;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ name: string;
1388
+ description: string;
1389
+ }, {
1390
+ name: string;
1391
+ description: string;
1392
+ }>;
1393
+ export type EventType = z.infer<typeof eventTypeSchema>;
1394
+ /** Schema for paginated message replies response.
1395
+
1396
+ Used by message replies list endpoints.
1397
+ Note: This response is NOT wrapped in a "data" field.
1398
+ */
1399
+ export declare const paginatedRepliesSchema: z.ZodObject<{
1400
+ after_cursor: z.ZodOptional<z.ZodString>;
1401
+ before_cursor: z.ZodOptional<z.ZodString>;
1402
+ has_more: z.ZodOptional<z.ZodBoolean>;
1403
+ replies: z.ZodArray<z.ZodObject<{
1404
+ actors: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1405
+ agent: z.ZodOptional<z.ZodString>;
1406
+ attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1407
+ branched_thread: z.ZodOptional<z.ZodString>;
1408
+ content: z.ZodOptional<z.ZodString>;
1409
+ created_at: z.ZodOptional<z.ZodString>;
1410
+ has_replies: z.ZodOptional<z.ZodBoolean>;
1411
+ id: z.ZodString;
1412
+ idempotency_key: z.ZodOptional<z.ZodString>;
1413
+ legacy_agent: z.ZodOptional<z.ZodString>;
1414
+ metadata: z.ZodOptional<z.ZodUnknown>;
1415
+ org: z.ZodOptional<z.ZodString>;
1416
+ reactions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1417
+ rendering_mode: z.ZodOptional<z.ZodString>;
1418
+ replies: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1419
+ replies_after_cursor: z.ZodOptional<z.ZodString>;
1420
+ replies_before_cursor: z.ZodOptional<z.ZodString>;
1421
+ reply_count: z.ZodOptional<z.ZodNumber>;
1422
+ reply_to: z.ZodOptional<z.ZodUnknown>;
1423
+ sandbox: z.ZodOptional<z.ZodString>;
1424
+ team: z.ZodOptional<z.ZodString>;
1425
+ thread: z.ZodOptional<z.ZodString>;
1426
+ user: z.ZodOptional<z.ZodString>;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ id: string;
1429
+ actors?: unknown[] | undefined;
1430
+ agent?: string | undefined;
1431
+ attachments?: unknown[] | undefined;
1432
+ branched_thread?: string | undefined;
1433
+ content?: string | undefined;
1434
+ created_at?: string | undefined;
1435
+ has_replies?: boolean | undefined;
1436
+ idempotency_key?: string | undefined;
1437
+ legacy_agent?: string | undefined;
1438
+ metadata?: unknown;
1439
+ org?: string | undefined;
1440
+ reactions?: unknown[] | undefined;
1441
+ rendering_mode?: string | undefined;
1442
+ replies?: unknown[] | undefined;
1443
+ replies_after_cursor?: string | undefined;
1444
+ replies_before_cursor?: string | undefined;
1445
+ reply_count?: number | undefined;
1446
+ reply_to?: unknown;
1447
+ sandbox?: string | undefined;
1448
+ team?: string | undefined;
1449
+ thread?: string | undefined;
1450
+ user?: string | undefined;
1451
+ }, {
1452
+ id: string;
1453
+ actors?: unknown[] | undefined;
1454
+ agent?: string | undefined;
1455
+ attachments?: unknown[] | undefined;
1456
+ branched_thread?: string | undefined;
1457
+ content?: string | undefined;
1458
+ created_at?: string | undefined;
1459
+ has_replies?: boolean | undefined;
1460
+ idempotency_key?: string | undefined;
1461
+ legacy_agent?: string | undefined;
1462
+ metadata?: unknown;
1463
+ org?: string | undefined;
1464
+ reactions?: unknown[] | undefined;
1465
+ rendering_mode?: string | undefined;
1466
+ replies?: unknown[] | undefined;
1467
+ replies_after_cursor?: string | undefined;
1468
+ replies_before_cursor?: string | undefined;
1469
+ reply_count?: number | undefined;
1470
+ reply_to?: unknown;
1471
+ sandbox?: string | undefined;
1472
+ team?: string | undefined;
1473
+ thread?: string | undefined;
1474
+ user?: string | undefined;
1475
+ }>, "many">;
1476
+ total_count: z.ZodOptional<z.ZodNumber>;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ replies: {
1479
+ id: string;
1480
+ actors?: unknown[] | undefined;
1481
+ agent?: string | undefined;
1482
+ attachments?: unknown[] | undefined;
1483
+ branched_thread?: string | undefined;
1484
+ content?: string | undefined;
1485
+ created_at?: string | undefined;
1486
+ has_replies?: boolean | undefined;
1487
+ idempotency_key?: string | undefined;
1488
+ legacy_agent?: string | undefined;
1489
+ metadata?: unknown;
1490
+ org?: string | undefined;
1491
+ reactions?: unknown[] | undefined;
1492
+ rendering_mode?: string | undefined;
1493
+ replies?: unknown[] | undefined;
1494
+ replies_after_cursor?: string | undefined;
1495
+ replies_before_cursor?: string | undefined;
1496
+ reply_count?: number | undefined;
1497
+ reply_to?: unknown;
1498
+ sandbox?: string | undefined;
1499
+ team?: string | undefined;
1500
+ thread?: string | undefined;
1501
+ user?: string | undefined;
1502
+ }[];
1503
+ after_cursor?: string | undefined;
1504
+ before_cursor?: string | undefined;
1505
+ has_more?: boolean | undefined;
1506
+ total_count?: number | undefined;
1507
+ }, {
1508
+ replies: {
1509
+ id: string;
1510
+ actors?: unknown[] | undefined;
1511
+ agent?: string | undefined;
1512
+ attachments?: unknown[] | undefined;
1513
+ branched_thread?: string | undefined;
1514
+ content?: string | undefined;
1515
+ created_at?: string | undefined;
1516
+ has_replies?: boolean | undefined;
1517
+ idempotency_key?: string | undefined;
1518
+ legacy_agent?: string | undefined;
1519
+ metadata?: unknown;
1520
+ org?: string | undefined;
1521
+ reactions?: unknown[] | undefined;
1522
+ rendering_mode?: string | undefined;
1523
+ replies?: unknown[] | undefined;
1524
+ replies_after_cursor?: string | undefined;
1525
+ replies_before_cursor?: string | undefined;
1526
+ reply_count?: number | undefined;
1527
+ reply_to?: unknown;
1528
+ sandbox?: string | undefined;
1529
+ team?: string | undefined;
1530
+ thread?: string | undefined;
1531
+ user?: string | undefined;
1532
+ }[];
1533
+ after_cursor?: string | undefined;
1534
+ before_cursor?: string | undefined;
1535
+ has_more?: boolean | undefined;
1536
+ total_count?: number | undefined;
1537
+ }>;
1538
+ export type PaginatedReplies = z.infer<typeof paginatedRepliesSchema>;
1539
+ /** A routine preset with its metadata. */
1540
+ export declare const routinePresetSchema: z.ZodObject<{
1541
+ config: z.ZodOptional<z.ZodUnknown>;
1542
+ description: z.ZodOptional<z.ZodString>;
1543
+ event_type: z.ZodOptional<z.ZodString>;
1544
+ label: z.ZodOptional<z.ZodString>;
1545
+ name: z.ZodString;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ name: string;
1548
+ event_type?: string | undefined;
1549
+ description?: string | undefined;
1550
+ label?: string | undefined;
1551
+ config?: unknown;
1552
+ }, {
1553
+ name: string;
1554
+ event_type?: string | undefined;
1555
+ description?: string | undefined;
1556
+ label?: string | undefined;
1557
+ config?: unknown;
1558
+ }>;
1559
+ export type RoutinePreset = z.infer<typeof routinePresetSchema>;
1560
+ /** API schema for a persona. */
1561
+ export declare const personaSchema: z.ZodObject<{
1562
+ activated: z.ZodOptional<z.ZodBoolean>;
1563
+ agent: z.ZodOptional<z.ZodString>;
1564
+ created_at: z.ZodOptional<z.ZodString>;
1565
+ id: z.ZodString;
1566
+ is_active: z.ZodOptional<z.ZodBoolean>;
1567
+ is_enabled_for_thread: z.ZodOptional<z.ZodBoolean>;
1568
+ metadata: z.ZodOptional<z.ZodUnknown>;
1569
+ name: z.ZodOptional<z.ZodString>;
1570
+ org: z.ZodOptional<z.ZodString>;
1571
+ personality: z.ZodOptional<z.ZodString>;
1572
+ sandbox: z.ZodOptional<z.ZodString>;
1573
+ team: z.ZodOptional<z.ZodString>;
1574
+ updated_at: z.ZodOptional<z.ZodString>;
1575
+ user: z.ZodOptional<z.ZodString>;
1576
+ }, "strip", z.ZodTypeAny, {
1577
+ id: string;
1578
+ agent?: string | undefined;
1579
+ created_at?: string | undefined;
1580
+ metadata?: unknown;
1581
+ org?: string | undefined;
1582
+ sandbox?: string | undefined;
1583
+ team?: string | undefined;
1584
+ user?: string | undefined;
1585
+ name?: string | undefined;
1586
+ updated_at?: string | undefined;
1587
+ activated?: boolean | undefined;
1588
+ is_active?: boolean | undefined;
1589
+ is_enabled_for_thread?: boolean | undefined;
1590
+ personality?: string | undefined;
1591
+ }, {
1592
+ id: string;
1593
+ agent?: string | undefined;
1594
+ created_at?: string | undefined;
1595
+ metadata?: unknown;
1596
+ org?: string | undefined;
1597
+ sandbox?: string | undefined;
1598
+ team?: string | undefined;
1599
+ user?: string | undefined;
1600
+ name?: string | undefined;
1601
+ updated_at?: string | undefined;
1602
+ activated?: boolean | undefined;
1603
+ is_active?: boolean | undefined;
1604
+ is_enabled_for_thread?: boolean | undefined;
1605
+ personality?: string | undefined;
1606
+ }>;
1607
+ export type Persona = z.infer<typeof personaSchema>;
1608
+ /** Schema for a message attachment.
1609
+
1610
+ Attachments can be of various types (file, scraped_link, artifact, task, media, action).
1611
+ Fields present depend on the attachment type.
1612
+ Maps to format_attachments_for_client/1 output.
1613
+ */
1614
+ export declare const attachmentSchema: z.ZodObject<{
1615
+ content_type: z.ZodOptional<z.ZodString>;
1616
+ description: z.ZodOptional<z.ZodString>;
1617
+ filename: z.ZodOptional<z.ZodString>;
1618
+ height: z.ZodOptional<z.ZodNumber>;
1619
+ id: z.ZodString;
1620
+ image_height: z.ZodOptional<z.ZodNumber>;
1621
+ image_source: z.ZodOptional<z.ZodObject<{
1622
+ file: z.ZodOptional<z.ZodString>;
1623
+ height: z.ZodOptional<z.ZodNumber>;
1624
+ media: z.ZodOptional<z.ZodString>;
1625
+ mime_type: z.ZodOptional<z.ZodString>;
1626
+ refresh_url: z.ZodOptional<z.ZodString>;
1627
+ url: z.ZodOptional<z.ZodString>;
1628
+ width: z.ZodOptional<z.ZodNumber>;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ file?: string | undefined;
1631
+ height?: number | undefined;
1632
+ media?: string | undefined;
1633
+ mime_type?: string | undefined;
1634
+ refresh_url?: string | undefined;
1635
+ url?: string | undefined;
1636
+ width?: number | undefined;
1637
+ }, {
1638
+ file?: string | undefined;
1639
+ height?: number | undefined;
1640
+ media?: string | undefined;
1641
+ mime_type?: string | undefined;
1642
+ refresh_url?: string | undefined;
1643
+ url?: string | undefined;
1644
+ width?: number | undefined;
1645
+ }>>;
1646
+ image_url: z.ZodOptional<z.ZodString>;
1647
+ image_width: z.ZodOptional<z.ZodNumber>;
1648
+ media_type: z.ZodOptional<z.ZodString>;
1649
+ name: z.ZodOptional<z.ZodString>;
1650
+ object: z.ZodOptional<z.ZodUnknown>;
1651
+ title: z.ZodOptional<z.ZodString>;
1652
+ type: z.ZodString;
1653
+ url: z.ZodOptional<z.ZodString>;
1654
+ variants: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1655
+ version: z.ZodOptional<z.ZodNumber>;
1656
+ width: z.ZodOptional<z.ZodNumber>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ type: string;
1659
+ id: string;
1660
+ object?: unknown;
1661
+ height?: number | undefined;
1662
+ url?: string | undefined;
1663
+ width?: number | undefined;
1664
+ name?: string | undefined;
1665
+ title?: string | undefined;
1666
+ description?: string | undefined;
1667
+ content_type?: string | undefined;
1668
+ filename?: string | undefined;
1669
+ image_height?: number | undefined;
1670
+ image_source?: {
1671
+ file?: string | undefined;
1672
+ height?: number | undefined;
1673
+ media?: string | undefined;
1674
+ mime_type?: string | undefined;
1675
+ refresh_url?: string | undefined;
1676
+ url?: string | undefined;
1677
+ width?: number | undefined;
1678
+ } | undefined;
1679
+ image_url?: string | undefined;
1680
+ image_width?: number | undefined;
1681
+ media_type?: string | undefined;
1682
+ variants?: unknown[] | undefined;
1683
+ version?: number | undefined;
1684
+ }, {
1685
+ type: string;
1686
+ id: string;
1687
+ object?: unknown;
1688
+ height?: number | undefined;
1689
+ url?: string | undefined;
1690
+ width?: number | undefined;
1691
+ name?: string | undefined;
1692
+ title?: string | undefined;
1693
+ description?: string | undefined;
1694
+ content_type?: string | undefined;
1695
+ filename?: string | undefined;
1696
+ image_height?: number | undefined;
1697
+ image_source?: {
1698
+ file?: string | undefined;
1699
+ height?: number | undefined;
1700
+ media?: string | undefined;
1701
+ mime_type?: string | undefined;
1702
+ refresh_url?: string | undefined;
1703
+ url?: string | undefined;
1704
+ width?: number | undefined;
1705
+ } | undefined;
1706
+ image_url?: string | undefined;
1707
+ image_width?: number | undefined;
1708
+ media_type?: string | undefined;
1709
+ variants?: unknown[] | undefined;
1710
+ version?: number | undefined;
1711
+ }>;
1712
+ export type Attachment = z.infer<typeof attachmentSchema>;
1713
+ /** API schema for an installation. */
1714
+ export declare const installationSchema: z.ZodObject<{
1715
+ agent: z.ZodOptional<z.ZodString>;
1716
+ config: z.ZodOptional<z.ZodUnknown>;
1717
+ created_at: z.ZodOptional<z.ZodString>;
1718
+ id: z.ZodString;
1719
+ kind: z.ZodOptional<z.ZodString>;
1720
+ shared_integration: z.ZodOptional<z.ZodString>;
1721
+ state: z.ZodOptional<z.ZodString>;
1722
+ status_payload: z.ZodOptional<z.ZodUnknown>;
1723
+ updated_at: z.ZodOptional<z.ZodString>;
1724
+ }, "strip", z.ZodTypeAny, {
1725
+ id: string;
1726
+ agent?: string | undefined;
1727
+ created_at?: string | undefined;
1728
+ updated_at?: string | undefined;
1729
+ state?: string | undefined;
1730
+ kind?: string | undefined;
1731
+ config?: unknown;
1732
+ shared_integration?: string | undefined;
1733
+ status_payload?: unknown;
1734
+ }, {
1735
+ id: string;
1736
+ agent?: string | undefined;
1737
+ created_at?: string | undefined;
1738
+ updated_at?: string | undefined;
1739
+ state?: string | undefined;
1740
+ kind?: string | undefined;
1741
+ config?: unknown;
1742
+ shared_integration?: string | undefined;
1743
+ status_payload?: unknown;
1744
+ }>;
1745
+ export type Installation = z.infer<typeof installationSchema>;
1746
+ /** Schema for persona update parameters.
1747
+ */
1748
+ export declare const personaUpdateParamsSchema: z.ZodObject<{
1749
+ metadata: z.ZodOptional<z.ZodUnknown>;
1750
+ name: z.ZodOptional<z.ZodString>;
1751
+ personality: z.ZodOptional<z.ZodString>;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ metadata?: unknown;
1754
+ name?: string | undefined;
1755
+ personality?: string | undefined;
1756
+ }, {
1757
+ metadata?: unknown;
1758
+ name?: string | undefined;
1759
+ personality?: string | undefined;
1760
+ }>;
1761
+ export type PersonaUpdateParams = z.infer<typeof personaUpdateParamsSchema>;
1762
+ /** Schema for a dataset dimension field.
1763
+ */
1764
+ export declare const datasetDimensionSchema: z.ZodObject<{
1765
+ label: z.ZodString;
1766
+ name: z.ZodString;
1767
+ type: z.ZodString;
1768
+ }, "strip", z.ZodTypeAny, {
1769
+ type: string;
1770
+ name: string;
1771
+ label: string;
1772
+ }, {
1773
+ type: string;
1774
+ name: string;
1775
+ label: string;
1776
+ }>;
1777
+ export type DatasetDimension = z.infer<typeof datasetDimensionSchema>;
1778
+ /** Schema for an app environment variable response with a masked value. */
1779
+ export declare const appEnvVarMaskedSchema: z.ZodObject<{
1780
+ created_at: z.ZodOptional<z.ZodString>;
1781
+ description: z.ZodOptional<z.ZodString>;
1782
+ id: z.ZodString;
1783
+ key: z.ZodString;
1784
+ masked_value: z.ZodString;
1785
+ updated_at: z.ZodOptional<z.ZodString>;
1786
+ }, "strip", z.ZodTypeAny, {
1787
+ key: string;
1788
+ id: string;
1789
+ masked_value: string;
1790
+ created_at?: string | undefined;
1791
+ updated_at?: string | undefined;
1792
+ description?: string | undefined;
1793
+ }, {
1794
+ key: string;
1795
+ id: string;
1796
+ masked_value: string;
1797
+ created_at?: string | undefined;
1798
+ updated_at?: string | undefined;
1799
+ description?: string | undefined;
1800
+ }>;
1801
+ export type AppEnvVarMasked = z.infer<typeof appEnvVarMaskedSchema>;
1802
+ /** Schema for masked app environment variable list responses. */
1803
+ export declare const appEnvVarMaskedListSchema: z.ZodObject<{
1804
+ data: z.ZodArray<z.ZodObject<{
1805
+ created_at: z.ZodOptional<z.ZodString>;
1806
+ description: z.ZodOptional<z.ZodString>;
1807
+ id: z.ZodString;
1808
+ key: z.ZodString;
1809
+ masked_value: z.ZodString;
1810
+ updated_at: z.ZodOptional<z.ZodString>;
1811
+ }, "strip", z.ZodTypeAny, {
1812
+ key: string;
1813
+ id: string;
1814
+ masked_value: string;
1815
+ created_at?: string | undefined;
1816
+ updated_at?: string | undefined;
1817
+ description?: string | undefined;
1818
+ }, {
1819
+ key: string;
1820
+ id: string;
1821
+ masked_value: string;
1822
+ created_at?: string | undefined;
1823
+ updated_at?: string | undefined;
1824
+ description?: string | undefined;
1825
+ }>, "many">;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ data: {
1828
+ key: string;
1829
+ id: string;
1830
+ masked_value: string;
1831
+ created_at?: string | undefined;
1832
+ updated_at?: string | undefined;
1833
+ description?: string | undefined;
1834
+ }[];
1835
+ }, {
1836
+ data: {
1837
+ key: string;
1838
+ id: string;
1839
+ masked_value: string;
1840
+ created_at?: string | undefined;
1841
+ updated_at?: string | undefined;
1842
+ description?: string | undefined;
1843
+ }[];
1844
+ }>;
1845
+ export type AppEnvVarMaskedList = z.infer<typeof appEnvVarMaskedListSchema>;
1846
+ /** Schema for eval run list responses. */
1847
+ export declare const evalRunListSchema: z.ZodObject<{
1848
+ data: z.ZodArray<z.ZodObject<{
1849
+ agent: z.ZodOptional<z.ZodString>;
1850
+ agent_name: z.ZodOptional<z.ZodString>;
1851
+ completed_at: z.ZodOptional<z.ZodString>;
1852
+ created_at: z.ZodOptional<z.ZodString>;
1853
+ id: z.ZodString;
1854
+ results: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1855
+ started_at: z.ZodOptional<z.ZodString>;
1856
+ status: z.ZodString;
1857
+ suite: z.ZodString;
1858
+ summary: z.ZodOptional<z.ZodUnknown>;
1859
+ updated_at: z.ZodOptional<z.ZodString>;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ status: string;
1862
+ id: string;
1863
+ suite: string;
1864
+ agent?: string | undefined;
1865
+ created_at?: string | undefined;
1866
+ updated_at?: string | undefined;
1867
+ completed_at?: string | undefined;
1868
+ started_at?: string | undefined;
1869
+ agent_name?: string | undefined;
1870
+ results?: unknown[] | undefined;
1871
+ summary?: unknown;
1872
+ }, {
1873
+ status: string;
1874
+ id: string;
1875
+ suite: string;
1876
+ agent?: string | undefined;
1877
+ created_at?: string | undefined;
1878
+ updated_at?: string | undefined;
1879
+ completed_at?: string | undefined;
1880
+ started_at?: string | undefined;
1881
+ agent_name?: string | undefined;
1882
+ results?: unknown[] | undefined;
1883
+ summary?: unknown;
1884
+ }>, "many">;
1885
+ }, "strip", z.ZodTypeAny, {
1886
+ data: {
1887
+ status: string;
1888
+ id: string;
1889
+ suite: string;
1890
+ agent?: string | undefined;
1891
+ created_at?: string | undefined;
1892
+ updated_at?: string | undefined;
1893
+ completed_at?: string | undefined;
1894
+ started_at?: string | undefined;
1895
+ agent_name?: string | undefined;
1896
+ results?: unknown[] | undefined;
1897
+ summary?: unknown;
1898
+ }[];
1899
+ }, {
1900
+ data: {
1901
+ status: string;
1902
+ id: string;
1903
+ suite: string;
1904
+ agent?: string | undefined;
1905
+ created_at?: string | undefined;
1906
+ updated_at?: string | undefined;
1907
+ completed_at?: string | undefined;
1908
+ started_at?: string | undefined;
1909
+ agent_name?: string | undefined;
1910
+ results?: unknown[] | undefined;
1911
+ summary?: unknown;
1912
+ }[];
1913
+ }>;
1914
+ export type EvalRunList = z.infer<typeof evalRunListSchema>;
1915
+ /** Schema for LLM call trajectory contents. */
1916
+ export declare const llmCallTrajectorySchema: z.ZodObject<{
1917
+ download_url: z.ZodOptional<z.ZodString>;
1918
+ messages: z.ZodArray<z.ZodUnknown, "many">;
1919
+ }, "strip", z.ZodTypeAny, {
1920
+ messages: unknown[];
1921
+ download_url?: string | undefined;
1922
+ }, {
1923
+ messages: unknown[];
1924
+ download_url?: string | undefined;
1925
+ }>;
1926
+ export type LlmCallTrajectory = z.infer<typeof llmCallTrajectorySchema>;
1927
+ /** API schema for a user credential. */
1928
+ export declare const credentialSchema: z.ZodObject<{
1929
+ alt_domains: z.ZodOptional<z.ZodUnknown>;
1930
+ created_at: z.ZodOptional<z.ZodString>;
1931
+ description: z.ZodOptional<z.ZodString>;
1932
+ domain: z.ZodOptional<z.ZodString>;
1933
+ id: z.ZodString;
1934
+ last_accessed_at: z.ZodOptional<z.ZodString>;
1935
+ org: z.ZodOptional<z.ZodString>;
1936
+ sandbox: z.ZodOptional<z.ZodString>;
1937
+ secret_group: z.ZodOptional<z.ZodString>;
1938
+ updated_at: z.ZodOptional<z.ZodString>;
1939
+ }, "strip", z.ZodTypeAny, {
1940
+ id: string;
1941
+ created_at?: string | undefined;
1942
+ org?: string | undefined;
1943
+ sandbox?: string | undefined;
1944
+ updated_at?: string | undefined;
1945
+ domain?: string | undefined;
1946
+ description?: string | undefined;
1947
+ last_accessed_at?: string | undefined;
1948
+ secret_group?: string | undefined;
1949
+ alt_domains?: unknown;
1950
+ }, {
1951
+ id: string;
1952
+ created_at?: string | undefined;
1953
+ org?: string | undefined;
1954
+ sandbox?: string | undefined;
1955
+ updated_at?: string | undefined;
1956
+ domain?: string | undefined;
1957
+ description?: string | undefined;
1958
+ last_accessed_at?: string | undefined;
1959
+ secret_group?: string | undefined;
1960
+ alt_domains?: unknown;
1961
+ }>;
1962
+ export type Credential = z.infer<typeof credentialSchema>;
1963
+ /** API schema for an activity feed entry. */
1964
+ export declare const activityFeedEntrySchema: z.ZodObject<{
1965
+ agent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1966
+ acl: z.ZodOptional<z.ZodObject<{
1967
+ add: z.ZodOptional<z.ZodArray<z.ZodObject<{
1968
+ actions: z.ZodArray<z.ZodString, "many">;
1969
+ principal: z.ZodOptional<z.ZodString>;
1970
+ principal_type: z.ZodString;
1971
+ }, "strip", z.ZodTypeAny, {
1972
+ actions: string[];
1973
+ principal_type: string;
1974
+ principal?: string | undefined;
1975
+ }, {
1976
+ actions: string[];
1977
+ principal_type: string;
1978
+ principal?: string | undefined;
1979
+ }>, "many">>;
1980
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1981
+ actions: z.ZodArray<z.ZodString, "many">;
1982
+ principal: z.ZodOptional<z.ZodString>;
1983
+ principal_type: z.ZodString;
1984
+ }, "strip", z.ZodTypeAny, {
1985
+ actions: string[];
1986
+ principal_type: string;
1987
+ principal?: string | undefined;
1988
+ }, {
1989
+ actions: string[];
1990
+ principal_type: string;
1991
+ principal?: string | undefined;
1992
+ }>, "many">>;
1993
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
1994
+ principal: z.ZodOptional<z.ZodString>;
1995
+ principal_type: z.ZodString;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ principal_type: string;
1998
+ principal?: string | undefined;
1999
+ }, {
2000
+ principal_type: string;
2001
+ principal?: string | undefined;
2002
+ }>, "many">>;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ add?: {
2005
+ actions: string[];
2006
+ principal_type: string;
2007
+ principal?: string | undefined;
2008
+ }[] | undefined;
2009
+ grants?: {
2010
+ actions: string[];
2011
+ principal_type: string;
2012
+ principal?: string | undefined;
2013
+ }[] | undefined;
2014
+ remove?: {
2015
+ principal_type: string;
2016
+ principal?: string | undefined;
2017
+ }[] | undefined;
2018
+ }, {
2019
+ add?: {
2020
+ actions: string[];
2021
+ principal_type: string;
2022
+ principal?: string | undefined;
2023
+ }[] | undefined;
2024
+ grants?: {
2025
+ actions: string[];
2026
+ principal_type: string;
2027
+ principal?: string | undefined;
2028
+ }[] | undefined;
2029
+ remove?: {
2030
+ principal_type: string;
2031
+ principal?: string | undefined;
2032
+ }[] | undefined;
2033
+ }>>;
2034
+ app: z.ZodOptional<z.ZodString>;
2035
+ created_at: z.ZodOptional<z.ZodString>;
2036
+ default_model: z.ZodOptional<z.ZodString>;
2037
+ email: z.ZodOptional<z.ZodString>;
2038
+ id: z.ZodString;
2039
+ identity: z.ZodOptional<z.ZodString>;
2040
+ lookup_key: z.ZodOptional<z.ZodString>;
2041
+ metadata: z.ZodOptional<z.ZodUnknown>;
2042
+ name: z.ZodOptional<z.ZodString>;
2043
+ org: z.ZodOptional<z.ZodString>;
2044
+ phone_number: z.ZodOptional<z.ZodString>;
2045
+ sandbox: z.ZodOptional<z.ZodString>;
2046
+ team: z.ZodOptional<z.ZodString>;
2047
+ updated_at: z.ZodOptional<z.ZodString>;
2048
+ user: z.ZodOptional<z.ZodString>;
2049
+ }, "strip", z.ZodTypeAny, {
2050
+ id: string;
2051
+ email?: string | undefined;
2052
+ created_at?: string | undefined;
2053
+ metadata?: unknown;
2054
+ org?: string | undefined;
2055
+ sandbox?: string | undefined;
2056
+ team?: string | undefined;
2057
+ user?: string | undefined;
2058
+ name?: string | undefined;
2059
+ updated_at?: string | undefined;
2060
+ lookup_key?: string | undefined;
2061
+ acl?: {
2062
+ add?: {
2063
+ actions: string[];
2064
+ principal_type: string;
2065
+ principal?: string | undefined;
2066
+ }[] | undefined;
2067
+ grants?: {
2068
+ actions: string[];
2069
+ principal_type: string;
2070
+ principal?: string | undefined;
2071
+ }[] | undefined;
2072
+ remove?: {
2073
+ principal_type: string;
2074
+ principal?: string | undefined;
2075
+ }[] | undefined;
2076
+ } | undefined;
2077
+ app?: string | undefined;
2078
+ default_model?: string | undefined;
2079
+ identity?: string | undefined;
2080
+ phone_number?: string | undefined;
2081
+ }, {
2082
+ id: string;
2083
+ email?: string | undefined;
2084
+ created_at?: string | undefined;
2085
+ metadata?: unknown;
2086
+ org?: string | undefined;
2087
+ sandbox?: string | undefined;
2088
+ team?: string | undefined;
2089
+ user?: string | undefined;
2090
+ name?: string | undefined;
2091
+ updated_at?: string | undefined;
2092
+ lookup_key?: string | undefined;
2093
+ acl?: {
2094
+ add?: {
2095
+ actions: string[];
2096
+ principal_type: string;
2097
+ principal?: string | undefined;
2098
+ }[] | undefined;
2099
+ grants?: {
2100
+ actions: string[];
2101
+ principal_type: string;
2102
+ principal?: string | undefined;
2103
+ }[] | undefined;
2104
+ remove?: {
2105
+ principal_type: string;
2106
+ principal?: string | undefined;
2107
+ }[] | undefined;
2108
+ } | undefined;
2109
+ app?: string | undefined;
2110
+ default_model?: string | undefined;
2111
+ identity?: string | undefined;
2112
+ phone_number?: string | undefined;
2113
+ }>]>>;
2114
+ app: z.ZodOptional<z.ZodString>;
2115
+ attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2116
+ automation_run: z.ZodOptional<z.ZodString>;
2117
+ content: z.ZodOptional<z.ZodString>;
2118
+ correlation_id: z.ZodOptional<z.ZodString>;
2119
+ created_at: z.ZodOptional<z.ZodString>;
2120
+ id: z.ZodString;
2121
+ kind: z.ZodOptional<z.ZodString>;
2122
+ level: z.ZodOptional<z.ZodString>;
2123
+ metadata: z.ZodOptional<z.ZodUnknown>;
2124
+ org: z.ZodOptional<z.ZodString>;
2125
+ routine_run: z.ZodOptional<z.ZodString>;
2126
+ sandbox: z.ZodOptional<z.ZodString>;
2127
+ session_record: z.ZodOptional<z.ZodString>;
2128
+ team: z.ZodOptional<z.ZodString>;
2129
+ thread: z.ZodOptional<z.ZodString>;
2130
+ title: z.ZodOptional<z.ZodString>;
2131
+ updated_at: z.ZodOptional<z.ZodString>;
2132
+ user: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2133
+ alias: z.ZodOptional<z.ZodString>;
2134
+ email: z.ZodOptional<z.ZodString>;
2135
+ id: z.ZodString;
2136
+ metadata: z.ZodOptional<z.ZodUnknown>;
2137
+ name: z.ZodOptional<z.ZodString>;
2138
+ org: z.ZodOptional<z.ZodString>;
2139
+ sandbox: z.ZodOptional<z.ZodString>;
2140
+ }, "strip", z.ZodTypeAny, {
2141
+ id: string;
2142
+ email?: string | undefined;
2143
+ alias?: string | undefined;
2144
+ metadata?: unknown;
2145
+ org?: string | undefined;
2146
+ sandbox?: string | undefined;
2147
+ name?: string | undefined;
2148
+ }, {
2149
+ id: string;
2150
+ email?: string | undefined;
2151
+ alias?: string | undefined;
2152
+ metadata?: unknown;
2153
+ org?: string | undefined;
2154
+ sandbox?: string | undefined;
2155
+ name?: string | undefined;
2156
+ }>]>>;
2157
+ }, "strip", z.ZodTypeAny, {
2158
+ id: string;
2159
+ agent?: string | {
2160
+ id: string;
2161
+ email?: string | undefined;
2162
+ created_at?: string | undefined;
2163
+ metadata?: unknown;
2164
+ org?: string | undefined;
2165
+ sandbox?: string | undefined;
2166
+ team?: string | undefined;
2167
+ user?: string | undefined;
2168
+ name?: string | undefined;
2169
+ updated_at?: string | undefined;
2170
+ lookup_key?: string | undefined;
2171
+ acl?: {
2172
+ add?: {
2173
+ actions: string[];
2174
+ principal_type: string;
2175
+ principal?: string | undefined;
2176
+ }[] | undefined;
2177
+ grants?: {
2178
+ actions: string[];
2179
+ principal_type: string;
2180
+ principal?: string | undefined;
2181
+ }[] | undefined;
2182
+ remove?: {
2183
+ principal_type: string;
2184
+ principal?: string | undefined;
2185
+ }[] | undefined;
2186
+ } | undefined;
2187
+ app?: string | undefined;
2188
+ default_model?: string | undefined;
2189
+ identity?: string | undefined;
2190
+ phone_number?: string | undefined;
2191
+ } | undefined;
2192
+ attachments?: unknown[] | undefined;
2193
+ content?: string | undefined;
2194
+ created_at?: string | undefined;
2195
+ metadata?: unknown;
2196
+ org?: string | undefined;
2197
+ sandbox?: string | undefined;
2198
+ team?: string | undefined;
2199
+ thread?: string | undefined;
2200
+ user?: string | {
2201
+ id: string;
2202
+ email?: string | undefined;
2203
+ alias?: string | undefined;
2204
+ metadata?: unknown;
2205
+ org?: string | undefined;
2206
+ sandbox?: string | undefined;
2207
+ name?: string | undefined;
2208
+ } | undefined;
2209
+ updated_at?: string | undefined;
2210
+ title?: string | undefined;
2211
+ level?: string | undefined;
2212
+ kind?: string | undefined;
2213
+ app?: string | undefined;
2214
+ automation_run?: string | undefined;
2215
+ correlation_id?: string | undefined;
2216
+ routine_run?: string | undefined;
2217
+ session_record?: string | undefined;
2218
+ }, {
2219
+ id: string;
2220
+ agent?: string | {
2221
+ id: string;
2222
+ email?: string | undefined;
2223
+ created_at?: string | undefined;
2224
+ metadata?: unknown;
2225
+ org?: string | undefined;
2226
+ sandbox?: string | undefined;
2227
+ team?: string | undefined;
2228
+ user?: string | undefined;
2229
+ name?: string | undefined;
2230
+ updated_at?: string | undefined;
2231
+ lookup_key?: string | undefined;
2232
+ acl?: {
2233
+ add?: {
2234
+ actions: string[];
2235
+ principal_type: string;
2236
+ principal?: string | undefined;
2237
+ }[] | undefined;
2238
+ grants?: {
2239
+ actions: string[];
2240
+ principal_type: string;
2241
+ principal?: string | undefined;
2242
+ }[] | undefined;
2243
+ remove?: {
2244
+ principal_type: string;
2245
+ principal?: string | undefined;
2246
+ }[] | undefined;
2247
+ } | undefined;
2248
+ app?: string | undefined;
2249
+ default_model?: string | undefined;
2250
+ identity?: string | undefined;
2251
+ phone_number?: string | undefined;
2252
+ } | undefined;
2253
+ attachments?: unknown[] | undefined;
2254
+ content?: string | undefined;
2255
+ created_at?: string | undefined;
2256
+ metadata?: unknown;
2257
+ org?: string | undefined;
2258
+ sandbox?: string | undefined;
2259
+ team?: string | undefined;
2260
+ thread?: string | undefined;
2261
+ user?: string | {
2262
+ id: string;
2263
+ email?: string | undefined;
2264
+ alias?: string | undefined;
2265
+ metadata?: unknown;
2266
+ org?: string | undefined;
2267
+ sandbox?: string | undefined;
2268
+ name?: string | undefined;
2269
+ } | undefined;
2270
+ updated_at?: string | undefined;
2271
+ title?: string | undefined;
2272
+ level?: string | undefined;
2273
+ kind?: string | undefined;
2274
+ app?: string | undefined;
2275
+ automation_run?: string | undefined;
2276
+ correlation_id?: string | undefined;
2277
+ routine_run?: string | undefined;
2278
+ session_record?: string | undefined;
2279
+ }>;
2280
+ export type ActivityFeedEntry = z.infer<typeof activityFeedEntrySchema>;
2281
+ /** Schema for a dataset metric field.
2282
+ */
2283
+ export declare const datasetMetricSchema: z.ZodObject<{
2284
+ aggregation: z.ZodString;
2285
+ label: z.ZodString;
2286
+ name: z.ZodString;
2287
+ type: z.ZodString;
2288
+ }, "strip", z.ZodTypeAny, {
2289
+ type: string;
2290
+ name: string;
2291
+ label: string;
2292
+ aggregation: string;
2293
+ }, {
2294
+ type: string;
2295
+ name: string;
2296
+ label: string;
2297
+ aggregation: string;
2298
+ }>;
2299
+ export type DatasetMetric = z.infer<typeof datasetMetricSchema>;
2300
+ /** Schema for an analytics dataset definition.
2301
+ */
2302
+ export declare const datasetSchema: z.ZodObject<{
2303
+ dimensions: z.ZodArray<z.ZodObject<{
2304
+ label: z.ZodString;
2305
+ name: z.ZodString;
2306
+ type: z.ZodString;
2307
+ }, "strip", z.ZodTypeAny, {
2308
+ type: string;
2309
+ name: string;
2310
+ label: string;
2311
+ }, {
2312
+ type: string;
2313
+ name: string;
2314
+ label: string;
2315
+ }>, "many">;
2316
+ metrics: z.ZodArray<z.ZodObject<{
2317
+ aggregation: z.ZodString;
2318
+ label: z.ZodString;
2319
+ name: z.ZodString;
2320
+ type: z.ZodString;
2321
+ }, "strip", z.ZodTypeAny, {
2322
+ type: string;
2323
+ name: string;
2324
+ label: string;
2325
+ aggregation: string;
2326
+ }, {
2327
+ type: string;
2328
+ name: string;
2329
+ label: string;
2330
+ aggregation: string;
2331
+ }>, "many">;
2332
+ name: z.ZodString;
2333
+ time_dimension: z.ZodOptional<z.ZodObject<{
2334
+ label: z.ZodString;
2335
+ name: z.ZodString;
2336
+ type: z.ZodString;
2337
+ }, "strip", z.ZodTypeAny, {
2338
+ type: string;
2339
+ name: string;
2340
+ label: string;
2341
+ }, {
2342
+ type: string;
2343
+ name: string;
2344
+ label: string;
2345
+ }>>;
2346
+ }, "strip", z.ZodTypeAny, {
2347
+ name: string;
2348
+ dimensions: {
2349
+ type: string;
2350
+ name: string;
2351
+ label: string;
2352
+ }[];
2353
+ metrics: {
2354
+ type: string;
2355
+ name: string;
2356
+ label: string;
2357
+ aggregation: string;
2358
+ }[];
2359
+ time_dimension?: {
2360
+ type: string;
2361
+ name: string;
2362
+ label: string;
2363
+ } | undefined;
2364
+ }, {
2365
+ name: string;
2366
+ dimensions: {
2367
+ type: string;
2368
+ name: string;
2369
+ label: string;
2370
+ }[];
2371
+ metrics: {
2372
+ type: string;
2373
+ name: string;
2374
+ label: string;
2375
+ aggregation: string;
2376
+ }[];
2377
+ time_dimension?: {
2378
+ type: string;
2379
+ name: string;
2380
+ label: string;
2381
+ } | undefined;
2382
+ }>;
2383
+ export type Dataset = z.infer<typeof datasetSchema>;
2384
+ /** Schema for paginated messages response.
2385
+
2386
+ Used by thread messages list endpoints.
2387
+ */
2388
+ export declare const paginatedMessagesSchema: z.ZodObject<{
2389
+ after_cursor: z.ZodOptional<z.ZodString>;
2390
+ before_cursor: z.ZodOptional<z.ZodString>;
2391
+ messages: z.ZodArray<z.ZodUnknown, "many">;
2392
+ }, "strip", z.ZodTypeAny, {
2393
+ messages: unknown[];
2394
+ after_cursor?: string | undefined;
2395
+ before_cursor?: string | undefined;
2396
+ }, {
2397
+ messages: unknown[];
2398
+ after_cursor?: string | undefined;
2399
+ before_cursor?: string | undefined;
2400
+ }>;
2401
+ export type PaginatedMessages = z.infer<typeof paginatedMessagesSchema>;
2402
+ /** Schema for an event catalog entry with full payload schema and sample.
2403
+ */
2404
+ export declare const eventCatalogEntrySchema: z.ZodObject<{
2405
+ description: z.ZodString;
2406
+ name: z.ZodString;
2407
+ parent: z.ZodOptional<z.ZodString>;
2408
+ sample: z.ZodUnknown;
2409
+ schema: z.ZodUnknown;
2410
+ sub_events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2411
+ type: z.ZodOptional<z.ZodString>;
2412
+ }, "strip", z.ZodTypeAny, {
2413
+ name: string;
2414
+ description: string;
2415
+ type?: string | undefined;
2416
+ parent?: string | undefined;
2417
+ sample?: unknown;
2418
+ schema?: unknown;
2419
+ sub_events?: string[] | undefined;
2420
+ }, {
2421
+ name: string;
2422
+ description: string;
2423
+ type?: string | undefined;
2424
+ parent?: string | undefined;
2425
+ sample?: unknown;
2426
+ schema?: unknown;
2427
+ sub_events?: string[] | undefined;
2428
+ }>;
2429
+ export type EventCatalogEntry = z.infer<typeof eventCatalogEntrySchema>;
2430
+ /** Schema for a developer portal domain event. */
2431
+ export declare const domainEventSchema: z.ZodObject<{
2432
+ agent: z.ZodOptional<z.ZodString>;
2433
+ created_at: z.ZodOptional<z.ZodString>;
2434
+ event_name: z.ZodString;
2435
+ id: z.ZodString;
2436
+ idempotency_key: z.ZodOptional<z.ZodString>;
2437
+ payload: z.ZodUnknown;
2438
+ team: z.ZodOptional<z.ZodString>;
2439
+ user: z.ZodOptional<z.ZodString>;
2440
+ }, "strip", z.ZodTypeAny, {
2441
+ id: string;
2442
+ event_name: string;
2443
+ agent?: string | undefined;
2444
+ created_at?: string | undefined;
2445
+ idempotency_key?: string | undefined;
2446
+ team?: string | undefined;
2447
+ user?: string | undefined;
2448
+ payload?: unknown;
2449
+ }, {
2450
+ id: string;
2451
+ event_name: string;
2452
+ agent?: string | undefined;
2453
+ created_at?: string | undefined;
2454
+ idempotency_key?: string | undefined;
2455
+ team?: string | undefined;
2456
+ user?: string | undefined;
2457
+ payload?: unknown;
2458
+ }>;
2459
+ export type DomainEvent = z.infer<typeof domainEventSchema>;
2460
+ /** List response for installations. */
2461
+ export declare const installationListResponseSchema: z.ZodObject<{
2462
+ data: z.ZodArray<z.ZodObject<{
2463
+ agent: z.ZodOptional<z.ZodString>;
2464
+ config: z.ZodOptional<z.ZodUnknown>;
2465
+ created_at: z.ZodOptional<z.ZodString>;
2466
+ id: z.ZodString;
2467
+ kind: z.ZodOptional<z.ZodString>;
2468
+ shared_integration: z.ZodOptional<z.ZodString>;
2469
+ state: z.ZodOptional<z.ZodString>;
2470
+ status_payload: z.ZodOptional<z.ZodUnknown>;
2471
+ updated_at: z.ZodOptional<z.ZodString>;
2472
+ }, "strip", z.ZodTypeAny, {
2473
+ id: string;
2474
+ agent?: string | undefined;
2475
+ created_at?: string | undefined;
2476
+ updated_at?: string | undefined;
2477
+ state?: string | undefined;
2478
+ kind?: string | undefined;
2479
+ config?: unknown;
2480
+ shared_integration?: string | undefined;
2481
+ status_payload?: unknown;
2482
+ }, {
2483
+ id: string;
2484
+ agent?: string | undefined;
2485
+ created_at?: string | undefined;
2486
+ updated_at?: string | undefined;
2487
+ state?: string | undefined;
2488
+ kind?: string | undefined;
2489
+ config?: unknown;
2490
+ shared_integration?: string | undefined;
2491
+ status_payload?: unknown;
2492
+ }>, "many">;
2493
+ }, "strip", z.ZodTypeAny, {
2494
+ data: {
2495
+ id: string;
2496
+ agent?: string | undefined;
2497
+ created_at?: string | undefined;
2498
+ updated_at?: string | undefined;
2499
+ state?: string | undefined;
2500
+ kind?: string | undefined;
2501
+ config?: unknown;
2502
+ shared_integration?: string | undefined;
2503
+ status_payload?: unknown;
2504
+ }[];
2505
+ }, {
2506
+ data: {
2507
+ id: string;
2508
+ agent?: string | undefined;
2509
+ created_at?: string | undefined;
2510
+ updated_at?: string | undefined;
2511
+ state?: string | undefined;
2512
+ kind?: string | undefined;
2513
+ config?: unknown;
2514
+ shared_integration?: string | undefined;
2515
+ status_payload?: unknown;
2516
+ }[];
2517
+ }>;
2518
+ export type InstallationListResponse = z.infer<typeof installationListResponseSchema>;
2519
+ /** Public org schema for authenticated endpoints.
2520
+
2521
+ Only exposes fields safe for any authenticated user: id, name, domain,
2522
+ and logo. Does NOT expose sandbox, status, industry, description, or
2523
+ other internal fields that the Developer.Org schema includes.
2524
+ */
2525
+ export declare const publicOrgSchema: z.ZodObject<{
2526
+ domain: z.ZodString;
2527
+ id: z.ZodString;
2528
+ name: z.ZodString;
2529
+ }, "strip", z.ZodTypeAny, {
2530
+ id: string;
2531
+ name: string;
2532
+ domain: string;
2533
+ }, {
2534
+ id: string;
2535
+ name: string;
2536
+ domain: string;
2537
+ }>;
2538
+ export type PublicOrg = z.infer<typeof publicOrgSchema>;
2539
+ /** API schema for background worker status on a routine run. */
2540
+ export declare const workerStatusSchema: z.ZodObject<{
2541
+ attempt: z.ZodNumber;
2542
+ max_attempts: z.ZodNumber;
2543
+ status: z.ZodString;
2544
+ }, "strip", z.ZodTypeAny, {
2545
+ status: string;
2546
+ attempt: number;
2547
+ max_attempts: number;
2548
+ }, {
2549
+ status: string;
2550
+ attempt: number;
2551
+ max_attempts: number;
2552
+ }>;
2553
+ export type WorkerStatus = z.infer<typeof workerStatusSchema>;
2554
+ /** API schema for authentication token responses. */
2555
+ export declare const authTokensSchema: z.ZodObject<{
2556
+ expires_in: z.ZodNumber;
2557
+ metadata: z.ZodOptional<z.ZodUnknown>;
2558
+ refresh_token: z.ZodString;
2559
+ token: z.ZodString;
2560
+ token_type: z.ZodString;
2561
+ user: z.ZodObject<{
2562
+ alias: z.ZodOptional<z.ZodString>;
2563
+ email: z.ZodOptional<z.ZodString>;
2564
+ id: z.ZodString;
2565
+ metadata: z.ZodOptional<z.ZodUnknown>;
2566
+ name: z.ZodOptional<z.ZodString>;
2567
+ org: z.ZodOptional<z.ZodString>;
2568
+ sandbox: z.ZodOptional<z.ZodString>;
2569
+ }, "strip", z.ZodTypeAny, {
2570
+ id: string;
2571
+ email?: string | undefined;
2572
+ alias?: string | undefined;
2573
+ metadata?: unknown;
2574
+ org?: string | undefined;
2575
+ sandbox?: string | undefined;
2576
+ name?: string | undefined;
2577
+ }, {
2578
+ id: string;
2579
+ email?: string | undefined;
2580
+ alias?: string | undefined;
2581
+ metadata?: unknown;
2582
+ org?: string | undefined;
2583
+ sandbox?: string | undefined;
2584
+ name?: string | undefined;
2585
+ }>;
2586
+ }, "strip", z.ZodTypeAny, {
2587
+ refresh_token: string;
2588
+ expires_in: number;
2589
+ token: string;
2590
+ user: {
2591
+ id: string;
2592
+ email?: string | undefined;
2593
+ alias?: string | undefined;
2594
+ metadata?: unknown;
2595
+ org?: string | undefined;
2596
+ sandbox?: string | undefined;
2597
+ name?: string | undefined;
2598
+ };
2599
+ token_type: string;
2600
+ metadata?: unknown;
2601
+ }, {
2602
+ refresh_token: string;
2603
+ expires_in: number;
2604
+ token: string;
2605
+ user: {
2606
+ id: string;
2607
+ email?: string | undefined;
2608
+ alias?: string | undefined;
2609
+ metadata?: unknown;
2610
+ org?: string | undefined;
2611
+ sandbox?: string | undefined;
2612
+ name?: string | undefined;
2613
+ };
2614
+ token_type: string;
2615
+ metadata?: unknown;
2616
+ }>;
2617
+ export type AuthTokens = z.infer<typeof authTokensSchema>;
2618
+ /** Filter object for matching personas by template ID. */
2619
+ export declare const templateFilterSchema: z.ZodObject<{
2620
+ id: z.ZodString;
2621
+ type: z.ZodString;
2622
+ }, "strip", z.ZodTypeAny, {
2623
+ type: string;
2624
+ id: string;
2625
+ }, {
2626
+ type: string;
2627
+ id: string;
2628
+ }>;
2629
+ export type TemplateFilter = z.infer<typeof templateFilterSchema>;
2630
+ /** API schema for a decrypted secret value response. */
2631
+ export declare const secretValueSchema: z.ZodObject<{
2632
+ name: z.ZodString;
2633
+ value: z.ZodString;
2634
+ }, "strip", z.ZodTypeAny, {
2635
+ value: string;
2636
+ name: string;
2637
+ }, {
2638
+ value: string;
2639
+ name: string;
2640
+ }>;
2641
+ export type SecretValue = z.infer<typeof secretValueSchema>;
2642
+ /** A builtin tool catalog entry describing an available tool category. */
2643
+ export declare const builtinToolCatalogEntrySchema: z.ZodObject<{
2644
+ config_schema: z.ZodOptional<z.ZodUnknown>;
2645
+ description: z.ZodOptional<z.ZodString>;
2646
+ instruction: z.ZodOptional<z.ZodString>;
2647
+ key: z.ZodString;
2648
+ label: z.ZodOptional<z.ZodString>;
2649
+ providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2650
+ requires_integration: z.ZodOptional<z.ZodBoolean>;
2651
+ server_tool_type: z.ZodOptional<z.ZodString>;
2652
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
2653
+ description: z.ZodOptional<z.ZodString>;
2654
+ name: z.ZodString;
2655
+ }, "strip", z.ZodTypeAny, {
2656
+ name: string;
2657
+ description?: string | undefined;
2658
+ }, {
2659
+ name: string;
2660
+ description?: string | undefined;
2661
+ }>, "many">>;
2662
+ }, "strip", z.ZodTypeAny, {
2663
+ key: string;
2664
+ description?: string | undefined;
2665
+ label?: string | undefined;
2666
+ config_schema?: unknown;
2667
+ requires_integration?: boolean | undefined;
2668
+ instruction?: string | undefined;
2669
+ providers?: string[] | undefined;
2670
+ server_tool_type?: string | undefined;
2671
+ tools?: {
2672
+ name: string;
2673
+ description?: string | undefined;
2674
+ }[] | undefined;
2675
+ }, {
2676
+ key: string;
2677
+ description?: string | undefined;
2678
+ label?: string | undefined;
2679
+ config_schema?: unknown;
2680
+ requires_integration?: boolean | undefined;
2681
+ instruction?: string | undefined;
2682
+ providers?: string[] | undefined;
2683
+ server_tool_type?: string | undefined;
2684
+ tools?: {
2685
+ name: string;
2686
+ description?: string | undefined;
2687
+ }[] | undefined;
2688
+ }>;
2689
+ export type BuiltinToolCatalogEntry = z.infer<typeof builtinToolCatalogEntrySchema>;
2690
+ /** Schema for developer account billing settings. */
2691
+ export declare const developerSchema: z.ZodObject<{
2692
+ billing_provider_environment: z.ZodOptional<z.ZodString>;
2693
+ billing_provider_id: z.ZodOptional<z.ZodString>;
2694
+ }, "strip", z.ZodTypeAny, {
2695
+ billing_provider_environment?: string | undefined;
2696
+ billing_provider_id?: string | undefined;
2697
+ }, {
2698
+ billing_provider_environment?: string | undefined;
2699
+ billing_provider_id?: string | undefined;
2700
+ }>;
2701
+ export type Developer = z.infer<typeof developerSchema>;
2702
+ /** Schema for a task activity entry.
2703
+
2704
+ Maps exactly to the activity entries produced by TaskActivitySentenceGenerator.
2705
+ */
2706
+ export declare const taskActivityEntrySchema: z.ZodObject<{
2707
+ event_id: z.ZodOptional<z.ZodString>;
2708
+ event_type: z.ZodOptional<z.ZodString>;
2709
+ sentence: z.ZodOptional<z.ZodString>;
2710
+ timestamp: z.ZodOptional<z.ZodString>;
2711
+ }, "strip", z.ZodTypeAny, {
2712
+ event_type?: string | undefined;
2713
+ event_id?: string | undefined;
2714
+ sentence?: string | undefined;
2715
+ timestamp?: string | undefined;
2716
+ }, {
2717
+ event_type?: string | undefined;
2718
+ event_id?: string | undefined;
2719
+ sentence?: string | undefined;
2720
+ timestamp?: string | undefined;
2721
+ }>;
2722
+ export type TaskActivityEntry = z.infer<typeof taskActivityEntrySchema>;
2723
+ /** API schema for file URL refresh responses. */
2724
+ export declare const fileRefreshResultSchema: z.ZodObject<{
2725
+ image_source: z.ZodObject<{
2726
+ file: z.ZodOptional<z.ZodString>;
2727
+ height: z.ZodOptional<z.ZodNumber>;
2728
+ media: z.ZodOptional<z.ZodString>;
2729
+ mime_type: z.ZodOptional<z.ZodString>;
2730
+ refresh_url: z.ZodOptional<z.ZodString>;
2731
+ url: z.ZodOptional<z.ZodString>;
2732
+ width: z.ZodOptional<z.ZodNumber>;
2733
+ }, "strip", z.ZodTypeAny, {
2734
+ file?: string | undefined;
2735
+ height?: number | undefined;
2736
+ media?: string | undefined;
2737
+ mime_type?: string | undefined;
2738
+ refresh_url?: string | undefined;
2739
+ url?: string | undefined;
2740
+ width?: number | undefined;
2741
+ }, {
2742
+ file?: string | undefined;
2743
+ height?: number | undefined;
2744
+ media?: string | undefined;
2745
+ mime_type?: string | undefined;
2746
+ refresh_url?: string | undefined;
2747
+ url?: string | undefined;
2748
+ width?: number | undefined;
2749
+ }>;
2750
+ success: z.ZodBoolean;
2751
+ }, "strip", z.ZodTypeAny, {
2752
+ image_source: {
2753
+ file?: string | undefined;
2754
+ height?: number | undefined;
2755
+ media?: string | undefined;
2756
+ mime_type?: string | undefined;
2757
+ refresh_url?: string | undefined;
2758
+ url?: string | undefined;
2759
+ width?: number | undefined;
2760
+ };
2761
+ success: boolean;
2762
+ }, {
2763
+ image_source: {
2764
+ file?: string | undefined;
2765
+ height?: number | undefined;
2766
+ media?: string | undefined;
2767
+ mime_type?: string | undefined;
2768
+ refresh_url?: string | undefined;
2769
+ url?: string | undefined;
2770
+ width?: number | undefined;
2771
+ };
2772
+ success: boolean;
2773
+ }>;
2774
+ export type FileRefreshResult = z.infer<typeof fileRefreshResultSchema>;
2775
+ /** Schema for a dataset query result.
2776
+ */
2777
+ export declare const datasetQueryResultSchema: z.ZodObject<{
2778
+ columns: z.ZodArray<z.ZodUnknown, "many">;
2779
+ meta: z.ZodUnknown;
2780
+ rows: z.ZodArray<z.ZodUnknown, "many">;
2781
+ }, "strip", z.ZodTypeAny, {
2782
+ columns: unknown[];
2783
+ rows: unknown[];
2784
+ meta?: unknown;
2785
+ }, {
2786
+ columns: unknown[];
2787
+ rows: unknown[];
2788
+ meta?: unknown;
2789
+ }>;
2790
+ export type DatasetQueryResult = z.infer<typeof datasetQueryResultSchema>;
2791
+ /** Schema for an API call record.
2792
+
2793
+ Maps to serialized API call output from developer portal API.
2794
+ */
2795
+ export declare const apiCallSchema: z.ZodObject<{
2796
+ api_key_type: z.ZodOptional<z.ZodString>;
2797
+ created_at: z.ZodOptional<z.ZodString>;
2798
+ error_message: z.ZodOptional<z.ZodString>;
2799
+ event_type: z.ZodOptional<z.ZodString>;
2800
+ full_url: z.ZodString;
2801
+ handler_module: z.ZodOptional<z.ZodString>;
2802
+ id: z.ZodString;
2803
+ ip_address: z.ZodOptional<z.ZodString>;
2804
+ latency_ms: z.ZodNumber;
2805
+ metadata: z.ZodOptional<z.ZodUnknown>;
2806
+ method: z.ZodString;
2807
+ org: z.ZodOptional<z.ZodString>;
2808
+ path: z.ZodString;
2809
+ query_string: z.ZodOptional<z.ZodString>;
2810
+ request_body: z.ZodOptional<z.ZodUnknown>;
2811
+ request_headers: z.ZodOptional<z.ZodUnknown>;
2812
+ request_id: z.ZodOptional<z.ZodString>;
2813
+ status_code: z.ZodNumber;
2814
+ team: z.ZodOptional<z.ZodString>;
2815
+ thread: z.ZodOptional<z.ZodString>;
2816
+ user: z.ZodOptional<z.ZodString>;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ method: string;
2819
+ path: string;
2820
+ id: string;
2821
+ latency_ms: number;
2822
+ full_url: string;
2823
+ status_code: number;
2824
+ created_at?: string | undefined;
2825
+ metadata?: unknown;
2826
+ org?: string | undefined;
2827
+ team?: string | undefined;
2828
+ thread?: string | undefined;
2829
+ user?: string | undefined;
2830
+ error_message?: string | undefined;
2831
+ event_type?: string | undefined;
2832
+ api_key_type?: string | undefined;
2833
+ handler_module?: string | undefined;
2834
+ ip_address?: string | undefined;
2835
+ query_string?: string | undefined;
2836
+ request_body?: unknown;
2837
+ request_headers?: unknown;
2838
+ request_id?: string | undefined;
2839
+ }, {
2840
+ method: string;
2841
+ path: string;
2842
+ id: string;
2843
+ latency_ms: number;
2844
+ full_url: string;
2845
+ status_code: number;
2846
+ created_at?: string | undefined;
2847
+ metadata?: unknown;
2848
+ org?: string | undefined;
2849
+ team?: string | undefined;
2850
+ thread?: string | undefined;
2851
+ user?: string | undefined;
2852
+ error_message?: string | undefined;
2853
+ event_type?: string | undefined;
2854
+ api_key_type?: string | undefined;
2855
+ handler_module?: string | undefined;
2856
+ ip_address?: string | undefined;
2857
+ query_string?: string | undefined;
2858
+ request_body?: unknown;
2859
+ request_headers?: unknown;
2860
+ request_id?: string | undefined;
2861
+ }>;
2862
+ export type ApiCall = z.infer<typeof apiCallSchema>;
2863
+ /** Schema for paginated domain event responses. */
2864
+ export declare const domainEventPageSchema: z.ZodObject<{
2865
+ data: z.ZodArray<z.ZodObject<{
2866
+ agent: z.ZodOptional<z.ZodString>;
2867
+ created_at: z.ZodOptional<z.ZodString>;
2868
+ event_name: z.ZodString;
2869
+ id: z.ZodString;
2870
+ idempotency_key: z.ZodOptional<z.ZodString>;
2871
+ payload: z.ZodUnknown;
2872
+ team: z.ZodOptional<z.ZodString>;
2873
+ user: z.ZodOptional<z.ZodString>;
2874
+ }, "strip", z.ZodTypeAny, {
2875
+ id: string;
2876
+ event_name: string;
2877
+ agent?: string | undefined;
2878
+ created_at?: string | undefined;
2879
+ idempotency_key?: string | undefined;
2880
+ team?: string | undefined;
2881
+ user?: string | undefined;
2882
+ payload?: unknown;
2883
+ }, {
2884
+ id: string;
2885
+ event_name: string;
2886
+ agent?: string | undefined;
2887
+ created_at?: string | undefined;
2888
+ idempotency_key?: string | undefined;
2889
+ team?: string | undefined;
2890
+ user?: string | undefined;
2891
+ payload?: unknown;
2892
+ }>, "many">;
2893
+ has_next: z.ZodBoolean;
2894
+ has_prev: z.ZodBoolean;
2895
+ page: z.ZodNumber;
2896
+ page_size: z.ZodNumber;
2897
+ total_entries: z.ZodNumber;
2898
+ total_pages: z.ZodNumber;
2899
+ }, "strip", z.ZodTypeAny, {
2900
+ data: {
2901
+ id: string;
2902
+ event_name: string;
2903
+ agent?: string | undefined;
2904
+ created_at?: string | undefined;
2905
+ idempotency_key?: string | undefined;
2906
+ team?: string | undefined;
2907
+ user?: string | undefined;
2908
+ payload?: unknown;
2909
+ }[];
2910
+ has_next: boolean;
2911
+ has_prev: boolean;
2912
+ page: number;
2913
+ page_size: number;
2914
+ total_entries: number;
2915
+ total_pages: number;
2916
+ }, {
2917
+ data: {
2918
+ id: string;
2919
+ event_name: string;
2920
+ agent?: string | undefined;
2921
+ created_at?: string | undefined;
2922
+ idempotency_key?: string | undefined;
2923
+ team?: string | undefined;
2924
+ user?: string | undefined;
2925
+ payload?: unknown;
2926
+ }[];
2927
+ has_next: boolean;
2928
+ has_prev: boolean;
2929
+ page: number;
2930
+ page_size: number;
2931
+ total_entries: number;
2932
+ total_pages: number;
2933
+ }>;
2934
+ export type DomainEventPage = z.infer<typeof domainEventPageSchema>;
2935
+ /** Schema for a documented API endpoint in the developer API explorer. */
2936
+ export declare const apiExplorerEndpointSchema: z.ZodObject<{
2937
+ deprecated: z.ZodBoolean;
2938
+ description: z.ZodOptional<z.ZodString>;
2939
+ errors: z.ZodArray<z.ZodUnknown, "many">;
2940
+ method: z.ZodString;
2941
+ params: z.ZodArray<z.ZodUnknown, "many">;
2942
+ path: z.ZodString;
2943
+ returns: z.ZodOptional<z.ZodUnknown>;
2944
+ scope: z.ZodString;
2945
+ tags: z.ZodArray<z.ZodString, "many">;
2946
+ }, "strip", z.ZodTypeAny, {
2947
+ method: string;
2948
+ params: unknown[];
2949
+ path: string;
2950
+ scope: string;
2951
+ deprecated: boolean;
2952
+ errors: unknown[];
2953
+ tags: string[];
2954
+ description?: string | undefined;
2955
+ returns?: unknown;
2956
+ }, {
2957
+ method: string;
2958
+ params: unknown[];
2959
+ path: string;
2960
+ scope: string;
2961
+ deprecated: boolean;
2962
+ errors: unknown[];
2963
+ tags: string[];
2964
+ description?: string | undefined;
2965
+ returns?: unknown;
2966
+ }>;
2967
+ export type ApiExplorerEndpoint = z.infer<typeof apiExplorerEndpointSchema>;
2968
+ export declare const resolvedToolSchema: z.ZodObject<{
2969
+ description: z.ZodOptional<z.ZodString>;
2970
+ name: z.ZodString;
2971
+ parameters: z.ZodOptional<z.ZodUnknown>;
2972
+ }, "strip", z.ZodTypeAny, {
2973
+ name: string;
2974
+ description?: string | undefined;
2975
+ parameters?: unknown;
2976
+ }, {
2977
+ name: string;
2978
+ description?: string | undefined;
2979
+ parameters?: unknown;
2980
+ }>;
2981
+ export type ResolvedTool = z.infer<typeof resolvedToolSchema>;
2982
+ /** Schema for an encrypted secret payload. */
2983
+ export declare const encryptedSecretSchema: z.ZodObject<{
2984
+ encrypted_value: z.ZodString;
2985
+ }, "strip", z.ZodTypeAny, {
2986
+ encrypted_value: string;
2987
+ }, {
2988
+ encrypted_value: string;
2989
+ }>;
2990
+ export type EncryptedSecret = z.infer<typeof encryptedSecretSchema>;
2991
+ /** API schema for a custom object. */
2992
+ export declare const customObjectSchema: z.ZodObject<{
2993
+ created_at: z.ZodOptional<z.ZodString>;
2994
+ fields: z.ZodOptional<z.ZodUnknown>;
2995
+ id: z.ZodString;
2996
+ org: z.ZodOptional<z.ZodString>;
2997
+ row_key: z.ZodOptional<z.ZodString>;
2998
+ sandbox: z.ZodOptional<z.ZodString>;
2999
+ schema_type: z.ZodOptional<z.ZodString>;
3000
+ team: z.ZodOptional<z.ZodString>;
3001
+ updated_at: z.ZodOptional<z.ZodString>;
3002
+ user: z.ZodOptional<z.ZodString>;
3003
+ version: z.ZodOptional<z.ZodNumber>;
3004
+ }, "strip", z.ZodTypeAny, {
3005
+ id: string;
3006
+ created_at?: string | undefined;
3007
+ org?: string | undefined;
3008
+ sandbox?: string | undefined;
3009
+ team?: string | undefined;
3010
+ user?: string | undefined;
3011
+ updated_at?: string | undefined;
3012
+ version?: number | undefined;
3013
+ fields?: unknown;
3014
+ row_key?: string | undefined;
3015
+ schema_type?: string | undefined;
3016
+ }, {
3017
+ id: string;
3018
+ created_at?: string | undefined;
3019
+ org?: string | undefined;
3020
+ sandbox?: string | undefined;
3021
+ team?: string | undefined;
3022
+ user?: string | undefined;
3023
+ updated_at?: string | undefined;
3024
+ version?: number | undefined;
3025
+ fields?: unknown;
3026
+ row_key?: string | undefined;
3027
+ schema_type?: string | undefined;
3028
+ }>;
3029
+ export type CustomObject = z.infer<typeof customObjectSchema>;
3030
+ /** Schema for task creation parameters.
3031
+
3032
+ Used by both Users.Tasks.Create and Teams.Tasks.Create actions.
3033
+ */
3034
+ export declare const taskCreateParamsSchema: z.ZodObject<{
3035
+ description: z.ZodOptional<z.ZodString>;
3036
+ due_date: z.ZodOptional<z.ZodString>;
3037
+ links: z.ZodOptional<z.ZodUnknown>;
3038
+ metadata: z.ZodOptional<z.ZodUnknown>;
3039
+ name: z.ZodString;
3040
+ owner_persona: z.ZodOptional<z.ZodString>;
3041
+ owner_user: z.ZodOptional<z.ZodString>;
3042
+ priority: z.ZodOptional<z.ZodNumber>;
3043
+ status: z.ZodOptional<z.ZodString>;
3044
+ task: z.ZodOptional<z.ZodString>;
3045
+ }, "strip", z.ZodTypeAny, {
3046
+ name: string;
3047
+ status?: string | undefined;
3048
+ metadata?: unknown;
3049
+ links?: unknown;
3050
+ description?: string | undefined;
3051
+ task?: string | undefined;
3052
+ due_date?: string | undefined;
3053
+ owner_persona?: string | undefined;
3054
+ owner_user?: string | undefined;
3055
+ priority?: number | undefined;
3056
+ }, {
3057
+ name: string;
3058
+ status?: string | undefined;
3059
+ metadata?: unknown;
3060
+ links?: unknown;
3061
+ description?: string | undefined;
3062
+ task?: string | undefined;
3063
+ due_date?: string | undefined;
3064
+ owner_persona?: string | undefined;
3065
+ owner_user?: string | undefined;
3066
+ priority?: number | undefined;
3067
+ }>;
3068
+ export type TaskCreateParams = z.infer<typeof taskCreateParamsSchema>;
3069
+ /** API schema for an installation source. */
3070
+ export declare const installationSourceSchema: z.ZodObject<{
3071
+ agent: z.ZodOptional<z.ZodString>;
3072
+ context_installation: z.ZodOptional<z.ZodString>;
3073
+ created_at: z.ZodOptional<z.ZodString>;
3074
+ id: z.ZodString;
3075
+ metadata: z.ZodOptional<z.ZodUnknown>;
3076
+ parent_source: z.ZodOptional<z.ZodString>;
3077
+ payload: z.ZodOptional<z.ZodUnknown>;
3078
+ state: z.ZodOptional<z.ZodString>;
3079
+ team: z.ZodOptional<z.ZodString>;
3080
+ thread: z.ZodOptional<z.ZodString>;
3081
+ type: z.ZodOptional<z.ZodString>;
3082
+ updated_at: z.ZodOptional<z.ZodString>;
3083
+ user: z.ZodOptional<z.ZodString>;
3084
+ }, "strip", z.ZodTypeAny, {
3085
+ id: string;
3086
+ type?: string | undefined;
3087
+ agent?: string | undefined;
3088
+ created_at?: string | undefined;
3089
+ metadata?: unknown;
3090
+ team?: string | undefined;
3091
+ thread?: string | undefined;
3092
+ user?: string | undefined;
3093
+ payload?: unknown;
3094
+ updated_at?: string | undefined;
3095
+ context_installation?: string | undefined;
3096
+ state?: string | undefined;
3097
+ parent_source?: string | undefined;
3098
+ }, {
3099
+ id: string;
3100
+ type?: string | undefined;
3101
+ agent?: string | undefined;
3102
+ created_at?: string | undefined;
3103
+ metadata?: unknown;
3104
+ team?: string | undefined;
3105
+ thread?: string | undefined;
3106
+ user?: string | undefined;
3107
+ payload?: unknown;
3108
+ updated_at?: string | undefined;
3109
+ context_installation?: string | undefined;
3110
+ state?: string | undefined;
3111
+ parent_source?: string | undefined;
3112
+ }>;
3113
+ export type InstallationSource = z.infer<typeof installationSourceSchema>;
3114
+ /** Schema for persona creation parameters.
3115
+ */
3116
+ export declare const personaCreateParamsSchema: z.ZodObject<{
3117
+ name: z.ZodString;
3118
+ personality: z.ZodString;
3119
+ profile_picture_style: z.ZodOptional<z.ZodString>;
3120
+ }, "strip", z.ZodTypeAny, {
3121
+ name: string;
3122
+ personality: string;
3123
+ profile_picture_style?: string | undefined;
3124
+ }, {
3125
+ name: string;
3126
+ personality: string;
3127
+ profile_picture_style?: string | undefined;
3128
+ }>;
3129
+ export type PersonaCreateParams = z.infer<typeof personaCreateParamsSchema>;
3130
+ /** API schema for a task. */
3131
+ export declare const taskSchema: z.ZodObject<{
3132
+ closed_at: z.ZodOptional<z.ZodString>;
3133
+ comments_count: z.ZodOptional<z.ZodNumber>;
3134
+ created_at: z.ZodOptional<z.ZodString>;
3135
+ created_by: z.ZodOptional<z.ZodString>;
3136
+ created_by_actor: z.ZodOptional<z.ZodUnknown>;
3137
+ created_by_persona: z.ZodOptional<z.ZodString>;
3138
+ created_by_type: z.ZodOptional<z.ZodString>;
3139
+ created_by_user: z.ZodOptional<z.ZodString>;
3140
+ description: z.ZodOptional<z.ZodString>;
3141
+ due_date: z.ZodOptional<z.ZodString>;
3142
+ id: z.ZodString;
3143
+ links: z.ZodOptional<z.ZodUnknown>;
3144
+ metadata: z.ZodOptional<z.ZodUnknown>;
3145
+ name: z.ZodString;
3146
+ org: z.ZodOptional<z.ZodString>;
3147
+ owner: z.ZodOptional<z.ZodString>;
3148
+ owner_actor: z.ZodOptional<z.ZodUnknown>;
3149
+ owner_persona: z.ZodOptional<z.ZodString>;
3150
+ owner_user: z.ZodOptional<z.ZodString>;
3151
+ priority: z.ZodOptional<z.ZodNumber>;
3152
+ sandbox: z.ZodOptional<z.ZodString>;
3153
+ status: z.ZodString;
3154
+ team: z.ZodOptional<z.ZodString>;
3155
+ updated_at: z.ZodOptional<z.ZodString>;
3156
+ }, "strip", z.ZodTypeAny, {
3157
+ status: string;
3158
+ id: string;
3159
+ name: string;
3160
+ created_at?: string | undefined;
3161
+ metadata?: unknown;
3162
+ org?: string | undefined;
3163
+ sandbox?: string | undefined;
3164
+ team?: string | undefined;
3165
+ updated_at?: string | undefined;
3166
+ owner?: string | undefined;
3167
+ links?: unknown;
3168
+ description?: string | undefined;
3169
+ due_date?: string | undefined;
3170
+ owner_persona?: string | undefined;
3171
+ owner_user?: string | undefined;
3172
+ priority?: number | undefined;
3173
+ closed_at?: string | undefined;
3174
+ comments_count?: number | undefined;
3175
+ created_by?: string | undefined;
3176
+ created_by_actor?: unknown;
3177
+ created_by_persona?: string | undefined;
3178
+ created_by_type?: string | undefined;
3179
+ created_by_user?: string | undefined;
3180
+ owner_actor?: unknown;
3181
+ }, {
3182
+ status: string;
3183
+ id: string;
3184
+ name: string;
3185
+ created_at?: string | undefined;
3186
+ metadata?: unknown;
3187
+ org?: string | undefined;
3188
+ sandbox?: string | undefined;
3189
+ team?: string | undefined;
3190
+ updated_at?: string | undefined;
3191
+ owner?: string | undefined;
3192
+ links?: unknown;
3193
+ description?: string | undefined;
3194
+ due_date?: string | undefined;
3195
+ owner_persona?: string | undefined;
3196
+ owner_user?: string | undefined;
3197
+ priority?: number | undefined;
3198
+ closed_at?: string | undefined;
3199
+ comments_count?: number | undefined;
3200
+ created_by?: string | undefined;
3201
+ created_by_actor?: unknown;
3202
+ created_by_persona?: string | undefined;
3203
+ created_by_type?: string | undefined;
3204
+ created_by_user?: string | undefined;
3205
+ owner_actor?: unknown;
3206
+ }>;
3207
+ export type Task = z.infer<typeof taskSchema>;
3208
+ /** Schema for a developer app.
3209
+
3210
+ Maps to serialized app output from developer portal API.
3211
+ */
3212
+ export declare const appSchema: z.ZodObject<{
3213
+ app_slug: z.ZodOptional<z.ZodString>;
3214
+ app_url: z.ZodOptional<z.ZodString>;
3215
+ brand_name: z.ZodOptional<z.ZodString>;
3216
+ created_at: z.ZodOptional<z.ZodString>;
3217
+ description: z.ZodOptional<z.ZodString>;
3218
+ from_name: z.ZodOptional<z.ZodString>;
3219
+ id: z.ZodString;
3220
+ marketing_url: z.ZodOptional<z.ZodString>;
3221
+ muted_color: z.ZodOptional<z.ZodString>;
3222
+ name: z.ZodString;
3223
+ primary_color: z.ZodOptional<z.ZodString>;
3224
+ sandboxes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3225
+ created_at: z.ZodOptional<z.ZodString>;
3226
+ id: z.ZodString;
3227
+ keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
3228
+ created_at: z.ZodOptional<z.ZodString>;
3229
+ expires_at: z.ZodOptional<z.ZodString>;
3230
+ full_key: z.ZodOptional<z.ZodString>;
3231
+ id: z.ZodString;
3232
+ key_hint: z.ZodOptional<z.ZodString>;
3233
+ key_value: z.ZodOptional<z.ZodString>;
3234
+ last_used_at: z.ZodOptional<z.ZodString>;
3235
+ status: z.ZodString;
3236
+ type: z.ZodString;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ type: string;
3239
+ status: string;
3240
+ id: string;
3241
+ created_at?: string | undefined;
3242
+ expires_at?: string | undefined;
3243
+ full_key?: string | undefined;
3244
+ key_hint?: string | undefined;
3245
+ key_value?: string | undefined;
3246
+ last_used_at?: string | undefined;
3247
+ }, {
3248
+ type: string;
3249
+ status: string;
3250
+ id: string;
3251
+ created_at?: string | undefined;
3252
+ expires_at?: string | undefined;
3253
+ full_key?: string | undefined;
3254
+ key_hint?: string | undefined;
3255
+ key_value?: string | undefined;
3256
+ last_used_at?: string | undefined;
3257
+ }>, "many">>;
3258
+ name: z.ZodString;
3259
+ slug: z.ZodString;
3260
+ updated_at: z.ZodOptional<z.ZodString>;
3261
+ }, "strip", z.ZodTypeAny, {
3262
+ id: string;
3263
+ name: string;
3264
+ slug: string;
3265
+ keys?: {
3266
+ type: string;
3267
+ status: string;
3268
+ id: string;
3269
+ created_at?: string | undefined;
3270
+ expires_at?: string | undefined;
3271
+ full_key?: string | undefined;
3272
+ key_hint?: string | undefined;
3273
+ key_value?: string | undefined;
3274
+ last_used_at?: string | undefined;
3275
+ }[] | undefined;
3276
+ created_at?: string | undefined;
3277
+ updated_at?: string | undefined;
3278
+ }, {
3279
+ id: string;
3280
+ name: string;
3281
+ slug: string;
3282
+ keys?: {
3283
+ type: string;
3284
+ status: string;
3285
+ id: string;
3286
+ created_at?: string | undefined;
3287
+ expires_at?: string | undefined;
3288
+ full_key?: string | undefined;
3289
+ key_hint?: string | undefined;
3290
+ key_value?: string | undefined;
3291
+ last_used_at?: string | undefined;
3292
+ }[] | undefined;
3293
+ created_at?: string | undefined;
3294
+ updated_at?: string | undefined;
3295
+ }>, "many">>;
3296
+ status: z.ZodString;
3297
+ support_email: z.ZodOptional<z.ZodString>;
3298
+ third_party_oauth_enabled: z.ZodOptional<z.ZodBoolean>;
3299
+ updated_at: z.ZodOptional<z.ZodString>;
3300
+ }, "strip", z.ZodTypeAny, {
3301
+ status: string;
3302
+ id: string;
3303
+ name: string;
3304
+ created_at?: string | undefined;
3305
+ updated_at?: string | undefined;
3306
+ from_name?: string | undefined;
3307
+ description?: string | undefined;
3308
+ app_slug?: string | undefined;
3309
+ app_url?: string | undefined;
3310
+ brand_name?: string | undefined;
3311
+ marketing_url?: string | undefined;
3312
+ muted_color?: string | undefined;
3313
+ primary_color?: string | undefined;
3314
+ sandboxes?: {
3315
+ id: string;
3316
+ name: string;
3317
+ slug: string;
3318
+ keys?: {
3319
+ type: string;
3320
+ status: string;
3321
+ id: string;
3322
+ created_at?: string | undefined;
3323
+ expires_at?: string | undefined;
3324
+ full_key?: string | undefined;
3325
+ key_hint?: string | undefined;
3326
+ key_value?: string | undefined;
3327
+ last_used_at?: string | undefined;
3328
+ }[] | undefined;
3329
+ created_at?: string | undefined;
3330
+ updated_at?: string | undefined;
3331
+ }[] | undefined;
3332
+ support_email?: string | undefined;
3333
+ third_party_oauth_enabled?: boolean | undefined;
3334
+ }, {
3335
+ status: string;
3336
+ id: string;
3337
+ name: string;
3338
+ created_at?: string | undefined;
3339
+ updated_at?: string | undefined;
3340
+ from_name?: string | undefined;
3341
+ description?: string | undefined;
3342
+ app_slug?: string | undefined;
3343
+ app_url?: string | undefined;
3344
+ brand_name?: string | undefined;
3345
+ marketing_url?: string | undefined;
3346
+ muted_color?: string | undefined;
3347
+ primary_color?: string | undefined;
3348
+ sandboxes?: {
3349
+ id: string;
3350
+ name: string;
3351
+ slug: string;
3352
+ keys?: {
3353
+ type: string;
3354
+ status: string;
3355
+ id: string;
3356
+ created_at?: string | undefined;
3357
+ expires_at?: string | undefined;
3358
+ full_key?: string | undefined;
3359
+ key_hint?: string | undefined;
3360
+ key_value?: string | undefined;
3361
+ last_used_at?: string | undefined;
3362
+ }[] | undefined;
3363
+ created_at?: string | undefined;
3364
+ updated_at?: string | undefined;
3365
+ }[] | undefined;
3366
+ support_email?: string | undefined;
3367
+ third_party_oauth_enabled?: boolean | undefined;
3368
+ }>;
3369
+ export type App = z.infer<typeof appSchema>;
3370
+ /** Schema for a system access token (developer admin view).
3371
+
3372
+ Maps to serialized system access token output from developer portal API.
3373
+ */
3374
+ export declare const developerSystemAccessTokenSchema: z.ZodObject<{
3375
+ created_at: z.ZodOptional<z.ZodString>;
3376
+ id: z.ZodString;
3377
+ last_used_at: z.ZodOptional<z.ZodString>;
3378
+ name: z.ZodOptional<z.ZodString>;
3379
+ revoked_at: z.ZodOptional<z.ZodString>;
3380
+ token: z.ZodOptional<z.ZodString>;
3381
+ }, "strip", z.ZodTypeAny, {
3382
+ id: string;
3383
+ token?: string | undefined;
3384
+ created_at?: string | undefined;
3385
+ name?: string | undefined;
3386
+ last_used_at?: string | undefined;
3387
+ revoked_at?: string | undefined;
3388
+ }, {
3389
+ id: string;
3390
+ token?: string | undefined;
3391
+ created_at?: string | undefined;
3392
+ name?: string | undefined;
3393
+ last_used_at?: string | undefined;
3394
+ revoked_at?: string | undefined;
3395
+ }>;
3396
+ export type DeveloperSystemAccessToken = z.infer<typeof developerSystemAccessTokenSchema>;
3397
+ /** Schema for a context source.
3398
+
3399
+ Maps to serialized context source output from developer portal API.
3400
+ */
3401
+ export declare const contextSourceSchema: z.ZodObject<{
3402
+ agent: z.ZodOptional<z.ZodString>;
3403
+ context_installation: z.ZodOptional<z.ZodString>;
3404
+ created_at: z.ZodOptional<z.ZodString>;
3405
+ id: z.ZodString;
3406
+ metadata: z.ZodOptional<z.ZodUnknown>;
3407
+ org: z.ZodOptional<z.ZodString>;
3408
+ parent_source: z.ZodOptional<z.ZodString>;
3409
+ payload: z.ZodOptional<z.ZodUnknown>;
3410
+ sandbox: z.ZodOptional<z.ZodString>;
3411
+ state: z.ZodString;
3412
+ team: z.ZodOptional<z.ZodString>;
3413
+ thread: z.ZodOptional<z.ZodString>;
3414
+ type: z.ZodString;
3415
+ updated_at: z.ZodOptional<z.ZodString>;
3416
+ user: z.ZodOptional<z.ZodString>;
3417
+ }, "strip", z.ZodTypeAny, {
3418
+ type: string;
3419
+ id: string;
3420
+ state: string;
3421
+ agent?: string | undefined;
3422
+ created_at?: string | undefined;
3423
+ metadata?: unknown;
3424
+ org?: string | undefined;
3425
+ sandbox?: string | undefined;
3426
+ team?: string | undefined;
3427
+ thread?: string | undefined;
3428
+ user?: string | undefined;
3429
+ payload?: unknown;
3430
+ updated_at?: string | undefined;
3431
+ context_installation?: string | undefined;
3432
+ parent_source?: string | undefined;
3433
+ }, {
3434
+ type: string;
3435
+ id: string;
3436
+ state: string;
3437
+ agent?: string | undefined;
3438
+ created_at?: string | undefined;
3439
+ metadata?: unknown;
3440
+ org?: string | undefined;
3441
+ sandbox?: string | undefined;
3442
+ team?: string | undefined;
3443
+ thread?: string | undefined;
3444
+ user?: string | undefined;
3445
+ payload?: unknown;
3446
+ updated_at?: string | undefined;
3447
+ context_installation?: string | undefined;
3448
+ parent_source?: string | undefined;
3449
+ }>;
3450
+ export type ContextSource = z.infer<typeof contextSourceSchema>;
3451
+ /** Paginated list response for working memory entries. */
3452
+ export declare const workingMemoryEntryListResponseSchema: z.ZodObject<{
3453
+ data: z.ZodArray<z.ZodObject<{
3454
+ agent: z.ZodOptional<z.ZodString>;
3455
+ created_at: z.ZodOptional<z.ZodString>;
3456
+ expires_at: z.ZodOptional<z.ZodString>;
3457
+ id: z.ZodString;
3458
+ key: z.ZodOptional<z.ZodString>;
3459
+ updated_at: z.ZodOptional<z.ZodString>;
3460
+ value: z.ZodOptional<z.ZodString>;
3461
+ }, "strip", z.ZodTypeAny, {
3462
+ id: string;
3463
+ key?: string | undefined;
3464
+ value?: string | undefined;
3465
+ agent?: string | undefined;
3466
+ created_at?: string | undefined;
3467
+ updated_at?: string | undefined;
3468
+ expires_at?: string | undefined;
3469
+ }, {
3470
+ id: string;
3471
+ key?: string | undefined;
3472
+ value?: string | undefined;
3473
+ agent?: string | undefined;
3474
+ created_at?: string | undefined;
3475
+ updated_at?: string | undefined;
3476
+ expires_at?: string | undefined;
3477
+ }>, "many">;
3478
+ has_next: z.ZodOptional<z.ZodBoolean>;
3479
+ has_prev: z.ZodOptional<z.ZodBoolean>;
3480
+ page: z.ZodOptional<z.ZodNumber>;
3481
+ page_size: z.ZodOptional<z.ZodNumber>;
3482
+ total_entries: z.ZodOptional<z.ZodNumber>;
3483
+ total_pages: z.ZodOptional<z.ZodNumber>;
3484
+ }, "strip", z.ZodTypeAny, {
3485
+ data: {
3486
+ id: string;
3487
+ key?: string | undefined;
3488
+ value?: string | undefined;
3489
+ agent?: string | undefined;
3490
+ created_at?: string | undefined;
3491
+ updated_at?: string | undefined;
3492
+ expires_at?: string | undefined;
3493
+ }[];
3494
+ has_next?: boolean | undefined;
3495
+ has_prev?: boolean | undefined;
3496
+ page?: number | undefined;
3497
+ page_size?: number | undefined;
3498
+ total_entries?: number | undefined;
3499
+ total_pages?: number | undefined;
3500
+ }, {
3501
+ data: {
3502
+ id: string;
3503
+ key?: string | undefined;
3504
+ value?: string | undefined;
3505
+ agent?: string | undefined;
3506
+ created_at?: string | undefined;
3507
+ updated_at?: string | undefined;
3508
+ expires_at?: string | undefined;
3509
+ }[];
3510
+ has_next?: boolean | undefined;
3511
+ has_prev?: boolean | undefined;
3512
+ page?: number | undefined;
3513
+ page_size?: number | undefined;
3514
+ total_entries?: number | undefined;
3515
+ total_pages?: number | undefined;
3516
+ }>;
3517
+ export type WorkingMemoryEntryListResponse = z.infer<typeof workingMemoryEntryListResponseSchema>;
3518
+ /** Integration fields for auto-creating the underlying integration.
3519
+
3520
+ When creating an agent installation for an `integration/*` kind, callers
3521
+ can pass this object to auto-create the underlying Integration record.
3522
+ Required fields depend on the kind's auth type:
3523
+
3524
+ - `app_installation` kinds (slack_bot, github_app): requires `installation_id`
3525
+ - `oauth` kinds (gmail, outlook, slack): requires `access_token`
3526
+ */
3527
+ export declare const integrationCreateParamsSchema: z.ZodObject<{
3528
+ access_token: z.ZodOptional<z.ZodString>;
3529
+ installation_id: z.ZodOptional<z.ZodString>;
3530
+ metadata: z.ZodOptional<z.ZodUnknown>;
3531
+ refresh_token: z.ZodOptional<z.ZodString>;
3532
+ workspace_key: z.ZodOptional<z.ZodString>;
3533
+ }, "strip", z.ZodTypeAny, {
3534
+ refresh_token?: string | undefined;
3535
+ metadata?: unknown;
3536
+ access_token?: string | undefined;
3537
+ workspace_key?: string | undefined;
3538
+ installation_id?: string | undefined;
3539
+ }, {
3540
+ refresh_token?: string | undefined;
3541
+ metadata?: unknown;
3542
+ access_token?: string | undefined;
3543
+ workspace_key?: string | undefined;
3544
+ installation_id?: string | undefined;
3545
+ }>;
3546
+ export type IntegrationCreateParams = z.infer<typeof integrationCreateParamsSchema>;
3547
+ /** Schema for a user credential.
3548
+
3549
+ Maps to serialized credential output from developer portal API.
3550
+ */
3551
+ export declare const contextCredentialSchema: z.ZodObject<{
3552
+ alt_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3553
+ created_at: z.ZodOptional<z.ZodString>;
3554
+ description: z.ZodOptional<z.ZodString>;
3555
+ domain: z.ZodString;
3556
+ id: z.ZodString;
3557
+ last_accessed_at: z.ZodOptional<z.ZodString>;
3558
+ updated_at: z.ZodOptional<z.ZodString>;
3559
+ user: z.ZodOptional<z.ZodString>;
3560
+ }, "strip", z.ZodTypeAny, {
3561
+ id: string;
3562
+ domain: string;
3563
+ created_at?: string | undefined;
3564
+ user?: string | undefined;
3565
+ updated_at?: string | undefined;
3566
+ description?: string | undefined;
3567
+ last_accessed_at?: string | undefined;
3568
+ alt_domains?: string[] | undefined;
3569
+ }, {
3570
+ id: string;
3571
+ domain: string;
3572
+ created_at?: string | undefined;
3573
+ user?: string | undefined;
3574
+ updated_at?: string | undefined;
3575
+ description?: string | undefined;
3576
+ last_accessed_at?: string | undefined;
3577
+ alt_domains?: string[] | undefined;
3578
+ }>;
3579
+ export type ContextCredential = z.infer<typeof contextCredentialSchema>;
3580
+ /** API schema for the status/ping health check response. */
3581
+ export declare const statusPingSchema: z.ZodObject<{
3582
+ success: z.ZodBoolean;
3583
+ token: z.ZodUnknown;
3584
+ user: z.ZodOptional<z.ZodObject<{
3585
+ alias: z.ZodOptional<z.ZodString>;
3586
+ email: z.ZodOptional<z.ZodString>;
3587
+ id: z.ZodString;
3588
+ metadata: z.ZodOptional<z.ZodUnknown>;
3589
+ name: z.ZodOptional<z.ZodString>;
3590
+ org: z.ZodOptional<z.ZodString>;
3591
+ sandbox: z.ZodOptional<z.ZodString>;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ id: string;
3594
+ email?: string | undefined;
3595
+ alias?: string | undefined;
3596
+ metadata?: unknown;
3597
+ org?: string | undefined;
3598
+ sandbox?: string | undefined;
3599
+ name?: string | undefined;
3600
+ }, {
3601
+ id: string;
3602
+ email?: string | undefined;
3603
+ alias?: string | undefined;
3604
+ metadata?: unknown;
3605
+ org?: string | undefined;
3606
+ sandbox?: string | undefined;
3607
+ name?: string | undefined;
3608
+ }>>;
3609
+ }, "strip", z.ZodTypeAny, {
3610
+ success: boolean;
3611
+ token?: unknown;
3612
+ user?: {
3613
+ id: string;
3614
+ email?: string | undefined;
3615
+ alias?: string | undefined;
3616
+ metadata?: unknown;
3617
+ org?: string | undefined;
3618
+ sandbox?: string | undefined;
3619
+ name?: string | undefined;
3620
+ } | undefined;
3621
+ }, {
3622
+ success: boolean;
3623
+ token?: unknown;
3624
+ user?: {
3625
+ id: string;
3626
+ email?: string | undefined;
3627
+ alias?: string | undefined;
3628
+ metadata?: unknown;
3629
+ org?: string | undefined;
3630
+ sandbox?: string | undefined;
3631
+ name?: string | undefined;
3632
+ } | undefined;
3633
+ }>;
3634
+ export type StatusPing = z.infer<typeof statusPingSchema>;
3635
+ /** Schema for an OAuth provider configuration.
3636
+
3637
+ Maps to serialized OAuth provider output from developer portal API.
3638
+ */
3639
+ export declare const oAuthProviderSchema: z.ZodObject<{
3640
+ callback_urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3641
+ client_id: z.ZodString;
3642
+ created_at: z.ZodOptional<z.ZodString>;
3643
+ display_name: z.ZodOptional<z.ZodString>;
3644
+ enabled: z.ZodOptional<z.ZodBoolean>;
3645
+ id: z.ZodString;
3646
+ provider: z.ZodString;
3647
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3648
+ updated_at: z.ZodOptional<z.ZodString>;
3649
+ }, "strip", z.ZodTypeAny, {
3650
+ id: string;
3651
+ provider: string;
3652
+ client_id: string;
3653
+ created_at?: string | undefined;
3654
+ updated_at?: string | undefined;
3655
+ enabled?: boolean | undefined;
3656
+ callback_urls?: string[] | undefined;
3657
+ display_name?: string | undefined;
3658
+ scopes?: string[] | undefined;
3659
+ }, {
3660
+ id: string;
3661
+ provider: string;
3662
+ client_id: string;
3663
+ created_at?: string | undefined;
3664
+ updated_at?: string | undefined;
3665
+ enabled?: boolean | undefined;
3666
+ callback_urls?: string[] | undefined;
3667
+ display_name?: string | undefined;
3668
+ scopes?: string[] | undefined;
3669
+ }>;
3670
+ export type OAuthProvider = z.infer<typeof oAuthProviderSchema>;
3671
+ /** Schema for config validation result.
3672
+ */
3673
+ export declare const validationResultSchema: z.ZodObject<{
3674
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3675
+ valid: z.ZodBoolean;
3676
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3677
+ }, "strip", z.ZodTypeAny, {
3678
+ valid: boolean;
3679
+ errors?: string[] | undefined;
3680
+ warnings?: string[] | undefined;
3681
+ }, {
3682
+ valid: boolean;
3683
+ errors?: string[] | undefined;
3684
+ warnings?: string[] | undefined;
3685
+ }>;
3686
+ export type ValidationResult = z.infer<typeof validationResultSchema>;
3687
+ /** OAuth error response per RFC 6749 */
3688
+ export declare const oAuthErrorSchema: z.ZodObject<{
3689
+ error: z.ZodString;
3690
+ error_description: z.ZodOptional<z.ZodString>;
3691
+ }, "strip", z.ZodTypeAny, {
3692
+ error: string;
3693
+ error_description?: string | undefined;
3694
+ }, {
3695
+ error: string;
3696
+ error_description?: string | undefined;
3697
+ }>;
3698
+ export type OAuthError = z.infer<typeof oAuthErrorSchema>;
3699
+ /** Schema for the current developer account. */
3700
+ export declare const accountSchema: z.ZodObject<{
3701
+ alias: z.ZodOptional<z.ZodString>;
3702
+ created_at: z.ZodString;
3703
+ email: z.ZodString;
3704
+ email_verified: z.ZodBoolean;
3705
+ full_name: z.ZodOptional<z.ZodString>;
3706
+ id: z.ZodString;
3707
+ system_role: z.ZodString;
3708
+ timezone: z.ZodOptional<z.ZodString>;
3709
+ }, "strip", z.ZodTypeAny, {
3710
+ email: string;
3711
+ created_at: string;
3712
+ id: string;
3713
+ email_verified: boolean;
3714
+ system_role: string;
3715
+ alias?: string | undefined;
3716
+ full_name?: string | undefined;
3717
+ timezone?: string | undefined;
3718
+ }, {
3719
+ email: string;
3720
+ created_at: string;
3721
+ id: string;
3722
+ email_verified: boolean;
3723
+ system_role: string;
3724
+ alias?: string | undefined;
3725
+ full_name?: string | undefined;
3726
+ timezone?: string | undefined;
3727
+ }>;
3728
+ export type Account = z.infer<typeof accountSchema>;
3729
+ /** Schema for eval task list responses. */
3730
+ export declare const evalTaskListSchema: z.ZodObject<{
3731
+ data: z.ZodArray<z.ZodObject<{
3732
+ created_at: z.ZodOptional<z.ZodString>;
3733
+ expected_outcome: z.ZodString;
3734
+ grading_criteria: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3735
+ id: z.ZodString;
3736
+ input_message: z.ZodString;
3737
+ mock_agent_memory: z.ZodOptional<z.ZodUnknown>;
3738
+ mock_context_items: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3739
+ mock_datetime: z.ZodOptional<z.ZodString>;
3740
+ mock_participants: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3741
+ mock_tools: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3742
+ status: z.ZodString;
3743
+ suite: z.ZodString;
3744
+ updated_at: z.ZodOptional<z.ZodString>;
3745
+ }, "strip", z.ZodTypeAny, {
3746
+ status: string;
3747
+ id: string;
3748
+ suite: string;
3749
+ expected_outcome: string;
3750
+ input_message: string;
3751
+ created_at?: string | undefined;
3752
+ updated_at?: string | undefined;
3753
+ grading_criteria?: unknown[] | undefined;
3754
+ mock_agent_memory?: unknown;
3755
+ mock_context_items?: unknown[] | undefined;
3756
+ mock_datetime?: string | undefined;
3757
+ mock_participants?: unknown[] | undefined;
3758
+ mock_tools?: unknown[] | undefined;
3759
+ }, {
3760
+ status: string;
3761
+ id: string;
3762
+ suite: string;
3763
+ expected_outcome: string;
3764
+ input_message: string;
3765
+ created_at?: string | undefined;
3766
+ updated_at?: string | undefined;
3767
+ grading_criteria?: unknown[] | undefined;
3768
+ mock_agent_memory?: unknown;
3769
+ mock_context_items?: unknown[] | undefined;
3770
+ mock_datetime?: string | undefined;
3771
+ mock_participants?: unknown[] | undefined;
3772
+ mock_tools?: unknown[] | undefined;
3773
+ }>, "many">;
3774
+ }, "strip", z.ZodTypeAny, {
3775
+ data: {
3776
+ status: string;
3777
+ id: string;
3778
+ suite: string;
3779
+ expected_outcome: string;
3780
+ input_message: string;
3781
+ created_at?: string | undefined;
3782
+ updated_at?: string | undefined;
3783
+ grading_criteria?: unknown[] | undefined;
3784
+ mock_agent_memory?: unknown;
3785
+ mock_context_items?: unknown[] | undefined;
3786
+ mock_datetime?: string | undefined;
3787
+ mock_participants?: unknown[] | undefined;
3788
+ mock_tools?: unknown[] | undefined;
3789
+ }[];
3790
+ }, {
3791
+ data: {
3792
+ status: string;
3793
+ id: string;
3794
+ suite: string;
3795
+ expected_outcome: string;
3796
+ input_message: string;
3797
+ created_at?: string | undefined;
3798
+ updated_at?: string | undefined;
3799
+ grading_criteria?: unknown[] | undefined;
3800
+ mock_agent_memory?: unknown;
3801
+ mock_context_items?: unknown[] | undefined;
3802
+ mock_datetime?: string | undefined;
3803
+ mock_participants?: unknown[] | undefined;
3804
+ mock_tools?: unknown[] | undefined;
3805
+ }[];
3806
+ }>;
3807
+ export type EvalTaskList = z.infer<typeof evalTaskListSchema>;
3808
+ /** API schema for a knowledge search result item. */
3809
+ export declare const knowledgeSearchResultSchema: z.ZodObject<{
3810
+ content: z.ZodOptional<z.ZodString>;
3811
+ content_type: z.ZodOptional<z.ZodString>;
3812
+ created_at: z.ZodOptional<z.ZodString>;
3813
+ id: z.ZodString;
3814
+ metadata: z.ZodOptional<z.ZodUnknown>;
3815
+ raw_content: z.ZodOptional<z.ZodUnknown>;
3816
+ type: z.ZodOptional<z.ZodString>;
3817
+ }, "strip", z.ZodTypeAny, {
3818
+ id: string;
3819
+ type?: string | undefined;
3820
+ content?: string | undefined;
3821
+ created_at?: string | undefined;
3822
+ metadata?: unknown;
3823
+ content_type?: string | undefined;
3824
+ raw_content?: unknown;
3825
+ }, {
3826
+ id: string;
3827
+ type?: string | undefined;
3828
+ content?: string | undefined;
3829
+ created_at?: string | undefined;
3830
+ metadata?: unknown;
3831
+ content_type?: string | undefined;
3832
+ raw_content?: unknown;
3833
+ }>;
3834
+ export type KnowledgeSearchResult = z.infer<typeof knowledgeSearchResultSchema>;
3835
+ /** Schema for org billing settings. */
3836
+ export declare const billingSettingsOrgSchema: z.ZodObject<{
3837
+ billing_provider_environment: z.ZodOptional<z.ZodString>;
3838
+ billing_provider_id: z.ZodOptional<z.ZodString>;
3839
+ primary_user: z.ZodOptional<z.ZodString>;
3840
+ }, "strip", z.ZodTypeAny, {
3841
+ billing_provider_environment?: string | undefined;
3842
+ billing_provider_id?: string | undefined;
3843
+ primary_user?: string | undefined;
3844
+ }, {
3845
+ billing_provider_environment?: string | undefined;
3846
+ billing_provider_id?: string | undefined;
3847
+ primary_user?: string | undefined;
3848
+ }>;
3849
+ export type BillingSettingsOrg = z.infer<typeof billingSettingsOrgSchema>;
3850
+ /** Schema for an integration provider entry.
3851
+
3852
+ Represents an available integration provider (OAuth or MCP) that can be
3853
+ used with `create integration --provider <provider>`.
3854
+ */
3855
+ export declare const integrationProviderSchema: z.ZodObject<{
3856
+ auth_type: z.ZodString;
3857
+ description: z.ZodOptional<z.ZodString>;
3858
+ display_name: z.ZodString;
3859
+ provider: z.ZodString;
3860
+ type: z.ZodString;
3861
+ }, "strip", z.ZodTypeAny, {
3862
+ type: string;
3863
+ provider: string;
3864
+ display_name: string;
3865
+ auth_type: string;
3866
+ description?: string | undefined;
3867
+ }, {
3868
+ type: string;
3869
+ provider: string;
3870
+ display_name: string;
3871
+ auth_type: string;
3872
+ description?: string | undefined;
3873
+ }>;
3874
+ export type IntegrationProvider = z.infer<typeof integrationProviderSchema>;
3875
+ /** Schema for an organization.
3876
+
3877
+ Maps to serialized org output from developer portal API.
3878
+ */
3879
+ export declare const developerOrgSchema: z.ZodObject<{
3880
+ created_at: z.ZodOptional<z.ZodString>;
3881
+ description: z.ZodOptional<z.ZodString>;
3882
+ domain: z.ZodString;
3883
+ id: z.ZodString;
3884
+ industry: z.ZodOptional<z.ZodString>;
3885
+ name: z.ZodString;
3886
+ sandbox: z.ZodOptional<z.ZodString>;
3887
+ slug: z.ZodString;
3888
+ status: z.ZodOptional<z.ZodString>;
3889
+ updated_at: z.ZodOptional<z.ZodString>;
3890
+ website: z.ZodOptional<z.ZodString>;
3891
+ }, "strip", z.ZodTypeAny, {
3892
+ id: string;
3893
+ name: string;
3894
+ slug: string;
3895
+ domain: string;
3896
+ status?: string | undefined;
3897
+ created_at?: string | undefined;
3898
+ sandbox?: string | undefined;
3899
+ updated_at?: string | undefined;
3900
+ description?: string | undefined;
3901
+ industry?: string | undefined;
3902
+ website?: string | undefined;
3903
+ }, {
3904
+ id: string;
3905
+ name: string;
3906
+ slug: string;
3907
+ domain: string;
3908
+ status?: string | undefined;
3909
+ created_at?: string | undefined;
3910
+ sandbox?: string | undefined;
3911
+ updated_at?: string | undefined;
3912
+ description?: string | undefined;
3913
+ industry?: string | undefined;
3914
+ website?: string | undefined;
3915
+ }>;
3916
+ export type DeveloperOrg = z.infer<typeof developerOrgSchema>;
3917
+ /** API schema for a credential with decrypted secret values. */
3918
+ export declare const credentialWithSecretsSchema: z.ZodObject<{
3919
+ credential: z.ZodUnknown;
3920
+ }, "strip", z.ZodTypeAny, {
3921
+ credential?: unknown;
3922
+ }, {
3923
+ credential?: unknown;
3924
+ }>;
3925
+ export type CredentialWithSecrets = z.infer<typeof credentialWithSecretsSchema>;
3926
+ /** API schema for a storage file. */
3927
+ export declare const storageFileSchema: z.ZodObject<{
3928
+ content_type: z.ZodOptional<z.ZodString>;
3929
+ created_at: z.ZodOptional<z.ZodString>;
3930
+ filename: z.ZodOptional<z.ZodString>;
3931
+ id: z.ZodString;
3932
+ image_source: z.ZodOptional<z.ZodUnknown>;
3933
+ org: z.ZodOptional<z.ZodString>;
3934
+ sandbox: z.ZodOptional<z.ZodString>;
3935
+ size: z.ZodOptional<z.ZodNumber>;
3936
+ updated_at: z.ZodOptional<z.ZodString>;
3937
+ url: z.ZodOptional<z.ZodString>;
3938
+ }, "strip", z.ZodTypeAny, {
3939
+ id: string;
3940
+ url?: string | undefined;
3941
+ created_at?: string | undefined;
3942
+ org?: string | undefined;
3943
+ sandbox?: string | undefined;
3944
+ updated_at?: string | undefined;
3945
+ content_type?: string | undefined;
3946
+ filename?: string | undefined;
3947
+ image_source?: unknown;
3948
+ size?: number | undefined;
3949
+ }, {
3950
+ id: string;
3951
+ url?: string | undefined;
3952
+ created_at?: string | undefined;
3953
+ org?: string | undefined;
3954
+ sandbox?: string | undefined;
3955
+ updated_at?: string | undefined;
3956
+ content_type?: string | undefined;
3957
+ filename?: string | undefined;
3958
+ image_source?: unknown;
3959
+ size?: number | undefined;
3960
+ }>;
3961
+ export type StorageFile = z.infer<typeof storageFileSchema>;
3962
+ /** Schema for the API explorer response. */
3963
+ export declare const apiExplorerIndexSchema: z.ZodObject<{
3964
+ data: z.ZodArray<z.ZodObject<{
3965
+ deprecated: z.ZodBoolean;
3966
+ description: z.ZodOptional<z.ZodString>;
3967
+ errors: z.ZodArray<z.ZodUnknown, "many">;
3968
+ method: z.ZodString;
3969
+ params: z.ZodArray<z.ZodUnknown, "many">;
3970
+ path: z.ZodString;
3971
+ returns: z.ZodOptional<z.ZodUnknown>;
3972
+ scope: z.ZodString;
3973
+ tags: z.ZodArray<z.ZodString, "many">;
3974
+ }, "strip", z.ZodTypeAny, {
3975
+ method: string;
3976
+ params: unknown[];
3977
+ path: string;
3978
+ scope: string;
3979
+ deprecated: boolean;
3980
+ errors: unknown[];
3981
+ tags: string[];
3982
+ description?: string | undefined;
3983
+ returns?: unknown;
3984
+ }, {
3985
+ method: string;
3986
+ params: unknown[];
3987
+ path: string;
3988
+ scope: string;
3989
+ deprecated: boolean;
3990
+ errors: unknown[];
3991
+ tags: string[];
3992
+ description?: string | undefined;
3993
+ returns?: unknown;
3994
+ }>, "many">;
3995
+ schemas: z.ZodOptional<z.ZodUnknown>;
3996
+ }, "strip", z.ZodTypeAny, {
3997
+ data: {
3998
+ method: string;
3999
+ params: unknown[];
4000
+ path: string;
4001
+ scope: string;
4002
+ deprecated: boolean;
4003
+ errors: unknown[];
4004
+ tags: string[];
4005
+ description?: string | undefined;
4006
+ returns?: unknown;
4007
+ }[];
4008
+ schemas?: unknown;
4009
+ }, {
4010
+ data: {
4011
+ method: string;
4012
+ params: unknown[];
4013
+ path: string;
4014
+ scope: string;
4015
+ deprecated: boolean;
4016
+ errors: unknown[];
4017
+ tags: string[];
4018
+ description?: string | undefined;
4019
+ returns?: unknown;
4020
+ }[];
4021
+ schemas?: unknown;
4022
+ }>;
4023
+ export type ApiExplorerIndex = z.infer<typeof apiExplorerIndexSchema>;
4024
+ /** Schema for an app slug mapping. */
4025
+ export declare const appSlugSchema: z.ZodObject<{
4026
+ app: z.ZodString;
4027
+ created_at: z.ZodOptional<z.ZodString>;
4028
+ creator: z.ZodOptional<z.ZodString>;
4029
+ id: z.ZodString;
4030
+ slug: z.ZodString;
4031
+ updated_at: z.ZodOptional<z.ZodString>;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ id: string;
4034
+ slug: string;
4035
+ app: string;
4036
+ created_at?: string | undefined;
4037
+ updated_at?: string | undefined;
4038
+ creator?: string | undefined;
4039
+ }, {
4040
+ id: string;
4041
+ slug: string;
4042
+ app: string;
4043
+ created_at?: string | undefined;
4044
+ updated_at?: string | undefined;
4045
+ creator?: string | undefined;
4046
+ }>;
4047
+ export type AppSlug = z.infer<typeof appSlugSchema>;
4048
+ /** Schema for a context item.
4049
+
4050
+ Maps to serialized context item output from developer portal API.
4051
+ */
4052
+ export declare const contextItemSchema: z.ZodObject<{
4053
+ agent: z.ZodOptional<z.ZodString>;
4054
+ content_type: z.ZodOptional<z.ZodString>;
4055
+ created_at: z.ZodOptional<z.ZodString>;
4056
+ id: z.ZodString;
4057
+ item_group: z.ZodOptional<z.ZodString>;
4058
+ metadata: z.ZodOptional<z.ZodUnknown>;
4059
+ normalized_content: z.ZodOptional<z.ZodString>;
4060
+ raw_content: z.ZodOptional<z.ZodUnknown>;
4061
+ source: z.ZodOptional<z.ZodString>;
4062
+ team: z.ZodOptional<z.ZodString>;
4063
+ updated_at: z.ZodOptional<z.ZodString>;
4064
+ user: z.ZodOptional<z.ZodString>;
4065
+ }, "strip", z.ZodTypeAny, {
4066
+ id: string;
4067
+ agent?: string | undefined;
4068
+ created_at?: string | undefined;
4069
+ metadata?: unknown;
4070
+ team?: string | undefined;
4071
+ user?: string | undefined;
4072
+ source?: string | undefined;
4073
+ updated_at?: string | undefined;
4074
+ content_type?: string | undefined;
4075
+ raw_content?: unknown;
4076
+ item_group?: string | undefined;
4077
+ normalized_content?: string | undefined;
4078
+ }, {
4079
+ id: string;
4080
+ agent?: string | undefined;
4081
+ created_at?: string | undefined;
4082
+ metadata?: unknown;
4083
+ team?: string | undefined;
4084
+ user?: string | undefined;
4085
+ source?: string | undefined;
4086
+ updated_at?: string | undefined;
4087
+ content_type?: string | undefined;
4088
+ raw_content?: unknown;
4089
+ item_group?: string | undefined;
4090
+ normalized_content?: string | undefined;
4091
+ }>;
4092
+ export type ContextItem = z.infer<typeof contextItemSchema>;
4093
+ /** API schema for push notification test results. */
4094
+ export declare const pushNotificationResultSchema: z.ZodObject<{
4095
+ results: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
4096
+ success: z.ZodBoolean;
4097
+ total_sent: z.ZodOptional<z.ZodNumber>;
4098
+ }, "strip", z.ZodTypeAny, {
4099
+ success: boolean;
4100
+ results?: unknown[] | undefined;
4101
+ total_sent?: number | undefined;
4102
+ }, {
4103
+ success: boolean;
4104
+ results?: unknown[] | undefined;
4105
+ total_sent?: number | undefined;
4106
+ }>;
4107
+ export type PushNotificationResult = z.infer<typeof pushNotificationResultSchema>;
4108
+ /** Schema for an OAuth client registration. */
4109
+ export declare const oAuthClientSchema: z.ZodObject<{
4110
+ client_id: z.ZodString;
4111
+ client_name: z.ZodString;
4112
+ client_secret: z.ZodOptional<z.ZodString>;
4113
+ created_at: z.ZodOptional<z.ZodString>;
4114
+ enabled: z.ZodBoolean;
4115
+ id: z.ZodString;
4116
+ redirect_uris: z.ZodArray<z.ZodString, "many">;
4117
+ scopes: z.ZodArray<z.ZodString, "many">;
4118
+ updated_at: z.ZodOptional<z.ZodString>;
4119
+ }, "strip", z.ZodTypeAny, {
4120
+ id: string;
4121
+ enabled: boolean;
4122
+ client_id: string;
4123
+ scopes: string[];
4124
+ client_name: string;
4125
+ redirect_uris: string[];
4126
+ created_at?: string | undefined;
4127
+ updated_at?: string | undefined;
4128
+ client_secret?: string | undefined;
4129
+ }, {
4130
+ id: string;
4131
+ enabled: boolean;
4132
+ client_id: string;
4133
+ scopes: string[];
4134
+ client_name: string;
4135
+ redirect_uris: string[];
4136
+ created_at?: string | undefined;
4137
+ updated_at?: string | undefined;
4138
+ client_secret?: string | undefined;
4139
+ }>;
4140
+ export type OAuthClient = z.infer<typeof oAuthClientSchema>;
4141
+ /** Schema for integration action metadata. */
4142
+ export declare const integrationActionSchema: z.ZodObject<{
4143
+ description: z.ZodOptional<z.ZodString>;
4144
+ json_schema: z.ZodUnknown;
4145
+ key: z.ZodString;
4146
+ scopes_any_of: z.ZodOptional<z.ZodUnknown>;
4147
+ }, "strip", z.ZodTypeAny, {
4148
+ key: string;
4149
+ description?: string | undefined;
4150
+ json_schema?: unknown;
4151
+ scopes_any_of?: unknown;
4152
+ }, {
4153
+ key: string;
4154
+ description?: string | undefined;
4155
+ json_schema?: unknown;
4156
+ scopes_any_of?: unknown;
4157
+ }>;
4158
+ export type IntegrationAction = z.infer<typeof integrationActionSchema>;
4159
+ /** Schema for app billing settings. */
4160
+ export declare const billingSettingsAppSchema: z.ZodObject<{
4161
+ billing_account: z.ZodOptional<z.ZodString>;
4162
+ org_billing_enabled: z.ZodOptional<z.ZodBoolean>;
4163
+ }, "strip", z.ZodTypeAny, {
4164
+ billing_account?: string | undefined;
4165
+ org_billing_enabled?: boolean | undefined;
4166
+ }, {
4167
+ billing_account?: string | undefined;
4168
+ org_billing_enabled?: boolean | undefined;
4169
+ }>;
4170
+ export type BillingSettingsApp = z.infer<typeof billingSettingsAppSchema>;
4171
+ /** Schema for an API key.
4172
+
4173
+ Maps to serialized app key output from developer portal API.
4174
+ */
4175
+ export declare const appKeySchema: z.ZodObject<{
4176
+ created_at: z.ZodOptional<z.ZodString>;
4177
+ full_key: z.ZodOptional<z.ZodString>;
4178
+ id: z.ZodString;
4179
+ key_hint: z.ZodOptional<z.ZodString>;
4180
+ key_value: z.ZodOptional<z.ZodString>;
4181
+ last_used_at: z.ZodOptional<z.ZodString>;
4182
+ status: z.ZodString;
4183
+ type: z.ZodString;
4184
+ }, "strip", z.ZodTypeAny, {
4185
+ type: string;
4186
+ status: string;
4187
+ id: string;
4188
+ created_at?: string | undefined;
4189
+ full_key?: string | undefined;
4190
+ key_hint?: string | undefined;
4191
+ key_value?: string | undefined;
4192
+ last_used_at?: string | undefined;
4193
+ }, {
4194
+ type: string;
4195
+ status: string;
4196
+ id: string;
4197
+ created_at?: string | undefined;
4198
+ full_key?: string | undefined;
4199
+ key_hint?: string | undefined;
4200
+ key_value?: string | undefined;
4201
+ last_used_at?: string | undefined;
4202
+ }>;
4203
+ export type AppKey = z.infer<typeof appKeySchema>;
4204
+ /** Schema for task update parameters.
4205
+
4206
+ Used by both Users.Tasks.Update and Teams.Tasks.Update actions.
4207
+ All fields are optional since updates only modify provided fields.
4208
+ */
4209
+ export declare const taskUpdateParamsSchema: z.ZodObject<{
4210
+ description: z.ZodOptional<z.ZodString>;
4211
+ due_date: z.ZodOptional<z.ZodString>;
4212
+ links: z.ZodOptional<z.ZodUnknown>;
4213
+ metadata: z.ZodOptional<z.ZodUnknown>;
4214
+ name: z.ZodOptional<z.ZodString>;
4215
+ owner_persona: z.ZodOptional<z.ZodString>;
4216
+ owner_user: z.ZodOptional<z.ZodString>;
4217
+ priority: z.ZodOptional<z.ZodNumber>;
4218
+ status: z.ZodOptional<z.ZodString>;
4219
+ }, "strip", z.ZodTypeAny, {
4220
+ status?: string | undefined;
4221
+ metadata?: unknown;
4222
+ name?: string | undefined;
4223
+ links?: unknown;
4224
+ description?: string | undefined;
4225
+ due_date?: string | undefined;
4226
+ owner_persona?: string | undefined;
4227
+ owner_user?: string | undefined;
4228
+ priority?: number | undefined;
4229
+ }, {
4230
+ status?: string | undefined;
4231
+ metadata?: unknown;
4232
+ name?: string | undefined;
4233
+ links?: unknown;
4234
+ description?: string | undefined;
4235
+ due_date?: string | undefined;
4236
+ owner_persona?: string | undefined;
4237
+ owner_user?: string | undefined;
4238
+ priority?: number | undefined;
4239
+ }>;
4240
+ export type TaskUpdateParams = z.infer<typeof taskUpdateParamsSchema>;
4241
+ /** Schema for a context integration.
4242
+
4243
+ Maps to serialized integration output from developer portal API.
4244
+ */
4245
+ export declare const contextIntegrationSchema: z.ZodObject<{
4246
+ agent: z.ZodOptional<z.ZodString>;
4247
+ auth_type: z.ZodString;
4248
+ connected_at: z.ZodOptional<z.ZodString>;
4249
+ created_at: z.ZodOptional<z.ZodString>;
4250
+ expires_at: z.ZodOptional<z.ZodString>;
4251
+ id: z.ZodString;
4252
+ installation: z.ZodOptional<z.ZodString>;
4253
+ last_refreshed_at: z.ZodOptional<z.ZodString>;
4254
+ metadata: z.ZodOptional<z.ZodUnknown>;
4255
+ org: z.ZodOptional<z.ZodString>;
4256
+ provider: z.ZodString;
4257
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4258
+ status: z.ZodString;
4259
+ team: z.ZodOptional<z.ZodString>;
4260
+ updated_at: z.ZodOptional<z.ZodString>;
4261
+ user: z.ZodOptional<z.ZodString>;
4262
+ workspace_key: z.ZodOptional<z.ZodString>;
4263
+ }, "strip", z.ZodTypeAny, {
4264
+ status: string;
4265
+ id: string;
4266
+ provider: string;
4267
+ auth_type: string;
4268
+ agent?: string | undefined;
4269
+ created_at?: string | undefined;
4270
+ metadata?: unknown;
4271
+ org?: string | undefined;
4272
+ team?: string | undefined;
4273
+ user?: string | undefined;
4274
+ updated_at?: string | undefined;
4275
+ expires_at?: string | undefined;
4276
+ workspace_key?: string | undefined;
4277
+ scopes?: string[] | undefined;
4278
+ connected_at?: string | undefined;
4279
+ installation?: string | undefined;
4280
+ last_refreshed_at?: string | undefined;
4281
+ }, {
4282
+ status: string;
4283
+ id: string;
4284
+ provider: string;
4285
+ auth_type: string;
4286
+ agent?: string | undefined;
4287
+ created_at?: string | undefined;
4288
+ metadata?: unknown;
4289
+ org?: string | undefined;
4290
+ team?: string | undefined;
4291
+ user?: string | undefined;
4292
+ updated_at?: string | undefined;
4293
+ expires_at?: string | undefined;
4294
+ workspace_key?: string | undefined;
4295
+ scopes?: string[] | undefined;
4296
+ connected_at?: string | undefined;
4297
+ installation?: string | undefined;
4298
+ last_refreshed_at?: string | undefined;
4299
+ }>;
4300
+ export type ContextIntegration = z.infer<typeof contextIntegrationSchema>;
4301
+ /** API schema for a scrape result. */
4302
+ export declare const scrapeSchema: z.ZodObject<{
4303
+ created_at: z.ZodOptional<z.ZodString>;
4304
+ description: z.ZodOptional<z.ZodString>;
4305
+ id: z.ZodString;
4306
+ image_height: z.ZodOptional<z.ZodNumber>;
4307
+ image_url: z.ZodOptional<z.ZodString>;
4308
+ image_width: z.ZodOptional<z.ZodNumber>;
4309
+ last_scraped_at: z.ZodOptional<z.ZodString>;
4310
+ metadata: z.ZodOptional<z.ZodUnknown>;
4311
+ status: z.ZodOptional<z.ZodString>;
4312
+ title: z.ZodOptional<z.ZodString>;
4313
+ updated_at: z.ZodOptional<z.ZodString>;
4314
+ url: z.ZodOptional<z.ZodString>;
4315
+ version: z.ZodOptional<z.ZodNumber>;
4316
+ }, "strip", z.ZodTypeAny, {
4317
+ id: string;
4318
+ url?: string | undefined;
4319
+ status?: string | undefined;
4320
+ created_at?: string | undefined;
4321
+ metadata?: unknown;
4322
+ updated_at?: string | undefined;
4323
+ title?: string | undefined;
4324
+ description?: string | undefined;
4325
+ image_height?: number | undefined;
4326
+ image_url?: string | undefined;
4327
+ image_width?: number | undefined;
4328
+ version?: number | undefined;
4329
+ last_scraped_at?: string | undefined;
4330
+ }, {
4331
+ id: string;
4332
+ url?: string | undefined;
4333
+ status?: string | undefined;
4334
+ created_at?: string | undefined;
4335
+ metadata?: unknown;
4336
+ updated_at?: string | undefined;
4337
+ title?: string | undefined;
4338
+ description?: string | undefined;
4339
+ image_height?: number | undefined;
4340
+ image_url?: string | undefined;
4341
+ image_width?: number | undefined;
4342
+ version?: number | undefined;
4343
+ last_scraped_at?: string | undefined;
4344
+ }>;
4345
+ export type Scrape = z.infer<typeof scrapeSchema>;
4346
+ /** Schema for comment creation parameters.
4347
+
4348
+ Used by both Users.Tasks.CreateComment and Teams.Tasks.CreateComment actions.
4349
+ */
4350
+ export declare const commentCreateParamsSchema: z.ZodObject<{
4351
+ body: z.ZodString;
4352
+ }, "strip", z.ZodTypeAny, {
4353
+ body: string;
4354
+ }, {
4355
+ body: string;
4356
+ }>;
4357
+ export type CommentCreateParams = z.infer<typeof commentCreateParamsSchema>;
4358
+ /** Schema for a user (developer admin view).
4359
+
4360
+ Maps to serialized user output from developer portal API.
4361
+ */
4362
+ export declare const developerUserSchema: z.ZodObject<{
4363
+ alias: z.ZodOptional<z.ZodString>;
4364
+ confirmed_at: z.ZodOptional<z.ZodString>;
4365
+ created_at: z.ZodOptional<z.ZodString>;
4366
+ email: z.ZodString;
4367
+ full_name: z.ZodOptional<z.ZodString>;
4368
+ id: z.ZodString;
4369
+ is_system_user: z.ZodOptional<z.ZodBoolean>;
4370
+ org: z.ZodOptional<z.ZodString>;
4371
+ org_name: z.ZodOptional<z.ZodString>;
4372
+ org_role: z.ZodOptional<z.ZodString>;
4373
+ password: z.ZodOptional<z.ZodString>;
4374
+ sandbox: z.ZodOptional<z.ZodString>;
4375
+ updated_at: z.ZodOptional<z.ZodString>;
4376
+ }, "strip", z.ZodTypeAny, {
4377
+ email: string;
4378
+ id: string;
4379
+ password?: string | undefined;
4380
+ alias?: string | undefined;
4381
+ full_name?: string | undefined;
4382
+ created_at?: string | undefined;
4383
+ org?: string | undefined;
4384
+ sandbox?: string | undefined;
4385
+ updated_at?: string | undefined;
4386
+ confirmed_at?: string | undefined;
4387
+ is_system_user?: boolean | undefined;
4388
+ org_name?: string | undefined;
4389
+ org_role?: string | undefined;
4390
+ }, {
4391
+ email: string;
4392
+ id: string;
4393
+ password?: string | undefined;
4394
+ alias?: string | undefined;
4395
+ full_name?: string | undefined;
4396
+ created_at?: string | undefined;
4397
+ org?: string | undefined;
4398
+ sandbox?: string | undefined;
4399
+ updated_at?: string | undefined;
4400
+ confirmed_at?: string | undefined;
4401
+ is_system_user?: boolean | undefined;
4402
+ org_name?: string | undefined;
4403
+ org_role?: string | undefined;
4404
+ }>;
4405
+ export type DeveloperUser = z.infer<typeof developerUserSchema>;
4406
+ /** Schema for password update parameters.
4407
+ */
4408
+ export declare const passwordUpdateParamsSchema: z.ZodObject<{
4409
+ password: z.ZodString;
4410
+ password_confirmation: z.ZodString;
4411
+ }, "strip", z.ZodTypeAny, {
4412
+ password: string;
4413
+ password_confirmation: string;
4414
+ }, {
4415
+ password: string;
4416
+ password_confirmation: string;
4417
+ }>;
4418
+ export type PasswordUpdateParams = z.infer<typeof passwordUpdateParamsSchema>;
4419
+ /** Schema for OAuth client list responses. */
4420
+ export declare const oAuthClientListSchema: z.ZodObject<{
4421
+ data: z.ZodArray<z.ZodObject<{
4422
+ client_id: z.ZodString;
4423
+ client_name: z.ZodString;
4424
+ client_secret: z.ZodOptional<z.ZodString>;
4425
+ created_at: z.ZodOptional<z.ZodString>;
4426
+ enabled: z.ZodBoolean;
4427
+ id: z.ZodString;
4428
+ redirect_uris: z.ZodArray<z.ZodString, "many">;
4429
+ scopes: z.ZodArray<z.ZodString, "many">;
4430
+ updated_at: z.ZodOptional<z.ZodString>;
4431
+ }, "strip", z.ZodTypeAny, {
4432
+ id: string;
4433
+ enabled: boolean;
4434
+ client_id: string;
4435
+ scopes: string[];
4436
+ client_name: string;
4437
+ redirect_uris: string[];
4438
+ created_at?: string | undefined;
4439
+ updated_at?: string | undefined;
4440
+ client_secret?: string | undefined;
4441
+ }, {
4442
+ id: string;
4443
+ enabled: boolean;
4444
+ client_id: string;
4445
+ scopes: string[];
4446
+ client_name: string;
4447
+ redirect_uris: string[];
4448
+ created_at?: string | undefined;
4449
+ updated_at?: string | undefined;
4450
+ client_secret?: string | undefined;
4451
+ }>, "many">;
4452
+ }, "strip", z.ZodTypeAny, {
4453
+ data: {
4454
+ id: string;
4455
+ enabled: boolean;
4456
+ client_id: string;
4457
+ scopes: string[];
4458
+ client_name: string;
4459
+ redirect_uris: string[];
4460
+ created_at?: string | undefined;
4461
+ updated_at?: string | undefined;
4462
+ client_secret?: string | undefined;
4463
+ }[];
4464
+ }, {
4465
+ data: {
4466
+ id: string;
4467
+ enabled: boolean;
4468
+ client_id: string;
4469
+ scopes: string[];
4470
+ client_name: string;
4471
+ redirect_uris: string[];
4472
+ created_at?: string | undefined;
4473
+ updated_at?: string | undefined;
4474
+ client_secret?: string | undefined;
4475
+ }[];
4476
+ }>;
4477
+ export type OAuthClientList = z.infer<typeof oAuthClientListSchema>;
4478
+ //# sourceMappingURL=common.d.ts.map