@epilot/sdk 2.4.4-alpha.0 → 2.4.4

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 (222) hide show
  1. package/dist/access-token.d-CnmUTOlq.d.cts +552 -0
  2. package/dist/access-token.d-CnmUTOlq.d.ts +552 -0
  3. package/dist/address-suggestions.d-_YwTOR-9.d.cts +339 -0
  4. package/dist/address-suggestions.d-_YwTOR-9.d.ts +339 -0
  5. package/dist/address.d-CwAPOVxa.d.cts +437 -0
  6. package/dist/address.d-CwAPOVxa.d.ts +437 -0
  7. package/dist/ai-agents.d-OkXfr2bz.d.cts +1339 -0
  8. package/dist/ai-agents.d-OkXfr2bz.d.ts +1339 -0
  9. package/dist/apis/access-token.d.cts +18 -0
  10. package/dist/apis/access-token.d.ts +12 -9
  11. package/dist/apis/address-suggestions.d.cts +18 -0
  12. package/dist/apis/address-suggestions.d.ts +12 -9
  13. package/dist/apis/address.d.cts +18 -0
  14. package/dist/apis/address.d.ts +12 -9
  15. package/dist/apis/ai-agents.d.cts +18 -0
  16. package/dist/apis/ai-agents.d.ts +12 -9
  17. package/dist/apis/app.d.cts +18 -0
  18. package/dist/apis/app.d.ts +12 -9
  19. package/dist/apis/audit-logs.d.cts +18 -0
  20. package/dist/apis/audit-logs.d.ts +12 -9
  21. package/dist/apis/automation.d.cts +18 -0
  22. package/dist/apis/automation.d.ts +12 -9
  23. package/dist/apis/billing.d.cts +18 -0
  24. package/dist/apis/billing.d.ts +12 -9
  25. package/dist/apis/blueprint-manifest.d.cts +18 -0
  26. package/dist/apis/blueprint-manifest.d.ts +12 -9
  27. package/dist/apis/calendar.d.cts +18 -0
  28. package/dist/apis/calendar.d.ts +12 -9
  29. package/dist/apis/configuration-hub.d.cts +18 -0
  30. package/dist/apis/configuration-hub.d.ts +12 -9
  31. package/dist/apis/consent.d.cts +18 -0
  32. package/dist/apis/consent.d.ts +12 -9
  33. package/dist/apis/customer-portal.d.cts +18 -0
  34. package/dist/apis/customer-portal.d.ts +12 -9
  35. package/dist/apis/dashboard.d.cts +18 -0
  36. package/dist/apis/dashboard.d.ts +12 -9
  37. package/dist/apis/data-governance.d.cts +18 -0
  38. package/dist/apis/data-governance.d.ts +12 -9
  39. package/dist/apis/deduplication.d.cts +18 -0
  40. package/dist/apis/deduplication.d.ts +12 -9
  41. package/dist/apis/design.d.cts +18 -0
  42. package/dist/apis/design.d.ts +12 -9
  43. package/dist/apis/document.d.cts +18 -0
  44. package/dist/apis/document.d.ts +12 -9
  45. package/dist/apis/email-settings.d.cts +18 -0
  46. package/dist/apis/email-settings.d.ts +12 -9
  47. package/dist/apis/email-template.d.cts +18 -0
  48. package/dist/apis/email-template.d.ts +12 -9
  49. package/dist/apis/entity-mapping.d.cts +18 -0
  50. package/dist/apis/entity-mapping.d.ts +12 -9
  51. package/dist/apis/entity.d.cts +18 -0
  52. package/dist/apis/entity.d.ts +12 -9
  53. package/dist/apis/environments.d.cts +18 -0
  54. package/dist/apis/environments.d.ts +12 -9
  55. package/dist/apis/event-catalog.d.cts +18 -0
  56. package/dist/apis/event-catalog.d.ts +12 -9
  57. package/dist/apis/file.d.cts +18 -0
  58. package/dist/apis/file.d.ts +12 -9
  59. package/dist/apis/iban.d.cts +18 -0
  60. package/dist/apis/iban.d.ts +12 -9
  61. package/dist/apis/integration-toolkit.d.cts +18 -0
  62. package/dist/apis/integration-toolkit.d.ts +12 -9
  63. package/dist/apis/journey.d.cts +18 -0
  64. package/dist/apis/journey.d.ts +12 -9
  65. package/dist/apis/kanban.d.cts +18 -0
  66. package/dist/apis/kanban.d.ts +12 -9
  67. package/dist/apis/message.d.cts +18 -0
  68. package/dist/apis/message.d.ts +12 -9
  69. package/dist/apis/metering.d.cts +18 -0
  70. package/dist/apis/metering.d.ts +12 -9
  71. package/dist/apis/notes.d.cts +18 -0
  72. package/dist/apis/notes.d.ts +12 -9
  73. package/dist/apis/notification.d.cts +18 -0
  74. package/dist/apis/notification.d.ts +12 -9
  75. package/dist/apis/organization.d.cts +18 -0
  76. package/dist/apis/organization.d.ts +12 -9
  77. package/dist/apis/partner-directory.d.cts +18 -0
  78. package/dist/apis/partner-directory.d.ts +12 -9
  79. package/dist/apis/permissions.d.cts +18 -0
  80. package/dist/apis/permissions.d.ts +12 -9
  81. package/dist/apis/pricing-tier.d.cts +18 -0
  82. package/dist/apis/pricing-tier.d.ts +12 -9
  83. package/dist/apis/pricing.d.cts +18 -0
  84. package/dist/apis/pricing.d.ts +12 -9
  85. package/dist/apis/purpose.d.cts +18 -0
  86. package/dist/apis/purpose.d.ts +12 -9
  87. package/dist/apis/query.d.cts +18 -0
  88. package/dist/apis/query.d.ts +12 -9
  89. package/dist/apis/sandbox.d.cts +18 -0
  90. package/dist/apis/sandbox.d.ts +12 -9
  91. package/dist/apis/sharing.d.cts +18 -0
  92. package/dist/apis/sharing.d.ts +12 -9
  93. package/dist/apis/submission.d.cts +18 -0
  94. package/dist/apis/submission.d.ts +12 -9
  95. package/dist/apis/target.d.cts +597 -0
  96. package/dist/apis/target.d.ts +591 -9
  97. package/dist/apis/targeting.d.cts +18 -0
  98. package/dist/apis/targeting.d.ts +12 -9
  99. package/dist/apis/template-variables.d.cts +18 -0
  100. package/dist/apis/template-variables.d.ts +12 -9
  101. package/dist/apis/user.d.cts +18 -0
  102. package/dist/apis/user.d.ts +12 -9
  103. package/dist/apis/validation-rules.d.cts +18 -0
  104. package/dist/apis/validation-rules.d.ts +12 -9
  105. package/dist/apis/webhooks.d.cts +18 -0
  106. package/dist/apis/webhooks.d.ts +12 -9
  107. package/dist/apis/workflow-definition.d.cts +18 -0
  108. package/dist/apis/workflow-definition.d.ts +12 -9
  109. package/dist/apis/workflow.d.cts +18 -0
  110. package/dist/apis/workflow.d.ts +12 -9
  111. package/dist/app.d-u7Dq42kU.d.cts +3391 -0
  112. package/dist/app.d-u7Dq42kU.d.ts +3391 -0
  113. package/dist/audit-logs.d-BRToFqeX.d.cts +287 -0
  114. package/dist/audit-logs.d-BRToFqeX.d.ts +287 -0
  115. package/dist/automation.d-Du6-uiz5.d.cts +5283 -0
  116. package/dist/automation.d-Du6-uiz5.d.ts +5283 -0
  117. package/dist/billing.d-Bs8Ku9qE.d.cts +993 -0
  118. package/dist/billing.d-Bs8Ku9qE.d.ts +993 -0
  119. package/dist/blueprint-manifest.d-BPyzoR0X.d.cts +4343 -0
  120. package/dist/blueprint-manifest.d-BPyzoR0X.d.ts +4343 -0
  121. package/dist/calendar.d-BEjLDagH.d.cts +353 -0
  122. package/dist/calendar.d-BEjLDagH.d.ts +353 -0
  123. package/dist/configuration-hub.d-Cqaq2F-W.d.cts +478 -0
  124. package/dist/configuration-hub.d-Cqaq2F-W.d.ts +478 -0
  125. package/dist/consent.d-C2PROHhX.d.cts +265 -0
  126. package/dist/consent.d-C2PROHhX.d.ts +265 -0
  127. package/dist/customer-portal.d-DyZ2n2dW.d.cts +16728 -0
  128. package/dist/customer-portal.d-DyZ2n2dW.d.ts +16728 -0
  129. package/dist/dashboard.d-CsGcA74I.d.cts +440 -0
  130. package/dist/dashboard.d-CsGcA74I.d.ts +440 -0
  131. package/dist/data-governance.d-BbZ466j5.d.cts +1178 -0
  132. package/dist/data-governance.d-BbZ466j5.d.ts +1178 -0
  133. package/dist/deduplication.d-D5GYddVu.d.cts +218 -0
  134. package/dist/deduplication.d-D5GYddVu.d.ts +218 -0
  135. package/dist/design.d-BRre8iLg.d.cts +2346 -0
  136. package/dist/design.d-BRre8iLg.d.ts +2346 -0
  137. package/dist/document.d-DN37pjdx.d.cts +648 -0
  138. package/dist/document.d-DN37pjdx.d.ts +648 -0
  139. package/dist/email-settings.d-B7Q_xT25.d.cts +2417 -0
  140. package/dist/email-settings.d-B7Q_xT25.d.ts +2417 -0
  141. package/dist/email-template.d-gtQkdaXM.d.cts +1188 -0
  142. package/dist/email-template.d-gtQkdaXM.d.ts +1188 -0
  143. package/dist/entity-mapping.d-DKSW3sfy.d.cts +1092 -0
  144. package/dist/entity-mapping.d-DKSW3sfy.d.ts +1092 -0
  145. package/dist/entity.d-BHR9dEon.d.cts +18479 -0
  146. package/dist/entity.d-BHR9dEon.d.ts +18479 -0
  147. package/dist/environments.d-BvqvN-PD.d.cts +382 -0
  148. package/dist/environments.d-BvqvN-PD.d.ts +382 -0
  149. package/dist/event-catalog.d-ENw6HO-w.d.cts +1511 -0
  150. package/dist/event-catalog.d-ENw6HO-w.d.ts +1511 -0
  151. package/dist/file.d-DcTJxjp7.d.cts +2992 -0
  152. package/dist/file.d-DcTJxjp7.d.ts +2992 -0
  153. package/dist/iban.d-BwdiGbxi.d.cts +70 -0
  154. package/dist/iban.d-BwdiGbxi.d.ts +70 -0
  155. package/dist/index.d.cts +182 -0
  156. package/dist/index.d.ts +182 -12
  157. package/dist/integration-toolkit.d-Ry-KC9ow.d.cts +5796 -0
  158. package/dist/integration-toolkit.d-Ry-KC9ow.d.ts +5796 -0
  159. package/dist/journey.d-ClXO0xK8.d.cts +1931 -0
  160. package/dist/journey.d-ClXO0xK8.d.ts +1931 -0
  161. package/dist/kanban.d-BHnSRCYW.d.cts +760 -0
  162. package/dist/kanban.d-BHnSRCYW.d.ts +760 -0
  163. package/dist/message.d-B5UuSqgw.d.cts +3811 -0
  164. package/dist/message.d-B5UuSqgw.d.ts +3811 -0
  165. package/dist/metering.d-DvtPv7wk.d.cts +1841 -0
  166. package/dist/metering.d-DvtPv7wk.d.ts +1841 -0
  167. package/dist/notes.d-BC-scR42.d.cts +1046 -0
  168. package/dist/notes.d-BC-scR42.d.ts +1046 -0
  169. package/dist/notification.d-BfBL3lga.d.cts +1147 -0
  170. package/dist/notification.d-BfBL3lga.d.ts +1147 -0
  171. package/dist/organization.d-DqwnNxMg.d.cts +1271 -0
  172. package/dist/organization.d-DqwnNxMg.d.ts +1271 -0
  173. package/dist/partner-directory.d-BCIjHoGs.d.cts +2337 -0
  174. package/dist/partner-directory.d-BCIjHoGs.d.ts +2337 -0
  175. package/dist/permissions.d-l6AT8SYP.d.cts +1279 -0
  176. package/dist/permissions.d-l6AT8SYP.d.ts +1279 -0
  177. package/dist/pricing-tier.d-Cg0jl6n_.d.cts +81 -0
  178. package/dist/pricing-tier.d-Cg0jl6n_.d.ts +81 -0
  179. package/dist/pricing.d-BHpMU4KU.d.cts +12255 -0
  180. package/dist/pricing.d-BHpMU4KU.d.ts +12255 -0
  181. package/dist/purpose.d-CbIYfTua.d.cts +372 -0
  182. package/dist/purpose.d-CbIYfTua.d.ts +372 -0
  183. package/dist/query.d-Cmp78IhZ.d.cts +2375 -0
  184. package/dist/query.d-Cmp78IhZ.d.ts +2375 -0
  185. package/dist/sandbox.d-BdbOFzDu.d.cts +465 -0
  186. package/dist/sandbox.d-BdbOFzDu.d.ts +465 -0
  187. package/dist/sharing.d-sOXq-gtz.d.cts +571 -0
  188. package/dist/sharing.d-sOXq-gtz.d.ts +571 -0
  189. package/dist/submission.d-BamwfhXw.d.cts +469 -0
  190. package/dist/submission.d-BamwfhXw.d.ts +469 -0
  191. package/dist/targeting.d-BNmcVsNS.d.cts +2057 -0
  192. package/dist/targeting.d-BNmcVsNS.d.ts +2057 -0
  193. package/dist/template-variables.d-Ble9TSBa.d.cts +1320 -0
  194. package/dist/template-variables.d-Ble9TSBa.d.ts +1320 -0
  195. package/dist/types-ChU9Acbv.d.cts +37 -0
  196. package/dist/types-ChU9Acbv.d.ts +37 -0
  197. package/dist/user.d-D18fe97W.d.cts +2270 -0
  198. package/dist/user.d-D18fe97W.d.ts +2270 -0
  199. package/dist/validation-rules.d-Db5c5zTf.d.cts +807 -0
  200. package/dist/validation-rules.d-Db5c5zTf.d.ts +807 -0
  201. package/dist/webhooks.d-pLHIL_io.d.cts +1256 -0
  202. package/dist/webhooks.d-pLHIL_io.d.ts +1256 -0
  203. package/dist/workflow-definition.d-DOeb0KVV.d.cts +1922 -0
  204. package/dist/workflow-definition.d-DOeb0KVV.d.ts +1922 -0
  205. package/dist/workflow.d-CMSKt8oN.d.cts +3151 -0
  206. package/dist/workflow.d-CMSKt8oN.d.ts +3151 -0
  207. package/package.json +1 -1
  208. package/dist/apis/_registry.d.ts +0 -8
  209. package/dist/authorize.d.ts +0 -3
  210. package/dist/bin/cli.d.ts +0 -1
  211. package/dist/client-factory.d.ts +0 -9
  212. package/dist/client-map.d.ts +0 -102
  213. package/dist/compact.d.ts +0 -22
  214. package/dist/help.d.ts +0 -12
  215. package/dist/large-response.d.ts +0 -9
  216. package/dist/openapi.d.ts +0 -12
  217. package/dist/overrides.d.ts +0 -9
  218. package/dist/proxy.d.ts +0 -14
  219. package/dist/registry.d.ts +0 -19
  220. package/dist/retry.d.ts +0 -11
  221. package/dist/sdk.d.ts +0 -29
  222. package/dist/types.d.ts +0 -53
@@ -0,0 +1,1339 @@
1
+ import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
2
+
3
+ /* Auto-copied from ai-agents-client */
4
+ /* eslint-disable */
5
+
6
+
7
+
8
+ declare namespace Components {
9
+ namespace Schemas {
10
+ export interface AgentDefinition {
11
+ agent_id?: /**
12
+ * Agent identifier. Can be either:
13
+ * - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
14
+ * - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
15
+ *
16
+ * example:
17
+ * skill:email-categorizer
18
+ */
19
+ AgentId;
20
+ org_id?: string;
21
+ name?: string;
22
+ description?: string;
23
+ category?: SkillCategory;
24
+ icon?: string;
25
+ source?: /**
26
+ * - system: Pre-built by epilot (system skills)
27
+ * - custom: Created by organization
28
+ *
29
+ */
30
+ AgentSource;
31
+ /**
32
+ * Where this agent/skill is available (flows, copilot, or both)
33
+ * example:
34
+ * [
35
+ * "flows",
36
+ * "copilot"
37
+ * ]
38
+ */
39
+ availability?: /**
40
+ * Where the skill/agent is available:
41
+ * - flows: Available in workflow automations
42
+ * - copilot: Available as a sub-agent in copilot
43
+ * - all: Available everywhere
44
+ *
45
+ */
46
+ SkillAvailability[];
47
+ /**
48
+ * Entity schemas this skill is allowed to work with (e.g., ["message"] for email skills)
49
+ * example:
50
+ * [
51
+ * "message"
52
+ * ]
53
+ */
54
+ allowed_entity_schemas?: string[];
55
+ system_prompt?: string;
56
+ tools?: string[];
57
+ model_config?: ModelConfig;
58
+ max_iterations?: number;
59
+ execution_pattern?: /**
60
+ * - direct: Single LLM call, no tools
61
+ * - react: Multi-step reasoning with tool use
62
+ *
63
+ */
64
+ ExecutionPattern;
65
+ execution_mode?: /**
66
+ * - automatic: Execute without human intervention
67
+ * - approval: Pause for human approval before tool execution
68
+ * - draft: Execute but mark output as draft for review
69
+ *
70
+ */
71
+ ExecutionMode;
72
+ output_schema?: {
73
+ [key: string]: any;
74
+ };
75
+ input_parameters_schema?: /**
76
+ * example:
77
+ * {
78
+ * "type": "object",
79
+ * "parameters": [
80
+ * {
81
+ * "name": "target_schema",
82
+ * "label": "Target Schema",
83
+ * "type": "entity-schema",
84
+ * "description": "Entity type to create"
85
+ * },
86
+ * {
87
+ * "name": "confidence_threshold",
88
+ * "label": "Confidence Threshold",
89
+ * "type": "number",
90
+ * "minimum": 0,
91
+ * "maximum": 1,
92
+ * "default": 0.8
93
+ * },
94
+ * {
95
+ * "name": "categories",
96
+ * "label": "Categories",
97
+ * "type": "select",
98
+ * "enum": [
99
+ * "invoice",
100
+ * "contract",
101
+ * "letter"
102
+ * ],
103
+ * "multi": true
104
+ * }
105
+ * ],
106
+ * "required": [
107
+ * "target_schema"
108
+ * ]
109
+ * }
110
+ */
111
+ InputParametersSchema;
112
+ version?: number;
113
+ created_at?: string; // date-time
114
+ updated_at?: string; // date-time
115
+ created_by?: string;
116
+ }
117
+ /**
118
+ * Agent identifier. Can be either:
119
+ * - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
120
+ * - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
121
+ *
122
+ * example:
123
+ * skill:email-categorizer
124
+ */
125
+ export type AgentId = string;
126
+ /**
127
+ * - system: Pre-built by epilot (system skills)
128
+ * - custom: Created by organization
129
+ *
130
+ */
131
+ export type AgentSource = "system" | "custom";
132
+ export interface ApproveExecutionRequest {
133
+ /**
134
+ * Optional reason for approval
135
+ */
136
+ reason?: string;
137
+ }
138
+ export interface CreateAgentRequest {
139
+ /**
140
+ * example:
141
+ * Email Reply Generator
142
+ */
143
+ name: string;
144
+ description?: string;
145
+ category?: SkillCategory;
146
+ /**
147
+ * example:
148
+ * mail-reply
149
+ */
150
+ icon?: string;
151
+ /**
152
+ * Core LLM instructions
153
+ */
154
+ system_prompt: string;
155
+ /**
156
+ * Tool IDs this agent can use
157
+ * example:
158
+ * [
159
+ * "entity.search",
160
+ * "message.draft"
161
+ * ]
162
+ */
163
+ tools?: string[];
164
+ model_config?: ModelConfig;
165
+ /**
166
+ * Max ReAct loop iterations
167
+ */
168
+ max_iterations?: number;
169
+ execution_pattern: /**
170
+ * - direct: Single LLM call, no tools
171
+ * - react: Multi-step reasoning with tool use
172
+ *
173
+ */
174
+ ExecutionPattern;
175
+ execution_mode?: /**
176
+ * - automatic: Execute without human intervention
177
+ * - approval: Pause for human approval before tool execution
178
+ * - draft: Execute but mark output as draft for review
179
+ *
180
+ */
181
+ ExecutionMode;
182
+ /**
183
+ * JSON Schema for expected output
184
+ */
185
+ output_schema?: {
186
+ [key: string]: any;
187
+ };
188
+ input_parameters_schema?: /**
189
+ * example:
190
+ * {
191
+ * "type": "object",
192
+ * "parameters": [
193
+ * {
194
+ * "name": "target_schema",
195
+ * "label": "Target Schema",
196
+ * "type": "entity-schema",
197
+ * "description": "Entity type to create"
198
+ * },
199
+ * {
200
+ * "name": "confidence_threshold",
201
+ * "label": "Confidence Threshold",
202
+ * "type": "number",
203
+ * "minimum": 0,
204
+ * "maximum": 1,
205
+ * "default": 0.8
206
+ * },
207
+ * {
208
+ * "name": "categories",
209
+ * "label": "Categories",
210
+ * "type": "select",
211
+ * "enum": [
212
+ * "invoice",
213
+ * "contract",
214
+ * "letter"
215
+ * ],
216
+ * "multi": true
217
+ * }
218
+ * ],
219
+ * "required": [
220
+ * "target_schema"
221
+ * ]
222
+ * }
223
+ */
224
+ InputParametersSchema;
225
+ }
226
+ export interface Error {
227
+ error?: string;
228
+ message?: string;
229
+ details?: {
230
+ [key: string]: any;
231
+ };
232
+ }
233
+ export interface ExecuteAgentRequest {
234
+ input?: {
235
+ /**
236
+ * Primary entity ID for context
237
+ */
238
+ entity_id?: string;
239
+ /**
240
+ * Schema of the primary entity (e.g., "message", "contact")
241
+ */
242
+ entity_schema?: string;
243
+ workflow_id?: string;
244
+ workflow_execution_id?: string;
245
+ task_id?: string;
246
+ custom_data?: {
247
+ [name: string]: any;
248
+ };
249
+ /**
250
+ * Array of entities from the flow trigger context (e.g., the message entity when triggered by email receive)
251
+ */
252
+ flow_context?: {
253
+ entity_id: string;
254
+ entity_schema: string;
255
+ }[];
256
+ };
257
+ /**
258
+ * Runtime parameters (validated against input_parameters_schema)
259
+ */
260
+ parameters?: {
261
+ [name: string]: any;
262
+ };
263
+ execution_mode_override?: /**
264
+ * - automatic: Execute without human intervention
265
+ * - approval: Pause for human approval before tool execution
266
+ * - draft: Execute but mark output as draft for review
267
+ *
268
+ */
269
+ ExecutionMode;
270
+ execution_context?: /**
271
+ * Where the execution was triggered from:
272
+ * - flows: Triggered from workflow automation
273
+ * - copilot: Triggered from copilot assistant
274
+ * - api: Direct API call
275
+ *
276
+ */
277
+ ExecutionContext;
278
+ /**
279
+ * Webhook URL for async completion notification
280
+ */
281
+ callback_url?: string; // uri
282
+ /**
283
+ * Execution timeout in milliseconds
284
+ */
285
+ timeout_ms?: number;
286
+ }
287
+ /**
288
+ * Where the execution was triggered from:
289
+ * - flows: Triggered from workflow automation
290
+ * - copilot: Triggered from copilot assistant
291
+ * - api: Direct API call
292
+ *
293
+ */
294
+ export type ExecutionContext = "flows" | "copilot" | "api";
295
+ export type ExecutionError = {
296
+ code?: "TIMEOUT" | "MAX_ITERATIONS_EXCEEDED" | "TOOL_EXECUTION_FAILED" | "LLM_ERROR" | "INVALID_OUTPUT" | "REJECTED" | "INTERNAL_ERROR";
297
+ message?: string;
298
+ details?: {
299
+ [key: string]: any;
300
+ };
301
+ } | null;
302
+ export interface ExecutionIteration {
303
+ iteration_index?: number;
304
+ /**
305
+ * LLM reasoning/thinking
306
+ */
307
+ thought?: string;
308
+ action?: {
309
+ tool?: string;
310
+ input?: {
311
+ [key: string]: any;
312
+ };
313
+ } | null;
314
+ /**
315
+ * Tool result
316
+ */
317
+ observation?: {
318
+ [key: string]: any;
319
+ } | null;
320
+ timestamp?: string; // date-time
321
+ tokens_used?: number;
322
+ latency_ms?: number;
323
+ }
324
+ export interface ExecutionMetrics {
325
+ total_tokens?: number;
326
+ input_tokens?: number;
327
+ output_tokens?: number;
328
+ total_cost_usd?: number; // float
329
+ duration_ms?: number;
330
+ iteration_count?: number;
331
+ }
332
+ /**
333
+ * - automatic: Execute without human intervention
334
+ * - approval: Pause for human approval before tool execution
335
+ * - draft: Execute but mark output as draft for review
336
+ *
337
+ */
338
+ export type ExecutionMode = "automatic" | "approval" | "draft";
339
+ /**
340
+ * - direct: Single LLM call, no tools
341
+ * - react: Multi-step reasoning with tool use
342
+ *
343
+ */
344
+ export type ExecutionPattern = "direct" | "react";
345
+ export interface ExecutionResponse {
346
+ execution_id?: string; // uuid
347
+ agent_id?: /**
348
+ * Agent identifier. Can be either:
349
+ * - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
350
+ * - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
351
+ *
352
+ * example:
353
+ * skill:email-categorizer
354
+ */
355
+ AgentId;
356
+ agent_source?: /**
357
+ * - system: Pre-built by epilot (system skills)
358
+ * - custom: Created by organization
359
+ *
360
+ */
361
+ AgentSource;
362
+ /**
363
+ * Human-readable agent name (denormalized for display)
364
+ */
365
+ agent_name?: string;
366
+ execution_context?: /**
367
+ * Where the execution was triggered from:
368
+ * - flows: Triggered from workflow automation
369
+ * - copilot: Triggered from copilot assistant
370
+ * - api: Direct API call
371
+ *
372
+ */
373
+ ExecutionContext;
374
+ org_id?: string;
375
+ status?: ExecutionStatus;
376
+ input?: {
377
+ [key: string]: any;
378
+ };
379
+ parameters?: {
380
+ [key: string]: any;
381
+ };
382
+ /**
383
+ * Execution result (when status=completed)
384
+ */
385
+ result?: {
386
+ /**
387
+ * Text response from the agent
388
+ */
389
+ response?: string;
390
+ /**
391
+ * Parsed structured output (only for direct mode with output_schema)
392
+ */
393
+ structured_output?: {
394
+ [key: string]: any;
395
+ } | null;
396
+ } | null;
397
+ error?: ExecutionError;
398
+ pending_action?: /* Action waiting for approval (when status=waiting_approval) */ PendingAction;
399
+ metrics?: ExecutionMetrics;
400
+ started_at?: string; // date-time
401
+ completed_at?: string | null; // date-time
402
+ }
403
+ export type ExecutionStatus = "pending" | "running" | "waiting_approval" | "completed" | "failed" | "cancelled";
404
+ export interface ExecutionTrace {
405
+ execution_id?: string; // uuid
406
+ iterations?: ExecutionIteration[];
407
+ total_iterations?: number;
408
+ }
409
+ export interface InputParameterDefinition {
410
+ /**
411
+ * Unique identifier for the parameter (used in API)
412
+ * example:
413
+ * target_schema
414
+ */
415
+ name: string;
416
+ /**
417
+ * Human-readable display label
418
+ * example:
419
+ * Target Schema
420
+ */
421
+ label: string;
422
+ type: /**
423
+ * Base types:
424
+ * - text: Text input field
425
+ * - textarea: Multi-line text input field
426
+ * - number: Numeric input field
427
+ * - boolean: Toggle switch
428
+ * - select: Dropdown selection (requires enum array)
429
+ *
430
+ * Custom types (domain-specific):
431
+ * - entity-schema: Entity schema selector (fetches from Entity API)
432
+ * - entity-attribute: Entity attribute selector (requires dependsOn)
433
+ * - entity-id: Entity picker (search and select entities)
434
+ * - taxonomy: Taxonomy selector (fetches from Taxonomy API)
435
+ * - taxonomy-classification: Classification selector (requires dependsOn)
436
+ * - shared-inbox: Shared inbox selector (fetches from Email Settings API)
437
+ *
438
+ */
439
+ ParameterType;
440
+ /**
441
+ * Help text for the parameter
442
+ */
443
+ description?: string;
444
+ /**
445
+ * Default value for the parameter
446
+ */
447
+ default?: any;
448
+ /**
449
+ * Allow multiple selections (value becomes array)
450
+ */
451
+ multi?: boolean;
452
+ /**
453
+ * Parent parameter this depends on (for entity-attribute, taxonomy-classification)
454
+ */
455
+ dependsOn?: string;
456
+ /**
457
+ * Conditional visibility rules (show when parent has specific values)
458
+ */
459
+ visibleWhen?: {
460
+ [name: string]: any[];
461
+ };
462
+ /**
463
+ * Allowed values (required for 'select' type)
464
+ */
465
+ enum?: string[];
466
+ /**
467
+ * Minimum value (for number type)
468
+ */
469
+ minimum?: number;
470
+ /**
471
+ * Maximum value (for number type)
472
+ */
473
+ maximum?: number;
474
+ /**
475
+ * Step increment (for number type)
476
+ */
477
+ step?: number;
478
+ /**
479
+ * Minimum length (for text type)
480
+ */
481
+ minLength?: number;
482
+ /**
483
+ * Maximum length (for text type)
484
+ */
485
+ maxLength?: number;
486
+ /**
487
+ * Filter to specific schemas (for entity-schema, entity-id)
488
+ */
489
+ schemaFilter?: string[];
490
+ /**
491
+ * Filter to specific attribute types (for entity-attribute)
492
+ */
493
+ attributeTypeFilter?: string[];
494
+ }
495
+ /**
496
+ * example:
497
+ * {
498
+ * "type": "object",
499
+ * "parameters": [
500
+ * {
501
+ * "name": "target_schema",
502
+ * "label": "Target Schema",
503
+ * "type": "entity-schema",
504
+ * "description": "Entity type to create"
505
+ * },
506
+ * {
507
+ * "name": "confidence_threshold",
508
+ * "label": "Confidence Threshold",
509
+ * "type": "number",
510
+ * "minimum": 0,
511
+ * "maximum": 1,
512
+ * "default": 0.8
513
+ * },
514
+ * {
515
+ * "name": "categories",
516
+ * "label": "Categories",
517
+ * "type": "select",
518
+ * "enum": [
519
+ * "invoice",
520
+ * "contract",
521
+ * "letter"
522
+ * ],
523
+ * "multi": true
524
+ * }
525
+ * ],
526
+ * "required": [
527
+ * "target_schema"
528
+ * ]
529
+ * }
530
+ */
531
+ export interface InputParametersSchema {
532
+ /**
533
+ * Always "object"
534
+ */
535
+ type: "object";
536
+ /**
537
+ * Array of parameter definitions
538
+ */
539
+ parameters: InputParameterDefinition[];
540
+ /**
541
+ * Array of parameter names that are required
542
+ */
543
+ required?: string[];
544
+ }
545
+ export interface ListAgentsResponse {
546
+ agents?: AgentDefinition[];
547
+ next_cursor?: string | null;
548
+ }
549
+ export interface ListExecutionsResponse {
550
+ executions?: ExecutionResponse[];
551
+ next_cursor?: string | null;
552
+ }
553
+ export interface ModelConfig {
554
+ /**
555
+ * AWS Bedrock model ID
556
+ */
557
+ model_id?: string;
558
+ temperature?: number;
559
+ max_tokens?: number;
560
+ }
561
+ /**
562
+ * Base types:
563
+ * - text: Text input field
564
+ * - textarea: Multi-line text input field
565
+ * - number: Numeric input field
566
+ * - boolean: Toggle switch
567
+ * - select: Dropdown selection (requires enum array)
568
+ *
569
+ * Custom types (domain-specific):
570
+ * - entity-schema: Entity schema selector (fetches from Entity API)
571
+ * - entity-attribute: Entity attribute selector (requires dependsOn)
572
+ * - entity-id: Entity picker (search and select entities)
573
+ * - taxonomy: Taxonomy selector (fetches from Taxonomy API)
574
+ * - taxonomy-classification: Classification selector (requires dependsOn)
575
+ * - shared-inbox: Shared inbox selector (fetches from Email Settings API)
576
+ *
577
+ */
578
+ export type ParameterType = "text" | "textarea" | "number" | "boolean" | "select" | "entity-schema" | "entity-attribute" | "entity-id" | "taxonomy" | "taxonomy-classification" | "shared-inbox" | "label";
579
+ /**
580
+ * Action waiting for approval (when status=waiting_approval)
581
+ */
582
+ export type PendingAction = {
583
+ /**
584
+ * Tool ID that requires approval
585
+ */
586
+ tool?: string;
587
+ /**
588
+ * Tool input parameters
589
+ */
590
+ input?: {
591
+ [key: string]: any;
592
+ };
593
+ /**
594
+ * Human-readable description of the action
595
+ */
596
+ description?: string;
597
+ preview?: /* Structured preview data for approval UI. Provides a generic format that any tool can populate. */ ToolPreview;
598
+ } | null;
599
+ /**
600
+ * Type of action being previewed
601
+ */
602
+ export type PreviewActionType = "move" | "create" | "update" | "delete" | "apply" | "send" | "link" | "unlink";
603
+ /**
604
+ * A single field change in the preview
605
+ */
606
+ export interface PreviewChange {
607
+ /**
608
+ * Field identifier
609
+ */
610
+ field?: string;
611
+ /**
612
+ * Human-readable field label
613
+ */
614
+ label?: string;
615
+ from?: /* Typed value for preview display */ PreviewValue;
616
+ to?: /* Typed value for preview display */ PreviewValue;
617
+ }
618
+ /**
619
+ * Entity reference for preview display
620
+ */
621
+ export interface PreviewEntity {
622
+ /**
623
+ * Entity type (e.g., "inbox", "email", "contact", "label")
624
+ * example:
625
+ * inbox
626
+ */
627
+ type?: string;
628
+ /**
629
+ * Entity ID
630
+ */
631
+ id?: string;
632
+ /**
633
+ * Human-readable name for display
634
+ * example:
635
+ * Support Inbox
636
+ */
637
+ name?: string;
638
+ /**
639
+ * Entity schema (for epilot entities)
640
+ */
641
+ schema?: string;
642
+ /**
643
+ * Icon hint for UI
644
+ */
645
+ icon?: string;
646
+ /**
647
+ * Optional URL to view the entity
648
+ */
649
+ url?: string;
650
+ }
651
+ /**
652
+ * Typed value for preview display
653
+ */
654
+ export interface PreviewValue {
655
+ /**
656
+ * Value type for proper rendering
657
+ */
658
+ type: "text" | "number" | "boolean" | "list" | "entity" | "badge";
659
+ /**
660
+ * The actual value (type depends on "type" field)
661
+ */
662
+ value?: any;
663
+ /**
664
+ * Array of values (for list type)
665
+ */
666
+ values?: string[];
667
+ /**
668
+ * Entity ID (for entity type)
669
+ */
670
+ id?: string;
671
+ /**
672
+ * Display name (for entity type)
673
+ */
674
+ name?: string;
675
+ /**
676
+ * Entity schema (for entity type)
677
+ */
678
+ schema?: string;
679
+ /**
680
+ * Badge color (for badge type)
681
+ */
682
+ color?: "success" | "warning" | "error" | "info";
683
+ }
684
+ export interface RejectExecutionRequest {
685
+ /**
686
+ * Reason for rejection
687
+ */
688
+ reason: string;
689
+ }
690
+ /**
691
+ * Where the skill/agent is available:
692
+ * - flows: Available in workflow automations
693
+ * - copilot: Available as a sub-agent in copilot
694
+ * - all: Available everywhere
695
+ *
696
+ */
697
+ export type SkillAvailability = "flows" | "copilot" | "all";
698
+ export type SkillCategory = "message" | "entity" | "document" | "classification" | "custom";
699
+ export interface ToolDefinition {
700
+ /**
701
+ * example:
702
+ * entity.search
703
+ */
704
+ tool_id?: string;
705
+ /**
706
+ * example:
707
+ * Search Entities
708
+ */
709
+ name?: string;
710
+ /**
711
+ * Description for LLM to understand tool purpose
712
+ */
713
+ description?: string;
714
+ category?: "entity" | "email" | "taxonomy" | "rag" | "workflow";
715
+ /**
716
+ * JSON Schema for tool input
717
+ */
718
+ parameters?: {
719
+ [key: string]: any;
720
+ };
721
+ /**
722
+ * JSON Schema for tool output
723
+ */
724
+ returns?: {
725
+ [key: string]: any;
726
+ };
727
+ /**
728
+ * Whether this tool always requires human approval
729
+ */
730
+ requires_approval?: boolean;
731
+ enabled?: boolean;
732
+ }
733
+ /**
734
+ * Structured preview data for approval UI. Provides a generic format that any tool can populate.
735
+ */
736
+ export interface ToolPreview {
737
+ action?: {
738
+ type: /* Type of action being previewed */ PreviewActionType;
739
+ /**
740
+ * Human-readable action verb
741
+ * example:
742
+ * Move Thread
743
+ */
744
+ verb: string;
745
+ };
746
+ source?: /* Entity reference for preview display */ PreviewEntity;
747
+ target?: /* Entity reference for preview display */ PreviewEntity;
748
+ /**
749
+ * List of changes/modifications being made
750
+ */
751
+ changes?: /* A single field change in the preview */ PreviewChange[];
752
+ /**
753
+ * Additional context information
754
+ */
755
+ metadata?: {
756
+ [name: string]: /* Typed value for preview display */ PreviewValue;
757
+ };
758
+ /**
759
+ * AI reasoning for why this action is recommended
760
+ * example:
761
+ * This email discusses solar panel installation and should be handled by the Service team.
762
+ */
763
+ summary?: string;
764
+ }
765
+ export interface UpdateAgentRequest {
766
+ name?: string;
767
+ description?: string;
768
+ category?: SkillCategory;
769
+ icon?: string;
770
+ system_prompt?: string;
771
+ tools?: string[];
772
+ model_config?: ModelConfig;
773
+ max_iterations?: number;
774
+ execution_pattern?: /**
775
+ * - direct: Single LLM call, no tools
776
+ * - react: Multi-step reasoning with tool use
777
+ *
778
+ */
779
+ ExecutionPattern;
780
+ execution_mode?: /**
781
+ * - automatic: Execute without human intervention
782
+ * - approval: Pause for human approval before tool execution
783
+ * - draft: Execute but mark output as draft for review
784
+ *
785
+ */
786
+ ExecutionMode;
787
+ output_schema?: {
788
+ [key: string]: any;
789
+ };
790
+ input_parameters_schema?: /**
791
+ * example:
792
+ * {
793
+ * "type": "object",
794
+ * "parameters": [
795
+ * {
796
+ * "name": "target_schema",
797
+ * "label": "Target Schema",
798
+ * "type": "entity-schema",
799
+ * "description": "Entity type to create"
800
+ * },
801
+ * {
802
+ * "name": "confidence_threshold",
803
+ * "label": "Confidence Threshold",
804
+ * "type": "number",
805
+ * "minimum": 0,
806
+ * "maximum": 1,
807
+ * "default": 0.8
808
+ * },
809
+ * {
810
+ * "name": "categories",
811
+ * "label": "Categories",
812
+ * "type": "select",
813
+ * "enum": [
814
+ * "invoice",
815
+ * "contract",
816
+ * "letter"
817
+ * ],
818
+ * "multi": true
819
+ * }
820
+ * ],
821
+ * "required": [
822
+ * "target_schema"
823
+ * ]
824
+ * }
825
+ */
826
+ InputParametersSchema;
827
+ }
828
+ }
829
+ }
830
+ declare namespace Paths {
831
+ namespace ApproveExecution {
832
+ namespace Parameters {
833
+ export type ExecutionId = string; // uuid
834
+ }
835
+ export interface PathParameters {
836
+ execution_id: Parameters.ExecutionId /* uuid */;
837
+ }
838
+ export type RequestBody = Components.Schemas.ApproveExecutionRequest;
839
+ namespace Responses {
840
+ export type $200 = Components.Schemas.ExecutionResponse;
841
+ export type $400 = Components.Schemas.Error;
842
+ export type $404 = Components.Schemas.Error;
843
+ }
844
+ }
845
+ namespace CancelExecution {
846
+ namespace Parameters {
847
+ export type ExecutionId = string; // uuid
848
+ }
849
+ export interface PathParameters {
850
+ execution_id: Parameters.ExecutionId /* uuid */;
851
+ }
852
+ namespace Responses {
853
+ export type $200 = Components.Schemas.ExecutionResponse;
854
+ export type $400 = Components.Schemas.Error;
855
+ export type $404 = Components.Schemas.Error;
856
+ }
857
+ }
858
+ namespace CreateAgent {
859
+ export type RequestBody = Components.Schemas.CreateAgentRequest;
860
+ namespace Responses {
861
+ export type $201 = Components.Schemas.AgentDefinition;
862
+ export type $400 = Components.Schemas.Error;
863
+ }
864
+ }
865
+ namespace DeleteAgentById {
866
+ namespace Parameters {
867
+ export type AgentId = /**
868
+ * Agent identifier. Can be either:
869
+ * - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
870
+ * - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
871
+ *
872
+ * example:
873
+ * skill:email-categorizer
874
+ */
875
+ Components.Schemas.AgentId;
876
+ }
877
+ export interface PathParameters {
878
+ agent_id: Parameters.AgentId;
879
+ }
880
+ namespace Responses {
881
+ export interface $204 {
882
+ }
883
+ export type $400 = Components.Schemas.Error;
884
+ }
885
+ }
886
+ namespace ExecuteAgent {
887
+ namespace Parameters {
888
+ export type AgentId = /**
889
+ * Agent identifier. Can be either:
890
+ * - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
891
+ * - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
892
+ *
893
+ * example:
894
+ * skill:email-categorizer
895
+ */
896
+ Components.Schemas.AgentId;
897
+ }
898
+ export interface PathParameters {
899
+ agent_id: Parameters.AgentId;
900
+ }
901
+ export type RequestBody = Components.Schemas.ExecuteAgentRequest;
902
+ namespace Responses {
903
+ export type $200 = Components.Schemas.ExecutionResponse;
904
+ export type $400 = Components.Schemas.Error;
905
+ export type $404 = Components.Schemas.Error;
906
+ }
907
+ }
908
+ namespace GetAgentById {
909
+ namespace Parameters {
910
+ export type AgentId = /**
911
+ * Agent identifier. Can be either:
912
+ * - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
913
+ * - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
914
+ *
915
+ * example:
916
+ * skill:email-categorizer
917
+ */
918
+ Components.Schemas.AgentId;
919
+ }
920
+ export interface PathParameters {
921
+ agent_id: Parameters.AgentId;
922
+ }
923
+ namespace Responses {
924
+ export type $200 = Components.Schemas.AgentDefinition;
925
+ export type $400 = Components.Schemas.Error;
926
+ }
927
+ }
928
+ namespace GetExecution {
929
+ namespace Parameters {
930
+ export type ExecutionId = string; // uuid
931
+ }
932
+ export interface PathParameters {
933
+ execution_id: Parameters.ExecutionId /* uuid */;
934
+ }
935
+ namespace Responses {
936
+ export type $200 = Components.Schemas.ExecutionResponse;
937
+ export type $404 = Components.Schemas.Error;
938
+ }
939
+ }
940
+ namespace GetExecutionTrace {
941
+ namespace Parameters {
942
+ export type ExecutionId = string; // uuid
943
+ }
944
+ export interface PathParameters {
945
+ execution_id: Parameters.ExecutionId /* uuid */;
946
+ }
947
+ namespace Responses {
948
+ export type $200 = Components.Schemas.ExecutionTrace;
949
+ export type $404 = Components.Schemas.Error;
950
+ }
951
+ }
952
+ namespace ListAgents {
953
+ namespace Parameters {
954
+ export type Availability = /**
955
+ * Where the skill/agent is available:
956
+ * - flows: Available in workflow automations
957
+ * - copilot: Available as a sub-agent in copilot
958
+ * - all: Available everywhere
959
+ *
960
+ */
961
+ Components.Schemas.SkillAvailability;
962
+ export type EntitySchema = string;
963
+ export type Source = /**
964
+ * - system: Pre-built by epilot (system skills)
965
+ * - custom: Created by organization
966
+ *
967
+ */
968
+ Components.Schemas.AgentSource;
969
+ }
970
+ export interface QueryParameters {
971
+ source?: Parameters.Source;
972
+ availability?: Parameters.Availability;
973
+ entity_schema?: Parameters.EntitySchema;
974
+ }
975
+ namespace Responses {
976
+ export type $200 = Components.Schemas.ListAgentsResponse;
977
+ export type $400 = Components.Schemas.Error;
978
+ }
979
+ }
980
+ namespace ListExecutions {
981
+ namespace Parameters {
982
+ export type AgentId = string;
983
+ export type Limit = number;
984
+ export type Status = Components.Schemas.ExecutionStatus;
985
+ }
986
+ export interface QueryParameters {
987
+ agent_id?: Parameters.AgentId;
988
+ status?: Parameters.Status;
989
+ limit?: Parameters.Limit;
990
+ }
991
+ namespace Responses {
992
+ export type $200 = Components.Schemas.ListExecutionsResponse;
993
+ export type $400 = Components.Schemas.Error;
994
+ }
995
+ }
996
+ namespace RejectExecution {
997
+ namespace Parameters {
998
+ export type ExecutionId = string; // uuid
999
+ }
1000
+ export interface PathParameters {
1001
+ execution_id: Parameters.ExecutionId /* uuid */;
1002
+ }
1003
+ export type RequestBody = Components.Schemas.RejectExecutionRequest;
1004
+ namespace Responses {
1005
+ export type $200 = Components.Schemas.ExecutionResponse;
1006
+ export type $400 = Components.Schemas.Error;
1007
+ export type $404 = Components.Schemas.Error;
1008
+ }
1009
+ }
1010
+ namespace UpdateAgentById {
1011
+ namespace Parameters {
1012
+ export type AgentId = /**
1013
+ * Agent identifier. Can be either:
1014
+ * - System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"
1015
+ * - Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"
1016
+ *
1017
+ * example:
1018
+ * skill:email-categorizer
1019
+ */
1020
+ Components.Schemas.AgentId;
1021
+ }
1022
+ export interface PathParameters {
1023
+ agent_id: Parameters.AgentId;
1024
+ }
1025
+ export type RequestBody = Components.Schemas.UpdateAgentRequest;
1026
+ namespace Responses {
1027
+ export type $200 = Components.Schemas.AgentDefinition;
1028
+ export type $400 = Components.Schemas.Error;
1029
+ }
1030
+ }
1031
+ }
1032
+
1033
+
1034
+ interface OperationMethods {
1035
+ /**
1036
+ * listAgents - List all agent configurations
1037
+ *
1038
+ * Lists agents from both system skills and custom agents.
1039
+ * Use query parameters to filter by source, availability, or entity schema.
1040
+ *
1041
+ */
1042
+ 'listAgents'(
1043
+ parameters?: Parameters<Paths.ListAgents.QueryParameters> | null,
1044
+ data?: any,
1045
+ config?: AxiosRequestConfig
1046
+ ): OperationResponse<Paths.ListAgents.Responses.$200>
1047
+ /**
1048
+ * createAgent - Create Agent definition
1049
+ *
1050
+ * Creates a new custom agent. System skills cannot be created via this endpoint.
1051
+ */
1052
+ 'createAgent'(
1053
+ parameters?: Parameters<UnknownParamsObject> | null,
1054
+ data?: Paths.CreateAgent.RequestBody,
1055
+ config?: AxiosRequestConfig
1056
+ ): OperationResponse<Paths.CreateAgent.Responses.$201>
1057
+ /**
1058
+ * getAgentById - Get the agent configuration by ID
1059
+ *
1060
+ * Retrieves an agent by ID. Supports both:
1061
+ * - System skill IDs (prefixed): "skill:email-categorizer"
1062
+ * - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
1063
+ *
1064
+ */
1065
+ 'getAgentById'(
1066
+ parameters?: Parameters<Paths.GetAgentById.PathParameters> | null,
1067
+ data?: any,
1068
+ config?: AxiosRequestConfig
1069
+ ): OperationResponse<Paths.GetAgentById.Responses.$200>
1070
+ /**
1071
+ * updateAgentById - Update the agent configuration by ID
1072
+ *
1073
+ * Updates a custom agent. System skills cannot be updated via this endpoint.
1074
+ */
1075
+ 'updateAgentById'(
1076
+ parameters?: Parameters<Paths.UpdateAgentById.PathParameters> | null,
1077
+ data?: Paths.UpdateAgentById.RequestBody,
1078
+ config?: AxiosRequestConfig
1079
+ ): OperationResponse<Paths.UpdateAgentById.Responses.$200>
1080
+ /**
1081
+ * deleteAgentById - Delete the agent configuration by ID
1082
+ *
1083
+ * Deletes a custom agent. System skills cannot be deleted via this endpoint.
1084
+ */
1085
+ 'deleteAgentById'(
1086
+ parameters?: Parameters<Paths.DeleteAgentById.PathParameters> | null,
1087
+ data?: any,
1088
+ config?: AxiosRequestConfig
1089
+ ): OperationResponse<Paths.DeleteAgentById.Responses.$204>
1090
+ /**
1091
+ * executeAgent - Execute an agent
1092
+ *
1093
+ * Executes an agent (system skill or custom agent).
1094
+ * Supports both:
1095
+ * - System skill IDs (prefixed): "skill:email-categorizer"
1096
+ * - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
1097
+ *
1098
+ */
1099
+ 'executeAgent'(
1100
+ parameters?: Parameters<Paths.ExecuteAgent.PathParameters> | null,
1101
+ data?: Paths.ExecuteAgent.RequestBody,
1102
+ config?: AxiosRequestConfig
1103
+ ): OperationResponse<Paths.ExecuteAgent.Responses.$200>
1104
+ /**
1105
+ * listExecutions - List executions
1106
+ */
1107
+ 'listExecutions'(
1108
+ parameters?: Parameters<Paths.ListExecutions.QueryParameters> | null,
1109
+ data?: any,
1110
+ config?: AxiosRequestConfig
1111
+ ): OperationResponse<Paths.ListExecutions.Responses.$200>
1112
+ /**
1113
+ * getExecution - Get execution by ID
1114
+ */
1115
+ 'getExecution'(
1116
+ parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
1117
+ data?: any,
1118
+ config?: AxiosRequestConfig
1119
+ ): OperationResponse<Paths.GetExecution.Responses.$200>
1120
+ /**
1121
+ * cancelExecution - Cancel execution
1122
+ */
1123
+ 'cancelExecution'(
1124
+ parameters?: Parameters<Paths.CancelExecution.PathParameters> | null,
1125
+ data?: any,
1126
+ config?: AxiosRequestConfig
1127
+ ): OperationResponse<Paths.CancelExecution.Responses.$200>
1128
+ /**
1129
+ * getExecutionTrace - Get execution trace/iterations
1130
+ *
1131
+ * Returns the step-by-step reasoning and tool calls for ReAct mode executions. Returns empty iterations array for direct mode executions.
1132
+ */
1133
+ 'getExecutionTrace'(
1134
+ parameters?: Parameters<Paths.GetExecutionTrace.PathParameters> | null,
1135
+ data?: any,
1136
+ config?: AxiosRequestConfig
1137
+ ): OperationResponse<Paths.GetExecutionTrace.Responses.$200>
1138
+ /**
1139
+ * approveExecution - Approve pending action
1140
+ *
1141
+ * Approves a pending tool action when execution is in waiting_approval status
1142
+ */
1143
+ 'approveExecution'(
1144
+ parameters?: Parameters<Paths.ApproveExecution.PathParameters> | null,
1145
+ data?: Paths.ApproveExecution.RequestBody,
1146
+ config?: AxiosRequestConfig
1147
+ ): OperationResponse<Paths.ApproveExecution.Responses.$200>
1148
+ /**
1149
+ * rejectExecution - Reject pending action
1150
+ *
1151
+ * Rejects a pending tool action when execution is in waiting_approval status
1152
+ */
1153
+ 'rejectExecution'(
1154
+ parameters?: Parameters<Paths.RejectExecution.PathParameters> | null,
1155
+ data?: Paths.RejectExecution.RequestBody,
1156
+ config?: AxiosRequestConfig
1157
+ ): OperationResponse<Paths.RejectExecution.Responses.$200>
1158
+ }
1159
+
1160
+ interface PathsDictionary {
1161
+ ['/v1/agents']: {
1162
+ /**
1163
+ * createAgent - Create Agent definition
1164
+ *
1165
+ * Creates a new custom agent. System skills cannot be created via this endpoint.
1166
+ */
1167
+ 'post'(
1168
+ parameters?: Parameters<UnknownParamsObject> | null,
1169
+ data?: Paths.CreateAgent.RequestBody,
1170
+ config?: AxiosRequestConfig
1171
+ ): OperationResponse<Paths.CreateAgent.Responses.$201>
1172
+ /**
1173
+ * listAgents - List all agent configurations
1174
+ *
1175
+ * Lists agents from both system skills and custom agents.
1176
+ * Use query parameters to filter by source, availability, or entity schema.
1177
+ *
1178
+ */
1179
+ 'get'(
1180
+ parameters?: Parameters<Paths.ListAgents.QueryParameters> | null,
1181
+ data?: any,
1182
+ config?: AxiosRequestConfig
1183
+ ): OperationResponse<Paths.ListAgents.Responses.$200>
1184
+ }
1185
+ ['/v1/agents/{agent_id}']: {
1186
+ /**
1187
+ * getAgentById - Get the agent configuration by ID
1188
+ *
1189
+ * Retrieves an agent by ID. Supports both:
1190
+ * - System skill IDs (prefixed): "skill:email-categorizer"
1191
+ * - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
1192
+ *
1193
+ */
1194
+ 'get'(
1195
+ parameters?: Parameters<Paths.GetAgentById.PathParameters> | null,
1196
+ data?: any,
1197
+ config?: AxiosRequestConfig
1198
+ ): OperationResponse<Paths.GetAgentById.Responses.$200>
1199
+ /**
1200
+ * updateAgentById - Update the agent configuration by ID
1201
+ *
1202
+ * Updates a custom agent. System skills cannot be updated via this endpoint.
1203
+ */
1204
+ 'put'(
1205
+ parameters?: Parameters<Paths.UpdateAgentById.PathParameters> | null,
1206
+ data?: Paths.UpdateAgentById.RequestBody,
1207
+ config?: AxiosRequestConfig
1208
+ ): OperationResponse<Paths.UpdateAgentById.Responses.$200>
1209
+ /**
1210
+ * deleteAgentById - Delete the agent configuration by ID
1211
+ *
1212
+ * Deletes a custom agent. System skills cannot be deleted via this endpoint.
1213
+ */
1214
+ 'delete'(
1215
+ parameters?: Parameters<Paths.DeleteAgentById.PathParameters> | null,
1216
+ data?: any,
1217
+ config?: AxiosRequestConfig
1218
+ ): OperationResponse<Paths.DeleteAgentById.Responses.$204>
1219
+ }
1220
+ ['/v1/agents/{agent_id}/execute']: {
1221
+ /**
1222
+ * executeAgent - Execute an agent
1223
+ *
1224
+ * Executes an agent (system skill or custom agent).
1225
+ * Supports both:
1226
+ * - System skill IDs (prefixed): "skill:email-categorizer"
1227
+ * - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
1228
+ *
1229
+ */
1230
+ 'post'(
1231
+ parameters?: Parameters<Paths.ExecuteAgent.PathParameters> | null,
1232
+ data?: Paths.ExecuteAgent.RequestBody,
1233
+ config?: AxiosRequestConfig
1234
+ ): OperationResponse<Paths.ExecuteAgent.Responses.$200>
1235
+ }
1236
+ ['/v1/executions']: {
1237
+ /**
1238
+ * listExecutions - List executions
1239
+ */
1240
+ 'get'(
1241
+ parameters?: Parameters<Paths.ListExecutions.QueryParameters> | null,
1242
+ data?: any,
1243
+ config?: AxiosRequestConfig
1244
+ ): OperationResponse<Paths.ListExecutions.Responses.$200>
1245
+ }
1246
+ ['/v1/executions/{execution_id}']: {
1247
+ /**
1248
+ * getExecution - Get execution by ID
1249
+ */
1250
+ 'get'(
1251
+ parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
1252
+ data?: any,
1253
+ config?: AxiosRequestConfig
1254
+ ): OperationResponse<Paths.GetExecution.Responses.$200>
1255
+ /**
1256
+ * cancelExecution - Cancel execution
1257
+ */
1258
+ 'delete'(
1259
+ parameters?: Parameters<Paths.CancelExecution.PathParameters> | null,
1260
+ data?: any,
1261
+ config?: AxiosRequestConfig
1262
+ ): OperationResponse<Paths.CancelExecution.Responses.$200>
1263
+ }
1264
+ ['/v1/executions/{execution_id}/trace']: {
1265
+ /**
1266
+ * getExecutionTrace - Get execution trace/iterations
1267
+ *
1268
+ * Returns the step-by-step reasoning and tool calls for ReAct mode executions. Returns empty iterations array for direct mode executions.
1269
+ */
1270
+ 'get'(
1271
+ parameters?: Parameters<Paths.GetExecutionTrace.PathParameters> | null,
1272
+ data?: any,
1273
+ config?: AxiosRequestConfig
1274
+ ): OperationResponse<Paths.GetExecutionTrace.Responses.$200>
1275
+ }
1276
+ ['/v1/executions/{execution_id}/approve']: {
1277
+ /**
1278
+ * approveExecution - Approve pending action
1279
+ *
1280
+ * Approves a pending tool action when execution is in waiting_approval status
1281
+ */
1282
+ 'post'(
1283
+ parameters?: Parameters<Paths.ApproveExecution.PathParameters> | null,
1284
+ data?: Paths.ApproveExecution.RequestBody,
1285
+ config?: AxiosRequestConfig
1286
+ ): OperationResponse<Paths.ApproveExecution.Responses.$200>
1287
+ }
1288
+ ['/v1/executions/{execution_id}/reject']: {
1289
+ /**
1290
+ * rejectExecution - Reject pending action
1291
+ *
1292
+ * Rejects a pending tool action when execution is in waiting_approval status
1293
+ */
1294
+ 'post'(
1295
+ parameters?: Parameters<Paths.RejectExecution.PathParameters> | null,
1296
+ data?: Paths.RejectExecution.RequestBody,
1297
+ config?: AxiosRequestConfig
1298
+ ): OperationResponse<Paths.RejectExecution.Responses.$200>
1299
+ }
1300
+ }
1301
+
1302
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1303
+
1304
+
1305
+ type AgentDefinition = Components.Schemas.AgentDefinition;
1306
+ type AgentId = Components.Schemas.AgentId;
1307
+ type AgentSource = Components.Schemas.AgentSource;
1308
+ type ApproveExecutionRequest = Components.Schemas.ApproveExecutionRequest;
1309
+ type CreateAgentRequest = Components.Schemas.CreateAgentRequest;
1310
+ type Error = Components.Schemas.Error;
1311
+ type ExecuteAgentRequest = Components.Schemas.ExecuteAgentRequest;
1312
+ type ExecutionContext = Components.Schemas.ExecutionContext;
1313
+ type ExecutionError = Components.Schemas.ExecutionError;
1314
+ type ExecutionIteration = Components.Schemas.ExecutionIteration;
1315
+ type ExecutionMetrics = Components.Schemas.ExecutionMetrics;
1316
+ type ExecutionMode = Components.Schemas.ExecutionMode;
1317
+ type ExecutionPattern = Components.Schemas.ExecutionPattern;
1318
+ type ExecutionResponse = Components.Schemas.ExecutionResponse;
1319
+ type ExecutionStatus = Components.Schemas.ExecutionStatus;
1320
+ type ExecutionTrace = Components.Schemas.ExecutionTrace;
1321
+ type InputParameterDefinition = Components.Schemas.InputParameterDefinition;
1322
+ type InputParametersSchema = Components.Schemas.InputParametersSchema;
1323
+ type ListAgentsResponse = Components.Schemas.ListAgentsResponse;
1324
+ type ListExecutionsResponse = Components.Schemas.ListExecutionsResponse;
1325
+ type ModelConfig = Components.Schemas.ModelConfig;
1326
+ type ParameterType = Components.Schemas.ParameterType;
1327
+ type PendingAction = Components.Schemas.PendingAction;
1328
+ type PreviewActionType = Components.Schemas.PreviewActionType;
1329
+ type PreviewChange = Components.Schemas.PreviewChange;
1330
+ type PreviewEntity = Components.Schemas.PreviewEntity;
1331
+ type PreviewValue = Components.Schemas.PreviewValue;
1332
+ type RejectExecutionRequest = Components.Schemas.RejectExecutionRequest;
1333
+ type SkillAvailability = Components.Schemas.SkillAvailability;
1334
+ type SkillCategory = Components.Schemas.SkillCategory;
1335
+ type ToolDefinition = Components.Schemas.ToolDefinition;
1336
+ type ToolPreview = Components.Schemas.ToolPreview;
1337
+ type UpdateAgentRequest = Components.Schemas.UpdateAgentRequest;
1338
+
1339
+ export { type AgentDefinition as A, type Client as C, type Error as E, type InputParameterDefinition as I, type ListAgentsResponse as L, type ModelConfig as M, type OperationMethods as O, Paths as P, type RejectExecutionRequest as R, type SkillAvailability as S, type ToolDefinition as T, type UpdateAgentRequest as U, Components as a, type PathsDictionary as b, type AgentId as c, type AgentSource as d, type ApproveExecutionRequest as e, type CreateAgentRequest as f, type ExecuteAgentRequest as g, type ExecutionContext as h, type ExecutionError as i, type ExecutionIteration as j, type ExecutionMetrics as k, type ExecutionMode as l, type ExecutionPattern as m, type ExecutionResponse as n, type ExecutionStatus as o, type ExecutionTrace as p, type InputParametersSchema as q, type ListExecutionsResponse as r, type ParameterType as s, type PendingAction as t, type PreviewActionType as u, type PreviewChange as v, type PreviewEntity as w, type PreviewValue as x, type SkillCategory as y, type ToolPreview as z };