@epilot/sdk 2.18.21 → 2.18.22

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 (136) hide show
  1. package/definitions/ai-agents.json +121 -27
  2. package/definitions/customer-portal-runtime.json +1 -1
  3. package/definitions/customer-portal.json +207 -17
  4. package/dist/ai-agents-ME5VRKMY.cjs +7 -0
  5. package/dist/ai-agents-MY4QE4CP.js +7 -0
  6. package/dist/{ai-agents.d-BnR7CAeJ.d.cts → ai-agents.d-B3TkP4mo.d.cts} +152 -52
  7. package/dist/{ai-agents.d-BnR7CAeJ.d.ts → ai-agents.d-B3TkP4mo.d.ts} +152 -52
  8. package/dist/apis/access-token.cjs +6 -6
  9. package/dist/apis/access-token.js +1 -1
  10. package/dist/apis/address-suggestions.cjs +6 -6
  11. package/dist/apis/address-suggestions.js +1 -1
  12. package/dist/apis/address.cjs +6 -6
  13. package/dist/apis/address.js +1 -1
  14. package/dist/apis/ai-agents.cjs +6 -6
  15. package/dist/apis/ai-agents.d.cts +2 -2
  16. package/dist/apis/ai-agents.d.ts +2 -2
  17. package/dist/apis/ai-agents.js +1 -1
  18. package/dist/apis/app.cjs +6 -6
  19. package/dist/apis/app.js +1 -1
  20. package/dist/apis/audit-logs.cjs +6 -6
  21. package/dist/apis/audit-logs.js +1 -1
  22. package/dist/apis/automation.cjs +6 -6
  23. package/dist/apis/automation.js +1 -1
  24. package/dist/apis/billing.cjs +6 -6
  25. package/dist/apis/billing.js +1 -1
  26. package/dist/apis/blueprint-manifest.cjs +6 -6
  27. package/dist/apis/blueprint-manifest.js +1 -1
  28. package/dist/apis/calendar.cjs +6 -6
  29. package/dist/apis/calendar.js +1 -1
  30. package/dist/apis/configuration-hub.cjs +6 -6
  31. package/dist/apis/configuration-hub.js +1 -1
  32. package/dist/apis/consent.cjs +6 -6
  33. package/dist/apis/consent.js +1 -1
  34. package/dist/apis/customer-portal.cjs +8 -8
  35. package/dist/apis/customer-portal.d.cts +2 -2
  36. package/dist/apis/customer-portal.d.ts +2 -2
  37. package/dist/apis/customer-portal.js +2 -2
  38. package/dist/apis/dashboard.cjs +6 -6
  39. package/dist/apis/dashboard.js +1 -1
  40. package/dist/apis/data-governance.cjs +6 -6
  41. package/dist/apis/data-governance.js +1 -1
  42. package/dist/apis/deduplication.cjs +6 -6
  43. package/dist/apis/deduplication.js +1 -1
  44. package/dist/apis/design.cjs +6 -6
  45. package/dist/apis/design.js +1 -1
  46. package/dist/apis/document.cjs +6 -6
  47. package/dist/apis/document.js +1 -1
  48. package/dist/apis/email-settings.cjs +6 -6
  49. package/dist/apis/email-settings.js +1 -1
  50. package/dist/apis/email-template.cjs +6 -6
  51. package/dist/apis/email-template.js +1 -1
  52. package/dist/apis/entity-mapping.cjs +6 -6
  53. package/dist/apis/entity-mapping.js +1 -1
  54. package/dist/apis/entity.cjs +6 -6
  55. package/dist/apis/entity.js +1 -1
  56. package/dist/apis/environments.cjs +6 -6
  57. package/dist/apis/environments.js +1 -1
  58. package/dist/apis/event-catalog.cjs +6 -6
  59. package/dist/apis/event-catalog.js +1 -1
  60. package/dist/apis/file.cjs +6 -6
  61. package/dist/apis/file.js +1 -1
  62. package/dist/apis/iban.cjs +6 -6
  63. package/dist/apis/iban.js +1 -1
  64. package/dist/apis/integration-toolkit.cjs +6 -6
  65. package/dist/apis/integration-toolkit.js +1 -1
  66. package/dist/apis/journey.cjs +6 -6
  67. package/dist/apis/journey.js +1 -1
  68. package/dist/apis/kanban.cjs +6 -6
  69. package/dist/apis/kanban.js +1 -1
  70. package/dist/apis/message.cjs +6 -6
  71. package/dist/apis/message.js +1 -1
  72. package/dist/apis/metering.cjs +6 -6
  73. package/dist/apis/metering.js +1 -1
  74. package/dist/apis/notes.cjs +6 -6
  75. package/dist/apis/notes.js +1 -1
  76. package/dist/apis/notification.cjs +6 -6
  77. package/dist/apis/notification.js +1 -1
  78. package/dist/apis/organization.cjs +6 -6
  79. package/dist/apis/organization.js +1 -1
  80. package/dist/apis/partner-directory.cjs +6 -6
  81. package/dist/apis/partner-directory.js +1 -1
  82. package/dist/apis/permissions.cjs +6 -6
  83. package/dist/apis/permissions.js +1 -1
  84. package/dist/apis/pricing-tier.cjs +6 -6
  85. package/dist/apis/pricing-tier.js +1 -1
  86. package/dist/apis/pricing.cjs +6 -6
  87. package/dist/apis/pricing.js +1 -1
  88. package/dist/apis/purpose.cjs +6 -6
  89. package/dist/apis/purpose.js +1 -1
  90. package/dist/apis/query.cjs +6 -6
  91. package/dist/apis/query.js +1 -1
  92. package/dist/apis/sandbox.cjs +6 -6
  93. package/dist/apis/sandbox.js +1 -1
  94. package/dist/apis/sharing.cjs +6 -6
  95. package/dist/apis/sharing.js +1 -1
  96. package/dist/apis/snapshot.cjs +6 -6
  97. package/dist/apis/snapshot.js +1 -1
  98. package/dist/apis/submission.cjs +6 -6
  99. package/dist/apis/submission.js +1 -1
  100. package/dist/apis/target.cjs +6 -6
  101. package/dist/apis/target.js +1 -1
  102. package/dist/apis/targeting.cjs +6 -6
  103. package/dist/apis/targeting.js +1 -1
  104. package/dist/apis/template-variables.cjs +6 -6
  105. package/dist/apis/template-variables.js +1 -1
  106. package/dist/apis/user.cjs +6 -6
  107. package/dist/apis/user.js +1 -1
  108. package/dist/apis/validation-rules.cjs +6 -6
  109. package/dist/apis/validation-rules.js +1 -1
  110. package/dist/apis/webhooks.cjs +6 -6
  111. package/dist/apis/webhooks.js +1 -1
  112. package/dist/apis/workflow-definition.cjs +6 -6
  113. package/dist/apis/workflow-definition.js +1 -1
  114. package/dist/apis/workflow.cjs +6 -6
  115. package/dist/apis/workflow.js +1 -1
  116. package/dist/{chunk-EPDH37RS.js → chunk-AWKA7GZQ.js} +1 -1
  117. package/dist/{chunk-ZCEIXRDJ.cjs → chunk-QAEAAKLA.cjs} +3 -3
  118. package/dist/{chunk-LKV3RKOP.cjs → chunk-QKEPXYEF.cjs} +1 -1
  119. package/dist/{chunk-C2BFLFHE.js → chunk-S6BWLYUQ.js} +3 -3
  120. package/dist/customer-portal-JLUT56QQ.js +7 -0
  121. package/dist/customer-portal-NUYHT3HX.cjs +7 -0
  122. package/dist/{customer-portal-runtime-FZQLCEJQ.js → customer-portal-runtime-6CECA6UW.js} +1 -1
  123. package/dist/{customer-portal-runtime-7WW3YRWJ.cjs → customer-portal-runtime-QMONBHLN.cjs} +2 -2
  124. package/dist/{customer-portal.d-JVkJjm_e.d.cts → customer-portal.d-Ce8-UnSY.d.cts} +794 -42
  125. package/dist/{customer-portal.d-JVkJjm_e.d.ts → customer-portal.d-Ce8-UnSY.d.ts} +794 -42
  126. package/dist/index.cjs +10 -10
  127. package/dist/index.d.cts +2 -2
  128. package/dist/index.d.ts +2 -2
  129. package/dist/index.js +2 -2
  130. package/docs/ai-agents.md +76 -19
  131. package/docs/customer-portal.md +209 -13
  132. package/package.json +1 -1
  133. package/dist/ai-agents-3JK4UU2G.js +0 -7
  134. package/dist/ai-agents-XST3YUFA.cjs +0 -7
  135. package/dist/customer-portal-JDIXJD6C.cjs +0 -7
  136. package/dist/customer-portal-WIRQ7UCN.js +0 -7
package/dist/index.cjs CHANGED
@@ -123,7 +123,7 @@ var _chunk2674L26Scjs = require('./chunk-2674L26S.cjs');
123
123
  var _chunkBM6NCHPLcjs = require('./chunk-BM6NCHPL.cjs');
124
124
 
125
125
 
126
- var _chunkLKV3RKOPcjs = require('./chunk-LKV3RKOP.cjs');
126
+ var _chunkQKEPXYEFcjs = require('./chunk-QKEPXYEF.cjs');
127
127
 
128
128
 
129
129
  var _chunkVMCF5R6Rcjs = require('./chunk-VMCF5R6R.cjs');
@@ -158,7 +158,7 @@ var _chunkADSWGLIVcjs = require('./chunk-ADSWGLIV.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkZCEIXRDJcjs = require('./chunk-ZCEIXRDJ.cjs');
161
+ var _chunkQAEAAKLAcjs = require('./chunk-QAEAAKLA.cjs');
162
162
 
163
163
 
164
164
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
225
225
  }
226
226
  if (!entry.instance) {
227
227
  const definition = entry.loader();
228
- entry.instance = _chunkZCEIXRDJcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkQAEAAKLAcjs.createApiClient.call(void 0, {
229
229
  definition,
230
230
  token: state.token,
231
231
  headers: state.globalHeaders,
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
258
258
  };
259
259
 
260
260
  // src/apis/_registry.ts
261
- var expandDef = (mod) => _chunkZCEIXRDJcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkQAEAAKLAcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -323,7 +323,7 @@ var registerBuiltinApis = (registry) => {
323
323
  registerApi({
324
324
  registry,
325
325
  name: "customerPortal",
326
- loader: () => expandDef(_chunkLKV3RKOPcjs.require_customer_portal_runtime.call(void 0, ))
326
+ loader: () => expandDef(_chunkQKEPXYEFcjs.require_customer_portal_runtime.call(void 0, ))
327
327
  });
328
328
  registerApi({
329
329
  registry,
@@ -601,9 +601,9 @@ var createSDK = () => {
601
601
  const available = [...registry.keys()].join(", ");
602
602
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
603
603
  }
604
- return _chunkZCEIXRDJcjs.createApiHandle.call(void 0, {
604
+ return _chunkQAEAAKLAcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkZCEIXRDJcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkQAEAAKLAcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
607
607
  apiName: name
608
608
  });
609
609
  };
@@ -651,9 +651,9 @@ var createSDK = () => {
651
651
  return interceptorUse;
652
652
  }
653
653
  case "help":
654
- return (apiName) => _chunkZCEIXRDJcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkQAEAAKLAcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkZCEIXRDJcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkQAEAAKLAcjs.openapi.call(void 0, apiName);
657
657
  case "then":
658
658
  case "catch":
659
659
  case "finally":
@@ -683,4 +683,4 @@ var epilot = createSDK();
683
683
 
684
684
 
685
685
 
686
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkZCEIXRDJcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkZCEIXRDJcjs.help; exports.openapi = _chunkZCEIXRDJcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkQAEAAKLAcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkQAEAAKLAcjs.help; exports.openapi = _chunkQAEAAKLAcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ export { I as Interceptor, O as OverridesConfig, a as authorize } from './types-
6
6
  import { C as Client } from './access-token.d-BhRUc8I-.cjs';
7
7
  import { C as Client$1 } from './address.d-CwAPOVxa.cjs';
8
8
  import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.cjs';
9
- import { C as Client$3 } from './ai-agents.d-BnR7CAeJ.cjs';
9
+ import { C as Client$3 } from './ai-agents.d-B3TkP4mo.cjs';
10
10
  import { C as Client$4 } from './app.d-CZDjyxee.cjs';
11
11
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.cjs';
12
12
  import { C as Client$6 } from './automation.d-DiWfPkLs.cjs';
@@ -15,7 +15,7 @@ import { C as Client$8 } from './blueprint-manifest.d-CjsI-JqR.cjs';
15
15
  import { C as Client$9 } from './calendar.d-mk-ltGpk.cjs';
16
16
  import { C as Client$a } from './configuration-hub.d-Dv41yC3b.cjs';
17
17
  import { C as Client$b } from './consent.d-C2PROHhX.cjs';
18
- import { C as Client$c } from './customer-portal.d-JVkJjm_e.cjs';
18
+ import { C as Client$c } from './customer-portal.d-Ce8-UnSY.cjs';
19
19
  import { C as Client$d } from './dashboard.d-BSevFHjf.cjs';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.cjs';
21
21
  import { C as Client$f } from './deduplication.d-Cueh8bDD.cjs';
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { I as Interceptor, O as OverridesConfig, a as authorize } from './types-
6
6
  import { C as Client } from './access-token.d-BhRUc8I-.js';
7
7
  import { C as Client$1 } from './address.d-CwAPOVxa.js';
8
8
  import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.js';
9
- import { C as Client$3 } from './ai-agents.d-BnR7CAeJ.js';
9
+ import { C as Client$3 } from './ai-agents.d-B3TkP4mo.js';
10
10
  import { C as Client$4 } from './app.d-CZDjyxee.js';
11
11
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.js';
12
12
  import { C as Client$6 } from './automation.d-DiWfPkLs.js';
@@ -15,7 +15,7 @@ import { C as Client$8 } from './blueprint-manifest.d-CjsI-JqR.js';
15
15
  import { C as Client$9 } from './calendar.d-mk-ltGpk.js';
16
16
  import { C as Client$a } from './configuration-hub.d-Dv41yC3b.js';
17
17
  import { C as Client$b } from './consent.d-C2PROHhX.js';
18
- import { C as Client$c } from './customer-portal.d-JVkJjm_e.js';
18
+ import { C as Client$c } from './customer-portal.d-Ce8-UnSY.js';
19
19
  import { C as Client$d } from './dashboard.d-BSevFHjf.js';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.js';
21
21
  import { C as Client$f } from './deduplication.d-Cueh8bDD.js';
package/dist/index.js CHANGED
@@ -123,7 +123,7 @@ import {
123
123
  } from "./chunk-2BPBDRRO.js";
124
124
  import {
125
125
  require_customer_portal_runtime
126
- } from "./chunk-EPDH37RS.js";
126
+ } from "./chunk-AWKA7GZQ.js";
127
127
  import {
128
128
  require_dashboard_runtime
129
129
  } from "./chunk-TIRWWTDP.js";
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-C2BFLFHE.js";
161
+ } from "./chunk-S6BWLYUQ.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
package/docs/ai-agents.md CHANGED
@@ -73,6 +73,8 @@ const { data } = await aiAgentsClient.createAgent(...)
73
73
  - [`PendingAction`](#pendingaction)
74
74
  - [`ExecutionError`](#executionerror)
75
75
  - [`ExecutionMetrics`](#executionmetrics)
76
+ - [`AgentExecutionEventStatus`](#agentexecutioneventstatus)
77
+ - [`AgentExecutionEvent`](#agentexecutionevent)
76
78
  - [`ToolPreview`](#toolpreview)
77
79
  - [`PreviewActionType`](#previewactiontype)
78
80
  - [`PreviewEntity`](#previewentity)
@@ -105,7 +107,7 @@ const { data } = await aiAgentsClient.createAgent(...)
105
107
 
106
108
  ### `createAgent`
107
109
 
108
- Create Agent definition
110
+ Creates a new custom agent. System skills cannot be created via this endpoint.
109
111
 
110
112
  `POST /v1/agents`
111
113
 
@@ -215,7 +217,8 @@ const { data } = await client.createAgent(
215
217
 
216
218
  ### `listAgents`
217
219
 
218
- List all agent configurations
220
+ Lists agents from both system skills and custom agents.
221
+ Use query parameters to filter by source, availability, or entity schema.
219
222
 
220
223
  `GET /v1/agents`
221
224
 
@@ -292,7 +295,9 @@ const { data } = await client.listAgents({
292
295
 
293
296
  ### `getAgentById`
294
297
 
295
- Get the agent configuration by ID
298
+ Retrieves an agent by ID. Supports both:
299
+ - System skill IDs (prefixed): "skill:email-categorizer"
300
+ - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
296
301
 
297
302
  `GET /v1/agents/{agent_id}`
298
303
 
@@ -362,7 +367,7 @@ const { data } = await client.getAgentById({
362
367
 
363
368
  ### `updateAgentById`
364
369
 
365
- Update the agent configuration by ID
370
+ Updates a custom agent. System skills cannot be updated via this endpoint.
366
371
 
367
372
  `PUT /v1/agents/{agent_id}`
368
373
 
@@ -474,7 +479,7 @@ const { data } = await client.updateAgentById(
474
479
 
475
480
  ### `deleteAgentById`
476
481
 
477
- Delete the agent configuration by ID
482
+ Deletes a custom agent. System skills cannot be deleted via this endpoint.
478
483
 
479
484
  `DELETE /v1/agents/{agent_id}`
480
485
 
@@ -488,7 +493,10 @@ const { data } = await client.deleteAgentById({
488
493
 
489
494
  ### `executeAgent`
490
495
 
491
- Execute an agent
496
+ Executes an agent (system skill or custom agent).
497
+ Supports both:
498
+ - System skill IDs (prefixed): "skill:email-categorizer"
499
+ - Custom agent IDs (UUID): "0336a235-9417-4dd8-894c-fe81285bba75"
492
500
 
493
501
  `POST /v1/agents/{agent_id}/execute`
494
502
 
@@ -624,7 +632,9 @@ const { data } = await client.executeAgent(
624
632
 
625
633
  ### `executeAgentStream`
626
634
 
627
- Execute an agent with streaming response
635
+ Executes an agent with real-time streaming of tokens and tool events.
636
+ Returns Server-Sent Events (SSE) stream with token-by-token output,
637
+ tool call progress, and completion status.
628
638
 
629
639
  `POST /v1/agents/{agent_id}/execute/stream`
630
640
 
@@ -1007,7 +1017,7 @@ const { data } = await client.cancelExecution({
1007
1017
 
1008
1018
  ### `getExecutionTrace`
1009
1019
 
1010
- Get execution trace/iterations
1020
+ Returns the step-by-step reasoning and tool calls for ReAct mode executions. Returns empty iterations array for direct mode executions.
1011
1021
 
1012
1022
  `GET /v1/executions/{execution_id}/trace`
1013
1023
 
@@ -1113,7 +1123,7 @@ const { data } = await client.putExecutionFeedback(
1113
1123
 
1114
1124
  ### `approveExecution`
1115
1125
 
1116
- Approve pending action
1126
+ Approves a pending tool action when execution is in waiting_approval status
1117
1127
 
1118
1128
  `POST /v1/executions/{execution_id}/approve`
1119
1129
 
@@ -1125,8 +1135,7 @@ const { data } = await client.approveExecution(
1125
1135
  {
1126
1136
  reason: 'string',
1127
1137
  approved_action_ids: ['string'],
1128
- rejected_action_ids: ['string'],
1129
- share_scope: 'primary_only'
1138
+ rejected_action_ids: ['string']
1130
1139
  },
1131
1140
  )
1132
1141
  ```
@@ -1234,7 +1243,7 @@ const { data } = await client.approveExecution(
1234
1243
 
1235
1244
  ### `rejectExecution`
1236
1245
 
1237
- Reject pending action
1246
+ Rejects a pending tool action when execution is in waiting_approval status
1238
1247
 
1239
1248
  `POST /v1/executions/{execution_id}/reject`
1240
1249
 
@@ -1352,7 +1361,7 @@ const { data } = await client.rejectExecution(
1352
1361
 
1353
1362
  ### `streamExecution`
1354
1363
 
1355
- Reconnect to execution stream
1364
+ Reconnects to an execution's event stream after approval. Replays missed events from event log and continues streaming if execution is still running.
1356
1365
 
1357
1366
  `GET /v1/executions/{execution_id}/stream`
1358
1367
 
@@ -1367,7 +1376,7 @@ const { data } = await client.streamExecution({
1367
1376
 
1368
1377
  ### `chat`
1369
1378
 
1370
- Streaming chat with AI agent
1379
+ Initiates a streaming chat session with an AI agent. Supports server-side conversation memory via conversationId or client-provided history via clientHistory.
1371
1380
 
1372
1381
  `POST /v1/chat`
1373
1382
 
@@ -1409,7 +1418,7 @@ const { data } = await client.chat(
1409
1418
 
1410
1419
  ### `listConversations`
1411
1420
 
1412
- List conversations
1421
+ Lists conversations for the authenticated user, sorted by most recent.
1413
1422
 
1414
1423
  `GET /v1/conversations`
1415
1424
 
@@ -1453,7 +1462,7 @@ const { data } = await client.listConversations({
1453
1462
 
1454
1463
  ### `getConversation`
1455
1464
 
1456
- Get conversation with messages
1465
+ Retrieves a conversation and its message history.
1457
1466
 
1458
1467
  `GET /v1/conversations/{conversation_id}`
1459
1468
 
@@ -1517,7 +1526,7 @@ const { data } = await client.getConversation({
1517
1526
 
1518
1527
  ### `deleteConversation`
1519
1528
 
1520
- Delete conversation
1529
+ Deletes a conversation and all its messages.
1521
1530
 
1522
1531
  `DELETE /v1/conversations/{conversation_id}`
1523
1532
 
@@ -1531,7 +1540,7 @@ const { data } = await client.deleteConversation({
1531
1540
 
1532
1541
  ### `submitConversationFeedback`
1533
1542
 
1534
- Submit feedback for an assistant turn
1543
+ Records a thumbs up/down (with optional comment) for the assistant turn identified by its Langfuse trace id. The rating is persisted on the message and mirrored to Langfuse as a trace score.
1535
1544
 
1536
1545
  `POST /v1/conversations/{conversation_id}/feedback`
1537
1546
 
@@ -1827,7 +1836,6 @@ type ApproveExecutionRequest = {
1827
1836
  reason?: string
1828
1837
  approved_action_ids?: string[]
1829
1838
  rejected_action_ids?: string[]
1830
- share_scope?: "primary_only" | "primary_and_relations"
1831
1839
  }
1832
1840
  ```
1833
1841
 
@@ -2072,6 +2080,55 @@ type ExecutionMetrics = {
2072
2080
  }
2073
2081
  ```
2074
2082
 
2083
+ ### `AgentExecutionEventStatus`
2084
+
2085
+ Lifecycle status carried on an agent execution event.
2086
+
2087
+ Deliberately narrower than `ExecutionStatus`, which is the stored status of
2088
+ the execution row: `pending` and `running` both surface as `started`, and
2089
+ `cancelled` surfaces as `failed`. Consumers must not assume the two
2090
+ vocabularies are interchang
2091
+
2092
+ ```ts
2093
+ type AgentExecutionEventStatus = "started" | "completed" | "failed" | "approval_required"
2094
+ ```
2095
+
2096
+ ### `AgentExecutionEvent`
2097
+
2098
+ Detail payload of the `agent-execution-status-update` event, published on
2099
+ the AI Agents event bus with source `ai-agents`.
2100
+
2101
+ `execution_context` and `input` are present on every status, so a consumer
2102
+ can tell whether an execution is theirs, and what it belonged to, from the
2103
+ terminal event alone — wit
2104
+
2105
+ ```ts
2106
+ type AgentExecutionEvent = {
2107
+ executionId: string
2108
+ agentId: string
2109
+ orgId: string
2110
+ userId?: string
2111
+ execution_status: "started" | "completed" | "failed" | "approval_required"
2112
+ execution_context?: "flows" | "copilot" | "api"
2113
+ input?: Record<string, unknown>
2114
+ output?: Record<string, unknown>
2115
+ error?: {
2116
+ message?: string
2117
+ code?: string
2118
+ stack?: string
2119
+ }
2120
+ duration?: number
2121
+ iterations?: number
2122
+ iteration?: number
2123
+ message?: string
2124
+ toolCalls?: Array<{
2125
+ name?: string
2126
+ args?: Record<string, unknown>
2127
+ }>
2128
+ timestamp?: string // date-time
2129
+ }
2130
+ ```
2131
+
2075
2132
  ### `ToolPreview`
2076
2133
 
2077
2134
  Structured preview data for approval UI. Provides a generic format that any tool can populate.