@knowledge-stack/ksapi 1.120.0 → 1.121.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 +22 -8
- package/README.md +13 -6
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +3 -3
- package/dist/esm/models/CreateThreadMessageRequest.js +3 -3
- package/dist/esm/models/DocEditPart.d.ts +122 -0
- package/dist/esm/models/DocEditPart.js +92 -0
- package/dist/esm/models/Input.d.ts +41 -0
- package/dist/esm/models/Input.js +32 -0
- package/dist/esm/models/MessageUsage.d.ts +53 -0
- package/dist/esm/models/MessageUsage.js +57 -0
- package/dist/esm/models/ReasoningPart.d.ts +84 -0
- package/dist/esm/models/ReasoningPart.js +71 -0
- package/dist/esm/models/{StepInput.d.ts → Step.d.ts} +16 -22
- package/dist/esm/models/{StepInput.js → Step.js} +9 -11
- package/dist/esm/models/StepKind.d.ts +0 -1
- package/dist/esm/models/StepKind.js +1 -2
- package/dist/esm/models/TextPart.d.ts +91 -0
- package/dist/esm/models/TextPart.js +74 -0
- package/dist/esm/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.d.ts +33 -0
- package/dist/esm/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.js +57 -0
- package/dist/esm/models/ThreadMessageDetails.d.ts +75 -0
- package/dist/esm/models/ThreadMessageDetails.js +58 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +10 -3
- package/dist/esm/models/ThreadMessageResponse.js +6 -3
- package/dist/esm/models/ToolPart.d.ts +130 -0
- package/dist/esm/models/ToolPart.js +89 -0
- package/dist/esm/models/ToolStatus.d.ts +27 -0
- package/dist/esm/models/ToolStatus.js +45 -0
- package/dist/esm/models/WorkflowRunAsset.d.ts +87 -0
- package/dist/esm/models/WorkflowRunAsset.js +66 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +22 -3
- package/dist/esm/models/WorkflowRunResponse.js +12 -3
- package/dist/esm/models/index.d.ts +11 -4
- package/dist/esm/models/index.js +11 -4
- package/dist/models/CreateThreadMessageRequest.d.ts +3 -3
- package/dist/models/CreateThreadMessageRequest.js +3 -3
- package/dist/models/DocEditPart.d.ts +122 -0
- package/dist/models/DocEditPart.js +100 -0
- package/dist/models/Input.d.ts +41 -0
- package/dist/models/Input.js +40 -0
- package/dist/models/MessageUsage.d.ts +53 -0
- package/dist/models/MessageUsage.js +65 -0
- package/dist/models/ReasoningPart.d.ts +84 -0
- package/dist/models/ReasoningPart.js +79 -0
- package/dist/models/{StepInput.d.ts → Step.d.ts} +16 -22
- package/dist/models/{StepInput.js → Step.js} +15 -17
- package/dist/models/StepKind.d.ts +0 -1
- package/dist/models/StepKind.js +1 -2
- package/dist/models/TextPart.d.ts +91 -0
- package/dist/models/TextPart.js +82 -0
- package/dist/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.d.ts +33 -0
- package/dist/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.js +63 -0
- package/dist/models/ThreadMessageDetails.d.ts +75 -0
- package/dist/models/ThreadMessageDetails.js +66 -0
- package/dist/models/ThreadMessageResponse.d.ts +10 -3
- package/dist/models/ThreadMessageResponse.js +6 -3
- package/dist/models/ToolPart.d.ts +130 -0
- package/dist/models/ToolPart.js +97 -0
- package/dist/models/ToolStatus.d.ts +27 -0
- package/dist/models/ToolStatus.js +53 -0
- package/dist/models/WorkflowRunAsset.d.ts +87 -0
- package/dist/models/WorkflowRunAsset.js +74 -0
- package/dist/models/WorkflowRunResponse.d.ts +22 -3
- package/dist/models/WorkflowRunResponse.js +12 -3
- package/dist/models/index.d.ts +11 -4
- package/dist/models/index.js +11 -4
- package/docs/CreateThreadMessageRequest.md +1 -1
- package/docs/DocEditPart.md +54 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md +8 -2
- package/docs/{ThreadMessageDetailsInput.md → Input.md} +4 -10
- package/docs/MessageUsage.md +37 -0
- package/docs/{StepOutput.md → ReasoningPart.md} +10 -14
- package/docs/{StepInput.md → Step.md} +4 -6
- package/docs/TextPart.md +46 -0
- package/docs/TextPartOrReasoningPartOrToolPartOrDocEditPart.md +72 -0
- package/docs/{ThreadMessageDetailsOutput.md → ThreadMessageDetails.md} +9 -5
- package/docs/ThreadMessageResponse.md +3 -1
- package/docs/ToolPart.md +58 -0
- package/docs/ToolStatus.md +32 -0
- package/docs/WorkflowRunAsset.md +45 -0
- package/docs/WorkflowRunResponse.md +8 -2
- package/package.json +1 -1
- package/src/models/CreateThreadMessageRequest.ts +11 -11
- package/src/models/DocEditPart.ts +191 -0
- package/src/models/Input.ts +63 -0
- package/src/models/MessageUsage.ts +100 -0
- package/src/models/ReasoningPart.ts +140 -0
- package/src/models/{StepInput.ts → Step.ts} +18 -26
- package/src/models/StepKind.ts +1 -2
- package/src/models/TextPart.ts +156 -0
- package/src/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.ts +94 -0
- package/src/models/ThreadMessageDetails.ts +146 -0
- package/src/models/ThreadMessageResponse.ts +25 -10
- package/src/models/ToolPart.ts +212 -0
- package/src/models/ToolStatus.ts +55 -0
- package/src/models/WorkflowRunAsset.ts +153 -0
- package/src/models/WorkflowRunResponse.ts +38 -6
- package/src/models/index.ts +11 -4
- package/dist/esm/models/StepOutput.d.ts +0 -91
- package/dist/esm/models/StepOutput.js +0 -66
- package/dist/esm/models/ThreadMessageDetailsInput.d.ts +0 -61
- package/dist/esm/models/ThreadMessageDetailsInput.js +0 -52
- package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +0 -61
- package/dist/esm/models/ThreadMessageDetailsOutput.js +0 -52
- package/dist/models/StepOutput.d.ts +0 -91
- package/dist/models/StepOutput.js +0 -74
- package/dist/models/ThreadMessageDetailsInput.d.ts +0 -61
- package/dist/models/ThreadMessageDetailsInput.js +0 -60
- package/dist/models/ThreadMessageDetailsOutput.d.ts +0 -61
- package/dist/models/ThreadMessageDetailsOutput.js +0 -60
- package/src/models/StepOutput.ts +0 -159
- package/src/models/ThreadMessageDetailsInput.ts +0 -116
- package/src/models/ThreadMessageDetailsOutput.ts +0 -116
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ToolStatus } from './ToolStatus';
|
|
17
|
+
import {
|
|
18
|
+
ToolStatusFromJSON,
|
|
19
|
+
ToolStatusFromJSONTyped,
|
|
20
|
+
ToolStatusToJSON,
|
|
21
|
+
ToolStatusToJSONTyped,
|
|
22
|
+
} from './ToolStatus';
|
|
23
|
+
import type { Input } from './Input';
|
|
24
|
+
import {
|
|
25
|
+
InputFromJSON,
|
|
26
|
+
InputFromJSONTyped,
|
|
27
|
+
InputToJSON,
|
|
28
|
+
InputToJSONTyped,
|
|
29
|
+
} from './Input';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ToolPart
|
|
35
|
+
*/
|
|
36
|
+
export interface ToolPart {
|
|
37
|
+
/**
|
|
38
|
+
* Stable per-message part id (uuid)
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ToolPart
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* 0-based order within the message
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ToolPart
|
|
47
|
+
*/
|
|
48
|
+
seq: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof ToolPart
|
|
53
|
+
*/
|
|
54
|
+
startTime: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof ToolPart
|
|
59
|
+
*/
|
|
60
|
+
endTime?: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {ToolPartKindEnum}
|
|
64
|
+
* @memberof ToolPart
|
|
65
|
+
*/
|
|
66
|
+
kind?: ToolPartKindEnum;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ToolPart
|
|
71
|
+
*/
|
|
72
|
+
toolCallId: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ToolPart
|
|
77
|
+
*/
|
|
78
|
+
toolName: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Input}
|
|
82
|
+
* @memberof ToolPart
|
|
83
|
+
*/
|
|
84
|
+
input?: Input | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {ToolStatus}
|
|
88
|
+
* @memberof ToolPart
|
|
89
|
+
*/
|
|
90
|
+
status?: ToolStatus;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {any}
|
|
94
|
+
* @memberof ToolPart
|
|
95
|
+
*/
|
|
96
|
+
result?: any | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof ToolPart
|
|
101
|
+
*/
|
|
102
|
+
isError?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof ToolPart
|
|
107
|
+
*/
|
|
108
|
+
durationMs?: number | null;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {{ [key: string]: any; }}
|
|
112
|
+
* @memberof ToolPart
|
|
113
|
+
*/
|
|
114
|
+
extras?: { [key: string]: any; } | null;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export const ToolPartKindEnum = {
|
|
122
|
+
Tool: 'tool'
|
|
123
|
+
} as const;
|
|
124
|
+
export type ToolPartKindEnum = typeof ToolPartKindEnum[keyof typeof ToolPartKindEnum];
|
|
125
|
+
|
|
126
|
+
export const ToolPartPropertyValidationAttributesMap: {
|
|
127
|
+
[property: string]: {
|
|
128
|
+
maxLength?: number,
|
|
129
|
+
minLength?: number,
|
|
130
|
+
pattern?: string,
|
|
131
|
+
maximum?: number,
|
|
132
|
+
exclusiveMaximum?: boolean,
|
|
133
|
+
minimum?: number,
|
|
134
|
+
exclusiveMinimum?: boolean,
|
|
135
|
+
multipleOf?: number,
|
|
136
|
+
maxItems?: number,
|
|
137
|
+
minItems?: number,
|
|
138
|
+
uniqueItems?: boolean
|
|
139
|
+
}
|
|
140
|
+
} = {
|
|
141
|
+
seq: {
|
|
142
|
+
minimum: 0,
|
|
143
|
+
exclusiveMinimum: false,
|
|
144
|
+
},
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Check if a given object implements the ToolPart interface.
|
|
150
|
+
*/
|
|
151
|
+
export function instanceOfToolPart(value: object): value is ToolPart {
|
|
152
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
153
|
+
if (!('seq' in value) || value['seq'] === undefined) return false;
|
|
154
|
+
if (!('startTime' in value) || value['startTime'] === undefined) return false;
|
|
155
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined) return false;
|
|
156
|
+
if (!('toolName' in value) || value['toolName'] === undefined) return false;
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function ToolPartFromJSON(json: any): ToolPart {
|
|
161
|
+
return ToolPartFromJSONTyped(json, false);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function ToolPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolPart {
|
|
165
|
+
if (json == null) {
|
|
166
|
+
return json;
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'id': json['id'],
|
|
171
|
+
'seq': json['seq'],
|
|
172
|
+
'startTime': (new Date(json['start_time'])),
|
|
173
|
+
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
174
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
175
|
+
'toolCallId': json['tool_call_id'],
|
|
176
|
+
'toolName': json['tool_name'],
|
|
177
|
+
'input': json['input'] == null ? undefined : InputFromJSON(json['input']),
|
|
178
|
+
'status': json['status'] == null ? undefined : ToolStatusFromJSON(json['status']),
|
|
179
|
+
'result': json['result'] == null ? undefined : json['result'],
|
|
180
|
+
'isError': json['is_error'] == null ? undefined : json['is_error'],
|
|
181
|
+
'durationMs': json['duration_ms'] == null ? undefined : json['duration_ms'],
|
|
182
|
+
'extras': json['extras'] == null ? undefined : json['extras'],
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function ToolPartToJSON(json: any): ToolPart {
|
|
187
|
+
return ToolPartToJSONTyped(json, false);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function ToolPartToJSONTyped(value?: ToolPart | null, ignoreDiscriminator: boolean = false): any {
|
|
191
|
+
if (value == null) {
|
|
192
|
+
return value;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
|
|
197
|
+
'id': value['id'],
|
|
198
|
+
'seq': value['seq'],
|
|
199
|
+
'start_time': value['startTime'].toISOString(),
|
|
200
|
+
'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
|
|
201
|
+
'kind': value['kind'],
|
|
202
|
+
'tool_call_id': value['toolCallId'],
|
|
203
|
+
'tool_name': value['toolName'],
|
|
204
|
+
'input': InputToJSON(value['input']),
|
|
205
|
+
'status': ToolStatusToJSON(value['status']),
|
|
206
|
+
'result': value['result'],
|
|
207
|
+
'is_error': value['isError'],
|
|
208
|
+
'duration_ms': value['durationMs'],
|
|
209
|
+
'extras': value['extras'],
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ToolStatus = {
|
|
21
|
+
Running: 'running',
|
|
22
|
+
Success: 'success',
|
|
23
|
+
Error: 'error',
|
|
24
|
+
Canceled: 'canceled'
|
|
25
|
+
} as const;
|
|
26
|
+
export type ToolStatus = typeof ToolStatus[keyof typeof ToolStatus];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfToolStatus(value: any): boolean {
|
|
30
|
+
for (const key in ToolStatus) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(ToolStatus, key)) {
|
|
32
|
+
if (ToolStatus[key as keyof typeof ToolStatus] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ToolStatusFromJSON(json: any): ToolStatus {
|
|
41
|
+
return ToolStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ToolStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolStatus {
|
|
45
|
+
return json as ToolStatus;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ToolStatusToJSON(value?: ToolStatus | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ToolStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ToolStatus {
|
|
53
|
+
return value as ToolStatus;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PartType } from './PartType';
|
|
17
|
+
import {
|
|
18
|
+
PartTypeFromJSON,
|
|
19
|
+
PartTypeFromJSONTyped,
|
|
20
|
+
PartTypeToJSON,
|
|
21
|
+
PartTypeToJSONTyped,
|
|
22
|
+
} from './PartType';
|
|
23
|
+
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
24
|
+
import {
|
|
25
|
+
PathPartApprovalStateFromJSON,
|
|
26
|
+
PathPartApprovalStateFromJSONTyped,
|
|
27
|
+
PathPartApprovalStateToJSON,
|
|
28
|
+
PathPartApprovalStateToJSONTyped,
|
|
29
|
+
} from './PathPartApprovalState';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* One input or output file/reference of a run, actionable in one call.
|
|
33
|
+
*
|
|
34
|
+
* ``id`` is the PDO id (``path_part.metadata_obj_id``); ``path_part_id`` is
|
|
35
|
+
* the underlying path part (kept for approval-state / path-part lookups).
|
|
36
|
+
* Route on ``part_type`` to pick the API that takes ``id``: ``DOCUMENT`` →
|
|
37
|
+
* download_document / bulk-download (active version); ``DOCUMENT_VERSION`` →
|
|
38
|
+
* download_document_version (a version-pinned input, e.g. a cloned run's
|
|
39
|
+
* inputs); ``FOLDER`` / ``DATA_SOURCE`` / ``API_CONNECTION`` → list/query via
|
|
40
|
+
* that type's endpoint. Output assets are always ``DOCUMENT``.
|
|
41
|
+
* @export
|
|
42
|
+
* @interface WorkflowRunAsset
|
|
43
|
+
*/
|
|
44
|
+
export interface WorkflowRunAsset {
|
|
45
|
+
/**
|
|
46
|
+
* PDO id accepted by the download / list-contents APIs
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof WorkflowRunAsset
|
|
49
|
+
*/
|
|
50
|
+
id: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof WorkflowRunAsset
|
|
55
|
+
*/
|
|
56
|
+
pathPartId: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof WorkflowRunAsset
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {PartType}
|
|
66
|
+
* @memberof WorkflowRunAsset
|
|
67
|
+
*/
|
|
68
|
+
partType: PartType;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof WorkflowRunAsset
|
|
73
|
+
*/
|
|
74
|
+
materializedPath: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {PathPartApprovalState}
|
|
78
|
+
* @memberof WorkflowRunAsset
|
|
79
|
+
*/
|
|
80
|
+
approvalState: PathPartApprovalState;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
export const WorkflowRunAssetPropertyValidationAttributesMap: {
|
|
85
|
+
[property: string]: {
|
|
86
|
+
maxLength?: number,
|
|
87
|
+
minLength?: number,
|
|
88
|
+
pattern?: string,
|
|
89
|
+
maximum?: number,
|
|
90
|
+
exclusiveMaximum?: boolean,
|
|
91
|
+
minimum?: number,
|
|
92
|
+
exclusiveMinimum?: boolean,
|
|
93
|
+
multipleOf?: number,
|
|
94
|
+
maxItems?: number,
|
|
95
|
+
minItems?: number,
|
|
96
|
+
uniqueItems?: boolean
|
|
97
|
+
}
|
|
98
|
+
} = {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the WorkflowRunAsset interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfWorkflowRunAsset(value: object): value is WorkflowRunAsset {
|
|
106
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
107
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
108
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
109
|
+
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
110
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
111
|
+
if (!('approvalState' in value) || value['approvalState'] === undefined) return false;
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function WorkflowRunAssetFromJSON(json: any): WorkflowRunAsset {
|
|
116
|
+
return WorkflowRunAssetFromJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function WorkflowRunAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunAsset {
|
|
120
|
+
if (json == null) {
|
|
121
|
+
return json;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'id': json['id'],
|
|
126
|
+
'pathPartId': json['path_part_id'],
|
|
127
|
+
'name': json['name'],
|
|
128
|
+
'partType': PartTypeFromJSON(json['part_type']),
|
|
129
|
+
'materializedPath': json['materialized_path'],
|
|
130
|
+
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function WorkflowRunAssetToJSON(json: any): WorkflowRunAsset {
|
|
135
|
+
return WorkflowRunAssetToJSONTyped(json, false);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function WorkflowRunAssetToJSONTyped(value?: WorkflowRunAsset | null, ignoreDiscriminator: boolean = false): any {
|
|
139
|
+
if (value == null) {
|
|
140
|
+
return value;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return {
|
|
144
|
+
|
|
145
|
+
'id': value['id'],
|
|
146
|
+
'path_part_id': value['pathPartId'],
|
|
147
|
+
'name': value['name'],
|
|
148
|
+
'part_type': PartTypeToJSON(value['partType']),
|
|
149
|
+
'materialized_path': value['materializedPath'],
|
|
150
|
+
'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
ItemPermissionsToJSON,
|
|
21
21
|
ItemPermissionsToJSONTyped,
|
|
22
22
|
} from './ItemPermissions';
|
|
23
|
+
import type { WorkflowRunAsset } from './WorkflowRunAsset';
|
|
24
|
+
import {
|
|
25
|
+
WorkflowRunAssetFromJSON,
|
|
26
|
+
WorkflowRunAssetFromJSONTyped,
|
|
27
|
+
WorkflowRunAssetToJSON,
|
|
28
|
+
WorkflowRunAssetToJSONTyped,
|
|
29
|
+
} from './WorkflowRunAsset';
|
|
23
30
|
import type { WorkflowRunSnapshot } from './WorkflowRunSnapshot';
|
|
24
31
|
import {
|
|
25
32
|
WorkflowRunSnapshotFromJSON,
|
|
@@ -199,11 +206,29 @@ export interface WorkflowRunResponse {
|
|
|
199
206
|
*/
|
|
200
207
|
inputPathPartIds?: Array<string>;
|
|
201
208
|
/**
|
|
202
|
-
*
|
|
203
|
-
* @type {Array<
|
|
209
|
+
* Generated files under ``outputs/`` (recursing nested folders), each carrying the DOCUMENT PDO ``id`` to feed straight to download / bulk-download. Empty until the run produces output.
|
|
210
|
+
* @type {Array<WorkflowRunAsset>}
|
|
211
|
+
* @memberof WorkflowRunResponse
|
|
212
|
+
*/
|
|
213
|
+
outputAssets?: Array<WorkflowRunAsset>;
|
|
214
|
+
/**
|
|
215
|
+
* The run's input context: pinned KB references (``input_path_part_ids``) plus any files uploaded under ``inputs/``, each resolved to its PDO ``id`` + metadata.
|
|
216
|
+
* @type {Array<WorkflowRunAsset>}
|
|
217
|
+
* @memberof WorkflowRunResponse
|
|
218
|
+
*/
|
|
219
|
+
inputAssets?: Array<WorkflowRunAsset>;
|
|
220
|
+
/**
|
|
221
|
+
* Full materialized path of the run's ``inputs/`` folder
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof WorkflowRunResponse
|
|
224
|
+
*/
|
|
225
|
+
inputsPath: string;
|
|
226
|
+
/**
|
|
227
|
+
* Full materialized path of the run's ``outputs/`` folder
|
|
228
|
+
* @type {string}
|
|
204
229
|
* @memberof WorkflowRunResponse
|
|
205
230
|
*/
|
|
206
|
-
|
|
231
|
+
outputsPath: string;
|
|
207
232
|
/**
|
|
208
233
|
* Definition common files that were excluded from this run at Start (deleted or unreadable by the starter). Empty until Start builds the snapshot, and empty for the common happy path.
|
|
209
234
|
* @type {Array<ExcludedCommonFile>}
|
|
@@ -291,7 +316,8 @@ export function instanceOfWorkflowRunResponse(value: object): value is WorkflowR
|
|
|
291
316
|
if (!('inputsPathPartId' in value) || value['inputsPathPartId'] === undefined) return false;
|
|
292
317
|
if (!('outputsPathPartId' in value) || value['outputsPathPartId'] === undefined) return false;
|
|
293
318
|
if (!('discussionsPathPartId' in value) || value['discussionsPathPartId'] === undefined) return false;
|
|
294
|
-
if (!('
|
|
319
|
+
if (!('inputsPath' in value) || value['inputsPath'] === undefined) return false;
|
|
320
|
+
if (!('outputsPath' in value) || value['outputsPath'] === undefined) return false;
|
|
295
321
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
296
322
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
297
323
|
return true;
|
|
@@ -328,7 +354,10 @@ export function WorkflowRunResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
328
354
|
'outputsPathPartId': json['outputs_path_part_id'],
|
|
329
355
|
'discussionsPathPartId': json['discussions_path_part_id'],
|
|
330
356
|
'inputPathPartIds': json['input_path_part_ids'] == null ? undefined : json['input_path_part_ids'],
|
|
331
|
-
'
|
|
357
|
+
'outputAssets': json['output_assets'] == null ? undefined : ((json['output_assets'] as Array<any>).map(WorkflowRunAssetFromJSON)),
|
|
358
|
+
'inputAssets': json['input_assets'] == null ? undefined : ((json['input_assets'] as Array<any>).map(WorkflowRunAssetFromJSON)),
|
|
359
|
+
'inputsPath': json['inputs_path'],
|
|
360
|
+
'outputsPath': json['outputs_path'],
|
|
332
361
|
'excludedCommonFiles': json['excluded_common_files'] == null ? undefined : ((json['excluded_common_files'] as Array<any>).map(ExcludedCommonFileFromJSON)),
|
|
333
362
|
'runThreadId': json['run_thread_id'] == null ? undefined : json['run_thread_id'],
|
|
334
363
|
'owner': json['owner'] == null ? undefined : UserInfoFromJSON(json['owner']),
|
|
@@ -370,7 +399,10 @@ export function WorkflowRunResponseToJSONTyped(value?: WorkflowRunResponse | nul
|
|
|
370
399
|
'outputs_path_part_id': value['outputsPathPartId'],
|
|
371
400
|
'discussions_path_part_id': value['discussionsPathPartId'],
|
|
372
401
|
'input_path_part_ids': value['inputPathPartIds'],
|
|
373
|
-
'
|
|
402
|
+
'output_assets': value['outputAssets'] == null ? undefined : ((value['outputAssets'] as Array<any>).map(WorkflowRunAssetToJSON)),
|
|
403
|
+
'input_assets': value['inputAssets'] == null ? undefined : ((value['inputAssets'] as Array<any>).map(WorkflowRunAssetToJSON)),
|
|
404
|
+
'inputs_path': value['inputsPath'],
|
|
405
|
+
'outputs_path': value['outputsPath'],
|
|
374
406
|
'excluded_common_files': value['excludedCommonFiles'] == null ? undefined : ((value['excludedCommonFiles'] as Array<any>).map(ExcludedCommonFileToJSON)),
|
|
375
407
|
'run_thread_id': value['runThreadId'],
|
|
376
408
|
'owner': UserInfoToJSON(value['owner']),
|
package/src/models/index.ts
CHANGED
|
@@ -85,6 +85,7 @@ export * from './DiffSpan';
|
|
|
85
85
|
export * from './DirectorySyncResponse';
|
|
86
86
|
export * from './DisplayNameFormat';
|
|
87
87
|
export * from './DissolveSectionResponse';
|
|
88
|
+
export * from './DocEditPart';
|
|
88
89
|
export * from './DocumentBlockChange';
|
|
89
90
|
export * from './DocumentCheckoutResponse';
|
|
90
91
|
export * from './DocumentDiff';
|
|
@@ -135,6 +136,7 @@ export * from './ImageTaxonomy';
|
|
|
135
136
|
export * from './InformationStatistics';
|
|
136
137
|
export * from './IngestDocumentResponse';
|
|
137
138
|
export * from './IngestionMode';
|
|
139
|
+
export * from './Input';
|
|
138
140
|
export * from './InputOrigin';
|
|
139
141
|
export * from './InputSnapshot';
|
|
140
142
|
export * from './InstantiateWorkflowTemplateRequest';
|
|
@@ -156,6 +158,7 @@ export * from './MemoryChunkResponse';
|
|
|
156
158
|
export * from './MemoryKind';
|
|
157
159
|
export * from './MemoryScope';
|
|
158
160
|
export * from './MessageRole';
|
|
161
|
+
export * from './MessageUsage';
|
|
159
162
|
export * from './MeteredQuotaStatus';
|
|
160
163
|
export * from './ModelTableRequest';
|
|
161
164
|
export * from './ModelTableResult';
|
|
@@ -210,6 +213,7 @@ export * from './Polygon';
|
|
|
210
213
|
export * from './PolygonReference';
|
|
211
214
|
export * from './ProposeMemoryChunkRequest';
|
|
212
215
|
export * from './ProposedMemoryChunkResponse';
|
|
216
|
+
export * from './ReasoningPart';
|
|
213
217
|
export * from './ReferenceType';
|
|
214
218
|
export * from './RequestPhoneChangeRequest';
|
|
215
219
|
export * from './ResolvedReferenceInput';
|
|
@@ -234,9 +238,8 @@ export * from './SheetVisibilityChange';
|
|
|
234
238
|
export * from './SignInRequest';
|
|
235
239
|
export * from './SortDirection';
|
|
236
240
|
export * from './StartWorkflowRunRequest';
|
|
237
|
-
export * from './
|
|
241
|
+
export * from './Step';
|
|
238
242
|
export * from './StepKind';
|
|
239
|
-
export * from './StepOutput';
|
|
240
243
|
export * from './StructuredChange';
|
|
241
244
|
export * from './StructuredChangeType';
|
|
242
245
|
export * from './StructuredDiff';
|
|
@@ -262,12 +265,15 @@ export * from './TenantUserOrder';
|
|
|
262
265
|
export * from './TenantUserResponse';
|
|
263
266
|
export * from './TenantUserRole';
|
|
264
267
|
export * from './TextDiff';
|
|
268
|
+
export * from './TextPart';
|
|
269
|
+
export * from './TextPartOrReasoningPartOrToolPartOrDocEditPart';
|
|
265
270
|
export * from './ThreadMessageContent';
|
|
266
|
-
export * from './
|
|
267
|
-
export * from './ThreadMessageDetailsOutput';
|
|
271
|
+
export * from './ThreadMessageDetails';
|
|
268
272
|
export * from './ThreadMessageResponse';
|
|
269
273
|
export * from './ThreadOrder';
|
|
270
274
|
export * from './ThreadResponse';
|
|
275
|
+
export * from './ToolPart';
|
|
276
|
+
export * from './ToolStatus';
|
|
271
277
|
export * from './TransferOwnerRequest';
|
|
272
278
|
export * from './TransferOwnerResponse';
|
|
273
279
|
export * from './TrashItemResponse';
|
|
@@ -307,6 +313,7 @@ export * from './WorkflowDefinitionOrder';
|
|
|
307
313
|
export * from './WorkflowDefinitionResponse';
|
|
308
314
|
export * from './WorkflowDetailResponse';
|
|
309
315
|
export * from './WorkflowExecutionState';
|
|
316
|
+
export * from './WorkflowRunAsset';
|
|
310
317
|
export * from './WorkflowRunCallbackRequest';
|
|
311
318
|
export * from './WorkflowRunOrder';
|
|
312
319
|
export * from './WorkflowRunResponse';
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Knowledge Stack API
|
|
3
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Args } from './Args';
|
|
13
|
-
import type { StepKind } from './StepKind';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface StepOutput
|
|
18
|
-
*/
|
|
19
|
-
export interface StepOutput {
|
|
20
|
-
/**
|
|
21
|
-
* Stable step identifier within the message
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof StepOutput
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* The name of the step
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof StepOutput
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {StepKind}
|
|
35
|
-
* @memberof StepOutput
|
|
36
|
-
*/
|
|
37
|
-
kind: StepKind;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {Args}
|
|
41
|
-
* @memberof StepOutput
|
|
42
|
-
*/
|
|
43
|
-
args?: Args | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof StepOutput
|
|
48
|
-
*/
|
|
49
|
-
detail?: string | null;
|
|
50
|
-
/**
|
|
51
|
-
* The start time of the step
|
|
52
|
-
* @type {Date}
|
|
53
|
-
* @memberof StepOutput
|
|
54
|
-
*/
|
|
55
|
-
startTime: Date;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Date}
|
|
59
|
-
* @memberof StepOutput
|
|
60
|
-
*/
|
|
61
|
-
endTime?: Date | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Array<StepOutput>}
|
|
65
|
-
* @memberof StepOutput
|
|
66
|
-
*/
|
|
67
|
-
steps?: Array<StepOutput> | null;
|
|
68
|
-
}
|
|
69
|
-
export declare const StepOutputPropertyValidationAttributesMap: {
|
|
70
|
-
[property: string]: {
|
|
71
|
-
maxLength?: number;
|
|
72
|
-
minLength?: number;
|
|
73
|
-
pattern?: string;
|
|
74
|
-
maximum?: number;
|
|
75
|
-
exclusiveMaximum?: boolean;
|
|
76
|
-
minimum?: number;
|
|
77
|
-
exclusiveMinimum?: boolean;
|
|
78
|
-
multipleOf?: number;
|
|
79
|
-
maxItems?: number;
|
|
80
|
-
minItems?: number;
|
|
81
|
-
uniqueItems?: boolean;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Check if a given object implements the StepOutput interface.
|
|
86
|
-
*/
|
|
87
|
-
export declare function instanceOfStepOutput(value: object): value is StepOutput;
|
|
88
|
-
export declare function StepOutputFromJSON(json: any): StepOutput;
|
|
89
|
-
export declare function StepOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): StepOutput;
|
|
90
|
-
export declare function StepOutputToJSON(json: any): StepOutput;
|
|
91
|
-
export declare function StepOutputToJSONTyped(value?: StepOutput | null, ignoreDiscriminator?: boolean): any;
|