@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,34 @@
|
|
|
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 ReferenceType: {
|
|
17
|
+
readonly Folder: "FOLDER";
|
|
18
|
+
readonly Document: "DOCUMENT";
|
|
19
|
+
readonly DocumentVersion: "DOCUMENT_VERSION";
|
|
20
|
+
readonly Section: "SECTION";
|
|
21
|
+
readonly Chunk: "CHUNK";
|
|
22
|
+
readonly Thread: "THREAD";
|
|
23
|
+
readonly ThreadMessage: "THREAD_MESSAGE";
|
|
24
|
+
readonly Image: "image";
|
|
25
|
+
readonly Memory: "memory";
|
|
26
|
+
readonly Tag: "tag";
|
|
27
|
+
readonly User: "user";
|
|
28
|
+
};
|
|
29
|
+
export type ReferenceType = typeof ReferenceType[keyof typeof ReferenceType];
|
|
30
|
+
export declare function instanceOfReferenceType(value: any): boolean;
|
|
31
|
+
export declare function ReferenceTypeFromJSON(json: any): ReferenceType;
|
|
32
|
+
export declare function ReferenceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferenceType;
|
|
33
|
+
export declare function ReferenceTypeToJSON(value?: ReferenceType | null): any;
|
|
34
|
+
export declare function ReferenceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ReferenceType;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.ReferenceType = void 0;
|
|
17
|
+
exports.instanceOfReferenceType = instanceOfReferenceType;
|
|
18
|
+
exports.ReferenceTypeFromJSON = ReferenceTypeFromJSON;
|
|
19
|
+
exports.ReferenceTypeFromJSONTyped = ReferenceTypeFromJSONTyped;
|
|
20
|
+
exports.ReferenceTypeToJSON = ReferenceTypeToJSON;
|
|
21
|
+
exports.ReferenceTypeToJSONTyped = ReferenceTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ReferenceType = {
|
|
27
|
+
Folder: 'FOLDER',
|
|
28
|
+
Document: 'DOCUMENT',
|
|
29
|
+
DocumentVersion: 'DOCUMENT_VERSION',
|
|
30
|
+
Section: 'SECTION',
|
|
31
|
+
Chunk: 'CHUNK',
|
|
32
|
+
Thread: 'THREAD',
|
|
33
|
+
ThreadMessage: 'THREAD_MESSAGE',
|
|
34
|
+
Image: 'image',
|
|
35
|
+
Memory: 'memory',
|
|
36
|
+
Tag: 'tag',
|
|
37
|
+
User: 'user'
|
|
38
|
+
};
|
|
39
|
+
function instanceOfReferenceType(value) {
|
|
40
|
+
for (const key in exports.ReferenceType) {
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(exports.ReferenceType, key)) {
|
|
42
|
+
if (exports.ReferenceType[key] === value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
function ReferenceTypeFromJSON(json) {
|
|
50
|
+
return ReferenceTypeFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ReferenceTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
function ReferenceTypeToJSON(value) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
function ReferenceTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { ReferenceType } from './ReferenceType';
|
|
13
|
+
/**
|
|
14
|
+
* A parsed reference enriched with display name and path from the database.
|
|
15
|
+
*
|
|
16
|
+
* Uses ``extra="ignore"`` (not ``"forbid"``) because SDK dicts may contain
|
|
17
|
+
* fields not yet modelled here. Adding ``"forbid"`` would cause runtime
|
|
18
|
+
* deserialization failures whenever the SDK adds a new field.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ResolvedReferenceInput
|
|
21
|
+
*/
|
|
22
|
+
export interface ResolvedReferenceInput {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {ReferenceType}
|
|
26
|
+
* @memberof ResolvedReferenceInput
|
|
27
|
+
*/
|
|
28
|
+
refType: ReferenceType;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ResolvedReferenceInput
|
|
33
|
+
*/
|
|
34
|
+
entityId: string;
|
|
35
|
+
/**
|
|
36
|
+
* Human-readable name for the entity
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ResolvedReferenceInput
|
|
39
|
+
*/
|
|
40
|
+
displayName: string;
|
|
41
|
+
/**
|
|
42
|
+
* Full materialized path (None for entities without path parts, e.g. tags, users)
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ResolvedReferenceInput
|
|
45
|
+
*/
|
|
46
|
+
materializedPath?: string | null;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ResolvedReferenceInput interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfResolvedReferenceInput(value: object): value is ResolvedReferenceInput;
|
|
52
|
+
export declare function ResolvedReferenceInputFromJSON(json: any): ResolvedReferenceInput;
|
|
53
|
+
export declare function ResolvedReferenceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvedReferenceInput;
|
|
54
|
+
export declare function ResolvedReferenceInputToJSON(json: any): ResolvedReferenceInput;
|
|
55
|
+
export declare function ResolvedReferenceInputToJSONTyped(value?: ResolvedReferenceInput | null, ignoreDiscriminator?: boolean): any;
|
|
56
|
+
export declare const ResolvedReferenceInputPropertyValidationAttributesMap: {
|
|
57
|
+
[property: string]: {
|
|
58
|
+
maxLength?: number;
|
|
59
|
+
minLength?: number;
|
|
60
|
+
pattern?: string;
|
|
61
|
+
maximum?: number;
|
|
62
|
+
exclusiveMaximum?: boolean;
|
|
63
|
+
minimum?: number;
|
|
64
|
+
exclusiveMinimum?: boolean;
|
|
65
|
+
multipleOf?: number;
|
|
66
|
+
maxItems?: number;
|
|
67
|
+
minItems?: number;
|
|
68
|
+
uniqueItems?: boolean;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
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.ResolvedReferenceInputPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfResolvedReferenceInput = instanceOfResolvedReferenceInput;
|
|
18
|
+
exports.ResolvedReferenceInputFromJSON = ResolvedReferenceInputFromJSON;
|
|
19
|
+
exports.ResolvedReferenceInputFromJSONTyped = ResolvedReferenceInputFromJSONTyped;
|
|
20
|
+
exports.ResolvedReferenceInputToJSON = ResolvedReferenceInputToJSON;
|
|
21
|
+
exports.ResolvedReferenceInputToJSONTyped = ResolvedReferenceInputToJSONTyped;
|
|
22
|
+
const ReferenceType_1 = require("./ReferenceType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ResolvedReferenceInput interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfResolvedReferenceInput(value) {
|
|
27
|
+
if (!('refType' in value) || value['refType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('entityId' in value) || value['entityId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ResolvedReferenceInputFromJSON(json) {
|
|
36
|
+
return ResolvedReferenceInputFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ResolvedReferenceInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'refType': (0, ReferenceType_1.ReferenceTypeFromJSON)(json['ref_type']),
|
|
44
|
+
'entityId': json['entity_id'],
|
|
45
|
+
'displayName': json['display_name'],
|
|
46
|
+
'materializedPath': json['materialized_path'] == null ? undefined : json['materialized_path'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ResolvedReferenceInputToJSON(json) {
|
|
50
|
+
return ResolvedReferenceInputToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ResolvedReferenceInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'ref_type': (0, ReferenceType_1.ReferenceTypeToJSON)(value['refType']),
|
|
58
|
+
'entity_id': value['entityId'],
|
|
59
|
+
'display_name': value['displayName'],
|
|
60
|
+
'materialized_path': value['materializedPath'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.ResolvedReferenceInputPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* A parsed reference enriched with display name and path from the database.
|
|
14
|
+
*
|
|
15
|
+
* Uses ``extra="ignore"`` (not ``"forbid"``) because SDK dicts may contain
|
|
16
|
+
* fields not yet modelled here. Adding ``"forbid"`` would cause runtime
|
|
17
|
+
* deserialization failures whenever the SDK adds a new field.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ResolvedReferenceOutput
|
|
20
|
+
*/
|
|
21
|
+
export interface ResolvedReferenceOutput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ResolvedReferenceOutput
|
|
26
|
+
*/
|
|
27
|
+
refType: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ResolvedReferenceOutput
|
|
32
|
+
*/
|
|
33
|
+
entityId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Human-readable name for the entity
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ResolvedReferenceOutput
|
|
38
|
+
*/
|
|
39
|
+
displayName: string;
|
|
40
|
+
/**
|
|
41
|
+
* Full materialized path (None for entities without path parts, e.g. tags, users)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ResolvedReferenceOutput
|
|
44
|
+
*/
|
|
45
|
+
materializedPath?: string | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ResolvedReferenceOutput interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfResolvedReferenceOutput(value: object): value is ResolvedReferenceOutput;
|
|
51
|
+
export declare function ResolvedReferenceOutputFromJSON(json: any): ResolvedReferenceOutput;
|
|
52
|
+
export declare function ResolvedReferenceOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvedReferenceOutput;
|
|
53
|
+
export declare function ResolvedReferenceOutputToJSON(json: any): ResolvedReferenceOutput;
|
|
54
|
+
export declare function ResolvedReferenceOutputToJSONTyped(value?: ResolvedReferenceOutput | null, ignoreDiscriminator?: boolean): any;
|
|
55
|
+
export declare const ResolvedReferenceOutputPropertyValidationAttributesMap: {
|
|
56
|
+
[property: string]: {
|
|
57
|
+
maxLength?: number;
|
|
58
|
+
minLength?: number;
|
|
59
|
+
pattern?: string;
|
|
60
|
+
maximum?: number;
|
|
61
|
+
exclusiveMaximum?: boolean;
|
|
62
|
+
minimum?: number;
|
|
63
|
+
exclusiveMinimum?: boolean;
|
|
64
|
+
multipleOf?: number;
|
|
65
|
+
maxItems?: number;
|
|
66
|
+
minItems?: number;
|
|
67
|
+
uniqueItems?: boolean;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ResolvedReferenceOutputPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfResolvedReferenceOutput = instanceOfResolvedReferenceOutput;
|
|
18
|
+
exports.ResolvedReferenceOutputFromJSON = ResolvedReferenceOutputFromJSON;
|
|
19
|
+
exports.ResolvedReferenceOutputFromJSONTyped = ResolvedReferenceOutputFromJSONTyped;
|
|
20
|
+
exports.ResolvedReferenceOutputToJSON = ResolvedReferenceOutputToJSON;
|
|
21
|
+
exports.ResolvedReferenceOutputToJSONTyped = ResolvedReferenceOutputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ResolvedReferenceOutput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfResolvedReferenceOutput(value) {
|
|
26
|
+
if (!('refType' in value) || value['refType'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('entityId' in value) || value['entityId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ResolvedReferenceOutputFromJSON(json) {
|
|
35
|
+
return ResolvedReferenceOutputFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ResolvedReferenceOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'refType': json['ref_type'],
|
|
43
|
+
'entityId': json['entity_id'],
|
|
44
|
+
'displayName': json['display_name'],
|
|
45
|
+
'materializedPath': json['materialized_path'] == null ? undefined : json['materialized_path'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ResolvedReferenceOutputToJSON(json) {
|
|
49
|
+
return ResolvedReferenceOutputToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ResolvedReferenceOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'ref_type': value['refType'],
|
|
57
|
+
'entity_id': value['entityId'],
|
|
58
|
+
'display_name': value['displayName'],
|
|
59
|
+
'materialized_path': value['materializedPath'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.ResolvedReferenceOutputPropertyValidationAttributesMap = {};
|
|
@@ -17,6 +17,12 @@ import type { StepKind } from './StepKind';
|
|
|
17
17
|
* @interface StepInput
|
|
18
18
|
*/
|
|
19
19
|
export interface StepInput {
|
|
20
|
+
/**
|
|
21
|
+
* Stable step identifier within the message
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof StepInput
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
20
26
|
/**
|
|
21
27
|
* The name of the step
|
|
22
28
|
* @type {string}
|
package/dist/models/StepInput.js
CHANGED
|
@@ -25,6 +25,8 @@ const StepKind_1 = require("./StepKind");
|
|
|
25
25
|
* Check if a given object implements the StepInput interface.
|
|
26
26
|
*/
|
|
27
27
|
function instanceOfStepInput(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('kind' in value) || value['kind'] === undefined)
|
|
@@ -41,6 +43,7 @@ function StepInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
return json;
|
|
42
44
|
}
|
|
43
45
|
return {
|
|
46
|
+
'id': json['id'],
|
|
44
47
|
'name': json['name'],
|
|
45
48
|
'kind': (0, StepKind_1.StepKindFromJSON)(json['kind']),
|
|
46
49
|
'args': json['args'] == null ? undefined : (0, Args_1.ArgsFromJSON)(json['args']),
|
|
@@ -58,6 +61,7 @@ function StepInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
61
|
return value;
|
|
59
62
|
}
|
|
60
63
|
return {
|
|
64
|
+
'id': value['id'],
|
|
61
65
|
'name': value['name'],
|
|
62
66
|
'kind': (0, StepKind_1.StepKindToJSON)(value['kind']),
|
|
63
67
|
'args': (0, Args_1.ArgsToJSON)(value['args']),
|
package/dist/models/StepKind.js
CHANGED
|
@@ -17,6 +17,12 @@ import type { StepKind } from './StepKind';
|
|
|
17
17
|
* @interface StepOutput
|
|
18
18
|
*/
|
|
19
19
|
export interface StepOutput {
|
|
20
|
+
/**
|
|
21
|
+
* Stable step identifier within the message
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof StepOutput
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
20
26
|
/**
|
|
21
27
|
* The name of the step
|
|
22
28
|
* @type {string}
|
|
@@ -25,6 +25,8 @@ const StepKind_1 = require("./StepKind");
|
|
|
25
25
|
* Check if a given object implements the StepOutput interface.
|
|
26
26
|
*/
|
|
27
27
|
function instanceOfStepOutput(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('kind' in value) || value['kind'] === undefined)
|
|
@@ -41,6 +43,7 @@ function StepOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
return json;
|
|
42
44
|
}
|
|
43
45
|
return {
|
|
46
|
+
'id': json['id'],
|
|
44
47
|
'name': json['name'],
|
|
45
48
|
'kind': (0, StepKind_1.StepKindFromJSON)(json['kind']),
|
|
46
49
|
'args': json['args'] == null ? undefined : (0, Args_1.ArgsFromJSON)(json['args']),
|
|
@@ -58,6 +61,7 @@ function StepOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
61
|
return value;
|
|
59
62
|
}
|
|
60
63
|
return {
|
|
64
|
+
'id': value['id'],
|
|
61
65
|
'name': value['name'],
|
|
62
66
|
'kind': (0, StepKind_1.StepKindToJSON)(value['kind']),
|
|
63
67
|
'args': (0, Args_1.ArgsToJSON)(value['args']),
|
|
@@ -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,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.TemporalWorkflowStatusResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfTemporalWorkflowStatusResponse = instanceOfTemporalWorkflowStatusResponse;
|
|
18
|
+
exports.TemporalWorkflowStatusResponseFromJSON = TemporalWorkflowStatusResponseFromJSON;
|
|
19
|
+
exports.TemporalWorkflowStatusResponseFromJSONTyped = TemporalWorkflowStatusResponseFromJSONTyped;
|
|
20
|
+
exports.TemporalWorkflowStatusResponseToJSON = TemporalWorkflowStatusResponseToJSON;
|
|
21
|
+
exports.TemporalWorkflowStatusResponseToJSONTyped = TemporalWorkflowStatusResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TemporalWorkflowStatusResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTemporalWorkflowStatusResponse(value) {
|
|
26
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('temporalStatus' in value) || value['temporalStatus'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('workflowType' in value) || value['workflowType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('taskQueue' in value) || value['taskQueue'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function TemporalWorkflowStatusResponseFromJSON(json) {
|
|
41
|
+
return TemporalWorkflowStatusResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TemporalWorkflowStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'workflowId': json['workflow_id'],
|
|
49
|
+
'temporalStatus': json['temporal_status'],
|
|
50
|
+
'workflowType': json['workflow_type'],
|
|
51
|
+
'taskQueue': json['task_queue'],
|
|
52
|
+
'startTime': (new Date(json['start_time'])),
|
|
53
|
+
'closeTime': json['close_time'] == null ? undefined : (new Date(json['close_time'])),
|
|
54
|
+
'runId': json['run_id'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function TemporalWorkflowStatusResponseToJSON(json) {
|
|
58
|
+
return TemporalWorkflowStatusResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function TemporalWorkflowStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'workflow_id': value['workflowId'],
|
|
66
|
+
'temporal_status': value['temporalStatus'],
|
|
67
|
+
'workflow_type': value['workflowType'],
|
|
68
|
+
'task_queue': value['taskQueue'],
|
|
69
|
+
'start_time': value['startTime'].toISOString(),
|
|
70
|
+
'close_time': value['closeTime'] == null ? value['closeTime'] : value['closeTime'].toISOString(),
|
|
71
|
+
'run_id': value['runId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
exports.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.
|
|
@@ -20,6 +20,7 @@ exports.ThreadMessageContentFromJSONTyped = ThreadMessageContentFromJSONTyped;
|
|
|
20
20
|
exports.ThreadMessageContentToJSON = ThreadMessageContentToJSON;
|
|
21
21
|
exports.ThreadMessageContentToJSONTyped = ThreadMessageContentToJSONTyped;
|
|
22
22
|
const Citation_1 = require("./Citation");
|
|
23
|
+
const ResolvedReferenceInput_1 = require("./ResolvedReferenceInput");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ThreadMessageContent interface.
|
|
25
26
|
*/
|
|
@@ -37,7 +38,9 @@ function ThreadMessageContentFromJSONTyped(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(Citation_1.CitationFromJSON)),
|
|
43
|
+
'references': json['references'] == null ? undefined : (json['references'].map(ResolvedReferenceInput_1.ResolvedReferenceInputFromJSON)),
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function ThreadMessageContentToJSON(json) {
|
|
@@ -49,7 +52,9 @@ function ThreadMessageContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
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(Citation_1.CitationToJSON)),
|
|
57
|
+
'references': value['references'] == null ? undefined : (value['references'].map(ResolvedReferenceInput_1.ResolvedReferenceInputToJSON)),
|
|
53
58
|
};
|
|
54
59
|
}
|
|
55
60
|
exports.ThreadMessageContentPropertyValidationAttributesMap = {};
|