@knowledge-stack/ksapi 1.63.0 → 1.64.1
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 +34 -0
- package/README.md +27 -2
- 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 +2 -0
- package/dist/apis/index.js +2 -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 +2 -0
- package/dist/esm/apis/index.js +2 -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/InvokeWorkflowRequest.d.ts +47 -0
- package/dist/esm/models/InvokeWorkflowRequest.js +46 -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/StepInput.d.ts +1 -1
- package/dist/esm/models/StepOutput.d.ts +1 -1
- 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 +15 -0
- package/dist/esm/models/index.js +15 -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/InvokeWorkflowRequest.d.ts +47 -0
- package/dist/models/InvokeWorkflowRequest.js +54 -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/StepInput.d.ts +1 -1
- package/dist/models/StepOutput.d.ts +1 -1
- 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 +15 -0
- package/dist/models/index.js +15 -0
- package/docs/ABCDPathSnapshot.md +39 -0
- package/docs/CreateWorkflowDefinitionRequest.md +51 -0
- package/docs/InvokeWorkflowRequest.md +35 -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/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/WorkflowDefinitionsApi.ts +678 -0
- package/src/apis/WorkflowRunsApi.ts +296 -0
- package/src/apis/index.ts +2 -0
- package/src/models/ABCDPathSnapshot.ts +111 -0
- package/src/models/CreateWorkflowDefinitionRequest.ts +192 -0
- package/src/models/InvokeWorkflowRequest.ts +85 -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/StepInput.ts +1 -1
- package/src/models/StepOutput.ts +1 -1
- 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 +15 -0
|
@@ -0,0 +1,130 @@
|
|
|
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 { WorkflowDefinitionResponse } from './WorkflowDefinitionResponse';
|
|
17
|
+
import {
|
|
18
|
+
WorkflowDefinitionResponseFromJSON,
|
|
19
|
+
WorkflowDefinitionResponseFromJSONTyped,
|
|
20
|
+
WorkflowDefinitionResponseToJSON,
|
|
21
|
+
WorkflowDefinitionResponseToJSONTyped,
|
|
22
|
+
} from './WorkflowDefinitionResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaginatedResponseWorkflowDefinitionResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginatedResponseWorkflowDefinitionResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of items
|
|
32
|
+
* @type {Array<WorkflowDefinitionResponse>}
|
|
33
|
+
* @memberof PaginatedResponseWorkflowDefinitionResponse
|
|
34
|
+
*/
|
|
35
|
+
items: Array<WorkflowDefinitionResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of items
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PaginatedResponseWorkflowDefinitionResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of items per page
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaginatedResponseWorkflowDefinitionResponse
|
|
46
|
+
*/
|
|
47
|
+
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of items to skip
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PaginatedResponseWorkflowDefinitionResponse
|
|
52
|
+
*/
|
|
53
|
+
offset: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PaginatedResponseWorkflowDefinitionResponse interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPaginatedResponseWorkflowDefinitionResponse(value: object): value is PaginatedResponseWorkflowDefinitionResponse {
|
|
60
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
61
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
62
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
63
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PaginatedResponseWorkflowDefinitionResponseFromJSON(json: any): PaginatedResponseWorkflowDefinitionResponse {
|
|
68
|
+
return PaginatedResponseWorkflowDefinitionResponseFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PaginatedResponseWorkflowDefinitionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseWorkflowDefinitionResponse {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'items': ((json['items'] as Array<any>).map(WorkflowDefinitionResponseFromJSON)),
|
|
78
|
+
'total': json['total'],
|
|
79
|
+
'limit': json['limit'],
|
|
80
|
+
'offset': json['offset'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PaginatedResponseWorkflowDefinitionResponseToJSON(json: any): PaginatedResponseWorkflowDefinitionResponse {
|
|
85
|
+
return PaginatedResponseWorkflowDefinitionResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PaginatedResponseWorkflowDefinitionResponseToJSONTyped(value?: PaginatedResponseWorkflowDefinitionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'items': ((value['items'] as Array<any>).map(WorkflowDefinitionResponseToJSON)),
|
|
96
|
+
'total': value['total'],
|
|
97
|
+
'limit': value['limit'],
|
|
98
|
+
'offset': value['offset'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const PaginatedResponseWorkflowDefinitionResponsePropertyValidationAttributesMap: {
|
|
103
|
+
[property: string]: {
|
|
104
|
+
maxLength?: number,
|
|
105
|
+
minLength?: number,
|
|
106
|
+
pattern?: string,
|
|
107
|
+
maximum?: number,
|
|
108
|
+
exclusiveMaximum?: boolean,
|
|
109
|
+
minimum?: number,
|
|
110
|
+
exclusiveMinimum?: boolean,
|
|
111
|
+
multipleOf?: number,
|
|
112
|
+
maxItems?: number,
|
|
113
|
+
minItems?: number,
|
|
114
|
+
uniqueItems?: boolean
|
|
115
|
+
}
|
|
116
|
+
} = {
|
|
117
|
+
total: {
|
|
118
|
+
minimum: 0,
|
|
119
|
+
exclusiveMinimum: false,
|
|
120
|
+
},
|
|
121
|
+
limit: {
|
|
122
|
+
minimum: 1,
|
|
123
|
+
exclusiveMinimum: false,
|
|
124
|
+
},
|
|
125
|
+
offset: {
|
|
126
|
+
minimum: 0,
|
|
127
|
+
exclusiveMinimum: false,
|
|
128
|
+
},
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { WorkflowRunResponse } from './WorkflowRunResponse';
|
|
17
|
+
import {
|
|
18
|
+
WorkflowRunResponseFromJSON,
|
|
19
|
+
WorkflowRunResponseFromJSONTyped,
|
|
20
|
+
WorkflowRunResponseToJSON,
|
|
21
|
+
WorkflowRunResponseToJSONTyped,
|
|
22
|
+
} from './WorkflowRunResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaginatedResponseWorkflowRunResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginatedResponseWorkflowRunResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of items
|
|
32
|
+
* @type {Array<WorkflowRunResponse>}
|
|
33
|
+
* @memberof PaginatedResponseWorkflowRunResponse
|
|
34
|
+
*/
|
|
35
|
+
items: Array<WorkflowRunResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of items
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PaginatedResponseWorkflowRunResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of items per page
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaginatedResponseWorkflowRunResponse
|
|
46
|
+
*/
|
|
47
|
+
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of items to skip
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PaginatedResponseWorkflowRunResponse
|
|
52
|
+
*/
|
|
53
|
+
offset: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PaginatedResponseWorkflowRunResponse interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPaginatedResponseWorkflowRunResponse(value: object): value is PaginatedResponseWorkflowRunResponse {
|
|
60
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
61
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
62
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
63
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PaginatedResponseWorkflowRunResponseFromJSON(json: any): PaginatedResponseWorkflowRunResponse {
|
|
68
|
+
return PaginatedResponseWorkflowRunResponseFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PaginatedResponseWorkflowRunResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseWorkflowRunResponse {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'items': ((json['items'] as Array<any>).map(WorkflowRunResponseFromJSON)),
|
|
78
|
+
'total': json['total'],
|
|
79
|
+
'limit': json['limit'],
|
|
80
|
+
'offset': json['offset'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PaginatedResponseWorkflowRunResponseToJSON(json: any): PaginatedResponseWorkflowRunResponse {
|
|
85
|
+
return PaginatedResponseWorkflowRunResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PaginatedResponseWorkflowRunResponseToJSONTyped(value?: PaginatedResponseWorkflowRunResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'items': ((value['items'] as Array<any>).map(WorkflowRunResponseToJSON)),
|
|
96
|
+
'total': value['total'],
|
|
97
|
+
'limit': value['limit'],
|
|
98
|
+
'offset': value['offset'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const PaginatedResponseWorkflowRunResponsePropertyValidationAttributesMap: {
|
|
103
|
+
[property: string]: {
|
|
104
|
+
maxLength?: number,
|
|
105
|
+
minLength?: number,
|
|
106
|
+
pattern?: string,
|
|
107
|
+
maximum?: number,
|
|
108
|
+
exclusiveMaximum?: boolean,
|
|
109
|
+
minimum?: number,
|
|
110
|
+
exclusiveMinimum?: boolean,
|
|
111
|
+
multipleOf?: number,
|
|
112
|
+
maxItems?: number,
|
|
113
|
+
minItems?: number,
|
|
114
|
+
uniqueItems?: boolean
|
|
115
|
+
}
|
|
116
|
+
} = {
|
|
117
|
+
total: {
|
|
118
|
+
minimum: 0,
|
|
119
|
+
exclusiveMinimum: false,
|
|
120
|
+
},
|
|
121
|
+
limit: {
|
|
122
|
+
minimum: 1,
|
|
123
|
+
exclusiveMinimum: false,
|
|
124
|
+
},
|
|
125
|
+
offset: {
|
|
126
|
+
minimum: 0,
|
|
127
|
+
exclusiveMinimum: false,
|
|
128
|
+
},
|
|
129
|
+
}
|
|
130
|
+
|
package/src/models/PartType.ts
CHANGED
|
@@ -24,7 +24,9 @@ export const PartType = {
|
|
|
24
24
|
Section: 'SECTION',
|
|
25
25
|
Chunk: 'CHUNK',
|
|
26
26
|
Thread: 'THREAD',
|
|
27
|
-
ThreadMessage: 'THREAD_MESSAGE'
|
|
27
|
+
ThreadMessage: 'THREAD_MESSAGE',
|
|
28
|
+
WorkflowDefinition: 'WORKFLOW_DEFINITION',
|
|
29
|
+
WorkflowRun: 'WORKFLOW_RUN'
|
|
28
30
|
} as const;
|
|
29
31
|
export type PartType = typeof PartType[keyof typeof PartType];
|
|
30
32
|
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Configuration for self-hosted workflow runner.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SelfHostedRunnerConfig
|
|
20
|
+
*/
|
|
21
|
+
export interface SelfHostedRunnerConfig {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SelfHostedRunnerConfig
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SelfHostedRunnerConfig
|
|
32
|
+
*/
|
|
33
|
+
webhookSecret: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SelfHostedRunnerConfig interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSelfHostedRunnerConfig(value: object): value is SelfHostedRunnerConfig {
|
|
40
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
41
|
+
if (!('webhookSecret' in value) || value['webhookSecret'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SelfHostedRunnerConfigFromJSON(json: any): SelfHostedRunnerConfig {
|
|
46
|
+
return SelfHostedRunnerConfigFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SelfHostedRunnerConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelfHostedRunnerConfig {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'url': json['url'],
|
|
56
|
+
'webhookSecret': json['webhook_secret'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SelfHostedRunnerConfigToJSON(json: any): SelfHostedRunnerConfig {
|
|
61
|
+
return SelfHostedRunnerConfigToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SelfHostedRunnerConfigToJSONTyped(value?: SelfHostedRunnerConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'url': value['url'],
|
|
72
|
+
'webhook_secret': value['webhookSecret'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const SelfHostedRunnerConfigPropertyValidationAttributesMap: {
|
|
77
|
+
[property: string]: {
|
|
78
|
+
maxLength?: number,
|
|
79
|
+
minLength?: number,
|
|
80
|
+
pattern?: string,
|
|
81
|
+
maximum?: number,
|
|
82
|
+
exclusiveMaximum?: boolean,
|
|
83
|
+
minimum?: number,
|
|
84
|
+
exclusiveMinimum?: boolean,
|
|
85
|
+
multipleOf?: number,
|
|
86
|
+
maxItems?: number,
|
|
87
|
+
minItems?: number,
|
|
88
|
+
uniqueItems?: boolean
|
|
89
|
+
}
|
|
90
|
+
} = {
|
|
91
|
+
url: {
|
|
92
|
+
maxLength: 2083,
|
|
93
|
+
minLength: 1,
|
|
94
|
+
},
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Response-safe version of runner config — excludes webhook_secret.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SelfHostedRunnerConfigResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface SelfHostedRunnerConfigResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SelfHostedRunnerConfigResponse
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SelfHostedRunnerConfigResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSelfHostedRunnerConfigResponse(value: object): value is SelfHostedRunnerConfigResponse {
|
|
34
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function SelfHostedRunnerConfigResponseFromJSON(json: any): SelfHostedRunnerConfigResponse {
|
|
39
|
+
return SelfHostedRunnerConfigResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function SelfHostedRunnerConfigResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelfHostedRunnerConfigResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'url': json['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SelfHostedRunnerConfigResponseToJSON(json: any): SelfHostedRunnerConfigResponse {
|
|
53
|
+
return SelfHostedRunnerConfigResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SelfHostedRunnerConfigResponseToJSONTyped(value?: SelfHostedRunnerConfigResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'url': value['url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const SelfHostedRunnerConfigResponsePropertyValidationAttributesMap: {
|
|
68
|
+
[property: string]: {
|
|
69
|
+
maxLength?: number,
|
|
70
|
+
minLength?: number,
|
|
71
|
+
pattern?: string,
|
|
72
|
+
maximum?: number,
|
|
73
|
+
exclusiveMaximum?: boolean,
|
|
74
|
+
minimum?: number,
|
|
75
|
+
exclusiveMinimum?: boolean,
|
|
76
|
+
multipleOf?: number,
|
|
77
|
+
maxItems?: number,
|
|
78
|
+
minItems?: number,
|
|
79
|
+
uniqueItems?: boolean
|
|
80
|
+
}
|
|
81
|
+
} = {
|
|
82
|
+
url: {
|
|
83
|
+
maxLength: 2083,
|
|
84
|
+
minLength: 1,
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
|
package/src/models/StepInput.ts
CHANGED
package/src/models/StepOutput.ts
CHANGED
|
@@ -0,0 +1,200 @@
|
|
|
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 { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
|
|
17
|
+
import {
|
|
18
|
+
SelfHostedRunnerConfigFromJSON,
|
|
19
|
+
SelfHostedRunnerConfigFromJSONTyped,
|
|
20
|
+
SelfHostedRunnerConfigToJSON,
|
|
21
|
+
SelfHostedRunnerConfigToJSONTyped,
|
|
22
|
+
} from './SelfHostedRunnerConfig';
|
|
23
|
+
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
24
|
+
import {
|
|
25
|
+
WorkflowRunnerTypeFromJSON,
|
|
26
|
+
WorkflowRunnerTypeFromJSONTyped,
|
|
27
|
+
WorkflowRunnerTypeToJSON,
|
|
28
|
+
WorkflowRunnerTypeToJSONTyped,
|
|
29
|
+
} from './WorkflowRunnerType';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Full replacement (PUT semantics). All fields are required.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface UpdateWorkflowDefinitionRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface UpdateWorkflowDefinitionRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
47
|
+
*/
|
|
48
|
+
description?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {WorkflowRunnerType}
|
|
52
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
53
|
+
*/
|
|
54
|
+
runnerType: WorkflowRunnerType;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {SelfHostedRunnerConfig}
|
|
58
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
59
|
+
*/
|
|
60
|
+
runnerConfig?: SelfHostedRunnerConfig;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
65
|
+
*/
|
|
66
|
+
maxRunDurationSeconds?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
71
|
+
*/
|
|
72
|
+
sourcePathPartIds: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
77
|
+
*/
|
|
78
|
+
instructionPathPartIds: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<string>}
|
|
82
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
83
|
+
*/
|
|
84
|
+
outputPathPartIds: Array<string>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
89
|
+
*/
|
|
90
|
+
templatePathPartId?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
95
|
+
*/
|
|
96
|
+
isActive?: boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the UpdateWorkflowDefinitionRequest interface.
|
|
103
|
+
*/
|
|
104
|
+
export function instanceOfUpdateWorkflowDefinitionRequest(value: object): value is UpdateWorkflowDefinitionRequest {
|
|
105
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
106
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined) return false;
|
|
107
|
+
if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined) return false;
|
|
108
|
+
if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined) return false;
|
|
109
|
+
if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined) return false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function UpdateWorkflowDefinitionRequestFromJSON(json: any): UpdateWorkflowDefinitionRequest {
|
|
114
|
+
return UpdateWorkflowDefinitionRequestFromJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function UpdateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWorkflowDefinitionRequest {
|
|
118
|
+
if (json == null) {
|
|
119
|
+
return json;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'name': json['name'],
|
|
124
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
125
|
+
'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
|
|
126
|
+
'runnerConfig': json['runner_config'] == null ? undefined : SelfHostedRunnerConfigFromJSON(json['runner_config']),
|
|
127
|
+
'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
|
|
128
|
+
'sourcePathPartIds': json['source_path_part_ids'],
|
|
129
|
+
'instructionPathPartIds': json['instruction_path_part_ids'],
|
|
130
|
+
'outputPathPartIds': json['output_path_part_ids'],
|
|
131
|
+
'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
|
|
132
|
+
'isActive': json['is_active'] == null ? undefined : json['is_active'],
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function UpdateWorkflowDefinitionRequestToJSON(json: any): UpdateWorkflowDefinitionRequest {
|
|
137
|
+
return UpdateWorkflowDefinitionRequestToJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function UpdateWorkflowDefinitionRequestToJSONTyped(value?: UpdateWorkflowDefinitionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
141
|
+
if (value == null) {
|
|
142
|
+
return value;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'name': value['name'],
|
|
148
|
+
'description': value['description'],
|
|
149
|
+
'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
|
|
150
|
+
'runner_config': SelfHostedRunnerConfigToJSON(value['runnerConfig']),
|
|
151
|
+
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
152
|
+
'source_path_part_ids': value['sourcePathPartIds'],
|
|
153
|
+
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
154
|
+
'output_path_part_ids': value['outputPathPartIds'],
|
|
155
|
+
'template_path_part_id': value['templatePathPartId'],
|
|
156
|
+
'is_active': value['isActive'],
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export const UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
161
|
+
[property: string]: {
|
|
162
|
+
maxLength?: number,
|
|
163
|
+
minLength?: number,
|
|
164
|
+
pattern?: string,
|
|
165
|
+
maximum?: number,
|
|
166
|
+
exclusiveMaximum?: boolean,
|
|
167
|
+
minimum?: number,
|
|
168
|
+
exclusiveMinimum?: boolean,
|
|
169
|
+
multipleOf?: number,
|
|
170
|
+
maxItems?: number,
|
|
171
|
+
minItems?: number,
|
|
172
|
+
uniqueItems?: boolean
|
|
173
|
+
}
|
|
174
|
+
} = {
|
|
175
|
+
name: {
|
|
176
|
+
maxLength: 255,
|
|
177
|
+
},
|
|
178
|
+
maxRunDurationSeconds: {
|
|
179
|
+
maximum: 86400,
|
|
180
|
+
exclusiveMaximum: false,
|
|
181
|
+
minimum: 60,
|
|
182
|
+
exclusiveMinimum: false,
|
|
183
|
+
},
|
|
184
|
+
sourcePathPartIds: {
|
|
185
|
+
maxItems: 20,
|
|
186
|
+
minItems: 1,
|
|
187
|
+
uniqueItems: false,
|
|
188
|
+
},
|
|
189
|
+
instructionPathPartIds: {
|
|
190
|
+
maxItems: 20,
|
|
191
|
+
minItems: 1,
|
|
192
|
+
uniqueItems: false,
|
|
193
|
+
},
|
|
194
|
+
outputPathPartIds: {
|
|
195
|
+
maxItems: 20,
|
|
196
|
+
minItems: 1,
|
|
197
|
+
uniqueItems: false,
|
|
198
|
+
},
|
|
199
|
+
}
|
|
200
|
+
|