@knowledge-stack/ksapi 1.63.0 → 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 +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/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/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/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,102 @@
|
|
|
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.WorkflowDefinitionResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfWorkflowDefinitionResponse = instanceOfWorkflowDefinitionResponse;
|
|
18
|
+
exports.WorkflowDefinitionResponseFromJSON = WorkflowDefinitionResponseFromJSON;
|
|
19
|
+
exports.WorkflowDefinitionResponseFromJSONTyped = WorkflowDefinitionResponseFromJSONTyped;
|
|
20
|
+
exports.WorkflowDefinitionResponseToJSON = WorkflowDefinitionResponseToJSON;
|
|
21
|
+
exports.WorkflowDefinitionResponseToJSONTyped = WorkflowDefinitionResponseToJSONTyped;
|
|
22
|
+
const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
|
|
23
|
+
const SelfHostedRunnerConfigResponse_1 = require("./SelfHostedRunnerConfigResponse");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the WorkflowDefinitionResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfWorkflowDefinitionResponse(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('runnerConfig' in value) || value['runnerConfig'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('templatePathPartId' in value) || value['templatePathPartId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
function WorkflowDefinitionResponseFromJSON(json) {
|
|
57
|
+
return WorkflowDefinitionResponseFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function WorkflowDefinitionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'name': json['name'],
|
|
66
|
+
'description': json['description'],
|
|
67
|
+
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
68
|
+
'runnerConfig': (0, SelfHostedRunnerConfigResponse_1.SelfHostedRunnerConfigResponseFromJSON)(json['runner_config']),
|
|
69
|
+
'maxRunDurationSeconds': json['max_run_duration_seconds'],
|
|
70
|
+
'sourcePathPartIds': json['source_path_part_ids'],
|
|
71
|
+
'instructionPathPartIds': json['instruction_path_part_ids'],
|
|
72
|
+
'outputPathPartIds': json['output_path_part_ids'],
|
|
73
|
+
'templatePathPartId': json['template_path_part_id'],
|
|
74
|
+
'isActive': json['is_active'],
|
|
75
|
+
'createdAt': (new Date(json['created_at'])),
|
|
76
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function WorkflowDefinitionResponseToJSON(json) {
|
|
80
|
+
return WorkflowDefinitionResponseToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
function WorkflowDefinitionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'description': value['description'],
|
|
90
|
+
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
91
|
+
'runner_config': (0, SelfHostedRunnerConfigResponse_1.SelfHostedRunnerConfigResponseToJSON)(value['runnerConfig']),
|
|
92
|
+
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
93
|
+
'source_path_part_ids': value['sourcePathPartIds'],
|
|
94
|
+
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
95
|
+
'output_path_part_ids': value['outputPathPartIds'],
|
|
96
|
+
'template_path_part_id': value['templatePathPartId'],
|
|
97
|
+
'is_active': value['isActive'],
|
|
98
|
+
'created_at': value['createdAt'].toISOString(),
|
|
99
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
exports.WorkflowDefinitionResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
* Request body for the runner callback endpoint.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WorkflowRunCallbackRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkflowRunCallbackRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {WorkflowRunCallbackRequestStatusEnum}
|
|
21
|
+
* @memberof WorkflowRunCallbackRequest
|
|
22
|
+
*/
|
|
23
|
+
status: WorkflowRunCallbackRequestStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WorkflowRunCallbackRequest
|
|
28
|
+
*/
|
|
29
|
+
error?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const WorkflowRunCallbackRequestStatusEnum: {
|
|
35
|
+
readonly Completed: "COMPLETED";
|
|
36
|
+
readonly Failed: "FAILED";
|
|
37
|
+
};
|
|
38
|
+
export type WorkflowRunCallbackRequestStatusEnum = typeof WorkflowRunCallbackRequestStatusEnum[keyof typeof WorkflowRunCallbackRequestStatusEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the WorkflowRunCallbackRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfWorkflowRunCallbackRequest(value: object): value is WorkflowRunCallbackRequest;
|
|
43
|
+
export declare function WorkflowRunCallbackRequestFromJSON(json: any): WorkflowRunCallbackRequest;
|
|
44
|
+
export declare function WorkflowRunCallbackRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunCallbackRequest;
|
|
45
|
+
export declare function WorkflowRunCallbackRequestToJSON(json: any): WorkflowRunCallbackRequest;
|
|
46
|
+
export declare function WorkflowRunCallbackRequestToJSONTyped(value?: WorkflowRunCallbackRequest | null, ignoreDiscriminator?: boolean): any;
|
|
47
|
+
export declare const WorkflowRunCallbackRequestPropertyValidationAttributesMap: {
|
|
48
|
+
[property: string]: {
|
|
49
|
+
maxLength?: number;
|
|
50
|
+
minLength?: number;
|
|
51
|
+
pattern?: string;
|
|
52
|
+
maximum?: number;
|
|
53
|
+
exclusiveMaximum?: boolean;
|
|
54
|
+
minimum?: number;
|
|
55
|
+
exclusiveMinimum?: boolean;
|
|
56
|
+
multipleOf?: number;
|
|
57
|
+
maxItems?: number;
|
|
58
|
+
minItems?: number;
|
|
59
|
+
uniqueItems?: boolean;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
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.WorkflowRunCallbackRequestPropertyValidationAttributesMap = exports.WorkflowRunCallbackRequestStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfWorkflowRunCallbackRequest = instanceOfWorkflowRunCallbackRequest;
|
|
18
|
+
exports.WorkflowRunCallbackRequestFromJSON = WorkflowRunCallbackRequestFromJSON;
|
|
19
|
+
exports.WorkflowRunCallbackRequestFromJSONTyped = WorkflowRunCallbackRequestFromJSONTyped;
|
|
20
|
+
exports.WorkflowRunCallbackRequestToJSON = WorkflowRunCallbackRequestToJSON;
|
|
21
|
+
exports.WorkflowRunCallbackRequestToJSONTyped = WorkflowRunCallbackRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WorkflowRunCallbackRequestStatusEnum = {
|
|
26
|
+
Completed: 'COMPLETED',
|
|
27
|
+
Failed: 'FAILED'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the WorkflowRunCallbackRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfWorkflowRunCallbackRequest(value) {
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function WorkflowRunCallbackRequestFromJSON(json) {
|
|
38
|
+
return WorkflowRunCallbackRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function WorkflowRunCallbackRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function WorkflowRunCallbackRequestToJSON(json) {
|
|
50
|
+
return WorkflowRunCallbackRequestToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function WorkflowRunCallbackRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'status': value['status'],
|
|
58
|
+
'error': value['error'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.WorkflowRunCallbackRequestPropertyValidationAttributesMap = {
|
|
62
|
+
error: {
|
|
63
|
+
maxLength: 8192,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { WorkflowRunSnapshot } from './WorkflowRunSnapshot';
|
|
13
|
+
import type { WorkflowRunStatus } from './WorkflowRunStatus';
|
|
14
|
+
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
15
|
+
/**
|
|
16
|
+
* Workflow run response.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface WorkflowRunResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface WorkflowRunResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof WorkflowRunResponse
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof WorkflowRunResponse
|
|
31
|
+
*/
|
|
32
|
+
workflowDefinitionId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof WorkflowRunResponse
|
|
37
|
+
*/
|
|
38
|
+
userId: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {WorkflowRunnerType}
|
|
42
|
+
* @memberof WorkflowRunResponse
|
|
43
|
+
*/
|
|
44
|
+
runnerType: WorkflowRunnerType;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {WorkflowRunStatus}
|
|
48
|
+
* @memberof WorkflowRunResponse
|
|
49
|
+
*/
|
|
50
|
+
status: WorkflowRunStatus;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Date}
|
|
54
|
+
* @memberof WorkflowRunResponse
|
|
55
|
+
*/
|
|
56
|
+
startedAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof WorkflowRunResponse
|
|
61
|
+
*/
|
|
62
|
+
completedAt: Date | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {WorkflowRunSnapshot}
|
|
66
|
+
* @memberof WorkflowRunResponse
|
|
67
|
+
*/
|
|
68
|
+
runSnapshot: WorkflowRunSnapshot;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof WorkflowRunResponse
|
|
73
|
+
*/
|
|
74
|
+
error: string | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof WorkflowRunResponse
|
|
79
|
+
*/
|
|
80
|
+
createdAt: Date;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof WorkflowRunResponse
|
|
85
|
+
*/
|
|
86
|
+
updatedAt: Date;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the WorkflowRunResponse interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfWorkflowRunResponse(value: object): value is WorkflowRunResponse;
|
|
92
|
+
export declare function WorkflowRunResponseFromJSON(json: any): WorkflowRunResponse;
|
|
93
|
+
export declare function WorkflowRunResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunResponse;
|
|
94
|
+
export declare function WorkflowRunResponseToJSON(json: any): WorkflowRunResponse;
|
|
95
|
+
export declare function WorkflowRunResponseToJSONTyped(value?: WorkflowRunResponse | null, ignoreDiscriminator?: boolean): any;
|
|
96
|
+
export declare const WorkflowRunResponsePropertyValidationAttributesMap: {
|
|
97
|
+
[property: string]: {
|
|
98
|
+
maxLength?: number;
|
|
99
|
+
minLength?: number;
|
|
100
|
+
pattern?: string;
|
|
101
|
+
maximum?: number;
|
|
102
|
+
exclusiveMaximum?: boolean;
|
|
103
|
+
minimum?: number;
|
|
104
|
+
exclusiveMinimum?: boolean;
|
|
105
|
+
multipleOf?: number;
|
|
106
|
+
maxItems?: number;
|
|
107
|
+
minItems?: number;
|
|
108
|
+
uniqueItems?: boolean;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
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.WorkflowRunResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfWorkflowRunResponse = instanceOfWorkflowRunResponse;
|
|
18
|
+
exports.WorkflowRunResponseFromJSON = WorkflowRunResponseFromJSON;
|
|
19
|
+
exports.WorkflowRunResponseFromJSONTyped = WorkflowRunResponseFromJSONTyped;
|
|
20
|
+
exports.WorkflowRunResponseToJSON = WorkflowRunResponseToJSON;
|
|
21
|
+
exports.WorkflowRunResponseToJSONTyped = WorkflowRunResponseToJSONTyped;
|
|
22
|
+
const WorkflowRunSnapshot_1 = require("./WorkflowRunSnapshot");
|
|
23
|
+
const WorkflowRunStatus_1 = require("./WorkflowRunStatus");
|
|
24
|
+
const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the WorkflowRunResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfWorkflowRunResponse(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('completedAt' in value) || value['completedAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('runSnapshot' in value) || value['runSnapshot'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function WorkflowRunResponseFromJSON(json) {
|
|
54
|
+
return WorkflowRunResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function WorkflowRunResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': json['id'],
|
|
62
|
+
'workflowDefinitionId': json['workflow_definition_id'],
|
|
63
|
+
'userId': json['user_id'],
|
|
64
|
+
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
65
|
+
'status': (0, WorkflowRunStatus_1.WorkflowRunStatusFromJSON)(json['status']),
|
|
66
|
+
'startedAt': (new Date(json['started_at'])),
|
|
67
|
+
'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
|
|
68
|
+
'runSnapshot': (0, WorkflowRunSnapshot_1.WorkflowRunSnapshotFromJSON)(json['run_snapshot']),
|
|
69
|
+
'error': json['error'],
|
|
70
|
+
'createdAt': (new Date(json['created_at'])),
|
|
71
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function WorkflowRunResponseToJSON(json) {
|
|
75
|
+
return WorkflowRunResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
function WorkflowRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'id': value['id'],
|
|
83
|
+
'workflow_definition_id': value['workflowDefinitionId'],
|
|
84
|
+
'user_id': value['userId'],
|
|
85
|
+
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
86
|
+
'status': (0, WorkflowRunStatus_1.WorkflowRunStatusToJSON)(value['status']),
|
|
87
|
+
'started_at': value['startedAt'].toISOString(),
|
|
88
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
89
|
+
'run_snapshot': (0, WorkflowRunSnapshot_1.WorkflowRunSnapshotToJSON)(value['runSnapshot']),
|
|
90
|
+
'error': value['error'],
|
|
91
|
+
'created_at': value['createdAt'].toISOString(),
|
|
92
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
exports.WorkflowRunResponsePropertyValidationAttributesMap = {};
|
|
@@ -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 { ABCDPathSnapshot } from './ABCDPathSnapshot';
|
|
13
|
+
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
14
|
+
/**
|
|
15
|
+
* Frozen ABCD configuration captured at workflow trigger time.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WorkflowRunSnapshot
|
|
18
|
+
*/
|
|
19
|
+
export interface WorkflowRunSnapshot {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof WorkflowRunSnapshot
|
|
24
|
+
*/
|
|
25
|
+
workflowDefinitionId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof WorkflowRunSnapshot
|
|
30
|
+
*/
|
|
31
|
+
workflowName: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {WorkflowRunnerType}
|
|
35
|
+
* @memberof WorkflowRunSnapshot
|
|
36
|
+
*/
|
|
37
|
+
runnerType: WorkflowRunnerType;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof WorkflowRunSnapshot
|
|
42
|
+
*/
|
|
43
|
+
userId: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof WorkflowRunSnapshot
|
|
48
|
+
*/
|
|
49
|
+
maxRunDurationSeconds: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<ABCDPathSnapshot>}
|
|
53
|
+
* @memberof WorkflowRunSnapshot
|
|
54
|
+
*/
|
|
55
|
+
sources: Array<ABCDPathSnapshot>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<ABCDPathSnapshot>}
|
|
59
|
+
* @memberof WorkflowRunSnapshot
|
|
60
|
+
*/
|
|
61
|
+
instructions: Array<ABCDPathSnapshot>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<ABCDPathSnapshot>}
|
|
65
|
+
* @memberof WorkflowRunSnapshot
|
|
66
|
+
*/
|
|
67
|
+
outputs: Array<ABCDPathSnapshot>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {ABCDPathSnapshot}
|
|
71
|
+
* @memberof WorkflowRunSnapshot
|
|
72
|
+
*/
|
|
73
|
+
template: ABCDPathSnapshot;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the WorkflowRunSnapshot interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfWorkflowRunSnapshot(value: object): value is WorkflowRunSnapshot;
|
|
79
|
+
export declare function WorkflowRunSnapshotFromJSON(json: any): WorkflowRunSnapshot;
|
|
80
|
+
export declare function WorkflowRunSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunSnapshot;
|
|
81
|
+
export declare function WorkflowRunSnapshotToJSON(json: any): WorkflowRunSnapshot;
|
|
82
|
+
export declare function WorkflowRunSnapshotToJSONTyped(value?: WorkflowRunSnapshot | null, ignoreDiscriminator?: boolean): any;
|
|
83
|
+
export declare const WorkflowRunSnapshotPropertyValidationAttributesMap: {
|
|
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,86 @@
|
|
|
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.WorkflowRunSnapshotPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfWorkflowRunSnapshot = instanceOfWorkflowRunSnapshot;
|
|
18
|
+
exports.WorkflowRunSnapshotFromJSON = WorkflowRunSnapshotFromJSON;
|
|
19
|
+
exports.WorkflowRunSnapshotFromJSONTyped = WorkflowRunSnapshotFromJSONTyped;
|
|
20
|
+
exports.WorkflowRunSnapshotToJSON = WorkflowRunSnapshotToJSON;
|
|
21
|
+
exports.WorkflowRunSnapshotToJSONTyped = WorkflowRunSnapshotToJSONTyped;
|
|
22
|
+
const ABCDPathSnapshot_1 = require("./ABCDPathSnapshot");
|
|
23
|
+
const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the WorkflowRunSnapshot interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfWorkflowRunSnapshot(value) {
|
|
28
|
+
if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('workflowName' in value) || value['workflowName'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('sources' in value) || value['sources'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('outputs' in value) || value['outputs'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('template' in value) || value['template'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function WorkflowRunSnapshotFromJSON(json) {
|
|
49
|
+
return WorkflowRunSnapshotFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function WorkflowRunSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'workflowDefinitionId': json['workflow_definition_id'],
|
|
57
|
+
'workflowName': json['workflow_name'],
|
|
58
|
+
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
59
|
+
'userId': json['user_id'],
|
|
60
|
+
'maxRunDurationSeconds': json['max_run_duration_seconds'],
|
|
61
|
+
'sources': (json['sources'].map(ABCDPathSnapshot_1.ABCDPathSnapshotFromJSON)),
|
|
62
|
+
'instructions': (json['instructions'].map(ABCDPathSnapshot_1.ABCDPathSnapshotFromJSON)),
|
|
63
|
+
'outputs': (json['outputs'].map(ABCDPathSnapshot_1.ABCDPathSnapshotFromJSON)),
|
|
64
|
+
'template': (0, ABCDPathSnapshot_1.ABCDPathSnapshotFromJSON)(json['template']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function WorkflowRunSnapshotToJSON(json) {
|
|
68
|
+
return WorkflowRunSnapshotToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function WorkflowRunSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'workflow_definition_id': value['workflowDefinitionId'],
|
|
76
|
+
'workflow_name': value['workflowName'],
|
|
77
|
+
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
78
|
+
'user_id': value['userId'],
|
|
79
|
+
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
80
|
+
'sources': (value['sources'].map(ABCDPathSnapshot_1.ABCDPathSnapshotToJSON)),
|
|
81
|
+
'instructions': (value['instructions'].map(ABCDPathSnapshot_1.ABCDPathSnapshotToJSON)),
|
|
82
|
+
'outputs': (value['outputs'].map(ABCDPathSnapshot_1.ABCDPathSnapshotToJSON)),
|
|
83
|
+
'template': (0, ABCDPathSnapshot_1.ABCDPathSnapshotToJSON)(value['template']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
exports.WorkflowRunSnapshotPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Lifecycle status of a workflow run.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const WorkflowRunStatus: {
|
|
17
|
+
readonly Pending: "PENDING";
|
|
18
|
+
readonly Running: "RUNNING";
|
|
19
|
+
readonly Completed: "COMPLETED";
|
|
20
|
+
readonly Failed: "FAILED";
|
|
21
|
+
};
|
|
22
|
+
export type WorkflowRunStatus = typeof WorkflowRunStatus[keyof typeof WorkflowRunStatus];
|
|
23
|
+
export declare function instanceOfWorkflowRunStatus(value: any): boolean;
|
|
24
|
+
export declare function WorkflowRunStatusFromJSON(json: any): WorkflowRunStatus;
|
|
25
|
+
export declare function WorkflowRunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunStatus;
|
|
26
|
+
export declare function WorkflowRunStatusToJSON(value?: WorkflowRunStatus | null): any;
|
|
27
|
+
export declare function WorkflowRunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowRunStatus;
|