@knowledge-stack/ksapi 1.56.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -2
- package/README.md +14 -6
- package/dist/apis/DocumentVersionsApi.d.ts +8 -5
- package/dist/apis/DocumentVersionsApi.js +5 -2
- package/dist/apis/ThreadMessagesApi.d.ts +6 -6
- package/dist/apis/ThreadMessagesApi.js +2 -2
- package/dist/apis/WorkflowsApi.d.ts +144 -59
- package/dist/apis/WorkflowsApi.js +131 -49
- package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -5
- package/dist/esm/apis/DocumentVersionsApi.js +5 -2
- package/dist/esm/apis/ThreadMessagesApi.d.ts +6 -6
- package/dist/esm/apis/ThreadMessagesApi.js +2 -2
- package/dist/esm/apis/WorkflowsApi.d.ts +144 -59
- package/dist/esm/apis/WorkflowsApi.js +132 -50
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +6 -0
- package/dist/esm/models/CreateThreadMessageRequest.js +2 -0
- package/dist/esm/models/DocumentVersionContentTypeFilter.d.ts +25 -0
- package/dist/esm/models/DocumentVersionContentTypeFilter.js +43 -0
- package/dist/esm/models/EnrichedThreadMessageContent.d.ts +13 -0
- package/dist/esm/models/EnrichedThreadMessageContent.js +5 -0
- package/dist/esm/models/NonFilesystemReferenceType.d.ts +27 -0
- package/dist/esm/models/NonFilesystemReferenceType.js +45 -0
- package/dist/esm/models/ReferenceType.d.ts +34 -0
- package/dist/esm/models/ReferenceType.js +52 -0
- package/dist/esm/models/ResolvedReferenceInput.d.ts +70 -0
- package/dist/esm/models/ResolvedReferenceInput.js +55 -0
- package/dist/esm/models/ResolvedReferenceOutput.d.ts +69 -0
- package/dist/esm/models/ResolvedReferenceOutput.js +54 -0
- package/dist/esm/models/StepInput.d.ts +6 -0
- package/dist/esm/models/StepInput.js +4 -0
- package/dist/esm/models/StepKind.d.ts +1 -0
- package/dist/esm/models/StepKind.js +1 -0
- package/dist/esm/models/StepOutput.d.ts +6 -0
- package/dist/esm/models/StepOutput.js +4 -0
- package/dist/esm/models/TemporalWorkflowStatusResponse.d.ts +83 -0
- package/dist/esm/models/TemporalWorkflowStatusResponse.js +66 -0
- package/dist/esm/models/ThreadMessageContent.d.ts +13 -0
- package/dist/esm/models/ThreadMessageContent.js +5 -0
- package/dist/esm/models/WorkflowActionResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowCancelResponse.d.ts +53 -0
- package/dist/esm/models/WorkflowCancelResponse.js +48 -0
- package/dist/esm/models/index.d.ts +7 -1
- package/dist/esm/models/index.js +7 -1
- package/dist/models/CreateThreadMessageRequest.d.ts +6 -0
- package/dist/models/CreateThreadMessageRequest.js +2 -0
- package/dist/models/DocumentVersionContentTypeFilter.d.ts +25 -0
- package/dist/models/DocumentVersionContentTypeFilter.js +51 -0
- package/dist/models/EnrichedThreadMessageContent.d.ts +13 -0
- package/dist/models/EnrichedThreadMessageContent.js +5 -0
- package/dist/models/NonFilesystemReferenceType.d.ts +27 -0
- package/dist/models/NonFilesystemReferenceType.js +53 -0
- package/dist/models/ReferenceType.d.ts +34 -0
- package/dist/models/ReferenceType.js +60 -0
- package/dist/models/ResolvedReferenceInput.d.ts +70 -0
- package/dist/models/ResolvedReferenceInput.js +63 -0
- package/dist/models/ResolvedReferenceOutput.d.ts +69 -0
- package/dist/models/ResolvedReferenceOutput.js +62 -0
- package/dist/models/StepInput.d.ts +6 -0
- package/dist/models/StepInput.js +4 -0
- package/dist/models/StepKind.d.ts +1 -0
- package/dist/models/StepKind.js +1 -0
- package/dist/models/StepOutput.d.ts +6 -0
- package/dist/models/StepOutput.js +4 -0
- package/dist/models/TemporalWorkflowStatusResponse.d.ts +83 -0
- package/dist/models/TemporalWorkflowStatusResponse.js +74 -0
- package/dist/models/ThreadMessageContent.d.ts +13 -0
- package/dist/models/ThreadMessageContent.js +5 -0
- package/dist/models/WorkflowActionResponse.d.ts +1 -1
- package/dist/models/WorkflowCancelResponse.d.ts +53 -0
- package/dist/models/WorkflowCancelResponse.js +56 -0
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/docs/CreateThreadMessageRequest.md +2 -0
- package/docs/DocumentVersionContentTypeFilter.md +33 -0
- package/docs/DocumentVersionsApi.md +5 -2
- package/docs/EnrichedThreadMessageContent.md +4 -0
- package/docs/NonFilesystemReferenceType.md +33 -0
- package/docs/{WorkflowAction.md → ReferenceType.md} +4 -5
- package/docs/ResolvedReferenceInput.md +41 -0
- package/docs/ResolvedReferenceOutput.md +41 -0
- package/docs/StepInput.md +2 -0
- package/docs/StepOutput.md +2 -0
- package/docs/TemporalWorkflowStatusResponse.md +47 -0
- package/docs/ThreadMessageContent.md +4 -0
- package/docs/ThreadMessagesApi.md +3 -3
- package/docs/WorkflowActionResponse.md +1 -1
- package/docs/WorkflowCancelResponse.md +37 -0
- package/docs/WorkflowsApi.md +183 -36
- package/package.json +1 -1
- package/src/apis/DocumentVersionsApi.ts +14 -4
- package/src/apis/ThreadMessagesApi.ts +6 -6
- package/src/apis/WorkflowsApi.ts +249 -90
- package/src/models/CreateThreadMessageRequest.ts +8 -0
- package/src/models/DocumentVersionContentTypeFilter.ts +53 -0
- package/src/models/EnrichedThreadMessageContent.ts +23 -0
- package/src/models/NonFilesystemReferenceType.ts +55 -0
- package/src/models/ReferenceType.ts +62 -0
- package/src/models/ResolvedReferenceInput.ts +123 -0
- package/src/models/ResolvedReferenceOutput.ts +113 -0
- package/src/models/StepInput.ts +9 -0
- package/src/models/StepKind.ts +1 -0
- package/src/models/StepOutput.ts +9 -0
- package/src/models/TemporalWorkflowStatusResponse.ts +136 -0
- package/src/models/ThreadMessageContent.ts +23 -0
- package/src/models/WorkflowActionResponse.ts +1 -1
- package/src/models/WorkflowCancelResponse.ts +92 -0
- package/src/models/index.ts +7 -1
- package/dist/esm/models/WorkflowAction.d.ts +0 -25
- package/dist/esm/models/WorkflowAction.js +0 -43
- package/dist/models/WorkflowAction.d.ts +0 -25
- package/dist/models/WorkflowAction.js +0 -51
- package/src/models/WorkflowAction.ts +0 -53
package/docs/WorkflowsApi.md
CHANGED
|
@@ -4,19 +4,21 @@ All URIs are relative to *http://localhost:8000*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**
|
|
8
|
-
| [**
|
|
9
|
-
| [**
|
|
7
|
+
| [**cancelTemporalWorkflow**](WorkflowsApi.md#canceltemporalworkflow) | **DELETE** /v1/workflows/{workflow_id} | Cancel Temporal Workflow Handler |
|
|
8
|
+
| [**dvWorkflowRerun**](WorkflowsApi.md#dvworkflowrerun) | **POST** /v1/workflows/document_versions/{workflow_id} | Dv Workflow Rerun Handler |
|
|
9
|
+
| [**getDvWorkflow**](WorkflowsApi.md#getdvworkflow) | **GET** /v1/workflows/document_versions/{workflow_id} | Get Dv Workflow Handler |
|
|
10
|
+
| [**getTemporalWorkflowStatus**](WorkflowsApi.md#gettemporalworkflowstatus) | **GET** /v1/workflows/{workflow_id} | Get Temporal Workflow Status Handler |
|
|
11
|
+
| [**listDvWorkflows**](WorkflowsApi.md#listdvworkflows) | **GET** /v1/workflows/document_versions | List Dv Workflows Handler |
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
|
|
13
|
-
##
|
|
15
|
+
## cancelTemporalWorkflow
|
|
14
16
|
|
|
15
|
-
>
|
|
17
|
+
> WorkflowCancelResponse cancelTemporalWorkflow(workflowId, authorization, ksUat)
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
Cancel Temporal Workflow Handler
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
|
|
20
22
|
|
|
21
23
|
### Example
|
|
22
24
|
|
|
@@ -25,7 +27,7 @@ import {
|
|
|
25
27
|
Configuration,
|
|
26
28
|
WorkflowsApi,
|
|
27
29
|
} from '@knowledge-stack/ksapi';
|
|
28
|
-
import type {
|
|
30
|
+
import type { CancelTemporalWorkflowRequest } from '@knowledge-stack/ksapi';
|
|
29
31
|
|
|
30
32
|
async function example() {
|
|
31
33
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
@@ -38,10 +40,10 @@ async function example() {
|
|
|
38
40
|
authorization: authorization_example,
|
|
39
41
|
// string (optional)
|
|
40
42
|
ksUat: ksUat_example,
|
|
41
|
-
} satisfies
|
|
43
|
+
} satisfies CancelTemporalWorkflowRequest;
|
|
42
44
|
|
|
43
45
|
try {
|
|
44
|
-
const data = await api.
|
|
46
|
+
const data = await api.cancelTemporalWorkflow(body);
|
|
45
47
|
console.log(data);
|
|
46
48
|
} catch (error) {
|
|
47
49
|
console.error(error);
|
|
@@ -63,7 +65,7 @@ example().catch(console.error);
|
|
|
63
65
|
|
|
64
66
|
### Return type
|
|
65
67
|
|
|
66
|
-
[**
|
|
68
|
+
[**WorkflowCancelResponse**](WorkflowCancelResponse.md)
|
|
67
69
|
|
|
68
70
|
### Authorization
|
|
69
71
|
|
|
@@ -84,13 +86,13 @@ No authorization required
|
|
|
84
86
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
85
87
|
|
|
86
88
|
|
|
87
|
-
##
|
|
89
|
+
## dvWorkflowRerun
|
|
88
90
|
|
|
89
|
-
>
|
|
91
|
+
> WorkflowActionResponse dvWorkflowRerun(workflowId, authorization, ksUat)
|
|
90
92
|
|
|
91
|
-
|
|
93
|
+
Dv Workflow Rerun Handler
|
|
92
94
|
|
|
93
|
-
|
|
95
|
+
Rerun a workflow. USER role requires ``can_write`` on the document path.
|
|
94
96
|
|
|
95
97
|
### Example
|
|
96
98
|
|
|
@@ -99,25 +101,23 @@ import {
|
|
|
99
101
|
Configuration,
|
|
100
102
|
WorkflowsApi,
|
|
101
103
|
} from '@knowledge-stack/ksapi';
|
|
102
|
-
import type {
|
|
104
|
+
import type { DvWorkflowRerunRequest } from '@knowledge-stack/ksapi';
|
|
103
105
|
|
|
104
106
|
async function example() {
|
|
105
107
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
106
108
|
const api = new WorkflowsApi();
|
|
107
109
|
|
|
108
110
|
const body = {
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
// number | Number of items to skip (optional)
|
|
112
|
-
offset: 56,
|
|
111
|
+
// string
|
|
112
|
+
workflowId: workflowId_example,
|
|
113
113
|
// string (optional)
|
|
114
114
|
authorization: authorization_example,
|
|
115
115
|
// string (optional)
|
|
116
116
|
ksUat: ksUat_example,
|
|
117
|
-
} satisfies
|
|
117
|
+
} satisfies DvWorkflowRerunRequest;
|
|
118
118
|
|
|
119
119
|
try {
|
|
120
|
-
const data = await api.
|
|
120
|
+
const data = await api.dvWorkflowRerun(body);
|
|
121
121
|
console.log(data);
|
|
122
122
|
} catch (error) {
|
|
123
123
|
console.error(error);
|
|
@@ -133,14 +133,13 @@ example().catch(console.error);
|
|
|
133
133
|
|
|
134
134
|
| Name | Type | Description | Notes |
|
|
135
135
|
|------------- | ------------- | ------------- | -------------|
|
|
136
|
-
| **
|
|
137
|
-
| **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
|
|
136
|
+
| **workflowId** | `string` | | [Defaults to `undefined`] |
|
|
138
137
|
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
139
138
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
140
139
|
|
|
141
140
|
### Return type
|
|
142
141
|
|
|
143
|
-
[**
|
|
142
|
+
[**WorkflowActionResponse**](WorkflowActionResponse.md)
|
|
144
143
|
|
|
145
144
|
### Authorization
|
|
146
145
|
|
|
@@ -161,13 +160,13 @@ No authorization required
|
|
|
161
160
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
162
161
|
|
|
163
162
|
|
|
164
|
-
##
|
|
163
|
+
## getDvWorkflow
|
|
165
164
|
|
|
166
|
-
>
|
|
165
|
+
> WorkflowDetailResponse getDvWorkflow(workflowId, authorization, ksUat)
|
|
167
166
|
|
|
168
|
-
Workflow
|
|
167
|
+
Get Dv Workflow Handler
|
|
169
168
|
|
|
170
|
-
|
|
169
|
+
Get single workflow detail with live Temporal status.
|
|
171
170
|
|
|
172
171
|
### Example
|
|
173
172
|
|
|
@@ -176,7 +175,7 @@ import {
|
|
|
176
175
|
Configuration,
|
|
177
176
|
WorkflowsApi,
|
|
178
177
|
} from '@knowledge-stack/ksapi';
|
|
179
|
-
import type {
|
|
178
|
+
import type { GetDvWorkflowRequest } from '@knowledge-stack/ksapi';
|
|
180
179
|
|
|
181
180
|
async function example() {
|
|
182
181
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
@@ -185,16 +184,14 @@ async function example() {
|
|
|
185
184
|
const body = {
|
|
186
185
|
// string
|
|
187
186
|
workflowId: workflowId_example,
|
|
188
|
-
// WorkflowAction | Action to perform
|
|
189
|
-
action: ...,
|
|
190
187
|
// string (optional)
|
|
191
188
|
authorization: authorization_example,
|
|
192
189
|
// string (optional)
|
|
193
190
|
ksUat: ksUat_example,
|
|
194
|
-
} satisfies
|
|
191
|
+
} satisfies GetDvWorkflowRequest;
|
|
195
192
|
|
|
196
193
|
try {
|
|
197
|
-
const data = await api.
|
|
194
|
+
const data = await api.getDvWorkflow(body);
|
|
198
195
|
console.log(data);
|
|
199
196
|
} catch (error) {
|
|
200
197
|
console.error(error);
|
|
@@ -211,13 +208,163 @@ example().catch(console.error);
|
|
|
211
208
|
| Name | Type | Description | Notes |
|
|
212
209
|
|------------- | ------------- | ------------- | -------------|
|
|
213
210
|
| **workflowId** | `string` | | [Defaults to `undefined`] |
|
|
214
|
-
| **action** | `WorkflowAction` | Action to perform | [Defaults to `undefined`] [Enum: rerun, cancel] |
|
|
215
211
|
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
216
212
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
217
213
|
|
|
218
214
|
### Return type
|
|
219
215
|
|
|
220
|
-
[**
|
|
216
|
+
[**WorkflowDetailResponse**](WorkflowDetailResponse.md)
|
|
217
|
+
|
|
218
|
+
### Authorization
|
|
219
|
+
|
|
220
|
+
No authorization required
|
|
221
|
+
|
|
222
|
+
### HTTP request headers
|
|
223
|
+
|
|
224
|
+
- **Content-Type**: Not defined
|
|
225
|
+
- **Accept**: `application/json`
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### HTTP response details
|
|
229
|
+
| Status code | Description | Response headers |
|
|
230
|
+
|-------------|-------------|------------------|
|
|
231
|
+
| **200** | Successful Response | - |
|
|
232
|
+
| **422** | Validation Error | - |
|
|
233
|
+
|
|
234
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
## getTemporalWorkflowStatus
|
|
238
|
+
|
|
239
|
+
> TemporalWorkflowStatusResponse getTemporalWorkflowStatus(workflowId, authorization, ksUat)
|
|
240
|
+
|
|
241
|
+
Get Temporal Workflow Status Handler
|
|
242
|
+
|
|
243
|
+
Get live Temporal status for any workflow owned by the caller\'s tenant.
|
|
244
|
+
|
|
245
|
+
### Example
|
|
246
|
+
|
|
247
|
+
```ts
|
|
248
|
+
import {
|
|
249
|
+
Configuration,
|
|
250
|
+
WorkflowsApi,
|
|
251
|
+
} from '@knowledge-stack/ksapi';
|
|
252
|
+
import type { GetTemporalWorkflowStatusRequest } from '@knowledge-stack/ksapi';
|
|
253
|
+
|
|
254
|
+
async function example() {
|
|
255
|
+
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
256
|
+
const api = new WorkflowsApi();
|
|
257
|
+
|
|
258
|
+
const body = {
|
|
259
|
+
// string
|
|
260
|
+
workflowId: workflowId_example,
|
|
261
|
+
// string (optional)
|
|
262
|
+
authorization: authorization_example,
|
|
263
|
+
// string (optional)
|
|
264
|
+
ksUat: ksUat_example,
|
|
265
|
+
} satisfies GetTemporalWorkflowStatusRequest;
|
|
266
|
+
|
|
267
|
+
try {
|
|
268
|
+
const data = await api.getTemporalWorkflowStatus(body);
|
|
269
|
+
console.log(data);
|
|
270
|
+
} catch (error) {
|
|
271
|
+
console.error(error);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// Run the test
|
|
276
|
+
example().catch(console.error);
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### Parameters
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
| Name | Type | Description | Notes |
|
|
283
|
+
|------------- | ------------- | ------------- | -------------|
|
|
284
|
+
| **workflowId** | `string` | | [Defaults to `undefined`] |
|
|
285
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
286
|
+
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
287
|
+
|
|
288
|
+
### Return type
|
|
289
|
+
|
|
290
|
+
[**TemporalWorkflowStatusResponse**](TemporalWorkflowStatusResponse.md)
|
|
291
|
+
|
|
292
|
+
### Authorization
|
|
293
|
+
|
|
294
|
+
No authorization required
|
|
295
|
+
|
|
296
|
+
### HTTP request headers
|
|
297
|
+
|
|
298
|
+
- **Content-Type**: Not defined
|
|
299
|
+
- **Accept**: `application/json`
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
### HTTP response details
|
|
303
|
+
| Status code | Description | Response headers |
|
|
304
|
+
|-------------|-------------|------------------|
|
|
305
|
+
| **200** | Successful Response | - |
|
|
306
|
+
| **422** | Validation Error | - |
|
|
307
|
+
|
|
308
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
## listDvWorkflows
|
|
312
|
+
|
|
313
|
+
> PaginatedResponseWorkflowSummaryResponse listDvWorkflows(limit, offset, authorization, ksUat)
|
|
314
|
+
|
|
315
|
+
List Dv Workflows Handler
|
|
316
|
+
|
|
317
|
+
List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
|
|
318
|
+
|
|
319
|
+
### Example
|
|
320
|
+
|
|
321
|
+
```ts
|
|
322
|
+
import {
|
|
323
|
+
Configuration,
|
|
324
|
+
WorkflowsApi,
|
|
325
|
+
} from '@knowledge-stack/ksapi';
|
|
326
|
+
import type { ListDvWorkflowsRequest } from '@knowledge-stack/ksapi';
|
|
327
|
+
|
|
328
|
+
async function example() {
|
|
329
|
+
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
330
|
+
const api = new WorkflowsApi();
|
|
331
|
+
|
|
332
|
+
const body = {
|
|
333
|
+
// number | Number of items per page (optional)
|
|
334
|
+
limit: 56,
|
|
335
|
+
// number | Number of items to skip (optional)
|
|
336
|
+
offset: 56,
|
|
337
|
+
// string (optional)
|
|
338
|
+
authorization: authorization_example,
|
|
339
|
+
// string (optional)
|
|
340
|
+
ksUat: ksUat_example,
|
|
341
|
+
} satisfies ListDvWorkflowsRequest;
|
|
342
|
+
|
|
343
|
+
try {
|
|
344
|
+
const data = await api.listDvWorkflows(body);
|
|
345
|
+
console.log(data);
|
|
346
|
+
} catch (error) {
|
|
347
|
+
console.error(error);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// Run the test
|
|
352
|
+
example().catch(console.error);
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Parameters
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
| Name | Type | Description | Notes |
|
|
359
|
+
|------------- | ------------- | ------------- | -------------|
|
|
360
|
+
| **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
361
|
+
| **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
|
|
362
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
363
|
+
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
364
|
+
|
|
365
|
+
### Return type
|
|
366
|
+
|
|
367
|
+
[**PaginatedResponseWorkflowSummaryResponse**](PaginatedResponseWorkflowSummaryResponse.md)
|
|
221
368
|
|
|
222
369
|
### Authorization
|
|
223
370
|
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
ClearVersionContentsResponse,
|
|
19
19
|
DocumentVersionAction,
|
|
20
20
|
DocumentVersionActionResponse,
|
|
21
|
+
DocumentVersionContentTypeFilter,
|
|
21
22
|
DocumentVersionMetadataUpdate,
|
|
22
23
|
DocumentVersionResponse,
|
|
23
24
|
HTTPValidationError,
|
|
@@ -31,6 +32,8 @@ import {
|
|
|
31
32
|
DocumentVersionActionToJSON,
|
|
32
33
|
DocumentVersionActionResponseFromJSON,
|
|
33
34
|
DocumentVersionActionResponseToJSON,
|
|
35
|
+
DocumentVersionContentTypeFilterFromJSON,
|
|
36
|
+
DocumentVersionContentTypeFilterToJSON,
|
|
34
37
|
DocumentVersionMetadataUpdateFromJSON,
|
|
35
38
|
DocumentVersionMetadataUpdateToJSON,
|
|
36
39
|
DocumentVersionResponseFromJSON,
|
|
@@ -77,6 +80,7 @@ export interface GetDocumentVersionRequest {
|
|
|
77
80
|
export interface GetDocumentVersionContentsRequest {
|
|
78
81
|
versionId: string;
|
|
79
82
|
sectionId?: string | null;
|
|
83
|
+
contentType?: DocumentVersionContentTypeFilter;
|
|
80
84
|
limit?: number;
|
|
81
85
|
offset?: number;
|
|
82
86
|
authorization?: string | null;
|
|
@@ -251,6 +255,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
251
255
|
* Creates request options for getDocumentVersionContents without sending the request
|
|
252
256
|
* @param {string} versionId DocumentVersion ID
|
|
253
257
|
* @param {string} [sectionId] Optional section ID to scope traversal to a subtree
|
|
258
|
+
* @param {DocumentVersionContentTypeFilter} [contentType] Filter by content type: SECTION or CHUNK. Omit to return both types.
|
|
254
259
|
* @param {number} [limit] Number of items per page
|
|
255
260
|
* @param {number} [offset] Number of items to skip
|
|
256
261
|
* @param {string} [authorization]
|
|
@@ -261,10 +266,11 @@ export interface DocumentVersionsApiInterface {
|
|
|
261
266
|
getDocumentVersionContentsRequestOpts(requestParameters: GetDocumentVersionContentsRequest): Promise<runtime.RequestOpts>;
|
|
262
267
|
|
|
263
268
|
/**
|
|
264
|
-
* List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
|
|
269
|
+
* List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
|
|
265
270
|
* @summary Get Document Version Contents Handler
|
|
266
271
|
* @param {string} versionId DocumentVersion ID
|
|
267
272
|
* @param {string} [sectionId] Optional section ID to scope traversal to a subtree
|
|
273
|
+
* @param {DocumentVersionContentTypeFilter} [contentType] Filter by content type: SECTION or CHUNK. Omit to return both types.
|
|
268
274
|
* @param {number} [limit] Number of items per page
|
|
269
275
|
* @param {number} [offset] Number of items to skip
|
|
270
276
|
* @param {string} [authorization]
|
|
@@ -276,7 +282,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
276
282
|
getDocumentVersionContentsRaw(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>>;
|
|
277
283
|
|
|
278
284
|
/**
|
|
279
|
-
* List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
|
|
285
|
+
* List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
|
|
280
286
|
* Get Document Version Contents Handler
|
|
281
287
|
*/
|
|
282
288
|
getDocumentVersionContents(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>;
|
|
@@ -632,6 +638,10 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
|
|
|
632
638
|
queryParameters['section_id'] = requestParameters['sectionId'];
|
|
633
639
|
}
|
|
634
640
|
|
|
641
|
+
if (requestParameters['contentType'] != null) {
|
|
642
|
+
queryParameters['content_type'] = requestParameters['contentType'];
|
|
643
|
+
}
|
|
644
|
+
|
|
635
645
|
if (requestParameters['limit'] != null) {
|
|
636
646
|
queryParameters['limit'] = requestParameters['limit'];
|
|
637
647
|
}
|
|
@@ -659,7 +669,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
|
|
|
659
669
|
}
|
|
660
670
|
|
|
661
671
|
/**
|
|
662
|
-
* List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
|
|
672
|
+
* List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
|
|
663
673
|
* Get Document Version Contents Handler
|
|
664
674
|
*/
|
|
665
675
|
async getDocumentVersionContentsRaw(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>> {
|
|
@@ -670,7 +680,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
|
|
|
670
680
|
}
|
|
671
681
|
|
|
672
682
|
/**
|
|
673
|
-
* List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
|
|
683
|
+
* List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
|
|
674
684
|
* Get Document Version Contents Handler
|
|
675
685
|
*/
|
|
676
686
|
async getDocumentVersionContents(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator> {
|
|
@@ -129,7 +129,7 @@ export interface ThreadMessagesApiInterface {
|
|
|
129
129
|
* Creates request options for listThreadMessages without sending the request
|
|
130
130
|
* @param {string} threadId
|
|
131
131
|
* @param {Date} [before] Cursor for keyset pagination: only return messages with created_at < this value
|
|
132
|
-
* @param {boolean} [withDetails] Include execution steps in response (default
|
|
132
|
+
* @param {boolean} [withDetails] Include execution steps in response (default true)
|
|
133
133
|
* @param {number} [limit] Number of items per page
|
|
134
134
|
* @param {number} [offset] Number of items to skip
|
|
135
135
|
* @param {string} [authorization]
|
|
@@ -140,11 +140,11 @@ export interface ThreadMessagesApiInterface {
|
|
|
140
140
|
listThreadMessagesRequestOpts(requestParameters: ListThreadMessagesRequest): Promise<runtime.RequestOpts>;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=
|
|
143
|
+
* List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
|
|
144
144
|
* @summary List Thread Messages Handler
|
|
145
145
|
* @param {string} threadId
|
|
146
146
|
* @param {Date} [before] Cursor for keyset pagination: only return messages with created_at < this value
|
|
147
|
-
* @param {boolean} [withDetails] Include execution steps in response (default
|
|
147
|
+
* @param {boolean} [withDetails] Include execution steps in response (default true)
|
|
148
148
|
* @param {number} [limit] Number of items per page
|
|
149
149
|
* @param {number} [offset] Number of items to skip
|
|
150
150
|
* @param {string} [authorization]
|
|
@@ -156,7 +156,7 @@ export interface ThreadMessagesApiInterface {
|
|
|
156
156
|
listThreadMessagesRaw(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseThreadMessageResponse>>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=
|
|
159
|
+
* List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
|
|
160
160
|
* List Thread Messages Handler
|
|
161
161
|
*/
|
|
162
162
|
listThreadMessages(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseThreadMessageResponse>;
|
|
@@ -340,7 +340,7 @@ export class ThreadMessagesApi extends runtime.BaseAPI implements ThreadMessages
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
/**
|
|
343
|
-
* List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=
|
|
343
|
+
* List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
|
|
344
344
|
* List Thread Messages Handler
|
|
345
345
|
*/
|
|
346
346
|
async listThreadMessagesRaw(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseThreadMessageResponse>> {
|
|
@@ -351,7 +351,7 @@ export class ThreadMessagesApi extends runtime.BaseAPI implements ThreadMessages
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=
|
|
354
|
+
* List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
|
|
355
355
|
* List Thread Messages Handler
|
|
356
356
|
*/
|
|
357
357
|
async listThreadMessages(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseThreadMessageResponse> {
|