@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,146 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { WorkflowCallbackResponse, WorkflowRunCallbackRequest, WorkflowRunResponse } from '../models/index';
|
|
14
|
+
export interface DeleteWorkflowRunRequest {
|
|
15
|
+
runId: string;
|
|
16
|
+
authorization?: string | null;
|
|
17
|
+
ksUat?: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface GetWorkflowRunRequest {
|
|
20
|
+
runId: string;
|
|
21
|
+
authorization?: string | null;
|
|
22
|
+
ksUat?: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface WorkflowRunCallbackOperationRequest {
|
|
25
|
+
runId: string;
|
|
26
|
+
workflowRunCallbackRequest: WorkflowRunCallbackRequest;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* WorkflowRunsApi - interface
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface WorkflowRunsApiInterface
|
|
33
|
+
*/
|
|
34
|
+
export interface WorkflowRunsApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for deleteWorkflowRun without sending the request
|
|
37
|
+
* @param {string} runId
|
|
38
|
+
* @param {string} [authorization]
|
|
39
|
+
* @param {string} [ksUat]
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
* @memberof WorkflowRunsApiInterface
|
|
42
|
+
*/
|
|
43
|
+
deleteWorkflowRunRequestOpts(requestParameters: DeleteWorkflowRunRequest): Promise<runtime.RequestOpts>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary Delete Workflow Run Handler
|
|
47
|
+
* @param {string} runId
|
|
48
|
+
* @param {string} [authorization]
|
|
49
|
+
* @param {string} [ksUat]
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
* @memberof WorkflowRunsApiInterface
|
|
53
|
+
*/
|
|
54
|
+
deleteWorkflowRunRaw(requestParameters: DeleteWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete Workflow Run Handler
|
|
57
|
+
*/
|
|
58
|
+
deleteWorkflowRun(requestParameters: DeleteWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates request options for getWorkflowRun without sending the request
|
|
61
|
+
* @param {string} runId
|
|
62
|
+
* @param {string} [authorization]
|
|
63
|
+
* @param {string} [ksUat]
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
* @memberof WorkflowRunsApiInterface
|
|
66
|
+
*/
|
|
67
|
+
getWorkflowRunRequestOpts(requestParameters: GetWorkflowRunRequest): Promise<runtime.RequestOpts>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Get Workflow Run Handler
|
|
71
|
+
* @param {string} runId
|
|
72
|
+
* @param {string} [authorization]
|
|
73
|
+
* @param {string} [ksUat]
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
* @memberof WorkflowRunsApiInterface
|
|
77
|
+
*/
|
|
78
|
+
getWorkflowRunRaw(requestParameters: GetWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
79
|
+
/**
|
|
80
|
+
* Get Workflow Run Handler
|
|
81
|
+
*/
|
|
82
|
+
getWorkflowRun(requestParameters: GetWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* Creates request options for workflowRunCallback without sending the request
|
|
85
|
+
* @param {string} runId
|
|
86
|
+
* @param {WorkflowRunCallbackRequest} workflowRunCallbackRequest
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
* @memberof WorkflowRunsApiInterface
|
|
89
|
+
*/
|
|
90
|
+
workflowRunCallbackRequestOpts(requestParameters: WorkflowRunCallbackOperationRequest): Promise<runtime.RequestOpts>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Workflow Run Callback Handler
|
|
94
|
+
* @param {string} runId
|
|
95
|
+
* @param {WorkflowRunCallbackRequest} workflowRunCallbackRequest
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
* @memberof WorkflowRunsApiInterface
|
|
99
|
+
*/
|
|
100
|
+
workflowRunCallbackRaw(requestParameters: WorkflowRunCallbackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowCallbackResponse>>;
|
|
101
|
+
/**
|
|
102
|
+
* Workflow Run Callback Handler
|
|
103
|
+
*/
|
|
104
|
+
workflowRunCallback(requestParameters: WorkflowRunCallbackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowCallbackResponse>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
export declare class WorkflowRunsApi extends runtime.BaseAPI implements WorkflowRunsApiInterface {
|
|
110
|
+
/**
|
|
111
|
+
* Creates request options for deleteWorkflowRun without sending the request
|
|
112
|
+
*/
|
|
113
|
+
deleteWorkflowRunRequestOpts(requestParameters: DeleteWorkflowRunRequest): Promise<runtime.RequestOpts>;
|
|
114
|
+
/**
|
|
115
|
+
* Delete Workflow Run Handler
|
|
116
|
+
*/
|
|
117
|
+
deleteWorkflowRunRaw(requestParameters: DeleteWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
118
|
+
/**
|
|
119
|
+
* Delete Workflow Run Handler
|
|
120
|
+
*/
|
|
121
|
+
deleteWorkflowRun(requestParameters: DeleteWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
122
|
+
/**
|
|
123
|
+
* Creates request options for getWorkflowRun without sending the request
|
|
124
|
+
*/
|
|
125
|
+
getWorkflowRunRequestOpts(requestParameters: GetWorkflowRunRequest): Promise<runtime.RequestOpts>;
|
|
126
|
+
/**
|
|
127
|
+
* Get Workflow Run Handler
|
|
128
|
+
*/
|
|
129
|
+
getWorkflowRunRaw(requestParameters: GetWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
130
|
+
/**
|
|
131
|
+
* Get Workflow Run Handler
|
|
132
|
+
*/
|
|
133
|
+
getWorkflowRun(requestParameters: GetWorkflowRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* Creates request options for workflowRunCallback without sending the request
|
|
136
|
+
*/
|
|
137
|
+
workflowRunCallbackRequestOpts(requestParameters: WorkflowRunCallbackOperationRequest): Promise<runtime.RequestOpts>;
|
|
138
|
+
/**
|
|
139
|
+
* Workflow Run Callback Handler
|
|
140
|
+
*/
|
|
141
|
+
workflowRunCallbackRaw(requestParameters: WorkflowRunCallbackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowCallbackResponse>>;
|
|
142
|
+
/**
|
|
143
|
+
* Workflow Run Callback Handler
|
|
144
|
+
*/
|
|
145
|
+
workflowRunCallback(requestParameters: WorkflowRunCallbackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowCallbackResponse>;
|
|
146
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { WorkflowCallbackResponseFromJSON, WorkflowRunCallbackRequestToJSON, WorkflowRunResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class WorkflowRunsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for deleteWorkflowRun without sending the request
|
|
31
|
+
*/
|
|
32
|
+
deleteWorkflowRunRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['runId'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling deleteWorkflowRun().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (requestParameters['authorization'] != null) {
|
|
40
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
41
|
+
}
|
|
42
|
+
let urlPath = `/v1/workflow-runs/{run_id}`;
|
|
43
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
44
|
+
return {
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'DELETE',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Delete Workflow Run Handler
|
|
54
|
+
*/
|
|
55
|
+
deleteWorkflowRunRaw(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const requestOptions = yield this.deleteWorkflowRunRequestOpts(requestParameters);
|
|
58
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
59
|
+
return new runtime.VoidApiResponse(response);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Delete Workflow Run Handler
|
|
64
|
+
*/
|
|
65
|
+
deleteWorkflowRun(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
yield this.deleteWorkflowRunRaw(requestParameters, initOverrides);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for getWorkflowRun without sending the request
|
|
72
|
+
*/
|
|
73
|
+
getWorkflowRunRequestOpts(requestParameters) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
if (requestParameters['runId'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling getWorkflowRun().');
|
|
77
|
+
}
|
|
78
|
+
const queryParameters = {};
|
|
79
|
+
const headerParameters = {};
|
|
80
|
+
if (requestParameters['authorization'] != null) {
|
|
81
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
82
|
+
}
|
|
83
|
+
let urlPath = `/v1/workflow-runs/{run_id}`;
|
|
84
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
85
|
+
return {
|
|
86
|
+
path: urlPath,
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Get Workflow Run Handler
|
|
95
|
+
*/
|
|
96
|
+
getWorkflowRunRaw(requestParameters, initOverrides) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const requestOptions = yield this.getWorkflowRunRequestOpts(requestParameters);
|
|
99
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowRunResponseFromJSON(jsonValue));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Get Workflow Run Handler
|
|
105
|
+
*/
|
|
106
|
+
getWorkflowRun(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const response = yield this.getWorkflowRunRaw(requestParameters, initOverrides);
|
|
109
|
+
return yield response.value();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for workflowRunCallback without sending the request
|
|
114
|
+
*/
|
|
115
|
+
workflowRunCallbackRequestOpts(requestParameters) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
if (requestParameters['runId'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling workflowRunCallback().');
|
|
119
|
+
}
|
|
120
|
+
if (requestParameters['workflowRunCallbackRequest'] == null) {
|
|
121
|
+
throw new runtime.RequiredError('workflowRunCallbackRequest', 'Required parameter "workflowRunCallbackRequest" was null or undefined when calling workflowRunCallback().');
|
|
122
|
+
}
|
|
123
|
+
const queryParameters = {};
|
|
124
|
+
const headerParameters = {};
|
|
125
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
126
|
+
let urlPath = `/v1/workflow-runs/{run_id}/callback`;
|
|
127
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
128
|
+
return {
|
|
129
|
+
path: urlPath,
|
|
130
|
+
method: 'POST',
|
|
131
|
+
headers: headerParameters,
|
|
132
|
+
query: queryParameters,
|
|
133
|
+
body: WorkflowRunCallbackRequestToJSON(requestParameters['workflowRunCallbackRequest']),
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Workflow Run Callback Handler
|
|
139
|
+
*/
|
|
140
|
+
workflowRunCallbackRaw(requestParameters, initOverrides) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const requestOptions = yield this.workflowRunCallbackRequestOpts(requestParameters);
|
|
143
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
144
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowCallbackResponseFromJSON(jsonValue));
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Workflow Run Callback Handler
|
|
149
|
+
*/
|
|
150
|
+
workflowRunCallback(requestParameters, initOverrides) {
|
|
151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
152
|
+
const response = yield this.workflowRunCallbackRaw(requestParameters, initOverrides);
|
|
153
|
+
return yield response.value();
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PartType } from './PartType';
|
|
13
|
+
/**
|
|
14
|
+
* Snapshot of a single ABCD path reference at trigger time.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ABCDPathSnapshot
|
|
17
|
+
*/
|
|
18
|
+
export interface ABCDPathSnapshot {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ABCDPathSnapshot
|
|
23
|
+
*/
|
|
24
|
+
pathPartId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ABCDPathSnapshot
|
|
29
|
+
*/
|
|
30
|
+
materializedPath: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PartType}
|
|
34
|
+
* @memberof ABCDPathSnapshot
|
|
35
|
+
*/
|
|
36
|
+
partType: PartType;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ABCDPathSnapshot interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfABCDPathSnapshot(value: object): value is ABCDPathSnapshot;
|
|
42
|
+
export declare function ABCDPathSnapshotFromJSON(json: any): ABCDPathSnapshot;
|
|
43
|
+
export declare function ABCDPathSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): ABCDPathSnapshot;
|
|
44
|
+
export declare function ABCDPathSnapshotToJSON(json: any): ABCDPathSnapshot;
|
|
45
|
+
export declare function ABCDPathSnapshotToJSONTyped(value?: ABCDPathSnapshot | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
export declare const ABCDPathSnapshotPropertyValidationAttributesMap: {
|
|
47
|
+
[property: string]: {
|
|
48
|
+
maxLength?: number;
|
|
49
|
+
minLength?: number;
|
|
50
|
+
pattern?: string;
|
|
51
|
+
maximum?: number;
|
|
52
|
+
exclusiveMaximum?: boolean;
|
|
53
|
+
minimum?: number;
|
|
54
|
+
exclusiveMinimum?: boolean;
|
|
55
|
+
multipleOf?: number;
|
|
56
|
+
maxItems?: number;
|
|
57
|
+
minItems?: number;
|
|
58
|
+
uniqueItems?: boolean;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
import { PartTypeFromJSON, PartTypeToJSON, } from './PartType';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ABCDPathSnapshot interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfABCDPathSnapshot(value) {
|
|
19
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('partType' in value) || value['partType'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ABCDPathSnapshotFromJSON(json) {
|
|
28
|
+
return ABCDPathSnapshotFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ABCDPathSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'pathPartId': json['path_part_id'],
|
|
36
|
+
'materializedPath': json['materialized_path'],
|
|
37
|
+
'partType': PartTypeFromJSON(json['part_type']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function ABCDPathSnapshotToJSON(json) {
|
|
41
|
+
return ABCDPathSnapshotToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function ABCDPathSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'path_part_id': value['pathPartId'],
|
|
49
|
+
'materialized_path': value['materializedPath'],
|
|
50
|
+
'part_type': PartTypeToJSON(value['partType']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export const ABCDPathSnapshotPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
|
|
13
|
+
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
14
|
+
/**
|
|
15
|
+
* Create a new workflow definition.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreateWorkflowDefinitionRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateWorkflowDefinitionRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
30
|
+
*/
|
|
31
|
+
description?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {WorkflowRunnerType}
|
|
35
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
36
|
+
*/
|
|
37
|
+
runnerType: WorkflowRunnerType;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {SelfHostedRunnerConfig}
|
|
41
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
42
|
+
*/
|
|
43
|
+
runnerConfig?: SelfHostedRunnerConfig;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
48
|
+
*/
|
|
49
|
+
maxRunDurationSeconds?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
54
|
+
*/
|
|
55
|
+
sourcePathPartIds: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
60
|
+
*/
|
|
61
|
+
instructionPathPartIds: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
66
|
+
*/
|
|
67
|
+
outputPathPartIds: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
72
|
+
*/
|
|
73
|
+
templatePathPartId?: string | null;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the CreateWorkflowDefinitionRequest interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfCreateWorkflowDefinitionRequest(value: object): value is CreateWorkflowDefinitionRequest;
|
|
79
|
+
export declare function CreateWorkflowDefinitionRequestFromJSON(json: any): CreateWorkflowDefinitionRequest;
|
|
80
|
+
export declare function CreateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWorkflowDefinitionRequest;
|
|
81
|
+
export declare function CreateWorkflowDefinitionRequestToJSON(json: any): CreateWorkflowDefinitionRequest;
|
|
82
|
+
export declare function CreateWorkflowDefinitionRequestToJSONTyped(value?: CreateWorkflowDefinitionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
83
|
+
export declare const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
84
|
+
[property: string]: {
|
|
85
|
+
maxLength?: number;
|
|
86
|
+
minLength?: number;
|
|
87
|
+
pattern?: string;
|
|
88
|
+
maximum?: number;
|
|
89
|
+
exclusiveMaximum?: boolean;
|
|
90
|
+
minimum?: number;
|
|
91
|
+
exclusiveMinimum?: boolean;
|
|
92
|
+
multipleOf?: number;
|
|
93
|
+
maxItems?: number;
|
|
94
|
+
minItems?: number;
|
|
95
|
+
uniqueItems?: boolean;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
import { SelfHostedRunnerConfigFromJSON, SelfHostedRunnerConfigToJSON, } from './SelfHostedRunnerConfig';
|
|
15
|
+
import { WorkflowRunnerTypeFromJSON, WorkflowRunnerTypeToJSON, } from './WorkflowRunnerType';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the CreateWorkflowDefinitionRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfCreateWorkflowDefinitionRequest(value) {
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function CreateWorkflowDefinitionRequestFromJSON(json) {
|
|
33
|
+
return CreateWorkflowDefinitionRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function CreateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
42
|
+
'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
|
|
43
|
+
'runnerConfig': json['runner_config'] == null ? undefined : SelfHostedRunnerConfigFromJSON(json['runner_config']),
|
|
44
|
+
'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
|
|
45
|
+
'sourcePathPartIds': json['source_path_part_ids'],
|
|
46
|
+
'instructionPathPartIds': json['instruction_path_part_ids'],
|
|
47
|
+
'outputPathPartIds': json['output_path_part_ids'],
|
|
48
|
+
'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function CreateWorkflowDefinitionRequestToJSON(json) {
|
|
52
|
+
return CreateWorkflowDefinitionRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function CreateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'description': value['description'],
|
|
61
|
+
'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
|
|
62
|
+
'runner_config': SelfHostedRunnerConfigToJSON(value['runnerConfig']),
|
|
63
|
+
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
64
|
+
'source_path_part_ids': value['sourcePathPartIds'],
|
|
65
|
+
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
66
|
+
'output_path_part_ids': value['outputPathPartIds'],
|
|
67
|
+
'template_path_part_id': value['templatePathPartId'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
|
|
71
|
+
name: {
|
|
72
|
+
maxLength: 255,
|
|
73
|
+
},
|
|
74
|
+
maxRunDurationSeconds: {
|
|
75
|
+
maximum: 86400,
|
|
76
|
+
exclusiveMaximum: false,
|
|
77
|
+
minimum: 60,
|
|
78
|
+
exclusiveMinimum: false,
|
|
79
|
+
},
|
|
80
|
+
sourcePathPartIds: {
|
|
81
|
+
maxItems: 20,
|
|
82
|
+
minItems: 1,
|
|
83
|
+
uniqueItems: false,
|
|
84
|
+
},
|
|
85
|
+
instructionPathPartIds: {
|
|
86
|
+
maxItems: 20,
|
|
87
|
+
minItems: 1,
|
|
88
|
+
uniqueItems: false,
|
|
89
|
+
},
|
|
90
|
+
outputPathPartIds: {
|
|
91
|
+
maxItems: 20,
|
|
92
|
+
minItems: 1,
|
|
93
|
+
uniqueItems: false,
|
|
94
|
+
},
|
|
95
|
+
};
|
|
@@ -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
|
+
* Request body for invoking a workflow definition.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InvokeWorkflowRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface InvokeWorkflowRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Optional key to prevent duplicate runs from retries
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvokeWorkflowRequest
|
|
22
|
+
*/
|
|
23
|
+
idempotencyKey?: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the InvokeWorkflowRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfInvokeWorkflowRequest(value: object): value is InvokeWorkflowRequest;
|
|
29
|
+
export declare function InvokeWorkflowRequestFromJSON(json: any): InvokeWorkflowRequest;
|
|
30
|
+
export declare function InvokeWorkflowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvokeWorkflowRequest;
|
|
31
|
+
export declare function InvokeWorkflowRequestToJSON(json: any): InvokeWorkflowRequest;
|
|
32
|
+
export declare function InvokeWorkflowRequestToJSONTyped(value?: InvokeWorkflowRequest | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const InvokeWorkflowRequestPropertyValidationAttributesMap: {
|
|
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
|
+
};
|