@knowledge-stack/ksapi 1.62.2 → 1.64.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 +48 -0
- package/README.md +36 -2
- package/dist/apis/FeedbackApi.d.ts +170 -0
- package/dist/apis/FeedbackApi.js +176 -0
- package/dist/apis/WorkflowDefinitionsApi.d.ts +328 -0
- package/dist/apis/WorkflowDefinitionsApi.js +345 -0
- package/dist/apis/WorkflowRunsApi.d.ts +146 -0
- package/dist/apis/WorkflowRunsApi.js +160 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/FeedbackApi.d.ts +170 -0
- package/dist/esm/apis/FeedbackApi.js +172 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +328 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.js +341 -0
- package/dist/esm/apis/WorkflowRunsApi.d.ts +146 -0
- package/dist/esm/apis/WorkflowRunsApi.js +156 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/ABCDPathSnapshot.d.ts +60 -0
- package/dist/esm/models/ABCDPathSnapshot.js +53 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +95 -0
- package/dist/esm/models/FeedbackEventResponse.d.ts +106 -0
- package/dist/esm/models/FeedbackEventResponse.js +83 -0
- package/dist/esm/models/FeedbackRating.d.ts +25 -0
- package/dist/esm/models/FeedbackRating.js +43 -0
- package/dist/esm/models/FeedbackReason.d.ts +34 -0
- package/dist/esm/models/FeedbackReason.js +52 -0
- package/dist/esm/models/FeedbackTargetType.d.ts +28 -0
- package/dist/esm/models/FeedbackTargetType.js +46 -0
- package/dist/esm/models/InvokeWorkflowRequest.d.ts +47 -0
- package/dist/esm/models/InvokeWorkflowRequest.js +46 -0
- package/dist/esm/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseFeedbackEventResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseWorkflowRunResponse.js +70 -0
- package/dist/esm/models/PartType.d.ts +2 -0
- package/dist/esm/models/PartType.js +3 -1
- package/dist/esm/models/ReferenceType.d.ts +2 -0
- package/dist/esm/models/ReferenceType.js +2 -0
- package/dist/esm/models/SelfHostedRunnerConfig.d.ts +53 -0
- package/dist/esm/models/SelfHostedRunnerConfig.js +53 -0
- package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
- package/dist/esm/models/SelfHostedRunnerConfigResponse.js +49 -0
- package/dist/esm/models/SubmitFeedbackRequest.d.ts +82 -0
- package/dist/esm/models/SubmitFeedbackRequest.js +65 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +97 -0
- package/dist/esm/models/WorkflowCallbackResponse.d.ts +47 -0
- package/dist/esm/models/WorkflowCallbackResponse.js +44 -0
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +121 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +94 -0
- package/dist/esm/models/WorkflowRunCallbackRequest.d.ts +61 -0
- package/dist/esm/models/WorkflowRunCallbackRequest.js +57 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +110 -0
- package/dist/esm/models/WorkflowRunResponse.js +87 -0
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +97 -0
- package/dist/esm/models/WorkflowRunSnapshot.js +78 -0
- package/dist/esm/models/WorkflowRunStatus.d.ts +27 -0
- package/dist/esm/models/WorkflowRunStatus.js +45 -0
- package/dist/esm/models/WorkflowRunnerType.d.ts +24 -0
- package/dist/esm/models/WorkflowRunnerType.js +42 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/models/ABCDPathSnapshot.d.ts +60 -0
- package/dist/models/ABCDPathSnapshot.js +61 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
- package/dist/models/CreateWorkflowDefinitionRequest.js +103 -0
- package/dist/models/FeedbackEventResponse.d.ts +106 -0
- package/dist/models/FeedbackEventResponse.js +91 -0
- package/dist/models/FeedbackRating.d.ts +25 -0
- package/dist/models/FeedbackRating.js +51 -0
- package/dist/models/FeedbackReason.d.ts +34 -0
- package/dist/models/FeedbackReason.js +60 -0
- package/dist/models/FeedbackTargetType.d.ts +28 -0
- package/dist/models/FeedbackTargetType.js +54 -0
- package/dist/models/InvokeWorkflowRequest.d.ts +47 -0
- package/dist/models/InvokeWorkflowRequest.js +54 -0
- package/dist/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseFeedbackEventResponse.js +78 -0
- package/dist/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseWorkflowDefinitionResponse.js +78 -0
- package/dist/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseWorkflowRunResponse.js +78 -0
- package/dist/models/PartType.d.ts +2 -0
- package/dist/models/PartType.js +3 -1
- package/dist/models/ReferenceType.d.ts +2 -0
- package/dist/models/ReferenceType.js +2 -0
- package/dist/models/SelfHostedRunnerConfig.d.ts +53 -0
- package/dist/models/SelfHostedRunnerConfig.js +61 -0
- package/dist/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
- package/dist/models/SelfHostedRunnerConfigResponse.js +57 -0
- package/dist/models/SubmitFeedbackRequest.d.ts +82 -0
- package/dist/models/SubmitFeedbackRequest.js +73 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.js +105 -0
- package/dist/models/WorkflowCallbackResponse.d.ts +47 -0
- package/dist/models/WorkflowCallbackResponse.js +52 -0
- package/dist/models/WorkflowDefinitionResponse.d.ts +121 -0
- package/dist/models/WorkflowDefinitionResponse.js +102 -0
- package/dist/models/WorkflowRunCallbackRequest.d.ts +61 -0
- package/dist/models/WorkflowRunCallbackRequest.js +65 -0
- package/dist/models/WorkflowRunResponse.d.ts +110 -0
- package/dist/models/WorkflowRunResponse.js +95 -0
- package/dist/models/WorkflowRunSnapshot.d.ts +97 -0
- package/dist/models/WorkflowRunSnapshot.js +86 -0
- package/dist/models/WorkflowRunStatus.d.ts +27 -0
- package/dist/models/WorkflowRunStatus.js +53 -0
- package/dist/models/WorkflowRunnerType.d.ts +24 -0
- package/dist/models/WorkflowRunnerType.js +50 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/docs/ABCDPathSnapshot.md +39 -0
- package/docs/CreateWorkflowDefinitionRequest.md +51 -0
- package/docs/FeedbackApi.md +245 -0
- package/docs/FeedbackEventResponse.md +53 -0
- package/docs/FeedbackRating.md +32 -0
- package/docs/FeedbackReason.md +32 -0
- package/docs/FeedbackTargetType.md +32 -0
- package/docs/InvokeWorkflowRequest.md +35 -0
- package/docs/PaginatedResponseFeedbackEventResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowDefinitionResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowRunResponse.md +40 -0
- package/docs/SelfHostedRunnerConfig.md +37 -0
- package/docs/SelfHostedRunnerConfigResponse.md +35 -0
- package/docs/SubmitFeedbackRequest.md +45 -0
- package/docs/UpdateWorkflowDefinitionRequest.md +53 -0
- package/docs/WorkflowCallbackResponse.md +35 -0
- package/docs/WorkflowDefinitionResponse.md +59 -0
- package/docs/WorkflowDefinitionsApi.md +534 -0
- package/docs/WorkflowRunCallbackRequest.md +37 -0
- package/docs/WorkflowRunResponse.md +55 -0
- package/docs/WorkflowRunSnapshot.md +51 -0
- package/docs/WorkflowRunStatus.md +33 -0
- package/docs/WorkflowRunnerType.md +33 -0
- package/docs/WorkflowRunsApi.md +224 -0
- package/package.json +1 -1
- package/src/apis/FeedbackApi.ts +334 -0
- package/src/apis/WorkflowDefinitionsApi.ts +678 -0
- package/src/apis/WorkflowRunsApi.ts +296 -0
- package/src/apis/index.ts +3 -0
- package/src/models/ABCDPathSnapshot.ts +111 -0
- package/src/models/CreateWorkflowDefinitionRequest.ts +192 -0
- package/src/models/FeedbackEventResponse.ts +188 -0
- package/src/models/FeedbackRating.ts +53 -0
- package/src/models/FeedbackReason.ts +62 -0
- package/src/models/FeedbackTargetType.ts +56 -0
- package/src/models/InvokeWorkflowRequest.ts +85 -0
- package/src/models/PaginatedResponseFeedbackEventResponse.ts +130 -0
- package/src/models/PaginatedResponseWorkflowDefinitionResponse.ts +130 -0
- package/src/models/PaginatedResponseWorkflowRunResponse.ts +130 -0
- package/src/models/PartType.ts +3 -1
- package/src/models/ReferenceType.ts +2 -0
- package/src/models/SelfHostedRunnerConfig.ts +96 -0
- package/src/models/SelfHostedRunnerConfigResponse.ts +87 -0
- package/src/models/SubmitFeedbackRequest.ts +152 -0
- package/src/models/UpdateWorkflowDefinitionRequest.ts +200 -0
- package/src/models/WorkflowCallbackResponse.ts +83 -0
- package/src/models/WorkflowDefinitionResponse.ts +208 -0
- package/src/models/WorkflowRunCallbackRequest.ts +105 -0
- package/src/models/WorkflowRunResponse.ts +197 -0
- package/src/models/WorkflowRunSnapshot.ts +172 -0
- package/src/models/WorkflowRunStatus.ts +55 -0
- package/src/models/WorkflowRunnerType.ts +52 -0
- package/src/models/index.ts +21 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PartType } from './PartType';
|
|
13
|
+
/**
|
|
14
|
+
* Snapshot of a single ABCD path reference at trigger time.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ABCDPathSnapshot
|
|
17
|
+
*/
|
|
18
|
+
export interface ABCDPathSnapshot {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ABCDPathSnapshot
|
|
23
|
+
*/
|
|
24
|
+
pathPartId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ABCDPathSnapshot
|
|
29
|
+
*/
|
|
30
|
+
materializedPath: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PartType}
|
|
34
|
+
* @memberof ABCDPathSnapshot
|
|
35
|
+
*/
|
|
36
|
+
partType: PartType;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ABCDPathSnapshot interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfABCDPathSnapshot(value: object): value is ABCDPathSnapshot;
|
|
42
|
+
export declare function ABCDPathSnapshotFromJSON(json: any): ABCDPathSnapshot;
|
|
43
|
+
export declare function ABCDPathSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): ABCDPathSnapshot;
|
|
44
|
+
export declare function ABCDPathSnapshotToJSON(json: any): ABCDPathSnapshot;
|
|
45
|
+
export declare function ABCDPathSnapshotToJSONTyped(value?: ABCDPathSnapshot | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
export declare const ABCDPathSnapshotPropertyValidationAttributesMap: {
|
|
47
|
+
[property: string]: {
|
|
48
|
+
maxLength?: number;
|
|
49
|
+
minLength?: number;
|
|
50
|
+
pattern?: string;
|
|
51
|
+
maximum?: number;
|
|
52
|
+
exclusiveMaximum?: boolean;
|
|
53
|
+
minimum?: number;
|
|
54
|
+
exclusiveMinimum?: boolean;
|
|
55
|
+
multipleOf?: number;
|
|
56
|
+
maxItems?: number;
|
|
57
|
+
minItems?: number;
|
|
58
|
+
uniqueItems?: boolean;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
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.ABCDPathSnapshotPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfABCDPathSnapshot = instanceOfABCDPathSnapshot;
|
|
18
|
+
exports.ABCDPathSnapshotFromJSON = ABCDPathSnapshotFromJSON;
|
|
19
|
+
exports.ABCDPathSnapshotFromJSONTyped = ABCDPathSnapshotFromJSONTyped;
|
|
20
|
+
exports.ABCDPathSnapshotToJSON = ABCDPathSnapshotToJSON;
|
|
21
|
+
exports.ABCDPathSnapshotToJSONTyped = ABCDPathSnapshotToJSONTyped;
|
|
22
|
+
const PartType_1 = require("./PartType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ABCDPathSnapshot interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfABCDPathSnapshot(value) {
|
|
27
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('partType' in value) || value['partType'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ABCDPathSnapshotFromJSON(json) {
|
|
36
|
+
return ABCDPathSnapshotFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ABCDPathSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'pathPartId': json['path_part_id'],
|
|
44
|
+
'materializedPath': json['materialized_path'],
|
|
45
|
+
'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ABCDPathSnapshotToJSON(json) {
|
|
49
|
+
return ABCDPathSnapshotToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ABCDPathSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'path_part_id': value['pathPartId'],
|
|
57
|
+
'materialized_path': value['materializedPath'],
|
|
58
|
+
'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.ABCDPathSnapshotPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
|
|
13
|
+
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
14
|
+
/**
|
|
15
|
+
* Create a new workflow definition.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreateWorkflowDefinitionRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateWorkflowDefinitionRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
30
|
+
*/
|
|
31
|
+
description?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {WorkflowRunnerType}
|
|
35
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
36
|
+
*/
|
|
37
|
+
runnerType: WorkflowRunnerType;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {SelfHostedRunnerConfig}
|
|
41
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
42
|
+
*/
|
|
43
|
+
runnerConfig?: SelfHostedRunnerConfig;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
48
|
+
*/
|
|
49
|
+
maxRunDurationSeconds?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
54
|
+
*/
|
|
55
|
+
sourcePathPartIds: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
60
|
+
*/
|
|
61
|
+
instructionPathPartIds: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
66
|
+
*/
|
|
67
|
+
outputPathPartIds: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
72
|
+
*/
|
|
73
|
+
templatePathPartId?: string | null;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the CreateWorkflowDefinitionRequest interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfCreateWorkflowDefinitionRequest(value: object): value is CreateWorkflowDefinitionRequest;
|
|
79
|
+
export declare function CreateWorkflowDefinitionRequestFromJSON(json: any): CreateWorkflowDefinitionRequest;
|
|
80
|
+
export declare function CreateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWorkflowDefinitionRequest;
|
|
81
|
+
export declare function CreateWorkflowDefinitionRequestToJSON(json: any): CreateWorkflowDefinitionRequest;
|
|
82
|
+
export declare function CreateWorkflowDefinitionRequestToJSONTyped(value?: CreateWorkflowDefinitionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
83
|
+
export declare const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
84
|
+
[property: string]: {
|
|
85
|
+
maxLength?: number;
|
|
86
|
+
minLength?: number;
|
|
87
|
+
pattern?: string;
|
|
88
|
+
maximum?: number;
|
|
89
|
+
exclusiveMaximum?: boolean;
|
|
90
|
+
minimum?: number;
|
|
91
|
+
exclusiveMinimum?: boolean;
|
|
92
|
+
multipleOf?: number;
|
|
93
|
+
maxItems?: number;
|
|
94
|
+
minItems?: number;
|
|
95
|
+
uniqueItems?: boolean;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
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.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfCreateWorkflowDefinitionRequest = instanceOfCreateWorkflowDefinitionRequest;
|
|
18
|
+
exports.CreateWorkflowDefinitionRequestFromJSON = CreateWorkflowDefinitionRequestFromJSON;
|
|
19
|
+
exports.CreateWorkflowDefinitionRequestFromJSONTyped = CreateWorkflowDefinitionRequestFromJSONTyped;
|
|
20
|
+
exports.CreateWorkflowDefinitionRequestToJSON = CreateWorkflowDefinitionRequestToJSON;
|
|
21
|
+
exports.CreateWorkflowDefinitionRequestToJSONTyped = CreateWorkflowDefinitionRequestToJSONTyped;
|
|
22
|
+
const SelfHostedRunnerConfig_1 = require("./SelfHostedRunnerConfig");
|
|
23
|
+
const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the CreateWorkflowDefinitionRequest interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfCreateWorkflowDefinitionRequest(value) {
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function CreateWorkflowDefinitionRequestFromJSON(json) {
|
|
41
|
+
return CreateWorkflowDefinitionRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CreateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
50
|
+
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
51
|
+
'runnerConfig': json['runner_config'] == null ? undefined : (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigFromJSON)(json['runner_config']),
|
|
52
|
+
'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
|
|
53
|
+
'sourcePathPartIds': json['source_path_part_ids'],
|
|
54
|
+
'instructionPathPartIds': json['instruction_path_part_ids'],
|
|
55
|
+
'outputPathPartIds': json['output_path_part_ids'],
|
|
56
|
+
'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function CreateWorkflowDefinitionRequestToJSON(json) {
|
|
60
|
+
return CreateWorkflowDefinitionRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function CreateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'description': value['description'],
|
|
69
|
+
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
70
|
+
'runner_config': (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigToJSON)(value['runnerConfig']),
|
|
71
|
+
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
72
|
+
'source_path_part_ids': value['sourcePathPartIds'],
|
|
73
|
+
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
74
|
+
'output_path_part_ids': value['outputPathPartIds'],
|
|
75
|
+
'template_path_part_id': value['templatePathPartId'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
exports.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
|
|
79
|
+
name: {
|
|
80
|
+
maxLength: 255,
|
|
81
|
+
},
|
|
82
|
+
maxRunDurationSeconds: {
|
|
83
|
+
maximum: 86400,
|
|
84
|
+
exclusiveMaximum: false,
|
|
85
|
+
minimum: 60,
|
|
86
|
+
exclusiveMinimum: false,
|
|
87
|
+
},
|
|
88
|
+
sourcePathPartIds: {
|
|
89
|
+
maxItems: 20,
|
|
90
|
+
minItems: 1,
|
|
91
|
+
uniqueItems: false,
|
|
92
|
+
},
|
|
93
|
+
instructionPathPartIds: {
|
|
94
|
+
maxItems: 20,
|
|
95
|
+
minItems: 1,
|
|
96
|
+
uniqueItems: false,
|
|
97
|
+
},
|
|
98
|
+
outputPathPartIds: {
|
|
99
|
+
maxItems: 20,
|
|
100
|
+
minItems: 1,
|
|
101
|
+
uniqueItems: false,
|
|
102
|
+
},
|
|
103
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { FeedbackTargetType } from './FeedbackTargetType';
|
|
13
|
+
import type { FeedbackRating } from './FeedbackRating';
|
|
14
|
+
import type { FeedbackReason } from './FeedbackReason';
|
|
15
|
+
/**
|
|
16
|
+
* Response schema for a single FeedbackEvent.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface FeedbackEventResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface FeedbackEventResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof FeedbackEventResponse
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {FeedbackTargetType}
|
|
30
|
+
* @memberof FeedbackEventResponse
|
|
31
|
+
*/
|
|
32
|
+
targetType: FeedbackTargetType;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof FeedbackEventResponse
|
|
37
|
+
*/
|
|
38
|
+
targetId: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof FeedbackEventResponse
|
|
43
|
+
*/
|
|
44
|
+
userId: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {FeedbackRating}
|
|
48
|
+
* @memberof FeedbackEventResponse
|
|
49
|
+
*/
|
|
50
|
+
rating: FeedbackRating;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {FeedbackReason}
|
|
54
|
+
* @memberof FeedbackEventResponse
|
|
55
|
+
*/
|
|
56
|
+
reason: FeedbackReason;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof FeedbackEventResponse
|
|
61
|
+
*/
|
|
62
|
+
comment: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {{ [key: string]: any; }}
|
|
66
|
+
* @memberof FeedbackEventResponse
|
|
67
|
+
*/
|
|
68
|
+
extraMetadata: {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Date}
|
|
74
|
+
* @memberof FeedbackEventResponse
|
|
75
|
+
*/
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @memberof FeedbackEventResponse
|
|
81
|
+
*/
|
|
82
|
+
updatedAt: Date;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the FeedbackEventResponse interface.
|
|
86
|
+
*/
|
|
87
|
+
export declare function instanceOfFeedbackEventResponse(value: object): value is FeedbackEventResponse;
|
|
88
|
+
export declare function FeedbackEventResponseFromJSON(json: any): FeedbackEventResponse;
|
|
89
|
+
export declare function FeedbackEventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedbackEventResponse;
|
|
90
|
+
export declare function FeedbackEventResponseToJSON(json: any): FeedbackEventResponse;
|
|
91
|
+
export declare function FeedbackEventResponseToJSONTyped(value?: FeedbackEventResponse | null, ignoreDiscriminator?: boolean): any;
|
|
92
|
+
export declare const FeedbackEventResponsePropertyValidationAttributesMap: {
|
|
93
|
+
[property: string]: {
|
|
94
|
+
maxLength?: number;
|
|
95
|
+
minLength?: number;
|
|
96
|
+
pattern?: string;
|
|
97
|
+
maximum?: number;
|
|
98
|
+
exclusiveMaximum?: boolean;
|
|
99
|
+
minimum?: number;
|
|
100
|
+
exclusiveMinimum?: boolean;
|
|
101
|
+
multipleOf?: number;
|
|
102
|
+
maxItems?: number;
|
|
103
|
+
minItems?: number;
|
|
104
|
+
uniqueItems?: boolean;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
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.FeedbackEventResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfFeedbackEventResponse = instanceOfFeedbackEventResponse;
|
|
18
|
+
exports.FeedbackEventResponseFromJSON = FeedbackEventResponseFromJSON;
|
|
19
|
+
exports.FeedbackEventResponseFromJSONTyped = FeedbackEventResponseFromJSONTyped;
|
|
20
|
+
exports.FeedbackEventResponseToJSON = FeedbackEventResponseToJSON;
|
|
21
|
+
exports.FeedbackEventResponseToJSONTyped = FeedbackEventResponseToJSONTyped;
|
|
22
|
+
const FeedbackTargetType_1 = require("./FeedbackTargetType");
|
|
23
|
+
const FeedbackRating_1 = require("./FeedbackRating");
|
|
24
|
+
const FeedbackReason_1 = require("./FeedbackReason");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the FeedbackEventResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfFeedbackEventResponse(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('targetType' in value) || value['targetType'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('targetId' in value) || value['targetId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('rating' in value) || value['rating'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('comment' in value) || value['comment'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('extraMetadata' in value) || value['extraMetadata'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function FeedbackEventResponseFromJSON(json) {
|
|
52
|
+
return FeedbackEventResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function FeedbackEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'targetType': (0, FeedbackTargetType_1.FeedbackTargetTypeFromJSON)(json['target_type']),
|
|
61
|
+
'targetId': json['target_id'],
|
|
62
|
+
'userId': json['user_id'],
|
|
63
|
+
'rating': (0, FeedbackRating_1.FeedbackRatingFromJSON)(json['rating']),
|
|
64
|
+
'reason': (0, FeedbackReason_1.FeedbackReasonFromJSON)(json['reason']),
|
|
65
|
+
'comment': json['comment'],
|
|
66
|
+
'extraMetadata': json['extra_metadata'],
|
|
67
|
+
'createdAt': (new Date(json['created_at'])),
|
|
68
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function FeedbackEventResponseToJSON(json) {
|
|
72
|
+
return FeedbackEventResponseToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function FeedbackEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'target_type': (0, FeedbackTargetType_1.FeedbackTargetTypeToJSON)(value['targetType']),
|
|
81
|
+
'target_id': value['targetId'],
|
|
82
|
+
'user_id': value['userId'],
|
|
83
|
+
'rating': (0, FeedbackRating_1.FeedbackRatingToJSON)(value['rating']),
|
|
84
|
+
'reason': (0, FeedbackReason_1.FeedbackReasonToJSON)(value['reason']),
|
|
85
|
+
'comment': value['comment'],
|
|
86
|
+
'extra_metadata': value['extraMetadata'],
|
|
87
|
+
'created_at': value['createdAt'].toISOString(),
|
|
88
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
exports.FeedbackEventResponsePropertyValidationAttributesMap = {};
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const FeedbackRating: {
|
|
17
|
+
readonly Up: "UP";
|
|
18
|
+
readonly Down: "DOWN";
|
|
19
|
+
};
|
|
20
|
+
export type FeedbackRating = typeof FeedbackRating[keyof typeof FeedbackRating];
|
|
21
|
+
export declare function instanceOfFeedbackRating(value: any): boolean;
|
|
22
|
+
export declare function FeedbackRatingFromJSON(json: any): FeedbackRating;
|
|
23
|
+
export declare function FeedbackRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedbackRating;
|
|
24
|
+
export declare function FeedbackRatingToJSON(value?: FeedbackRating | null): any;
|
|
25
|
+
export declare function FeedbackRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): FeedbackRating;
|
|
@@ -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.FeedbackRating = void 0;
|
|
17
|
+
exports.instanceOfFeedbackRating = instanceOfFeedbackRating;
|
|
18
|
+
exports.FeedbackRatingFromJSON = FeedbackRatingFromJSON;
|
|
19
|
+
exports.FeedbackRatingFromJSONTyped = FeedbackRatingFromJSONTyped;
|
|
20
|
+
exports.FeedbackRatingToJSON = FeedbackRatingToJSON;
|
|
21
|
+
exports.FeedbackRatingToJSONTyped = FeedbackRatingToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.FeedbackRating = {
|
|
27
|
+
Up: 'UP',
|
|
28
|
+
Down: 'DOWN'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfFeedbackRating(value) {
|
|
31
|
+
for (const key in exports.FeedbackRating) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.FeedbackRating, key)) {
|
|
33
|
+
if (exports.FeedbackRating[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function FeedbackRatingFromJSON(json) {
|
|
41
|
+
return FeedbackRatingFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function FeedbackRatingFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function FeedbackRatingToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function FeedbackRatingToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -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 FeedbackReason: {
|
|
17
|
+
readonly Incorrect: "INCORRECT";
|
|
18
|
+
readonly MissingInfo: "MISSING_INFO";
|
|
19
|
+
readonly NotRelevant: "NOT_RELEVANT";
|
|
20
|
+
readonly BadCitations: "BAD_CITATIONS";
|
|
21
|
+
readonly Hallucination: "HALLUCINATION";
|
|
22
|
+
readonly OcrError: "OCR_ERROR";
|
|
23
|
+
readonly ParsingError: "PARSING_ERROR";
|
|
24
|
+
readonly StructureIssue: "STRUCTURE_ISSUE";
|
|
25
|
+
readonly TableError: "TABLE_ERROR";
|
|
26
|
+
readonly Formatting: "FORMATTING";
|
|
27
|
+
readonly Other: "OTHER";
|
|
28
|
+
};
|
|
29
|
+
export type FeedbackReason = typeof FeedbackReason[keyof typeof FeedbackReason];
|
|
30
|
+
export declare function instanceOfFeedbackReason(value: any): boolean;
|
|
31
|
+
export declare function FeedbackReasonFromJSON(json: any): FeedbackReason;
|
|
32
|
+
export declare function FeedbackReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedbackReason;
|
|
33
|
+
export declare function FeedbackReasonToJSON(value?: FeedbackReason | null): any;
|
|
34
|
+
export declare function FeedbackReasonToJSONTyped(value: any, ignoreDiscriminator: boolean): FeedbackReason;
|
|
@@ -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.FeedbackReason = void 0;
|
|
17
|
+
exports.instanceOfFeedbackReason = instanceOfFeedbackReason;
|
|
18
|
+
exports.FeedbackReasonFromJSON = FeedbackReasonFromJSON;
|
|
19
|
+
exports.FeedbackReasonFromJSONTyped = FeedbackReasonFromJSONTyped;
|
|
20
|
+
exports.FeedbackReasonToJSON = FeedbackReasonToJSON;
|
|
21
|
+
exports.FeedbackReasonToJSONTyped = FeedbackReasonToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.FeedbackReason = {
|
|
27
|
+
Incorrect: 'INCORRECT',
|
|
28
|
+
MissingInfo: 'MISSING_INFO',
|
|
29
|
+
NotRelevant: 'NOT_RELEVANT',
|
|
30
|
+
BadCitations: 'BAD_CITATIONS',
|
|
31
|
+
Hallucination: 'HALLUCINATION',
|
|
32
|
+
OcrError: 'OCR_ERROR',
|
|
33
|
+
ParsingError: 'PARSING_ERROR',
|
|
34
|
+
StructureIssue: 'STRUCTURE_ISSUE',
|
|
35
|
+
TableError: 'TABLE_ERROR',
|
|
36
|
+
Formatting: 'FORMATTING',
|
|
37
|
+
Other: 'OTHER'
|
|
38
|
+
};
|
|
39
|
+
function instanceOfFeedbackReason(value) {
|
|
40
|
+
for (const key in exports.FeedbackReason) {
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(exports.FeedbackReason, key)) {
|
|
42
|
+
if (exports.FeedbackReason[key] === value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
function FeedbackReasonFromJSON(json) {
|
|
50
|
+
return FeedbackReasonFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function FeedbackReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
function FeedbackReasonToJSON(value) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
function FeedbackReasonToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|