@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,78 @@
|
|
|
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.PaginatedResponseWorkflowRunResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseWorkflowRunResponse = instanceOfPaginatedResponseWorkflowRunResponse;
|
|
18
|
+
exports.PaginatedResponseWorkflowRunResponseFromJSON = PaginatedResponseWorkflowRunResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseWorkflowRunResponseFromJSONTyped = PaginatedResponseWorkflowRunResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseWorkflowRunResponseToJSON = PaginatedResponseWorkflowRunResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseWorkflowRunResponseToJSONTyped = PaginatedResponseWorkflowRunResponseToJSONTyped;
|
|
22
|
+
const WorkflowRunResponse_1 = require("./WorkflowRunResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseWorkflowRunResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseWorkflowRunResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseWorkflowRunResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseWorkflowRunResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseWorkflowRunResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(WorkflowRunResponse_1.WorkflowRunResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseWorkflowRunResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseWorkflowRunResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseWorkflowRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(WorkflowRunResponse_1.WorkflowRunResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseWorkflowRunResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -21,6 +21,8 @@ export declare const PartType: {
|
|
|
21
21
|
readonly Chunk: "CHUNK";
|
|
22
22
|
readonly Thread: "THREAD";
|
|
23
23
|
readonly ThreadMessage: "THREAD_MESSAGE";
|
|
24
|
+
readonly WorkflowDefinition: "WORKFLOW_DEFINITION";
|
|
25
|
+
readonly WorkflowRun: "WORKFLOW_RUN";
|
|
24
26
|
};
|
|
25
27
|
export type PartType = typeof PartType[keyof typeof PartType];
|
|
26
28
|
export declare function instanceOfPartType(value: any): boolean;
|
package/dist/models/PartType.js
CHANGED
|
@@ -30,7 +30,9 @@ exports.PartType = {
|
|
|
30
30
|
Section: 'SECTION',
|
|
31
31
|
Chunk: 'CHUNK',
|
|
32
32
|
Thread: 'THREAD',
|
|
33
|
-
ThreadMessage: 'THREAD_MESSAGE'
|
|
33
|
+
ThreadMessage: 'THREAD_MESSAGE',
|
|
34
|
+
WorkflowDefinition: 'WORKFLOW_DEFINITION',
|
|
35
|
+
WorkflowRun: 'WORKFLOW_RUN'
|
|
34
36
|
};
|
|
35
37
|
function instanceOfPartType(value) {
|
|
36
38
|
for (const key in exports.PartType) {
|
|
@@ -21,6 +21,8 @@ export declare const ReferenceType: {
|
|
|
21
21
|
readonly Chunk: "CHUNK";
|
|
22
22
|
readonly Thread: "THREAD";
|
|
23
23
|
readonly ThreadMessage: "THREAD_MESSAGE";
|
|
24
|
+
readonly WorkflowDefinition: "WORKFLOW_DEFINITION";
|
|
25
|
+
readonly WorkflowRun: "WORKFLOW_RUN";
|
|
24
26
|
readonly Image: "image";
|
|
25
27
|
readonly Memory: "memory";
|
|
26
28
|
readonly Tag: "tag";
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Configuration for self-hosted workflow runner.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SelfHostedRunnerConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface SelfHostedRunnerConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SelfHostedRunnerConfig
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SelfHostedRunnerConfig
|
|
28
|
+
*/
|
|
29
|
+
webhookSecret: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SelfHostedRunnerConfig interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSelfHostedRunnerConfig(value: object): value is SelfHostedRunnerConfig;
|
|
35
|
+
export declare function SelfHostedRunnerConfigFromJSON(json: any): SelfHostedRunnerConfig;
|
|
36
|
+
export declare function SelfHostedRunnerConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelfHostedRunnerConfig;
|
|
37
|
+
export declare function SelfHostedRunnerConfigToJSON(json: any): SelfHostedRunnerConfig;
|
|
38
|
+
export declare function SelfHostedRunnerConfigToJSONTyped(value?: SelfHostedRunnerConfig | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const SelfHostedRunnerConfigPropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SelfHostedRunnerConfigPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfSelfHostedRunnerConfig = instanceOfSelfHostedRunnerConfig;
|
|
18
|
+
exports.SelfHostedRunnerConfigFromJSON = SelfHostedRunnerConfigFromJSON;
|
|
19
|
+
exports.SelfHostedRunnerConfigFromJSONTyped = SelfHostedRunnerConfigFromJSONTyped;
|
|
20
|
+
exports.SelfHostedRunnerConfigToJSON = SelfHostedRunnerConfigToJSON;
|
|
21
|
+
exports.SelfHostedRunnerConfigToJSONTyped = SelfHostedRunnerConfigToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SelfHostedRunnerConfig interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSelfHostedRunnerConfig(value) {
|
|
26
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('webhookSecret' in value) || value['webhookSecret'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function SelfHostedRunnerConfigFromJSON(json) {
|
|
33
|
+
return SelfHostedRunnerConfigFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function SelfHostedRunnerConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'url': json['url'],
|
|
41
|
+
'webhookSecret': json['webhook_secret'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function SelfHostedRunnerConfigToJSON(json) {
|
|
45
|
+
return SelfHostedRunnerConfigToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function SelfHostedRunnerConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'url': value['url'],
|
|
53
|
+
'webhook_secret': value['webhookSecret'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.SelfHostedRunnerConfigPropertyValidationAttributesMap = {
|
|
57
|
+
url: {
|
|
58
|
+
maxLength: 2083,
|
|
59
|
+
minLength: 1,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Response-safe version of runner config — excludes webhook_secret.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SelfHostedRunnerConfigResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SelfHostedRunnerConfigResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SelfHostedRunnerConfigResponse
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SelfHostedRunnerConfigResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSelfHostedRunnerConfigResponse(value: object): value is SelfHostedRunnerConfigResponse;
|
|
29
|
+
export declare function SelfHostedRunnerConfigResponseFromJSON(json: any): SelfHostedRunnerConfigResponse;
|
|
30
|
+
export declare function SelfHostedRunnerConfigResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelfHostedRunnerConfigResponse;
|
|
31
|
+
export declare function SelfHostedRunnerConfigResponseToJSON(json: any): SelfHostedRunnerConfigResponse;
|
|
32
|
+
export declare function SelfHostedRunnerConfigResponseToJSONTyped(value?: SelfHostedRunnerConfigResponse | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const SelfHostedRunnerConfigResponsePropertyValidationAttributesMap: {
|
|
34
|
+
[property: string]: {
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
pattern?: string;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: boolean;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: boolean;
|
|
42
|
+
multipleOf?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
uniqueItems?: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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.SelfHostedRunnerConfigResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfSelfHostedRunnerConfigResponse = instanceOfSelfHostedRunnerConfigResponse;
|
|
18
|
+
exports.SelfHostedRunnerConfigResponseFromJSON = SelfHostedRunnerConfigResponseFromJSON;
|
|
19
|
+
exports.SelfHostedRunnerConfigResponseFromJSONTyped = SelfHostedRunnerConfigResponseFromJSONTyped;
|
|
20
|
+
exports.SelfHostedRunnerConfigResponseToJSON = SelfHostedRunnerConfigResponseToJSON;
|
|
21
|
+
exports.SelfHostedRunnerConfigResponseToJSONTyped = SelfHostedRunnerConfigResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SelfHostedRunnerConfigResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSelfHostedRunnerConfigResponse(value) {
|
|
26
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function SelfHostedRunnerConfigResponseFromJSON(json) {
|
|
31
|
+
return SelfHostedRunnerConfigResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function SelfHostedRunnerConfigResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'url': json['url'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SelfHostedRunnerConfigResponseToJSON(json) {
|
|
42
|
+
return SelfHostedRunnerConfigResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SelfHostedRunnerConfigResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'url': value['url'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.SelfHostedRunnerConfigResponsePropertyValidationAttributesMap = {
|
|
53
|
+
url: {
|
|
54
|
+
maxLength: 2083,
|
|
55
|
+
minLength: 1,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
|
|
13
|
+
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
14
|
+
/**
|
|
15
|
+
* Full replacement (PUT semantics). All fields are required.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdateWorkflowDefinitionRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateWorkflowDefinitionRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
30
|
+
*/
|
|
31
|
+
description?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {WorkflowRunnerType}
|
|
35
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
36
|
+
*/
|
|
37
|
+
runnerType: WorkflowRunnerType;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {SelfHostedRunnerConfig}
|
|
41
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
42
|
+
*/
|
|
43
|
+
runnerConfig?: SelfHostedRunnerConfig;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
48
|
+
*/
|
|
49
|
+
maxRunDurationSeconds?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
54
|
+
*/
|
|
55
|
+
sourcePathPartIds: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
60
|
+
*/
|
|
61
|
+
instructionPathPartIds: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
66
|
+
*/
|
|
67
|
+
outputPathPartIds: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
72
|
+
*/
|
|
73
|
+
templatePathPartId?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {boolean}
|
|
77
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
78
|
+
*/
|
|
79
|
+
isActive?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the UpdateWorkflowDefinitionRequest interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfUpdateWorkflowDefinitionRequest(value: object): value is UpdateWorkflowDefinitionRequest;
|
|
85
|
+
export declare function UpdateWorkflowDefinitionRequestFromJSON(json: any): UpdateWorkflowDefinitionRequest;
|
|
86
|
+
export declare function UpdateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWorkflowDefinitionRequest;
|
|
87
|
+
export declare function UpdateWorkflowDefinitionRequestToJSON(json: any): UpdateWorkflowDefinitionRequest;
|
|
88
|
+
export declare function UpdateWorkflowDefinitionRequestToJSONTyped(value?: UpdateWorkflowDefinitionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
89
|
+
export declare const UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
90
|
+
[property: string]: {
|
|
91
|
+
maxLength?: number;
|
|
92
|
+
minLength?: number;
|
|
93
|
+
pattern?: string;
|
|
94
|
+
maximum?: number;
|
|
95
|
+
exclusiveMaximum?: boolean;
|
|
96
|
+
minimum?: number;
|
|
97
|
+
exclusiveMinimum?: boolean;
|
|
98
|
+
multipleOf?: number;
|
|
99
|
+
maxItems?: number;
|
|
100
|
+
minItems?: number;
|
|
101
|
+
uniqueItems?: boolean;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
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.UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdateWorkflowDefinitionRequest = instanceOfUpdateWorkflowDefinitionRequest;
|
|
18
|
+
exports.UpdateWorkflowDefinitionRequestFromJSON = UpdateWorkflowDefinitionRequestFromJSON;
|
|
19
|
+
exports.UpdateWorkflowDefinitionRequestFromJSONTyped = UpdateWorkflowDefinitionRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateWorkflowDefinitionRequestToJSON = UpdateWorkflowDefinitionRequestToJSON;
|
|
21
|
+
exports.UpdateWorkflowDefinitionRequestToJSONTyped = UpdateWorkflowDefinitionRequestToJSONTyped;
|
|
22
|
+
const SelfHostedRunnerConfig_1 = require("./SelfHostedRunnerConfig");
|
|
23
|
+
const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the UpdateWorkflowDefinitionRequest interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfUpdateWorkflowDefinitionRequest(value) {
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function UpdateWorkflowDefinitionRequestFromJSON(json) {
|
|
41
|
+
return UpdateWorkflowDefinitionRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
50
|
+
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
51
|
+
'runnerConfig': json['runner_config'] == null ? undefined : (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigFromJSON)(json['runner_config']),
|
|
52
|
+
'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
|
|
53
|
+
'sourcePathPartIds': json['source_path_part_ids'],
|
|
54
|
+
'instructionPathPartIds': json['instruction_path_part_ids'],
|
|
55
|
+
'outputPathPartIds': json['output_path_part_ids'],
|
|
56
|
+
'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
|
|
57
|
+
'isActive': json['is_active'] == null ? undefined : json['is_active'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function UpdateWorkflowDefinitionRequestToJSON(json) {
|
|
61
|
+
return UpdateWorkflowDefinitionRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function UpdateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
'description': value['description'],
|
|
70
|
+
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
71
|
+
'runner_config': (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigToJSON)(value['runnerConfig']),
|
|
72
|
+
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
73
|
+
'source_path_part_ids': value['sourcePathPartIds'],
|
|
74
|
+
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
75
|
+
'output_path_part_ids': value['outputPathPartIds'],
|
|
76
|
+
'template_path_part_id': value['templatePathPartId'],
|
|
77
|
+
'is_active': value['isActive'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
exports.UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
|
|
81
|
+
name: {
|
|
82
|
+
maxLength: 255,
|
|
83
|
+
},
|
|
84
|
+
maxRunDurationSeconds: {
|
|
85
|
+
maximum: 86400,
|
|
86
|
+
exclusiveMaximum: false,
|
|
87
|
+
minimum: 60,
|
|
88
|
+
exclusiveMinimum: false,
|
|
89
|
+
},
|
|
90
|
+
sourcePathPartIds: {
|
|
91
|
+
maxItems: 20,
|
|
92
|
+
minItems: 1,
|
|
93
|
+
uniqueItems: false,
|
|
94
|
+
},
|
|
95
|
+
instructionPathPartIds: {
|
|
96
|
+
maxItems: 20,
|
|
97
|
+
minItems: 1,
|
|
98
|
+
uniqueItems: false,
|
|
99
|
+
},
|
|
100
|
+
outputPathPartIds: {
|
|
101
|
+
maxItems: 20,
|
|
102
|
+
minItems: 1,
|
|
103
|
+
uniqueItems: false,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Response from the runner callback endpoint.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WorkflowCallbackResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkflowCallbackResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkflowCallbackResponse
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the WorkflowCallbackResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfWorkflowCallbackResponse(value: object): value is WorkflowCallbackResponse;
|
|
29
|
+
export declare function WorkflowCallbackResponseFromJSON(json: any): WorkflowCallbackResponse;
|
|
30
|
+
export declare function WorkflowCallbackResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCallbackResponse;
|
|
31
|
+
export declare function WorkflowCallbackResponseToJSON(json: any): WorkflowCallbackResponse;
|
|
32
|
+
export declare function WorkflowCallbackResponseToJSONTyped(value?: WorkflowCallbackResponse | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const WorkflowCallbackResponsePropertyValidationAttributesMap: {
|
|
34
|
+
[property: string]: {
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
pattern?: string;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: boolean;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: boolean;
|
|
42
|
+
multipleOf?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
uniqueItems?: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
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.WorkflowCallbackResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfWorkflowCallbackResponse = instanceOfWorkflowCallbackResponse;
|
|
18
|
+
exports.WorkflowCallbackResponseFromJSON = WorkflowCallbackResponseFromJSON;
|
|
19
|
+
exports.WorkflowCallbackResponseFromJSONTyped = WorkflowCallbackResponseFromJSONTyped;
|
|
20
|
+
exports.WorkflowCallbackResponseToJSON = WorkflowCallbackResponseToJSON;
|
|
21
|
+
exports.WorkflowCallbackResponseToJSONTyped = WorkflowCallbackResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WorkflowCallbackResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWorkflowCallbackResponse(value) {
|
|
26
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function WorkflowCallbackResponseFromJSON(json) {
|
|
31
|
+
return WorkflowCallbackResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function WorkflowCallbackResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'status': json['status'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function WorkflowCallbackResponseToJSON(json) {
|
|
42
|
+
return WorkflowCallbackResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WorkflowCallbackResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': value['status'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.WorkflowCallbackResponsePropertyValidationAttributesMap = {};
|