@knowledge-stack/ksapi 1.56.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -2
- package/README.md +14 -6
- package/dist/apis/DocumentVersionsApi.d.ts +8 -5
- package/dist/apis/DocumentVersionsApi.js +5 -2
- package/dist/apis/ThreadMessagesApi.d.ts +6 -6
- package/dist/apis/ThreadMessagesApi.js +2 -2
- package/dist/apis/WorkflowsApi.d.ts +144 -59
- package/dist/apis/WorkflowsApi.js +131 -49
- package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -5
- package/dist/esm/apis/DocumentVersionsApi.js +5 -2
- package/dist/esm/apis/ThreadMessagesApi.d.ts +6 -6
- package/dist/esm/apis/ThreadMessagesApi.js +2 -2
- package/dist/esm/apis/WorkflowsApi.d.ts +144 -59
- package/dist/esm/apis/WorkflowsApi.js +132 -50
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +6 -0
- package/dist/esm/models/CreateThreadMessageRequest.js +2 -0
- package/dist/esm/models/DocumentVersionContentTypeFilter.d.ts +25 -0
- package/dist/esm/models/DocumentVersionContentTypeFilter.js +43 -0
- package/dist/esm/models/EnrichedThreadMessageContent.d.ts +13 -0
- package/dist/esm/models/EnrichedThreadMessageContent.js +5 -0
- package/dist/esm/models/NonFilesystemReferenceType.d.ts +27 -0
- package/dist/esm/models/NonFilesystemReferenceType.js +45 -0
- package/dist/esm/models/ReferenceType.d.ts +34 -0
- package/dist/esm/models/ReferenceType.js +52 -0
- package/dist/esm/models/ResolvedReferenceInput.d.ts +70 -0
- package/dist/esm/models/ResolvedReferenceInput.js +55 -0
- package/dist/esm/models/ResolvedReferenceOutput.d.ts +69 -0
- package/dist/esm/models/ResolvedReferenceOutput.js +54 -0
- package/dist/esm/models/StepInput.d.ts +6 -0
- package/dist/esm/models/StepInput.js +4 -0
- package/dist/esm/models/StepKind.d.ts +1 -0
- package/dist/esm/models/StepKind.js +1 -0
- package/dist/esm/models/StepOutput.d.ts +6 -0
- package/dist/esm/models/StepOutput.js +4 -0
- package/dist/esm/models/TemporalWorkflowStatusResponse.d.ts +83 -0
- package/dist/esm/models/TemporalWorkflowStatusResponse.js +66 -0
- package/dist/esm/models/ThreadMessageContent.d.ts +13 -0
- package/dist/esm/models/ThreadMessageContent.js +5 -0
- package/dist/esm/models/WorkflowActionResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowCancelResponse.d.ts +53 -0
- package/dist/esm/models/WorkflowCancelResponse.js +48 -0
- package/dist/esm/models/index.d.ts +7 -1
- package/dist/esm/models/index.js +7 -1
- package/dist/models/CreateThreadMessageRequest.d.ts +6 -0
- package/dist/models/CreateThreadMessageRequest.js +2 -0
- package/dist/models/DocumentVersionContentTypeFilter.d.ts +25 -0
- package/dist/models/DocumentVersionContentTypeFilter.js +51 -0
- package/dist/models/EnrichedThreadMessageContent.d.ts +13 -0
- package/dist/models/EnrichedThreadMessageContent.js +5 -0
- package/dist/models/NonFilesystemReferenceType.d.ts +27 -0
- package/dist/models/NonFilesystemReferenceType.js +53 -0
- package/dist/models/ReferenceType.d.ts +34 -0
- package/dist/models/ReferenceType.js +60 -0
- package/dist/models/ResolvedReferenceInput.d.ts +70 -0
- package/dist/models/ResolvedReferenceInput.js +63 -0
- package/dist/models/ResolvedReferenceOutput.d.ts +69 -0
- package/dist/models/ResolvedReferenceOutput.js +62 -0
- package/dist/models/StepInput.d.ts +6 -0
- package/dist/models/StepInput.js +4 -0
- package/dist/models/StepKind.d.ts +1 -0
- package/dist/models/StepKind.js +1 -0
- package/dist/models/StepOutput.d.ts +6 -0
- package/dist/models/StepOutput.js +4 -0
- package/dist/models/TemporalWorkflowStatusResponse.d.ts +83 -0
- package/dist/models/TemporalWorkflowStatusResponse.js +74 -0
- package/dist/models/ThreadMessageContent.d.ts +13 -0
- package/dist/models/ThreadMessageContent.js +5 -0
- package/dist/models/WorkflowActionResponse.d.ts +1 -1
- package/dist/models/WorkflowCancelResponse.d.ts +53 -0
- package/dist/models/WorkflowCancelResponse.js +56 -0
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/docs/CreateThreadMessageRequest.md +2 -0
- package/docs/DocumentVersionContentTypeFilter.md +33 -0
- package/docs/DocumentVersionsApi.md +5 -2
- package/docs/EnrichedThreadMessageContent.md +4 -0
- package/docs/NonFilesystemReferenceType.md +33 -0
- package/docs/{WorkflowAction.md → ReferenceType.md} +4 -5
- package/docs/ResolvedReferenceInput.md +41 -0
- package/docs/ResolvedReferenceOutput.md +41 -0
- package/docs/StepInput.md +2 -0
- package/docs/StepOutput.md +2 -0
- package/docs/TemporalWorkflowStatusResponse.md +47 -0
- package/docs/ThreadMessageContent.md +4 -0
- package/docs/ThreadMessagesApi.md +3 -3
- package/docs/WorkflowActionResponse.md +1 -1
- package/docs/WorkflowCancelResponse.md +37 -0
- package/docs/WorkflowsApi.md +183 -36
- package/package.json +1 -1
- package/src/apis/DocumentVersionsApi.ts +14 -4
- package/src/apis/ThreadMessagesApi.ts +6 -6
- package/src/apis/WorkflowsApi.ts +249 -90
- package/src/models/CreateThreadMessageRequest.ts +8 -0
- package/src/models/DocumentVersionContentTypeFilter.ts +53 -0
- package/src/models/EnrichedThreadMessageContent.ts +23 -0
- package/src/models/NonFilesystemReferenceType.ts +55 -0
- package/src/models/ReferenceType.ts +62 -0
- package/src/models/ResolvedReferenceInput.ts +123 -0
- package/src/models/ResolvedReferenceOutput.ts +113 -0
- package/src/models/StepInput.ts +9 -0
- package/src/models/StepKind.ts +1 -0
- package/src/models/StepOutput.ts +9 -0
- package/src/models/TemporalWorkflowStatusResponse.ts +136 -0
- package/src/models/ThreadMessageContent.ts +23 -0
- package/src/models/WorkflowActionResponse.ts +1 -1
- package/src/models/WorkflowCancelResponse.ts +92 -0
- package/src/models/index.ts +7 -1
- package/dist/esm/models/WorkflowAction.d.ts +0 -25
- package/dist/esm/models/WorkflowAction.js +0 -43
- package/dist/models/WorkflowAction.d.ts +0 -25
- package/dist/models/WorkflowAction.js +0 -51
- package/src/models/WorkflowAction.ts +0 -53
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
* Generic Temporal workflow status — no DB interaction.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TemporalWorkflowStatusResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TemporalWorkflowStatusResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
22
|
+
*/
|
|
23
|
+
workflowId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
28
|
+
*/
|
|
29
|
+
temporalStatus: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
34
|
+
*/
|
|
35
|
+
workflowType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
40
|
+
*/
|
|
41
|
+
taskQueue: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
46
|
+
*/
|
|
47
|
+
startTime: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
52
|
+
*/
|
|
53
|
+
closeTime?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
58
|
+
*/
|
|
59
|
+
runId: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the TemporalWorkflowStatusResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfTemporalWorkflowStatusResponse(value: object): value is TemporalWorkflowStatusResponse;
|
|
65
|
+
export declare function TemporalWorkflowStatusResponseFromJSON(json: any): TemporalWorkflowStatusResponse;
|
|
66
|
+
export declare function TemporalWorkflowStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalWorkflowStatusResponse;
|
|
67
|
+
export declare function TemporalWorkflowStatusResponseToJSON(json: any): TemporalWorkflowStatusResponse;
|
|
68
|
+
export declare function TemporalWorkflowStatusResponseToJSONTyped(value?: TemporalWorkflowStatusResponse | null, ignoreDiscriminator?: boolean): any;
|
|
69
|
+
export declare const TemporalWorkflowStatusResponsePropertyValidationAttributesMap: {
|
|
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
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* Check if a given object implements the TemporalWorkflowStatusResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTemporalWorkflowStatusResponse(value) {
|
|
18
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('temporalStatus' in value) || value['temporalStatus'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('workflowType' in value) || value['workflowType'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('taskQueue' in value) || value['taskQueue'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function TemporalWorkflowStatusResponseFromJSON(json) {
|
|
33
|
+
return TemporalWorkflowStatusResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function TemporalWorkflowStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'workflowId': json['workflow_id'],
|
|
41
|
+
'temporalStatus': json['temporal_status'],
|
|
42
|
+
'workflowType': json['workflow_type'],
|
|
43
|
+
'taskQueue': json['task_queue'],
|
|
44
|
+
'startTime': (new Date(json['start_time'])),
|
|
45
|
+
'closeTime': json['close_time'] == null ? undefined : (new Date(json['close_time'])),
|
|
46
|
+
'runId': json['run_id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function TemporalWorkflowStatusResponseToJSON(json) {
|
|
50
|
+
return TemporalWorkflowStatusResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function TemporalWorkflowStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'workflow_id': value['workflowId'],
|
|
58
|
+
'temporal_status': value['temporalStatus'],
|
|
59
|
+
'workflow_type': value['workflowType'],
|
|
60
|
+
'task_queue': value['taskQueue'],
|
|
61
|
+
'start_time': value['startTime'].toISOString(),
|
|
62
|
+
'close_time': value['closeTime'] == null ? value['closeTime'] : value['closeTime'].toISOString(),
|
|
63
|
+
'run_id': value['runId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export const TemporalWorkflowStatusResponsePropertyValidationAttributesMap = {};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Citation } from './Citation';
|
|
13
|
+
import type { ResolvedReferenceInput } from './ResolvedReferenceInput';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -22,12 +23,24 @@ export interface ThreadMessageContent {
|
|
|
22
23
|
* @memberof ThreadMessageContent
|
|
23
24
|
*/
|
|
24
25
|
text: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether this message represents a terminal assistant error
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof ThreadMessageContent
|
|
30
|
+
*/
|
|
31
|
+
isError?: boolean | null;
|
|
25
32
|
/**
|
|
26
33
|
* A list of citations from the message
|
|
27
34
|
* @type {Array<Citation>}
|
|
28
35
|
* @memberof ThreadMessageContent
|
|
29
36
|
*/
|
|
30
37
|
citations?: Array<Citation> | null;
|
|
38
|
+
/**
|
|
39
|
+
* Resolved inline references attached to this message
|
|
40
|
+
* @type {Array<ResolvedReferenceInput>}
|
|
41
|
+
* @memberof ThreadMessageContent
|
|
42
|
+
*/
|
|
43
|
+
references?: Array<ResolvedReferenceInput> | null;
|
|
31
44
|
}
|
|
32
45
|
/**
|
|
33
46
|
* Check if a given object implements the ThreadMessageContent interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { CitationFromJSON, CitationToJSON, } from './Citation';
|
|
15
|
+
import { ResolvedReferenceInputFromJSON, ResolvedReferenceInputToJSON, } from './ResolvedReferenceInput';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the ThreadMessageContent interface.
|
|
17
18
|
*/
|
|
@@ -29,7 +30,9 @@ export function ThreadMessageContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
30
|
}
|
|
30
31
|
return {
|
|
31
32
|
'text': json['text'],
|
|
33
|
+
'isError': json['is_error'] == null ? undefined : json['is_error'],
|
|
32
34
|
'citations': json['citations'] == null ? undefined : (json['citations'].map(CitationFromJSON)),
|
|
35
|
+
'references': json['references'] == null ? undefined : (json['references'].map(ResolvedReferenceInputFromJSON)),
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
export function ThreadMessageContentToJSON(json) {
|
|
@@ -41,7 +44,9 @@ export function ThreadMessageContentToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
41
44
|
}
|
|
42
45
|
return {
|
|
43
46
|
'text': value['text'],
|
|
47
|
+
'is_error': value['isError'],
|
|
44
48
|
'citations': value['citations'] == null ? undefined : (value['citations'].map(CitationToJSON)),
|
|
49
|
+
'references': value['references'] == null ? undefined : (value['references'].map(ResolvedReferenceInputToJSON)),
|
|
45
50
|
};
|
|
46
51
|
}
|
|
47
52
|
export const ThreadMessageContentPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Response for generic workflow cancellation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WorkflowCancelResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkflowCancelResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkflowCancelResponse
|
|
22
|
+
*/
|
|
23
|
+
workflowId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WorkflowCancelResponse
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the WorkflowCancelResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfWorkflowCancelResponse(value: object): value is WorkflowCancelResponse;
|
|
35
|
+
export declare function WorkflowCancelResponseFromJSON(json: any): WorkflowCancelResponse;
|
|
36
|
+
export declare function WorkflowCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCancelResponse;
|
|
37
|
+
export declare function WorkflowCancelResponseToJSON(json: any): WorkflowCancelResponse;
|
|
38
|
+
export declare function WorkflowCancelResponseToJSONTyped(value?: WorkflowCancelResponse | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const WorkflowCancelResponsePropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* Check if a given object implements the WorkflowCancelResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWorkflowCancelResponse(value) {
|
|
18
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function WorkflowCancelResponseFromJSON(json) {
|
|
25
|
+
return WorkflowCancelResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function WorkflowCancelResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'workflowId': json['workflow_id'],
|
|
33
|
+
'message': json['message'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function WorkflowCancelResponseToJSON(json) {
|
|
37
|
+
return WorkflowCancelResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function WorkflowCancelResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'workflow_id': value['workflowId'],
|
|
45
|
+
'message': value['message'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export const WorkflowCancelResponsePropertyValidationAttributesMap = {};
|
|
@@ -33,6 +33,7 @@ export * from './DocumentResponse';
|
|
|
33
33
|
export * from './DocumentType';
|
|
34
34
|
export * from './DocumentVersionAction';
|
|
35
35
|
export * from './DocumentVersionActionResponse';
|
|
36
|
+
export * from './DocumentVersionContentTypeFilter';
|
|
36
37
|
export * from './DocumentVersionMetadata';
|
|
37
38
|
export * from './DocumentVersionMetadataUpdate';
|
|
38
39
|
export * from './DocumentVersionResponse';
|
|
@@ -60,6 +61,7 @@ export * from './LineageGraphResponse';
|
|
|
60
61
|
export * from './LineageNodeResponse';
|
|
61
62
|
export * from './LocationInner';
|
|
62
63
|
export * from './MessageRole';
|
|
64
|
+
export * from './NonFilesystemReferenceType';
|
|
63
65
|
export * from './OAuth2Config';
|
|
64
66
|
export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
|
|
65
67
|
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
@@ -87,6 +89,9 @@ export * from './PipelineState';
|
|
|
87
89
|
export * from './PipelineStatus';
|
|
88
90
|
export * from './Polygon';
|
|
89
91
|
export * from './PolygonReference';
|
|
92
|
+
export * from './ReferenceType';
|
|
93
|
+
export * from './ResolvedReferenceInput';
|
|
94
|
+
export * from './ResolvedReferenceOutput';
|
|
90
95
|
export * from './RootResponse';
|
|
91
96
|
export * from './SSOInitiateResponse';
|
|
92
97
|
export * from './ScoredChunkResponse';
|
|
@@ -103,6 +108,7 @@ export * from './SubtreeChunkGroup';
|
|
|
103
108
|
export * from './SubtreeChunksResponse';
|
|
104
109
|
export * from './SupportedLanguage';
|
|
105
110
|
export * from './TagResponse';
|
|
111
|
+
export * from './TemporalWorkflowStatusResponse';
|
|
106
112
|
export * from './TenantBrandingResponse';
|
|
107
113
|
export * from './TenantResponse';
|
|
108
114
|
export * from './TenantSettingsResponse';
|
|
@@ -130,7 +136,7 @@ export * from './UserMessageResponse';
|
|
|
130
136
|
export * from './UserResponse';
|
|
131
137
|
export * from './ValidationError';
|
|
132
138
|
export * from './VersionChunkIdsResponse';
|
|
133
|
-
export * from './WorkflowAction';
|
|
134
139
|
export * from './WorkflowActionResponse';
|
|
140
|
+
export * from './WorkflowCancelResponse';
|
|
135
141
|
export * from './WorkflowDetailResponse';
|
|
136
142
|
export * from './WorkflowSummaryResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -35,6 +35,7 @@ export * from './DocumentResponse';
|
|
|
35
35
|
export * from './DocumentType';
|
|
36
36
|
export * from './DocumentVersionAction';
|
|
37
37
|
export * from './DocumentVersionActionResponse';
|
|
38
|
+
export * from './DocumentVersionContentTypeFilter';
|
|
38
39
|
export * from './DocumentVersionMetadata';
|
|
39
40
|
export * from './DocumentVersionMetadataUpdate';
|
|
40
41
|
export * from './DocumentVersionResponse';
|
|
@@ -62,6 +63,7 @@ export * from './LineageGraphResponse';
|
|
|
62
63
|
export * from './LineageNodeResponse';
|
|
63
64
|
export * from './LocationInner';
|
|
64
65
|
export * from './MessageRole';
|
|
66
|
+
export * from './NonFilesystemReferenceType';
|
|
65
67
|
export * from './OAuth2Config';
|
|
66
68
|
export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
|
|
67
69
|
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
@@ -89,6 +91,9 @@ export * from './PipelineState';
|
|
|
89
91
|
export * from './PipelineStatus';
|
|
90
92
|
export * from './Polygon';
|
|
91
93
|
export * from './PolygonReference';
|
|
94
|
+
export * from './ReferenceType';
|
|
95
|
+
export * from './ResolvedReferenceInput';
|
|
96
|
+
export * from './ResolvedReferenceOutput';
|
|
92
97
|
export * from './RootResponse';
|
|
93
98
|
export * from './SSOInitiateResponse';
|
|
94
99
|
export * from './ScoredChunkResponse';
|
|
@@ -105,6 +110,7 @@ export * from './SubtreeChunkGroup';
|
|
|
105
110
|
export * from './SubtreeChunksResponse';
|
|
106
111
|
export * from './SupportedLanguage';
|
|
107
112
|
export * from './TagResponse';
|
|
113
|
+
export * from './TemporalWorkflowStatusResponse';
|
|
108
114
|
export * from './TenantBrandingResponse';
|
|
109
115
|
export * from './TenantResponse';
|
|
110
116
|
export * from './TenantSettingsResponse';
|
|
@@ -132,7 +138,7 @@ export * from './UserMessageResponse';
|
|
|
132
138
|
export * from './UserResponse';
|
|
133
139
|
export * from './ValidationError';
|
|
134
140
|
export * from './VersionChunkIdsResponse';
|
|
135
|
-
export * from './WorkflowAction';
|
|
136
141
|
export * from './WorkflowActionResponse';
|
|
142
|
+
export * from './WorkflowCancelResponse';
|
|
137
143
|
export * from './WorkflowDetailResponse';
|
|
138
144
|
export * from './WorkflowSummaryResponse';
|
|
@@ -18,6 +18,12 @@ import type { ThreadMessageContent } from './ThreadMessageContent';
|
|
|
18
18
|
* @interface CreateThreadMessageRequest
|
|
19
19
|
*/
|
|
20
20
|
export interface CreateThreadMessageRequest {
|
|
21
|
+
/**
|
|
22
|
+
* Optional caller-supplied ThreadMessage ID for idempotent creates.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CreateThreadMessageRequest
|
|
25
|
+
*/
|
|
26
|
+
messageId?: string | null;
|
|
21
27
|
/**
|
|
22
28
|
*
|
|
23
29
|
* @type {MessageRole}
|
|
@@ -40,6 +40,7 @@ function CreateThreadMessageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
|
+
'messageId': json['message_id'] == null ? undefined : json['message_id'],
|
|
43
44
|
'role': (0, MessageRole_1.MessageRoleFromJSON)(json['role']),
|
|
44
45
|
'content': (0, ThreadMessageContent_1.ThreadMessageContentFromJSON)(json['content']),
|
|
45
46
|
'details': json['details'] == null ? undefined : (0, ThreadMessageDetailsInput_1.ThreadMessageDetailsInputFromJSON)(json['details']),
|
|
@@ -53,6 +54,7 @@ function CreateThreadMessageRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
53
54
|
return value;
|
|
54
55
|
}
|
|
55
56
|
return {
|
|
57
|
+
'message_id': value['messageId'],
|
|
56
58
|
'role': (0, MessageRole_1.MessageRoleToJSON)(value['role']),
|
|
57
59
|
'content': (0, ThreadMessageContent_1.ThreadMessageContentToJSON)(value['content']),
|
|
58
60
|
'details': (0, ThreadMessageDetailsInput_1.ThreadMessageDetailsInputToJSON)(value['details']),
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Filter for the type of content rows to return.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const DocumentVersionContentTypeFilter: {
|
|
17
|
+
readonly Section: "SECTION";
|
|
18
|
+
readonly Chunk: "CHUNK";
|
|
19
|
+
};
|
|
20
|
+
export type DocumentVersionContentTypeFilter = typeof DocumentVersionContentTypeFilter[keyof typeof DocumentVersionContentTypeFilter];
|
|
21
|
+
export declare function instanceOfDocumentVersionContentTypeFilter(value: any): boolean;
|
|
22
|
+
export declare function DocumentVersionContentTypeFilterFromJSON(json: any): DocumentVersionContentTypeFilter;
|
|
23
|
+
export declare function DocumentVersionContentTypeFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionContentTypeFilter;
|
|
24
|
+
export declare function DocumentVersionContentTypeFilterToJSON(value?: DocumentVersionContentTypeFilter | null): any;
|
|
25
|
+
export declare function DocumentVersionContentTypeFilterToJSONTyped(value: any, ignoreDiscriminator: boolean): DocumentVersionContentTypeFilter;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.DocumentVersionContentTypeFilter = void 0;
|
|
17
|
+
exports.instanceOfDocumentVersionContentTypeFilter = instanceOfDocumentVersionContentTypeFilter;
|
|
18
|
+
exports.DocumentVersionContentTypeFilterFromJSON = DocumentVersionContentTypeFilterFromJSON;
|
|
19
|
+
exports.DocumentVersionContentTypeFilterFromJSONTyped = DocumentVersionContentTypeFilterFromJSONTyped;
|
|
20
|
+
exports.DocumentVersionContentTypeFilterToJSON = DocumentVersionContentTypeFilterToJSON;
|
|
21
|
+
exports.DocumentVersionContentTypeFilterToJSONTyped = DocumentVersionContentTypeFilterToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Filter for the type of content rows to return.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.DocumentVersionContentTypeFilter = {
|
|
27
|
+
Section: 'SECTION',
|
|
28
|
+
Chunk: 'CHUNK'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfDocumentVersionContentTypeFilter(value) {
|
|
31
|
+
for (const key in exports.DocumentVersionContentTypeFilter) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.DocumentVersionContentTypeFilter, key)) {
|
|
33
|
+
if (exports.DocumentVersionContentTypeFilter[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function DocumentVersionContentTypeFilterFromJSON(json) {
|
|
41
|
+
return DocumentVersionContentTypeFilterFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DocumentVersionContentTypeFilterFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function DocumentVersionContentTypeFilterToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function DocumentVersionContentTypeFilterToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ResolvedReferenceOutput } from './ResolvedReferenceOutput';
|
|
12
13
|
import type { EnrichedCitation } from './EnrichedCitation';
|
|
13
14
|
/**
|
|
14
15
|
* ThreadMessageContent with enriched citations for API responses.
|
|
@@ -22,12 +23,24 @@ export interface EnrichedThreadMessageContent {
|
|
|
22
23
|
* @memberof EnrichedThreadMessageContent
|
|
23
24
|
*/
|
|
24
25
|
text: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether this message represents a terminal assistant error
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof EnrichedThreadMessageContent
|
|
30
|
+
*/
|
|
31
|
+
isError?: boolean | null;
|
|
25
32
|
/**
|
|
26
33
|
* A list of citations with document context
|
|
27
34
|
* @type {Array<EnrichedCitation>}
|
|
28
35
|
* @memberof EnrichedThreadMessageContent
|
|
29
36
|
*/
|
|
30
37
|
citations?: Array<EnrichedCitation> | null;
|
|
38
|
+
/**
|
|
39
|
+
* Resolved inline references attached to this message
|
|
40
|
+
* @type {Array<ResolvedReferenceOutput>}
|
|
41
|
+
* @memberof EnrichedThreadMessageContent
|
|
42
|
+
*/
|
|
43
|
+
references?: Array<ResolvedReferenceOutput> | null;
|
|
31
44
|
}
|
|
32
45
|
/**
|
|
33
46
|
* Check if a given object implements the EnrichedThreadMessageContent interface.
|
|
@@ -19,6 +19,7 @@ exports.EnrichedThreadMessageContentFromJSON = EnrichedThreadMessageContentFromJ
|
|
|
19
19
|
exports.EnrichedThreadMessageContentFromJSONTyped = EnrichedThreadMessageContentFromJSONTyped;
|
|
20
20
|
exports.EnrichedThreadMessageContentToJSON = EnrichedThreadMessageContentToJSON;
|
|
21
21
|
exports.EnrichedThreadMessageContentToJSONTyped = EnrichedThreadMessageContentToJSONTyped;
|
|
22
|
+
const ResolvedReferenceOutput_1 = require("./ResolvedReferenceOutput");
|
|
22
23
|
const EnrichedCitation_1 = require("./EnrichedCitation");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the EnrichedThreadMessageContent interface.
|
|
@@ -37,7 +38,9 @@ function EnrichedThreadMessageContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
40
|
'text': json['text'],
|
|
41
|
+
'isError': json['is_error'] == null ? undefined : json['is_error'],
|
|
40
42
|
'citations': json['citations'] == null ? undefined : (json['citations'].map(EnrichedCitation_1.EnrichedCitationFromJSON)),
|
|
43
|
+
'references': json['references'] == null ? undefined : (json['references'].map(ResolvedReferenceOutput_1.ResolvedReferenceOutputFromJSON)),
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function EnrichedThreadMessageContentToJSON(json) {
|
|
@@ -49,7 +52,9 @@ function EnrichedThreadMessageContentToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
52
|
}
|
|
50
53
|
return {
|
|
51
54
|
'text': value['text'],
|
|
55
|
+
'is_error': value['isError'],
|
|
52
56
|
'citations': value['citations'] == null ? undefined : (value['citations'].map(EnrichedCitation_1.EnrichedCitationToJSON)),
|
|
57
|
+
'references': value['references'] == null ? undefined : (value['references'].map(ResolvedReferenceOutput_1.ResolvedReferenceOutputToJSON)),
|
|
53
58
|
};
|
|
54
59
|
}
|
|
55
60
|
exports.EnrichedThreadMessageContentPropertyValidationAttributesMap = {};
|
|
@@ -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
|
+
* Supported reference types that do not map to filesystem PartType.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const NonFilesystemReferenceType: {
|
|
17
|
+
readonly Image: "image";
|
|
18
|
+
readonly Memory: "memory";
|
|
19
|
+
readonly Tag: "tag";
|
|
20
|
+
readonly User: "user";
|
|
21
|
+
};
|
|
22
|
+
export type NonFilesystemReferenceType = typeof NonFilesystemReferenceType[keyof typeof NonFilesystemReferenceType];
|
|
23
|
+
export declare function instanceOfNonFilesystemReferenceType(value: any): boolean;
|
|
24
|
+
export declare function NonFilesystemReferenceTypeFromJSON(json: any): NonFilesystemReferenceType;
|
|
25
|
+
export declare function NonFilesystemReferenceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NonFilesystemReferenceType;
|
|
26
|
+
export declare function NonFilesystemReferenceTypeToJSON(value?: NonFilesystemReferenceType | null): any;
|
|
27
|
+
export declare function NonFilesystemReferenceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): NonFilesystemReferenceType;
|
|
@@ -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.NonFilesystemReferenceType = void 0;
|
|
17
|
+
exports.instanceOfNonFilesystemReferenceType = instanceOfNonFilesystemReferenceType;
|
|
18
|
+
exports.NonFilesystemReferenceTypeFromJSON = NonFilesystemReferenceTypeFromJSON;
|
|
19
|
+
exports.NonFilesystemReferenceTypeFromJSONTyped = NonFilesystemReferenceTypeFromJSONTyped;
|
|
20
|
+
exports.NonFilesystemReferenceTypeToJSON = NonFilesystemReferenceTypeToJSON;
|
|
21
|
+
exports.NonFilesystemReferenceTypeToJSONTyped = NonFilesystemReferenceTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Supported reference types that do not map to filesystem PartType.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NonFilesystemReferenceType = {
|
|
27
|
+
Image: 'image',
|
|
28
|
+
Memory: 'memory',
|
|
29
|
+
Tag: 'tag',
|
|
30
|
+
User: 'user'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfNonFilesystemReferenceType(value) {
|
|
33
|
+
for (const key in exports.NonFilesystemReferenceType) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.NonFilesystemReferenceType, key)) {
|
|
35
|
+
if (exports.NonFilesystemReferenceType[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function NonFilesystemReferenceTypeFromJSON(json) {
|
|
43
|
+
return NonFilesystemReferenceTypeFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function NonFilesystemReferenceTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function NonFilesystemReferenceTypeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function NonFilesystemReferenceTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|