@knowledge-stack/ksapi 1.120.1 → 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,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ThreadMessageDetailsPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfThreadMessageDetails = instanceOfThreadMessageDetails;
|
|
18
|
+
exports.ThreadMessageDetailsFromJSON = ThreadMessageDetailsFromJSON;
|
|
19
|
+
exports.ThreadMessageDetailsFromJSONTyped = ThreadMessageDetailsFromJSONTyped;
|
|
20
|
+
exports.ThreadMessageDetailsToJSON = ThreadMessageDetailsToJSON;
|
|
21
|
+
exports.ThreadMessageDetailsToJSONTyped = ThreadMessageDetailsToJSONTyped;
|
|
22
|
+
const TextPartOrReasoningPartOrToolPartOrDocEditPart_1 = require("./TextPartOrReasoningPartOrToolPartOrDocEditPart");
|
|
23
|
+
const CheckpointDetails_1 = require("./CheckpointDetails");
|
|
24
|
+
const Step_1 = require("./Step");
|
|
25
|
+
const MessageUsage_1 = require("./MessageUsage");
|
|
26
|
+
exports.ThreadMessageDetailsPropertyValidationAttributesMap = {
|
|
27
|
+
modelId: {
|
|
28
|
+
maxLength: 64,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ThreadMessageDetails interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfThreadMessageDetails(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ThreadMessageDetailsFromJSON(json) {
|
|
38
|
+
return ThreadMessageDetailsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ThreadMessageDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'parts': json['parts'] == null ? undefined : (json['parts'].map(TextPartOrReasoningPartOrToolPartOrDocEditPart_1.TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSON)),
|
|
46
|
+
'usage': json['usage'] == null ? undefined : (0, MessageUsage_1.MessageUsageFromJSON)(json['usage']),
|
|
47
|
+
'steps': json['steps'] == null ? undefined : (json['steps'].map(Step_1.StepFromJSON)),
|
|
48
|
+
'checkpoint': json['checkpoint'] == null ? undefined : (0, CheckpointDetails_1.CheckpointDetailsFromJSON)(json['checkpoint']),
|
|
49
|
+
'modelId': json['model_id'] == null ? undefined : json['model_id'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function ThreadMessageDetailsToJSON(json) {
|
|
53
|
+
return ThreadMessageDetailsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ThreadMessageDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'parts': value['parts'] == null ? undefined : (value['parts'].map(TextPartOrReasoningPartOrToolPartOrDocEditPart_1.TextPartOrReasoningPartOrToolPartOrDocEditPartToJSON)),
|
|
61
|
+
'usage': (0, MessageUsage_1.MessageUsageToJSON)(value['usage']),
|
|
62
|
+
'steps': value['steps'] == null ? undefined : (value['steps'].map(Step_1.StepToJSON)),
|
|
63
|
+
'checkpoint': (0, CheckpointDetails_1.CheckpointDetailsToJSON)(value['checkpoint']),
|
|
64
|
+
'model_id': value['modelId'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { EnrichedThreadMessageContent } from './EnrichedThreadMessageContent';
|
|
13
13
|
import type { MessageRole } from './MessageRole';
|
|
14
|
-
import type {
|
|
14
|
+
import type { TextPartOrReasoningPartOrToolPartOrDocEditPart } from './TextPartOrReasoningPartOrToolPartOrDocEditPart';
|
|
15
|
+
import type { ThreadMessageDetails } from './ThreadMessageDetails';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -50,10 +51,16 @@ export interface ThreadMessageResponse {
|
|
|
50
51
|
content: EnrichedThreadMessageContent;
|
|
51
52
|
/**
|
|
52
53
|
* Message details (None when not requested via with_details)
|
|
53
|
-
* @type {
|
|
54
|
+
* @type {ThreadMessageDetails}
|
|
54
55
|
* @memberof ThreadMessageResponse
|
|
55
56
|
*/
|
|
56
|
-
details?:
|
|
57
|
+
details?: ThreadMessageDetails | null;
|
|
58
|
+
/**
|
|
59
|
+
* Ordered content parts (text/reasoning/tool/doc_edit). Native rows return details.parts; legacy rows return a best-effort read-time projection of details.steps. Empty when details are not requested.
|
|
60
|
+
* @type {Array<TextPartOrReasoningPartOrToolPartOrDocEditPart>}
|
|
61
|
+
* @memberof ThreadMessageResponse
|
|
62
|
+
*/
|
|
63
|
+
parts?: Array<TextPartOrReasoningPartOrToolPartOrDocEditPart>;
|
|
57
64
|
/**
|
|
58
65
|
* Thread's PathPart ID
|
|
59
66
|
* @type {string}
|
|
@@ -21,7 +21,8 @@ exports.ThreadMessageResponseToJSON = ThreadMessageResponseToJSON;
|
|
|
21
21
|
exports.ThreadMessageResponseToJSONTyped = ThreadMessageResponseToJSONTyped;
|
|
22
22
|
const EnrichedThreadMessageContent_1 = require("./EnrichedThreadMessageContent");
|
|
23
23
|
const MessageRole_1 = require("./MessageRole");
|
|
24
|
-
const
|
|
24
|
+
const TextPartOrReasoningPartOrToolPartOrDocEditPart_1 = require("./TextPartOrReasoningPartOrToolPartOrDocEditPart");
|
|
25
|
+
const ThreadMessageDetails_1 = require("./ThreadMessageDetails");
|
|
25
26
|
exports.ThreadMessageResponsePropertyValidationAttributesMap = {};
|
|
26
27
|
/**
|
|
27
28
|
* Check if a given object implements the ThreadMessageResponse interface.
|
|
@@ -62,7 +63,8 @@ function ThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
63
|
'sequence': json['sequence'],
|
|
63
64
|
'role': (0, MessageRole_1.MessageRoleFromJSON)(json['role']),
|
|
64
65
|
'content': (0, EnrichedThreadMessageContent_1.EnrichedThreadMessageContentFromJSON)(json['content']),
|
|
65
|
-
'details': json['details'] == null ? undefined : (0,
|
|
66
|
+
'details': json['details'] == null ? undefined : (0, ThreadMessageDetails_1.ThreadMessageDetailsFromJSON)(json['details']),
|
|
67
|
+
'parts': json['parts'] == null ? undefined : (json['parts'].map(TextPartOrReasoningPartOrToolPartOrDocEditPart_1.TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSON)),
|
|
66
68
|
'parentPathId': json['parent_path_id'],
|
|
67
69
|
'materializedPath': json['materialized_path'],
|
|
68
70
|
'tenantId': json['tenant_id'],
|
|
@@ -84,7 +86,8 @@ function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
84
86
|
'sequence': value['sequence'],
|
|
85
87
|
'role': (0, MessageRole_1.MessageRoleToJSON)(value['role']),
|
|
86
88
|
'content': (0, EnrichedThreadMessageContent_1.EnrichedThreadMessageContentToJSON)(value['content']),
|
|
87
|
-
'details': (0,
|
|
89
|
+
'details': (0, ThreadMessageDetails_1.ThreadMessageDetailsToJSON)(value['details']),
|
|
90
|
+
'parts': value['parts'] == null ? undefined : (value['parts'].map(TextPartOrReasoningPartOrToolPartOrDocEditPart_1.TextPartOrReasoningPartOrToolPartOrDocEditPartToJSON)),
|
|
88
91
|
'parent_path_id': value['parentPathId'],
|
|
89
92
|
'materialized_path': value['materializedPath'],
|
|
90
93
|
'tenant_id': value['tenantId'],
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { ToolStatus } from './ToolStatus';
|
|
13
|
+
import type { Input } from './Input';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ToolPart
|
|
18
|
+
*/
|
|
19
|
+
export interface ToolPart {
|
|
20
|
+
/**
|
|
21
|
+
* Stable per-message part id (uuid)
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ToolPart
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* 0-based order within the message
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ToolPart
|
|
30
|
+
*/
|
|
31
|
+
seq: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Date}
|
|
35
|
+
* @memberof ToolPart
|
|
36
|
+
*/
|
|
37
|
+
startTime: Date;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Date}
|
|
41
|
+
* @memberof ToolPart
|
|
42
|
+
*/
|
|
43
|
+
endTime?: Date | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ToolPartKindEnum}
|
|
47
|
+
* @memberof ToolPart
|
|
48
|
+
*/
|
|
49
|
+
kind?: ToolPartKindEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ToolPart
|
|
54
|
+
*/
|
|
55
|
+
toolCallId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ToolPart
|
|
60
|
+
*/
|
|
61
|
+
toolName: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Input}
|
|
65
|
+
* @memberof ToolPart
|
|
66
|
+
*/
|
|
67
|
+
input?: Input | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {ToolStatus}
|
|
71
|
+
* @memberof ToolPart
|
|
72
|
+
*/
|
|
73
|
+
status?: ToolStatus;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {any}
|
|
77
|
+
* @memberof ToolPart
|
|
78
|
+
*/
|
|
79
|
+
result?: any | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof ToolPart
|
|
84
|
+
*/
|
|
85
|
+
isError?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof ToolPart
|
|
90
|
+
*/
|
|
91
|
+
durationMs?: number | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {{ [key: string]: any; }}
|
|
95
|
+
* @memberof ToolPart
|
|
96
|
+
*/
|
|
97
|
+
extras?: {
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
} | null;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export declare const ToolPartKindEnum: {
|
|
105
|
+
readonly Tool: "tool";
|
|
106
|
+
};
|
|
107
|
+
export type ToolPartKindEnum = typeof ToolPartKindEnum[keyof typeof ToolPartKindEnum];
|
|
108
|
+
export declare const ToolPartPropertyValidationAttributesMap: {
|
|
109
|
+
[property: string]: {
|
|
110
|
+
maxLength?: number;
|
|
111
|
+
minLength?: number;
|
|
112
|
+
pattern?: string;
|
|
113
|
+
maximum?: number;
|
|
114
|
+
exclusiveMaximum?: boolean;
|
|
115
|
+
minimum?: number;
|
|
116
|
+
exclusiveMinimum?: boolean;
|
|
117
|
+
multipleOf?: number;
|
|
118
|
+
maxItems?: number;
|
|
119
|
+
minItems?: number;
|
|
120
|
+
uniqueItems?: boolean;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Check if a given object implements the ToolPart interface.
|
|
125
|
+
*/
|
|
126
|
+
export declare function instanceOfToolPart(value: object): value is ToolPart;
|
|
127
|
+
export declare function ToolPartFromJSON(json: any): ToolPart;
|
|
128
|
+
export declare function ToolPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolPart;
|
|
129
|
+
export declare function ToolPartToJSON(json: any): ToolPart;
|
|
130
|
+
export declare function ToolPartToJSONTyped(value?: ToolPart | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ToolPartPropertyValidationAttributesMap = exports.ToolPartKindEnum = void 0;
|
|
17
|
+
exports.instanceOfToolPart = instanceOfToolPart;
|
|
18
|
+
exports.ToolPartFromJSON = ToolPartFromJSON;
|
|
19
|
+
exports.ToolPartFromJSONTyped = ToolPartFromJSONTyped;
|
|
20
|
+
exports.ToolPartToJSON = ToolPartToJSON;
|
|
21
|
+
exports.ToolPartToJSONTyped = ToolPartToJSONTyped;
|
|
22
|
+
const ToolStatus_1 = require("./ToolStatus");
|
|
23
|
+
const Input_1 = require("./Input");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ToolPartKindEnum = {
|
|
28
|
+
Tool: 'tool'
|
|
29
|
+
};
|
|
30
|
+
exports.ToolPartPropertyValidationAttributesMap = {
|
|
31
|
+
seq: {
|
|
32
|
+
minimum: 0,
|
|
33
|
+
exclusiveMinimum: false,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ToolPart interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfToolPart(value) {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('seq' in value) || value['seq'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('toolName' in value) || value['toolName'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function ToolPartFromJSON(json) {
|
|
53
|
+
return ToolPartFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ToolPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': json['id'],
|
|
61
|
+
'seq': json['seq'],
|
|
62
|
+
'startTime': (new Date(json['start_time'])),
|
|
63
|
+
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
64
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
65
|
+
'toolCallId': json['tool_call_id'],
|
|
66
|
+
'toolName': json['tool_name'],
|
|
67
|
+
'input': json['input'] == null ? undefined : (0, Input_1.InputFromJSON)(json['input']),
|
|
68
|
+
'status': json['status'] == null ? undefined : (0, ToolStatus_1.ToolStatusFromJSON)(json['status']),
|
|
69
|
+
'result': json['result'] == null ? undefined : json['result'],
|
|
70
|
+
'isError': json['is_error'] == null ? undefined : json['is_error'],
|
|
71
|
+
'durationMs': json['duration_ms'] == null ? undefined : json['duration_ms'],
|
|
72
|
+
'extras': json['extras'] == null ? undefined : json['extras'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function ToolPartToJSON(json) {
|
|
76
|
+
return ToolPartToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function ToolPartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'id': value['id'],
|
|
84
|
+
'seq': value['seq'],
|
|
85
|
+
'start_time': value['startTime'].toISOString(),
|
|
86
|
+
'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
|
|
87
|
+
'kind': value['kind'],
|
|
88
|
+
'tool_call_id': value['toolCallId'],
|
|
89
|
+
'tool_name': value['toolName'],
|
|
90
|
+
'input': (0, Input_1.InputToJSON)(value['input']),
|
|
91
|
+
'status': (0, ToolStatus_1.ToolStatusToJSON)(value['status']),
|
|
92
|
+
'result': value['result'],
|
|
93
|
+
'is_error': value['isError'],
|
|
94
|
+
'duration_ms': value['durationMs'],
|
|
95
|
+
'extras': value['extras'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ToolStatus: {
|
|
17
|
+
readonly Running: "running";
|
|
18
|
+
readonly Success: "success";
|
|
19
|
+
readonly Error: "error";
|
|
20
|
+
readonly Canceled: "canceled";
|
|
21
|
+
};
|
|
22
|
+
export type ToolStatus = typeof ToolStatus[keyof typeof ToolStatus];
|
|
23
|
+
export declare function instanceOfToolStatus(value: any): boolean;
|
|
24
|
+
export declare function ToolStatusFromJSON(json: any): ToolStatus;
|
|
25
|
+
export declare function ToolStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolStatus;
|
|
26
|
+
export declare function ToolStatusToJSON(value?: ToolStatus | null): any;
|
|
27
|
+
export declare function ToolStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ToolStatus;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ToolStatus = void 0;
|
|
17
|
+
exports.instanceOfToolStatus = instanceOfToolStatus;
|
|
18
|
+
exports.ToolStatusFromJSON = ToolStatusFromJSON;
|
|
19
|
+
exports.ToolStatusFromJSONTyped = ToolStatusFromJSONTyped;
|
|
20
|
+
exports.ToolStatusToJSON = ToolStatusToJSON;
|
|
21
|
+
exports.ToolStatusToJSONTyped = ToolStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ToolStatus = {
|
|
27
|
+
Running: 'running',
|
|
28
|
+
Success: 'success',
|
|
29
|
+
Error: 'error',
|
|
30
|
+
Canceled: 'canceled'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfToolStatus(value) {
|
|
33
|
+
for (const key in exports.ToolStatus) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.ToolStatus, key)) {
|
|
35
|
+
if (exports.ToolStatus[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function ToolStatusFromJSON(json) {
|
|
43
|
+
return ToolStatusFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ToolStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function ToolStatusToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function ToolStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { PartType } from './PartType';
|
|
13
|
+
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
14
|
+
/**
|
|
15
|
+
* One input or output file/reference of a run, actionable in one call.
|
|
16
|
+
*
|
|
17
|
+
* ``id`` is the PDO id (``path_part.metadata_obj_id``); ``path_part_id`` is
|
|
18
|
+
* the underlying path part (kept for approval-state / path-part lookups).
|
|
19
|
+
* Route on ``part_type`` to pick the API that takes ``id``: ``DOCUMENT`` →
|
|
20
|
+
* download_document / bulk-download (active version); ``DOCUMENT_VERSION`` →
|
|
21
|
+
* download_document_version (a version-pinned input, e.g. a cloned run's
|
|
22
|
+
* inputs); ``FOLDER`` / ``DATA_SOURCE`` / ``API_CONNECTION`` → list/query via
|
|
23
|
+
* that type's endpoint. Output assets are always ``DOCUMENT``.
|
|
24
|
+
* @export
|
|
25
|
+
* @interface WorkflowRunAsset
|
|
26
|
+
*/
|
|
27
|
+
export interface WorkflowRunAsset {
|
|
28
|
+
/**
|
|
29
|
+
* PDO id accepted by the download / list-contents APIs
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof WorkflowRunAsset
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof WorkflowRunAsset
|
|
38
|
+
*/
|
|
39
|
+
pathPartId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof WorkflowRunAsset
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {PartType}
|
|
49
|
+
* @memberof WorkflowRunAsset
|
|
50
|
+
*/
|
|
51
|
+
partType: PartType;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof WorkflowRunAsset
|
|
56
|
+
*/
|
|
57
|
+
materializedPath: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {PathPartApprovalState}
|
|
61
|
+
* @memberof WorkflowRunAsset
|
|
62
|
+
*/
|
|
63
|
+
approvalState: PathPartApprovalState;
|
|
64
|
+
}
|
|
65
|
+
export declare const WorkflowRunAssetPropertyValidationAttributesMap: {
|
|
66
|
+
[property: string]: {
|
|
67
|
+
maxLength?: number;
|
|
68
|
+
minLength?: number;
|
|
69
|
+
pattern?: string;
|
|
70
|
+
maximum?: number;
|
|
71
|
+
exclusiveMaximum?: boolean;
|
|
72
|
+
minimum?: number;
|
|
73
|
+
exclusiveMinimum?: boolean;
|
|
74
|
+
multipleOf?: number;
|
|
75
|
+
maxItems?: number;
|
|
76
|
+
minItems?: number;
|
|
77
|
+
uniqueItems?: boolean;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the WorkflowRunAsset interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfWorkflowRunAsset(value: object): value is WorkflowRunAsset;
|
|
84
|
+
export declare function WorkflowRunAssetFromJSON(json: any): WorkflowRunAsset;
|
|
85
|
+
export declare function WorkflowRunAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunAsset;
|
|
86
|
+
export declare function WorkflowRunAssetToJSON(json: any): WorkflowRunAsset;
|
|
87
|
+
export declare function WorkflowRunAssetToJSONTyped(value?: WorkflowRunAsset | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WorkflowRunAssetPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfWorkflowRunAsset = instanceOfWorkflowRunAsset;
|
|
18
|
+
exports.WorkflowRunAssetFromJSON = WorkflowRunAssetFromJSON;
|
|
19
|
+
exports.WorkflowRunAssetFromJSONTyped = WorkflowRunAssetFromJSONTyped;
|
|
20
|
+
exports.WorkflowRunAssetToJSON = WorkflowRunAssetToJSON;
|
|
21
|
+
exports.WorkflowRunAssetToJSONTyped = WorkflowRunAssetToJSONTyped;
|
|
22
|
+
const PartType_1 = require("./PartType");
|
|
23
|
+
const PathPartApprovalState_1 = require("./PathPartApprovalState");
|
|
24
|
+
exports.WorkflowRunAssetPropertyValidationAttributesMap = {};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the WorkflowRunAsset interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfWorkflowRunAsset(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('partType' in value) || value['partType'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('approvalState' in value) || value['approvalState'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function WorkflowRunAssetFromJSON(json) {
|
|
44
|
+
return WorkflowRunAssetFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function WorkflowRunAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'pathPartId': json['path_part_id'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
|
|
55
|
+
'materializedPath': json['materialized_path'],
|
|
56
|
+
'approvalState': (0, PathPartApprovalState_1.PathPartApprovalStateFromJSON)(json['approval_state']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function WorkflowRunAssetToJSON(json) {
|
|
60
|
+
return WorkflowRunAssetToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function WorkflowRunAssetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'path_part_id': value['pathPartId'],
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
|
|
71
|
+
'materialized_path': value['materializedPath'],
|
|
72
|
+
'approval_state': (0, PathPartApprovalState_1.PathPartApprovalStateToJSON)(value['approvalState']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ItemPermissions } from './ItemPermissions';
|
|
13
|
+
import type { WorkflowRunAsset } from './WorkflowRunAsset';
|
|
13
14
|
import type { WorkflowRunSnapshot } from './WorkflowRunSnapshot';
|
|
14
15
|
import type { WorkflowExecutionState } from './WorkflowExecutionState';
|
|
15
16
|
import type { ExcludedCommonFile } from './ExcludedCommonFile';
|
|
@@ -158,11 +159,29 @@ export interface WorkflowRunResponse {
|
|
|
158
159
|
*/
|
|
159
160
|
inputPathPartIds?: Array<string>;
|
|
160
161
|
/**
|
|
161
|
-
*
|
|
162
|
-
* @type {Array<
|
|
162
|
+
* 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.
|
|
163
|
+
* @type {Array<WorkflowRunAsset>}
|
|
164
|
+
* @memberof WorkflowRunResponse
|
|
165
|
+
*/
|
|
166
|
+
outputAssets?: Array<WorkflowRunAsset>;
|
|
167
|
+
/**
|
|
168
|
+
* 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.
|
|
169
|
+
* @type {Array<WorkflowRunAsset>}
|
|
170
|
+
* @memberof WorkflowRunResponse
|
|
171
|
+
*/
|
|
172
|
+
inputAssets?: Array<WorkflowRunAsset>;
|
|
173
|
+
/**
|
|
174
|
+
* Full materialized path of the run's ``inputs/`` folder
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof WorkflowRunResponse
|
|
177
|
+
*/
|
|
178
|
+
inputsPath: string;
|
|
179
|
+
/**
|
|
180
|
+
* Full materialized path of the run's ``outputs/`` folder
|
|
181
|
+
* @type {string}
|
|
163
182
|
* @memberof WorkflowRunResponse
|
|
164
183
|
*/
|
|
165
|
-
|
|
184
|
+
outputsPath: string;
|
|
166
185
|
/**
|
|
167
186
|
* 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.
|
|
168
187
|
* @type {Array<ExcludedCommonFile>}
|