@epilot/sdk 2.18.9 → 2.18.11
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.
- package/definitions/ai-agents-runtime.json +1 -1
- package/definitions/ai-agents.json +185 -0
- package/definitions/file-runtime.json +1 -1
- package/definitions/file.json +178 -0
- package/dist/ai-agents-3JK4UU2G.js +7 -0
- package/dist/ai-agents-XST3YUFA.cjs +7 -0
- package/dist/{ai-agents-runtime-EA23HCCP.js → ai-agents-runtime-HOBR2KUZ.js} +1 -1
- package/dist/{ai-agents-runtime-WZ3EI3NH.cjs → ai-agents-runtime-T62OQDWE.cjs} +2 -2
- package/dist/{ai-agents.d-D-7bTH-9.d.cts → ai-agents.d-BnR7CAeJ.d.cts} +91 -1
- package/dist/{ai-agents.d-D-7bTH-9.d.ts → ai-agents.d-BnR7CAeJ.d.ts} +91 -1
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +8 -8
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +2 -2
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +8 -8
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +2 -2
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-X7DUVWSL.cjs → chunk-324JJ7CA.cjs} +4 -4
- package/dist/chunk-5S2PEECD.cjs +14 -0
- package/dist/{chunk-YEBEA6XU.cjs → chunk-GD6KHA54.cjs} +1 -1
- package/dist/chunk-IBMGFLXF.js +14 -0
- package/dist/{chunk-BRWY3QHG.js → chunk-IZ6OQZZ2.js} +1 -1
- package/dist/{chunk-P32T4ZYN.js → chunk-MIHMEO7K.js} +4 -4
- package/dist/file-M5HNKOPG.cjs +7 -0
- package/dist/file-ZUNCUDBY.js +7 -0
- package/dist/{file-runtime-ASJ6YBDM.js → file-runtime-423SISQ2.js} +1 -1
- package/dist/file-runtime-IHVDQNIX.cjs +5 -0
- package/dist/{file.d-FYKxJ29C.d.cts → file.d-CBsXF4W8.d.cts} +218 -1
- package/dist/{file.d-FYKxJ29C.d.ts → file.d-CBsXF4W8.d.ts} +218 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/docs/ai-agents.md +104 -0
- package/docs/file.md +122 -0
- package/package.json +1 -1
- package/dist/ai-agents-D6C5TXLD.cjs +0 -7
- package/dist/ai-agents-Y6PH53PH.js +0 -7
- package/dist/chunk-CIPXCDZ6.js +0 -14
- package/dist/chunk-CO7WGRHF.cjs +0 -14
- package/dist/file-A6OZJKIS.cjs +0 -7
- package/dist/file-CRT7VUGQ.js +0 -7
- package/dist/file-runtime-VQIZUOUB.cjs +0 -5
package/dist/index.cjs
CHANGED
|
@@ -63,7 +63,7 @@ var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
|
|
|
63
63
|
var _chunkFDS727SLcjs = require('./chunk-FDS727SL.cjs');
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunk5S2PEECDcjs = require('./chunk-5S2PEECD.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
|
|
@@ -141,7 +141,7 @@ var _chunkLKRBFBFNcjs = require('./chunk-LKRBFBFN.cjs');
|
|
|
141
141
|
var _chunkT67ZXTVGcjs = require('./chunk-T67ZXTVG.cjs');
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var
|
|
144
|
+
var _chunkGD6KHA54cjs = require('./chunk-GD6KHA54.cjs');
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
var _chunkW6BCTQLUcjs = require('./chunk-W6BCTQLU.cjs');
|
|
@@ -158,7 +158,7 @@ var _chunkADSWGLIVcjs = require('./chunk-ADSWGLIV.cjs');
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
var
|
|
161
|
+
var _chunk324JJ7CAcjs = require('./chunk-324JJ7CA.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 =
|
|
228
|
+
entry.instance = _chunk324JJ7CAcjs.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) =>
|
|
261
|
+
var expandDef = (mod) => _chunk324JJ7CAcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
262
262
|
var registerBuiltinApis = (registry) => {
|
|
263
263
|
registerApi({
|
|
264
264
|
registry,
|
|
@@ -278,7 +278,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
278
278
|
registerApi({
|
|
279
279
|
registry,
|
|
280
280
|
name: "aiAgents",
|
|
281
|
-
loader: () => expandDef(
|
|
281
|
+
loader: () => expandDef(_chunkGD6KHA54cjs.require_ai_agents_runtime.call(void 0, ))
|
|
282
282
|
});
|
|
283
283
|
registerApi({
|
|
284
284
|
registry,
|
|
@@ -383,7 +383,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
383
383
|
registerApi({
|
|
384
384
|
registry,
|
|
385
385
|
name: "file",
|
|
386
|
-
loader: () => expandDef(
|
|
386
|
+
loader: () => expandDef(_chunk5S2PEECDcjs.require_file_runtime.call(void 0, ))
|
|
387
387
|
});
|
|
388
388
|
registerApi({
|
|
389
389
|
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
|
|
604
|
+
return _chunk324JJ7CAcjs.createApiHandle.call(void 0, {
|
|
605
605
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
606
|
-
createClient: () =>
|
|
606
|
+
createClient: () => _chunk324JJ7CAcjs.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) =>
|
|
654
|
+
return (apiName) => _chunk324JJ7CAcjs.help.call(void 0, apiName);
|
|
655
655
|
case "openapi":
|
|
656
|
-
return (apiName) =>
|
|
656
|
+
return (apiName) => _chunk324JJ7CAcjs.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 =
|
|
686
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk324JJ7CAcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk324JJ7CAcjs.help; exports.openapi = _chunk324JJ7CAcjs.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-
|
|
9
|
+
import { C as Client$3 } from './ai-agents.d-BnR7CAeJ.cjs';
|
|
10
10
|
import { C as Client$4 } from './app.d-B5s8GfqF.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';
|
|
@@ -27,7 +27,7 @@ import { C as Client$k } from './entity.d-BOpXYCU2.cjs';
|
|
|
27
27
|
import { C as Client$l } from './entity-mapping.d-DKSW3sfy.cjs';
|
|
28
28
|
import { C as Client$m } from './environments.d-BvqvN-PD.cjs';
|
|
29
29
|
import { C as Client$n } from './event-catalog.d-QIhhewVH.cjs';
|
|
30
|
-
import { C as Client$o } from './file.d-
|
|
30
|
+
import { C as Client$o } from './file.d-CBsXF4W8.cjs';
|
|
31
31
|
import { C as Client$p } from './iban.d-BwdiGbxi.cjs';
|
|
32
32
|
import { C as Client$q } from './integration-toolkit.d-D5LjhCQB.cjs';
|
|
33
33
|
import { C as Client$r } from './journey.d-B1sOeMHw.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-
|
|
9
|
+
import { C as Client$3 } from './ai-agents.d-BnR7CAeJ.js';
|
|
10
10
|
import { C as Client$4 } from './app.d-B5s8GfqF.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';
|
|
@@ -27,7 +27,7 @@ import { C as Client$k } from './entity.d-BOpXYCU2.js';
|
|
|
27
27
|
import { C as Client$l } from './entity-mapping.d-DKSW3sfy.js';
|
|
28
28
|
import { C as Client$m } from './environments.d-BvqvN-PD.js';
|
|
29
29
|
import { C as Client$n } from './event-catalog.d-QIhhewVH.js';
|
|
30
|
-
import { C as Client$o } from './file.d-
|
|
30
|
+
import { C as Client$o } from './file.d-CBsXF4W8.js';
|
|
31
31
|
import { C as Client$p } from './iban.d-BwdiGbxi.js';
|
|
32
32
|
import { C as Client$q } from './integration-toolkit.d-D5LjhCQB.js';
|
|
33
33
|
import { C as Client$r } from './journey.d-B1sOeMHw.js';
|
package/dist/index.js
CHANGED
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
} from "./chunk-M4FO2MI4.js";
|
|
64
64
|
import {
|
|
65
65
|
require_file_runtime
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-IBMGFLXF.js";
|
|
67
67
|
import {
|
|
68
68
|
require_iban_runtime
|
|
69
69
|
} from "./chunk-5MFHAXBT.js";
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
} from "./chunk-H45V55VT.js";
|
|
142
142
|
import {
|
|
143
143
|
require_ai_agents_runtime
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-IZ6OQZZ2.js";
|
|
145
145
|
import {
|
|
146
146
|
require_app_runtime
|
|
147
147
|
} from "./chunk-ZEOU24C3.js";
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
expand,
|
|
159
159
|
help,
|
|
160
160
|
openapi
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-MIHMEO7K.js";
|
|
162
162
|
import {
|
|
163
163
|
__require
|
|
164
164
|
} from "./chunk-YPSWSI3M.js";
|
package/docs/ai-agents.md
CHANGED
|
@@ -38,6 +38,8 @@ const { data } = await aiAgentsClient.createAgent(...)
|
|
|
38
38
|
- [`getExecution`](#getexecution)
|
|
39
39
|
- [`cancelExecution`](#cancelexecution)
|
|
40
40
|
- [`getExecutionTrace`](#getexecutiontrace)
|
|
41
|
+
- [`getExecutionFeedback`](#getexecutionfeedback)
|
|
42
|
+
- [`putExecutionFeedback`](#putexecutionfeedback)
|
|
41
43
|
- [`approveExecution`](#approveexecution)
|
|
42
44
|
- [`rejectExecution`](#rejectexecution)
|
|
43
45
|
- [`streamExecution`](#streamexecution)
|
|
@@ -63,6 +65,9 @@ const { data } = await aiAgentsClient.createAgent(...)
|
|
|
63
65
|
- [`ExecuteAgentRequest`](#executeagentrequest)
|
|
64
66
|
- [`ExecutionResponse`](#executionresponse)
|
|
65
67
|
- [`ExecutionIterationProjection`](#executioniterationprojection)
|
|
68
|
+
- [`ExecutionFeedback`](#executionfeedback)
|
|
69
|
+
- [`ExecutionFeedbackResponse`](#executionfeedbackresponse)
|
|
70
|
+
- [`PutExecutionFeedbackRequest`](#putexecutionfeedbackrequest)
|
|
66
71
|
- [`ExecutionTrace`](#executiontrace)
|
|
67
72
|
- [`ExecutionIteration`](#executioniteration)
|
|
68
73
|
- [`PendingAction`](#pendingaction)
|
|
@@ -1040,6 +1045,72 @@ const { data } = await client.getExecutionTrace({
|
|
|
1040
1045
|
|
|
1041
1046
|
---
|
|
1042
1047
|
|
|
1048
|
+
### `getExecutionFeedback`
|
|
1049
|
+
|
|
1050
|
+
Get execution feedback
|
|
1051
|
+
|
|
1052
|
+
`GET /v1/executions/{execution_id}/feedback`
|
|
1053
|
+
|
|
1054
|
+
```ts
|
|
1055
|
+
const { data } = await client.getExecutionFeedback({
|
|
1056
|
+
execution_id: 'example',
|
|
1057
|
+
})
|
|
1058
|
+
```
|
|
1059
|
+
|
|
1060
|
+
<details>
|
|
1061
|
+
<summary>Response</summary>
|
|
1062
|
+
|
|
1063
|
+
```json
|
|
1064
|
+
{
|
|
1065
|
+
"feedback": {
|
|
1066
|
+
"rating": "up",
|
|
1067
|
+
"comment": "string",
|
|
1068
|
+
"user_id": "string",
|
|
1069
|
+
"submitted_at": "1970-01-01T00:00:00.000Z"
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
```
|
|
1073
|
+
|
|
1074
|
+
</details>
|
|
1075
|
+
|
|
1076
|
+
---
|
|
1077
|
+
|
|
1078
|
+
### `putExecutionFeedback`
|
|
1079
|
+
|
|
1080
|
+
Submit execution feedback
|
|
1081
|
+
|
|
1082
|
+
`PUT /v1/executions/{execution_id}/feedback`
|
|
1083
|
+
|
|
1084
|
+
```ts
|
|
1085
|
+
const { data } = await client.putExecutionFeedback(
|
|
1086
|
+
{
|
|
1087
|
+
execution_id: 'example',
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
rating: 'up',
|
|
1091
|
+
comment: 'string'
|
|
1092
|
+
},
|
|
1093
|
+
)
|
|
1094
|
+
```
|
|
1095
|
+
|
|
1096
|
+
<details>
|
|
1097
|
+
<summary>Response</summary>
|
|
1098
|
+
|
|
1099
|
+
```json
|
|
1100
|
+
{
|
|
1101
|
+
"feedback": {
|
|
1102
|
+
"rating": "up",
|
|
1103
|
+
"comment": "string",
|
|
1104
|
+
"user_id": "string",
|
|
1105
|
+
"submitted_at": "1970-01-01T00:00:00.000Z"
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
```
|
|
1109
|
+
|
|
1110
|
+
</details>
|
|
1111
|
+
|
|
1112
|
+
---
|
|
1113
|
+
|
|
1043
1114
|
### `approveExecution`
|
|
1044
1115
|
|
|
1045
1116
|
Approve pending action
|
|
@@ -1857,6 +1928,39 @@ type ExecutionIterationProjection = {
|
|
|
1857
1928
|
}
|
|
1858
1929
|
```
|
|
1859
1930
|
|
|
1931
|
+
### `ExecutionFeedback`
|
|
1932
|
+
|
|
1933
|
+
```ts
|
|
1934
|
+
type ExecutionFeedback = {
|
|
1935
|
+
rating: "up" | "down"
|
|
1936
|
+
comment?: string
|
|
1937
|
+
user_id: string
|
|
1938
|
+
submitted_at: string // date-time
|
|
1939
|
+
}
|
|
1940
|
+
```
|
|
1941
|
+
|
|
1942
|
+
### `ExecutionFeedbackResponse`
|
|
1943
|
+
|
|
1944
|
+
```ts
|
|
1945
|
+
type ExecutionFeedbackResponse = {
|
|
1946
|
+
feedback: {
|
|
1947
|
+
rating: "up" | "down"
|
|
1948
|
+
comment?: string
|
|
1949
|
+
user_id: string
|
|
1950
|
+
submitted_at: string // date-time
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
```
|
|
1954
|
+
|
|
1955
|
+
### `PutExecutionFeedbackRequest`
|
|
1956
|
+
|
|
1957
|
+
```ts
|
|
1958
|
+
type PutExecutionFeedbackRequest = {
|
|
1959
|
+
rating: "up" | "down"
|
|
1960
|
+
comment?: string
|
|
1961
|
+
}
|
|
1962
|
+
```
|
|
1963
|
+
|
|
1860
1964
|
### `ExecutionTrace`
|
|
1861
1965
|
|
|
1862
1966
|
```ts
|
package/docs/file.md
CHANGED
|
@@ -35,6 +35,8 @@ const { data } = await fileClient.uploadFileV2(...)
|
|
|
35
35
|
- [`createZipJob`](#createzipjob)
|
|
36
36
|
- [`getZipJob`](#getzipjob)
|
|
37
37
|
- [`getFileSummary`](#getfilesummary)
|
|
38
|
+
- [`getFileSummaryFeedback`](#getfilesummaryfeedback)
|
|
39
|
+
- [`putFileSummaryFeedback`](#putfilesummaryfeedback)
|
|
38
40
|
- [`createFileSummaryJob`](#createfilesummaryjob)
|
|
39
41
|
- [`getCurrentFileSummaryJob`](#getcurrentfilesummaryjob)
|
|
40
42
|
- [`getFileSummaryJob`](#getfilesummaryjob)
|
|
@@ -77,6 +79,9 @@ const { data } = await fileClient.uploadFileV2(...)
|
|
|
77
79
|
- [`FileSummaryJobStatus`](#filesummaryjobstatus)
|
|
78
80
|
- [`FileSummaryJob`](#filesummaryjob)
|
|
79
81
|
- [`FileSummary`](#filesummary)
|
|
82
|
+
- [`FileSummaryFeedback`](#filesummaryfeedback)
|
|
83
|
+
- [`FileSummaryFeedbackResponse`](#filesummaryfeedbackresponse)
|
|
84
|
+
- [`PutFileSummaryFeedbackRequest`](#putfilesummaryfeedbackrequest)
|
|
80
85
|
- [`FileTextStatus`](#filetextstatus)
|
|
81
86
|
- [`FileText`](#filetext)
|
|
82
87
|
- [`FileTextReady`](#filetextready)
|
|
@@ -194,6 +199,7 @@ const { data } = await client.saveFileV2(
|
|
|
194
199
|
short_summary_de: 'string',
|
|
195
200
|
preview_summary_en: 'string',
|
|
196
201
|
short_summary_en: 'string',
|
|
202
|
+
file_summary_execution_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
197
203
|
s3ref: {}
|
|
198
204
|
},
|
|
199
205
|
)
|
|
@@ -225,6 +231,7 @@ const { data } = await client.saveFileV2(
|
|
|
225
231
|
"short_summary_de": "string",
|
|
226
232
|
"preview_summary_en": "string",
|
|
227
233
|
"short_summary_en": "string",
|
|
234
|
+
"file_summary_execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
228
235
|
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
|
|
229
236
|
"s3ref": {},
|
|
230
237
|
"versions": [
|
|
@@ -299,6 +306,7 @@ const { data } = await client.getFile({
|
|
|
299
306
|
"short_summary_de": "string",
|
|
300
307
|
"preview_summary_en": "string",
|
|
301
308
|
"short_summary_en": "string",
|
|
309
|
+
"file_summary_execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
302
310
|
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
|
|
303
311
|
"s3ref": {},
|
|
304
312
|
"versions": [
|
|
@@ -373,6 +381,7 @@ const { data } = await client.deleteFile({
|
|
|
373
381
|
"short_summary_de": "string",
|
|
374
382
|
"preview_summary_en": "string",
|
|
375
383
|
"short_summary_en": "string",
|
|
384
|
+
"file_summary_execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
376
385
|
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
|
|
377
386
|
"s3ref": {},
|
|
378
387
|
"versions": [
|
|
@@ -571,6 +580,7 @@ const { data } = await client.getFileSummary({
|
|
|
571
580
|
{
|
|
572
581
|
"status": "queued",
|
|
573
582
|
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
583
|
+
"feedback_available": true,
|
|
574
584
|
"preview_summary_de": "string",
|
|
575
585
|
"short_summary_de": "string",
|
|
576
586
|
"preview_summary_en": "string",
|
|
@@ -582,6 +592,72 @@ const { data } = await client.getFileSummary({
|
|
|
582
592
|
|
|
583
593
|
---
|
|
584
594
|
|
|
595
|
+
### `getFileSummaryFeedback`
|
|
596
|
+
|
|
597
|
+
Get file summary feedback
|
|
598
|
+
|
|
599
|
+
`GET /v1/files/{id}/summary/feedback`
|
|
600
|
+
|
|
601
|
+
```ts
|
|
602
|
+
const { data } = await client.getFileSummaryFeedback({
|
|
603
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
604
|
+
})
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
<details>
|
|
608
|
+
<summary>Response</summary>
|
|
609
|
+
|
|
610
|
+
```json
|
|
611
|
+
{
|
|
612
|
+
"feedback": {
|
|
613
|
+
"rating": "up",
|
|
614
|
+
"comment": "string",
|
|
615
|
+
"user_id": "string",
|
|
616
|
+
"submitted_at": "1970-01-01T00:00:00.000Z"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
</details>
|
|
622
|
+
|
|
623
|
+
---
|
|
624
|
+
|
|
625
|
+
### `putFileSummaryFeedback`
|
|
626
|
+
|
|
627
|
+
Submit file summary feedback
|
|
628
|
+
|
|
629
|
+
`PUT /v1/files/{id}/summary/feedback`
|
|
630
|
+
|
|
631
|
+
```ts
|
|
632
|
+
const { data } = await client.putFileSummaryFeedback(
|
|
633
|
+
{
|
|
634
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
rating: 'up',
|
|
638
|
+
comment: 'string'
|
|
639
|
+
},
|
|
640
|
+
)
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
<details>
|
|
644
|
+
<summary>Response</summary>
|
|
645
|
+
|
|
646
|
+
```json
|
|
647
|
+
{
|
|
648
|
+
"feedback": {
|
|
649
|
+
"rating": "up",
|
|
650
|
+
"comment": "string",
|
|
651
|
+
"user_id": "string",
|
|
652
|
+
"submitted_at": "1970-01-01T00:00:00.000Z"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
</details>
|
|
658
|
+
|
|
659
|
+
---
|
|
660
|
+
|
|
585
661
|
### `createFileSummaryJob`
|
|
586
662
|
|
|
587
663
|
Create or return the current AI summary job for a file entity.
|
|
@@ -1123,6 +1199,7 @@ const { data } = await client.getFilesInCollection({
|
|
|
1123
1199
|
"short_summary_de": "string",
|
|
1124
1200
|
"preview_summary_en": "string",
|
|
1125
1201
|
"short_summary_en": "string",
|
|
1202
|
+
"file_summary_execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1126
1203
|
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
|
|
1127
1204
|
"s3ref": {},
|
|
1128
1205
|
"versions": [
|
|
@@ -1244,6 +1321,7 @@ type FileAttributes = {
|
|
|
1244
1321
|
short_summary_de?: string
|
|
1245
1322
|
preview_summary_en?: string
|
|
1246
1323
|
short_summary_en?: string
|
|
1324
|
+
file_summary_execution_id?: string // uuid
|
|
1247
1325
|
}
|
|
1248
1326
|
```
|
|
1249
1327
|
|
|
@@ -1281,6 +1359,7 @@ type FileSummaryJob = {
|
|
|
1281
1359
|
type FileSummary = {
|
|
1282
1360
|
status?: "queued" | "waiting_for_extraction" | "processing" | "completed" | "failed" | "unsupported" | "stale"
|
|
1283
1361
|
job_id?: string // uuid
|
|
1362
|
+
feedback_available?: boolean
|
|
1284
1363
|
preview_summary_de?: string
|
|
1285
1364
|
short_summary_de?: string
|
|
1286
1365
|
preview_summary_en?: string
|
|
@@ -1288,6 +1367,39 @@ type FileSummary = {
|
|
|
1288
1367
|
}
|
|
1289
1368
|
```
|
|
1290
1369
|
|
|
1370
|
+
### `FileSummaryFeedback`
|
|
1371
|
+
|
|
1372
|
+
```ts
|
|
1373
|
+
type FileSummaryFeedback = {
|
|
1374
|
+
rating: "up" | "down"
|
|
1375
|
+
comment?: string
|
|
1376
|
+
user_id: string
|
|
1377
|
+
submitted_at: string // date-time
|
|
1378
|
+
}
|
|
1379
|
+
```
|
|
1380
|
+
|
|
1381
|
+
### `FileSummaryFeedbackResponse`
|
|
1382
|
+
|
|
1383
|
+
```ts
|
|
1384
|
+
type FileSummaryFeedbackResponse = {
|
|
1385
|
+
feedback: {
|
|
1386
|
+
rating: "up" | "down"
|
|
1387
|
+
comment?: string
|
|
1388
|
+
user_id: string
|
|
1389
|
+
submitted_at: string // date-time
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
```
|
|
1393
|
+
|
|
1394
|
+
### `PutFileSummaryFeedbackRequest`
|
|
1395
|
+
|
|
1396
|
+
```ts
|
|
1397
|
+
type PutFileSummaryFeedbackRequest = {
|
|
1398
|
+
rating: "up" | "down"
|
|
1399
|
+
comment?: string
|
|
1400
|
+
}
|
|
1401
|
+
```
|
|
1402
|
+
|
|
1291
1403
|
### `FileTextStatus`
|
|
1292
1404
|
|
|
1293
1405
|
Availability of the plain-text representation for a file entity.
|
|
@@ -1379,6 +1491,7 @@ type FileEntity = {
|
|
|
1379
1491
|
short_summary_de?: string
|
|
1380
1492
|
preview_summary_en?: string
|
|
1381
1493
|
short_summary_en?: string
|
|
1494
|
+
file_summary_execution_id?: string // uuid
|
|
1382
1495
|
source_url?: string
|
|
1383
1496
|
s3ref?: object
|
|
1384
1497
|
versions: Array<{
|
|
@@ -1446,6 +1559,7 @@ type SaveS3FilePayload = {
|
|
|
1446
1559
|
short_summary_de?: string
|
|
1447
1560
|
preview_summary_en?: string
|
|
1448
1561
|
short_summary_en?: string
|
|
1562
|
+
file_summary_execution_id?: string // uuid
|
|
1449
1563
|
s3ref?: unknown
|
|
1450
1564
|
}
|
|
1451
1565
|
```
|
|
@@ -1478,6 +1592,7 @@ type SaveFileFromSourceURLPayload = {
|
|
|
1478
1592
|
short_summary_de?: string
|
|
1479
1593
|
preview_summary_en?: string
|
|
1480
1594
|
short_summary_en?: string
|
|
1595
|
+
file_summary_execution_id?: string // uuid
|
|
1481
1596
|
source_url?: string // uri
|
|
1482
1597
|
}
|
|
1483
1598
|
```
|
|
@@ -1510,6 +1625,7 @@ type SaveCustomFilePayload = {
|
|
|
1510
1625
|
short_summary_de?: string
|
|
1511
1626
|
preview_summary_en?: string
|
|
1512
1627
|
short_summary_en?: string
|
|
1628
|
+
file_summary_execution_id?: string // uuid
|
|
1513
1629
|
}
|
|
1514
1630
|
```
|
|
1515
1631
|
|
|
@@ -1541,6 +1657,7 @@ type SaveFilePayload = {
|
|
|
1541
1657
|
short_summary_de?: string
|
|
1542
1658
|
preview_summary_en?: string
|
|
1543
1659
|
short_summary_en?: string
|
|
1660
|
+
file_summary_execution_id?: string // uuid
|
|
1544
1661
|
s3ref?: unknown
|
|
1545
1662
|
} | {
|
|
1546
1663
|
_id?: object
|
|
@@ -1567,6 +1684,7 @@ type SaveFilePayload = {
|
|
|
1567
1684
|
short_summary_de?: string
|
|
1568
1685
|
preview_summary_en?: string
|
|
1569
1686
|
short_summary_en?: string
|
|
1687
|
+
file_summary_execution_id?: string // uuid
|
|
1570
1688
|
source_url?: string // uri
|
|
1571
1689
|
} | {
|
|
1572
1690
|
_id?: object
|
|
@@ -1593,6 +1711,7 @@ type SaveFilePayload = {
|
|
|
1593
1711
|
short_summary_de?: string
|
|
1594
1712
|
preview_summary_en?: string
|
|
1595
1713
|
short_summary_en?: string
|
|
1714
|
+
file_summary_execution_id?: string // uuid
|
|
1596
1715
|
}
|
|
1597
1716
|
```
|
|
1598
1717
|
|
|
@@ -1624,6 +1743,7 @@ type SaveFilePayloadV2 = {
|
|
|
1624
1743
|
short_summary_de?: string
|
|
1625
1744
|
preview_summary_en?: string
|
|
1626
1745
|
short_summary_en?: string
|
|
1746
|
+
file_summary_execution_id?: string // uuid
|
|
1627
1747
|
s3ref?: unknown
|
|
1628
1748
|
} | {
|
|
1629
1749
|
_id?: object
|
|
@@ -1650,6 +1770,7 @@ type SaveFilePayloadV2 = {
|
|
|
1650
1770
|
short_summary_de?: string
|
|
1651
1771
|
preview_summary_en?: string
|
|
1652
1772
|
short_summary_en?: string
|
|
1773
|
+
file_summary_execution_id?: string // uuid
|
|
1653
1774
|
source_url?: string // uri
|
|
1654
1775
|
} | {
|
|
1655
1776
|
_id?: object
|
|
@@ -1676,6 +1797,7 @@ type SaveFilePayloadV2 = {
|
|
|
1676
1797
|
short_summary_de?: string
|
|
1677
1798
|
preview_summary_en?: string
|
|
1678
1799
|
short_summary_en?: string
|
|
1800
|
+
file_summary_execution_id?: string // uuid
|
|
1679
1801
|
}
|
|
1680
1802
|
```
|
|
1681
1803
|
|