@knowledge-stack/ksapi 1.120.1 → 1.122.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,84 @@
|
|
|
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
|
+
* @interface ReasoningPart
|
|
16
|
+
*/
|
|
17
|
+
export interface ReasoningPart {
|
|
18
|
+
/**
|
|
19
|
+
* Stable per-message part id (uuid)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ReasoningPart
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* 0-based order within the message
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ReasoningPart
|
|
28
|
+
*/
|
|
29
|
+
seq: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof ReasoningPart
|
|
34
|
+
*/
|
|
35
|
+
startTime: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ReasoningPart
|
|
40
|
+
*/
|
|
41
|
+
endTime?: Date | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ReasoningPartKindEnum}
|
|
45
|
+
* @memberof ReasoningPart
|
|
46
|
+
*/
|
|
47
|
+
kind?: ReasoningPartKindEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ReasoningPart
|
|
52
|
+
*/
|
|
53
|
+
text: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const ReasoningPartKindEnum: {
|
|
59
|
+
readonly Reasoning: "reasoning";
|
|
60
|
+
};
|
|
61
|
+
export type ReasoningPartKindEnum = typeof ReasoningPartKindEnum[keyof typeof ReasoningPartKindEnum];
|
|
62
|
+
export declare const ReasoningPartPropertyValidationAttributesMap: {
|
|
63
|
+
[property: string]: {
|
|
64
|
+
maxLength?: number;
|
|
65
|
+
minLength?: number;
|
|
66
|
+
pattern?: string;
|
|
67
|
+
maximum?: number;
|
|
68
|
+
exclusiveMaximum?: boolean;
|
|
69
|
+
minimum?: number;
|
|
70
|
+
exclusiveMinimum?: boolean;
|
|
71
|
+
multipleOf?: number;
|
|
72
|
+
maxItems?: number;
|
|
73
|
+
minItems?: number;
|
|
74
|
+
uniqueItems?: boolean;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the ReasoningPart interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfReasoningPart(value: object): value is ReasoningPart;
|
|
81
|
+
export declare function ReasoningPartFromJSON(json: any): ReasoningPart;
|
|
82
|
+
export declare function ReasoningPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReasoningPart;
|
|
83
|
+
export declare function ReasoningPartToJSON(json: any): ReasoningPart;
|
|
84
|
+
export declare function ReasoningPartToJSONTyped(value?: ReasoningPart | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ReasoningPartKindEnum = {
|
|
18
|
+
Reasoning: 'reasoning'
|
|
19
|
+
};
|
|
20
|
+
export const ReasoningPartPropertyValidationAttributesMap = {
|
|
21
|
+
seq: {
|
|
22
|
+
minimum: 0,
|
|
23
|
+
exclusiveMinimum: false,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ReasoningPart interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfReasoningPart(value) {
|
|
30
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('seq' in value) || value['seq'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function ReasoningPartFromJSON(json) {
|
|
41
|
+
return ReasoningPartFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function ReasoningPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'seq': json['seq'],
|
|
50
|
+
'startTime': (new Date(json['start_time'])),
|
|
51
|
+
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
52
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
53
|
+
'text': json['text'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function ReasoningPartToJSON(json) {
|
|
57
|
+
return ReasoningPartToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function ReasoningPartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'seq': value['seq'],
|
|
66
|
+
'start_time': value['startTime'].toISOString(),
|
|
67
|
+
'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
|
|
68
|
+
'kind': value['kind'],
|
|
69
|
+
'text': value['text'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -14,59 +14,53 @@ import type { StepKind } from './StepKind';
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
|
-
* @interface
|
|
17
|
+
* @interface Step
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface Step {
|
|
20
20
|
/**
|
|
21
21
|
* Stable step identifier within the message
|
|
22
22
|
* @type {string}
|
|
23
|
-
* @memberof
|
|
23
|
+
* @memberof Step
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
26
|
/**
|
|
27
27
|
* The name of the step
|
|
28
28
|
* @type {string}
|
|
29
|
-
* @memberof
|
|
29
|
+
* @memberof Step
|
|
30
30
|
*/
|
|
31
31
|
name: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {StepKind}
|
|
35
|
-
* @memberof
|
|
35
|
+
* @memberof Step
|
|
36
36
|
*/
|
|
37
37
|
kind: StepKind;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {Args}
|
|
41
|
-
* @memberof
|
|
41
|
+
* @memberof Step
|
|
42
42
|
*/
|
|
43
43
|
args?: Args | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
47
|
-
* @memberof
|
|
47
|
+
* @memberof Step
|
|
48
48
|
*/
|
|
49
49
|
detail?: string | null;
|
|
50
50
|
/**
|
|
51
51
|
* The start time of the step
|
|
52
52
|
* @type {Date}
|
|
53
|
-
* @memberof
|
|
53
|
+
* @memberof Step
|
|
54
54
|
*/
|
|
55
55
|
startTime: Date;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {Date}
|
|
59
|
-
* @memberof
|
|
59
|
+
* @memberof Step
|
|
60
60
|
*/
|
|
61
61
|
endTime?: Date | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Array<StepInput>}
|
|
65
|
-
* @memberof StepInput
|
|
66
|
-
*/
|
|
67
|
-
steps?: Array<StepInput> | null;
|
|
68
62
|
}
|
|
69
|
-
export declare const
|
|
63
|
+
export declare const StepPropertyValidationAttributesMap: {
|
|
70
64
|
[property: string]: {
|
|
71
65
|
maxLength?: number;
|
|
72
66
|
minLength?: number;
|
|
@@ -82,10 +76,10 @@ export declare const StepInputPropertyValidationAttributesMap: {
|
|
|
82
76
|
};
|
|
83
77
|
};
|
|
84
78
|
/**
|
|
85
|
-
* Check if a given object implements the
|
|
79
|
+
* Check if a given object implements the Step interface.
|
|
86
80
|
*/
|
|
87
|
-
export declare function
|
|
88
|
-
export declare function
|
|
89
|
-
export declare function
|
|
90
|
-
export declare function
|
|
91
|
-
export declare function
|
|
81
|
+
export declare function instanceOfStep(value: object): value is Step;
|
|
82
|
+
export declare function StepFromJSON(json: any): Step;
|
|
83
|
+
export declare function StepFromJSONTyped(json: any, ignoreDiscriminator: boolean): Step;
|
|
84
|
+
export declare function StepToJSON(json: any): Step;
|
|
85
|
+
export declare function StepToJSONTyped(value?: Step | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { ArgsFromJSON, ArgsToJSON, } from './Args';
|
|
15
15
|
import { StepKindFromJSON, StepKindToJSON, } from './StepKind';
|
|
16
|
-
export const
|
|
16
|
+
export const StepPropertyValidationAttributesMap = {};
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the Step interface.
|
|
19
19
|
*/
|
|
20
|
-
export function
|
|
20
|
+
export function instanceOfStep(value) {
|
|
21
21
|
if (!('id' in value) || value['id'] === undefined)
|
|
22
22
|
return false;
|
|
23
23
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -28,10 +28,10 @@ export function instanceOfStepInput(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
|
-
export function
|
|
32
|
-
return
|
|
31
|
+
export function StepFromJSON(json) {
|
|
32
|
+
return StepFromJSONTyped(json, false);
|
|
33
33
|
}
|
|
34
|
-
export function
|
|
34
|
+
export function StepFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
if (json == null) {
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
@@ -43,13 +43,12 @@ export function StepInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
44
44
|
'startTime': (new Date(json['start_time'])),
|
|
45
45
|
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
46
|
-
'steps': json['steps'] == null ? undefined : (json['steps'].map(StepInputFromJSON)),
|
|
47
46
|
};
|
|
48
47
|
}
|
|
49
|
-
export function
|
|
50
|
-
return
|
|
48
|
+
export function StepToJSON(json) {
|
|
49
|
+
return StepToJSONTyped(json, false);
|
|
51
50
|
}
|
|
52
|
-
export function
|
|
51
|
+
export function StepToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
52
|
if (value == null) {
|
|
54
53
|
return value;
|
|
55
54
|
}
|
|
@@ -61,6 +60,5 @@ export function StepInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
60
|
'detail': value['detail'],
|
|
62
61
|
'start_time': value['startTime'].toISOString(),
|
|
63
62
|
'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
|
|
64
|
-
'steps': value['steps'] == null ? undefined : (value['steps'].map(StepInputToJSON)),
|
|
65
63
|
};
|
|
66
64
|
}
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
export declare const StepKind: {
|
|
17
17
|
readonly Reasoning: "reasoning";
|
|
18
18
|
readonly ToolCall: "tool_call";
|
|
19
|
-
readonly Subagent: "subagent";
|
|
20
19
|
};
|
|
21
20
|
export type StepKind = typeof StepKind[keyof typeof StepKind];
|
|
22
21
|
export declare function instanceOfStepKind(value: any): boolean;
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { Citation } from './Citation';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TextPart
|
|
17
|
+
*/
|
|
18
|
+
export interface TextPart {
|
|
19
|
+
/**
|
|
20
|
+
* Stable per-message part id (uuid)
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TextPart
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* 0-based order within the message
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof TextPart
|
|
29
|
+
*/
|
|
30
|
+
seq: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof TextPart
|
|
35
|
+
*/
|
|
36
|
+
startTime: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof TextPart
|
|
41
|
+
*/
|
|
42
|
+
endTime?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {TextPartKindEnum}
|
|
46
|
+
* @memberof TextPart
|
|
47
|
+
*/
|
|
48
|
+
kind?: TextPartKindEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TextPart
|
|
53
|
+
*/
|
|
54
|
+
text: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<Citation>}
|
|
58
|
+
* @memberof TextPart
|
|
59
|
+
*/
|
|
60
|
+
citations?: Array<Citation> | null;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const TextPartKindEnum: {
|
|
66
|
+
readonly Text: "text";
|
|
67
|
+
};
|
|
68
|
+
export type TextPartKindEnum = typeof TextPartKindEnum[keyof typeof TextPartKindEnum];
|
|
69
|
+
export declare const TextPartPropertyValidationAttributesMap: {
|
|
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 TextPart interface.
|
|
86
|
+
*/
|
|
87
|
+
export declare function instanceOfTextPart(value: object): value is TextPart;
|
|
88
|
+
export declare function TextPartFromJSON(json: any): TextPart;
|
|
89
|
+
export declare function TextPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextPart;
|
|
90
|
+
export declare function TextPartToJSON(json: any): TextPart;
|
|
91
|
+
export declare function TextPartToJSONTyped(value?: TextPart | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { CitationFromJSON, CitationToJSON, } from './Citation';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const TextPartKindEnum = {
|
|
19
|
+
Text: 'text'
|
|
20
|
+
};
|
|
21
|
+
export const TextPartPropertyValidationAttributesMap = {
|
|
22
|
+
seq: {
|
|
23
|
+
minimum: 0,
|
|
24
|
+
exclusiveMinimum: false,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the TextPart interface.
|
|
29
|
+
*/
|
|
30
|
+
export function instanceOfTextPart(value) {
|
|
31
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('seq' in value) || value['seq'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
export function TextPartFromJSON(json) {
|
|
42
|
+
return TextPartFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function TextPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'seq': json['seq'],
|
|
51
|
+
'startTime': (new Date(json['start_time'])),
|
|
52
|
+
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
53
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
54
|
+
'text': json['text'],
|
|
55
|
+
'citations': json['citations'] == null ? undefined : (json['citations'].map(CitationFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function TextPartToJSON(json) {
|
|
59
|
+
return TextPartToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function TextPartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'seq': value['seq'],
|
|
68
|
+
'start_time': value['startTime'].toISOString(),
|
|
69
|
+
'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
|
|
70
|
+
'kind': value['kind'],
|
|
71
|
+
'text': value['text'],
|
|
72
|
+
'citations': value['citations'] == null ? undefined : (value['citations'].map(CitationToJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { DocEditPart } from './DocEditPart';
|
|
13
|
+
import type { ReasoningPart } from './ReasoningPart';
|
|
14
|
+
import type { TextPart } from './TextPart';
|
|
15
|
+
import type { ToolPart } from './ToolPart';
|
|
16
|
+
/**
|
|
17
|
+
* @type TextPartOrReasoningPartOrToolPartOrDocEditPart
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export type TextPartOrReasoningPartOrToolPartOrDocEditPart = {
|
|
22
|
+
kind: 'doc_edit';
|
|
23
|
+
} & DocEditPart | {
|
|
24
|
+
kind: 'reasoning';
|
|
25
|
+
} & ReasoningPart | {
|
|
26
|
+
kind: 'text';
|
|
27
|
+
} & TextPart | {
|
|
28
|
+
kind: 'tool';
|
|
29
|
+
} & ToolPart;
|
|
30
|
+
export declare function TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSON(json: any): TextPartOrReasoningPartOrToolPartOrDocEditPart;
|
|
31
|
+
export declare function TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextPartOrReasoningPartOrToolPartOrDocEditPart;
|
|
32
|
+
export declare function TextPartOrReasoningPartOrToolPartOrDocEditPartToJSON(json: any): any;
|
|
33
|
+
export declare function TextPartOrReasoningPartOrToolPartOrDocEditPartToJSONTyped(value?: TextPartOrReasoningPartOrToolPartOrDocEditPart | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import { DocEditPartFromJSONTyped, DocEditPartToJSON, } from './DocEditPart';
|
|
15
|
+
import { ReasoningPartFromJSONTyped, ReasoningPartToJSON, } from './ReasoningPart';
|
|
16
|
+
import { TextPartFromJSONTyped, TextPartToJSON, } from './TextPart';
|
|
17
|
+
import { ToolPartFromJSONTyped, ToolPartToJSON, } from './ToolPart';
|
|
18
|
+
export function TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSON(json) {
|
|
19
|
+
return TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if (json == null) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
switch (json['kind']) {
|
|
26
|
+
case 'doc_edit':
|
|
27
|
+
return Object.assign({}, DocEditPartFromJSONTyped(json, true), { kind: 'doc_edit' });
|
|
28
|
+
case 'reasoning':
|
|
29
|
+
return Object.assign({}, ReasoningPartFromJSONTyped(json, true), { kind: 'reasoning' });
|
|
30
|
+
case 'text':
|
|
31
|
+
return Object.assign({}, TextPartFromJSONTyped(json, true), { kind: 'text' });
|
|
32
|
+
case 'tool':
|
|
33
|
+
return Object.assign({}, ToolPartFromJSONTyped(json, true), { kind: 'tool' });
|
|
34
|
+
default:
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export function TextPartOrReasoningPartOrToolPartOrDocEditPartToJSON(json) {
|
|
39
|
+
return TextPartOrReasoningPartOrToolPartOrDocEditPartToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function TextPartOrReasoningPartOrToolPartOrDocEditPartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
switch (value['kind']) {
|
|
46
|
+
case 'doc_edit':
|
|
47
|
+
return Object.assign({}, DocEditPartToJSON(value), { kind: 'doc_edit' });
|
|
48
|
+
case 'reasoning':
|
|
49
|
+
return Object.assign({}, ReasoningPartToJSON(value), { kind: 'reasoning' });
|
|
50
|
+
case 'text':
|
|
51
|
+
return Object.assign({}, TextPartToJSON(value), { kind: 'text' });
|
|
52
|
+
case 'tool':
|
|
53
|
+
return Object.assign({}, ToolPartToJSON(value), { kind: 'tool' });
|
|
54
|
+
default:
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { TextPartOrReasoningPartOrToolPartOrDocEditPart } from './TextPartOrReasoningPartOrToolPartOrDocEditPart';
|
|
13
|
+
import type { CheckpointDetails } from './CheckpointDetails';
|
|
14
|
+
import type { Step } from './Step';
|
|
15
|
+
import type { MessageUsage } from './MessageUsage';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ThreadMessageDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface ThreadMessageDetails {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<TextPartOrReasoningPartOrToolPartOrDocEditPart>}
|
|
25
|
+
* @memberof ThreadMessageDetails
|
|
26
|
+
*/
|
|
27
|
+
parts?: Array<TextPartOrReasoningPartOrToolPartOrDocEditPart>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {MessageUsage}
|
|
31
|
+
* @memberof ThreadMessageDetails
|
|
32
|
+
*/
|
|
33
|
+
usage?: MessageUsage | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<Step>}
|
|
37
|
+
* @memberof ThreadMessageDetails
|
|
38
|
+
*/
|
|
39
|
+
steps?: Array<Step>;
|
|
40
|
+
/**
|
|
41
|
+
* Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
|
|
42
|
+
* @type {CheckpointDetails}
|
|
43
|
+
* @memberof ThreadMessageDetails
|
|
44
|
+
*/
|
|
45
|
+
checkpoint?: CheckpointDetails | null;
|
|
46
|
+
/**
|
|
47
|
+
* Model registry id (FE-stable, e.g. ``qwen-flash``) that produced this assistant message. ``None`` for legacy rows that pre-date model selection.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ThreadMessageDetails
|
|
50
|
+
*/
|
|
51
|
+
modelId?: string | null;
|
|
52
|
+
}
|
|
53
|
+
export declare const ThreadMessageDetailsPropertyValidationAttributesMap: {
|
|
54
|
+
[property: string]: {
|
|
55
|
+
maxLength?: number;
|
|
56
|
+
minLength?: number;
|
|
57
|
+
pattern?: string;
|
|
58
|
+
maximum?: number;
|
|
59
|
+
exclusiveMaximum?: boolean;
|
|
60
|
+
minimum?: number;
|
|
61
|
+
exclusiveMinimum?: boolean;
|
|
62
|
+
multipleOf?: number;
|
|
63
|
+
maxItems?: number;
|
|
64
|
+
minItems?: number;
|
|
65
|
+
uniqueItems?: boolean;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the ThreadMessageDetails interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfThreadMessageDetails(value: object): value is ThreadMessageDetails;
|
|
72
|
+
export declare function ThreadMessageDetailsFromJSON(json: any): ThreadMessageDetails;
|
|
73
|
+
export declare function ThreadMessageDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageDetails;
|
|
74
|
+
export declare function ThreadMessageDetailsToJSON(json: any): ThreadMessageDetails;
|
|
75
|
+
export declare function ThreadMessageDetailsToJSONTyped(value?: ThreadMessageDetails | null, ignoreDiscriminator?: boolean): any;
|