@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,172 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ABCDPathSnapshot } from './ABCDPathSnapshot';
|
|
17
|
+
import {
|
|
18
|
+
ABCDPathSnapshotFromJSON,
|
|
19
|
+
ABCDPathSnapshotFromJSONTyped,
|
|
20
|
+
ABCDPathSnapshotToJSON,
|
|
21
|
+
ABCDPathSnapshotToJSONTyped,
|
|
22
|
+
} from './ABCDPathSnapshot';
|
|
23
|
+
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
24
|
+
import {
|
|
25
|
+
WorkflowRunnerTypeFromJSON,
|
|
26
|
+
WorkflowRunnerTypeFromJSONTyped,
|
|
27
|
+
WorkflowRunnerTypeToJSON,
|
|
28
|
+
WorkflowRunnerTypeToJSONTyped,
|
|
29
|
+
} from './WorkflowRunnerType';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Frozen ABCD configuration captured at workflow trigger time.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface WorkflowRunSnapshot
|
|
35
|
+
*/
|
|
36
|
+
export interface WorkflowRunSnapshot {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WorkflowRunSnapshot
|
|
41
|
+
*/
|
|
42
|
+
workflowDefinitionId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof WorkflowRunSnapshot
|
|
47
|
+
*/
|
|
48
|
+
workflowName: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {WorkflowRunnerType}
|
|
52
|
+
* @memberof WorkflowRunSnapshot
|
|
53
|
+
*/
|
|
54
|
+
runnerType: WorkflowRunnerType;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof WorkflowRunSnapshot
|
|
59
|
+
*/
|
|
60
|
+
userId: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof WorkflowRunSnapshot
|
|
65
|
+
*/
|
|
66
|
+
maxRunDurationSeconds: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<ABCDPathSnapshot>}
|
|
70
|
+
* @memberof WorkflowRunSnapshot
|
|
71
|
+
*/
|
|
72
|
+
sources: Array<ABCDPathSnapshot>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<ABCDPathSnapshot>}
|
|
76
|
+
* @memberof WorkflowRunSnapshot
|
|
77
|
+
*/
|
|
78
|
+
instructions: Array<ABCDPathSnapshot>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<ABCDPathSnapshot>}
|
|
82
|
+
* @memberof WorkflowRunSnapshot
|
|
83
|
+
*/
|
|
84
|
+
outputs: Array<ABCDPathSnapshot>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {ABCDPathSnapshot}
|
|
88
|
+
* @memberof WorkflowRunSnapshot
|
|
89
|
+
*/
|
|
90
|
+
template: ABCDPathSnapshot;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the WorkflowRunSnapshot interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfWorkflowRunSnapshot(value: object): value is WorkflowRunSnapshot {
|
|
99
|
+
if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined) return false;
|
|
100
|
+
if (!('workflowName' in value) || value['workflowName'] === undefined) return false;
|
|
101
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined) return false;
|
|
102
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
103
|
+
if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined) return false;
|
|
104
|
+
if (!('sources' in value) || value['sources'] === undefined) return false;
|
|
105
|
+
if (!('instructions' in value) || value['instructions'] === undefined) return false;
|
|
106
|
+
if (!('outputs' in value) || value['outputs'] === undefined) return false;
|
|
107
|
+
if (!('template' in value) || value['template'] === undefined) return false;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function WorkflowRunSnapshotFromJSON(json: any): WorkflowRunSnapshot {
|
|
112
|
+
return WorkflowRunSnapshotFromJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function WorkflowRunSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunSnapshot {
|
|
116
|
+
if (json == null) {
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'workflowDefinitionId': json['workflow_definition_id'],
|
|
122
|
+
'workflowName': json['workflow_name'],
|
|
123
|
+
'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
|
|
124
|
+
'userId': json['user_id'],
|
|
125
|
+
'maxRunDurationSeconds': json['max_run_duration_seconds'],
|
|
126
|
+
'sources': ((json['sources'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
|
|
127
|
+
'instructions': ((json['instructions'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
|
|
128
|
+
'outputs': ((json['outputs'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
|
|
129
|
+
'template': ABCDPathSnapshotFromJSON(json['template']),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function WorkflowRunSnapshotToJSON(json: any): WorkflowRunSnapshot {
|
|
134
|
+
return WorkflowRunSnapshotToJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function WorkflowRunSnapshotToJSONTyped(value?: WorkflowRunSnapshot | null, ignoreDiscriminator: boolean = false): any {
|
|
138
|
+
if (value == null) {
|
|
139
|
+
return value;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'workflow_definition_id': value['workflowDefinitionId'],
|
|
145
|
+
'workflow_name': value['workflowName'],
|
|
146
|
+
'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
|
|
147
|
+
'user_id': value['userId'],
|
|
148
|
+
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
149
|
+
'sources': ((value['sources'] as Array<any>).map(ABCDPathSnapshotToJSON)),
|
|
150
|
+
'instructions': ((value['instructions'] as Array<any>).map(ABCDPathSnapshotToJSON)),
|
|
151
|
+
'outputs': ((value['outputs'] as Array<any>).map(ABCDPathSnapshotToJSON)),
|
|
152
|
+
'template': ABCDPathSnapshotToJSON(value['template']),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export const WorkflowRunSnapshotPropertyValidationAttributesMap: {
|
|
157
|
+
[property: string]: {
|
|
158
|
+
maxLength?: number,
|
|
159
|
+
minLength?: number,
|
|
160
|
+
pattern?: string,
|
|
161
|
+
maximum?: number,
|
|
162
|
+
exclusiveMaximum?: boolean,
|
|
163
|
+
minimum?: number,
|
|
164
|
+
exclusiveMinimum?: boolean,
|
|
165
|
+
multipleOf?: number,
|
|
166
|
+
maxItems?: number,
|
|
167
|
+
minItems?: number,
|
|
168
|
+
uniqueItems?: boolean
|
|
169
|
+
}
|
|
170
|
+
} = {
|
|
171
|
+
}
|
|
172
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Lifecycle status of a workflow run.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const WorkflowRunStatus = {
|
|
21
|
+
Pending: 'PENDING',
|
|
22
|
+
Running: 'RUNNING',
|
|
23
|
+
Completed: 'COMPLETED',
|
|
24
|
+
Failed: 'FAILED'
|
|
25
|
+
} as const;
|
|
26
|
+
export type WorkflowRunStatus = typeof WorkflowRunStatus[keyof typeof WorkflowRunStatus];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfWorkflowRunStatus(value: any): boolean {
|
|
30
|
+
for (const key in WorkflowRunStatus) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowRunStatus, key)) {
|
|
32
|
+
if (WorkflowRunStatus[key as keyof typeof WorkflowRunStatus] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function WorkflowRunStatusFromJSON(json: any): WorkflowRunStatus {
|
|
41
|
+
return WorkflowRunStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function WorkflowRunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunStatus {
|
|
45
|
+
return json as WorkflowRunStatus;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function WorkflowRunStatusToJSON(value?: WorkflowRunStatus | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function WorkflowRunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowRunStatus {
|
|
53
|
+
return value as WorkflowRunStatus;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Runner that executes the workflow.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const WorkflowRunnerType = {
|
|
21
|
+
SelfHosted: 'SELF_HOSTED'
|
|
22
|
+
} as const;
|
|
23
|
+
export type WorkflowRunnerType = typeof WorkflowRunnerType[keyof typeof WorkflowRunnerType];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function instanceOfWorkflowRunnerType(value: any): boolean {
|
|
27
|
+
for (const key in WorkflowRunnerType) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowRunnerType, key)) {
|
|
29
|
+
if (WorkflowRunnerType[key as keyof typeof WorkflowRunnerType] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function WorkflowRunnerTypeFromJSON(json: any): WorkflowRunnerType {
|
|
38
|
+
return WorkflowRunnerTypeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function WorkflowRunnerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunnerType {
|
|
42
|
+
return json as WorkflowRunnerType;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function WorkflowRunnerTypeToJSON(value?: WorkflowRunnerType | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function WorkflowRunnerTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowRunnerType {
|
|
50
|
+
return value as WorkflowRunnerType;
|
|
51
|
+
}
|
|
52
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ABCDPathSnapshot';
|
|
3
4
|
export * from './AcceptInviteResponse';
|
|
4
5
|
export * from './AddMemberRequest';
|
|
5
6
|
export * from './AncestryResponse';
|
|
@@ -35,6 +36,7 @@ export * from './CreateTagRequest';
|
|
|
35
36
|
export * from './CreateTenantRequest';
|
|
36
37
|
export * from './CreateThreadMessageRequest';
|
|
37
38
|
export * from './CreateThreadRequest';
|
|
39
|
+
export * from './CreateWorkflowDefinitionRequest';
|
|
38
40
|
export * from './DissolveSectionResponse';
|
|
39
41
|
export * from './DocumentOrigin';
|
|
40
42
|
export * from './DocumentResponse';
|
|
@@ -50,6 +52,10 @@ export * from './EmailVerificationRequest';
|
|
|
50
52
|
export * from './EnrichedCitation';
|
|
51
53
|
export * from './EnrichedThreadMessageContent';
|
|
52
54
|
export * from './FeaturesResponse';
|
|
55
|
+
export * from './FeedbackEventResponse';
|
|
56
|
+
export * from './FeedbackRating';
|
|
57
|
+
export * from './FeedbackReason';
|
|
58
|
+
export * from './FeedbackTargetType';
|
|
53
59
|
export * from './FolderAction';
|
|
54
60
|
export * from './FolderActionResponse';
|
|
55
61
|
export * from './FolderResponse';
|
|
@@ -66,6 +72,7 @@ export * from './IngestionMode';
|
|
|
66
72
|
export * from './InviteResponse';
|
|
67
73
|
export * from './InviteStatus';
|
|
68
74
|
export * from './InviteUserRequest';
|
|
75
|
+
export * from './InvokeWorkflowRequest';
|
|
69
76
|
export * from './LineageEdgeResponse';
|
|
70
77
|
export * from './LineageGraphResponse';
|
|
71
78
|
export * from './LineageNodeResponse';
|
|
@@ -78,6 +85,7 @@ export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDi
|
|
|
78
85
|
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
79
86
|
export * from './PaginatedResponseDocumentResponse';
|
|
80
87
|
export * from './PaginatedResponseDocumentVersionResponse';
|
|
88
|
+
export * from './PaginatedResponseFeedbackEventResponse';
|
|
81
89
|
export * from './PaginatedResponseFolderResponse';
|
|
82
90
|
export * from './PaginatedResponseGroupPermissionResponse';
|
|
83
91
|
export * from './PaginatedResponseGroupResponse';
|
|
@@ -90,6 +98,8 @@ export * from './PaginatedResponseTenantResponse';
|
|
|
90
98
|
export * from './PaginatedResponseTenantUserResponse';
|
|
91
99
|
export * from './PaginatedResponseThreadMessageResponse';
|
|
92
100
|
export * from './PaginatedResponseThreadResponse';
|
|
101
|
+
export * from './PaginatedResponseWorkflowDefinitionResponse';
|
|
102
|
+
export * from './PaginatedResponseWorkflowRunResponse';
|
|
93
103
|
export * from './PaginatedResponseWorkflowSummaryResponse';
|
|
94
104
|
export * from './PartType';
|
|
95
105
|
export * from './PasswordResetRequest';
|
|
@@ -117,10 +127,13 @@ export * from './SectionContentItem';
|
|
|
117
127
|
export * from './SectionContentItemOrChunkContentItem';
|
|
118
128
|
export * from './SectionResponse';
|
|
119
129
|
export * from './SectionSystemMetadata';
|
|
130
|
+
export * from './SelfHostedRunnerConfig';
|
|
131
|
+
export * from './SelfHostedRunnerConfigResponse';
|
|
120
132
|
export * from './SignInRequest';
|
|
121
133
|
export * from './StepInput';
|
|
122
134
|
export * from './StepKind';
|
|
123
135
|
export * from './StepOutput';
|
|
136
|
+
export * from './SubmitFeedbackRequest';
|
|
124
137
|
export * from './SubtreeChunkGroup';
|
|
125
138
|
export * from './SubtreeChunksResponse';
|
|
126
139
|
export * from './SupportedLanguage';
|
|
@@ -150,12 +163,20 @@ export * from './UpdateTagRequest';
|
|
|
150
163
|
export * from './UpdateTenantRequest';
|
|
151
164
|
export * from './UpdateThreadRequest';
|
|
152
165
|
export * from './UpdateUserRequest';
|
|
166
|
+
export * from './UpdateWorkflowDefinitionRequest';
|
|
153
167
|
export * from './UserMessageRequest';
|
|
154
168
|
export * from './UserMessageResponse';
|
|
155
169
|
export * from './UserResponse';
|
|
156
170
|
export * from './ValidationError';
|
|
157
171
|
export * from './VersionChunkIdsResponse';
|
|
158
172
|
export * from './WorkflowActionResponse';
|
|
173
|
+
export * from './WorkflowCallbackResponse';
|
|
159
174
|
export * from './WorkflowCancelResponse';
|
|
175
|
+
export * from './WorkflowDefinitionResponse';
|
|
160
176
|
export * from './WorkflowDetailResponse';
|
|
177
|
+
export * from './WorkflowRunCallbackRequest';
|
|
178
|
+
export * from './WorkflowRunResponse';
|
|
179
|
+
export * from './WorkflowRunSnapshot';
|
|
180
|
+
export * from './WorkflowRunStatus';
|
|
181
|
+
export * from './WorkflowRunnerType';
|
|
161
182
|
export * from './WorkflowSummaryResponse';
|